September 19, 2013 at 2:26 pm
Hello all it seems that the SQL server receives a lot of select statements coonections from an asp .net application but the packages that leave the SQL are malformed can that be an issue with SQL ? Or it is an issue with the network how can I prove that it is the network ?
September 20, 2013 at 11:25 am
I may be misguided on this, but I believe a server-side trace would help here; try this link:
I would recommend reading the article, and perhaps a few others on the subject of server-side tracing; by using a server-side trace, you can implement a low-impact means of monitoring specific events occurring on the server. In your case, you can monitor the queries used by the application, and determine their construction to see if they're faulty.
For a quick rundown, use SQL Server Profiler to create a trace, stop the trace (File -> Stop Trace), then export it to a .sql file (File->Export->Script Trace Definition-> For SQL Server 2005/2008). Open the .sql in Management Studio, configure it as needed, and run the trace. Be sure to note the trace ID provided to you; you'll need to use that later to stop the trace through SQL (EXEC sp_trace_setstatus @traceid, @state for the basic statement).
There may well be a more succint way of doing this, but this method has been my go-to for finding and fixing more than a few problems. Hope it helps!
-
Viewing 2 posts - 1 through 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy