I think this is more of a basic "how do I use a SQL command" question.
There are some good tutorials around this in the framework.
Google "SqlCommand Object" and the first link gets you here:
http://www.csharp-station.com/Tutorials/AdoDotNet/Lesson03.aspx
--------------------
>From: "Wong CS" <chunseong1411@yahoo.com>
>Subject: Retrieve result from SqlCommand
[quoted text clipped - 8 lines]
>NNTP-Posting-Host: 218.111.162.43
>Path:
TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP1
0.phx.gbl
>Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.aspnet.webservices:28499
>X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webservices
>
[quoted text clipped - 9 lines]
>cheers,
>Wong CS