Connecting Tech Pros Worldwide Forums | Help | Site Map

Database login failed

Newbie
 
Join Date: Feb 2008
Posts: 4
#1: Aug 7 '08
I try to access a same database using two different system,

a) a window based system and
b) a web based system.

Both are using VB.NET. But it seem like the there is either one of them can access the database at a time. When one of them running, the other system unable to access. The error is

"Cannot open user default database. Login failed. Login failed for user 'PY1234\Jen'."

PY1234/Jen is a window authoization.
I was using MS SQL Sever Express 2005 and the connection string are

<connectionStrings>
<add name="WhyWhy.My.MySettings.BookShopConnectionStrin g" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirector y|\bin\Debug\BookShop.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True"
providerName="System.Data.SqlClient" />
</connectionStrings>

As a conclusion i need the database to be connected by multiuser at the same time
Any help is appreciated.

Atli's Avatar
Moderator
 
Join Date: Nov 2006
Location: Iceland
Posts: 3,748
#2: Aug 7 '08

re: Database login failed


Hi.

I've moved this thread over to the Microsoft SQL Server forum.
Please try to post your questions in the appropriate forums.

Thanks.
MODERATOR
ck9663's Avatar
Expert
 
Join Date: Jun 2007
Posts: 1,925
#3: Aug 7 '08

re: Database login failed


You will need to allow multiple concurrent connection on your server. I'm not sure if SQL Express allows that.

-- CK
Reply