Re: [ADVANCED-DOTNET] ServiceController status returning wrong state?

2004-08-24 Thread Chris Day
There are many statuses in that enumeration, what status do these services actually have? Member name Description ContinuePending The service continue is pending. Paused The service is paused. PausePendingThe service pause is pending. Running The servic

Re: [ADVANCED-DOTNET] Storing the dataset in DataBase

2004-08-24 Thread Ben Kloosterman
The best way to do this is NOT to use an SQL server as it will not be faster . Instead of using a DataSet use a collection corresponding to your classes. Datasets have slow selects ( brute force search) and the XML storage leads to inefficient storage and futher performance degradation . In mos

Re: [ADVANCED-DOTNET] Storing the dataset in DataBase

2004-08-24 Thread J. Merrill
If it's being used in ASP.NET, store it in the Application cache. If it's a WinForms app, store it in a file on the client's machine (being prepared to compute it if this client doesn't have a copy), or possibly make it the result of calling a web service (if you don't want to write to the clien

[ADVANCED-DOTNET] Mobile ASP.NET: XHTML-MP

2004-08-24 Thread Leonardo Constantino
Hi, I was trying to create a generic timer-form for mobile asp.net. I followed the gotdotnet tutorial that creates a timerform for html/chtml/wml/upwml: http://samples.gotdotnet.com/MobileQuickStart/Default.aspx?url=doc/TimerForm.a spx Unfortunately it does not work for XHTML-MP (introduced on d

Re: [ADVANCED-DOTNET] Storing the dataset in DataBase

2004-08-24 Thread Jekke Bladt
Vitesh-- If your dataset is that big and you're trying to stick it in SQL Server in order to realize performance gains, you're going in the wrong direction. If you're working in ASP.net, consider sticking the information in the Cache. --Jekke -Original Message- From: Unmoderated discuss

Re: [ADVANCED-DOTNET] Storing the dataset in DataBase

2004-08-24 Thread Amit Sinha
Vitesh, Just looking at ur query the scenario of your application is not clear, could you please let us know the whole scenario...?? what kind of data you are looking for to store in DataSET Thanks, Amit Sinha -Original Message- From: Unmoderated discussion of advanced .NET topics. [ma

Re: [ADVANCED-DOTNET] Storing the dataset in DataBase

2004-08-24 Thread Vitesh Aggarwal, Noida
Thanks Jekke/Amit, But I m doing all this to gain performance ...!! Actually it takes a lot of time to compute that dataset which I wanna store ...thats y I m keeping it in DB, so that its readily available whenever required... The size od this Dataset can easily go more than 10k... Can u suggest

Re: [ADVANCED-DOTNET] Storing the dataset in DataBase

2004-08-24 Thread Amit Sinha
Vitesh, I agree with the approach of Jekke, and the performance issue which you may face is that in case you have a dataset having around 10k rows then the speed of operation is going to come down drastically... Thanks, Amit Sinha -Original Message- From: Unmoderated discussion of adva

Re: [ADVANCED-DOTNET] Storing the dataset in DataBase

2004-08-24 Thread Jekke Bladt
Vitesh-- If you need to store the entire dataset in a single database row, you can convert it to and from XML using the WriteXML and ReadXML methods. --Jekke -Original Message- From: Unmoderated discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] On Behalf Of Vitesh Aggarwal, N

[ADVANCED-DOTNET] Storing the dataset in DataBase

2004-08-24 Thread Vitesh Aggarwal, Noida
Hi All, I have a DataSet and because of some specific requirement, I hav to store that in a Table in my database (SQL server). How can I do this, so that whenever I need I can get that dataset back...? What are the performance related issues in doing this ? Pls help. Thanks in advance.

Re: [ADVANCED-DOTNET] Modifying Serialised objects to load into new versions of objects .

2004-08-24 Thread Stoyan Damov
Oooh, and by the way, I always use custom serialization to avoid exactly these kinds of problems. :) Cheers, Stoyan -Original Message- From: Unmoderated discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] On Behalf Of Stoyan Damov Sent: Tuesday, August 24, 2004 16:06 To: [EMAIL

Re: [ADVANCED-DOTNET] Modifying Serialised objects to load into new versions of objects .

2004-08-24 Thread Stoyan Damov
Google for articles, which mention "IDeserializationCallback", "(I)SurrogateSelector", "ISerializationSurrogate" and especially "SerializationBinder". Take a look at SerializationBinder to see if it's a solution to your problem. HTH, Stoyan -Original Message- From: Unmoderated discussion

[ADVANCED-DOTNET] Modifying Serialised objects to load into new versions of objects .

2004-08-24 Thread Paul Stevens
Ok, I'm sure everyone has had the blessed serializer tell you "Possible version mismatch, type X has 2 members, number deserialized is 1", what I have been thinking of is a way to "Upgrade" serialised files, since I'm sure I'm not the only one using serialisation as a means to save user data, I gue

[ADVANCED-DOTNET] ServiceController status returning wrong state?

2004-08-24 Thread Blain T Timberlake
This is a repost from CLR, doesn't seem like there is much activity over on that list. This isn't really all too advanced though, so I apologize in advance. ;) Using the system.ServiceProcess.ServiceController I'm getting some odd values back. Basically if I pull up a list of services on a remo

Re: [ADVANCED-DOTNET] Optimization and IL

2004-08-24 Thread Heath Ryan
>It's curious why the C# compiler bothers with it at >all (or rather, why it doesn't always do the trivial opt). I was glad when using vs2002, I had the choice to differ, certain code was compiled wrongly with optimization on... // Ryan - The information includ