Quantcast
Channel: Forum SQL Server Database Engine
Viewing all articles
Browse latest Browse all 15889

looking for DB Design solution..

$
0
0

Hi,

Here is the situation:

We had pretty old product suite.  It has many applications( with separate databases), all these application will communicate with windows services for data.  And this product have the interfaces to get the data or provide the data to third party applications. Note : this product doesn't have the data archive mechanism.

Say application App1, has testDb database and it has one view.

Say view name is TestView and it refers the tables TestView0, TestView1...TestView9.  These <0-9> tables has one of the columns name is TransID with Int data type.  As there is no data archive mechanism, TestView<0-9> table's TransId column reaches the Int datatype limit and transactions are failing. we found one workaround and fixed the problem for time being.

we are discussing about solutions to fix this problem permanently:

One solution we are thinking, trying to change the Int type column to BigInt, but it leads lot of work to change the client applications,reports and so many stored procedures and third party applications interfaces also needs to be changed. 

second solution, as TransId is integer type, use the integer values from negative number too. i.e   -integer Max....0.... +IntegerMAx. But we need to do some analysis on this.

anybody have any idea ? which solves this problem with less changes and testing.

Thanks,


Viewing all articles
Browse latest Browse all 15889

Trending Articles



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