Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. Problem with SQLDMO

Problem with SQLDMO

Scheduled Pinned Locked Moved Database
databasec++sql-serversysadminhelp
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    fabjoe
    wrote on last edited by
    #1

    I have a problem with SQLDMO, in my MFC Application I use DMO to restore/backup a SQL DB; when I specify a path that contains blank spaces DMO fail to perform the operation because the resulting path is a merge from my path and the default one. i.e. mypath = "D:\My Folder" resulting path =" C:\ProgramFiles\Microsoft SQL Server\.......\My Folder" Can anyone suggest me any possible solutions ? Thank you all!!!!

    A 1 Reply Last reply
    0
    • F fabjoe

      I have a problem with SQLDMO, in my MFC Application I use DMO to restore/backup a SQL DB; when I specify a path that contains blank spaces DMO fail to perform the operation because the resulting path is a merge from my path and the default one. i.e. mypath = "D:\My Folder" resulting path =" C:\ProgramFiles\Microsoft SQL Server\.......\My Folder" Can anyone suggest me any possible solutions ? Thank you all!!!!

      A Offline
      A Offline
      Antares686
      wrote on last edited by
      #2

      Please post you code example. Also if you are using the .RelocateFiles proterty of the SQLRestore method are you putting [] around the path data as required. Keep in mind this is a multipart string and requires the []'s. Is this by chance joecre from the CodeGuru boards?

      F 1 Reply Last reply
      0
      • A Antares686

        Please post you code example. Also if you are using the .RelocateFiles proterty of the SQLRestore method are you putting [] around the path data as required. Keep in mind this is a multipart string and requires the []'s. Is this by chance joecre from the CodeGuru boards?

        F Offline
        F Offline
        fabjoe
        wrote on last edited by
        #3

        Yes i am......thank you again

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups