Quantcast
Channel: Forum Getting started with SQL Server
Viewing all articles
Browse latest Browse all 7129

simple function or proc will also do

$
0
0

I need to pass 2 parameter to SP/function to return date

I will be passing the tableName and DateValue in return I should be getting the max(dt_date) from tableName can anyone help me in building this simple logic

create function fun( @tableName varchar(250), dtdate datetime)

return datetime

begin

end



create function sproc( @tableName varchar(250), dtdate datetime)
As
begin

end



Neil


Viewing all articles
Browse latest Browse all 7129

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>