Blog Stats
- 398,262 hits
-
Prashanth Jayaram
DB Technologist, Author, Blogger, Service Delivery Manager at CTS, Automation Expert, Technet WIKI Ninja, MVB and Powershell Geek My Profile: https://social.technet.microsoft.com/profile/prashanth jayaram/ http://www.sqlshack.com/author/prashanth/ http://codingsight.com/author/prashanthjayaram/ https://www.red-gate.com/simple-talk/author/prashanthjayaram/ http://www.sqlservercentral.com/blogs/powersql-by-prashanth-jayaram/ Connect Me: Twitter @prashantjayaram GMAIL powershellsql@gmail.com The articles are published in: http://www.ssas-info.com/analysis-services-articles/ http://db-pub.com/ http://www.sswug.org/sswugresearch/community/
Personal Links
Verified Services
Top 30 PowerShell bloggers of 2018
My Blog is ranked amongst the Top 50 SQL blogs worldwide
DZone MVB
Microsoft
Archives
- January 2021 (1)
- October 2020 (1)
- June 2019 (1)
- May 2019 (2)
- April 2019 (1)
- March 2019 (1)
- January 2019 (3)
- December 2018 (8)
- October 2018 (3)
- September 2018 (5)
- August 2018 (1)
- July 2018 (9)
- June 2018 (5)
- May 2018 (8)
- April 2018 (5)
- March 2018 (6)
- February 2018 (1)
- January 2018 (4)
- December 2017 (3)
- November 2017 (3)
- October 2017 (5)
- September 2017 (3)
- August 2017 (3)
- July 2017 (3)
- June 2017 (3)
- May 2017 (3)
- April 2017 (1)
- March 2017 (4)
- February 2017 (1)
- January 2017 (3)
- December 2016 (1)
- November 2016 (2)
- October 2016 (2)
- September 2016 (2)
- August 2016 (3)
- July 2016 (6)
- June 2016 (2)
- May 2016 (9)
- April 2016 (12)
- March 2016 (4)
- February 2016 (2)
- January 2016 (6)
- December 2015 (2)
- August 2015 (1)
- March 2015 (3)
- February 2015 (3)
- January 2015 (5)
- December 2014 (4)
- November 2014 (3)
- October 2014 (1)
- September 2014 (1)
- August 2014 (1)
- July 2014 (1)
- June 2014 (1)
- May 2014 (2)
- April 2014 (4)
- March 2014 (4)
- February 2014 (5)
- January 2014 (8)
- December 2013 (2)
- November 2013 (1)
- October 2013 (2)
- September 2013 (6)
- August 2013 (5)
- July 2013 (6)
- June 2013 (6)
- May 2013 (9)
- April 2013 (16)
Top Posts & Pages
- The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)
- T-SQL - Read CSV files using OpenRowSet
- PowerShell - Script to Monitor Disk Space of a Group of servers - HTML Formatted Email Output
- Mailbox Statistics report with Email addresses
- Simple Methods to Recover master.mdf File Password
- How to Change Suspect Mode to Normal Mode in SQL Server Database
- SQL vs NoSQL
- Automation to list all TCP static and dynamic ports of SQL Server instances using PowerShell
- Minimizing SQL Server DBCC CHECKDB Performance Impacts
- SSAS - Find Cube Database Name, Size,Status and Total Size of SSAS Server
Categories
- AlwaysOn (1)
- awards (2)
- Backup and Restore (14)
- Citrix (1)
- databases_files (2)
- docker (5)
- Exchange (2)
- FileProperty (1)
- GDPR (1)
- GENERAL (3)
- Graph database (1)
- JSON (4)
- Logshipping on Linux (1)
- MongoDB (16)
- NoSQL (1)
- Philosophy (1)
- PowerShell (64)
- Python (4)
- Robocopy (2)
- SCCM (1)
- Security (3)
- Vulnerability (1)
- SETVAR (2)
- sp_msforeachDB (1)
- sp_MSforeachtable (1)
- SQL (99)
- SQL 2012 (4)
- SQL 2016 (11)
- SQL 2017 (7)
- SQL 2017 on Linux (5)
- SQL and Python (1)
- SQL AZURE (2)
- SQL Indexes (1)
- SQL Joins (1)
- SQL On Linux (1)
- SQL Ops Studio (1)
- SQL Server 2017 (11)
- SQL Server Backup (10)
- SQL Server DevOps (1)
- SQL Server Tools (1)
- SQL Server vNext (2)
- SQL String (1)
- SQL tools (2)
- SQL XML (1)
- SQLCMD (3)
- SSAS (4)
- SSRS (3)
- String handling (2)
- sysfiles (3)
- T-SQL (37)
- Uncategorized (42)
- Variable Passing (1)
- XenApp VDA (1)
- XenDesktop VDA (1)
- XML (2)
- Follow Prashanth Jayaram on WordPress.com
- January 22, 2021The big day is here.
- The Big DayOctober 25, 2016The big day is here.
Monthly Archives: April 2013
PowerSQL -Recycle SQL Instance (Remote or Local)
We have a scheduled maintenance window to recycle SQL SERVER Instance once in 30 days hence created a PowerShell job where function being placed along with parameters(servername and instancename) and executed it across all SQLinstance. (Named or Default instance) Default instance-> MSSQLSERVER and … Continue reading
PowerSQL – Generate Only Index Script of All Tables or Specific Tables
Background of this implementation-As a part of Performance tuning, We noticed huge avg_disk_queue_length on F drive after analysis, we’ve recommended to move two tables(data and index)to different drive all together a different filegroup. This would give the best IO performance. Those … Continue reading
PowerSQL – Database Backup Report across all Servers – Centralized Approach
This topic provides and describes the quickest way to find when and what databases are being backed up recently.Backups are most important part of a recovery strategy. In this case, I’m explaining this process in three steps 1) Instance names … Continue reading
Posted in PowerShell, SQL
5 Comments
PowerShell – Get an UNC of a remote folder
To Read/Write/Rename/Copy/Delete a file configured across ‘N’ of servers in the same path, this script is going to be very handy. One example – Citrix Migration – IMA data store Input – ServerName and Input folder path. $server =”Server01“ $InputPath=”C:\Program … Continue reading
Posted in PowerShell
Leave a comment
SQL – Table data – HTML Format & Email Sending using T-SQL
1) Configure DBMail – In this case the ‘TEST’ profile being created for the demo 2) Create Table – TLOG_Metrics 3) Insert the dumnmy values or You can schedule a job to store the data in TLOG_Metrics table 4) Execute … Continue reading
Posted in SQL
3 Comments
PowerSQL – Find and Replace string on multiple file of local or remote machine
Copy and Paste the below content in Set-FindandReplaceString.PS1. Please read the instructions carefully. Try to do a dry run on some test folders for better results. ############################################################################# # Description : Find and Replace string on any local or remote machine # … Continue reading
Posted in PowerShell
Leave a comment
Power Shell or Windows – Rebooting of servers local or remote computers
Rebooting of servers local or remote Using PowerShell and Windows Powershell command Start->Run->Powershell press enter PS:\>RESTART-COMPUTER -COMPUTERNAME SERVER01, SERVER02,LOCALHOST Windows Command Start->Run->cmd press enter c:\>shutdown /m \\server01 /r /f /t 02 /m \\Server A remote computer to shutdown – server01 … Continue reading
Posted in PowerShell
Leave a comment
SQL – DBCC CLEANTABLE – DROP UNUSED COLUMNS
Drop those columns which are no more in use. For example, After Upgrade from MOSS 2007 to SharePoint Server 2010, we have noticed that all of the upgraded databases in SharePoint Server 2010 were almost 40% – 60% larger in size … Continue reading
Posted in SQL
Leave a comment
PowerShell – Find Disk Drive Details of local or remote Server
Name of the Function : Get-DiskDriveDetails Input Parameter : ServerName Ouptut : Grid view, you can sort and force condition on specific output column Function call : Get-DiskDriveDetails HQDB001 In this case HQDB001 is Name of the Server Code: Function Get-DiskDriveDetails([String]$server){Get-WMIObject Win32_LogicalDisk … Continue reading
Posted in PowerShell
Leave a comment
PowerShell – Find top 10 Largest files of a local or remote Drive
Name of the function: Get-LargestFile The Input parameters are ServerName and Drive. Function call PS:\>Get-LargestFile -server HQDB001-drive e In this case HQDB001[ServerName] and E[Drive] **************************** Code:- *********************** Function Get-LargestFile { Param([String]$server,[char]$drive) Get-ChildItem \\$server\$drive$ -recurse -force -ErrorAction SilentlyContinue | Select-object Name,DirectoryName, @{Label=’Size’;Expression={($_.Length/1GB).ToString(‘F04′)}} … Continue reading
Posted in PowerShell
2 Comments