Thanks for the reply , in the event , I ended up , doing the RESTORE option, which to my surprise worked
Jack Vamvas
All the IT jobs in one place - http://www.ITjobfeed.com
Normally , I have a script that queries the DB2 elements and then generating the REORG TABLE / INDEX statements
Jack Vamvas
All the IT jobs in one place - http://www.ITjobfeed.com
If you use TABLOCKX - this will place an exclusive lock on the table. Keep in mind , this will disallow anyone else to read or update
Jack Vamvas
All the IT jobs in one place - http://www.ITjobfeed.com
We've got a Primary and Secondary Server (as a standby currently in Read Only mode ) on a Log Shipping set up.
For the last week the TRN files have been backed up and moved across to the
Secondary Server - but I've discovered they haven't been restoring.
In other words , I have a bunch of TRN...
The issue is how you use the If statement , the ELSE statement needs to be investigated
If exch = 01
delete from CBOTPrelim where CBOTPrelim.FirmNumber = @sFirm and CBOTPrelim.YearMonth = @ymprev
If exch = 02
delete from CMEPrelim where CMEPrelim.FirmNumber = @sFirm and CMEPrelim.YearMonth...
More steps occur in using temp tables rather than derived table.
A derived table is a sort of Select statement within another Select statement and manages to complete it's tasks within memory,
The temp tables requires disk action
Jack Vamvas
All the IT jobs in one place -...
Break the query down into parts via the Execution plan and monitor if there are any scans which may be slowing things down.
Also are there functions which could be causing this situation?
Jack Vamvas
All the IT jobs in one place - http://www.ITjobfeed.com
What's your backup strategy?
Are you doing auditing?
How will trap/handle errors?
1000 people adding 1 record a day , is not a big system. Worth looking at how the vb apps handle the connections , i.e close them etc
Jack Vamvas
All the IT jobs in one place - http://www.ITjobfeed.com
If you need to see the path of the MDF/LDF files , do a :
USE Master
SELECT name,filename FROM sysdatabases
Jack Vamvas
All the IT jobs in one place - http://www.ITjobfeed.com
Yes, for example , when you run the the Export Wizard, you get an option to run a "query" ,is it not possible to encase what you are trying to do into a stored procedure, and then just execute the stored procedure as part of the job?
Jack Vamvas
All the IT jobs in one place -...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.