What is the system function to get the current user's user
id?

Answer Posted / swapna

USER_ID(). Also check out other system functions like
USER_NAME(), SYSTEM_USER, SESSION_USER, CURRENT_USER, USER,
SUSER_SID(), HOST_NAME().

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we use trigger new in before insert?

521


Can we call future method from queueable?

597


What happens if an integer is too big for int date type?

583


How do I start sql server 2016?

533


Does partitioning improve performance?

499






How to create a scrollable cursor with the scroll option?

506


What are different types of collation sensitivity?

544


Write a SQL query to make a column as unique?

634


What are the different types of replication are there in sql server 2000?

569


Can multiple columns be used in sql group by clause in ms sql server?

558


What is dml command?

557


What is sparse columns of sql server 2008?

610


What stored by the model?

554


Write a SQL command to insert and update only a particular field?

640


What do you mean by recursive stored procedure?

517