Please start any new threads on our new site at http://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 UDF on linked server.
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

AskSQLTeam
Ask SQLTeam Question

USA
0 Posts

Posted - 03/27/2002 :  11:18:18  Show Profile  Visit AskSQLTeam's Homepage  Reply with Quote
Rocco writes "Hi All.
does anybody know if/how is possible to call an UDF that is on a linked
server?
I know that it is possible for stored procedures.
thanks a lot.
r,"

ToddV
Posting Yak Master

USA
218 Posts

Posted - 03/28/2002 :  09:15:18  Show Profile  Reply with Quote
quote:

Rocco writes "Hi All.
does anybody know if/how is possible to call an UDF that is on a linked
server?
I know that it is possible for stored procedures.
thanks a lot.
r,"



It stands to reason that you can simply use the four-part name. I have not tried though.

Go to Top of Page

roccopasca
Starting Member

1 Posts

Posted - 04/05/2002 :  05:45:34  Show Profile  Reply with Quote
on server pascar, database prova, user dbo I have the UDF fn_test() that simply return the word 'Test'

If I do
select dbo.fn_test()
or select prova.dbo.fn_test()
It's all ok,

but if I do
select fn_test()
I have the following error:
Server: Msg 195, Level 15, State 10, Line 1
'fn_test' is not a recognized function name.
(I am user dbo)

Instead, if I do
select pascar.prova.dbo.fn_test()
I have the following error:
Server: Msg 117, Level 15, State 1, Line 1
The object name 'pascar.prova.dbo.' contains more than the maximum number of prefixes. The maximum is 2.




Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.03 seconds. Powered By: Snitz Forums 2000