dbTalk Databases Forums  

connect to paradox db via ado.net 2.0

comp.databases.paradox comp.databases.paradox


Discuss connect to paradox db via ado.net 2.0 in the comp.databases.paradox forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
vijay1
 
Posts: n/a

Default connect to paradox db via ado.net 2.0 - 06-26-2007 , 06:09 PM







I am writing an application in vb.net 2005 to insert/update/select data to
paradox database file(.db---bde 5.01)
1)what is the best way to go about it?
Note:
I have tried to connect to paradox database via odbc or oledb
a)Dim odbcconnstr As String = "Driver={Microsoft Paradox Driver (*.db )};DriverID=538;Fil=Paradox
5.X;DefaultDir=I:\pardoxData;Dbq=I:\pardoxData\;Co llatingSequence=ASCII"
b)Dim oledbconnstr As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=I:\pardoxData;Extended
Properties=Paradox 5.x;"

The problem with (a)odbc.net is unable to select data from memo/blob field.
the application is crashing

The problem with (b)oledb is : select query returning wrong results.for instance,follwing
query(exact case) dispalying correct results.
select * from mytable where firstname='JOHN'

however, following query(lower case) displaying all the records firstname
starts with 'j' or 'jo' or .....
select * from mytable where firstname='john'

thanks in advance
vijay1

Reply With Quote
  #2  
Old   
Tony McGuire
 
Posts: n/a

Default Re: connect to paradox db via ado.net 2.0 - 06-26-2007 , 10:17 PM







Quote:
I am writing an application in vb.net 2005 to insert/update/select data to

You would be better off asking your question on a vb.net newsgroup.

This group is about Paradox the Application rather than Table Format.

There may be someone who attends here who is able to help, but you'd be far
more likely to get answers on a vb.net group.

--
------------------------------
Tony McGuire




Reply With Quote
  #3  
Old   
Tom Krieg
 
Posts: n/a

Default Re: connect to paradox db via ado.net 2.0 - 06-27-2007 , 01:29 AM



I've done this with ADO but this was back in VB6. You have to use the
ODBC drivers that come with Paradox and connect via ODBC. The MS drivers
didn't work. Was a long time ago.

Tom K


vijay1 wrote:
Quote:
I am writing an application in vb.net 2005 to insert/update/select data to
paradox database file(.db---bde 5.01)
1)what is the best way to go about it?
Note:
I have tried to connect to paradox database via odbc or oledb
a)Dim odbcconnstr As String = "Driver={Microsoft Paradox Driver (*.db )};DriverID=538;Fil=Paradox
5.X;DefaultDir=I:\pardoxData;Dbq=I:\pardoxData\;Co llatingSequence=ASCII"
b)Dim oledbconnstr As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=I:\pardoxData;Extended
Properties=Paradox 5.x;"

The problem with (a)odbc.net is unable to select data from memo/blob field.
the application is crashing

The problem with (b)oledb is : select query returning wrong results.for instance,follwing
query(exact case) dispalying correct results.
select * from mytable where firstname='JOHN'

however, following query(lower case) displaying all the records firstname
starts with 'j' or 'jo' or .....
select * from mytable where firstname='john'

thanks in advance
vijay1

Reply With Quote
  #4  
Old   
vijay1
 
Posts: n/a

Default Re: connect to paradox db via ado.net 2.0 - 06-27-2007 , 07:26 AM




thanks for the info.I will post the question in vb.net news group

vijay1

Reply With Quote
  #5  
Old   
Bjorn Sagbakken
 
Posts: n/a

Default Re: connect to paradox db via ado.net 2.0 - 06-27-2007 , 12:44 PM



"vijay1" <srivijayasri (AT) yahoo (DOT) com> wrote

Quote:
I am writing an application in vb.net 2005 to insert/update/select data to
paradox database file(.db---bde 5.01)
1)what is the best way to go about it?
Note:
I have tried to connect to paradox database via odbc or oledb
a)Dim odbcconnstr As String = "Driver={Microsoft Paradox Driver
(*.db )};DriverID=538;Fil=Paradox
5.X;DefaultDir=I:\pardoxData;Dbq=I:\pardoxData\;Co llatingSequence=ASCII"
b)Dim oledbconnstr As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=I:\pardoxData;Extended
Properties=Paradox 5.x;"

The problem with (a)odbc.net is unable to select data from memo/blob
field.
the application is crashing

The problem with (b)oledb is : select query returning wrong results.for
instance,follwing
query(exact case) dispalying correct results.
select * from mytable where firstname='JOHN'

however, following query(lower case) displaying all the records firstname
starts with 'j' or 'jo' or .....
select * from mytable where firstname='john'

thanks in advance
vijay1
Are you designing a Windows application or a WEB application?

