Automatically generate a user defined table type that matches an existing table

后端 未结 3 1250
清酒与你
清酒与你 2021-02-14 01:04

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

3条回答
  •  臣服心动
    2021-02-14 01:34

    In SQL Server Management Studio you can right click a database, and under TASKS choose to script the database. Choose Tables only, and then the tables you're interested in.

    It doesn't give you a one stop shop to what you want, but it can script many tables quickly and easily. And then allow you to do a bit of find-and-replace to get what you need.

提交回复
热议问题