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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

adding odbc username + password to script

Status
Not open for further replies.

johnv20

Programmer
Sep 26, 2001
292
US
Hi,
using DSN connection to access sql database with the DSN setup to use the sql server authentication username and password. However once I run the asp its defaulting back to my NT login name.

How do I add the username sa to the following script

<%@ Language=JavaScript %>
<%
DSN = &quot;DSN=EMRDATA1&quot;;
Conn = Server.CreateObject(&quot;ADODB.Connection&quot;);
Conn.Open(DSN);
 
HI

DSN = &quot;DSN=EMRDATA1&quot;;UID=userID;pwd=password&quot;;

hth

Bastien

There are many ways to skin this cat,
but it still tastes like chicken
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top