adobytescode.blogspot.com
ADO.NET: Anonymous Methods in C# 2.0
http://adobytescode.blogspot.com/2009/02/anonymous-methods-in-c-20.html
Anonymous Methods in C# 2.0. C# 20 (and .NET in general) introduces the anonymous method. An anonymous method can be used anywhere a delegate is used and is defined inline, without a method name, with optional parameters and a method body.To use anonymous methods, you need to know what a delegate is. Anonymous Methods Are Inline Delegates. Private void Form1 Load(object sender, EventArgs e). Button1.Click = delegate. Anonymous methods can be used wherever delegates are expected. Anonymous methods can...
dotnetpages.blogspot.com
Dot Net Pages: How to handle errors in SQL-SERVER {try…catch}
http://dotnetpages.blogspot.com/2012/11/how-to-handle-errors-in-sql-server.html
How to handle errors in SQL-SERVER {try…catch}. To implement error handling in your stored procedure in SQL-Server, we can user try…. catch syntax. To retrieve error information below are the built in functions in SQL-Server. Returns the number of the error. Returns the error state number. Returns the name of the stored procedure or trigger where the error occurred. Returns the line number inside the routine that caused the error. SELECT ERROR NUMBER() AS ErrorNumber ,. ERROR SEVERITY() AS ErrorSeverity ,.
adobytescode.blogspot.com
ADO.NET: SQL Server
http://adobytescode.blogspot.com/search/label/SQL%20Server
Showing posts with label SQL Server. Showing posts with label SQL Server. CREATE DATABASECREATE DATABASE database nameCREATE DATABASECREATE DATABASE database name. ON { [PRIMARY](NAME = logical name,FILENAME ='physical name'[,SIZE = size][,MAXSIZE = max size UNLIMITED][,FILEGROWTH = growth increment])}[,.n] [LOG ON{(NAME = logical name,FILENAME = 'physical name'[,SIZE=size UNLIMITED][,MAXSIZE = max size UNLIMITED][,FILEGROWTH = growth increment])}[,.n] [FOR LOAD FOR ATTACH]. CREATE TABLE table name.
bytescode.blogspot.com
Dot Net: oops-77
http://bytescode.blogspot.com/2008/02/oops-77.html
Enter your search terms. 1) What happens when you encounter a continue statement inside the for loop? Ans) The code for the rest of the loop is ignored, the control is transferred back to the beginning of the loop. 2) Is goto statement supported in C#? Ans) Gotos are supported in C# to the fullest. In Java goto is a reserved keyword that provides absolutely no functionality. 3) How do you implement thread synchronization (Object.Wait, Notify,and CriticalSection) in C#? 4) How do I make a DLL in C#? Ans Y...