About 26,100 results
Open links in new tab
  1. Getting current user with a sql trigger - Stack Overflow

    Jun 2, 2016 · Use system_user or suser_name () for that. user_name () will return dbo if your user is in sysadmin role. User_Name (): http://technet.microsoft.com/en-us/library/ms188014.aspx. When id is omitted, the current user in the current context is assumed.

  2. Azure SQL trigger for Functions | Microsoft Learn

    Apr 23, 2025 · The Azure SQL trigger uses SQL change tracking functionality to monitor a SQL table for changes and trigger a function when a row is created, updated, or deleted.

  3. USER_NAME (Transact-SQL) - SQL Server | Microsoft Learn

    Sep 3, 2024 · USER_NAME returns a database user name from a specified identification number, or the current user name.

  4. sql server - how to call function inside a trigger? - Stack Overflow

    Jan 16, 2016 · Use select to call scalar function. correct way to do this would be. Note: It is not advisable to write big logic inside a trigger. Triggers should be simple and fast otherwise your DML operations will be slow. Moreover you have used a CURSOR which should be avoided at any cost. Rewrite the code using SET based approach.

  5. sql - How to store UserName who is Updating the value of a …

    Mar 3, 2015 · You can use trigger to insert SYSTEM_USER or USER_NAME () into a table . So any action that fire your trigger will have the login name or username of the person does that action. this is inside database .

  6. SQL Tutorial 11: Stored Procedures, Triggers, and User-Defined Functions

    Nov 10, 2024 · To create a user-defined function in SQL, you use the CREATE FUNCTION statement followed by the name of the function, the parameters it accepts, and the SQL statements that define its behavior.

  7. SQL Triggers

    A trigger is a database object that executes a piece of code, a user-defined function, or a stored procedure in response to a specific event in a table. A trigger is always associated with a specific table.

  8. azure-functions-sql-extension /docs - GitHub

    When the function with the trigger is started, it will start up two separate loops that will run continuously until the function is stopped. The change polling loop checks for changes on the target table, triggering the user function when changes are detected. At a …

  9. Azure Function SQL Trigger: how to use it (and why it can be …

    2 days ago · With this feature, an Azure Function can be automatically triggered by data changes in an Azure SQL, Azure SQL Managed Instance and SQL Server 2016-2022 database. This is a really useful scenario for handling event-driven applications and integrations between an external SQL database and your Dynamics 365 Business Central online environment.

  10. CREATE TRIGGER (Transact-SQL) - SQL Server | Microsoft Learn

    Sep 3, 2024 · DML triggers run when a user tries to modify data through a data manipulation language (DML) event. DML events are INSERT, UPDATE, or DELETE statements on a table …

Refresh