We have recently upgraded to 2008 r2, but still have a large legacy classic asp application. While adding some new functionality I decided to get rid of some old DSNs with a new DNSless connection string, so I tried
which gives me the error
Next I tried
which worked great, however... Is MS not deprecating OLEDB so we should be moving to ODBC? Is the SQL Native Client ODBC or OLEDB? I have looked around quite a bit at connection strings and still feel fairly unsure on this issue. Going forward what is the safest connection string and what might I be missing with the SQLNCLI10 connection string?
Thx,
wb
Code:
"Provider=SQLNCLI10.1;Integrated Security="";Persist Security Info=False;User ID=myuser;password=mypwd;Initial Catalog=db;Data Source=server;"
which gives me the error
Code:
ADODB.Recordset error '800a0bb9'
Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.
Next I tried
Code:
"Provider=SQLOLEDB.1;Server=server;Database=db;UID=myuser;PWD=myuserpwd;"
which worked great, however... Is MS not deprecating OLEDB so we should be moving to ODBC? Is the SQL Native Client ODBC or OLEDB? I have looked around quite a bit at connection strings and still feel fairly unsure on this issue. Going forward what is the safest connection string and what might I be missing with the SQLNCLI10 connection string?
Thx,
wb