Microsoft SQL Server
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsDatabaseMicrosoft SQL Server

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old August 17th, 2005, 09:09 AM
keith523 keith523 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jul 2005
Posts: 26 keith523 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 Days 1 h 23 m 6 sec
Reputation Power: 0
Server Connection error, should work

Hello all,

I'm trying to connect to our SQL Server machine from an ASP page. I have an ODBC DSN that works to the server '[server ip]\SQLMIS', but I'm trying to connect using a DSN-less connection string. The string I'm using is:
Code:
cst = "Provider=SQLOLEDB.1;UID=xpct;Password=xpct;Initial   Catalog=xpct;Data Source=[server ip]\SQLMIS,1044" 


and the error output is such:
Code:
Error Type:
Microsoft OLE DB Provider for SQL Server (0x80004005)
[DBNMPNTW]Specified SQL server not found.


Any ideas? Could it be related to my DSN being connected? Thanks for whatever you can add.


-Keith

Reply With Quote
  #2  
Old August 17th, 2005, 09:22 AM
Dwarf's Avatar
Dwarf Dwarf is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Aug 2005
Location: Moscow, Russia
Posts: 327 Dwarf User rank is Sergeant (500 - 2000 Reputation Level)Dwarf User rank is Sergeant (500 - 2000 Reputation Level)Dwarf User rank is Sergeant (500 - 2000 Reputation Level)Dwarf User rank is Sergeant (500 - 2000 Reputation Level)Dwarf User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 4 Days 9 h 1 m 50 sec
Reputation Power: 16
DBNMPNTW is a Named Pipes network library. Try to use TCP/IP:
Code:
cst = "Provider=SQLOLEDB.1;UID=xpct;Password=xpct;Initial   Catalog=xpct;Data Source=[server ip]\SQLMIS,1044;Network Library=dbmssocn;"


http://msdn.microsoft.com/library/d...nsetup_2xmb.asp
http://support.microsoft.com/defaul...kb;en-us;265808

Reply With Quote
  #3  
Old August 17th, 2005, 09:38 AM
keith523 keith523 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jul 2005
Posts: 26 keith523 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 Days 1 h 23 m 6 sec
Reputation Power: 0
Quote:
Originally Posted by Dwarf
DBNMPNTW is a Named Pipes network library. Try to use TCP/IP:
Code:
cst = "Provider=SQLOLEDB.1;UID=xpct;Password=xpct;Initial   Catalog=xpct;Data Source=[server ip]\SQLMIS,1044;Network Library=dbmssocn;"


http://msdn.microsoft.com/library/d...nsetup_2xmb.asp
http://support.microsoft.com/defaul...kb;en-us;265808


Thanks for your input, Dwarf. I tried your suggestion, of adding teh network library specification, but didn't get any further, the error that comes back now is:
Code:
Error Type:
Microsoft OLE DB Provider for SQL Server (0x80004005)
[dbmssocn]General network error. Check your network documentation.


Seems it didn't like that at all. I checked out the links you suggested, but do I need to setup an alias on the server? I know the port is set to 1044, and is open. Thanks for any further ideas.


-Keith

Reply With Quote
  #4  
Old August 17th, 2005, 09:52 AM
Dwarf's Avatar
Dwarf Dwarf is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Aug 2005
Location: Moscow, Russia
Posts: 327 Dwarf User rank is Sergeant (500 - 2000 Reputation Level)Dwarf User rank is Sergeant (500 - 2000 Reputation Level)Dwarf User rank is Sergeant (500 - 2000 Reputation Level)Dwarf User rank is Sergeant (500 - 2000 Reputation Level)Dwarf User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 4 Days 9 h 1 m 50 sec
Reputation Power: 16
Can you connect to that server via EM or QA?
ping ip_address - ???
Can you connect to that server via telnet?
telnet ip_address 1044
If no, check your network topology, possible firewalls, etc.

Reply With Quote
  #5  
Old August 17th, 2005, 10:31 AM
keith523 keith523 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jul 2005
Posts: 26 keith523 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 Days 1 h 23 m 6 sec
Reputation Power: 0
Quote:
Originally Posted by Dwarf
Can you connect to that server via EM or QA?
ping ip_address - ???

I'm not sure what to ping here, pinging just the ip_address returns all 'request timed out', and pinging ip_address\SQLMIS returns 'could not find host' --- hmmmmmm, maybe we've got something here, I'll point this out to my network admin
Quote:
Originally Posted by Dwarf
Can you connect to that server via telnet?
telnet ip_address 1044
If no, check your network topology, possible firewalls, etc.

telnet doesn't connect at all, and no error messages.

Unfortunately, my admin's busy with convention prep, and won't be back until later today. I'll have to see what he says about all this, but it is probably a firewall that he installed (a couple worms went around this week, and he's being cautious).

Although I'm not sure if it's the firewall, since I haven't gotten the connection to work yet, but that's probably not helping at this point. Thanks for the advice!


-Keith

Reply With Quote
  #6  
Old August 17th, 2005, 10:39 AM
Dwarf's Avatar
Dwarf Dwarf is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Aug 2005
Location: Moscow, Russia
Posts: 327 Dwarf User rank is Sergeant (500 - 2000 Reputation Level)Dwarf User rank is Sergeant (500 - 2000 Reputation Level)Dwarf User rank is Sergeant (500 - 2000 Reputation Level)Dwarf User rank is Sergeant (500 - 2000 Reputation Level)Dwarf User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 4 Days 9 h 1 m 50 sec
Reputation Power: 16
Quote:
pinging just the ip_address returns all 'request timed out'

Sound like you have a network problem.

ip_address\SQLMIS is a name of SQL server instance, not a host name.

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseMicrosoft SQL Server > Server Connection error, should work


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT