Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding stored procedures and views to SQL server 7.0
Message
De
12/04/2002 10:00:37
 
 
À
11/04/2002 11:08:29
Guy Pardoe
Pardoe Development Corporation
Peterborough, New Hampshire, États-Unis
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Installation
Divers
Thread ID:
00643267
Message ID:
00644244
Vues:
10
You could chage your code to...

CREATE PROCEDURE test AS

declare @sqltext varchar(200)

SET @sqltext = 'select * from account where myfield = ''test'''
EXEC( @sqltext )

and it should compile.

BOb

>I just tried creating a new procedure which referenced a bogus field name (this is using the enterprise manager interface).
>
>CREATE PROCEDURE test AS
>select * from account where myfield = 'test'
>
>The error says Error: 207 Invalid column name 'myfield'
>
>Like I said, this is normal for me. I have always taken the default settings upon installing SQL 7.0.
>
>Guy
>
>
>>What error are you seeing? Hmmm...I wonder...Is the database compatibility set to 6.5?
>>
>>-Mike
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform