Results 1 to 12 of 12

Thread: How to shift from straight query to parametrized one at module level

Threaded View

  1. #5

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2010
    Posts
    965

    Re: How to shift from straight query to parametrized one at module level

    Hi Kebo.

    Code:
    cmd.CommandText = "SELECT * FROM <tableName> WHERE Name=@name and City=@city"
    In this line of code, you have particularized 2 fields, received to the function. But in my case, everytime the function receives random number of fields, so how to cope with this?

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