
Este es el codigo en C# que utilizo para hacer la conexion:
Código:
Agradecería mucho su ayudaSqlConnection conexion = new SqlConnection("Data Source=ARTURORDZ;Initial Catalog=20090622_RC_v1.01;Integrated Security=True"); SqlCommand sCmd = new SqlCommand("SELECT * FROM Manuchar.tabSector", conexion); conexion.Open(); SqlDataAdapter data = new SqlDataAdapter(); sCmd.ExecuteNonQuery(); conexion.Close(); SqlDataAdapter sda = new SqlDataAdapter(sCmd); DataTable cosa = new DataTable(); sda.Fill(cosa); grid.DataSource = cosa;
Saludos
