Scripts

Technical Article

Creat a Pivot Table with several options

Create a pivot Table similiar to Microsoft Access Pivot Command, Specify if there should be totals at the bottom, right or both..Uses a temporary table to hold the values..Bad part is the SQL that is generated can have no more than 4000 Characters..If not using any NVARCHAR characters, could make the sql up to 8000 […]

You rated this post out of 5. Change rating

2002-11-18

2,007 reads

Technical Article

ps_SearchStoredProcedures

ps_SearchStoredProcedures provides a "find utility" to search for string in Stored Procedure(s) that you select without dumping to a SQL script file. This stored procedure returns a list of the stored procedures that the string was found in and list of line numbers where the text was found. Both parameters of the stored procedure allow […]

You rated this post out of 5. Change rating

2002-11-15

398 reads

Technical Article

Split Delimited String (Updated: Multi char delimeters)

This UDF will take a delimited string and split it into a table. It has an identity field that is provided solely for uniqueness on the rows, but that can be removed to improve the speed, and optimize it. Sample call :dbo.fnSplit(, )@Data - the string to split apart@Delimiter - the seperator string, if DEFAULT […]

You rated this post out of 5. Change rating

2002-11-15

1,111 reads

Technical Article

DBA_EverywhereRun

Runs a SQL statement against each database based on a LIKE pattern for the name of the database.Features:* IsLike and IsNotLike parameters let you specify both a matching pattern and an exclusion pattern for the database name.* Script_Only mode generates the script of what the stored proc executes.  Especially useful for DDL statements.* List_Only mode […]

You rated this post out of 5. Change rating

2002-11-14

389 reads

Technical Article

sp_ServerStatus

Have you ever wanted to check that a server exists before using it. Here is a solution that use SQLDMO from within TSQL to get the status of a SQL Server service. It also works for 2000 instances. I have named it sp_ServerStatus for it to be based in master.This returns the status integer and […]

You rated this post out of 5. Change rating

2002-11-14

597 reads

Technical Article

sp_xml_PrepareDocumentFromColumn

Do you want to use OPENXML with an xml document in a table, this procdure will do it for you.Pass in the SQL that will return the column of data, it will return the document handle which can then be used with OPENXML.ExampleDROP TABLE TabCREATE TABLE Tab (doc ntext)INSERT INTO Tab VALUES ('' + REPLICATE('' […]

You rated this post out of 5. Change rating

2002-11-14

518 reads

Technical Article

Function and SP to find if file/directory exists

This function and stored procedure can be used to easily identify if a file, directory or parent directory exist. It wraps the functionality of xp_fileExist but gives easy access to the directory and parent directory exist values.To use it the function pass in the file or path and either 'IsFile', 'IsDir' or 'HasParentDir' it will […]

1.33 (3)

You rated this post out of 5. Change rating

2002-11-13

3,718 reads

Blogs

Replacing Images in PBIR Format Reports

By

With the PBIR format of Power BI reports, it’s much easier to make report...

Capturing Ideas for Blogs

By

As we close out the year, I decided to drop this post here and...

A New Word: Lilo

By

lilo– n. a friendship that can lie dormant for years only to pick right...

Read the latest Blogs

Forums

The Oldest Article

By Steve Jones - SSC Editor

Comments posted to this topic are about the item The Oldest Article

Happy New Year 2025

By Steve Jones - SSC Editor

Comments posted to this topic are about the item Happy New Year 2025

Using a RETURN

By stevec883

How does this capture multiple values from a cursor, and put them into an...

Visit the forum

Question of the Day

The Oldest Article

What's the oldest article on SQL Server Central (take a guess)?

See possible answers