geek sync i the essential powershell tools for the database administrator

13
The Essential PowerShell Tools for the DBA Administrator June 1, 2016

Upload: idera-software

Post on 15-Apr-2017

223 views

Category:

Technology


1 download

TRANSCRIPT

Page 1: Geek Sync I The Essential PowerShell Tools for the Database Administrator

The Essential PowerShell Tools for the DBA Administrator

June 1, 2016

Page 2: Geek Sync I The Essential PowerShell Tools for the Database Administrator

Visual Studio Communuty

Some Tools for DBA’sIdera’s PowerShell Plus

PowerShell SSIS IntegrationQuestions

3

12

4

1

5

Page 3: Geek Sync I The Essential PowerShell Tools for the Database Administrator

Some Tools for the DBA’s

Download SQL Server Data Tools Preview in Visual Studio 2015https://msdn.microsoft.com/en-us/mt429383

Download SQL Server Data Tools Preview in Visual Studio 2013https://www.microsoft.com/en-us/download/details.aspx?id=42313

IDERA PowerShellPlus Toolhttps://www.idera.com/productssolutions/freetools/powershellplus

2

Page 4: Geek Sync I The Essential PowerShell Tools for the Database Administrator

Some Tools for the DBA’s

Download SQL Server Data Tools (SSDT)https://msdn.microsoft.com/en-us/library/mt204009.aspx

Previous releases of SQL Server Data Tools (SSDT and SSDT-BI) for Visual Studio 2013https://msdn.microsoft.com/en-us/library/mt674919.aspx

Convert VB to C# Online Toolhttp://www.developerfusion.com/tools/convert/csharp-to-vb/

3

Page 5: Geek Sync I The Essential PowerShell Tools for the Database Administrator

Visual Studio Community (free)

Integrating your tools• PowerShell Tools for VS 2013( or 2015)• Idera’s PowerShellPlus (and others)• Source Control availability: TFS, GitHub (not

covered)

4

Page 6: Geek Sync I The Essential PowerShell Tools for the Database Administrator

Visual Studio Community (free)

DEMO

5

Page 7: Geek Sync I The Essential PowerShell Tools for the Database Administrator

PowerShell VS SSIS Integration

Using SQL Server Tools for Business Intelligence• DOS batch

– Understanding Exit Codes• .NET VSTA scripting

– Debug in Visual Studio

6

Page 8: Geek Sync I The Essential PowerShell Tools for the Database Administrator

PowerShell VS SSIS Integration

DOS Batch file• Return Exit Code

• Echo %ErrorLevel% (other than 0 = Error)• PowerShell $LastExitCode

• You assign any value > 0• Sample DOS batch to Execute PowerShell file.

7

Page 9: Geek Sync I The Essential PowerShell Tools for the Database Administrator

PowerShell VS SSIS Integration

.NET VSTA scripting• SSIS Script Task Component

• Pick .NET language: C# or VB.NET• Add Reference: System.Management.Automation• Add Namespace (when needed)• Add Code to execute PowerShell script• Use Debug bookmarks (when needed)

8

Page 10: Geek Sync I The Essential PowerShell Tools for the Database Administrator

PowerShell VS SSIS Integration

DEMO

9

Page 11: Geek Sync I The Essential PowerShell Tools for the Database Administrator

Don’t forget to check out the

previously recorded Geek Sync

webcasts to learn more about

PowerShell and SQL Server.

Thank You!

https://www.idera.com/events/geeksync

Page 12: Geek Sync I The Essential PowerShell Tools for the Database Administrator

Maximo Trinidad

Email: [email protected]

Tweeter: @maxtrinidad

Contact information:

Page 13: Geek Sync I The Essential PowerShell Tools for the Database Administrator

Head over to IDERA.com to

download any of our product trials

free for 14-days.

Free Trials