Miscellaneous

Technical Article

Find Procedures and tables by column

  • Script

The stored proc FindObjByColumn_sp, while simple, is extremely useful when making database changes or for any reason that you need to find any tables and stored procedures that contain a particular column.  It searches the system tables of a database to find the object containing the column.  In addition, the procedure automatically adds a wildcard […]

You rated this post out of 5. Change rating

2002-10-31

426 reads

Technical Article

Phone Number Normalization even with literals

  • Script

The script will do the following:- build a ten digit phone number regardless of input column size.- Ignores extensions- Ignores leading 1, as in 1(800)...- Ignores most special characters or spaces- converts literals to digitsIt can be easily convert to a UDFEnjoy.C. Z. Ovits

You rated this post out of 5. Change rating

2002-10-28

564 reads

Technical Article

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

  • Script

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)

You rated this post out of 5. Change rating

2002-10-28

186 reads

Technical Article

Report DTS Error Code and Description

  • Script

This stored procedure extract the error code and description form the DTS package log tables in the msdb database.You just pass it the package name, step name and the time that the step started ( because you could end up with many entries in the log ) and it will return the Error Code and […]

You rated this post out of 5. Change rating

2002-10-25

2,672 reads

Technical Article

WorkingDaysDiff complementary UDF for DATEDIFF

  • Script

We frequently have to work out a date based on a number of working days before or after a specified date, excluding Saturdays and Sundays.Attached is the script to create the function.  I call another function called fn_Midnight which was designed to help whe programmers get a date with no time portion without having to […]

You rated this post out of 5. Change rating

2002-10-22

479 reads

Technical Article

Format a DOS date as yyyymmdd

  • Script

Do you run jobs that call BAT files where you wish you could include a formatted date stamp in the output name of an OSQL file? Well, you can using the DOS 'FOR' command. I named a variable FILEDATE and use it as: path\Filename_%FILEDATE%.txt (Note: A BAT file requires double %% in the 'FOR' command […]

4.5 (2)

You rated this post out of 5. Change rating

2002-10-21

1,095 reads

Blogs

How to clear the SSMS cache?

By

How to clear the SSMS cache? If you are reading this,...

Master SQL Subqueries with This Free Course

By

Want to boost your SQL game? Check out this free course, SQL Subqueries: Real-World...

Using Flyway Prepare for State-Based Deployments

By

One of the neat enhancements made to Flyway was the addition of state-based workflows...

Read the latest Blogs

Forums

display bytea image

By Bruin

I moved a table from MsSql to Postgresql that had a field defined as...

When trying to use a LocalDB, I get an error

By Doctor Who 2

I tried to find an appropriate forum to post the question. This one seems...

Resolving Access Denied Errors During SQL Server Database Attachment

By Noman072

Comments posted to this topic are about the item Resolving Access Denied Errors During...

Visit the forum

Question of the Day

SQL in an Azure VM Backup

If I use the Azure Backup service for automated backups of my SQL Servers in Azure VMs, how often can I configure log backups? (as of Dec 2024)

See possible answers