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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T04:55:43+00:00 2026-06-16T04:55:43+00:00

im using SSIS for Sql server 2008. Im declaring a path on a string

  • 0

im using SSIS for Sql server 2008.

Im declaring a path on a string variable on the Expression property:

"C:\\data\\Documents\\dt\\local." + @[User::Record] + ".xlsx"

The User::Record is of type Object.

I want to know how can I convert it from Object to String so I can assign it on the path.

Thanks..

  • 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-16T04:55:44+00:00Added an answer on June 16, 2026 at 4:55 am

    Expression is evaluated at compile time .So the variable User::Record is initialized as System.Object type .It does not contain any value .

    Instead of declaring it as an expression ,try to use a script task to assign the path to the string variable .

    Dts.Variables["User::Path"].Value =
    "C:\\data\\Documents\\dt\\local." + Dts.Variables["User::Record"].Value.ToString() + ".xlsx"
    

    I assume that before assigning the path to the string variable you are storing some value in User::Record variable .
    Else even after the above script task code ,your path variable will hold the value

    C:\data\Documents\dt\local.System.Object.xlsx
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm creating a data mart in SQL Server 2008 using SSIS for load, and
I'm using SSIS to import data from Excel sheets into SQL Server 2005, the
SQL Server 2008 provides the ability to script data as Insert statements using the
I am copying data from MS Access to SQL Server using SSIS. Only one
Hi Im using SSIS for SQL server 2008. I have a sql query: select
I am using SQL Server SSIS 2008 R2. I want to dynamically change a
I am trying to import a PSV file into SQL Server 2008 using SSIS.
I'm using ssis 2008 and sql server 2012. I have a table with column
I am using SSIS (SQL Server 2008 R2) to transform an input CSV file
I am using SSIS (SQL Server 2008) to lookup values from a table. I

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.