Showing posts with label tcp. Show all posts
Showing posts with label tcp. Show all posts

Wednesday, March 21, 2012

How to connect from Sql Manager to a sql server 2000 database at an ISP

To use the front end tools in SQL Manager on the database at my ISP I want to connect directly. I have enabled TCP/IP and Named Pipes without succes.

My installation is based on SQL Server Developer Edition and VS 2005. With my previos installation based on Express versions of the product this worked fine.

To be more specific:

In VS 2005 I select Tools -> Connect to database and fill inn the dialog window with the serveraddress (sql01.active24.com), username and password. I then get the following message:

An errror has occurd while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the fefault settings SQL Server does not allow remote connections. (provider: Named pipes, errror: 40 - Could not opeen a connection to SQL Server

In the network configuration I have now disabled Named Pipes and enabled TCP/IP.

Thanks in advance!

Andreassql

how to configure TCP port for unattended install

I've looked through every source of material on SQL Server Express unattended installs that I could get my hands on, but so far, I've come up with nothing that shows how to set the server engine's TCP port to 1433.

Since the SQL Server setup is part of a (considerably) larger install, requiring the customer to set this by hand is not really acceptable.

Is there a way to do this with a command-line parameter (etc)?

Thanks in advance

Josh

i assume you mean to set the port to not 1433 as this is the default behavior|||

No, I meant exactly what I said.

For SQL Server 2005 Express Edition, static port 1433 is *not* the default. Its default is to use port numbers randomly assigned at run-time.

Josh

|||my bad dude, forgot express has that behavior :)|||

Sorry for not getting here sooner, there is no way to configure the TCP port during installation that is built in. You should be able to write a script that does it, and that script can be called once SQL Express has been installed.

Check out the options available in SMO or the WMI providers, I believe either will give you the ability to configure this.

Regards,

Mike Wachal
SQL Express team

|||I am a newbe and do not know what "SMO" or "VMI" providers are. You eluded to a "Script" that can set the IP port for SQL Express. Any chance I can get a url or exanmple of this "script"?

Monday, March 19, 2012

how to configure TCP port for unattended install

I've looked through every source of material on SQL Server Express unattended installs that I could get my hands on, but so far, I've come up with nothing that shows how to set the server engine's TCP port to 1433.

Since the SQL Server setup is part of a (considerably) larger install, requiring the customer to set this by hand is not really acceptable.

Is there a way to do this with a command-line parameter (etc)?

Thanks in advance

Josh

i assume you mean to set the port to not 1433 as this is the default behavior|||

No, I meant exactly what I said.

For SQL Server 2005 Express Edition, static port 1433 is *not* the default. Its default is to use port numbers randomly assigned at run-time.

Josh

|||my bad dude, forgot express has that behavior :)|||

Sorry for not getting here sooner, there is no way to configure the TCP port during installation that is built in. You should be able to write a script that does it, and that script can be called once SQL Express has been installed.

Check out the options available in SMO or the WMI providers, I believe either will give you the ability to configure this.

Regards,

Mike Wachal
SQL Express team

|||I am a newbe and do not know what "SMO" or "VMI" providers are. You eluded to a "Script" that can set the IP port for SQL Express. Any chance I can get a url or exanmple of this "script"?

how to configure TCP port for unattended install

I've looked through every source of material on SQL Server Express unattended installs that I could get my hands on, but so far, I've come up with nothing that shows how to set the server engine's TCP port to 1433.

Since the SQL Server setup is part of a (considerably) larger install, requiring the customer to set this by hand is not really acceptable.

Is there a way to do this with a command-line parameter (etc)?

Thanks in advance

Josh

i assume you mean to set the port to not 1433 as this is the default behavior|||

No, I meant exactly what I said.

For SQL Server 2005 Express Edition, static port 1433 is *not* the default. Its default is to use port numbers randomly assigned at run-time.

Josh

|||my bad dude, forgot express has that behavior :)|||

