Dear Sir,
I'm using SQLserver 2008 and I have a below mentioned Query working successfully, now my requirement is I want to execute the same code in vb.net (Visual Studio 2010) it is a update Table command so how to convert and run in vb.net
Please please help me to solve it.Code:DECLARE @Rt int SET @Rt = 0 UPDATE DB.dbo.Sales SET @Rt = Total = @Rt + Area1 + Area2 FROM DB.dbo.Sales
Thanks in advance.




Reply With Quote
