Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sql statement
Message
From
16/08/2007 13:50:27
Issam Mansour
Jordan Business Machines
Amman, Jordan
 
 
To
All
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Title:
Sql statement
Environment versions
SQL Server:
SQL Server 2005
Miscellaneous
Thread ID:
01248581
Message ID:
01248581
Views:
69
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
Next
Reply
Map
View

Click here to load this message in the networking platform