Viewing 15 posts - 2,026 through 2,040 (of 6,676 total)
The whole idea behind the script I posted is that it will return the same information as Activity Monitor. In fact - it is the exact same query that is...
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
January 28, 2020 at 7:44 pm
The issue with Activity Monitor is not actually related to the version of SSMS - it is an issue with the version of SQL Server. This issue only shows up...
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
January 27, 2020 at 9:21 pm
Review this item: https://feedback.azure.com/forums/908035-sql-server/suggestions/37050118-ssms-17-9-1-activity-monitor-pauses-when-open-proc
If that is the issue - you can use this script to get the same data as you would from the processes tab:
...
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
January 27, 2020 at 8:06 pm
Copying a table from one database to another database on the same server will not have any impact on performance unless that other copy has different indexes or there are...
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
January 27, 2020 at 7:27 pm
I never use automatic seeding - even on databases that are small enough. The process I use - and one that has not failed yet...is:
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
January 25, 2020 at 4:51 pm
This was a request that came in as an attempt to eliminate cross database queries made by the stored procedure that gathers data from 11 different tables across 3...
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
January 24, 2020 at 7:51 pm
If it is an issue of trailing control characters - you could also use SUBSTRING or LEFT to truncate the string and convert:
SELECT cast(substring('16.3%'+CHAR(10), 1, charindex('%', '16.3%'+CHAR(10),...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
January 23, 2020 at 7:56 pm
I have to ask - why do you need a second copy of the table in another database on the same instance? Just reference the table from the production DB...
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
January 23, 2020 at 7:39 pm
If you are looking to filter this based on whether or not the parameter @PatientID and/or @CareProviderID is passed in - then include that in the WHERE clause instead of...
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
January 16, 2020 at 8:15 pm
Can you clarify:
Is the backup file the same size as the backup file you sent to the cloud? Or - is the restored database the same size as the on-premise...
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
January 16, 2020 at 6:57 pm
Is there a reason you prefer subtracting the excluded amounts - instead of just adding up the amounts for your own total? Is it possible that the TotalStuff column has...
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
January 16, 2020 at 6:46 pm
looking at your execution plan, 9 million rows at 15 bytes per row is not very large, so it was able to read the entire table and do 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
January 15, 2020 at 10:45 pm
Here is an idea:
Declare @yearID int = 2019
, @periodIDValue varchar(3) = 'P12';
Select dateadd(day, -1, dateadd(month, 1, cast(@yearID * 10000 +...
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
January 15, 2020 at 9:02 pm
Expanding on Scott's idea - since you want a total of the values:
SELECT
[...],
ca1.TotalStuff
FROM #OrigTable OT
INNER JOIN #BucketExclude BE...
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
January 14, 2020 at 10:05 pm
If you need to dynamically create the SQL statement - here is one possibility:
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
January 14, 2020 at 7:54 pm
Viewing 15 posts - 2,026 through 2,040 (of 6,676 total)