Chris McMahon wrote:

>Hi...
>Can anyone suggest the proper way to escape the backslashes in the
>directory name in the following script?
>
>
>d = c.run("ALTER DATABASE fooDB MODIFY FILE (NAME = foo_log, FILENAME =
>'C:\\Program Files\Microsoft SQL
>Server\MSSQL\fooPlus\fooPlus_log.LDF'")
>
>The obvious solutions yield either "Incorrect syntax..." or "Invalid
>escape character syntax" messages.  
>
>Thanks...
>-CHris
>
>
>  
>
Four backslashes should work. Wildly guessing only.