Mam taki kod:
SqlConnection sqlconn = new SqlConnection("Data Source = .\\SQLEXPRESS;Integrated Security = True;");
sqlconn.Open();
SqlCommand sqlcom = new SqlCommand();
sqlcom.Connection = sqlconn;
sqlcom.CommandText = "sp_databases";
SqlDataReader reader = sqlcom.ExecuteReader();
// while (reader.Read())
// MessageBox.Show(reader.GetString(0)); //tu jest tak samo jak w datagridview1
DataTable dt = new DataTable();
dt.Load(reader);
dataGridView1.DataSource = dt;
sqlconn.Close();
No i pokazuje mi tylko systemowe bazy - master,tempdb model,msdb a tych które mam w sql serverze jeszcze klku to wcale ich nie widzi, dlaczego ? - sql server management studio express widzi wszystko bez problemu a ta aplikacja nie widzi czemu ? proszę o pomoc