I can't attach .mdf operating system error:5
Hi everyone, I searched this error in form and internet but none of them solve my problem.I have windows 7 ultimate edition and ms sql server 2005 management studio & sql server express 2005.I have...
View ArticleSQL Service terminated
We have a 3 node cluster with 2 instances of SQL.Each instance runs on a primary node & both instances share a failover partner.Today we ran Windows Update on the failover node, then moved one...
View ArticleAllow everybody to access a db ?
Hi all, How do I allow everybody (NTLogins and SQL Users) access to one table in a specific db ?Thx for your feedback. acki4711
View ArticleProfiler shows minimum 15ms quantum of CPU time?
We have a "chatty" application that makes a lot of sub-5ms calls to the database.Everything is running as maxdop=1 on a 2 core dev system.I only just noticed that profiler is reporting a lot of these...
View Articlewhy does MEMORYCLERK_SQLOPTIMIZER take lot of memory and how to clear it?
Hi guys, The following is my issue: 1.Microsoft SQL Server 2008 R2 (RTM) - 10.50.1600.1 (X64) Apr 2 2010 15:48:46 Copyright (c) Microsoft Corporation Enterprise Edition (64-bit) on Windows NT 6.1...
View ArticleAre you very knowledgeable about SQL Server Database Engine? Win love and...
TechNet Wiki is looking for and celebrating the best of the best!Is that you? Do you consider yourself an expert, authority, or just pretty good at this technology?Show us your forum solutions and...
View ArticleRebuilding/Reorganize indexes based on avg_fragmentation_in_percent right...
On weekly basis I rebuild all indexes of a database. Due the continuously grow of the database size the duration of the rebuild operations exceeds the available maintenance window of 5 hours.Therefore...
View ArticleProblem attaching a database
Hello, I have made a database in SQL Server 2005 Developer edition. I tried to attach it to a SQL Server 2005 Express Edition but I coundn't. I can attach and dettach it to the developer edition...
View ArticleFullscans / second reaches "critcial" state according to 3rd party monitoring...
We have a third party monitoring tool that claims our production sql server has reached a "critical" number of full scans\sec. Assuming this is true how can I determine what database(s)\table(s) are...
View Articlethe TEMPDB properties in the "Files" option show the "Initial Size (MB)" as...
Also, when I look on the file system, the tempdb mdf file is 27GB.... So why is the files option showing 8MB????Also, this query says it is 8MB as well, but on the file system it shows up as 27GB? We...
View ArticleUnable to create more than 65536 rows in SQL 2012 table
I am wanting to create a numbers table that will populate 1,000,000 numbers. I will be using it to help create a calendar table. When I ran the script, it only created 65536 rows. I have not been...
View ArticleReORG causing Transaction log grow in simple mode
sql server 2008 R2 , sp1, 64 bit enterprise edition.My database is in simple recovery model.It is a publisher.While running reorg on a big table , transaction log grows big . When I checked...
View Articleupdate performance
i am trying to update 300, 000 records using a join and a condition, it takes around 11 min, the time is too lons, i want it to be in seconds,the schema of two tbles is given below:pat hospid...
View ArticleHow to convert SQL cluster server to Virtual Machine
Hello All,Could you please help me in providing information of what all steps needs to be taken care while converting SQL Cluster to Virtual Machine.- We need to configure Cluster even in VM with...
View ArticleJust how well does SQL Server use a three-field clustered PK?
We have a little utility table, "little" with about 100k rows, that has a PK with three fields, then half a dozen other fields. This morning at 4AM two ETL jobs managed to deadlock over it. We can't...
View ArticleCan't Reduce VLFs
Hi guys, I have a job that tries to make sure every DB has < 50VLFs. It shrinks the log then regrows it to its original size in 1 step. I have one DB that I can't get < 300 VLFs. I think its...
View ArticleUsage of CTE in a nested select
Hi,Im very new to CTE. I have a nested select statement for CTE like the one below but i keep hitting this error:Msg 1033, Level 15, State 1, Line 13The ORDER BY clause is invalid in views, inline...
View ArticleClustered Index Ordering & Insert Speeds
Hi,We used to have a clustered index which consisted of 5 fields, this was ordered incorrectly which meant new inserts caused a lot of bad page splits.This CI was reordered to be correct and that...
View ArticleMaximum memory on SQL Server 2012 Standard
Dear everyone, I would like to check with all of you about maximum memory on SQL Server 2012 Standard. If refer from http://msdn.microsoft.com/en-us/library/cc645993.aspx that said SQL Server 2012...
View ArticleSQL: Message, servirity, state
Hi AllWhere can I get all the SQL message , servirity and state list, and their meanings?
View Article