Home | Advertising Info69 USERS CURRENTLY ONLINE   
   Site Search Contact Us Friday, March 14, 2025  
 
 


 
ASPProtect
User Management Application with web based screens that allow you to manage users.
www.ASPProtect.com
 
ASPBanner
Banner Rotation system. Advertisers can monitor online statistical reports via their web browsers.
www.ASPBanner.com
 
ASP Photo Gallery
Upload an unlimited amount of albums. Set up categories.Image resizing thumbnail creation.
www.ASPPhotoGallery.com
 
ASPClassifieds
Classifieds system. Set up categories. Users can register themselves. Supports picture uploads.
www.ASPClassifieds.com



DISCUSSION ARCHIVES
 



We didn't realize
the site was so popular.

Other Stuff
 

 
 
PowerASP active server pages asp.net microsoft .net framework sdk learn asp what is asp tutorial learn asp.net CJWSoft ASPProtect ASPBanner ASPClassifieds



(Advanced)  (Components)  (Database)  (General)  (Vbscript)




ASPProtect

 
Subject: Stored procedure nightmare
From: Tom Holder
Date: 2/6/2000 11:01:07 AM
IP: 193.149.90.244



 

Im trying to do something which I assume is very simple with a stored procedure. This is an example

pulled of the 4Guys web site to illustrate what I need to do:

CREATE PROCEDURE sp_myInsert
@FirstName varchar(20),
@LastName varchar(30),
@MyTableParam varchar(20)
As
INSERT INTO TableName(FirstName, LastName)
values(@FirstName, @LastName)
Go

Now this stored procedure is simple enough, even to me. However, rather than insert the values of

FirstName, and LastName into the table called TableName I need to insert them into the table

specified in the parameter @MyTableParam. I have tried doing the following (the obvious) but it

generates a syntax error.

CREATE PROCEDURE sp_myInsert
@FirstName varchar(20),
@LastName varchar(30),
@MyTableParam varchar(20)
As
INSERT INTO @MyTableParam(FirstName, LastName)
values(@FirstName, @LastName)
Go

Just out of interest, its actually a SELECT statement that I need to use this format in.


 

   Active Server Pages Rule The World
Contact Us  
All artwork, design & content contained in this site are Copyright © 1998 - 2025 PowerASP.com and Christopher J. Williams
Banner ads ,other site logos, etc are copyright of their respective companies.
STATS Unless otherwise noted - All Rights Reserved.

PowerASP active server pages asp.net microsoft .net framework sdk learn asp what is asp tutorial learn asp.net CJWSoft ASPProtect ASPBanner ASPClassifieds www.aspclassifieds.com, www.powerasp.com,www.cjwsoft.com,www.aspphotogallery.com,www.codewanker.com,www.aspprotect.com,www.aspbanner.com