<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-5849265</id><updated>2012-01-28T07:07:42.550+05:30</updated><category term='Vista'/><category term='Remote desktop'/><category term='ASP.NET 2.0'/><category term='Microsoft'/><category term='Rajinikanth'/><category term='Cooking'/><category term='Javascript'/><category term='SQL Server'/><category term='SQL Server 2005'/><category term='Love Story'/><category term='Clustered Index'/><category term='Row offset table'/><category term='Tips'/><category term='india'/><category term='Fun'/><category term='Google'/><category term='SSMS'/><category term='ASP.NET'/><category term='SQLCMD'/><category term='C#'/><category term='Scripting'/><category term='Loans'/><category term='SQL server 2008'/><category term='zoho'/><category term='TEDx Chennai'/><category term='Bill Gates'/><category term='Backup'/><category term='General'/><category term='Indian Rupee Symbol'/><category term='Interview pointers'/><category term='Awards'/><category term='TEDxChennai'/><category term='Overseas'/><category term='Indian Cricket'/><category term='Tools'/><category term='Certifications'/><category term='Product Review'/><category term='Jambav'/><category term='cuil'/><category term='TechNet'/><category term='Dallas'/><category term='TED'/><category term='TEDx'/><category term='adventnet'/><category term='.NET'/><category term='toonDoo'/><title type='text'>Vadivel's blog</title><subtitle type='html'>SQL Server Tips n Tricks ...</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default?start-index=101&amp;max-results=100'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>479</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5849265.post-2220314201493977050</id><published>2011-11-06T12:06:00.000+05:30</published><updated>2011-11-09T07:22:59.442+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL server 2008'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server 2005'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><title type='text'>What does Avoid non SARGable where clause mean?</title><summary type='text'>
SARGable is the short form of  "Search ARGument able". A condition in the SQL Query is said to be SARGable if the database engine can take advantage of an available Indexes and do an INDEX SEEK instead of Table Scan / Index scan to speed up the execution of that query.

One of the major mistakes developers do which makes a query non-SARGable is they use functions directly on a column in the </summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/2220314201493977050/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=2220314201493977050' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/2220314201493977050'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/2220314201493977050'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2011/11/what-does-avoid-non-sargable-where.html' title='What does Avoid non SARGable where clause mean?'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-aP9WhlM1Nu8/TrX5M7OrHLI/AAAAAAAABTY/4QKwQJ3bitw/s72-c/ScreenHunter_05+Nov.+06+08.32.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5849265.post-3753754910196113132</id><published>2011-10-30T18:40:00.000+05:30</published><updated>2011-11-01T08:01:08.677+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL server 2008'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server 2005'/><title type='text'>Strip HTML using UDF in SQL Server 2005</title><summary type='text'>
I would strongly suggest to do this in the front end application (or) make use of CLR based function to do this job. But for simple well formed html string may be we can make use of the new XML datatype introduced in SQL Server 2005 as shown in the below example.


CREATE FUNCTION dbo.Strip_WellFormed_HTML
( 
 @inputString VARCHAR(MAX) 
) 
RETURNS VARCHAR(MAX) 
AS
BEGIN
 --Variable Declaration</summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/3753754910196113132/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=3753754910196113132' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/3753754910196113132'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/3753754910196113132'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2011/10/strip-html-using-udf-in-sql-server-2005.html' title='Strip HTML using UDF in SQL Server 2005'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/-grthE7UU_uQ/Tq1LXf_eo-I/AAAAAAAABSQ/rHr1Hy-UjpE/s72-c/ScreenHunter_01+Oct.+30+18.29.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5849265.post-4537470111717799158</id><published>2011-10-27T08:54:00.002+05:30</published><updated>2011-10-27T09:15:58.341+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL server 2008'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server 2005'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><category scheme='http://www.blogger.com/atom/ns#' term='SQLCMD'/><title type='text'>GO - Batch Separator</title><summary type='text'>
GO is not a SQL Statement or SQL Command. It is just a Batch Separator used by SQL Client tools like SQL Server Management Studio, SQL CMD etc.,

Extract from MSDN


"GO is not a Transact-SQL statement; it is a command recognized by the sqlcmd and osql utilities and SQL Server Management Studio Code editor.

SQL Server utilities interpret GO as a signal that they should send the current batch of</summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/4537470111717799158/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=4537470111717799158' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/4537470111717799158'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/4537470111717799158'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2011/10/go-batch-separator.html' title='GO - Batch Separator'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-JCUMnXvBzKc/TqjGKRVrMqI/AAAAAAAABRQ/zURhdyB3XvI/s72-c/ScreenHunter_03+Oct.+27+07.12.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5849265.post-6370609265422272373</id><published>2011-10-23T19:34:00.000+05:30</published><updated>2012-01-08T08:15:22.847+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL server 2008'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server 2005'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><title type='text'>IDENTITY in SQL Server</title><summary type='text'>
If you haven't heard about $IDENTITY in SQL Server check out the initial part of the scripts explained below to know what it does.

CREATE TABLE IdentityTest
(
  Sno INT IDENTITY(1,2) PRIMARY KEY,
  CreatedDate DATETIME
)
GO


INSERT INTO IdentityTest(CreatedDate) 
 SELECT Getdate()
Go 10


1. How to display the LAST inserted IDENTITY Value into a table in the current scope and session?

SELECT </summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/6370609265422272373/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=6370609265422272373' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/6370609265422272373'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/6370609265422272373'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2011/10/identity-in-sql-server.html' title='IDENTITY in SQL Server'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5849265.post-5658819317640931053</id><published>2011-10-17T21:16:00.000+05:30</published><updated>2011-10-18T21:05:04.990+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server 2005'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><title type='text'>SQL Server performance for NOT EXISTS vs NOT IN</title><summary type='text'>
Though "NOT EXISTS" and "NOT IN" sounds similar there is quite a lot of difference between them.  To start with check out the blog post by Mladen.

In continuation to what Mladen has already written I thought I would show the differences it makes on the Execution Plan and the IO / Time when we use NOT EXISTS or NOT IN in our queries. Let's see few of the differences between them.

Case 1: Lets </summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/5658819317640931053/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=5658819317640931053' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/5658819317640931053'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/5658819317640931053'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2011/10/sql-server-performance-for-not-exists.html' title='SQL Server performance for NOT EXISTS vs NOT IN'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-QlukZVRv7cI/TpxEbwB7ukI/AAAAAAAABQg/gJldoVXqWas/s72-c/notinvsnotexists1.gif' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5849265.post-336261555613812763</id><published>2011-10-13T22:19:00.000+05:30</published><updated>2011-10-13T22:49:53.637+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL server 2008'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server 2005'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><title type='text'>Timezone conversion UTC to CST with Daylight Savings</title><summary type='text'>
Converting UTC format date to Standard time of CST or EST is straight forward.

DECLARE @UTC_Date DATETIME
SET @UTC_Date = GETUTCDATE()
SELECT
 @UTC_Date AS [UTC],
 DATEADD(hh, -6, @UTC_Date) AS [CST - Standard Time],
 DATEADD(hh, -5, @UTC_Date) AS [EST - Standard Time]

But if the given date falls under daylight saving then the above calculation won't work.

So how is Daylight saving calculated</summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/336261555613812763/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=336261555613812763' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/336261555613812763'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/336261555613812763'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2011/10/timezone-conversion-utc-to-cst-with.html' title='Timezone conversion UTC to CST with Daylight Savings'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5849265.post-7223479471674989569</id><published>2011-10-11T08:16:00.000+05:30</published><updated>2011-10-11T09:12:26.092+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL server 2008'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server 2005'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><title type='text'>List all triggers in a database with its source code</title><summary type='text'>
Yesterday I saw a question in a forum asking for help in writing a script to list out all Triggers within a database. They also wanted to see the source code of each trigger.

Method 1: Which works in SQL Server 2000, SQL Server 2005 and SQL Server 2008.

But the problem with SYSCOMMENTS is it would truncate any text beyond 4000 characters. As the "Text" column which preserves the source code is</summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/7223479471674989569/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=7223479471674989569' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/7223479471674989569'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/7223479471674989569'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2011/10/list-all-triggers-in-database-with-its.html' title='List all triggers in a database with its source code'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5849265.post-2418536468044115222</id><published>2011-10-08T21:19:00.000+05:30</published><updated>2011-10-09T11:12:53.376+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL server 2008'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server 2005'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><title type='text'>Generate test (random) data for a table in SQL Server</title><summary type='text'>
The best product I have seen so far for generating random test records within a SQL Server database is Red Gate's Data Generator software. Its feature list is really impressive. Please be advised it is not a free software but it has a 14 days trial version to try it out.

If you are looking for a simple script to generate records for a standalone table may be try out the below scripts.

To </summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/2418536468044115222/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=2418536468044115222' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/2418536468044115222'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/2418536468044115222'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2011/10/generate-test-random-data-for-table-in.html' title='Generate test (random) data for a table in SQL Server'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5849265.post-1904606909388526051</id><published>2011-10-07T21:20:00.000+05:30</published><updated>2011-10-08T08:02:15.494+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL server 2008'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server 2005'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><title type='text'>How to find missing  (GAPS) sequence numbers</title><summary type='text'>
Few years back I wrote a solution for the same problem here. Recently I read an article by Henning on the similar topic which was interesting and informative.

After that, I was wondering why not just make use of a NUMBER table and a NOT IN to do this. I am providing the test script as-is and I haven't compared the performance yet between any other solutions out there :)

--Lets set up a sample </summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/1904606909388526051/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=1904606909388526051' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/1904606909388526051'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/1904606909388526051'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2011/10/how-to-find-missing-gaps-sequence.html' title='How to find missing  (GAPS) sequence numbers'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5849265.post-5872563362511904865</id><published>2011-10-06T07:40:00.000+05:30</published><updated>2011-10-06T08:35:49.136+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL server 2008'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server 2005'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><title type='text'>How to truncate all tables in a SQL Server database?</title><summary type='text'>
1. For those who are adamant to do it via scripts: :)

Few years back I have written a t-sql script to do this. I have disabled the constraints before truncating the data and once it is done have enabled it back. But I guess in the latest versions of SQL Server we might need to drop &amp; recreate the constraints (haven't tried it yet).

2. Generate Scripts:

If we need to return back to complete </summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/5872563362511904865/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=5872563362511904865' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/5872563362511904865'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/5872563362511904865'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2011/10/how-to-truncate-all-tables-in-sql.html' title='How to truncate all tables in a SQL Server database?'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5849265.post-3390690900993471709</id><published>2011-10-03T23:40:00.000+05:30</published><updated>2011-10-04T08:05:45.355+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL server 2008'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server 2005'/><title type='text'>TOP 100 PERCENT doesn't work within a VIEW</title><summary type='text'>
Way back in 2003, I wrote a blog post titled "Is sorting possible in views?". I came to know that by using TOP 100 PERCENT in our SELECT query we can make use of ORDER BY clause within a VIEW. I tested that out in a SQL Server 2000 machine. But till date I have never used that in any of the real project I have worked on :)

