Scripts

Technical Article

Resize data file manually to prevent downtime

This script will resize the data file of a passed in database name and filename by 10%. It can run in 3 modes.Resize, INFO, HELP. RESIZE is passed into parameter @Mode when we know the database name and file we wish to resize. INFO is passed in when we only know the database name and […]

You rated this post out of 5. Change rating

2003-06-19

662 reads

Technical Article

Height Format Function

This function takes a decimal representation of a height value and returns a properly formatted string value.                     For example, a height of 5 feet 9 inches, which would be passed in as the decimal 5.90, would be returned as 5'9".                     Similarly, a height of 4 […]

You rated this post out of 5. Change rating

2003-06-18

1,739 reads

Technical Article

SPLIT function

This is a port of the SPLIT function from Perl (or VBScript). It works the same way: pass a string anda separator, up to 4 characters long (you can change this),and the function returns a table with the elements.This version trims leading and trailling spaces of the elements, just for convenience.Example:SELECT    strvalFROM    master.dbo.SPLIT('a and b', […]

(1)

You rated this post out of 5. Change rating

2003-06-13

231 reads

Technical Article

Search all objects in all DBs for code fragments

This procedure allows you to search through all objects in all databases on your server for words/phrases in your object code.  Very handy for cases in which, for example, a column name on a table has been changed and you need to search your entire server for any sprocs/views/etc. that might reference it.Syntax: [EXEC] sp_FindCodeStr […]

You rated this post out of 5. Change rating

2003-06-10

271 reads

Technical Article

detect different datatypes

-  a simple and handy script that finds what differences might exists between the fields in your database that have the same name.I was wondering why my execution plans where different  for tables with the same  field names and the same indexes,statistics etc... because the syetem was converting my fields in the WHERE statement. -  […]

You rated this post out of 5. Change rating

2003-06-08

116 reads

Blogs

Google – NotebookLM on ThakurVinay blog

By

Google has contributed a lot of stuff/enhancement on its portfolio, google is no longer...

Distance Metrics for Semantic Similarity Searches in SQL Server 2025

By

Next up in my series talking about The Burrito Bot is diving into the...

The end of an era – why I chose not to renew my MVP

By

Two years ago, two things happened within a few days of each other. I...

Read the latest Blogs

Forums

Contact BCA KCU WISMA ASIA | Tlp/Wa:0818751777

By layanan 24jam BCA

Info & kontak:0818-751-777. Wisma Asia, Jl. Letjen S. Parman No.Kav. 79, RT.4/RW.9, Kota Bambu...

Contact BCA KCU BANDUNG | Tlp/Wa:0817866887

By CSO BCA

Info & kontak:0817-866-887. Jl. Asia Afrika No.122-124, Paledang, Kec. Lengkong, Kota Bandung, Jawa Barat...

Unraveling the Mysteries of the Ephemeral Model: The Fabric Modern Data Platform

By John Miner

Comments posted to this topic are about the item Unraveling the Mysteries of the...

Visit the forum

Question of the Day

QUOTENAME Behavior

I use QUOTENAME() like this in code?

DECLARE @s VARCHAR(20) = 'Steve Jones'
SELECT QUOTENAME(@s, '>')
What is returned?

See possible answers