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 > Can't see database based asp pages on localhost

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-17-09, 06:22
libbyo libbyo is offline
Registered User
 
Join Date: Oct 2009
Posts: 2
Can't see database based asp pages on localhost

HI
I'm a designer, new to asp and database world, i'm taking a course for designers that teaches how to work with asp through dreamweaver (dw) tools (i'm not a programmer).

I'm using sql server express 2008 and defined everything as i should in IIS & ODBC, & i know for sure i did everything right, cause i did the same at class & everything worked, and yet at home i keep on getting this annoying message when i'm trying to see an asp page with dynamic table on the localhost:

Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC SQL Server Driver][SQL Server]Cannot open database "books" requested by the login. The login failed.
/asp/Homework/lesson9/books1.asp, line 9


Browser Type:
Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)

Page:
GET /asp/Homework/lesson9/books1.asp


(line 9 = rs_books_cmd.CommandText = "SELECT * FROM dbo.books")

I have no problem seeing other asp pages that don't have database in them, & have no clue why & how to solve it...

can anyone help me?

THX
Reply With Quote
  #2 (permalink)  
Old 10-17-09, 11:41
Teddy Teddy is offline
Purveyor of Discontent
 
Join Date: Mar 2003
Location: The Bottom of The Barrel
Posts: 6,042
It's telling you that you're using the wrong username/password in your connection string to the database, or, alternately, you have not created a user account in the "books" database for the login you're using in your connection string.
__________________
oh yeah... documentation... I have heard of that.

*** What Do You Want In The MS Access Forum? ***
Reply With Quote
  #3 (permalink)  
Old 10-17-09, 16:51
libbyo libbyo is offline
Registered User
 
Join Date: Oct 2009
Posts: 2
Where should i creat a user?

Thanks for your reply.
I'm using windows authentication & don't have a user name & password configured.
How & where should I create it in the "books" database?

Thx again
Reply With Quote
  #4 (permalink)  
Old 10-19-09, 13:25
Teddy Teddy is offline
Purveyor of Discontent
 
Join Date: Mar 2003
Location: The Bottom of The Barrel
Posts: 6,042
__________________
oh yeah... documentation... I have heard of that.

*** What Do You Want In The MS Access Forum? ***
Reply With Quote
  #5 (permalink)  
Old 10-20-09, 01:09
myle myle is offline
(Making Your Life Easy)
 
Join Date: Feb 2004
Location: New Zealand
Posts: 1,110
try droping the dbo. from the SQL line

but first check you have the connection string right
__________________
hope this help

See clear as mud


StePhan McKillen
the aim is store once, not store multiple times
Progaming environment:
Access based on my own environment: DAO3.6/A97/A2000/A2003
VB based on my own environment: vb6 sp5
ASP based on my own environment: 5.6
VB-NET based on my own environment started 2007
SQL-2005 based on my own environment started 2008
MYLE
Reply With Quote
Reply

Thread Tools
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