Not sure why, but this simple update query brought the server to it's knees.
And trying to use it in a trigger caused delays in the UI (Access 2003).
Is there a better way to do this?? All I wanted to do is make sure all entries in the DB are UpperCase.
Thanks!!!
Thanks
John Fuhrman
Code:
Update dbo.tblTrackingTable
Set FileNumber = Upper(dbo.tblTrackingTable.FileNumber),
BoxNumber = Upper(dbo.tblTrackingTable.BoxNumber)
from dbo.tblTrackingTable
And trying to use it in a trigger caused delays in the UI (Access 2003).
Code:
USE [MailroomTracking]
GO
/****** Object: Trigger [dbo].[CheckFileNumbers] Script Date: 07/06/2010 12:20:51 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author: John Fuhrman
-- Create date:
-- Description:
-- =============================================
ALTER TRIGGER [dbo].[CheckFileNumbers]
ON [dbo].[tblTrackingTable]
AFTER INSERT,UPDATE
AS
BEGIN
-- SET NOCOUNT ON added to prevent extra result sets from
-- interfering with SELECT statements.
SET NOCOUNT ON;
Update dbo.tblTrackingTable
Set FileNumber = Upper(dbo.tblTrackingTable.FileNumber),
BoxNumber = Upper(dbo.tblTrackingTable.BoxNumber)
from dbo.tblTrackingTable
Inner Join Inserted As I
On dbo.tblTrackingTable.Tracking_ID = I.Tracking_ID
END
Is there a better way to do this?? All I wanted to do is make sure all entries in the DB are UpperCase.
Thanks!!!
Thanks
John Fuhrman