Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
3
Answers
SQL server query Error
Ravi Shakya
11y
833
1
Reply
declare @ID as nvarchar(50)=''
SET @ID='1,2,3'
Select * from Orders_tbl where OrderId in (@ID)
Showing An error-
Msg 8114, Level 16, State 5, Line 3
Error converting data type nvarchar to numeric.
But working fine with direct values.
Post
Reset
Cancel
Answers (
3
)
Next Recommended Forum
sql server
how to update in storeprocedure