SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


SQLServiceAccountSelect


SQLServiceAccountSelect

Author
Message
patrick.slesicki
patrick.slesicki
SSC-Enthusiastic
SSC-Enthusiastic (151 reputation)SSC-Enthusiastic (151 reputation)SSC-Enthusiastic (151 reputation)SSC-Enthusiastic (151 reputation)SSC-Enthusiastic (151 reputation)SSC-Enthusiastic (151 reputation)SSC-Enthusiastic (151 reputation)SSC-Enthusiastic (151 reputation)

Group: General Forum Members
Points: 151 Visits: 55
Comments posted to this topic are about the item SQLServiceAccountSelect
christian.christensen
christian.christensen
Grasshopper
Grasshopper (21 reputation)Grasshopper (21 reputation)Grasshopper (21 reputation)Grasshopper (21 reputation)Grasshopper (21 reputation)Grasshopper (21 reputation)Grasshopper (21 reputation)Grasshopper (21 reputation)

Group: General Forum Members
Points: 21 Visits: 52
Thank you for posting this nice little script.
I've just found one little issue when running in my environment.

I call named instances 'MSSQLSERVER1', 'MSSQLSERVER2' etc.
When running your script the result in the 'SQLServerInstance column is 'default1', 'default2' etc.

A solution to replace instancename on the default instane only, could be using CASE instead of REPLACE:


,SQLServerInstance =
CASE InstanceName
WHEN 'MSSQLSERVER' THEN 'default'
ELSE InstanceName
END


// Christian

VladB
VladB
Old Hand
Old Hand (398 reputation)Old Hand (398 reputation)Old Hand (398 reputation)Old Hand (398 reputation)Old Hand (398 reputation)Old Hand (398 reputation)Old Hand (398 reputation)Old Hand (398 reputation)

Group: General Forum Members
Points: 398 Visits: 309
patrick.slesicki - Wednesday, March 7, 2018 7:44 AM
Comments posted to this topic are about the item SQLServiceAccountSelect


Patrick - thank you vey much. Very useful - don't need RDC just run and get an idea what is going on there. Vlad
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum








































































































































































SQLServerCentral


Search