Question

MICROSOFT SQL SERVER LOGIN - SQLSTATE '01000' & '08001' - SQL SERVER ERROR 14 - ODBC

Asked by: Ramante

I have a Windows SBS 2003 Server, Service Pack 2, 2gb ram and 200gb disk.

I have installed MS SQL Server 2000 with its latest Service Pack 4 and left in tact its standard "MSSQL Desktop Engine (SBSMonitoriing)" and "MSSSQL Desktop Engine (Sharepoint)" installation that came with SBS 2003 Server install.

I have search the .experts-exchange and found a question ("SQL Server Login error when attempting ODBC connection") my exact error message:

Connection failed:
SQLState: '01000'
SQL Server Error: 14
[Microsoft][ODBC SQL Server Driver][TCP/IP Sockets]ConnectionOpen (Invalid Instance()).
Connection failed:
SQLState: '08001'
SQL Server Error: 14
[Microsoft][ODBC SQL Server Driver][TCP/IP Sockets]Invalid connection.

I have defined an Alias as it recommended but, still no conection.

I have created the ODBC from within the Server and works fine.  I can connect to my SQL.

I've tried the following at the workstation:

1. Ping ServerName, tested ok
2. Ping server IP address, tested ok
3. In ODBC, in the "Create a New Data Source..", I place the server IP address, and still no connect
4. Tested command-line "Telnet ServerName 1433", and I get a blank screen,
     where I type anything and is also blank (dont know what that means, but thats the result)
5. Verified that the server name and the machine name are the same; tested ok
6. Disable all firewall in the server and the workstation, still no connect
7. Disable all antivirus & antispyware, still no connect
8. Uninstalled SQL 2000, rebooted server, deleted all folders related to SQL2000 and reinstall

**************
Moved to MS SQL Server / Database Zones
250 points added
jason1178 Community Advisor
**************

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2007-09-09 at 14:26:08ID22816502
Tags

sql

,

server

,

error

,

sqlstate

,

08001

Topic

MS SQL Server

