PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Hébergement serveur > ms.sqlserver.server > Starting SQL in single user mode
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Starting SQL in single user mode

Réponse
 
LinkBack Outils de la discussion
Vieux 16/05/2008, 21h00   #1
Linchi Shea
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Starting SQL in single user mode

This is an old issue, but I want to see whether there are new tricks.

If I want to start the SQL instance in a single user mode and I don't want
any app to get into it before I do, I can start it to listen on a different
port and disable SQL Browser. I think this is pretty safe. Another trick is
to disable named pipes and TCP, and let the instance listen on shared memory
only. The problem is that if there are apps running locally, they may still
get in before the DBA does.

Any thoughts?

Linchi


  Réponse avec citation
Vieux 17/05/2008, 01h51   #2
Andrew J. Kelly
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Starting SQL in single user mode

Turning off the browser wont if there are apps connecting via the IP
and port.

--
Andrew J. Kelly SQL MVP
Solid Quality Mentors


"Linchi Shea" <linchiDOTsheaATgmailDOTcom> wrote in message
news:eIT0P%234tIHA.5168@TK2MSFTNGP04.phx.gbl...
> This is an old issue, but I want to see whether there are new tricks.
>
> If I want to start the SQL instance in a single user mode and I don't want
> any app to get into it before I do, I can start it to listen on a
> different port and disable SQL Browser. I think this is pretty safe.
> Another trick is to disable named pipes and TCP, and let the instance
> listen on shared memory only. The problem is that if there are apps
> running locally, they may still get in before the DBA does.
>
> Any thoughts?
>
> Linchi
>
>


  Réponse avec citation
Vieux 17/05/2008, 04h37   #3
Linchi Shea
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Starting SQL in single user mode

Andy;
But I did say change the port and turn off SQL Browser. They can connect via
IP and port, but they won't get to the right port without the of SQL
Browser.

Linchi

"Andrew J. Kelly" wrote:

> Turning off the browser wont if there are apps connecting via the IP
> and port.
>
> --
> Andrew J. Kelly SQL MVP
> Solid Quality Mentors
>
>
> "Linchi Shea" <linchiDOTsheaATgmailDOTcom> wrote in message
> news:eIT0P%234tIHA.5168@TK2MSFTNGP04.phx.gbl...
> > This is an old issue, but I want to see whether there are new tricks.
> >
> > If I want to start the SQL instance in a single user mode and I don't want
> > any app to get into it before I do, I can start it to listen on a
> > different port and disable SQL Browser. I think this is pretty safe.
> > Another trick is to disable named pipes and TCP, and let the instance
> > listen on shared memory only. The problem is that if there are apps
> > running locally, they may still get in before the DBA does.
> >
> > Any thoughts?
> >
> > Linchi
> >
> >

>
>

  Réponse avec citation
Vieux 17/05/2008, 13h27   #4
Andrew J. Kelly
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Starting SQL in single user mode

Ah yes you did, I misread it the first time. How about disconnecting the
network cable.

--
Andrew J. Kelly SQL MVP
Solid Quality Mentors


"Linchi Shea" <LinchiShea@discussions.microsoft.com> wrote in message
news:E4DF93F1-3CD2-4F91-9C88-F0D9D84F7CEB@microsoft.com...
> Andy;
> But I did say change the port and turn off SQL Browser. They can connect
> via
> IP and port, but they won't get to the right port without the of SQL
> Browser.
>
> Linchi
>
> "Andrew J. Kelly" wrote:
>
>> Turning off the browser wont if there are apps connecting via the IP
>> and port.
>>
>> --
>> Andrew J. Kelly SQL MVP
>> Solid Quality Mentors
>>
>>
>> "Linchi Shea" <linchiDOTsheaATgmailDOTcom> wrote in message
>> news:eIT0P%234tIHA.5168@TK2MSFTNGP04.phx.gbl...
>> > This is an old issue, but I want to see whether there are new tricks.
>> >
>> > If I want to start the SQL instance in a single user mode and I don't
>> > want
>> > any app to get into it before I do, I can start it to listen on a
>> > different port and disable SQL Browser. I think this is pretty safe.
>> > Another trick is to disable named pipes and TCP, and let the instance
>> > listen on shared memory only. The problem is that if there are apps
>> > running locally, they may still get in before the DBA does.
>> >
>> > Any thoughts?
>> >
>> > Linchi
>> >
>> >

