Quantcast
Channel: SQL Server Database Engine forum
Browsing all 15930 articles
Browse latest View live

'Could not allocate space for object 'dbo.SORT temporary run storage'

Hello all,I’m trying to transfer/transform some data from one table to another, both on the same database. The source table holds 92M records.To do so I'm using the next statement: INSERT INTO...

View Article


Continue backup on error

Gurus,I know I should not have to continue back up on error. But there is the option to continue backing up even if an error is encountered.Can you give me instances where I may use continue on error...

View Article


A network-related or instance-specific error occurred while establishing a...

One of my friend using the sap based application. he is trying to connect the sql database server from sap application and he is trying to connect the sql server remotely from sap client which is on...

View Article

How to find the effective recovery model of a database ?

Hi,When a database is in full recovery model, but it hasn't a full backup, it works as a simple recovery model.So, the question : Is there a query to identify these cases  ? Identify the effective...

View Article

Differential Backups Failing

The differential maintenance plan is failing with this error message  "Cannot perform a differential backup for database "Search_Service_Application_CrawlStoreDB_e9b6abf77def428095e4156c66fb4e06",...

View Article


Image may be NSFW.
Clik here to view.

question regarding index properties for an index

Hi,per the topic.  This is a SQL server 2012 Sp1 with CU4 I was working on optimizing a query and was looking at the index property for a table, in the fragmentation page, I see 0 for everything.  This...

View Article

Get Table Data Output into a text file

Hi Experts,I have below code. Which is taking data from 2 tables and archiving it to some archive database. After archived. Its deleting data from the production table for the specified data range... I...

View Article

SQL Server 2008R2 apply Service Pack2

Hi,How I can apply service pack without backup databases on my instance ?Please Help me.

View Article


Schedule a job to run on specific day

Hi all,I want to schedule a job in SQL agent to run only after 7 days starting from the 28th of every month.Thanks in advance.

View Article


Logic Reads ... counter makes no sense?

How it is possible that selecting less data causes more logical reads?SET STATISTICS IO ON go SELECT [id]      ,[filler1]  FROM [Test1].[dbo].[Tab1]  Where id = 1Table 'Tab1'. Scan count 1, logical...

View Article

Impact of trace flag 272 on SQL Server 2012 apart from disabling identity jump

I am upgrading my application's SQL Server from 2008 R2 to 2012.As discussed in the below URL I am able to see the Identity jump after I upgrade and the server is restarted.Now since I cannot afford...

View Article

sql server 2012 - cluster and non cluster indexes

Cluster indexes and non cluster indexes takes extra space right? Is it ok to have only 5/6 non-cluster indexes on tables (not a single cluster index) ?? Will it take more extra space?I have columns...

View Article

how to find the Domain vise server list

hi team,i have no.of domain,under domain no.servers are there, here how we can find each domain how server are located.exp:Domain Name is A123 like that....

View Article


Avg. Disk Queue Length

Hi techies, I want your expert comments on the below out put of Avg. Disk Queue Length counter of a server.MachineName Date Average Minimum Maximumservername8/2/2013 3:39000servername9/4/2013...

View Article

Constraint for column

Hi All,I have many columns in my table with numeric datatype(5,2). how can i add constraint for all columns for not exceeding the size 5.Thanks,Venkat.

View Article


SqlServer 2012 available wait data

Under Sybase, you can query the MDA table monProcessWaits (actually a pseudo table mapped to output from a stored procedure) for cumulative waits and types per spid. So I can query this table every 5...

View Article

Image may be NSFW.
Clik here to view.

Table structure changing the query plan on a non-clustered index.

I've been trying to understand why SQL server decides build a very complex query plan in some cases. I've got two test Tables. - Tab1 and Tabx When the table only has a single data page the select...

View Article


Log shipping Copy Job hangs

Hi,I have several DBs on 2008 R2 log shipped to DR server. Quite often Copy Job for some DBs can run for days (I assume hangs as normally it completes within minutes). Restart of the Job does not...

View Article

Image may be NSFW.
Clik here to view.

Linq Query on execution throwing Exchange Spill error

 In Our Application while executing one of the LINQ Query we are getting error.Type: System.Data.SqlClient.SqlExceptionMessage: Timeout expired.  The timeout period elapsed prior to completion of the...

View Article

Deadlock on table with one row and one primary key clustered index

I have one table with one row in it.CREATE TABLE [dbo].[SYS_TRAN_ID]( [NEXT_ID] [dbo].[id] NOT NULL, [PROCESS_ID] [dbo].[processid] NOT NULL, CONSTRAINT [XPKSTRANID] PRIMARY KEY CLUSTERED ( [NEXT_ID]...

View Article
Browsing all 15930 articles
Browse latest View live


Latest Images