Wrox Programmer Forums
|
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 1st, 2005, 01:11 AM
Registered User
 
Join Date: Feb 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Connection Problem

I have the database on windows 2003 system and the webserver on windows 2000. I am getting an error while trying to establish a db connection. Error is as follows:
Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection."

my connection string is:
DbConn.ConnectionString = "Persist Security Info=False;User ID=test;PWD=test123;Connect Timeout=35;Initial Catalog=testdb;Trusted_Connection=yes; Data Source=tstSer

I have included the parameter Trusted_Connection=yes recently but it also doesn't seem to work. It gives the same error when this parameter is removed.
pls help me with a solution for this

As of now, I need to have both the db and the web server on the same 2003 system or use 2000 for both servers


 
Old March 1st, 2005, 01:37 AM
Authorized User
 
Join Date: Feb 2005
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,
    In server security in enterprise manager, can you make sure Windows and Sql authentication is checked.

Are both the servers on the same domain? If not do you know if they have trust relationship establised? You might need to check with your Admin.

Regards



 
Old March 1st, 2005, 01:39 AM
Authorized User
 
Join Date: Feb 2005
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Do you know if it works for sa?

 
Old March 2nd, 2005, 07:47 AM
Registered User
 
Join Date: Feb 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Sql authentication is checked.
I am not sure if they have trust relationship establised. I will check this out. Thanks






Similar Threads
Thread Thread Starter Forum Replies Last Post
Connection problem atzplzw Classic ASP Databases 3 November 15th, 2004 03:53 AM
Problem with the connection! Berni016x SQL Server 2000 2 November 9th, 2004 08:51 AM
Problem With Connection ! huyremy VB Databases Basics 2 September 29th, 2004 03:37 AM
connection problem weihoe2004 VS.NET 2002/2003 1 July 10th, 2004 01:46 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.