Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Development - SQL Server 2014 » Latest topics
Browsing all 3145 articles
Browse latest View live

Convert Cross Join to Inner Join

Hopefully this isn't too daunting given that I'm providing a rather lengthy piece of sample code. I understand that cross joins using where clauses are the same as inner joins but I would rather...

View Article


An aggregate may not appear in the WHERE clause

Hi,Having trouble with this one:[code="sql"] SELECT * FROM [SQLNODEBSTAGE].[PEC_PROD].[DBO].[Staging_Eligibility] WHERE MAX(staging_eligibility_id) <> (SELECT MAX(staging_eligibility_id) FROM...

View Article


Coalesce and ISNULL not grabbing columns with NULL

I am trying to combine data from two tables. 1 table has a column where a value could be NULL. When I run my select, I never see the row with the NULL value. Here is my commandSELECTCOALESCE...

View Article

Query optimization

Hi all,I've been searching for a tool that would take a query (sql server) and generate alternatives and execute each x number of times so that you can see its performance and sort by that. I remember...

View Article

HASHBYTES MD5 - problem

Hi,I run into a problem while loading data into DataVault. I create my dv key with HASHBYTES('MD5', <business key>)The load failed due 'Duplicate data' error and the duplicate key being:...

View Article


the reasons with a intent to development

And below no strikes ate the reasons with a intent to development your wellness; you’ve most additional further additional additional almost always than now not than now...

View Article

sp_prepexec failing to get the handle

Hi,my colleagues have a problem where IBM DataPower acts as the gateway between SqlServer and their software (I don't know the details). What happens is that with some customer numbers they always...

View Article

Update column data from Linked Server

Hello everyone,It seems that I get stuck with updating column data from Linked Server.It would be great if someone could assist. :)So, this is the updated script from Linked Server:[quote]UPDATE [DATA...

View Article


Detox Diet Recipes; They Just Don't Work

Friends; i want to show you my 3 Garcinia Slim Diet nutrition tips to drop pounds. These will really allow you melt the pound merchandise in your articles just provide them a fair shake. How to attract...

View Article


Dynamic pivot and its effect on the plan cache

We have a heavily used GUI that displays specific business data in a pivot.A stored procedure is used to create the pivot, using dynamic SQL.The SP is using EXEC sp_executesql with parameters in the...

View Article

Approach to normalising 15 million transactions

We have a requirement to normalise 15 million historical transactions into a number of tables. This involves various transformation processes currently implemented in T-SQL stored procedures. Current...

View Article

SSAS Calc measure on filtering multi-members

HelloI am trying to create a formula in Calculated measureDimension Cell has multiple members including Control and Core. There is one more dimension called Data. I also have measure called...

View Article

SQL Server Thesaurus on AWS RDS

Any way to use thesaurus on AWS instance with no access to the underlying file system to edit the xml file ?Any other alternatives ?I'm stuck hard with this!Any quick help is appreciated.Peeyush

View Article


Easier Way to Access Extended Events?

We have extended event definitions on all our non-prod servers, primarily to aid with debugging and development. At any point we can look to see a list of almost-real-time stored procedure calls.The...

View Article

want no header row in output

Is there a way to call a sql select w/o it returning the column header row? Is there some sort of setting i can run before the select?

View Article


Turn Column into Rows

Hello, I am looking to take 1 column and take that data and turn it into a row. Basically, I want to take a range of dates and make the columns. Here is my same code:CREATE TABLE #Dt_Range (DtCols...

View Article

XML Schema Collection from multiple XSD files

Hello,I need to generate XML files for a new customer, using standard Electronic Commerce Format they have (https://vefa.difi.no/ehf/)I have three XSD files - one has compexTypes as below and the other...

View Article


Too many stored procedures

Hi all,I have hundreds of SPs and I was thinking that maybe I could do a SP that runs all of the other ones, instead of creating a separate job step for all of them.New SP's are still being developed...

View Article

How to Calculate the Values for a Column having Formulas , The Formula...

I have the table contents as shown in this picture:screenshot[img]https://i.stack.imgur.com/FAuzP.jpg[/img]The formula column contains the the column names as variables in the formula expression.I am...

View Article

No data in one column of a view (NULL value instead

Hello,I have a table [DataXYZ].[dbo].[DataXYZ_GeoLoc_Input] with, as you can see, data for both "x" and "y" columns for year 2015:[img]http://www.cjoint.com/data/FKxqcfsonpU_XYZ-input.png[/img]I have a...

View Article
Browsing all 3145 articles
Browse latest View live


Latest Images