August 2010
12 posts
1 tag
Reseeding MSSQL Autoincrement Identity Column
Our DBA migrated one of our databases last week. For some reason now, when I tried to add a row to a table in one of our tables, I received a primary key constraint violation error. I learned how to check what’s current auto-increment value of the primary key column and how to change it with a couple of quick queries… To see the current seed (auto-incrementing value): DBCC...
Aug 30th
“The darker it is the brighter light shines.”
Aug 24th
WatchWatch
They’re alive!
Aug 23rd
WatchWatch
and scrumptious…
Aug 23rd
China Trip Pics →
Aug 23rd
VS2010 HotFix for Search dialog box stretching →
Aug 23rd
“Whoever can be trusted with very little can also be trusted with much, and...”
– Luke 16:10
Aug 9th
“If you do not know the truth, you can not recognize a lie.”
–  Joyce Meyer (on the importance of knowing the Word of God)
Aug 4th
“They think somebody should do something, but it never occurs to them that it...”
–  Joyce Meyers (on passiveness in How to Build a Fortress of Faith - Part 1 podcast)
Aug 4th
3 tags
Convert QueryString to Dictionary
Snippet public static Dictionary<string, object> QuerystringToDictionary(NameValueCollection QueryString) {     Dictionary<string, object> routeValues = new Dictionary<string, object>();     foreach (string key in QueryString.Keys)     {         routeValues[key] = QueryString[key].ToString();     }     return routeValues; }
Aug 4th
3 tags
Gotcha
When creating custom Html Helpers in MVC 2 and .Net 4.0 remember to make the return type MvcHtmlString, because if you make it simply string (as I had in a MVC 1.0 project that I migrated to MVC 2 and .Net 4.0) and you use the Html encoding syntax (<%:), it’ll encode your output.
Aug 4th
2 tags
HotFix for "Insufficient available memory to meet... →
Aug 4th