473,769 Members | 3,383 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

dBase Connection


HI,

How to connect to the dBase database?? One option is to create a DSN and
use it.But I want to do it in some other way like just passing a
connection string or like that.

Thanks in advance.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 15 '05 #1
3 6669
http://www.mj10777.de/NETFramework/A...orer/index.htm

This Project can also read dBase Files
See /DataBase/DataBase.cs Property i_EngineType where the Connection strings
for ODBC, OLEDB and Sql are built.
dBase is EngineType 10, 11 and 12.

The Help file also documents the Connection Strings.

Mark Johnson, Berlin Germany
mj*****@mj10777 .de

"Kshitij Rajhans" <ks************ *@rediffmail.co m> schrieb im Newsbeitrag
news:uD******** ******@TK2MSFTN GP10.phx.gbl...

HI,

How to connect to the dBase database?? One option is to create a DSN and
use it.But I want to do it in some other way like just passing a
connection string or like that.

Thanks in advance.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 15 '05 #2
In news: uD************* *@TK2MSFTNGP10. phx.gbl,
Kshitij Rajhans <ks************ *@rediffmail.co m> wrote:
How to connect to the dBase database?? One option is to create a DSN
and use it.But I want to do it in some other way like just passing a
connection string or like that.


Hi Kshitij,

You may be able to read your Dbase tables with the FoxPro and Visual FoxPro
OLE DB provider, available from
http://msdn.microsoft.com/vfoxpro/do...s/default.aspx.

--
Cindy Winegarden MCSD, Microsoft Visual FoxPro MVP
ci************* *@mvps.org www.cindywinegarden.com

Nov 15 '05 #3
On Wed, 03 Mar 2004 22:51:54 -0800, Kshitij Rajhans wrote:
HI,

How to connect to the dBase database?? One option is to create a DSN and
use it.But I want to do it in some other way like just passing a
connection string or like that.

Have a look at "ADO Connection Strings" By Carlos Antollini
http://www.codeproject.com/database/...ionstrings.asp

BTW, DON'T CLICK ON THE SHORTCUTS, they are pointing to the wrong page.
Just browse the page!
The way I usually do it is to create an UDL file, just create a textfile
and rename it so it has the extension .UDL
Then double-click on it. You will now get a "wizard" for creating a
connection string.

I select 'Microsoft Jet 4.0 OLE DB' as the provider.
Then you need to edit Extended Properties under the All tab
it should have the value: dBase 5.0
NB! Microsoft does NOT support dBase database formats above 5.0!!!

The big advantage of the UDL file is that you can change everything without
touching the program!

To open the database just enter the path to the udl file.

NB! This is ADO in C++ and not for ADO.NET, but I think you get the
picture...
CString udl
udl = "c:\\dummy.udl" ; // here you read the registry or something
m_pConn->Open(_bstr_t(u dl),
_bstr_t ( "" ),
_bstr_t ( "" ),
adModeUnknown );

// Anders

--
To me, boxing is like couples having sex, except there's no foreplay,
no naked people and the people are hitting each other with big red gloves.
Nov 15 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
2201
by: Stan Cook | last post by:
Does anyone know how or what I can use to open, read and extract data from a dbase database? I haven't found anything of much use with accompanying documentation.
4
6154
by: Matt Young | last post by:
I've been tasked with integrating an older management system based on DBF files with my snappy new ASP application to provide users of the ASP application with real-time data from the management system. I figure with DBF files, I should use either the DBase drivers or the FoxPro drivers to connect to the database. The integration has gone quite smoothly until yesterday. This means that my connection strings work well based on the...
10
7923
by: level8 | last post by:
I would like to see a Clipper/dbase DBF file as a table in SQL Server 7.0. How can I SELECT rows from DBF file? Should I use OLE DB Provider or ODBC, and how?
2
1284
by: Kshitij | last post by:
HI, How to connect to the dBase database?? One option is to create a DSN and use it.But I want to do it in some other way like just passing a connection string or like that. Thanks in advance.
1
2896
by: loreille | last post by:
To insert a record in a Ms Access database and be able to retrieve the newly created ID (autonumber) I used the code below (code 1). Now, the problem is that this is not very secure and that, if for example an insertion contains a ' or a " this code fails. It is much better to work with @parameters. So could someone change my code to make it work with @parameters and
6
4132
by: Tomek | last post by:
Hi, Please help me with Data Connections into dBase files. I have catalog with lot of files like *.dbf and *.mdx . Every file contains one table (I can see it in MS Access). How can I make connections into this/that folder/files in VB.NET project? Tomek
4
1749
by: JeffP | last post by:
datagrid1 has a single column contact I'm getting an invalid datasource at... Me.DataGrid1.DataSource = cmd I don't want to use the methods here, I usually use SQLHelper psuedo code: dim ds as new dataset = execute(....... I just want to get my single colum populated.....
3
5708
by: Dave | last post by:
I'm writing a c# Windows program that needs to be able to insert records into a dbase table. I can read it using a dataset but can't insert records. I receive the following error, ERROR Unexpected error from external database driver (15877). What is wrong?
2
11155
by: bcbrock | last post by:
I am trying to figure out how to query some data out of a dbase IV (.dbf) file sitting on a remote server from my MySQL/PHP/Web Server. Both servers are Windows Server 2003 SP2. My MySQL/PHP/Web server is running PHP 4.3.11, MySQL 4.0.24, and IIS. I have set a system DSN on the remote machine for the directory that contains the dbase file. The DSN name is SASIxp, and the actual file I'm trying to connect to is ADST.DBF.
0
9586
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9423
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10210
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10043
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9861
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7406
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6672
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
3956
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3561
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.