A temp table in a stored procedure , set a value to varchar(MAX)
Hi ,, In stored procedure there is a temp table and set a value to varchar(MAX) . What exactly is the different between setting it to varchar (MAX) instead of varchar(n)Thank You Jeevan Vinay
View ArticleSQL Server 2012 CLR allocations problem
Hello everybody!After upgrading from Microsoft SQL Server 2008 to Microsoft SQL Server 2012 we faced with CLR allocations problem. In earlier versions of SQL Server CLR allocations were in virtual...
View ArticleWhile connecting to the default instance from out side of the server it's...
Hi All,We have two named instance in "test" server. the names like test\a & test\b... The tcp\ip for test\a is dynamic and for test\b is default port 1433... Now customer requested to install the...
View Articleimmortal query with Oracle linked server
Hi, AllI have Microsoft SQL Server 2008 R2 (SP2) - 10.50.4000.0 (X64) Jun 28 2012 08:36:30 Copyright (c) Microsoft Corporation Standard Edition (64-bit) on Windows NT 5.2 <X64> (Build...
View ArticleDatabase went to recovery mode after transaction log gets full
We have following version of SQL Server:Microsoft SQL Server 2008 R2 (RTM) - 10.50.1600.1 (X64) Database mentioned is in simple recovery mode.We have one process which is deleting data from database....
View ArticleFind the Security context an SP has been executed
is there a way to find under what Security context an SP has been executed ?
View ArticleWhy "Target Server Memory" = "Total Server Memory" (Permanently)?
Hello, could you please help me to understand why values of next Performance counters are permanently equal?:SQLServer:Memory Manager / Target Server Memory (KB)SQLServer:Memory Manager / Total Server...
View ArticleUnused Indexes
Hello,I am using sql 2012 SE. I noticed there were lots of blocking on a subscriber database where an insert is blocking a bunch of selects and causing timeouts. I started looking at unused indexes...
View ArticleNon-yielding Resource Monitor - Issue on PROD server
HiMy PROD server frequently restarting after generating below dump.Pls help me to resolve the issues =====================================================================...
View Articlecomparatively analysis of legacy database system ?
please help me by explain this this is our next quiz can any 1 give detail description to this topic :O :)
View Articledata display from English language to German language
We have got a requirement to replicate existing data from English language into German language. Please let me know what are options available to replicate the data into another language.Thank you.
View ArticleChange instance name
Hi,I have one database CON running on server dex-mum-con. I used to connect this Database using dex-mum-con\CON through SSMS.Now I have changed the hostname to dex-del-rex and database name to REX. But...
View ArticleSQL2005 database backup wrongly restored
Hi,I'm using SQL 2005. It's been mistakenly restored to a previous backup (to about 1 month ago). Is there any chance to undo the restore process or the data are totally lost?Thanks in advance
View ArticleShrinking tempdb file
Hi all,I have SQL Server 2012 Enterprise Edition, I have the need to shrink one of the tempDB data files (I've 8 data files) Currently this data file is 25GB, SQL Server says me that I have 65% space...
View ArticleIs there something more efficient than EXISTS statement?
Hi All,I have this query: selectwaco,ltrim(rtrim(wammcu)) as wammcu,wadoco,walitm, wadl01,case when wastrx = 0 then null else proddta.JulianToDate(wastrx) end AS wastrx,wauom,cast(wasoqs / 10000 as...
View ArticleWhat does it mean when the usecounts of Parse Tree for a view is incrementing...
I'm using SQL Server 2008 R2 (10.50.4033) and I'm troubleshooting an issue that a select query against a specific view is taking more than 30 seconds consistently. The issue just starts happening...
View Articleindex internals
Hi guys,It is strange I never saw many information regarding this, maybe it's just stupid, but... Lets say I execute and rebuild all the indexes of 5 of my tables...Will it be done in paralel? or is...
View Articlecheckdb running constatly
I am running SQL Server 2005 SP1 (9.0.2047). There are about 55 databases on the server. I noticed recently in the SQL Server Logs that CHECKDB was running almost constantly all day, against all of...
View ArticleANSI_WARNINGS is always set on new connections, despite the defaults
Hi, we need ANSI_WARNINGS off in order to truncate string columns.The problem is that the ANSI_WARNINGS is always set on new connections. I checked that it is disabled in sys.configurations "user...
View ArticleSwitch partition fails with Clustered Columnstore Index
hi ,I am trying to switch partition between un-partitioned table table_src and partitioned table table_trg. Both the table tables have Clustered Columnstore Index on these. Does this work? ALTER TABLE...
View Article