how to store path in databse file

Hi All:
I'm trying to insert or update the logo file path in a database field. the syntax as following
update geninfo SET logo = "C:\logo.bmp";
its running Ok, but the value of this field='C:logo.bmp'.
where is the backslash??????
khaled salemSoftware DeveloperAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
jmcmunnConnect With a Mentor Commented:
Often, '\' is an escape character.  Have you tried doubling it up?

e.g. - C:\\logo.bmp
0
 
Sinisa VukCommented:
...from code:
...
sSQL := 'update geninfo SET logo ='+QuotedStr(sImgPath);
qry.SQL.Text := sSQL;
...

Open in new window

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.