We are using FC12, we have two database tables in which we wanted to export the field data. While writing java script in custom export setting, the select query is giving error. we are using the following script.
var fileName = Field("Document Section 1\\FileName").Text;
cmd.CommandTex = "Select FormID From TableName where FileName = '+filename+'" ;
Our next question is, how can we export image into database as binary format?