Why are DDL changes to a temporary table not allowed within a snapshot...
Why are DDL changes to a temporary table not allowed within a snapshot transaction, especially when the temporary table is created within the snapshot transaction? I understand why DDL changes to a...
View ArticleUpdate PDF file in FileTable
Hi- I'm new to working with FileTables and am wondering if the following code (which saves annotations to a PDF file in the FileTable with changes that are made through the PDF control) makes sense. My...
View ArticleMemory 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 ArticleSQL Server 2008 R2 Express service crashes on Windows Server 2012
I am trying to deploy our application that uses SQL Server 2008 R2 Express (SP1 I believe) to a Windows Server 2012 Standard virtual machine (using VMWare Workstation 9.0.2). The SQL Server Express...
View ArticleHow 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 ArticleMonthly Partition Implementation for daily Load & Switch IN has to work
Hi All,Any one has Implemented Monthly partition on main table & Load the Temp table daily and switch in this data on daily basis. What I want to ask that How will I switch In data for monthly...
View ArticleChange the Default backup location in sql server 2005
Hi Guys,i want to change the default location of backup in sql server 2005.do we have any option in 2005 other than to change in the registry?Thanks in advance....
View Articlehow 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 ArticleLinked Server error: Login Failed for user 'NT AUTHORITY\ANONYMOUS LOGON'
Good afternoon,I have the following issue that i can't seem to "fix":I have 2 instances: Instance A (primary databases for my application) and Instance B (relational databases for Reporting...
View Articleonline index rebuild of a single partition
Why does sql server not allow online rebuild of a single partition of a partitioned table. We have tables with over 3300 partitions and few of those partitions get heavily fragmented and the only...
View ArticleRESTORE 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 ArticleSQL Agent - UPDATE OPENROWSET not working
Hello,I've deployed an SP to export some data to an Excel sheet (using OPENROWSET and Microsoft ACE provider) which works flawlessly when launched it from a query window using my admin credential....
View ArticleData copy across Linked Server much slower than expected
I'm trying to retrieve data from a SQL Server at a remote site running SQL2008. There is a query involved, but to isolate the issue I've materialised the data, so all subsequent tests are now doing a...
View ArticleService Broker Manager issued a SQL shutdown
I have SQL 2008 R2 Base (10.50.1600) installed on a server running Windows 2008 R2 (no service pack).SQL log shows the final DB backup completed at 12:24AM. There is nothing in the log until 3:18AM...
View ArticleAzure SQL Server Pre-Login Handshake Error
I'm attempting to connect to a SQL Database instance hosted in Azure via Visual Studio 2012 Ultimate. Everytime I try to connect I get this lovely message, "A connection was successfully established...
View ArticleChanging 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 ArticleSQL 2008 R2 server with I/O requests taking longer than 15 seconds
I am currently working on SQL server 2008 R2 sp2 on a Vmware server. Everything is working fine pretty much, but when my evening server maintenance kicks in I am intermittently getting the following...
View ArticleRecovery 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 ArticleAutogenerated ID in Merge (Inserting row)
Hi,I want to insert using the Merge. However, I need to have a column, much like as an "identity" column that does the increment for the sequence number automatically, without looping through for bulk...
View ArticleSQL 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