If particular condition is not satisfied in case how to say that to be zero
select sal, case when sal < 2000 then 'category 1' when sal < 3000 then 'category 2' when sal < 4000 then 'category 3' else 'category 4' end from emp; In the query above how to say Category 1...
View Articlenon yielding iocp listener in sql 2012 in windows 2012
Hi All,A non yielding iocp listener in sql 2012 SP1 in windows 2012, for which I googled and I got resolution for sql 2005 and sql 2008 &R2 BUT not for sql 2012 SP1 with windows 2012.The links I...
View ArticleSQL server license expired
I bought an unlimited license of SQL Server 2012 Standard version and downloaded the software from Licensed software in Volume Licensing Service Center. During the installation, it didn't ask us to put...
View ArticleCannot login to management studio after change my domain
Hello guys, I am new to sql server. I'm looking for answer to my problem. btw this is my first experience with sql.Here is my situation:sql : sql server 2012 standardmachine : windows server 2012Login...
View ArticleHow to decide what to use temporary table or table variable?
How to decide what to use temporary table or table variable in a stored procedure where both serves the purpose?Anujit Karmakar Sr. Software Engineer
View ArticleWhere did the securables go? Created Databse Role add Securables and...
Hello my friends:Create a Database Role, added Securables and set the Permissions. These are all stored Procedures.When I clicked Okay I get a message that the role was created successfully.Now I go...
View ArticleIndexed views using indexes on base table
Hi all,CREATE VIEW Sales.vOrders WITH SCHEMABINDING AS SELECT SUM(UnitPrice*OrderQty*(1.00-UnitPriceDiscount)) AS Revenue, OrderDate, ProductID, COUNT_BIG(*) AS COUNT FROM Sales.SalesOrderDetail AS od,...
View ArticleHow to prepare a plan to optimize a database sized around 2 TB
Hi All,I need a plan to optimize db sized around 2 TB.Kindly assist with me options or checklist for performance tuning of same.RegardsRahul
View Article2nd instance install prob. with 2008 r2 express
I am running express 2008 and need to install a 2nd instance on a home network drive. Installs to a point at which I get that the path is not on a specified drive.
View ArticleSP_READERRORLOG
Hi,Can any one give me some references to study about sp_readerrrolog. I want to know why it is used and how it works.
View ArticleWhat is paging in SQL Server
Hi All,What is paging in SQL Server how does the paging architecture works?RegardsRahul
View ArticleSQL 2014 Creating a DB
I am an absolute n00b with SQL Server. I've downloaded the 2014 Express Edition and have installed it (while logged in as Administrator) accepting all defaults EXCEPT I changed the location of the...
View ArticleWhere is the log file for deletion located?
As delete command keeps log information in a file, so that we can roll back transaction. Where is the log file is stored and how to rollback. Any idea?Anujit Karmakar Sr. Software Engineer
View ArticleIndexed views
Hi everyone,Say suppose I have created an indexed view.(view with schema binding and then created an unique clustered index on it)Now, the view occupies disk space right?So, when the original base...
View ArticleSQL SERVER TRACELOG
Hi,I want to know about sqlserver tracelog can any one give me some details about it or some reference to read about it. I searched it for one complete day but I believe that i didn't search at right...
View ArticleWindows update quits working giving me access error when installing SQL...
I am at my wits end. I've been developing on Windows for 20 years but have never run across something like this. On Windows 7 Pro I need to install the SQL Server 2014 demo (SQLServer2014-x64-ENU)...
View Articlesql server admin test 70-462
Hello, I was involved with SQL Server back in the SQL 7 days. I have received some good info about how to get back into it. I would like to study and take the sql 2012 admin test 70-462 (I have not...
View Articlechange grid results background in ssms 2014?
can you change the background color in ssms 2014? every time I try in enviro font and color>grid results it only changes the font color and not the background color.
View ArticleDifference between Innner Join and Cross Join
Dear all,select * from tbl1 inner join tbl2 on tbl1.id =tbl2.idselect * from tbl1 cross join tbl2 Works same what is the logical difference between this two statements??Dilip Patil..
View ArticleRetrieve matching data
I would like to know the query for the below mentioned case. I am using SQL Serever 2008.Table1Table2IDDepartmentNameZipIDDepartmentCountry1axx101aqqq2byy203cwww3czz305ettt4dcc40I want to retrieve...
View Article