SnapDAL Library Documentation

SqlProvider.AddStatementForAllProcsInDatabaseToStatementsFile Method (String, String)

Adds a statement for each stored procedures in the database to the specified statements.xml file.

public static void AddStatementForAllProcsInDatabaseToStatementsFile(
   string connect,
   string statementsFile
);

Parameters

connect
Connection string for the database the procedure is located in.
statementsFile
Name of the statements.xml file where the new statement will be inserted.

Remarks

This command is long running so it is executed asynchronously. If you want to wait for the results, use the xxxSync version of the command.

If the statements.xml file specified does not exist it will be created.

If a statement of the same name already exists in the statements.xml file it will become overwritten with the new version.

See Also

SqlProvider Class | SnapDAL.Providers Namespace | SqlProvider.AddStatementForAllProcsInDatabaseToStatementsFile Overload List