"resource_address" column in sys.dm_os_waiting_tasks. How to identify the...
Gents, Running SQL Server 2005 and identified a significant of WAITS on a latch (LATCH_EX).I'm trying to identify on which "resource" exactly the latch is being held. The [resource_description] only...
View ArticleJobs logged in the "Job Activity Monitor" but not in the "View History"
SQL Server 2005 Enterprise Ed,Hi guys,I have the following issue:There are some jobs running successfully. The execution is reported in the "Job Activity Monitor" highlighting the "Last execution" and...
View ArticleSQL Scrip to recreate a Database
I have a database that has grown to 200GB (due to many drop/create table statements, many delete/append data queries, etc.). Is there a way that I can create a script to recreate the database as a new...
View ArticleFull Text Search Populate Status - Processing notifications
Hi,I have a databse which is full text enabled. The SQL version is 2008 R2. There is one table in the database and that table has a varbinary(max) field which is full text indexed. The database size is...
View ArticleLogging in SQL server Logs.
In one of our production environment, we have observed applicaiton timing out. these time outs occur between 6:30 AM to 7:00 AM. As a result, server restart has to be done. Before restart, the resource...
View ArticleWhere Backup Failed history get stored in system databases??
Is there any tables in msdb db or in other system db where backup failed history get logged except error log.I am using SQL Server 2008 R2.
View Articlewhy does PLE ever go down when we still have untouched RAM?
We upgraded the server last weekend from 12gb to 32gb.Part of the reason was low PLE numbers.So now the target pages number has gone up - but only to about 10gb. Well OK, maybe we have more RAM than...
View ArticleWhy there is only one record per page for the second extent?
I did the test using the following script, and I found there was two records per page for the first and third extents , but there was only one record per page for the second extent, Why ? BTW, you...
View ArticleSQL Server 2012 Management Studio: I cannot create a SQL Server Express...
Hi all,I have SQL Server 2012 Express installed in my "Windows 7" PC that is part of Windows System in our Computer Network System. In the SQL Server 2012 Management Studio (SSMS 2012) of my SQL Server...
View ArticleHow do I capture how many times an event happens in my table?
My table logs the execution of SSIS packages with results as Skip, Run, and Complete. Ideally I should see two rows for each package, one for run and one for complete but in some cases I see run, run,...
View ArticleSQL server Agent Job email notifications not being sent
I trying to set up some failure job Email notifications on Sql Server Agent jobs. So, I configured database mail and tested and was able to receive mail through sp_send_dbmail and "Test mail" option...
View ArticleMS SQL Login information?
Hi All,How can we find the last login information in sql server 2008, it means when was the user trying to login in to sql server.Thanks,SAAD.
View ArticleMicrosoft OLE DB Provider for SQL Server cannot get all the schemas?
I use MS SQL Server 2008 for Database Development. Now, I need to get all the tables in SQL Server via OLE DB For SQL Server. However, after querying, only one system table called sysallocunits is...
View ArticleIs io stalls on sys.dm_io_virtual_file_stats as bad thing?
I am confused by this counter. It says I have a high percentage of IO stalls. What does this mean? It seems to me that this is the ratio of reads/writes in a database file compared to all the database...
View ArticleSQL 2000 export logins and database role mapping
hi allI am going to migrate logins from SQL 2000 to sql 2008are there any script that I can script out the login,database users, and database role mapping?thanks
View ArticleCreating View for Select statement
Hi Everyone,How Can we create a view for select statement? Also one more question Syntax to Join other table to fetch Company Code Column?Please provide with example.Regards,Chinni
View ArticleApplication connection to SQL Server unstable!
The connections from the application to the SQL Server is unstable with the application users reporting freeze in their application screen and again connection starts working after some time. I have...
View ArticleDatabase Mail error - Whitespace is not allowed at this location.
database mail is giving below error1) Exception Information =================== Exception Type: Microsoft.SqlServer.Management.SqlIMail.Server.Common.BaseException Message: The read on the database...
View ArticleAfter doing an ALTER TABLE, inserts not working correctly
I upgraded my SQL Server from 2008 to 2012, and everything worked o.k.I then added three columns to some tables. I used the following script to alter the tables: private int ModifyNewColumns(string...
View ArticleSQL Services fail to start after WSUS windows updates whether they have SQL...
SQL Services fail to start after WSUS windows updates whether they have SQL updates or not.#### Application Event log - Windows Server 2008 R2 Standard - SQL Server 2008 R2 EE #### 2013-02-19 - 3:33:13...
View Article