I'm doing a big insert, a few hundred records into 4 related tables. I'm basically using a custom non-sql script to execute commands one at a time to do a bulk insert of data. So I run my script, which takes maybe 10 seconds, and then I view the data in the app that uses this database. Ok, all is well so far. So I use the app for a few minutes, and then suddenly the data is gone. The part that's killing me is that there is a delay where the data is there and available and even usable for exports, and then after some undetermined length of time later, it's gone.
The database is replicated between two servers, and I'm doing the insert into the subscriber. I have no tried insert into the publisher. But I do uploads like this all the time, but this one particular type of upload is especially prone to this problem. I really don't even know where to start. I read another thread on here that blame a bad trigger as the culprit, but I have never used triggers, aside from whatever is created by the replication setup wizard, and then of course I have never touched those.
It's just that delay that I can't wrap my head around. The data will be available for, literally, a few minutes, before it disappears. Any advice on where to start looking?
The database is replicated between two servers, and I'm doing the insert into the subscriber. I have no tried insert into the publisher. But I do uploads like this all the time, but this one particular type of upload is especially prone to this problem. I really don't even know where to start. I read another thread on here that blame a bad trigger as the culprit, but I have never used triggers, aside from whatever is created by the replication setup wizard, and then of course I have never touched those.
It's just that delay that I can't wrap my head around. The data will be available for, literally, a few minutes, before it disappears. Any advice on where to start looking?