Kenneth Singer


Auto generate sp's for any table * usp_create_sps

If you've ever been stuck having to write stored procedures to support an application, check this script out.  This script will automatically generate seperate parameter driven select, insert, delete, and update stored procedures.  Simply call these stored procedures from your application, passing parameters.  This stored procedure requires only one parameter; table name.  Creates scripts with […]

1 (1)

2002-02-21

312 reads

DATEMY - Covnerts and validates MM/YY, MM/YYYY

If you've ever needed a convenient and quick way to convert/validate what could possibly be a mm/yy or mm/yyyy date to mm/dd/yyyy (date of month is 01) check out this custom function.  Eg:  select dbo.datemy('04/02') outputs smalldatetime '2002-04-01 00:00:00'.  Select dbo.datemy('04/2002') outputs the same smalldatetime '2002-04-01 00:00:00'.

2002-02-15

857 reads

Blogs

Daily Coping 13 Apr 2021

By

I started to add a daily coping tip to the SQLServerCentral newsletter and to...

Converting a SQL Server Docker image to a WSL2 Distribution

By

Windows Subsystem for Linux is probably my favourite feature of Windows 10. It gives...

Everyone Run a SQL Saturday in 2021

By

With SQL Saturdays being rebooted, and the SQLSaturday.com website live, it’s time for events....

Read the latest Blogs

Forums

connect to mdf file of localDB

By snomadj

Potentially dumb question.  There is 1 x ldf & 1 x mdf for DB1. ...

Incorrect update

By marcin89

Hello, I made mistake during updating cells in table.In column that contains int type,...

Log Shipping version upgrade oddity

By matt_murdock

Hi, I've come across an odd situation, and was wondering if anyone can explain...

Visit the forum

Ask SSC

SQL Server Q&A from the SQLServerCentral community

Get answers