Number of words within a phrase function

Most word count functions/procedures are based on some form of looping methods. If the table is large or there is a need to count the words in a number of columns, this can become quite an exercise. This function, based on a mathematical model, will work much faster and more efficient in counting the words […]

2005-12-28 (first published: )

263 reads

Table Pivoting revisited

A lot of table pivoting scripts use cursors to reach the  desired results, but SQL scripting was developed to be utilized in a data set environment rather than sequential step-thru scripting.Normally, there are 3 types of Table Pivoting - 1) column explicit 2) column implicit and 3)single column.  COLUMN EXPLICIT will place the row value […]

2003-05-29

409 reads

Table structure in 8 x 11 w/size, rows & indexes

Using the sp_help to get a table structure is very cumbersome.  First, in order to print it you have to use"Results in Text" not "Results in Grid".  Second, the results are very wide screen-wise and very hard to read or print.  Third, you do not get the size or number rows with the same request.This […]

5 (1)

2002-10-28

179 reads

Blogs

Rowcount estimates when there are no Statistics

By

When you don't have statistics, what does SQL use to calculate the estimated number...

Synapse Analytics and .NET for Apache Spark Example 4 - JOINS

By

This is a bit of a longer one, a look at how to do...

Recovering Data from a Backup with SQL Data Compare

By

I had a customer recently ask about how to recover data from a backup...

Read the latest Blogs

Forums

Accessing a RESTORING database for test refresh

By Pete Bishop

I have a requirement whereby testers on ServerA need a copy of the production...

How to get value portion key to every rn from 1 to 3 row on one row?

By ahmed_elbarbary.2010

I need to get value portion key to every 3 row on one row...

Median Processing time, Average Procesisng time for created/closed date

By mnr123

  We have sharepoint as the data source and we have 2 dates created...

Visit the forum

Ask SSC

SQL Server Q&A from the SQLServerCentral community

Get answers