Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sql statement
Message
De
16/08/2007 13:50:27
Issam Mansour
Jordan Business Machines
Amman, Jordanie
 
 
À
Tous
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Titre:
Sql statement
Versions des environnements
SQL Server:
SQL Server 2005
Divers
Thread ID:
01248581
Message ID:
01248581
Vues:
71
Hi,

I Have a following SP running on sql 2005:-

DECLARE @MONTHNO int
DECLARE @DB CHAR (8)
DECLARE @CR CHAR (8)
SET @MONTHNO = 2
SET @DB = 'DB_'+CONVERT(NCHAR(2),@MONTHNO)
SET @CR = 'CR_'+CONVERT(NCHAR(2),@MONTHNO)
SELECT (acctno),@CR from bmaster

. The table has a 12 field with cr_1 ... to 12

, the sql can’t understand the @cr the column papers "with No column name'


Thanks
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform