Quantcast
Channel: SQL Server Database Engine forum
Browsing all 15930 articles
Browse latest View live

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 Article


Affinity 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 Article


Maintenance 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 Article

How 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 Article

Is 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 Article


Backup 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 Article

How can I reach databaseB from default connectionstring to databaseA

Gents,I want to reach another database dbB,mywebsite uses astandardconnection stringto dbA (dbA anddbB are inthe same server),and I want retrieve data fromdb Busingsqlquery (queryis performed fromthe...

View Article

Copy a database from a production machine to a development machine - sql...

Cant take the production machine offline just to get a copy of it down to a development machine and replace the version that is there.So I tried the copy database feature today for the first time, and...

View Article


How 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 Article


The 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 Article

Image may be NSFW.
Clik here to view.

Database 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 Article

Full 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 Article

Mens. 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 Article


More 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 Article

I 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 Article


Image may be NSFW.
Clik here to view.

Cardinality 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 Article

Sending 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 Article


Database 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 Article

Export 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

Question about SQL Server PowerShell

Greetingscolleagues,I would likeyour support, I amrequesting aPowerShellscriptthat Ireturnas a resultthe list ofdatabasesfor an instancethat has alarger than 50GB.  Thanks"How many years can some...

View Article
Browsing all 15930 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>