Using Dynamic SQL to Create Database Objects

Say we have a stored procedure that we want to copy across multiple databases. One way would be to create the script and execute in all the databases. But if Databases are many it can be time consuming and efforts to change Database name every time before executing the script will be more. One better way is writing a script that can create the Database object in selected Databases or all Databases at once.
[More]

Table Valued Parameters

Table Valued Parameters are new to SQL Server 2008. They allow us to pass table variable to stored procedure. The same function can be accomplished by temporary tables, but table valued provide better performance and complete dataset in a table can be passed to stored procedure. [More]

User Defined Data Types using SQLCLR

UDTs are structs that are built in .NET framework. When we create structs(value types) in .NET framework we can only assign certain number of bytes and that's what makes it highly efficient. The limit is no more than 8KB.
[More]

Tags: ,

SQL Server