>>
>>


  Réponse avec citation
Vieux 17/05/2008, 14h20   #5
Linchi Shea
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Starting SQL in single user mode

That would not be feasible in any modern data center as you won't be
physically next to the machine, and pulling the cable would cut yourself from
accessing the machine.

Linchi

"Andrew J. Kelly" wrote:

> Ah yes you did, I misread it the first time. How about disconnecting the
> network cable.
>
> --
> Andrew J. Kelly SQL MVP
> Solid Quality Mentors
>
>
> "Linchi Shea" <LinchiShea@discussions.microsoft.com> wrote in message
> news:E4DF93F1-3CD2-4F91-9C88-F0D9D84F7CEB@microsoft.com...
> > Andy;
> > But I did say change the port and turn off SQL Browser. They can connect
> > via
> > IP and port, but they won't get to the right port without the of SQL
> > Browser.
> >
> > Linchi
> >
> > "Andrew J. Kelly" wrote:
> >
> >> Turning off the browser wont if there are apps connecting via the IP
> >> and port.
> >>
> >> --
> >> Andrew J. Kelly SQL MVP
> >> Solid Quality Mentors
> >>
> >>
> >> "Linchi Shea" <linchiDOTsheaATgmailDOTcom> wrote in message
> >> news:eIT0P%234tIHA.5168@TK2MSFTNGP04.phx.gbl...
> >> > This is an old issue, but I want to see whether there are new tricks.
> >> >
> >> > If I want to start the SQL instance in a single user mode and I don't
> >> > want
> >> > any app to get into it before I do, I can start it to listen on a
> >> > different port and disable SQL Browser. I think this is pretty safe.
> >> > Another trick is to disable named pipes and TCP, and let the instance
> >> > listen on shared memory only. The problem is that if there are apps
> >> > running locally, they may still get in before the DBA does.
> >> >
> >> > Any thoughts?
> >> >
> >> > Linchi
> >> >
> >> >
> >>
> >>

>
>

  Réponse avec citation
Vieux 17/05/2008, 21h35   #6
Andrew J. Kelly
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Starting SQL in single user mode

Come on Linchi, it was a joke


--
Andrew J. Kelly SQL MVP
Solid Quality Mentors


"Linchi Shea" <LinchiShea@discussions.microsoft.com> wrote in message
news:5C12E841-3606-4E8C-8877-02F008338935@microsoft.com...
> That would not be feasible in any modern data center as you won't be
> physically next to the machine, and pulling the cable would cut yourself
> from
> accessing the machine.
>
> Linchi
>
> "Andrew J. Kelly" wrote:
>
>> Ah yes you did, I misread it the first time. How about disconnecting the
>> network cable.
>>
>> --
>> Andrew J. Kelly SQL MVP
>> Solid Quality Mentors
>>
>>
>> "Linchi Shea" <LinchiShea@discussions.microsoft.com> wrote in message
>> news:E4DF93F1-3CD2-4F91-9C88-F0D9D84F7CEB@microsoft.com...
>> > Andy;
>> > But I did say change the port and turn off SQL Browser. They can
>> > connect
>> > via
>> > IP and port, but they won't get to the right port without the of
>> > SQL
>> > Browser.
>> >
>> > Linchi
>> >
>> > "Andrew J. Kelly" wrote:
>> >
>> >> Turning off the browser wont if there are apps connecting via the
>> >> IP
>> >> and port.
>> >>
>> >> --
>> >> Andrew J. Kelly SQL MVP
>> >> Solid Quality Mentors
>> >>
>> >>
>> >> "Linchi Shea" <linchiDOTsheaATgmailDOTcom> wrote in message
>> >> news:eIT0P%234tIHA.5168@TK2MSFTNGP04.phx.gbl...
>> >> > This is an old issue, but I want to see whether there are new
>> >> > tricks.
>> >> >
>> >> > If I want to start the SQL instance in a single user mode and I
>> >> > don't
>> >> > want
>> >> > any app to get into it before I do, I can start it to listen on a
>> >> > different port and disable SQL Browser. I think this is pretty safe.
>> >> > Another trick is to disable named pipes and TCP, and let the
>> >> > instance
>> >> > listen on shared memory only. The problem is that if there are apps
>> >> > running locally, they may still get in before the DBA does.
>> >> >
>> >> > Any thoughts?
>> >> >
>> >> > Linchi
>> >> >
>> >> >
>> >>
>> >>

