Scripts

Technical Article

Script to determine if all chars are same in field

This script is actually based on a script by epol29.  That was titled 'Script to count the number of Yes/No in the string', which I found to be an awsome script.Anyway, this script uses the same logic to deterimine if all of the characters in a field are the same.  For example, 1111111, aaaaaaaa, 4444, […]

You rated this post out of 5. Change rating

2003-05-19

139 reads

Technical Article

Grant rights easely to a role /user

This simple script shows how to easely grant rights to user objects (tables,stored procedure,user-defined functions) to a role (public in example), in SQL Server 2000.The script can be used to grant rights to a specific NT /sql login account by replacing [public] with the desired name.

You rated this post out of 5. Change rating

2003-05-16

446 reads

Technical Article

Convert String to Title Case

This function will evaluate an input string and convert it to title-case format. It uses the delimchars parameter to determine what are the triggering characters to indicate capitalization of the subsequent character.I am using it in a DTS package to convert data in CAPS to Title/Proper case as I output the data to an Excel […]

You rated this post out of 5. Change rating

2003-05-15

418 reads

Technical Article

How to retrieve roles from a Database

If you have environment where you restrict access to database objects based on user roles and if you have a lot of databases on different servers in the same domain.  The following script can generate roles from a given database in a format that can be used to create roles on different servers where the […]

You rated this post out of 5. Change rating

2003-05-14

183 reads

Technical Article

Script to kill the top blocker and report what it was doing.

This script identifies the blocking locks at the top of the blocking chain and kills them. Specifically, it reports what the top blocking spids are doing, kills them, waits three seconds and then reports on current blocking status.  If you have a situation where single connections are causing a huge blocking chain and you want […]

4.75 (4)

You rated this post out of 5. Change rating

2003-05-12

4,355 reads

Blogs

How to clear the SSMS cache?

By

How to clear the SSMS cache? If you are reading this,...

Master SQL Subqueries with This Free Course

By

Want to boost your SQL game? Check out this free course, SQL Subqueries: Real-World...

Using Flyway Prepare for State-Based Deployments

By

One of the neat enhancements made to Flyway was the addition of state-based workflows...

Read the latest Blogs

Forums

FARE LABS Pvt. Ltd. is an Indian proficiency testing laboratory.

By farelabs

The greatest facility for proficiency testing in India is Fare Labs. We use particular...

display bytea image

By Bruin

I moved a table from MsSql to Postgresql that had a field defined as...

When trying to use a LocalDB, I get an error

By Doctor Who 2

I tried to find an appropriate forum to post the question. This one seems...

Visit the forum

Question of the Day

SQL in an Azure VM Backup

If I use the Azure Backup service for automated backups of my SQL Servers in Azure VMs, how often can I configure log backups? (as of Dec 2024)

See possible answers