How is it my table has two heaps?
Hi Everybody,We have a heap table 142 records in it. There are no non-clustered indexes on this heap. Oddly, I'm getting two rows returned from sys.dm_db_index_physical_stats, and each row reports...
View ArticleAffinity Mask Error
Hi,I have a SQL 2005 server which is generating this error:The affinity mask specified does not match the CPU mask on this system.It will do this on any sp_configure change. It is stopping me making an...
View ArticleMaintenance plan failing on index rebuilding.
I've created a maintenance plan with the wizard to check integrity then rebuild all the indexes in the database. When it runs it fails. It goes through data integrity okay, but starts to build 4...
View ArticleHow to install SQL Service pack automatically in 100+ servers?
I have around 100+ SQL servers (2005/2008) in my environment. I need to install service pack. I don't want to install service pack manually in 100+ servers. Is there any way I can install service pack...
View ArticleBackup errors in SQL log
We recently found there are quite a few error logs in sql log: Message BackupVirtualDeviceFile::PrepareToFreeze: failure on backup device '{4FEEA406-DD73-47D8-BC10-0ADAD6A44D6D}1'. Operating system...
View ArticleIs there a way using policy based management to determine if a database is...
Specifically, on SQL 2008 R2, I want to check every database and if the recovery model is FULL, I want to ensure that it's also configured as the primary DB for log shipping.I've looked through the...
View ArticleSQL Services fail to start after WSUS windows updates whether they have SQL...
SQL Services fail to start after WSUS windows updates whether they have SQL updates or not.#### Application Event log - Windows Server 2008 R2 Standard - SQL Server 2008 R2 EE #### 2013-02-19 - 3:33:13...
View ArticleHow can user view DDL in SS2008 R2?
I have a user who has been granted db_datareader in a database and nothing more. She is reported to be able to use Studio to right-click on an object (table, proc) and view the DDL. I have not...
View Articlesql stats appear to not auto update for a given table
We have a table (D2545) that appears to not be regularly updating its statics which leads to inefficient query plan/cardinality issues. Global statistics settings for [AcmeIndex]: Automatic update...
View ArticleTempdb Log showing a -5.5MB available space available - .5MB allocated
Not sure why our tempdb log is showing a negative amount for available space. We had this situation for the data and opened up a separate data file for each of the 24 processors. Should we do the...
View ArticleThe provider ran out of memory
When I try to open excel file, I get the following error(the same is if i try it with linked server):SELECT * FROM OPENROWSET('Microsoft.ACE.OLEDB.12.0', 'Excel 12.0;Database=c:\Temp\excelFile.xlsx',...
View ArticleDatabase Mail sent_date 5 hours after send_request_date
Why would a mail take 5 hours to send out? Is there anyway to see how many times it retried? Or is there some other method to track that?John M. Couch
View ArticleFull database backup without affecting any other backup devices already...
On SQL 2005I want to grab a full backup of my production database to use on my development server. The admins on my team already have a backup device configured and I dont want to affect that, I just...
View ArticleMens. 102, Nivel 15, Estado 1, Línea 3 Sintaxis incorrecta cerca de '('.
creo lo siguiente:CREATE PROCEDURE [dbo].[COR_ConsumosMensuales_ConSaldo] @cTipoFiltro char(4), @cFiltro_Ini varchar(500), @cFiltro_Fin varchar(500), @cFiltro_Bod char(600), @nAncho numeric(6, 2) =...
View ArticleMore backup questions - move option, does it move or just copy?
http://msdn.microsoft.com/en-us/library/ms186858(v=sql.105).aspxLooking at this example. So after backing up the database [AdventureWorks2008R2], we then do a restore to a new db [TestDB] using the...
View ArticleI got above error whenever my server rebooted only.
Getting error: BackupDiskFile::CreateMedia: Backup device 'C:\Backups\SharePoint\spbr0004\00000008.bak' failed to create. Operating system error 3(failed to retrieve text for this error. Reason:...
View ArticleCardinality estimates on a parallel join are wrong
Hello everybody,I'm having a problem with pretty simple query where the cardinality estimates seems to be off and usual methods that I knew for this kind of problem don't help.The query: SELECT...
View ArticleSending database backup to vendor
Hi,We have one application that have some issues. Vendor ask us to send database backup to test in his environment.I am not sure what is standard practice or what other DBA's are doing. Do we need any...
View ArticleDatabase access
I am a freshman in this field and don't know much about how it works... but is there a way to access the database server using an URL address? Is anything required on the database server to access thru...
View ArticleExport the data form tables not from views sqlserver 2008 R2 failed?
I have a requirement.Export the data between the databases which both databases having same tables,views,procedures....When i select the option 'copy tables or views...'.it is selecting all(both views...
View Article