Solved

Filter expression for NULL in TimeSpan column

Posted on 2007-04-05
1
1,299 Views
Last Modified: 2012-05-05
I hava a DataTable with a column of type System.TimeSpan
I need an expression for DataTable.Select() method to select rows with NULL in that column.
Something like:
dataTable.Select("Isnull(OutTime, NULL) = NULL")

I am not sure what to use instead of 'NULL' in the example.
0
Comment
Question by:rgavrilov
1 Comment
 
LVL 29

Accepted Solution

by:
Gautham Janardhan earned 250 total points
Comment Utility
dataTable.Select("outtime is null");
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now