How to - generate CREATE TABLE script based on existing table in Stored Procedure

Hi, how do you generate CREATE TABLE script based on an existing table in a
stored procedure.  Something like, a stored procedure, where I pass the
Table name and Database name and this stored procedure will output the
CREATE TABLE script.  How do I write this stored procedure or get this
accomplished?

Please advise.

Jose...