Slash problem in SQL

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I execute:
cmd.CommandText = "INSERT INTO drawings (drawings_path) VALUES
('p:\\E-Switch Secure\\PDF_dwgs\\B-FILE\\B010002D_SHT1.pdf')";
cmd.ExecuteNonQuery();
The result is
21249 p:E-Switch SecurePDF_dwgsB-FILEB010002D_SHT1.pdf

Why did my slashes disappeared?
 
I don't want to solve the wrong problem.
All I need is a references to the file system. It seems like I need to
double my slashes when saving them in MySQL. (sometimes I have to use
whatever database the customer has).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top