Sorry for not getting here sooner, there is no way to configure the TCP port during installation that is built in. You should be able to write a script that does it, and that script can be called once SQL Express has been installed.

Check out the options available in SMO or the WMI providers, I believe either will give you the ability to configure this.

Regards,

Mike Wachal
SQL Express team

|||I am a newbe and do not know what "SMO" or "VMI" providers are. You eluded to a "Script" that can set the IP port for SQL Express. Any chance I can get a url or exanmple of this "script"?

How to configure MSDE to listen on TCP/IP

Hi:
I'm not able to connect to MSDE remotely. From the SQL Server logs, it
is listening on Shared Memory only. How do I configure it to listen on
TCP/IP ?
The MSDE is running on WinXP Pro SP2, and there is a instance of
SQL2005 Express installed side by side, the SQL2005 Express is
configure to listen on port 1618. The firewall already turned off.
Another problem is related to SQL2005 Express... I'm not able to
connect to the SQL2005 Express remotely when the firewall turned ON,
even port 1618 is already add into exception list.
Any idea ?
Thanks
JCVoon
Problem solved. I enable the Named Pipes protocol using SVRNETCN.exe
and restart the MSDE.
Why must enabled the Named Pipes when I only need TCP/IP protocol ?
JCVoon
On Jan 25, 12:45 pm, "jcvoon" <jiangchnan.v...@.maximas.com> wrote:
> Hi:
> I'm not able to connect to MSDE remotely. From the SQL Server logs, it
> is listening on Shared Memory only. How do I configure it to listen on
> TCP/IP ?
> The MSDE is running on WinXP Pro SP2, and there is a instance of
> SQL2005 Express installed side by side, the SQL2005 Express is
> configure to listen on port 1618. The firewall already turned off.
> Another problem is related to SQL2005 Express... I'm not able to
> connect to the SQL2005 Express remotely when the firewall turned ON,
> even port 1618 is already add into exception list.
> Any idea ?
> Thanks
> JCVoon
|||network communications are typically more interactive for named pipes whereas.
data transmissions are more streamlined and have less overhead in TCP/IP
You can have more in SQL BOL
"jcvoon" wrote:

> Problem solved. I enable the Named Pipes protocol using SVRNETCN.exe
> and restart the MSDE.
> Why must enabled the Named Pipes when I only need TCP/IP protocol ?
> JCVoon
>
> On Jan 25, 12:45 pm, "jcvoon" <jiangchnan.v...@.maximas.com> wrote:
>
|||> Another problem is related to SQL2005 Express... I'm not able to
> connect to the SQL2005 Express remotely when the firewall turned ON,
> even port 1618 is already add into exception list.
You have to add the C:\Program Files\Microsoft SQL
Server\90\Shared\sqlbrowser.exe into the exceptions list.

Monday, March 12, 2012

How to configure MSDE to listen on TCP/IP

Hi:
I'm not able to connect to MSDE remotely. From the SQL Server logs, it
is listening on Shared Memory only. How do I configure it to listen on
TCP/IP ?
The MSDE is running on WinXP Pro SP2, and there is a instance of
SQL2005 Express installed side by side, the SQL2005 Express is
configure to listen on port 1618. The firewall already turned off.
Another problem is related to SQL2005 Express... I'm not able to
connect to the SQL2005 Express remotely when the firewall turned ON,
even port 1618 is already add into exception list.
Any idea ?
Thanks
JCVoonProblem solved. I enable the Named Pipes protocol using SVRNETCN.exe
and restart the MSDE.
Why must enabled the Named Pipes when I only need TCP/IP protocol '
JCVoon
On Jan 25, 12:45 pm, "jcvoon" <jiangchnan.v...@.maximas.com> wrote:
> Hi:
> I'm not able to connect to MSDE remotely. From the SQL Server logs, it
> is listening on Shared Memory only. How do I configure it to listen on
> TCP/IP ?
> The MSDE is running on WinXP Pro SP2, and there is a instance of
> SQL2005 Express installed side by side, the SQL2005 Express is
> configure to listen on port 1618. The firewall already turned off.
> Another problem is related to SQL2005 Express... I'm not able to
> connect to the SQL2005 Express remotely when the firewall turned ON,
> even port 1618 is already add into exception list.
> Any idea ?
> Thanks
> JCVoon|||network communications are typically more interactive for named pipes wherea
s.
data transmissions are more streamlined and have less overhead in TCP/IP
You can have more in SQL BOL
"jcvoon" wrote:

