|
|
|
|
Browse by Tags
All Tags » t-sql » Scripts (RSS)
Showing page 1 of 2 (18 total posts)
-
I’ve just released three new scripts of my “sys2” script collection that can be found on CodePlex:
Project Page: http://sys2dmvs.codeplex.com/
Source Code Download: http://sys2dmvs.codeplex.com/SourceControl/changeset/view/57732
The three new scripts are the following sys2.database_backup_info.sql sys2.query_memory_grants.sql ...
-
Someone contacted me yesterday and said they were getting blocked when they tried to create a FileStream data column type. On investigation, I found they were Mirroring that database – and the two aren’t compatible.
Which got me to thinking – it’s probably a good idea to make a “check script” as you investigate tacking on a new feature, column ...
-
I'm working on a PowerShell script to show me the trending durations of my backup activities. The first thing I need is the data, so I looked at the Standard Reports in SQL Server Management Studio, and found a report that suited my needs, so I pulled out the script that it runs and modified it to this T-SQL Script.
A few words here - you need ...
-
I’m writing a series of articles on how to migrate “departmental” data into SQL Server. I also hold workshops on the entire process – from discovering that the data exists to the modeling process and then how to design the Extract, Transform and Load (ETL) process. Finally I write about (and teach) a few methods on actually moving the data.
One ...
-
I’ve just released a new script, and now the sys2 scripts are reached the double-digit number: 10!
http://sys2dmvs.codeplex.com/
The latest addition is the sys2.tables_columns scripts that helps me to detect which tables uses LOB column so that I can also check if that LOB data resides on a dedicated filegroup or not. Usually when I have such ...
-
I’ve just created a new project on CodePlex anmed SYS2DMVS, where I’ll put all my sys2 scripts so that they can be found and accessed more easily. Also it will more easy for me to maintain them, just a Check-In with SVN and that’s it :-).
http://sys2dmvs.codeplex.com/
The scripts are growing in number, they are now 9, so I though that they ...
-
I’ve updated my “sys2” scripts with three 3 new scripts:
sys2.objects_dependencies
A wrapper around sys.sql_expression_dependencies that shows also related informations taken from sys.object table, like object name, object type and schema name of the referencing entity.
sys2.objects_partition_ranges
Shows information on partitioned ...
-
I have scripts that re-create my databases for testing and development purposes. But sometimes I want to take the data from a set of tables and move it as well – I could use SSIS, or a SELECT INTO statement, but what if I want to “re-set” the data to a point in time? In other words, load it with some “base data”?
I thought this might be a good ...
-
Would it be nice to print out the complete call tree of a stored procedure? By complete call tree, I mean the following:
· At the very top level, the call tree should identify all the procedures that are called ...
-
Of all of the undocumented stored procedures shipped with SQL Server, there are two in particular that I constantly use: sp_MSforeachtable and sp_MSforeachdb.
These procedures internally loop over each non-Microsoft shipped (i.e.
user-defined) table in the current database, or each database on the
current server, respectively. During this loop, ...
1
|
|
|
|
|