473,394 Members | 1,645 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Windows Authentication Problems

In my Windows application, I am attempting to access an SQL database called
PhotoAlbum.mdf. I keep receiving the following error:

Cannot open database "PhotoAlbum" requested by the login. The login failed.
Login failed for user 'William\Will'.

Here is my connection string:

"data source=.\\SQLEXPRESS;initial catalog=PhotoAlbum;" +
"integrated security=SSPI;persist security info=False;" +
"workstation id=WILLIAM;packet size=4096";

I have also tried:

"Data Source=.\\SQLEXPRESS;" +
"AttachDbFilename=PhotoAlbum.mdf;Integrated Security=True;" +
"User Instance=True";

which also met with problems of a different nature.

I am running SQL 2005 Beta 2 on a Windows XP Pro machine w/SP2.

Any insight would be appreciated.
Nov 17 '05 #1
2 1548
Is your server configured for Mixed Authentication? (Windows & SQL) if
so... does the user you want to use access to the database selected? does it
have a default database?

Regards,

--
Angel J. Hernández M.
MCP - MCAD - MCSD - MCDBA
http://groups.msn.com/desarrolladoresmiranda
http://www.consein.com
"wschlichtman" <ws**********@discussions.microsoft.com> escribió en el
mensaje news:F8**********************************@microsof t.com...
In my Windows application, I am attempting to access an SQL database
called
PhotoAlbum.mdf. I keep receiving the following error:

Cannot open database "PhotoAlbum" requested by the login. The login
failed.
Login failed for user 'William\Will'.

Here is my connection string:

"data source=.\\SQLEXPRESS;initial catalog=PhotoAlbum;" +
"integrated security=SSPI;persist security info=False;" +
"workstation id=WILLIAM;packet size=4096";

I have also tried:

"Data Source=.\\SQLEXPRESS;" +
"AttachDbFilename=PhotoAlbum.mdf;Integrated Security=True;" +
"User Instance=True";

which also met with problems of a different nature.

I am running SQL 2005 Beta 2 on a Windows XP Pro machine w/SP2.

Any insight would be appreciated.

Nov 17 '05 #2
1) I don't remember what mode I installed. I'm pretty sure I went with
Windows Auth though. When prompted in VS for a database connection, I am
offered both choices.

2) I'm the user, and the admin. It's all located on my workstation.

3) I have the default instance SQLEXPRESS but no attached databases.

New information:

Recently, I changed my account password on my local system from no password,
which is what I had when I installed SQL, to a password with content. The
database was created after the password was in place. I don't know if this
has any bearing on my problem.

Also, I tried attaching the database to my project using Database Explorer
and continue to experience the login error.

My sorry I'm an idiot, but I just recently decided to return to programming
after many years of other IT work.

"Angel J. Hernández M." wrote:
Is your server configured for Mixed Authentication? (Windows & SQL) if
so... does the user you want to use access to the database selected? does it
have a default database?

Regards,

--
Angel J. Hernández M.
MCP - MCAD - MCSD - MCDBA
http://groups.msn.com/desarrolladoresmiranda
http://www.consein.com
"wschlichtman" <ws**********@discussions.microsoft.com> escribió en el
mensaje news:F8**********************************@microsof t.com...
In my Windows application, I am attempting to access an SQL database
called
PhotoAlbum.mdf. I keep receiving the following error:

Cannot open database "PhotoAlbum" requested by the login. The login
failed.
Login failed for user 'William\Will'.

Here is my connection string:

"data source=.\\SQLEXPRESS;initial catalog=PhotoAlbum;" +
"integrated security=SSPI;persist security info=False;" +
"workstation id=WILLIAM;packet size=4096";

I have also tried:

"Data Source=.\\SQLEXPRESS;" +
"AttachDbFilename=PhotoAlbum.mdf;Integrated Security=True;" +
"User Instance=True";

which also met with problems of a different nature.

I am running SQL 2005 Beta 2 on a Windows XP Pro machine w/SP2.

Any insight would be appreciated.


Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Brian Beck | last post by:
After a bit of searching I haven't been able to find a definite resource for Kerberos authentication from Python. Any help would be appreciated. Here's what I've found... ...
1
by: Adi Sapir | last post by:
Hi, We're currently planning to migrate from SQL Auth to Windows Auth. Personally, I do not have too much experience with Windows authentication but have heard that there are some problems when...
2
by: Joseph Geretz | last post by:
I'm having a credentialing problem in my web application. Actually, I don't think this is an IIS security issue, since I'm able to access the page I'm requesting. However, the executing page itself...
1
by: Thomas Scheiderich | last post by:
I am having a problem connecting to an Sql Server using Windows Authentication. I am using the following command: server=Raptor;uid=tfs;password=tol1ee;database=ABC;Network Library =dbmssocn ...
8
by: Nils Magnus Englund | last post by:
Hello, I am having trouble using Integrated Windows Authentication between our intranet server and our database server, both of which are on our local domain. Windows authentication works for...
3
by: sefe dery | last post by:
hi ng, i try to create a asp.net 1.0 website on windows server 2003(Servername: ServerX) with iis 6.0. PROBLEM: The user should login with his windows credentials in basic.aspx and...
3
by: Evan Camilleri | last post by:
I have a problem for a Windows Service to login on an SQL server (different machine) - neither Windows Authentication nor SQL Authentication worked. LOGIN FAILED FOR USER sa (for example). If...
4
by: Preben Zacho | last post by:
Hi there The scenario I got is this: I have created a Windows application in VS and I want to deploy it to another machine running Windows Vista. Since I have no control over this other machine,...
1
by: lgalusha | last post by:
We creating intranet web pages which run under ASP.NET and IIS 6. We don't want the user to have to type a password so we are using Windows Authentication. The web.config file has the...
2
by: SF | last post by:
Hi, I am nes to ASP.NET. I try to develop on online form for my office that requiore use to login using Windows Authentication (Use name active directory). I am search to web and could not found...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.