473,387 Members | 1,791 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,387 software developers and data experts.

sql connection

Hi,

I've added a new user as ASPNET in my laptop (where I am the only user) and
I'm using this connection string:
"Data Source=(local);Initial Catalog=Orchestra;User Id=ASPNET;Password=boby"
but it's giving me this error when tring to access any table in my Orchestra
database: "Not associated with a trusted SQL Server connection".
Thanks.
--
Regads,
Rochdi
Nov 17 '05 #1
8 1967
Mike,

You have already tried

"Integrated Security = sspi;"

Instead of "user and password"

For that local database.

I hope this helps,

Cor
Nov 17 '05 #2
yes I tried by using the following:
"Data Source=(local);Initial Catalog=Orchestra;Integrated Security=SSPI"
and also I tried:
"Server=(local);Database=Orchestra;Integrated Security=SSPI"
and its giving me this error:
"failed for user 'CHUBB-19EE0184D\ASPNET'"
--
Regads,
Rochdi
"Cor Ligthert [MVP]" wrote:
Mike,

You have already tried

"Integrated Security = sspi;"

Instead of "user and password"

For that local database.

I hope this helps,

Cor

Nov 17 '05 #3
Mike,

I don't know this behaviour on a local SQLserver.

Therefore what version of SQL server is this.

Cor

"Mike" <Mi**@discussions.microsoft.com> schreef in bericht
news:52**********************************@microsof t.com...
yes I tried by using the following:
"Data Source=(local);Initial Catalog=Orchestra;Integrated Security=SSPI"
and also I tried:
"Server=(local);Database=Orchestra;Integrated Security=SSPI"
and its giving me this error:
"failed for user 'CHUBB-19EE0184D\ASPNET'"
--
Regads,
Rochdi
"Cor Ligthert [MVP]" wrote:
Mike,

You have already tried

"Integrated Security = sspi;"

Instead of "user and password"

For that local database.

I hope this helps,

Cor

Nov 17 '05 #4
Version 8.00.194
--
Regads,
Rochdi
"Cor Ligthert [MVP]" wrote:
Mike,

I don't know this behaviour on a local SQLserver.

Therefore what version of SQL server is this.

Cor

"Mike" <Mi**@discussions.microsoft.com> schreef in bericht
news:52**********************************@microsof t.com...
yes I tried by using the following:
"Data Source=(local);Initial Catalog=Orchestra;Integrated Security=SSPI"
and also I tried:
"Server=(local);Database=Orchestra;Integrated Security=SSPI"
and its giving me this error:
"failed for user 'CHUBB-19EE0184D\ASPNET'"
--
Regads,
Rochdi
"Cor Ligthert [MVP]" wrote:
Mike,

You have already tried

"Integrated Security = sspi;"

Instead of "user and password"

For that local database.

I hope this helps,

Cor


Nov 17 '05 #5
Hello Mike,

Have u tried to grant admin role to your user?

M> yes I tried by using the following:
M> "Data Source=(local);Initial Catalog=Orchestra;Integrated
M> Security=SSPI"
M> and also I tried:
M> "Server=(local);Database=Orchestra;Integrated Security=SSPI"
M> and its giving me this error:
M> "failed for user 'CHUBB-19EE0184D\ASPNET'"
M> "Cor Ligthert [MVP]" wrote:
M>
Mike,

You have already tried

"Integrated Security = sspi;"

Instead of "user and password"

For that local database.

I hope this helps,

Cor

---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/members/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
Nov 17 '05 #6
yes
--
Regads,
Rochdi
"Michael Nemtsev" wrote:
Hello Mike,

Have u tried to grant admin role to your user?

M> yes I tried by using the following:
M> "Data Source=(local);Initial Catalog=Orchestra;Integrated
M> Security=SSPI"
M> and also I tried:
M> "Server=(local);Database=Orchestra;Integrated Security=SSPI"
M> and its giving me this error:
M> "failed for user 'CHUBB-19EE0184D\ASPNET'"
M> "Cor Ligthert [MVP]" wrote:
M>
Mike,

You have already tried

"Integrated Security = sspi;"

Instead of "user and password"

For that local database.

I hope this helps,

Cor

---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/members/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche

Nov 17 '05 #7
Hello Mike,

Can u connect successfully by QueryAnalyzer?

M> yes
Have u tried to grant admin role to your user?
M> yes I tried by using the following:
M> "Data Source=(local);Initial Catalog=Orchestra;Integrated
M> Security=SSPI"
M> and also I tried:
M> "Server=(local);Database=Orchestra;Integrated Security=SSPI"
M> and its giving me this error:
M> "failed for user 'CHUBB-19EE0184D\ASPNET'"
M> "Cor Ligthert [MVP]" wrote:
M>


---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/members/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
Nov 17 '05 #8
"Mike" <Mi**@discussions.microsoft.com> wrote in message
news:52**********************************@microsof t.com...
yes I tried by using the following:
"Data Source=(local);Initial Catalog=Orchestra;Integrated Security=SSPI"
and also I tried:
"Server=(local);Database=Orchestra;Integrated Security=SSPI"
and its giving me this error:
"failed for user 'CHUBB-19EE0184D\ASPNET'"
--
Regads,
Rochdi
"Cor Ligthert [MVP]" wrote:
Mike,

You have already tried

"Integrated Security = sspi;"

Instead of "user and password"

For that local database.

I hope this helps,

Cor


The problem is that the SQL Server has not been set up for mixed mode
authententication - therefore you need to use integrated security.

When you try this you get your second error which sounds like the logon
hasn't got access to your database or access to the things in the database
it needs.

Regards

Richard Blewett - DevelopMentor
http://www.dotnetconsult.co.uk/weblog
http://www.dotnetconsult.co.uk
Nov 17 '05 #9

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

Similar topics

3
by: G-Fit | last post by:
Hello group, I have several servers hosting SQL databases. On each of them, I have several databases. All those databases have the same structure (even those on different servers), only the data...
11
by: pradeep_TP | last post by:
Hi all, I have a few questions that I have been wanting to ask for long. These are all related to ADO.net and specifically to conenction to database. 1) If I have opened a connection to a...
6
by: Chris Szabo | last post by:
I've created a data access layer for a .NET web application. I'm using C# and framework 1.1. I'm getting an error from time to time when I close a connection saying: ...
18
by: Rob Nicholson | last post by:
We're getting an occasional occurrence of the following error when two users try and open the same record in our ASP.NET app: "There is already an open DataReader associated with this Connection...
35
by: Eric Sabine | last post by:
In my Finally block, I was using cn.close (where cn is an ADO.NET connection object, SQLConnection to be exact) and then I came across the following in some microsoft code. If Not cn Is Nothing...
3
by: Martin B | last post by:
Hallo! I'm working with C# .NET 2.0, implementing Client/Server Applications which are connecting via Network to SQL-Server or Oracle Databases. To stay independent from the underlaying Database...
20
by: fniles | last post by:
I am using VS2003 and connecting to MS Access database. When using a connection pooling (every time I open the OLEDBCONNECTION I use the exact matching connection string), 1. how can I know how...
3
by: fniles | last post by:
In the Windows application (using VB.NET 2005) I use connection pooling like the following: In the main form load I open a connection using a connection string that I stored in a global variable...
0
by: Robert Avery | last post by:
In VBA/VB6, I had a class (incomplete sample below) that watched and displayed for the user all connection events, so that I could easily see what SQL was taking a long time, and when it freezes, I...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...

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.