Calling [sqlcmd] via PowerShell & Passing a Path like C:\Test\Test\ does not work?

Hi,
I'm using a PowerShell script to execute a custom.sql script.
If:
$PathToMdf = "C\TEST"
$PathToMdf = "C\TEST\"
The this line works:
&'sqlcmd' -v PathToMdf = "'$PathToMdf'" PathToLdf = "'$PathToLdf'" -S $server -d $masterDatabase -E -b -i $script_01
BUT
If:
$PathToMdf = "C:\TEST"
$PathToMdf = "C:\TEST\"
Then the line:
&'sqlcmd' -v PathToMdf = "'$PathToMdf'" PathToLdf = "'$PathToLdf'" -S $server -d $masterDatabase -E -b -i $script_01
crashes with this exception message:
Sqlcmd: ':'' : Invalid argument. Enter '-?' for help etc.
Why can I not pass in a parameter that contains ":" ?
I.W Coetzer

Simple way with PS, use `"
Sqlcmd -S $server -E -b -m 1 -i $script `
                 -v param_onech_version = `"$env:version`" `
                    param_emailoperator = `"$env:SQLAGENT_EMAILOP`" `
                    param_ownerlogin = `"$env:SQLAGENT_OWNER`" `
                    param_ssis_dtexec_path = `"$env:SSIS_DTEXEC_PATH`" `
                    param_ssis_packages_dir = `"$env:SSIS_PACKAGES_INSTALL_DIR`" `
                    param_ssis_config_dir = `"$env:SSIS_CONFIG_INSTALL_DIR`"

