示例#1
0
 public void Connect()
 {
     // Should always connect to master.
     m_SqlUtils     = new SqlUtils(m_ProviderFactory, m_ConnectionString, m_ConnectionString, 1);
     m_DbConnection = m_SqlUtils.CreateConnection(true);
 }
示例#2
0
 /// <summary>
 /// Only allow a max of 50 characters starting with a letter and containing only
 /// letters, numbers and the underscore character.
 /// This is more restrictive than SQL.
 /// http://msdn.microsoft.com/en-us/library/ms175874.aspx
 /// </summary>
 /// <param name="databaseName"></param>
 /// <returns></returns>
 public static bool IsValidSqlDatabaseName(String databaseName)
 {
     return(SqlUtils.IsValidSqlDatabaseName(databaseName));
 }