Recently I was trying out in a SQL Server 2005 machine using </summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/3390690900993471709/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=3390690900993471709' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/3390690900993471709'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/3390690900993471709'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2011/10/top-100-percent-doesnt-work-within-view.html' title='TOP 100 PERCENT doesn&apos;t work within a VIEW'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-3NqoHTo9R2E/Tonxq7xT0RI/AAAAAAAABP0/qeuVRRDwotA/s72-c/SortinginView1.gif' height='72' width='72'/><thr:total>2</thr:total><georss:featurename>Chennai, Tamil Nadu, India</georss:featurename><georss:point>13.060422 80.249583</georss:point><georss:box>12.936679000000002 80.0916545 13.184165 80.4075115</georss:box></entry><entry><id>tag:blogger.com,1999:blog-5849265.post-8456167748988216486</id><published>2011-10-03T11:59:00.000+05:30</published><updated>2011-10-02T12:34:41.077+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL server 2008'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server 2005'/><title type='text'>How to SPLIT a delimited string values in SQL Server 2005</title><summary type='text'>
There are many ways by which we can SPLIT delimited string in SQL Server. Few years back I have already done couple of posts regarding this. Let me link those here for quick reference:

1. SPLIT function in SQL Server - Method 1
2. SPLIT function in SQL Server - Method 2

In SQL Server 2005 there are interesting XML enhancements done. So for past few years I have been using this XML trick to </summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/8456167748988216486/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=8456167748988216486' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/8456167748988216486'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/8456167748988216486'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2011/10/how-to-split-delimited-string-values-in.html' title='How to SPLIT a delimited string values in SQL Server 2005'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/-xSJK6HcWW9Y/TogMEG6JcNI/AAAAAAAABPw/T6Pz1fJHZGY/s72-c/ParsingDelimitedStrings.gif' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5849265.post-2872108144772201032</id><published>2011-10-01T19:29:00.000+05:30</published><updated>2011-10-01T19:52:40.126+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='General'/><title type='text'>How to ask questions in Forums?</title><summary type='text'>
You have to provide as much information as possible in your question for somebody to provide you a valid answer!

If proper information is not provided then even the simplest of question would suddenly start looking very hard for the readers. Assume of a question like this in one of our India based forums.

"What is the shortest route to reach Tidel park"
So is this an easier question or a </summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/2872108144772201032/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=2872108144772201032' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/2872108144772201032'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/2872108144772201032'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2011/10/how-to-ask-questions-in-forums.html' title='How to ask questions in Forums?'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5849265.post-2212533421709758713</id><published>2011-10-01T09:49:00.000+05:30</published><updated>2011-10-01T19:46:13.243+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Clustered Index'/><category scheme='http://www.blogger.com/atom/ns#' term='Row offset table'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><title type='text'>Does Clustered Index physically orders the data within a table?</title><summary type='text'>
Quite a lot of time I have come across people saying "Clustered Index Physically sorts the data inside the table based on the Clustered Index Keys". It's not completely true!

The short answer to them is there is something called "Row offset Array" in a PAGE which manages the order of rows in a PAGE.

For a long answer with a sample script read on...

There can lot of rows inserted one after the</summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/2212533421709758713/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=2212533421709758713' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/2212533421709758713'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/2212533421709758713'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2011/09/does-clustered-index-physically-orders.html' title='Does Clustered Index physically orders the data within a table?'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/-e1XI0jhRbbU/ToaTu2i5WuI/AAAAAAAABPk/6S2sSqmHpaU/s72-c/clusteredPhysicalSort1.gif' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5849265.post-4313101407259151781</id><published>2011-09-29T08:21:00.000+05:30</published><updated>2011-09-29T08:21:29.787+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL server 2008'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server 2005'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><title type='text'>The conversion of a char data type to a datetime data type resulted in an out-of-range datetime value</title><summary type='text'>
1. If you haven't yet read the Ultimate Guide to Datetime Datatypes I would strongly suggest you to do it.

2. Understand that within SQL Server we can store DATETIME values between 01/01/1753 and 12/31/9999 only. If we try to enter a value which isn't this range then it would throw an error.

3. The way you handle dates will depend on the DATEFORMAT set for your login. Internally DATEFORMAT </summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/4313101407259151781/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=4313101407259151781' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/4313101407259151781'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/4313101407259151781'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2011/09/conversion-of-char-data-type-to.html' title='The conversion of a char data type to a datetime data type resulted in an out-of-range datetime value'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5849265.post-8659122835242586117</id><published>2011-09-28T07:41:00.000+05:30</published><updated>2011-09-29T08:22:05.533+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL server 2008'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server 2005'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><title type='text'>Difference between two dates in SQL Server</title><summary type='text'>

If we want to get the difference between two dates in SQL Server then we need to make use of DATEDIFF function. Showed few variations using DATEDIFF in my forum response here. So thought of logging in my blog as well for future reference :)



DECLARE @StartDate DATETIME
SET @StartDate = '2011-01-01 10:15:00.000'

Declare @EndDate DATETIME
SET @EndDate = '2011-01-01 11:35:00.000'

--To get only</summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/8659122835242586117/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=8659122835242586117' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/8659122835242586117'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/8659122835242586117'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2011/09/difference-between-two-dates-in-sql.html' title='Difference between two dates in SQL Server'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5849265.post-7840665241741597132</id><published>2011-09-26T12:44:00.000+05:30</published><updated>2011-09-25T19:06:42.500+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL server 2008'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server 2005'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><title type='text'>Script ALL SQL JOBs from SQL Server Management Studio</title><summary type='text'>

How to script all the SQL Jobs from SQL Server Management studio?

Step 1: Go to SQL Server Mgmt Studio.
Step 2: Expand SQL Server Agent &gt;&gt; Jobs
Step 3: Hit F7 (or) goto menu View &gt;&gt; Summary
Step 4: Now ALL jobs would be listed out there.
Step 5: Make use of Control key and choose all the JOBs you want to script. (OR) If you want to script everything press Ctrl + A
Step 6: Right click &gt;&gt; "</summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/7840665241741597132/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=7840665241741597132' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/7840665241741597132'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/7840665241741597132'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2011/09/script-all-sql-jobs-from-sql-server.html' title='Script ALL SQL JOBs from SQL Server Management Studio'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/-sBNT88Skwz4/Tn8uTaCN3eI/AAAAAAAABPc/9pUn4bju1GE/s72-c/ScriptAllJobs1.gif' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5849265.post-6650935370142684046</id><published>2011-09-25T11:30:00.000+05:30</published><updated>2011-09-25T11:30:37.896+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL server 2008'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server 2005'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><title type='text'>Calculating PERCENTILE in SQL Server</title><summary type='text'>
How to find 25th percentile or 75th percentile of given set of numbers (records in table) in SQL Server 2005?

In this post I will show couple of ways of calculating Percentile. I am not a statistician so i just took the help of YouTube to learn on how Percentile is actually calculated. During that course I found two different formulas for calculating Percentile! So I have provided couple of </summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/6650935370142684046/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=6650935370142684046' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/6650935370142684046'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/6650935370142684046'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2011/09/calculating-percentile-in-sql-server.html' title='Calculating PERCENTILE in SQL Server'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5849265.post-6981995343315850310</id><published>2011-09-23T08:05:00.000+05:30</published><updated>2011-09-23T08:05:38.078+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL server 2008'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server 2005'/><title type='text'>Find count of each character within a word / string using SQL Server 2005+</title><summary type='text'>
There was a question yesterday in a forum asking how to find each character count within a word. i.e., We need to count number of occurrences of each character within the given string.

For example: If the given string is 'Amala Paul' the result should be like this:

Characters, Total Occurance
A, 4
I, 2
m, 1
P, 1
u, 1

I gave a CTE Based Solution which would work on SQL Server 2005+ to achieve </summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/6981995343315850310/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=6981995343315850310' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/6981995343315850310'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/6981995343315850310'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2011/09/find-count-of-each-character-within.html' title='Find count of each character within a word / string using SQL Server 2005+'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-8VxZ34chN3k/TnvvkrqJLhI/AAAAAAAABPY/dini3bYmpT0/s72-c/CharacterCount.gif' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5849265.post-549621096068868039</id><published>2011-09-22T09:20:00.000+05:30</published><updated>2011-09-22T09:20:25.927+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SSMS'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><title type='text'>Script table as - ALTER TO is greyed out - SQL SERVER</title><summary type='text'>
One of my office colleague recently asked me why we are not able to generate ALTER Table script from SSMS. If we right click on the table and choose "Script Table As"  ALTER To option would be disabled or Greyed out. Is it a bug?





No it isn't a bug. ALTER To is there to be used for generating modified script of Stored Procedure, Functions, Views, Triggers etc., and NOT for Tables.

For </summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/549621096068868039/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=549621096068868039' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/549621096068868039'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/549621096068868039'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2011/09/script-table-as-alter-to-is-greyed-out.html' title='Script table as - ALTER TO is greyed out - SQL SERVER'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/-E_tQ0winbb4/TnqvPQ5B-2I/AAAAAAAABPU/kElw-cRfs8I/s72-c/AlterTo_GreyedOut.gif' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5849265.post-5946444230296353475</id><published>2011-09-21T22:48:00.000+05:30</published><updated>2011-09-22T08:50:36.797+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><title type='text'>How to add or modify IDENTITY property to an existing column in SQL Server?</title><summary type='text'>
Method 1: If there is no data in the table or column then use this method.

CREATE TABLE tblIdentityCheck
(
   SerialNo INT,
   FirstName VARCHAR(10)
)
GO

ALTER TABLE tblIdentityCheck DROP COLUMN SerialNo
GO

--By default, IDENTITY will start with 1 and increment by 1
Alter Table tblIdentityCheck Add SerialNo INT IDENTITY
GO

Method 2: If there is data in the table then create a new table with </summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/5946444230296353475/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=5946444230296353475' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/5946444230296353475'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/5946444230296353475'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2011/09/how-to-add-identity-to-existing-column.html' title='How to add or modify IDENTITY property to an existing column in SQL Server?'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-qQKaqbBNCfk/Tnqov_FbFUI/AAAAAAAABPM/RtUUDx631tQ/s72-c/Identity2.gif' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5849265.post-5087883570832589527</id><published>2011-09-21T09:08:00.000+05:30</published><updated>2011-09-21T09:08:05.580+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL server 2008'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server 2005'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><title type='text'>ISNULL would take the datatype and length of the parameter</title><summary type='text'>
In continuation to my earlier post about ISNULL and COALESCE I thought would write one of the basic difference between those two.

