When Hard-coded server name and data base name are replaced with variables , execute process task does not produce the result

Hi All,
I am trying to load shape file into a sql spatial table. A execution process task is used to run the ogr2ogr.exe program.
This is how the process tab looks like .
Executable : C:\gdal_ogr2ogr\bin\gdal\apps\ogr2ogr.exe
Argument :  -f MSSQLSpatial   MSSQL:server=SQL-ABC-DEV;database=MYSIMPLE_Dev;Trusted_Connection=True;\\mypath\files\shares\Data\www.mypage.htm\my_sample_file.shp
Success value : 1
For above settings, package runs fine. The spatial table is created in SQL server db. However when hard-coded SQL server name and database name are replaced with global variables , the spatial table is not created in the database. Yet the package runs fine.
It does not throw any errors. (I am using another variable for full file path. It is not causing any errors though)
" -f MSSQLSpatial   MSSQL:server="+@[$Project::SQLServerName]+";database="+ @[$Project::DatabaseName] +";Trusted_Connection=True;"+ @[User::Filepath] + "\\my_sample_file.shp"
Both variables are string type. Can anyone tell me what I am doing wrong here please?
I am running this in VS 2012.
Thanks for your help in advance..
shamen

There should be a single space just after True:
before
" -f MSSQLSpatial   MSSQL:server="+@[$Project::SQLServerName]+";database="+ @[$Project::DatabaseName] +";Trusted_Connection=True;"+ @[User::Filepath] + "\\my_sample_file.shp"
after keeping the space
" -f MSSQLSpatial   MSSQL:server="+@[$Project::SQLServerName]+";database="+ @[$Project::DatabaseName] +";Trusted_Connection=True; "+ @[User::Filepath] + "\\my_sample_file.shp"
Thanks
shamen

