Click here to Skip to main content
15,889,693 members
Home / Discussions / C#
   

C#

 
QuestionProgress bar problem Pin
Naresh1234567896-Jan-08 23:52
Naresh1234567896-Jan-08 23:52 
GeneralHI Pin
Naresh1234567896-Jan-08 23:45
Naresh1234567896-Jan-08 23:45 
GeneralRe: HI Pin
Mircea Puiu6-Jan-08 23:51
Mircea Puiu6-Jan-08 23:51 
GeneralRe: HI Pin
Naresh1234567897-Jan-08 0:14
Naresh1234567897-Jan-08 0:14 
GeneralDelay in Webservice Functions Pin
MehmetFurkan6-Jan-08 23:12
MehmetFurkan6-Jan-08 23:12 
GeneralRe: Delay in Webservice Functions Pin
c0ax_lx7-Jan-08 4:07
c0ax_lx7-Jan-08 4:07 
Generalrunning the Procedure Pin
tasumisra6-Jan-08 23:03
tasumisra6-Jan-08 23:03 
GeneralRe: running the Procedure Pin
Mircea Puiu6-Jan-08 23:47
Mircea Puiu6-Jan-08 23:47 
using (SqlConnection sc = new SqlConnection())
        {
            StringBuilder sql = new StringBuilder(); // or simply use string instead
            sql.Append("exec sp_YourProc");
            string connStr = "...";
            sc.ConnectionString = connStr;
            sc.Open();
            using (SqlCommand sco = new SqlCommand())
            {
                try
                {
                    sco.CommandType = CommandType.Text;
                    sco.CommandText = sql.ToString();
                    sco.Connection = sc;
                    using (SqlDataReader sr = sco.ExecuteReader())
                    {
                        // Do something with the incoming data;
                    }
                }
                catch (SqlException exc)
                {
                    // ... Deal with exceptions
                }
            }


SkyWalker

GeneralRe: running the Procedure Pin
J4amieC6-Jan-08 23:50
J4amieC6-Jan-08 23:50 
GeneralRe: running the Procedure Pin
Mircea Puiu6-Jan-08 23:56
Mircea Puiu6-Jan-08 23:56 
GeneralRe: running the Procedure Pin
J4amieC6-Jan-08 23:49
J4amieC6-Jan-08 23:49 
GeneralRe: running the Procedure Pin
tasumisra7-Jan-08 0:05
tasumisra7-Jan-08 0:05 
GeneralRe: running the Procedure Pin
Steppo7-Jan-08 0:44
Steppo7-Jan-08 0:44 
GeneralRe: running the Procedure Pin
tasumisra7-Jan-08 1:22
tasumisra7-Jan-08 1:22 
GeneralRe: running the Procedure [modified] Pin
Steppo7-Jan-08 2:30
Steppo7-Jan-08 2:30 
QuestionDeleting from database Pin
Derick Magagula6-Jan-08 22:56
Derick Magagula6-Jan-08 22:56 
GeneralRe: Deleting from database Pin
N a v a n e e t h6-Jan-08 23:05
N a v a n e e t h6-Jan-08 23:05 
GeneralLast Day of Current Month Pin
sami_pak6-Jan-08 21:26
sami_pak6-Jan-08 21:26 
GeneralRe: Last Day of Current Month Pin
N a v a n e e t h6-Jan-08 21:45
N a v a n e e t h6-Jan-08 21:45 
GeneralWrong forum. Pin
Pete O'Hanlon6-Jan-08 22:37
mvePete O'Hanlon6-Jan-08 22:37 
AnswerRe: Last Day of Current Month Pin
GuyThiebaut6-Jan-08 23:10
professionalGuyThiebaut6-Jan-08 23:10 
GeneralAny query about northwind? [modified] Pin
omegazafer6-Jan-08 21:13
omegazafer6-Jan-08 21:13 
GeneralWrong forum Pin
Pete O'Hanlon6-Jan-08 22:47
mvePete O'Hanlon6-Jan-08 22:47 
GeneralRe: Wrong forum Pin
omegazafer6-Jan-08 23:05
omegazafer6-Jan-08 23:05 
GeneralRe: Wrong forum Pin
Pete O'Hanlon7-Jan-08 1:18
mvePete O'Hanlon7-Jan-08 1:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.