473,769 Members | 2,143 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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=.\\SQLEX PRESS;initial catalog=PhotoAl bum;" +
"integrated security=SSPI;p ersist security info=False;" +
"workstatio n id=WILLIAM;pack et size=4096";

I have also tried:

"Data Source=.\\SQLEX PRESS;" +
"AttachDbFilena me=PhotoAlbum.m df;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 1566
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
"wschlichtm an" <ws**********@d iscussions.micr osoft.com> escribió en el
mensaje news:F8******** *************** ***********@mic rosoft.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=.\\SQLEX PRESS;initial catalog=PhotoAl bum;" +
"integrated security=SSPI;p ersist security info=False;" +
"workstatio n id=WILLIAM;pack et size=4096";

I have also tried:

"Data Source=.\\SQLEX PRESS;" +
"AttachDbFilena me=PhotoAlbum.m df;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
"wschlichtm an" <ws**********@d iscussions.micr osoft.com> escribió en el
mensaje news:F8******** *************** ***********@mic rosoft.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=.\\SQLEX PRESS;initial catalog=PhotoAl bum;" +
"integrated security=SSPI;p ersist security info=False;" +
"workstatio n id=WILLIAM;pack et size=4096";

I have also tried:

"Data Source=.\\SQLEX PRESS;" +
"AttachDbFilena me=PhotoAlbum.m df;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
3030
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... http://starship.python.net/crew/fdrake/manuals/krb5py/krb5py.html This looks all well and good, but the 'original software package' referenced here doesn't work, and as far as I can tell, doesn't even seem to exist (and I do have Handler). The best I could find in...
1
1541
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 working with it. The problems I've already ran into were: "Cannot Generate SSPI Context" (which I've already resolved), and a more serious problem which prevents me from connecting to a linked server. (double hop, see...
2
2628
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 is not able to access a specific network resource and I just can't figure out why. First of all, let me say this worked fine with IIS running on Win2000 Server. This has not worked since I upgraded to Windows Server 2003. My Platform: Windows...
1
1748
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 This works fine if Sql Server is set up as Sql and Windows Authentication. If I change the Sql Server to Windows Authentication, I get the following page:
8
3434
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 our intranet server - my domain user "DOM\nme" is correctly authenticated and authorized to view the ASP.NET page on our intranet. The ASP.NET application uses impersonation (<identity impersonate="true"> in Web.config).
3
2542
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 automatically redirect to his own files. i have the following file-structure:
3
3497
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 SQL Server is on the same PC of the Windows Service the connection works OK. The same code works in a Windows Form using same user and authentication methods to the SQL Server on a different machine.
4
2354
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, I've set it up to run SQL Authentication and I have added a new user called "MyUser" and applied a password. This user/password is used in my connection string whick looks like this: Server=.\SQLEXPRESS;Database=MyDB;User...
1
1353
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 following set: <authentication mode="Windows"/> <identity impersonate="true"/>
2
1498
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 any sample. Appreciate if someone provide some lead. SF
0
9583
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9423
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10210
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8869
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7406
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5297
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5445
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3560
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2814
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.