Hi.
What does this query return?
select * from sysdatabases where sid <> 0x01 order by name
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Scott LyslePosted Nov 11, 2011, 12:18 AM
Kunal NaikPosted Nov 15, 2011, 3:44 AM
Yes it will return all the database names as well as other information of the database like dbid, sid, filename, version etc.
It is used to getting information of all those databases which are created in sql server except system databases.
AartiPosted Nov 15, 2011, 2:52 AM
This gives all non system databases informations like name,Filename,version ,status... etc.
Thanks.
Nethra R SPosted Nov 11, 2011, 12:24 AM
Suppose i have some 50 databases.. Will it return all the database names? Why is it used and where? In what situations?
Arjun PanwarPosted Nov 11, 2011, 12:21 AM
this query is used To get the database names.
Nethra R SPosted Nov 11, 2011, 12:19 AM
Does it give all the database names?