Viewing 15 posts - 1 through 15 (of 20 total)
YIKES! I hate to duplicate the logic but I may need to do that in order to avoid potential deadlocks.
December 15, 2009 at 10:07 am
If you're looking for a compiled help file, try this:
February 25, 2008 at 4:35 pm
SQL 2000 Books Online:
Temporary tables are automatically dropped when they go out of scope, unless explicitly dropped using DROP TABLE:
A local temporary table created in a stored procedure is...
January 11, 2008 at 2:08 pm
If you use T-SQL AVG, NULL values are ignored. If you force NULL values to 0 using ISNULL, your average will change because of the 0 data points.
Not to...
January 4, 2008 at 2:50 pm
It takes 3 commands to dump the log and shrink the database and log files.
You may wish to change the DBCC commands to specify a target percentage to leave. ...
January 4, 2008 at 2:31 pm
Some pseudo code that may help:
You may wish to lower the transaction isolation level depending on your needs. For example, IsolationLevel.RepeatableRead
Also, what kind of error should issue a rollback?...
December 28, 2007 at 2:50 pm
I don't know where your reports are coming from but I would suggest contacting the person who is sending the report and ask that they export the data instead.
They will...
December 28, 2007 at 9:54 am
my guess is that you incur the sys table lookup to find out the name of the columns
also by not prefixing with dbo., you incur a sys table lookup for...
December 27, 2007 at 5:07 pm
This is a great script but to be truly universal or generic, it needs to be enhanced in the if-else section. Right now, it assumes that the primary key...
December 17, 2007 at 9:30 am
i have done these types of conversion projects and almost always use a staging table (a permanent table used temporarily) with a cursor and RBAR.
why? because you can go...
December 12, 2007 at 10:39 am
Thanks Lowell and Greg.
I really appreciate the quick feedback and sample code!
Sometimes I go down tangents and write a whole bunch of code only to find out that there is...
November 14, 2007 at 3:17 pm
If I'm understanding this correctly, I believe that would be...
WHERE RoadShowID = @RoadShowID
AND (RoadShowEventID = @RoadShowEventID OR (RoadShowEventID IS NULL AND @RoadShowEventID IS NULL))
AND (SellerID = @SellerID OR (SellerID IS...
November 14, 2007 at 10:49 am
Are you saying the column must match the parameter -OR- both the column and the parameter are null?
Wouldn't that be...
WHERE (RoadShowEventID = @RoadShowEventID OR (RoadShowEventID IS NULL AND @RoadShowEventID IS...
November 14, 2007 at 10:21 am
Viewing 15 posts - 1 through 15 (of 20 total)