Dear all,
I have setup a database under SQLexpress 2005 which is install on a Vista OS.
I can manage without any problem my database from the VIsta workstation.
Then on an other PC, I am trying to create a connection to that databse with
..NET 1.1, but no luck
I ma using similar conenction string as for an SQL server databse excpet
that Server="MyWorkStationName\SQLEXPRESS".
I have place the conenctionstring in a config file as follow :
"Database=Line_Config;Server=MyWorkStationName\SQL EXPRESS;uid=rptuser;Pwd=reporting"
What is wrong that prebvent me from connection to database ?
Is it possible to connect to an SQLExpress database located on an other PC ?
thnaks for help
regards
serge
Probably either the SQL Server Express instance has not enabled remote
connections, or a firewall is blocking the connection.
Run through the short tutorial in Books Online and see if that solves the
problem. The tutorial is also online at
http://msdn2.microsoft.com/en-us/library/ms345318.aspx Note that lesson 2 is
Connecting from Another Computer.
Rick Byham (MSFT)
This posting is provided "AS IS" with no warranties, and confers no rights.
"calderara" <calderara@.discussions.microsoft.com> wrote in message
news:067F10D8-72B1-4858-AE9F-E5EEF213BEF1@.microsoft.com...
> Dear all,
> I have setup a database under SQLexpress 2005 which is install on a Vista
> OS.
> I can manage without any problem my database from the VIsta workstation.
> Then on an other PC, I am trying to create a connection to that databse
> with
> .NET 1.1, but no luck
> I ma using similar conenction string as for an SQL server databse excpet
> that Server="MyWorkStationName\SQLEXPRESS".
> I have place the conenctionstring in a config file as follow :
>
> "Database=Line_Config;Server=MyWorkStationName\SQL EXPRESS;uid=rptuser;Pwd=reporting"
> What is wrong that prebvent me from connection to database ?
> Is it possible to connect to an SQLExpress database located on an other PC
> ?
> thnaks for help
> regards
> serge
|||Thnaks for your reply...
I have check seetings as describe in this link.
What happen is that I have SQL express install on a Vista machine
Then I set use of tcp port from the surface configuration tool and set port
to 1500
From a simple remote machine running w2000, I try to establish an ODBC
connection to my VIsta machine where SQL express is installed.
For that I have install on my 2000 machine the SQL native client for 2005
and try to define a DSN name but when trying to connect...no way...
Any ideas ?
regards
serge
"Rick Byham, (MSFT)" wrote:
> Probably either the SQL Server Express instance has not enabled remote
> connections, or a firewall is blocking the connection.
> Run through the short tutorial in Books Online and see if that solves the
> problem. The tutorial is also online at
> http://msdn2.microsoft.com/en-us/library/ms345318.aspx Note that lesson 2 is
> Connecting from Another Computer.
> --
> Rick Byham (MSFT)
> This posting is provided "AS IS" with no warranties, and confers no rights.
> "calderara" <calderara@.discussions.microsoft.com> wrote in message
> news:067F10D8-72B1-4858-AE9F-E5EEF213BEF1@.microsoft.com...
>
|||Did you stop and restart SQL Server 2005 Express Edition after setting 1500
as the fixed port?
Are you attempting to connect to the Express Edition by name in the format
computer_name\SQLExpress ?
Is the SQL Server Browser service running?
Can you connect to the Express Edition by the port number using
computer_name,1500 or by IP address in the format 127.025.144.315,1500 ?
Rick Byham (MSFT)
This posting is provided "AS IS" with no warranties, and confers no rights.
"calderara" <calderara@.discussions.microsoft.com> wrote in message
news:F1AB79D1-899E-40C6-BE14-21D0305C36CA@.microsoft.com...[vbcol=seagreen]
> Thnaks for your reply...
> I have check seetings as describe in this link.
> What happen is that I have SQL express install on a Vista machine
> Then I set use of tcp port from the surface configuration tool and set
> port
> to 1500
> From a simple remote machine running w2000, I try to establish an ODBC
> connection to my VIsta machine where SQL express is installed.
> For that I have install on my 2000 machine the SQL native client for 2005
> and try to define a DSN name but when trying to connect...no way...
> Any ideas ?
> regards
> serge
> "Rick Byham, (MSFT)" wrote:
|||OK it works now rick...
I have made 2 mistakes...
Frist of all I forgot to open the port 1500 in my windows firewall.
Then I was accessing my server by using <myPCname>\SQLEXPRESS as I use to do
normally with SQL server.
SO in order to work I have to connect using tcp:<myPCname>\SQLEXPRESS,1500
But I like whem I undersatnd things. This connection string using sytax
above is use like that only for this express edition ? I guess not, I mean I
have made many connection like that with SQL server ( On a real server sure)
and I was juist using the instance and Pc name.
Or may be it would work also if I add left the default setting when you use
TCP as port 1443 and let SQL as dynamic mode and then just open the port 1443
on my firewall. Then use as connection string :<myPCname>\SQLEXPRESS.
But of course dynamic means dynamic.
Does it means that this dynamic TP port seting should never be use with SQL
server ?
regards
serge
"Rick Byham, (MSFT)" wrote:
> Did you stop and restart SQL Server 2005 Express Edition after setting 1500
> as the fixed port?
> Are you attempting to connect to the Express Edition by name in the format
> computer_name\SQLExpress ?
> Is the SQL Server Browser service running?
> Can you connect to the Express Edition by the port number using
> computer_name,1500 or by IP address in the format 127.025.144.315,1500 ?
> --
> Rick Byham (MSFT)
> This posting is provided "AS IS" with no warranties, and confers no rights.
> "calderara" <calderara@.discussions.microsoft.com> wrote in message
> news:F1AB79D1-899E-40C6-BE14-21D0305C36CA@.microsoft.com...
>
|||Connecting to the server name (<myPCname>\SQLEXPRESS) should work, if the
SQL Server Browser service is running. However, yes, you are correct that if
SQL Server Express Edition is using dynamic ports, then the port could
change to one that is blocked by the firewall. So you will need to switch
SQL Server Express Edition to a fixed port.
Rick Byham (MSFT)
This posting is provided "AS IS" with no warranties, and confers no rights.
"calderara" <calderara@.discussions.microsoft.com> wrote in message
news:B778178D-FF1E-4827-981E-369B3C5C9AFE@.microsoft.com...[vbcol=seagreen]
> OK it works now rick...
> I have made 2 mistakes...
> Frist of all I forgot to open the port 1500 in my windows firewall.
> Then I was accessing my server by using <myPCname>\SQLEXPRESS as I use to
> do
> normally with SQL server.
> SO in order to work I have to connect using tcp:<myPCname>\SQLEXPRESS,1500
> But I like whem I undersatnd things. This connection string using sytax
> above is use like that only for this express edition ? I guess not, I mean
> I
> have made many connection like that with SQL server ( On a real server
> sure)
> and I was juist using the instance and Pc name.
> Or may be it would work also if I add left the default setting when you
> use
> TCP as port 1443 and let SQL as dynamic mode and then just open the port
> 1443
> on my firewall. Then use as connection string :<myPCname>\SQLEXPRESS.
> But of course dynamic means dynamic.
> Does it means that this dynamic TP port seting should never be use with
> SQL
> server ?
> regards
> serge
> "Rick Byham, (MSFT)" wrote:
No comments:
Post a Comment