I am writing a dynamic query
[code=mysql]
insert into Tablename select '1111',
name,address,ph one,'1111', exec usp_storedProce dureName '1111', '1111', 'KA','EA'
from edi856Item
where autoid = '1111'[/code]I dont know why I am getting this error i think there is some syntax error:
Msg 156, Level 15, State 1, Line 3
Incorrect syntax near the keyword 'exec'.
Msg 156, Level 15, State 1, Line 5
Incorrect syntax near the keyword 'from'.
Can anyone help please
[code=mysql]
insert into Tablename select '1111',
name,address,ph one,'1111', exec usp_storedProce dureName '1111', '1111', 'KA','EA'
from edi856Item
where autoid = '1111'[/code]I dont know why I am getting this error i think there is some syntax error:
Msg 156, Level 15, State 1, Line 3
Incorrect syntax near the keyword 'exec'.
Msg 156, Level 15, State 1, Line 5
Incorrect syntax near the keyword 'from'.
Can anyone help please
Comment