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).
 
Back
Top