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

Compare two sets of data

I have two sets of data .Select * from table A where fileid=3196select * from table A Where fileid=2918example : There are 534 rows with fileid 3196 generated and some 100 rows for fileid 2918. and...

View Article


Where to put option Recompile in Dynamic SQL

Hi SSC,I've got a procedure which performs  maintenance on a bunch of tables. It used to be about 40  statically typed  statements  which did virtually the same thing (delete in batches of  n until...

View Article


Storing Sql Scripts

I'm looking to store sql statements into a column and then retrieve and execute. Basically I want to try and stay away from storing them in an external file .sql  calling them from sqlcmd. Any one have...

View Article

Key Lookup to Index Seek?

Hello All,I am trying to educate myself a little more about Index usage in regards to performance tuning.  I have one Stored Procedure on an Instance used for reporting that is taking longer and longer...

View Article

Query Cost Relative to the Batch vs. statistics io vs. Extended Events

I'm working on a performance issue and when I compare the original logic with the my proposed new logic, everything points to the new version being faster and more efficient. Everything except the...

View Article


XP_CMDSHELL & RS.EXE and access rights

HiI'm trying a solution where via a stored procedure I map some drives, the frist to store the SSRS report exported as a Exxcel attachment and the second where I map a drive to where the RS.EXE is...

View Article

Report Query

Hi,     I have a table that is holding data like the following...[code language="sql"]when                       agent &nbsp

View Article

SQLServer 2014 Visual Studio 2013/15 HTTP download Files with different URL's.

I have the need to download a .zip file from an given URL that changes daily (File Name Chance by the Date).Processing the file has already been accomplished in Date Flow Task.I set up a variable,...

View Article


Searching for date and weekday counts within Nvarchar column

Hi all,I have an NVarchar column containing assorted data including dates and times, typically in the following format   '02-25-2017, 04:03 AM'I want to generate 2 result sets (or 1 if it's smarter)Re

View Article


Worst execution times with indexes than without ?!?

Hello,I get this surprising result with indexes: they don't help to improve performances.My environment (DEVelopment) :# 1 VM :  MS WS 2012 Datacenter, hosting SQL server 2014- 16 vCPU @ 2.53Ghz- RAM:...

View Article

SSIS project fail to build - CPackage::LoadFromXML fails

I have been trying to solve a SSIS project related problem for a week now.The SSIS solution/project has been working fine for two years but is not working at all for a second user after adding him two...

View Article

Indexing Small Temp Tables used to JOIN based on a value being in a range...

Just wondering if there's much I can do to improve a query that has to join about 70K rows to a temp table that has a RangeLow (int) and RangeHigh (int) and a RangeName value that is going to be part...

View Article

Check for Excel File Existence and Send Email (SSIS)

I've been using Script Task to check for the existence of File(.xls) in a folder(directory). I've written C#Code by declaring three variables.FileName, FilePath, FileExistsFlag. Readonly variables are...

View Article


Msg 547, Level 16, State 0, Line 1 The INSERT statement conflicted with the...

[code language="sql"]Insert into Inventory_tagalongs (itemnum, store_id, tagalong_itemnum, quantity)select itemnum, store_id, tagalong_itemnum, quantityfrom tagalonglistsq[/code]I do not

View Article

Create Indexes on Computed Columns

Hi everyoneHi have a doubt about create indexes on computed columns.Microsoft provide in its web with comments about this subject:

View Article


top 1000 added to linked server select taking forever to run

We have a mysql database that we are referencing in sql server via linked servers. Our report guy have a tableau report that references the linked servers through views we created. He was complaining...

View Article

Getting data based on group

First post so apologies for the etiquette. I'm trying to retrieve some data that is missing by using it at the group level.My example below :[code language="sql"]CREATE TABLE GuidTable

View Article


Referencing another table throws off totals

Using Microsoft SQL Server Report Builder 3.0, This SQL query code:[code="sql"]SELECT  tblDataPermit.Type  ,tblDataPermit.Status  ,tblDataPermit.ApplicationType  ,tblDataPermit.ApplicationDate  ,

View Article

Trigger with Eventdata, Rollback not working

When the recovery model is changed the trigger below is fired: an error is raised but the action will be executed. Is a rollback possible with eventdata triggers ? I understood, that it should work....

View Article

De-Concatenate multi-select picklist and transform into target multi-select...

Hi, I have a requirement where I have to tranform an existing multi-select picklist column.The source data exists in the folllowing format: Source3G Contact::C.E.O Contact::External Newsletter...

View Article
Browsing all 3145 articles
Browse latest View live