C# 3.0 in a Nutshell
C# 3.0 in a Nutshell, Third Edition A Desktop Quick Reference By Joseph Albahari, Ben Albahari
September 2007
Pages: 858


Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
How To Return More Than 1000 Rows
Brian Chappell
post Jun 6 2008, 02:00 AM
Post #1


New Member
*

Group: Members
Posts: 1
Joined: 6-June 08
Member No.: 363



Hi Joe,

Firstly, awesome tool. I'm taking the challenge and using your tool instead of Management Studio and it really is working, I'm creating Linq now that I wouldn't have even known where to start a few days ago.

I have hit a stumbling block, I need to extract some data for a colleague and can only return the first 1000 records. I'm sure there's something I've missed with regard to the Dump extension but I can't find what. Help!

Regards,
Brian
Go to the top of the page
 
+Quote Post
JoeAlbahari
post Jun 6 2008, 02:30 AM
Post #2


Advanced Member
******

Group: Members
Posts: 203
Joined: 15-February 08
From: Perth, Australia
Member No.: 90



Hi Brian

This is currently a limitation of LINQPad. It uses a web browser to display results exported using LINQ to XML, which imposes practical limits on the output size. If you want to export all the data to some other file or format, you can either include the C# code to do that in your query, or write a custom extension method to do the same. Press F4 to add the reference to the custom DLL & namespace, then click 'Set as default for new queries'.

The other option is that I could modify LINQPad to use dynamically generated WPF elements to display content. This would remove the result size limitation, but would make copying/pasting troublesome!

Regards
Joe
Go to the top of the page
 
+Quote Post
Terry Aney
post Dec 3 2008, 10:46 PM
Post #3


Active Member
**

Group: Members
Posts: 15
Joined: 25-March 08
Member No.: 169



Please see my article for a possible Dump To CSV solution.

Hope it helps.
Go to the top of the page
 
+Quote Post
JoeAlbahari
post Dec 5 2008, 03:57 AM
Post #4


Advanced Member
******

Group: Members
Posts: 203
Joined: 15-February 08
From: Perth, Australia
Member No.: 90



Just so readers know, the library described in that article has some other useful extensions, too:

  • LINQ-predicated updates
  • Pastable SQL translations
  • Batched LINQ to SQL queries


Definitely worth checking out!

Joe

This post has been edited by Joseph Albahari: Dec 5 2008, 04:00 AM
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

RSS Lo-Fi Version Time is now: 7th November 2009 - 01:27 PM