Re: Installing Sql Server Express on Vista Home Premium
- From: Peter <Peter@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 17 Nov 2008 09:48:07 -0800
Hi
I am not able to implement your ideas till later, but I have a couple of
questions that I hope you can answer for me:
(1) Why would the same connection string work on one Vista system but not on
the two others?
(2) What would the connect string be to use the "Shared Memory" protocol?
The plan is for the database and application to remain on the one server.
Cheers
Peter
"Ekrem Önsoy" wrote:
Peter,.
It seems that your SQL Server instances are Named Instances, not Default
Instances. Named Instances use Dynamic Ports instead of Static Ports.
Default Instances uses 1433 TCP port by default as a Static Port but not the
Named Instances.
If you change your Connection String as following, your application should
connect.
.ConnectionString = "Provider=SQLOLEDB.1" & ";Persist Security Info=False"
&
";User ID=peter;Password=peter;Initial Catalog=foodbank;Data Source=" &
dbname & ";Network Library=DBMSSOCN"
I simply removed the port number from the Connection String.
To find out which instance use which port, you can use SQL Server
Configuration Manager. Open this tool and then go to "SQL Server Network
Configuration" node and after expanding it, go to properties of the related
instance' s TCP/IP port. In the TCP/IP properties window, go to IP Addresses
tab, there you'll find the dynamically assigned port at the bottom.
Also, you do not have to use TCP/IP protocol if your SQL Server instance and
application instance are running on the same server and if there will not be
remotely and directly connecting users to your SQL Server instance. In this
case, "Shared Memory" protocol will do the job faster.
--
Ekrem Önsoy
"Peter" <Peter@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:D774A32E-441E-4AB9-832D-F1DA5D51E66F@xxxxxxxxxxxxxxxx
Hi
You are right with all of your assumptions. The connect string I use is:
dbname = "sqlserver\sqlexpress"
.ConnectionString = "Provider=SQLOLEDB.1" & ";Persist Security Info=False"
&
";User ID=peter;Password=peter;Initial Catalog=foodbank;Data Source=" &
dbname & ",1433;Network Library=DBMSSOCN"
The database that I am using is set to the default for the connecting
user.
I can connect using SSMSE
Cheers
Peter
"Ekrem Önsoy" wrote:
Hi Peter,
According to your story, I assume you have three computers with Windows
Vista installed and every computer has its own SQL Server 2008 Express
Edition installed on it and every application instance tries to connect
to
its locally installed SQL Server instance, right?
Can you tell us what connection string you use for your application to
make
connection to SQL Server? Are your SQL Server instances Default
Instances?
Also, can you connect to these instances using SSMSE?
--
Ekrem Önsoy
"Peter" <Peter@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:CE45E6EE-FF49-48BE-A671-D73D1D4642AD@xxxxxxxxxxxxxxxx
Hi
I have install Express on three Vista HP computers, on one everything
works
fine, but on the other two my application cannot connect to the
instance.
Any
ideas?
Studio runs and connects to the database.
Remote connections is enabled.
The Browser service is set to automatic.
IP Connections is enabled and set to listen on all ports.
Cheers
Peter
- Follow-Ups:
- Re: Installing Sql Server Express on Vista Home Premium
- From: Ekrem Önsoy
- Re: Installing Sql Server Express on Vista Home Premium
- References:
- Installing Sql Server Express on Vista Home Premium
- From: Peter
- Re: Installing Sql Server Express on Vista Home Premium
- From: Ekrem Önsoy
- Re: Installing Sql Server Express on Vista Home Premium
- From: Peter
- Re: Installing Sql Server Express on Vista Home Premium
- From: Ekrem Önsoy
- Installing Sql Server Express on Vista Home Premium
- Prev by Date: Re: Installing Sql Server Express on Vista Home Premium
- Next by Date: Re: Installing Sql Server Express on Vista Home Premium
- Previous by thread: Re: Installing Sql Server Express on Vista Home Premium
- Next by thread: Re: Installing Sql Server Express on Vista Home Premium
- Index(es):
Relevant Pages
|