Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

connection string

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0

my connection is all wrong how do i fix this?





Session.timeout = 60

If IsObject(Session("cpedis1_conn")) Then
Set conn = Session("cpedis1_conn")
Else
Set conn = Server.CreateObject("ADODB.Connection")
conn.open "driver=SQL
Server;server=cpmicro1;UID=laker; PWD=zoloft;database=30c"
Set Session("cpedis1_conn") = conn
End If
%>
<%
If IsObject(Session(&quot;Equipment_Listing_rs&quot;)) Then
Set rs = Session(&quot;Equipment_Listing_rs&quot;)
Else
sql = &quot;SELECT * FROM [Equipment Listing]&quot;
Set rs = Server.CreateObject(&quot;ADODB.Recordset&quot;)
rs.Open sql, conn, 3, 3
If rs.eof Then
rs.AddNew
End If
Set Session(&quot;Equipment_Listing_rs&quot;) = rs
End If
%>
 
Put curly brackets around the driver
ie driver={SQL Server} codestorm
Fire bad. Tree pretty. - Buffy
select * from population where talent > 'average'
<insert witticism here>
 
arya009

To keep the smiley face out of your response turn of the &quot;Emotions/Smileys&quot; located at the bottom of this reply in &quot;Step 2 Options&quot;
DougP, MCP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top