>
Repository

Script resources for IT professionals

Download resources and applications for Windows 7, Windows Server 2008 R2, Windows Server 2008, SharePoint, System Center, Office, and other products. Find resources written in VB Script, PowerShell, SQL, JavaScript, or other script languages. New resources are added frequently so check often and see what's new.

Each contribution is licensed to you under a License Agreement by its owner, not Microsoft. Microsoft does not guarantee the contribution or purport to grant rights to it.
Sort by: rss
603 SQL Server results [Clear]
SathyanarrayananS
In SQL Server , we can generate Index script in the following ways :1.) Under Object Explorer -> Databases -> Database -> Tables - > Indexes -> right-click on index - > Create Script as ..2.) Using Generate SQL Server Scripts Wizard - > setting Script Indexes to True 3.) Using In
(6)
Updated 9/7/2013
Released 9/7/2013
959 Downloads
SQL
Denzil Ribeiro
  SQL Server 2012 provides a host of diagnostics  in the form of the System Health extended events session which includes sp_server_Diagnostics collection Here  are a set of Sample reports provide a ‘dashboard’ over the events collected in this session. Key data points covered in
(10)
Updated 4/29/2013
Released 4/29/2013
2,139 Downloads
SQL
ganeshkuppuswamy
Whenever I need to get the IP address of SQL server then I need to execute some script of XP_cmdshell but in some environment I don't have this feature enabled or I need to execute the IPconfig of machine name in commend prompt to find the IP address .Use the attached script to g
(3)
Updated 11/28/2012
Released 11/23/2012
1,168 Downloads
SQL
RSingh()
Below example demonstrate how we can access file properties using TSQL. The stored procedure retrives all the files properties (i.e file name, size in KB and last modified date) within a specific folder.This can be achieved using T-SQL & OLE automation object i.e Shell Applicatio
(0)
Updated 4/4/2014
Released 8/7/2013
741 Downloads
SQL
Mayur-DEW
From long time I want to create a one query which will give me a required output of sql server logins, inshort sql server security audit report.Finally I have developed one query which will generate a report in one table having separate details for each task.
(5)
Updated 10/25/2012
Released 10/25/2012
2,236 Downloads
SQL
Prashanth Jayaram
Inventory is a vital information,whether you’re a consultant or an in-house DBA, you need to have a reliable inventory of the servers you manage.Download the file and save as SQLInventoryExcel.PS1.
It has five mandatory parameters 

InputFileName - Text File contains a list of
(4)
Updated 2/17/2014
Released 2/4/2014
1,017 Downloads
Sorna Kumar Muthuraj
 Audit is always a kind of standard requirement in all the trasactional system. For auditing a particular table ,we need to create a similar structure audit table and create Insert , Update and Delete triggers to keep track of the changes in the table. This
is utility procedure
(9)
Updated 12/24/2012
Released 3/16/2012
1,988 Downloads
SQL
Olaf Helper
This Transact-SQL script returns the values from DMV sys.dm_exec_query_stats to rate SQL statements by their costs.
These "costs" can be "Average CPU execution time "Average logical operations" or the total values of these measures.
(13)
Updated 7/15/2012
Released 9/1/2011
2,848 Downloads
SQL
Olaf Helper
Transact-SQL script to analyse the database size growth using backup history.
(5)
Updated 8/18/2011
Released 8/3/2011
2,347 Downloads
SQL
Cephas Lin - Microsoft
(Updated on 9/13/2013)This script is used to aid the configuration of SQL Server 2012 AlwaysOn Availability Groups in
Windows Azure VMs. It creates a functioning WSFC cluster on which you can configure one or more availability groups. It is
not needed for on-premise SQL Server
(3)
Updated 8/29/2013
Released 12/3/2012
1,454 Downloads
Chrissy LeMaire
This quick and dirty script illustrates how to import large CSVs into SQL Server using PowerShell. With this script, you can import approximately 1 million rows every 30-40 seconds.
(1)
Updated 7/10/2014
Released 7/9/2014
269 Downloads
Olaf Helper
This PowerShell script exports all (or filtered) reports, data sources and images directly from the ReportServerdatabase to a specified folder. For the file name the complete report path is used; for file name invalid characters arereplaced with a -.
(6)
Updated 9/7/2011
Released 9/6/2011
2,587 Downloads
Olaf Helper
Transact-SQL to list all Objects and Indexes per Filegroup / Partition and Allocation Type including the allocated data size.
(7)
Updated 8/13/2011
Released 7/20/2011
1,926 Downloads
SQL
Manjunath C Bhat
Couple of day back i was working on something very important which will run

some stored procedures to accomplish the task. Now there can be many

transactions or different piece of codes in a Stored Procedure. Now just think

that you come across a weird situation where yo
(1)
Updated 6/27/2013
Released 6/27/2013
711 Downloads
SQL
Mayur-DEW
This SQL script is used for maintenance task of reorganizing & rebuilding of indexes task. I have inclued the fragmentation level of indexes is >5 & <30 for reorganizng & above 30 is for rebuild. Result will display as on which indexes task is executed.
(7)
Updated 9/7/2012
Released 9/7/2012
1,510 Downloads
SQL

Couldn't find the script you were looking for?

16 - 30 of 603 Items