I seem to remember reading somewhere that ADO.NET Whidbey allows us to have a sort of parameterized text query. In other words, I could use CommandType.Text and say "SELECT * FROM myTable WHERE ID = ", but then have the paramater passed as a SqlParameter the way it would work if I had used CommandType.StoredProcedure instead of a text query.
Am I hallucinating this If not, can anyone point me to more info on it This approach seems useful in some cases if it guards against SQL injection attacks the way that stored procs do. I hate having 150 one-line stored procs for "delete by unique ID" operations and the like.

ADO.NET SQL query statement
NomadaPT
ALZDBA
Any idea what this would look like under Visual Studio Visual Basic
Not sure I need the complexity to solve this problem, however:
I am trying to implement a "loop" that will iterate through a child table, extracting values one row at a time. Once a row is extracted this row is marked as "used".
a) Find next Unassigned values from TableTwo that are linked to TableOneID
b) Read related values from the row
c) Do processing on values from this row
d) Mark row as Assigned
e) Repeat until no unassigned rows for this TableOneID
Is there a simple way to do this with SQL or do I need to create Reader
wackyspat
try {conn = new SqlConnection("Integrated Security=SSPI;Initial Catalog=Northwind;Data Source=(local);");SqlCommand cmd = new SqlCommand("SELECT * FROM Orders WHERE OrderID = @orderId", conn);cmd.Parameters.Add("@orderId", 10248);while(reader.Read()) {for(int i=0; i<reader.FieldCount; i++) {Console.Write("{0}\t", reader
//emoticons/emotion-55.gif" alt="Idea" />);} finally {if(reader != null) {if(conn != null) {Alwin
See if that helps.