Re: Connecting To SSE with MSE

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Gilles Nambert (gntools@xxxxxxxxxx) writes:
I've an SSE Database on a ASP .NET application, with the folowing :

connectionString="Data
Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\LPA.mdf;Integrated
Security=True;User Instance=False;Database=LPA"
providerName="System.Data.SqlClient"

Then, i try to connect Management Studio Express, but i get an error :

Autorisation CREATE DATABASE refusée dans la base de données 'master'.
Impossible de joindre le fichier 'D:\Sites\Lpa\App_Data\LPA.mdf' en tant
que base de données 'LPA'.

I did not find much help in the doc on line. So, is it possible and how
?

The error messeage should be pretty clear: it means that you don't have
CREATE DATABASE permission. Do you expect to have this permission?

You say this this is an ASP. Net application. Do you get this error when
you run the above from the web server? In that case it is the service
account for the web server that needs to have this permission.

If you get this error when you run this directly, it may be that you are
on Vista, and you have not set up your own account as administrator in
SQL Server. In this case you need to start Mgmt STtudio Express by right-
clicking it and select Run As Administrator.



--
Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
.



Relevant Pages

  • Idiomatic Expressions to Operating System Architecture: Transforming Rigids
    ... <Subject: Re: Idiomatic Expressions to Operating ... <endpoint during a single session * DATABASE + by ... <statements is a new feature of SQL Server 2005. ...
    (sci.math)
  • Re: MS Access DAO -> ADO.NET Migration
    ... William Vaughn ... Microsoft MVP ... Hitchhiker's Guide to Visual Studio and SQL Server ... My migration app works building a SSCE database file with imported data ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Cluster will not fail over.
    ... > As far as the TCP/IP issue goes, you had to rebuild the cluster and were ... > able to restore the master database. ... > a cluster installation you'll have to revisit. ... >> This worked bringing up the sql server in minimal mode. ...
    (microsoft.public.sqlserver.clustering)
  • Re: Complete Neophyte Question(s)
    ... I have a user named james on a database. ... WITH GRANT is one of the more esotheric features in SQL Server in my ... Or does that depend on the permission? ... CREATE USER erik ...
    (microsoft.public.sqlserver.security)
  • Re: MS Access DAO -> ADO.NET Migration
    ... full SQL Server and I see the logic you explained in a multi user ... allow two users to access the same database file Read/Write at any given ... The book was a pleasure to read after the gibberish that Microsoft 'puts ... Hitchhiker's Guide to Visual Studio and SQL Server ...
    (microsoft.public.dotnet.framework.adonet)