BloggingAbout.NET
Thoughts of developers

Browse Site by Tags

Showing related tags and posts across the entire site.
  • How to: Delete rows from a table using a join on a second table

    In my current project, we have a tables where the primary key consists of two values. Based on the result of a query, we needed to delete a few rows from that table. The query returned the two key values and we needed to join that information in the delete statement. It's not rocket science, but...
    Posted to Jan Schreuder on .Net by Jan Schreuder on 10-22-2008
    Filed under: General, Code Samples, SQL Server
  • How to - Create a missing designer.cs file

    I was running into this just now and found a quick way to solve it, so I just posted it for future reference. I have an ASP.Net web application project in .Net 2.0 which was migrated from .Net 1.1 some time ago. I noticed that a few aspx pages did not have a designer.cs file. All controls on those pages...
    Posted to Jan Schreuder on .Net by Jan Schreuder on 10-17-2008
    Filed under: Code inspections, Code Samples, C#, .Net Do's & Don'ts
  • How to: Use OleDb to import text files (tab, csv, custom)

    Introduction I have been browsing the web for a good and simple class to handle delimited file imports. My current assignment has an import option that needs to deal with that. However, the current implementation (using StreamReader) is not good enough. It doesn't handle all the exceptions you encounter...
    Posted to Jan Schreuder on .Net by Jan Schreuder on 07-15-2008
    Filed under: Tools, Code Samples, Articles, C#, .Net Do's & Don'ts
  • Keep track of data changes using a SQL trigger

    In my current project, we calculate the status of tasks that a user needs to do and store the status in a table. This happens on a daily basis. Once every week, we calculate which items are overdue and inform the user by email to take appropriate action. However, sometimes our users complain that they...
    Posted to Jan Schreuder on .Net by Jan Schreuder on 02-08-2008
    Filed under: General, Code Samples, SQL Server
  • How to: Quickly check if data exists in your SQL table

    I was confronted with a slow performing stored procedure in SQL server this week. The procedure was to retrieve one row from a table. But before that row could be retrieved, an update procedure was called to make sure all rows in that table had the correct status. That update procedure first checked...
    Posted to Jan Schreuder on .Net by Jan Schreuder on 12-21-2007
    Filed under: Code Samples, SQL Server
  • How to: Check if the specified URL really exists

    I think a lot of people need to do this, and we do in our project. We created a method that will check if URLs specified in our database (a couple of hundred) actually exist. Our support team uses the result of that check to update incorrect URLs in our application. I extracted the method and removed...
    Posted to Jan Schreuder on .Net by Jan Schreuder on 12-12-2007
    Filed under: Code Samples
  • Crystal Reports for Visual Studio 2005 deployment trouble

    I just spent 4 hours of figuring out why the reports we developed using Crystal Reports would not show the graphs after being deployed to our production server. We checked everything from access rights to proper installation of Crystal reports on the server. Below are a few things you may want to check...
    Posted to Jan Schreuder on .Net by Jan Schreuder on 12-10-2007
    Filed under: Code Samples, Crystal Reports
  • .Net Zip library

    The MSDN blogs are a really great source for all sorts of information. I browse the main blog page regularly, just to get a feeling of what is happening on the Microsoft side of things. This morning I found a link to a Codeplex project which encapsulates the System.IO.Compression.DeflateStream class...
    Posted to Jan Schreuder on .Net by Jan Schreuder on 10-31-2007
    Filed under: Tools, Code Samples
  • Another "What the F**K" moment

    I tried compiling my application just now and got this error message from the compiler: Preparing resources... Updating references... Performing main compilation... error CS0583: Internal Compiler Error (0xc0000005 at address 77FCD43E): likely culprit is 'PARSE'. An internal error has occurred...
    Posted to Jan Schreuder on .Net by Jan Schreuder on 10-02-2007
    Filed under: Code inspections, Code Samples
  • What the F**K is the 'Grady' operator

    The web application I'm working on logs errors in a log file using Log4Net. Nothing new, loads of applications do that. But I was surprised when I found the following error message: System.Data.SyntaxErrorException: Syntax error: Missing operand after 'grady' operator. Now what in heavens...
    Posted to Jan Schreuder on .Net by Jan Schreuder on 10-01-2007
    Filed under: Code inspections, Code Samples
Page 1 of 6 (120 items) 1 2 3 4 5 Next > ... Last »
Copyright © 2003-2008 BloggingAbout.NET
Powered by Community Server (Commercial Edition), by Telligent Systems