Click here to Skip to main content
15,912,977 members
Home / Discussions / C#
   

C#

 
AnswerRe: Programmatically updating application properties or help creating my own xml file please. Pin
Super Lloyd31-Jul-09 2:55
Super Lloyd31-Jul-09 2:55 
GeneralRe: Programmatically updating application properties or help creating my own xml file please. Pin
Henry Minute31-Jul-09 3:57
Henry Minute31-Jul-09 3:57 
GeneralRe: Programmatically updating application properties or help creating my own xml file please. Pin
Super Lloyd31-Jul-09 4:03
Super Lloyd31-Jul-09 4:03 
JokeRe: Programmatically updating application properties or help creating my own xml file please. Pin
JollyMansArt1-Aug-09 2:33
JollyMansArt1-Aug-09 2:33 
GeneralRe: Programmatically updating application properties or help creating my own xml file please. Pin
Super Lloyd1-Aug-09 16:53
Super Lloyd1-Aug-09 16:53 
Questionnot able to view the form controls when thread is running [modified] Pin
Vivek Vijayan31-Jul-09 2:37
Vivek Vijayan31-Jul-09 2:37 
AnswerRe: not able to view the form controls when thread is running Pin
stancrm31-Jul-09 3:30
stancrm31-Jul-09 3:30 
QuestionHow to increase Web Service performance ? Pin
hdv21231-Jul-09 2:35
hdv21231-Jul-09 2:35 
Hi i created a web service to load some information from sql server 2005 database, it works good but it has very low speed to return data, wheras sql server load data without overhead. i think the decreasing performance occures in while loop, here is my code :

[WebMethod]
        public List<InputOutput> GetAllInputOuts()
        {
            List<InputOutput> list = new List<InputOutput>();
            using (System.Data.SqlClient.SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["IOXPConnectionString"].ConnectionString))
            {
                using (SqlCommand cmd = con.CreateCommand())
                {
                    cmd.CommandText = "select * from vLinkToDataSource";
                    SqlDataReader dr = null;

                    if (con.State != ConnectionState.Open)
                        con.Open();
                    dr = cmd.ExecuteReader();

                    while (dr.Read())
                    {
                        InputOutput io = new InputOutput();
                        io.Code = dr.GetInt32(2);
                        io.Name = dr.GetString(1);
                        io.Family = dr.GetString(0);
                        io.DateInput = dr.GetString(3);
                        io.TimeInput = dr.GetString(4);
                        io.DateOutput = dr.GetString(5);
                        io.TimeOutput = dr.GetString(6);
                        list.Add(io);                        
                    }

                }
            }
            return list;
        }


how to improve the performance ?
Note 1 : the sql server 2005 return results good.
Note 2 : almost 17000 records exists in database.
Note 3 : beacuse i want to use this web Service in sharepoint, i must return result as List<T>.
Any help would be great appreciated
AnswerRe: How to increase Web Service performance ? Pin
Dave Kreskowiak31-Jul-09 4:58
mveDave Kreskowiak31-Jul-09 4:58 
GeneralRe: How to increase Web Service performance ? Pin
hdv21231-Jul-09 6:37
hdv21231-Jul-09 6:37 
GeneralRe: How to increase Web Service performance ? Pin
Dave Kreskowiak31-Jul-09 7:28
mveDave Kreskowiak31-Jul-09 7:28 
GeneralRe: How to increase Web Service performance ? Pin
hdv2121-Aug-09 9:21
hdv2121-Aug-09 9:21 
GeneralRe: How to increase Web Service performance ? Pin
Dave Kreskowiak2-Aug-09 6:12
mveDave Kreskowiak2-Aug-09 6:12 
QuestionMiddle mouse click and scroll Pin
gwithey31-Jul-09 1:05
gwithey31-Jul-09 1:05 
AnswerRe: Middle mouse click and scroll Pin
gwithey31-Jul-09 1:27
gwithey31-Jul-09 1:27 
GeneralRe: Middle mouse click and scroll Pin
Luc Pattyn31-Jul-09 1:38
sitebuilderLuc Pattyn31-Jul-09 1:38 
GeneralRe: Middle mouse click and scroll Pin
Baeltazor31-Jul-09 7:35
Baeltazor31-Jul-09 7:35 
GeneralRe: Middle mouse click and scroll Pin
gwithey2-Aug-09 20:51
gwithey2-Aug-09 20:51 
Questiondata synchronization between two client machine over the internet by Webservice? Pin
Tridip Bhattacharjee31-Jul-09 0:41
professionalTridip Bhattacharjee31-Jul-09 0:41 
AnswerRe: data synchronization between two client machine over the internet by Webservice? Pin
Dave Kreskowiak31-Jul-09 4:51
mveDave Kreskowiak31-Jul-09 4:51 
QuestionHow to know toolbar got clicked through a BHO (C#)? Pin
svt gdwl31-Jul-09 0:05
svt gdwl31-Jul-09 0:05 
Questioncode for updating datatable. Pin
Omar Akhtar Sheikh30-Jul-09 23:46
Omar Akhtar Sheikh30-Jul-09 23:46 
AnswerRe: code for updating datatable. Pin
Not Active30-Jul-09 23:51
mentorNot Active30-Jul-09 23:51 
JokeRe: code for updating datatable. Pin
Nagy Vilmos31-Jul-09 0:01
professionalNagy Vilmos31-Jul-09 0:01 
GeneralRe: code for updating datatable. Pin
PIEBALDconsult31-Jul-09 4:55
mvePIEBALDconsult31-Jul-09 4:55 

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.