Viewing 15 posts - 106 through 120 (of 454 total)
Why not to store dynamic SQL in a varchar(max) variable ? Why you need both temp tables?
What is the goal to join to sys.database_mirroring ? You're not using anything from...
October 6, 2015 at 7:56 am
You can do it without cursor
select session_id,DB_NAME(database_id),text, transaction_id
from sys.dm_exec_requests r outer apply sys.dm_exec_sql_text (sql_handle)
where open_transaction_count>1
October 6, 2015 at 7:34 am
Thank you. They have catalog views for databases, tables, columns , but they don't show whether a column is calculated. But anyway, it's good. I did not know that SSAS...
September 29, 2015 at 9:50 am
Yes, thanks Gail, I just found that it was blocked by another insert.
September 2, 2015 at 3:25 pm
Grant Fritchey (8/26/2015)
August 26, 2015 at 12:43 pm
Yes, I checked execution plan, and executed it on empty and filled buffer cache in test server, it all executes within seconds. But my PageIOLatches happen in production, and not...
August 26, 2015 at 11:47 am
Perry Whittle (8/6/2015)
SQL Guy 1 (8/5/2015)
August 6, 2015 at 7:15 am
JManuelN (8/6/2015)
There should be no problems moving DBs to a different path location. Only if you have read-only databases or read-only filegroups you may find some issues. Maybe if you...
August 6, 2015 at 7:14 am
djj (8/3/2015)
I have had luck with
DECLARE @Date DATE = '1/1/2015', @Time TIME = '15:20'
SELECT cast(@Date as datetime) + cast(@Time as datetime)
This looks like the most elegant solution. But I...
August 3, 2015 at 1:52 pm
Thanks for the links, Alan. Especially for the 2nd one. Interestingly, it in turn links back to SSC site to a great script written by Gianluca Sartori: http://www.sqlservercentral.com/scripts/tempdb/72007/
About...
July 22, 2015 at 8:14 am
Thanks a lot, Vincy. Checkpoint greatly helped me. I was running it just once, and it was enough to bring it to 0%, though it took almost 2 min.
Alan: how...
July 21, 2015 at 11:56 am
At any rate, that will show you the base tables being used. If I may ask, what exactly are you trying to pull from the restored version of master?
At the...
July 14, 2015 at 7:39 am
Thanks again, now I can easily query :
select * from [old_master_2015_07_10].[sys].[sysxsrvs]
Now I need an underlyer table for sys.server_principals view. But how to find all the tables for system views?...
July 13, 2015 at 4:03 pm
Thanks, this was my mistake:
2) you're trying to connect object explorer in SSMS, which won't be allowed
Now I will go further, because this was holding me.
July 13, 2015 at 3:24 pm
Viewing 15 posts - 106 through 120 (of 454 total)