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

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 executing sql server function

Author  Topic 

sparrow37
Posting Yak Master

148 Posts

Posted - 2009-10-31 : 14:34:34
Hi all:

I want to execute following sql server function in Management studio.

ALTER FUNCTION [Develop_pricebook].[SplitWords](@text varchar(8000))
RETURNS @words TABLE (pos smallint primary key, value varchar(8000))

what will be syntax for it. I tried following but got error

select dbo.[SplitWords] 'sdasdda,dfdsf'

exec dbo.[SplitWords] 'sdasdda,dfdsf'

select * from dbo.[SplitWords] 'sdasdda,dfdsf'

afrika
Master Smack Fu Yak Hacker

2706 Posts

Posted - 2009-10-31 : 15:42:53
You should use dbo for your objects and not "Develop_pricebook"

Once you do, try it again
select [dbo].[SplitWords] ('sdasdda,dfdsf')
Go to Top of Page
   

- Advertisement -