Viewing 15 posts - 1,351 through 1,365 (of 5,590 total)
ruffindmc (5/19/2011)
May 20, 2011 at 7:54 am
Thanks for posting this, it looks very informative.
May 20, 2011 at 7:43 am
YSLGuru (5/19/2011)
Thanks for the reply along with sample code.
Q - This requires that the row you want can eb sorted so that it is the fir row...
May 20, 2011 at 7:41 am
Craig Farrell (5/19/2011)
Steve Jones - SSC Editor (5/19/2011)
mister.magoo (5/19/2011)
[rant]This takes the biscuit http://www.sqlservercentral.com/Forums/FindPost1112017.aspx
[/rant]
I think it's time for happy hour. That's crazy
BWAHAHAHAHAHAAHAHAHAHA... sorry, but holy newbie! That really needed to...
May 19, 2011 at 3:15 pm
sku370870 (5/19/2011)
Am I heading in the right direction?
Looks right to me.
As I'm sure you've realised - I've never really used dynamic SQL before - how do I handle the fact...
May 19, 2011 at 11:16 am
DECLARE @test-2 TABLE (
SalesOrderId INT,
ModifiedDate DATETIME,
PRIMARY KEY CLUSTERED (SalesOrderID, ModifiedDate));
INSERT INTO @test-2 ( SalesOrderId, ModifiedDate )
VALUES ( 1, '2011-05-19 01:10:52'),
...
May 18, 2011 at 7:14 pm
tooba111 (5/18/2011)
UPDATE MYTABLE
SET INVOICE = WITH cte AS
(
SELECT RowID,
Col1,
RN =...
May 18, 2011 at 7:06 pm
DECLARE @test-2 TABLE (RowID INT IDENTITY PRIMARY KEY CLUSTERED, Col1 VARCHAR(20));
INSERT INTO @test-2 (Col1)
VALUES ('INVOICE'),
('C-125'),
...
May 18, 2011 at 3:05 pm
While it is commonly called Active/Active, MS actually calls it a "multiple-instance cluster". They have been trying, since 2000(?) to get rid of that Active/Active terminology.
May 18, 2011 at 2:48 pm
:Whistling: Actually, you need both the ROW_NUMBER and DENSE_RANK functions...
;
WITH cte AS
(
SELECT * ,
Grp = ROW_NUMBER() OVER (PARTITION BY id ORDER BY...
May 18, 2011 at 11:22 am
This should get you the data in the format you want:
SELECT Skill, [Bill], [Jim], [Mary]
FROM (SELECT s.Skill,
...
May 18, 2011 at 10:58 am
Okay... what are you going to do with this once converted? It will store properly in one of the date data types as it is.
Have you looked into using the...
May 17, 2011 at 6:08 pm
Several good solutions here. Just to note that mine does NOT handle times of only three characters (hours < 10); it is assuming that they will be zero filled. If...
May 17, 2011 at 4:56 pm
ranuganti (5/17/2011)
I have two columns 'date' varchar (8) and 'time' varchar (4)
I want to club 2 columns in to one one column as smalldatetime and order by date and time.
and...
May 17, 2011 at 3:23 pm
Viewing 15 posts - 1,351 through 1,365 (of 5,590 total)