Viewing 15 posts - 121 through 135 (of 246 total)
BOL states
Unlike the syntax error in the previous example, an error that occurs during statement-level recompilation will not prevent the batch from compiling, but it will terminate the batch as...
October 20, 2011 at 8:52 am
could it be the Alias of your collated column?
you've called it 'Job Name' instead of 'Name'
September 30, 2011 at 9:09 am
i just tried it and it seemed to work
begin transaction
truncate table tablename
rollback transaction
didn't remove anything from the table
September 21, 2011 at 8:26 am
case
when (( Datepart(month,dtTemp) > 8 ) or ((Datepart(month,dtTemp) = 8)
and (DATEPART(WEEK,DAY(dtTemp))) = 1 )) then
'Sep-' + cast(right(datepart(yy,dtTemp),2) as varchar(30)) + ' to ' + 'Aug-' + right(datepart(yy,dtTemp)+1,2)
else
'Sep-' +...
September 1, 2011 at 9:54 am
i think its the comma at the end of this parameter that is being mentioned.
@Primaryagency_TTY varchar(700),
August 11, 2011 at 9:47 am
i see, thanks.
My thought process was, if the Stored Procedure code was created within the column of a Table, and then i was able to run all those Stored Procedures...
August 4, 2011 at 3:17 am
you want to evaluate two conditions in the same case statement like this?
select case when 1 = 1 and 2 = 2 then 'both' else 'not both' end
August 3, 2011 at 4:19 am
i see where i was going wrong.
i was right clicking the table name in the Object Explorer and selecting Edit Top 200 Rows and then typing in NCHAR(8486) into the...
July 21, 2011 at 6:06 am
that is the character i'm looking for. how would i store it as that character within the database though? I changed my database column to an nvarchar column and added...
July 21, 2011 at 4:30 am
rsnyderdba (7/13/2011)
July 14, 2011 at 6:26 am
Matt S. (7/12/2011)
July 12, 2011 at 9:00 am
this is certainly something that i would be interested in knowing as well. just out of curiosity really.
July 8, 2011 at 4:57 am
is this what your looking for?
select
distinct product
from @colour c1
where
(select COUNT(*) from @colour c2 where color = 'GREEN' and c2.product = c1.product) > 0
and (select COUNT(*) from @colour c3 where...
June 30, 2011 at 7:00 am
select RU,bu
,(select top 1 ent from @entity_list e2 where e2.RU = e1.RU and e2.BU = e1.BU)
from @#entity_list e1
group by RU,BU
could this work?
June 30, 2011 at 6:05 am
Lowell (6/28/2011)
lol except for aliases, we got the same solution!
I wonder if there are other ways of doing this, or is this the accepted 'best' way?
June 28, 2011 at 8:35 am
Viewing 15 posts - 121 through 135 (of 246 total)