Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

UDF Invalid object name

Status
Not open for further replies.

mbowles

Programmer
Aug 27, 2001
41
US
I have a udf called Split. It was create like so:
CREATE FUNCTION dbo.Split

It returns a table of values from a comma separated nvarchar sent to it. No matter how I call it, I get Invalid object name 'dbo.Split'

Any thoughts?
 
You don't need the dbo when you have table result. Try it without the dbo prefix.

Questions about posting. See faq183-874
 
tried that as well. Trying somehting like this:
select * from myTable where id in (Split(1,51,100',','))

I cant even exec it from query analyzer, same error.
 
it seems that I was not calling it like so:
select * from Split('1,54',',')

to get the results of the table..thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top