Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. function

function

Scheduled Pinned Locked Moved Database
databasesql-serversysadmintutorialquestion
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Rafat Ali Khan
    wrote on last edited by
    #1

    How to make a function in sql server-2008?

    S V K 3 Replies Last reply
    0
    • R Rafat Ali Khan

      How to make a function in sql server-2008?

      S Offline
      S Offline
      Simon_Whale
      wrote on last edited by
      #2

      Have a read of this MSDN: Create Function[^] there are some examples at the bottom of the page

      Lobster Thermidor aux crevettes with a Mornay sauce, served in a Provençale manner with shallots and aubergines, garnished with truffle pate, brandy and a fried egg on top and Spam - Monty Python Spam Sketch

      1 Reply Last reply
      0
      • R Rafat Ali Khan

        How to make a function in sql server-2008?

        V Offline
        V Offline
        vvashishta
        wrote on last edited by
        #3

        CREATE FUNCTION 'functionname' AS -- -- -- - Happy Coding - Vishal Vashishta

        1 Reply Last reply
        0
        • R Rafat Ali Khan

          How to make a function in sql server-2008?

          K Offline
          K Offline
          kmoorevs
          wrote on last edited by
          #4

          Table-Valued functions are awesome, like a view with input parameters. Like this:

          CREATE FUNCTION [dbo].[Function_Name] (@inputParameter int) RETURNS table AS Return ( WHERE = @inputParameter [])
          Works in sql 2000+.
          "Go forth into the source" - Neal Morse

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups