Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Value of field
Message
From
04/09/2001 22:41:40
 
 
To
04/09/2001 13:51:27
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Title:
Miscellaneous
Thread ID:
00552184
Message ID:
00552305
Views:
19
>Hi,
>
>Is there any way to do one of the following in a trigger?
>
>1 - return the value of a field from inserted/deleted tables where the field name is stored in a variable? i.e.
select MythicalEvalFunction(@MyField) from inserted ....
>
>2 - return the value of a field from inserted/deleted tables where all you have is the field ID (from the corresponding actual table) i .e.
select MythicalEvalFunction(field_id) from inserted ...
>
>TIA,

Ken,

HUH? Would be my response to your questions...

First, what do you mean by RETURN? A trigger is called automatically, who or what are you returning the value to?

Also, what do you mean by the field_id ??? Do you mean the object ID?

Perhaps if you tell us what you are trying to acomplish it would be easier to get you on the right road.

BOb
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform