HighTechTalks DotNet Forums  

RE: I have a CLR function thet returns IEnumberable (a table) and it h

Dotnet Framework (CLR) microsoft.public.dotnet.framework.clr


Discuss RE: I have a CLR function thet returns IEnumberable (a table) and it h in the Dotnet Framework (CLR) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Peter Ritchie [C# MVP]
 
Posts: n/a

Default RE: I have a CLR function thet returns IEnumberable (a table) and it h - 12-21-2007 , 12:27 PM






Could you be more specific? "a function...has a FillRow function", do you
mean "uses a FillRow function" or "used by a FillFow function"?

IEnumerable doesn't provide "size" and may not have a size at all (i.e.
infinite), it just means it's something that can be enumerated. If you need
to know the size of the collection, I would suggest using a collection, not
IEnumerable.

--
Browse http://connect.microsoft.com/VisualStudio/feedback/ and vote.
http://www.peterRitchie.com/blog/
Microsoft MVP, Visual Developer - Visual C#


"DR" wrote:

Quote:
I have a CLR function thet returns IEnumberable (a table) and it has a
FillRow function. I am returning 10,000 integers from this function. Is
there any way that I can preallocate the resulting table or give SQL server
hint as to how many rows my function will return? It makes me cringe to
think that every time FillRow is called that sql may be doing some memory
allocation to make the resulting table bigger.




Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
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.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.