I have Completed MySQL Simple Query,
SELECT
acc_trans.VoucherNumber,
acc_trans.EntryDate,
acc_trans.Debit,
acc_trans.Credit,
@Balance:= round(@Balance,2) + acc_trans.Debit - acc_trans.Credit AS Balance
FROM acc_trans, (SELECT @Balance := 0) AS variableInit Where AccountName='Cash Account'
ORDER BY acc_trans.TransactionID ASC
output
VoucherNumber EntryDate Debit Credit Balance
-------------------------------------------------------------
1 2019-01-12 0.00 2500.00 -2500.00
2 2019-02-12 0.00 15000.00 -17500.00
3 2019-02-12 0.00 1500.00 -19000.00
1 2019-02-12 4800.00 0.00 -14200.00
This Query Working Good MySQL Database. I have Same Database with SQL Server. How to Do this Query in SQL Server?