|
-
Dec 8th, 2004, 09:18 AM
#1
Thread Starter
Fanatic Member
connection
This is the connection string that I would like to use to connect to sql 2K
<add key="ConnectionString" value="server=(local);database=DCTKB;trusted_connection=true"/>
The error message is:
Login failed for user 'GBWS-00065768\ASPNET
In the query analyser I can log on to my local machine which is called GBWS-00065768 using windows authentication
How can i connect to the database using the above connectionstring?
Thanks
-
Dec 8th, 2004, 09:23 AM
#2
Hyperactive Member
Re: connection
Had the same problem and I spent ages beating SQL server into submission the other day
I believe I had to add my user account 'domain\user' under EM>Security>Logins
You can add groups as well so adding 'domain\administrators' is mebbe what you want
-
Dec 8th, 2004, 09:25 AM
#3
Hyperactive Member
Re: connection
clicked post, THEN thought about the answer.
I may have just assigned the aspnet user "public" access to my database
it was definetly summat I clicked in there lol
-
Dec 8th, 2004, 09:26 AM
#4
Thread Starter
Fanatic Member
Re: connection
I have that already.
Any thoughts?
Thanks
-
Dec 8th, 2004, 10:08 AM
#5
Hyperactive Member
Re: connection
A couple. One involves going to pub.
The other being, do you have to use that connection string?
What happens if you use this one;
data source=(local);initial catalog=DCTKB;integrated security=SSPI;persist security info=False;packet size=4096
-
Dec 8th, 2004, 10:30 AM
#6
Frenzied Member
Re: connection
Have you added the user {DOMAINNAME}\ASPNET in both the instance of SQL Server and the database you wish to access?
-
Dec 8th, 2004, 10:42 AM
#7
Thread Starter
Fanatic Member
Re: connection
Thanks guys.
The problem was that I had to reset the sql server security to sql as well as windows.
-
Dec 8th, 2004, 10:47 AM
#8
Frenzied Member
Re: connection
heh, I didn't even think of that. FWIW, I guess you can log in as a specific user if you want to, or need to, rather than use integrated and end up being ASPNET.
-
Dec 8th, 2004, 11:28 AM
#9
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|