PHP tutorials
http://phpforms.net/tutorial/tutorial.html
Plamen Ratchev wrote:
Re: How to fix 'you must declare table variable @ListNameTable' problem
06-Aug-08
Dynamic SQL:
http://www.sommarskog.se/dynamic_sql.html#objectnames
Plamen Ratchev
http://www.SQLStudio.com
Previous Posts In This Thread:
On Wednesday, August 06, 2008 6:46 AM
Andy B wrote:
How to fix 'you must declare table variable @ListNameTable' problem
I have a stored proc (below). What I want to do is take the @ListNameTable
parameter and use the string value as the table name to insert values into.
When I run it with what is below, I end up getting a 'You must declare the
table variable @ListNameTable.' How do I fix this so I can use the variables
value as the table name?
CREATE PROCEDURE OwnerB12.Insert_MailingListMember (
@ListNameTable varchar(100),
@SubscriberName varchar(50),
@SubscriberEmailAddress varchar(100) )
AS
insert into @ListNameTable values (@SubscriberName, @SubscriberEmailAddress,
1);
On Wednesday, August 06, 2008 8:15 AM
Andy B wrote:
Sorry about the double post.
Sorry about the double post. My server was having connection issues and this
got double posted...
On Wednesday, August 06, 2008 8:19 AM
Plamen Ratchev wrote:
Re: How to fix 'you must declare table variable @ListNameTable' problem
Dynamic SQL:
http://www.sommarskog.se/dynamic_sql.html#objectnames
Plamen Ratchev
http://www.SQLStudio.com
Submitted via EggHeadCafe - Software Developer Portal of Choice
Adding WCF Service References
http://www.eggheadcafe.com/tutorials/aspnet/a1647f10-9aa4-4b0c-bbd9-df...a9fab8e >> Stay informed about: How to fix 'you must declare table variable @ListNameTable..