Viewing 15 posts - 2,116 through 2,130 (of 6,676 total)
SQL Server uses a proportional fill algorithm when the filegroup has multiple files. This means it will check the available space in each file an proportionally use each data file...
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
October 31, 2019 at 5:37 pm
If you want to be able to calculate or pull information from one Matrix to another (or rather - from a different dataset) - then you can use a LOOKUP...
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
October 30, 2019 at 7:44 pm
But could the same thing be done with a UDF?
Depends on how you write the query using the UDF - because it is still an embedded query in the...
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
October 29, 2019 at 9:42 pm
Also, which would be preferable for report sources -- UDF or stored proc?
Not a comparison I would make. They do different things and will have different uses. Stored...
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
October 29, 2019 at 6:22 pm
Use the cross-tab method as outlined by Thom - this does not utilize the PIVOT operator and is much easier to structure, especially when you want to pivot/cross-tab multiple columns.
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
October 24, 2019 at 3:34 pm
You can use the aggregates min or max. You don't have to count or sum.
Max(case when ... then column else '' end)
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
October 23, 2019 at 10:22 pm
Hi there,
I would like to know the solution for the error which happened on our DB restoring process this morning. It used to work well to refresh the Dev...
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
October 23, 2019 at 5:58 pm
I will use both approaches - depending on what the project requires. For example - when I want to make sure several processes run parallel - the master/child package approach...
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
October 23, 2019 at 5:52 pm
How is the SSH tunnel being opened? I have seen issues where the calling process - in this case SSIS - is run under a user context that does not...
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
October 22, 2019 at 6:59 pm
Not sure those changes will be enough...you need to expand the following:
From (Values (0), (3), (6), (9), (12), (15)) As t(n)
This needs to cover the full length...
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
October 18, 2019 at 7:23 pm
You have include the table [ABC_Schema].[ABC2_Table] b - with no join predicates (cross join) and you don't return any columns from that table or filter by any results in that...
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
October 18, 2019 at 6:16 pm
You just have to use what I provided and build a cross-tab:
Declare @Warranty Table (WarrantyId int, EffectiveDate Date);
Declare @Claims Table (WarrantyId int, ClaimDate Date);
Insert Into @Warranty...
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
October 18, 2019 at 4:40 pm
SQL Server needed the max amount of memory at some point - and will not return that memory to the OS unless the OS requests it (and you don't have...
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
October 17, 2019 at 9:54 pm
First - you have to calculate the quarter start and end dates and name for all relevant quarters for that warranty start date. Once you have that you left join...
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
October 17, 2019 at 9:05 pm
This is not a bug - it is related to the first query that is executed after the stats have been updated. That first query will generate the execution plan...
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
October 17, 2019 at 8:14 pm
Viewing 15 posts - 2,116 through 2,130 (of 6,676 total)