Hi,
I am having problems with my Visual Studio 2005 VB.net win app connecting
to SQL Express. I have configured my SQL Express to enable remote
connections, I believe it is correct, since others in the office can connect
to it using MS SQL Server Management Studio, and I can make a successful test
ODBC connection from the client computer, using both named pipes and tcpip.
But my VB.net app can not connect on the client computer, I get error -
System.Data.SqlClient.SqlException: 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. (provider: Named Pipes Provider, error: 40 - Could
not open a connection to SQL Server).
This app runs fine on the machine the SQL Express is running on (Windows
2000). My connection code is: Data Source=xxx\sqlexpress;Initial
Catalog=xxx;User ID=xxx;Password=xxx. I have tried putting np: and tcp: with
the port on the data source, but then the code doesn't run on the app on the
server...
Anybody know what I am doing wrong?
Thank you for any help.
Sandy
Hi,
any blocking firewall in the machine ? See if you can open up a
connction using the SQLCMD application from the command prompt.
HTH, Jens K. Suessmeyer.
http://www.sqlserver2005.de
|||Hi, Yes I can open a connection using SQLCMD, specifying both tcp with port,
and specifying np. The client machine doesn't have SQL installed, but the
odbc connections worked.
Sandy
"Jens" wrote:
> Hi,
> any blocking firewall in the machine ? See if you can open up a
> connction using the SQLCMD application from the command prompt.
> HTH, Jens K. Suessmeyer.
> --
> http://www.sqlserver2005.de
> --
>
Showing posts with label win. Show all posts
Showing posts with label win. Show all posts
Thursday, March 22, 2012
can not connect to remote SQL Express 2005
Hi,
I am having problems with my Visual Studio 2005 VB.net win app connecting
to SQL Express. I have configured my SQL Express to enable remote
connections, I believe it is correct, since others in the office can connec
t
to it using MS SQL Server Management Studio, and I can make a successful tes
t
ODBC connection from the client computer, using both named pipes and tcpip.
But my VB.net app can not connect on the client computer, I get error -
System.Data.SqlClient.SqlException: An error has occurred while establishing
a connection to the server. When connecting to SQL Server 2005, this failur
e
may be caused by the fact that under the default settings SQL Server does no
t
allow remote connections. (provider: Named Pipes Provider, error: 40 - Could
not open a connection to SQL Server).
This app runs fine on the machine the SQL Express is running on (Windows
2000). My connection code is: Data Source=xxx\sqlexpress;Initial
Catalog=xxx;User ID=xxx;Password=xxx. I have tried putting np: and tcp: wit
h
the port on the data source, but then the code doesn't run on the app on the
server...
Anybody know what I am doing wrong?
Thank you for any help.
SandyHi,
any blocking firewall in the machine ? See if you can open up a
connction using the SQLCMD application from the command prompt.
HTH, Jens K. Suessmeyer.
http://www.sqlserver2005.de
--|||Hi, Yes I can open a connection using SQLCMD, specifying both tcp with port
,
and specifying np. The client machine doesn't have SQL installed, but the
odbc connections worked.
Sandy
"Jens" wrote:
> Hi,
> any blocking firewall in the machine ? See if you can open up a
> connction using the SQLCMD application from the command prompt.
> HTH, Jens K. Suessmeyer.
> --
> http://www.sqlserver2005.de
> --
>
I am having problems with my Visual Studio 2005 VB.net win app connecting
to SQL Express. I have configured my SQL Express to enable remote
connections, I believe it is correct, since others in the office can connec
t
to it using MS SQL Server Management Studio, and I can make a successful tes
t
ODBC connection from the client computer, using both named pipes and tcpip.
But my VB.net app can not connect on the client computer, I get error -
System.Data.SqlClient.SqlException: An error has occurred while establishing
a connection to the server. When connecting to SQL Server 2005, this failur
e
may be caused by the fact that under the default settings SQL Server does no
t
allow remote connections. (provider: Named Pipes Provider, error: 40 - Could
not open a connection to SQL Server).
This app runs fine on the machine the SQL Express is running on (Windows
2000). My connection code is: Data Source=xxx\sqlexpress;Initial
Catalog=xxx;User ID=xxx;Password=xxx. I have tried putting np: and tcp: wit
h
the port on the data source, but then the code doesn't run on the app on the
server...
Anybody know what I am doing wrong?
Thank you for any help.
SandyHi,
any blocking firewall in the machine ? See if you can open up a
connction using the SQLCMD application from the command prompt.
HTH, Jens K. Suessmeyer.
http://www.sqlserver2005.de
--|||Hi, Yes I can open a connection using SQLCMD, specifying both tcp with port
,
and specifying np. The client machine doesn't have SQL installed, but the
odbc connections worked.
Sandy
"Jens" wrote:
> Hi,
> any blocking firewall in the machine ? See if you can open up a
> connction using the SQLCMD application from the command prompt.
> HTH, Jens K. Suessmeyer.
> --
> http://www.sqlserver2005.de
> --
>
Sunday, March 11, 2012
Can it be installed on a stand alone PC?
Hi,
I am new to sql server 2005.. Is it possible to install this on a win xp PC? I tried installing it and when I launch it it asks for a server name..
How do I point it to look in local databases?
Any help on getting started is appreciated..
Thanks
SQL Server 2005 Express Edition, and SQL Server 2005 Developer Edition will install on Windows XP.
The server editions (WorkGroup, Standard, and Enterprise) require a Windows Server OS -and will not install on the client OS (such as Windows XP).
Friday, February 10, 2012
can i keep sql server 2000 if upgrade win 2000 to win 2003 (was "sql server 2000
Hello, i have a question that the sql server 2000 is install in window 2000 server. If i want to update to window 2003. Is that any problem in sql server 2000. I am worry about whether we will have problem after update. What i need to do? Many thanks.Updating operating systems is a bit dodgy. You might want to back everything up, do a fresh install, and restore all the backups.
If you have to do the update, then SQL Server 2000 >SHOULD< run, so long as you have SQL SP3 installed.
Keep in mind, though, you should check with Microsoft before you do this to your really-important-finance database server. Opinions are not guarantees.|||Opinions are not guarantees.
--But, I would lay money down on this one. [:)] If this server is important, I wouldn't even consider upgrading the OS. Backup the files, format the drive, install 2003, install SQL Server, restore the databases.
It takes more time. It's safer. If this is a production server, that's the route I would take.|||i taught that when u upgrade it wipes out the application and writes a new operating system
better back up|||taught or thought??
......nevermind|||does it matter ! think like a good thought !! haa
If you have to do the update, then SQL Server 2000 >SHOULD< run, so long as you have SQL SP3 installed.
Keep in mind, though, you should check with Microsoft before you do this to your really-important-finance database server. Opinions are not guarantees.|||Opinions are not guarantees.
--But, I would lay money down on this one. [:)] If this server is important, I wouldn't even consider upgrading the OS. Backup the files, format the drive, install 2003, install SQL Server, restore the databases.
It takes more time. It's safer. If this is a production server, that's the route I would take.|||i taught that when u upgrade it wipes out the application and writes a new operating system
better back up|||taught or thought??
......nevermind|||does it matter ! think like a good thought !! haa
Subscribe to:
Posts (Atom)