Sql server 2012显示数据库的结果集 [英] Sql server 2012 display result set of database

查看:117
本文介绍了Sql server 2012显示数据库的结果集的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

have pass two parameter in store procedure database_name and table_name which bring back the result set like what are the procedures in the database,what are the views ,what are all the function and how many rows in the table, how can i achieve this can you help me ?





我的尝试:



我什么都不知道。我是SQL Server的初学者



What I have tried:

I do not have any idea .I am a beginner of SQL Server

推荐答案

表行数很简单:

The table row count is simple:
USE DatabaseName;
SELECT COUNT(*) FROM TableName;



其他更复杂:

返回MS SQL数据库中所有存储过程列表的查询 [ ^ ]

SQL SERVER - 查找数据库中的所有用户定义函数(UDF) - 与Pinal Dave一起探索SQL权威 [ ^ ]


这篇关于Sql server 2012显示数据库的结果集的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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