Reseed Identity Column when other column, value change
hello I have a table with four fileds. The first and second field are primary key. Second field of primary key is a identity. when the first field changed, I need the second field Reseed to...
View ArticleSQL Server 2012 ENT Core licenses
Hi,With SQL Server 2012, Microsoft does no longer offer Server+CAL licensing for the Enterprise edition. Instead the use the "per core" model. The "per core" model is quite straigthforward. However, i...
View Articlestartup parameter is invalid
If you add the the following parameter 'Â -m"Microsoft SQL Server Management Studio - Query"'to the startup parameters in the SQL Server configuration manager the GUI gives the following error. (SQL...
View Articlesp_addextendedproperty
I just stumbled over this SP_addextendedProperty, can anyone explain me what is this and why should we use it> I mean the benefit /leverage of using sp_addextendedproperty ?I have gone throught this...
View ArticleSQL Server 2005 and MSDTC use
Hi All, We have MSDTC installed as a Clustered resource in SQL Server 2005 environment. I know MSDTC is used for cross-database and distributed transactions.I wanted to know: 1. Even if there are no...
View ArticleSQL Server uptime, Database uptime ?
Is there a way, preferably with T-SQL, to query how long the SQL Server service has been running?Also how long a particular database has been running (i.e. when it was last set online)?I'm hoping for...
View ArticleOrphaned users issues
hi ,recently i am involve database migration active, i taken the 400 DB database backup and restored into new server.restored after i am checking the "orphaned users" through [sp_change_users_login...
View ArticleSET FMTONLY ON AND EXEC() AT LINKEDSERVER
Hello my friends.I trying use EXEC('') AT LinkedServer statement.The command executes sucessfully on my remote server, and return my data normarly...The problem was when add the "SET FMTONLY ON"...
View ArticleIndex Framentation
Is it ok to have Non Clustered Index even if it is heavily framented than to not have Non Clustered ? Does the same goes with Clustered Index?
View Articlesp_blocker_pss08 Analysis
Hi All,We have implemented sp_blocker_pss08 in our sql instances to identify blocking. I tried using the SHERLOCK tool after referring the below...
View ArticleHow to Identify and troubleshoot slow sql statements within a Stored procedure
Hi All, I want to know about how to go about detecting and troubleshooting slow sql statement inside stored procedures. For example ) If I have 10 sql statements inside my stored procedure and...
View ArticleIf log backup is not working since 4 hour then I must get a mail.
I want a script:If log backup is not working since 4 hour then I must get a mail.Thanks
View ArticleSQL Server 2005 SP2 Access token leak
We have a sql server 2005 sp2 on w2k3 standard server. The servers started crashing every 4/5 days and have done this twice so far. checking the event viewer there are always events(2020) happening...
View ArticleHave a lot of customers -> which design should be chosen (one or multiple...
Hi! I'm a little bit confused with this task, but it should be done. So, we have a lot of customers who should use SQL server for their applications. Design is standard and simply: Customer ->...
View ArticleChange the owner of job on different server
Hello,We have nearly 50-60 servers and i would like to change the owner of the job to lets say 'thejobowner' (Job owner should be not sa or systrans)And in future if anyone make any changes and create...
View ArticleReducing TempDB
Hi all, How to reduce the tempdb size . Help me on this , PleaseRegards, Subathra
View ArticleError: An error occurred while preparing the query in openquery on ServiceNow...
Hi Team,Greetings of the Day!!!!!I have a created a link server on SQL Server 2008 R2 databse of Service Now ODBC driver. And written a stored procedure using openquery to get the data from link...
View ArticleCant Able to restore .bak file
Hi,When i try to restore my bak file am getting below mentioned error...This shows am using different version of SSMS.....any one suggest how to update my SSMS with10.00.2531........Thanks SABARINATHAN87
View Articlesql query which increases my total elapse time or execution time around 1 hour?
I want a sql query which increases my total elapse time or execution time around 1 hour?Thanks
View Articlehow to change collation of all columns from all tables from a perticular...
Hi,I have BBC database, but in my database there are multiple tables in which column level collation is different-different.Now i want to set that all columns has same collation setting from all tables...
View Article