Ok I will give the down low of what im trying to accomplish.
I can view data with the datagrid like anyone else, but what im trying to do is loop through a listbox of server names and fill just one datagrid with the results from each server.
For example,
server will be each server in the listbox.
String sconnect = "Server=" + server + ";DataBase=msdb;Integrated Security=SSPI";
select * from SYSTABLE
Now as I run through the listbox of servers I will retrieve different results in which id like to place in 1 datagrid
All column names ARE the same.
SERVER COLUMN1 COLUMN2 COLUMN3
SQL1 Bob Smith Oakwood Florida
SQL2 Brian Kite Oakland Georgia
SQL3 Frank Sinatra Spider Ohio
Thank you for all of you help.
I can view data with the datagrid like anyone else, but what im trying to do is loop through a listbox of server names and fill just one datagrid with the results from each server.
For example,
server will be each server in the listbox.
String sconnect = "Server=" + server + ";DataBase=msdb;Integrated Security=SSPI";
select * from SYSTABLE
Now as I run through the listbox of servers I will retrieve different results in which id like to place in 1 datagrid
All column names ARE the same.
SERVER COLUMN1 COLUMN2 COLUMN3
SQL1 Bob Smith Oakwood Florida
SQL2 Brian Kite Oakland Georgia
SQL3 Frank Sinatra Spider Ohio
Thank you for all of you help.