@@error In Sql Server 2008 Msdn
Contents |
resources Windows Server 2012 resources Programs MSDN subscriptions Overview Benefits Administrators Students Microsoft Imagine Microsoft Student Partners ISV Startups sql server 2008 msdn download TechRewards Events Community Magazine Forums Blogs Channel 9 Documentation APIs
Msdn Sql Server 2008 Books Online
and reference Dev centers Retired content Samples We’re sorry. The content you requested has been removed.
Msdn Sql Server 2008 Tutorial
You’ll be auto redirected in 1 second. Transact-SQL Reference (Database Engine) Built-in Functions (Transact-SQL) System Functions (Transact-SQL) System Functions (Transact-SQL) @@ERROR (Transact-SQL) @@ERROR (Transact-SQL) @@ERROR
Sql Server 2008 R2 Msdn
(Transact-SQL) $PARTITION (Transact-SQL) @@ERROR (Transact-SQL) @@IDENTITY (Transact-SQL) @@PACK_RECEIVED (Transact-SQL) @@ROWCOUNT (Transact-SQL) @@TRANCOUNT (Transact-SQL) BINARY_CHECKSUM (Transact-SQL) CHECKSUM (Transact-SQL) COMPRESS (Transact-SQL) CONNECTIONPROPERTY (Transact-SQL) CONTEXT_INFO (Transact-SQL) CURRENT_REQUEST_ID (Transact-SQL) CURRENT_TRANSACTION_ID (Transact-SQL) DECOMPRESS (Transact-SQL) ERROR_LINE (Transact-SQL) ERROR_MESSAGE (Transact-SQL) ERROR_NUMBER (Transact-SQL) ERROR_PROCEDURE (Transact-SQL) ERROR_SEVERITY (Transact-SQL) ERROR_STATE (Transact-SQL) FORMATMESSAGE (Transact-SQL) GET_FILESTREAM_TRANSACTION_CONTEXT (Transact-SQL) GETANSINULL (Transact-SQL) HOST_ID (Transact-SQL) HOST_NAME sql server 2008 architecture msdn (Transact-SQL) ISNULL (Transact-SQL) ISNUMERIC (Transact-SQL) MIN_ACTIVE_ROWVERSION (Transact-SQL) NEWID (Transact-SQL) NEWSEQUENTIALID (Transact-SQL) ROWCOUNT_BIG (Transact-SQL) SESSION_CONTEXT (Transact-SQL) SESSION_ID (Transact-SQL) XACT_STATE (Transact-SQL) TOC Collapse the table of content Expand the table of content This documentation is archived and is not being maintained. This documentation is archived and is not being maintained. @@ERROR (Transact-SQL) Other Versions SQL Server 2012 THIS TOPIC APPLIES TO: SQL Server (starting with 2008)Azure SQL DatabaseAzure SQL Data Warehouse Parallel Data Warehouse Returns the error number for the last Transact-SQL statement executed. Transact-SQL Syntax ConventionsSyntax Copy -- Syntax for SQL Server, Azure SQL Database, Azure SQL Data Warehouse, Parallel Data Warehouse @@ERROR Return TypesintegerRemarksReturns 0 if the previous Transact-SQL statement encountered no errors.Returns an error number if the previous statement encountered an error. If the error was one of the errors in the sys.messages catalog view, then @@ERROR contains the value from the sys.messages.message_id column for that error. You can
Microsoft Tech Companion App Microsoft Technical Communities Microsoft Virtual Academy Script Center Server and Tools Blogs TechNet Blogs TechNet Flash Newsletter TechNet Gallery TechNet sql server 2005 msdn Library TechNet Magazine TechNet Subscriptions TechNet Video TechNet Wiki Windows Sysinternals Virtual sql server 2000 msdn Labs Solutions Networking Cloud and Datacenter Security Virtualization Downloads Updates Service Packs Security Bulletins Windows Update Trials msdn sql server express Windows Server 2012 R2 System Center 2012 R2 Microsoft SQL Server 2014 SP1 Windows 8.1 Enterprise See all trials » Related Sites Microsoft Download Center TechNet Evaluation Center Drivers https://msdn.microsoft.com/en-us/library/ms188790.aspx Windows Sysinternals TechNet Gallery Training Training Expert-led, virtual classes Training Catalog Class Locator Microsoft Virtual Academy Free Windows Server 2012 courses Free Windows 8 courses SQL Server training Microsoft Official Courses On-Demand Certifications Certification overview MCSA: Windows 10 Windows Server Certification (MCSE) Private Cloud Certification (MCSE) SQL Server Certification (MCSE) Other resources TechNet Events Second shot for certification https://technet.microsoft.com/en-us/library/cc645603(v=sql.105).aspx Born To Learn blog Find technical communities in your area Support Support options For business For developers For IT professionals For technical support Support offerings More support Microsoft Premier Online TechNet Forums MSDN Forums Security Bulletins & Advisories Not an IT pro? Microsoft Customer Support Microsoft Community Forums United States (English) Sign in Home Library Wiki Learn Gallery Downloads Support Forums Blogs We’re sorry. The content you requested has been removed. You’ll be auto redirected in 1 second. Technical Reference Errors and Events Reference Database Engine Events and Errors Database Engine Events and Errors System Error Messages System Error Messages System Error Messages Understanding Database Engine Errors System Error Messages Errors 1 - 999 Errors 1000 - 1999 Errors 2000 - 2999 Errors 3000 - 3999 Errors 4000 - 4999 Errors 5000 - 5999 Errors 6000 - 6999 Errors 7000 - 7999 Errors 8000 - 8999 Errors 9000 - 9999 Errors 10000 - 10999 Errors 11000 - 11999 Errors 12000 - 12999 Errors 13000 - 13999 Errors 14000 - 14999 Errors 150
resources Windows Server 2012 resources Programs MSDN subscriptions Overview Benefits Administrators Students Microsoft Imagine Microsoft Student Partners ISV Startups TechRewards Events Community Magazine Forums https://msdn.microsoft.com/en-us/library/ms187109.aspx Blogs Channel 9 Documentation APIs and reference Dev centers Retired https://msdn.microsoft.com/en-us/library/ms180031.aspx content Samples We’re sorry. The content you requested has been removed. You’ll be auto redirected in 1 second. Database Features Monitor and Tune for Performance Server Performance and Activity Monitoring Server Performance and Activity Monitoring View the SQL Server Error Log (SQL Server Management sql server Studio) View the SQL Server Error Log (SQL Server Management Studio) View the SQL Server Error Log (SQL Server Management Studio) Start System Monitor (Windows) Set Up a SQL Server Database Alert (Windows) View the Windows Application Log (Windows) View the SQL Server Error Log (SQL Server Management Studio) Save Deadlock Graphs (SQL Server Profiler) sql server 2008 Open, View, and Print a Deadlock File (SQL Server Management Studio) Save Showplan XML Events Separately (SQL Server Profiler) Save Showplan XML Statistics Profile Events Separately (SQL Server Profiler) TOC Collapse the table of content Expand the table of content This documentation is archived and is not being maintained. This documentation is archived and is not being maintained. View the SQL Server Error Log (SQL Server Management Studio) SQL Server 2016 Other Versions SQL Server 2014 SQL Server 2012 Updated: July 29, 2016Applies To: SQL Server 2016The SQL Server error log contains user-defined events and certain system events you will want for troubleshooting.How to view the logsIn SSMS, select Object ExplorerTo open Object Explorer: Keyboard shortcuy is F8. Or, on the top menu, click View/Object Explorer In Object Explorer, connect to an instance of the SQL Server and then expand that instance.Find and expand the Management section (Assuming you have permissions to see it).Right-click on SQL Server Logs, select View, and choose
resources Windows Server 2012 resources Programs MSDN subscriptions Overview Benefits Administrators Students Microsoft Imagine Microsoft Student Partners ISV Startups TechRewards Events Community Magazine Forums Blogs Channel 9 Documentation APIs and reference Dev centers Retired content Samples We’re sorry. The content you requested has been removed. You’ll be auto redirected in 1 second. Transact-SQL Reference (Database Engine) Built-in Functions (Transact-SQL) System Functions (Transact-SQL) System Functions (Transact-SQL) ERROR_STATE (Transact-SQL) ERROR_STATE (Transact-SQL) ERROR_STATE (Transact-SQL) $PARTITION (Transact-SQL) @@ERROR (Transact-SQL) @@IDENTITY (Transact-SQL) @@PACK_RECEIVED (Transact-SQL) @@ROWCOUNT (Transact-SQL) @@TRANCOUNT (Transact-SQL) BINARY_CHECKSUM (Transact-SQL) CHECKSUM (Transact-SQL) COMPRESS (Transact-SQL) CONNECTIONPROPERTY (Transact-SQL) CONTEXT_INFO (Transact-SQL) CURRENT_REQUEST_ID (Transact-SQL) CURRENT_TRANSACTION_ID (Transact-SQL) DECOMPRESS (Transact-SQL) ERROR_LINE (Transact-SQL) ERROR_MESSAGE (Transact-SQL) ERROR_NUMBER (Transact-SQL) ERROR_PROCEDURE (Transact-SQL) ERROR_SEVERITY (Transact-SQL) ERROR_STATE (Transact-SQL) FORMATMESSAGE (Transact-SQL) GET_FILESTREAM_TRANSACTION_CONTEXT (Transact-SQL) GETANSINULL (Transact-SQL) HOST_ID (Transact-SQL) HOST_NAME (Transact-SQL) ISNULL (Transact-SQL) ISNUMERIC (Transact-SQL) MIN_ACTIVE_ROWVERSION (Transact-SQL) NEWID (Transact-SQL) NEWSEQUENTIALID (Transact-SQL) ROWCOUNT_BIG (Transact-SQL) SESSION_CONTEXT (Transact-SQL) SESSION_ID (Transact-SQL) XACT_STATE (Transact-SQL) TOC Collapse the table of content Expand the table of content This documentation is archived and is not being maintained. This documentation is archived and is not being maintained. ERROR_STATE (Transact-SQL) Other Versions SQL Server 2012 THIS TOPIC APPLIES TO:SQL Server (starting with 2008)Azure SQL DatabaseAzure SQL Data Warehouse Parallel Data Warehouse Returns the state number of the error that caused the CATCH block of a TRY…CATCH construct to be run. Transact-SQL Syntax ConventionsSyntax Copy -- Syntax for SQL Server, Azure SQL Data Warehouse, Parallel Data Warehouse ERROR_STATE ( ) Return TypesintReturn ValueWhen called in a CATCH block, returns the state number of the error message that caused the CATCH block to be run.Returns NULL if called outside the scope of a CATCH block.RemarksSome error messages can be raised at multiple points in the