I have a worksheet that runs a db query based upon two parameters. Once the data has been retrieved from the database, how do I show on my spreadsheet the parameters that were sent to get the data?
Found the problem:
For SQL 2000 use the following example:
CREATE TRIGGER trgUpdateLastModified ON [dbo].[tblVehicles]
FOR UPDATE
AS
UPDATE tblVehicles
SET LastModified = GetDate()
From tblVehicles, inserted
WHERE tblVehicles.VehicleID = Inserted.VehicleID
I have done this method, however, it updates every row in my table. How can I write the trigger so that it only updates the LastModified column for the row that was modified, regardless of what column was changed?
I'm looking for a way to query an existing table that has other valid table names that we are using in it and then compare those tables to the list of tables that actually exist in the db. If there are extras, I want to delete them. I tried to query my table and then delete all extra tables that...
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.