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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T18:45:08+00:00 2026-05-25T18:45:08+00:00

I have created an SSIS package i took ‘excel source’ taking excel file but

  • 0

I have created an SSIS package i took ‘excel source’ taking excel file but my problem is I need to take B7 value from excel file and insert it into database table please help because

B7 values is generated from expression : =MAX($B$32:C284)

enter image description here

hi I want to take value of date i.e '8/26/2011' , and value of NAV i.e '93737452.52'

and want to insert into table i’m using 'excel source ' to take excel file made connection now Select 'Data access mode' in 'Excel source editor' as 'SQL command'

now what command I need to write to get 'date' and 'NAV'value as I have pasted picture of excel file please let me know the further steps plese .

  • 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-25T18:45:09+00:00Added an answer on May 25, 2026 at 6:45 pm

    Since you only need 2 very specific cell values from the spreadsheet, I would suggest using a Script Component to get the values from just those cells instead of using an Excel Source. Excel Source is really made for getting a bunch of rows & columns that are laid out consistently, not for picking individual cells.

    To do this, first drag a Script Component from the Data Flow Transformations section of toolbox. When the select script component type dialog box appears, check the first option, “Source”.

    enter image description here

    Next, edit this script component and pick Inputs & Outputs from the leftmost column and add the 2 output columns that you will need and set the correct data type for each.

    enter image description here

    Then click the Script option, choose your language (I picked Visual Basic 2008 in this case) and then click the Edit Script button.

    When the IDE comes up, add a reference to Microsoft.Office.Interop.Excel and add an Imports statement for this at the top of your script. Then in the CreateNewOutputRows routine, get a reference to your workbook & worksheet and output the values from the specific cells that you want using the AddRow() method. As you can see from the code below, I am getting the values directly from cells b7 & c7 and converting them to the proper type.

    enter image description here

    Save your script and exit the IDE and you can now use this script component as your source for your database insert:

    enter image description here

    The script will read just the 2 values you want from the cells you specify and provide them to the Data Flow Destination.

    While this may look like a lot more work than just dropping an Excel Source in the Data Flow, it gives you much more flexibility and control.

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

Sidebar

Related Questions

I have created ssis package that is taking data from excel file and insert
I have created one SSIS package from flat file I'm getting one price value.
I have ssis package in that I'm taking values from flat file and insert
I have created an SSIS package and it works great on my dev machine.
I have simple SSIS package in which On Error event handler I have created
I have created SSIS packages. Configurations are stored within a .dtsconfig file. In order
I have created a (SSIS) package which contains SQL procedures for transfer of data
I have created an SSISpackage in my asp.net project.To call the ssis package, i
I have a very simple SSIS package where I take data from a view
I have an SSIS package (SQL 2008) that I need to connecto to an

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.