SQL agent configured to call a SP
All,My problem scenarion is:"I have a SQL agent job setup that calls a SP which collects all data and sends a report to some email ids via msdb.dbo.sp_send_dbmail.The job is scheduled to run daily once...
View ArticleSQL Server 2008 + .Net Framework 4.0.
Hello,We have SQL Server 2008 SP3 with cumulative update 6 on a cluster server.Our storage device is DELL equal logic.Due to some storage issues, we would like to upgrade the DELL HIT kit (=DELL...
View Articledatabase size and database backupsize is difference ?
hi all.,i have one database name:Athis A database full size is 2.gb finding the size [sp_helpdb]same A database backup size is 1200 mb finding backup file [latest backup file] why difference is happen?
View ArticleCopy database
I am trying to copy a database from one sql server to a network server to my pc. The problem is I cann't access the network computer through windows explorer, so I cannot use detach/attach or...
View ArticleCommit_Table WaitType
We experience periodic slowness on queries pulling changetracking data through the ChangeTable function. We are on SQL Server 2008 R2 version and CU updates to 10.50.2811, and in SnapSHot isolation....
View ArticleProblems with the "EXECUTE AS" Clause in Stored Procedures
Hello ForumI'm having issues with the EXECUTE AS with stored procedures. Esssentially I have ended up creating a new user, giving this user execute permissions on both stored procedures and giving the...
View ArticleBind variables in sql server
Is there any bind variables in SQL Server same as Oracle?Thanks
View ArticleSQL 2005 Copy database - doesnt create trigger on destination?
I just used the copy database now and after it completed, i noticed that a trigger is missing from a table. Does this feature not copy triggers over to the destination?
View Articletempdb Log Filling - Cannot find how or what
Every couple weeks, the tempdb LOG fills and SQL Server is cycled to clear it out. It happens very quickly - everything is peachy, then BAM! Upgrading to SQL 2012 is the most significant change (I...
View ArticleOPTION (SHRINKDB PLAN)
What would have caused these kind of queries to appear in recent expensive query window in the activity monitor? The event that happened when I saw this query was, our dB drive ran out of space and we...
View ArticleError -2147217871 Timeout Expired on Update Command
Hi All,I have an update command within vba that occurs on worksheet_change of a workbook. It works by once something is typed into Excel a connection to the database is opened and I grab variables from...
View Articlewhen option(recompile) hurts
OK now, I have a moderately large and ugly dynamic query from the entity framework coming in, and I thought I'd try playing with it. I added a few indexes and took it from 150++ seconds to about 10...
View ArticleLinked Server is not working from Sql Server Agent
Hi All,I have two sql Server instances(ServerA & ServerB) with same version(SQL Server 2012 Enterpraise edition) and created a linked server on ServerA to access ServerB.I can browse the ServerB...
View ArticleRestored master not restored msdb now have error
Some time ago I have server failure and have restored master databases and all user databases. I have not restored msdb database. The msdb database is default after clean install of a server. Now I...
View ArticleSQL Agent - what are some best practices with regards to job history, logging...
What are some common good ways to handle capturing error information. The error will likely get written in the job history, but if a server is running several busy jobs, your job history might get...
View ArticleMonitoring Disk Space Using an Alert
I am on SQL Server 2012. It is installed on a VM. I would like to create an alert that monitors the disk space on a drive. I would like to monitor Drive D when the free space drops below 3GB. I...
View ArticleUnable to Unzip SQL2012 SP1 CU4 file - 464142_intl_x64_zip.exe
Hi, I have been trying in vain to unzip this file 464142_intl_x64_zip.exe which is part of the just released sQL2012 SP1 CU4. I get "This self-extracting zip file is part of a multidisk zip file....
View ArticleAdd an index, kill performance
Just one for the books. Have a fairly long SP with some nasty complex select statements, have our "big table" at 6m rows with about 28 indexes, trying to tune it up for some slower cases.So, I add a...
View Article