April 1, 2013 at 7:46 pm
Comments posted to this topic are about the item Retrieve SQL Instance Connect Info
April 11, 2013 at 9:20 am
Great script! Thanks for postingit. One minor change I would make would be to change the subquery to resctrict the database id to less than 5.
I ended up with 2 entries because I had a database named SMSDB.
Here is the editted subquery:
(select left(af.filename,3)from sys.sysaltfiles af where af.name like '%MSDB%' and af.fileid = 1 AND af.dbid<5) as 'Drive',
Thanks again.
Lee
April 11, 2013 at 9:38 am
May 2, 2016 at 3:40 pm
Thanks for the script.
May 2, 2016 at 3:41 pm
Lee Linares (4/11/2013)
Great script! Thanks for postingit. One minor change I would make would be to change the subquery to resctrict the database id to less than 5.I ended up with 2 entries because I had a database named SMSDB.
Here is the editted subquery:
(select left(af.filename,3)from sys.sysaltfiles af where af.name like '%MSDB%' and af.fileid = 1 AND af.dbid<5) as 'Drive',
Thanks again.
Lee
Thanks for the update.
Viewing 5 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy