|
I have a string which has paranthesis and comma, I have to input this to a stored procedure and forecast qty Since i was not sure how to do that, i have 2 list of parameters one for part id and other for qty as you can see below. I have created 2 temp tables where the value in the string gets parsed. i would either like to know how to parse the string with both comma and paranthesis or if i can combine the two temp tables which has totally different datatypes
(comments are locked)
|
|
As per given example, this is how it can be done (I have used a function which would split the strings using cteTally table). But mind you that the function limitation is a string upto 8000 characters. If the string can be greater than that then you can use @Oleg 's solution mentioned in this question Thanks a lot Usman!
Jun 26 '12 at 08:31 PM
meetpavi
@meetpavi Can you please accept the answer if it helped. This will help the future users. Thanks.
Jun 28 '12 at 01:05 PM
Usman Butt
(comments are locked)
|
|
Hi Can some one tell me the reason fr the following error? I use the above code and linked it to a stored procedure to use it in a crystal report. I get an error saying Query Engine Error: 'ADO Error Code: 0x Source: Microsoft OLE DB Provider for SQL Server Description: Error Converting data type varchar to numeric. SQL State:22018 Native Error: ' Thank You So much for your help. @meetpavi I cannot see any numeric column usage in the above code. So I guess you need to provide more details like are you mapping something to a numeric column?
Jul 05 '12 at 06:10 AM
Usman Butt
(comments are locked)
|


@meetpavi First of all there is no need to use a loop. Secondly, I cannot see the comma+parentheses in your example?