Viewing 15 posts - 61 through 75 (of 89 total)
IDENTITY is a property which gives auto-incremental value to a column whenever a new record is inserted. You have to set the IDENTITY property with a column while creating a...
July 26, 2012 at 8:14 am
The reason for the WHILE LOOP is because with CURSOR it is much slower than with WHILE LOOP.
Who said CURSOR is slower than WHILE loops? Didn't you asked them reason...
July 26, 2012 at 8:01 am
Hi @Sivaganesh,
First of all explain your problem and the issue you are dealing with?
What all steps you've taken till now and where are you stuck?
Provide some test data and expected...
March 23, 2012 at 2:50 am
I was also confused by using and not using WITH with NOCHECK option.
WITH NOCHECK: does not disable FK constraint, but gets disable for existing records.
NOCHECK without WITH: disable the FK...
March 22, 2012 at 7:20 am
You can directly query your Excel file by using OPENQUERY() or linkedserver.
Check this link: http://sqlwithmanoj.wordpress.com/2010/11/12/query-excel-file-source-through-linked-server/%5B/url%5D
March 18, 2012 at 11:10 pm
Check following blog post to get differences b/w IN, NOT IN and EXISTS.
Link: http://sqlwithmanoj.wordpress.com/2011/02/15/not-in-not-exists-joins-with-null-values/%5B/url%5D
March 18, 2012 at 11:05 pm
Check the following blog post: http://sqlwithmanoj.wordpress.com/2011/05/16/database-schema-diff/%5B/url%5D
Here I've created a script to list out differences in schema of two different databases.
You can add filter WHERE clause for tables, or tweak the...
March 16, 2012 at 12:16 am
CTE or Common Table Expressions were introduced in SQL Server 2005. Their main use is to replace the derived queries or sub-queries you apply in your SQL statements. This also...
March 15, 2012 at 11:56 pm
Check this blog post to identify and delete duplicate records from your tables in various ways: http://sqlwithmanoj.wordpress.com/2011/10/14/identify-delete-duplicate-records-from-a-table/%5B/url%5D
March 14, 2012 at 11:53 pm
The following blog post will give you differences and performance difference b/w ISNULL() and COALESCE()
Check link: http://sqlwithmanoj.wordpress.com/2010/12/23/isnull-vs-coalesce/%5B/url%5D
March 14, 2012 at 11:43 pm
I also faced lot of issues while setting up database mail first time. But finally managed to configure it.
So I've put all of those steps at one place, check this...
March 14, 2012 at 11:37 pm
Till 2007 we used to use MS Visual Source Safe for storing SQL Server objects. It was Ok, just for version control and deploying our builds.
Then we switched to TFS....
March 14, 2012 at 11:27 pm
January 3, 2012 at 10:59 pm
Check my blog post where I've menitioned steps to configure Database Email
Link: http://sqlwithmanoj.com/2010/09/29/database-mail-setup-sql-server-2005/%5B/url%5D
Perform all steps mentioned in the blog post.
Also try out pointing your mail server to GMAIL, check if...
August 10, 2011 at 3:01 am
Why don't you create a Stored Procedure and put all your logic that you are executing with EXEC(), and finally call that SP.
June 23, 2011 at 7:16 am
Viewing 15 posts - 61 through 75 (of 89 total)