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

Issue with VS.NET talking to SQL Server

I have a problem establishing a link between Visual
Studio.NET 2003 and SQL Server 2000. Both are installed on
a Windows Server 2003, standard version.

Visual Studio.NET Issues
===================
From Visual Studio.NET 2003 I attempt to ‘Connect to a
database’

The ‘Data Link Properties’ dialog box appears.

I enter the server name: (local)

and then elect to ‘Use a specific user name and password’

No matter what user name and password I enter (including
the Administrator username and password) all I get is the
following message:

Login failed for user ‘Administrator’. Reason: Not
associated with a trusted SQL Server connection.

And then:

Login failed. Catalog information cannot be retreived.

My first VS.NET question is: What username and password is
the dialog box ‘Data Link Properties’ looking for? I want
to use a username and password. I know I could use Windows
authentication, but I cannot use that feature in this
case. I want to use the ‘sa’ username and its associated
password.

My second VS.NET question is: How do I set up a trusted
SQL Server connection? What is it? There appears to be no
documentation that I can find that details what it is and
how it is set up.

SQL Related Issues - which follow on from the issues with
VS.NET
================================================
Opening the SQL Server Enterprise Manager I viewed the
properties of the sa login. I had actually set a password
for the sa when I applied Service Pack 3a. This password
consisted of 11 letters. For some reason it had been
altered to just 10 letters. I then changed the password to
five letters, confirmed it, viewed the sa login properties
and found it had been increased to 10 again.

My first SQL question is: Why are the passwords I am
entering in the Security \Logins part of SQL Server being
altered to a 10 character password, whose content I am not
aware of?

My second SQL question is: How do I stop this happening?

My third SQL question is: Is this a bug and if so where is
it documented?

Jul 21 '05 #1
4 1658
Hi,

Thanks for your post. I'd like to share the following information with you:

1. >> What username and password is the dialog box ‘Data Link
Properties’ looking for?

It requires to enter the username and password for the SQL Server, say,
"sa".

2. >> How do I set up a trusted SQL Server connection? What is it?

Actually, the error message "Reason: Not associated with a trusted SQL
Server connection." just indicates that you input invalid username and
password for SQL Server.

