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+)

Parsing T-SQL Statements with SQLDMO [Code | XML]

Title: Parsing T-SQL Statements with SQLDMO
Shortcut: sqldmoparsesql
Description: Illustrates how you can parse T-SQL statements against an SQL Server with SQL-DMO.
Author: C# .Net Fun - http://www.dotnetfun.com - Michael G.

Declarations:
Literal:
ID: strSQLToParse
Type: System.String
ToolTip: The T-SQL you want to parse.
Default: "SELECT Ouch Invalid SQL!"
Literal:
ID: strSQLServer
Type: System.String
ToolTip: The name of the SQL Server you want to parse against.
Default: "MYSERVERNAME"
Literal:
ID: strLoginID
Type: System.String
ToolTip: The login ID used to connect to the SQL Server you want to parse against.
Default: "sa"
Literal:
ID: strLoginPassword
Type: System.String
ToolTip: The login password used to connect to the SQL Server you want to parse against.
Default: "password"
Literal:
ID: strDatabase
Type: System.String
ToolTip: The database you want to parse the T-SQL against.
Default: "MyDatabase"
Literal:
ID: strDatabaseOwner
Type: System.String
ToolTip: The owner of the database you want to parse the T-SQL against (can be null).
Default: "dbo"
Code View:

XML View:

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