Viewing 15 posts - 226 through 240 (of 241 total)
If you select the first file then I believe the Tuning adviser will automatically use the additional files
File
Specify a .sql script or trace file for a workload. Specify the...
December 21, 2015 at 5:01 am
Sorry just noticed the requirement for a maximum of 8 rows per company
with cte as (
select
Companyid
,asofdate
,period
,row_number() over(partition by Companyid, asofdate order by period) as rownum
from temp)
select *
from...
December 17, 2015 at 2:26 pm
Does this do what you need?
with cte as (
select
Companyid
,asofdate
,period
,row_number() over(partition by Companyid, asofdate order by period) as rownum
from temp)
select *
from cte
where rownum = 1
December 17, 2015 at 2:20 pm
shirish_padekar (12/16/2015)
December 16, 2015 at 4:08 am
Change the MaximumErrorCount property on the foreach loop to something greater than 1. This way if there is an error the loop will continue and will only fail if it...
December 14, 2015 at 1:10 pm
You could use a CTE or subquery to initially select the rows with valid dates or you could replace the CAST with TRY_CAST which will return null for invalid values...
December 4, 2015 at 3:44 am
You have a cast in the where statement which is commented out. If this is part of the actual query it is possible that SQL will evaluate this first before...
December 4, 2015 at 3:04 am
Larnu (11/26/2015)
Unless I'm doing something funny, when I run D, I actually get 27/11/2015 (when i run it for this year, sorry, I forgot to mention that). Just me?
It only...
November 26, 2015 at 6:33 am
Nice fun question to end the week.
Random fact time. A try is called a try as it originally didn't score any points. It allowed the scorer to have a try...
October 30, 2015 at 5:59 am
Can you use another user who can log in, and if you look in the SQL logs there should be entries in here to do with the failed login that...
August 18, 2015 at 4:56 am
What parts are you having issues with?
Post what you have written already along with some sample data.
August 18, 2015 at 3:40 am
ScottPletcher (8/12/2015)
August 14, 2015 at 4:18 am
Thank you Luis. I will have a play about with this so I understand fully what it is doing but after a first test, on a million rows, using only...
August 12, 2015 at 7:51 am
Viewing 15 posts - 226 through 240 (of 241 total)