Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
SQL Server 2008
»
Security (SS2K8)
»
sql server login failure
sql server login failure
Rate Topic
Display Mode
Topic Options
Author
Message
sej2008
sej2008
Posted Tuesday, March 05, 2013 5:58 AM
SSC Journeyman
Group: General Forum Members
Last Login: Friday, May 10, 2013 1:00 AM
Points: 76,
Visits: 120
I am working with asp.net and try to access through my login form sql server
database mydb
when logging in as windows user my_pc\xyzuser it fails throwing error :
login failed for user my_pc\xyzuser can not access database mydb.user does not exists.
what should be done for workaround
connectionstring is:
data source=localhost;integrated security=true;initial catalog=mydb
pls suggest different solution.....??
Post #1426777
anthony.green
anthony.green
Posted Tuesday, March 05, 2013 6:01 AM
SSCertifiable
Group: General Forum Members
Last Login: Friday, April 12, 2013 3:51 AM
Points: 5,075,
Visits: 4,831
Create the user in the database and assign it the correct permissions or change your connection string to use SQL auth with an account that has access.
Want an answer fast? Try here
How to post data/code for the best help - Jeff Moden
Need a string splitter, try this - Jeff Moden
How to post performance problems - Gail Shaw
CrossTabs-Part1
&
Part2 - Jeff Moden
SQL Server Backup, Integrity Check, and Index and Statistics Maintenance - Ola Hallengren
Managing Transaction Logs - Gail Shaw
Troubleshooting SQL Server: A Guide for the Accidental DBA - Jonathan Kehayias and Ted Krueger
Post #1426780
kevaburg
kevaburg
Posted Wednesday, March 20, 2013 4:01 AM
SSC-Enthusiastic
Group: General Forum Members
Last Login: Today @ 8:00 AM
Points: 159,
Visits: 190
Firstly create your user login at the instance-level and map the user to the database you want access to.
Secondly, from the Security tab of the database, assign the user the correct rights and permissions and accessibility should be assured!
If it isn't then I suggest checking your collation to ensure that, if your collation is Case Sensitive (CS) and not Case-Insensitive (CI) that you have typed your database exactly as presented.
Post #1433108
sqlnaive
sqlnaive
Posted Monday, April 29, 2013 7:47 AM
SSCrazy
Group: General Forum Members
Last Login: Today @ 4:30 AM
Points: 2,657,
Visits: 1,662
Sej, Though it's little old post but did you got it rectified ? As the SQL masters told, the error message clearly shows that there is no user created in database level. So you need to create DB user in your database mapping it to the login you created at server level. Thereafter grant the DB level user some permissions and thereafter try. Remember:
Step 1: Create login at server level [security at server level is called login]
Step 2: Create user at DB level [Login created at Step 1 to be mapped to this new user] Map permissions to this user as per requirement.
Step 3 (not mandatory): Repeat Step 2 in each database, in which this new user requires permission.
Post #1447526
« Prev Topic
|
Next Topic »
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.