New instance connectivity issue in SQL Server 2012
In my server SQL server 2012 is installed and working fine and whoever have logins credentials also able to connect. I have installed one new instance.Default Instance is : ABC (the ABC is the...
View Articlebackup and restore script
HiI’ve set up a backup and restore script. Both scripts work fine, but I want to be sure, that:1. I have a FULL backup, (script fragment):SET @fileName = @path + @name + '_' + @fileDate + '.BAK'...
View Articlerestore newest backup
HiThis restore script works fine:ALTERDATABASETest1SETSINGLE_USERWITHROLLBACKIMMEDIATERESTOREDATABASE[Test1] FROMDISK= N'\\Server\BackupStorage\Test1_20140201_9_14_14.bak' WITHFILE= 1,MOVEN'Test1'...
View ArticleTRIGGERS TOPIC I AM GETTING ERROR AS Msg 213, Level 16, State 1, Procedure...
/*FIRST TABLE*/create table Employee1( empid int, empname varchar(20), salary int, gender varchar(10), depid int) insert into Employee1 values(1,'jitendra',500000,'m',100)/*2 ND TABLE*/create table...
View ArticleInsert Into @temptable hangs but #temptable works
I have a simple temp table declared as a table variable. This is used on nearly 50 deployed databases and works fin. However, on one server, 2008-R2 as are all the others, the Insert statement hangs....
View ArticleQuery Timeout expired
Dear All, I am having a serious problem. I have a system running in VB6 and SQL 2008 in the backend. It was running smooth for last three years. But for last three months all on a sudden I am facing a...
View Articledelete transaction log file
Hi,I have three T-log files in my database, Now I want to delete 2 Transaction log files. Can I do the below action:1. dbcc shrinkfile(log1,truncateonly) 2 dbcc shrinkfile(log2,truncateonly)2. Then...
View ArticleSlow Insert, very non-linear scaling with size
I have an INSERT whose source is a SELECT that has 17500 rows. The INSERT is taking roughly 6 minutes. The SELECT by itself takes < 2 seconds. The odd thing is that if I restrict the SELECT to 3000...
View ArticleHow can I retrieve the comments at table-level using SYS.*
hi ya,Is it possible to get all the comments for my tables? For every table defined I have declared description using Extended Properties. I am looking for some SQL statement which give me all those...
View ArticleDefining Default Values for a column in a view
Hi guys,Please can you set a default value while creating a view in the database.me
View Articlelooking for a function doing what the difference one does but using soundex...
hi,I'm looking for a function which count the number of matching characters in a string, like the difference function do it.http://msdn.microsoft.com/en-us/library/ms188753.aspxIn my case the input...
View ArticleHelp resolving connectivity Issue to SQL Server 2005 x64 SP4
We currently moved our Windows Server 2008 R2 Servers with SQL Server 2005 x64 SP4 to Active Directory. After moving the servers to Active Directory, we noticed that all of our processes that access...
View ArticleError : Process ID attempted to unlock a resource it does not own: HOBT:...
I am using sql server 2012. Microsoft SQL Server 2012 (SP1) - 11.0.3393.0 (X64) Oct 25 2013 19:04:40 Copyright (c) Microsoft CorporationStandard Edition (64-bit) on Windows NT 6.2 <X64> (Build...
View ArticleRestore Database to multiple data files and its failing?
I have a db size is 250gb and need to restore to multiple file to different drives on server.when i try to do i got below error message?"Conflicting file relocation have been specified for file...
View ArticleSQL Server jobs run dates
Hi, I have a doubt. I created a "Test10" job in SQL Server 2012 to run as per below attached schedule. As per the schedule, job is supposed to run till 03-Feb-2014 2:00 AM but it stopped at 1:50 AM....
View ArticleDisabling Resource Governor via trace flag 8040 is failing
Hi,I am attempting to disable resource governor completely via trace flag 8040 (specified at startup in windows server) for SQL Server 2012 is faling. DBCC TraceStatus (8040) does show status as "1"...
View ArticleLDF file recovery?
May I know how to perform point in time recovery? Currently the only backup we perform every 4 hours is the server OS snapshot.Example : 1. Now is 6pm and some error transaction occurred.2. We can...
View ArticleStop a query if cross database queries are requested in the command?
Hi,is there a way to raise an error if a user run a SELECT statement which contains specific keywords?here my scenario:I want to insure that if a user open a connection to a specific database and try...
View ArticleSQL Server Agent Error
we are constantly getting this error from event log: what is the remedy. Unable to read local eventlog (the parameter is incorrect)
View Article