Re: Is it MSDE or SQLServer

From: Tibor Karaszi (tibor_please.no.email_karaszi_at_hotmail.nomail.com)
Date: 05/03/04

  • Next message: Aaron Bertrand - MVP: "Re: updating database"
    Date: Mon, 3 May 2004 21:37:30 +0200
    
    

    A possible full SQL Server could be either a default or a named instance. I would check an installed MSDE to
    see if the registry will show whether it is an MSDE or not. If that info is available in the registry, just
    iterate the reg keys and see whether there is a full version or not.

    I don't have an MSDE available, but from looking at a dev edition install, there's a risk that you won't find
    out from the reg keys. If that is the case, you either have to try to log on using Windows Authentication and
    run SERVERPROPERTY (and if the login fails, let the user provide input), or just list the instances and let
    the user specify what to do...

    -- 
    Tibor Karaszi, SQL Server MVP
    http://www.karaszi.com/sqlserver/default.asp
    "JJ" <jjjj@nospam.com> wrote in message news:uJ8DB8TMEHA.2532@TK2MSFTNGP10.phx.gbl...
    > No, what I really want to do is find out if the "full" SQL Server is
    > installed.
    >
    > If it is, the installer does not do anything with the database server - it
    > installs some SQL scripts to create tables, but we leave it up to the end
    > user's administrator to create the database and set up database security as
    > they like.
    >
    > If it is not, then the installer installs MSDE in a named instance and
    > creates the database and tables (just attaches a pre-built .mdf file).
    >
    > Basically, if they already have the "full" SQL Server installed, I don't
    > want to touch it with my installer.  We are figuring (with the purpose of
    > our particular situation, not in general) that if they have SQL Server
    > installed, they know what they are doing and have preferences as to where
    > they want their database to go, collation options, maintenance plans,
    > security, etc. and don't want an automatic install that makes assumptions.
    > So I was hoping to find a sure-fire way to tell if full SQL Server is
    > installed.
    >
    > "Tibor Karaszi" <tibor_please.no.email_karaszi@hotmail.nomail.com> wrote in
    > message news:O0$iYDRMEHA.268@TK2MSFTNGP11.phx.gbl...
    > > My guess is that it is only created if a default instance is created. But,
    > does it matter? In any event, you
    > > want to enumerate the instance names so the user can select which instance
    > to use for the app (if not
    > > installing a new instance). Not?
    > >
    > > -- 
    > > Tibor Karaszi, SQL Server MVP
    > > http://www.karaszi.com/sqlserver/default.asp
    > >
    > >
    > > "JJ" <jjjj@nospam.com> wrote in message
    > news:%23xN2z8QMEHA.1312@TK2MSFTNGP12.phx.gbl...
    > > > Thanks.
    > > >
    > > > But if another software package has installed MSDE2000 (under a named
    > > > instance), won't the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSSQLServer
    > root
    > > > exist?  Or does that only get created when either SQL Server or MSDE is
    > > > installed as a default instance?
    > > >
    > > > "Tibor Karaszi" <tibor_please.no.email_karaszi@hotmail.nomail.com> wrote
    > in
    > > > message news:endiTvGMEHA.2388@TK2MSFTNGP09.phx.gbl...
    > > > > Here's the registry root for SQL Server for a default instance (and
    > > > earlier versions)
    > > > > HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSSQLServer
    > > > >
    > > > > And below is for the named instances:
    > > > > HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server
    > > > >
    > > > > Above should give you a starting point.
    > > > > -- 
    > > > > Tibor Karaszi, SQL Server MVP
    > > > > http://www.karaszi.com/sqlserver/default.asp
    > > > >
    > > > >
    > > > > "JJ" <jjjj@nospam.com> wrote in message
    > > > news:OCf8aOrLEHA.340@TK2MSFTNGP11.phx.gbl...
    > > > > > On a similar topic, is there a reliable way to tell if the "full"
    > SQL
    > > > Server
    > > > > > is simply installed (not MSDE), perhaps through registry entries?
    > I'd
    > > > like
    > > > > > to determine in my installer whether or not the user has the full
    > SQL
    > > > Server
    > > > > > installed already and if they do, use that instead of installing
    > MSDE.
    > > > > >
    > > > > >
    > > > > > "Greg Low (MVP)" <greglow@lowell.com.au> wrote in message
    > > > > > news:ugq1obqLEHA.2660@TK2MSFTNGP09.phx.gbl...
    > > > > > > In addition to what James wrote, the SERVERPROPERTY(Edition)
    > function
    > > > > > would
    > > > > > > probably give you a more direct (and system readable) option.
    > > > > > >
    > > > > > > HTH,
    > > > > > >
    > > > > > > -- 
    > > > > > > Greg Low (MVP)
    > > > > > > MSDE Manager SQL Tools
    > > > > > > www.whitebearconsulting.com
    > > > > > >
    > > > > > >
    > > > > > > "Erik Visser" <evisser@hotmail.com> wrote in message
    > > > > > > news:c6t7ka$fvc1o$1@ID-206424.news.uni-berlin.de...
    > > > > > > > > SELECT @@VERSION
    > > > > > > >
    > > > > > > > Yep, this works.
    > > > > > > > Thanks!
    > > > > > > >
    > > > > > > > Erik
    > > > > > > >
    > > > > > > >
    > > > > > >
    > > > > > >
    > > > > >
    > > > > >
    > > > >
    > > > >
    > > >
    > > >
    > >
    > >
    >
    >
    

  • Next message: Aaron Bertrand - MVP: "Re: updating database"

    Relevant Pages

    • Re: SQL or Access DB
      ... statement that MSDE is a bitch to deploy. ... up an installer to install MSDE, set up the accounts and create the tables I ... It comes with SQL Server 2000 Standard. ...
      (microsoft.public.dotnet.languages.vb)
    • Re: SQL or Access DB
      ... But with SQL Express ... is it worth it any longer to mess with an MSDE installation? ... > correctly write an installer project that installed MSDE correctly and set ... It comes with SQL Server 2000 Standard. ...
      (microsoft.public.dotnet.languages.vb)
    • Re: Cannot Install SQL Server SP2
      ... Okay - I was finally able to get SP2 installed. ... corrupted with the Windows Installer information for SQL Server 2005 as I ... I first tried just deleting the SQL Setup Support Files with the installer ...
      (microsoft.public.sqlserver.setup)
    • SQL 2005 Reporting Services will not uninstall
      ... I am having a heck of a time uninstalling SQL Server 2005 Reporting ... I've tried doing the same from the GUI installer. ... it will let me reinstall them, ...
      (microsoft.public.sqlserver.setup)
    • REPOST - MVP Needed - SQL 2005 Reporting Services will not uninsta
      ... I am having a heck of a time uninstalling SQL Server 2005 Reporting ... I've tried doing the same from the GUI installer. ... it will let me reinstall them, ...
      (microsoft.public.sqlserver.setup)