ISNULL, How to display 0 instead of NULL when executing the stored procedure?
My lines are:select isnull(tblaaa.Week, isnull(tblbbb.Week, isnull(tblccc.Week, isnull(tblddd.Week, ISNULL(tbleee.Week, tblfff.Week )))))AS 'Week' ,tblaaa.aaa ,tblbbb.bbb ,tblccc.ccc fromwhere do i...
View ArticleDownloading SQL Server 2014 Books Online
Hi ThereI would appreciate if anyone could help me. I am trying to download the online help for SQL Server 2014. The only item I have selected to download under "SQL Server 2014" is Books Online. The...
View ArticleCannot connect to MSSQLSERVER
I have just installed SQL-Server 2012 on a windows 8 system, but when I try to connect through SQL Server Management Studio I always get the same error:Cannot connect to MSSQLSERVER at...
View ArticleHelp with Indexes.
Hi,We have got table with 27087719 rows and when I execute simple SELECT statement it tool 14:30 minutes to give me the output, and when I filtered the columns to just 3 columns and again fired SELECT...
View ArticleLicensing for Reporting Service and other separate components (OLAP/MDS)
Hello. I was told that installing Reporting Services on a separate server (not on a SQL box where database engine is installed) requires this reporting server to be licensed additionally with SQL...
View ArticleHow to simply remove Partition Schemes or Partition Functions
Hello,Did anyone can instruct how to remove the Partition Schemes & related Partition Functions?When try to remove those Partition, it give out a error 7717 and it can see there are many related...
View ArticleMigrating from SQL Server Express 2012 to SQL Server 2012
Hello, I am running SQL Server Express 2012 on a Virtual Machine for my learning box.My work load has brought me to the place where I need to be using the full blown SQL.I have backed up my databases...
View ArticleTransactions and stored procedures
Hello, I would like to know if using transactions implicitly implies that the tables/views used in the transaction are locked and can not be modified by another transaction: I have two stored...
View ArticleAdding security to a linked server
Adding security to a linked serverWe have a linked server that has an attached linked server signon. The linked server attaches to a DB2 database and the signon is a service account with a password and...
View ArticleDatabase Mail Target smtp server refused connection.
Hi..I'm working with a dev box that I'm configuring Database Mail from.I've run through the setup fromhttps://msdn.microsoft.com/en-us/library/hh245116.aspx...
View ArticleWhile loop or cursor
Hello, allSometime i surf the internet and got confused because today i search for while loop and Cursor difference and mechanism / performance but i got different answers in diffrent pages some says...
View ArticleDown grading from Enterprise to Standard Edittion
Good Morning,What is Microsoft's recommendation on down grading from Enterprise to Standard. We have SQL 2008 R2 Enterprise and we are going to SQL 2012 Standard. Any good recommendations would be...
View ArticleI need sql query please help me out
I have two databases 1) erp 2) edusourceIn erp database i have table master tables and columns like RecordId , value type ,Feildtext,description,Meaining,parentid etc data stores based on value...
View ArticleQuery to get free space of databases
Hi guys,I'm very new to SQL servers and it's not my day to day business at all, and yet as fortune has it, I needed to so something and It caught me off guard.To make a long story short, I'm trying to...
View ArticleCreating Sessionstate Database
Dear Expert, I have SQLServer 2008R2 and Server already has 1 sessiondb which are using for different site and now I need one more sessionDB in SQLServer2008R2. Please provide the Steps to create...
View ArticleFetching logic after converting into Date?
Hi,I have a column Date1 which is a DATETIME datatype. First i give the following line in where clause "Date1 between '2014-05-05 00:00:00' and '2014-05-05 00:00:00'" After this it fetches only those...
View Articlemaximum value from a comma separated column in sql
Hello All,Recently i face a problem. I need to get max value from a comma separate column in sql. I can do it manualy bt not sure is it possible dynamical. any one can help me to find out.Input :...
View ArticleInstance Names
I am looking in SQL Server Configuration Manager.There are two instances the SQL Server Service running. Does that mean there are two instance of SQL On this box?I can only connect to one instance via...
View ArticleNeed to write a SQL query
Below is the ERD. In need to create Report in following structure.The contact in above report will be the contact linked to the activity table where contact_Id=dbo.Contacts.IdCreatedBy is the Agent in...
View ArticleNeed to write a SQL query
I have a query that display above format from different tables.But since in row 2 and 3 date, time,day values are same, I don't want it do display it again in row 3.Below is the required format.How to...
View Article