The following lines have all of a suddan stopped bringing data into the dataTable [listProcDetails]
cmd.CommandText = "select name,object_id,Create_date,modify_date,@@ServerName from sys.procedures";
cmd.CommandType = CommandType.Text;
con.Open();
DataTable listProcDetails = new DataTable();
listProcDetails.Load(cmd.ExecuteReader());
con.Close();
Whereas when I try the same SQL "select name,object_id,Create_date,modify_date,@@ServerName from sys.procedures" in ssms...
it lists down all the procedures...
I guess I am missing something...Please help.
cmd.CommandText = "select name,object_id,Create_date,modify_date,@@ServerName from sys.procedures";
cmd.CommandType = CommandType.Text;
con.Open();
DataTable listProcDetails = new DataTable();
listProcDetails.Load(cmd.ExecuteReader());
con.Close();
Whereas when I try the same SQL "select name,object_id,Create_date,modify_date,@@ServerName from sys.procedures" in ssms...
it lists down all the procedures...
I guess I am missing something...Please help.