RogerCruse
MIS
Hi,
All our tables are accessed & updated via views. This means that I can reorganise the databases and keep the backups balanced, etc.
And I've created a stored procedure to COLLECT STATS on the underlying table (the viewname is passed through as a parameter).
This has been working well for the past six months until now...
It seems that, if two batch processes (that have different defaul databases) are using the stored procedure at the same time, one of the processes gets confused about it's default database and fails with a access problem.
If these processes run one at a time, there isn't an issue.
Does this sound familar to anyone?
Have I missed something about stored procedures or is the a bug?
Roger...
All our tables are accessed & updated via views. This means that I can reorganise the databases and keep the backups balanced, etc.
And I've created a stored procedure to COLLECT STATS on the underlying table (the viewname is passed through as a parameter).
This has been working well for the past six months until now...
It seems that, if two batch processes (that have different defaul databases) are using the stored procedure at the same time, one of the processes gets confused about it's default database and fails with a access problem.
If these processes run one at a time, there isn't an issue.
Does this sound familar to anyone?
Have I missed something about stored procedures or is the a bug?
Roger...