Robert Cary

Searching Syscomments Accurately

As a SQL Server DBA you should know that your code is stored in syscomments by default. While most DBAs use version control systems, there are times you might want to look through the code on the server for comparison purposes. Robert Cary brings us an article on how you can do this in 2000 and 2005.

4.8 (5)

2008-01-07 (first published: )

7,939 reads

Find Nth Occurrence of Character Function (Set Based)

This function was originally contributed by other visitors. Below is an example of a set based approach to the problem. This script requires a numbers table (see SqlServerCentral article http://www.sqlservercentral.com/columnists/mcoles/2547.asp for more details)Please note that this code is uses SQL2005 featuresEnjoy!Robert Caryhttp://tsqlland.blogspot.com

5 (1)

2006-10-20 (first published: )

537 reads

Blogs

ANSI_WARNINGS = OFF can break update statements with some SQL features

By

Working on a SQL 2017 database where an external, non-Microsoft application has direct access...

Bring Your Own Key to Azure SQL Database Managed Instance TDE

By

Last year Azure SQL Database Managed Instance saw the introduction of bring your own...

CRM Data Source Connection Error

By

This article takes us to the edge with a couple of CRM related errors...

Read the latest Blogs

Forums

Extract date from String

By SQL Server

Folks: I have to extract the date from this string which is between files_...

Detereming Trends in SSAS Cube

By Freefall99

I have Analysis Services cubes with over 200 dimensions in them (product requirement believe...

SSDT server setup and using 3rd party tools across servers

By dmusson17

Hello, We are a small shop and want to run, for data warehousing/reporting, 2016...

Visit the forum

Ask SSC

SQL Server Q&A from the SQLServerCentral community

Get answers