Quantcast
Channel: Fórum SQL Server Database Engine
Browsing all 15680 articles
Browse latest View live

SQL 2012 database stuck in Recovery Pending status

Hey all.  Thanks in advance to anybody that can please help me.  I have a SQL cluster which ran out of disk the other day.  I threw plenty more disk at the SAN.  However, 1 of the databases came back...

View Article


How The Query display the resul

HI ALL,How the query give the result.select * from BranchTable data isDENABANK1 1900-01-01 00:00:00.000 ANDHRABANK2 1900-01-01 00:00:00.000 ICICIBANK       3        1900-01-01 00:00:00.00--1--declare...

View Article


Blob data pages have a lot of unused space.

I have a table with blob data that has a truckload of unused space that I can't get rid of.  SELECT * FROM sys.dm_db_index_physical_stats    (DB_ID(N'Test_dbname'), OBJECT_ID(N'tableName'), NULL, NULL...

View Article

Updating many statistics on the same table quickly.

We have a table which has close to 400 columns, about 950 million rows and 3400+ partitions. There are 4 statistics created with indexes and another 40+ column statistics. When I tried updating all...

View Article

Sliding Window Partition Left Range

Hi All,I am in a tight time line and need some help to achieve it.below is the senario1. Create Database CREATE DATABASE [SPICA] CONTAINMENT = NONE ON  PRIMARY ( NAME = N'SPICA', FILENAME =...

View Article


SQL Server 2012 and audit data

Hi,I am trying to implement audit on SQL Server 2012. Everything went fine as per the documentation, except that the events I monitor:( a select statement on som tables, ) are not recorded.What am I...

View Article

how to get OS available memory & total memory in sql server 2005 & 2000

how to get OS available memory & total memory in sql server 2005 & 2000.sys.dm_os_sys_memory is only working for sql server 2008.

View Article

Running DTS package through job in SQL Server 2008

Hi,I have imported DTS packages from SQL Server 2000 to 2008. Under Management-Legacy they show there. I already changed connection strings before importing. I want to run these dts packages through...

View Article


SQL Agent Jobs Fails

Hi All,The job failed.  Unable to determine if the owner (BI\Dev) of job FirstDataCreditCardCBC has server access (reason: Could not obtain information about Windows NT group/user 'BI\Dev', error code...

View Article


SELECT statement leaving open transaction causes blocking

Hi all,I'll be interested to see if I get any responses on this at all, but here goes.I have a user that runs a very simple statement from SSMS:select  ContactID, AddressID, * from dbo.Contact where...

View Article

Inserts taking longer time

Hello,I am noticing that the inserts are slow on our production. I started a sql profiler trace to see which inserts are taking longer time to complete. A bunch of inserts appear to complete around 700...

View Article

Display Synonym names

Hi,In SSMS, query analyzer, when I write select * from .... it does not display tables/synonym. I think it should display table/synonym name when I start writing select * from then it should show table...

View Article

script level upgrade for database 'master' failed because upgrade step...

Greetings. I recieved this error when attempting to restart SQL Server 2008R2 after installing SP2. The install claimed it was successful upon completion, but then wouldn't restart.There are many posts...

View Article


SQL 2005 Jobs randomly fail with authentication error?

I dump the tran logs every hour and  am getting random failures of the job to authenticate? Owner is sa, so how can it fail? No system or application event errors related to this. We have already...

View Article

Maintenance Plan authentication issue after AD Migration

We have a Windows 2003 server running SQL Server 2005 that was provided to us pre-configured by our point of sale system provider.  We had to move this server manually from an NT4 domain to an Active...

View Article


I O usage

Recently after a data center outage upgrade, our network people are troubleshooting some SAN I/O issues.One thing they want to find out what causes the big I/Os, and ask me also as a dba to provide a...

View Article

2K8R2: Merge statement bug? A severe error occurred on the current command....

version is:Microsoft SQL Server 2008 R2 (SP1) - 10.50.2811.0 (X64)   Apr  6 2012 01:59:29   Copyright (c) Microsoft Corporation  Enterprise Edition (64-bit) on Windows NT 6.1 <X64> (Build 7601:...

View Article


How to recover database from .mdf file

create a database ofequal size to the one you're trying to attachshutdown the server (Stop)swap in the old mdf file (replace new .mdf file with .mdf file to be recovered )Location: C:\Program...

View Article

SQL Server Maintenance Plan on a Network Drive

Hi,I am using SQL Server 2008 R2 and trying to do Maintenance Plan for database backup on a network drive.The network drive is based on CIFS that required us to login with username and password. I am...

View Article

Why SQL Database files ware called Virtual File

Hi,Why SQL Database files ware called "Virtual File". Like sys.dm_io_virtual_file_stats - defination of this DMV is "Returns I/O statistics for data and log files. This dynamic management view replaces...

View Article
Browsing all 15680 articles
Browse latest View live


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