Hi to all,
I have written one table valued function in one database.
my requirement is ,i want to execute that function in all databases under server/Pc.
i am using sqlserver2008?
can any one help me?
thanks inadvance
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sam HobbsPosted Sep 14, 2011, 5:06 PM
SELECT name FROM sys.databases
Syed Nayab AliPosted Sep 14, 2011, 9:22 AM
If you want to use ur function in different database then just mention server name before function name as prefix.
for example:
if ur function exist in sever1 and you want to use it in server2 then just write server1.dbo.function_name in server 2.
Please try it I think it will work
Thanks