Viewing 15 posts - 16 through 30 (of 208 total)
ColdCoffee (9/28/2010)
craig 33233 (9/27/2010)
September 28, 2010 at 5:57 am
Kit G (9/27/2010)
Kit G (9/27/2010)
steve-893342 (9/27/2010)
Kit G (9/27/2010)
steve-893342 (9/24/2010)
I think you can solve this one with a PIVOT and some splitting
Thanks Steve for the code. That date at Los...
September 27, 2010 at 2:11 pm
Kit G (9/27/2010)
steve-893342 (9/24/2010)
I think you can solve this one with a PIVOT and some splitting
Thanks Steve for the code. That date at Los Mules where the Event date...
September 27, 2010 at 1:34 pm
I don't think you can do this very easily using BULK INSERT because of the irregular first row. You can instead use OPENROWSET BULK and treat the first row as...
September 27, 2010 at 10:29 am
I use a method here which taps in to Phil Factor's sp_scriptfor stored procedure.
Using this stored procedure we can populate the table #HOLD_Scripts with all the scripts...
September 26, 2010 at 2:18 pm
Check out this query and see what you think
;WITH cte1 AS
(
SELECT ROW_NUMBER() OVER (PARTITION BY ProdDate, Line, Model, ProdNo, SSerial, Lot, Period, UploadDate ORDER BY CASE WHEN SUBSTRING(SerialNoStart, 4, 1)...
September 25, 2010 at 12:13 pm
Paul White NZ (9/24/2010)
steve-893342 (9/24/2010)
Unless BETWEEN is more efficient here, you just need the LESS THAN
I tend to agree. I'm patiently waiting for Jeff to post the new Tally...
September 25, 2010 at 1:47 am
This might give you an idea of how you could use a PIVOT query
IF NOT OBJECT_ID('tempdb.dbo.#t', 'U') IS NULL DROP TABLE #t;
SELECT 'Excel' AS Application, 'Bob Jones' AS [User], 10...
September 24, 2010 at 6:11 pm
I think you can solve this one with a PIVOT and some splitting
;WITH cte AS
(
SELECT ROW_NUMBER() OVER (PARTITION BY Venue, Address1, City, State, Zip, MenuChoices,...
September 24, 2010 at 1:26 pm
Jeff Moden (9/23/2010)
steve-893342 (9/23/2010)
Jeff Moden (9/22/2010)
steve-893342 (9/22/2010)
Jeff Moden (9/22/2010)
WHERE N...
September 24, 2010 at 12:53 am
Jeff Moden (9/22/2010)
steve-893342 (9/22/2010)
Jeff Moden (9/22/2010)
WHERE N BETWEEN 1 AND...
September 23, 2010 at 5:11 am
Mark-101232 (9/22/2010)
steve-893342 (9/22/2010)
Jeff Moden (9/22/2010)
The problem with the Tally Table related splits is that I forgot :blush: to add 1 to the length....WHERE N BETWEEN 1 AND LEN(@Parameter)+1
Shouldn't...
September 22, 2010 at 12:24 pm
Jeff Moden (9/22/2010)
The problem with the Tally Table related splits is that I forgot :blush: to add 1 to the length....WHERE N BETWEEN 1 AND LEN(@Parameter)+1
Shouldn't that be
WHERE...
September 22, 2010 at 9:01 am
Paul White NZ (9/22/2010)
DECLARE @CSV NVARCHAR(MAX) = N'A,B&C,,C,?,',
@Delim NVARCHAR(255) = N',';
SELECT S.sequence,
...
September 22, 2010 at 6:56 am
Paul White NZ (9/22/2010)
steve-893342 (9/19/2010)
Good one:-)I shall remember that for next time I need to bcp and split at the same time;-)
:laugh: Well there is some reasoning behind the example...
September 22, 2010 at 5:02 am
Viewing 15 posts - 16 through 30 (of 208 total)