SQL0107S scope mismatch

The scope of a variable is ambiguous. Check to make sure only one variable is visible to a section with the same name.
Restriction: This topic applies to Windows environments only.