INF: Assignment of Empty Results Set Does Not Set Variable
Article ID: 107561
Article Last Modified on 2/22/2005
APPLIES TO
- Microsoft Windows NT Advanced Server 3.1
- Microsoft Windows NT Server 3.5
- Microsoft Windows NT Server 3.51
- Microsoft Windows NT 3.51 Service Pack 2
- Microsoft Windows NT 3.51 Service Pack 5
- Microsoft Windows NT Server 4.0 Standard Edition
- Microsoft Windows NT 4.0 Service Pack 6
- Microsoft Windows NT 4.0 Service Pack 6a
- Microsoft Windows NT 4.0 Service Pack 4
- Microsoft Windows NT Workstation 3.1
- Microsoft Windows NT Workstation 3.5
- Microsoft Windows NT Workstation 3.51
- Microsoft Windows NT 3.51 Service Pack 2
- Microsoft Windows NT Workstation 3.51 SP5
- Microsoft Windows NT Workstation 4.0 Developer Edition
- Microsoft Windows NT Workstation 4.0 Developer Edition
- Microsoft Windows NT Workstation 4.0 Developer Edition
- Microsoft Windows NT Workstation 4.0 Developer Edition
- Microsoft SQL Server 4.21a Standard Edition
- Microsoft SQL Server 2000 Standard Edition
This article was previously published under Q107561
SUMMARY
If a local variable is set by the results of a SELECT statement which
returns no rows, the value currently stored in the local variable will
remain unchanged.
Additional query words: 4.20 Transact-SQL
Keywords: kbother KB107561