Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5850413
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T13:08:13+00:00 2026-05-22T13:08:13+00:00

I believe this has been a bug/problem in SQL 2000/2005 … If my results

  • 0

I believe this has been a bug/problem in SQL 2000/2005 … If my results have null on DATETIME column, i get

com.microsoft.sqlserver.jdbc.sqlserverexception: 
 the conversion from int to date is unsupported

when i use sql.getDate("ColumnName") …
Any solutions to this?

[EDIT]
Hi all thanks for your inputs, below is my SQL query

select p.planno            as PlanNumber, 
       t.TrancheID         as TrancheID, 
       t.tranchestartdate  as TrancheStartDate, 
       t.tranchereasoncode as TrancheReasonCode, 
       ai.ArrayItemDecode  TrancheReasonDescription, 
       t.trancheuwstage    as UnderwritingStatusCode 
from   plan_ p 
       inner join tranche t 
         on t.planno = p.planno 
            and t.trancheuwstage in ( 2, 4 ) 
            and p.planno = '040000000X6' 
       inner join arrayitem ai 
         on ai.ArrayNm = 'arrTraReas' 
            and ai.ArrayItemCode = t.tranchereasoncode;  

and the culprit here is tranchestartdate which is a DATETIME. I can’t really add anything to tabel as i’m not allowed to change existing table structures, this is a big system. Perhaps i can do the casting in my SQL? I’m not quite sure if this is definitely a null problem.. Can one debug/watch through the ResultSet and check if any data was retrieved before i call getDate()?
[/EIDT]

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T13:08:14+00:00Added an answer on May 22, 2026 at 1:08 pm

    If your application (or drivers) cannot handle null dates then the easiest thing might be to use ISNULL(field, <null replacement date>) and check for the null replacement date in code. This approach uses a magic number (date) to indicate null values, true. It’s not pretty but it is quick and straightforward.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been told and I'm not sure I believe this: Removing white space
I am (unfortunately) developing an application in Excel 2000 VBA. I believe I have
This has been covered a couple of times, without a suitable answer: ObjectDataSource firing
I realise this question has been asking before, but I've yet to find an
You're probably thinking this has been asked a million times before but I think
I'm sorry if this has been asked before, I tried many combinations of keywords
I'm pretty sure this has been asked before, but I can't for the life
I have a .NET CF 1.1 application that has been running perfectly fine for
Should links on a web page ALWAYS be underlined? I do not believe this
EDIT: Modified title and added update. UPDATE : We no longer believe this is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.