Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Server stored procedure for newid()
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00275123
Message ID:
00275283
Vues:
34
>>=SQLEXEC(lnHandle, "sp_NewID" + lcBaseTable, "newid")
>>
>>So the table name is part of the stored procedure name and is not a parameter.
>>Mat
>
>You might want to check with Kevin and see if that may supposed to be:
>
>=SQLEXEC(lnHandle, "sp_NewID " + lcBaseTable, "newid")
>
>cause I can't see writing a SP for every table, but I can see writing ONE that accepts the tablename as a parameter.
>
>BOb

Bob,

Actually, you are correct. The code does contain the space to pass the table as a parameter. I did not see it until you pointed it out. I will have to create the stored procedure like you suggested.

My mistake came in executing the code from the command window and the space got "lost".

Kind Regards,

Mat
Matthew Kennedy
Decision Support Technology Inc.

"I try to take one day at a time, but sometimes several days attack me all at once." ~ Ashleigh Brilliant

New Jersey Dot Net User Group
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform