<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://smallfootprints.com.au/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>Smallfootprints Tech Blog</title><link>http://smallfootprints.com.au/blogs/tech-blog/default.aspx</link><description>Tech Info I find useful in my everyday life as a programmer/designer/developer. </description><dc:language>en</dc:language><generator>CommunityServer 2008 (Build: 30417.1769)</generator><item><title>Fckeditor for Microsoft ASP won't upload large files - Solution in IIS Metabase - AspMaxRequestEntityAllowed</title><link>http://smallfootprints.com.au/blogs/tech-blog/archive/2008/09/22/fckeditor-for-microsoft-asp-won-t-upload-large-files-solution-in-iis-metabase-aspmaxrequestentityallowed.aspx</link><pubDate>Sun, 21 Sep 2008 15:53:00 GMT</pubDate><guid isPermaLink="false">73ded9a9-87e4-4c0b-bd92-d353f9adb7f6:83</guid><dc:creator>Ian</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://smallfootprints.com.au/blogs/tech-blog/rsscomments.aspx?PostID=83</wfw:commentRss><comments>http://smallfootprints.com.au/blogs/tech-blog/archive/2008/09/22/fckeditor-for-microsoft-asp-won-t-upload-large-files-solution-in-iis-metabase-aspmaxrequestentityallowed.aspx#comments</comments><description>&lt;p&gt;&lt;strong&gt;I came across an interesting problem where a site I created that used the popular&amp;nbsp;wysiwyg html editor&amp;nbsp;&amp;#39;&lt;/strong&gt;&lt;a target="_blank" href="http://www.fckeditor.net/" class="null"&gt;&lt;strong&gt;fckeditor&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&amp;#39; that was integrated to classic asp on a Microsoft platform, had problems uploading large files.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The upload facility built in to the editor allows you to upload files such as images, pdfs etc. I had reports that it wasn&amp;#39;t uploading pdfs so I did some testing. Evidently trying to upload a file larger than 200kb would result in the page continuing to show that it was uploading whilst the page had clearly stopped loading. The file attempted to upload never appeared in the file list. Hmm.&lt;/p&gt;
&lt;p&gt;A bit of searching found that the problem was due to an IIS setting of the new server the site had moved to. Fckeditor uses an ADODB Stream to perform uploads and therefore is limited by a limitation on ASP upload limits. Components such as ASPUpload shouldn&amp;#39;t be affect by this problem. In IIS 6 (Windows 2003 Server) you can increase the&amp;nbsp;maximum&amp;nbsp;upload file size in the IIS Metabase. The Metabase is an XML file that controls many aspects of an IIS installation. The &lt;strong&gt;AspMaxEntityAllowed&lt;/strong&gt; figure has been place at 200kb to prevent DDOS attacks but can be increased.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Luckily I had control of the IIS settings. If you do too and then perform the following tasks. Otherwise request your web host to perform this for you.&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Go to Administrative Tools -&amp;gt; Internet Information Server&lt;/li&gt;
&lt;li&gt;Right-click your server name and click properties. &lt;/li&gt;
&lt;li&gt;If the box labeled &amp;quot;Allow changes to MetaBase configuration while IIS is running&amp;quot; is not ticked, then tick it and click &amp;quot;OK&amp;quot;&lt;/li&gt;
&lt;li&gt;Go to &amp;quot;c:\Windows\System32\Inetsrv\&amp;quot; and open &amp;quot;MetaBase.xml&amp;quot; with notepad. &lt;/li&gt;
&lt;li&gt;Find (CTRL+F) the &amp;quot;AspMaxRequestEntityAllowed&amp;quot; - it is the maximum bytes able to be uploaded. Set it to a higher figure for example for 2mb set it to &amp;quot;2097152&amp;quot;&lt;/li&gt;
&lt;li&gt;Save the file. If it will not save you might need to restart IIS or possibly even reboot before attempting the change again. &lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;You should be right to go immediately after saving the file. It will not require an IIS restart. Upload a larger file through fckeditor and it will arrive in your upload directory as the smaller files were.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://smallfootprints.com.au/aggbug.aspx?PostID=83" width="1" height="1"&gt;</description><category domain="http://smallfootprints.com.au/blogs/tech-blog/archive/tags/large+files/default.aspx">large files</category><category domain="http://smallfootprints.com.au/blogs/tech-blog/archive/tags/asp/default.aspx">asp</category><category domain="http://smallfootprints.com.au/blogs/tech-blog/archive/tags/problem+uploading/default.aspx">problem uploading</category><category domain="http://smallfootprints.com.au/blogs/tech-blog/archive/tags/fckeditor/default.aspx">fckeditor</category></item><item><title>Bulk Deleting - Drop All Stored Procedures,Views,Schemas,Functions and Tables from SQL Server 2005</title><link>http://smallfootprints.com.au/blogs/tech-blog/archive/2008/05/22/bulk-deleting-drop-all-stored-procedures-views-schemas-functions-and-tables-from-sql-server-2005.aspx</link><pubDate>Fri, 23 May 2008 03:55:00 GMT</pubDate><guid isPermaLink="false">73ded9a9-87e4-4c0b-bd92-d353f9adb7f6:4</guid><dc:creator>Ian</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://smallfootprints.com.au/blogs/tech-blog/rsscomments.aspx?PostID=4</wfw:commentRss><comments>http://smallfootprints.com.au/blogs/tech-blog/archive/2008/05/22/bulk-deleting-drop-all-stored-procedures-views-schemas-functions-and-tables-from-sql-server-2005.aspx#comments</comments><description>&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:small;"&gt;One of the problems I had when setting up Community Server 2008 was that my attempts to move from a local instance of SQL Server Express 2005 to SQL Server 2005 initially failed. I was left with a half installed instance of CS 2008 and could not remove the database and re-create as it was in a hosted environment. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:small;"&gt;A bit of web searching turned up an elegant solution that saved me heaps of time. Hope it works well for you too!&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:small;color:#339966;"&gt;&lt;strong&gt;&lt;span style="font-size:medium;font-family:tahoma,arial,helvetica,sans-serif;"&gt;Simple Table Only Bulk Delete&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:x-small;"&gt;&lt;span style="font-size:small;"&gt;If you only want to drop tables from your database, not the whole structure, then the procedure sp_MSforearchtable comes in handy&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:x-small;"&gt;&lt;span style="font-size:small;"&gt;&lt;em&gt;&lt;span style="background-color:#dafcd8;"&gt;exec sp_MSforeachtable &amp;quot;DROP TABLE ? PRINT &amp;#39;? dropped&amp;#39; &amp;quot;&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:small;color:#339966;"&gt;&lt;strong&gt;&lt;span style="font-size:medium;font-family:tahoma,arial,helvetica,sans-serif;"&gt;Bulk Delete Tables along with Stored Procedures / Views / Schemas / Functions &lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:x-small;color:#000000;"&gt;&lt;span style="font-size:small;"&gt;I found a blog by&amp;nbsp;Patrick Galluci&amp;nbsp;(&lt;/span&gt;&lt;a target="_blank" href="http://blogs.msdn.com/patrickgallucci/archive/2008/04/29/how-to-drop-all-tables-all-views-and-all-stored-procedures-from-a-sql-2005-db.aspx" class="null"&gt;&lt;span style="font-size:small;"&gt;visit&lt;/span&gt;&lt;/a&gt;&lt;span style="font-size:small;"&gt;) who took csome original code that deleted&amp;nbsp;only stored procedures and views, and extended it to include schemas and functions. I found Patrick&amp;#39;s code was much more successful at removing views and sp&amp;#39;s due to the fact that it also removes schemas. Run the following code in a query through Enterprise Manager and then run the stored procedure &lt;strong&gt;usp_DropSPFunctionsViews&lt;/strong&gt; to remove all the unwanted structures.&lt;/span&gt;&lt;span style="font-size:small;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="FONT-SIZE:10pt;COLOR:blue;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;mso-no-proof:yes;"&gt;&lt;span style="font-size:x-small;color:#0000ff;"&gt;&lt;span style="font-size:small;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="PADDING-LEFT:30px;"&gt;&lt;span style="font-size:small;"&gt;&lt;span style="color:#339966;"&gt;&amp;nbsp;create procedure usp_DropSPFunctionsViews&lt;br /&gt;as &lt;br /&gt;-- variable to object name&lt;br /&gt;declare @name&amp;nbsp; varchar(1000)&lt;br /&gt;-- variable to hold object type&lt;br /&gt;declare @xtype varchar(20)&lt;br /&gt;-- variable to hold sql string&lt;br /&gt;declare @sqlstring nvarchar(4000) &lt;br /&gt;declare SPViews_cursor cursor for&lt;br /&gt;SELECT QUOTENAME(ROUTINE_SCHEMA) + &amp;#39;.&amp;#39; + QUOTENAME(ROUTINE_NAME) &lt;br /&gt;AS name, ROUTINE_TYPE AS xtype&lt;br /&gt;FROM&lt;br /&gt;INFORMATION_SCHEMA.ROUTINES&lt;br /&gt;UNION&lt;br /&gt;SELECT QUOTENAME(TABLE_SCHEMA) + &amp;#39;.&amp;#39; + QUOTENAME(TABLE_NAME) AS &lt;br /&gt;name, &amp;#39;VIEW&amp;#39; AS xtype&lt;br /&gt;FROM&lt;br /&gt;INFORMATION_SCHEMA.VIEWS &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="PADDING-LEFT:30px;"&gt;&lt;span style="font-size:small;"&gt;&lt;span style="color:#339966;"&gt;open SPViews_cursor &lt;br /&gt;fetch next from SPViews_cursor into @name, @xtype &lt;br /&gt;while @@fetch_status = 0&amp;nbsp; &lt;br /&gt;begin&lt;br /&gt;-- test object type if it is a stored procedure&lt;br /&gt;&amp;nbsp;&amp;nbsp; if @xtype = &amp;#39;PROCEDURE&amp;#39;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; begin&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set @sqlstring = &amp;#39;drop procedure &amp;#39; + @name&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; exec sp_executesql @sqlstring&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set @sqlstring = &amp;#39; &amp;#39;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end&lt;br /&gt;-- test object type if it is a function&lt;br /&gt;&amp;nbsp;&amp;nbsp; if @xtype = &amp;#39;FUNCTION&amp;#39;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; begin&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set @sqlstring = &amp;#39;drop FUNCTION &amp;#39; + @name&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; exec sp_executesql @sqlstring&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set @sqlstring = &amp;#39; &amp;#39;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end&lt;br /&gt;-- test object type if it is a view&lt;br /&gt;&amp;nbsp;&amp;nbsp; if @xtype = &amp;#39;VIEW&amp;#39;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; begin&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set @sqlstring = &amp;#39;drop view &amp;#39; + @name&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; exec sp_executesql @sqlstring&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set @sqlstring = &amp;#39; &amp;#39;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end&lt;br /&gt;&amp;nbsp;-- get next record&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; fetch next from SPViews_cursor into @name, @xtype&lt;br /&gt;&amp;nbsp; end&lt;br /&gt;&amp;nbsp;close SPViews_cursor&lt;br /&gt;deallocate SPViews_cursor&lt;br /&gt;GO&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://smallfootprints.com.au/aggbug.aspx?PostID=4" width="1" height="1"&gt;</description><category domain="http://smallfootprints.com.au/blogs/tech-blog/archive/tags/bulk+delete/default.aspx">bulk delete</category><category domain="http://smallfootprints.com.au/blogs/tech-blog/archive/tags/views/default.aspx">views</category><category domain="http://smallfootprints.com.au/blogs/tech-blog/archive/tags/bulk+drop/default.aspx">bulk drop</category><category domain="http://smallfootprints.com.au/blogs/tech-blog/archive/tags/schemas/default.aspx">schemas</category><category domain="http://smallfootprints.com.au/blogs/tech-blog/archive/tags/stored+procedures/default.aspx">stored procedures</category><category domain="http://smallfootprints.com.au/blogs/tech-blog/archive/tags/functions/default.aspx">functions</category><category domain="http://smallfootprints.com.au/blogs/tech-blog/archive/tags/sql+server+2005/default.aspx">sql server 2005</category><category domain="http://smallfootprints.com.au/blogs/tech-blog/archive/tags/sql+server+2005+express/default.aspx">sql server 2005 express</category><category domain="http://smallfootprints.com.au/blogs/tech-blog/archive/tags/drop+all/default.aspx">drop all</category></item></channel></rss>