all groups > sql server msde > march 2007 >
You're in the

sql server msde

group:

OSQL Remote Connection Refused on SQL Svr 2005 Express SP-2



Re: OSQL Remote Connection Refused on SQL Svr 2005 Express SP-2 William (Bill) Vaughn
3/20/2007 12:26:27 PM
sql server msde: Did you start the SQL Browser service?

--=20
____________________________________
William (Bill) Vaughn
Author, Mentor, Consultant
Microsoft MVP
INETA Speaker
www.betav.com/blog/billva
www.betav.com
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no =
rights.
__________________________________
Visit www.hitchhikerguides.net to get more information on my latest =
book:
Hitchhiker's Guide to Visual Studio and SQL Server (7th Edition)
and Hitchhiker's Guide to SQL Server 2005 Compact Edition (EBook)
-------------------------------------------------------------------------=
----------------------------------------------

[quoted text, click to view]
I'm getting the below error when I try and run a simple OSQL command =
to backup the database "TotalSpeech".
---------------------------------------------
C:\>OSQL -Usa -P -n -Q "BACKUP DATABASE TotalSpeech TO DISK =3D =
'C:\Program Files\
Microsoft SQL Server\MSSQL.1\MSSQL\Backup\TotalSpeech-Full Database =
Backup.bak'"

[SQL Native Client]TCP Provider: No connection could be made because =
the
target machine actively refused it.
[SQL Native Client]Login timeout expired
[SQL Native Client]An error has occurred while establishing a =
connection to
the server. When connecting to SQL Server 2005, this failure may be =
caused by
the fact that under the default settings SQL Server does not allow =
remote
connections.

C:\>
---------------------------------------------

I've enabled TCP/IP and Named Pipes and also checked that "Allow =
remote connections" is enabled/ticked in the SQLEXPRESS svr. I've setup =
an ODBC connection which connects fine - am I doing something wrong. =
OSQL Remote Connection Refused on SQL Svr 2005 Express SP-2 Hoja, Michael
3/20/2007 6:18:32 PM
I'm getting the below error when I try and run a simple OSQL command to =
backup the database "TotalSpeech".
---------------------------------------------
C:\>OSQL -Usa -P -n -Q "BACKUP DATABASE TotalSpeech TO DISK =3D =
'C:\Program Files\
Microsoft SQL Server\MSSQL.1\MSSQL\Backup\TotalSpeech-Full Database =
Backup.bak'"

[SQL Native Client]TCP Provider: No connection could be made because the
target machine actively refused it.
[SQL Native Client]Login timeout expired
[SQL Native Client]An error has occurred while establishing a connection =
to
the server. When connecting to SQL Server 2005, this failure may be =
caused by
the fact that under the default settings SQL Server does not allow =
remote
connections.

C:\>
---------------------------------------------

I've enabled TCP/IP and Named Pipes and also checked that "Allow remote =
connections" is enabled/ticked in the SQLEXPRESS svr. I've setup an =
ODBC connection which connects fine - am I doing something wrong. Help =
Re: OSQL Remote Connection Refused on SQL Svr 2005 Express SP-2 Hoja, Michael
3/20/2007 8:11:55 PM
Yes I did and I also rebooted several times afterwards.
[quoted text, click to view]
Did you start the SQL Browser service?

--=20
____________________________________
William (Bill) Vaughn
Author, Mentor, Consultant
Microsoft MVP
INETA Speaker
www.betav.com/blog/billva
www.betav.com
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no =
rights.
__________________________________
Visit www.hitchhikerguides.net to get more information on my latest =
book:
Hitchhiker's Guide to Visual Studio and SQL Server (7th Edition)
and Hitchhiker's Guide to SQL Server 2005 Compact Edition (EBook)
=
-------------------------------------------------------------------------=
----------------------------------------------

[quoted text, click to view]
I'm getting the below error when I try and run a simple OSQL command =
to backup the database "TotalSpeech".
---------------------------------------------
C:\>OSQL -Usa -P -n -Q "BACKUP DATABASE TotalSpeech TO DISK =3D =
'C:\Program Files\
Microsoft SQL Server\MSSQL.1\MSSQL\Backup\TotalSpeech-Full Database =
Backup.bak'"

[SQL Native Client]TCP Provider: No connection could be made because =
the
target machine actively refused it.
[SQL Native Client]Login timeout expired
[SQL Native Client]An error has occurred while establishing a =
connection to
the server. When connecting to SQL Server 2005, this failure may be =
caused by
the fact that under the default settings SQL Server does not allow =
remote
connections.

C:\>
---------------------------------------------

I've enabled TCP/IP and Named Pipes and also checked that "Allow =
remote connections" is enabled/ticked in the SQLEXPRESS svr. I've setup =
an ODBC connection which connects fine - am I doing something wrong. =
Re: OSQL Remote Connection Refused on SQL Svr 2005 Express SP-2 Hoja, Michael
3/20/2007 10:35:29 PM
It's fine now. I decided not to use OSQL and use the new advanced =
SQLCMD.exe with command switches. It works fine without errors. Thanks =
for the fast reply Bill.

Michael.
[quoted text, click to view]
Yes I did and I also rebooted several times afterwards.
"William (Bill) Vaughn" <billvaRemoveThis@nwlink.com> wrote in =
message news:Oby3oWyaHHA.4520@TK2MSFTNGP06.phx.gbl...
Did you start the SQL Browser service?

--=20
____________________________________
William (Bill) Vaughn
Author, Mentor, Consultant
Microsoft MVP
INETA Speaker
www.betav.com/blog/billva
www.betav.com
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no =
rights.
__________________________________
Visit www.hitchhikerguides.net to get more information on my latest =
book:
Hitchhiker's Guide to Visual Studio and SQL Server (7th Edition)
and Hitchhiker's Guide to SQL Server 2005 Compact Edition (EBook)
=
-------------------------------------------------------------------------=
----------------------------------------------

[quoted text, click to view]
I'm getting the below error when I try and run a simple OSQL =
command to backup the database "TotalSpeech".
---------------------------------------------
C:\>OSQL -Usa -P -n -Q "BACKUP DATABASE TotalSpeech TO DISK =3D =
'C:\Program Files\
Microsoft SQL Server\MSSQL.1\MSSQL\Backup\TotalSpeech-Full =
Database Backup.bak'"

[SQL Native Client]TCP Provider: No connection could be made =
because the
target machine actively refused it.
[SQL Native Client]Login timeout expired
[SQL Native Client]An error has occurred while establishing a =
connection to
the server. When connecting to SQL Server 2005, this failure may =
be caused by
the fact that under the default settings SQL Server does not allow =
remote
connections.

C:\>
---------------------------------------------

I've enabled TCP/IP and Named Pipes and also checked that "Allow =
remote connections" is enabled/ticked in the SQLEXPRESS svr. I've setup =
an ODBC connection which connects fine - am I doing something wrong. =
AddThis Social Bookmark Button