When we write a connection string to connect to SQL Server, there is an
option "Trusted_Connection" indicating that the User ID and Password are
specified in the connection string (it's the same with the "Use a specific
user name and password" in the "Data Link Properties" dialog).

SqlConnection.ConnectionString Property
http://msdn.microsoft.com/library/de...us/cpref/html/
frlrfSystemDataSqlClientSqlConnectionClassConnecti onStringTopic.asp

Regarding the SQL Server question:

1. >> Why are the passwords I am entering in the Security \Logins part of
SQL Server being altered
to a 10 character password, whose content I am not aware of?


Based on my experience, the Login part of SQL Server alway display 10
characters of "*" regardless of the actual length of the password. I
believe this was designed to prevent a user from guessing the password when
it's short.

2. >> How do I stop this happening?

I am afraid there is no method to work around this problem.

BTW, in the future, it would be best to post SQL Server questions under the
following newsgroup:
microsoft.public.sqlserver

Please feel free to let me know if you have any problem or concerns. I am
standing by for your response.

Have a nice day!

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Jul 21 '05 #2
Hi Tian,

Thanks for the reply - but unfortunately it does not solve my problem.

I'll concentrate on the .NET side of the issue.

When attempting to create a database connection, the dialog box "Data Link
Properties" appears and I have been entering userid 'sa' and its associated
password - which I set up when I applied the service pack. However, this
userid and password does not work - neither do any other userid password
combinations that have been set up in the Security \Logins section of SQL
server. I have checked the security settings on the 'sa' user in SQL Server
2000 Enterprize Manager, and reset the password to a new one (less than ten
characters) just in case I was entering an incorrect password, but still no
connection.

The error messages I get are the same ones as I have detailed below.

Note again, that if just Windows authentication is used the connection works
fine.

It would appear to me that this is an undocumented feature - Visual
Studio.NET 2003 cannot communitcate with SQL Server 2000 when a userid and
password are supplied in the "Data Link Properties".

Is there any patch/workaround I can use to solve this problem?

Thanks,

Tom.

"Tian Min Huang" <ti******@online.microsoft.com> wrote in message
news:nI*************@cpmsftngxa06.phx.gbl...
Hi,

Thanks for your post. I'd like to share the following information with you:
1. >> What username and password is the dialog box ‘Data Link
Properties’ looking for?

It requires to enter the username and password for the SQL Server, say,
"sa".

2. >> How do I set up a trusted SQL Server connection? What is it?

Actually, the error message "Reason: Not associated with a trusted SQL
Server connection." just indicates that you input invalid username and
password for SQL Server.

When we write a connection string to connect to SQL Server, there is an
option "Trusted_Connection" indicating that the User ID and Password are
specified in the connection string (it's the same with the "Use a specific
user name and password" in the "Data Link Properties" dialog).

SqlConnection.ConnectionString Property
http://msdn.microsoft.com/library/de...us/cpref/html/ frlrfSystemDataSqlClientSqlConnectionClassConnecti onStringTopic.asp

Regarding the SQL Server question:

1. >> Why are the passwords I am entering in the Security \Logins part of
SQL Server being altered
>> to a 10 character password, whose content I am not aware of?

Based on my experience, the Login part of SQL Server alway display 10
characters of "*" regardless of the actual length of the password. I
believe this was designed to prevent a user from guessing the password

when it's short.

2. >> How do I stop this happening?

I am afraid there is no method to work around this problem.

BTW, in the future, it would be best to post SQL Server questions under the following newsgroup:
microsoft.public.sqlserver

Please feel free to let me know if you have any problem or concerns. I am
standing by for your response.

Have a nice day!

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Jul 21 '05 #3
Hi Tom,

Thanks for your feedback. Based on my experience, the problem may be caused
that you configured the SQL Server accepts Windows authentication mode
only. I'd like you perform the following steps and see if the problem still
exists:

1. In SQL Enterprise Manager, right click the server name, click
Properties, and click the Security tab.
2. Change the Authentication mode from Windows only to SQL Server and
Windows.
3. Restart MSSQLServer service.

I look forward to your result.

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Jul 21 '05 #4
Tian,

This sorted the problem out.

Thanks for your help.

Tom.
"Tian Min Huang" <ti******@online.microsoft.com> wrote in message
news:eW**************@cpmsftngxa06.phx.gbl...
Hi Tom,

Thanks for your feedback. Based on my experience, the problem may be caused that you configured the SQL Server accepts Windows authentication mode
only. I'd like you perform the following steps and see if the problem still exists:

1. In SQL Enterprise Manager, right click the server name, click
Properties, and click the Security tab.
2. Change the Authentication mode from Windows only to SQL Server and
Windows.
3. Restart MSSQLServer service.

I look forward to your result.

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Jul 21 '05 #5

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

Similar topics

9
by: E Sullivan | last post by:
I am having a time out issue when multiple users are accessing the server. This time out does not happen all of the time. My understanding is that the time out value is actually set in two places....
5
by: BaWork | last post by:
I have a web form where a client can select which site members to send an email to. This form is populated from the contents of the member table, so the form can have 0-x names listed on it...
30
by: Kong Bhat | last post by:
With XML becoming the de facto data description standard, I am extremely surprised that there is no movement towards standardizing an xml library API for use with C and C++. Personally I have been...
3
by: Jeffery Franzen | last post by:
Anyone know where the documentation is regarding Activex controls in asp web forms? I'm using VS.NET 2002 enterprise and am trying to use Activex controls in vb.net web form app. I do the add...
6
by: Frodo | last post by:
I have a problem establishing a link between Visual Studio.NET 2003 and SQL Server 2000. Both are installed on a Windows Server 2003, standard version. Visual Studio.NET Issues...
1
by: Pharoh | last post by:
I've inherrited an application that I have to both support and maintain here at work but it comes with one very big headache... The employees who use it are not allowed access to the server it's...
13
by: mehdi_mousavi | last post by:
Hi folks, In an N-tier application, what is the possible values of N??? I'm not kidding, I just interviewed with a programmer today, and he started the "2-tier application" conversation. From then...
2
by: Chizl | last post by:
I have a C# developed web service.. Everyone once in a while I see it not running.. There are no logs saying it was shutting down, no eventlog saying there was an error or it was being shutdown,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: 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
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,...
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...
0
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,...

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.