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 ArticleWhen to do Index Maintence
Hi, how i monitor/manage/control when is index need to be created for reporting stored procedure before end user complained 'time out' ?PS: The amount of data is increasing everyday.
View ArticleWindows user via group membership and sysadmin role for currently connected user
hello,I am trying to get a list of currently connected user who has sysadmin role. For the Windows login who doesn't have their logins created on the server but are part of Windows group, there seem to...
View ArticleLinq 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 ArticleDeadlock 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 Articlesp_UpdateStats missing in database
HiWe recently installed Lync at our company.Lync creates 4 SQL instances and I have set up maintenance tasks for these instances.Strange thing is that sp_UpdateStats does not exist in any of the...
View ArticleSQL Memory Usage
Hi AllI've been told that when dealing with 64bit SQL Servers with locked pages in memory enabled, using task manager to evaluate how much memory SQL Server is using is wrong.What is a clear and...
View ArticleDifferential 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 ArticleSql Sever Restore error System.Data.SqlClient.SqlError: RESTORE detected an...
Higetting below error in restore SQL Database,System.Data.SqlClient.SqlError: RESTORE detected an error on page (0:0) in database "test" as read from the backup set. (Microsoft.SqlServer.Smo)txsuresh
View ArticleInvalid object name for user-Defined table type parameter to stored procedure
I have a stored procedure defined with a single parameter whose type is a user-defined data type. On occasion when a call to this stored procedure is made I get an error "Invalid object name @ids". On...
View Articlequestion 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 ArticleUpdate PDF file in FileTable
Hi- I'm new to working with FileTables and am wondering if the following code (which saves annotations to a PDF file in the FileTable with changes that are made through the PDF control) makes sense. My...
View ArticleVS 2012 Publisher can not be verified message at install time
Using VS 2012. How do I get rid of the message PUBLISHER CAN NOT BE VERIFIED at install time. I also get Unknown Publisher message. What can I do about both messages?ecb
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 ArticleInstall a application on another PC Questions
Using VS 2012. When I install my VS 2012 application on another PC I get messages about ACCEPTING these two software products (1) MS SQL Server LocalDB and (2) MS Framework. Is there a way to inform...
View ArticleFailed to map 16777216 bytes contiguous memory
I am trying to set up a Full Text Catalog on SQL Server 2008 running on Windows Server 2008 R2 Enterprise.I have created the catalog and added fields to be indexed. However, after a brief attempt at...
View ArticleWeb Site Admin Tool problem in VS2005
All,When I create a new project and try to use the WSAT security tab, I get the following :There is a problem with your selected data store. This can be caused by an invalid server name or credentials,...
View ArticleSQL Network Interfaces, error: 26 ,How to overcome this error?
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that...
View ArticleHow t minimize the loging in sql server
Hi friends, I am looking to minimize the loging in sql server 2012. My process is I have many base tables, once data will get procced we are moving these all data into their respective history table...
View Articlehow to make .bak up file of a database in SQL server 2008 R2 ?
Greetings,I want to know what is the procedure to take .bak file of a database of sql server 2008 R2 and also how to restore that file , without running any sql query.
View Article