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
Gurjeet Singh
NA
90
94.9k
Sql Server-- Function
Jul 10 2012 3:50 AM
Hi,
I have one table that having 3columns like..
id
sub_id
name
1
1
mark
I wrote below code to implement function on sub_id column of table that user can see only Sub_id like K00ID1.
create function [bdo].[sub_id](@id int)
return char(12)
as
begin
return 'K00ID'+id
end
I want like this my table.
id
sub_id
name
1
K00ID1
mark
i tried above function but it is not working... can u help me to sort out this problem
Reply
Answers (
4
)
Create a Copy of Any Table With Data in SQL Server
Difference Between Store Procedure And View in SQL server