Quantcast
Channel: issue with @@rowcount
Browsing all 6 articles
Browse latest View live

issue with @@rowcount

   SELECT @A = (SELECT A FROM tab WHERE 1=1)   IF @@ROWCOUNT = 0The above is not good coding in T-SQL. It will error out for more than a single value return. @a local variable cannot be assigned a set...

View Article



issue with @@rowcount

why in both the occassion it is printing the same out put, could you plz tell me how to check this SELECT A FROM tab WHERE 1=1 then I want to print 'PERFORM OTHER ACTION'SELECT A FROM tab WHERE 1=2...

View Article

issue with @@rowcount

Thanks to both of you,I converting oracle code to sqlserver one, I found the situations where in Oracle we have, can you please help me in implementing the below code in sqlserver, as I was more...

View Article

issue with @@rowcount

Hello ,You can achieve this by using this Code tooDeclare @i int Select @i=(Select count(*) from #Tab where A=1) -- your coundition will go here , even you can pass a variable value Where A=@inputvalue...

View Article

issue with @@rowcount

Hello, You did not mention ELSE that is why you are getting the same resultsplease check thisDECLARE @A int BEGIN SELECT @A = (SELECT A FROM #tab WHERE A=1) IF @@ROWCOUNT = 0 BEGIN PRINT 'no data...

View Article


issue with @@rowcount

why in both the occassion it is printing the same out put, could you plz tell me how to check this SELECT A FROM tab WHERE 1=1 then I want to print 'PERFORM OTHER ACTION'SELECT A FROM tab WHERE 1=2...

View Article
Browsing all 6 articles
Browse latest View live




Latest Images