What is faster, querying 1000 records from SQL Server 2005 or Querying 1000 records an XML Document?
Is it faster to use this query with json or is it faster to query in C#/VB.net?
View Complete Post
Download Visual Round-trip Analyzer (VRTA) to uncover the root of your Web page loading problems and identify these 12 common ailments.
MSDN Magazine November 2008
The next version of Visual C++ has a new syntax that is both elegant and powerful. It has new optimization technology that has improved the speed of Microsoft. It has new compilation modes that ensure Common Language Infrastructure compliance and verifiability for the .NET Framework, and it has new models for interop. In this article Stephen Toub explains these and other improvements to Visual C++.
MSDN Magazine May 2004
Visual Studio .NET includes exciting features, some of which are enhancements to previous versions and some of which are brand new. A few of the most significant additions are the new Microsoft programming language called C#; a new, smarter integrated development environment; new object-oriented features in Visual Basic .NET; and development lifecycle tools. This article provides an overview of these features, as well as a look at Web Services, Web Forms, and new versions of ADO and ASP. It takes a first look at dozens of important new Visual Studio features that aid in the design, development, testing, and deployment of solutions built with Visual Basic, C++, Visual FoxPro, and C#.
MSDN Magazine September 2000
I use $.getJSON to do an async call from a rendered view to a an MVC controller action. The getJSON round trip to the server does not show as a session in fiddler. I start Fiddler2. From the browse, I browse to my website. Fiddler shows sessions as expected. Then I click a link which does the getJSON call, gets data from the server and pops up a window to display it. No additional sessions show in Fiddler. Why would fiddler not show the http request being sent to the server?
I'm doing an HTTPWebRequest to a client's web service, and always receive the following error.
System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a send. ---> System.IO.IOException: Received an unexpected EOF or 0 bytes from the transport stream.
Here is the code
req = (HttpWebRequest)WebRequest.CreateDefault(uri);
req.ContentType = "text/xml; charset=utf-8";
req.Method = "POST";
stm = new StreamWriter(req.GetRequestStream(), Encoding.UTF8);
response = req.GetResponse();
responseStream = response.GetResponseStream();
But if I add the following
req.Proxy = new
and turn on Fiddler then all the requests succeed. Any ideas??? Fiddler or the use of the WebProxy object is doing something to make everything work. Thanks!
I want to ask which language is faster when deploying the website to the internet. I mwan which is faster for the user to browse to website? C# or VB.NET?
By the way, which one ASP.NET did use?
According to the Adam Machanic's link
http://sqlblog.com/blogs/adam_machanic/archive/2006/07/12/performance-isnull-vs-coalesce.aspx claims go both ways.
I could not confirm any difference. Performance measurement script follows:
DECLARE @StartTime datetime, @i int = 0
DECLARE @Duration TABLE (Duration int)
WHILE (@i < 100)
SET @StartTime = GETDATE()
SELECT SalesOrderID, OrderDate,
Comment=COALESCE(Comment,'N/A') -- Cost: 0.620299
I got an error and do not know how to fix it!
Fiddler has detected a protocol violation in session #2331.
Content-Length mismatch: Response Header claimed 1939 bytes, but server sent 1983 bytes.
I am using Fiddler to check sizes of request and response when calling a WCF service.
I noticed that when response sizes were very large, two entries appeared in the Fiddler's list of requests to localhost. Each was identical to each other in size ( 499,000,000) but different only in when these request were made as one was made after the other. I am only calling WCF method once, yet why Fiddler shows 2 entries for one WCF call? Is it because WCF method call is automatically breaking up the results returned into 2 equal payloads?
I need to know if my thinking is on the right track about something, and if so, what keywords I might Google search to find out more about this.
Are there times we write code and the real advantage is that by telling the computer what we won't be doing, it saves time because the computer doesn't have to do something (maybe saving milliseconds, or even more?)
For example, every discussion about the modifier 'abstract' explains how it will prevent me from accidently trying to instantiate an object from the class. Well, I'm in a situation where I'm pretty sure I won't make that mistake, but then I was thinking, well, maybe there's a better reason to use 'abstract' -- maybe it tells the computer 'you don't have to do certain stuff because this an abstract class' and it creates a significant time savings.
Am I on the right track?
The closest I've come to finding this was a mention that it's good to mark classes with 'sealed' whenever you know you won't be inheriting from them; this was in article about making code work faster.
Thank you for your help with this.
Below is my query:
SELECT [FieldValue2] = case isdate(FieldValue2) When '1' then case isdate(FieldValue4) When '0' then dbo.GetCountagingDay(FieldValue2, getdate(), '') -1 else '0' end else '0' endFROM test