You can do this automatically, I'll write down an example later this weekend, ok?
Thomas Am 04.04.2014 13:12, schrieb [email protected]: > > > Thank you Thomas > > Sometimes I may add fields to the master table and if I write all the > fields explicitely, I will need to modify the stored procedure. I want > to ensure to make an exact copy. So what I want to is: > 1- Get the structure of the master table > 2- Create a table with the year-month-day postfix > 3- Copy all data from the master to the backup table > > If it's possible to do this within a stored procedure, I will go that way. > If not, I'll do it from a client program. > Now I do these manually: > -Copy the ddl text, change the table name to let's say TblA > -Create table TblA_2014_04_01 (columns..) > -Insert into TblA_2014_04_01 select * from TblA&n bsp; > > > > -- Mit freundlichen Grüßen, Thomas Beckmann Diplom-Informatiker Wielandstraße 14c • 23558 Lübeck Tel +49 (22 25) 91 34 - 545 • Fax +49 (22 25) 91 34 - 604 Mail [email protected] <mailto:[email protected]> ASSFINET-Logo *ASSFINET Dienstleistungs-GmbH* Max-Planck-Straße 14 • 53501 Grafschaft bei Bonn [email protected] <mailto:[email protected]> • www.assfinet.de <http://www.assfinet.de/> Geschäftsführer: Dipl. Wirtschaftsinformatiker Marc Rindermann Registergericht Koblenz HRB 23331 Diese E-Mail enthält vertrauliche Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.
