J
JP
I am using VB6 with the following code. If my string "SQL" is > then
255 characters in length, it fails on the execute. Less than that and
it works fine. Is there any work around?
Thanks,
-Jim
Public Sub InsertUpdate(SQL As String)
Dim lngErrorIndex As Long
Dim objCmd As ADODB.Command
Dim SQLarray(10) As String
Dim i As Integer
On Error GoTo Error_Handler
lngErrorIndex = 1037
Set objCmd = New ADODB.Command
If Not mConnection Is Nothing Then
With objCmd
.ActiveConnection = mConnection
.CommandText = SQL
.CommandType = adCmdText
.Execute
End With
End If
Exit Sub
255 characters in length, it fails on the execute. Less than that and
it works fine. Is there any work around?
Thanks,
-Jim
Public Sub InsertUpdate(SQL As String)
Dim lngErrorIndex As Long
Dim objCmd As ADODB.Command
Dim SQLarray(10) As String
Dim i As Integer
On Error GoTo Error_Handler
lngErrorIndex = 1037
Set objCmd = New ADODB.Command
If Not mConnection Is Nothing Then
With objCmd
.ActiveConnection = mConnection
.CommandText = SQL
.CommandType = adCmdText
.Execute
End With
End If
Exit Sub