select list because it is not contained in either an aggregate function or...
I wrote sp like below,Alter procedure First_Proc (@fromdate datetime, @todate datetime ) as begin select DATEPART(YY,ModifiedDate) as Year ,DATEPART(QQ,ModifiedDate) as Quarter...
View ArticleHow to configure a computed column that uses two related tables at table...
--SQLServer 2008'R2I have two related tables one to many relationship dbo.days which holds 'Monday' through 'Friday', so dbo.dayid.3 would be 'Wednesday'and dbo.worklog both related on dbo.Day.DayID...
View ArticleHow to Check the Sql Server license(MSDN copy or Production Version)
Currenly, our team is confirming the sqlserver live database 's license, is there a way to distinguish the license is an MSDN copy or Production License?thansk
View ArticleSQL 2008 R2 - more physical memory than database size
I have a 64bit 2008 R2 sql server with 32GB of memory and my database is curently 14GB in size.SQL is only using around 14-15GB of memory and not using more. How can I get SQL to use more memory or it...
View ArticleDrop Application role
I created an application role by mistake and want to drop the application role, but SSMS does not allow me to drop application role.Are there any configuration I need to check before I drop application...
View ArticleUnable to connect to SSMS (2012) in Win 2012 / Microsoft SQL Server, Error: -2
Team,While trying to connect to SSMS the following is the error message and not allowing to connect to SQL Server.TITLE: Connect to Server ------------------------------ Cannot connect to...
View ArticleAssembly binding turned off
Hi,HKLM\Software\Microsoft\Fusion!EnableLog] is missing from my registry and I have problems installing MS SQL 2008 or 2012. It is very important for my study, and i need urgently to solve this.Bojan
View Articlewhat does this deadlock graph mean?
<deadlock-list><deadlock victim="process975948"><process-list><process id="process975948" taskpriority="0" logused="1200" waitresource="KEY: 7:72057896813723648 (12b7fb17bed7)"...
View ArticleSQL 2008 R2 update
hi all,i was running SQL 2008 R2 SP1 on a system and i applied this comulative update from herehttp://support.microsoft.com/kb/2679367 trying to fix the problem described...
View ArticleAre index scans almost as bad as table scans?
Looking through the query plan for a problem-child procedure that Im trying to fix, I see one area that has the largest cost associated with it and its doing a index scan. Sure enough, there is no...
View ArticleTable Names - Singular or Plural?
I was surprised when I couldn't find any posts about naming tables with singular or plural names, other than a generic post about naming conventions. There are debates / arguments about this topic all...
View ArticleBackup of databases are failling in sql server 2008 R2 server.
Hi All,when am trying to take the backup of the databases am getting the below error.Executing the query "BACKUP DATABASE [master] TO DISK = N'S:\\SQL BACKU..." failed with the following error:...
View Articlesqlps warning spam
Hi everyone.SQL10.50.2500 I start sql server powershell console (Right click on Object explorer server node:Start Powershell) "sqlps.exe". When it initialize, and when i try to execute any command, i...
View ArticleTPC-E test on SQL Server 2012 high runnable task count
I know I probably shouldn’t be replying to this old thread, but I’m crossing my fingers that Jonathan Kehayias will see activity on this old thread and respond…I’m using Quest Benchmark Factory to run...
View ArticleMap temporary objects of tempdb to sessions
Hi All,Does anyone know where stores SQL Server tempdb object list. From this list you can determine which temporary object belongs to which session. tempdb.sys.objectsor tempdb.sys.sysobjects have two...
View ArticleErrors in windows Application log on windows server 2008R2 standared
Hi All,We are receiving below errors on windows server 2008R2 standard edition.1) Exception of type "Error" caught: msgID=LEXC006I, rc=8, feedback=0, substitution=&ERRSTR=[08001][Microsoft][SQL...
View ArticleCannot Connect to Remote Named Instance of SQL Server
We have 3x instances of SQL Server 2012 installed on a single remote server - there's the default MSSQLSERVER instance, then \INSTANCE01 and \INSTANCE02. I can remotely connect to the default...
View Articlesafe way to do updates
I have a database where many tables have many indexes and as a result different updates can get tangled up and deadlocked. So here's my question. Is it guaranteed safe, so that I will get blocking...
View ArticleQuery timeout
If am not wrong, the default query timeout of a query submitted to database engine from a .net/java application is 30 seconds. This means that if query runs for more than 30 seconds the sql server...
View Article