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 May 2nd, 2005, 10:51 AM
larbo larbo is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2005
Posts: 3 larbo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 42 m 50 sec
Reputation Power: 0
sql connection problem with ip address

This works:
connStr = "Driver={SQL Server};" &_
"Server=MachineName\InstanceName;Database=MyDatabas e;" &_
"Uid=MyId;Pwd=MyPwd;"

This doesn't:
connStr = "Driver={SQL Server};" & _
"Server=192.168.0.102\InstanceName,1433;" & _
"Database=MyDatabase;" & _
"Uid=MyId;" & _
"Pwd=MyPwd"

Why?

Reply With Quote
  #2  
Old May 2nd, 2005, 06:34 PM
Scorpions4ever Scorpions4ever is offline
Mad Rater
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 126 Scorpions4ever User rank is Corporal (100 - 500 Reputation Level)Scorpions4ever User rank is Corporal (100 - 500 Reputation Level)Scorpions4ever User rank is Corporal (100 - 500 Reputation Level)Scorpions4ever User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 11 h 31 m 44 sec
Reputation Power: 8
Perhaps because your server isn't using TCP/IP connections and using Named Pipes alone. Also make sure it is listening on port 1433. You can check these with the Server Config utility.
__________________
Up the Irons
What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.

Reply With Quote
  #3  
Old May 3rd, 2005, 05:19 AM
larbo larbo is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2005
Posts: 3 larbo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 42 m 50 sec
Reputation Power: 0
The server uses both TCP/IP (port 1433) and Named Pipes. I also oppened up the firewall for port 1433 but it didn't help

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseMicrosoft SQL Server > sql connection problem with ip address


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 3 hosted by Hostway
Stay green...Green IT