Viewing 15 posts - 781 through 795 (of 1,923 total)
As Lutz pointed it out, the problem is with the full stop not being present for some rows 🙂
{Edit: Sorry for the typo, it was Lutz not Lowell :-P}
May 10, 2011 at 5:05 pm
Something like this?
DECLARE @Table TABLE
( Server VARCHAR(250), name VARCHAR(20) )
INSERT INTO @Table
VALUES ('w112','n1')
, ('w110','n2')
, ('radon1', 'n3')
, ('radon1b.abc.com', 'n4')
, ('radon1c.abc.com','n5')
, ('radon1d.abc.com','n6')
SELECT REVERSE( PARSENAME ( REVERSE( Server + '.')...
May 10, 2011 at 4:56 pm
OK, here is another solution, which is primarily for sets with more than 3 columns. For 2 columns, the other solution will scale up well ( imho )
; WITH UnPivotData...
May 10, 2011 at 4:44 pm
Try this:
DECLARE @TodaysDate DATETIME
SELECT @TodaysDate = DATEADD ( MM , DATEDIFF( MM , 0, GETDATE() ) ,6)
; WITH Calendar_Months ( N ) AS
(
...
May 10, 2011 at 2:58 pm
3rd month from May is July and from April it is June?
So if today = 7-Apr-2011 (4/7/11) then the next entry should be 7-June-2011 ( 6/7/2011) ?? your examples show...
May 10, 2011 at 2:35 pm
Something like this?
; WITH CTE AS
(
SELECT RN = ROW_NUMBER() OVER ( PARTITION BY Country , ( CHECKSUM( column1 + column2 ) + CHECKSUM( column2 + column1 ...
May 10, 2011 at 12:53 pm
A slight variation from Wayne's Code:
; WITH Tens (N) AS
(
SELECT 1
UNION ALL SELECT 1
UNION ALL SELECT 1
UNION ALL SELECT 1
UNION ALL SELECT 1
UNION...
May 9, 2011 at 6:08 pm
Ninja's_RGR'us (5/6/2011)
Alright... let's just call it friday afternoon and time to go home.l8r! ;-):-P:-D:hehe::smooooth:
Friday afternoon, and going HOME ?? :w00t::-D
May 6, 2011 at 11:53 am
Dhruva25 (5/6/2011)
May 6, 2011 at 11:51 am
Ninja's_RGR'us (5/6/2011)
ColdCoffee (5/6/2011)
Ninja's_RGR'us (5/6/2011)
Crap code too!!!!!!!!!!:w00t:😛
ya but you beat me to it :w00t:
So somehow it must be your fault :hehe:
Surrendering, Master :w00t: 😛
May 6, 2011 at 11:33 am
Ninja's_RGR'us (5/6/2011)
Crap code too!!!!!!!!!!:w00t:
😛
May 6, 2011 at 11:20 am
Ninja's_RGR'us (5/6/2011)
ColdCoffee (5/6/2011)
Like this:{CRAP CODE}
Msg 156, Level 15, State 1, Line 21
Incorrect syntax near the keyword 'IN'.
Fixed the code 🙂
May 6, 2011 at 11:20 am
Like this:
SELECT openorder
FROM @Table
WHERE
openorder =
( CASE WHEN @openorder > 1 THEN 1 ...
May 6, 2011 at 11:04 am
The elements in yous ColumnA is not following a pattern. This makes it impossible to write a parser for this. Will the number of elements in COlumnA vary (i see...
May 5, 2011 at 2:48 pm
I know of a method that could actually get what you want, but i need bit help from your side to do that.. I need the table structure (as CREATE...
May 5, 2011 at 1:20 am
Viewing 15 posts - 781 through 795 (of 1,923 total)