Similar Messages

  • No calls are going through or coming in, also my sms/mms does not work the only thing that seems to be working is mobile internet anyone help???

    No calls are going through or coming in, also my sms/mms does not work the only thing that seems to be working is mobile internet anyone help???
    When I try calling someone it beeps twice and says 'call failed' also when someone tries calling me it does not come through. Also SMS/MMS cannot be sent or recieved. Only mobile internet is working
    iPhone 5s
    ANYONE HELP???

    Restart your phone by holding the power and home button until the Apple logo appears. If that does not solve the issue contact your cell provider so they can resolve the issue.

  • How do I reject incoming calls on Ios7 when locked? Power button on top right does not work.

    How do I reject incoming calls on Ios7 when locked? Power button on top right does not work.

    I am also facing the same issues. Sometime i get an option to reject call and sometime i won't .
    Tried all the basic troubleshooting i could from my end but nogo. Also tried complete reset by loosing data still the same results. Any suggestions and fix, Apple ???

  • Using local file links like file://n:/path/filename.txt in Announcements does not work

    Hi all,
    I would like to use the SharePoint 2013 announcement web part for our company intranet. Basically this works fine. Now and then we have the need to include local file links into the body of the announcement, e.g. "Read this new Version of
    file x: link". When creating a new announcement I can insert a link like this:
    file:///n:/path/file.docx or similar.
    But as soon as I save the new announcement, the link is gone (href part is removed from the anchor).
    Is this behaviour per design? Can I change it to allow local file links inside of list columns?
    Thanks for your help,
    Nothi

    Hi Nothi,
    We can go to that particular existing announcement list(e.g. mine is Announcement1)->list settings page.
    1. then make sure the option "Allow management of content types? " is enabled from Advanced settings.
    2. then click "Annoucement" content type link (like image below).
    3. then click "Body" column link.
    4. then click "Edit column" link.
    5. then select "Rich text" option as above image showed, save the change.
    6. then you can test again in this particular announcement list, it should work.
    If you want make all announcement type lists could use link to network location in the furure, you can create a custom announcement content type with the Body column which has enabled this "Rich text" option, then use this
    custom announcement content type for those lists.
    Thanks
    Daniel Yang
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • My effects like exposure, tint, temp does not work

    I don't know if i click in a wrong place but when I go to develop and I try to use exposure, tint, temp etc in the  first part anything works, I would like to know if someone knows about it

    So, when you used the sliders, did you see corresponding entries in the edit history?
    If you save metadata (after using the sliders), then reset all settings, then re-read metadata, are the settings back the way they were before resetting?
    If so, then it's as Paige said - the photo is being edited, but somethings blocking either the rendering or the display of rendered image..
    If not, then there's where you gotta concentrate your efforts (or file a bug report and include pertinent info..).
    Is this always happening, with all photos?

  • Facebook chat, like or posting comments does not work

    Antime I try and post to my facebook page or anyone elses I click post and nothing happens. It also will not load chat at all.
    == URL of affected sites ==
    http://facebook.com

    Hello Dave.
    Although possibly not related to your problem, I have to remind you that the version of Firefox you are using at the moment has been discontinued and is no longer supported. On top of this, it has known unpatched bugs and security problems. I urge you to update to the latest version of Firefox, for maximum security, stability, performance and usability. You can get it for free, as always, at [http://www.getfirefox.com getfirefox.com].
    As for your issue, hopefully this support article is what you need:
    http://support.mozilla.com/en-US/kb/Websites+look+wrong
    In any case, it's possible that you are having a problem with some Firefox add-on that is hindering your Firefox's normal behavior. Have you tried disabling all add-ons (just to check), to see if Firefox goes back to normal?
    Whenever you have a problem with Firefox, whatever it is, you should make sure it's not caused by one (or more than one) of your installed add-ons, be it an extension, a theme or a plugin. To do that easily and cleanly, run Firefox in [http://support.mozilla.com/en-US/kb/Safe+Mode safe mode] (don't forget to select ''Disable all add-ons'' when you start safe mode). If the problem disappears, you know it's from an add-on. Disable them all in normal mode, and enable them one at a time until you find the source of the problem. See [http://support.mozilla.com/en-US/kb/Troubleshooting+extensions+and+themes this article] for information about troubleshooting extensions and themes and [https://support.mozilla.com/en-US/kb/Troubleshooting+plugins this one] for plugins.
    If you need support for one of your add-ons, you'll have to contact its author.
    If the problem is not disappears when all add-ons are disabled, please tell me, so we can work from there.

  • My iphone 6 connects to the car via bluetooth, the music works good, but the phone calles does not work.  It looks like it is working but doesn't.  I have tried in my Hyundai and a Dodge rent car and get the same results.  I updated the last 8.0.2.

    My iphone 6 connects to the car via bluetooth, the music works good, but the phone calls does not work.  It looks like it is working but doesn't.  I have tried in my Hyundai Sonata and a Dodge Dart rent car and get the same results.  I updated the last 8.0.2.  It worked the first day i had the phone, and then i updated to Ios 8.0.2 and it quit working.
    Now when i get in the car, it acts like it is connected and makes the same call it was on after syncing to bluetooth, but it really isn't on a call.  This is happening on both cars.
    Does anyone know if this is the phone and i need to take it to Apple or if there is an issue that Apple is working on getting a fix for?
    My son in law has the exact same phone as me, we both got the on 10/6, he had a Dodge Dart and his is working via bluetooth.
    Someone HELP please, as i consider this a safety issue by not having my calls go to bluetooth.

    We had the same problem, but figure out the solution.
    You MUST have at least 1 song added to your ITUNE!  After you add a free song, then everything else should work as normal!
    Hope this helps!

  • TS4185 Just downloaded FACETIME on my 4yr. olf Imac running Snow Leopard. When making a call to my friend's Imac all works correctly going both ways. When my wife calls me via Facetime from her Ipad, I cannot click on "accept"- not there?

    Just downloaded FACETIME on my 4yr. olf Imac running Snow Leopard. When making a call to my friend's Imac all works correctly going both ways. When my wife calls me via Facetime from her Ipad, I cannot click on "accept"- not there? When called by the Imac (newest), the "accept" or "reject" radio button appears for me to click and connect. On my wife's Ipad the two radio buttons always appear when a call actiivates Facetime and comes on?
    There is nothing I can find in "Preferences" in Facetime to turn that on or off. I suspect it has to do with having a more current operating system; that the "controls" are in the operating system? [I'm guessing] It's frustrating getting Facebook calls from several friends on Ipads! Any ideas...VFP

    I suspect it has to do with not having a more current operating system
    Exactly, what Apple is doing is leveraging new features only on newer OS X versions to force you to upgrade OS X to 10.7 or later.
    What they don't tell you is 10.7 or later will NOT run your PowerPC based software, some of it you can't get Intel versions like for perfectly working printers, scanners and games etc. So it can be a very expensive OS X upgrade to 10.7 or later with third party software.
    http://roaringapps.com/apps:table
    Also they don't tell you is the risk in bricking your machine if the update goes badly, so you have to have AppleCare in case that occurs so it's on them to fix it. Else your paying money to replace the logicboard or buying a new machine prematurely.
    A four year old machine can't have AppleCare, it's only good for 3 years from date of purchase new.
    Your machine came with a boot hard drive, it's usually got about 4-5 years of life on it, then it needs to be replaced.
    Also they don't tell you the newer OS X version has more abilities and features that causes your machine to slow down in performance, especially on older machines.
    Also they implement new, idotic and extremely fustrating new user interface features in a arbitrary "you take it or leave it" manner with little or no fall back method.
    So upgrading OS X is a gamble on older machines that otherwise would likely work perfectly fine for the next 5 years if one didn't need to have to mess with it.
    Since Snow Leopard has slightly over 25% OS X version market share, your still good for security updates etc for the next few years if you just want to stay where your at and be happy.
    OS X 10.4/10.5 need to upgrade, 10.6.8 ok still
    The Lions are, well, not so welcome due to Scott Forstall retard UI issues, OS X Mavericks 10.9 is likely going to fix things a bit better.
    But basically what is occuring is Apple is trying to force a faster hardware upgrade cycle with the more expensive products by leveraging features on the smaller devices that expire sooner.
    Apple is a hardware company that leverages whatever it can to get you to buy more hardware, it's why they are as rich as they are.

  • Negative (to inline a letter or to thin it) offset path does not work in Illus-CC 2014 (when preview is on- nothing happens). How can I get this to work like in previous versions.

    Negative (to inline a letter or to thin it) offset path does not work in Illus-CC 2014 (when preview is on- nothing happens). How can I get this to work like in previous versions.

    Thanks for your quick reply. I tried a number of different values. Usually when I do a negative offset they're very small values, like -.25 or -.5.
    An Update- I took the art work into Ai CS 6 and It still did not work, which is really strange. And I've used it hundreds of times with success in the past. Also I tried it with live type and outlines, ungrouped, un-compounded still could not get it to negative offset.
    Thanks for the help.

  • I called Verizon prior to travelling abroad and asked to turn roaming on. As of today, 4 days later, I have no service. I do not have a landline to call. GlobalServices email does not work... Does anybody know how to reach customer support via email?

    I called Verizon prior to travelling abroad and asked to turn roaming on. As of today, 4 days later, I have no service. I do not have a landline to call support. GlobalServices email does not work... Does anybody know how to reach customer support via email?

        Hi Florence2014
    I'm so sorry your having issues. Unfortunately there isn't an email for global support. The only way way to reach them while traveling is to call them at 908-559-4899.
    JoeL_VZW
    Follow us on Twitter @VZWSupport

  • I would like to connect my Ipad 2 wirelessly via 3G with a wireless rooter. The Ipad does not have a slot for a card, so it will have to connect to the rooter via bluetooth. Is this possible?

    I would like to connect my Ipad 2 wirelessly via 3G with a wireless rooter. The Ipad does not have a slot for a card, so it will have to connect to the rooter via bluetooth. Is this possible? If so, where can I buy such a rooter? Many thanks! Ina

    I'm not really understanding what you want. You mention all 3 types of connections: wireless, 3G and bluetooth, but I'm not clear on what you want to do. What the router is supposed to do, and why do you think it would need to connect via bluetooth?
    I'm thinking you want to buy a Mifi type device that will allow you to connect to a cellular network and then connect the iPad to that device via the Wifi network the Mifi produces.
    Is that so?

  • [Solved] Error : The file or folder path /Probl?me 1 does not exist

    Hello,
    I encountered this error
    The file or folder <path>/Probl?me 2 does not exist
    while I was trying to open a directory already extracted from a zip file containing directories with special characters. In this case, it is a "è" that was misinterpreted as a "?".
    I searched the forums and on google, the solutions proposed do not work for me. Although, I have to deal with these files written in french, I would like to have my locale in english (US), with a system wide support for special characters.
    Attempt 1: Adding the option : iocharset=utf8 into the fstab, like this :
    fstab :
    # /etc/fstab: static file system information
    # <file system> <dir> <type> <options> <dump> <pass>
    none /dev/pts devpts defaults 0 0
    none /dev/shm tmpfs defaults 0 0
    /dev/cdrom /media/cd auto ro,user,noauto,unhide 0 0
    /dev/dvd /media/dvd auto ro,user,noauto,unhide 0 0
    /dev/fd0 /media/fl auto user,noauto 0 0
    /dev/disk/by-uuid/24ba75ac-e52d-40eb-a599-83b394b500b2 /boot ext2 defaults 0 2
    /dev/disk/by-uuid/c797f409-00bc-479a-b4d6-ab49943f644b / ext4 defaults 0 1
    /dev/disk/by-uuid/668427a8-5f51-42bd-a316-fc7984bf5f4f /var ext4 defaults 0 2
    /dev/sda7 swap swap defaults 0 0
    /dev/disk/by-uuid/417cd1b7-8f06-414b-84d5-e8714d9646ab /home ext4 defaults 0 2
    /dev/disk/by-uuid/ef9aa00e-0515-4d7b-aa23-8096e787250d /usr ext4 defaults 0 2
    /dev/disk/by-uuid/17d401b7-2fc7-4d9f-8e17-657d86926d2e /tmp ext4 defaults,iocharset=utf8 0 0 <<<<<<<<<<<<<<
    /dev/disk/by-uuid/71e543b6-e06c-4b0e-b1e3-3b491ff1fefe /var/cache/pacman/repos ext4 defaults 0 2
    #/dev/sda12 /mnt/archive ext4 defaults 0 2
    #.host:/ /mnt/hgfs vmhgfs defaults 0 0
    This solution does not work, because after adding iocharset=utf8, in front or after a "defaults", after a reboot, while mounting the filesystem, there is the following error message:
    Mounting Locale Filesystem :
    mount: wrong fs type, bad option, bad superblock on /dev/sdb1,
    missing codepage or helper program, or other error
    In some cases useful info is found in syslog - try
    dmesg | tail or so
    $ dmesg | tail
    phy0: Selected rate control algorithm 'iwl-agn-rs'
    EXT4-fs (sda5): re-mounted. Opts: (null)
    EXT4-fs (sda5): re-mounted. Opts: (null)
    EXT4-fs (sda6): mounted filesystem with ordered data mode. Opts: (null)
    EXT4-fs (sda8): mounted filesystem with ordered data mode. Opts: (null)
    EXT4-fs (sda9): mounted filesystem with ordered data mode. Opts: (null)
    EXT4-fs (sda10): Unrecognized mount option "iocharset=utf8" or missing value <<<<<<<<<<<<<<
    EXT4-fs (sda11): mounted filesystem with ordered data mode. Opts: (null)
    Adding 2104476k swap on /dev/sda7. Priority:-1 extents:1 across:2104476k
    tg3 0000:07:00.0: irq 44 for MSI/MSI-X
    Attempt 2: Changing all the locale features in KDE and in /etc/rc.conf as well.
    $ vim /etc/rc.conf
    LOCALE="fr_CA.utf8"
    HARDWARECLOCK=""
    TIMEZONE="America/Montreal"
    KEYMAP="us"
    CONSOLEFONT=
    CONSOLEMAP=
    USECOLOR="yes"
    It is complicated to remove these directories. I had to use the inum to get precisely these directories before removing them.
    $ ls -il
    total 8
    1577566 drwxr-xr-x 2 [username] [username] 4096 28 jan 07:09 Probl?me 1
    1577573 drwxr-xr-x 2 [username] [username] 4096 28 jan 07:09 Probl?me 2
    $ find . -inum 1577566 -exec rm -i {} \;
    rm: impossible de supprimer « ./Probl\212me 1 »: est un dossier
    Note that the hypothetical character 'è' is represented has a '\212', a 'È' if seen as a extended ASCII character.
    These directories cannot be deleted this way :
    $ rm -r Problème\ 1
    rm: cannot remove `Problème 1': No such file or directory
    or
    $ rm -r ProblÈme\ 1
    rm: cannot remove `ProblÈme 1': No such file or directory
    What should I do to be make the operating system recognize those special character, and interpret them correctly ?
    Last edited by ramboman (2011-01-29 21:45:50)

    I found a working solution, but better solution are also welcome
    I had to have fr_CA not only in utf8 but also in iso88591. I had to modify the /etc/rc.conf this way :
    LOCALE="fr_CA" <<<<<<<<<<<<<<
    HARDWARECLOCK=""
    TIMEZONE="America/Montreal"
    KEYMAP="us"
    CONSOLEFONT=
    CONSOLEMAP=
    USECOLOR="yes"
    To preserve the english US language system wide, I had to add the following line in the /etc/profile :
    # Allow french special character while in en_US
    export LANG=en_US
    The character misinterpreted by a "?" is now seen :
    as a "è" in dolphin
    as a "?" in the console
    It is now possible to access the folders.

  • Subvi does not work properly when called inside a vi

    Hello Every body
    thanks for your help. i am using a sub vi for sine signal generation. as a vi it works fine. but when i called this subvi inside another VI it gives some problems. for example timer indicator works properly.it reinitializes as well in the sub vi, but in the main VI it does not work properly. means does not count the time.in the sub vi on the fly i can change the values of frequency and amplitude in real time, but when i use as sub vi, it does not reponse as i change the values in the control arrays.similarly pause and continue works properly in the sub vi, but once again in the main VI, it does not work properly.graph indicator also work properly in the sub vi. but here once again it does not work properly in the main VI.the pause resume indicator also does not blink, when it is continue. in the subvi it blinks very well.generally why the sub vi does not work properly inside the VI?i am sending my VI and sub vis.
    any tips would be highly appreciated.
    thanks
    Regards
    Attachments:
    vi.zip ‏87 KB

    I just want to add some more details to Dan's answer. The subVI is acting exactly like you've coded it. The mistake is in understanding how subVIs work. When you call a subVI (or a function in any other language), you pass some parameters to it, the subVI does it's thing and returns values. the subVI does not accept new parameters from the calling VI until it returns to the caller and the caller runs the subVI again. In your case, you have a subVI with a while loop. You have some front panel control wired to the subVI's stop terminal. When first called, the value is false. So the subVI will keep running until the subVI's stop button becomes true but you cannot change it from main until the subVI finishes and returns so the subVI will never stop. As Dan says, the solution is pass references of front panel controls to the subVI and have the subVI monitor those references for changes and to update references to indicators on Main. You subVI does not need any front panel controls or indicators of it's own.

  • CoreID Access: Passing obmygroups to HTTP-Headervariable does not work

    Hello,
    we want to pass the group membership of a user via headervariable to a web application. This works on a testing environment when configuring a action (headervar - HTTP_GRP - obmygroups) and the variables in the dads.conf (PlsqlCGIEnvironmentList HTTP_GRP).
    Now I configured the same on an other environment and there all variables gets filled to (like sn, cn, givenname...) but not the HTTP-GRP Variable. I have no idea why this does not work on the second environment. I tried to pass obuniqueid, and this works.
    How can I debug this problem? Does anybode has an idea what goes wrong?
    Regards
    hfr

    Hello,
    we want to pass the group membership of a user via headervariable to a web application. This works on a testing environment when configuring a action (headervar - HTTP_GRP - obmygroups) and the variables in the dads.conf (PlsqlCGIEnvironmentList HTTP_GRP).
    Now I configured the same on an other environment and there all variables gets filled to (like sn, cn, givenname...) but not the HTTP-GRP Variable. I have no idea why this does not work on the second environment. I tried to pass obuniqueid, and this works.
    How can I debug this problem? Does anybode has an idea what goes wrong?
    Regards
    hfr

  • Has anyone been able to contact Adobe to learn why their Flash Player does not work on Mac OS 10.6.8, no matter how many updates you install?  This seems like a big error by Adobe.

    I have thee Mac computers with Mac OS 10.6.8, one of which is a Mac Pro.  No matter how many updates I install from Adobe, their Flash Player does not work on any of these 3 computers.  I don't know how to contact Adobe Systems about this problem, but I think it is their responsibility to make sure that their so-called "universal" software works proplerly on a relatively recent operating system like OS 10.6.8 that is still in widespread use.  When you install the updates, nothing happens -- not even an error message.  What is the point of a universal player that is not universal?  It works fine on my MacBook Pro with OS 9 Mavericks, but it does not work at all -- indeed, has never worked -- on my 3 Macs with OS 10.6.8.  Has anyone contacted Adobe Systems to find out why the Flash Player does not work with OS 10.6.8 and what they plan to do about it?

    Where are you getting Flash from?
    Get the appropriate dmg installer here and then run it.
    http://www.adobe.com/products/flashplayer/distribution3.html
    If it still won't install, do these two things: First uninstall any Flash by going into the second level Hard Drive Library>Internet Plug-ins, and trash the Flash Player.plugin and flashplayer.xpt. Then boot into Safe Boot, Shift at the startup chime (give it much longer than a usual boot) and run the installer while booted in Safe Boot.

Maybe you are looking for

  • Creating ebook in InDesign 5.5?

    Hello I am searching an explanation for producing a ebook: I have InDesign 5.5 (Version 7.5): Is it possible to create an ebook (from PDF-files) which I could then upload to my Website...? Thanky for your answers!

  • Oracle 9i R2 on IBM AIX 5L v5.3

    hello... I need all the steps to install Oracle 9i Release 2 on AIX 5L v5.3 there is a problem with Java package. thanks a lot Esmelin.

  • Validation of PO / Transportations lane

    Hi My question is, is it possible to validate the PO and the validity of the transportations lane, not by the delivery date of the PO but validate the creation day instead, a lot of our purchased product have a lead time of more than ½ year, so it is

  • Upgrade Media list Ehp 4 or ECC 6.0 SR3

    Hello All, We are upgrading to ECC 6.0 with Ehp 4 and have ordered media from SAP. We have received upgrade master, upgrade export of Enhancement package 4 (i.e.) 51036889 and 51036903. Can we proceed with this or should we order for upgrade master a

  • MII proxy configuration not working

    Hello, there! We have an application that runs as an HTTP proxy. It should intercept messages sent from MII to another system (running on the same machine) via Web Services. I have configured MII ProxyHost and ProxyPort for MII, but it seems to be ig