<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-4318562544068519860</atom:id><lastBuildDate>Sat, 20 Jun 2009 12:10:04 +0000</lastBuildDate><title>BYPsoft on .NET</title><description>BYPsoft will share .NET experience on this blog with other community members. We will try to collect all interesting topics about .NET, SQL Server, MySQL, database comparison, database differences and much more.</description><link>http://bypsoft.blogspot.com/</link><managingEditor>noreply@blogger.com (DLM@BYPsoft)</managingEditor><generator>Blogger</generator><openSearch:totalResults>15</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/Bypsoft" type="application/rss+xml" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4318562544068519860.post-7116402268338520920</guid><pubDate>Mon, 27 Apr 2009 19:58:00 +0000</pubDate><atom:updated>2009-06-20T04:57:54.289-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">MySQL 5.4</category><category domain="http://www.blogger.com/atom/ns#">new features</category><title>MySQL 5.4</title><description>&lt;p&gt;New Features&lt;/p&gt;  &lt;p&gt;MySQL has released a new version of database server – MySQL in version 5.4. Latest release was 5.1 with a really great features. This one brings not so much but also very important features:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;InnoDB storage engine can address more than 4 CPU’s/cores. Thjs helps that MySQL scale much better under huge application workloads. &lt;/li&gt;    &lt;li&gt;Till now, subqueries were well known as performance problematical. In version 5.4 subquery optimization has been improved a lot in a number of various use cases. As MySQL mentioned in the example below, execution time dropped from 12 minutes (9 000 000 reads) on MySQL 5.1 to just 1.8 seconds (153 000 reads) on MySQL 5.4&lt;/li&gt; &lt;/ul&gt;  &lt;blockquote&gt;   &lt;pre&gt;SELECT COUNT(l_orderkey) FROM lineitem&lt;br /&gt;WHERE l_linenumber=1 AND&lt;br /&gt;      l_orderkey IN&lt;br /&gt;      (SELECT o_orderkey FROM orders&lt;br /&gt;         WHERE o_totalprice &amp;gt; 1000 AND&lt;br /&gt;               o_custkey IN&lt;br /&gt;               (SELECT c_custkey FROM customer&lt;br /&gt;                  WHERE c_address LIKE 'Le%'));&lt;br /&gt;&lt;/pre&gt;&lt;ul&gt;&lt;li&gt;MySQL 5.4 offers a new much better join algorithm which speed up execution time of multi-way joins like in the following example &lt;/li&gt;  &lt;/ul&gt;  &lt;pre&gt;SELECT COUNT(*) FROM part, lineitem&lt;br /&gt;       WHERE l_partkey=p_partkey AND p_retailprice&amp;gt;2050&lt;br /&gt;             AND l_discount&amp;gt;0.04;&lt;br /&gt;&lt;/pre&gt;&lt;/blockquote&gt;&lt;ul&gt;&lt;li&gt;Improved error handling – through the implementation of standard SQL (SQL 2003) SIGNAL and RESIGNAL operations  in stored procedures, functions and triggers developers are able to signal rule violations during execution. &lt;/li&gt;&lt;/ul&gt;&lt;blockquote&gt;&lt;p&gt;Must mention here that Oracle and SQL Server not implement this functionality but have their own mechanisms: Oracle through RAISE  and SQL Server through RAISEERROR statements.&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;ul&gt;&lt;li&gt;INFORMATION_SCHEMA got a new objects PARAMETERS. We wait a lot on this. &lt;/li&gt;&lt;br /&gt;&lt;li&gt;In prior version of MySQL out parameter were not possible in prepared statements. That has been changed now.&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;&lt;p&gt;This is all from programmers perspective. Have a fun.&lt;br /&gt;&lt;/p&gt;&lt;pre id="line1"&gt;&lt;a href="http://www.bypsoft.com/Compare_Databases.html"&gt;&lt;span class="attribute-value"&gt;Compare SQL Server, Oracle and MySQL database with DBTYP.NET Studio&lt;/span&gt;&lt;/a&gt;&lt;/pre&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4318562544068519860-7116402268338520920?l=bypsoft.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Bypsoft/~4/vRq4NCe2yuA" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/Bypsoft/~3/vRq4NCe2yuA/mysql-54.html</link><author>noreply@blogger.com (DLM@BYPsoft)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://bypsoft.blogspot.com/2009/04/mysql-54.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4318562544068519860.post-706888574477827097</guid><pubDate>Thu, 19 Mar 2009 20:38:00 +0000</pubDate><atom:updated>2009-06-20T05:01:39.758-07:00</atom:updated><title>Table 'mysql.proc' doesn't exist.</title><description>&lt;p&gt;Sometimes our support team receive a helpdesk request concerning this error message shown in Schema Comparison of DBTYP.NET 2009 Studio. &lt;/p&gt;  &lt;p&gt;The usual problem with such a customers is that almost all of them make recent upgrade of MySQL server.  While some releases of MySQL introduce changes in the structure of the system tables in mysql database to add new privileges and support new features, it is necessary to update the system tables as well. &lt;/p&gt;  &lt;p&gt;This can be achieved by running &lt;a href="http://dev.mysql.com/doc/refman/5.1/en/mysql-fix-privilege-tables.html"&gt;&lt;strong&gt;mysql_fix_privilege_tables&lt;/strong&gt;&lt;/a&gt; script in MySQL prior to version 5.1.7 or &lt;a href="http://dev.mysql.com/doc/refman/5.1/en/mysql-upgrade.html"&gt;&lt;strong&gt;mysql_upgrade&lt;/strong&gt;&lt;/a&gt; in version 5.1.7 or above. &lt;/p&gt;  &lt;p&gt;For more details check following links:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;&lt;a title="http://dev.mysql.com/doc/refman/5.1/en/mysql-fix-privilege-tables.html" href="http://dev.mysql.com/doc/refman/5.1/en/mysql-fix-privilege-tables.html"&gt;http://dev.mysql.com/doc/refman/5.1/en/mysql-fix-privilege-tables.html&lt;/a&gt;&lt;/li&gt;    &lt;li&gt;&lt;a title="http://dev.mysql.com/doc/refman/5.1/en/mysql-upgrade.html" href="http://dev.mysql.com/doc/refman/5.1/en/mysql-upgrade.html"&gt;http://dev.mysql.com/doc/refman/5.1/en/mysql-upgrade.html&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt;&lt;a href="http://www.bypsoft.com/Compare_Databases.html"&gt;See all database differences and dependencies with DBTYP.NET Studio&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4318562544068519860-706888574477827097?l=bypsoft.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Bypsoft/~4/dAB_zCpZ5II" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/Bypsoft/~3/dAB_zCpZ5II/table-doesn-exist.html</link><author>noreply@blogger.com (DLM@BYPsoft)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://bypsoft.blogspot.com/2009/03/table-doesn-exist.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4318562544068519860.post-4986392575442730425</guid><pubDate>Fri, 04 Jul 2008 20:12:00 +0000</pubDate><atom:updated>2008-07-04T13:17:00.142-07:00</atom:updated><title>DBTyP.NET 2008 Release 3 Available</title><description>BYPsoft announced the availability of DBTyP.NET 2008 Release 3, the newest version of the cross-database comparison tool that compares SQL Server, MySQL and Oracle databases (schema and data). DBTyP.NET 2008 Release 3 is available for download from &lt;a href="http://www.bypsoft.com/"&gt;http://www.bypsoft.com&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;With its rich support for schema and data cross-database comparison, DBTyP.NET takes the mystery out of databases, making their comparison practical and easy for programmers and database administrators everywhere. Over and above its powerful comparison capabilities till now, BYPsoft added to the DBTyP.NET 2008 support for schema comparisons for Oracle databases. Full cross database comparison family includes now support for SQL Server, MySQL and Oracle databases in the latest release of DBTyP.NET 2008 for a fraction of the cost of single-database solution.&lt;br /&gt;&lt;br /&gt;Since the DBTyP.NET is under constant development, user interface has been redesigned and rich visual interface and easy-to-use features of DBTyP.NET 2008 allow developers and DBAs to  identify and deploy changes quickly on all supported databases and enhance productivity and maximize results. Features like colorfull differences, different objects icons, visual column description, in place colorfull script differences, multiple views and more all save time and ensure accuracy.&lt;br /&gt;&lt;br /&gt;In addition to all the new features listed above, in the latest release of DBTyP.NET 2008 BYPsoft includes also the following:&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;SQL Server 2008 Ready&lt;/li&gt;&lt;li&gt;Support for SQL Server ROWGUIDCOL&lt;/li&gt;&lt;li&gt;Filtered out system objects on SQL Server databases.&lt;/li&gt;&lt;li&gt;Support SQLServer user defined types.&lt;/li&gt;&lt;li&gt;Support MySQL ENUM and SET data types.&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;We know that constant development is the key to progress, therefore we already started working on all new cool features. Stay with us.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4318562544068519860-4986392575442730425?l=bypsoft.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Bypsoft/~4/yGWTPbMTkZ4" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/Bypsoft/~3/yGWTPbMTkZ4/dbtypnet-2008-release-3-available.html</link><author>noreply@blogger.com (DLM@BYPsoft)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://bypsoft.blogspot.com/2008/07/dbtypnet-2008-release-3-available.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4318562544068519860.post-1124874059383772481</guid><pubDate>Mon, 12 May 2008 12:30:00 +0000</pubDate><atom:updated>2009-06-20T05:00:11.121-07:00</atom:updated><title>List All Functions and Stored Procedures definitions in Oracle schema</title><description>A long time I have not published anything. &lt;a href="http://www.bypsoft.com/"&gt;BYPsoft&lt;/a&gt; preparing new version of &lt;a href="http://www.bypsoft.com/dbtyp.html"&gt;DBTyP.NET&lt;/a&gt; with full support for a &lt;a href="http://www.bypsoft.com/dbtyp.html"&gt;Oracle schema comparison&lt;/a&gt; and therefore didn't had any free time left for this blog.&lt;br /&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:verdana;"&gt;A very interesting topic came to me out of this experience. &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;Have you ever tried to get a list of all stored procedures and functions in Oracle schema? Preaty easy, &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);font-family:verdana;" &gt;SELECT * FROM USER_PROCEDURES;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;You figured out that it is quite different comparing to SQL Server and MySQL where with the single query &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;&lt;span style="color: rgb(255, 153, 102);"&gt;SELECT *  FROM INFORMATION_SCHEMA.ROUTINES;&lt;/span&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;you get a body definition as well. &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;To achieve this on Oracle is not so simply. First, to get user sources you should query &lt;span style="color: rgb(255, 153, 102); font-style: italic;"&gt;USER_SOURCE&lt;/span&gt; view where each function or stored procedure line is stored in one row. &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;To get a full body, you have to use a powerful hierarchical query clause &lt;/span&gt;&lt;/span&gt;&lt;code&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:verdana;"&gt;&lt;span style="color: rgb(255, 153, 102); font-style: italic;"&gt;SYS_CONNECT_BY_PATH&lt;/span&gt;. &lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:verdana;"&gt;Here is a query which returns you list of all stored procedures and functions in Oracle schema together with their bodies defined in one column:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);"&gt;SELECT routine_name, y.TYPE, TRANSLATE(LTRIM(x.text1, '/'), '/', ' ') routine_definition  &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);"&gt;FROM (SELECT name routine_name, LEVEL lvl,  sys_connect_by_path(text, '/') text1&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);"&gt;                   FROM USER_SOURCE&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);"&gt;                   CONNECT BY LINE - 1  = PRIOR LINE AND name = PRIOR name) x,&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);"&gt;                   (SELECT name, TYPE, MAX(line) AS maxline&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);"&gt;                    FROM USER_SOURCE&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);"&gt;                   GROUP BY name, TYPE) y               &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);"&gt;WHERE x.routine_name = y.name AND x.lvl = y.maxline&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 102);"&gt;ORDER BY TYPE, routine_name&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.bypsoft.com/Compare_Databases.html"&gt;Compare database schema and data fast and easy with DBTYP.NET Studio&lt;/a&gt;&lt;br /&gt;&lt;/code&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4318562544068519860-1124874059383772481?l=bypsoft.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Bypsoft/~4/BZolH6LErRA" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/Bypsoft/~3/BZolH6LErRA/list-all-functions-and-stored.html</link><author>noreply@blogger.com (DLM@BYPsoft)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://bypsoft.blogspot.com/2008/05/list-all-functions-and-stored.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4318562544068519860.post-2453123883221334889</guid><pubDate>Sat, 01 Mar 2008 23:29:00 +0000</pubDate><atom:updated>2008-03-01T15:54:37.356-08:00</atom:updated><title>MySqlDateTime and .NET</title><description>In version 2008 our cross database comparison tool &lt;a href="http://www.bypsoft.com/dbtyp.html"&gt;DBTyP.NET&lt;/a&gt; will  support cross  data comparison  between  SQL Server  and MySQL DateTime values (date, datetime, smalldatetime). Actually, this is a common problem, between MySql.Data.Types.MySqlDateTime and System.DateTime types in .NET. It is very possible that if you tries to update MySqlDateTime column with DateTime variable you will get SystemArgumentException saying that could not store value ... into ... Expected type is MySqlDateTime. It is possible to format value as "yyyy-MM-dd HH:mm:ss" but in our case we don't want to iterate through whole DataSet and make this formatting.&lt;br /&gt;Very elegant solution is to change a DataColumn type from MySqlDateTime to System.DateTime as&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 0);"&gt;myMySqlDateTimeColum.DataType = typeof(System.DateTime);&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;After that you should not worry about formatting.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4318562544068519860-2453123883221334889?l=bypsoft.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Bypsoft/~4/EYqnet9-3bA" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/Bypsoft/~3/EYqnet9-3bA/mysqldatetime-and-net.html</link><author>noreply@blogger.com (DLM@BYPsoft)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">1</thr:total><feedburner:origLink>http://bypsoft.blogspot.com/2008/03/mysqldatetime-and-net.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4318562544068519860.post-8550241637775586725</guid><pubDate>Fri, 29 Feb 2008 23:26:00 +0000</pubDate><atom:updated>2008-02-29T15:42:33.117-08:00</atom:updated><title>How to check if class has been used in Web or Windows application</title><description>After a while, I decided to participate in a newsgroups tonight and found an interesting question. "Is there a programmatic way for the class lib to determine what kind of app is running - web or windows". The worst, guy requested official response from Microsoft support and didn't get an answer. After 3 days his question wasn't answered, he re-posted it. So, is there are something wrong? Looks like not.&lt;br /&gt;The simple answer from my side was, to implement following function somewhere in his shared assembly:&lt;br /&gt;&lt;span style="color:#ffcc33;"&gt;public bool IsWebApp(){&lt;br /&gt;return (HttpContext.Current != null);&lt;br /&gt;}&lt;/span&gt;&lt;br /&gt;So, if there is Current HttpContext than function has been called from ASP.NET application and if there is not such an object, function is called from Windows Forms application.&lt;br /&gt;Simple enough.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4318562544068519860-8550241637775586725?l=bypsoft.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Bypsoft/~4/FYyg12UasRo" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/Bypsoft/~3/FYyg12UasRo/how-to-check-if-class-has-been-used-in.html</link><author>noreply@blogger.com (DLM@BYPsoft)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://bypsoft.blogspot.com/2008/02/how-to-check-if-class-has-been-used-in.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4318562544068519860.post-1904641785780078928</guid><pubDate>Tue, 26 Feb 2008 21:51:00 +0000</pubDate><atom:updated>2009-03-19T13:53:43.565-07:00</atom:updated><title>Handling Miliseconds in .NET and SQL Server</title><description>Have you taken a look at number of such a questions in online community? It looks like that a lot of .NET developers have a problems reading and updating milliseconds value from SQL Server databases. So what is a real problem here?  &lt;br /&gt;Let's take a look at common scenario. Developers read data from a table which has Datetime column ColDateTime. Let's say they are storing values in some DataTable table1. Suddenly, if you want just to print a Value of that field, with  &lt;br /&gt;  &lt;br /&gt;&lt;span style="color: rgb(204,0,0)"&gt;table1.Rows[0].Cells[&amp;quot;ColDateTime&amp;quot;].Value.ToString()   &lt;br /&gt;    &lt;br /&gt;&lt;/span&gt;you will get value like '2008/02/26 2:26:53 PM'. But you value in database is actually '2008/02/26 14:26:53.3480'. So milliseconds are missing. The only way to get them is to convert value from database in DateTime variable and then print out that variable:  &lt;br /&gt;  &lt;br /&gt;&lt;span style="color: rgb(204,0,0)"&gt;DateTime dtDbValue = System.Covert.ToDateTime(table1.Rows[0].Cells[&amp;quot;ColDateTime&amp;quot;]);   &lt;br /&gt;dtDbValue.ToString();&lt;/span&gt;  &lt;br /&gt;  &lt;br /&gt;Now, you have a real value: '2008/02/26 14:26:53.3480'  &lt;br /&gt;  &lt;br /&gt;Connected to this is also reverse process, where people lose milliseconds during update. Take a look at following statements:  &lt;br /&gt;  &lt;br /&gt;&lt;span style="color: rgb(204,0,0)"&gt;DateTame dtValue = DateTime.Now;&lt;/span&gt;  &lt;br /&gt;  &lt;br /&gt;&lt;span style="color: rgb(204,0,0)"&gt;string sql = &amp;quot;update table1 set ColDateTime = '&amp;quot; + dtValue.ToString() + &amp;quot;'&amp;quot;;&lt;/span&gt;  &lt;br /&gt;  &lt;br /&gt;-- create DataCommand, assign CommandText and execute.  &lt;br /&gt;  &lt;br /&gt;You will see that your column has been updated with the wrong value. Again milliseconds cut.  &lt;br /&gt;  &lt;br /&gt;People try very often to format ToString method call to looks like:  &lt;br /&gt;&lt;span style="color: rgb(204,0,0)"&gt;string sql = &amp;quot;update table1 set ColDateTime = '&amp;quot; + dtValue.ToString(&amp;quot;yyyy/MM/dd hh:mm:ss.ffff&amp;quot;) + &amp;quot;'&amp;quot;;&lt;/span&gt;  &lt;br /&gt;  &lt;br /&gt;but this cause an exception on SQL Server side saying that varchar value can not be converted to Datetime type. Strange, and maybe lack of documentation, but the solution is to format your DateTime value with different format - using 3 f and not 4:  &lt;br /&gt;  &lt;br /&gt;&lt;span style="color: rgb(204,0,0)"&gt;string sql = &amp;quot;update table1 set ColDateTime = '&amp;quot; + dtValue.ToString(&amp;quot;yyyy/MM/dd hh:mm:ss.fff&amp;quot;) + &amp;quot;'&amp;quot;;&lt;/span&gt;  &lt;br /&gt;  &lt;br /&gt;  &lt;br /&gt;&lt;a id="kj4p" title="Compare database" href="http://www.bypsoft.com/"&gt;Compare databases&lt;/a&gt; fast, safe, free... DBTyP.NET - in version 2008 supports Oracle besides SQL Server and MySQL. DBTyP.NET 2008 is coming... in 3 weeks.    &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4318562544068519860-1904641785780078928?l=bypsoft.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Bypsoft/~4/ARLS9d1IcM8" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/Bypsoft/~3/ARLS9d1IcM8/handling-miliseconds-in-net-and-sql.html</link><author>noreply@blogger.com (DLM@BYPsoft)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">1</thr:total><feedburner:origLink>http://bypsoft.blogspot.com/2008/02/handling-miliseconds-in-net-and-sql.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4318562544068519860.post-5744729517624410025</guid><pubDate>Sat, 02 Feb 2008 22:51:00 +0000</pubDate><atom:updated>2008-03-07T13:36:20.855-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">help authoring tool</category><title>Great Help Authoring Tool</title><description>We have just discovered and get impressed with &lt;a href="http://www.roledata.com/rolehelp.htm"&gt;Rolehelp&lt;/a&gt;. We are still testing different help authoring tools but this one with their simplicity, great user interface, feature reach capabilities and creation of 7 different help formats simply fascinate us. Of course, we have never wanted to spend 1000$ for such a tool, therefore Roledata offer of 59$ and free demo version with limitation of 50 topics is very, very attractive one. So, if you need fast, simple, free or at least cheap help authoring tool, visit them and you will get one great tool.&lt;br /&gt;I'm sure we will use it in our data and schema compare solution in version 2008.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.bypsoft.com/dbtyp.html"&gt;Synchronize and compare the structure and data of your SQL Server, Oracle, and MySQL databases - DBTyP.NET by BYPsoft&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4318562544068519860-5744729517624410025?l=bypsoft.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Bypsoft/~4/JDMOLCkBmQo" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/Bypsoft/~3/JDMOLCkBmQo/great-help-authoring-tool.html</link><author>noreply@blogger.com (DLM@BYPsoft)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://bypsoft.blogspot.com/2008/02/great-help-authoring-tool.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4318562544068519860.post-8922165809796298138</guid><pubDate>Tue, 29 Jan 2008 08:56:00 +0000</pubDate><atom:updated>2008-01-29T01:03:00.930-08:00</atom:updated><title>MSDN Launches Code Galery</title><description>We found very interesting and wanted to share it with all of you that MSDN launches yesterday &lt;a href="http://code.msdn.microsoft.com/"&gt;Code Gallery&lt;/a&gt; dedicated to developers community for sharing samples, tools, articles, participating in discussions... &lt;br /&gt;Code Gallery has been used till now by internal Microsoft employess for sharing code samples and tools and now is availalble to the community. Anyone with LIVE ID can post there. Let's see how this will work.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4318562544068519860-8922165809796298138?l=bypsoft.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Bypsoft/~4/U7fpT7VCdSw" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/Bypsoft/~3/U7fpT7VCdSw/msdn-launches-code-galery.html</link><author>noreply@blogger.com (DLM@BYPsoft)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://bypsoft.blogspot.com/2008/01/msdn-launches-code-galery.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4318562544068519860.post-2218859926074965275</guid><pubDate>Sun, 27 Jan 2008 21:12:00 +0000</pubDate><atom:updated>2008-01-27T13:23:24.539-08:00</atom:updated><title>Primary keys without "real" tables</title><description>Have you queried some when information_schema.table_constraints or sys.key_constraints to discover a primary keys in your database? And as a result from &lt;span style="font-style:italic;"&gt;select * from information_schema.table_constraints&lt;/span&gt; you noticed that there are primary keys without TABLE_SCHEMA and TABLE_NAME in resultset? &lt;br /&gt;You can be confused with this but the explanation is simple. Your primary keys defined in table-valued functions have been listed here. So if you have a function defined as &lt;br /&gt;&lt;br /&gt;CREATE FUNCTION [dbo].[fnTest]&lt;br /&gt;  (&lt;br /&gt;   @foo int&lt;br /&gt;  )&lt;br /&gt;returns @resultTable table (test1 int, test2 int primary key (test1))&lt;br /&gt;as&lt;br /&gt;begin&lt;br /&gt; insert into @resultTable(test1, test2)&lt;br /&gt; select 1, @foo&lt;br /&gt;&lt;br /&gt; return&lt;br /&gt;end&lt;br /&gt;&lt;br /&gt;you will have as CONSTRAINT_NAME something like "PK__fnTest__2D27B809" and TABLE_SCHEMA and TABLE_NAME will be NULL.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4318562544068519860-2218859926074965275?l=bypsoft.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Bypsoft/~4/uoKOrvngyTQ" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/Bypsoft/~3/uoKOrvngyTQ/primary-keys-without-real-tables.html</link><author>noreply@blogger.com (DLM@BYPsoft)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://bypsoft.blogspot.com/2008/01/primary-keys-without-real-tables.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4318562544068519860.post-5904837770229024640</guid><pubDate>Fri, 23 Nov 2007 21:31:00 +0000</pubDate><atom:updated>2009-06-20T05:10:04.576-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Automatic Properties</category><category domain="http://www.blogger.com/atom/ns#">Visual Studio 2008</category><category domain="http://www.blogger.com/atom/ns#">.NET3.5</category><category domain="http://www.blogger.com/atom/ns#">.NET 2.0</category><title>Visual Studio 2008 - Automatic Properties in .NET 2.0</title><description>In the next couple of blogs we will present shortly some cool and interesting stuff we found about Visual Studio 2008 and .NET Framework 3.5. For all cool stuff see &lt;a href="http://msdn2.microsoft.com/en-us/vstudio/default.aspx"&gt;Visual Studio 2008 Official page.&lt;/a&gt;&lt;br /&gt;One of the first items we noticed and played around are Automatic Properties. What does it mean? Untill now it was common to define a class as&lt;br /&gt;   public class Test&lt;br /&gt;   {&lt;br /&gt;       public Test() { }&lt;br /&gt;      &lt;br /&gt;       private string _firstName;&lt;br /&gt;       public string FirstName&lt;br /&gt;       {&lt;br /&gt;           get { return _firstName; }&lt;br /&gt;           set { _firstName = value; }&lt;br /&gt;       }&lt;br /&gt;   }&lt;br /&gt;where for each property you usually had a private member variable.&lt;br /&gt;But now, Visual Studio 2008 and .NET framework 3.5 introduces Automatic Proeprties where your class can be defined as&lt;br /&gt;&lt;br /&gt;public class Test&lt;br /&gt;   {&lt;br /&gt;       public Test() { }&lt;br /&gt;       public string FirstName { get; set; }&lt;br /&gt;   }&lt;br /&gt;and you will notice that a private member variable is missing and a whole body of the property implementation itself (it has just a stub definition get; set; )&lt;br /&gt;Imagine how much you reduce a time for class scripting. Readability is also much better.&lt;br /&gt;But you will probably ask, where does .NET keep your data now? If you take a look at IL you will find that actually a compiler generates a field (variable) for you:&lt;br /&gt;'&lt;&gt;k__AutomaticallyGeneratedPropertyField0'. Whole construction is done just by using CompilerGeneratedAttribute. But, what we had in mind, this attribute is part of .NET Framework 2.0, what lead us to... Hey, Automatic Properties are possible in .NET 2.0 than?! And this is really true. Open your Visual Studio 2008 (Express), create such a construction, as a Target Framework for a project choose .NET Framework 2.0 and you will see it runs.  WOW!!! We like this very much and will use it in &lt;a href="http://www.bypsoft.com/Compare_Databases.html"&gt;DBTyP.NET&lt;/a&gt; as soon as possible.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4318562544068519860-5904837770229024640?l=bypsoft.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Bypsoft/~4/ltnZPZi34cY" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/Bypsoft/~3/ltnZPZi34cY/visual-studio-2008-automatic-properties.html</link><author>noreply@blogger.com (DLM@BYPsoft)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://bypsoft.blogspot.com/2007/11/visual-studio-2008-automatic-properties.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4318562544068519860.post-5296718321272593155</guid><pubDate>Tue, 13 Nov 2007 06:59:00 +0000</pubDate><atom:updated>2009-06-20T05:09:18.189-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Formatting Date</category><category domain="http://www.blogger.com/atom/ns#">ASP.NET</category><category domain="http://www.blogger.com/atom/ns#">cross site scripting</category><title>Formatting bounded DateTime fields in ASP.NET</title><description>&lt;span style="font-family:verdana;"&gt;&lt;span style="font-size:100%;"&gt;If you ever tried to work with BoundField object bound to a DateTime field with the DataFormatString, it must happen, that first time you didn't get your DateTime value proeprly formatted. &lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:&amp;quot;;font-size:11;color:lightblue;"   &gt;&lt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:11;color:maroon;"   &gt;asp&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:11;color:lightblue;"   &gt;:&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:11;color:maroon;"   &gt;BoundField&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:11;"  &gt;&lt;span style="font-style: italic;"&gt; &lt;/span&gt;&lt;span style="font-style: italic;color:red;" &gt;DataField&lt;/span&gt;&lt;span style="font-style: italic;color:lightblue;" &gt;="MyNotFormattedDate"&lt;/span&gt; &lt;span style="font-style: italic;color:red;" &gt;DataFormatString&lt;/span&gt;&lt;span style="font-style: italic;color:lightblue;" &gt;="{0:MM/dd/yyyy}"&lt;/span&gt;&lt;span style="font-style: italic;"&gt; &lt;/span&gt;&lt;span style="color:lightblue;"&gt;&lt;span style="font-style: italic;"&gt;/&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;span style="font-family:verdana;style="color:white;""&gt;Looks like that you have done everything correct but still getting your value formatted using its ToString() method like "11/13/2007 10:05:12 PM". So, the problem is not in your definition but in ASP.NET which tries to prevent cross site scripting attacks, the field value is HTMLEncoded. And HTMLEncoding occurs before applying any formatting, making your formatting string without effects. To Get your field formatted as you define, you should tell object not to use HTMLEncoding like &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:11;color:lightblue;"   &gt;&lt;&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:11;color:maroon;"   &gt;asp&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:11;color:lightblue;"   &gt;:&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:11;color:maroon;"   &gt;BoundField&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:11;"  &gt; &lt;span style="color:red;"&gt;DataField&lt;/span&gt;&lt;span style="color:lightblue;"&gt;="MyFormattedDate"&lt;/span&gt; &lt;span style="color:red;"&gt;DataFormatString&lt;/span&gt;&lt;span style="color:lightblue;"&gt;="{0:MM/dd/yyyy}"&lt;/span&gt;  &lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:11;color:red;"   &gt;HtmlEncode&lt;/span&gt;&lt;span style=";font-family:&amp;quot;;font-size:11;color:lightblue;"   &gt;&lt;span style="font-style: italic;"&gt;="false"/&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.bypsoft.com/Compare_Databases.html"&gt;Compare databases with the best tool - DBTYP.NET Studio.&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4318562544068519860-5296718321272593155?l=bypsoft.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Bypsoft/~4/irrwX7HIIoQ" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/Bypsoft/~3/irrwX7HIIoQ/formatting-bounded-datetime-fields-in.html</link><author>noreply@blogger.com (DLM@BYPsoft)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://bypsoft.blogspot.com/2007/11/formatting-bounded-datetime-fields-in.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4318562544068519860.post-8135143393092484903</guid><pubDate>Tue, 30 Oct 2007 21:05:00 +0000</pubDate><atom:updated>2009-06-20T05:08:15.375-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">default constraints</category><category domain="http://www.blogger.com/atom/ns#">default column values</category><category domain="http://www.blogger.com/atom/ns#">SQL Server</category><title>Changing default column values - SQL Server</title><description>&lt;span style="font-family:verdana;"&gt;A very common mistake in T-SQL  is trying to alter column definition trying to alter DEFAULT value (constraint) for that column. Probably, developers expect to have this because it is possible to assign default value for a column &lt;/span&gt;&lt;span style="font-family:verdana;"&gt;during table definition&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;:&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(255, 153, 0);"&gt;CREATE TABLE Table1 (&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(255, 153, 0);"&gt;    col1 INT NOT NULL DEFAULT (0),&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(255, 153, 0);"&gt;    col2 INT NOT NULL&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(255, 153, 0);"&gt;)&lt;/span&gt;&lt;br /&gt;Due to possibility to change column type from int to varchar(20) or null-ability with&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(255, 153, 0);"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;&lt;span style="font-style: italic; color: rgb(255, 153, 0);"&gt;ALTER TABLE&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;&lt;span style="font-style: italic; color: rgb(255, 153, 0);"&gt; Table1 &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;&lt;span style="font-style: italic; color: rgb(255, 153, 0);"&gt;ALTER COLUMN&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;&lt;span style="font-style: italic; color: rgb(255, 153, 0);"&gt; col2 VARCHAR(20) NULL&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;a lot of developers expect to be able to change a column default value with&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;&lt;span style="font-style: italic; color: rgb(255, 153, 0);"&gt;ALTER TABLE Table1 ALTER COLUMN col1 DEFAULT (1)&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;Error message is displayed trying to execute this: &lt;span style="font-style: italic;"&gt;"Incorrect syntax near the keyword 'DEFAULT'".&lt;br /&gt;Mistake.&lt;br /&gt;&lt;/span&gt;With a create table syntax mentioned earlier, &lt;/span&gt;&lt;span style="font-family:verdana;"&gt;SQL Server&lt;/span&gt;&lt;span style="font-family:verdana;"&gt; creates default constraint with auto generated name like&lt;span style="font-style: italic;"&gt; "DF__Table1__col1__57DD0BE4" &lt;/span&gt;and stores default value in&lt;span style="font-style: italic;"&gt; [text] &lt;/span&gt;column of&lt;span style="font-style: italic;"&gt; syscomments &lt;/span&gt;table&lt;span style="font-style: italic;"&gt;.&lt;br /&gt;&lt;/span&gt;So, to change a default value for a column you should change a constraint definition&lt;span style="font-style: italic;"&gt; &lt;/span&gt;and the only way to do that is to drop current constraint and create the new one:&lt;span style="font-style: italic;"&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 0);"&gt;ALTER TABLE table1 DROP CONSTRAINT &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 153, 0);font-family:verdana;" &gt;&lt;span style="font-style: italic;"&gt;DF__Table1__col1__57DD0BE4&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;&lt;span style="font-style: italic;"&gt;&lt;span style="color: rgb(255, 153, 0);"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 153, 0);"&gt;ALTER TABLE table1 WITH NOCHECK ADD CONSTRAINT [Df_test_col1] DEFAULT (1) FOR col1&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.bypsoft.com/Compare_Databases.html"&gt;Compare databases with the fastest tool - DBTYP.NET&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4318562544068519860-8135143393092484903?l=bypsoft.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Bypsoft/~4/wZ4SzycaRbM" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/Bypsoft/~3/wZ4SzycaRbM/changing-default-column-values-sql.html</link><author>noreply@blogger.com (DLM@BYPsoft)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://bypsoft.blogspot.com/2007/10/changing-default-column-values-sql.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4318562544068519860.post-1369841089306824011</guid><pubDate>Wed, 24 Oct 2007 19:10:00 +0000</pubDate><atom:updated>2008-12-13T23:07:03.797-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">datagridview</category><category domain="http://www.blogger.com/atom/ns#">check box</category><category domain="http://www.blogger.com/atom/ns#">.net</category><title>CheckBox header column for DatagridView</title><description>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_o8J6dw-I61k/Rx-ZzEGuAeI/AAAAAAAAAAM/Up0nyl0PV5s/s1600-h/CheckBoxHeader.gif"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="http://4.bp.blogspot.com/_o8J6dw-I61k/Rx-ZzEGuAeI/AAAAAAAAAAM/Up0nyl0PV5s/s320/CheckBoxHeader.gif" alt="" id="BLOGGER_PHOTO_ID_5124984003525214690" border="0" /&gt;&lt;/a&gt;&lt;span name="intelliTxt" id="intelliTXT"&gt;It is very common to have a list of items in &lt;span style="font-style: italic;"&gt;DataGridView&lt;/span&gt; with a check box in the first column where your later action will depend on user selection. This can be very easy done having a first column defined as &lt;span style="font-style: italic;"&gt;DataGridViewCheckBoxCell&lt;/span&gt; object. But, how can your customer select all items in the list (let's say you are working on an email client app and user wants to delete all of his 100 spams)?&lt;br /&gt;Unfortunately, .NET framework does not have a header class similar to &lt;span style="font-style: italic;"&gt;DataGridViewCheckBoxColumn&lt;/span&gt;. Such a problem lead us to the idea to generate a class which will have a check box item in header where developer can have a full control after user check/uncheck item in the header. Common action is to check/uncheck all items in the DataGridView depending if header is checked/unchecked.&lt;br /&gt;Whole article and class definition is available at &lt;a href="http://www.codeproject.com/cs/miscctrl/CheckBoxHeaderCell.asp"&gt;http://www.codeproject.com/useritems/CheckBoxHeaderCell.asp&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4318562544068519860-1369841089306824011?l=bypsoft.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Bypsoft/~4/9siSQj_FFCM" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/Bypsoft/~3/9siSQj_FFCM/checkbox-header-column-for-datagridview.html</link><author>noreply@blogger.com (DLM@BYPsoft)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/_o8J6dw-I61k/Rx-ZzEGuAeI/AAAAAAAAAAM/Up0nyl0PV5s/s72-c/CheckBoxHeader.gif" height="72" width="72" /><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://bypsoft.blogspot.com/2007/10/checkbox-header-column-for-datagridview.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4318562544068519860.post-2682432175019635060</guid><pubDate>Wed, 24 Oct 2007 11:36:00 +0000</pubDate><atom:updated>2007-10-24T04:45:20.838-07:00</atom:updated><title>Introduction</title><description>&lt;span style="font-family: verdana;"&gt;&lt;/span&gt;BYPsoft decided to be a part of programming community and brings a valuable expirence to others. You can find our posts in different forums all around the world. But now, it is time to collect all of this, and brings new and interesting topics, mainly from .NET area to publicity.  Besides writing on .NET stuff we will also promote our &lt;a href="http://www.bypsoft.com"&gt;database comparison tool&lt;/a&gt; &lt;a href="http://www.bypsoft.com"&gt;DBTyP.NET&lt;/a&gt;  here.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4318562544068519860-2682432175019635060?l=bypsoft.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Bypsoft/~4/-j1WEBcTHB4" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/Bypsoft/~3/-j1WEBcTHB4/introduction.html</link><author>noreply@blogger.com (DLM@BYPsoft)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://bypsoft.blogspot.com/2007/10/introduction.html</feedburner:origLink></item></channel></rss>
