Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 Remove single quote

Author  Topic 

Mageshkumar
Starting Member

29 Posts

Posted - 2008-09-02 : 08:28:32
The thing is the query exce like this:

SELECT UploadID, EditFlag, IsApproved, Remarks, CrtnDT, CrtnBY, MdfdDT, MdfdBY
FROM TBL_EDITVOLUMEDATA
WHERE (UploadID IN ('568, 568, 568, 566, 566, 553, 553'))

becoz the value passing as nvarchar(max)...,

But i like to exe like this:

SELECT UploadID, EditFlag, IsApproved, Remarks, CrtnDT, CrtnBY, MdfdDT, MdfdBY
FROM TBL_EDITVOLUMEDATA
WHERE (UploadID IN (568, 568, 568, 566, 566, 553, 553))

but assigned in table that uploaderid as numeric

so have to remove starting single quote and end single quote...,

How to do that...,

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2008-09-02 : 08:35:06
I have given suggestion here
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=109885

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2008-09-02 : 09:03:01
Pay special attention to the REPLACE approach in the link above.


E 12°55'05.63"
N 56°04'39.26"
Go to Top of Page
   

- Advertisement -