Connection to SQL Server problems
Windows Server Forum Index Windows Server
Server discussion on Windows platform.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web winserverhelp.com
Connection to SQL Server problems

 
Post new topic   Reply to topic    Windows Server Forum Index -> Small Business Server 2003
Author Message
Default User
Guest





Posted: Sat Jan 15, 2005 8:13 am    Post subject: Connection to SQL Server problems Reply with quote

Hello,
I have a remote/offsite website that is failing to establish a SQL database
connection to my Small Business Server 2003.
Our firewall has a rule set that allows full access of all ports to pass
to/from the website IP.
We do not have ISA installed, and there is only one NIC on our SBS2003.

My main question;
1. Does the Small Business Server 2003 have some sort of firewall or basic
access rules that I am not aware of?

Many thanks for any help or where I should be looking!!!!

PS; Here is the asp code used to connect if that helps?:

Dim conn
Set conn = Server.CreateObject( "ADODB.Connection" )
conn.Open "Provider=sqloledb;" & _
"Network Library=DBMSSOCN;" & _
"Data Source=the-The-IP-Address\ABCDSQL,1433;" & _
"Initial Catalog=ABCD-DB;" & _
"User ID=username;" & _
"Password=password"

dim sql
sql = "SELECT * FROM tblJobInfo"
set rs = Server.CreateObject("ADODB.RecordSet")
rs.Open sql, conn

response.write(rs("LastName") & "<BR>")
Back to top
SuperGumby [SBS MVP]
Guest





Posted: Sun Jan 16, 2005 7:41 am    Post subject: Re: Connection to SQL Server problems Reply with quote

you probably need to _forward_ port 1433 from your firewall to the SBS,
'allowing' the traffic may not be enough.

Before you do this CONSIDER THE SECURITY CONSEQUENCES. If your firewall
allows you to specify that _ONLY_ the webserver can connect to this port,
I'm SORTTA OK with it. If you cannot control which remote hosts are able to
connect then the forward would be SHEER LUNACY.

If you had a second NIC and ISA you would be able to control which remotes
can connect.

"Default User" <sorry@nospam.net> wrote in message
news:yaGdncqo37Wm4XXcRVn-3g@comcast.com...
Quote:
Hello,
I have a remote/offsite website that is failing to establish a SQL
database connection to my Small Business Server 2003.
Our firewall has a rule set that allows full access of all ports to pass
to/from the website IP.
We do not have ISA installed, and there is only one NIC on our SBS2003.

My main question;
1. Does the Small Business Server 2003 have some sort of firewall or basic
access rules that I am not aware of?

Many thanks for any help or where I should be looking!!!!

PS; Here is the asp code used to connect if that helps?:

Dim conn
Set conn = Server.CreateObject( "ADODB.Connection" )
conn.Open "Provider=sqloledb;" & _
"Network Library=DBMSSOCN;" & _
"Data Source=the-The-IP-Address\ABCDSQL,1433;" & _
"Initial Catalog=ABCD-DB;" & _
"User ID=username;" & _
"Password=password"

dim sql
sql = "SELECT * FROM tblJobInfo"
set rs = Server.CreateObject("ADODB.RecordSet")
rs.Open sql, conn

response.write(rs("LastName") & "<BR>")
Back to top
 
Post new topic   Reply to topic    Windows Server Forum Index -> Small Business Server 2003 All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




New Topics Powered by phpBB