<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.method.me/cs/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Method:API Q&amp;A</title><link>http://forums.method.me/cs/forums/15.aspx</link><description>Ask questions specific to the MethodAPI from the Method Team and other Method users.</description><dc:language>en</dc:language><generator>CommunityServer 2007.1 SP2 (Build: 31113.47)</generator><item><title>Re: Truncate Table</title><link>http://forums.method.me/cs/forums/thread/2529.aspx</link><pubDate>Wed, 05 May 2010 15:01:28 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:2529</guid><dc:creator>BrianPoole</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/2529.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=15&amp;PostID=2529</wfw:commentRss><description>&lt;p&gt;Matt,&lt;/p&gt;
&lt;p&gt;I appreciate it, but this is a temporary table I&amp;#39;m working with. I fill in the data remotely with a webservice and I want to show the results to the end user. The grid loop seems to work fine for now.&lt;/p&gt;</description></item><item><title>Re: Truncate Table</title><link>http://forums.method.me/cs/forums/thread/2438.aspx</link><pubDate>Tue, 27 Apr 2010 14:27:45 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:2438</guid><dc:creator>Matt</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/2438.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=15&amp;PostID=2438</wfw:commentRss><description>&lt;p&gt;Brian,&lt;/p&gt;
&lt;p&gt;I made a utility for my own use to erase all the records in any given table. It isn&amp;#39;t pretty looking and given it&amp;#39;s destructive potential I don&amp;#39;t think I&amp;#39;d want to give/sell it to anyone, but if you have a few tables that you would like erased one time, you can contact me at matt@TechInTheField.com and I should be able to take care of that for you.&lt;/p&gt;</description></item><item><title>Re: Truncate Table</title><link>http://forums.method.me/cs/forums/thread/2418.aspx</link><pubDate>Thu, 22 Apr 2010 21:29:39 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:2418</guid><dc:creator>Method_Paul</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/2418.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=15&amp;PostID=2418</wfw:commentRss><description>&lt;p&gt;Brian - even with the import / export tool it is still importing one record at a time and validating as it goes.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;In terms of performance increases, you are right&amp;nbsp;that a DELETE * FROM TableName would be the most efficient SQL to run against it. Since Method, in general, is made for non-programmers, this is something we are staying away from.&lt;/p&gt;
&lt;p&gt;Paul&lt;/p&gt;</description></item><item><title>Re: Truncate Table</title><link>http://forums.method.me/cs/forums/thread/2415.aspx</link><pubDate>Thu, 22 Apr 2010 19:04:34 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:2415</guid><dc:creator>BrianPoole</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/2415.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=15&amp;PostID=2415</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi Paul,&lt;/p&gt;
&lt;p&gt;I was taking your advice from this post&lt;span style="color:#0066cc;"&gt;&lt;br /&gt;&lt;span style="color:#000000;"&gt;&lt;a href="http://www.methodintegration.com/cs/forums/t/670.aspx"&gt;http://www.methodintegration.com/cs/forums/t/670.aspx&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I found a way to do it by using Method actions--&lt;/p&gt;
&lt;p&gt;Start Loop Through Grid&lt;br /&gt;&amp;nbsp;&amp;nbsp; Delete Record From Table -- Record ID equal to Value From Row RecordID&lt;br /&gt;Start Loop Through Grid&lt;/p&gt;
&lt;p&gt;Seems to work...&lt;br /&gt;&lt;br /&gt;I like the batch import idea, is there a way to do that through the API?&lt;br /&gt;Right now I&amp;#39;m importing one record at a time. Not a big deal, but I could imagine the performance increase...&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Brian&lt;/p&gt;</description></item><item><title>Re: Truncate Table</title><link>http://forums.method.me/cs/forums/thread/2414.aspx</link><pubDate>Thu, 22 Apr 2010 18:38:53 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:2414</guid><dc:creator>Method_Paul</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/2414.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=15&amp;PostID=2414</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;By the way - if you are looking to import data into Method, you might want to take a look at the new Import / Export tool we just launched into beta yesterday.&amp;nbsp; It&amp;#39;s pretty awesome. See &lt;a href="http://www.methodintegration.com/cs/forums/t/721.aspx"&gt;http://www.methodintegration.com/cs/forums/t/721.aspx&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>Re: Truncate Table</title><link>http://forums.method.me/cs/forums/thread/2413.aspx</link><pubDate>Thu, 22 Apr 2010 18:36:42 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:2413</guid><dc:creator>Method_Paul</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/2413.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=15&amp;PostID=2413</wfw:commentRss><description>&lt;p&gt;Brian,&lt;/p&gt;
&lt;p&gt;There is no clear or purge&amp;nbsp;function (scary to have such a thing!).&amp;nbsp; But there is MethodAPIDeleteV2.&amp;nbsp; This lets you delete one record at a time.&amp;nbsp; You need to know the RecordID of the records you want to delete first though. So you would have to retreive those using&amp;nbsp;MethodAPISelect_XMLV2 or MethodAPISelect_DatasetV2.&lt;/p&gt;
&lt;p&gt;Paul&lt;/p&gt;</description></item><item><title>Truncate Table</title><link>http://forums.method.me/cs/forums/thread/2412.aspx</link><pubDate>Thu, 22 Apr 2010 18:04:19 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:2412</guid><dc:creator>BrianPoole</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/2412.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=15&amp;PostID=2412</wfw:commentRss><description>&lt;p&gt;Hello&lt;/p&gt;
&lt;p&gt;Is it possible to truncate a table using the API?&lt;/p&gt;
&lt;p&gt;I can get the data into a table, but I want to clear it first.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;-Brian&lt;/p&gt;</description></item></channel></rss>