Friday, February 24, 2012

how can i get database name using C#

can i get list of database name using C#.
i want to load it into combobox to easy to choice
thanks .

There is two choices are there

You can use SMO/DMO libraries

or

You can use the simple query from database

use Master
Select Name from SYSDatabases

No comments:

Post a Comment