Quantcast
Channel: Forum SQL Server Database Engine
Browsing all 15694 articles
Browse latest View live

PowerShell script to delete BAKs from mulitple child folders on a UNC share

Afternoon,I have been trying to roll my own ps script to accomplish a cleanup task but I am rather new to ps and am not getting the results I am needing.Here are the criteria I am shooting for:1....

View Article


SQL '08 R2 SP1 MSDB marked as SUSPECT

The drive our SCCM sql database resides on went south earlier in the week.  I recreated the drive (Vmware VM) and we restored the data from our back up software (commvault).  However when I try to open...

View Article


Not all colums are getting updated with "WITH (ROWLOCK)" is used in a update...

Hi we are using following query in our code ; except DESC1 all other values are getting updatedSTATEMENT : "Update Table1 with (ROWLOCK) set DESC1 = ?, DESC2 = ?, INSTR =?, GRP =? where ID = ? "Can you...

View Article

Sql 2008: sleeping thread,open transaction, open locks......

I can see from sp_who2, dbcc opentran, dbcc inputbuffer, etc  that our sql server has some sleeping connections that are holding open transactions (along with some X locks) for long periods of time....

View Article

When rows get inserted into sys.dm_db_missing_index_details

Hi  Experts,    I am looking for MISSING INDEXES, I am tring to find all missing indexes in my database for that I am using sys.dm_db_missing_index_details view. I would like to know about case or...

View Article


Data Conversion error in Azure SQL Server 2008 R2

Hi,I have two Azure envirironment (Staging and Test), both have same configuration as below:Version: Microsoft SQL Server 2008 R2 (RTM) - 10.50.1600.1 (X64)   Apr  2 2010 15:48:46   Copyright (c)...

View Article

Issue for listening Sql Server on non default port? Not able to connect from...

Hi All,I have setup a lab environment for SharePoint 2013 farm. There is a windows server 2012 domain controller, a separate database server and a application server.I have installed only named...

View Article

How to recover msdb database from suspect mode.

I have tried the following STEPS OF  commands to recover but in vain.STEP 1) EXEC sp_resetstatus 'MSDB' o/p Message :The suspect flag on the database "MSDB" is already reset.STEP 2)ALTER DATABASE MSDB...

View Article


What is elapsed time in return from Set Statistics Time

I have the following message when I run a simple query "Select Distinct Orderids from tblOrders"CPU time = 47 ms, elapsed time = 1692 ms. Other elasped times within the last 18 hours include 3198 ms,...

View Article


File System Failure DB Recovery

I have had a file system failure corrupt a .ndf file in a database.  I do not have good backups, I'm sorry, it's just not possible at this time.  There are plans to migrate off of this old...

View Article

Are you very knowledgeable about SQL Server Database Engine? Win love and...

NOTE: Entries are now closed for July. August entries should be added hereResults will be announced once the judges have posted their votes (in 7-10 days)  TechNet Wiki is looking for and celebrating...

View Article

One database out of several is slow on server - SQL Server 2008 r2

Hello,We are using SQL Server 2008 r2.  We have a server with several dbs on it.  As of a couple of hours ago one of the dbs started running REALLY slow.  Prevents users from accessing data when they...

View Article

SSIS the timeout period elapsed prior to completion of the operation

Hi allone day I have a database backup job full backup using maintenance plan, there is an error....Executed as user: SV123\SYSTEM. ...sion 10.50.2500.0 for 32-bit  Copyright (C) Microsoft Corporation...

View Article


Backup Plan

I have three SQL Server 2005 instances using Transactional replication.  They are all in Simple Recovery mode.  I have a daily full back up and hourly differentials running on a subscriber.  I also...

View Article

Deprecation of Trace -T272

Anyone knows if trace flag -T272 is going to be deprecated? I am using it to avoid the jumping of identity value in SQL 2012...

View Article


New Record Identity Specification

When using a stored procedure to insert a new record into a table which has an identity specification column, how do I return the identity value?

View Article

default database offline

Hi every one!I need your help to resolve a login problem. I am not able to login to sql server since my default database is offline (have done this accidentally in my laptop). Please guide me to login...

View Article


Error in database attach Error code:5105

Hi,    While attaching Database Error throws as below...Pls help me to overcome this.....   Error in attaching Database in sql 2000  Error 5105 Device Activation Error ,The physical file name...

View Article

Lock:Timeout

Hi,I'm using lock:timeout in SQL Profiler and traces and would like to identify moments where the user application stops because a lock:timeout.There is lock:timeout and lock:timeout (>0). Following...

View Article

SQL Server 2008 SP3 - Enterprise - Database snapshot

Hi All !I want to use database snapshots. I know how to create, drop or use them. But, some questions:- can I restore them on a different sql server ? (I want to use them for my team training)- can I...

View Article
Browsing all 15694 articles
Browse latest View live


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