Viewing 15 posts - 46 through 60 (of 70 total)
I too like EditPlus but I do my SQL code editing in SQL Server Management Studio. I add my code snippets to the Template Explorer. It has a...
October 16, 2007 at 7:21 am
I find either an interesting article or post every day in SSC. SSC is one of my major learning tools for SQL server. I have gotten many ideas...
October 2, 2007 at 7:09 am
If you believe Joe Celko the use of positional column numbers has been deprecated in standard sql:
September 6, 2007 at 8:35 am
We conditionally bypass triggers for some batch processes on the production database. We don't bypass triggers in the application.
June 28, 2007 at 11:39 am
Why don't you DISABLE/ENABLE the trigger instead of dropping it:
The trigger still exists but will not fire!
/** Only disable if client A **/
if exists (select * from dbo.sysobjects where id...
June 28, 2007 at 7:36 am
Jeff,
Thanks for the insight on Index usage and formulas in where clauses. I guess I know better than to use SELECT * in production code.
June 27, 2007 at 10:09 am
Hi,
We have the same issue. Notice that
SELECT * FROM blackhole WHERE DATALENGTH(singularity)>0
will give you the same result since DATALENGTH(NULL) is not greater than 0
If you also want to eliminate...
June 27, 2007 at 7:21 am
SELECT * FROM myTable
WHERE customerID = CASE
WHEN @customerID = myValue THEN myValue
ELSE customerID
END
June 22, 2007 at 8:50 am
Use suser_sname(). This should return the correct name. I believe that the name returned by user_name() changed between SQL 6.5 and SQL7. BOL tells you that user_name() returns dbo for someone...
May 3, 2007 at 6:24 am
Be aware that the Timestamp data type has been deprecated. In SQL 2000 and 2005 it has been aliased by ROWVERSION, a more descriptive name. I would recommend adding a...
April 20, 2007 at 6:25 am
I've got one of those "non-hyphenated double-barreled surnames". It sure is an inconveniance when I get misfiled because the database only recognized the word after the last space as...
July 18, 2006 at 10:06 am
Nope - no Stat Holidays in the U.S. or Canada for ends of any months
Holidays can vary by city and state and year:
Memorial Day (US) can fall on May 31...
July 6, 2006 at 11:21 am
Sending mail from a trigger is not recommended. Triggers should be performed quickly since other things wait for completion of the trigger. Sending mail is slow and frought with problems. One...
May 18, 2005 at 8:28 am
Every table I have has a trigger on Update to track changes made to the record at the database level. All tables have fields of "UpdatedBy" and "UpdateTime" which are...
April 26, 2005 at 7:01 am
Viewing 15 posts - 46 through 60 (of 70 total)