Additional Articles


Technical Article

Function to parse a delimited string

This UDF takes a delimited string and parses it into "words" which are returned as rows in a table. The table returned indicates the position of each element in the source string, and converts values to integer and numeric formats if possible.The script contains examples on how to use the function.the original version was written […]

5 (1)

You rated this post out of 5. Change rating

2005-09-26 (first published: )

621 reads

Technical Article

Calculate Weekdays Between 2 Dates (revised)

This is a function that takes a start date and end date as parameters and returns the number of weekdays (Monday to Friday) in between. This function assumes that Sunday is set as the first day of the week. Adapted from a vb function that I wrote to calculate standard salary costs for billing purposes. […]

You rated this post out of 5. Change rating

2005-09-19 (first published: )

294 reads

Technical Article

Comprehensive HTML Database Documentation(Revised)

This script will document tables (including constraints and triggers, row counts, sizes on disk), views (including all used fields), stored procedures (including used fields and parameters), database users, database settings and server settings.This script has been cobbled together from several others found on this site, so they deserve the recognition, not me 🙂Simply execute it […]

You rated this post out of 5. Change rating

2005-09-16 (first published: )

372 reads

Technical Article

usp_import_from_mysql

Imports data from MySQL Server; works best with mysql driver 3.51.06! You'll have to create a dsn and then a linked server to that dsn. The script checks if the table exists in the mysql catalog (defined in the dsn properties). Too bad it needs administrative privileges to run (dbcc statement) - my advice: don't […]

You rated this post out of 5. Change rating

2005-02-11 (first published: )

118 reads

Technical Article

Reporting Services Extras Bug - Date Sort Problem

SQL Server's Reporting Services comes with some pre-built reports to be able to monitor who is doing what with your Reporting Services Server. You can find these reports in the \Extras\Execution Log Sample Reports folder on the product CD-ROM (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/rsadmin/htm/arp_rslogfiles_v1_88gy.asp). One of the reports is titled "Todays Reports" (Todays Reports.rdl/pToday Dataset). It should show the […]

2 (1)

You rated this post out of 5. Change rating

2005-01-27 (first published: )

884 reads

Technical Article

Add Wildcards to Advanced Search Stored Procedure

I have found that I can add wildcard support to the Advanced Search Stored Procedure submitted by jgroseth (Posted: 07/02/2004) here:http://www.sqlservercentral.com/scripts/contributions/1201.aspby simply modifying "charindex( c.string," to "patindex('%' + c.string + '%'"I did this to take varying whitespace into account since SQL server does not care about whitespace, for example "INSERT INTO DATABASE_MYTABLE" could have any […]

You rated this post out of 5. Change rating

2005-01-25 (first published: )

508 reads

Technical Article

Generate Random Alphanumeric String

Here's a short script to generate a random alphanumeric string based on newid(). The procedure takes in length (@len) which determines the key length. Length must be between 8 and 32. Result is returned in an output parameter. A test script is supplied.

3.67 (3)

You rated this post out of 5. Change rating

2005-01-24 (first published: )

1,255 reads

Blogs

Undercover Catalogue 0.4.4 Released – Database Last Accessed Time and NEW Snapshot Module

By

Full documentation on the Undercover Catalogue can be found HERE It’s been a while...

Familiar Sights

By

Yesterday was a long day in London. I arrived late in the am, and...

Derby City Data Days

By

It was awesome to see the Kentucky data community come out for the first...

Read the latest Blogs

Forums

User permissions and showplan

By as_1234

All, I'm trying to find a way to let some of our users see...

Difference between equal directly and use SUBSTRING

By Martass

Hello, I have a script that was running really long, and I have found...

Visualisation options as an alternative to SanKey diagram

By aaron.reese

I am building a report to show customer journeys and their arrears levels. I...

Visit the forum

Question of the Day

Express In-Memory OLTP

Can I create In-Memory OLTP tables in SQL Server Express?

See possible answers