I wrote a script that works swimmingly in my dev environment:
INSERT INTO [Voyage] ([StartDate], [EndDate] ...)
SELECT ([StartDate], [EndDate] ...) FROM [LEG]
WHERE [STARDATE] IS NOT NULL
AND [ENDDATE] IS NOT NULL
All well and good, until this script is run in production. I'm told we have a billion Leg
records, and the server is timing out because of it.
Anyone have a strategy to employ for a scenario like this?