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

  • Home
  • SEARCH
  • 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 7831907
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T11:56:09+00:00 2026-06-02T11:56:09+00:00

Initially, I put together a TSQL script to bulk import data from a set

  • 0

Initially, I put together a TSQL script to bulk import data from a set of flat files. (see below). Using functions in SQLSERVER it was easy to convert the data to the datatypes I want and to handle transforming the data based upon whatever unique conditions I might encounter with the data set. For example, all columns could have spaces at the beginning or end, the date columns that represent null values are of a specific value, the data that is money can have a dash at the end of the number representing a negative number, etc. So I use the scalar-valued functions in sqlserver to handle the various conditions and case statements to allow a consistent data set.

My goal now is to migrate this to SSIS, but it seems extremely cumbersome to replicate what I have already done within SSIS. While SSIS does have tools to do the transforms (like the character map, data conversion, derived column tools, and script component). — it seems a massive amount of work to get what I already had in my script. It doesn’t appear that I can re-use anything. While that might be OK for a small table, keying in the same complex tranformations for 50+ columns per table is really going to be a chore — and then to maintain that if I need to modify something? uggh. I must be missing something. Thanks for your help.

            INSERT INTO [TEST1].[dbo].[Table1] 
            SELECT 
               dbo.TRIM([ID]) 
              ,dbo.FixDate([CompleteDate]) 
              ,dbo.TRIM([IsDeleted]) 
              ,dbo.Text2Numeric([QtyTotal]) 
              ,dbo.Text2Numeric([OrderQty]) 
              ,dbo.Text2Money([Price]) 
              FROM  OPENROWSET(BULK  '\\server1test\temp\import1.txt', FIRSTROW=2,
              FORMATFILE='\\server1test\temp\import1.Xml'
              ) as t1 ;
        GO 
  • 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-02T11:56:10+00:00Added an answer on June 2, 2026 at 11:56 am

    A possible solution that doesn’t involve custom dll’s and the GAC would be to just use an Execute SQL Task. I tried this and it works, but am wondering what the downside is. Another thought was to use the Ole DB Command and wrap this up in a stored procedure call. What would be the downside of that approach?

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

Sidebar

Related Questions

Warning: This is inherited legacy code that was initially put together in the early
I am trying to put together a simple POC for a n-layer application using
I'm trying to put together a horizontal content slider using JQueryMobile. The following code
I have put together some code from various sources but javascript is somewhat unknown
Initially I created a bitmap from an external URL by using a bitmapFactory .
The Context I have a custom template container class put together from a map
Well I've managed to put the following together from various examples, however I don't
I wonder whether someone can help please. I'm trying to put together a script
I have been using this method for a while now having initially not put
I have recently put together a JWS application which gets it's argument from a

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.