By tag: GUID
0
kicks
Short GUID
new Guid() creates a 32-character GUID as a string. You can actually shorten that to 22 characters. Check out this post for the how-to!
0
kicks
ShortGuid - A shorter and url friendly GUID class in C#
Extending Mads Kristensens "shorter and URL friendly GUID"
0
kicks
The Gospel of the GUID - And Why It Matters!
There is only one commandment in the Gospel of the GUID: Thou shalt always use a GUID to uniquely identify a row in a table.
0
kicks
Inserting GUID directly into the code
This is not rocket science, but it's a nice and handy macro for Visual Studio that generates a new GUID and inserts at the cursor location in the editor. No more running guidgen.exe, switching windows, copying to clipboard and pasting.
0
kicks
IsGuid() method (Regular Expression Based Guid Validation)
Here is a function I try to keep handy which tests a string for a Guid and returns True or False.
0
kicks
Returning The Value Of A Generated Key On Insert In MSSQL
I wanted to use GUIDs for a specific table's primary key, but I had no intention of running two queries just so I could get the newly created row's GUID. Here's a great way to get data created within a stored procedure back to the code that called it.
0
kicks
When GUIDs Are Good
Certain Data Architects (Dratz!) will tell you that GUIDs are for miscreants, deviants and DB n00bz. Well, I'm inclined to disagree with that generalization and lay out when GUIDs make perfect sense, when they're improper and why people who use Identity (auto-incrementing) columns shouldn't be allow...
0
kicks
What should I choose for my primary key?
Naturals? Idents? GUIDs? Oh, jeez. Getting an official opinion on which to use is about as hard as getting a lawyer to tell you exactly when its okay to shoot somebody. NOBODY wants to give you a straight up answer. And you can understand why; there are many different things you have to consid...
0
kicks
The Create GUID menu item is back
Microsoft realized they were on thin ice by removing the feature, so they made a wise decision in Service Pack 1 for Visual Studio 2005.
0
kicks
GUID Visualizer for Visual Studio 2005
A simple GUID Visualizer, it just displays a text box displaying the value in string format of the current guid. If you've ever tried debugging guids before you'll know that it's not easy, always giving you a misleading empty, which is actually a property of the guid type rather than its actual val...