tempo1
Programmer
- Feb 20, 2007
- 118
Hi everyone
The code i wrote is:
not working ! I get an error message saying:
with it ?
Thanks
The code i wrote is:
Code:
DECLARE @dynamic VARCHAR(1000)
SET @dynamic=
'
SELECT
accountno "accountno"
FROM
fiftyplus..contact1
'
print @dynamic
exec @dynamic
And i cant figure out why ! Can anyone tell me whats wrongSELECT
accountno "accountno"
FROM
fiftyplus..contact1
Server: Msg 203, Level 16, State 2, Line 10
The name '
SELECT
accountno "accountno"
FROM
fiftyplus..contact1
' is not a valid identifier.
with it ?
Thanks