create table dbo.Receipts( id int identity, ReceiptNumber as ('R'+'-' + (right('0'+ convert(varchar(3),month(getdate())), 2) + '/' + '0' + convert(varchar,id, 0))), Name varchar(20) )
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)