Viewing 15 posts - 511 through 525 (of 819 total)
I mainly use triggers to modify the behavior of third-party db and to alert users by e-mail that some value has been set. e.g. changing terms of payment is permitted,...
February 19, 2013 at 1:12 am
This case is simpler: NO CROSS JOIN NEEDED.
Get result in text format:
create table #temp1(PK int IDENTITY Primary Key, column1 varchar(20))
insert into #temp1 values ('employee 1')
insert into #temp1 values ('employee 2')
insert...
February 12, 2013 at 8:25 am
Boh! Out of the context this script is useless!
Use of cursor is terrible.
February 11, 2013 at 12:58 am
Hugo Kornelis (2/6/2013)
Dineshbabu (2/6/2013)
But you steal some of my time by making me to sit and calculate each and every statement..:-) .
You could have saved that time. I just checked...
February 6, 2013 at 1:04 am
I know how CHOOSE works, but I do not want to know what the default data are for the table Employ!
Let's go!
January 28, 2013 at 2:54 am
raulggonzalez (1/28/2013)
January 28, 2013 at 2:52 am
Federico Iori (8/8/2012)
select CAST(CONVERT(VARBINARY, 'FF00FF', 2) AS INT)
The string to convert must be at least 2 chars long :
select CAST(CONVERT(VARBINARY,...
January 18, 2013 at 4:09 am
What type of White it is? Pure White or Cream.. or Grayish....
It depends: before or after the ride.
January 11, 2013 at 7:08 am
Unbelievable, 98% of right answers! I think it's the record on ssc.
Next, I will submit the following question:
What color was the Napoleon's WHITE horse?
😛
January 11, 2013 at 1:07 am
Your script replace 5 consecutive digits with 2 stars.
Here an optimized version.
declare @substr varchar(50)--substring of input string in while loop
declare @index int--index of number in the substring
set @substr = '1234567890abc89900123456abcde'
while...
January 10, 2013 at 1:03 am
Koen Verbeeck (1/8/2013)
I spend 5 minutes looking for a mistake, only to finally decide there wasn't one, all joins seemed legit. I...
January 9, 2013 at 12:58 am
I prefer ISNULL, the cast is done to the first argument.
I use it e.g. with numeric type ISNULL(int_null,0). But, I should remember that with string ISNULL may be dangerous as...
January 8, 2013 at 1:39 am
Steve Jones - SSC Editor (1/1/2013)
Parens corrected, and my apologies. I changed to question to exclude Jan 31, this that doesn't work.Happy New Year.
I'll award back points tomorrow.
Hi Steve and...
January 3, 2013 at 3:06 am
Viewing 15 posts - 511 through 525 (of 819 total)