RE: Discovering SQL Server instances in Server Explorer

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Cameron Slade [MSFT] (camsl_at_online.microsoft.com)
Date: 07/22/04

  • Next message: Egbert Nierop \(MVP for IIS\): "is backdoor virus"
    Date: Thu, 22 Jul 2004 19:29:48 GMT
    
    

    Hi Travis,

    You should be able to accomplish what you are trying to do by running the following script while connected as a DB admin to the instance of MSDE. Remember to replace <machine name> with
    the name of the machine hosting MSDE.

    if not exists (select * from master.dbo.syslogins where loginname = N'<machine name>\VS Developers')
            exec sp_grantlogin N'<machine name>\VS Developers'
            exec sp_defaultdb N'<machine name>\VS Developers', N'master'
            exec sp_defaultlanguage N'<machine name>\VS Developers', N'us_english'
    GO

    exec sp_addsrvrolemember N'CAMSL-PENPC\VS Developers', sysadmin
    GO
    --------------------
    >Thread-Topic: Discovering SQL Server instances in Server Explorer
    >thread-index: AcRvWYjtb4xMCxu4Sfe9bw7yWD/tTA==
    >X-WBNR-Posting-Host: 209.12.55.48
    >From: "=?Utf-8?B?VHJhdmlzTA==?=" <TravisL@discussions.microsoft.com>
    >Subject: Discovering SQL Server instances in Server Explorer
    >Date: Wed, 21 Jul 2004 12:33:01 -0700
    >Lines: 6
    >Message-ID: <AC0EA164-7E94-48E8-9546-8E9DDCA21695@microsoft.com>
    >MIME-Version: 1.0
    >Content-Type: text/plain;
    > charset="Utf-8"
    >Content-Transfer-Encoding: 7bit
    >X-Newsreader: Microsoft CDO for Windows 2000
    >Content-Class: urn:content-classes:message
    >Importance: normal
    >Priority: normal
    >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
    >Newsgroups: microsoft.public.vsnet.enterprise.tools
    >NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.157
    >Path: cpmsftngxa06.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
    >Xref: cpmsftngxa06.phx.gbl microsoft.public.vsnet.enterprise.tools:2546
    >X-Tomcat-NG: microsoft.public.vsnet.enterprise.tools
    >
    >I am a deveoper using Visual Studio and an MSDE database located on a network server. My user account is not a member of 'Administrators' or 'Domain Admins', but is a member of
    'Debugger Users' and 'VS Developers'. When I use the Server Explorer in Visual Studio and expand 'SQL Servers' on the Server that hosts the MSDE database I get an error message that
    states:
    >
    >Could not automatically discover any SQL Server instances.
    >Choose Register SQL Server Instance from the shortcut menu if you know there are SQL Server instances on this machine.
    >
    >I tried that using the name of the SQL Server Instance and I eventually get the SQL Server Login prompt. I have tried granting my user account database access using sp_grantlogin,
    sp_grantdbaccess, and the Web Data Administrator. I can remote desktop to the server hosting MSDE and use the OSQL utility without a problem. What I would like to do, is give members of
    'VS Developers' the same access on the SQL server as local Administrators have.
    >

    Cameron Slade
    Microsoft VSData Team
    http://blogs.msdn.com/vsdata

    -- 
    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 
    Note:  For the benefit of the community-at-large, all responses to this message are best directed to the newsgroup/thread from which they originated.  
    

  • Next message: Egbert Nierop \(MVP for IIS\): "is backdoor virus"

    Relevant Pages

    • Re: SQLDMO.NameList returns Oracle??
      ... Just SQL Server instances. ... > Dim oServers As SQLDMO.NameList ...
      (microsoft.public.sqlserver.connect)
    • Re: Two Instances SQL Server 2000 - on same server
      ... you'll get better memory utilization... ... Wayne Snyder, MCDBA, SQL Server MVP ... Each of the two SQL Server instances hosts a rather ... > large analytical database. ...
      (microsoft.public.sqlserver.datawarehouse)
    • Re: Linked Server Connection Error: 18459
      ... Did either of your SQL Server instances run under a domain user account? ... I recommend that you first ensure that your SQL Server ...
      (microsoft.public.sqlserver.connect)
    • Running multiple instances in production environment. Good or bad?
      ... Hoping to get a answers from people with "real life" experience of ... As I have a Sql Server Standard Edition, "Per Processor" license, I am ... now considering to have two different Sql Server instances, ... to be negative to running multiple instances in a production ...
      (microsoft.public.sqlserver.server)
    • Re: Question on conversion to ADP
      ... parameters through VBA/pass-through queries. ... help/guidance coming from Microsoft for Access developers trying to ... Microsoft Access or SQL Server 2005: ...
      (microsoft.public.access.adp.sqlserver)