TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Mike Jonson
NA
239
193.2k
Error in stored procedure "incorrect syntax near"
Jun 28 2011 4:37 AM
Create next stored procedure
CREATE PROCEDURE dbo.SearchDebiors
(
@debName nvarchar(50)
@postNumb nvarchar(50)
@phoneNumb nvarchar(50)
)
AS
select * from Debitors where
[Name] like '%'+@debName+'%' and
cast(PostNumber as nvarchar(50)) like '%'+@postNumb+'%' and
(PhoneNumber like '%'+@phoneNumb+'%' or PhoneNumber is null)
RETURN
and cant save, every time error "incorrect syntax near @postNumb", must declare the scale variable @debName. Please help why?
Reply
Answers (
2
)
Error The conversion of a varchar data type to a datetime data type resulted in an out-of-range value. The statement has been terminated
Paypal integration with website