Investigate slow running query
Hi All,I have a stored proc which inside simply joins a view and 3 tables. The SP takes less than 1 sec in my DEV environment but it takes almost 10 secs most of the time in my SIT environment.1) The...
View ArticleOptimizer costings for hash join versus nest loop
I have been looking at a query that involves a join between two reasonably large tables. The optimizer picks a hash join rather than a nested loop, but when I force a nested loop it uses significantly...
View ArticleUnable to connect from SQL server 2008(Sp2) version client to SQL...
Our requirement is to connect to dtatabse server from .net application sitting on application server to invoke and run the sql agent job in database server.But there is different version of SQL server...
View Articlesql server 2012 transaction log file
Is it ok if we shift transaction log file to some other place?? (SQL server 2012)if i have say abc_log file in D:\mssql11.mssqlserver\mssql\data, if i want to shift that to say c: is it possible? if...
View Articlehow to up the performance
Hello , everybody, Well I dont understand why to execute a stored procedure is very slow the execution... I have a question for anyone, why is veru slowwww? thanks for your feedback.
View Articleshrink transaction log in sql server
DBCC SHRINKDATABASE (db_name, size)1 Is this mean i am shrinking whole database or only transaction log file ??2 If i am shrinking whole db then is it good to shrink only log file ?? By using ssms...
View ArticleMultiple TempDB files disappear on restart
1. Added 2 extra tempDB files across 2 logical drives. 2. Restarted SQL Service or the server 3. The 2 extra files disappear from tempDB. However, they still on the hard drive. ??? Why did they...
View Articlefrom dt column how to get the data into 2 separate columns as intime and...
emp_ID card_ID dt inout desc275144271992011-03-2321:25:57.0000 Successful 275144271992011-03-2321:26:04.0001 Successful275144271992011-03-2321:35:00.0001 Successful 270144277962011-03-2321:53:55.0001...
View Articlebcp fails for trusted connection
Hi!This is a baffling one - we have a batch process extracting data on a remote machine from the SQL server using bcp -T and has been running without any issues until last weekend. Since last weekend,...
View ArticleSS2014 CTP1: table variable target causing columnstore access from batch to...
While testing the clustered columnstore indexes in SS2014 CTP1, I found the following strange behavior: a SELECT statement accessing several clustered columnstore indexes that uses batch mode if used...
View ArticleTable variable and collation
Hi, A table variable e.g. declare @table_1 ( userid int, username varchar(128)) ;If a database x collation is SQL_Latin1_General_CP1_CI_AS But tempdb system database collation is Danish_Norwegian_CI_AS...
View ArticleDetect Windows server memory from SQL Server SSMS
HelloIs there a way to detect what is the memory on a particular server by querying from SSMS? I am not looking for 'max server memory' of SQL, but trying to find out if there is a way to find out what...
View ArticleSQL Server Reported to be "Shut Down" Automatically
Hi, 3 days back, a support engineer notified us that all the services of 2 Database Servers at our data center had Mysteriously Shutdown. and they had to restart them manually. well, we had a look in...
View ArticleLSI RAID, SSD Drive Formatting for SQL Performance Suggestions
I am setting up a couple of SQL servers (Mirrors), using some standard parts that we're using in the datacenter. So I am limited in the hardware utilized (already purchased). The SQL Server will house...
View ArticleCould not load file or assembly
When opening SQL Server Management Studio on the SQL 2008 R2 server or any remote machine I get the following error:Microsoft.sqlserver.mangement.reports, version=10.0.0.0, Culture=neutral,...
View ArticleChange SQL minimum Query memory setting
We are on SQL Server 2008 R2 enterprise edition and there is 128GB physical RAM installed on production server .The max SQL memory is setup to 112GB and the current setting of SQL minimum Query memory...
View ArticleImpact 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 ArticleError Connecting to SQLSERVER:SQL as a drive for LocalDb
Please see below. There is some kind of communication problem when I try to access "(localdb)\Projects" using the ability to connect to SQL Server as a drive, and then ultimately later (e.g. $server =...
View ArticleMaximum memory setting on database instance
In reference to the database server properties -> Memory -> Maximum server memory (in MB).The context is I have two SQL Server instances (one for SharePoint and for data), as well as SharePoint,...
View ArticleHow to change retention period to 1day in Change Data Capture (CDC) ?
We have CDC enabled in our Sql Server 2008 R2 to one of the database. I have changed the retention period to 15 minutes with the help of below query. sp_cdc_change_job @job_type='cleanup',...
View Article