Viewing 15 posts - 691 through 705 (of 1,838 total)
that's the right query, but you truncated the trailing spaces in counter_name, they are needed for the query to work:SELECT * from sys.dm_os_performance_counters where object_name='SQLServer:Databases' and counter_name='Transactions/sec ...
October 31, 2017 at 9:59 am
given the new listing for Vijay's query, maybe something like:DELETE FROM Table1 t1
WHERE NOT EXISTS
(SELECT NULL FROM Table2 t2
WHERE t1.col1...
October 27, 2017 at 3:07 pm
SQL Server only stores execution information for a query for all users for the duration the execution of the plan is cached in sys.dm_exec_query_stats. If you need specific user for...
October 27, 2017 at 2:57 pm
(select COL1 from Table1
MINUS
...
October 27, 2017 at 1:31 pm
October 27, 2017 at 11:47 am
I'd say a key point in making the determination of using virtualization is the knowledge the IT department already has about virtualization. While it's easy to setup new virtual servers...
October 27, 2017 at 11:37 am
I'm not sure offhand why some would not script with the binary part, when I script mine through Object Explorer, they always come out like:CREATE ASSEMBLY [myAssemblyName]
October 24, 2017 at 11:59 am
I'm not sure I understand the reason you need to keep recreating the assembly in SQL Server, but if you're just looking to avoid referencing the DLL file every time...
October 24, 2017 at 10:51 am
October 20, 2017 at 10:08 am
October 20, 2017 at 10:01 am
This was a nice demonstration of using partition switching to solve the problem of "loosing" the previous version of the data. I suppose this solution would make a bit more...
October 20, 2017 at 7:21 am
For something like that, I'd typically use SSIS, with a Foreach Loop Container, such as described here:
http://microsoft-ssis.blogspot.com/2011/02/how-to-configure-foreach-loop-file.html
I'm not quite sure about dealing with the different...
October 18, 2017 at 2:26 pm
I don't think the logic for last_outcome is correct. Maybe something like this:SELECT job_name = j.name, run_count, total_failures, total_cancellations, run_status AS last_run_status, run_datetime AS last_run_datetime
...
October 17, 2017 at 3:51 pm
maybe it would be best to figure out the list of potential dates first, then compare?DECLARE @rundate date = '2017-10-17';
DECLARE @comparedate date = CASE WHEN DatePart(dw,@rundate)=2...
October 17, 2017 at 10:41 am
...They don't have to do the same job, as in my current position. I...
October 17, 2017 at 10:31 am
Viewing 15 posts - 691 through 705 (of 1,838 total)