MSSQL common functions and concepts
2012-09-24 15:26
211 查看
1. In technical terms, a table without an index is called a “heap”.
2. Common functions.
2. Common functions.
select db_id(N'Product'); -- Get DB id select object_id('test.dbo.PerformanceIssue') -- Get Table id select * from sysobjects where id= object_id('PerformanceIssue') and type = 'U' -- Get table info dbcc ind('Test', 'PerformanceIssue', -1) -- Get indexes info (dbname, tablename, -1) select @@version -- check mssql version if it is dev edition.
相关文章推荐
- 消息 1033,级别 15 The ORDER BY clause is invalid in views, inline functions, derived tables, subqueries, and common table
- The ORDER BY clause is invalid in views, inline functions, derived tables, subqueries, and common table expressions, unless TOP or FOR XML is also specified.
- Friend functions and classes
- Answers to some common problems and questions about Xen
- [Network]Introduction and Basic concepts
- [ZT] Best practices and common errors when adding a ScriptManager programmatically from a WebPart
- URL functions and classes
- Item2:Know what functions C++ silently writes and calls--了解C++默默编写并调用了哪些函数
- mysql 12.7 Date and Time Functions
- A Tour of Go Exercise: Loops and Functions
- XPath, XQuery, and XSLT Functions
- Most Common Solutions to FRM-41839 and .tmp Files Not Being Deleted
- truncate and ftruncate Functions
- Range Minimum Query and Lowest Common Ancestor
- Chapter 4– Functions and Program Structure of TCPL (Part 10)
- struts and hibernate can use a common beans
- link, unlink, remove, and rename Functions(4.15)
- Spring ContextLoaderListener And DispatcherServlet Concepts
- C++编译错误"a storage class can only be specified for objects and functions"解决方法
- Handle and Object Functions--句柄和对象函数