dbTalk Databases Forums  

Detect User Groups Existence

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Detect User Groups Existence in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Derek Hart
 
Posts: n/a

Default Detect User Groups Existence - 05-04-2006 , 11:30 AM






I use the following command when installing a new database to grant access
to MyGroup on SERVER1.

EXEC sp_grantdbaccess 'SERVER1\MyGroup'

What is nice is that if the login for 'SERVER1\MyGroup' is not yet in SQL
Server 2000, it gets added automatically. But I want to do a check to
verify that MyGroup exists on the domain before I run this script? I am
using DTS and can run any stored procedures that I need to.

Thank You,
Derek Hart



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.