Viewing 15 posts - 46 through 60 (of 71 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...
Terri
To speak algebraically, Mr. M. is execrable, but Mr. C. is
(x+1)-ecrable.
Edgar Allan Poe
[Discussing fellow writers Cornelius Mathews and William Ellery Channing.]
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...
Terri
To speak algebraically, Mr. M. is execrable, but Mr. C. is
(x+1)-ecrable.
Edgar Allan Poe
[Discussing fellow writers Cornelius Mathews and William Ellery Channing.]
October 2, 2007 at 7:09 am
If you believe Joe Celko the use of positional column numbers has been deprecated in standard sql:
Terri
To speak algebraically, Mr. M. is execrable, but Mr. C. is
(x+1)-ecrable.
Edgar Allan Poe
[Discussing fellow writers Cornelius Mathews and William Ellery Channing.]
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.
Terri
To speak algebraically, Mr. M. is execrable, but Mr. C. is
(x+1)-ecrable.
Edgar Allan Poe
[Discussing fellow writers Cornelius Mathews and William Ellery Channing.]
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...
Terri
To speak algebraically, Mr. M. is execrable, but Mr. C. is
(x+1)-ecrable.
Edgar Allan Poe
[Discussing fellow writers Cornelius Mathews and William Ellery Channing.]
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.![]()
Terri
To speak algebraically, Mr. M. is execrable, but Mr. C. is
(x+1)-ecrable.
Edgar Allan Poe
[Discussing fellow writers Cornelius Mathews and William Ellery Channing.]
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...
Terri
To speak algebraically, Mr. M. is execrable, but Mr. C. is
(x+1)-ecrable.
Edgar Allan Poe
[Discussing fellow writers Cornelius Mathews and William Ellery Channing.]
June 27, 2007 at 7:21 am
SELECT * FROM myTable
WHERE customerID = CASE
WHEN @customerID = myValue THEN myValue
ELSE customerID
END
Terri
To speak algebraically, Mr. M. is execrable, but Mr. C. is
(x+1)-ecrable.
Edgar Allan Poe
[Discussing fellow writers Cornelius Mathews and William Ellery Channing.]
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...
Terri
To speak algebraically, Mr. M. is execrable, but Mr. C. is
(x+1)-ecrable.
Edgar Allan Poe
[Discussing fellow writers Cornelius Mathews and William Ellery Channing.]
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...
Terri
To speak algebraically, Mr. M. is execrable, but Mr. C. is
(x+1)-ecrable.
Edgar Allan Poe
[Discussing fellow writers Cornelius Mathews and William Ellery Channing.]
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...
Terri
To speak algebraically, Mr. M. is execrable, but Mr. C. is
(x+1)-ecrable.
Edgar Allan Poe
[Discussing fellow writers Cornelius Mathews and William Ellery Channing.]
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...
Terri
To speak algebraically, Mr. M. is execrable, but Mr. C. is
(x+1)-ecrable.
Edgar Allan Poe
[Discussing fellow writers Cornelius Mathews and William Ellery Channing.]
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...
Terri
To speak algebraically, Mr. M. is execrable, but Mr. C. is
(x+1)-ecrable.
Edgar Allan Poe
[Discussing fellow writers Cornelius Mathews and William Ellery Channing.]
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...
Terri
To speak algebraically, Mr. M. is execrable, but Mr. C. is
(x+1)-ecrable.
Edgar Allan Poe
[Discussing fellow writers Cornelius Mathews and William Ellery Channing.]
April 26, 2005 at 7:01 am
It's a bad table design to put 2 values (first and last name) in a single field. In my part of the country there are many 2 word last names...
Terri
To speak algebraically, Mr. M. is execrable, but Mr. C. is
(x+1)-ecrable.
Edgar Allan Poe
[Discussing fellow writers Cornelius Mathews and William Ellery Channing.]
March 17, 2005 at 6:39 am
Viewing 15 posts - 46 through 60 (of 71 total)