I have a bit of a problem when updating or inserting new records into a SQL server 7.0 sp3 running on W2K sp2.
I am used Foxweb to create an intranet web applications that is used by the Quality Control Inspector to record all Work orders he inspects.
This Web App inserts new records into a Sql server database which works great no problems. Until when the QC inspector uses the comment field and puts Quotes i.e. theses guys ( ' or " ) into that field. When Sql gets this insert into command with screwed up Quoted identifiers something looking like this
Insert into Qclog Values ( 'indexkey', 'workorder', 'inspector', 'dateinspec', 'comment field with a message with a quote in it like ' or " ', dateshipped )
It did not insert the new record
I understand why this does not work. The Sql server is not able to understand where a Field begins and ends.
What is the work around? Right know I wrote a function to stripe out the quotes in a text string.
Justin
I am used Foxweb to create an intranet web applications that is used by the Quality Control Inspector to record all Work orders he inspects.
This Web App inserts new records into a Sql server database which works great no problems. Until when the QC inspector uses the comment field and puts Quotes i.e. theses guys ( ' or " ) into that field. When Sql gets this insert into command with screwed up Quoted identifiers something looking like this
Insert into Qclog Values ( 'indexkey', 'workorder', 'inspector', 'dateinspec', 'comment field with a message with a quote in it like ' or " ', dateshipped )
It did not insert the new record
I understand why this does not work. The Sql server is not able to understand where a Field begins and ends.
What is the work around? Right know I wrote a function to stripe out the quotes in a text string.
Justin