Current .Net Version: 2.0.50727
Home
Articles
C# & .Net Framework Reference
Practice C# Online
XML Web Services
RSS Feeds
Code Snippets
T-SQL Scripts
Videos
Valuable Links
Contact Us
Mike's C#, VS.NET and SQL Blog




ROR XML Info.
Visual C# Code Snippets

Click here for information on how to use code snippets in VS.NET (2005+)

Retrieving List of SQL Server Databases [Code | XML]

Title: Retrieving List of SQL Server Databases
Shortcut: getsqlserverdatabases
Description: Illustrates how to retrieve a list of databases available from a single SQL Server instance.
Author: C# .Net Fun - http://www.dotnetfun.com - Michael G.

Declarations:
Literal:
ID: strConnectionString
Type: System.String
ToolTip: The connection string for the SQL Server you want to query.
Default: "Data Source=MYSERVER; User ID=sa; Password=password"
Code View:

XML View:

Open/Save | E-mail | Back
 
COPYRIGHT/DISCLAIMER | CONTACT US