Quantcast
Channel: SQL Server High Availability and Disaster Recovery forum
Viewing all articles
Browse latest Browse all 4689

SQL Server Problems and Questions from an SQL dummy

$
0
0

I am an SQL Dummy!

In the old 2008 version of SQL I had to run a script to fix a rounding error in my Microsoft Accounting software (no longer supported)  I think I have version 10 now?

 

SQL FIX for Fiscal Year won't close


 

Need to use Sql Management Studio (as oppose to more obscure osql.exe)

to run sql script

b) Use Sql Management Studio to execute script below:

SELECT *

FROM dbo.CashPostingTable

WHERE (amountcredit <> amountCreditCompanyCurrency OR amountDebit <>

amountDebitCompanyCurrency) AND exchangeRate=100

If you get any rows/data back, proceed to step c), if no result, a more

serious problem - good lucks or buy help.

c) Use Sql Management Studio to execute script below:

UPDATE cashpostingtable

SET amountCreditCompanyCurrency = amountCredit,

amountDebitCompanyCurrency = amountDebit,

companyAmountRemainder = accountAmountRemainder

WHERE (amountcredit <> amountCreditCompanyCurrency OR amountDebit <>

amountDebitCompanyCurrency) AND exchangeRate=100

Management Studio no longer works.  Is there a way to do the same thing in the version I have?

Thank you,

Dean


Viewing all articles
Browse latest Browse all 4689

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>