473,507 Members | 2,368 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

sqlConnection not working in VS.net IDE

Inside VS.net, I'm using the Data Form wizard to creat a DataSet and a
Data Connection to my sql database on my network. VS.net creates this
code after I point it to the correct database:

Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security
Info=False;User ID=xx;Initial Catalog=Northwind;Data
Source=TAURUSSQL;Use Procedure for Prepare=1;Auto Translate=True;Packet
Size=4096;Workstation ID=PROG1;Use Encryption for Data=False;Tag with
column collation when possible=False

...but after i finish the data form and try to bring up records when i
run the project, i get a prompt/error: "Login failed for user '(null)'.
Reason: Not associated with a trusted SQL Server connection." ..when the
same userid has no problem on my other sql connection scripts. I even
tried inserting the password in the above string and i still get the
same exact error.

muench

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 21 '05 #1
6 1487
Take the user id and password out of the connection string if you're
using integrated security.

--Mary

On Tue, 13 Apr 2004 13:48:52 -0700, J. Muenchbourg <an*******@dex.com>
wrote:
Inside VS.net, I'm using the Data Form wizard to creat a DataSet and a
Data Connection to my sql database on my network. VS.net creates this
code after I point it to the correct database:

Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security
Info=False;User ID=xx;Initial Catalog=Northwind;Data
Source=TAURUSSQL;Use Procedure for Prepare=1;Auto Translate=True;Packet
Size=4096;Workstation ID=PROG1;Use Encryption for Data=False;Tag with
column collation when possible=False

..but after i finish the data form and try to bring up records when i
run the project, i get a prompt/error: "Login failed for user '(null)'.
Reason: Not associated with a trusted SQL Server connection." ..when the
same userid has no problem on my other sql connection scripts. I even
tried inserting the password in the above string and i still get the
same exact error.

muench

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


Jul 21 '05 #2
Take the user id and password out of the connection string if you're
using integrated security.

--Mary

On Tue, 13 Apr 2004 13:48:52 -0700, J. Muenchbourg <an*******@dex.com>
wrote:
Inside VS.net, I'm using the Data Form wizard to creat a DataSet and a
Data Connection to my sql database on my network. VS.net creates this
code after I point it to the correct database:

Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security
Info=False;User ID=xx;Initial Catalog=Northwind;Data
Source=TAURUSSQL;Use Procedure for Prepare=1;Auto Translate=True;Packet
Size=4096;Workstation ID=PROG1;Use Encryption for Data=False;Tag with
column collation when possible=False

..but after i finish the data form and try to bring up records when i
run the project, i get a prompt/error: "Login failed for user '(null)'.
Reason: Not associated with a trusted SQL Server connection." ..when the
same userid has no problem on my other sql connection scripts. I even
tried inserting the password in the above string and i still get the
same exact error.

muench

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


Jul 21 '05 #3


Thanks Mary for reply. Yes, I started a new connection and made it
Windows Integrated Security, without a User or password designation, and
it still gave me the same error

???????????

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 21 '05 #4


Thanks Mary for reply. Yes, I started a new connection and made it
Windows Integrated Security, without a User or password designation, and
it still gave me the same error

???????????

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 21 '05 #5
Have you set up a connection in the Server Explorer using these
credentials? That may be a good way to troubleshoot this thing. Null
user means the server is not seeing a valid user.

--Mary

On Wed, 14 Apr 2004 14:52:23 -0700, J. Muenchbourg <an*******@dex.com>
wrote:


Thanks Mary for reply. Yes, I started a new connection and made it
Windows Integrated Security, without a User or password designation, and
it still gave me the same error

???????????

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


Jul 21 '05 #6
Have you set up a connection in the Server Explorer using these
credentials? That may be a good way to troubleshoot this thing. Null
user means the server is not seeing a valid user.

--Mary

On Wed, 14 Apr 2004 14:52:23 -0700, J. Muenchbourg <an*******@dex.com>
wrote:


Thanks Mary for reply. Yes, I started a new connection and made it
Windows Integrated Security, without a User or password designation, and
it still gave me the same error

???????????

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


Jul 21 '05 #7

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

Similar topics

1
558
by: Donnie Darko | last post by:
I'm trying to understand SqlConnection(), SqlCommand() For example. I use SqlConnection() as a parameter when I create a new SqlCommand. Then I open SqlConnection(), then I execute the...
17
9345
by: LP | last post by:
Hello, Here's the scenario: Object A opens a Sql Db connection to execute number of SqlCommands. Then it needs to pass this connection to a constructor of object B which in turn executes more...
2
2474
by: Sgt. Sausage | last post by:
New to multi-threading (less than 24 hours at it <grin>) Anyway, it's all making sense, and working fairly well thus far, but I'm having a minor issue I'm not sure how to get around. I've got...
16
13957
by: ed_p | last post by:
Hello, I have implemented the singleton pattern for a class to hold a SqlConnection object that will be used thruout the application to create commands. My application is a simple Windows Form...
4
4350
by: Nevyn Twyll | last post by:
I've been working on an asp.net application and everything's been great. But suddenly, whether I'm tyring to use a database on my own machine, or on my server, I'm getting a timeout when trying to...
2
2069
by: neodev | last post by:
Hi I have 2 mode for open db 'Path DB Private Const pathDB As String = "C:\...\diabolik.mdb" 'for the ole db Private conn As New OleDbConnection 'for th sqlconnection Private connRS As...
8
6784
by: John J. Hughes II | last post by:
Is there a way of resetting the SqlConnection with closing/opening it again. I am not seeing anything called reset. Regards, John
4
3878
by: Victor | last post by:
Hi Guys I have a problem here. I want to improve the performance for a website. When I looked into the system, I have found that the system made the "SqlConnection Object" static. That mean only...
4
1689
by: =?Utf-8?B?dGhlIGZyaWVuZGx5IGRpc3BsYXkgbmFtZQ==?= | last post by:
Hello, I am planning to use three databases on the local SQL Server. DB1 will be for App1, DB2 for App2, and DB3 will hold tables, that both, App1 and App2 need to access. With applications...
2
11079
by: cj | last post by:
MySQLConnection.connectiontimeout() returns 15. I want to drop that to 3, but it is read only. I see you can include the timeout "Connection Timeout=30" as part of the connection string but I...
0
7223
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,...
1
7031
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7485
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...
0
5623
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,...
1
5042
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...
0
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1542
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
760
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
412
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...

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.