SQLStudies
Archives: December 2012
Red errors in the results pane
Most DBAs have seen those nice clear red errors in the results pane. And I’m sure most DBAs have noticed the line number clearly displayed after the state.
Here is a fun test to try. Execute the following script:
PRINT 'test' SELECT TOP 10 * FROM sys.databases SELECT @@VERSION DECLARE…Read more
3 comments, 1,240 reads
Posted in SQLStudies on 19 December 2012
Generating multiple SQL statements from a query
Dynamic SQL is one of my favorite tools in the DBA toolbox. I’m big on automation and dynamic SQL can be very helpful in automating processes across multiple databases, multiple instances etc. There are several flavors of dynamic SQL and each is useful under different circumstances. I should point out… Read more
2 comments, 293 reads
Posted in SQLStudies on 17 December 2012
Where is my backup?
We recently added responsibility for ~80 more servers to our team. This means that my team-mates and I are working on servers that we aren’t familiar with. And that means that we don’t know where the backups are stored. So yesterday when I had to do an ad-hoc backup for… Read more
4 comments, 892 reads
Posted in SQLStudies on 12 December 2012
Copying Connection Managers in SSIS
Did you know you can copy and paste connection managers in SSIS? While I haven’t found this a huge benefit with OLE DB connections it can come in very handy for flat file connections. Here is an example I ran across recently.
The task:
Create a SSIS package to unload… Read more
0 comments, 534 reads
Posted in SQLStudies on 10 December 2012
Logins vs Users
Logins are not Users. It’s a pretty easy concept but one that seems to give a lot of people problems. So let’s explore it a little bit.
Logins, sql and windows, are stored in sys.server_principals and are server specific. They are assigned server level permissions and can be added to… Read more
10 comments, 1,869 reads
Posted in SQLStudies on 3 December 2012



Subscribe to this blog