Index fragmentation
Hi All,I observed there are several scripts which can be ran against a database for finding the index fragmentation.But, none of them returns me the results in quick time. I am after a script which can...
View ArticleSQL Server DataFIle
Hi All,I have very old SQL Server 2000 database where the size on disk is very low and data file is increasing day by day. What should i do to reduce the size of datafile. Should i shrink the datafile....
View Articlesql monitoring
hi to all,we have a instance of sql server in us server and it used about 70Gb of memory space,can i see 1.total read command2.total write command3.duration time of each command4.list od all command...
View Articleupdate stats getting blocked by FETCH API_CURSOR
Hi all, I am facing a blocking scenario in my production server where a An third party Application is connecting to SQl server. We update statistics in the database as part of daily maintenance and...
View ArticleReports Query Optimisation
FROM PAYROLLMGR.Timecard tc INNER JOIN PAYROLLMGR.EmpAssignment ea ON tc.EmpAssignmentID = ea.id INNER JOIN PAYROLLMGR.Employee e ON e.id=ea.empid INNER JOIN PAYROLLMGR.LocationJobPhase ljp ON...
View Articlewhat is latch contention in SQL server ?
Hello all,I want to know little more about the ‘Tempdb latch contention’ in SQL server. I have researched on this few and learn somewhat. So, what exactly is ‘latch contention’ and where can I learn...
View Articletemp db issue
Hi team,when i try to login into the server i am facing bellow error and at same time few database going to suspect mode,any one please answer the root cause of the issue.
View ArticleHow estimating in a rapid manner the size of a database - SQL Server 2012
Hi,I need to know if it exists an automatic tool (f.e. Excel worksheet) to determine quickly the estimated size for a db, having the tables to implement and the colums (with type and lenght) to...
View ArticleMsg 945, Level 14, State 2, Line 1
am using sql server 2008 express i created a databse using the following queriescreate database testdataon primary(name= testdata,filename='C:\data\testdata.mdf'),filegroup filestreamgroup contains...
View ArticleLinked Server - The Semaphore Timeout Period Has Expired
Hi there,I've got a bunch of stored procedures run SQL statements over a linked server connection and a couple of times a day I get the following error caught in my try/catch:Error Number: 121 Error...
View ArticleSOS_RESERVEDMEMBLOCKLIST Wait Type
Hello everyone. We have a question about SOS_RESERVEDMEMBLOCKLIST wait type. We've been noticing that over the course of the last few weeks SOS_RESERVEDMEMBLOCKLIST has surpassed our top wait type of...
View ArticleRisk for SQL 2005 end of life
Hi All,Does anyone has any ideas of what are the risks/disadvantages of running SQL 2005 in productions for the next 4 years?Besides the product SQL 2005 support from Microsoft has ended, is there any...
View ArticleFilegroups on disks with different performance
Hi allOne of our db is growing fast and we need more space for it, our dba said that they can increase the space of our db (double it) immediately but on a disk (partition/san I don't know exactly...
View ArticleQUESTION
HI TO ALL,WHEN I M GOING TO EXECUTE THESE DMV'S (SYS.DM_EXEC_CONNECTIONS) CMD IN MY SQL SERVER 2008 R2 ENTERPRISE EDITION IT SHOWS THIS ERROR. Msg 2809, Level 18, State 1, Line 1 The request for...
View ArticleSQL 2012 Memory Changes
Hi AllI have a few questions regarding the memory changes in SQL 2012I usually use the following script to check my memory clerks on my SQL Servers below 2012--1SELECT TOP(20) [type], [name],...
View ArticleWHAT IS DIFF B/W DBCC & DMV'S
HI TO ALL,1. WHAT IS THE DIFF BETWEEN DBCC AND DMV'S EXPLAIN WITH DEFINITIONS?2. WHAT IS MEAN BY SERVICE BROKER? WHAT IS THE USE OF THIS?3. AT WHAT TIME(SITUATIONS) CAN WE USE CHECK POINTS?4. PLS ANY...
View Articlesqlcmd error
Hi,I am trying to login through command in sql server database, but i am getting below errorC:\Users\sap_sql_pr>sqlcmd -d <DBNAME> Sqlcmd: Error: Microsoft SQL Server Native Client 11.0 :...
View ArticleSQL Server is terminating because of fatal exception c0000005
I believe this is related to old DTS packages running, but I'm not certain of the exact cause or the fix. This is running on Windows 2003 Std SP2 x86 build 3790 GDR 080813-1204 and SQL Server 2005 Std...
View ArticleAdd user-defined module into Database Engine to pre-processing T-SQL queries
I want to give transparently access for applications to distributed data on 2 database servers.I write a module to translate 1 sql query into another query. When users send sql queries to DB-Engine,...
View Articleperform tail log-backup
Hi,I want to know how to perform tail log-backup when database has crashed and is not online. Since SSMS cannot be openedhow to take the tail log backup in that situationRegards
View Article