>>
>>


  Réponse avec citation
Vieux 17/05/2008, 23h38   #7
Plamen Ratchev
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Starting SQL in single user mode

One way would be to create server login trigger and rollback any user
connections except the user account you will use. Then enable and disable
the trigger as need.
http://www.sqljunkies.com/WebLog/kte.../09/25306.aspx
http://technet.microsoft.com/en-us/l.../bb326598.aspx

HTH,

Plamen Ratchev
http://www.SQLStudio.com

  Réponse avec citation
Vieux 20/05/2008, 20h22   #8
Ekrem Önsoy
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Starting SQL in single user mode

An interesting topic here.

How about simply disabling all the Logins except for the DBA' s special
Login?

Note:
I assume there is a decent Login planning in this ideal environment. By
saying "decent Login planning" I mean creating Logins using Windows
Groups\Accounts.

--
Ekrem Önsoy



"Linchi Shea" <linchiDOTsheaATgmailDOTcom> wrote in message
news:eIT0P%234tIHA.5168@TK2MSFTNGP04.phx.gbl...
> This is an old issue, but I want to see whether there are new tricks.
>
> If I want to start the SQL instance in a single user mode and I don't want
> any app to get into it before I do, I can start it to listen on a
> different port and disable SQL Browser. I think this is pretty safe.
> Another trick is to disable named pipes and TCP, and let the instance
> listen on shared memory only. The problem is that if there are apps
> running locally, they may still get in before the DBA does.
>
> Any thoughts?
>
> Linchi
>
>


  Réponse avec citation
Vieux 21/05/2008, 04h41   #9
Linchi Shea
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Starting SQL in single user mode

The problem there is that the solution is not 100% robust. When you need to
start the SQL instance in single user mode, it maybe in a state where it
can't be started any other way. So now, how do you go about disabling the
logins?

This applies to using logon triggers as well.

Linchi

"Ekrem Önsoy" wrote:

> An interesting topic here.
>
> How about simply disabling all the Logins except for the DBA' s special
> Login?
>
> Note:
> I assume there is a decent Login planning in this ideal environment. By
> saying "decent Login planning" I mean creating Logins using Windows
> Groups\Accounts.
>
> --
> Ekrem nsoy
>
>
>
> "Linchi Shea" <linchiDOTsheaATgmailDOTcom> wrote in message
> news:eIT0P%234tIHA.5168@TK2MSFTNGP04.phx.gbl...
> > This is an old issue, but I want to see whether there are new tricks.
> >
> > If I want to start the SQL instance in a single user mode and I don't want
> > any app to get into it before I do, I can start it to listen on a
> > different port and disable SQL Browser. I think this is pretty safe.
> > Another trick is to disable named pipes and TCP, and let the instance
> > listen on shared memory only. The problem is that if there are apps
> > running locally, they may still get in before the DBA does.
> >
> > Any thoughts?
> >
> > Linchi
> >
> >

>

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 17h34.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,17764 seconds with 17 queries