If this is a WEB application, there will be a challenge to access the
NET-file in Paradox, because the anonymous default web user has the lowest
access possible, and the IT-manager will explode if you try to assign
extended rights for this user. There are workarounds however, if this
approach is to be followed.

If this is a Windows application, it should be possible. I did this with VB
6 for a test some time ago, and this worked well enough, but was very slow
compared to host the data on an SQL server, at least 10 times slower. I have
also used VBA code with Excel to connect to Paradox, but this is like 20
times slower than connecting to an SQL server.

Here is the connection string I used with the VBA:
Dim ConStr as String
ConStr="Provider=MSDASQL.1;DBQ=g:\data\paradox\db; DefaultDir=g:\data\paradox\db;Driver={Microsoft
Paradox Driver (*.db )};DriverID=538;ParadoxNetPath=g:\data\paradox;"

->Note the ParadoxNetPath part if the Pardadox application is shared.

At the time I am trying to convert a Paradox application to ASP.NET 2.0
using Visual Studio 2005. The steps are small, like table by table and
feature by feature, form by form, but what slowly is emerging at the other
end is looking good.
I too, need to read Paradox data from the .NET application, but I have
decided to replicate the essential data from Paradox to the MS SQL server
with a small Paradox application scheduling for updates every 5 minutes.
Because of the NET file problem decribed above, I never went further on
connecting directly to Paradox.

Maybe not much of a help, but if there is any comfort: With one leg on the
riverbank of Paradox and one leg on the riverbank of .NET there is a good
chance of getting real soaking wet one day. There are moments I feel the
river beneath is getting a bit too wild for keeping a calm mind, but - there
are solutions to most issues.

Bjorn




Reply With Quote
  #6  
Old   
vijay1
 
Posts: n/a

Default Re: connect to paradox db via ado.net 2.0 - 06-27-2007 , 01:40 PM




thanks for the info Bjorn

"Bjorn Sagbakken" <bjo-sag (AT) online (DOT) no> wrote:
Quote:
"vijay1" <srivijayasri (AT) yahoo (DOT) com> wrote in message
news:46819cc3$1 (AT) pnews (DOT) thedbcommunity.com...

I am writing an application in vb.net 2005 to insert/update/select data
to
paradox database file(.db---bde 5.01)
1)what is the best way to go about it?
Note:
I have tried to connect to paradox database via odbc or oledb
a)Dim odbcconnstr As String = "Driver={Microsoft Paradox Driver
(*.db )};DriverID=538;Fil=Paradox
5.X;DefaultDir=I:\pardoxData;Dbq=I:\pardoxData\;Co llatingSequence=ASCII"
b)Dim oledbconnstr As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data

Source=I:\pardoxData;Extended
Properties=Paradox 5.x;"

The problem with (a)odbc.net is unable to select data from memo/blob
field.
the application is crashing

The problem with (b)oledb is : select query returning wrong results.for

instance,follwing
query(exact case) dispalying correct results.
select * from mytable where firstname='JOHN'

however, following query(lower case) displaying all the records firstname
starts with 'j' or 'jo' or .....
select * from mytable where firstname='john'

thanks in advance
vijay1

Are you designing a Windows application or a WEB application?

If this is a WEB application, there will be a challenge to access the
NET-file in Paradox, because the anonymous default web user has the lowest

access possible, and the IT-manager will explode if you try to assign
extended rights for this user. There are workarounds however, if this
approach is to be followed.

If this is a Windows application, it should be possible. I did this with
VB
6 for a test some time ago, and this worked well enough, but was very slow

compared to host the data on an SQL server, at least 10 times slower. I
have
also used VBA code with Excel to connect to Paradox, but this is like 20

times slower than connecting to an SQL server.

Here is the connection string I used with the VBA:
Dim ConStr as String
ConStr="Provider=MSDASQL.1;DBQ=g:\data\paradox\db; DefaultDir=g:\data\paradox\db;Driver={Microsoft

Paradox Driver (*.db )};DriverID=538;ParadoxNetPath=g:\data\paradox;"

->Note the ParadoxNetPath part if the Pardadox application is shared.

At the time I am trying to convert a Paradox application to ASP.NET 2.0

using Visual Studio 2005. The steps are small, like table by table and
feature by feature, form by form, but what slowly is emerging at the other

end is looking good.
I too, need to read Paradox data from the .NET application, but I have
decided to replicate the essential data from Paradox to the MS SQL server

with a small Paradox application scheduling for updates every 5 minutes.

Because of the NET file problem decribed above, I never went further on

connecting directly to Paradox.

Maybe not much of a help, but if there is any comfort: With one leg on the

riverbank of Paradox and one leg on the riverbank of .NET there is a good

chance of getting real soaking wet one day. There are moments I feel the

river beneath is getting a bit too wild for keeping a calm mind, but - there

are solutions to most issues.

Bjorn




Reply With Quote
Reply




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.