Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Problem with SQLDMO with a path that contains blank spaces

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2003-02-25 : 07:35:46
fabjoe writes "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!!!!"

nr
SQLTeam MVY

12543 Posts

Posted - 2003-02-25 : 09:23:32
try putting double quotes round the dirs

C:\ProgramFiles\"Microsoft SQL Server"\.......\"My Folder"

Or double double quotes as you have a string delimitted by quotes

"C:\ProgramFiles\""Microsoft SQL Server""\.......\""My Folder"""


==========================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page
   

- Advertisement -