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 September 2nd, 2004, 05:17 PM
Authorized User
 
Join Date: Aug 2004
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default sql server login failed

Hi -
I have a recurring problem with my sql server, the connection keeps on failing. I get the following error message:
______________________________________________
Connection failed:
SQLState: '080001'
SQL Server Error: 17
[DBNETLIB][ConnectionOpen(Connect()).]SQL Server does not exist or access denied.
______________________________________________

I cant quite understand this since my sql server is running (shown when i open my SQL Server Service Manager)

Does anyone have any suggestions at all??

thanks - rizp
 
Old September 2nd, 2004, 05:27 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

The error means that you are using either a wrong server name or the user with which you are trying to connect is not permitted to.

What way are you trying to connect? Is that sql server running on a remote system, meaning - are you trying to connect to a sql server remotely? Can you explain more on that?

_________________________
- Vijay G
Strive for Perfection
 
Old September 2nd, 2004, 05:32 PM
Authorized User
 
Join Date: Aug 2004
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

I have a local server on my laptop and sql server is also on the same machine - so no remote connection. when asked for a server name, i simply put in 'local' or alternatively i can use the name of the sql server. In Visual Studio.Net, in server explorer, it shows my sql server to be running - so i cant understand why the connection cant be opened......any ideas??

rizp
 
Old September 2nd, 2004, 05:37 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

Did you try giving localhost instead of local?

_________________________
- Vijay G
Strive for Perfection
 
Old September 2nd, 2004, 05:53 PM
Authorized User
 
Join Date: Aug 2004
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default

yes i have tried this but this doesnt seem to work either - in fact, the connection to the database is definately open since in the top menu bar of visStudio.net under tools, i can connect to a database - and this connects successfully.

I am using Windows XP professional edition....just a thought, when sql server gives the option of using windows NT integrated security - does this mean i can use this with the operating system that i am using too?
 
Old September 2nd, 2004, 06:01 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

Was about to ask that, are you using windows login/password to connect to sql or SQL username/password to connect?

_________________________
- Vijay G
Strive for Perfection
 
Old September 2nd, 2004, 06:05 PM
Authorized User
 
Join Date: Aug 2004
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default

using windows login, not sql server login
 
Old September 2nd, 2004, 06:18 PM
Authorized User
 
Join Date: Aug 2004
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default

oh yeh...also note that when in server explorer, i can open up the table node and view a table that i had previously created with enterprise manager.
 
Old September 2nd, 2004, 06:23 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

What is the Authentication used under Security tab of SQL server properties in Enterprise Manager?

_________________________
- Vijay G
Strive for Perfection
 
Old September 2nd, 2004, 06:37 PM
Authorized User
 
Join Date: Aug 2004
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default

it is set to - windows only, audit level: none, start and run sql account in the following: System account.

by the way i am using sql server developer edition.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chat Server: Login failed. jtsroberts BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 3 March 19th, 2008 06:45 AM
Crystal Report "Login Failed" windows 2000 server HaniShtine Crystal Reports 0 December 7th, 2005 04:00 PM
Failed to copy objects from SQL server to SQL Serv monfu SQL Server 2000 4 December 4th, 2005 05:54 PM
Sql Server Login Failed error a42 ASP.NET 1.0 and 1.1 Basics 3 December 14th, 2004 05:19 PM
SQL Server / Login failed for user 'NT AUTHORITY ElPato ASP.NET 1.0 and 1.1 Basics 2 November 14th, 2004 10:03 AM





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