If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > sql server 2000 connection error

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-21-03, 05:28
aravind20 aravind20 is offline
Registered User
 
Join Date: Jul 2003
Location: chennai,India
Posts: 4
sql server 2000 connection error

hello all,i am using sql server 2000 and ASP .when i connect to db i am getting this error.

Microsoft OLE DB Provider for ODBC Drivers (0x80040E4D)
[Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user 'WIGGUM\IUSR_WIGGAM'.
/pcdisplay/frontend.asp, line 17

even i entered correct passwd .

my connection string is

dim objConn
Set objConn = Server.CreateObject("ADODB.Connection")
objConn.Open "DSN=wig; UID=test;PWD=hello"
objConn.Close

how can i rectify this? i like to display query results in a html table

exactly i like to get select count(*) from a table .how shall i execute query and assign the result to a variable. pls clear my doubts.thx in advance

-regards
aravind
Reply With Quote
  #2 (permalink)  
Old 07-23-03, 01:21
Memnoch1207 Memnoch1207 is offline
Registered User
 
Join Date: Jan 2003
Location: Midwest
Posts: 138
you need to specify the database name in the statement

Code:
objConn.Open "DSN=wig;UID=test;PWD=hello;Database=dbname"
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On