SHARE
TWEET

Untitled

a guest Jun 19th, 2019 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. create function func1(@beginDate datetime, @endDate datetime)
  2. returns table
  3. as
  4. return
  5. (
  6.     select * from openquery(ServerName, 'select column from table
  7.         where date in (' + @beginDate + ', ' + @endDate + ')'
  8. )
  9. go
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top