Archived Months
January 2003
March 2003
April 2003
May 2003
June 2003
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
April 2008
all groups > sql server programming > june 2007 > threads for sunday june 10

Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30

Update with subquery
Posted by Charlie at 6/10/2007 9:08:00 PM
I am trying to run an update to a table that requies a count from another table and want the update to be where the Year & Month are equal to each other. I am trying to work with a poorly set up table structure and am having a hard time trying to figure out how to get an update to work form a...more >>


Easy Batch Table Drop?
Posted by Don Miller at 6/10/2007 2:23:58 PM
My application creates, without tracking, real temporary tables (not #temp or @table) that need to be dropped after a user session is ended. They are all labeled tempXXXX. Is there any easy way to drop all of these tables at once with an SP? It seems that it will require dynamic SQL (e.g. E...more >>

What is most effecient way to do summary?
Posted by Andrew at 6/10/2007 1:14:00 PM
Hello, friends, I need to write a report to summarize items bought by each department in each month for the last 3 years. What is the most effecient SQL statement to do this? (I am using SQL Server 2000). Any sample snippet? Thanks a lot....more >>

SP aborts before hitting @@error test
Posted by K. Abit at 6/10/2007 12:07:54 PM
My SP is exiting early and I want to prevent it from aborting early. Inside my SP, with sql server 2005, I have something like: INSERT INTO MYTABLE (FIELD1, FIELD2) VALUES ('WORD',1) SELECT @myrowcount = @@ROWCOUNT , @myerror = @@ERROR But the problem is that it exits out of the proc with ...more >>

SQL Server performance - [Select] on the same record multiple time
Posted by Eugene at 6/10/2007 2:39:00 AM
Hi folks, one general question on SQL Server performance optimization. Consider the scenario where within a single stored procedure, single transaction, the code read on the same table (same record, consider equivalent comparison on primary key) multiple times, does SQL Server always reseek...more >>



DevelopmentNow Blog