Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » SMO » SQL Server   (RSS)
Get all system databases of a server
The easiest way for querying all system databases of a server is to assume that databases create by a user come with a database_id >= 5 in sys.databases. But the problem is that distribution databsaes will not be kept into this consideration. Therefore Read More...
Changing the Login / Authentication Mode programmtically via SMO
Here are some instructions how to change the Login / authentication mode via Code. It just uses plain SMO capabilites: After this you will have to make sure that the Service is restarted, if you want this to do via SMO look at the following sample. You Read More...
Page view tracker