有关制作脚本的Sql问题 [英] Sql Problem Regarding Making Script

查看:77
本文介绍了有关制作脚本的Sql问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友们!...!
我想知道有什么方法可以生成有数据或无数据的表脚本
通过提供与过程相同的表名.

例如. sp_helptext ProcedureName

当我们执行它时,它将为我们提供该过程的完整定义.有什么办法可以像这样获得表的定义.

Hi Friends....!
I want to know is there any way to Generate script of table with data or without data
by giving table name same as we do for Procedure.

eg. sp_helptext ProcedureName

when we execute it Then it Provide us Whole definition of that proc. is there any way to get definition of table like this.

推荐答案


您可以将脚本与数据一起使用,而无需检查此链接
此处 [ MSDN [与数据一起 [
Hi ,
You can take script with data and without check this link
Here[^]
MSDN[^]
With data[^]
Best Regards
M.Mitwalli


在sql server management studio中的表名"上单击鼠标右键->然后点击脚本表为"选项->然后选择创建到"选项->然后选择新建查询编辑器窗口".

那么该脚本将在新的查询窗口中生成.
Right click on Table Name in sql server management studio --> Then click on "Script table as" option --> then select "Create to" option --> then select "New Query Editor Window".

then the script will be generated in new query window.


这篇关于有关制作脚本的Sql问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