Scripts

Technical Article

Show Blocking and Wait time

When executed against a database in which blocking occur, below script will report lockType, Object waited for and current Wait times. The script requires access to master..systables. The script queries syslockInfo (as does sp_lock), but further joins sysprocesses with an interpretation of waitresource matching SQL Server 7.0 and SQL Server 2000.

★ ★ ★ ★ ★ ★ ★ ★ ★ ★

You rated this post out of 5. Change rating

2002-01-14

2,627 reads

Technical Article

Perform an action when a file exisits

Script to check whether a file exists with todays date and performs an action based on whether the file exisits or not. We use this to check whether backups have completed from another SQL Srver and if they have completed we restoe on a server used for management information

★ ★ ★ ★ ★ ★ ★ ★ ★ ★

You rated this post out of 5. Change rating

2002-01-09

2,082 reads

Technical Article

Script to generate BCP Statements for a Database

The Script below creates a Stored Procedure that returns a Macro SQL Statement. When this SQL statement is executed, it inturn returns BCP Out Statements for all the tables in a given database. The database name should be passed as a parameter to the procedure. Before the procedure is created, the SA Password must be […]

★ ★ ★ ★ ★ ★ ★ ★ ★ ★

(1)

You rated this post out of 5. Change rating

2002-01-07

3,909 reads

Technical Article

Report Locking on Specific Database

This Script reports locking on a particular database either to the console or to a database table. It also allows filtering based on a minimum locking level (say Page or Table and higher). Included is the CREATE TABLE statement to build the reporting table. This table can reside in any database but needs to be […]

★ ★ ★ ★ ★ ★ ★ ★ ★ ★

You rated this post out of 5. Change rating

2002-01-06

1,059 reads

Technical Article

Scheduler SP with Sample Log Creation/Exec Scripts

I created this SP for use with our morning DW builds. I use it to manage the execution of multiple jobs. It first starts up to a configureable number of jobs, monitors these jobs until one (or more) complete, and then starts additional jobs as needed. If any jobs fail, it will run the "transaction […]

★ ★ ★ ★ ★ ★ ★ ★ ★ ★

You rated this post out of 5. Change rating

2002-01-06

273 reads

Blogs

Microsoft Tools for Making Data AI-Ready

By

Making Data AI-Ready, Part 2 (This is the second article in a three-part series...

Local Models Using GPUs with Ollama

By

Can you use your GPUs when running a local model under Ollama? You can,...

Don’t Fear the Technology

By

The concern that a particular technology is going to destroy the world seems to...

Read the latest Blogs

Forums

Alamat BCA KCP Tempo Scan Tower Telp:0821°7555°651

By layanan_Bca88

Telp/Wa 62 8217555651 Jl. H. R. Rasuna Said No.Kav. 3-4, RT.5/RW.4, Kuningan Tim., Kecamatan...

Alamat BCA KCP Bintaro Utama Telp:0821-8200-203

By m4rt1n4

Telp/Wa 62 8218200203 Rukan, Bintaro Jaya, Jl. Bintaro Utama Rukam Sektor 1 Blk E...

Alamat BCA KCP ITC Permata Hijau Telp:08218200233

By R4nt4u

Telp/Wa 62 8218200233 Grand Permata Hijau Type Emerald No. 12 & 14, Jl. Arteri...

Visit the forum

Question of the Day

Reserved Words I

Which of these are not reserved words?

See possible answers