TariqMehmod
Programmer
Sir I have these codes
[pre]
db1='xyz'
file_name='E:\HOURLY\at20\20190901_1159'
if m.con1>0
TEXT TO cmd noshow
backup database <<db1>> to disk='<<file_name\db1..bak>>'
endtext
if sqlexec(m.con1,cmd)<0
aerror(laerror)
messagebox(laerror[1,2])
return.f.
ENDIF[/pre]
It says:
Connectivity error: [Microsoft][ODBC SQL Server Driver][SQL Server]Incorrect syntax near '&'.
Please help me to sort out the error message
[pre]
db1='xyz'
file_name='E:\HOURLY\at20\20190901_1159'
if m.con1>0
TEXT TO cmd noshow
backup database <<db1>> to disk='<<file_name\db1..bak>>'
endtext
if sqlexec(m.con1,cmd)<0
aerror(laerror)
messagebox(laerror[1,2])
return.f.
ENDIF[/pre]
It says:
Connectivity error: [Microsoft][ODBC SQL Server Driver][SQL Server]Incorrect syntax near '&'.
Please help me to sort out the error message