﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 2008 / T-SQL (SS2K8)  / t-sql 2008 r2 error message / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Wed, 19 Jun 2013 03:26:09 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: t-sql 2008 r2 error message</title><link>http://www.sqlservercentral.com/Forums/Topic1412134-392-1.aspx</link><description>Please don't cross post. direct all replies here. [url=http://www.sqlservercentral.com/Forums/Topic1412099-392-1.aspx]http://www.sqlservercentral.com/Forums/Topic1412099-392-1.aspx[/url]</description><pubDate>Mon, 28 Jan 2013 07:48:56 GMT</pubDate><dc:creator>Sean Lange</dc:creator></item><item><title>RE: t-sql 2008 r2 error message</title><link>http://www.sqlservercentral.com/Forums/Topic1412134-392-1.aspx</link><description>there is no catch block in your trigger. Is that how you intend it ? If so, don't use the try.</description><pubDate>Sun, 27 Jan 2013 13:35:46 GMT</pubDate><dc:creator>ALZDBA</dc:creator></item><item><title>t-sql 2008 r2 error message</title><link>http://www.sqlservercentral.com/Forums/Topic1412134-392-1.aspx</link><description>This is the first time I am writing a trigger. I am getting the following error message on a sql server 2008 r2 database."Msg 102, Level 15, State 1, Procedure eRPT_Transaction_Audit, Line 15 Incorrect syntax near 'TRY'. I do not know what is wrong can you tell me what is wrong with the following sql:USE DEVGOCREATE TRIGGER  [dbo].[eRPT_Transaction_Audit] ON [dbo].[eRPT_Transaction_Tracking]    AFTER INSERTASBEGINSET NOCOUNT ON;BEGIN TRY        INSERT INTO [dbo].[eRPT_Transaction_Audit] (Package_name, Received_Date, Download_Date,   Acknowledge_Date, Response_Docs_Date, Error_Report_Date,   FDR_Report_Date, Close_Date, File_Location,Response_Code)   SELECT Package_name, Received_Date, Download_Date,   Acknowledge_Date, Response_Docs_Date, Error_Report_Date,   FDR_Report_Date, Close_Date, File_Location,Response_Code FROM INSERTEDEND TRY ENDGOalso note in the trigger, I am not listing the identity key for the table</description><pubDate>Sun, 27 Jan 2013 09:13:55 GMT</pubDate><dc:creator>wendy elizabeth</dc:creator></item></channel></rss>