SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
FR: Export Table Data

 
Reply to topic    SoftTree Technologies Forum Index » SQL Assistant View previous topic
View next topic
FR: Export Table Data
Author Message
judahr



Joined: 09 Mar 2007
Posts: 319
Country: United States

Post FR: Export Table Data Reply with quote
Currently Table Export exports the entire set. It would be great to have a window where you could enter what you want after a From clause. this would allow you to filter down the result and possibly order by.

Also allow a Top number so you can limit the result set.

You would by default have Select Top 100 Percent * From Table

I could then enter:

Where Column2 = 'A'
Order by Column1

And you could then filter the data of the output.
Mon Aug 31, 2015 11:36 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7948

Post Reply with quote
To achieve that result, you can write any valid SQL query returning the required results, top, group, joins, order by, anything here, then execute it using SQL Assistant (CTRL+SHIFT+F9) instead of your editor's native code execution key, the right click the result grid and choose Save As... Select output file and format. That's it.

Hope that works for you.
Mon Aug 31, 2015 12:20 pm View user's profile Send private message
judahr



Joined: 09 Mar 2007
Posts: 319
Country: United States

Post Reply with quote
That doesn't script it as insert statements.
Mon Aug 31, 2015 2:53 pm View user's profile Send private message
gemisigo



Joined: 11 Mar 2010
Posts: 2165

Post Reply with quote
I had a snippet that did that to a selected query but I haven't used it for long and I cannot find it. I can dig through my archives this week if it isn't urgent.
Mon Aug 31, 2015 4:22 pm View user's profile Send private message
judahr



Joined: 09 Mar 2007
Posts: 319
Country: United States

Post Reply with quote
Thanks. Want to post it to the snippets repository?
Tue Sep 01, 2015 10:07 am View user's profile Send private message
gemisigo



Joined: 11 Mar 2010
Posts: 2165

Post Reply with quote
Sure, provided I can find it...
Tue Sep 01, 2015 11:12 am View user's profile Send private message
gemisigo



Joined: 11 Mar 2010
Posts: 2165

Post Reply with quote
I'm very sorry, haven't found it. I remember having it on Alt+2 but I haven't used it frequently and replaced it with something else (not using that on frequently either :( ).
I tried to rewrite it from scratch using some other snippets. It's far from being perfect but a good point to start from in case you're willing to improve it. I guess it doesn't handle special types like varbinary very well. As with all the other snippets I created, it is meant for SQL Server.
Sat Sep 05, 2015 3:36 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » SQL Assistant All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.