How to use the type 4 of DBF JDBC 2.0 Driver?
Hi,
I download the "DBF JDBC 2.0 Driver package" from http://memebers.tripod.com/~ZYH/jdbc.html and copy it into my classpath.
But I cannot find its Driver name string using in Class.forName(<DriverName>). And I also need the Connection String in Con.getConnection(<ConnectionString>).
It will be great appreciated if you can give me any information.
Thans a lot in advance!
Jane
Dear Jiehua Huang,
First, you need to download JDK1.2, 1.3 or 1.4 from www.javasoft.com if
you use DBF JDBC 2.0 package(DBF_JDBC20.jar). You can download JDK1.1.X
too if you use DBF JDBC 1.2 package(DBF_JDBC12.jar).
Secondly, please add DBF_JDBC20.jar (or DBF_JDBC12.jar) to your Java
class path, for instance, "SET
CLASSPATH=c:\javalib\DBF_JDBC2.0.jar;%classpath". You can also use "java
-classpath c:\javalib\dbf.jar yourDBFclass" to run your class. More
information about classpath, please read the "Setting the Classpath"
topic in file:///yourdriver|/jdk1.2/docs/tooldocs/tools.html . You can
use "java -classpath c:\javalib\DBF_JDBC20.jar yourDBFclass" or "java
-classpath c:\javalib\DBF_JDBC12.jar yourDBFclass" too.
Thirdly, you can use
'Class.forName("com.hxtt.sql.dbf.DBFDriver").newInstance();' or
Class.forName("com.hxtt.sql.dbf.DBFDriver");' to load this driver.
Fourth, if you have used other JDBC driver, you only need to know the
correct URL format for DriverManager.getConnection(url,"",""); You can
find the URL format from "testDBF.java". If you were a Java novice,
please read also other Java examples code in JDBC20demo.zip or
JDBC12demo.zip.
DBF URL format:
Direct Access:
jdbc:dbf:[/]/[DatabasePath] (You can omit that "//"
characters)
For example:
"jdbc:dbf:/."
"jdbc:dbf:/c:/dbffiles"
"jdbc:DBF:////usr/data" for unix or linux:
"jdbc:DBF:/./data"
Access by DBF Server: Skip it if you don't use RMI or JINI.
jdbc:DBF://hostname:port/[DatabasePath]
For example:
"jdbc:DBF://domain.com:3099/dbffiles" if
one DBFServer is run on the 3099 port of domain.com
Last, DBF driver is a standard JDBC driver so that you will find most of
valuable information at
file:///yourdrive|/jdk1.2/docs/api/java/sql/package-frame.html .
DBF supports SQL Minimum Grammar, which is a subset of the Entry level
syntax of SQL-92.
The major syntax is listed below:
CREATE TABLE base-table-name (column-identifier data-type
[,column-identifier data-type]...)
DROP TABLE base-table-name
DELETE FROM table-name [WHERE search-condition]
INSERT INTO table [ ( column [, ...] ) ] { VALUES ( expression [,
...] ) | SELECT query }
UPDATE table-name SET column-identifier = {expression | NULL }[,
column-identifier = {expression | NULL}]... [WHERE search-condition]
SELECT [ALL | DISTINCT ]select-list FROM table-reference-list
[WHERE search-condition] [group-by-clause] [order-by-clause]
CREATE [UNIQUE] INDEX indexName[(keylength)][,...] [OF
indexFileName] ON tableName (expression UNIQUE ASC
[FOR lExpression][,...])
DROP INDEX {ALL | indexName[,indexName2,...]} [of indexFileName]
ON table-name
REINDEX {ALL | indexFileName[,indexfiLEName2,...]} ON table-name
DBF driver will use index to speed up the query which contains some
index expressions. If a table has a structural .CDX or .IDX file, the
file is opened automatically when the table is opened. You have to run
the DBFIndex once to supply the necessary index file information for the
nonstructural index file which hasn't the same file name as its table
name and is created by other xbase applications. Then DBF will create a
special table.INDICES file and maintain the index files automatically.
You can use "java com.hxtt.sql.dbf.DBFIndex" to find out how to supply
existent index files. Useage: java com.hxtt.sql.dbf.DBFIndex
dbfTablePath tableName indexFileFullName1 [indexFileFullName2 ...]. For
instance, you have a legacy 'product.dbf' file with prodname.idx,
prodprice.idx and orderdate.idx on "c:\proudct\data" directory, you can
run "java com.hxtt.sql.dbf.DBFIndex c:\proudct\data product prodname.idx
prodprice.idx orderdate.idx" once. Then DBF will create a special
product.INDICES file and maintain the index files automatically. All
operations of update, insert and delete will update the .IDX files that
are related to the DBF file. DBF driver doesn't index all deleted records.
File name is case sensitive on unix OS. For unix or linux, DBF will try
to seek acquiescently dbf files with the suffixs like ".DBF" for the
first time, and ".dbf" for the second time. If it failed to find out a
suitable dbf file, it will try other mixture method. You can also use
the full table name to quote your table. For instance, 'select * from
"Test.dBf"'.
Any question or problem? Please don't hesitate to let me know.
With best regards,
Zhao Yonghong
System Analyst
[email protected]
Similar Messages
-
How to use the types declarations in smartforms
hai
already i declared the types in smartfomr global defination, how to call the types to the internal table and workarea, in which please i declare the internal table and work area by using the types structures
for example
types: begin of ty_kna1,
kunnr type kunnr,
name1 type name1,
land1 type land1,
end of ty_kna1.
how to call the above types to internal table and work area in simartforms , in which place i declare the above types to the internal table and workareaHi,
Please see below
**In Types tab
types: begin of ty_kna1,
kunnr type kunnr,
name1 type name1,
land1 type land1,
end of ty_kna1.
Types:ty_t_kna1 type standard table of ty_kna1.
In Global data tab
***Internal table declaration
data:i_kna1 type ty_t_kna1.
***Work area declaration
data:wa_kna1 type ty_kna1.
Regards
Jana -
How to use the customer types in customer master data
how to use the customer types in customer master data?
menu path is Extras -> account group info -> customer typeshi,
This is an option given to you to choose (if you need to) the way you perceive this customer.Here you get options including ompetitors,Salespartner, prospect,
default sp ,consumer.
See it helps you to differentiate between prospect(which you may use for quotation or inquiry purpose)Sales partner and the competetor.
I hope this clarifies your quiery.Reward points if so.
Thanking you,
Best regards,
R.Srinivasan -
How to use the JE database with other data types than byte arrays?
Hi! I searched the javadoc of Berkley DB JE, for a way to introduce entry (but I need also retrieve) data with other type than byte arrays, e.g. String, or anything else, as int may be, etc.
Still, I didn't find any such way, because the main (only?!) method to entry data into an open database - according what I found in javadoc - is:
"public OperationStatus put(Transaction txn, DatabaseEntry key, DatabaseEntry data) throws DatabaseException"
and both this and the corresponding method for retrieves, are based on the same DatabaseEntry type, which allow only entry data on byte[] support.
What if I need to use Strings or int, or even char? I must do a special conversion from these types, to byte[], to use the database?
Thank you!On the doc page (this is also in the download package),
http://download.oracle.com/docs/cd/E17277_02/html/index.html
see:
Getting Started Guide
Java Collections Tutorial
Direct Persistence Layer (DPL)
All of these describe how to use data types other than byte arrays.
--mark -
Revision: 13113
Revision: 13113
Author: [email protected]
Date: 2009-12-21 01:08:10 -0800 (Mon, 21 Dec 2009)
Log Message:
Changing to not use an embedded font by default, and adding instructions on how to use the free 'type writer' bitmap font.
Modified Paths:
osmf/trunk/libs/ChromeLibrary/.flexLibProperties
osmf/trunk/libs/ChromeLibrary/src/org/osmf/chrome/controlbar/widgets/ScrubBar.as
osmf/trunk/libs/ChromeLibrary/src/org/osmf/chrome/controlbar/widgets/URLInput.as
Added Paths:
osmf/trunk/libs/ChromeLibrary/src/org/osmf/chrome/fonts/
osmf/trunk/libs/ChromeLibrary/src/org/osmf/chrome/fonts/Fonts.as
Removed Paths:
osmf/trunk/libs/ChromeLibrary/assets/images/stop_up.png_1Your site was built using tables, whose sizes are defined in your site.
If we look at your first table definition, we can see:
<table width="861" height="1449" border="3" cellpadding="0" cellspacing="0" bordercolor="#868787">
Your table has a width of 861 pixels and an overall height of 1449 pixels. Anything you put into that overall box must fit those dimensions, else
it won't be visible. Anything you add above it will push everything down. You can redefine your sizing to let you edit more inside of the table elements.
This is why, when you type in more text, things act weird. If you are in Dreamweaver, you must find the right cell to put your text into and then enter
text there. Unfortunately, this is going to push things around, which were all lined up using tables. And this gets everything offset with respect to
everything else in your website.
And that is why everyone is saying, "Start Over!"
I just inherited a website that has been put together using tables. I'm going to have to expend considerable effort in rewriting the entire design of the
website because of that. because everything I intend to add to the pages on the site is going to need to be deconstructed in order to get it to work
properly if I'm adding text and pictures that need to line up with each other.
You need something done quick and dirty and the only way I can recommend you do that is to use Dreamweaver to show you the tables you have
and put what you need in a new table that is defined above or below the tables you all ready have defined. Do that and then get back to someone here
who knows how to make a website correctly to clean up your entire website and make it editable -- which will cost you some money, but it will be
money well-spent.
I like to quote this maxim: Good, Fast, Cheap. Pick any two. This works for website design. You can get it fast and cheap, but it won't be good. I
think you may have chosen that route. -
Okay so I set up my Time Capsule already and is now backing up 2 of my iMacs. Works great. What I want to know is how to use the TC to directly store files? I want to do this to delete some files on iMac 20inch but still have them on the TC for future reference..eg some movies on iTunes. I want to directly save them on the drive so I can delete them from iTunes and gain some storage. (Ps on iMac 20 inch (it's almost full - 320 GB) when I enter time machine, a tab comes up on finder which reads "Time Machine backups" it's able to be ejected like a disc or a connected device. On the iMac 20 inch, I dragged some files onto there as if using it like a hard drive. Is this the correct method? Then I went to my 27inch iMac and saw the "Time Machine Backups" hoping to see the files I dragged from the 20inch iMac. But the files were not there except a folder that said "Backups.backupdb". Can someone help me?
It's not a good idea to use a network disk for both Time Machine backups and other things. By design Time Machine will eventually consume all the space on its output disk, which will then cause problem for your other files. I'd store those other files on an external disk connected to the Time Capsule. The problem with that is that Time Machine will only back up files that are local to your Mac. That means that you'll only have one copy of the files on or attached to your Time Capsule.
By the way, you've been misled by poor field labeling on this forum into typing a large part of your message into the field intended for the subject. In the future just type a short summary of your post into that field and type the whole message into the field below that. -
How to use the t-code vf31 tor taking print out of invoice
Hi,
How to use the t-code vf31 for taking print out,am getting an error like no message for initial processing exist,
venuHi,
Please find the steps
Output type RD00
Transmission medium 1
Sort order 01
Processing mode 1
Please give the oppropriate fields,
if the still error persists check the configuration in NACE transaction code.
thanks
Kuntla -
How to use the sharing function with other pc on the Finder sidebar?
I discver my housemates' pc's names under "sharing" on the Finder sidebar. We all use the same wifi network at home. Neither they nor I have enabled anything so I'm just wondering what is that for and where am I able to control sharing options?
Also I can even access their iTunes libraries. How do these all work? Am I able to set any security options at all?On the doc page (this is also in the download package),
http://download.oracle.com/docs/cd/E17277_02/html/index.html
see:
Getting Started Guide
Java Collections Tutorial
Direct Persistence Layer (DPL)
All of these describe how to use data types other than byte arrays.
--mark -
How to use the table maintenance events for validating the input entries..?
Hi,
I have created a Z table with 6 fields in which all are KEY fields. All are of CHAR type. I have created the Table Maintenance Generator for the same. While maintaining the entries in the table, even though I maintain a blank entry for a field it is saving the entry. But, I don't want that way. All the fields are mandatory in my table. One should enter all the fields. Otherwise it should not allow to save the entry. So, I think it can be done using the Table Maintenance Events. can someone tell me how to use the Table Maintenance Events. and which event to use for my reuqirement and what is the logic to be written.
Or Is there any other way to solve my problem.
Please share your inputs. Thanks in advance.
Best regards,
paddu.In the table maintenance generator, Environment --> Modifications --> Events then a screen will be appear here,we need to create the Events.In the EVENTS screen, press new Entries, there give 01(Before Saving the Data in the Database) and give a name(This will become a PERFORM), then click the Editor pushbutton, this will be there at the right side of the entry, then a popup will be appear, you can create an include program, there inside of the include program write ur code.
Here is documentation for Event 01(Before Saving the Data in the Database )
Event 01: Before Saving the Data in the Database
Use
This event occurs before new, changed or deleted entries are written to the database. Other activities can be performed, for example:
hidden entry processing
fill hidden fields
flag data to be written to hidden tables after the database change.
To have the changes saved by the central maintenance dialog routines, SY-SUBRC must be set to 0 at the end of the routine.
Realization
This event has no standard routine. The following global data is available for the realization of the user routine:
internal table TOTAL
field symbols
field symbols <ACTION> and <ACTION_TEXT>
<STATUS>-UPD_FLAG
If internal table data are to be changed before saving, t he changes should be made in both the internal table TOTAL and in the internal table EXTRACT.
FORM abc.
DATA: F_INDEX LIKE SY-TABIX. "Index to note the lines found
LOOP AT TOTAL.
IF <ACTION> = desired constant.
READ TABLE EXTRACT WITH KEY <vim_xtotal_key>.
IF SY-SUBRC EQ 0.
F_INDEX = SY-TABIX.
ELSE.
CLEAR F_INDX.
ENDIF.
(make desired changes to the line TOTAL)
MODIFY TOTAL.
CHECK F_INDX GT 0.
EXTRACT = TOTAL.
MODIFY EXTRACT INDEX F_INDX.
ENDIF.
ENDLOOP.
SY-SUBRC = 0.
ENDFORM.
Regards,
Joy. -
How to use the checksumdll.lib in LabWindow/CVI to create CRCChecksum();
Hi All,
Any one know how to use the checksumdll.lib in LabWindow/CVI to create CRCChecksum() ?
Thank you.Do you ave some documentation about that dll?
Have you looked into dll properties searching for vendor name? Maybe you can look int vendorìs site and obtain some help.
Ultimately: are you forced to use that dll or can you use any software to calculate the checksum? There are several CRCs that you can use: provided you know which is the type used you could find an algorithm to calculate the CRC and check an existing one.
Proud to use LW/CVI from 3.1 on.
My contributions to the Developer Zone Community
If I have helped you, why not giving me a kudos? -
How to use the selection profile and status profile for production order?
Hi expert,
I want to know how to use the selection profile and status profile for production order. what's the usage for these two selection profile and status profile ?
Please help me.
thanks in advance.
george.shiHi George,
There are are two types of statuses.One is system status and second one is user status.These statuses will tell us current situation of an order.
We can't change system statuses.But we can create our own statuses through status profile.With this profile we can control user statuses.
In this status profile,
1.We define the sequence in which user statuses can be activated,
2.We define initial statuses
3. Allow or prohibit certain business transactions.
Selection profiles are used to select the objects (say production orders) with different status combinations.We assign status profiles to selection profiles in BS42 T-Code.
Regards,
Raja.
Edited by: Rajarao on Oct 30, 2008 6:21 AM
Edited by: Rajarao on Oct 30, 2008 6:22 AM -
How to use record type for inserting data into a table
I've read through the web the following tip:
"When working with a large number of columns, using variables of type RECORD is a better approach. With this approach, you do not have to list anything in the INSERT statement, because you are inserting a variable into the table that is defined as a row from the same table."
I usually define a variable as
r_mytable mytable%ROWTYPE;
and inside my procedure I'll set the fields I need as
r_mytable.field1 := 1;
r_mytable.field3 := 7;
and then I perform the insert as
insert into mytable
(field1,
field3)
values
(r_mytable.field1,
r_mytable.field3);
According to the tip I've copied above, how can I use the TYPE RECORD of pl/sql for achieving the same result but perhaps in a smarter way?
Thanks in advance!Hi,
Are you looking for this?
SQL> create table table1 (id number, descr varchar2(30));
Table created
SQL>
SQL> DECLARE
2 my_rec table1%rowtype;
3 BEGIN
4 my_rec.id := 1;
5 my_rec.descr := 'TEST';
6 insert into table1 values my_rec;
7 END;
8 /
PL/SQL procedure successfully completed
SQL> select * from table1;
ID DESCR
1 TESTWorks with UPDATE too :
SQL> DECLARE
2 my_rec table1%rowtype;
3 BEGIN
4 my_rec.id := 2;
5 my_rec.descr := 'TEST2';
6 update table1 set row = my_rec where id = 1;
7 END;
8 /
PL/SQL procedure successfully completed
SQL> select * from table1;
ID DESCR
2 TEST2 -
How to use the created search helps in the program?
Hi Everyone,
I know how to create Search help elementary / collective search help through SE 11. I have a question, how can I make use of the created search help in the program.
How to use the Search help in the programs, which is created through SE11
Subbu.Hi,
In case if you want to use in parameters statement, then we can use the suffix MATCHCODE OBJECT syntax.
Eg.
report abc.
parameters : a(10) type c matchcode object ZBELNR.
Hope this helps.
regards,
amit m. -
How to identify the type of pocketpc barcode scanner?
How to identify the type of pocketpc barcode scanner whteher it is intermec or symbol?
GSHi,
well, this is the brand of the PDA - the Scanner itself is build into the device. So if you have an intermec device - you have an intermec scanner and vice versa. It is not recommended to use a HP device for example with an external scanner. This scenario is not really supported by the MI setup guides.
Hope that helps!
Regards,
Oliver -
How to specify the type of table in the form parameters
How to specify the type of table in the form parameters. for example, how to specify the type of table "vacancies".
FORM getcertainday
USING
vacancies TYPE STANDARD TABLE
efirstday LIKE hrp9200-zfirst_day
lfristday LIKE hrp9200-zfirst_day.Hi
Are you asking about subroutine program to declare a variable for perform statement etc
if it so check this coding
DATA: NUM1 TYPE I,
NUM2 TYPE I,
SUM TYPE I.
NUM1 = 2. NUM2 = 4.
PERFORM ADDIT USING NUM1 NUM2 CHANGING SUM.
NUM1 = 7. NUM2 = 11.
PERFORM ADDIT USING NUM1 NUM2 CHANGING SUM.
FORM ADDIT
USING ADD_NUM1
ADD_NUM2
CHANGING ADD_SUM.
ADD_SUM = ADD_NUM1 + ADD_NUM2.
PERFORM OUT USING ADD_NUM1 ADD_NUM2 ADD_SUM.
ENDFORM.
FORM OUT
USING OUT_NUM1
OUT_NUM2
OUT_SUM.
WRITE: / 'Sum of', OUT_NUM1, 'and', OUT_NUM2, 'is', OUT_SUM.
ENDFORM.
If your issue is some other can u explain me clearly
Regards
Pavan
Maybe you are looking for
-
Balancing Item Profit Center not filled in Line 0007
Hi We are encountering a problem while posting an excise invoice through J1IEX. The system is not allowing to post the same and is giving a message highlighted in the subject Regards Samir
-
Contact names are no longer showing in "Messages"
Yesterday I updated the software for the iphone 4s, and now when I look at my messages it is only showing phone numbers and not names. How do I get the phone to show contact names again? Even if I hit the number to make a call, the contact name sti
-
Outlook 2010 Contact Group Issue
We have a Public Folder Distribution List (Contact Group) that is accessible to several users. There are two significant issues: When changes are made to the list, they are not always saved. For example if I enter a contact "Jon Smith" with email inf
-
Maintenance Window not honoured?
Hi Folks, The more I read through these forums on how the Maintenance Window works the more I feel my deployment was set-up correctly. However, I had a number of workstations unexpectedly install Win7 SP1 and restart during business hours (which are
-
How to calculate Age of Debt in Days
Hi experts. Basically this is my requirement. I need to produce a column in my query to display the age of debt in days. I have inserted Characteristic Value Variable <b>Key Date, 0P_KEYDA</b> in my query. User will give an input to this variable and