DECLARE @strTest VARCHAR(10)
SET @strTest = NULL

--it would return only 'Enter some'
SELECT ISNULL(@strTest, 'Enter some value')

In this case, ISNULL would return only any output which is lesser or equal to 10 characters because the variable used as its first </summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/5087883570832589527/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=5087883570832589527' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/5087883570832589527'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/5087883570832589527'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2011/09/isnull-would-take-datatype-and-length.html' title='ISNULL would take the datatype and length of the parameter'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5849265.post-7893739457537016884</id><published>2011-09-20T20:49:00.000+05:30</published><updated>2011-09-20T21:05:36.535+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server 2005'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><title type='text'>UPSERT (Insert and Update) in SQL Server 2005</title><summary type='text'>

In SQL Server 2008 using MERGE concept we can achieve INSERT and UPDATE in a single statement.

Many times we would have faced a scenario like if the key is present in the table then update that record. If the key is not present in the table then insert that as a new record. To do this we normally have to SELECT the record and see whether it EXISTS or not to decide whether to INSERT or UPDATE. </summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/7893739457537016884/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=7893739457537016884' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/7893739457537016884'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/7893739457537016884'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2011/09/upsert-insert-and-update-in-sql-server.html' title='UPSERT (Insert and Update) in SQL Server 2005'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5849265.post-8988413094350993079</id><published>2011-09-13T20:42:00.000+05:30</published><updated>2011-09-13T20:42:54.640+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><title type='text'>How to convert Roman numerals to Integer in C#</title><summary type='text'>
I was looking up the web all day but couldn't find any C# code for converting Roman letters or numerals to Integer value. The best thing i came across was this code by andyb but the problem was it has been written in PHP which I had no clue :)

So I had just taken the logic of AndyB and converted it into C# for anybody who cares for it.

Add this Namespace:

using System.Collections.Generic;

</summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/8988413094350993079/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=8988413094350993079' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/8988413094350993079'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/8988413094350993079'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2011/09/how-to-convert-roman-numerals-to.html' title='How to convert Roman numerals to Integer in C#'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5849265.post-6432581697708916216</id><published>2011-09-13T20:27:00.000+05:30</published><updated>2011-09-13T20:27:54.152+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><title type='text'>Convert Datetime into YYYYMMDDHHMMSS format</title><summary type='text'>

Converting Datatime value in YYYYMMDDHHMMSS format is not that complex as it sounds :)

SELECT CONVERT(VARCHAR(10),GETDATE(),112) --Date alone
SELECT CONVERT(VARCHAR(10),GETDATE(),108) - Time alone


The only problem is in the Time portion we would get ":" separator within HH:MM:SS. So we need to just replace colon with space and concatenate both this result to get an output in the expected </summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/6432581697708916216/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=6432581697708916216' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/6432581697708916216'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/6432581697708916216'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2011/09/convert-datetime-into-yyyymmddhhmmss.html' title='Convert Datetime into YYYYMMDDHHMMSS format'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5849265.post-7921027249293545091</id><published>2011-09-13T07:39:00.000+05:30</published><updated>2011-09-13T07:40:39.810+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><title type='text'>How many times a character (string) is repeated within a string</title><summary type='text'>
I am assuming in interviews this question "How to find the number of times a character or string is repeated within a string" seems to be asked quite often. May be that's why it is one of the popular question in forums :)

Normally people respond with a .NET based solution so i thought I would log a SQL Server based solution for this questions.


