String or binary data would be truncated. The statement has been terminated.
I'm using the following code but some times(not all the time) i get the above error can u help
dbcommand = New SqlCommand(ST, dbconnection)
dbcommand.Execu teNonQuery()
dbconnection.Cl ose()
anyone help me for this problem..
regards,
Sasi
I'm using the following code but some times(not all the time) i get the above error can u help
Code:
Dim ST As String = "update MCVISITORS SET HOSTADDRESS='" & Host & "',USERAGENT='" & UserAgent & "',BROWSER='" & Browser & "',CRAWLER='" & Crawler & "', URL='" & URL1 & "', REFERRER='" & Referrer & "', VISITCOUNT='" & VisitCount & "', ORIG_REFERER='" & OriginalReferrer & "', ORIG_URL='" & OriginalURL & "', PAGE_COUNT='" & pageno & "', TOTALTIME='" &; ttime & "' WHERE VISITORID='" & vid & "'"
dbcommand = New SqlCommand(ST, dbconnection)
dbcommand.Execu teNonQuery()
dbconnection.Cl ose()
anyone help me for this problem..
regards,
Sasi
Comment