Results 1 to 7 of 7

Thread: [RESOLVED] need string to read out in INSERT statement

Threaded View

  1. #3

    Thread Starter
    Lively Member
    Join Date
    Sep 2009
    Posts
    96

    Re: need string to read out in INSERT statement

    I'm doing this in SQLServer 2005. It's running in a stored procedure, communicated to by a VB.NET 2005 application.

    SQL won't compile because it can't find columns named @str1, @str2, et cetera. I want it to use the contents of the variable for the column name. Otherwise I have to write a bunch of INSERT statements in nested conditionals
    Last edited by theguyinthehat; Oct 2nd, 2009 at 10:36 AM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width