<?xml version='1.0' encoding='UTF-8'?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/" xmlns:blogger="http://schemas.google.com/blogger/2008" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-7856027517574400977</atom:id><lastBuildDate>Sat, 05 Oct 2024 02:04:22 +0000</lastBuildDate><category>Tips and Tricks</category><category>SQL</category><category>ASP.NET</category><category>CSharp</category><category>Tools</category><category>Vista</category><category>VisualStudio</category><category>Excel</category><category>Javascript</category><category>MS SQL</category><category>XDT Config transform</category><category>bat dos</category><category>dev days</category><category>mysql</category><category>tech days</category><title>The Nobels Blog</title><description>Code samples and more ...</description><link>http://krisnobels.blogspot.com/</link><managingEditor>noreply@blogger.com (Kris Nobels)</managingEditor><generator>Blogger</generator><openSearch:totalResults>18</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7856027517574400977.post-100354450495631352</guid><pubDate>Sun, 24 Oct 2010 18:14:00 +0000</pubDate><atom:updated>2010-10-24T20:14:08.516+02:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">XDT Config transform</category><title>Config files and XDT or Config Transforms</title><description>&lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;In VS 2010 there is a new feature to transform your config file for the active configuration. (for example –&amp;gt; Debug / Release)&lt;/p&gt; &lt;p&gt;All you need to do is right click on the web.config en select config transforms.&lt;/p&gt; &lt;p&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjjypjlzjr4ncWOFtZiWSelS_jWDkhbvneRGfxP47AmJ2al9YuABgoGzPyi1kDishSrbosaKmW036fECDvPmysUbVmxty-xnNWP1eDEsmznZ13pAZmrhPNYi4QipKhHEZ_Q-FXQ60isCA/s1600-h/configtransforms%5B3%5D.png&quot;&gt;&lt;img style=&quot;background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px&quot; title=&quot;configtransforms&quot; border=&quot;0&quot; alt=&quot;configtransforms&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVacy1gN-pOBOfYvPvHbj2Xo-Y1l3XG3rbAL3Argq4EQ6KETXJlix5or9fqHTzZmrrIBfy6LbXf9RnBVEbTCtkig8US_BVY-9gQ-GdvE0GdV_hakAYJ_5Iguc0lC32HDhNQR8qSvUBmA/?imgmax=800&quot; width=&quot;315&quot; height=&quot;450&quot;&gt;&lt;/a&gt;&lt;/p&gt; &lt;p&gt;Now this feature is only available for Web.config files. &lt;img style=&quot;border-bottom-style: none; border-right-style: none; border-top-style: none; border-left-style: none&quot; class=&quot;wlEmoticon wlEmoticon-sadsmile&quot; alt=&quot;Bedroefde emoticon&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiyZIiwb9KNOdJV_q5q73QE6bSHPo3CSIViEGCPLIVOQiyby8tdBACaw8tNyBbXNjAilzh5rBpcpE-LxuS2apTf0daLdoOryBTgDDubOpzCpEcLEeoqFxC1t4GZ8uoH66OXDKb7hIrnDQ/?imgmax=800&quot;&gt;&lt;/p&gt; &lt;p&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjKidDu3Obx0pYRbCan-fEUr5AA_IhObr9C5bfoP9S_sceCcpfVWTSKdDi_pU6LvdTPfU5pASVnLhDWSVpNMQLJwqk-98VT4r7FK9CFSGc9JTVVB7gCVvIB1Cf3NkOgNOe4tKyQHWLCgA/s1600-h/image%5B2%5D.png&quot;&gt;&lt;img style=&quot;background-image: none; border-bottom: 0px; border-left: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px&quot; title=&quot;image&quot; border=&quot;0&quot; alt=&quot;image&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNDhIpXZzz9u1i6c-FlMKbVrfkw3CIFqZ-omWgL-8PnHYW3fXvpheJ0Cu8FX3j-mQGeMuZKK5MKeky5-1K1E532hHS-kO2rfIcbp-TX4cBGVirhtp84YZoytY2MkKqd8ii8pLuIcXVZw/?imgmax=800&quot; width=&quot;207&quot; height=&quot;79&quot;&gt;&lt;/a&gt;&lt;br&gt;But i google do the search for me and i found a solution for app.config &lt;img style=&quot;border-bottom-style: none; border-right-style: none; border-top-style: none; border-left-style: none&quot; class=&quot;wlEmoticon wlEmoticon-smile&quot; alt=&quot;Glimlach&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiLuvOzr8xfA1-XdkI-2qawoDhiKm2dJc0ALM9O0U3sMA1FCSw-qBXXA5Vhh1VNVbgpi1oBp71qzC8eHJhcoFkislPPDAxCmCrPwveG5kyWNFYao9G3eLV3674l9eI9qpzGJ2Y0B1rIFw/?imgmax=800&quot;&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivZTRGJiSl8l6ffpzQLTl54euUm7O07uLfdpphu541K8GtdI8XVKceVU8fxuxeG9UPDKDhMRF1etcXicoLCoucdhwPbmzMX_rVkQUSH9VUK1lJjI1XG8H2KwEGhwU0XX9yMQSdO-WdQw/s1600-h/image%5B8%5D.png&quot;&gt;&lt;img style=&quot;background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px&quot; title=&quot;image&quot; border=&quot;0&quot; alt=&quot;image&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjgODYDWz3E7uP-uOpih2bEL2BvfVTpMiAQSseIVh_JXt6Ydl4yzBrqFiR6F_GyH5D213FnzBI4iYqlZ6Mcz4H01f8tyd6xA7VhZR2IagomMBZ1r-BqEvnrYZCoOg290y8VS8Fd9HyaGA/?imgmax=800&quot; width=&quot;191&quot; height=&quot;60&quot;&gt;&lt;/a&gt;&lt;/p&gt; &lt;p&gt;How you do it can you find out in this &lt;a href=&quot;http://vishaljoshi.blogspot.com/2010/05/applying-xdt-magic-to-appconfig.html&quot; target=&quot;_blank&quot;&gt;&lt;strong&gt;blogpost written by Vishal Joshi&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt; &lt;p&gt;Now i work with this technique and i had some problems with the web.config.&lt;/p&gt; &lt;p&gt;Some times i get this message: &lt;/p&gt; &lt;p&gt;&lt;em&gt;It is an error to use a section registered as allowDefinition=&#39;MachineToApplication&#39; beyond application level.&amp;nbsp; &lt;br&gt;This error can be caused by a virtual directory not being configured as an application in IIS.&lt;/em&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/p&gt; &lt;p&gt;&lt;strong&gt;What i did to get it work:&lt;/strong&gt;&lt;/p&gt; &lt;ul&gt; &lt;li&gt;Clean Project&lt;/li&gt; &lt;li&gt;Make shure that the bin folder is empty&lt;/li&gt; &lt;li&gt;Rebuild project&lt;/li&gt; &lt;li&gt;Result --&amp;gt; &lt;u&gt;&lt;strong&gt;error is gonne&lt;/strong&gt;&lt;/u&gt;&lt;/li&gt;&lt;/ul&gt; &lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;Enjoy …&lt;/p&gt;  </description><link>http://krisnobels.blogspot.com/2010/10/config-files-and-xdt-or-config.html</link><author>noreply@blogger.com (Kris Nobels)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVacy1gN-pOBOfYvPvHbj2Xo-Y1l3XG3rbAL3Argq4EQ6KETXJlix5or9fqHTzZmrrIBfy6LbXf9RnBVEbTCtkig8US_BVY-9gQ-GdvE0GdV_hakAYJ_5Iguc0lC32HDhNQR8qSvUBmA/s72-c?imgmax=800" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7856027517574400977.post-1795076648679728969</guid><pubDate>Sun, 11 Jul 2010 08:48:00 +0000</pubDate><atom:updated>2010-07-11T10:48:16.715+02:00</atom:updated><title>Create Journaling on a table for mysql database</title><description>&lt;p&gt;If you have some tables with very sensitive data in it you would create backups. &lt;/p&gt;  &lt;p&gt;that is 1 thing, but if somethings wrong you would like to now when and what data is changed.&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;This is a nice solution that create a copy of table that you would like to monitor.&lt;/p&gt;  &lt;p&gt;and add a 3 triggers –&amp;gt; 1 for Insert, update and delete.&lt;/p&gt;  &lt;p&gt;If some data is inserted it will be in the journaling table 2. &lt;/p&gt;  &lt;p&gt;If Updated or deleted you wil find what is changed in that table.&lt;/p&gt;  &lt;p&gt;I created 2 Stored procedures:&lt;/p&gt;  &lt;p&gt;SP1 –&amp;gt; to create the second table(copy) with 2 extra colums.&lt;/p&gt;  &lt;p&gt;SP2 –&amp;gt; to create 3 triggers&lt;/p&gt;  &lt;p&gt;This 2 SP will write the script to a file where you would like to be.&lt;/p&gt;  &lt;p&gt;These are my SP code:&lt;/p&gt;  &lt;p&gt;&lt;u&gt;CREATE JN_TABLE&lt;/u&gt;&lt;/p&gt;  &lt;pre class=&quot;brush: sql;&quot;&gt;DELIMITER $$&lt;br /&gt;&lt;br /&gt;USE `YOUR TABLESCHEMA`$$&lt;br /&gt;&lt;br /&gt;DROP PROCEDURE IF EXISTS `CreateJNTable`$$&lt;br /&gt;&lt;br /&gt;CREATE PROCEDURE `CreateJNTable`(IN tabelnaamostr VARCHAR(64),IN tabelschemastr VARCHAR(64))&lt;br /&gt;BEGIN&lt;br /&gt;-- 1. aanmaken temp table&lt;br /&gt;CREATE TEMPORARY TABLE TMPJN (ID DOUBLE AUTO_INCREMENT KEY,stringval VARCHAR(21844) NOT NULL);&lt;br /&gt;-- 2. aanmaken commentaar&lt;br /&gt;INSERT INTO TMPJN (stringval) VALUES (CONCAT(&#39;-- We maken een Journaling tabel aan voor tabel &#39;,tabelnaamostr ,&#39; in tabelschema &#39;,tabelschemastr));&lt;br /&gt;-- 3. 1e lijn stuk text toevoegen&lt;br /&gt;INSERT INTO TMPJN (stringval) VALUES (CONCAT(&#39;Create table &#39;,tabelnaamostr,&#39;_JN(&#39;));&lt;br /&gt;-- 4. We gaan de Kolom namen toevoegen + hun datatype en een comma er achter&lt;br /&gt;INSERT INTO TMPJN (stringval)&lt;br /&gt;SELECT CONCAT(column_name,&#39; &#39;, Column_type,&#39;,&#39;) AS result&lt;br /&gt;FROM information_schema.columns WHERE table_name= tabelnaamostr AND TABLE_Schema = tabelschemastr ;&lt;br /&gt;-- 5. We gaan de andere 2 kolomen toevoegen die nodig zijn voor de Journaling&lt;br /&gt;INSERT INTO TMPJN (stringval) VALUES (&#39;RowAction varchar(1),&#39;);&lt;br /&gt;INSERT INTO TMPJN (stringval) VALUES (&#39;Tijdstip DateTime);&#39;);&lt;br /&gt;-- 6. We schrijven dit alles weg naar en file op onderstaande locatie&lt;br /&gt;SELECT stringval FROM TMPJN INTO OUTFILE &#39;\\\\\192.168.0.13\\Divers\\CreateJNTable.sql&#39;;&lt;br /&gt;-- 7. Tot slot deleten we de tmp tabel&lt;br /&gt;DROP TEMPORARY TABLE TMPJN;&lt;br /&gt;END$$&lt;br /&gt;&lt;br /&gt;DELIMITER ;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;And &lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;u&gt;CREATE JN_TRIGGERS&lt;/u&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&amp;#160;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class=&quot;brush: sql;&quot;&gt;DELIMITER $$&lt;br /&gt;&lt;br /&gt;USE `YOUR TABLESCHEMA`$$&lt;br /&gt;&lt;br /&gt;DROP PROCEDURE IF EXISTS `CreateJNTriggers`$$&lt;br /&gt;&lt;br /&gt;CREATE PROCEDURE `CreateJNTriggers`(IN tabelnaamostr VARCHAR(64),IN tabelschemastr VARCHAR(64))&lt;br /&gt;BEGIN&lt;br /&gt;-- 1. aanmaken temp table&lt;br /&gt;CREATE TEMPORARY TABLE TMPJN (ID DOUBLE AUTO_INCREMENT KEY,stringval VARCHAR(21844) NOT NULL);&lt;br /&gt;-- 2. Toevoegen van vaste script lijnen&lt;br /&gt;INSERT INTO TMPJN (stringval) VALUES (&#39;DELIMITER $$&#39;);&lt;br /&gt;INSERT INTO TMPJN (stringval) VALUES (CONCAT(&#39;USE &#39;,tabelschemastr,&#39; $$&#39;));&lt;br /&gt;-- ************************************************************************************************************************&lt;br /&gt;-- *                                                INSERT Trigger                                                        *&lt;br /&gt;-- ************************************************************************************************************************&lt;br /&gt;INSERT INTO TMPJN (stringval) VALUES (&#39;--&#39;);&lt;br /&gt;INSERT INTO TMPJN (stringval) VALUES (&#39;--&#39;);&lt;br /&gt;INSERT INTO TMPJN (stringval) VALUES (CONCAT(&#39;-- We maken een insert trigger aan voor tabel &#39;,tabelnaamostr ,&#39; in tabelschema &#39;,tabelschemastr));&lt;br /&gt;INSERT INTO TMPJN (stringval) VALUES (CONCAT(&#39;DROP TRIGGER IF EXISTS TR_&#39;,tabelnaamostr,&#39;_Insert $$&#39;));&lt;br /&gt;INSERT INTO TMPJN (stringval) VALUES (CONCAT(&#39;CREATE TRIGGER TR_&#39;,tabelnaamostr,&#39;_Insert AFTER INSERT ON &#39;, tabelnaamostr));&lt;br /&gt;INSERT INTO TMPJN (stringval) VALUES (&#39;FOR EACH ROW BEGIN&#39;);&lt;br /&gt;INSERT INTO TMPJN (stringval) VALUES (CONCAT(&#39;INSERT INTO &#39;,tabelnaamostr,&#39;_JN(&#39;));&lt;br /&gt;-- 3. Toevoegen van colomnamen van de Journaling tabel waar we de data gaan in stoppen&lt;br /&gt;INSERT INTO TMPJN (stringval)&lt;br /&gt;SELECT CONCAT(column_name,&#39;,&#39;) AS result&lt;br /&gt;FROM information_schema.columns WHERE table_name = CONCAT(tabelnaamostr,&#39;_JN&#39;) AND TABLE_Schema = tabelschemastr ;&lt;br /&gt;-- 4. variable om tijdelijk de max ID bij te houden&lt;br /&gt;SET @MaxID := 0;&lt;br /&gt;-- 5. we stoppen de max id er in.&lt;br /&gt;SELECT @MaxID := MAX(ID) FROM TMPJN;&lt;br /&gt;-- 6. we gaan de laaste waarde de , er uit halen want die hoeft daar niet te staan. (anders sintax fout)&lt;br /&gt;UPDATE TMPJN SET stringval = REPLACE(stringval,&#39;,&#39;,&#39;)&#39;) WHERE id = @MaxID;&lt;br /&gt;-- 7. Toevoegen van vaste script lijnen  &lt;br /&gt;INSERT INTO TMPJN (stringval) VALUES (&#39;VALUES(&#39;);&lt;br /&gt;-- 8. Toevoegen van kolomnamen met een prefix van new. zonder de laatse 2 kolommen er bij&lt;br /&gt;INSERT INTO TMPJN (stringval)&lt;br /&gt;SELECT CONCAT(&#39;new.&#39;,column_name,&#39;,&#39;) AS result&lt;br /&gt;FROM information_schema.columns WHERE table_name = CONCAT(tabelnaamostr,&#39;_JN&#39;) AND TABLE_Schema = tabelschemastr AND  column_name NOT IN (&#39;RowAction&#39;,&#39;Tijdstip&#39;);&lt;br /&gt;-- 9. Toevoegen van vaste script lijnen&lt;br /&gt;INSERT INTO TMPJN (stringval) VALUES (&#39;\&#39;I\&#39;,&#39;);&lt;br /&gt;INSERT INTO TMPJN (stringval) VALUES (&#39;NOW());&#39;);&lt;br /&gt;INSERT INTO TMPJN (stringval) VALUES (&#39;END;&#39;);&lt;br /&gt;INSERT INTO TMPJN (stringval) VALUES (&#39;$$&#39;);&lt;br /&gt;-- ************************************************************************************************************************&lt;br /&gt;-- *                                                UPDATE Trigger                                                        *&lt;br /&gt;-- ************************************************************************************************************************&lt;br /&gt;INSERT INTO TMPJN (stringval) VALUES (&#39;--&#39;);&lt;br /&gt;INSERT INTO TMPJN (stringval) VALUES (&#39;--&#39;);&lt;br /&gt;INSERT INTO TMPJN (stringval) VALUES (CONCAT(&#39;-- We maken een Update trigger aan voor tabel &#39;,tabelnaamostr ,&#39; in tabelschema &#39;,tabelschemastr));&lt;br /&gt;INSERT INTO TMPJN (stringval) VALUES (CONCAT(&#39;DROP TRIGGER IF EXISTS TR_&#39;,tabelnaamostr,&#39;_Update $$&#39;));&lt;br /&gt;INSERT INTO TMPJN (stringval) VALUES (CONCAT(&#39;CREATE TRIGGER TR_&#39;,tabelnaamostr,&#39;_Update AFTER Update ON &#39;, tabelnaamostr));&lt;br /&gt;INSERT INTO TMPJN (stringval) VALUES (&#39;FOR EACH ROW BEGIN&#39;);&lt;br /&gt;INSERT INTO TMPJN (stringval) VALUES (CONCAT(&#39;INSERT INTO &#39;,tabelnaamostr,&#39;_JN(&#39;));&lt;br /&gt;INSERT INTO TMPJN (stringval)&lt;br /&gt;SELECT CONCAT(column_name,&#39;,&#39;) AS result&lt;br /&gt;FROM information_schema.columns WHERE table_name = CONCAT(tabelnaamostr,&#39;_JN&#39;) AND TABLE_Schema = tabelschemastr ;&lt;br /&gt;-- 4. variable om tijdelijk de max ID bij te houden&lt;br /&gt;SET @MaxID := 0;&lt;br /&gt;-- 5. we stoppen de max id er in.&lt;br /&gt;SELECT @MaxID := MAX(ID) FROM TMPJN;&lt;br /&gt;-- 6. we gaan de laaste waarde de , er uit halen want die hoeft daar niet te staan. (anders sintax fout)&lt;br /&gt;UPDATE TMPJN SET stringval = REPLACE(stringval,&#39;,&#39;,&#39;)&#39;) WHERE id = @MaxID;   &lt;br /&gt;INSERT INTO TMPJN (stringval) VALUES (&#39;VALUES(&#39;);&lt;br /&gt;INSERT INTO TMPJN (stringval)&lt;br /&gt;SELECT CONCAT(&#39;new.&#39;,column_name,&#39;,&#39;) AS result&lt;br /&gt;FROM information_schema.columns WHERE table_name = CONCAT(tabelnaamostr,&#39;_JN&#39;) AND TABLE_Schema = tabelschemastr AND  column_name NOT IN (&#39;RowAction&#39;,&#39;Tijdstip&#39;);&lt;br /&gt;INSERT INTO TMPJN (stringval) VALUES (&#39;\&#39;U\&#39;,&#39;);&lt;br /&gt;INSERT INTO TMPJN (stringval) VALUES (&#39;NOW());&#39;);&lt;br /&gt;INSERT INTO TMPJN (stringval) VALUES (&#39;END;&#39;);&lt;br /&gt;INSERT INTO TMPJN (stringval) VALUES (&#39;$$&#39;);&lt;br /&gt;-- ************************************************************************************************************************&lt;br /&gt;-- *                                                DELETE Trigger                                                        *&lt;br /&gt;-- ************************************************************************************************************************&lt;br /&gt;INSERT INTO TMPJN (stringval) VALUES (&#39;--&#39;);&lt;br /&gt;INSERT INTO TMPJN (stringval) VALUES (&#39;--&#39;);&lt;br /&gt;INSERT INTO TMPJN (stringval) VALUES (CONCAT(&#39;-- We maken een Delete trigger aan voor tabel &#39;,tabelnaamostr ,&#39; in tabelschema &#39;,tabelschemastr));&lt;br /&gt;INSERT INTO TMPJN (stringval) VALUES (CONCAT(&#39;DROP TRIGGER IF EXISTS TR_&#39;,tabelnaamostr,&#39;_Delete $$&#39;));&lt;br /&gt;INSERT INTO TMPJN (stringval) VALUES (CONCAT(&#39;CREATE TRIGGER TR_&#39;,tabelnaamostr,&#39;_Delete AFTER Delete ON &#39;, tabelnaamostr));&lt;br /&gt;INSERT INTO TMPJN (stringval) VALUES (&#39;FOR EACH ROW BEGIN&#39;);&lt;br /&gt;INSERT INTO TMPJN (stringval) VALUES (CONCAT(&#39;INSERT INTO &#39;,tabelnaamostr,&#39;_JN(&#39;));&lt;br /&gt;INSERT INTO TMPJN (stringval)&lt;br /&gt;SELECT CONCAT(column_name,&#39;,&#39;) AS result&lt;br /&gt;FROM information_schema.columns WHERE table_name = CONCAT(tabelnaamostr,&#39;_JN&#39;) AND TABLE_Schema = tabelschemastr ;&lt;br /&gt;-- 4. variable om tijdelijk de max ID bij te houden&lt;br /&gt;SET @MaxID := 0;&lt;br /&gt;-- 5. we stoppen de max id er in.&lt;br /&gt;SELECT @MaxID := MAX(ID) FROM TMPJN;&lt;br /&gt;-- 6. we gaan de laaste waarde de , er uit halen want die hoeft daar niet te staan. (anders sintax fout)&lt;br /&gt;UPDATE TMPJN SET stringval = REPLACE(stringval,&#39;,&#39;,&#39;)&#39;) WHERE id = @MaxID;   &lt;br /&gt;INSERT INTO TMPJN (stringval) VALUES (&#39;VALUES(&#39;);&lt;br /&gt;INSERT INTO TMPJN (stringval)&lt;br /&gt;SELECT CONCAT(&#39;OLD.&#39;,column_name,&#39;,&#39;) AS result&lt;br /&gt;FROM information_schema.columns WHERE table_name = CONCAT(tabelnaamostr,&#39;_JN&#39;) AND TABLE_Schema = tabelschemastr AND  column_name NOT IN (&#39;RowAction&#39;,&#39;Tijdstip&#39;);&lt;br /&gt;INSERT INTO TMPJN (stringval) VALUES (&#39;\&#39;D\&#39;,&#39;);&lt;br /&gt;INSERT INTO TMPJN (stringval) VALUES (&#39;NOW());&#39;);&lt;br /&gt;INSERT INTO TMPJN (stringval) VALUES (&#39;END;&#39;);&lt;br /&gt;INSERT INTO TMPJN (stringval) VALUES (&#39;$$&#39;);&lt;br /&gt;-- Vaste scriptlijn toevoegen&lt;br /&gt;INSERT INTO TMPJN (stringval) VALUES (&#39;DELIMITER ;&#39;);&lt;br /&gt;-- weg schrijven van de gegevens&lt;br /&gt;SELECT stringval FROM TMPJN INTO OUTFILE &#39;\\\\\192.168.0.13\\Divers\\CreateJNTriggers.sql&#39;;&lt;br /&gt;-- Tot slot deleten we de tmp tabel&lt;br /&gt;DROP TEMPORARY TABLE TMPJN;&lt;br /&gt;END$$&lt;br /&gt;&lt;br /&gt;DELIMITER ;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&amp;#160;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;After that you can call SP like this:&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;CALL CreateJNTable(&#39;TABLENAME&#39;,&#39;YOUR TABLESCHEMA&#39;); &lt;br /&gt;  &lt;br /&gt;CALL CreateJNTriggers(&#39;TABLENAME&#39;,&#39;YOUR TABLESCHEMA&#39;);&lt;/p&gt;  </description><link>http://krisnobels.blogspot.com/2010/07/create-journaling-on-table-for-mysql.html</link><author>noreply@blogger.com (Kris Nobels)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7856027517574400977.post-2291289026194183210</guid><pubDate>Tue, 29 Jun 2010 20:25:00 +0000</pubDate><atom:updated>2010-07-11T10:16:39.759+02:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">mysql</category><category domain="http://www.blogger.com/atom/ns#">SQL</category><title>Write Mysql output to file</title><description>&lt;p&gt;This is what i use to write the SQL output to a filedrive:&lt;/p&gt;  &lt;p&gt;SELECT 1 FROM DUAL INTO OUTFILE &#39;\\\\\192.168.0.13\\Divers\\demo.sql&#39;;&lt;/p&gt;  &lt;p&gt;Note: you can write only once like this, otherwise you get message that the file exists. :-)&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;This example shows how to create dynamic name:&lt;/p&gt;  &lt;p&gt;CREATE PROCEDURE export_dynamic(IN file_name CHAR(64))    &lt;br /&gt;BEGIN     &lt;br /&gt;SET @myvar = CONCAT(&#39;SELECT * INTO OUTFILE &#39;,&amp;quot;&#39;&amp;quot;,file_name,&amp;quot;&#39;&amp;quot;,&#39; FROM Table1&#39;) ;     &lt;br /&gt;PREPARE stmt1 FROM @myvar;     &lt;br /&gt;EXECUTE stmt1;     &lt;br /&gt;DEALLOCATE PREPARE stmt1;     &lt;br /&gt;END;&lt;/p&gt;  </description><link>http://krisnobels.blogspot.com/2010/06/write-mysql-output-to-file.html</link><author>noreply@blogger.com (Kris Nobels)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7856027517574400977.post-5176411676448068997</guid><pubDate>Tue, 22 Jun 2010 07:13:00 +0000</pubDate><atom:updated>2010-06-22T09:13:46.700+02:00</atom:updated><title>New RSS Feed URL</title><description>I use feedburner now as RSS feed URL.&lt;br /&gt;&lt;br /&gt;Please use this RSS feed url:&lt;br /&gt;&lt;a href=&quot;http://feeds2.feedburner.com/KrisNobels&quot;&gt;&lt;span style=&quot;font-weight: bold; &quot;&gt;&lt;br /&gt;http://feeds2.feedburner.com/KrisNobels&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Thanks</description><link>http://krisnobels.blogspot.com/2010/06/new-rss-feed-url.html</link><author>noreply@blogger.com (Kris Nobels)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7856027517574400977.post-7821870834996134224</guid><pubDate>Tue, 22 Jun 2010 07:03:00 +0000</pubDate><atom:updated>2011-02-27T00:08:20.579+01:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Tips and Tricks</category><category domain="http://www.blogger.com/atom/ns#">Tools</category><category domain="http://www.blogger.com/atom/ns#">VisualStudio</category><title>Customize Setup wizard with your Company Logo</title><description>&lt;ol&gt;   &lt;li&gt;Download Windows Installer SDK. &lt;/li&gt;    &lt;li&gt;In it you will find a Orca.msi. install it. &lt;/li&gt;    &lt;li&gt;With explorer browse to &lt;em&gt;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Tools\Deployment\VsdDialogs&lt;/em&gt;. &lt;/li&gt;    &lt;li&gt;There you will find a subfolder for most cultures. &lt;/li&gt;    &lt;li&gt;Go to the culture subfolder you&#39;re using. &lt;/li&gt;    &lt;li&gt;Open VsdUserInterface.wim with Orca.  (or &lt;a href=&quot;http://www.technipages.com/wp-content/uploads/2007/11/orca.Msi&quot;&gt;download here&lt;/a&gt;)&lt;br /&gt;&lt;/li&gt;    &lt;li&gt;In the binary table you&#39;ll find a row with name DefBannerBitmap. &lt;/li&gt;    &lt;li&gt;Double click [Binary Data] to select your own banner image file (jpg or bmp, not gif). It has to have a width of 500 pixels and a height of 70 pixels. &lt;/li&gt;    &lt;li&gt;Store the VsdUserInterface.wim. &lt;/li&gt;    &lt;li&gt;Build the setup projects again with having the BannerBitmap property refering to Default.&lt;/li&gt; &lt;/ol&gt;</description><link>http://krisnobels.blogspot.com/2010/06/customize-setup-wizard-with-your.html</link><author>noreply@blogger.com (Kris Nobels)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7856027517574400977.post-4774149103776438870</guid><pubDate>Sun, 25 Jan 2009 10:07:00 +0000</pubDate><atom:updated>2009-01-25T12:04:42.494+01:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">ASP.NET</category><category domain="http://www.blogger.com/atom/ns#">Javascript</category><category domain="http://www.blogger.com/atom/ns#">Tips and Tricks</category><title>Change dot &amp;quot;.&amp;quot; to Comma &amp;quot;,&amp;quot; with javascript</title><description>&lt;p&gt;Here is the syntax to change your dot to comma.    &lt;br /&gt;Very handy because your hand stays in the nummeric area of your keyboard.    &lt;/p&gt;  &lt;div class=&quot;wlWriterSmartContent&quot; id=&quot;scid:F2210F5F-69EB-4d4c-AFF7-B8A050E9CC72:255ed370-b8df-42bc-b2c2-1b2a19ee1f66&quot; style=&quot;padding-right: 0px; display: inline; padding-left: 0px; float: none; padding-bottom: 0px; margin: 0px; padding-top: 0px&quot;&gt;&lt;pre  style=&quot;width:100%;;&quot;&gt;&lt;div&gt;&lt;!--&lt;br /&gt;&lt;br /&gt;Code highlighting produced by Actipro CodeHighlighter (freeware)&lt;br /&gt;http://www.CodeHighlighter.com/&lt;br /&gt;&lt;br /&gt;--&gt;&lt;span style=&quot;color: #0000FF;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000;&quot;&gt;html&lt;/span&gt;&lt;span style=&quot;color: #0000FF;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000FF;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000;&quot;&gt;head&lt;/span&gt;&lt;span style=&quot;color: #0000FF;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000FF;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000;&quot;&gt;script &lt;/span&gt;&lt;span style=&quot;color: #FF0000;&quot;&gt;type&lt;/span&gt;&lt;span style=&quot;color: #0000FF;&quot;&gt;=&amp;quot;text/javascript&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000FF;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: #F5F5F5; color: #000000;&quot;&gt;&lt;br /&gt;   &lt;/span&gt;&lt;span style=&quot;background-color: #F5F5F5; color: #0000FF;&quot;&gt;function&lt;/span&gt;&lt;span style=&quot;background-color: #F5F5F5; color: #000000;&quot;&gt; DotToComma(that) {&lt;br /&gt;        &lt;/span&gt;&lt;span style=&quot;background-color: #F5F5F5; color: #0000FF;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;background-color: #F5F5F5; color: #000000;&quot;&gt; (that.value.indexOf(&lt;/span&gt;&lt;span style=&quot;background-color: #F5F5F5; color: #000000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;background-color: #F5F5F5; color: #000000;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #F5F5F5; color: #000000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;background-color: #F5F5F5; color: #000000;&quot;&gt;) &lt;/span&gt;&lt;span style=&quot;background-color: #F5F5F5; color: #000000;&quot;&gt;&amp;gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #F5F5F5; color: #000000;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #F5F5F5; color: #000000;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;background-color: #F5F5F5; color: #000000;&quot;&gt;) {&lt;br /&gt;            that.value &lt;/span&gt;&lt;span style=&quot;background-color: #F5F5F5; color: #000000;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: #F5F5F5; color: #000000;&quot;&gt; that.value.replace(&lt;/span&gt;&lt;span style=&quot;background-color: #F5F5F5; color: #000000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;background-color: #F5F5F5; color: #000000;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background-color: #F5F5F5; color: #000000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;background-color: #F5F5F5; color: #000000;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #F5F5F5; color: #000000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;background-color: #F5F5F5; color: #000000;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;background-color: #F5F5F5; color: #000000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;background-color: #F5F5F5; color: #000000;&quot;&gt;);&lt;br /&gt;        }&lt;br /&gt;   }&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000FF;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000;&quot;&gt;script&lt;/span&gt;&lt;span style=&quot;color: #0000FF;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000FF;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000;&quot;&gt;head&lt;/span&gt;&lt;span style=&quot;color: #0000FF;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000FF;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000;&quot;&gt;body&lt;/span&gt;&lt;span style=&quot;color: #0000FF;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000FF;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000;&quot;&gt;input &lt;/span&gt;&lt;span style=&quot;color: #FF0000;&quot;&gt;type&lt;/span&gt;&lt;span style=&quot;color: #0000FF;&quot;&gt;=&amp;quot;text&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #FF0000;&quot;&gt; name&lt;/span&gt;&lt;span style=&quot;color: #0000FF;&quot;&gt;=&amp;quot;txt&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #FF0000;&quot;&gt; onkeyup&lt;/span&gt;&lt;span style=&quot;color: #0000FF;&quot;&gt;=&amp;quot;DotToComma(this);&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000FF;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000FF;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000;&quot;&gt;body&lt;/span&gt;&lt;span style=&quot;color: #0000FF;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000FF;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #800000;&quot;&gt;html&lt;/span&gt;&lt;span style=&quot;color: #0000FF;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;On a .ASPX page you would have something inside like this: &lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;wlWriterSmartContent&quot; id=&quot;scid:F2210F5F-69EB-4d4c-AFF7-B8A050E9CC72:0c53957d-88b9-4c02-a10e-60dd71691b5f&quot; style=&quot;padding-right: 0px; display: inline; padding-left: 0px; float: none; padding-bottom: 0px; margin: 0px; width: 490px; padding-top: 0px&quot;&gt;&lt;pre  style=&quot;width:100%;;&quot;&gt;&lt;div&gt;&lt;!--&lt;br /&gt;&lt;br /&gt;Code highlighting produced by Actipro CodeHighlighter (freeware)&lt;br /&gt;http://www.CodeHighlighter.com/&lt;br /&gt;&lt;br /&gt;--&gt;&lt;span style=&quot;color: #0000FF;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #800000;&quot;&gt;asp:textbox &lt;/span&gt;&lt;span style=&quot;color: #FF0000;&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: #0000FF;&quot;&gt;=&amp;quot;TextBox1&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #FF0000;&quot;&gt; runat&lt;/span&gt;&lt;span style=&quot;color: #0000FF;&quot;&gt;=&amp;quot;server&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #FF0000;&quot;&gt; text&lt;/span&gt;&lt;span style=&quot;color: #0000FF;&quot;&gt;=&amp;quot;Sample Text&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #FF0000;&quot;&gt; &lt;br /&gt;  onkeyup&lt;/span&gt;&lt;span style=&quot;color: #0000FF;&quot;&gt;=&amp;quot;DotToComma(this);&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #FF0000;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #0000FF;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/pre&gt;&lt;/div&gt;  </description><link>http://krisnobels.blogspot.com/2009/01/change-dot-to-comma-with-javascript.html</link><author>noreply@blogger.com (Kris Nobels)</author><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7856027517574400977.post-3261570846442166059</guid><pubDate>Wed, 09 Jul 2008 12:13:00 +0000</pubDate><atom:updated>2009-01-25T12:07:43.835+01:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">ASP.NET</category><category domain="http://www.blogger.com/atom/ns#">Excel</category><category domain="http://www.blogger.com/atom/ns#">Tips and Tricks</category><title>Export Gridview to Excel with ASP.NET (workaround)</title><description>&lt;p&gt;Today I had to create a grid in ASP.Net. But i had this problem when i created the export to Excel:    &lt;br /&gt;&lt;strong&gt;&lt;em&gt;&#39;GridView&#39; must be placed inside a form tag with runat=server&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;My gridview was inside the form ???&lt;/p&gt;  &lt;p&gt;So this is the workaround i found:&lt;/p&gt;  &lt;p&gt;This is the normal function for the export to Excel:&lt;/p&gt;   &lt;div class=&quot;wlWriterSmartContent&quot; id=&quot;scid:F2210F5F-69EB-4d4c-AFF7-B8A050E9CC72:2dc705d2-5580-47bc-ba28-07ae078b184a&quot; style=&quot;padding-right: 0px; display: inline; padding-left: 0px; float: none; padding-bottom: 0px; margin: 0px; padding-top: 0px&quot;&gt;&lt;pre  style=&quot;width:100%;;&quot;&gt;&lt;div&gt;&lt;!--&lt;br /&gt;&lt;br /&gt;Code highlighting produced by Actipro CodeHighlighter (freeware)&lt;br /&gt;http://www.CodeHighlighter.com/&lt;br /&gt;&lt;br /&gt;--&gt;&lt;span style=&quot;color: #000000;&quot;&gt;Response.Clear();&lt;br /&gt;Response.AddHeader(&lt;/span&gt;&lt;span style=&quot;color: #800000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #800000;&quot;&gt;content-disposition&lt;/span&gt;&lt;span style=&quot;color: #800000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #800000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #800000;&quot;&gt;attachment;filename=filename.xls&lt;/span&gt;&lt;span style=&quot;color: #800000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;);&lt;br /&gt;Response.Charset &lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #800000;&quot;&gt;&amp;quot;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;br /&gt;Response.Cache.SetCacheability(HttpCacheability.NoCache);&lt;br /&gt;Response.ContentType &lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #800000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #800000;&quot;&gt;application/vnd.xls&lt;/span&gt;&lt;span style=&quot;color: #800000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;br /&gt;System.IO.StringWriter stringWrite &lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #0000FF;&quot;&gt;new&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; System.IO.StringWriter();&lt;br /&gt;System.Web.UI.HtmlTextWriter htmlWrite &lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #0000FF;&quot;&gt;new&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; HtmlTextWriter(stringWrite);&lt;br /&gt;GridView1.RenderControl(htmlWrite);&lt;br /&gt;Response.Write(stringWrite.ToString());&lt;br /&gt;Response.End();&lt;/span&gt;&lt;/div&gt;&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;wlWriterSmartContent&quot; id=&quot;scid:F2210F5F-69EB-4d4c-AFF7-B8A050E9CC72:5a479da3-15ac-4268-bf78-67f427320b11&quot; style=&quot;padding-right: 0px; display: inline; padding-left: 0px; float: none; padding-bottom: 0px; margin: 0px; padding-top: 0px&quot;&gt;&lt;pre  style=&quot;width:100%;;&quot;&gt;&lt;div&gt;&lt;!--&lt;br /&gt;&lt;br /&gt;Code highlighting produced by Actipro CodeHighlighter (freeware)&lt;br /&gt;http://www.CodeHighlighter.com/&lt;br /&gt;&lt;br /&gt;--&gt;&lt;span style=&quot;color: #008000;&quot;&gt;/*&lt;/span&gt;&lt;span style=&quot;color: #008000;&quot;&gt; Confirms that an HtmlForm control is rendered for the specified ASP.NET server control at run time. &lt;/span&gt;&lt;span style=&quot;color: #008000;&quot;&gt;*/&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000FF;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #0000FF;&quot;&gt;override&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #0000FF;&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; VerifyRenderingInServerForm(Control control){}&lt;/span&gt;&lt;/div&gt;&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Just insert this inside your code behind: &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;More info you can find &lt;a href=&quot;https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=118285&quot; target=&quot;_blank&quot;&gt;here&lt;/a&gt; @ microsoft (Microsoft has accepted it as bug)   </description><link>http://krisnobels.blogspot.com/2008/07/export-to-excel-with-aspnet-workaround.html</link><author>noreply@blogger.com (Kris Nobels)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7856027517574400977.post-7889254463596589485</guid><pubDate>Sat, 22 Mar 2008 08:21:00 +0000</pubDate><atom:updated>2009-11-26T09:19:21.113+01:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Tips and Tricks</category><category domain="http://www.blogger.com/atom/ns#">Tools</category><title>List of software to install on Clean OS</title><description>&lt;p&gt;&lt;strong&gt;&lt;u&gt;List of default items to Install:&lt;/u&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;&lt;a href=&quot;http://notepad-plus.sourceforge.net/nl/site.htm&quot; target=&quot;_blank&quot;&gt;Notepad++&lt;/a&gt; &lt;/li&gt;    &lt;li&gt;&lt;a href=&quot;http://www.microsoft.com/silverlight/resources/install.aspx&quot; target=&quot;_blank&quot;&gt;&lt;span id=&quot;ctl00_MainContent_VersionOfLatestInstalledLabel&quot;&gt;Silverlight 2 RTW (2.0.31005.0)&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;    &lt;li&gt;&lt;a href=&quot;http://www.microsoft.com/downloads/details.aspx?FamilyID=ca9d90fa-e8c9-42e3-aa19-08e2c027f5d6&amp;amp;displaylang=en&quot; target=&quot;_blank&quot;&gt;ASP.NET AJAX 1.0&lt;/a&gt; &lt;/li&gt;    &lt;li&gt;&lt;a href=&quot;http://www.adobe.com/shockwave/download/index.cgi?Lang=Dutch&amp;amp;P1_Prod_Version=ShockwaveFlash&quot;&gt;Flash player&lt;/a&gt; &lt;/li&gt;    &lt;li&gt;Dot Net framework (comes with Microsoft update 2)      &lt;ul&gt;       &lt;li&gt;&lt;a href=&quot;http://www.microsoft.com/downloads/details.aspx?familyid=d7158dee-a83f-4e21-b05a-009d06457787&amp;amp;displaylang=en&quot;&gt;Version 1.0&lt;/a&gt; (&lt;a href=&quot;http://www.microsoft.com/downloads/details.aspx?familyid=6978d761-4a92-4106-a9bc-83e78d4abc5b&amp;amp;displaylang=en&quot;&gt;SP3&lt;/a&gt;) &lt;/li&gt;        &lt;li&gt;&lt;a href=&quot;http://www.microsoft.com/downloads/details.aspx?familyid=262D25E3-F589-4842-8157-034D1E7CF3A3&amp;amp;displaylang=en&quot;&gt;Version 1.1&lt;/a&gt; (&lt;a href=&quot;http://www.microsoft.com/downloads/details.aspx?familyid=A8F5654F-088E-40B2-BBDB-A83353618B38&amp;amp;displaylang=en&quot;&gt;SP1&lt;/a&gt;) &lt;/li&gt;        &lt;li&gt;&lt;a href=&quot;http://www.microsoft.com/downloads/details.aspx?FamilyID=0856EACB-4362-4B0D-8EDD-AAB15C5E04F5&amp;amp;displaylang=en&quot;&gt;Version 2.0&lt;/a&gt; x86 (&lt;a href=&quot;http://www.microsoft.com/downloads/details.aspx?familyid=79BC3B77-E02C-4AD3-AACF-A7633F706BA5&amp;amp;displaylang=en&quot;&gt;SP1&lt;/a&gt; x86) &lt;/li&gt;        &lt;li&gt;&lt;a href=&quot;http://www.microsoft.com/downloads/details.aspx?familyid=10CC340B-F857-4A14-83F5-25634C3BF043&amp;amp;displaylang=en&quot;&gt;Version 3.0&lt;/a&gt; (&lt;a href=&quot;http://www.microsoft.com/downloads/details.aspx?familyid=EC2CA85D-B255-4425-9E65-1E88A0BDB72A&amp;amp;displaylang=en&quot;&gt;SP1&lt;/a&gt;) &lt;/li&gt;        &lt;li&gt;&lt;a href=&quot;http://www.microsoft.com/downloads/details.aspx?familyid=333325FD-AE52-4E35-B531-508D977D32A6&amp;amp;displaylang=en&quot;&gt;Version 3.5&lt;/a&gt; &lt;/li&gt;     &lt;/ul&gt;   &lt;/li&gt;    &lt;li&gt;&lt;a href=&quot;http://www.mozilla-europe.org/&quot; target=&quot;_blank&quot;&gt;Firefox&lt;/a&gt; Browser &lt;br /&gt;Addons for Firefox:       &lt;ul&gt;       &lt;li&gt;&lt;a href=&quot;https://addons.mozilla.org/nl/firefox/addon/1419&quot; target=&quot;_blank&quot;&gt;IE Tab&lt;/a&gt; &lt;/li&gt;        &lt;li&gt;&lt;a href=&quot;http://www.customizegoogle.com/&quot; target=&quot;_blank&quot;&gt;Customize google&lt;/a&gt; (Enhance Google search results, Remove advertizing, ...) &lt;/li&gt;        &lt;li&gt;&lt;a href=&quot;https://addons.mozilla.org/en-US/firefox/addon/3615&quot; target=&quot;_blank&quot;&gt;Del.ico.us bookmarks&lt;/a&gt; (Access and manage your bookmarks wherever you are) &lt;/li&gt;        &lt;li&gt;&lt;a href=&quot;https://addons.mozilla.org/en-US/firefox/addon/26&quot; target=&quot;_blank&quot;&gt;Download Statusbar&lt;/a&gt; (View and manage downloads from a tidy statusbar - without the download window getting in the way of your web browsing.) &lt;/li&gt;        &lt;li&gt;&lt;a href=&quot;https://addons.mozilla.org/en-US/firefox/addon/3102&quot; target=&quot;_blank&quot;&gt;Email This!&lt;/a&gt; (Send URL in 1 click) &lt;/li&gt;        &lt;li&gt;&lt;a href=&quot;https://addons.mozilla.org/en-US/firefox/addon/748&quot; target=&quot;_blank&quot;&gt;Greasemonkey&lt;/a&gt; (Allows you to customize the way a webpage displays using small bits of JavaScript.)&lt;br /&gt;Userscripts for Greasmonkey&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ol&gt;&lt;li&gt;&lt;a href=&quot;http://userscripts.org/scripts/show/9310&quot;&gt;GoogleMonkeyR&lt;br /&gt;&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://userscripts.org/scripts/show/9132&quot;&gt;Live Hotmail Companion&lt;/a&gt; (remove advertise on top)&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;https://addons.mozilla.org/nl/firefox/addon/8352&quot;&gt;GreaseFire&lt;/a&gt; Automatically find Greasemonkey scripts on Userscripts.org (requires Greasemonkey) &lt;/li&gt;        &lt;li&gt;&lt;a href=&quot;http://www.google.com/notebook/download&quot; target=&quot;_blank&quot;&gt;Google Kladblok&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://addons.mozilla.org/nl/firefox/addons/policy/0/7595/48937&quot;&gt;Access Me&lt;/a&gt; (Access vulnerabilities in an application can allow an attacker to access resources without being authenticated.)&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://addons.mozilla.org/nl/firefox/addons/policy/0/7597/38927&quot;&gt;SQL Inject Me&lt;/a&gt; (SQL Injection vulnerabilites can cause a lot of damage to a web application.)&lt;br /&gt;&lt;/li&gt;     &lt;/ul&gt;   &lt;/li&gt;    &lt;li&gt;&lt;a href=&quot;http://ccollomb.free.fr/unlocker/#download&quot; target=&quot;_blank&quot;&gt;Unlocker&lt;/a&gt; (Unlock locked files) very handy ! &lt;/li&gt;    &lt;li&gt;&lt;a href=&quot;http://www.ntwind.com/software/winsnap/download.html&quot; target=&quot;_blank&quot;&gt;Winsnap&lt;/a&gt; (Utility for taking and editing screenshots &lt;strong&gt;NOT Free anymore&lt;/strong&gt;) &lt;/li&gt;    &lt;li&gt;&lt;a href=&quot;http://www.google.com/talk/intl/nl/&quot;&gt;Google Talk&lt;/a&gt; (Chat tool) &lt;/li&gt;    &lt;li&gt;&lt;a href=&quot;http://get.live.com/messenger/overview&quot;&gt;MSN Messenger&lt;/a&gt; (Chat tool) + &lt;a href=&quot;http://www.mess.be/&quot;&gt;Mess Messenger&lt;/a&gt; (Remove advertising, ... Tweak tool) &lt;/li&gt;    &lt;li&gt;&lt;a href=&quot;http://www.win-rar.com/download.html&quot;&gt;Winrar&lt;/a&gt; (Compress and decompress tool) &lt;/li&gt;    &lt;li&gt;&lt;a href=&quot;http://www.getpaint.net/download.html&quot;&gt;Paint.net&lt;/a&gt; &lt;/li&gt;    &lt;li&gt;&lt;a href=&quot;http://www.adobe.com/nl/products/acrobat/readstep2.html&quot;&gt;Adobe Pdf reader&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://stefan.bertels.org/en/clipboardpath&quot;&gt;Copy path to clipboard&lt;/a&gt;&lt;br /&gt;&lt;/li&gt;    &lt;li&gt;&lt;a href=&quot;http://disk-tools.com/download/daemon+sptd+md5sum&quot;&gt;Deamon Tools&lt;/a&gt; (DAEMON Tools enabling you to use your CD/DVD images as if they were already burned to CD/DVD.) &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&lt;strong&gt;&lt;u&gt;List of Software you need as .NET developer:&lt;/u&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;&lt;a href=&quot;http://msdn2.microsoft.com/en-us/express/bb410792.aspx&quot; target=&quot;_blank&quot;&gt;SQL Server 2005 Express Edition SP2&lt;/a&gt;  (Database) &lt;/li&gt;    &lt;li&gt;&lt;a href=&quot;http://subversion.tigris.org/project_packages.html&quot;&gt;Subversion&lt;/a&gt; (Version control system) &lt;/li&gt;    &lt;li&gt;&lt;a href=&quot;http://tortoisesvn.net/downloads&quot; target=&quot;_blank&quot;&gt;TortoiseSVN&lt;/a&gt; (easy to use Revision control / version control / source control software for Windows. It is based on.) &lt;/li&gt;    &lt;li&gt;&lt;a href=&quot;http://www.aisto.com/roeder/dotnet/&quot; target=&quot;_blank&quot;&gt;Reflector&lt;/a&gt; (Reflector is the class browser, explorer, analyzer and documentation viewer for .NET) &lt;/li&gt;    &lt;li&gt;&lt;a href=&quot;http://www.visualstudiogallery.com/ExtensionDetails.aspx?ExtensionId=df3f0c30-3d37-4e06-9ef8-3bff3508be31&quot;&gt;Cool Commands&lt;/a&gt; for Visual Studio 2008 plugin or &lt;a href=&quot;http://geekswithblogs.net/SoftwareDoneRight/archive/2007/12/12/coolcommands-in-visual-studio-2008.aspx&quot;&gt;Coolcommands for Visual studio 2005&lt;/a&gt; &lt;/li&gt;    &lt;li&gt;&lt;a href=&quot;http://www.jetbrains.com/resharper/download/&quot; target=&quot;_blank&quot;&gt;Resharper&lt;/a&gt; (Visual Studio Add-In &lt;strong&gt;NOT Free&lt;/strong&gt;) &lt;/li&gt;    &lt;li&gt;&lt;a href=&quot;http://winmerge.org/&quot;&gt;Winmerge&lt;/a&gt; (Comparer for directorys or files) &lt;/li&gt;    &lt;li&gt;&lt;a href=&quot;http://technet.microsoft.com/en-us/sysinternals/bb896653.aspx&quot;&gt;Process Explorer&lt;/a&gt; (More advanced process explorer) &lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://llblgen.com&quot;&gt;LLBLGen Pro&lt;/a&gt; (ORM mapper)&lt;br /&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;a href=&quot;http://cs.rthand.com/files/folders/righthand_downloads/default.aspx?ppage=3&quot;&gt;&lt;span id=&quot;Title&quot; class=&quot;ItemTitle&quot;&gt;RightHand.DataSet.Visualizer&lt;br /&gt;&lt;/span&gt;&lt;/a&gt; Advanced quickwatch dataset vizualizer&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&lt;strong&gt;&lt;u&gt;List of software you need as web developer:&lt;/u&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;&lt;a href=&quot;http://www.iconico.com/colorpic/&quot;&gt;Colorpic&lt;/a&gt; (grab the color from 1 pixel) &lt;/li&gt;    &lt;li&gt;&lt;a href=&quot;http://www.fiddlertool.com/fiddler/&quot;&gt;Fiddler&lt;/a&gt; (Fiddler is a HTTP Debugging Proxy which logs all HTTP traffic between your computer and the Internet) &lt;/li&gt;    &lt;li&gt;Addons for Firefox:      &lt;ul&gt;       &lt;li&gt;&lt;a href=&quot;https://addons.mozilla.org/en-US/firefox/addon/60&quot; target=&quot;_blank&quot;&gt;Web Developer&lt;/a&gt; (Adds a menu and a toolbar in Firefox with various web developer tools.) &lt;/li&gt;        &lt;li&gt;&lt;a href=&quot;http://www.microsoft.com/downloads/details.aspx?familyid=E59C3964-672D-4511-BB3E-2D5E1DB91038&amp;amp;displaylang=en&quot;&gt;Internet Explorer Developer tool bar&lt;/a&gt; &lt;/li&gt;        &lt;li&gt;&lt;a href=&quot;https://addons.mozilla.org/nl/firefox/addon/1985&quot; target=&quot;_blank&quot;&gt;Window Resizer&lt;/a&gt; &lt;/li&gt;        &lt;li&gt;&lt;a href=&quot;https://addons.mozilla.org/nl/firefox/addon/1843&quot; target=&quot;_blank&quot;&gt;Firebug      &lt;br /&gt;&lt;/a&gt;&lt;/li&gt;        &lt;li&gt;&lt;a href=&quot;https://addons.mozilla.org/nl/firefox/addon/6622&quot; target=&quot;_blank&quot;&gt;DOM Inspector&lt;/a&gt; &lt;/li&gt;        &lt;li&gt;&lt;a href=&quot;https://addons.mozilla.org/nl/firefox/addon/539&quot; target=&quot;_blank&quot;&gt;MeasureIt&lt;/a&gt; (Draw out a ruler to get the pixel width and height of any elements on a webpage.) &lt;/li&gt;     &lt;/ul&gt;   &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&lt;u&gt;&lt;strong&gt;List of software that is handy:&lt;/strong&gt;&lt;/u&gt;&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;&lt;a href=&quot;http://www.microsoft.com/windows/products/winfamily/virtualpc/default.mspx&quot;&gt;Virtual PC&lt;/a&gt; (Run other OS in Virtual mode) &lt;/li&gt;    &lt;li&gt;&lt;a href=&quot;http://get.live.com/writer/overview&quot; target=&quot;_blank&quot;&gt;Windows Live Writer&lt;/a&gt; (Tool for writing blogposts) &lt;/li&gt;    &lt;li&gt;&lt;a href=&quot;http://www.mp3tag.de/en/&quot; target=&quot;_blank&quot;&gt;MP3TAG&lt;/a&gt; Edit your Metadata of common audio formats. Add Pciture, full song info, ... &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&lt;strong&gt;&lt;u&gt;List working with Silverlight:&lt;/u&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;&lt;a href=&quot;http://www.microsoft.com/downloads/details.aspx?familyid=FB7900DB-4380-4B0F-BB95-0BAEC714EE17&amp;amp;displaylang=en&quot; target=&quot;_blank&quot;&gt;Silverlight SDK 1.0&lt;/a&gt; &lt;/li&gt;    &lt;li&gt;&lt;a href=&quot;http://www.microsoft.com/downloads/details.aspx?familyid=54B85D84-604D-43DB-BCFE-7AFD278208D8&amp;amp;displaylang=en&quot; target=&quot;_blank&quot;&gt;Silverlight SDK 1.1&lt;/a&gt; &lt;/li&gt;    &lt;li&gt;&lt;a href=&quot;http://www.microsoft.com/downloads/details.aspx?FamilyId=4E03409A-77F3-413F-B108-1243C243C4FE&amp;amp;displaylang=en&quot; target=&quot;_blank&quot;&gt;Silverlight SDK 2.0&lt;/a&gt; &lt;/li&gt;        &lt;li&gt;&lt;a href=&quot;http://www.microsoft.com/downloads/details.aspx?familyid=50A9EC01-267B-4521-B7D7-C0DBA8866434&amp;amp;displaylang=en&quot;&gt;Microsoft Silverlight Tools for Visual Studio 2008 SP1&lt;/a&gt; (for Silverlight 2) &lt;/li&gt;    &lt;li&gt;&lt;a href=&quot;http://www.microsoft.com/downloads/details.aspx?familyid=EB9B5C48-BA2B-4C39-A1C3-135C60BBBE66&amp;amp;displaylang=en&quot; target=&quot;_blank&quot;&gt;Microsoft Expression Blend™ 2 Service Pack 1&lt;/a&gt; &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p style=&quot;font-weight: bold;&quot;&gt;&lt;strong&gt;&lt;u&gt;Handy Stuff you would like:&lt;/u&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;&lt;a href=&quot;http://www.istartedsomething.com/20061029/royale-noir/&quot;&gt;XP Royal Theme&lt;/a&gt; (nice theme for XP) &lt;/li&gt;    &lt;li&gt;&lt;a href=&quot;http://www.bulkrenameutility.co.uk/Main_Intro.php&quot; target=&quot;_blank&quot;&gt;Bulk rename tool&lt;/a&gt; (fast and very nice rename tool) &lt;/li&gt;    &lt;li&gt;&lt;a href=&quot;http://www.konradp.com/products/auto_shutdown/&quot; target=&quot;_blank&quot;&gt;Auto Shut down&lt;/a&gt; &lt;/li&gt;    &lt;li&gt;&lt;a href=&quot;http://technet.microsoft.com/nl-nl/sysinternals/bb897434%28en-us%29.aspx&quot; target=&quot;_blank&quot;&gt;Zoomit&lt;/a&gt; (nice zoom tool for presentations) &lt;/li&gt;    &lt;li&gt;&lt;a href=&quot;http://www.microsoft.com/windowsxp/downloads/powertoys/xppowertoys.mspx&quot; target=&quot;_blank&quot;&gt;Powertoys for Windows XP&lt;/a&gt; &lt;/li&gt;    &lt;li&gt;&lt;a href=&quot;http://www.visualtasktips.com/&quot; target=&quot;_blank&quot;&gt;Visual Task Tips&lt;/a&gt; (Show tiny screenshot) &lt;/li&gt;    &lt;li&gt;&lt;a href=&quot;http://get.live.com/nl-nl/writer/overview&quot; target=&quot;_blank&quot;&gt;Windows Live Writer&lt;/a&gt; (Blog tool)       &lt;ul&gt;       &lt;li&gt;&lt;a href=&quot;http://www.istaysharp.net/index.php?title=SyntaxColor4Writer&quot; target=&quot;_blank&quot;&gt;Syntax Highlighting plugin&lt;/a&gt; &lt;/li&gt;     &lt;/ul&gt;   &lt;/li&gt;    &lt;li&gt;&lt;a href=&quot;http://filezilla-project.org/&quot; target=&quot;_blank&quot;&gt;Filezilla&lt;/a&gt; (FTP tool) &lt;/li&gt;    &lt;li&gt;&lt;a href=&quot;http://www.codesector.com/teracopy.php&quot; target=&quot;_blank&quot;&gt;Terracopy&lt;/a&gt; (copy past tool where you can change the buffersize) &lt;/li&gt;    &lt;li&gt;&lt;a href=&quot;http://sourceforge.net/project/downloading.php?group_id=7420&amp;amp;use_mirror=surfnet&amp;amp;filename=DScaler5008.exe&amp;amp;62954526&quot; target=&quot;_blank&quot;&gt;DScaler Deinterlacer/Scaler&lt;/a&gt; (Play DVD&#39;s with Windows Real player) &lt;/li&gt;    &lt;li&gt;&lt;a href=&quot;http://www.microsoft.com/windows/windowsmedia/player/plugins.aspx&quot; target=&quot;_blank&quot;&gt;Media player plugins&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;If you have a handy ore better tool please let me now. :-)&lt;/p&gt;  &lt;p&gt;Kris Nobels&lt;/p&gt;  &lt;p&gt;-- = Last updated 19-03-2009 = --&lt;/p&gt;</description><link>http://krisnobels.blogspot.com/2008/03/list-of-free-software-to-install-on.html</link><author>noreply@blogger.com (Kris Nobels)</author><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7856027517574400977.post-8513848770159665515</guid><pubDate>Tue, 12 Feb 2008 10:33:00 +0000</pubDate><atom:updated>2009-01-25T12:10:44.438+01:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">MS SQL</category><category domain="http://www.blogger.com/atom/ns#">SQL</category><title>Handy stuff when you work with MS SQL Database</title><description>&lt;p&gt;&lt;u&gt;&lt;strong&gt;GENERAL REMARK:&lt;/strong&gt;       &lt;br /&gt;&lt;/u&gt;SQL SERVER IS IN MOST CASES INSTALLED CASE INSENSITIVE     &lt;br /&gt;IF INSTALLED CASE SENSITIVE USE UCASE(&#39;YOUR_VALUE&#39;)&lt;/p&gt;  &lt;hr /&gt;The select for finding all Stored (P) Procedures, (TR) Triggers, (V) Views, (FN) scalar functions, (TF) Table valued Functions, (IF) inline table valued functions, (RF) replication filter procedures and (R) rules where you use some specific text:   &lt;br /&gt;  &lt;div class=&quot;wlWriterSmartContent&quot; id=&quot;scid:F2210F5F-69EB-4d4c-AFF7-B8A050E9CC72:16b5c4fa-e581-4bb3-b5a3-bce78cc45b9b&quot; style=&quot;padding-right: 0px; display: inline; padding-left: 0px; float: none; padding-bottom: 0px; margin: 0px; width: 816px; padding-top: 0px&quot;&gt;&lt;pre  style=&quot;width:100%;background-color:#DDDDDD;&quot;&gt;&lt;div&gt;&lt;!--&lt;br /&gt;&lt;br /&gt;Code highlighting produced by Actipro CodeHighlighter (freeware)&lt;br /&gt;http://www.CodeHighlighter.com/&lt;br /&gt;&lt;br /&gt;--&gt;&lt;span style=&quot;color: #0000FF;&quot;&gt;SELECT&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #808080;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000FF;&quot;&gt;FROM&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; sys.sql_modules m &lt;/span&gt;&lt;span style=&quot;color: #0000FF;&quot;&gt;INNER&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #808080;&quot;&gt;JOIN&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&lt;br /&gt;sys.objects o &lt;/span&gt;&lt;span style=&quot;color: #0000FF;&quot;&gt;ON&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; m.&lt;/span&gt;&lt;span style=&quot;color: #FF00FF;&quot;&gt;object_id&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #808080;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; o.&lt;/span&gt;&lt;span style=&quot;color: #FF00FF;&quot;&gt;object_id&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000FF;&quot;&gt;WHERE&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; definition &lt;/span&gt;&lt;span style=&quot;color: #808080;&quot;&gt;LIKE&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #FF0000;&quot;&gt;&#39;&lt;/span&gt;&lt;span style=&quot;color: #FF0000;&quot;&gt;%YOUR_VALUE%&lt;/span&gt;&lt;span style=&quot;color: #FF0000;&quot;&gt;&#39;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;&lt;hr /&gt;Statement that returns all tables and views where column is used: &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;wlWriterSmartContent&quot; id=&quot;scid:F2210F5F-69EB-4d4c-AFF7-B8A050E9CC72:efc393a5-3a97-45cc-8342-06ba4390fb87&quot; style=&quot;padding-right: 0px; display: inline; padding-left: 0px; float: none; padding-bottom: 0px; margin: 0px; width: 816px; padding-top: 0px&quot;&gt;&lt;pre  style=&quot;width:100%;background-color:#DDDDDD;&quot;&gt;&lt;div&gt;&lt;!--&lt;br /&gt;&lt;br /&gt;Code highlighting produced by Actipro CodeHighlighter (freeware)&lt;br /&gt;http://www.CodeHighlighter.com/&lt;br /&gt;&lt;br /&gt;--&gt;&lt;span style=&quot;color: #0000FF;&quot;&gt;SELECT&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #808080;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000FF;&quot;&gt;FROM&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; INFORMATION_SCHEMA.COLUMNS&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000FF;&quot;&gt;WHERE&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; COLUMN_NAME &lt;/span&gt;&lt;span style=&quot;color: #808080;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #FF0000;&quot;&gt;&#39;&lt;/span&gt;&lt;span style=&quot;color: #FF0000;&quot;&gt;YOUR_VALUE&lt;/span&gt;&lt;span style=&quot;color: #FF0000;&quot;&gt;&#39;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;&lt;hr /&gt;Select statement for finding the indexes use on some Column name: &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;wlWriterSmartContent&quot; id=&quot;scid:F2210F5F-69EB-4d4c-AFF7-B8A050E9CC72:275b7b6c-08d3-438a-b4a7-d3c1a67a209b&quot; style=&quot;padding-right: 0px; display: inline; padding-left: 0px; float: none; padding-bottom: 0px; margin: 0px; width: 816px; padding-top: 0px&quot;&gt;&lt;pre  style=&quot;width:100%;background-color:#DDDDDD;&quot;&gt;&lt;div&gt;&lt;!--&lt;br /&gt;&lt;br /&gt;Code highlighting produced by Actipro CodeHighlighter (freeware)&lt;br /&gt;http://www.CodeHighlighter.com/&lt;br /&gt;&lt;br /&gt;--&gt;&lt;span style=&quot;color: #0000FF;&quot;&gt;SELECT&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #808080;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; &lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000FF;&quot;&gt;from&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; sys.index_columns ic &lt;/span&gt;&lt;span style=&quot;color: #0000FF;&quot;&gt;INNER&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #808080;&quot;&gt;JOIN&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&lt;br /&gt;sys.columns o &lt;/span&gt;&lt;span style=&quot;color: #0000FF;&quot;&gt;ON&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; ic.&lt;/span&gt;&lt;span style=&quot;color: #FF00FF;&quot;&gt;object_id&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #808080;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; o.&lt;/span&gt;&lt;span style=&quot;color: #FF00FF;&quot;&gt;object_id&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #808080;&quot;&gt;AND&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; ic.column_id &lt;/span&gt;&lt;span style=&quot;color: #808080;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; o.column_id &lt;/span&gt;&lt;span style=&quot;color: #0000FF;&quot;&gt;INNER&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #808080;&quot;&gt;JOIN&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&lt;br /&gt;sys.tables t &lt;/span&gt;&lt;span style=&quot;color: #0000FF;&quot;&gt;ON&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; ic.&lt;/span&gt;&lt;span style=&quot;color: #FF00FF;&quot;&gt;object_id&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #808080;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; t.&lt;/span&gt;&lt;span style=&quot;color: #FF00FF;&quot;&gt;object_id&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #0000FF;&quot;&gt;INNER&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #808080;&quot;&gt;JOIN&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&lt;br /&gt;sys.indexes i &lt;/span&gt;&lt;span style=&quot;color: #0000FF;&quot;&gt;ON&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; ic.&lt;/span&gt;&lt;span style=&quot;color: #FF00FF;&quot;&gt;object_id&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #808080;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; i.&lt;/span&gt;&lt;span style=&quot;color: #FF00FF;&quot;&gt;object_id&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #808080;&quot;&gt;AND&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; ic.index_id &lt;/span&gt;&lt;span style=&quot;color: #808080;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; i.index_id&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000FF;&quot;&gt;WHERE&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; o.name &lt;/span&gt;&lt;span style=&quot;color: #808080;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #FF0000;&quot;&gt;&#39;&lt;/span&gt;&lt;span style=&quot;color: #FF0000;&quot;&gt;YOUR_VALUE&lt;/span&gt;&lt;span style=&quot;color: #FF0000;&quot;&gt;&#39;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;&lt;hr /&gt; Select statement for finding constraints use on some column name: &lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;wlWriterSmartContent&quot; id=&quot;scid:F2210F5F-69EB-4d4c-AFF7-B8A050E9CC72:2d1d85aa-453a-47a6-b958-44a478e1004e&quot; style=&quot;padding-right: 0px; display: inline; padding-left: 0px; float: none; padding-bottom: 0px; margin: 0px; width: 816px; padding-top: 0px&quot;&gt;&lt;pre  style=&quot;width:100%;background-color:#DDDDDD;&quot;&gt;&lt;div&gt;&lt;!--&lt;br /&gt;&lt;br /&gt;Code highlighting produced by Actipro CodeHighlighter (freeware)&lt;br /&gt;http://www.CodeHighlighter.com/&lt;br /&gt;&lt;br /&gt;--&gt;&lt;span style=&quot;color: #0000FF;&quot;&gt;SELECT&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #808080;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; &lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000FF;&quot;&gt;FROM&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; INFORMATION_SCHEMA.CONSTRAINT_COLUMN_USAGE&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000FF;&quot;&gt;WHERE&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; COLUMN_NAME &lt;/span&gt;&lt;span style=&quot;color: #808080;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #FF0000;&quot;&gt;&#39;&lt;/span&gt;&lt;span style=&quot;color: #FF0000;&quot;&gt;YOUR_VALUE&lt;/span&gt;&lt;span style=&quot;color: #FF0000;&quot;&gt;&#39;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;&lt;hr /&gt;  </description><link>http://krisnobels.blogspot.com/2008/02/handy-stuff-when-you-work-with-ms-sql.html</link><author>noreply@blogger.com (Kris Nobels)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7856027517574400977.post-3949128796183822218</guid><pubDate>Mon, 11 Feb 2008 13:30:00 +0000</pubDate><atom:updated>2008-02-11T14:38:38.949+01:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">SQL</category><title>Handy stuff when you work with oracle Database</title><description>&lt;p&gt;When a database is so big and you do not now where to start, here are some helpfull selectstatements.&lt;/p&gt;  &lt;p&gt;Let oracle search it for you.&lt;/p&gt;  &lt;p&gt;&lt;u&gt;Here are some usefull Selects:&lt;/u&gt;&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;     &lt;p&gt;The select for finding all Stored Procedures where you use some specific text        &lt;br /&gt;&lt;strong&gt;&lt;em&gt;select * from all_source where Upper(text) like Upper(&#39;%YOUR_VALUE_TO_SEARCH%&#39;);&lt;/em&gt;&lt;/strong&gt;         &lt;br /&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;     &lt;p&gt;Select statement where you use the column name in a table        &lt;br /&gt;&lt;strong&gt;&lt;em&gt;select * from all_tab_columns where column_name = Upper(&#39;YOUR_VALUE_TO_SEARCH&#39;);&lt;/em&gt;&lt;/strong&gt;         &lt;br /&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;     &lt;p&gt;Selectstatement for finding the indexes use on some Column name        &lt;br /&gt;&lt;strong&gt;&lt;em&gt;select * from all_ind_columns where column_name = Upper(&#39;YOUR_VALUE&#39;);&lt;/em&gt;&lt;/strong&gt;         &lt;br /&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;     &lt;p&gt;Select statement for finding constraints use on some column name        &lt;br /&gt;&lt;strong&gt;&lt;em&gt;select * from all_cons_columns where column_name = Upper(&#39;YOUR_VALUE&#39;);&lt;/em&gt;&lt;/strong&gt;         &lt;br /&gt;&lt;/p&gt;   &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&lt;u&gt;Performace Tips:&lt;/u&gt;&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;     &lt;p&gt;Find the record count , the fastest way        &lt;br /&gt;&lt;em&gt;Select Count(&lt;strong&gt;0&lt;/strong&gt;) from TABLENAME;&lt;/em&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;     &lt;p&gt;Left join is slower against Inner join.&lt;/p&gt;   &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&lt;u&gt;Reason:&lt;/u&gt;     &lt;br /&gt;When you use * it uses a varchar, when you use a number is it faster. there is no cast form varchar to Integer&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;     &lt;p&gt;&lt;em&gt;Update TableName set Columname = 1 where CMD_ID in (Select CMD_ID from TableName)&lt;/em&gt;         &lt;br /&gt;the updatestatement above works but slow, use this instead:         &lt;br /&gt;&lt;strong&gt;Update TableName1 set Columname = 1          &lt;br /&gt;where exists (           &lt;br /&gt;Select 1 from TableName2           &lt;br /&gt;where TableName1.CMDID = TableName2.CMDID           &lt;br /&gt;)&lt;/strong&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;     &lt;p&gt;Write a select statement that works faster        &lt;br /&gt;&lt;strong&gt;&lt;em&gt;Select id, name, firstname, function            &lt;br /&gt;from functionlist FL             &lt;br /&gt;inner join person P on P.personid = FL.id             &lt;br /&gt;inner join functions F on F.functionid = FL.idfunction&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;     &lt;p&gt;If table contains something like        &lt;br /&gt;&lt;strong&gt;&lt;em&gt;Select 1 from TableName where rownum &amp;lt; 2&lt;/em&gt;&lt;/strong&gt;         &lt;br /&gt;The database stops searching when it finds the first item.&lt;/p&gt;   &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&lt;u&gt;&lt;strong&gt;Oracle Version&lt;/strong&gt;&lt;/u&gt;&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;&lt;em&gt;select * from v$version&lt;/em&gt; &lt;/li&gt;    &lt;li&gt;&lt;em&gt;select * from product_component_version;&lt;/em&gt; &lt;/li&gt; &lt;/ul&gt;  </description><link>http://krisnobels.blogspot.com/2008/02/handy-stuff-when-you-work-with-oracle.html</link><author>noreply@blogger.com (Kris Nobels)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7856027517574400977.post-4406700433272556572</guid><pubDate>Sun, 03 Feb 2008 21:53:00 +0000</pubDate><atom:updated>2008-02-14T23:04:17.299+01:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Tips and Tricks</category><category domain="http://www.blogger.com/atom/ns#">Vista</category><title>Customize or tweak your Vista</title><description>&lt;div style=&quot;font-size: 10px; color: black; font-family: verdana,arial,sans-serif&quot; align=&quot;left&quot;&gt;&lt;b&gt;&lt;u&gt;Here is an overview what i did when you install Vista.&lt;/u&gt;&lt;/b&gt; &lt;br&gt;&lt;br&gt;STEP 1 : Create partition --&amp;gt; Use &lt;a href=&quot;http://www.terabyteunlimited.com/bootit-next-generation.htm&quot;&gt;BootIt&lt;/a&gt; to create my partition and choose type NTFS (&lt;a href=&quot;http://www.hccmagazine.nl/index.cfm?fuseaction=home.showTotalCursus&amp;amp;id=51030&amp;amp;pagina=3&quot;&gt;walkthrough&lt;/a&gt; for using BootIt)&lt;br&gt;STEP 2 : Boot from Disk --&amp;gt; Easy, just put the DVD in boot drive and restart computer &lt;br&gt;STEP 3 : Disable UAC --&amp;gt; (you can do this in 4 ways) See this &lt;a title=&quot;disable UAC&quot; href=&quot;http://www.petri.co.il/disable_uac_in_windows_vista.htm&quot; target=&quot;&quot;&gt;post on how to disable UAC&lt;/a&gt;. &lt;br&gt;STEP 4 : Disable the Warning Icon (now that UAC is turned off) &lt;br&gt;&lt;/div&gt; &lt;div style=&quot;font-size: 10px; color: black; font-family: verdana,arial,sans-serif&quot; align=&quot;left&quot;&gt; &lt;ol&gt; &lt;li&gt;Right-click the Security Center icon in the notification tray, select Open Security Center. &lt;br&gt;&lt;br&gt;&lt;img height=&quot;333&quot; alt=&quot;&quot; src=&quot;http://www.softdistrict.com/wp-content/uploads/howtodisablesecuritycenterwarningsinvista_00.png&quot; width=&quot;249&quot; border=&quot;0&quot;&gt; &lt;br&gt; &lt;li&gt;In the Security Center window, click on the &quot;Change the way Security Center alerts me&quot; &lt;br&gt;&lt;br&gt;&lt;img style=&quot;width: 249px; height: 162px&quot; alt=&quot;&quot; src=&quot;http://www.softdistrict.com/wp-content/uploads/howtodisablesecuritycenterwarningsinvista_01.png&quot; border=&quot;0&quot;&gt; &lt;br&gt; &lt;li&gt;In the &quot;Do you want to be notified of security issues&quot; window click on &quot;Don&#39;t notify me and don&#39;t display the icon (not recommended)&quot;. &lt;br&gt;&lt;br&gt;&lt;img style=&quot;width: 248px; height: 172px&quot; alt=&quot;&quot; src=&quot;http://www.softdistrict.com/wp-content/uploads/howtodisablesecuritycenterwarningsinvista_02.png&quot; border=&quot;0&quot;&gt; &lt;/li&gt;&lt;/ol&gt;&lt;/div&gt; &lt;p&gt;STEP 5 : Install Anti-virus --&amp;gt; for example &lt;a href=&quot;http://www.avast.com/&quot; target=&quot;_blank&quot;&gt;Avast&lt;/a&gt; it&#39;s free :-) &lt;br&gt;STEP 6 (optional) : Startup without logging in. &lt;br&gt;When using the PC @ home, and it is difficult to login each time. You can open Start and enter in the Searchbox &quot;netplwiz&quot;. &lt;br&gt;You will see a window useraccounts. Select the box and it will be turned off. (confirm by entering 2 times your password to be sure) &lt;br&gt;&lt;br&gt;&lt;strong&gt;&lt;u&gt;Tip:&lt;/u&gt;&lt;/strong&gt; If you have a program that stops working in vista, you can run that program in XP mode. &lt;/p&gt;  </description><link>http://krisnobels.blogspot.com/2008/02/customize-or-tweak-your-vista.html</link><author>noreply@blogger.com (Kris Nobels)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7856027517574400977.post-9037782922522998246</guid><pubDate>Tue, 29 Jan 2008 07:50:00 +0000</pubDate><atom:updated>2008-01-29T10:26:41.856+01:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">SQL</category><title>Cleaning up transaction log from database</title><description>I had a problem with cleaning up logfiles from some database.&lt;br /&gt;But when the script does not work you have to search an other way.&lt;br /&gt;&lt;br /&gt;I found a solution to clean up the logfiles, &lt;span chatdir=&quot;1&quot;&gt;&lt;span chatindex=&quot;61&quot;&gt;it&#39;s not a neat one&lt;/span&gt;&lt;/span&gt; but it works.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Follow these 3 steps:&lt;/span&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Detach the database&lt;/li&gt;&lt;li&gt; rename the LDF&lt;/li&gt;&lt;li&gt; Attach again.&lt;br /&gt;It will alert you to the fact that there&#39;s no log file, and will create a fresh one for you.&lt;br /&gt;(The log file has shrunk from 1Gb to 700k)&lt;/li&gt;&lt;/ul&gt;</description><link>http://krisnobels.blogspot.com/2008/01/cleaning-up-transaction-log-from.html</link><author>noreply@blogger.com (Kris Nobels)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7856027517574400977.post-1469731228124978132</guid><pubDate>Thu, 22 Nov 2007 15:49:00 +0000</pubDate><atom:updated>2007-12-05T22:31:47.578+01:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">VisualStudio</category><title>Always show solution in Visual Studio</title><description>&lt;span style=&quot;font-family:verdana;&quot;&gt;I installed Visual Studio Team System on my laptop.&lt;/span&gt;  &lt;span style=&quot;font-family:verdana;&quot;&gt;When i have created a new Solution you see this in your Solution Explorer.&lt;/span&gt;  &lt;span style=&quot;font-family:verdana;&quot;&gt;On your Solution you can now add projects.&lt;/span&gt;  &lt;span style=&quot;font-family:verdana;&quot;&gt;What i did is click right on the solution in the solution explorer and select &quot;add new Project&quot;.&lt;/span&gt; &lt;span style=&quot;font-family:verdana;&quot;&gt;After the creation of the project you only see the project in the solution explorer.&lt;/span&gt; &lt;span style=&quot;font-family:verdana;&quot;&gt;To add a second project you can go to File -&gt; new project.&lt;/span&gt; &lt;span style=&quot;font-family:verdana;&quot;&gt;In that form you have to select &quot;add to solution&quot;  and your &quot;location of the project&quot;. (After that the solution is visible again.)&lt;/span&gt;  &lt;span style=&quot;font-family:verdana;&quot;&gt;&lt;br /&gt;But you can set view &quot;Always show solution&quot; on like this:&lt;/span&gt; &lt;ul style=&quot;font-family: verdana;&quot;&gt;&lt;li&gt;Select tools in menu&lt;/li&gt;&lt;li&gt;options&lt;/li&gt;&lt;li&gt;collapse tree structure and go to &quot;Projects and Solutions&quot;&lt;/li&gt;&lt;li&gt;there you can activate &quot;Always show Solution&quot;&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;http://bp0.blogger.com/_G2Zw9Fyi6WM/R0WnA3ZW7UI/AAAAAAAAACk/MhIPcQ7mK4A/s1600-h/options.bmp&quot;&gt;&lt;img style=&quot;margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;&quot; src=&quot;http://bp0.blogger.com/_G2Zw9Fyi6WM/R0WnA3ZW7UI/AAAAAAAAACk/MhIPcQ7mK4A/s320/options.bmp&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5135694583398067522&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;</description><link>http://krisnobels.blogspot.com/2007/11/always-show-solution-in-visual-studio.html</link><author>noreply@blogger.com (Kris Nobels)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://bp0.blogger.com/_G2Zw9Fyi6WM/R0WnA3ZW7UI/AAAAAAAAACk/MhIPcQ7mK4A/s72-c/options.bmp" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7856027517574400977.post-4857575730498572716</guid><pubDate>Tue, 06 Nov 2007 08:59:00 +0000</pubDate><atom:updated>2009-10-15T11:23:57.732+02:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">bat dos</category><title></title><description>&lt;span name=&quot;KonaBody&quot;&gt;I have a daily job to create a backup from a file. But each backup must have a different name.&lt;br /&gt;What i did is create a schedule job on my XP machine with .BAT file that runs every day.&lt;br /&gt;&lt;br /&gt;The hard thing in Dos is giving a name that is unique.&lt;br /&gt;&lt;br /&gt;Here are the doscommands:&lt;br /&gt;&lt;br /&gt;@echo off&lt;br /&gt;for /F &quot;&lt;span class=&quot;searchword&quot;&gt;to&lt;/span&gt;kens=2-4 delims=/ &quot; %%i in (&#39;&lt;span class=&quot;searchword&quot;&gt;date&lt;/span&gt; /t&#39;) do set yyyymmdd=%%k%%i%%j&lt;br /&gt;echo &lt;span class=&quot;searchword&quot;&gt;Date&lt;/span&gt;: %yyyymmdd%&lt;br /&gt;for /F &quot;&lt;span class=&quot;searchword&quot;&gt;to&lt;/span&gt;kens=1-2 delims=: &quot; %%l in (&#39;time /t&#39;) do set hhmm=%%l%%m&lt;br /&gt;echo Time: %hhmm%&lt;br /&gt;rem --  or use both&lt;br /&gt;echo %yyyymmdd%%hhmm%&lt;br /&gt;rem --  here is the copy command with just the &lt;span class=&quot;searchword&quot;&gt;date&lt;/span&gt; appended&lt;br /&gt;&lt;br /&gt;REN E:\Sx3\FTP\pl.txt pl%yyyymmdd%%hhmm%.txt&lt;br /&gt;REN E:\Sx3\FTP\llpg.txt llpg%yyyymmdd%%hhmm%.txt&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;overview parameters you &lt;a href=&quot;http://www.scriptlogic.com/support/CustomScripts/XCOPYCommandLineParameters.html&quot;&gt;find here&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;</description><link>http://krisnobels.blogspot.com/2007/11/i-have-daily-job-to-create-backup-from.html</link><author>noreply@blogger.com (Kris Nobels)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7856027517574400977.post-8226753599854138728</guid><pubDate>Thu, 05 Apr 2007 08:31:00 +0000</pubDate><atom:updated>2008-08-22T11:50:14.962+02:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">dev days</category><category domain="http://www.blogger.com/atom/ns#">tech days</category><title>Dev Days 2007 materials and more ...</title><description>&lt;p&gt;Here you go ...&lt;/p&gt; &lt;ul&gt; &lt;li&gt;You can download powerpoints from the Dev Days 2007 @ Ghent &lt;a href=&quot;http://www2.blogger.com/%5Bhttp://www.microsoft.com/belux/devitprodays/presentations/overview.aspx&quot; target=&quot;_blank&quot;&gt;here&lt;/a&gt;  &lt;/li&gt;&lt;li&gt;Jeff Promise &lt;a href=&quot;http://www.wintellect.com/webdemos.aspx&quot; target=&quot;_blank&quot;&gt;code samples&lt;/a&gt; on ASP.net Ajax, Burton and WPF/E (samples about Asynchronous ASP.NET are coming later on)  &lt;/li&gt;&lt;li&gt;Raj Pai codesamples on &lt;a href=&quot;http://blogs.msdn.com/charlie/archive/2007/03/04/samples-update.aspx&quot; target=&quot;_blank&quot;&gt;LINQ&lt;/a&gt;, a set of updated samples for the &lt;a href=&quot;http://blogs.msdn.com/charlie/archive/2007/03/01/february-ctp-now-available.aspx&quot; target=&quot;_blank&quot;&gt;Visual Studio Orcas March CTP&lt;/a&gt;  &lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.u2u.info/Blogs/Peter/default.aspx&quot; target=&quot;_blank&quot;&gt;Peter Himschoot&lt;/a&gt; on &lt;a href=&quot;http://www.u2u.info/Blogs/Peter/Lists/Posts/Post.aspx?ID=230&quot; target=&quot;_blank&quot;&gt;WPF DataBinding Explained&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt; &lt;p&gt;&lt;u&gt;Other event materials:&lt;/u&gt;&lt;/p&gt; &lt;ul&gt; &lt;li&gt;I found some codesamples from devweek &lt;a href=&quot;http://www.devweek.com/code/&quot; target=&quot;_blank&quot;&gt;here&lt;/a&gt;.  &lt;/li&gt;&lt;li&gt;Session materials from &lt;a href=&quot;http://www.thinktecture.com/conferences/200702DevWeek&quot; target=&quot;_blank&quot;&gt;Thinktecture&lt;/a&gt; @ DevWeek.  &lt;/li&gt;&lt;li&gt;Session materials from &lt;a href=&quot;http://www.wintellect.com/cs/blogs/jprosise/default.aspx&quot; target=&quot;_blank&quot;&gt;Jeff Promise&lt;/a&gt; on &quot;&lt;a href=&quot;http://www.itcork.ie/index.cfm?page=events&amp;amp;eventId=86&quot; target=&quot;_blank&quot;&gt;Introducing ASP.NET AJAX - The ASP.NET 2.0 AJAX Extensions&lt;/a&gt;&quot;.&lt;/li&gt;&lt;/ul&gt; &lt;p&gt;Enjoy :-)&lt;/p&gt;</description><link>http://krisnobels.blogspot.com/2007/04/dev-days-2007-materials-and-more.html</link><author>noreply@blogger.com (Kris Nobels)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7856027517574400977.post-5311706991233533200</guid><pubDate>Wed, 04 Apr 2007 21:30:00 +0000</pubDate><atom:updated>2008-02-11T08:19:18.188+01:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Vista</category><title>Fix to copy large files in vista faster</title><description>&lt;p&gt;Yes, the title is correct ! Vista has problems with copy large files. &lt;/p&gt; &lt;p&gt;This happens especially with mapped drives but it could also be that you witness network disconnects.&lt;/p&gt; &lt;p&gt;The problem is caused by a new feature called Auto Tuning which is by default enabled in Microsoft Windows Vista. What Auto Tuning does is that it reacts on changes in the network by tuning the receive windows size. The solution would be of course to disable Auto Tuning in Vista. Some users reported that disabling Auto Tuning had a positive effect.&lt;/p&gt; &lt;p&gt;&lt;a href=&quot;http://support.microsoft.com/kb/932170&quot;&gt;Here&lt;/a&gt; are workarounds from &lt;a href=&quot;http://support.microsoft.com/kb/932170&quot;&gt;Support Microsoft&lt;/a&gt; website to of from earlier OS.&lt;/p&gt; &lt;p&gt;To disable Auto Tuning and speed up the copy process and avoid timeouts and disconnects do the following:&lt;/p&gt; &lt;p&gt;Open a command prompt and type the following:  &lt;/p&gt;&lt;p&gt;&lt;code&gt;&lt;strong&gt;&lt;span style=&quot;color:#000080;&quot;&gt;netsh int tcp set global autotuninglevel=disabled&lt;/span&gt;&lt;/strong&gt;&lt;/code&gt;  &lt;/p&gt;&lt;p&gt;To turn it on again:  &lt;/p&gt;&lt;p&gt;&lt;code&gt;&lt;strong&gt;&lt;span style=&quot;color:#000080;&quot;&gt;netsh int tcp set global autotuninglevel=normal&lt;/span&gt;&lt;/strong&gt;&lt;/code&gt;&lt;/p&gt;</description><link>http://krisnobels.blogspot.com/2007/04/usefull-virtual-pc-images.html</link><author>noreply@blogger.com (Kris Nobels)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7856027517574400977.post-614203706652829131</guid><pubDate>Tue, 13 Mar 2007 10:27:00 +0000</pubDate><atom:updated>2007-04-03T12:21:44.982+02:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">CSharp</category><title>GetOrdinal example</title><description>&lt;span style=&quot;font-weight: bold; font-style: italic&quot;&gt; &lt;p&gt;&lt;br&gt;When you use the ExecuteReader,&lt;/span&gt;&lt;br&gt;&lt;span style=&quot;font-weight: bold; font-style: italic&quot;&gt;you have to select the fields created from the select statement.&lt;/span&gt;&lt;br&gt;&lt;br&gt;&lt;span style=&quot;font-weight: bold; font-style: italic&quot;&gt;There you have to be carefull with the numbers you give in the reader.&lt;/span&gt;&lt;br&gt;&lt;br&gt;&lt;span style=&quot;font-weight: bold; font-style: italic&quot;&gt;Here is the example using a MySQL database:&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-weight: bold; font-style: italic&quot;&gt;&lt;/span&gt;&lt;/p&gt; &lt;div class=&quot;wlWriterSmartContent&quot; id=&quot;F2210F5F-69EB-4d4c-AFF7-B8A050E9CC72:c82387f7-dd30-465d-b91e-ece558a9ee3a&quot; contenteditable=&quot;false&quot; style=&quot;padding-right: 0px; display: inline; padding-left: 0px; float: none; padding-bottom: 0px; margin: 0px; padding-top: 0px&quot;&gt;&lt;pre  style=&quot;width:100%;background-color:#D7D7D7;font-size:80%&quot;&gt;&lt;div&gt;&lt;!--&lt;br /&gt;&lt;br /&gt;Code highlighting produced by Actipro CodeHighlighter (freeware)&lt;br /&gt;http://www.CodeHighlighter.com/&lt;br /&gt;&lt;br /&gt;--&gt;&lt;span style=&quot;color: #000000;&quot;&gt;String select &lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #800000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #800000;&quot;&gt;Select id, first_name, last_name, nickname from table_name&lt;/span&gt;&lt;span style=&quot;color: #800000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; &lt;br /&gt;MySqlCommand command &lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #0000FF;&quot;&gt;new&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; MySqlCommand(); &lt;br /&gt;MySqlDataReader reader; &lt;br /&gt;MakeConnection(); &lt;br /&gt;command.Connection &lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; connect;&lt;br /&gt;command.CommandText &lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; select;&lt;br /&gt;reader &lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; command.ExecuteReader();&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000FF;&quot;&gt;while&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; (reader.Read())&lt;br /&gt;{ &lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #008000;&quot;&gt;//&lt;/span&gt;&lt;span style=&quot;color: #008000;&quot;&gt;-&amp;gt; Fist column selected&lt;/span&gt;&lt;span style=&quot;color: #008000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000FF;&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; id &lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; reader.GetInt32(&lt;/span&gt;&lt;span style=&quot;color: #800080;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #008000;&quot;&gt;//&lt;/span&gt;&lt;span style=&quot;color: #008000;&quot;&gt;-&amp;gt;Second Column Selected&lt;/span&gt;&lt;span style=&quot;color: #008000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000FF;&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; FirstName &lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; reader.GetString(&lt;/span&gt;&lt;span style=&quot;color: #800080;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;) ;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #008000;&quot;&gt;//&lt;/span&gt;&lt;span style=&quot;color: #008000;&quot;&gt;-&amp;gt;3&amp;#233; Column Selected&lt;/span&gt;&lt;span style=&quot;color: #008000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000FF;&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; LastName &lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; reader.GetString(&lt;/span&gt;&lt;span style=&quot;color: #800080;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;) ;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #008000;&quot;&gt;//&lt;/span&gt;&lt;span style=&quot;color: #008000;&quot;&gt;-&amp;gt;Last Column Selected&lt;/span&gt;&lt;span style=&quot;color: #008000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000FF;&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; NickName &lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; reader.GetString(&lt;/span&gt;&lt;span style=&quot;color: #800080;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;) ; &lt;br /&gt;} &lt;br /&gt;MakeDisconnection(); &lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/pre&gt;&lt;/div&gt;&lt;br&gt;&lt;span style=&quot;font-style: italic&quot;&gt;&lt;br&gt;&lt;span style=&quot;font-weight: bold&quot;&gt;But when you change the select statement you have to pay attention that the order is exact the same order for the reader.&lt;/span&gt;&lt;br&gt;&lt;br&gt;&lt;span style=&quot;font-weight: bold&quot;&gt;By Using the GetOrdinal is the possiton not a problem anymore.&lt;/span&gt;&lt;br&gt;&lt;/span&gt;&lt;br&gt;&lt;span style=&quot;font-weight: bold&quot;&gt;This example show&#39;s the use of GetOrdinal:&lt;/span&gt;&lt;br&gt;&lt;span style=&quot;font-weight: bold&quot;&gt;(Only the select statement is changed by order.)&lt;/span&gt; &lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&amp;nbsp;&lt;br /&gt;&lt;div class=&quot;wlWriterSmartContent&quot; id=&quot;F2210F5F-69EB-4d4c-AFF7-B8A050E9CC72:8e379c38-9147-4bb5-b4ca-b469f1b53602&quot; contenteditable=&quot;false&quot; style=&quot;padding-right: 0px; display: inline; padding-left: 0px; float: none; padding-bottom: 0px; margin: 0px; padding-top: 0px&quot;&gt;&lt;pre  style=&quot;width:100%;background-color:#D7D7D7;font-size:80%&quot;&gt;&lt;div&gt;&lt;!--&lt;br /&gt;&lt;br /&gt;Code highlighting produced by Actipro CodeHighlighter (freeware)&lt;br /&gt;http://www.CodeHighlighter.com/&lt;br /&gt;&lt;br /&gt;--&gt;&lt;span style=&quot;color: #000000;&quot;&gt;String select &lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #800000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #800000;&quot;&gt;Select nickname, last_name, first_name, id from table_name&lt;/span&gt;&lt;span style=&quot;color: #800000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; &lt;br /&gt;MySqlCommand command &lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #0000FF;&quot;&gt;new&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; MySqlCommand(); &lt;br /&gt;MySqlDataReader reader; &lt;br /&gt;MakeConnection(); &lt;br /&gt;command.Connection &lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; connect;&lt;br /&gt;command.CommandText &lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; select;&lt;br /&gt;reader &lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; command.ExecuteReader();&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000FF;&quot;&gt;while&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; (reader.Read())&lt;br /&gt;{&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #008000;&quot;&gt;//&lt;/span&gt;&lt;span style=&quot;color: #008000;&quot;&gt;-&amp;gt; Fist column selected&lt;/span&gt;&lt;span style=&quot;color: #008000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000FF;&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; id &lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; rdr.GetInt32(rdr.GetOrdinal(&lt;/span&gt;&lt;span style=&quot;color: #800000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #800000;&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: #800000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;));&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #008000;&quot;&gt;//&lt;/span&gt;&lt;span style=&quot;color: #008000;&quot;&gt;-&amp;gt;Second Column Selected&lt;/span&gt;&lt;span style=&quot;color: #008000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000FF;&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; FirstName &lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; reader.GetString(rdr.GetOrdinal(&lt;/span&gt;&lt;span style=&quot;color: #800000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #800000;&quot;&gt;first_name&lt;/span&gt;&lt;span style=&quot;color: #800000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;)) ;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #008000;&quot;&gt;//&lt;/span&gt;&lt;span style=&quot;color: #008000;&quot;&gt;-&amp;gt;3&amp;#233; Column Selected&lt;/span&gt;&lt;span style=&quot;color: #008000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000FF;&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; LastName &lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; reader.GetString(rdr.GetOrdinal(&lt;/span&gt;&lt;span style=&quot;color: #800000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #800000;&quot;&gt;last_name&lt;/span&gt;&lt;span style=&quot;color: #800000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;)) ;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #008000;&quot;&gt;//&lt;/span&gt;&lt;span style=&quot;color: #008000;&quot;&gt;-&amp;gt;Last Column Selected&lt;/span&gt;&lt;span style=&quot;color: #008000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000FF;&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; NickName &lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; reader.GetString(rdr.GetOrdinal(&lt;/span&gt;&lt;span style=&quot;color: #800000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #800000;&quot;&gt;nickname&lt;/span&gt;&lt;span style=&quot;color: #800000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;)) ; &lt;br /&gt;} &lt;br /&gt;MakeDisconnection();&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/pre&gt;&lt;/div&gt;&lt;br&gt;&lt;span style=&quot;font-weight: bold; font-style: italic&quot;&gt;This works and you don&#39;t have any troubles with the order.&lt;/span&gt;&lt;br&gt;&lt;span style=&quot;font-style: italic&quot;&gt;&lt;span style=&quot;font-style: italic&quot;&gt;&lt;br&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;</description><link>http://krisnobels.blogspot.com/2007/03/getordinal-example.html</link><author>noreply@blogger.com (Kris Nobels)</author><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7856027517574400977.post-4834785275914968664</guid><pubDate>Sat, 10 Mar 2007 13:56:00 +0000</pubDate><atom:updated>2007-04-03T12:15:25.918+02:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">CSharp</category><title>Validate value on DBNull</title><description>&lt;span style=&quot;font-weight: bold; font-style: italic&quot;&gt;&lt;br&gt;You need a specific value from a datareader, and it is possible that the value is DBNull.&lt;/span&gt;&lt;br&gt;&lt;span style=&quot;font-style: italic&quot;&gt;&lt;span style=&quot;font-weight: bold&quot;&gt;This way we validate the value on DBNull.&lt;/span&gt;&lt;br&gt;&lt;/span&gt;&lt;br&gt;&lt;span style=&quot;font-family: verdana&quot;&gt; &lt;div class=&quot;wlWriterSmartContent&quot; id=&quot;F2210F5F-69EB-4d4c-AFF7-B8A050E9CC72:5d6e4370-310d-466b-b212-c0a8ed02e12e&quot; contenteditable=&quot;false&quot; style=&quot;padding-right: 0px; display: inline; padding-left: 0px; float: none; padding-bottom: 0px; margin: 0px; width: 360px; padding-top: 0px&quot;&gt;&lt;pre  style=&quot;width:100%;background-color:#E3E3E3;font-size:80%&quot;&gt;&lt;div&gt;&lt;!--&lt;br /&gt;&lt;br /&gt;Code highlighting produced by Actipro CodeHighlighter (freeware)&lt;br /&gt;http://www.CodeHighlighter.com/&lt;br /&gt;&lt;br /&gt;--&gt;&lt;span style=&quot;color: #0000FF;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;!&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;reader.GetValue(&lt;/span&gt;&lt;span style=&quot;color: #800080;&quot;&gt;6&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;).Equals(System.DBNull.Value))&lt;br /&gt;{&lt;br /&gt;tempr.aantalPlaten &lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt; reader.GetInt32(&lt;/span&gt;&lt;span style=&quot;color: #800080;&quot;&gt;6&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;);&lt;br /&gt;}&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/span&gt;</description><link>http://krisnobels.blogspot.com/2007/03/validate-value-on-dbnull.html</link><author>noreply@blogger.com (Kris Nobels)</author><thr:total>0</thr:total></item></channel></rss>