Viewing 15 posts - 61 through 75 (of 245 total)
you can use SELECT ERROR_LINE() to get the line the error occurred on.
September 24, 2012 at 3:45 am
GilaMonster (9/20/2012)
SELECT LEN('a')
ha, thats what i came up with 😀
September 20, 2012 at 9:40 am
the only way i can think of is to have the 'commonly viewed parameters' as a seperate 'one-tick' option.
September 20, 2012 at 2:46 am
perhaps like this?
select case when @type1 = 'RFS' THEN
case when @type2 = 'RFS' THEN
case when @type3 = 'RFS' THEN
case when @type4 = 'RFS' THEN 'ALL' ELSE @type4 END ELSE @type3...
September 18, 2012 at 9:53 am
I actually think celko has a point with his comment here. I certainly think its something that should have been brought up
It's not as bad as sOme of his other...
August 12, 2012 at 3:50 am
there's an answer at the bottom of this page
http://msdn.microsoft.com/en-us/library/ms174979(v=sql.105).aspx
it states:
Allowing an extra comma after the last column definition makes the code easier to generate and maintain because all lines can...
August 10, 2012 at 9:31 am
Genius, Mark! thanks 🙂
as you can see, i had a play around with the 'sql:variable' syntax, trying to get that to work for me, but your advice works like a...
August 7, 2012 at 8:45 am
EDIT.
i say 'there are 400 code'. what i mean, is that there could be upto 400 'code'.
in practice, 0,1 or more of the 'code' could be filled in.
August 7, 2012 at 8:28 am
i got this question wrong initially. now its changed my answer and says i've got it right:w00t:
July 31, 2012 at 5:55 am
based on the code above:
DECLARE @VALUE INT
SET @VALUE = 101
SELECT
*
from
Apprentices
WHERE
1 = case
when @VALUE = 103
then 1
when @VALUE = 101 and id in ('TX','CA','NM','AZ')
then 1
when @VALUE = 102 and...
July 27, 2012 at 7:20 am
SGT_squeequal (7/10/2012)
July 10, 2012 at 5:44 am
aah well, never mind. thanks anyway 🙂
I shall have a look at Source Control products out there and what they do.
cheers
July 10, 2012 at 3:55 am
declare @table table(id varchar(50))
insert into @table
select 'PSSA Math'
union all
select 'PSSA Science'
union all
select 'PSSA Reading'
union all
select 'PSSA Writing'
union all
select 'PSSA-M Math'
union all
select 'PSSA-M Science'
union all
select 'PSSA-M Reading'
union all
select 'PSSA-M Writing'
select
SUBSTRING(id,...
July 9, 2012 at 9:08 am
i've only just learnt about the OUTPUT clause but it is extremely useful.
July 5, 2012 at 7:58 am
Viewing 15 posts - 61 through 75 (of 245 total)