SQL Server keywords

I have not seen this before and am not sure what is causing it or where to look.

When a customer enters an address on my website that includes the word "union", for example "1922 Union St", the text that winds up in the SQL Server field includes a question mark (ascii 63) after "union".

Anybody know what might be causing this and how to stop it?

Thanks - David
Who is Participating?
Jim HornMicrosoft SQL Server Developer, Architect, and AuthorCommented:
Nope.  There has to be something going on that is parsing a value '"1922 Union St"' that is intended to be inserted into an address column, and there's nothing I know of specific to SQL Server that would do that.

So, two possibilities


it's either the front-end before the INSERT into the SQL table, which you could troubleshoot on the form/whatever that creates the INSERT statement by making it spit out the INSERT statement (more likely), or


In SQL it's either a Stored Procedure call that accepts parameters, and that SP parses the data somehow, or there's a table trigger in play
Jim HornMicrosoft SQL Server Developer, Architect, and AuthorCommented:
You'll have to cough up the code that INSERTs the data from your UI into SQL Server, as there appears to be not enough info here to provide an answer.
GenesisTechAuthor Commented:

So you are at least saying that you do not believe this is being caused by SQL Server, but is more likely the ASP Code?

In other words you have not encountered this in SQL Server before?
GenesisTechAuthor Commented:
Thanks Jim.

Looks like there is a procedure checking for special sensitive characters and replacing thme to avoid a SQL Server injection. I found the routine and can now deal with it appropriately.

Thanks again!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.