Hi.
I'm working on a script that moves data from one table to another (This one is created dynamic).
I'm using:
USE ping_statistics
GO
SELECT * INTO PING_Temp
FROM Hostbackup
EXEC sp_rename 'PING_Temp', 'HostInfo_(getdate)'
Where I would like the name of the new table to be
"PING_2008" Where 2008 is the current year.
Can anyone help me here?
\Jan.