Post by mcnewsxpwhat i need to do is update a bit column from null to zero before the
data hits my web pages. but i need to narrow the range of records based
on the select where clause of the records i need.
In the more general case, you will of course need to have an UPDATE
statement and a SELECT statement. UPDATE with OUTPUT will only work for you
in the case you want all data from the same table. If the condition for the
UPDATE and the SELECT are the same, it might be an idea to bounce data over
a temp table, and then use the temp table in the UPDATE.
--
Erland Sommarskog, SQL Server MVP, ***@sommarskog.se
Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx