Home Forums SQL Server 7,2000 T-SQL Using Variables as column names in select statement RE: Using Variables as column names in select statement

  • Thanks Theo; I really need to test that myself , as I clearly don't make enough triggers; I should have known that...i assumed that the tables would only be populated based on the event it was doing, so inserted would have data for insert/update, and deleted would only have the data in the delete event.

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!