Database File Placement and number of files
Database File Placement Layout?We are planning to implement a new SQL Server 2014 OLTP Database with a 1 TB Data file and 1 TB Log File. I am looking at the possible layout of the database files and...
View ArticleSQL Config / Scaling / Indexing
I am assisting on a project and we are in need of some SQL advice / direction.Background:This is a website designed to gather intelligence information and allow people to search on it. It will...
View ArticleSlow Database and Big number of Blocked Spid
HiOur DB was slow from yesterday. (some times is good and some times long waits)I Run sp_who2 And many Blocked spid found.Such as : n spid blocked by 54When I see 54 : in cmd column : "Awaiting...
View ArticleEvaluate Policies Error
HiI have tried this on two different installations of SSMS 2014. When I try to select Evaluate Policies on a registered server, I get the following error. It works on SSMS 2008...
View ArticlePolicy Management - Table References in Stored Procedures
Is there any way to enforce table references in stored procedures? For Example, we have stored procedures with a ton of different formats, "dbo.table", "table", "db.dbo.table", etc. Can we make it so...
View ArticleDeny Permission for an Object
Is any body know how can we deny an Object select Permission which have Sysadmin role.Please Advise me on this.
View ArticleTrigger
Hi All,I have a master table with after insert trigger on it.. When record is inserted into master table, the trigger fires and is captured in the backoffice table. In case the trigger fails, my record...
View ArticleBringing availability group's online during a quorum failure
Hey all,Experimenting in a local lab with an always on setup and have some questions. The setup is pretty easy. 3 node cluster with a file share witness.I've forcefully shut off two of the nodes...
View ArticleChanging from SQL Server 2014 Enteprise to SQL Server 2014 Enterpise Core...
Hi allI have a 3 node SQL 2014 Always On configuration running. We tried increasing the CPUs and ran into the message - found 24 CPUs but only using 20. This is due to the version of SQL 2014...
View ArticleDeny Security Permissions for a SysAdmin
Is there a way to deny Security Permissions to a login that has sysadmin? Unfortunately I have to leave the user as sysadmin. I trying denying alter any login and control server but that didn't work.
View ArticleSSAS Cube Processing fail with 'Communication Link Failure' error
Hello,we have our cubes in Server A and SQL DB resides on Server B (we are on SQL 2014), from last couple of days are cube started failing due to below error:[b]OLE DB or ODBC error: Protocol error in...
View ArticleReplaying deadlocks
I've been trying to assist some application developers with reducing deadlocks; for the most part (across hundreds of servers and applications) deadlocks are fairly rare, and where they do occur they...
View Articlecompatability level question
I just restored a 2005 db to 2012 and had to change it's compatability to 2012 because of some replication issue. My question is what would be the reason to not alway change the compatability to the...
View ArticlePage split case
There's one condition uder which SQL Server performs page split and I wonder why.Here's test script:-- create tablecreate table dbo.xe_page_splits_delete_me ( id int identity not null primary key, col...
View ArticleSSIS Issues after Master DB Corruption - "Please Recreate Master Key" When...
Hello All,Had a giant issue with master db corruption last night that caused some massive problems. After spending hours fixing it, everything is running except for some dtsx packages. When I'm running...
View ArticlePerformance counters keep dissappearing
I have an Alwayson group with 2 Nodes.The SQL Performance counters are always showing on the secondary, but the primary is inconsistent.I loaded the counters on the primary (unlodctr and lodctr ),...
View ArticleA single script or a single tool to get logins, server level / database level...
Hi,I am looking for some directions on building a single script to get logins, server level / database level permissions, users, roles, and securable in one execution. If you know of a tool that can do...
View Articleexecute 'Dynamic querie1' is a transaction ?
HiI have this command :Exec 'update .... insert ..... delete ..... insert ...'I Execute these command in one execution. exec ('...')Are these commands act as a transaction ?If one of them create error...
View ArticleDeleting Job history for particular time period
Hi,How to delete the job history for particular runs.Suppose if a job run 3 times/day. I want to keep the oldest information and delete the recent 2 runs history.
View ArticleTrying to get started.
Hello. I am returning to an IT career after taking time out to teach. I am looking to set up SQL Server on my windows 8.1 PC and do some refresher training to get back into the swing of things.I know I...
View Article