Guest_imported
New member
- Jan 1, 1970
- 0
I am using VC++, ASP, and SQL server. I try to build a query in C++ and pass it to ASP and fetch data from SQL Server. The query I build is
"SELECT * FROM TableA WHERE TableA.Field1 LIKE '%xyz%' ORDER BY TableA.Field1".
If I try executing this query in SQL Server Query Analyzer, it works. Just before passing this string into ASP from VC++, I print out the string and it looks fine. As soon as I fetch this string in VBScript and view the string from VBScript, I get some junk values instead of '%'.
Could anyone tell me what is happening?
Thanks a million in advance.
Mike.
"SELECT * FROM TableA WHERE TableA.Field1 LIKE '%xyz%' ORDER BY TableA.Field1".
If I try executing this query in SQL Server Query Analyzer, it works. Just before passing this string into ASP from VC++, I print out the string and it looks fine. As soon as I fetch this string in VBScript and view the string from VBScript, I get some junk values instead of '%'.
Could anyone tell me what is happening?
Thanks a million in advance.
Mike.