Participating Experts
3
Points
500
Comments
21

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. (ODBC SQLState:42000) Login failed for user (null)
    I have a package that run DTS from FoxPro to SQL the packages have been running about 8 months without failure. Now i need to change the schedule on one of the package and got an error like: Microsoft SQL-DMO (ODBC SQLState:42000) [microsoft] [odbc sql server driver] [sql se...
  2. ODBC HELP
    WHen I conduct the ODBC test. I get this error. Please help. SQLSTATE: IM003 Native Error Code:160 Driver Message: Specified driver could not be loaded due to system error 126
  3. Restore Fails with SQL-DMO (ODBC SQLState HYT00)…
    I'm trying to restore a database locally from a backup (.BAK) file. After running for about 4 minutes (with nothing showing in the Progress indicator), I get an error message box SQL-DMO (ODBC SQLState HYT00): Timeout Expired. Timeout Period for backup/restore is set to &quo...
  4. Microsoft SQL DMO(ODBC: SQLstate 42000) error
    Hi, While restoring the SQL serverdatabase, I obtain the following error: Microsoft SQL DMO(ODBC: SQLstate 42000): The backup of the system database on devise XXXX cannot be restored because it was created by a different version of the server (117441211) than this server (...
  5. Microsoft SQL-DMO (ODBC SQLState: 42S22)
    I wanted to change to data type of ProductID to nvarchar in my stored procedure but I get the following error. (I changed the data type of ProductID from int to nvarchar in my database.) Microsoft SQL-DMO (ODBC SQLState: 42S22) Error 207: Invalid column name 'ProductID'. I...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: RamantePosted on 2007-09-09 at 16:23:42ID: 19858254

After reinstall, I also tried changing to "Name-Pipes" instead of "TCP/IP" in the "SQL Server Client Network Utility", "Alias" Tab.  When doing this and trying to connect, still no connection; the following error occurred:

Connection failed:
SQLState: '01000'
SQL Server Error: 2
[Microsoft][ODBC SQL Server Driver][Named Pipes]ConnectionOpen (Connect()).
Connection failed:
SQLState: '08001'
SQL Server Error: 17
[Microsoft][ODBC SQL Server Driver][Named Pipes]SQL Server does not exist or access denied.


Please advice

 

by: jaiganeshsrinivasanPosted on 2007-09-09 at 21:33:26ID: 19858934

did you try connecting from the enterprise manager with the proper server credentials ? if you are not able to connect from EM then possibly your server name / instance name / alias name you are using is wrong...

 

by: brathPosted on 2007-09-10 at 01:23:07ID: 19859510

1. Open Enterprise Manager, right click on the sql server group.
2. Select "New SQL Server Registration"
3. A new screen will show up as where u can select the server.. either select the server u want to register or give the ip address of the system where SQL server is residing on.
4. It wil ask for authentication mode. Select which ever is the authentication mode... Normally it will be Sql Server Authentication
5. If SQL Authetication, provide login name n password..
6. Added it to the SQL group(either new or any existing one) .. Its not going to matter...
7. Finish

8. If it is successful, then try connecting using query analyser....
9. If it fails means theres is some problem with the authentication only.. Can be either u have provided with wrong server name(IP address) or username or password....

 

by: jaiganeshsrinivasanPosted on 2007-09-10 at 01:41:26ID: 19859561

just a noet: It is not necessary to register the server to use it in QUERY ANALYSER...if you are to use ENTERPRISE MANAGER you need to do the mentioned steps...

if you wonder what QUERY ANALYSER  / ENTERPRISE MANAGER - they are two separate(though integrated) tools provided by SQL Server for managing you SQL Server, QA is mostly CUI (where in you have manually write down your queries / DML/DCL statements to manipulate what you want)......EM - is GUI based...

 

by: RamantePosted on 2007-09-10 at 03:24:50ID: 19859856

hi jaiganeshsrinivasan,

first my problem is connecting to the SQL instance from a workstation thru ODBC connection.  Also, I tried setting up the ODBC connection with the actual SQL instanca name and also with the server IP; non work.

I also tried doing the ODBC connection in it three (3) ways:

1. Making an ODBC connection within the same server; it worked perfectly (unfortunately, I need to connect from a workstation).
2. Adding a new computer to the domain with admin rights (thru the Network Identification Wizard); connected to
    server successful, access all recourses, but I cant connect thru ODBC.
3. Finally, tried to connect without adding the computer to the domain.

The ODBC connections works when created in the same server, but from a workstation is unsuccessfull

 

by: RamantePosted on 2007-09-10 at 03:30:19ID: 19859877

Hi brath.

The steps you are recommended worked perfect in the server!  unfortunately, my problem is not running EM or QA.  I can't connect to the server from a workstation thru ODBC.

 

by: RamantePosted on 2007-09-10 at 03:38:27ID: 19859895

Sorry Experts...I just re-read my initial question and it seems that it can be interpreted as that my problem is when connecting to the SQL instance within the Server.  Far from it, creating and connecting to the SQL instance using an ODBC connection from within the same Server works perfectly.

My problem is connecting to the server from a workstation using an ODBC connections.  Hope this helps when answering.

Thanx

 

by: jaiganeshsrinivasanPosted on 2007-09-10 at 03:46:36ID: 19859919

i hope you are using system DSN to create a ODBC data source...can you try using User DSN instead !!!

i assume taht you have a Created a DSN thru Ctrl panl -> Administrative tools -> odbc data sources.
there is an optuion to TEST connection there...is it working for you ? or is it where you are getting teh error...

 

by: RamantePosted on 2007-09-10 at 03:56:16ID: 19859947

jaiganeshsrinivasan...I tried to include as many detail as possible in my question (i forgot this one)...yes, i created thru system DSN and also tried it thru user DSN (just in case)...unfortunately, I didn't get to the TEST since it doesn't pass "How should SQL Server verify the authenticity of the login ID?" section with the error indicated in my question...also I have done all this with admin rights and full credentials.

 

by: jaiganeshsrinivasanPosted on 2007-09-10 at 04:06:31ID: 19859981

i just checked this out
try giving your server name like this [servername]\[instance name] (eg localhost\CAAST)
i got the error you have mentioned if i failed to specify the instance name in the first screen where it asks you to enter the server name (MIND THE SLASH it is "\" and not "/")

 

by: jaiganeshsrinivasanPosted on 2007-09-10 at 04:07:36ID: 19859986

i tried with a different server ofcourse the "localhost\CAAST" was just an example ,,, :-)

 

by: RamantePosted on 2007-09-10 at 04:14:02ID: 19860006

ok...sound intersting...i'll try it...

 

by: RamantePosted on 2007-09-10 at 04:27:29ID: 19860051

I tried it....no success...as matter of fact, the server-machine name is the same as the instance name; thus SERVER\SERVER was used.

Anyways, I received this error:

---------------------------
Microsoft SQL Server Login
---------------------------
Connection failed:
SQLState: '01000'
SQL Server Error: 11001
[Microsoft][ODBC SQL Server Driver][TCP/IP Sockets]ConnectionOpen (Connect()).
Connection failed:
SQLState: '08001'
SQL Server Error: 6
[Microsoft][ODBC SQL Server Driver][TCP/IP Sockets]Specified SQL server not found.

 

by: jaiganeshsrinivasanPosted on 2007-09-10 at 04:47:43ID: 19860147

tht was weird !!!...can you recheck the instance name again, i persume it should not be the same...may be other experts can comment on this...
or can you just try with ONLY the servername. !!!!!!!!!

 

by: RamantePosted on 2007-09-10 at 04:56:24ID: 19860205

Not only I tried both, I also tried with the IP address:

SERVER, SERVER\SERVER and 192.168.0.20 in the OBDC connection setup

The machine name is SERVER and the SQL instance name is SERVER

 

by: jaiganeshsrinivasanPosted on 2007-09-10 at 05:00:03ID: 19860234

i wont harass you after this...pardon me but i want the problem to be fixed...not just for points but for knowledge sharing :-)
By default, SQL Server will listen for incoming connections made by Named Pipes clients. Named Pipes is the default IPC mechanism for clients to connect to a SQL Server version 4.2, 6.0, and 6.5 server. The Named Pipes DLL is Dbnmpntw.dll, and it should be located in the Windows\System or Winnt\System32 directory. The TCP/IP sockets netlib DLL is Dbmssocn.dll, and also should be in the Windows\System or Winnt\System32 directory.The most common resolution to this problem is to configure the client computer to connect using Named Pipes.

 

by: jaiganeshsrinivasanPosted on 2007-09-10 at 05:00:43ID: 19860244

check this link for more details
http://support.microsoft.com/kb/195566

let me know whether you are successful !!!

 

by: RamantePosted on 2007-09-10 at 05:31:53ID: 19860423

Yes...this was my first test and it did work.  However, all my stations were using TCP/IP prior installing SBS2003 Server.  When I had the W2000 server running, all ok in all workstations.  

I checked the Windows\System or Winnt\System32 directory and didn find "Dbmssocn.dll"...

If this is the problem, where can I find this file?

Also, how come in my previous server the workstations connected?

 

by: RamantePosted on 2007-09-12 at 13:07:36ID: 19879509

I found the file....copied it, but still no work.....

 

by: RamantePosted on 2007-09-13 at 17:11:38ID: 19888117

Any expert out there can help with this problem....???

 

by: dennisrturnerPosted on 2008-05-06 at 07:16:03ID: 21507437

If anyone has this problem, try using the Data Sources (ODBC) admin snapin.  Under Client Configuration, select TCPIP and uncheck "Dynamically Determine port" This has worked for me on several occasions on different networks.

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...