Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Dynamic SQL Statement

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2001-11-02 : 09:01:02
Murugappan writes "Hai,

How to execute a Dynamically Build sql statement in a procedure?

Example:

variable a = "Select * from "
variable b = "mytable"
variable c = a + b

how to execute the sql statement which is stored in the variable c.

Please clear my doubt as soon as possible. Thanx in advance.

With Regards,
Murugappan."
   

- Advertisement -