Viewing 3 posts - 1 through 3 (of 3 total)
You can avoid CTE by doing this to incorporate the row_number function in the where clause
select * from
(select ROW_NUMBER()OVER (ORDER BY column_order_by) as RowNbr,col_1,col_2
from inner_table with(nolock)) as outer_table
where RowNbr...
June 15, 2010 at 10:37 am
Step 1
Open SQL server --> Management --> Database Mail --> use the wizard to set up your SMTP server and database email profile [your DB email profile]
Step 2
Make sure you...
August 25, 2009 at 10:34 am
try along these lines .....
select * from Tname
where (Tcol1 = @X OR Tcol1 is null)
AND (Tcol2 = @Y OR Tcol2 is null)
---- OR -----
select * from Tname
where Tcol1...
June 16, 2009 at 10:47 am
Viewing 3 posts - 1 through 3 (of 3 total)