SQLInsider Scripts

Decrypt Stored Procedures, Views and Triggers

  • Script

This SP will decrypt Stored Procedures, Views or Triggers that were encrypted using "with encryption" There are 2 versions: one for SP's only and the other one for SP's, triggers and views version 1: INPUT: object name (stored procedure, view or trigger) version 2: INPUT: object name (stored procedure, view or trigger), object type('T'-trigger, 'P'-stored […]

1 (2)

2002-12-06

1,374 reads

123 TSQL functions

  • Script

This is a collection of 123 TSQL functions for professional, academic or learning purposes. There are many conversions hexadecimal/octal/binary/Roman numerals, mathematical functions such as hyperbolic, logic and trigonometric. Combinatorial functions such as combinations, permutations (factorial), arrangements. Other interesting functions include turning a number into plain English, Morse code, EBCDIC and vice-versa, Levenshtein Distance (linguistics), encryption, […]

2002-12-05

891 reads

Find SA password with public role-perm test DBA

  • Script

Find SA Password (Brute Force) with Public RoleFindSApublic is a brute-force password cracker that requires only public role.Possibilities  returns how many different passwords are possible with 1 up to c characters from a universe of n different characters.Usage:FindSApublic nN is an integer which is the maximum length of the password to attempt cracking.Acknowledgmentsoriginal idea: David […]

2002-12-04

943 reads

Get BCP out for all tables in a DB

  • Script

           The script mentioned below will export data in all tables into textfiles to a physical path on your system using BCP utility from a Database. The sql commands used in this stored procedure are BCP utility,Identity function and temporary tables.    Here you required to give 4 input parameters, they […]

2002-03-15

1,624 reads

Blogs

Daily Coping 21 Sep 2020

By

I started to add a daily coping tip to the SQLServerCentral newsletter and to...

Daily Coping 18 Sep 2020

By

I started to add a daily coping tip to the SQLServerCentral newsletter and to...

Optimize for Unknown for Inline Table-Valued Functions

By

I had a curious performance issue today. An inline table-valued function (iTVF) was performing...

Read the latest Blogs

Forums

Searching for orphaned DB files on the SQL server

By martin.tydor@gmail.com

Comments posted to this topic are about the item Searching for orphaned DB files...

DEA

By ramyours2003

What is the use of DEA tool in sql ?  how can we  install...

\'REMOTE ACCESS\' setting flipped back to 0 overnight ??

By Express12

Any reason why our SQL Server 2016 Standard edition instance would have flipped the...

Visit the forum

Ask SSC

SQL Server Q&A from the SQLServerCentral community

Get answers