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
kiran
NA
285
4.8k
SQL Server Function returns an error.
Aug 11 2014 2:37 AM
I created one function to check whether the id exists or not. If it is exists then it returns 1 otherwise it returns 0 but i got an error like this
RETURN statements in scalar valued functions must include an argument.
My function is
create function [dbo].[CheckStudentId](@ID varchar(10))
returns varchar
as
begin
return
if exists (select id from Tablename where id=@ID)
print 1
else
print 0
end
Thanks in advance
Reply
Answers (
1
)
Help with updating SQL CE table on WinMo 6.5 with C#
database connectivity