I want to create sql that will create a table in the format table_name_mmddhh so that it has the current month, day & hour on the end of it.
Normally I would do this by generating the sql in a select statement and spooling it out to a file then @ing in the file to run the command.
Can I do this dynamically so that it can be run as a procedure without having to rely on an intermediate file
Sorry but my sql basics are basic, so I would need the full script.
Hope you can help
Thanks in advance
dklloyd
Normally I would do this by generating the sql in a select statement and spooling it out to a file then @ing in the file to run the command.
Can I do this dynamically so that it can be run as a procedure without having to rely on an intermediate file
Sorry but my sql basics are basic, so I would need the full script.
Hope you can help
Thanks in advance
dklloyd