Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to change Application.name
Message
 
To
09/09/2005 09:45:40
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Installation, Setup and Configuration
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
MS SQL Server
Miscellaneous
Thread ID:
01048058
Message ID:
01048113
Views:
20
>>Hello,
>>
>>Situation:
>>Front-end: VFP 8.0 SP1
>>Back-end: MS SQL Server 2000
>>Connection via ODBC with SQL Server authentication.
>>
>>Problem:
>>When user makes changes on data, I want that trigger which fires could get UserName which User logged into workstation.
>>
>>I found one solution: to change Application name, then SQL server can get user id via SQL function app_name().
>>The problem is that Application.Name is read-only in VFP and allways contains "Microsoft Visual Foxpro".
>>How to change Application.Name value? Is it possible?
>>
>>Thanks in advance,
>
>*VFP
>Application.ServerName && Full path and filename of executable
>sys(0) && Network name
>
>*SQL server
>SUSER_ID
>SUSER_NAME
>SUSER_SID
>SUSER_SNAME
>@@SPID
>USER
>USER_ID
>USER_NAME
>CURRENT_USER
>SYSTEM_USER
>...
>
>Cetin


Btw, SQL's
HOST_NAME()
gives workstation name, part of sys(0)
Giedrius
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform