PC Review


Reply
Thread Tools Rate Thread

How to create an empty Dbase IV database?

 
 
Sanjib Biswas
Guest
Posts: n/a
 
      6th Nov 2005
Hi,

I am writing a software using VB.Net 2005 to convert MS Access and
Dbase IV database to XML and vise versa. So far, I have got everything
working except, I couldn't find any example of creating an empty Dbase IV
database at runtime. I would appreciate if any one here could give me a lead
on this.

Regards
Sanjib


 
Reply With Quote
 
 
 
 
Cor Ligthert [MVP]
Guest
Posts: n/a
 
      6th Nov 2005
Sanjib,

I don't know if it exist, however in your place I would start searching on
Internet using "FoxPro" instead of dbase IV.

It is few, however maybe it helps,

Cor


 
Reply With Quote
 
Robbe Morris [C# MVP]
Guest
Posts: n/a
 
      6th Nov 2005
In the event that you can't find a way to create an empty
one at runtime, you could always manually create an
empty one and just copy the file at runtime.


--
Robbe Morris - 2004/2005 Microsoft MVP C#
http://www.masterado.net





"Sanjib Biswas" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
>
> I am writing a software using VB.Net 2005 to convert MS Access and
> Dbase IV database to XML and vise versa. So far, I have got everything
> working except, I couldn't find any example of creating an empty Dbase IV
> database at runtime. I would appreciate if any one here could give me a
> lead on this.
>
> Regards
> Sanjib
>



 
Reply With Quote
 
Paul Clement
Guest
Posts: n/a
 
      7th Nov 2005
On Sun, 6 Nov 2005 15:54:26 +1100, "Sanjib Biswas" <(E-Mail Removed)> wrote:

¤ Hi,
¤
¤ I am writing a software using VB.Net 2005 to convert MS Access and
¤ Dbase IV database to XML and vise versa. So far, I have got everything
¤ working except, I couldn't find any example of creating an empty Dbase IV
¤ database at runtime. I would appreciate if any one here could give me a lead
¤ on this.

You can use the Jet OLEDB/dBase ISAM driver combination and Jet SQL. Just keep in mind that dBase
won't support all Jet SQL:

Dim dBaseConnection As New
System.Data.OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=" & "e:\My
Documents\dBase" & ";" & _
"Extended Properties=dBase IV")

dBaseConnection.Open()

'New table
Dim SQLCreateCommand As String
SQLCreateCommand = "CREATE TABLE Customer " & _
"(CustomerID INTEGER," & _
"LastName TEXT(50), " & _
"FirstName TEXT(50)," & _
"Phone TEXT(10)," & _
"Email TEXT(50))"

Dim dBaseCommand As New System.Data.OleDb.OleDbCommand(SQLCreateCommand, dBaseConnection)

dBaseCommand.ExecuteNonQuery()
dBaseConnection.Close()


Paul
~~~~
Microsoft MVP (Visual Basic)
 
Reply With Quote
 
Sanjib Biswas
Guest
Posts: n/a
 
      8th Nov 2005
Hi Paul,

Thanks a lot for the tips..

Regards
Sanjib

"Paul Clement" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> On Sun, 6 Nov 2005 15:54:26 +1100, "Sanjib Biswas"
> <(E-Mail Removed)> wrote:
>
> ¤ Hi,
> ¤
> ¤ I am writing a software using VB.Net 2005 to convert MS Access and
> ¤ Dbase IV database to XML and vise versa. So far, I have got everything
> ¤ working except, I couldn't find any example of creating an empty Dbase
> IV
> ¤ database at runtime. I would appreciate if any one here could give me a
> lead
> ¤ on this.
>
> You can use the Jet OLEDB/dBase ISAM driver combination and Jet SQL. Just
> keep in mind that dBase
> won't support all Jet SQL:
>
> Dim dBaseConnection As New
> System.Data.OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;" & _
> "Data
> Source=" & "e:\My
> Documents\dBase" & ";" & _
>
> "Extended Properties=dBase IV")
>
> dBaseConnection.Open()
>
> 'New table
> Dim SQLCreateCommand As String
> SQLCreateCommand = "CREATE TABLE Customer " & _
> "(CustomerID INTEGER," & _
> "LastName TEXT(50), " & _
> "FirstName TEXT(50)," & _
> "Phone TEXT(10)," & _
> "Email TEXT(50))"
>
> Dim dBaseCommand As New
> System.Data.OleDb.OleDbCommand(SQLCreateCommand, dBaseConnection)
>
> dBaseCommand.ExecuteNonQuery()
> dBaseConnection.Close()
>
>
> Paul
> ~~~~
> Microsoft MVP (Visual Basic)



 
Reply With Quote
 
