My objective is to do the following
1 year after the creation of the database i want to create a new one with the same tables , st.procedures,roles , users (of course some tables will be empty p.e orders etc)
I was thinking of copying the entire database with a different name and then initialize the tables in it
(all this should be done with TSQL beacause i will include the entire procedure in a stored procedure with parameters)
I want to do that because my application should switch from year to year ( or 6month period) by altering the name of the database only from a combo box within the apllication.
Thanks
1 year after the creation of the database i want to create a new one with the same tables , st.procedures,roles , users (of course some tables will be empty p.e orders etc)
I was thinking of copying the entire database with a different name and then initialize the tables in it
(all this should be done with TSQL beacause i will include the entire procedure in a stored procedure with parameters)
I want to do that because my application should switch from year to year ( or 6month period) by altering the name of the database only from a combo box within the apllication.
Thanks