473,396 Members | 1,827 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.

remote connection to SQL Server in Visual studio .NET 05

When I start the Visual Studio .NET 2005 on client machine, I select Tools
and database connection (Database: SQL Server, security: windows
authentication. Server: Server Machine name (not in the same domain, but in
the same local area network; even same subnet)). When test the connection, I
get error message: not associated with a trusted SQL Server connection.

Server machine is Server 2000 and SQL server 2000 with security
authentication: windows only.

Could any one give a help and hint to solve this problem.

Thanks

David
Oct 19 '07 #1
4 2292
On Oct 19, 7:31 pm, david <da...@discussions.microsoft.comwrote:
When I start the Visual Studio .NET 2005 on client machine, I select Tools
and database connection (Database: SQL Server, security: windows
authentication. Server: Server Machine name (not in the same domain, but in
the same local area network; even same subnet)). When test the connection, I
get error message: not associated with a trusted SQL Server connection.

Server machine is Server 2000 and SQL server 2000 with security
authentication: windows only.

Could any one give a help and hint to solve this problem.

Thanks

David
I think your user has no rights on the database. Try to login for
example, with SQL Query Analyzer, or check security settings on the
server with your DBA.

Oct 19 '07 #2
There are two kinds of ways to authenticate to SQL Server:
1) Windows
2) SQL Server Authentication

You are using Windows Auth (e.g., "Trusted Connection") and the remote
machine does not recognize your credentials. The best solution is to enable
the SQL Server for mixed - mode (both Windows and SQL Server) authentication,
and use a SQL Server login, e.g.
"server=yourserver;database=yourdatabase;uid=usern ame;pwd=password"

-- Peter
Recursion: see Recursion
site: http://www.eggheadcafe.com
unBlog: http://petesbloggerama.blogspot.com
BlogMetaFinder: http://www.blogmetafinder.com

"david" wrote:
When I start the Visual Studio .NET 2005 on client machine, I select Tools
and database connection (Database: SQL Server, security: windows
authentication. Server: Server Machine name (not in the same domain, but in
the same local area network; even same subnet)). When test the connection, I
get error message: not associated with a trusted SQL Server connection.

Server machine is Server 2000 and SQL server 2000 with security
authentication: windows only.

Could any one give a help and hint to solve this problem.

Thanks

David
Oct 19 '07 #3
Thank you.

I will try.

I can not even connect to the server. When I type in the server machine IP,
111.122.233.45 and my name and my password, the error message is "could not
connect to "137". If I use "111.122.233.45", the error message: " can not
find computer name 111.122.233.45".

David

"Peter Bromberg [C# MVP]" wrote:
There are two kinds of ways to authenticate to SQL Server:
1) Windows
2) SQL Server Authentication

You are using Windows Auth (e.g., "Trusted Connection") and the remote
machine does not recognize your credentials. The best solution is to enable
the SQL Server for mixed - mode (both Windows and SQL Server) authentication,
and use a SQL Server login, e.g.
"server=yourserver;database=yourdatabase;uid=usern ame;pwd=password"

-- Peter
Recursion: see Recursion
site: http://www.eggheadcafe.com
unBlog: http://petesbloggerama.blogspot.com
BlogMetaFinder: http://www.blogmetafinder.com

"david" wrote:
When I start the Visual Studio .NET 2005 on client machine, I select Tools
and database connection (Database: SQL Server, security: windows
authentication. Server: Server Machine name (not in the same domain, but in
the same local area network; even same subnet)). When test the connection, I
get error message: not associated with a trusted SQL Server connection.

Server machine is Server 2000 and SQL server 2000 with security
authentication: windows only.

Could any one give a help and hint to solve this problem.

Thanks

David
Oct 19 '07 #4
On Oct 19, 9:51 pm, david <da...@discussions.microsoft.comwrote:
Thank you.

I will try.

I can not even connect to the server. When I type in the server machine IP,
111.122.233.45 and my name and my password, the error message is "could not
connect to "137". If I use "111.122.233.45", the error message: " can not
find computer name 111.122.233.45".

David

"Peter Bromberg [C# MVP]" wrote:
There are two kinds of ways to authenticate to SQL Server:
1) Windows
2) SQL Server Authentication
You are using Windows Auth (e.g., "Trusted Connection") and the remote
machine does not recognize your credentials. The best solution is to enable
the SQL Server for mixed - mode (both Windows and SQL Server) authentication,
and use a SQL Server login, e.g.
"server=yourserver;database=yourdatabase;uid=usern ame;pwd=password"
-- Peter
Recursion: see Recursion
site: http://www.eggheadcafe.com
unBlog: http://petesbloggerama.blogspot.com
BlogMetaFinder: http://www.blogmetafinder.com
"david" wrote:
When I start the Visual Studio .NET 2005 on client machine, I select Tools
and database connection (Database: SQL Server, security: windows
authentication. Server: Server Machine name (not in the same domain, but in
the same local area network; even same subnet)). When test the connection, I
get error message: not associated with a trusted SQL Server connection.
Server machine is Server 2000 and SQL server 2000 with security
authentication: windows only.
Could any one give a help and hint to solve this problem.
Thanks
David- Hide quoted text -

- Show quoted text -
David, first of all, you need find where is your server :-)

Oct 19 '07 #5

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

Similar topics

2
by: Rob | last post by:
Hi, In the server explorer in Visual Studio.Net I'm able to design tables, create stored procedures, etc for the SQL 2000 database running locally on my computer. If I add a connection to a remove...
0
by: bettervssremoting | last post by:
To view the full article, please visit http://www.BetterVssRemoting.com Better VSS Remote Access Tool including SourceOffSite, SourceAnyWhere and VSS Remoting This article makes a detailed...
2
by: Jeff | last post by:
I have an ASP.NET web page accessing a SQL database. I've used VS to build the app and stored it in the eNPTest02 directory of my localhost on my development machine. The database is on the web. ...
3
by: alaytin | last post by:
Hello- I am having a problem with a Web Service written in Visual Studio 2005. I have a typed dataset that I created using the Visual Studio 2005 Data Source tool. This retrieves its data from...
9
by: RvGrah | last post by:
After much hair-pulling, I've finally found the answer to a problem that many are fighting with, difficulty connecting from Sql 2005 Server Management or VS2005 to a remote Sql Server running Sql...
3
by: Hrvoje Vrbanc | last post by:
Hello all! Scenario: - web server at one location (domain) with VS 2003 - SQL server at a remote location (domain) - VPN connection on port 1433 between the two domains I have no troubles...
0
by: acwomble | last post by:
I am working with a database on another system via a ssh tunnel using plink. We have setup an alias the local system for the remote database. I am able to connect and work from within Visual...
10
by: cleo | last post by:
I am migrating from VB6/Access to Visual Basic and SQL Express. I have success writing test code on my local machine and am now setting up tests for deployment to a server. I have installed SQL...
3
by: Yves Gagnon | last post by:
Hi, I try to debug a WCF hosted in a windows services on a serveur that is on an other domaine then my developpement machine. I tried many things without succes. Here is what I tried: First I...
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...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
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
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.