T-SQL tip: log error details in catch
If you want to log detailed information on an error in a catch block, you can use the following code: BEGIN CATCH declare @Message varchar(2048) = '<< Your custom error text here. >>' +
If you want to log detailed information on an error in a catch block, you can use the following code: BEGIN CATCH declare @Message varchar(2048) = '<< Your custom error text here. >>' +
If you want to convert a string to a stream, without using encoding. You can use the following string extension: usage namespace PTB.Cs.Test.Research { using PTB.Cs.Extensions; using System; using System.IO; using Xunit; public class
When searching for keyboard shortcuts in Microsoft Visual Studio 2013 I came across the keyboard shortcut for bringing up the pending changes window: Press CTRL + 0, P Now the first time
If you set your settings to the "Application" scope the settings will be read-only. If you want to change these settings at runtime, you can use the following code from my unit test project:
If you want a column of a table in HTML to expand and you want the text to show "ellipsis" for overflowing text, you can use the solution found at: http://stackoverflow.com/questions/17345158/variable-sized-column-with-ellipsis-in-a-table Just give
The following code result in my case to rootFolderPath = "C:\inetpub\wwwroot\MvcApplication1". Uri uri = new System.Uri(Assembly.GetAssembly(typeof(MvcApplication)).CodeBase); string binFolderPath = Path.GetDirectoryName(uri.LocalPath); string rootFolderPath = new DirectoryInfo(binFolderPath).Parent.FullName;
In my case I wanted to debug a ASP .NET MVC application, that used Windows authentication, but my account was not added to the "Administrators" role in development. If you still want to debug the
Thanksgiving, Christmas and Carnaval on one day. Today I got a mail from Richard Campbell that they will be sending the Holy Grail of software development to me: a .NET Rocks mug!! This
I was getting the error: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding, when the CloseActivity action was called on a BPT Action. Cause
Fontawesome can be found at: http://fontawesome.io Icons based on a font, gives you infinite scale, icon color adjustment with CSS etc.: <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Font awesome</title> <link href="css/font-awesome.css" rel="stylesheet" /> </head>