Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What is 'GetServersToTrace"? #1

Closed
YPermitin opened this issue Apr 30, 2019 · 1 comment
Closed

What is 'GetServersToTrace"? #1

YPermitin opened this issue Apr 30, 2019 · 1 comment

Comments

@YPermitin
Copy link

YPermitin commented Apr 30, 2019

What is 'GetServersToTrace" in this code?

                 SqlConnection MonConn = null;
                   DataTable dt = new DataTable();
                   try
                   {
                       MonConn = new SqlConnection(MonServerConnString);
                       MonConn.Open();
                       SqlCommand GetServersToTrace = MonConn.CreateCommand();
                       GetServersToTrace.CommandType = CommandType.StoredProcedure;
                       GetServersToTrace.CommandText = "GetServersToTrace";

                       using (SqlDataAdapter adapter = new SqlDataAdapter())
                       {
                           adapter.SelectCommand = GetServersToTrace;
                           adapter.Fill(dt);
                       }
                   }
                   catch (Exception xyz)
                   {
                       Console.WriteLine("Error in CheckControlForChanges " + xyz.ToString());
                   }
                   finally
                   {
                       MonConn.Close();
                   }

Are there some stored proc?

@callsopp
Copy link
Owner

Ahh, yes there is a stack of stored procs which support the application, I have finished this project but have been a little behind updating github so will look into doing that soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants