Foros del Web » Programando para Internet » ASPX (.net) »

Que tengo Malo?

Estas en el tema de Que tengo Malo? en el foro de ASPX (.net) en Foros del Web. conn = New OdbcConnection(ConfigurationManager.ConnectionStri ngs("ConnectionString5").ToString) conn.Open() sSql = "insert into premp(emp_no,EMP_DEPT, EMP_FIRST,EMP_LAST,EMP_ADDR,EMP_CITY,EMP_STATE,EMP _ZIP, EMP_PHONE,EMP_TYPE,COMPANY)" sSql &= "VALUES('" & cod & "','" & dep & "','" ...
  #1 (permalink)  
Antiguo 10/03/2008, 15:50
 
Fecha de Ingreso: marzo-2008
Mensajes: 12
Antigüedad: 16 años, 2 meses
Puntos: 0
Que tengo Malo?

conn = New OdbcConnection(ConfigurationManager.ConnectionStri ngs("ConnectionString5").ToString)
conn.Open()
sSql = "insert into premp(emp_no,EMP_DEPT, EMP_FIRST,EMP_LAST,EMP_ADDR,EMP_CITY,EMP_STATE,EMP _ZIP, EMP_PHONE,EMP_TYPE,COMPANY)"
sSql &= "VALUES('" & cod & "','" & dep & "','" & last & "','" & first & "','" & addr & "','" & city & "','" & state & "','" & zip & "','" & phone & "'.'" & type & "','" & company & "')"
execute = New OdbcCommand(sSql, conn)
usuario = execute.ExecuteNonQuery
conn.Close()

Me pueden decir que es lo malo
  #2 (permalink)  
Antiguo 10/03/2008, 16:12
Avatar de Peterpay
Colaborador
 
Fecha de Ingreso: septiembre-2007
Ubicación: San Francisco, United States
Mensajes: 3.858
Antigüedad: 16 años, 8 meses
Puntos: 87
Re: Que tengo Malo?

dale un espacio a la izquierda a Values

saludos
peter
  #3 (permalink)  
Antiguo 10/03/2008, 16:13
Avatar de Peterpay
Colaborador
 
Fecha de Ingreso: septiembre-2007
Ubicación: San Francisco, United States
Mensajes: 3.858
Antigüedad: 16 años, 8 meses
Puntos: 87
Re: Que tengo Malo?

sSql = "insert into premp(emp_no,EMP_DEPT, EMP_FIRST,EMP_LAST,EMP_ADDR,EMP_CITY,EMP_STATE,EMP _ZIP, EMP_PHONE,EMP_TYPE,COMPANY)"
sSql &= "VALUES('" & cod & "','" & dep & "','" & last & "','" & first & "','" & addr & "','" & city & "','" & state & "','" & zip & "','" & phone & "'.'" & type & "','" & company & "')"
  #4 (permalink)  
Antiguo 10/03/2008, 16:15
Avatar de Peterpay
Colaborador
 
Fecha de Ingreso: septiembre-2007
Ubicación: San Francisco, United States
Mensajes: 3.858
Antigüedad: 16 años, 8 meses
Puntos: 87
Re: Que tengo Malo?

sSql = "insert into premp(emp_no,EMP_DEPT, EMP_FIRST,EMP_LAST,EMP_ADDR,EMP_CITY,EMP_STATE,EMP _ZIP, EMP_PHONE,EMP_TYPE,COMPANY)"
sSql &= "UNESPACIOAQUIVALUES('" & cod & "','" & dep & "','" & last & "','" & first & "','" & addr & "','" & city & "','" & state & "','" & zip & "','" & phone & "'.'" & type & "','" & company & "')"
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 05:03.