Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can I create a temporary variable?
Message
 
 
To
14/02/2002 16:04:47
General information
Forum:
Microsoft SQL Server
Category:
Other
Miscellaneous
Thread ID:
00620349
Message ID:
00620365
Views:
15
>Hi!
>
>I'm wondering if I can create a temporary variable, in SQLServer 7 or 2000, which would stay in scope throughout the life of the connection. I could create a temp table, but that table would hold only a single value for each connection (namely, a user id to identify my users). So I'm looking for something that might be less "overkill" (if there is such a thing!).
>
>Thanks!

Sylvain,
AFAIK, there is no such thing in SQL Server. There are global variables but they are system defined.

Can use the user_name() function or do you use a singular login to authenticate your users?
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform