Forums

ASP

This topic is locked

Ms SQL DB Connection

Posted 28 Oct 2009 18:14:24
1
has voted
28 Oct 2009 18:14:24 Andy None posted:
Hi - I'm using the connect string below to connect to my MS SQL DB (all local). When i test the recorsets in Dreamweaver, all works fine. But when i browse the .asp page, i get this error!

"Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC SQL Server Driver][SQL Server]Cannot open database "mydatabase" requested by the login. The login failed."

As far as i'm aware, i have setup the MS SQL Database (migrated from Access DB) as 'Windows Authentication".

Anyone else experienced the same or knows what the problem is?

Thanks in advance -

Andy

-------connection string--------
Dim MM_conn_STRING
MM_conn_STRING = "Driver={SQL Server}; Server=WEBDESIGNAH\SQLEXPRESS; Database=mydatabase; UID=; PWD=;"

Replies

Replied 12 Dec 2009 04:05:47
12 Dec 2009 04:05:47 Javier Castro replied:
Check you db permissions. It could be that.

Reply to this topic