Hi,
I am just trying to get an integer-based user_id (not the super-long hexadecimal one) from sql server.
I tried this but it gives me NULL:
SELECT USER_ID('myDomain\myLogin')
Any ideas? I don't want the hex version, or a string username. Just a simple integer id. I thought something like this existed in SQL Server but having a hard time finding it.
Thanks!
I am just trying to get an integer-based user_id (not the super-long hexadecimal one) from sql server.
I tried this but it gives me NULL:
SELECT USER_ID('myDomain\myLogin')
Any ideas? I don't want the hex version, or a string username. Just a simple integer id. I thought something like this existed in SQL Server but having a hard time finding it.
Thanks!