MS SQL Connection
MS SQL Connection
MS SQL Connection
MS SQL Connection
MS SQL Connection
MS SQL Connection MS SQL Connection MS SQL Connection MS SQL Connection MS SQL Connection MS SQL Connection MS SQL Connection MS SQL Connection
MS SQL Connection MS SQL Connection
MS SQL Connection
Go Back  Xtreme Visual Basic Talk > > > MS SQL Connection


Reply
 
Thread Tools Display Modes
  #1  
Old 10-02-2008, 10:57 AM
hk_vic hk_vic is offline
Freshman
 
Join Date: Apr 2006
Posts: 32
Default MS SQL Connection


Hi All,

I know that I may ask the wrong question in this forum...... but really want some help from the following.........

I have setup a MS SQL server in my computer and enable the sql server to listen to the TCP/IP port 1500.

I can use my vb.net program to access to the sql server from another pc within the same LAN by using the following connection string "Data Source=192.168.1.101,1500;Database=ABC;UID=SA;PWD=123;

But if I changed the "192.168.1.101" in the connection string to the IP address that provided by the ISP (ie.: "Data Source=<IP from ISP>,1500;Database=ABC;UID=SA;PWD=123 the connection string do not work.
I have set the port forwording function in the router as forward all TCP from 1500 port to IP 192.168.1.101. But it don't work neither......

Then I checked the port 1500 with the webpage below:
http://www.yougetsignal.com/tools/open-ports/
It show that the port 1500 is closed~!!! But if I use DMZ function on the router to explose my computer the internet.... the above webpage can checked the port 1500 is opened~!! And I can successfully connect the sql server with this connection string "Data Source=<IP from ISP>,1500;Database=ABC;UID=SA;PWD=123;"

Is that the mssql cannot pass the port forwarding funtion on the router? or did i set anythings wrong?

p.s. I have set the port 8080,21 forward to another IP on the router and it work fine...... so I really don't know what wrong here......

Victor
Reply With Quote
  #2  
Old 10-02-2008, 12:12 PM
wayneph's Avatar
waynephMS SQL Connection wayneph is offline
Web Junkie

Retired Moderator
* Expert *
 
Join Date: Apr 2004
Location: D/FW, Texas, USA
Posts: 8,393
Default

If the internet is showing that the port is closed, then my guess is that there is a problem in the Router Forwarding configuration. Since it works when the machine is in the DMZ, I would say that SQL is configured correctly.

My only other thought is that your ISP is blocking things to prevent you from hosting, but again, since it shows open when you are in the DMZ, I don't think that the ISP is an issue either.
__________________
-- wayne, MSSM Retired
> SELECT * FROM users WHERE clue > 0
0 rows returned
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
MS SQL Connection
MS SQL Connection
MS SQL Connection MS SQL Connection
MS SQL Connection
MS SQL Connection
MS SQL Connection MS SQL Connection MS SQL Connection MS SQL Connection MS SQL Connection MS SQL Connection MS SQL Connection
MS SQL Connection
MS SQL Connection
 
MS SQL Connection
MS SQL Connection
 
-->