All Projects → imajaydwivedi → SQLDBA-SSMS-Solution

imajaydwivedi / SQLDBA-SSMS-Solution

Licence: MIT License
This respository contains TSQL/PowerShell Scripts to resolve issues of SQL Servers

Programming Languages

TSQL
950 projects
PLpgSQL
1095 projects
powershell
5483 projects

Projects that are alternatives of or similar to SQLDBA-SSMS-Solution

Syncchanges
Synchronize/Replicate database changes using SQL Server Change Tracking
Stars: ✭ 66 (+214.29%)
Mutual labels:  sql-server, replication
rbac-react-redux-aspnetcore
A starter template for creating JWT token from ASP.NET Core API project and applying that JWT token authentication on React application
Stars: ✭ 54 (+157.14%)
Mutual labels:  sql-server
mssql-restapi
A simple REST API for SQL Server, Azure SQL DB and Azure SQL DW using SMO on .NET Core 2.0
Stars: ✭ 33 (+57.14%)
Mutual labels:  sql-server
Peasy.NET-Samples
Showcases a middle tier built with peasy and consumed by multiple client consumers
Stars: ✭ 33 (+57.14%)
Mutual labels:  sql-server
SqlServer.Rules
SQL Server static code analysis rules for SSDT database projects
Stars: ✭ 20 (-4.76%)
Mutual labels:  sql-server
StoreCleanArchitecture-NET
This is a basic project to demonstrate an introduction about the implementation of Clean Architecture on .NET
Stars: ✭ 19 (-9.52%)
Mutual labels:  sql-server
messaging-replication
eXist-db JMS based messaging and document replication extension (JMS based)
Stars: ✭ 14 (-33.33%)
Mutual labels:  replication
OrdersManagementSystem
Project demonstrates usage of Prism composition library, Material design library, SQL Server, Entity Framework in WPF application
Stars: ✭ 29 (+38.1%)
Mutual labels:  sql-server
algorithm-bootcamp-sql
Teaching materials for Algorithm Bootcamp: Database Systems.
Stars: ✭ 18 (-14.29%)
Mutual labels:  sql-server
GeoJSON.Net.Contrib
Repository for all GeoJSON.Net *.Contrib projects
Stars: ✭ 31 (+47.62%)
Mutual labels:  sql-server
xelogstash
Send SQL Server Extended Events to Logstash, Elastic Search, or JSON
Stars: ✭ 22 (+4.76%)
Mutual labels:  sql-server
SimpleSqlExec
Lightweight command-line utility to execute queries on SQL Server in place of SQLCMD
Stars: ✭ 20 (-4.76%)
Mutual labels:  sql-server
N-Tier-Architecture
This is a n-layer architecture based on Common web application architectures.
Stars: ✭ 105 (+400%)
Mutual labels:  sql-server
ksqlDB.RestApi.Client-DotNet
ksqlDb.RestApi.Client is a C# LINQ-enabled client API for issuing and consuming ksqlDB push queries and executing statements. SqlServer.Connector is a client API for consuming row-level table changes (CDC - Change Data Capture) from Sql Server databases with the Debezium connector streaming platform.
Stars: ✭ 44 (+109.52%)
Mutual labels:  sql-server
YelpDatasetSQL
Working with the Yelp Dataset in Azure SQL and SQL Server
Stars: ✭ 16 (-23.81%)
Mutual labels:  sql-server
influxdb-ha
High-availability and horizontal scalability for InfluxDB
Stars: ✭ 45 (+114.29%)
Mutual labels:  replication
sync-client
SyncProxy javascript client with support for all major embedded databases (IndexedDB, SQLite, WebSQL, LokiJS...)
Stars: ✭ 30 (+42.86%)
Mutual labels:  sql-server
jarvis
Build, configure, and track workflows with Jarvis.
Stars: ✭ 14 (-33.33%)
Mutual labels:  replication
dba-database
Database containing DBA helper code and open source software.
Stars: ✭ 79 (+276.19%)
Mutual labels:  sql-server
PdoOne
It simplifies the use of PDO in PHP by adding three methods: a simple wrapper between PDO, a query builder and an ORM.
Stars: ✭ 93 (+342.86%)
Mutual labels:  sql-server

SQLDBA-SSMS-Solution

This is SQL Server Management Solution containing various projects having SQL scripts to help DBA in carrying out daily activities.

Donation

If this project help you reduce time to develop, you can give me a cup of coffee :)

PayPal UPI
paypal upi

Below are some highlights:-

1. Backup-Restore

This project contains Scripts for SQL Server Instance/Database migration. Following are the files:-

1) Generate - Backup Script.sql                                 
2) Script Out DB Permissions in case of DB Refresh.sql          
3) Generate - Restore Script.sql                                
4) Script Out DB_Owner from Source.sql                          
5) Set Compatibility Level as per Model.sql                     
6) Execute CheckDB _ UpdateStats for Migrated DBs.sql           
7) Copy Latest Full backup to Location - Reading BackupFile.sql 
7) Copy Latest Full backup to Location - Using BackupHistory.sql
8) Fix Orphan Logins for All DBs.sql                                     
Query - Backup History.sql                                      
Query - Restore History.sql 

2. BlitzQueries

This project contains script files that can be used for Health Checkup or Performance Troubleshooting of SQL Server. File Other queries.sql within this project contains TSQL code to find variety of informations like:-

- Check when SQL Services were started
- Check if compatibility Model of databases are up to date
- Ad hoc queries, and m/r settings
- Find queries using DBCC commands inside them
- Find Most Expensive Queries
- Top Queries by Average IO
- Expensive Queries Having Cursor
- Expensive Queries Having Joins to Table-Valued Functions
- Queries with implicit conversion
- Adhoc queries against Database
- Find queries with multiple plans
- Query to examine IO subsystem latencies
- Active tables without clustered index
- Find tables with forwarded records on Single Database
- Find tables with forwarded records on All Databases
- Find Query with Compilation Timeout
- Find all disabled indexes
- Get Cumulative Waits on Server
- Find Un-trusted Foreign Keys
- Find Usage Stats for Table and Indexes

It also contains scripts for finding WhatIsRunning and also modified version of sp_WhoIsActive. Screenshot for WhatIsRunning.sql:-

Screenshot for modified versin of who_is_active_v11_30:-

3. [sp_HealthCheck]

This project contains a procedure named [sp_HealthCheck] This procedure gives currently running queries, CPU and Memory usage, Usage of Data & Log Volumes, Space utilization of data/log files, Lead Blockers, and session details performing Backup/Restore/Rollback.

4. Custom Log Shipping Script

Log Shipping has many benefits and is often used a Disaster Recovery option. But, If you use Domain Account for SQL Services, then Log Shipping using Custom scripts could be established in much easier way than the default log shipping method. For this purpose, I have created by own Log Shipping procedure [dbo].[usp_DBAApplyTLogs]

Latest Code of [usp_DBAApplyTLogs]

To learn on how to use this script, please watch below YouTube video:-

Watch this video

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].