Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is there any equivalent of indirection (macro) in T-SQL?
Message
 
 
À
14/12/2007 12:02:16
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Versions des environnements
SQL Server:
SQL Server 2000
Divers
Thread ID:
01191074
Message ID:
01275922
Vues:
7
>Yes it wouldn't be visible.
>But you could try sql_variant (Kill me I can't remember if this type is available in SQL Server 2000)
>
>DECLARE @Test sql_variant
>SET @Test = 'asdasdasdasdasda'
>SELECT @Test
>SET @Test = 0
>SELECT @Test
>SET @Test = GETDATE()
>SELECT @Test
>
>
>UPDATE: I just checked. sql_variant is introduced in SQL Server 2000 so you could use it when you don't know the type.

Thanks, this may work.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform