all groups > sql server connect > june 2007 >
You're in the

sql server connect

group:

Connection String for classic ASP to SQL Server 2005


Connection String for classic ASP to SQL Server 2005 Padmalochan Sahu
6/22/2007 3:20:01 AM
sql server connect:
How can i connect to SQL server 2005 from classic ASP without trusted
connection ? I have an application in classic ASP which is currently
connecting to SQL server 2000. with connection string as
Driver={SQL Server};Server=Servername;Database=DBNm;user id="DD"; password
="ff"; it is working fine.

I am getting error while connecting to SQL Server 2005. i have given
connection string as Provider=SQLOLEDB;Data
Source=servername\SQL2005,8701;Initial Catalog=Alps;Network=DBMSSOCN;user
id="DFDF"; password ="FF". Can anyone send me the connection string used to
connect to SQL Server 2005 from classic ASP application without trusted
connecting.

Thanks in advance
RE: Connection String for classic ASP to SQL Server 2005 Mohit K. Gupta
6/22/2007 8:17:01 AM
Here are few examples:

http://www.connectionstrings.com/?carrier=sqlserver2005

--
Mohit K. Gupta
B.Sc. CS, Minor Japanese
MCTS: SQL Server 2005


[quoted text, click to view]
Re: Connection String for classic ASP to SQL Server 2005 William (Bill) Vaughn
6/22/2007 9:49:07 AM
Well, there are a number of reasons. First, you should be using the SQL
Native Provider instead of SQLOLEDB when connecting to SS 2005. Use SQLNCLI
instead.
Next, you need to make sure that the SQL Server is configured to accept
"mixed-mode" security. This is off by default during setup.

--
____________________________________
William (Bill) Vaughn
Author, Mentor, Consultant
Microsoft MVP
INETA Speaker
www.betav.com/blog/billva
www.betav.com
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
__________________________________
Visit www.hitchhikerguides.net to get more information on my latest book:
Hitchhiker's Guide to Visual Studio and SQL Server (7th Edition)
and Hitchhiker's Guide to SQL Server 2005 Compact Edition (EBook)
-----------------------------------------------------------------------------------------------------------------------

"Padmalochan Sahu" <PadmalochanSahu@discussions.microsoft.com> wrote in
message news:D60C4786-94AB-430E-A72F-3256E6AE7AA9@microsoft.com...
[quoted text, click to view]

AddThis Social Bookmark Button