Viewing 15 posts - 5,101 through 5,115 (of 5,394 total)
The case expression evaluates row by row the value of the column t and then gets into the appropriate "then". When the row containing "O" is evaluated, the expression returns...
June 24, 2009 at 6:18 am
Ken McKelvey (6/24/2009)
or:
SELECT t
FROM @t
ORDER BY CASE t WHEN 'O' THEN 1 ELSE 0 END, t
Much better than mine.
June 24, 2009 at 6:10 am
Try adding a computed column in a subquery and then order by that column:
declare @t table (t varchar(5))
insert into @t values('F')
insert into @t values('A')
insert into @t values('O')
insert into @t values('L')
insert...
June 24, 2009 at 6:03 am
WayneS (6/23/2009)
Well, I let him know a solution is available, but... well, see for yourself... http://www.sqlservercentral.com/Forums/FindPost740549.aspx
LOL! What's your hourly fee, Wayne? I need to get the grass cut... 😀
June 23, 2009 at 2:34 pm
I use HitOLEDB400 from Hit Software and it performs quite well.
With "quite well" I mean we can transfer 2 Gb of data from iSeries to SQLServer in less than...
June 23, 2009 at 11:24 am
jcrawf02 (6/23/2009)
Jeff only accepts Bulk payment, not one at a time. (PBAP):hehe:
... but, wait: wasn't PBAP "Porkchop By Agonizing Porkchop"? 😀
I was keeping this for the day Microsoft decides to...
June 23, 2009 at 11:15 am
What about piping the sp result set into a temp table and the selecting just the columns you need?
Something like:
CREATE TABLE #tempTable (column1 int, ... columnN int)
INSERT #tempTable EXEC myProcedure
SELECT...
June 23, 2009 at 11:10 am
The instance can have any name you like. I'm not aware of any issue with choosing a custom name.
Hope this helps
Gianluca
June 23, 2009 at 9:14 am
don_goodman (6/22/2009)
...I spend my time reading over-written articles by people with less experience.
I must believe you're not referring to this article, or I misunderstood your post.
I think the community...
June 23, 2009 at 6:25 am
Obviously you would have to add a new column to the trace table ad add the code to populate it in the db trigger.
June 23, 2009 at 2:47 am
You can get the application name from the connection properties:
select program_name from master.dbo.sysprocesses where spid = @@spid
But I don't know if this is exactly what you need.
June 23, 2009 at 2:45 am
Viewing 15 posts - 5,101 through 5,115 (of 5,394 total)