September 2010
Intermediate to advanced
1704 pages
111h 8m
English
Creating a database and a table are common tasks that a DBA may undertake. You can use T-SQL with the Invoke-SqlCmd cmdlet to do this, but a demonstration on how to do this with the SQL Server PowerShell minishell using SMO is presented here to help you better understand the new functionality that is available:

In the preceding example, some new objects are created, some of their properties are set, and some methods are called. You can search for the particular SMO classes used in this example to gain further information.
In the future, there may be something like New-Database and New-Table cmdlets that help to create ...
Read now
Unlock full access