Re: Cannot connect to SQL express database ????



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@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:067F10D8-72B1-4858-AE9F-E5EEF213BEF1@xxxxxxxxxxxxxxxx
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\SQLEXPRESS;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

.



Relevant Pages

  • Re: My Book is Incomplete Regarding SQL Commands ;-(
    ... Hitchhiker's Guide to Visual Studio and SQL Server ... Create a Connection object and pass in a ConnectionString to ... manage the database table you reference. ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: (Newbie)Application Roles
    ... level: the database itself. ... SQL Server accommodates these needs through the use of application ... the user's connection through a specific application. ... the connection permanently loses all permissions applied to ...
    (microsoft.public.sqlserver.security)
  • Re: Help! Set up Windows Group to access application
    ... The connection string for a trusted connection is: ... --add login as database user ... SQL Server MVP ... If you have troubles with finding your ways in Crystal Reports, ...
    (microsoft.public.sqlserver.security)
  • Re: My Book is Incomplete Regarding SQL Commands ;-(
    ... Visual Studio but not to VS 2003. ... Create a Connection object and pass in a ConnectionString to address ... manage the database table you reference. ... Yep, my latest book can help too, but mostly if you're targeting SQL Server ...
    (microsoft.public.dotnet.framework.adonet)
  • RE: Logging in in background
    ... wold take all kinds of modifictions as I'd need to be checking that each SQL ... my database and all have connection strings associated with them. ... I suspect that there is also an issue on the SQL Server side as I keep ...
    (microsoft.public.access.modulesdaovba)

Loading