Yes, but you'll have to build the SQL statement dynamically as a string and
execute it via EXEC(@SQLString) or sp_executesql..
See BOL for details.
P.
-----Original Message-----
From: Dale Fontenot [mailto:[EMAIL PROTECTED]]
Sent: Saturday, July 07, 2001 1:03 PM
To: CF-Talk
Subject: SOT:Using variables in a SQL Server 7.0 Stored Proc
I am trying to pass a variable table name in a stored proc but it is not
working. Can a table name be passed to a stored proc as a variable?
Thanks
Dale Fontenot
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists