Dynamic SQL

  • Hi,

    I am using Dynamic sql, I should passing parametar to it, I am facing a problem with parametar type Uniqueidentifier and Date when I connected them in one string and then run it with EXEC() function.

    please any suggestion for this case .

    Thanks

    Ban

  • Hi,

    We are going to need more information than that really. Can you post the SQL that you are using please

    Thanks

  • Use sp_executesql as it does not require you to convert any parameters to strings.

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply