By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,766 Members | 1,295 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,766 IT Pros & Developers. It's quick & easy.

Create Function

OuTCasT
100+
P: 374
I need to create a function that can accept string values and return the string value.

Can anyone help ?
Aug 7 '09 #1
Share this Question
Share on Google+
1 Reply


OuTCasT
100+
P: 374
Expand|Select|Wrap|Line Numbers
  1. Create Function GetHitmanID @hitmanid nvarchar(2)
  2. Returns Table
  3. As
  4. Return
  5. Select * from hitlist where hitmanid = @hitmanID
-Execution-

Expand|Select|Wrap|Line Numbers
  1. select * from getHitmanID(1)
Aug 11 '09 #2

Post your reply

Sign in to post your reply or Sign up for a free account.