Login | |
|
 |
Stuck converting a string! - 9/20/2007 2:26:35 AM
|
|
 |
|
| |
JBarbea1
Posts: 20
Score: 0
Joined: 3/27/2007
Status: offline
|
Hey all! I'm looking for a little assistance as I am an amature in comparison to most of you folks. My delema has to do with SQL, ASP, and VBSCRIPT I have an SQL Statement: SELECT * FROM database.table WHERE Course_Name IN ('MMColParam6') MMColParam6 = varCourseTest varCourseTest = ("test1,test2,test3") and subsquently other values (its dynamic in nature) but SQL Says it has to be in this format: Course_Name IN ('test1','test2','test3') if I am using multiple values, which I will be. What I am getting is ('test1,test2,test3') - its treating my value as one string, and Im not sure how to remedy that. I need those tidbits as characters rather than a string. I tried adding the characters in there but it still treats them as a single string. Does this make any sense to anyone?
|
|
| |
|
|
|
|
|