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

RESTORE DATABASE fails, but only if run from within TRY/CATCH block.

Hi everybody,I'm trying to restore a DB using the following script:BEGIN TRY RESTORE DATABASE [20130717_SERVER4_NS_dat] FROM DISK = N'c:\NS.bak' WITH FILE =1, REPLACE, MOVE N'NS_dat' TO...

View Article


Detect Windows server memory from SQL Server SSMS

HelloIs there a way to detect what is the memory on a particular server by querying from SSMS? I am not looking for 'max server memory' of SQL, but trying to find out if there is a way to find out what...

View Article


RestoreDatabase Failed

Hi,I am getting below problem while restoring the AdventureWorksDW(2008 R2 Version) to 2012TITLE: Microsoft SQL Server Management Studio ------------------------------ Restore of database...

View Article

Memory is not cleared when big batch job runs in sql server 2008R2

Hello,We have migrated to sql server 2008R2 and I have set up my MAX Memory 32 GB and MIN left a default 0.When I was watching performance while running big batch job, it was done within 30 minutes but...

View Article

how to resolve "insufficient memory usage" in sql server 2000

I have one sql 2000 server in my environment and now getting an insufifcient memory problem.Please help me how to resolve it.Details:SQL server :- 2000- SP4 OS:- win2k3 server- SP2 Total 3.25 GB RAM...

View Article


How to identify the spike in CPU utilization due to concurrency in SQL Server

Hi All,I have a Windows 2012 server  which is 2 core processor with 16 logical cores as per sys.dm_os_sys_info and max_workers_count of 704. It has two sql server 2012 instances.The default instance is...

View Article

Image may be NSFW.
Clik here to view.

unable to create the user database...

hi team,we are unable to create the user database, we are greeting the bellow error.

View Article

Recovery of corrupt/lost .ndf file. No backup of database

Hi,Firstly, I am no database expert, no pardon any idiocy...I noticed that my database was no longer working and upon investigation noted that three .ndf files were missing. These files do not exists...

View Article


SQL Server backup issue

We are running SQL Server 2008 R2 SP1. There is a scheduled transaction log backup using SQL Server maintenance job that runs at a certain time of the day. The job runs fine on few days and fails few...

View Article


How to install SQL server 2005 Developer on windows 7 Home premium

i can not able to install SQL server 2005 Developer on windows 7 Home Premium.i have wimdows 7 Home premium, 64 bit operating system, 4 GB RAMi can not able to install SQL server database engine and...

View Article

Failover 10,000 databases?

Hi All,It may sound like a clustering question but it's also service restart one.We have a Windows 2008 cluster with one instance of SQL Server 2008R2. There are 10,000+ databases on it. While user_db...

View Article

migration from one instance to another

how to promote store procedure from dev instance to test instance and give external and internal permission?when we promote is it necessary that there should be same database name in both...

View Article

can't attach database 2008 R2

TITLE: Microsoft SQL Server Management Studio ------------------------------ Failed to retrieve data for this request. (Microsoft.SqlServer.Management.Sdk.Sfc) For help, click:...

View Article


Restoring issue,

Hi,we have one database called (A) and one backup file(b.bak),we are restoring the backup file into existing database(A) WITH REPLACE option  that time we are getting bellow error."The file 'C:\Program...

View Article

Changing column in NOT NULL. Why is there so much transaction log activity on...

Hi guys,the setup is as following: SQL Server 2008R2, recovery model FULL in order to better track what's going on in the transaction log.CREATE TABLE dbo.justnumbers(id INT IDENTITY, number FLOAT...

View Article


Do I need to shutdown SQL server (stop the service) before I reboot a windows...

Hello, I would like to know if I need to stop the SQL service (shut down SQL database) before I reboot a SQL windows server?Thanks. Tiffany

View Article

SQL Server Profiler???

Hi guys, Quick question.  Can SQL Server Profiler help you find what user ran what queries against a table?  Can it help you find who deleted data from a table?

View Article


How to reset an Identity column using SQL server Management Studio

 I found this neat trick that means I don't have to write a whole bunch of SQL. If you want to reset the identity values for a table, because you have deleted and added rows, and now want to re-number...

View Article

Physical Memory Issue

Hi Team,one of my server physical memory usage is very critical at particular time only,how to find the that particular time what are session are running and which session having more physical memory...

View Article

Data Collector Database growing in size!!

Hello Gurus,Recently I created a data collector data base using the Data Collection feature of the 2008 R2. The bad news is the DB I use to collect the performance data is growing in size very bad and...

View Article
Browsing all 5123 articles
Browse latest View live


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