Tag Archives: microsoft sql server
-
DDL Trigger to log database level security commands.
4June 24, 2021 by Kenneth Fisher
In my last post I talked about reasons why your permissions might go missing. One of the reasons, and in …
Continue reading -
CROSS vs OUTER APPLY
2June 10, 2021 by Kenneth Fisher
I love CROSS APPLY. I also love OUTER APPLY. What’s the difference though? The same difference as with an INNER …
Continue reading -
Use BCP to create a CSV (comma delimited) file from a table.
1June 3, 2021 by Kenneth Fisher
This is a pretty handy little tool in your arsenal. I’ve talked about using bcp to transfer data from one …
Continue reading -
Creating a configurable SSMS script
1May 18, 2021 by Kenneth Fisher
Several times over the last few weeks I’ve gotten a request to create a new work database. The individuals from …
Continue reading -
How do I test if a linked server works using T-SQL?
4October 27, 2020 by Kenneth Fisher
I get that linked servers are almost as despised as the dreaded cursor or (lord save us) NOLOCK, but they …
Continue reading -
T-SQL Formatters
3August 6, 2018 by Kenneth Fisher
The other day I was given a truly horribly formatted piece of SQL. Something a bit like this only worse, …
Continue reading -
RESTORE VERIFYONLY what does WITH LOADHISTORY do?
2July 18, 2018 by Kenneth Fisher
Recently someone mentioned the LOADHISTORY option of RESTORE. It’s not horribly hard to find in BOL but it wasn’t the …
Continue reading -
Counting NULLs
4July 16, 2018 by Kenneth Fisher
Recently I was doing one of Kendra Little’s (b/t) SQL Server quizzes. Specifically the Quiz: COUNT() in SQL Server. As …
Continue reading -
SQL Puzzle – FizzBuzz3d
18June 27, 2018 by Kenneth Fisher
I thought for the end of the month it would be fun to do another T-SQL Puzzle. In this case …
Continue reading -
Be our guest, be our guest, put our database to the test.
3June 25, 2018 by Kenneth Fisher
When I think of the public role I often think of the guest database principal (user) at the same time. …
Continue reading