January 27, 2008 at 1:50 pm
PLEASE HELP ME OUT
January 27, 2008 at 2:23 pm
OK well not th most detailed post but if you want to list all the uset database on a particular server then this will list them also it will provide a count of the number of user databases. hope this helps:
USE Master
GO
SELECT * FROM sys.databases
WHERE Name NOT IN ('Master','model','msdb','tempdb')
SELECT COUNT(*)as 'Number of User Databases' FROM sys.databases
WHERE Name NOT IN ('Master','model','msdb','tempdb')
Gethyn Elliswww.gethynellis.com
January 27, 2008 at 6:49 pm
Please do not post in all caps and please describe your problem in the post.
January 28, 2008 at 4:10 am
And if there are error messages, don't forget to include them in your post.
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply