I have several tables that already exist in my database. Some of them have quite a few columns.
I want to make some stored procedures to do a merge statement with these
I never knew there was a wizard for generating database scripts like the one Dems is talking about in their answer. And it seems a more universal method than the one I've been using, because the wizard allows you to generate scripts for different types of objects in one go.
Still, I guess I'll share mine, as it seems to me a little bit simpler and comes quite in handy when you only need to script same-type objects, like only tables.
So, here goes (specifically for tables):
Open Object Explorer (F8) and connect it to the target server instance.
Expand the Databases item.
Expand the item with your database name.
Click Tables.
Open Object Explorer Details (F7). It should now display the list of user tables.
Using standard Windows methods of selecting multiple objects (like Ctrl+click), select the tables you want to script.
Right-click on any of the selected items and choose Script Table as ▸, then pick the kind of script and where to save it.
When you need to script different types of objects, proceed to a different Object Explorer ‘folder’ instead of Tables, e.g. for stored procedures it would be Programmability\Stored Procedures.