Connecting Tech Pros Worldwide Forums | Help | Site Map

connection to sql server

Newbie
 
Join Date: May 2007
Posts: 6
#1: May 30 '07
Hi,

Im using asp code. how to i connect to sql server. could anyone provide me the coding to connect. and how to setup the connection.

debasisdas's Avatar
Moderator
 
Join Date: Dec 2006
Location: Bangalore ,India
Posts: 7,508
#2: May 30 '07

re: connection to sql server


Hi
You can find the resources Here or Here
Newbie
 
Join Date: May 2007
Posts: 6
#3: May 31 '07

re: connection to sql server


hi,

im using this coding for the connection to sql server

<%
Set demoConn = Server.CreateObject("ADODB.Connection")
demoPath="DRIVER={SQLServer};" & _
"SERVER=servername;UID=username;" & _
"PWD=password;DATABASE=database"
demoConn.open demoPath
%>

but still couldnt, is there any setup that i have to do. something like odbc setup or any else setup. thanks
Reply