
14/12/2004, 11:18
|
 | | | Fecha de Ingreso: diciembre-2002 Ubicación: santiago-chilito
Mensajes: 1.931
Antigüedad: 22 años, 4 meses Puntos: 2 | |
por ejemplo lo hice asi
//ABRIENDO CONEXIONES A BD DE SQL SERVER
Set cn = Server.CreateObject("ADODB.Connection")
cn.OPEN = "driver={SQL Server};server=imahe; UID=softland; PWD=softlant; database=imahe"
sql = "tu consulta sql'"
Set rs = Server.CreateObject("ADODB.Recordset")
rs.Open sql, cn, 3, 3
response.write("conectado");
y me sale
Tipo de error:
Error de compilación de Microsoft JScript (0x800A03EC)
Se esperaba ';'
/imahe/prueba_conexion.asp, line 14, column 4
Set cn = Server.CreateObject("ADODB.Connection")
---^ |