Welcome Guest Search | Active Topics | Log In | Register

Please help!! Startup Error: Unable to connect to the Database. Exception Message Options · View
dilson
#1 Posted : Saturday, June 14, 2008 6:23:20 AM

Rank: YAF Forumling


Joined: 6/13/2008
Posts: 4
please help,im having this error,im using sql server 2000

Startup Error: Unable to connect to the Database. Exception Message: Cannot open database "Forum2" requested by the login. The login failed. Login failed for user 'MYPC\ASPNET'. (4060)

i have this in my web.config.

<connectionStrings>
<add name="yafnet" connectionString="data source=MYPC\SQLEXPRESS;initial catalog=Forum2;uid=yaf1;pwd=yaf1;trusted_connection=true" />
</connectionStrings>

Jaben
#2 Posted : Sunday, June 15, 2008 12:21:19 AM

Rank: YAF Head Dude



Joined: 10/10/2004
Posts: 2,761
Location: Honolulu, HI
Your connection string is incorrect. Try:

"user id=yaf1;pwd=yaf1"
"Honesty may be the best policy, but it’s important to remember that apparently, by elimination, dishonesty is the second-best policy." -- George Carlin

Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAFPro Theme Created by Jaben Cargman (Tiny Gecko)
Powered by YAF 1.9.3 RC1 | YAF © 2003-2008, Yet Another Forum.NET
This page was generated in 0.060 seconds.

SourceForge.net Logo Powered by ASP.NET v2.0 411ASP.NET