I'm new bee and need help
I'm trying to write store proc
but getting error here is what I'm trying to do
any help would be great
SELECT Import_Date, FileName as Import_File, DeletedDateTime
ErrorLine, ErrorsDetected, Notes,DELETED
FROM tblimporterrors
WHERE customerid = @customerid
AND ImportDate Between @startDate and @endDate
If @deleteonly = 1
BEGIN
DELETED = 1
END
I'm trying to write store proc
but getting error here is what I'm trying to do
any help would be great
SELECT Import_Date, FileName as Import_File, DeletedDateTime
ErrorLine, ErrorsDetected, Notes,DELETED
FROM tblimporterrors
WHERE customerid = @customerid
AND ImportDate Between @startDate and @endDate
If @deleteonly = 1
BEGIN
DELETED = 1
END