Hi John,
Your problems can be divided into two parts.
1. dynamic sql. you should really check out docs on ado.net (or perhaps Linq
to SQL, Entity Framework...) and understand that it uses a disconnected
approach - load data in memory, modify it, send back to server. You can't
bind controls directly to server. Dynamic SQLs aren't hard to execute, just
watch out for sql injection.
2. binding. If you create a strong typed dataset in your project the binding
is pretty much trivial - just drop the dataset instance on the form and do
the binding.
You should search for the terms above in the help files...
HTH,
--
Miha Markic [MVP C#, INETA Country Leader for Slovenia]
RightHand .NET consulting & development
www.rthand.com
Blog: blog.rthand.com
"John" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi
>
> I have a desktop db background and am new to sql server. How can I bind my
> winform controls to a dynamic sql running on sql server backend db? The
> reason I need dynamic sql is to give users maximum flexibility on ORDER BY
> and WHERE clauses of the sql.
>
> Many Thanks
>
> Regards
>
>