I can now connect to the database on my operational server, which uses SQL
Server authentication, with:
'dbconn=New OleDbConnection("Provider=sqloledb; Data Source=ip address;
Initial Catalog=dbName; User Id=xxxx; Password=yyyy;")
But I cannot connect to my in house SQL Server on localhost, which uses
Windows Authentication. The string:
dbconn=New OleDbConnection("Provider=sqloledb; Data
Source=UBE-IAS\SQLEXPRESS; Initial Catalog=upperbridge2; User Id=;
Password=;")
gives the error Invalid authorization specification.
What is the correct connection string for this?
Thanking you in anticipation.
Roger
"Mark Rae [MVP]" wrote:
"Roger Withnell" <Ro***********@discussions.microsoft.comwrote in message
news:95**********************************@microsof t.com...
What is the connection string in asp.net?
OleDbConnection("?")
For ASP.NET you should use a native .NET data provider whenever possible:
http://www.connectionstrings.com/?carrier=sqlserver2005
--
Mark Rae
ASP.NET MVP
http://www.markrae.net