Viewing 15 posts - 26,266 through 26,280 (of 59,102 total)
Tim Walker. (8/7/2013)
I now have confidence that I know how this all hangs together.
Shame in a way though. Table variables always compile...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 7, 2013 at 9:16 pm
To add to what has already been stated, CTEs are sometimes referred to as "inline views" and they act pretty much like a view would. It is not a...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 7, 2013 at 3:36 pm
aobermueller (8/7/2013)
---------------------------------------------------------
SELECT [Month] = DATENAME(mm,SomeDateTime),
Amount = SUM(SomeAmount)
...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 7, 2013 at 3:25 pm
Erland Sommarskog (8/7/2013)
Jeff Moden (8/6/2013)
What would you use as an alternative? Insert/Exec?
If you've read my article, you know that nor am I fond of INSERT/EXEC.
As long as I have...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 7, 2013 at 3:22 pm
shani19831 (8/6/2013)
Thanks for the query, its returning what i want, but i have never used CTE and have no knowledge of it, guess its time to learn.
is there no easy...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 7, 2013 at 12:25 am
Personally, I would find the person who stored such formatted data in the database and take them to the woodshed for a serious talk about what databases are.
--Jeff Moden
Change is inevitable... Change for the better is not.
August 7, 2013 at 12:18 am
adonetok (8/6/2013)
How to code to pass inter year and month return last day of month?For example,
pass 2012, 7 will return 07/31/2012
pass 2014, 6 will return 06/30/2014
Do you actually want...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 7, 2013 at 12:14 am
azdeji (8/6/2013)
Both SQL codes work perfectly!Thanks Peter Brinkhaus and ChrisM@home
Do you understand how they work?
--Jeff Moden
Change is inevitable... Change for the better is not.
August 7, 2013 at 12:11 am
I wouldn't aadd the sequence number to the original data because it makes it more difficult to use criteria not to mention that it's a form of denormalization. The...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 6, 2013 at 11:59 pm
jarid.lawson (8/6/2013)
--Jeff Moden
Change is inevitable... Change for the better is not.
August 6, 2013 at 11:55 pm
Luis Cazares (8/6/2013)
Lowell (8/6/2013)
--Jeff Moden
Change is inevitable... Change for the better is not.
August 6, 2013 at 11:53 pm
Abu Dina (8/6/2013)
Thanks I've sorted it out.. currently testing the results.Yes, RTFM I know I know 😀
Would you post your solution, please?
--Jeff Moden
Change is inevitable... Change for the better is not.
August 6, 2013 at 11:36 pm
Erland Sommarskog (8/5/2013)
--Jeff Moden
Change is inevitable... Change for the better is not.
August 6, 2013 at 11:19 pm
andymay-496937 (8/6/2013)
Thanks for that, I'm not sure that Books on Line advice about putting the values in a table are that helpful for SSRS, but it's good stuff in general.thanks
Where...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 6, 2013 at 11:15 pm
ck9663 (8/6/2013)
To change the number of batch, change the value of @batch variable.
declare @batch as smallint
set @batch = 6
if object_id('tempdb..#sample') is not null
drop table...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 6, 2013 at 11:05 pm
Viewing 15 posts - 26,266 through 26,280 (of 59,102 total)