473,387 Members | 1,579 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

once more about *.dbf files

I want to use the next code:

string connString = "Provider=MSDASQL.1;" +
"Persist Security Info=False;" +
"Extended Properties=\"DSN=Файлы dBASE;" +
"DBQ=D:\\C#\\I762_DBF\\DBF;" +
"DefaultDir=D:\\C#\\I762_DBF\\DBF;" +
"DriverId=533;" +
"MaxBufferSize=2048;" +
"PageTimeout=5;\";" +
"Initial Catalog=D:\\C#\\I762_DBF\\DBF";
//
OleDbConnection dbfConn = new OleDbConnection(
connString );

And I have an unhandled exception of
type 'System.ArgumentException' occurred in
system.data.dll

Additional information: The .Net Data OLE DB Provider
(System.Data.OleDb) does not support the MSDASQL
Provider, Microsoft OLE DB Provider for ODBC Drivers.

What is wrong in my code????

Thanks to all who have read this, but specially thanks to
whom can help me ;-)
Nov 15 '05 #1
1 1384
Oleg,

You can not use ODBC connections in an OleDbConnection. You will want
to use the classes in the System.Data.Odbc namespace to access your data.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com
"Oleg Yevsyukov" <eo*@altc.lg.ua> wrote in message
news:00****************************@phx.gbl...
I want to use the next code:

string connString = "Provider=MSDASQL.1;" +
"Persist Security Info=False;" +
"Extended Properties=\"DSN=Файлы dBASE;" +
"DBQ=D:\\C#\\I762_DBF\\DBF;" +
"DefaultDir=D:\\C#\\I762_DBF\\DBF;" +
"DriverId=533;" +
"MaxBufferSize=2048;" +
"PageTimeout=5;\";" +
"Initial Catalog=D:\\C#\\I762_DBF\\DBF";
//
OleDbConnection dbfConn = new OleDbConnection(
connString );

And I have an unhandled exception of
type 'System.ArgumentException' occurred in
system.data.dll

Additional information: The .Net Data OLE DB Provider
(System.Data.OleDb) does not support the MSDASQL
Provider, Microsoft OLE DB Provider for ODBC Drivers.

What is wrong in my code????

Thanks to all who have read this, but specially thanks to
whom can help me ;-)

Nov 15 '05 #2

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

Similar topics

3
by: Vincent M. | last post by:
Hello, I have a form which allow to submit a file, I'd like to block the submit buton once it has been clicked, so I tried: function SubmitNow(item){ if(item.value=="Please wait") { return...
3
by: Sean Quinn | last post by:
Hi, I don't know if anyone has run into similar problems, but it seems like when I use `require_once(...)' with files that contain functions I get an error indicating that it can't redeclare the...
2
by: jimmyfishbean | last post by:
Hi, I am using VB6, SAX (implementing IVBSAXContentHandler). I need to extract binary encoded data (images) from large XML files and decode this data and generate the appropriate images onto...
0
by: Philippe Trottier | last post by:
Hi! I want to publish with click once an application that uses Enterprise Library, but since we use Enterprise Library, we need to deploy config files like dataConfiguration.config. So if I try...
4
by: DBC User | last post by:
Hi All, I asked this question in clickonce forum and no one seems to answer so I thought I will ask a border experts. I have an application, which uses 2 different set of files based on the...
3
by: CptDondo | last post by:
I am working on an embedded system. The entire configuration for the system is stored in an XML file, which is pretty long. It takes about 3 seconds to open the file using domxml_open_file. ...
14
by: juanpolotto | last post by:
Hi. I'm write a "passthru" application which is reading from one socket and writing to a pool of outcoming sockets. From time to time I have date duplicated in the socket and when I debug the...
2
by: Looch | last post by:
Hi All, When using the Publish wizard in C# express I'd like to designate a directory that the application will look to for updates. My question is, what files need to be in the update...
29
by: Neil | last post by:
Running a SQL 7 system on a Windows 2000 server using Access 2000 on client machines as a front end. System administrator currently reboots the server once a month. Yesterday we had some weird...
6
by: Lord Zoltar | last post by:
I built a small app with VS C# Express 2008, and published it as a click-once app. I tried installing it on my local machine, and when I click on its icon from the Start menu, nothing happens....
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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...

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.