SQL Server 2008 R2 - Subscription Running Twice
Hi All,We are running SQL Server 2008 R2 SP2 and I have a problem with a subscription which is randomly running twice. Usually around 20 seconds after the first run. There is only a single SQL Agent...
View ArticleBACKUP LOG cannot be performed because there is no current database backup.
Hi Guys,My database backup has recently started failing with a "BACKUP LOG cannot be performed because there is no current database backup." error message. Initially I thought this was a simple fix,...
View ArticleSSMS 2005 - How to disable Intellisense if SQL isn't an installed language...
Hi, allRunning SSMS 2005 at present. I'm a touch-typist, and don't use Intellisense/"Auto List Members" in any of my development tools. Things like Visual Studio I can disable the choice by language....
View ArticleCompatibility error restoring database created in 10.50.1600?
I'm trying to restore a backup, and the error displayed is "The database was backed up on a server running version 10.50.1600. That version is incompatible with this server, which is running version...
View Articlesp_send_dbmail fails when query uses linked server
I've seen this discussed in another thread however a solution was never found. This came up after we applied the SQL Server 2008 R2 SP2 patch to our DBMS which had previously been at 2008 R2 SP1. The...
View Articlebatch size for insert into tab1 select * from tab2?
database is in simple recover mode, but as tab2 is very big, the log is still very big, is it possible to set a batchsize for the sql insert into tab1 select * from tab2.if we can, say set it to 1M,...
View ArticleTransaction log not releasing the unused space while shrinking
HI All,I am trying shrink a log file.DDCC sqpperf(logspace) - showing below resultsDatabasename Logsize(MB) Logspaceused(%)ABCD 301183.9 1.811704However i took a log backup and...
View ArticleMVCC/read_committed_snapshot and tempdb
We're looking to implement MVCC/READ_COMMITED_SNAPSHOT in our high-transaction databases. We understand from documentation that this will require more tempdb space to manage the snapshots of the data...
View ArticleIs Connection Pooling Affected By Multiple Application Names?
Need consultation for the next question...I have large n-tier buisiness application, working with database with Linq-To-Entities (EDM). Every one from several hundreds of my WCF-methods create own new...
View ArticleDatabase backup without Replication objects (for schema comparison purpose)
I want to perform a schema comparison between an attached database and a backup. The backup comes from a replicated database. The comparison (database -> backup) result script generates delete of...
View ArticleSQL Server Maximum Memory setting
SQL Server 2008 R2 Accidently set maximum server memory to 0 (ZERO). Now there is not enough memory in default resource pool to recitify. Heeelp!
View ArticleSQL server agent restart itself
Recently we have two SQL servers 2008R2 (SP1) experiencing a random restart of SQL agent. We are sure no one restarted but it restarted by its own and runs fine ever since. By looking at the error log...
View Articlelinked server to mysql can show tables but not select from table
Hi everybody, I have a question about linked servers. my procedure is as follows: I want to select data from mysql database through a linked server, I use a stored procedure that takes a query as...
View ArticlePerformance of different INSERT styles
Hi all,What is difference between these two styles of TSQL code:WHILE 1...to...1000BEGININSERT ... VALUES(...)END----------------------BEGIN TRANWHILE 1...to...1000BEGININSERT ... VALUES(...)ENDCOMMIT...
View ArticleSQL Server backup with INIT options
Hi,Question : Draw back of using INIT option Vs taking the backup first and then deleting the older backup file (in particular SQL Server backup files)There is a great debate in getting the disk space...
View ArticleSQL Server Timeout
Hi, we configured every possible timeout to 40 seconds. SqlConnection conn = new SqlConnection("Data Source=.;Initial Catalog=DispatchData;Integrated Security=True; Connection Timeout = 40");...
View ArticleSQL Jobs failing
I have a situation.For the past week, most jobs on our Development server, have been failing with the following error: Message Executed as user: SPIRIT\SRVC_SQL_AGNT. Microsoft (R) SQL Server Execute...
View ArticleHow to find empty views in a database in sql server2000
Hi all,how to get list of views which doesn't contain any records in a database in sqlserver2000please help methanks in advance,kishor.
View ArticleSSD vs SAS query needed
I am testing the disk IO performance of SSD vs SAS drives. I am trying to generate high on adventure works database for this. Are there any scripts that can help me with this stress testing which cause...
View ArticleFiring custom assembly
Hello,I have an unsafe assembly that executes/exits any exe file the user sets upTo start an application would be:"EXEC sp_myassembly @path='notepad.exe", @start=1;"To exit:"EXEC sp_myassembly...
View Article