Quantcast
Channel: looks like @@rowcount issue ?
Browsing all 4 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

looks like @@rowcount issue ?

Hi NevadaVegas,If there is no record meets WHERE PlayerID= ' + STR(@@nPlayerID)  in table “@tblName”, we will get @iRowCount value as '0'. I tested the following codes with AdventureWorks2012 database,...

View Article



looks like @@rowcount issue ?

thanks for the reply..looks to  be i didn't understand properly... just tested one sample procedure and looks to be working fine..am i missing anything ? create procedure test123 as begin declare...

View Article

looks like @@rowcount issue ?

Is there any chance @iRowCount could be '0' even the record got updated in @tblName table ?Hello,You are using dynamic SQL which is executed in a different session; in your current session you can't...

View Article

looks like @@rowcount issue ?

I have a dynamic query like :SET @strSQL =    ' UPDATE ' + LTRIM(@tblName) + ' SET Amount= ISNULL(Amount,0) + ' + CAST(ISNULL(@@dAmount,0) AS CHAR(50)) + ',ChangeDate =  GETDATE()   WHERE PlayerID= ' +...

View Article
Browsing all 4 articles
Browse latest View live




Latest Images