"gh" <gh@att.netwrote in message
news:u0*************@TK2MSFTNGP06.phx.gbl...
>>>>How can I get an ODBC connection, to work with the code above?
You're using SqlConnection - that's only for SQL Server. If you
absolutely must use ODBC, then you need OdbcConnection.
But why are you trying to use ODBC when there is a perfectly good
native .NET data provider available...?
http://cc.codegear.com/item/25298
I have the bdp driver installed. I added the bdp connection, adapter to
my toolbox, but in my asp,net app they are grayed out. Any idea what
would cause this? I am using VS 2008 and C#.
BDP? Do you mean the Borland Data Provider...?
Yes.
OK, as has been mentioned previously, SqlConnection is *ONLY* for Microsoft
SQL Server - trying to use it with another RDBMS is not going to work.
Since you're using the Borland Data Provider, I'm assuming that you're
trying to connect to Borland InterBase. If so, then there is no need for
OleDb or <shuddersODBC, as there is a perfectly good native .NET data
provider available - you can find everything you need (including code
samples) here:
http://dn.codegear.com/article/31939
--
Mark Rae
ASP.NET MVP
http://www.markrae.net