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!

Login Failed for User '\'

Status
Not open for further replies.

heathL

MIS
Jan 30, 2003
10
US
I searched and couldn't find this error. Here is my code, it is failing at the red area. Thanks.

Dim cnNewsStories 'ADODB connection string
Dim rsNewsStories 'Recordset variable
Dim sql 'Holds the SQL statement
Dim cnUser 'Holds the SQL user name
Dim cnPassword 'Holds the SQL password
Dim ipaddress 'Holds the users IP Address
Dim sFullUser 'Holds the users NT ID
Dim pkey 'Holds the information from the pkey field on the previous form

'Setting pkey equal to the pkey field on the previous form
pkey = request.form("pkey")

'Setting SQL user name and password
cnUser = "webusers"
cnPassword = "webpage"

'Setting connection and opening ODBC
Set cnNewsStories = Server.CreateObject("ADODB.Connection")
cnNewsStories.open "CompanyNews", cnUser, cnPassword

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top