Macro Substitution like VFP... Challenge


Author
Message
Ross L. Rooker, Sr.
Ross L. Rooker, Sr.
StrataFrame User (195 reputation)StrataFrame User (195 reputation)StrataFrame User (195 reputation)StrataFrame User (195 reputation)StrataFrame User (195 reputation)StrataFrame User (195 reputation)StrataFrame User (195 reputation)StrataFrame User (195 reputation)StrataFrame User (195 reputation)
Group: Forum Members
Posts: 153, Visits: 462
Is it possible to build a string with a command and then execute that command. Example, lets say you start with a variable such as:

string myCommand = "SELECT * FROM tblMaster";

What would be the C# code to execute that command?

The assumption her is that the myCommand could be any command.


Edited 13 Years Ago by Ross L. Rooker, Sr.
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search