Home > Top five T-SQL stored procedures
Feature:
EMAIL THIS

Top five T-SQL stored procedures

15 Mar 2006 | SearchSQLServer.com

Expert advice on database development
Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google

T-SQL guru and senior database architect Brian Walker was generous enough to share his favorite and most useful SQL Server stored procedures over the past few months. His series has come to a conclusion, but we've got his "top five" according to your visits. We're sure these routines will help ease some of your workload. You can also view our complete stored procedure collection.

#1 - Find columns and tables
This simple routine is handy for finding columns by name and listing the table(s) in which they exist..

#2 - List database objects by selected type(s)
This stored procedure returns a list of all the objects of selected types in the current database.

#3 - A simple way to perform crosstab operations
SQL Server crosstab operations usually involve complicated T-SQL codi


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


RELATED CONTENT
SQL Server Stored Procedures
Top 10 SQL Server development tips of 2008
SQL Server trigger vs. stored procedure to receive data notification
SQL Server errors, failures and other problems fixed from the trenches
SQL Server and data manipulation in T-SQL
How to use SQL Server 2008 hierarchyid data type
SQL Server stored procedures tutorial: Write, tune and get examples
Check SQL Server database and log file size with this stored procedure
SQL Server source code analysis and management adds database security
Configure SQL Server Service Broker for sending stored procedure data
Find size of SQL Server tables and other objects with stored procedure

SQL/Transact SQL (T-SQL)
Working with sparse columns in SQL Server 2008
Determining the source of full transaction logs in SQL Server
New GROUP BY option provides better data control in SQL Server 2008
Using the OPENROWSET function in SQL Server
Loading data files with SQL Server's BULK INSERT statement
Importing and exporting bulk data with SQL Server's bcp utility
Testing transaction log autogrowth behavior in SQL Server
Securing SQL Server with access control, login monitoring and DDL triggers
Top 10 SQL Server development tips of 2008
The sqlcmd utility in SQL Server
SQL/Transact SQL (T-SQL) Research

SQL Server Database Modeling and Design
Managing the development lifecycle with Visual Studio Team System 2008
A first look at Visual Studio Team System 2008 Database Edition
Testing transaction log autogrowth behavior in SQL Server
Top 10 SQL Server Tips of 2008
Tutorial: SQL Server indexing tips to improve performance
Tutorial: Learn SQL Server basics from A-Z
SQL Server database design disasters: How it all starts
Can you shrink your SQL Server database to death?
Physical data storage in SQL Server 2005 and 2008
Enforcing data integrity in a SQL Server database

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
library  (SearchSQLServer.com)
trigger  (SearchSQLServer.com)

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary


ng. Simplify the process with this routine.

#4 - Search character columns for a given string
This routine allows you to search for occurrences of a string in the character columns (char, nchar, varchar, nvarchar) of a table set.

#5 - Execute T-SQL code from a file
Existing routines to execute T-SQL code from a file without using osql and xp_cmdshell have many limitations. This routine addresses the shortcomings


More information from SearchSQLServer.com

  • RSS: Sign up for our SQL Server DBA or developer feeds to get new expert technical advice every week day
  • Glossary: SQL Server slang stumping you? Look it up in our glossary
  • Topics: Peruse our Topics section for help troubleshooting your SQL Server DBA, developer or management problems






  • Secure SQL - Data Security for Your Database
    HomeNewsTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersIT Downloads
    About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
    SEARCH 
    TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

    TechTarget Corporate Web Site  |  Media Kits  |  Site Map




    All Rights Reserved, Copyright 2005 - 2009, TechTarget | Read our Privacy Policy
      TechTarget - The IT Media ROI Experts