Ver Mensaje Individual
  #2 (permalink)  
Antiguo 28/05/2011, 20:28
Avatar de pato12
pato12
 
Fecha de Ingreso: septiembre-2007
Ubicación: Salta
Mensajes: 1.620
Antigüedad: 16 años, 7 meses
Puntos: 101
Respuesta: Manejo de Sql Server

Logre hacer la conexion, pero no se como se hace una consulta :(

Código ASP:
Ver original
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Web;
  5. using System.Web.UI;
  6. using System.Web.UI.WebControls;
  7. using System.Data;
  8. using System.Data.SqlClient;
  9. using System.Configuration;
  10.  
  11. public partial class Entrar : System.Web.UI.Page
  12. {
  13.     protected void Page_Load(object sender, EventArgs e)
  14.     {
  15.         SqlConnection conexion = new SqlConnection();
  16.         SqlCommand cmd = new SqlCommand();
  17.  
  18.         conexion.ConnectionString = ConfigurationManager.ConnectionStrings["bd_prueba"].ConnectionString;
  19.         conexion.Open();
  20.         Response.Write(conexion.State);
  21.  
  22.     }
  23. }
__________________
Half Music - www.halfmusic.com