Ver Mensaje Individual
  #1 (permalink)  
Antiguo 25/05/2012, 13:36
pablo_ch123
 
Fecha de Ingreso: noviembre-2010
Mensajes: 43
Antigüedad: 13 años, 5 meses
Puntos: 0
Insert Sql Server

Muy buenas tardes compañeros estoy tratando de insertar datos en mi tabla de SQL, pero me regresa un error :

Código:
<%

Dim oConn24 'ADODB connection
                                      
Set oConn24 = Server.CreateObject("ADODB.Connection")
oConn24.Open "Driver={SQL Native Client};Server=GANTLA;Database=UpaEx;UID=pexd;PWD=0717;Trusted_Connection=yes"

strSQL24 = " INSERT INTO dbo.ptos_test "
strSQL24 = " (PAT, OFI, AD, PEDIMI, PEDIMF, FECHA, ASI, OBSERV, ID) "
strSQL24 = " VALUES ('1281', 'JTY', '145', '1452012', '1452020', GETDATE(), 'RAMIRO BRIONES','RV', '80' ) "


				oConn24.Execute strSQL24

				oConn24.Close
				Set oConn24 = Nothing

 %>
Al parecer el error esta en : "oConn24.Execute strSQL24" .. nose si le falte algo, este mal la sintaxis o algo por el estilo, de antemano les agradezco su tiempo y ayuda. :D