Re: SQL Express non-functional outside of VS 2005



Roger,

Thank you for responding so quickly. It will take me time to digest your
Nov article. Like I mentioned, I have a lot of new things to learn.

As additional info, the example web site I am working with is the VS-created
Personal Web Site. It runs fine inside of VS. When using IIS as the server,
it serves up properly but won't allow a connection. I will have to dig
through all the documentation to learn how it all works and find my
mistakes... a painful trial for someone who has, by necessity, stuck to MS
Access since 1995 (sys admins at work would not allow anything else).
--
Mike
Engineer (Part-time, brute-force, novice, just-to-solve-a-problem coder)


"Roger Wolter[MSFT]" wrote:

> Not sure exactly what you mean by attaching from IIS. Do you have an
> ASP.Net page you're using?
>
> By default, VS creates connections with the "User Instance" option. This
> means a private SQL Server instance is created just for your user and the
> database is attached to this instance. If your ASP.Net application also
> uses a user instance connection string, it will create an different SQL
> Instance running as ASPUSER. If VS has the database open when you try to
> run your ASP page, the ASPUSER instance will find that the file is already
> in use by you and thus the open will fail. VS has a lot of logic built in
> so that if you hit F5 to run your application, VS will close the file so
> ASPUSER can open it. If you don't do this and attempt to run your
> application from the browser while VS still has the database open, it will
> fail.
>
> There's a more complete explanation of how this works here:
>
> http://msdn.microsoft.com/sql/express/default.aspx?pull=/library/en-us/dnsse/html/sqlexpuserinst.asp
>
>
> --
> This posting is provided "AS IS" with no warranties, and confers no rights.
> Use of included script samples are subject to the terms specified at
> http://www.microsoft.com/info/cpyright.htm
>
> "Mike P" <MikeP@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> news:54DAC164-5CD5-407B-895E-19A8BE8D899B@xxxxxxxxxxxxxxxx
> > Folks,
> >
> > Just installed VS 2005 -- HUGE improvement over 6.0 (now I have to learn
> > all
> > the new languages... moving from desktop to web apps to run distributed
> > projects, workflows, and dashboards at work).
> >
> > SQL Express runs just fine inside VS. When I try to run from IIS I get no
> > connection. Services tab shows SQL Express up and running. Approaching
> > it
> > from MS Access as an ADP finds no SQL server to connect to, as well.
> >
> > On-line help assumes I have more of a clue than I do. This is a 20-second
> > fix for you gurus but a 3-week part-time journey thru pain and agony for
> > me.
> >
> > Help, please.
> > --
> > Mike
> > Engineer (part-time-, brute-force-, novice-, just-to-solve-a-problem-
> > coder)
>
>
>
.



Relevant Pages

  • Re: Connection issues between .Net framwok and SQl Express 2005
    ... You will no longer need the database MDF file name in the connection string. ... simply attach the ASPNETDB.mdf to SQL Server permenantly, ... as USER INSTANCE on existing SQL Server Express, ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: SQL Express non-functional outside of VS 2005
    ... Not sure exactly what you mean by attaching from IIS. ... VS creates connections with the "User Instance" option. ... uses a user instance connection string, it will create an different SQL ...
    (microsoft.public.sqlserver.setup)
  • Re: Some basic questions
    ... The application connection string has 'User instance = true' so I must be ... Jasper Smith (SQL Server MVP) ...
    (microsoft.public.sqlserver.setup)
  • Re: Concurrent database access in SQL 2005 Mobile
    ... Please stick to having an "dummy" connection in Open State. ... SQL CE/Mobile has a background thread that flushes the changes ... they run for long hours and we have not seen memory leaks so far. ... then opens his work forms and it's in ...
    (microsoft.public.sqlserver.ce)
  • Re: Concurrent database access in SQL 2005 Mobile
    ... Please stick to having an "dummy" connection in Open State. ... So it is a kind of asynchronous commit which happens every 10 ... I am not sure of this claim as we have many applications built on SQL CE ... then opens his work forms and it's in ...
    (microsoft.public.sqlserver.ce)