Viewing 15 posts - 3,256 through 3,270 (of 6,036 total)
And, how do you think it is sorted?
December 6, 2007 at 2:41 pm
Actually HOST_NAME() is a system function.
As well as DB_NAME(), USER, SYSTEM_USER, etc.
You can use it in any SELECT statement.
Look for details in BOL.
December 5, 2007 at 7:21 pm
If HOST_NAME() is what you need?
December 5, 2007 at 7:01 pm
If to assume that "hits" is a positive integer number then this should work:
SELECT {blah}
FROM {sometable}
ORDER BY CASE WHEN @sort = '{whatever}' THEN STR(2147483647-hits, 10) ELSE name END ASC
December 5, 2007 at 4:17 pm
I guess it's a wrong forum for this question.
SQL Server 7,2000 don't support such constructions.
December 4, 2007 at 4:11 pm
You may enclose whole nasty part in a view.
At least it will be hidden from your eyes. 🙂
[Code]
SELECT
cc.vchrCustomer
,tintWeekNo
...
December 3, 2007 at 4:23 pm
Video games are OK.
But when after competion of 4th year in University we were invoilved in checking enrolling exams...
Gosh! Just 4 year ago we all completed similar tasks! And completed...
December 3, 2007 at 3:58 pm
Another very useful thing is BCP utility.
Look in BOL for complete description.
December 3, 2007 at 2:36 pm
Can anybody give me one simple reason for those RTRIM functions you guys put everywhere?
December 3, 2007 at 2:25 pm
Not quite Russian...
In Russian it would be "Sergey".
😉
But key word is "living in".
Of course. 🙂
December 2, 2007 at 5:29 pm
Jeff Moden (11/30/2007)
Heh... oh yeah... almost forgot..."NO... I am NOT smarter than a 5th grader!" 😛
In our country it's "I am NOT smarter than 10 years old".
But it still true....
December 2, 2007 at 2:26 pm
Jeff Moden (12/1/2007)
Hmmm... and what do you do for sprocs that are used by multiple applications?
Well, procedure is doing the same thing to the same object (or, better, "object").
If this...
December 1, 2007 at 11:53 pm
I want to make sure every row in the table has duration = 100
I would consider a trigger to catch any attempt to save duration <> 100 in the...
November 30, 2007 at 8:54 pm
Viewing 15 posts - 3,256 through 3,270 (of 6,036 total)