upped timeout of script that gets list of database to 30 seconds

This commit is contained in:
John Jenko 2012-06-14 12:51:41 +00:00
parent 0046c61c34
commit d07ecf0a5f

View File

@ -132,6 +132,7 @@ namespace VEPROMS.CSLA.Library
cn.Open();
// SqlDataAdapter da = new SqlDataAdapter("select name from sysdatabases where name like 'VEP%' order by name", cn);
SqlDataAdapter da = new SqlDataAdapter("select name, case when object_id('[' + name + ']..Items') is null then 'Not PROMS' when object_id('[' + name + ']..Revisions') is not null then 'Approval' when object_id('[' + name + ']..ContentAudits') is not null then 'Change Manager' else 'Original' end functionality from sysdatabases where name not in ('master','model','msdb','tempdb') order by name", cn);
da.SelectCommand.CommandTimeout = 300; // 30 sec timeout
DataSet ds = new DataSet();
da.Fill(ds);
cn.Close();