Wednesday, June 07, 2006 7:13:10 PM UTC :: Filed Under C# | Geek Tips | VB.NET

Ok, ok... it's not stealing because Microsoft said we can do it!   If you've ever wondered if you could use the icons in Visual Studio for other applications, apparently you can: Brad Abrams Blog: Standard Microsoft Icons

Wednesday, June 07, 2006 6:44:04 PM UTC :: Filed Under ASP.NET | C# | VB.NET | XML

One thing that was painfully lacking in Visual Studio 2003 was the ability to work with XML and XSLT.  Most people opted to purchase third party tools like XML Spy to deal with VS.NET's inadequacies.  However, Visual Studio .NET 2005 has a group of new tools that add things such as XSLT debugging and Intellisense that make working with XML related files much more tolerable.

In addition, the .NET Framework 2.0 has undergone some significant improvements in the System.XML namespace.  If you work with XML on a frequent basis, you'll want to be sure to read through these MSDN articles and see what's new in version 2:

Wednesday, May 24, 2006 4:14:21 AM UTC :: Filed Under Photography

I’ve been having problems with a SanDisk Ultra II compact flash card and thought I lost a handful of images that I took over the weekend.  Thanks to some help from the DPReview forums, I was pointed to the ArtPlus Digital Photo Recovery application.  It’s a nifty little free application that can recover photos from a corrupt memory card and did a pretty good job for me, even after I had reformatted my compact flash card!

Tuesday, May 23, 2006 1:38:28 PM UTC :: Filed Under SQL

How cool is this?  Red-Gate Software has a free plug-in for Query Analyzer that gives you Intellisense® support!  Click here to get it.

Monday, May 15, 2006 9:45:39 PM UTC :: Filed Under VB.NET

Should you ever find yourself needing to write CAML queries (XML queries) against a SharePoint list, the U2U CAML tool is quite helpful. U2U member Patrick Tisseghem has a nice blog post on how to use the tool which can be downloaded form their web site.

One thing to note is that the tool wraps the query XML nodes within a <Query></Query> node.  You’ll want to delete that node in your .NET code.  As a result, your CAML query might look something like this: 

Dim strQueryDate as String = Microsoft.SharePoint.Utilities.SPUtility.CreateISO8601DateTimeFromSystemDateTime(CDate(“05/05/2006”))

Dim strQuery as String = “<Where><Geq><FieldRef Name=””Created”” /><Value Type=””DateTime””>{0}</Value></Geq></Where>”, strQueryDate)

Note the goofy CreateISO8601DateTimeFromSystemDateTime method that is used for the date… CAML uses an ISO8601 date format so you must use this method if you want to do date comparisons.

Tuesday, May 09, 2006 8:44:40 PM UTC :: Filed Under SQL

For those of you who use Visio to due your database modeling, you might have run across the slight problem of not being able to get rid of the auto-generated foreign-keys in your tables (assuming you might have deleted and recreated a relation to the same table.)  If you try to generate a database from your model, you’ll find that the foreign keys that you thought you deleted still exist somewhere in ‘limbo’ and as a result, the error checking in Visio goes crazy.

So, how do you get rid of these ‘phantom foreign keys/relationships’?  Well, I found no solutions from Microsoft’s web site, but I did find some work-arounds from a few blog posts.  Here are two methods that seem to work:

Copy Data Structure into a New File

  1. Create a new database model diagram
  2. Select all of the items in your existing diagram and click Ctrl+C (Copy)
  3. Paste the entire diagram into your new diagram.  The “phantom” foreign keys will not be copied.

View (and Delete) Related Tables

  1. Right-click on the table with the problem
  2. Select "Show related tables" and you should get the "phantom relationship" back
  3. Select the relationship and delete it

 

Navigation
On this page....
Search
Archives
<June 2006>
SunMonTueWedThuFriSat
28293031123
45678910
11121314151617
18192021222324
2526272829301
2345678
Categories
Contact me
Send mail to the author(s) Contact Todd M. Taylor