SELECT TOP 10 * FROM master.dbo.sysmessages : sysmessages « System « SQL Server / T-SQL

SQL Server / T-SQL
1. Aggregate Functions
2. Analytical Functions
3. Constraints
4. Cursor
5. Data Set
6. Data Type
7. Database
8. Date Timezone
9. Index
10. Insert Delete Update
11. Math Functions
12. Select Query
13. Sequence
14. Store Procedure Function
15. String Functions
16. Subquery
17. System
18. Table
19. Table Joins
20. Transact SQL
21. Transaction
22. Trigger
23. View
Microsoft Office Word 2007 Tutorial
Java
Java Tutorial
Java Source Code / Java Documentation
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
C# / C Sharp
C# / CSharp Tutorial
ASP.Net
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
PHP
Python
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
SQL Server / T-SQL » System » sysmessages 
SELECT TOP 10 * FROM master.dbo.sysmessages


1> -- @@ERROR: contains the last error number for the current connection.
2> -- The default value for @@ERROR is zero.
3>
4SELECT TOP 10 FROM master.dbo.sysmessages
5>
6> GO
error       severity dlevel description
                                                                                                        msglangid
----------- -------- ------ --------------------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------- ---------
         21       20      0 Warning: Fatal error %d occurred at %S_DATE. Note the error and time, and contact your system administrator.
                                                                                                             1033
        101       15      0 Query not allowed in WAITFOR.
                                                                                                             1033
        102       15      0 Incorrect syntax near '%.*ls'.
                                                                                                             1033
        103       15      0 The %S_MSG that starts with '%.*ls' is too long. Maximum length is %d.
                                                                                                             1033
        104       15      0 ORDER BY items must appear in the select list if the statement contains a UNION, INTERSECT or EXCEPT operator.
                                                                                                             1033
        105       15      0 Unclosed quotation mark after the character string '%.*ls'.
                                                                                                             1033
        106       16      0 Too many table names in the query. The maximum allowable is %d.
                                                                                                             1033
        107       15      0 The column prefix '%.*ls' does not match with a table name or alias name used in the query.
                                                                                                             1033
        108       15      0 The ORDER BY position number %ld is out of range of the number of items in the select list.
                                                                                                             1033
        109       15      0 There are more columns in the INSERT statement than values specified in the VALUES clause. The number of values in the VALUES clause must match the numb
er of columns specified in the INSERT statement.                                                             1033

(10 rows affected)
1>
           
       
Related examples in the same category
1. Retrieve additional error information: sysmessages table
w_w___w._j__a__v___a__2_s.___c__o___m__ | Contact Us
Copyright 2003 - 08 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.