Execute below query on "master" Database.
select [name] as [Database] from sysdatabases order by [name]
It gives all the Database names in the given server.
Connection string for c# code is :
"Data Source=localhost; Initial Catalog=master; uid=myID pwd=myPassword;"
skip to main |
skip to sidebar
No comments:
Post a Comment