Quantcast
Channel: Forum SQL Server Database Engine
Browsing all 15694 articles
Browse latest View live

Rebuilding/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 Article


Problem 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 Article


Fullscans / 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 Article

the 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 Article

Unable 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 Article


ReORG 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 Article

update 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 Article

How 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 Article


Just 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 Article


Can'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 Article

Usage 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 Article

Clustered 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 Article

Maximum 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 Article


SQL: Message, servirity, state

Hi AllWhere can I get all the SQL message , servirity and state list, and their meanings?

View Article

How to pass parameter values to asmx web service through a stored procedure...

Hi,Can anybody please help with this?I need to pass paramter value to my web service which I have hosted locally through a stored procedure. But I am not able to find a way to use that URL to pass...

View Article


content

Hi all,what content contain the ldf in sql server?what content contain clustered index in sql server?

View Article

How to connect different SQL servers without using linked server connection...

Hi,We're trying to read data from another SQL Server through our SQL server but we're not allowed to do that using Linked Servers. Please suggest an alternative here as the DBA says Linked Servers are...

View Article


Is it ok to set the restricted growth of system database?

Is it ok to set the restricted growth of system database?Thanks

View Article

SQL 2012 tempdb initial size

I install SQL 2012 in cluster and cofigure tempdb: 1 file per core, initial size 1024Mb, but after SQL automatic change initial size to different value. Why SQL automatic change initial size for...

View Article

Check scheduler_id's for parrallel queries using Extended Events

Hi,we followed the rule to set the maxdop = numer of schedulers per NUMA node. I now want to check how often parrallel queries can use different schedulers within the same NUMA node. Following scripts...

View Article
Browsing all 15694 articles
Browse latest View live


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