<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Resources on Web, Mobile, SEO, Outsourcing and more. &#187; Databases</title>
	<atom:link href="http://blog.macronimous.com/category/databases/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.macronimous.com</link>
	<description>Web design, web programming, Smart phone development, Opensource , SEO etc</description>
	<lastBuildDate>Fri, 20 Jan 2012 06:01:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Tips for building better mySQL architecture</title>
		<link>http://blog.macronimous.com/building_better_mysql_architecture/</link>
		<comments>http://blog.macronimous.com/building_better_mysql_architecture/#comments</comments>
		<pubDate>Fri, 18 Jun 2010 12:07:18 +0000</pubDate>
		<dc:creator>Macronimous</dc:creator>
				<category><![CDATA[Best Practices]]></category>
		<category><![CDATA[Databases]]></category>
		<category><![CDATA[Web standards]]></category>
		<category><![CDATA[mySQL]]></category>
		<category><![CDATA[mySQL standards]]></category>
		<category><![CDATA[mySQL techniques]]></category>
		<category><![CDATA[rules for mySQL]]></category>

		<guid isPermaLink="false">http://blog.macronimous.com/?p=231</guid>
		<description><![CDATA[Have you thought about the right Data type which you should use? Is VARCHR bad? Do you review the SQL statements that you have written? Do you know what sort of impact indexes produce? How to leverage the query Caching techniques? Do you follow the naming standards? This simple slide teaches you the best mySQL [...]]]></description>
			<content:encoded><![CDATA[<p>Have you thought about the right Data type which you should use?<br />
Is VARCHR bad? Do you review the SQL statements that you have written? Do you know what sort of impact indexes produce? How to leverage the query Caching techniques? Do you follow the naming standards?</p>
<p>This simple slide teaches you the best mySQL practices to be followed up within 15 minutes.</p>
<div id="__ss_674234" style="width: 425px;"><object id="__sse674234" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="355" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowScriptAccess" value="always" /><param name="src" value="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=top20designtips-1228850767703439-8&amp;stripped_title=top-20-design-tips-for-mysql-data-architects-presentation" /><param name="name" value="__sse674234" /><param name="allowfullscreen" value="true" /><embed id="__sse674234" type="application/x-shockwave-flash" width="425" height="355" src="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=top20designtips-1228850767703439-8&amp;stripped_title=top-20-design-tips-for-mysql-data-architects-presentation" name="__sse674234" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<div style="padding:5px 0 12px"></div>
</div>
<p>Taking out the best from mySQL will improve the application performance, if its part of your day to day life get into these standards and practice the everyday. This presentation <a href="http://www.slideshare.net/">s</a> from <a href="http://www.slideshare.net/ronaldbradford" target="_blank">Ronald Bradford</a>. Thanks to Ronald for sharing.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.macronimous.com/building_better_mysql_architecture/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Database Optimization Techniques to Increase SQL SERVER Performance &#8211; Part III &#8211; Index on multiple columns</title>
		<link>http://blog.macronimous.com/database-optimization-techniques-to-increase-sql-server-performance-part-iii-index-on-multiple-columns/</link>
		<comments>http://blog.macronimous.com/database-optimization-techniques-to-increase-sql-server-performance-part-iii-index-on-multiple-columns/#comments</comments>
		<pubDate>Sat, 23 May 2009 03:21:16 +0000</pubDate>
		<dc:creator>Macronimous</dc:creator>
				<category><![CDATA[Databases]]></category>
		<category><![CDATA[web programming]]></category>
		<category><![CDATA[Performance Tuning]]></category>
		<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://blog.macronimous.com/database-optimization-techniques-to-increase-sql-server-performance-part-iii-index-on-multiple-columns/</guid>
		<description><![CDATA[Index on multiple columns for SQL performance Since clustered index reorders the table and arranges the data according to the index key, SQL Server allows only one clustered index per table. This results in amazing performance, when you only have to worry about one particular column. If you are in need to order the data [...]]]></description>
			<content:encoded><![CDATA[<p><em>Index on multiple columns for SQL performance</em></p>
<p>Since clustered index reorders the table and arranges the data according to the index key, SQL Server allows only one clustered index per table. This results in amazing performance, when you only have to worry about one particular column. If you are in need to order the data by more than one column. Since we canâ€™t use clustered index for multiple columns, unclustered index are used to gain a performance increase. We can specify a key value for every unclusterd index, plus the value obtained from cluster index; which acts as a pointer to the actual values when we need their data. If unclustered index is keyed on the values needed for a given task then query engine will never be in need of visiting the actual rows. After learning everything it needs from the index and scope then it will visit the qualifying rows.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.macronimous.com/database-optimization-techniques-to-increase-sql-server-performance-part-iii-index-on-multiple-columns/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Database Optimization Techniques to Increase SQL SERVER Performance &#8211; Part I &#8211; Increase SQL Server stored procedure performance</title>
		<link>http://blog.macronimous.com/database-optimization-techniques-to-increase-sql-server-performance-part-i-increase-sql-server-stored-procedure-performance/</link>
		<comments>http://blog.macronimous.com/database-optimization-techniques-to-increase-sql-server-performance-part-i-increase-sql-server-stored-procedure-performance/#comments</comments>
		<pubDate>Tue, 19 May 2009 10:21:36 +0000</pubDate>
		<dc:creator>Macronimous</dc:creator>
				<category><![CDATA[Databases]]></category>
		<category><![CDATA[web programming]]></category>
		<category><![CDATA[Performance Tuning]]></category>
		<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://blog.macronimous.com/database-optimization-techniques-to-increase-sql-server-performance-part-i-increase-sql-server-stored-procedure-performance/</guid>
		<description><![CDATA[1) Increase SQL Server stored procedure performance with following three tips: Â Â Â Â Â Â Â  Stored procedures plays a vital role in enhancing the performance of the database. The following three tips will help us to maximize database performance, when stored procedures are used. Use NOCOUNT: Â Â Â Â Â Â Â Â Â Â  If NOCOUNT option is turned off, on each operation: stored procedures [...]]]></description>
			<content:encoded><![CDATA[<p><strong>1) Increase SQL Server stored procedure performance with following three tips:</strong></p>
<p>Â Â Â Â Â Â Â  Stored procedures plays a vital role in enhancing the performance of the database. The following three tips will help us to maximize database performance, when stored procedures are used.</p>
<p><em>Use NOCOUNT</em>:<br />
Â Â Â Â Â Â Â Â Â Â  If NOCOUNT option is turned off, on each operation: stored procedures returns information concerning the number of rows affected and it increases network overhead. By default the Option NOCOUNT will be turned off.Â  If we turn on NOCOUNT option, stored procedures will block row count information so that it will reduce the network overhead occupied with information communication to the user.</p>
<p><em>Use return values:<br />
</em>Â Â Â Â Â Â Â Â Â Â  Queries are used to validate information or to return a single value. The return value of stored procedure can be used to retrieve a single value from a query and mainly useful when inserting a new record. The information necessary for retrieval is the primary key value. Place the statement â€œRETURN &lt;value&gt;â€ at the end of the query to utilize the return value in stored procedure.Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â <br />
Â Â Â Â Â Â Â Â <br />
<em>Optimize table access with NOLOCK:<br />
</em>Â Â Â Â Â Â Â Â Â  Transaction safety is not mandatory for most of the database access. This is apparent in MySQL database product that it does not contribute any record locking capability. Any access to a database table or a stored procedure in SQL will make tremendous performance gains when a table hint is used, which lets the SQL engine ignore and not perform locks for a given function.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.macronimous.com/database-optimization-techniques-to-increase-sql-server-performance-part-i-increase-sql-server-stored-procedure-performance/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>4 SQL injection methods every PHP programmer should be aware of.</title>
		<link>http://blog.macronimous.com/4-sql-injection-methods-every-php-programmer-should-be-aware-of/</link>
		<comments>http://blog.macronimous.com/4-sql-injection-methods-every-php-programmer-should-be-aware-of/#comments</comments>
		<pubDate>Mon, 02 Feb 2009 15:36:23 +0000</pubDate>
		<dc:creator>Macronimous</dc:creator>
				<category><![CDATA[4 series]]></category>
		<category><![CDATA[Databases]]></category>
		<category><![CDATA[PHP Programming]]></category>
		<category><![CDATA[web programming]]></category>
		<category><![CDATA[mySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[SQL Injection]]></category>

		<guid isPermaLink="false">http://blog.macronimous.com/4-sql-injection-methods-every-php-programmer-should-be-aware-of/</guid>
		<description><![CDATA[The Problem with all the codes is that the value is not sanitized before it will be sent as a query. All we need to make sure is that we passing the secure data into database. We can send secure data and prevent the data hacking by following the four prime SQL injection methods Function [...]]]></description>
			<content:encoded><![CDATA[<p>The Problem with all the codes is that the value is not sanitized before it will be sent as a query. All we need to make sure is that we passing the secure data into database. We can send secure data and prevent the data hacking by following the four prime SQL injection methods</p>
<p><strong>Function mysql_real_escape_string()</strong>Â :</p>
<p>In php, we have a function to deal with strings in MYSQL. (Modified Content)</p>
<p><strong>Function:<br />
</strong><em>mysql_real_escape_string()</em></p>
<p>Above function seize the string that will be used in the MYSQL query and return the same string with all SQL Injection attempts securely escaped. Above functions will assist to replace each troublesome quotes in SQL Injection query with &#8220;backslash \&#8221;</p>
<p><strong>Magic Quotes:</strong></p>
<p>Magic quotes will helps to escape from risky form data that is used in SQL Injection. It will automatically include &#8220;backslash \â€ for each special characters in SQL Injection query submitted.</p>
<p>Function to check whether Magic quotes are enabled on server is<br />
&#8220;get_magic_quotes_gpc function&#8221;</p>
<p>Example:<br />
After adding magic quotes<br />
TheÂ Â  \Â  becomesÂ  \\<br />
TheÂ Â  &#8216;Â  becomesÂ  \&#8217;<br />
TheÂ Â  &#8220;Â  becomesÂ  \&#8221;</p>
<p><strong>HTML Entities:</strong></p>
<p>HTML Entities function translates all applicable characters to HTML Entities and returns the encoded string.</p>
<p>Function used to translate is,</p>
<p><em>string htmlentities ( string $string [, int $quote_style=ENT_COMPAT [, string $charset [, bool $double_encode=true ]]] )</em></p>
<p>Example:Â </p>
<blockquote><p>Â <em>&lt;?php $str = &#8220;A &#8216;quote&#8217; is &lt;b&gt;bold&lt;/b&gt;&#8221;;</em></p></blockquote>
<p>// Outputs: A &#8216;quote&#8217; is &amp;lt;b&amp;gt;bold&amp;lt;/b&amp;gt;<br />
echo htmlentities($str);</p>
<p><strong>Validation:</strong></p>
<p><em>Length Validation:</em> Hamper of all the input fields in the application to the absolute minimum (7 to 15 characters). This will helps to block long queries input.<br />
<em>Input Validation:</em> Validate the data entered in the input field. For eg. Age field should accept only number and only 2 digits are allowed.<br />
<em>User Privileges:</em>Â  Create â€œAdmin userâ€ for each database and provide â€œcreate, drop and edit â€ tables privileges only to the â€œadmin user â€œ</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.macronimous.com/4-sql-injection-methods-every-php-programmer-should-be-aware-of/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Simplify Database admin with free MySQL tools</title>
		<link>http://blog.macronimous.com/simplify-database-admin-with-free-mysql-tools/</link>
		<comments>http://blog.macronimous.com/simplify-database-admin-with-free-mysql-tools/#comments</comments>
		<pubDate>Fri, 30 Jan 2009 11:35:38 +0000</pubDate>
		<dc:creator>Macronimous</dc:creator>
				<category><![CDATA[4 series]]></category>
		<category><![CDATA[Databases]]></category>
		<category><![CDATA[web programming]]></category>
		<category><![CDATA[Web tools]]></category>
		<category><![CDATA[MySQL tools]]></category>

		<guid isPermaLink="false">http://blog.macronimous.com/simplify-database-admin-with-free-mysql-tools/</guid>
		<description><![CDATA[Briefed below are four MySQL tools that are really interesting, and you would like to review them and test them for better DB management experience. They do fairly good job with the database admin management, and good alternates to phpMyadmin.Â  Â  1.Â SQL Buddy: A tool that allows you to get more work done for less, [...]]]></description>
			<content:encoded><![CDATA[<p>Briefed below are four MySQL tools that are really interesting, and you would like to review them and test them for better DB management experience. They do fairly good job with the database admin management, and good alternates to phpMyadmin.Â <br />
Â <br />
1.Â <a target="_blank" href="http://www.sqlbuddy.com/">SQL Buddy</a>: A tool that allows you to get more work done for less, the SQL Buddy tool though not very colorful and flashy, is very easy to navigate and fast loading as well. This saves a lot of time, and also allows using it the moment it is saved in the system. Also transferring of data between servers and .csv file export is also possible here.<br />
Â <br />
2.Â <a target="_blank" href="http://sidu.sourceforge.net/mysql-sidu.php">Sidu</a>: Another database admin tool with some wonderful features in it, including filtering and segregating of table list of a database. Also free controlling of table grouping, depending upon first few characters of the table name is made possible. This tool also assists in table access using the GUI feature. Data import is also possible to be done easily here.<br />
Â <br />
3.Â <a target="_blank" href="http://www.mydb-studio.com/">My DB Studio</a>: One of the best features that MyDB possesses is that it assists in SSH tunneling that helps in securing oneâ€™s connections, along with backup and restore database options. The tool also provides functionalities like creating, altering and deleting tables using WYSIWYG. The tool also aids in creating complete PHP scripts. This tool can be downloaded here.<br />
Â <br />
4.Â <a target="_blank" href="http://www.mysqlfront.de">MySQL Front</a>: Another GUI for MySQL, this tool has complete control over the graphic display giving us more options to present the information clearly. One of the highlights of this tool is that it can make direct contacts with the database, thereby storing login ids and passwords, in your hard disk. This saves you from losing time spent to login at various web interfaces. Basically, this tool is helpful for those designers who are not very lettered about databases and only have a basic idea about it.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.macronimous.com/simplify-database-admin-with-free-mysql-tools/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

