dbTalk Databases Forums  

Can a virtual server have local Windows users and groups?

microsoft.public.sqlserver.clustering microsoft.public.sqlserver.clustering


Discuss Can a virtual server have local Windows users and groups? in the microsoft.public.sqlserver.clustering forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
John [412075]
 
Posts: n/a

Default Can a virtual server have local Windows users and groups? - 01-27-2005 , 03:09 PM






Hi,

I have a scenario which works fine on a non-clustered SQL server, and I now
want to implement it on a clustered SQL server.

In a stand-alone, non-clustered environment:
- I have local Windows security groups on the machine; call the groups
MyGroup1, MyGroup2.
- I grant these groups login to the server, and access to the DB, as
follows: (later I add them to DB roles)

declare @servername sysname
declare @pos int
set @servername = serverproperty('MachineName')
set @pos = charindex(N'\', @servername, 0)
if @pos > 0
set @servername = left(@servername, @pos-1)

use master
declare @loginame sysname
set @loginame = @servername + '\MyGroup1'
if (not exists (select name from syslogins where name = @loginame))
begin
exec sp_grantlogin @loginame
end
exec sp_defaultdb @loginame, MyDatabase


I'd like to do something similar on a clustered SQL server. But does a
cluster have a concept of local Windows groups, or must they be domain
groups?

How would I go about setting this up?

Thanks,
John.



Reply With Quote
  #2  
Old   
Rodney R. Fournier [MVP]
 
Posts: n/a

Default Re: Can a virtual server have local Windows users and groups? - 01-27-2005 , 04:37 PM






I think I can answer this, since a cluster requires a domain account to
run - just make domain groups. Besides creating the local ones would be a
pain, think about failover.

Cheers,

Rod

MVP - Windows Server - Clustering
http://www.nw-america.com - Clustering
http://msmvps.com/clustering - Blog

"John [412075]" <John_dot_Knox_hyphen_Davies@wonderware0com> wrote in
message news:OmdbtRLBFHA.3376 (AT) TK2MSFTNGP12 (DOT) phx.gbl...
Quote:
Hi,

I have a scenario which works fine on a non-clustered SQL server, and I
now
want to implement it on a clustered SQL server.

In a stand-alone, non-clustered environment:
- I have local Windows security groups on the machine; call the groups
MyGroup1, MyGroup2.
- I grant these groups login to the server, and access to the DB, as
follows: (later I add them to DB roles)

declare @servername sysname
declare @pos int
set @servername = serverproperty('MachineName')
set @pos = charindex(N'\', @servername, 0)
if @pos > 0
set @servername = left(@servername, @pos-1)

use master
declare @loginame sysname
set @loginame = @servername + '\MyGroup1'
if (not exists (select name from syslogins where name = @loginame))
begin
exec sp_grantlogin @loginame
end
exec sp_defaultdb @loginame, MyDatabase


I'd like to do something similar on a clustered SQL server. But does a
cluster have a concept of local Windows groups, or must they be domain
groups?

How would I go about setting this up?

Thanks,
John.





Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.