Error in Database
HelloMy code is Use DBInMemoryOLTP Go ALTER DATABASE DBInMemoryOLTP ADD FILEGROUP [DBInMemoryOLTP_data] CONTAINS MEMORY_OPTIMIZED_DATA GO ALTER DATABASE DBInMemoryOLTP ADD FILE ( NAME =...
View ArticleTable creation
Code :CREATE TABLE [techforum_member_list]( [TfmID] INT NOT NULL PRIMARY KEY NONCLUSTERED HASH WITH (BUCKET_COUNT = 1000000), [Name] NVARCHAR(250) NOT NULL INDEX [IName] HASH WITH (BUCKET_COUNT =...
View ArticleGetting Error
USE MyIMOLTP GO IF EXISTS (SELECT * FROM sys.procedures WHERE name='usp_DemoINMOLTPsp') DROP PROCEDURE usp_DemoINMOLTPsp GO CREATE PROCEDURE dbo.usp_DemoINMOLTPsp WITH NATIVE_COMPILATION,...
View ArticleSQL Server Memory 2012
Hi All I have a SQL 2012 SP2 installed, and the memory it consume is extremely low!!!! how could this happen?even management studio can take more !!!!!!
View ArticleProblems with Backup Job
So I have an issue with a diff maintenance plan job. It's showing that the job fails, but when I check the sql logs I see no error telling me what really happen, only that it failed. I also went to...
View Articlesql backup best practice on vms that are backed up as a complete vm
hi, apologies as i am sure this has been asked many times before but i cant really find an answer to my question. so my situation is this. I have two types of backups; agent based and snap based...
View ArticleHeavy Locks on the Entity Framework Database
Dears,We are having a database which was developed using a Entity Framework, the web application was built on the top of Windows Work Flow Engine (WWF) and there are some stored procedures given below,...
View ArticleHow to optimized Multiple CASE statement
Hi.. Somebody please help me out to use most optimized Multiple CASE statement in below example.. Select CAST(COUNT(DISTINCT(CASE WHEN period_id <350 THEN period_id END)) AS DECIMAL(30,0)) AS...
View Articlesp_who2 , spid's appearing multiple times
Hi All,Today an issue was reported of slow performance. When I ran sp_who2 , it was found that there are 5 spid's which were occurring 32, 32,32 and 129 times. When I queried sys.processes wait type...
View ArticleAWE Memory Access Sql Server
Hi Experts,Kindly let me know how sql server modifies 8k pages in AWE memory on 32bit system.Regards,Manish
View ArticleCannot start SQL Server 2008R2 service on Windows 7 laptop
My SQL Server instance on my laptop was working fine. After bringing my laptop home last weekend and connecting through my work's VPN and then bringing it back to work on Monday, it now cannot start...
View ArticleSudden slow down of job execution times.
A scheduled job that normally runs in under 10 seconds will suddenly take hours to complete. The amount of work the job can do is fixed and the issue is not load related. Checking the status of the...
View Articleminimal logging insert statement on non clustered index table
I understand that minimal logging can occur on a non clustered indexed heap as long as http://technet.microsoft.com/en-us/library/ms190422(v=sql.105).aspx*not replicated*tablock is used*table is...
View ArticleDBCC OLEDB Bottleneck?
Is there anything I can do for a OLEDB wait type? After restarting my instance, I started a DBCC checkdb on a 200 GB database that uses the spatial data type. A couple of tables have 250 million...
View ArticleQuestion on query causing timeouts and CXpacket
Hello,I am using SQL Server 2008 R2 SE with 24 processors as shown below:This is a standalone non clustered server. The MAXDOP setting is 8 as shown below:These settings have been the same for more...
View ArticlePartitioning
Hi,I was wondering if someone could help me with a partitioning question. I looking to create a partition strategy and would like to know if its possible to have multiple partitions per file group? I...
View Articlerestoring a database from a different database
I want to restore database new2db from newdb. both dbs are on different sql server instances.I have backup of newdb called newdb_july.bkup.I ran the below command : restore database new2db from disk =...
View ArticleCan someone confirm the architecture of this file, preferably Microsoft guys?
The file in question is:C:\Program Files\Common Files\System\Ole DB\msdasql.dll mysorian 32-bit or 64-bit?
View ArticleHow to resolve the issue of a database that was in Recovery Pending mode
I am running Microsoft SQL Server 2012 on a Windows 7 Home Premium OS. I encountered a state of a database being in "Recovery Pending" mode. I am going to go over the details of how this happened. I...
View ArticleExtended events returning CDATA
Hi,I created a XE session in SQL Server 2008 to capture deadlocks (xml_deadlock_report), but the result is returned in CDATA inside the value field.This way became more difficult to query the result...
View Article