Similar Messages

  • TS1538 ipad does not come on once its unpluged from power source,it enters recovery mode when both power and home botton are pressed with usb on powersource but does not come up at all when connected to computer or out of power source

    ipad does not come on once its unpluged from power source,it enters recovery mode when both power and home botton are pressed with usb on powersource but does not come up at all when connected to computer or out of power source

    What model iPad do you have? If it's an iPad 1, the battery may have expired and needs replacement.
     Cheers, Tom

  • Execute SQL Task does not Update from a Date Variable Reliably

    I'm using a DateTime variable in SSIS 2008 that is used to set the SQLStatement property of an Execute SQL Task.
    "DELETE FROM Labor WHERE Week = '" + (DT_WSTR, 100) @[User::Week] + "'"
    Week is the next Sunday:
    DATEADD( "day", @[User::DaysTillSunday] , @[User::TheDayThatIsTwentyMinutesPrior] )
    DaysTillSunday:
    DATEPART( "dw", @[User::TheDayThatIsTwentyMinutesPrior] ) == 1 ? 0 : 8 - DATEPART( "dw", @[User::TheDayThatIsTwentyMinutesPrior] )
    TheDayThatIsTwentyMinutesPrior:
    (DT_DATE)(DT_DBDATE)DATEADD("minute",-20,GETDATE())
    The SSIS Package deletes the current week's data, reloads it with fresh data, then calculates the difference between the current week and last week.
    The problem is that randomly, instead of deleting the current week, it will delete the previous week.  This happens maybe 5-10% of the time.  At least it does until I rebuild the package and import it into SQL Server again.
    I'm guessing that the Execute SQL Task is not updating the value of the Week variable before it executes.  I started with the source type being a variable.  Then I decided to try Direct input and pass in the Week as a parameter (OLE DB Connection
    Type).  That didn't work either.
    Most recently I tried writing the Week variable to a table first, then having a sequence container with all the tasks second.  Slightly better but I still saw the date was wrong 2 times in about 90 executions.  I was hoping that writing the Week
    variable out to the database would force an update of any associated connections to it, but that didn't seem to work.
    Any ideas?  Is this a known issue, am I missing a setting?
    thanks,
    John

    John, computers either work all the time or have a bug. I suspect it is the latter.
    To find it [faster] you need to log what the resulting expression was used in the package.
    I am baffled how rebuilding a package would fix anything like setting a date.
    It might be even dependant on when you run the package.
    Why
    DATEADD("minute",-20,GETDATE())
    DATEADD( "day", -8 , GETDATE() )
    It must be enough to set the week (that appears to be a date) as above.
    Arthur
    MyBlog
    Twitter

  • When i try to look at my pictures on my iphone horizontally instead of vertically it does not flip the pictures sideways anymore - any suggestions?

    when i try to look at my pictures on my iphone horizontally instead of vertically it does not flip the pictures sideways anymore - any suggestions?

    This is written for the iPad but the same applies to iPhones
    Rotate iPad so the display is in the desired orientation.
    Double-click the Home button to display recently used apps.
    Flick from left to right along the bottom of the screen.
    Tap the Screen Rotation Lock button on the bottom left of the screen.
    A padlock will appear in the Screen Rotation Lock button.
    A small Screen Rotation Lock icon appears in the status bar until you disable Screen Rotation Lock:

  • Right click with mouse in Word 2013 does not give the list with translate and synonyms etc

    since i upgraded to windows 8.1 right click on words in word 2013 does not open the regular list where you can tap on synonyms and translate. 
    it does work if i touch the screen.
    i moved to mouse mode but it does not help 
    can anyone help...
    i am starting to hate windows 8.1 and word 2013 because of this feature not working

    Hi
    I have tested in my computer and it worked well.
    Normally when we type a wrong spelling, right clicking the word does not give a list with translate and synonyms.
    Check to make sure your spelling is right.
    if the issue persists, Start Word in safe mode to check the issue:Hold "Ctrl" key and click into the program.
    It is also recommended that you do a repair for your Office suites in
    Control panel>Program and features>Office>Change>Repair
    Thanks
    Tylor Wang
    TechNet Community Support

  • Copy File name and Date only from a Folder with SSIS

    Hello all,
    I need to create a package which will list the file names and the dates in a folder, these files are blank flat files. After extracting the file names from the file path i need to create a table which will have two columns Filename and
    Date.We get about 1000 such files every month and we are looking to maintain them in a table.
    Is this possible? Can someone point me in the right direction? 
    FM

    Arthur , I actually figured it out. The For each container let me pass thru the file name, then I inserted the file name into my staging table. I created a FilePath variable and basically Did a sql task and
    INSERT INTO MyTable
    SELECT Filename = ?,
    LoadDate = GetDate()
    In my for each loop I added a *.*txt qualifier... I`ve tested and works well... Got what I needed.
    FM

  • HT3180 I owned an Apple tv and after upgrade my internet to higher speed my Apple Tv  does not work the only message that show on the screen said if time and dates are not found go to apple/support/tv tried almost everything and nothing.  Please somebody

    I owned an Apple Tv and since I upgrade my internet to higher speed my Apple Tv does not work. Please someone help.

    In most scenarios you shouldn't need to forward ports, however if you need to, you may be best contacting your ISP.
    As with most router issues, I would recommend that you contact your ISP with details of your problem (assuming that it was your ISP that provided it to you).
    There are simply too many manufacturers with different software features and settings and often different names for such features and settings, that the best advice will likely come from those that are knowledgeable about your particular router.
    Make sure your router/computer allows access over the following ports
    Port
    Type
    Protocol
    Used By
    53
    TCP/UDP
    DNS
    DNS
    80
    TCP
    HTTP
    AirPlay, iTunes Store
    123
    TCP/UDP
    NTP
    Network Time
    443
    TCP
    HTTPS
    AirPlay, PhotoStream, iTunes Store
    554
    TCP/UDP
    RTSP
    AirPlay
    1900
    UDP
    SSDP
    Bonjour
    3689
    TCP
    DAAP
    iTunes, AirPlay, HomeSharing
    5297
    TCP
    Bonjour
    5298
    TCP/UDP
    Bonjour
    5350
    UDP
    NAT
    Bonjour
    5351
    UDP
    NAT
    Bonjour
    5353
    TCP/UDP
    MDNS
    Bonjour, AirPlay, HomeSharing
    8000-8999
    TCP
    iTunes Radio Streams
    42000-42999
    TCP
    iTunes Radio Streams
    49159
    UDP
    MDNS (Win)
    Bonjour, AirPlay
    49163
    UDP
    MDNS (Win)
    Bonjour, AirPlay
    The following article(s) may help you.
    Troubleshooting Home Sharing
    Troubleshooting Wi-Fi networks and connections
    Recommended Wi-Fi settings

  • HT1449 When I try to organize and consolidate my libary, I get a message saying that I do not have the priviledge to change files.

    I am trying to move my itunes library from my macbook air to a new windows 8 computer.  I changed the location for the media file, then tried to organize and consolidate the itune library files.  I got a message that I do not have the priviledge to change the files.  How do I resolve that?

    http://support.apple.com/kb/TS2690?viewlocale=en_US&locale=en_US

  • Mult accounts and since I upgrade to 15 fire fox. I can not use. my family We can not open accounts with : multifox 1.3.3 does not work the second person .

    hello,
    I have 2 lab tops.. and have family members that use them.. I used to have FB open with mult family members accounts. Ad of today you updated to firefox 15..
    Now when I go to use multifox 1.3.3 ( that is so you can have mult accounts open. ) .. if trying to go into Fb none of the features work. now since I have upgrade. it use to work fine.
    So, the new FF does not work would like to unistall and go back to the old FF.. where I, can have mult accounts open at the same time and have the funcation work when your on the mult account in FB... Like talk to some one in FB chat. or just look at other items in the accounts.
    if you can tell me how to fix this or can you please give me the old link back.. or tell me how to get the old link back instead of 15.. Because 15 does not work.
    Thanks

    Install or Reinstall OS X from Scratch
    Be sure you backup your files to an external drive or second internal drive because the following procedure will remove everything from the hard drive.
    Boot to the Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    Erase the hard drive:
      1. Select Disk Utility from the main menu and click on the Continue button.
      2. After DU loads select your startup volume (usually Macintosh HD) from the
          left side list. Click on the Erase tab in the DU main window.
      3. Set the format type to Mac OS Extended (Journaled.) Optionally, click on
          the Security button and set the Zero Data option to one-pass. Click on
          the Erase button and wait until the process has completed.
      4. Quit DU and return to the main menu.
    Reinstall OS X: Select Reinstall OS X and click on the Install button.
    Note: You will need an active Internet connection. I suggest using Ethernet if possible
               because it is three times faster than wireless.

  • TS1398 My ipad is connected to the wi-fi and i can it thruogh my apps but my notifications bar does not show the icon and unable to download apps from app store

    I have an ipad 3 wifi+cellular,recently my ipad though connected to the wi-fi stopped showing the wi-fi icon on the top bar.I can use the internet on safari and other apps,but unable to download apps from store

    Are you sure that your iPad is connected to WiFi? It may be using cellular data.
    Go to Settings > WiFi and see if you are connected.

  • Ads have taken over my FireFox. When I go to Drudge report the left and right colums are replace with ads. I have tried going to the AdChoice site to opt out

    In addition to the Drudge problem when I go to some sites I get sent to an ad and can't load the site at all. This doesn't Happen one IE 9. I am using Fire Fox 16.0.1

    Do a malware check with some malware scanning programs on the Windows computer.<br />
    You need to scan with all programs because each program detects different malware.<br />
    Make sure that you update each program to get the latest version of their databases before doing a scan.
    *http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
    *http://www.superantispyware.com/ - SuperAntispyware
    *http://www.microsoft.com/security/scanner/en-us/default.aspx - Microsoft Safety Scanner
    *http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
    *http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
    You can also do a check for a rootkit infection with TDSSKiller.
    *http://support.kaspersky.com/viruses/solutions?qid=208280684
    See also:
    *"Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked

  • I am getting a java error when Mozilla is first started and pop-up windows are opened. It only happens in Mozilla not IE

    see question above. Running 4.0.1 but get error Typeerror: Components.classes{cid} in undefined

    michaeleen, you can fix this with a clean install of Firefox:
    1. Download the Firefox installer from [http://www.mozilla.com/products/download.html?product=firefox-3.6.7&os=win&lang=en-US this direct link] and save it to your desktop or other location.
    2. Make sure that Firefox is closed completely
    3. Delete the Firefox installation directory (On Windows, this is typically the C:\Program Files\Mozilla Firefox folder that contains "firefox.exe" and other Firefox program files and folders).
    4. Reinstall Firefox by running the installer you downloaded previously.
    Your personal settings, including bookmarks and history, will not be lost.
    See http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Clean_reinstall

  • When sending emails with cc copy recipients, header does not show the cc copy email adds it was sent, but, messages are received by all. whats wrong?

    Our office email add experiencing this problem just the other day. Our email hosting provider havent found the solution yet despite my frequent follow ups.
    Our business partners in Malaysia are already complaining because, suddenly email heading formats changed. Emails they receive from us (we are using the orange outlook express and mozilla thunderbird) when received by them, doesnt show the Cc addresses to whom we sent the email to. But, it is confirmed being received by all, their email adds appearing only in "To:". They are now confused, thinking that we are not cc copying all concerned parties in our emails but in fact we are. We have done test messages and still same problem exists. Hope anyone could help. Thanks in advance!

    Confirm your headers are correct:
    when you view a 'Sent' email in Sent folder
    It shows headers TO and CC with email addresses
    When you click on 'Other Actions' and select 'View source'
    It says something like this:
    '''From - date here'''
    X-Mozilla-Status: 0001
    X-Mozilla-Status2: 00800000
    X-Mozilla-Keys:
    Message-ID: info
    '''Date: date here'''
    '''From: sending email address'''
    User-Agent:...Thunderbird/31.4.0
    MIME-Version: 1.0
    '''To: email address'''
    '''CC: email address'''
    '''Subject: subject title here'''

  • I'm getting an Error mesage 148:3 when opening Premiere Pro CS4 it's telling me I have to restart computer.  This does not solve the problem however.  Working on a PC.

    This message came out of the blue.  I have made no changes to my computer or Premiere Pro.

    I have had a similar problem with my system. I just recently (within a week of this post) built a brand new desktop. I installed Windows 7 64-bit Home and had a clean install, no problems. Using IE downloaded an anti-virus program, and then, because it was the latest version, downloaded and installed Firefox 4.0. As I began to search the internet for other programs to install after about maybe 10-15 minutes my computer crashes. Blank screen (yet monitor was still receiving a signal from computer) and completely frozen (couldn't even change the caps and num lock on keyboard). I thought I perhaps forgot to reboot after an update so I did a manual reboot and it started up fine.
    When ever I got on the internet (still using firefox) it would crash after anywhere between 5-15 minutes. Since I've had good experience with FF in the past I thought it must be either the drivers or a hardware problem. So in-between crashes I updated all the drivers. Still had the same problem. Took the computer to a friend who knows more about computers than I do, made sure all the drivers were updated, same problem. We thought that it might be a hardware problem (bad video card, chipset, overheating issues, etc.), but after my friend played around with my computer for a day he found that when he didn't start FF at all it worked fine, even after watching a movie, or going through a playlist on Youtube.
    At the time of this posting I'm going to try to uninstall FF 4.0 and download and install FF 3.6.16 which is currently on my laptop and works like a dream. Hopefully that will do the trick, because I love using FF and would hate to have to switch to another browser. Hopefully Mozilla will work out the kinks with FF 4 so I can continue to use it.
    I apologize for the lengthy post. Any feedback would be appreciated, but is not necessary. I will try and post back after I try FF 3.16.6.

  • Collage Screensaver - names and dates don't show up

    In the collage setting of Screensaver, the photo dates and names don't show up, even though I selected the option to include them. I could not figure this out, so took it to the Genius Bar. After about 20 minutes of trying this and that, he rebuilt the cache, and voila - the names and dates were there. I shut it off, took it home, turned in on - same problem. So I rebuilt the thumbnails. Nothing. Cannot get the names and dates to show. Seems like a silly little problem, but I love the collage; and when the pictures come up, I'd like to be reminded of what year they were taken!
    Thank you if you've had this problem and figured it out!

    Went back to the Genius Bar today, and he reinstalled Leopard. That did it! Thanks to my Genius for not making me feel silly for caring so much about a label for my pictures!

Maybe you are looking for