> Problem solved. I enable the Named Pipes protocol using SVRNETCN.exe
> and restart the MSDE.
> Why must enabled the Named Pipes when I only need TCP/IP protocol '
> JCVoon
>
> On Jan 25, 12:45 pm, "jcvoon" <jiangchnan.v...@.maximas.com> wrote:
>|||> Another problem is related to SQL2005 Express... I'm not able to
> connect to the SQL2005 Express remotely when the firewall turned ON,
> even port 1618 is already add into exception list.
You have to add the C:\Program Files\Microsoft SQL
Server\90\Shared\sqlbrowser.exe into the exceptions list.

How to configure MSDE to listen on TCP/IP

Hi:
I'm not able to connect to MSDE remotely. From the SQL Server logs, it
is listening on Shared Memory only. How do I configure it to listen on
TCP/IP ?
The MSDE is running on WinXP Pro SP2, and there is a instance of
SQL2005 Express installed side by side, the SQL2005 Express is
configure to listen on port 1618. The firewall already turned off.
Another problem is related to SQL2005 Express... I'm not able to
connect to the SQL2005 Express remotely when the firewall turned ON,
even port 1618 is already add into exception list.
Any idea ?
Thanks
JCVoonProblem solved. I enable the Named Pipes protocol using SVRNETCN.exe
and restart the MSDE.
Why must enabled the Named Pipes when I only need TCP/IP protocol '
JCVoon
On Jan 25, 12:45 pm, "jcvoon" <jiangchnan.v...@.maximas.com> wrote:
> Hi:
> I'm not able to connect to MSDE remotely. From the SQL Server logs, it
> is listening on Shared Memory only. How do I configure it to listen on
> TCP/IP ?
> The MSDE is running on WinXP Pro SP2, and there is a instance of
> SQL2005 Express installed side by side, the SQL2005 Express is
> configure to listen on port 1618. The firewall already turned off.
> Another problem is related to SQL2005 Express... I'm not able to
> connect to the SQL2005 Express remotely when the firewall turned ON,
> even port 1618 is already add into exception list.
> Any idea ?
> Thanks
> JCVoon|||network communications are typically more interactive for named pipes whereas.
data transmissions are more streamlined and have less overhead in TCP/IP
You can have more in SQL BOL
"jcvoon" wrote:
> Problem solved. I enable the Named Pipes protocol using SVRNETCN.exe
> and restart the MSDE.
> Why must enabled the Named Pipes when I only need TCP/IP protocol '
> JCVoon
>
> On Jan 25, 12:45 pm, "jcvoon" <jiangchnan.v...@.maximas.com> wrote:
> > Hi:
> >
> > I'm not able to connect to MSDE remotely. From the SQL Server logs, it
> > is listening on Shared Memory only. How do I configure it to listen on
> > TCP/IP ?
> >
> > The MSDE is running on WinXP Pro SP2, and there is a instance of
> > SQL2005 Express installed side by side, the SQL2005 Express is
> > configure to listen on port 1618. The firewall already turned off.
> >
> > Another problem is related to SQL2005 Express... I'm not able to
> > connect to the SQL2005 Express remotely when the firewall turned ON,
> > even port 1618 is already add into exception list.
> >
> > Any idea ?
> >
> > Thanks
> > JCVoon
>|||> Another problem is related to SQL2005 Express... I'm not able to
> connect to the SQL2005 Express remotely when the firewall turned ON,
> even port 1618 is already add into exception list.
You have to add the C:\Program Files\Microsoft SQL
Server\90\Shared\sqlbrowser.exe into the exceptions list.