Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Must declare the scalar variable @indexName
Message
 
 
À
05/03/2008 11:34:23
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Divers
Thread ID:
01298965
Message ID:
01298969
Vues:
25
>I am moving code from two scripts in order to obtain a final script. The master one was running ok until last night. Now, I incorporated some code of the temporary script in it this morning. I just found that I am receiving:
>
>Must declare the scalar variable "@indexName".
>
>The declare is properly done at the top of the script. This reference works well for the first table where I have the same process for each table. But, once the script reaches the second table, I have this error. So, the DECLARE done higher in the code is now lost. What should I look for?

Are you ahve multiple batches (separated by GO) in the script? DECLARE is scopped to a batch.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform