A
Alex K.
Hi all
I just noticed that OdbcConnection (.NET 2.0 SP1) does not accept a
connection string that works file in ADO 2.8. For example, following string
gives me an error "Login failed ... cannot open database "AdventureWorks"":
Provider=MSDASQL.1;Password=...;Persist Security Info=True;User
ID=...;Extended Properties="Description=Adventure;DRIVER=SQL
Server;SERVER=...\sqlexpress;UID=...;PWD=...;DATABASE=AdventureWorks"
I figured out that last quotation mark causes the problem: if I remove it,
it works fine - but then it does not work in ADO 2.8!
Can anybody confirm this is a known problem with .NET 2.0 ODBC?
(BTW I tried both drivers SQL Server and SQL Native Client with the same
results)
Thank you
Alex
I just noticed that OdbcConnection (.NET 2.0 SP1) does not accept a
connection string that works file in ADO 2.8. For example, following string
gives me an error "Login failed ... cannot open database "AdventureWorks"":
Provider=MSDASQL.1;Password=...;Persist Security Info=True;User
ID=...;Extended Properties="Description=Adventure;DRIVER=SQL
Server;SERVER=...\sqlexpress;UID=...;PWD=...;DATABASE=AdventureWorks"
I figured out that last quotation mark causes the problem: if I remove it,
it works fine - but then it does not work in ADO 2.8!
Can anybody confirm this is a known problem with .NET 2.0 ODBC?
(BTW I tried both drivers SQL Server and SQL Native Client with the same
results)
Thank you
Alex