Viewing 15 posts - 2,281 through 2,295 (of 3,957 total)
Lynn Pettis (1/2/2013)
dwain.c (1/2/2013)
Tava (1/2/2013)
January 2, 2013 at 6:16 pm
bicky1980 (1/2/2013)
I am just after a bit of clarification. I am writing a procedure which inserts data from one table (Source) into another (Destination) using certain criteria. ...
January 2, 2013 at 6:11 pm
CELKO (1/2/2013)
January 2, 2013 at 5:52 pm
Tava (1/2/2013)
January 2, 2013 at 5:36 pm
Sean Lange (1/2/2013)
adonetok (1/2/2013)
I use len(rtrim(ltrim(NDC))) but got the same problem
Then you must have some non-display characters in your data. Try outputting select * to text instead of the grid....
January 2, 2013 at 5:29 pm
Very forgiving indeed.
SELECT MONTH('April' + ' 1900')
January 2, 2013 at 3:39 am
You might try this:
SELECT CompanyName, Type
,Sunday=MAX(CASE WHEN weekday = 1 THEN Val END)
,Monday=MAX(CASE WHEN weekday = 2 THEN Val END)
...
January 1, 2013 at 9:03 pm
Won't something like this work also?
CREATE TABLE #Customer
(CustID VARCHAR(10)
,OrderDate DATETIME)
INSERT INTO #Customer
SELECT 'A', '2012-01-31' UNION ALL SELECT 'A', '2012-03-31' UNION ALL SELECT...
January 1, 2013 at 8:31 pm
vinu512 (12/31/2012)
--Creating...
January 1, 2013 at 7:37 pm
Was your solution something like this?
;WITH Scores (Score, Percentile) AS (
SELECT Score, NTILE(10) OVER(ORDER BY Score)
FROM sys.all_columns
CROSS APPLY...
January 1, 2013 at 6:44 pm
Nice update to this article Jeff!
I especially liked your mysteriously labelled black line (????). Nice trick with the 0 based Tally table too - will need to remember that...
January 1, 2013 at 6:24 pm
Paul,
You have aptly demonstrated why you are an MVP and I am but a plebe. 🙂
My mistake, using the same string replicated for the test. I knew I shouldn't...
January 1, 2013 at 6:21 pm
Jeff Moden (12/29/2012)
dwain.c (12/25/2012)
Jeff Moden (12/25/2012)
Merry Christmas Dwain.
Let me see. Christmas morning where you are and here you are posting on the SSC forum.
You must want that 32,000th post...
January 1, 2013 at 3:32 am
You're welcome.
BTW. You do see what I was trying to do with @CountOfEmp right?
In case you have more than 5 employees in the table, the right argument of the...
December 26, 2012 at 1:23 am
cms9651 (12/26/2012)
dwain.c (12/26/2012)
I'm not quite sure why but try the full code at the bottom of this post without change.
I tried your full code, I have the same error:
[Err]...
December 26, 2012 at 1:06 am
Viewing 15 posts - 2,281 through 2,295 (of 3,957 total)