Log in
::
Register
::
Not logged in
Search:
Home
Articles
Editorials
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Advertise
Write for us
Scripts by Chris Morton
SQLServerCentral.com profile
Items 1 to 16 of 16
Normalisation Script
This script can be used to create new tables in a database from a parent table that is normalised using this script. a detailed explanation can be found in the comments.
Read more...
By
Chris Morton
2009/08/28
|
Source:
SQLServerCentral.com
|
Category:
Normalisation
Rating:
|
Discuss
|
Briefcase
|
733 reads
DROP all stored procedures
This code will drop all stored procedures made with splog. With minor modification it will also drop all functions and sp not made with splog.
Read more...
By
Chris Morton
2009/03/13
|
Source:
SQLServerCentral.com
|
Category:
Stored Procedures
Rating:
|
Discuss
|
Briefcase
|
544 reads
Loop Through every table in a DB
This Script has been build to list all the tables in a database without using a cursor.
Read more...
By
Chris Morton
2009/01/20
|
Source:
SQLServerCentral.com
|
Category:
Metadata
Rating:
|
Discuss
|
Briefcase
|
1,407 reads
Truncate Referenced Table
Often during the development phase one is required to truncate a table. often the task of removing foreign key references is necessary to truncate. this sp takes the pain out of it.
Read more...
By
Chris Morton
2009/01/19
|
Source:
SQLServerCentral.com
|
Category:
Foreign Key
Rating:
|
Discuss
|
Briefcase
|
1,017 reads
AUTOGENERATE Stored procedures example
This is related to my other autogenerate code. this is just an example of how to use it.
Read more...
By
Chris Morton
|
Source:
SQLServerCentral.com
|
Category:
AutoGenerate
Rating:
|
Discuss
|
Briefcase
|
315 reads
Encrypt All Stored procedures at once
this code encrypts all stored procedures that meet a certain format. this code is easy to change to suit your particular needs, but be sure to back up your stored procs first.
Read more...
By
Chris Morton
0001/01/01
|
Source:
SQLServerCentral.com
|
Category:
WITH ENCRYPTION
Rating:
|
Discuss
|
Briefcase
|
1,677 reads
random randomise randomize data query
this is a MUCH simpler method of random randomize randomise rand data from a table
Read more...
By
Chris Morton
|
Source:
SQLServerCentral.com
|
Category:
Randomise randomize
Rating:
|
Discuss
|
Briefcase
|
92 reads
random integer number scalar function
this produces a random integer between a certain range
Read more...
By
Chris Morton
2008/12/12
|
Source:
SQLServerCentral.com
|
Category:
Random Numbers
Rating:
|
Discuss
|
Briefcase
|
606 reads
search every database on server from a single sp
i have recently had the need to search the every database on the server for a particular string. i came up with this... it has lots of room for improvement but it works
Read more...
By
Chris Morton
2008/12/19
|
Source:
SQLServerCentral.com
|
Category:
Search
Rating:
|
Discuss
|
Briefcase
|
837 reads
AUTOGENERATE INSERT UPDATE SELECT STATEMENTS UPDATED
I have made an update of this script http://www.sqlservercentral.com/scripts/Metadata/64603/. the new version includes can generate 4 stored procedures for every table in a database
Read more...
By
Chris Morton
|
Source:
SQLServerCentral.com
|
Category:
AutoGenerate parameters
Rating:
|
Discuss
|
Briefcase
|
1,111 reads
How to Drop Unused Empty Redundant columns
Often during the development lifecycle columns are added to tables that become redundant or remain unused. this script removes unused (empty) columns
Read more...
By
Chris Morton
2008/11/27
|
Source:
SQLServerCentral.com
|
Category:
Alter table
Rating:
|
Discuss
|
Briefcase
|
963 reads
Demonstration on how to pivot data using temp tables
This script was designed to 'pivot' data that couldnt easily be pivoted in any other way. i used temporary tables to eventually achieve the result i was looking for :)
Read more...
By
Chris Morton
|
Source:
SQLServerCentral.com
|
Category:
Dynamic SQL
Rating:
|
Discuss
|
Briefcase
|
163 reads
Create Sample Data Script
in this scripts there are two methods of creating sample data for a gambling application. i have used both cursors and loops.
Read more...
By
Chris Morton
|
Source:
SQLServerCentral.com
|
Category:
cursors
Rating:
|
Discuss
|
Briefcase
|
121 reads
AUTOGENERATE INSERT UPDATE SELECT STATEMENTS
use metadata to generate basic create procedure statements for insert update and select
Read more...
By
Chris Morton
2008/11/21
|
Source:
SQLServerCentral.com
|
Category:
Metadata
Rating:
|
Discuss
|
Briefcase
|
2,396 reads
how to test connectivity for a linked server
just one way of testing for a linked server based on data within your database
Read more...
By
Chris Morton
2007/10/29
|
Category:
Miscellaneous
Rating:
|
Discuss
|
Briefcase
|
1,299 reads
How to insert and update from remote linked server
Please read the how to use. unfortunately the orignal document i submitted was truncated :( and i dont have time to remember what i said
Read more...
By
Chris Morton
2007/10/30
|
Source:
SQLServerCentral.com
|
Category:
Replication
Rating:
|
Discuss
|
Briefcase
|
2,200 reads
Items 1 to 16 of 16
Copyright © 2002-2009 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use