Viewing 15 posts - 46 through 60 (of 93 total)
I have never used updadate statement in this format. Should have looked up BOL. Thanks.
March 2, 2006 at 2:31 pm
No thanks. This should do.
March 1, 2006 at 8:43 am
Like in a seperate select statement. Like
SELECT * FROM products WHERE categoryid = 1
SELECT * FROM products WHERE categoryid = 2
To use it in ASP.Net like this, DataReader.NextResult().
February 28, 2006 at 5:04 pm
You mean like this
EXEC ('SELECT * FROM users WHERE...some conditions...INTO @usertable')
This is the error I get Incorrect syntax near the keyword 'into'. The select statement is built dynamically with some...
February 15, 2006 at 4:29 pm
The table is always the same, I know which table to query. Only the where clause changes based on some parameters.
February 14, 2006 at 2:21 pm
No, its not just a row count. The dynamic sql has some where conditions 'SELECT COUNT(*) FROM table1 WHERE...'
May be I can execute the sql and pass the count as...
February 14, 2006 at 10:54 am
This is what I initially thought of. Its part of a big stored procedure. I am just curious if I can do it in one statement, to reduce the clutter....
February 9, 2006 at 2:06 pm
No but I still want to update the detail even if the price is null. I think the above statement either updates both detail and price or updates neither.
February 9, 2006 at 1:56 pm
I am sorry I had 'self join' in the title. It doesn't matter whether it is a self join, I just want the correct results.
January 20, 2006 at 12:38 pm
Well, the result cannot be more than 40,000, no matter how many users has how many records. I am not sure I explained myself clearly. The total records in the...
January 20, 2006 at 10:58 am
It is not returning correct results. There is 40,000+ records in the table, the query returns 180,000+ records.
January 20, 2006 at 10:31 am
Viewing 15 posts - 46 through 60 (of 93 total)