473,467 Members | 2,008 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Implementing an ODBC driver for a database written in C#...

I am working on a specialised database that is written in C#. I would
like to create an ODBC driver that allows external programs to conenct
to my database. Is is possible to support ODBC in a high-level .NET
language like C#? Or will I need to somehow wrap support for an ODBC
driver written in the C programming language with .NET interoperability
tools?

Can someone point me to some documentation about implementing an ODBC
driver via C#, if this is possible?

Thanks,

Scott Huey

Jul 24 '06 #1
1 5346
Scott,

You will have to use a stub written in unmanaged code to provide an ODBC
driver. The reason for this is that ODBC requires the providers to export
functions from a dll, something that C# can not produce.

I have to ask, why ODBC? I mean, can you not use OLEDB even? You can
write an OLEDB provider in .NET, since you can implement the required
interfaces using COM interop.

Hope this helps.

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

<re****************@gmail.comwrote in message
news:11*********************@m79g2000cwm.googlegro ups.com...
>I am working on a specialised database that is written in C#. I would
like to create an ODBC driver that allows external programs to conenct
to my database. Is is possible to support ODBC in a high-level .NET
language like C#? Or will I need to somehow wrap support for an ODBC
driver written in the C programming language with .NET interoperability
tools?

Can someone point me to some documentation about implementing an ODBC
driver via C#, if this is possible?

Thanks,

Scott Huey

Jul 24 '06 #2

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

Similar topics

0
by: uli2003wien | last post by:
Dear MS-SQL-Server-group maybe my message for MySQL is also for you of interest, since the MS-SQL-Server and it's binary_checksum function is involved...
8
by: Kona | last post by:
Hello, I would like to access a UDB database on a Sun Solaris 5.8. The client is a XP station. When I list the default odbc drivers, I found "Microsoft ODBC Driver for DB2". But I think it can not...
1
by: Tolik Gusin | last post by:
Hello All, Whether supports DB2 UDB 8.2 FP7 for Linux the ODBC-driver ? If yes, whether that enters this driver into delivery DB2 UDB 8.2 FP7 for Linux ? If it is possible, bring please an...
8
by: Dakkar | last post by:
I wrote a program with c# for connecting mysql and taking data from it but when someone without me try to execute the program they are taking this error ERROR Data source name not found and...
1
by: tommydkat | last post by:
Hi! We've switched from Developer Studio 6.0 to Visual Studio .net 2003. Our application compiles fine with Visual Studio .net 2003 but when it runs, it uses the Microsoft ODBC driver as is shown...
0
by: bazzer | last post by:
hey, i am using visual basic.net 2003 and have an ASP.NET webform application thats accessing a microsoft access 2003 database. i kept getting the following error when i tried to run it: ERROR ...
0
by: bazzer | last post by:
hey, im trying to access a microsoft access database from an ASP.NET web application in visual basic 2003.NET. i get the following error when i try running it: Server Error in...
4
by: paulnamroud | last post by:
Hi guys, I need your help!!!! I have installed and configured a new server called "intranetnew" in order to replace the old server "intranet." With the new server, i'm able to connect to...
5
by: insomniux | last post by:
Hi, I need to install an ODBC driver for a database, but our system- administrator does not allow me to install it on the VPN-server. Is there a way to install an ODBC driver for a separate user....
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
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,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...
1
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...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.