Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can I create a temporary variable?
Message
 
 
À
14/02/2002 16:04:47
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Divers
Thread ID:
00620349
Message ID:
00620365
Vues:
16
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform