Nov 27, 2003 #1 joebickley Programmer Joined Aug 28, 2001 Messages 139 Location GB Hi im building an update statement from some parameters and storing that SQL statement in a variable. How do i execute it?
Hi im building an update statement from some parameters and storing that SQL statement in a variable. How do i execute it?
Nov 27, 2003 #2 sneki Programmer Joined Nov 26, 2003 Messages 11 Location SI set @strSql = 'update...' exec(@strSql) Upvote 0 Downvote
Nov 27, 2003 Thread starter #3 joebickley Programmer Joined Aug 28, 2001 Messages 139 Location GB I knew it was that!! Missed out the brackets when i tried though Thanks a lot Upvote 0 Downvote
Nov 27, 2003 #4 sneki Programmer Joined Nov 26, 2003 Messages 11 Location SI ok, give me your variable. Upvote 0 Downvote