Sql function

I ahve the function in sql "lastbusinessday " 
but How can I get the value from that function
peterstiAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

sventhanCommented:
select lastbusinessday parameter -- pass the parameter if you have any

if not just

select lastbusinessday
0
Lee SavidgeCommented:
It depends on what that function does. What parameters does it take?

0
gskaccountCommented:
simply u can use
Select * from lastbusinessday
or
Select * from lastbusinessday('parameter value') --if you hae any parameter
0
IT Pros Agree: AI and Machine Learning Key

We’d all like to think our company’s data is well protected, but when you ask IT professionals they admit the data probably is not as safe as it could be.

Imran Javed ZiaConsultant Software Engineer - .NET ArchitectCommented:
if this function returns a table then you can use

select * from dbo.lastbusinessday (parameter)

and if it is a scalar value function then you may use it in some query as field

select dbo.lastbusinessday (parameter)
or
select dbo.lastbusinessday (parameter), * from your table
0
Imran Javed ZiaConsultant Software Engineer - .NET ArchitectCommented:
by name it seems to be a method to return last working day or date you you may use it as

select lastbusinessday()

and it will return you date or day
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
peterstiAuthor Commented:
solution is good
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server 2005

From novice to tech pro — start learning today.