Convert @ISMBR into SSAS MDX
Hi,How to convert Oracle @ISMBR function into SSAS MDX Query?. I tried like IIF(Count(Intersect({MemberRange([New York],[New Hampshire])},{Market.CurrentMember})) = 1,<true-part>,...
View ArticleDebugging SP Issues with Dynamic SQL
I've been tasked with using a new stored procedure in one of our third-party provided databases. It's not our code and has never been used before. It's also 7000 lines (yey! :-D). The procedure simply...
View ArticlePlease Help - trying to eliminate "used tempdb to spill data"
Hi All,I've been trying to make the following query more performant by breaking it up into smaller pieces. SELECT MT.A3+MT.A4 AS A34,MT.A3 -- ,M.* FROM Master_TAB M JOIN (SELECT...
View ArticleSSIS - excel file manipulation
Hello everybody,I have a task where I need to process roughly 60000 excel spreadsheets and bring them into a SQL Server 2014 database. All excel files have the same format and same number of identical...
View ArticleIn-Memory OLTP vs. streamInsight
New to "current data" processing and just trying to get my head around the two technologies:I understand streamInsight is for streaming data processing. It seams In-memory OLTP tried to solve some of...
View ArticleAnyway to SUM(Sum(ColA)) + (SUM(ColB)) + (SUM(ColC))) when there are NULLS in...
Basically I need to get the SUM of the sum of three columns and all three columns have nulls. To make it more complicated, the result set must return the top 20 in order desc as well.I keep facing...
View ArticleHow to do "Excel PERCENTRANK.INC Function" type of calculations with SQL...
HiI have an excel sheet that makes use of the Excel PERCENTRANK.INC Function for doing the relative percentile score calculation on past 5, 10 and 15 days data available inside a Table.[QUOTE]The Excel...
View Articleincrementing the number in table and then resetting the column
Hi All, I have four columns in my table, the first one is the identity column col1 Col1 col2 col3 1 12 1 This is Test1 2 12 2 This is Test1 3 12 3 This is Test3 4 12 4 This is Test4 5 12 5 @@@@@when, I...
View Articlehow to split phone number based on - symbol dynamically
Hi Sql Experts,I would like to know how to split the phone number into two columns based on - symbol Dynamically.for examplePhone Number123-123231234-1222so output should becode number123 123231234...
View ArticleFind Common Link Between Two Tables in Database without Key Constraints
Does anyone know of a tool, script, procedure, or otherwise that will solve this problem?CREATE TABLE [Table 1] (Id varchar,TableTwoId varchar,OtherData varchar )CREATE TABLE [Table 2] (Id...
View ArticleQuery Store folder not visible in SQL Server 2016
HI all,As SQL Server 2016 category is not created so I am posting this query in SQL Server 2014 window.I have enabled Query Store in SQL Server 2016 using ALTER DATABASE and later tried with Properties...
View ArticleWindows Phone synchronize with SQL Server 2014
Congratulations for the site!I'm new to developing Windows Phone applications, need to know which is the best alternative to work offline (LocalDb), synchronize and update a database in SQL Server...
View ArticleT-Sql calling an .exe is working but problem with space in the path
H everyone, I'm testing calling an .exe from T-Sql. Here is the code (whic his working btw:DECLARE @sqlCmd varchar(300)set @SqlCmd = 'powershell.exe Robocopy "C:\testSource" "c:\testDestination" *.bak...
View ArticleNot able to create temporal table
HI friends,I was trying to create temporal table feature which gets introduced in SQL Server 2016 but I am getting this error while trying to create it;Cannot enable compression for object...
View Articlecross join query
Hi there, i would like to get help writing a cross join query with one table: Cities(City_name, X_coordinate, Y_coordinate)the result should be all combinations without reverse column returnsSELECT *...
View ArticleTriiger to execute a proc
I wanted to execute a proc whenever a new login or a login is droped is created on the server. I was trying for CREATE_LOGIN in the following code but not able to capture the loginname and pass it to...
View ArticleMaking Dashboard in Excel from the SQL Queries
Hi, Currently i have set of queries which i run for data extraction and result pasted in Excel table so that my pivot table and Chart gets populated along with the summary in Excel file.I would like to...
View Articlesp_send_dbmail : Problem with Cyrillic
Hello,We are sending some csv file to a third party using sp_send_dbmail. This is working fine but I have an issue with certain account which are using Cyrillic or uncommon characters (like Turkish)....
View ArticleSynchronise table on remote server via update trigger failing
Hi all, I have the following scenario. We have a database on a 2005 box, which we need to keep in sync with one on a 2014 box (until we can turn off the one on 2005). The 2005 database is still being...
View ArticleError in dbcc check table (please help me)
Hello people I'm new here ni SQLServerCentral my name and André'm from Braziland I have some problems with a faulty basis. The situation and the following have a table with 114,866,343 Sedo so that...
View Article