Viewing 15 posts - 6,256 through 6,270 (of 7,608 total)
Here is a sample CROSS APPLY for your situation.
SELECT Part#, CustomerID, ca1.Wk_Num, ca1.Qty
FROM (
SELECT 'A' AS Part#, 1 AS CustomerID, 10 AS Wk1, 20 AS Wk2,...
January 15, 2014 at 1:45 pm
Yeah, sorry, in too big a hurry, left something out of the code:
SELECT
/* @IdCompany = */ e.IdTCompany,
/* @IdClient = */...
January 13, 2014 at 1:45 pm
SELECT
/* @IdCompany = */ e.IdTCompany,
/* @IdClient = */ e.IdClient,
/* @address = */ COALESCE(a1.address, a2.address)
FROM emp e
LEFT...
January 13, 2014 at 12:44 pm
My guess would be that somehow task schedule is using a batch size of 1 row (or some very small number of rows). See if you can change the...
January 8, 2014 at 4:03 pm
I'm not sure what you mean about procs and CDC.
CDC uses the SQL log to get changes, so it shouldn't require use of procs, or even know how any change...
January 8, 2014 at 3:54 pm
Jeff Moden (1/6/2014)
ScottPletcher (1/6/2014)
Depending on your specific data, future inserts could be sequential anyway. Even if not,...
January 7, 2014 at 8:08 am
Actually, it is a terrible idea to add an identity to this table.
Depending on your specific data, future inserts could be sequential anyway. Even if not, rows are inserted...
January 6, 2014 at 10:25 pm
Identity is a terrible idea on that table. Use the existing columns, in whichever order best matches your use of the table: either ( Item, ItemNumber ) or (...
January 6, 2014 at 3:36 pm
Jeff Moden (1/1/2014)
fahey.jonathan (12/12/2013)
January 2, 2014 at 3:59 pm
Rando (1/2/2014)
Again, I'm just looking for the results to be the following;
Date: 12/30/2013
Time:...
January 2, 2014 at 8:11 am
SELECT
CONVERT(varchar(10), CAST(CounterDateTime AS datetime), 101) AS Date,
RIGHT(CONVERT(varchar(20), CAST(CounterDateTime AS datetime), 100), 7) AS Time
FROM table
December 30, 2013 at 3:42 pm
Jeff Moden (12/24/2013)
ScottPletcher (12/24/2013)
If you don't have any data longer than 24 bytes (or so), it might be easier just to "brute STUFF" it:
Awesome! I don't believe anything will...
December 24, 2013 at 1:24 pm
If you don't have any data longer than 24 bytes (or so), it might be easier just to "brute STUFF" it:
WITH SampleData (MyStr) AS
(
SELECT '12345678'
...
December 24, 2013 at 10:45 am
Jeff Moden (12/20/2013)
ScottPletcher (12/20/2013)
Evil Kraig F (12/20/2013)
ScottPletcher (12/20/2013)
December 23, 2013 at 7:17 am
Viewing 15 posts - 6,256 through 6,270 (of 7,608 total)