| Dinesh 的个人资料Dinesh's Blog ...日志列表网络 | 帮助 |
|
7月31日 IMPLICIT Transaction modeOne of the things I noticed at the last SQL Server Sri Lanka User Group meeting was, unawareness of IMPLICIT Transaction mode. Almost all were knew about AutoCommit and EXPLICIT modes but very few were aware of IMPLICIT mode. Are you aware of it? Then how often you use it? 1: USE Northwind 2: GO 3: 4: SET IMPLICIT_TRANSACTIONS ON 5: SET XACT_ABORT ON 6: 7: CREATE TABLE dbo.EmployeeAllowances 8: (EmployeeId int REFERENCES dbo.Employees(EmployeeID) NOT NULL, 9: MonthAndYear datetime NOT NULL, 10: Allowance money NOT NULL) 11: 12: 13: INSERT INTO dbo.EmployeeAllowances 14: (EmployeeId, MonthAndYear, Allowance)15: VALUES 16: (100, getdate(), 450.00) 17: 18: 19: COMMIT TRAN The SET IMPLICIT_TRANSACTIONS ON tells the system to set the transaction mode to IMPLICIT. In above code, transaction starts with CREATE TABLE statement. Since I have turned XACT_ABORT on, transaction rolls back at any run-time error. If no run-time error, transaction is committed at COMMIT statement. In this case, everything is rolled back since INSERT statement raises an error. 7月24日 SQL Server Sri Lanka User Group meeting - July 2007It went okay. Chamindu's session was quite impressive. Though I have done some testing about SSIS custom components, I had no chance to implement a one for one of our applications. One thing I noted is, it is simple and very powerful. Coding with javaIt was part of my MSc stuff. I had had to write a bit-complex module using Java for one of the subjects and I spent couple of sleepless nights for completing it. I have not done any programming with either .NET or java for long time and unfortunately I had to use something called "BlueJ" was coding, that is not rich enough like Visual Studio :). In a way, it was fun, writing code without help from the system, (assume you are coding without intelli-scene) but only thing was, it took time that I expected. 7月17日 SS SLUG Meeting - July '07SQL Server Sri Lanka User Group meeting will be held on 18th (tomorrow) at Microsoft Sri Lanka. As usual, there are two sessions; Once will be done by a new speaker, Chamindu Munasinghe who is a tech-lead at Eurocentre DDC. Chamindu will be demonstrating one of the important areas in the SSIS; Custom Components. I will be doing the second one that will be focused on "SQL Transactions". For more info, please visit SQL Server Universe. 7月9日 SQL Server 2005 Best Practices Analyzer - July 2007SQL Server 2005 BPA July one is available for download at here. If you want to know whether you have configured the server properly and need some recommendations, this is the best tool for it. 7月2日 How Time FliesBusy as bee :); Full of works on MSc, Full of works @ my office. In addition to that, training for different SQL area are required by various companies. Doing all these things parallel is bit difficult but have no other options. As a result, regular blog update was interrupted. I may be running like this for another two weeks :(? Some of things, I wanted to add to my blog are;
|
|
|