dbTalk Databases Forums  

Using table UDF in a view

comp.databases.ms-sqlserver comp.databases.ms-sqlserver


Discuss Using table UDF in a view in the comp.databases.ms-sqlserver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Sibongile Khanyile
 
Posts: n/a

Default Using table UDF in a view - 05-04-2007 , 01:46 AM






If anyone can help... I have a function that takes one parameter and
bring back quite a lot of records. but with a conventional function the
field size has a limit of 8000 and i can not use field type 'text'. the
limit has been reached and the view does not bring back results. an
option i found was to use a table function. but with my limited
experience with table udf's, I am failing to use it within a view. I am
passing a value from the view as a parameter to use in the function and
it doesnt work.
Please help.



*** Sent via Developersdex http://www.developersdex.com ***

Reply With Quote
  #2  
Old   
Erland Sommarskog
 
Posts: n/a

Default Re: Using table UDF in a view - 05-04-2007 , 02:20 AM






Sibongile Khanyile (sibongile.khanyile (AT) sita (DOT) co.za) writes:
Quote:
If anyone can help... I have a function that takes one parameter and
bring back quite a lot of records. but with a conventional function the
field size has a limit of 8000 and i can not use field type 'text'. the
limit has been reached and the view does not bring back results. an
option i found was to use a table function. but with my limited
experience with table udf's, I am failing to use it within a view. I am
passing a value from the view as a parameter to use in the function and
it doesnt work.
Which version of SQL Server are you using? If you are on SQL 2000, you may
be out of luck. If you are on SQL 2005 you should look into the new APPLY
operator.

But it could really help if you could clarify you question by posting
your UDF and your view, so we can get idea of what you are working with.


--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.