Viewing 15 posts - 241 through 255 (of 49,571 total)
I strongly recommend you steer away from that inefficient method (and it is going to be really inefficient on larger date ranges), and use a numbers table to generate the...
March 23, 2018 at 2:30 pm
It's just, afaik, a filtered view of sys.dm_exec_query_stats.
March 23, 2018 at 2:25 pm
To be honest, I wouldn't configure more than 8 without some evidence of allocation contention. The only time I'd have 24, is if, with 20 files, there was still evidence...
March 23, 2018 at 2:24 pm
March 23, 2018 at 11:38 am
You got a calendar or numbers table in your database? If not, can you create one?
March 23, 2018 at 10:13 am
What error is being thrown, or what is it doing that it's not supposed to?
March 23, 2018 at 6:54 am
river1 - Thursday, March 22, 2018 5:12 AMThank you for the link.It says only enterprise and dev editions support it.
Correct. It does.
The...
March 22, 2018 at 5:54 am
Please don't post the same question in multiple places.
No further replies here please. Replies to: https://www.sqlservercentral.com/Forums/1928776/SELECT-INTO-doesnt-update-the-tables-recursively
March 22, 2018 at 3:31 am
Using Pietlinden's sample tables above (thanks), this looks like it should give what's wanted.
SELECT account
, amt
, rnk
, FixDate
,...
March 21, 2018 at 10:36 am
If they're datetimes (not strings) it won't matter to SQL what they are. I'm not American, your format confuses me.
One more thing. What should be returned if there...
March 21, 2018 at 10:22 am
So for both of these, it should return the 3rd Feb?
(22, 200, 2, '01/01/2018')
(53, 90, 2, '01/04/2018')
In other words, is the date selected only based...
March 21, 2018 at 10:10 am
select <current columns>, paydate from <whatever tables are in your query>
CROSS APPLY (SELECT TOP(1) paydate FROM tbldates WHERE tbldates.paydate > payabledate ORDER BY paydate) AS NextPayDate
March 21, 2018 at 9:39 am
March 21, 2018 at 9:32 am
You're not going to be able to do that in a view. Views can't execute procedures or dynamic SQL. Functions can't execute procedures or dynamic SQL.
Consider using a...
March 21, 2018 at 9:16 am
Viewing 15 posts - 241 through 255 (of 49,571 total)