Ver Mensaje Individual
  #1 (permalink)  
Antiguo 25/06/2007, 14:56
Avatar de mazingerz
mazingerz
 
Fecha de Ingreso: febrero-2003
Ubicación: Sarasota FL
Mensajes: 147
Antigüedad: 22 años
Puntos: 0
Cadena muy extensa

Hola a todos, alguien sabe como forzar a que la cadena SQL que ingresamos en el OleDbCommand(strSQL......) Soporte un string largo.

Se cae la aplicacion, revise en el depurador y me trunca el Contenido de la Cadena SQL.

strSQL = "Select bla..bla...bla"
strSQL = strSQL & "From Clientes A, Despacho B , Localidad C "
strSQL = strSQL & "Where (A.Rut = B.Rut And B.Sector <> Space(4) And B.Localidad = C.CodCenso)"

ds = New DataSet("SamplesApp")
Dim myCommand As OleDbCommand = New OleDbCommand(strSQL, myConnDBF)
myCommand.CommandType = CommandType.Text
MyAdpDBF.SelectCommand = myCommand
MyAdpDBF.Fill(ds, tablaSQL)