How to create (duplicate) syncronized table columns (data only) in new...
Hi All: for several reasons i need to create a (what i call a reporting) table that holds synchronized records from other tables.This is a very sparse, but very-complicated and extensive third-party db...
View ArticleTSQL Dynamic columns and SUM at the end
Hi!I have my tsql dynamic query which is functional and it works. However, I dont know how to add SUM at the end of each rowHere is my main...
View ArticleNumber of queries executed by all users
Hello,I am trying to find either a DM view or group of system tables that will show me the number of queries executed by all users in the past 24 hours. Can anyone assist?Thank you all in advance for...
View Articletemp tables versus memory optimized
Data warehouse team has a large SSIS package which needs to access a temp type table, about 2 million rows and about 400 MB. (this is enterprise edition). From a DBA perspective the question may be...
View Article64-bit ODBC with SSDT/Visual Studio 2013
I'm trying to create an SSAS 2014 Tabular model using Visual Studio 2013. I want to use a 64-bit Microsoft Hive ODBC driver. I was able to create a 64-bit system DSN. However, I only see 32-bit DSNs in...
View ArticleSSAS 2014 Tabular vs. Power BI
Don't SSAS Tabular and Power BI both use the xVelocity (vertiPaq) engine? If so, what are the advantages of using SSAS Tabular vs. Power BI and vice versa?
View ArticleStored Procedure Performance Issue
Hi all. I've done my homework on this one and I'm perplexed. I'm an old hand at optimizing queries and stored procedures but I've been solidly in the Ops world for a couple years and may be a bit...
View Articlepopulate different records for duplicate data
I have a table A which has some dataguid fbnum date Type123 234 March 21 II125 256 march 1 IVI have another table say B, the data in B is populated from AID guid fbnum date type 1 123 234 March 2 IIII...
View ArticleInsert Performance Issue From Temp Table
Good Afternoon Guys,I would like to ask is there a way for me To Optimize the way i insert My Data from A Temp Table To A Sql Table. i am currently Inserting Data to a Temp table using A Sql Query that...
View ArticleEliminate {CR} rows in the flat file
Hi All,In SSIS pkg moving data from flat file to flat file.Need to skip the rows which has {CR} carriage return in the source and avoid coping to destination.My Row delimiter is {LF} and column...
View ArticleRunning Totals with window function
I have a business requirement to produce a running total, but with a twist ... If the running total drops below zero, then it resets to zero.In SQL 2008R2, I used a recursive CTE to get a running...
View ArticleJOIN Multiple Tables simple Question NEWBIE
Here is code that describes a simple multi table JOIN. I am new to T-SQL and wanted to confirm the logic of this code. SELECT product_name, vend_name, prod_price, quantityFROM orderitems, products,...
View ArticleBest Institute for Sql Server Developer(MCSA, MCSE) course in Hyderabad, India
Hi all,I would like to do a MCSA, MCSE certification course. including Sql server Developer course. could you please suggest the best institute for these.I have seen many institutes but they are just...
View ArticleUnresolved reference in Object
Hi,I have a database project in VS2013 which contains stored procedures that create temporary tables. Some of those temporary tables are used in another procedure.Now when building this project i get...
View ArticleSignificant drop in performance on If Exists, and while loop blocks
Greetings all :) I am running into a situation I have never experienced in 12 years. I have an Except query, comparing two tables. This query runs in 2 seconds. It rarely every returns data, so I use...
View ArticleNested Joins - Having syntax and bounding issues
Hello. My first post here and hope to get some help. It'll be obvious that I'm a newbie.I apologize for the length of this post but I want to provide as much information as possible. I hope it's...
View ArticleOMG - What have they done to Stored Proc Scripts???
Just upgraded to SQL 2014 development environment. Please tell me how I can convert back to the old way of stored procedure scripts? When I generate an ALTER script now it does this crazy: -IF EXISTS...
View ArticleSpatial Data: finding the closest point to a geographical point. Populating a...
I am using SS2014 and T-SQL.I have two tables. Both have latitude and longitude. I added a field called [coordinates) of geography data type to both tables and populated both with geography coordinates...
View ArticleUsing JOINs with GROUP BYs
Hello Awesome Help Forum,I am new to SQL server and I have a question on the logic of this code:[code=plain] SELECT customers.cust_name, custimers.cust_id Count(order.order_num) as num_ordFROM...
View ArticleTo include above details in whre clause
SELECT dbo.Systems.SiteNumber, Derived_Policy_Audit_Latest.PolicyID, dbo.PolicyAudit.ProductCode, dbo.PolicyAudit.LobFROM dbo.RejectReason RIGHT OUTER JOIN dbo.PolicyAudit ON...
View Article