a guest Jun 19th, 2019 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- create function func1(@beginDate datetime, @endDate datetime)
- returns table
- select * from openquery(ServerName, 'select column from table
- where date in (' + @beginDate + ', ' + @endDate + ')'
RAW Paste Data