Sanjib Biswas
Guest
Posts: n/a
 
      9th Nov 2005
Paul,

Do you know a better way to transform a DataSet into Access database?
Currently, I am creating table (create table..) and then inserting rows
(insert into..) in the access database for each DataTable in that DataSet.
It works fine but damn slow. Some of the tables have around 10,000 rows.

Any idea, how to improve the performance?

Regards
Sanjib

"Sanjib Biswas" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi Paul,
>
> Thanks a lot for the tips..
>
> Regards
> Sanjib
>
> "Paul Clement" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> On Sun, 6 Nov 2005 15:54:26 +1100, "Sanjib Biswas"
>> <(E-Mail Removed)> wrote:
>>
>> ¤ Hi,
>> ¤
>> ¤ I am writing a software using VB.Net 2005 to convert MS Access and
>> ¤ Dbase IV database to XML and vise versa. So far, I have got everything
>> ¤ working except, I couldn't find any example of creating an empty Dbase
>> IV
>> ¤ database at runtime. I would appreciate if any one here could give me a
>> lead
>> ¤ on this.
>>
>> You can use the Jet OLEDB/dBase ISAM driver combination and Jet SQL. Just
>> keep in mind that dBase
>> won't support all Jet SQL:
>>
>> Dim dBaseConnection As New
>> System.Data.OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;" & _
>> "Data
>> Source=" & "e:\My
>> Documents\dBase" & ";" & _
>>
>> "Extended Properties=dBase IV")
>>
>> dBaseConnection.Open()
>>
>> 'New table
>> Dim SQLCreateCommand As String
>> SQLCreateCommand = "CREATE TABLE Customer " & _
>> "(CustomerID INTEGER," & _
>> "LastName TEXT(50), " & _
>> "FirstName TEXT(50)," & _
>> "Phone TEXT(10)," & _
>> "Email TEXT(50))"
>>
>> Dim dBaseCommand As New
>> System.Data.OleDb.OleDbCommand(SQLCreateCommand, dBaseConnection)
>>
>> dBaseCommand.ExecuteNonQuery()
>> dBaseConnection.Close()
>>
>>
>> Paul
>> ~~~~
>> Microsoft MVP (Visual Basic)

>
>



 
Reply With Quote
 
Paul Clement
Guest
Posts: n/a
 
      15th Nov 2005
On Wed, 9 Nov 2005 13:15:28 +1100, "Sanjib Biswas" <(E-Mail Removed)> wrote:

¤ Paul,
¤
¤ Do you know a better way to transform a DataSet into Access database?
¤ Currently, I am creating table (create table..) and then inserting rows
¤ (insert into..) in the access database for each DataTable in that DataSet.
¤ It works fine but damn slow. Some of the tables have around 10,000 rows.
¤
¤ Any idea, how to improve the performance?
¤

Unfortunately, no I don't know of a better way. That is unless you can transfer the data directly
from the other data source, rather than using a DataSet.


Paul
~~~~
Microsoft MVP (Visual Basic)
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to create an issue and BF dbase in Access Janer Microsoft Access Getting Started 2 2nd Aug 2008 06:38 AM
Convert Excel database to dBASE database? RPI Marketeer Microsoft Excel Misc 1 18th Jan 2008 06:25 PM
How do I create an empty copy of an Access database? =?Utf-8?B?Sl9vX2Vfcl9n?= Microsoft Access 1 12th Oct 2006 05:29 PM
Create Empty Database? Josh Grameson Microsoft Access 3 21st Dec 2005 08:33 AM
I want to create the dbase with cross ref lists =?Utf-8?B?bXl0bW91c2U=?= Microsoft Access Database Table Design 4 19th Jul 2005 11:54 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:14 PM.