cancel
Showing results for 
Search instead for 
Did you mean: 

host variable to insert blob

Former Member
0 Kudos
2,626

i am inserting a blob data using host variable(:longdata) sometimes it gives error (SQLSTATE 08003 Not connected to SQL database), please help me.

Accepted Solutions (0)

Answers (1)

Answers (1)

ian_mchardy
Product and Topic Expert
Product and Topic Expert

You would normally get this error if you tried to execute something without first connecting, or after disconnecting. See here in DCX.

Typically, if the connection would dropped by the server or due to a network or other error, you would get the error "Communitions error" (see here), or possibly "Connection was terminated" (see here).

If it isn't obvious why you are getting an error, perhaps enabling -z -zr sql (communication diagnostics and request level logging server options) on the server and LogFile=file on the client will help.