Trying to create a stored procedure that could run on SQL Server Agent, or a DTS package.
On day 1 of each month, create a new table, with the same structure as last month's table.
Old table would be renamed UPSMM,where MM = month, while new table would be named UPS01
The application software does not recognize any table not named 'UPS01'
1st column - IDENTITY ; need to use the last identity column value from previous month table as seed value for new month table.
Remaining 3 columns are pkg_id varchar(5), date_shipped smalldatetime, weight decimal (5.2)
Using SQL Server 2000.
Start Free Trial