Upload
red-gate-software
View
925
Download
1
Embed Size (px)
DESCRIPTION
Presentation from Ike Ellis at SQL In The City US Tour 2013.
Citation preview
•
•
–
•
http://extras.sqlservercentral.com/prettifier/prettifier.aspx
Red Gate PlugIn for SQL Server Management Studio
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
• Result set can be used in SELECT, INSERT, UPDATE, or DELETE
• Advantages of common table expressions:
– Queries with derived tables become more readable
– Provide traversal of recursive hierarchies
WITH TopSales (SalesPersonID, NumSales) AS
( SELECT SalesPersonID, Count(*)
FROM Sales.SalesOrderHeader GROUP BY SalesPersonId )
SELECT * FROM TopSales
WHERE SalesPersonID IS NOT NULL
ORDER BY NumSales DESC
•
•
•
•
•
•
•
–
–
–
–
•
•
•
–
–
•
•
•
•
•
select c.Name, e.InstanceName, e.UserName, e.Parameters, e.TimeStart, e.TimeEnd, e.TimeDataRetrieval, e.TimeProcessing, e.TimeRenderingfrom executionlog ejoin catalog con e.reportid = c.ItemID
Send a Link, or a file on a shared folder that you can audit. Find someway to audit who opened the link or the file in the folder. Try to avoid sending the PDF without a way to audit it.
•
•
•
•
•
•
•
•
•
•
•
–
•
–
•
•
•
•
•
•
•