I have a .NET 1.1 application running on Windows XP and with SQL Server 2000 Service Pack 3. The application uses Enterprise Library Data & Exception Handling dlls.
When I submit a form which calls a few stored procs & finally execute an INSERT into a table, the sqlsrvr.exe process keeps on increasing up to 300-500 MB. The form takes more than 10 mins to execute.
The same page in normal condition, takes not more than 1 min to execute.
What could be happening here, and how could it be fixed?
The Sql Server process consuming that amount of memory is normal. SQL Server will consume a large amount of memory, but will give it back under OS memory pressure (based upon the SQL server configured min and max memory settings)
If your query is slow, look to your SQL queries and/or missing indexes.
The symptom you describe sounds like it may be caused by parameter sniffing. Ensure your statistics and indexes are up to date, and perhaps post your query.