funkkube
asked on
Anyone tell me what is wrong with this?
Hi
I have a strored procedure which part of it is as below..
It keeps syaing incorrect syntax...
ANyone tell me what is wrong?
insert into Details (FIeld naems etcc)
SELECT FIeld Names etc
FROM Another_Details left outer join users on aother_details.officer_id = users.attendant_id
Where ID = @KeyID and Registration_No >''
WHERE (Users.Account_Disabled = '0')
Obviously field names is jst a summary of the fileds in the table..
its the WHERE (Users.Account_Disabled = '0') bit which has caused the problem...
Cheers
Mat
I have a strored procedure which part of it is as below..
It keeps syaing incorrect syntax...
ANyone tell me what is wrong?
insert into Details (FIeld naems etcc)
SELECT FIeld Names etc
FROM Another_Details left outer join users on aother_details.officer_id = users.attendant_id
Where ID = @KeyID and Registration_No >''
WHERE (Users.Account_Disabled = '0')
Obviously field names is jst a summary of the fileds in the table..
its the WHERE (Users.Account_Disabled = '0') bit which has caused the problem...
Cheers
Mat
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
super thanks!
WHERE (Users.Account_Disabled = 0)
?