ydysance
Messages postés1Date d'inscriptionmercredi 20 septembre 2006StatutMembreDernière intervention10 octobre 2006
-
10 oct. 2006 à 16:32
Renfield
Messages postés17287Date d'inscriptionmercredi 2 janvier 2002StatutModérateurDernière intervention27 septembre 2021
-
11 oct. 2006 à 10:09
Hello,
I have an UPDATE query that is too long and I have got an error message which said that the string is truncated.
Here is my query:
Try
Dim Fichier As String
Fichier = CType(Dts.Variables("Utilisateur::FICHIER").Value, String)
myCommand.CommandText = " UPDATE DTL_CHARG SET FICHIER= '" + Trim(Fichier) + "' WHERE IDCHARGEMENT= '" + Trim(Idchargement.ToString) + "'"
myReader = myCommand.ExecuteReader()
Catch ex As Exception
MsgBox("Erreur UPDATE DTL_CHARG (FICHIER)! Message d'erreur: " + ex.Message)
End Try
myReader.Close()
Fichier is a variable that receives the SSIS variable value (has a string value which is a directory name + a file name, this string is very long and exceed the length limit of the CommandText).