The Wayback Machine - https://web.archive.org/web/20130116093918/http://www.databasejournal.com/scripts/

Free Newsletters:
DatabaseDaily  
Database Journal Search Database Journal:
 
MS SQL Oracle DB2 Access MySQL PostgreSQL Sybase PHP SQL Etc SQL Scripts & Samples Links Database Forum

» Database Journal Home
» Database Articles
» Database Tutorials
MS SQL
Oracle
DB2
MS Access
MySQL
» RESOURCES
Database Tools
SQL Scripts & Samples
Links
» Database Forum
» DBA Jobs
» Sitemap

News Via RSS Feed


follow us on Twitter





New Security Features Planned for Firefox 4

Another Laptop Theft Exposes 21K Patients' Data

Oracle Hits to Road to Pitch Data Center Plans
Database Journal |DBA Support |SQLCourse |SQLCourse2










SQL scripts, coding and programming for database administrators

SQL Scripts & Samples

Test SQL Connectivity 02/01
This script tests connectivity to SQL Server box from a client machine when there is no SQL Client.

Import the SQL Server Error Log into a Table 01/25
This script imports the SQL Server error log into a table, so that it can be queried.

Display CPU Information 01/19
This script displays CPU information.

Check Windows Process 01/11
This script finds the number of process instances running on a server.

Reboot Machines 01/04
This batch file will reboot machines.

Unix script for performing repetitive jobs 12/28
This shell script executes a while loop for performing the required job.

Get Last Day Of Month 12/21
This script will get the last day of the month.

DEFAULT column values 12/14
To avoid ARC_Triggers creation, you can use DEFAULT column values.

Services running on local MSSQL server 12/07
The procedure will list code, name and current state of each service that is installed on the machine where SQLSERVER2000 is running.

Generate UserNames 11/30
This udf_SuggestUserName function generates usernames based on date of birth, zipcode, username, firstname and lastname.

Importing flatfile data to MSSQL table 11/23
This script is used to read the data from a flat file and then populate it into the database table.

Find SQL Server Authentication Mode 11/16
This script can be used on both SQL 2000 and SQL 2005 to find the Authentication mode set for the sql instance.

Stored Procedure NetSend 11/09
This stored procedure can be used by database administrators to inform users, prior to breaking the user's connection to the database.

Track Table Fragmentation 11/02
A diagnostic table and stored procedure to track the fragmentation of large tables within databases. The user passes the database name and the table name as parameters to the SP. The SP can be set up to run as a scheduled job every few hours to produce a historical trend of fragmentation.

Detach & Attach User Databases 10/26
This script moves databases to different physical locations.

Add Your Script
SQL Scripts & Samples Archives



Latest Forum Threads
SQL Scripts & Samples Forum
Topic By Replies Updated
sql help!! add 1 August 22nd, 11:58 AM
How To Combine These 2 Queries into 1 Query ? tarek_land 1 June 7th, 08:37 AM
solving query svibuk 1 February 3rd, 06:08 AM
converting from a character string to uniqueidentifier saturnius 4 January 4th, 05:56 AM