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 8509969
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T03:34:43+00:00 2026-06-11T03:34:43+00:00

i have write the date and time column query in Sql Server with IsNull

  • 0

i have write the date and time column query in Sql Server with IsNull condition.. i have mentioned that query in below..

i want that query is, how to write the ssis derived column . i have written that query in ssis but some cast type error comes..

here concatenate the date and time columns.

please help me,

Sql Query —

CAST(ISNULL(CONVERT(Nvarchar(10),InitialDate,101), '01/01/1900')  AS Nvarchar(10))+ ' ' + ISNULL(CONVERT(NVarChar(8),InitialTime,108), '00:00:00')   as  CourtDttm

SSIS Derived column

(DT_DBTIMESTAMP)((DT_STR,255,1252)(ISNULL(InitialDate) ? ((DT_DBTIMESTAMP)"01/01/1900") : (InitialDate)) + " " +
((DT_STR,255,1252)(ISNULL(InitialTime) ? ((DT_DBTIMESTAMP)"00 : 00 : 00") : (InitialTime))))


Errors --[Derived Column [40]] Error: An error occurred while attempting to perform a type cast.
  • 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-06-11T03:34:45+00:00Added an answer on June 11, 2026 at 3:34 am

    I think you’re looking for:

    DT_DBDATE - A date structure that consists of year, month, and day.
    
    DT_DBTIME - A time structure that consists of hour, minute, and second.
    

    If you use DT_DBTIMESTAMP, you’ll have to fill in the date part like you did for InitialDate.

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

Sidebar

Related Questions

I have written an SQL Query that brings the result in below format ResourceName
I have a SQL Server 2008 database with a table that has a column
I have to write a SNMP module which monitor a certain server application that
I have an xts object, the first column of which is date-time, followed by
I am trying to write an SQL (Server) query which will return all events
So I have a SQL table that contains time-clock information like this. The number
I have created a form that update the data in a sql column, so
I have the following problem. I wrote a query to get the date of
I'm writing a simple web app in PHP that needs to have write access
Is there a way to create LINQ query that will have different grouping fields.

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.