wanderer27
Platinum Member
I have a huge DB that I need to split up and recombine - it barely fits within the 2 GB capacity of Access.
There are a massive amount of duplicates that I need to clean up so I can make this DB available for further processing.
SELECT DISTINCT blows it past the 2 GB limit.
DIM and DECLARE (which I've seen from examples) won't work for some reason.
PARAMETERS [count] INT does seem to pass, but I can't use SET to initialize [count] 🙁
I'm trying to set up a loop where I can split out the file by Hours (even Months is too big) and then recombine it.
This is sort of what I'm shooting for within a loop:
SELECT DISTINCT * INTO NEWDB FROM
(
SELECT * FROM DB WHERE HOUR = [count]
)
Actually I'll need to do UPDATE or APPEND in rejoining, but I can't even get that far yet.
I can't use the VB functionality of Access, because ultimately this Query will be called from another program running SQL on another Computer and the VB stuff wouldn't fly.
Yeah, I could probably do this manually one Hour at a time, but I have several other upcoming DB's that are probably going to be in the same situation.
So can anyone point in the right direction on how to set up a counter variable in Access under these conditions?
TIA
There are a massive amount of duplicates that I need to clean up so I can make this DB available for further processing.
SELECT DISTINCT blows it past the 2 GB limit.
DIM and DECLARE (which I've seen from examples) won't work for some reason.
PARAMETERS [count] INT does seem to pass, but I can't use SET to initialize [count] 🙁
I'm trying to set up a loop where I can split out the file by Hours (even Months is too big) and then recombine it.
This is sort of what I'm shooting for within a loop:
SELECT DISTINCT * INTO NEWDB FROM
(
SELECT * FROM DB WHERE HOUR = [count]
)
Actually I'll need to do UPDATE or APPEND in rejoining, but I can't even get that far yet.
I can't use the VB functionality of Access, because ultimately this Query will be called from another program running SQL on another Computer and the VB stuff wouldn't fly.
Yeah, I could probably do this manually one Hour at a time, but I have several other upcoming DB's that are probably going to be in the same situation.
So can anyone point in the right direction on how to set up a counter variable in Access under these conditions?
TIA