Wait Events in SQL
Hi,I am getting many Wait Events in SQL Server 2012. Please let me know how can I resolve these wait...
View ArticleSQL Query issue
HI - I have one peculiar issue with sql query. Below query is not returning any rows. The issue lies with store_code(st.store_code = 'MAUR') filterselect st.store_code, s.source_title,c.*from...
View ArticleProblems with backing up to HP 3par disks
Hi,We have a SQL2012 SP1 build 3412 availability group cluster that recently moved the backend SAN to HP 3par. Since the move we have had the disk array setting changed to high performance for 3par but...
View ArticleHow to execute the job in multithread
Hi , Can I execute a job parallel. I have A procedure that I want to execute on user request even the job is already running, I want to execute as different threads(in another SPID). Is it possible....
View Articlebackup history all servers
I'd like to write a report with backup history for all sql servers. I can manually easily get it by using registered servers and running a single query on all of them (I have the query, I just don't...
View ArticleTempDB size on creation
I've googled this topic to see if TempDB is created based on the model database and get mixed opinions. Also when I look at model I see the default size is 3MB yet the TempDB initial size is 8MBMy...
View ArticleLoading IO stalls and wait type counters into table
Hi,I ran into strange issue on our sql server 2008r2 server. While running analysis of how fast our SAN is, I put together stored procedure that captures IO stalls and wait types counters (and some...
View ArticleWatch out: change for line numbers in SSMS 2014
There is a change in SSMS 2014 how line numbers are displayed in error messages. Instead of displaying the raw line number from SQL Server, SSMS 2014 adds the offset where the current batch starts to...
View Articleattach database with norecover
Hi everyone,If I attached the database from a detached database files, can I put it no-recovery mode and restore tlog backup?Thanks,SkyRiverSkyRiver
View Articlesp_who2 shows blocking by spid that isnt listed
Using sp_who2I was noticing some blocking going on in one of my DB's and after a few minutes it cleared up except for one row that listed the status as "SUSPENDED" and the Blkby = 200, but there was no...
View ArticlePowershell to connect to SQL 2012 problem
Hi~ I am writing a powershell script to connect to an SQL 2012 to run a query. but seems it cant connect:Add-Type -Path...
View ArticleDatabase Ownership Chaining Across Servers
Server 1 - SQL Server 2005 Standard on Windows 2003Server 2 - SQL Server 2012 Standard on Windows 2008 R2There are three databases (A, B and C) that have a Database Ownership Chain set up on Server 1....
View ArticleMy SQL Server instance suddenly stopped
It has been running for a few months but recently it suddenly stopped.Would like to know how to find the cause why it stopped, and any remedy to prevent it from stopping in the future.Current sql...
View ArticleSQL Server wants to open properties of wrong database and cannot restore logs...
We have implemented our own way of logshipping by backing up the transaction logs of all our non-system databases every hour. Then we transfer the backups (before SQL Server 2008 R2 with additional zip...
View ArticleProblem to create database after Drop
Hi,I need to create automatically a lot of databases but sometimes I get errors. So, I drop the database and try to recreate them but, when I try to recreate them, SQL Server says : "impossible,...
View ArticleSQL 2000 Log and data file free space
HI ~ In SQL 2000, are there any tsql I can get the free space of the mdf and ldf file ?
View ArticleSQL Server Performance
What is the best approach if we got performance issues in SQL ServerNeed step by step process of Root cause analyses for performance issues. Kamal
View ArticleRemove Log Primary Log File
Dears,how can i remove the primary log file, or reduce its size, it is becoming around 60 GB.best regards,Bilal Abdallah
View ArticleSQL Embedded, In-memory or whatever its called
I am a developer who uses different databases, but SQL Server is my favorite. I have a couple of small portable apps that I have been using a MS Access database to store information. I am interested in...
View Article