Does it cost CPU to return results to client?
I have a modest select statement that returns about 7k small rows, maybe 200k of data.When I run it (in SSMS) it costs about 1.5 seconds of CPU.If I wrap the select in a count(*) so it just returns a...
View ArticleSQL Server 2005 does not accept connection
I have develop a system for my client the system was run smoothly but in yesterday we encountered a connection timed out from every remote machine that connect to this server.That was not happened...
View ArticleDrop partition
In sqlserver 2005, If i have partitioned my table based on date for each month, how do I drop partitions having data older than 3 months. This is to do the archiving the old data as we don't want old...
View ArticleRecovering 1TB of unallocated space?
Please read the post well. I posted somewhere and most of the posters assumed that the 1TB table is there. It's not. Also, the size of the MDF is 1.75TB, the HDD has 1.83TB used and 65.8GB is free.So...
View ArticleThe query has been canceled because the estimated cost of this query exceeds...
Hi Experts, I am getting below error while executing the stored procedure. The query has been canceled because the estimated cost of this query (3258) exceeds the configured threshold of 2500. Contact...
View ArticleHelping interpreting SQL 2008 deadlock graph
One our of ASP.NET web apps was a deadlock victim while trying to update a column value on a record (batch table in our case). The app tried to update a column value for a single record to reflect an...
View ArticleVS 2012 Pro - How to print values in Textbox
Is it possible to print the property values of a textbox?ecb
View ArticleSQL Server Agent Jobs not running 'SQL Server Agent is not currently running...
Hello All,We have sql 2008 R2 SP1 A/P cluster running on VM.SQL Server Agent jobs are not running. If I manually try to run the job it gives below error'SQL Server Agent is not currently running so it...
View ArticleExisting Table Partition
Hi,We have a existing table and it has two date columns (Datatype - Datetime) and it's very big table and we would like to make a partition table. This is a frequently accessed table. We need partition...
View ArticleSQL Server becomes Unresponsive
Hi, We are having this issue on our prod server from yesterday. Everytime this happens Server becomes unresponsive and I have to reboot the machine. Looks like this is being caused due to high...
View ArticleSQL Express database file auto-creation error but web-config changed to Azure...
I have an app that is based on the new MVC4 template with SImple Membership provider.I've deployed the app to an Azure website and changed the connection string from a local express-database to an...
View ArticlePowershell to import csv file
Hello all,Running sql 2008 sp1New to PowerShell. Can someone please check the syntax and tell me if something doesn't look right.Trying to load a csv file into a tableThe csv file is comma delimited...
View Articlehelp shredding/reading system health report
How does one best read the XML from the system health report on SQL 2008?Someone must have written some nice shredding code, any pointers or posts to such?Thanks.JoshSELECT @@SERVERNAME as servername,...
View ArticleQuery Text changing
Hi All,under what senario a query text sent from an application changes in SQL ServerQuery sent from app "SELECT * FROM xyz where col1=3434" with in SQL Server i found sp_executesql "SELECT * FROM...
View ArticleError in SQL Server 2005 and Database Stop Responding
Dear All,Today i saw error in SQL Error Log as Message LazyWriter: warning, no free buffers found. Memory Manager VM Reserved = 29658216 KBVM Committed = 29639088 KB AWE Allocated = 0 KB Reserved...
View ArticleSQL SERVER 2008 performance degradation
HiI'm monitoring a DB and it seems that after 4/5 days, everything starts running very very slow, i.e. an SP which normally takes 10mins will not execute in an hour. Restarting the service solves the...
View ArticleFind PID of cmd which is called from SQL
I have a set of SQL jobs which call same exe with different parameters using xp_cmdshell. I have a situation where I need to kill on of the jobs and in order to kill it I need to kill the process...
View ArticleFile Table queries to delete t-log files
we currently have some C# or C++ code that deletes t-log backup files from disk after they are x number of days old. is it possible in sql server 2012 to use the new file table feature to write a...
View ArticleCannot connect to SQL 2008 R2 from remote computer
I apologize in advance if i have not properly posted my question, this is my first time hereI have a new computer with a clean install of Windows 7 pro x64 and have installed SQL server 2008 R2 express...
View Articlelogical read, physical write in profiler data columns
In the profiler, there are data columns called "Reads" and "Writes". According to BOL, "Reads" are logical reads and "Writes" are physical writes.Is there any reason we don't have access to both...
View Article