Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Stored procedure
Message
From
22/09/2005 11:02:35
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
22/09/2005 10:45:03
Atif Saeed Khan
Nextbridge Prvt Ltd.
Lahore, Pakistan
General information
Forum:
Visual FoxPro
Category:
Client/server
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01051966
Message ID:
01051990
Views:
7
>that is what i asked u. :)
>
>i have written the sp like this
>
>CREA PROCEDURE XXX
> @TABLE_NAME VARCHAR(50)
>AS
>SELECT * FROM @TABLE_NAME
>
>EXEC XXX 'INV_MAST'
>
>where INV_MAST is the table name.
>
>whenever i try to execute this procedure it gives me error message.

I tried to prevent you from shooting yourself in the foot:) Check sp_executesql.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform