Feb 26, 2003 #1 Denaeghel Programmer Joined Apr 23, 2001 Messages 61 Location BE Is it possible to write a stored procedure that can insert information where the column name is variable? Thanks Karel karel.denaeghel@barco.com
Is it possible to write a stored procedure that can insert information where the column name is variable? Thanks Karel karel.denaeghel@barco.com
Feb 26, 2003 #2 arst06d Programmer Joined Nov 29, 2002 Messages 324 I think you might have to create your query in a string within the procedure, then use the exec function to run it. Upvote 0 Downvote
I think you might have to create your query in a string within the procedure, then use the exec function to run it.
Feb 26, 2003 #3 TLGsoft IS-IT--Management Joined Feb 25, 2003 Messages 28 Location RO use SP_EXECUTESQL() Upvote 0 Downvote