Utils_Sql Class |
Namespace: MicaSystems.Utils
public static class Utils_Sql
The Utils_Sql type exposes the following members.
| Name | Description | |
|---|---|---|
| OperationsPerformance |
Gets or sets an optionnal (and Local) checker used to record performanes during Sql operations.
|
| Name | Description | |
|---|---|---|
| ColumnExists |
Checks if a column exists in a table of a database.
| |
| EnsureClosed |
Ensures that a data reader is closed.
Will not throw if the reader is null or already closed.
| |
| EnsureColumn |
Ensures a column definition inside a SQL table.
| |
| EnsureIndex |
Ensures a column index on a SQL table.
Note: for Packflow, the schema should be DBADMIN. | |
| EnsureIndexGroups |
Ensures all indexes on a SQL table. Based on column definitions.
| |
| EnsureTable |
Ensures a table definition in a database.
| |
| GetClrType |
Tries to obtain the .Net type corresponding to a SQL column type.
| |
| GetReferencedObjects |
Generates an xml of all objects referenced by the connection.
IMPORTANT : USE ONLY FOR DEBUGGING PURPOSE !!! http://blogs.msdn.com/b/dataaccesstechnologies/archive/2009/04/08/how-to-find-out-the-data-reader-referencing-an-ado-net-connection-object-to-fix-the-error-there-is-already-an-open-datareader-associated-with-this-command-which-must-be-closed-first.aspx | |
| GetTableColumns |
Gets the column names of a SQL table.
| |
| IsClosed |
Checks if a SQL connection is closed (not open, closed, opening, or broken).
| |
| IsOpen |
Checks if a SQL connection is open (not closed or broken).
| |
| Mica_GetKey |
Gets the key using Mica_GetPropertyValue.
| |
| Mica_GetPropertyValue |
Gets the string value of a property using reflection.
| |
| Mica_GetTitle |
Gets the title using Mica_GetPropertyValue.
| |
| TableExists(SqlConnection, String) |
Checks if a table exists in a database.
| |
| TableExists(SqlConnection, String, String) |
Checks if a table exists in a database, in a given schema.
| |
| TableExists(SqlConnection, String, String, String) |
Checks if a table exists in a database, in a given schema.
| |
| TableExistsInDatabase |
Checks if a table exists in a database.
|