Variables in Flat file Connection?

  • Hi Friends,

    I have a variable which stores a path on my local machine....

    source and destination is a flat file connection....i have to put the variable in the destination..i mean the path which has the file to store the data in the local drive....i have no problem with this...

    but when i try to open another server its not working..i put like \\192.168.14.25\d$...

    is this possible to open another server's path like this and getting the destination file...? or any other option to do this?

    Help me friends

    Thanks,
    Charmer

  • Is creating a mapped drive an option in your environment ?

    Brian Kukowski
  • Brian Kukowski (1/6/2012)


    Is creating a mapped drive an option in your environment ?

    no its a different server..

    Thanks,
    Charmer

  • So what's the error message? is it a permission issue or can't find the path?

    I'm not sure if you can connect using the '$' sign to a hidden share, but YES of course you can connect to any remote server since you have the right permissions.

  • JasonYousef (1/10/2012)


    So what's the error message? is it a permission issue or can't find the path?

    I'm not sure if you can connect using the '$' sign to a hidden share, but YES of course you can connect to any remote server since you have the right permissions.

    it says invalid path

    Thanks,
    Charmer

  • Don't think this is SSIS. Certainly sounds like permissions to me.

    When you see this error are you running the package in bids from your own machine or using SQL Server Agent?

  • aaa-322853 (1/10/2012)


    Don't think this is SSIS. Certainly sounds like permissions to me.

    When you see this error are you running the package in bids from your own machine or using SQL Server Agent?

    from local machine

    Thanks,
    Charmer

  • What output you get when you type in following in Windows explorer?

    \\192.168.14.25\d$

    If it errors out, it’s a permission issue.

  • Is \\192.168.14.25\d$ the exact value you're typing in for the expression? If so, I think the issue is that the backslash in SSIS is used as the escape indicator. You need to use a double backslash to implement a single backslash. So, the way to specify the path would be

    \\\\192.168.14.25\\d$

    See the following for more info

    http://sqlblog.com/blogs/andy_leonard/archive/2009/01/30/an-introduction-to-the-ssis-expression-language.aspx

    http://msdn.microsoft.com/en-us/library/ms141001.aspx

    Brian Kukowski

Viewing 9 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic. Login to reply