--Variable Declaration
DECLARE @strColumn VARCHAR</summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/7921027249293545091/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=7921027249293545091' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/7921027249293545091'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/7921027249293545091'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2011/09/how-many-times-character-string-is.html' title='How many times a character (string) is repeated within a string'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5849265.post-6831058077220967462</id><published>2011-09-12T20:52:00.000+05:30</published><updated>2011-09-12T21:00:07.046+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><title type='text'>ISNULL, COALESCE works with both INT and VARCHAR column</title><summary type='text'>There was a question saying ISNULL won't work for VARCHAR columns. I thought I would provide a very basic sample where ISNULL works with string column as well.--Sample table with a INT and a VARCHAR columnCreate table tbltest( intSno int, strName Varchar(10))GO--Key-in NULL for both columnsInsert into TblTest Values (null, null)GOSample queries:Select isnull(intSno, 0), isnull(strName, 0) from </summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/6831058077220967462/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=6831058077220967462' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/6831058077220967462'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/6831058077220967462'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2011/09/isnull-coalesce-works-with-both-int-and.html' title='ISNULL, COALESCE works with both INT and VARCHAR column'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5849265.post-6261025348936056754</id><published>2011-09-12T20:44:00.000+05:30</published><updated>2011-09-12T20:49:49.689+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL server 2008'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server 2005'/><title type='text'>Easiest way to export query result to Excel or CSV using SQL Server</title><summary type='text'>If we want to export the result of an ad-hoc query or Stored procedure from SQL Server Management Studio without writing any scripts then check this out.Option1::One of the easiest option if you are using SQL Server 2005 or above is to make use of the output format specifier in SQL Server Management Studio.Step1: Open SQL Server Management Studio.Step2: Click on New QueryStep3: Goto Menu Query &gt;&gt;</summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/6261025348936056754/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=6261025348936056754' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/6261025348936056754'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/6261025348936056754'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2011/09/easiest-way-to-export-query-result-to.html' title='Easiest way to export query result to Excel or CSV using SQL Server'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5849265.post-7120817274520144406</id><published>2011-09-12T07:55:00.000+05:30</published><updated>2011-09-12T08:48:07.157+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Indian Rupee Symbol'/><title type='text'>How to display Indian Rupee Symbol on a webpage</title><summary type='text'>I came to know about the site webRupee from Rajesh Kumar Parbat of DNS. The site explains in detail on how to display the Indian Rupee Symbol on a webpage.</summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/7120817274520144406/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=7120817274520144406' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/7120817274520144406'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/7120817274520144406'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2011/09/how-to-display-indian-rupee-symbol-on_11.html' title='How to display Indian Rupee Symbol on a webpage'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5849265.post-2802966842609561765</id><published>2011-09-11T09:27:00.000+05:30</published><updated>2011-09-11T09:34:07.135+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server 2005'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><title type='text'>Error Msg 128 The name is not permitted in this context. Only constants, expressions, or variables allowed here. Column names are not permitted</title><summary type='text'>Lets see how to avoid this error:Error Msg 128 The name is not permitted in this context. Only constants, expressions, or variables allowed here. Column names are not permittedWhen would we see this error?When we try to add a column as default value for another column. Create table tblSalesInfo( custId int, SaleDate datetime, IntimateDate datetime default (saledate - 10))GoSaledate is a column </summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/2802966842609561765/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=2802966842609561765' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/2802966842609561765'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/2802966842609561765'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2011/09/error-msg-128-name-is-not-permitted-in.html' title='Error Msg 128 The name is not permitted in this context. Only constants, expressions, or variables allowed here. Column names are not permitted'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5849265.post-5380362408132255427</id><published>2011-09-11T07:17:00.000+05:30</published><updated>2011-09-11T07:25:51.179+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL server 2008'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server 2005'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><title type='text'>How to call a Stored Procedure for each record in a table</title><summary type='text'>Without using Cursors how to call a stored procedure for each record in a table? This was a question asked in a forum yesterday. I come up with an alternate WHILE loop logic which is shown below:--Sample table to hold test input dataCreate table #temp_table(id int)GO--Lets insert some dummy dataInsert into #temp_table values (1)Insert into #temp_table values (2)Insert into #temp_table values (3)</summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/5380362408132255427/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=5380362408132255427' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/5380362408132255427'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/5380362408132255427'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2011/09/how-to-call-stored-procedure-for-each.html' title='How to call a Stored Procedure for each record in a table'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5849265.post-2860761737132995203</id><published>2011-09-07T06:56:00.000+05:30</published><updated>2011-09-07T07:07:33.934+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL server 2008'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server 2005'/><title type='text'>SQL Server 2005 + finding 2nd highest salary</title><summary type='text'>Actually have blogged about this few years back here. But recently I ran into an issue with that script. i.e., If there are more than one person getting the same salary then the results weren't coming out properly.Let me make use of the same table structure as shown in that post.-- Table StructureCreate table employee([Name] varchar(20),Sal  int)Go-- Populate Sample  RecordsInsert into employee </summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/2860761737132995203/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=2860761737132995203' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/2860761737132995203'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/2860761737132995203'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2011/09/sql-server-2005-finding-2nd-highest.html' title='SQL Server 2005 + finding 2nd highest salary'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5849265.post-8273079653803706143</id><published>2011-09-04T07:32:00.000+05:30</published><updated>2011-09-04T07:41:17.193+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><title type='text'>Calculating total of all MM:SS</title><summary type='text'>Yesterday in a forum I found a question asking for a way to calculate the total of MM:SS in SQL Server. More over that column is being maintained as a "Varchar" type!!Below is the query i suggested as my suggestion. Please note, the below query would work as long as Minutes (MM) is lesser than 60.--Sample table structureCREATE TABLE SumTimeTest(	id varchar(4),	timeValue varchar(5))GO--Test </summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/8273079653803706143/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=8273079653803706143' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/8273079653803706143'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/8273079653803706143'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2011/09/calculating-total-of-all-mmss.html' title='Calculating total of all MM:SS'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5849265.post-2263511647919883927</id><published>2011-09-03T06:53:00.000+05:30</published><updated>2011-09-03T07:03:20.071+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><title type='text'>Error converting data type varchar to float</title><summary type='text'>One of the forum member had posted a question yesterday saying she was trying to use a CASE statement and it was throwing an error as "Error converting data type varchar to float".Let us reproduce the scenario and see the way to fix it.--Sample tableCreate table dbo.ts_vouchers(	Lodging_Amount float)--Test recordsInsert into dbo.ts_vouchers values (0)Insert into dbo.ts_vouchers values (10)</summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/2263511647919883927/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=2263511647919883927' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/2263511647919883927'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/2263511647919883927'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2011/09/error-converting-data-type-varchar-to.html' title='Error converting data type varchar to float'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5849265.post-4743548640324550278</id><published>2011-08-30T20:21:00.000+05:30</published><updated>2011-08-30T20:29:39.864+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL server 2008'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server 2005'/><title type='text'>List ALL triggers within a Database</title><summary type='text'>In SQL Server 2005 and above, we can make use of SYS.TRIGGERS to list all the Triggers within a database. The below query would help us list the trigger name and the table name on which this trigger is written.SELECT    [name] AS Trigger_Name,   OBJECT_NAME(Parent_ID) FROM    SYS.TRIGGERSORDER BY   Trigger_Name</summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/4743548640324550278/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=4743548640324550278' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/4743548640324550278'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/4743548640324550278'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2011/08/list-all-triggers-within-database.html' title='List ALL triggers within a Database'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5849265.post-273835881898989732</id><published>2011-08-28T11:38:00.000+05:30</published><updated>2011-08-28T11:49:50.784+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server 2005'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><title type='text'>Search a specific column within ALL tables</title><summary type='text'>This stored procedure takes two parameters:1. Column name to be searched within all tables2. string/value which needs to be searched within all tables.CREATE PROCEDURE usp_SearchAllTables_InExistingDB(	@colName varchar(100),	@colValue varchar(1000))AsBEGIN	-- Copyright © 2011 Vadivel Mohanakrishnan. All rights reserved.	-- Purpose: To search a particular column of all tables for a given search</summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/273835881898989732/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=273835881898989732' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/273835881898989732'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/273835881898989732'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2011/08/search-specific-column-within-all.html' title='Search a specific column within ALL tables'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5849265.post-2561481699178774246</id><published>2011-08-20T07:44:00.000+05:30</published><updated>2011-08-20T07:48:25.644+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL server 2008'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server 2005'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><title type='text'>Adding current datetime to your DB backup filename</title><summary type='text'>DECLARE @Dbname VARCHAR(20)DECLARE @Date DATETIMEDECLARE @test VARCHAR(30)SET @Dbname = 'Test'SET @Date = GETDATE()SET @test = 'c:\test' + @DbnameSELECT @test = @test + CONVERT(VARCHAR(10), @Date, 112) + '.bak'BACKUP DATABASE @Dbname TO DISK = @test</summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/2561481699178774246/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=2561481699178774246' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/2561481699178774246'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/2561481699178774246'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2011/08/adding-current-datetime-to-your-db.html' title='Adding current datetime to your DB backup filename'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5849265.post-2609050104969410381</id><published>2011-08-20T06:57:00.000+05:30</published><updated>2011-08-20T07:28:41.136+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL server 2008'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server 2005'/><category scheme='http://www.blogger.com/atom/ns#' term='SQLCMD'/><category scheme='http://www.blogger.com/atom/ns#' term='Backup'/><title type='text'>Database Backup from Command prompt</title><summary type='text'>We can make use of "SQLCMD" to execute scripts from Command prompt. If you are new to it I would suggest to go over my introductory posts on them here.Example 1: Writing a batch file with the TSQL script to backup a DB.Save the below sample script as a batch file (lets say, DBBackup.Bat).echo offclsset /p DBNAME=Enter database name:set BACKUP=c:\%DBNAME%.bakset SQLSERVERNAME=</summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/2609050104969410381/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=2609050104969410381' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/2609050104969410381'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/2609050104969410381'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2011/08/database-backup-from-command-prompt.html' title='Database Backup from Command prompt'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5849265.post-6748929785039151743</id><published>2011-08-19T07:50:00.000+05:30</published><updated>2011-08-20T07:52:57.219+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL server 2008'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server 2005'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><title type='text'>Convert an 8 digit integer into hhmmss format</title><summary type='text'>Declare @intSeconds intSet @intSeconds = 99999999SELECT     Total_Duration = CONVERT( VARCHAR, RIGHT('00000' + RTRIM(@intSeconds/3600), 5)      + 'hrs ' + RIGHT('00' + RTRIM((@intSeconds % 3600) / 60), 2)      + 'mins ' + RIGHT('00' + RTRIM((@intSeconds % 3600) % 60), 2)      + 'secs ')</summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/6748929785039151743/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=6748929785039151743' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/6748929785039151743'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/6748929785039151743'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2011/08/convert-8-digit-integer-into-hhmmss.html' title='Convert an 8 digit integer into hhmmss format'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5849265.post-7562371578961264595</id><published>2010-03-02T09:00:00.001+05:30</published><updated>2010-03-02T09:05:38.318+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='TechNet'/><category scheme='http://www.blogger.com/atom/ns#' term='Microsoft'/><title type='text'>Experts says Oracle slow on patching security issues</title><summary type='text'>Check out this article Zero-day details underscore criticism of Oracle“They (Oracle) are one of the slowest to get things patched. It is astonishing how backwards they are in terms of fixing security issues.” -- David Litchfield, co-founder and principal security consultant, NGSSoftwareThe Apache module, which contains the flaw, allows Web applications to use the Procedural Language/Structured </summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/7562371578961264595/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=7562371578961264595' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/7562371578961264595'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/7562371578961264595'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2010/03/experts-says-oracle-slow-on-patching.html' title='Experts says Oracle slow on patching security issues'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5849265.post-985075593650532900</id><published>2010-03-02T08:51:00.000+05:30</published><updated>2010-03-02T08:57:22.909+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='TechNet'/><category scheme='http://www.blogger.com/atom/ns#' term='Microsoft'/><title type='text'>Experts talking about security on MAC vs PC</title><summary type='text'>Interesting read ... I urge you guys to spend some quality time going through this."If you look at the number of published vulnerabilities in software and the number of users and compare Windows versus Mac OS you will discover that Mac OS has far more published vulnerabilities per user than Windows does so I think the data pretty much speaks for itself." -- 3ric Johanson, security researcher</summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/985075593650532900/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=985075593650532900' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/985075593650532900'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/985075593650532900'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2010/03/experts-talking-about-security-on-mac.html' title='Experts talking about security on MAC vs PC'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5849265.post-4528379036793283064</id><published>2010-03-02T08:46:00.000+05:30</published><updated>2010-03-02T08:50:45.867+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='TechNet'/><category scheme='http://www.blogger.com/atom/ns#' term='Microsoft'/><title type='text'>Chrome learns from IE8</title><summary type='text'>Chrome is learning from IE !! Google nothing to be ashamed off ... feel free to learn from the leader :)Google yesterday announced it has added several new security features to Chrome, including two that were first popularized by rival Microsoft in Internet Explorer 8 last year.</summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/4528379036793283064/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=4528379036793283064' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/4528379036793283064'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/4528379036793283064'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2010/03/chrome-learns-from-ie8.html' title='Chrome learns from IE8'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5849265.post-8812034230576738412</id><published>2010-03-02T08:40:00.000+05:30</published><updated>2010-03-02T08:46:20.657+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='TechNet'/><category scheme='http://www.blogger.com/atom/ns#' term='Microsoft'/><title type='text'>Deployability</title><summary type='text'>Find below some useful articles on Deployability.Microsoft Deployment Toolkit (MDT) 2010Microsoft Assessment and Planning ToolkitChoosing a Deployment StrategyThe Windows Automated Installation Kit (AIK) for Windows 7Microsoft Application Compatibility Toolkit 5.5Understanding Application CompatibilityFive Steps to Windows 7 Application ReadinessDeploying Windows 7 from A to ZWindows 7 Enterprise</summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/8812034230576738412/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=8812034230576738412' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/8812034230576738412'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/8812034230576738412'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2010/03/deployability.html' title='Deployability'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5849265.post-6840002652831750611</id><published>2010-01-07T22:13:00.000+05:30</published><updated>2010-01-07T22:17:10.198+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Microsoft'/><title type='text'>Windows 7 related</title><summary type='text'>Windows 7 relatedDownload the new eBook on Deploying Windows 7 - http://go.microsoft.com/?linkid=969126577 Windows 7 Tips -http://technet.microsoft.com/en-in/magazine/2009.10.77windows(en-us).aspxGroovy Security in Windows 7 - http://technet.microsoft.com/en-in/magazine/2009.10.win7security(en-us).aspxInside Windows 7 User Account Control - http://technet.microsoft.com/en-au/magazine/2009.07.</summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/6840002652831750611/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=6840002652831750611' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/6840002652831750611'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/6840002652831750611'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2010/01/windows-7-related.html' title='Windows 7 related'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5849265.post-1130648288830017559</id><published>2010-01-07T22:09:00.000+05:30</published><updated>2010-01-07T22:12:25.395+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Microsoft'/><title type='text'>Competition News</title><summary type='text'>1. Firefox flaws account for 44% of all browser bugs -http://www.computerworld.com/s/article/9140582/Firefox_flaws_account_for_44_of_all_browser_bugs 2. Snow Leopard's more secure than Leopard, but it's not as secure as Vista or Windows 7 - http://www.computerworld.com/s/article/9137992/Apple_missed_security_boat_with_Snow_Leopard_says_researcher?taxonomyId=17&amp;pageNumber=2 3. Security Essentials </summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/1130648288830017559/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=1130648288830017559' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/1130648288830017559'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/1130648288830017559'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2010/01/competition-news.html' title='Competition News'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5849265.post-4924200673707522302</id><published>2010-01-06T06:54:00.000+05:30</published><updated>2010-01-06T07:01:59.618+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Microsoft'/><title type='text'>Microsoft Security Development Lifecycle (SDL)</title><summary type='text'>Educate yourself and your organization on how to build more secure applications. The SDL Developer Starter Kit offers content, labs, and training to help you establish a standardized approach to roll out the Microsoft Security Development Lifecycle (SDL) in your organization - http://msdn.microsoft.com/hi-in/security/sdl-starter-kit(en-us).aspx The Trustworthy Computing Security Development </summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/4924200673707522302/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=4924200673707522302' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/4924200673707522302'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/4924200673707522302'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2010/01/microsoft-security-development.html' title='Microsoft Security Development Lifecycle (SDL)'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5849265.post-3911719796797975986</id><published>2009-11-30T07:27:00.000+05:30</published><updated>2009-11-30T09:45:09.779+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='TEDxChennai'/><category scheme='http://www.blogger.com/atom/ns#' term='TEDx'/><category scheme='http://www.blogger.com/atom/ns#' term='TED'/><category scheme='http://www.blogger.com/atom/ns#' term='TEDx Chennai'/><title type='text'>My Experience with TEDxChennai - Nov 29th 2009</title><summary type='text'>TEDxChennai happened in IIT Madras on November 29th 2009. This is the first time I am attending one such event as the cost (Rs. 1028) was affordable for me :)If at all you haven't known, a ticket in TEDIndia was approx Rs. 1 Lakh and 10 thousand. It seems its 1/3rd cheaper than what it used to cost in California (approx 3L phew).Overall it was an mind blowing experience and I loved every moment </summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/3911719796797975986/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=3911719796797975986' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/3911719796797975986'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/3911719796797975986'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2009/11/tedxchennai-nov-29th-2009.html' title='My Experience with TEDxChennai - Nov 29th 2009'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5849265.post-72540496104014249</id><published>2009-05-15T07:50:00.001+05:30</published><updated>2009-05-15T07:50:46.312+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><title type='text'>How to find when SQL Server was last started?</title><summary type='text'>When ever SQL Server is (re)started ‘TempDB’ gets recreated. So the below query should give us the time of when ‘SQL Server’ was last started.       Select create_date from sys.databases where [name] = 'tempdb'        When a SQL Server starts all the tasks which it initiates makes an entry in sysprocesses table with its ‘login time’. That said, all we need to do is find the least login_time which</summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/72540496104014249/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=72540496104014249' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/72540496104014249'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/72540496104014249'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2009/05/how-to-find-when-sql-server-was-last.html' title='How to find when SQL Server was last started?'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5849265.post-6862333696365503707</id><published>2009-05-12T08:44:00.001+05:30</published><updated>2009-05-12T08:44:33.605+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='General'/><title type='text'>‘The Downfall’ of AGILE Hitler...</title><summary type='text'>  This one is hilarious :) I couldn’t stop laughing after watching this short cooked up movie.  If you are in IT for atleast one year then you would love this as much as I did :)  </summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/6862333696365503707/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=6862333696365503707' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/6862333696365503707'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/6862333696365503707'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2009/05/downfall-of-agile-hitler.html' title='‘The Downfall’ of AGILE Hitler...'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh3.ggpht.com/_Chugnpd_fEI/SgjpmHVq-wI/AAAAAAAAAmU/6GIaWGcu3iA/s72-c/videoccae1e2efb99%5B3%5D.jpg?imgmax=800' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5849265.post-3146032308465088509</id><published>2009-05-12T08:05:00.001+05:30</published><updated>2009-05-12T08:05:12.624+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><title type='text'>Arithmetic overflow error converting IDENTITY to data type int.</title><summary type='text'>Today I ran into the below error:     Msg 8115, Level 16, State 1, Line 1        Arithmetic overflow error converting IDENTITY to data type int.       Arithmetic overflow occurred.   As the error suggests in the table the max limit of INT (2147483647) has reached.  For the sake of people who haven't seen this error before let me simulate it.  Create table MaxInt     (       sno int identity,</summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/3146032308465088509/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=3146032308465088509' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/3146032308465088509'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/3146032308465088509'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2009/05/arithmetic-overflow-error-converting.html' title='Arithmetic overflow error converting IDENTITY to data type int.'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5849265.post-6898579421453204874</id><published>2009-05-03T20:57:00.001+05:30</published><updated>2009-05-04T05:36:10.411+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Tools'/><category scheme='http://www.blogger.com/atom/ns#' term='Google'/><title type='text'>Google’s ROBO …</title><summary type='text'>digg_url = "http://vadivel.blogspot.com/2009/05/googles-robo.html";digg_title = "Google’s ROBO …";digg_bgcolor = "#EEEECC";digg_skin = "normal";digg_url = undefined;digg_title = undefined;digg_bgcolor = undefined;digg_skin = undefined;Only yesterday I came to know that we can add webtoim@gmail.com to our Gtalk contact list and start chatting with that BOT.  I understand that now, instead of </summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/6898579421453204874/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=6898579421453204874' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/6898579421453204874'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/6898579421453204874'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2009/05/googles-robo.html' title='Google’s ROBO …'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5849265.post-7251153853394318049</id><published>2009-05-03T19:35:00.001+05:30</published><updated>2009-05-03T19:35:43.061+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Microsoft'/><title type='text'>Microsoft Surface Computing …</title><summary type='text'>Check out these videos to understand about Microsoft Surface computing. Both the videos are really cool I loved it thoroughly.                   Technorati Tags: Microsoft Surface Computing  </summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/7251153853394318049/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=7251153853394318049' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/7251153853394318049'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/7251153853394318049'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2009/05/microsoft-surface-computing.html' title='Microsoft Surface Computing …'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh3.ggpht.com/_Chugnpd_fEI/Sf2ksVhEzhI/AAAAAAAAAk8/-XMkzlqlsB8/s72-c/videob54d88dbf3b8%5B5%5D.jpg?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5849265.post-3595605427815525157</id><published>2009-05-03T05:18:00.001+05:30</published><updated>2009-05-03T06:10:28.414+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Tips'/><category scheme='http://www.blogger.com/atom/ns#' term='General'/><title type='text'>Blocking unwanted sites using your HOST file…</title><summary type='text'>For past few days my laptop got quite a few malwares / virus. I somehow got it cleaned using few free anti-virus softwares / with the help of various articles in the Internet.  During the course of research!!! I stumbled upon a very interesting article on how to make use of your HOST file to protect your machine. Check out http://www.mvps.org/winhelp2002/hosts.htm  This Host file for Windows, has</summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/3595605427815525157/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=3595605427815525157' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/3595605427815525157'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/3595605427815525157'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2009/05/blocking-unwanted-sites-using-your-host.html' title='Blocking unwanted sites using your HOST file…'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5849265.post-573994019489558939</id><published>2009-05-03T04:57:00.001+05:30</published><updated>2009-05-03T05:07:03.520+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><title type='text'>Avoid using functions in WHERE Clause!!</title><summary type='text'>   Thumb Rule is as much as possible avoid using FUNCTIONS within WHERE Clause of your SQL Query.   Let me show you some very basic examples to substantiate this theory.  --Table schema    Create table tblDateExample (dtStartDate datetime)     Go         -- Populate dummy records into the table     INSERT tblDateExample VALUES ('2009-04-15 12:00:00.000')     INSERT tblDateExample VALUES ('2009-04</summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/573994019489558939/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=573994019489558939' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/573994019489558939'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/573994019489558939'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2009/05/avoid-using-functions-in-where-clause.html' title='Avoid using functions in WHERE Clause!!'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5849265.post-7950854943752773435</id><published>2009-05-01T08:44:00.000+05:30</published><updated>2009-05-04T05:47:04.561+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><title type='text'>The query has exceeded the maximum number of result sets that can be displayed in the results grid. Only the first 100 result sets are displayed ...</title><summary type='text'>digg_url = "http://vadivel.blogspot.com/2009/04/query-has-exceeded-maximum-number-of.html";digg_title = "The query has exceeded the maximum number of result sets that can be displayed in the results grid. Only the first 100 result sets are displayed ...";digg_bgcolor = "#EEEECC";digg_skin = "normal";digg_url = undefined;digg_title = undefined;digg_bgcolor = undefined;digg_skin = undefined;   The </summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/7950854943752773435/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=7950854943752773435' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/7950854943752773435'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/7950854943752773435'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2009/04/query-has-exceeded-maximum-number-of.html' title='The query has exceeded the maximum number of result sets that can be displayed in the results grid. Only the first 100 result sets are displayed ...'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_Chugnpd_fEI/SfpqoCkoMAI/AAAAAAAAAkw/FHggHluKhvI/s72-c/SQL2005_Result.GIF' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5849265.post-3043771676106154796</id><published>2009-05-01T07:43:00.000+05:30</published><updated>2009-05-01T07:46:01.888+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Fun'/><title type='text'>Check out this comment ... really funny</title><summary type='text'>Got this code comment as a email fwd. Its really funny :)//// Dear maintainer://// Once you are done trying to 'optimize' this routine,// and have realized what a terrible mistake that was,// please increment the following counter as a warning// to the next guy://// total_hours_wasted_here = 16//</summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/3043771676106154796/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=3043771676106154796' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/3043771676106154796'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/3043771676106154796'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2009/04/check-out-this-comment-really-funny.html' title='Check out this comment ... really funny'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5849265.post-7777747956253063689</id><published>2009-04-18T10:38:00.001+05:30</published><updated>2009-04-18T10:52:48.507+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><title type='text'>Able to use sp_executesql without declaring variables!</title><summary type='text'>From Denis blog I came to know recently that we are able to use sp_executesql without declaring the variables! It really sounded strange to me. I thought it to be one another bug :)So thought would dig deep into this and see what best I can conclude.--Dummy table schemaCreate table tblQuestion1(sno int identity,fname varchar(50))Go --Lets add some dummy records into the table Insert into </summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/7777747956253063689/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=7777747956253063689' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/7777747956253063689'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/7777747956253063689'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2009/04/able-to-use-spexecutesql-without.html' title='Able to use sp_executesql without declaring variables!'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5849265.post-440694893129614806</id><published>2009-04-11T21:08:00.001+05:30</published><updated>2009-04-11T21:11:39.700+05:30</updated><title type='text'>Indian Elections</title><summary type='text'>For a longtime I was debating with my father (a communist – CPI) on why can’t there be a provision to vote online? Today I was excited when I saw similar thoughts with Abhishek Kant.  So i decided to record my thoughts/voice as well on this topic.  These were the points based on which I was thinking on the lines of ‘Online Voting System’.  1. On the Election day unless we go very early in the </summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/440694893129614806/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=440694893129614806' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/440694893129614806'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/440694893129614806'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2009/04/indian-elections.html' title='Indian Elections'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5849265.post-1725856786424662029</id><published>2009-04-11T01:59:00.001+05:30</published><updated>2009-04-11T02:00:09.625+05:30</updated><title type='text'>How to create Google finance like Charts?</title><summary type='text'>From the day I saw Google Finance i was thinking what tool they would be using to display those cool, user friendly charts! After hours of searching on the web I learned that they were using some sort of custom in-house build tool/logic.  Fair enough, but that doesn’t solve my problem. I wanted to create some graphs similar to that for few of my projects. On further ‘googling’, just recently I </summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/1725856786424662029/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=1725856786424662029' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/1725856786424662029'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/1725856786424662029'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2009/04/how-to-create-google-finance-like.html' title='How to create Google finance like Charts?'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5849265.post-7262573469676678210</id><published>2009-04-10T11:21:00.001+05:30</published><updated>2009-04-10T11:24:12.048+05:30</updated><title type='text'>List of some essential software one would need!</title><summary type='text'>1. Browser – IE 8.0 and/or Google Chrome  2. Anti-Virus – One of the lightweight software is AVG. Check it out @ http://free.grisoft.com/  3. Offline thesaurus and dictionary - http://wordweb.info/free/  This is a cool app which sits on your task bar. For finding meaning of a word just block the word and press CTRL + Right click on it.  4. Photo Organizer – I love Picasa and am using it for quite</summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/7262573469676678210/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=7262573469676678210' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/7262573469676678210'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/7262573469676678210'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2009/04/list-of-some-essential-software-one.html' title='List of some essential software one would need!'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5849265.post-3969529798601922742</id><published>2009-04-10T06:13:00.001+05:30</published><updated>2009-04-10T06:13:13.701+05:30</updated><title type='text'>Will start blogging again ….</title><summary type='text'>This post is just to inform you all that I will start blogging here again very soon.  Thanks for all those who were waiting patiently all this while :)  </summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/3969529798601922742/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=3969529798601922742' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/3969529798601922742'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/3969529798601922742'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2009/04/will-start-blogging-again.html' title='Will start blogging again ….'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5849265.post-9220706792007923394</id><published>2008-09-04T05:46:00.000+05:30</published><updated>2008-09-04T09:35:08.298+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Google'/><title type='text'>Google Chrome ...</title><summary type='text'>Yesterday morning I read about Google Chrome (Beta) and thought of trying it out immediately. I downloaded the installer from here. As usual Google's installer size is pretty less ... its only 475 KB! I guess while installing its actual size would be in few MB's.The installation was pretty fast and no surprises here as that's expected of Google :) Few things which i found interesting in this new </summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/9220706792007923394/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=9220706792007923394' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/9220706792007923394'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/9220706792007923394'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2008/09/google-chrome.html' title='Google Chrome ...'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_Chugnpd_fEI/SL8rs9FvnCI/AAAAAAAAAOY/rOGveoBDOv8/s72-c/Chrome1.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5849265.post-850729497959688656</id><published>2008-08-09T09:16:00.000+05:30</published><updated>2008-08-09T09:24:25.306+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Bill Gates'/><category scheme='http://www.blogger.com/atom/ns#' term='Tips'/><title type='text'>10 Ways to Save Time While Building a Website</title><summary type='text'>Anders Haig talks about 10 ways by which we can save time in building a website (based on his freelancing experience).Points which he has covered are: [he has given a good description of each topic with reference links]1. Dropdown menus2. Image capture3. Batch image resizing4. Web forms5. CSS text boxes6. Vectorizing Images7. Selecting color schemes8. Creating a Patterned Background9. Building a </summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/850729497959688656/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=850729497959688656' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/850729497959688656'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/850729497959688656'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2008/08/10-ways-to-save-time-while-building.html' title='10 Ways to Save Time While Building a Website'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5849265.post-2997402709812415696</id><published>2008-07-31T07:37:00.000+05:30</published><updated>2008-07-31T08:32:08.621+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Tools'/><title type='text'>Deefbox is an useful tool for websites....</title><summary type='text'>Deefbox is a simple but very important tool from CQsight. This tool would help us (site owners) to understand in real time on how useful our site is to others.In other terms it would help us to understand the search pattern of the users and whether what they came looking for is available in our site or not.Setting up the tool is pretty simple. Just follow up the instructions given here http://</summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/2997402709812415696/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=2997402709812415696' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/2997402709812415696'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/2997402709812415696'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2008/07/deefbox-is-useful-tool-for-websites.html' title='Deefbox is an useful tool for websites....'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://bp2.blogger.com/_Chugnpd_fEI/SJEfxDuz5AI/AAAAAAAAANY/vH5oBWlECUQ/s72-c/cQSight.GIF' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5849265.post-4549180497918176408</id><published>2008-07-30T07:22:00.000+05:30</published><updated>2008-07-30T08:07:12.167+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Google'/><category scheme='http://www.blogger.com/atom/ns#' term='cuil'/><title type='text'>Cuil Search Engine ...</title><summary type='text'>By this time you would have heard about 'Cuil' - a search engine developed by ex-top engineers of Google. I tried our few searches in that and as of now I am not pleased with the search results.I came to know from their site that "Cuil is an old Irish word for knowledge"1. Search Result looks like a news site. This is not a complaint :) May be I am used to the search results page template used by</summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/4549180497918176408/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=4549180497918176408' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/4549180497918176408'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/4549180497918176408'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2008/07/cuil-search-engine.html' title='Cuil Search Engine ...'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://bp0.blogger.com/_Chugnpd_fEI/SI_MmCE3XyI/AAAAAAAAANQ/T6xKAfxpZ0o/s72-c/Cuil.GIF' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5849265.post-286270038456645311</id><published>2008-05-19T06:59:00.000+05:30</published><updated>2008-05-19T07:02:30.599+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Microsoft'/><title type='text'>Not planning to renew my MVP award!</title><summary type='text'>For some reason I am not interested in renewing my MVP award this year. So I haven't applied for it yet. That said, hopefully i can be called as a MVP till this month or next month end max :)</summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/286270038456645311/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=286270038456645311' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/286270038456645311'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/286270038456645311'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2008/05/not-planning-to-renew-my-mvp-award.html' title='Not planning to renew my MVP award!'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5849265.post-3249555975557391812</id><published>2007-12-27T23:25:00.000+05:30</published><updated>2007-12-27T23:28:23.050+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><title type='text'>Difference between Response.Write and Response.Output.Write</title><summary type='text'>From classical ASP days if we want to print some string with formatting we used to make use of Response.Write and some function to do the string formatting for us. But in .NET we have Response.Output.Write which is equal to Response.Write + String.Format features.Find below the basic sample explaining this feature! private void Page_Load (object sender, System.EventArgs e){DateTime dtTwoDays = </summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/3249555975557391812/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=3249555975557391812' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/3249555975557391812'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/3249555975557391812'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2007/12/difference-between-responsewrite-and.html' title='Difference between Response.Write and Response.Output.Write'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5849265.post-8112061434756292257</id><published>2007-12-24T23:38:00.000+05:30</published><updated>2007-12-25T10:12:47.226+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Certifications'/><title type='text'>2007 Internet Quiz.</title><summary type='text'>I scored 100% in the 2007 internet quiz @ http://www.justsayhi.com/bb/internetI need to admit I used google for one question as I wasn't clear on the answer. So you can count me as 99% :)What's your score?</summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/8112061434756292257/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=8112061434756292257' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/8112061434756292257'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/8112061434756292257'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2007/12/2007-internet-quiz.html' title='2007 Internet Quiz.'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5849265.post-2040212163528179533</id><published>2007-11-25T22:40:00.000+05:30</published><updated>2007-11-25T22:48:00.222+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><title type='text'>Get TIME alone from a given date</title><summary type='text'>I see this to be very frequently asked question in dotnetspider.com! Solution to this is to make use of CONVERT function in SQL Server.--Query will fetch the time portion aloneSelect Convert(Varchar, Getdate(), 108) --Query will fetch the date portion alone.Select Convert(Varchar, Getdate(), 101)The last parameter of Convert function is StyleId. Go through books online to know the complete list </summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/2040212163528179533/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=2040212163528179533' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/2040212163528179533'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/2040212163528179533'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2007/11/get-time-alone-from-given-date.html' title='Get TIME alone from a given date'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5849265.post-8679279230700387533</id><published>2007-11-23T22:00:00.000+05:30</published><updated>2007-11-23T22:07:30.913+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><title type='text'>Should we upgrade to SQL 2005 or wait for SQL Server 2008?</title><summary type='text'>To my knowledge, there are companies which still works on SQL Server 7.0 and SQL Server 2000. But in the last quarter of 2005, Microsoft released SQL Server 2005. Though I have been using that product personally since that time and officially for more than one year now. I am not too sure whether everybody has migrated to SQL Server 2005!That being a case SQL Server 2008 (code named: Katmai) is </summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/8679279230700387533/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=8679279230700387533' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/8679279230700387533'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/8679279230700387533'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2007/11/should-we-upgrade-to-sql-2005-or-wait.html' title='Should we upgrade to SQL 2005 or wait for SQL Server 2008?'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5849265.post-3805092922874357810</id><published>2007-11-21T00:00:00.000+05:30</published><updated>2007-11-21T22:01:06.016+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><title type='text'>List tables which are dependent on a given table - SQL Server 2005</title><summary type='text'>Option 1: Right-click on a table and choose 'View Dependencies'.Option 2: For some reason if you want to do it programmatically check out the below code snippetSelectS.[name] as 'Dependent_Tables'Fromsys.objects S inner join sys.sysreferences R on S.object_id = R.rkeyidWhereS.[type] = 'U' ANDR.fkeyid = OBJECT_ID('Person.StateProvince')here, replace Person.StateProvince with your table name.</summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/3805092922874357810/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=3805092922874357810' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/3805092922874357810'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/3805092922874357810'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2007/11/list-tables-which-are-dependent-on.html' title='List tables which are dependent on a given table - SQL Server 2005'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5849265.post-576072393108050317</id><published>2007-11-19T21:58:00.000+05:30</published><updated>2007-11-23T22:13:46.979+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><title type='text'>List the modified objects in SQL Server 2005</title><summary type='text'>For viewing the modified date of Stored Procs and UDF alone:SelectRoutine_name, Routine_Type, Created, Last_alteredFrom Information_schema.routinesWhereRoutine_type in ('PROCEDURE', 'FUNCTION')Order byLast_altered desc, Routine_type, Routine_name For viewing the modified date of Stored Procs, UDF and Views:We can query 'Sys.Objects' table and find out the list of Stored procs, UDFs, Views etc., </summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/576072393108050317/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=576072393108050317' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/576072393108050317'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/576072393108050317'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2007/11/list-modified-objects-in-sql-server.html' title='List the modified objects in SQL Server 2005'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5849265.post-8481491338327188662</id><published>2007-11-18T22:52:00.000+05:30</published><updated>2007-11-18T23:07:07.135+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><title type='text'>Codd's Rule and Current RDBMS Products ...</title><summary type='text'>I was discussing with few of my friends on the topic 'Codds rule'. I heard them say that 'SQL Server' and 'Oracle' supports all of the 12 codd's rule but DB2 doesn't support few of them!! I was surprised and then later got confused myself :)Actually to my knowledge there is no RDBMS product (be it, Microsoft SQL Server or Oracle or DB2) which satisfies all of the 12 rules of CODD.Hopefully in few</summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/8481491338327188662/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=8481491338327188662' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/8481491338327188662'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/8481491338327188662'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2007/11/codds-rule-and-current-rdbms-products.html' title='Codd&apos;s Rule and Current RDBMS Products ...'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5849265.post-5355507449642259041</id><published>2007-11-18T22:49:00.000+05:30</published><updated>2007-11-18T22:51:20.927+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><title type='text'>Expansion for the word CURSOR in SQL Server</title><summary type='text'>Cursor = Current Set Of Records</summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/5355507449642259041/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=5355507449642259041' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/5355507449642259041'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/5355507449642259041'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2007/11/expansion-for-word-cursor-in-sql-server.html' title='Expansion for the word CURSOR in SQL Server'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5849265.post-8786307850928132540</id><published>2007-11-14T22:24:00.000+05:30</published><updated>2007-11-14T22:38:33.424+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><title type='text'>SQLCMD -- Part IX (Batch files)</title><summary type='text'>Using SQLCMD to execute script files easily in different environmentsAssume we have few script files (.sql) which needs to be run in multiple SQL Servers. Hope you would accept that's real pain to connect into different servers from SQL Management Studio and then execute the scripts one after the other.One of the easiest ways of doing it is by making use of the SQLCMD utility of SQL Server 2005.</summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/8786307850928132540/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=8786307850928132540' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/8786307850928132540'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/8786307850928132540'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2007/11/sqlcmd-part-ix-batch-files.html' title='SQLCMD -- Part IX (Batch files)'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://bp0.blogger.com/_Chugnpd_fEI/RzspdPOT5XI/AAAAAAAAAE0/n5zSBL_9BQ0/s72-c/sqlcmd_batchexecute.GIF' height='72' width='72'/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5849265.post-3008871720922996642</id><published>2007-10-28T12:06:00.000+05:30</published><updated>2007-10-28T12:09:53.558+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Bill Gates'/><category scheme='http://www.blogger.com/atom/ns#' term='Microsoft'/><title type='text'>Happy Birthday Bill Gates ...</title><summary type='text'>Bill Gates turns 52 today :) Happy Birthday BillG.</summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/3008871720922996642/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=3008871720922996642' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/3008871720922996642'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/3008871720922996642'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2007/10/happy-birthday-bill-gates.html' title='Happy Birthday Bill Gates ...'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://bp2.blogger.com/_Chugnpd_fEI/RyQue1nNvZI/AAAAAAAAAEs/384uIOEvAUs/s72-c/BillGates.gif' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5849265.post-7300704922206143873</id><published>2007-10-23T17:10:00.000+05:30</published><updated>2007-10-23T17:22:29.654+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='General'/><title type='text'>Removed my friends from here &amp; added them to my Bloglines</title><summary type='text'>I removed all of my VZ friends blog from my blogroll and have added onto my bloglines account.</summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/7300704922206143873/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=7300704922206143873' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/7300704922206143873'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/7300704922206143873'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2007/10/removed-my-friends-from-here-added-them.html' title='Removed my friends from here &amp; added them to my Bloglines'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5849265.post-4179111762428610039</id><published>2007-10-10T18:39:00.000+05:30</published><updated>2007-10-16T22:50:52.504+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><title type='text'>SQLCMD -- Part VIII (:r and about concatenating string with spaces)</title><summary type='text'>Theory::r -- parses additional T-SQL statements and sqlcmd commands from the file specified by into the statement cache.In this article we would see the usage of :r as well as handling spaces in SQLCMD.In SQL Mgmt Studio:Step 1: 01VariableInitialization.sql:setvar filepath "C:\Vadivel\SQL Related\Scripts\sqlcmd":r $(filePath)\02TableCreation.sqlStep 2: 02TableCreation.sqlCreate table tblTest(Sno </summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/4179111762428610039/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=4179111762428610039' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/4179111762428610039'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/4179111762428610039'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2007/10/sqlcmd-part-viii-r-and-about.html' title='SQLCMD -- Part VIII (:r and about concatenating string with spaces)'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5849265.post-2558370328511652507</id><published>2007-10-06T22:49:00.000+05:30</published><updated>2007-10-06T23:04:35.626+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><title type='text'>SQLCMD -- Part VII (Concatenating string with a Scripting Variable)</title><summary type='text'>This example demonstrates the way to create a variable and make use of it for multiple purpose.Actually in this example we would see how to create a variable and append strings into it. Lets create two Database with slight difference in the name. For example, DB1 and DB2. Then create a table in each DB and populate few records into it.---Code snippet which needs to be run in Mgmt Studio starts </summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/2558370328511652507/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=2558370328511652507' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/2558370328511652507'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/2558370328511652507'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2007/10/sqlcmd-part-vii-concatenating-string.html' title='SQLCMD -- Part VII (Concatenating string with a Scripting Variable)'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5849265.post-4216852801524616741</id><published>2007-10-01T21:59:00.000+05:30</published><updated>2007-10-10T12:13:30.828+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><title type='text'>Reclaiming the table space after dropping a column [without clustered index]</title><summary type='text'>If we drop a column it gets dropped but the space which it was occupying stays as it is! In this article we would see the way to reclaim the space for a table which has a non-clustered Index.Create a table with non-clustered index in it:Create Table tblDemoTable_nonclustered ([Sno] int primary key nonclustered,[Remarks] varchar(5000) not null)GoPump-in some data into the newly created table:Set </summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/4216852801524616741/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=4216852801524616741' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/4216852801524616741'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/4216852801524616741'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2007/10/reclaiming-table-space-after-dropping_01.html' title='Reclaiming the table space after dropping a column [without clustered index]'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5849265.post-960007405334787200</id><published>2007-10-01T21:41:00.000+05:30</published><updated>2007-10-01T22:48:51.777+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><title type='text'>Reclaiming the table space after dropping a column - [With Clustered Index]</title><summary type='text'>If we drop a column it gets dropped but the space which it was occupying stays as it is! In this article we would see the way to reclaim the space for a table which has a clustered Index.Create a table with clustered index in it:Create Table tblDemoTable ([Sno] int primary key clustered,[Remarks] char(5000) not null)GoPump-in some data into the newly created table:Set nocount onDeclare @intRecNum</summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/960007405334787200/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=960007405334787200' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/960007405334787200'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/960007405334787200'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2007/10/reclaiming-table-space-after-dropping.html' title='Reclaiming the table space after dropping a column - [With Clustered Index]'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://bp3.blogger.com/_Chugnpd_fEI/RwEqnk76f0I/AAAAAAAAAD8/s29imM-eYfs/s72-c/dm_db_index_physical_stats_1.GIF' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5849265.post-7001257603753942274</id><published>2007-09-26T15:34:00.000+05:30</published><updated>2007-10-06T23:05:31.668+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><title type='text'>SQLCMD -- Part VI (Scripting Variables)</title><summary type='text'>To list all available SQLCMD Scripting variables, do the following: Step 1: Go to DOS prompt and open up SQLCMDStep 2: type :listvar which would list all SQLCMD scripting variables.In the screenshot you can see that the SQLCMDEditor and SQLCMDINI variable which we overwrote in the previous posts here and here are displayed.Almost all of the other variables are self-explanatory :)Creating our own </summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/7001257603753942274/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=7001257603753942274' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/7001257603753942274'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/7001257603753942274'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2007/09/sqlcmd-part-vi-variables.html' title='SQLCMD -- Part VI (Scripting Variables)'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://bp3.blogger.com/_Chugnpd_fEI/Rvjeo076fyI/AAAAAAAAADs/yfuN1JcdRLQ/s72-c/sqlcmd_listvar.GIF' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5849265.post-1156118896754974877</id><published>2007-09-25T12:31:00.000+05:30</published><updated>2007-09-25T12:34:58.227+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><title type='text'>SQLCMD -- Part V (setting startup scripts)</title><summary type='text'>There are instances where we might need to run some default scripts on a specified server once SQLCMD gets connected. It can be achieved in just three steps as explained below:Step 1: Create a script file which you wanted to fire when SQLCMD gets connected to your SQL Server.For keeping the example simple, I used the following line and saved it as SqlCmdStartUpScripts.sqlprint 'Welcome today''s </summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/1156118896754974877/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=1156118896754974877' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/1156118896754974877'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/1156118896754974877'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2007/09/sqlcmd-part-v-setting-startup-scripts.html' title='SQLCMD -- Part V (setting startup scripts)'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://bp3.blogger.com/_Chugnpd_fEI/Rviy3076fxI/AAAAAAAAADk/p7z5KncVkCc/s72-c/sqlcmd_startupscripts.GIF' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5849265.post-7258875912097102508</id><published>2007-09-25T10:55:00.000+05:30</published><updated>2007-09-25T11:38:54.520+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><title type='text'>SQLCMD -- Part IV (set your favourite editor)</title><summary type='text'>From my previous posts one can understand that it is possible to write SQL queries directly in command prompt with the help of SQLCMD utility.Now let's assume we have typed a 'big' query and there is a typo there! Instead of going back and forth to edit it in command prompt won't it be easy if we are able to open the query in an editor and make the corrections there?Yes its possible in SQLCMD. </summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/7258875912097102508/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=7258875912097102508' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/7258875912097102508'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/7258875912097102508'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2007/09/sqlcmd-part-iv-set-your-favourite.html' title='SQLCMD -- Part IV (set your favourite editor)'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5849265.post-5963385056585781522</id><published>2007-09-24T22:28:00.000+05:30</published><updated>2007-09-25T10:53:09.602+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><title type='text'>SQLCMD -- Part III (Non-Interactive or batch Mode)</title><summary type='text'>If you haven't gone through the first two posts about SQLCMD I would strongly recommend to go over it here and here before proceeding further :)1. Executing a script file from SQLCMD...i. Create a script file by typing in the following line and save it as Message.sqlprint 'Welcome today''s date is: ' + (convert(varchar, getdate()))ii. Now goto command prompt and type: SQLCMD -i Message.sqlhere, -</summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/5963385056585781522/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=5963385056585781522' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/5963385056585781522'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/5963385056585781522'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2007/09/sqlcmd-part-iii-non-interactive-or.html' title='SQLCMD -- Part III (Non-Interactive or batch Mode)'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://bp1.blogger.com/_Chugnpd_fEI/Rvfvpk76fwI/AAAAAAAAADc/Ti6fbGB9i9U/s72-c/sqlcmd_initialmsg.gif' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5849265.post-2308083366056304694</id><published>2007-09-24T21:54:00.000+05:30</published><updated>2007-09-24T22:52:53.280+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><title type='text'>SQLCMD -- Part II (Interactive Mode)</title><summary type='text'>First get connected into the DB Server using SQLCMD using either the windows authentication or SQL authentication as explained in the previous post.Then on the prompt you can type in the TSQL queries directly and press enter. In the next line, say Go and press enter to execute the query and see the result. See below an example to display the current datetime.After displaying the result the cursor</summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/2308083366056304694/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=2308083366056304694' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/2308083366056304694'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/2308083366056304694'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2007/09/sqlcmd-part-ii-interactive-mode.html' title='SQLCMD -- Part II (Interactive Mode)'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://bp0.blogger.com/_Chugnpd_fEI/RvfltU76ftI/AAAAAAAAADE/SLrS2I8cd9s/s72-c/sqlcmd_getdate_interactivemode.GIF' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5849265.post-3263337001432483177</id><published>2007-09-23T18:04:00.000+05:30</published><updated>2007-09-24T22:28:26.132+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><title type='text'>SQLCMD -- Part I (Basics, Connectivity)</title><summary type='text'>“SQLCMD” is a command line tool which was shipped by Microsoft along with SQL Server 2005. Previously SQL Server was having ISQL and OSQL as its command line utility. SQLCMD is replacing both of them (i.e., ISQL is not there in SQL Server 2005 RTM version. OSQL would also be eventually removed!!).When “SQLCMD” is run from the MS-DOS command prompt, it uses the OLE DB provider to execute the given</summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/3263337001432483177/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=3263337001432483177' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/3263337001432483177'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/3263337001432483177'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2007/09/sqlcmd-part-i.html' title='SQLCMD -- Part I (Basics, Connectivity)'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://bp0.blogger.com/_Chugnpd_fEI/RvevZU76frI/AAAAAAAAAC0/XH7KPiopjvs/s72-c/sqlcmd_help.GIF' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5849265.post-3661325951346141452</id><published>2007-09-23T12:05:00.000+05:30</published><updated>2007-09-29T23:11:59.711+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><title type='text'>NEWID vs NEWSEQUENTIALID</title><summary type='text'>Some pointers:1. NewSequentialID() and NewID() both generates the GUID of datatype of uniqueidentifier.2. NewID() generates the GUID in random order3. NewSequentialID() generates the GUID in sequential order.4. NewSequentialID() can be used ONLY in default clause of a table.5. NewSequentialID() is easily predictable6. So if security is a major concern then go for NewID() instead of </summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/3661325951346141452/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=3661325951346141452' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/3661325951346141452'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/3661325951346141452'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2007/09/newid-vs-newsequentialid.html' title='NEWID vs NEWSEQUENTIALID'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://bp0.blogger.com/_Chugnpd_fEI/RvddfU76fpI/AAAAAAAAACk/aQvZIZT-Bh8/s72-c/NewSeqID_Predictable.GIF' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5849265.post-7925516718738163998</id><published>2007-07-18T23:51:00.000+05:30</published><updated>2007-07-19T00:02:10.788+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><title type='text'>Finding missing indexes in SQL Server 2005</title><summary type='text'>There are quite a lot of DMV's which have been introduced along with SQL Server 2005. One such is sys.dm_db_missing_index_details. Using this DMV we can identify what all indexes SQL optimizer is expecing in our tables.Query: select * from sys.dm_db_missing_index_detailsFields to note: equality_columns, inequality_columns, included_columns, statementSo by querying this DMV and having a look at </summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/7925516718738163998/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=7925516718738163998' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/7925516718738163998'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/7925516718738163998'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2007/07/finding-missing-indexes-in-sql-server.html' title='Finding missing indexes in SQL Server 2005'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5849265.post-5962549420416755489</id><published>2007-07-11T14:20:00.000+05:30</published><updated>2007-07-11T14:26:29.796+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='General'/><title type='text'>1 Year has passed away real quick!</title><summary type='text'>Want to know what happened same time (approx :)) last year? Check out my wedding anniv post :) Time to take a day off and go around the city.Btw, hopefully from this weekend I would be blogging regularly as I might get back my broadband connection today or tomorrow!</summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/5962549420416755489/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=5962549420416755489' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/5962549420416755489'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/5962549420416755489'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2007/07/1-year-has-passed-away-real-quick.html' title='1 Year has passed away real quick!'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5849265.post-5569799709277306366</id><published>2007-07-11T14:14:00.000+05:30</published><updated>2007-07-11T14:46:41.153+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='General'/><category scheme='http://www.blogger.com/atom/ns#' term='Microsoft'/><title type='text'>Renominated as MVP again this year :)</title><summary type='text'>I am glad to know that I have been renominated as a MVP in SQL Server category this year (2007 - 2008). Thanks everyone for your support and encouragement!</summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/5569799709277306366/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=5569799709277306366' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/5569799709277306366'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/5569799709277306366'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2007/07/renominated-for-mvp-again-this-year.html' title='Renominated as MVP again this year :)'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5849265.post-3896250640257156554</id><published>2007-07-11T14:10:00.000+05:30</published><updated>2007-07-11T14:47:01.735+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><title type='text'>Query to find out indexes created dynamically by SQL Server 2000</title><summary type='text'>When queries / SP's hits those tables where appropriate indexes are not there then the database engine would automatically create indexes to be used by its execution plan.The hitch is those dynamic indexes would not be reused by the engine the next time when it hits the same table / column. i.e., it would create another dynamic index each time when it hits the same table / column.That said, </summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/3896250640257156554/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=3896250640257156554' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/3896250640257156554'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/3896250640257156554'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2007/07/query-to-find-out-indexes-created.html' title='Query to find out indexes created dynamically by SQL Server 2000'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5849265.post-4270992939348711005</id><published>2007-05-04T10:01:00.000+05:30</published><updated>2007-05-04T10:11:45.026+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Microsoft'/><title type='text'>Ctrl + Alt + Del in remote desktop</title><summary type='text'>If you are connected to a remote desktop (Using Remote Desktop Connection) and for some reason you want to use "Ctrl" + "Alt" + "Del" it would open up the local machines dialog box only.In order to initiate the dialog box of the remote machine to which you are connected to make use of  "Ctrl" + "Alt" + "End"Hope this helps!</summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/4270992939348711005/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=4270992939348711005' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/4270992939348711005'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/4270992939348711005'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2007/05/ctrl-alt-del-in-remote-desktop.html' title='Ctrl + Alt + Del in remote desktop'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5849265.post-389265649064700165</id><published>2007-05-01T10:12:00.000+05:30</published><updated>2007-05-01T10:17:52.289+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><title type='text'>How to find out recently run queries in SQL Server 2005?</title><summary type='text'>Prior to SQL Server 2005 if we want to find out the list of recently run queries we need to depend on SQL Profiler.Now in SQL Server 2005 the life has become more easier(!). With the help of of an Dynamic Management Views (DMV) and a table valued function we can list the required result.Points to note:1. sys.dm_exec_query_stats -- This DMV returns aggregate performance statistics for cached query</summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/389265649064700165/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=389265649064700165' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/389265649064700165'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/389265649064700165'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2007/04/how-to-find-out-recently-run-queries-in.html' title='How to find out recently run queries in SQL Server 2005?'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5849265.post-2869698886573888685</id><published>2007-05-01T09:46:00.000+05:30</published><updated>2007-05-01T09:58:35.562+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><title type='text'>GRANT permission to ALL stored procedures</title><summary type='text'>This is one of the other very common question which I get from many of my blog readers / dotnetspider users.Hi Vadivel,I have created a fresh login in my SQL Server 2005 database. Now I want to grant that newly created login permission to execute any / all stored procedure within that database. Can you tell me how to do this in one shot? As of now, I am writting GRANT statement for all individual</summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/2869698886573888685/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=2869698886573888685' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/2869698886573888685'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/2869698886573888685'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2007/04/grant-permission-to-all-stored.html' title='GRANT permission to ALL stored procedures'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5849265.post-1406313151840716745</id><published>2007-05-01T09:40:00.000+05:30</published><updated>2007-05-01T09:45:04.851+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><title type='text'>Find the missing numbers (GAPS) within a table...</title><summary type='text'>In this post I have given one of the way to find out the missing numbers within a table. Please note the you need SQL Server 2005 to execute this example and test it yourself.Sample table creationCreate table tblFindGaps(Sno int not null)GoPopulate dummy records in the table:Insert tblFindGaps values (1)Insert tblFindGaps values (10)Insert tblFindGaps values (3)Insert tblFindGaps values (5)Insert</summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/1406313151840716745/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=1406313151840716745' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/1406313151840716745'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/1406313151840716745'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2007/04/find-missing-numbers-gaps-within-table.html' title='Find the missing numbers (GAPS) within a table...'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5849265.post-4431090347109910672</id><published>2007-05-01T07:39:00.000+05:30</published><updated>2007-05-01T09:19:28.157+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Microsoft'/><title type='text'>Microsoft Office and Fitt's Law</title><summary type='text'>http://blogs.msdn.com/jensenh/archive/2006/08/22/711808.aspx explains the Fitt’s Law and the entire science behind the Office design. I came to know about this from Pandu and its a much read type of article.</summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/4431090347109910672/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=4431090347109910672' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/4431090347109910672'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/4431090347109910672'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2007/04/microsoft-office-and-fitts-law.html' title='Microsoft Office and Fitt&apos;s Law'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5849265.post-2575259145771069770</id><published>2007-05-01T06:56:00.000+05:30</published><updated>2007-05-01T07:46:00.465+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><title type='text'>Database 'msdb' cannot be opened due to inaccessible files or insufficient memory or disk space.</title><summary type='text'>I am working on SQL Server 2005 for quite sometime now. For past couple of weeks I am facing a strange error often but not always!!Refer the screenshot below to know the actual error:Database 'msdb' cannot be opened due to inaccessible files or insufficient memory or disk space. See the SQL Server errorlog for details. (Microsoft SQL Server, Error: 945) My system configuration:I am using Windows </summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/2575259145771069770/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=2575259145771069770' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/2575259145771069770'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/2575259145771069770'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2007/04/database-msdb-cannot-be-opened-due-to.html' title='Database &apos;msdb&apos; cannot be opened due to inaccessible files or insufficient memory or disk space.'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://bp2.blogger.com/_Chugnpd_fEI/RjaYqXodNsI/AAAAAAAAACA/O1JJDIqvelM/s72-c/SQLError.GIF' height='72' width='72'/><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5849265.post-1504241408967533346</id><published>2007-04-25T06:02:00.000+05:30</published><updated>2007-04-25T06:12:46.048+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><title type='text'>Workaround for 'Divide by zero error encountered'</title><summary type='text'>Today I just want to write a sample explaining the workaround for 'Divide by zero error encountered.' error in SQL Server.Sample Table Structure for demo purposeCreate Table dbo.TestDivideByZero(WebSite varchar(50),NumOfHits int,Income int)GoInsert dummy recordsInsert into dbo.TestDivideByZero values ('a.com', 100, 20)Insert into dbo.TestDivideByZero values ('b.com', 10, 0)Insert into </summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/1504241408967533346/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=1504241408967533346' title='7 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/1504241408967533346'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/1504241408967533346'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2007/04/workarond-for-divide-by-zero-error.html' title='Workaround for &apos;Divide by zero error encountered&apos;'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><thr:total>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5849265.post-5297458705094896366</id><published>2007-04-24T06:29:00.000+05:30</published><updated>2007-04-24T06:44:54.979+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><title type='text'>Arithmetic overflow error converting expression to data type int.</title><summary type='text'>Today I was trying to join two table each having approximately 5 Lakhs records in one of my SQL Server 2005 database. I was trying to find the count of some field when this arithmetic overflow error was thrown.Arithmetic overflow error converting expression to data type int.I understood that the calculation has exceeded the maximum INT range. For better understand on this error check out this SQL</summary><link rel='replies' type='application/atom+xml' href='http://vadivel.blogspot.com/feeds/5297458705094896366/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5849265&amp;postID=5297458705094896366' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/5297458705094896366'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5849265/posts/default/5297458705094896366'/><link rel='alternate' type='text/html' href='http://vadivel.blogspot.com/2007/04/arithmetic-overflow-error-converting.html' title='Arithmetic overflow error converting expression to data type int.'/><author><name>Vadivel</name><uri>http://www.blogger.com/profile/13387133927257826888</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-_3AcNvdKBF8/TpGR67br4PI/AAAAAAAABQE/R_idqLfrXcc/s220/Vadivel_ProfilePic.JPG'/></author><thr:total>0</thr:total></entry></feed>
