connect string ASP / SQL EXPRESS


S

shank

What's the correct connect string for ASP classic and SQL Express installed
on the same web server? The web host has a control panel that generates the
below string. But I get this error:

Multiple-step OLE DB operation generated errors. Check each OLE DB status
value, if available. No work was done.
/teststate.asp, line 7 ... which is ... conn.open ConStr


<%
Dim ConStr
ConStr = "Data Source=(local)\sqlexpress;Network Library=;Connection
Timeout=15;Packet Size=4096;Integrated Security=no;User ID=sth;Encrypt=no;"

set conn = CreateObject("ADODB.Connection")
conn.open ConStr
sql = "SELECT DISTINCT Abbrev, State FROM States ORDER BY State"
%>

thanks
 
Ad

Advertisements


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top