Viewing 8 posts - 1 through 8 (of 8 total)
See my post on the 4th page of this thread, where I give more detail about using xp_execresultset in place of a cursor. In addition, there are many good examples...
January 19, 2006 at 3:41 am
I have personally discovered that table variables can often be slower than temp tables. In addition, with temp tables you can create indexes, which often speed up performance significantly (minus...
January 18, 2006 at 8:08 am
Why not use xp_execresultset?
E.g.,
EXEC master..xp_execresultset N'SELECT
''EXEC dbo.my_procedure '' + CAST(param_1 AS VARCHAR) + '','' + CAST(param_2 AS VARCHAR)''
FROM (SELECT param_1, param_2 FROM MyDB..MyTable) temp
',N'MyDB'
This keeps...
January 17, 2006 at 8:35 am
You're remark about adding a column being a "minimal" change made me think of something that should itself be listed as a bad practice: not specifying a column list in INSERT statements...
January 20, 2004 at 1:57 pm
Here's a crosstab query I created:
http://www.sqlservercentral.com/scripts/contributions/936.asp
Hope this helps somewhat.
October 31, 2003 at 12:58 pm
Here's a solution I came up with a few weeks ago:
http://www.sqlservercentral.com/scripts/contributions/936.asp
October 31, 2003 at 12:56 pm
This is a great article, and in most cases this is a quick and effective way to determine the number of rows. However, there is one drawback. The...
October 1, 2001 at 12:57 pm
In my experience, every "DBA" position I've worked at has required a whole lot more than the standard SQL DBA skillset. In fact, at each job, the vast majority...
September 10, 2001 at 1:43 pm
Viewing 8 posts - 1 through 8 (of 8 total)