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

Need to group up rows based on date overlapping

Hi There,In a same id, if any of row's effective date and enddate overlaps then we need 

View Article


Based on Dates and Running Totals, need to pull records in middle of table

Hello, I have a report I'm trying to create where they're looking to see when they need to reschedule orders earlier as there will be a demand for certain items earlier than originally expected. So...

View Article


Problems quering XML

Hi there,I have an XML with the following structure (I also attached the xml as file):[code language="sql"]<SSIS:Parameters xmlns:SSIS="www.microsoft.com/SqlServer/SSIS"><SSIS:Paramet

View Article

Collation problem.. case sensitive LIKE

Our DBs are universally set as having a case insensitive collation, but for one query I needed it to be case sensitive, so I added the latin1_general_CS_AS collation sequence to the table variable...

View Article

Performance of clustered index and clustered primary key

I have a table with millions of rows that stores measurement data.  Data get inserted in batches of thousand of records every 5 minutes as we received web service messages.  I have no control over the...

View Article


Deadlocks When Expiring SSRS Dataset Cache

We are currently on SQL Server 2014, V12.0.5203.0. We use SSRS as our core reporting tool. Most of our report datasets are set up as shared datasets which are cached. The cached datasets are linked to...

View Article

Using a SQL Plan Guide

Hello.I have read all of the posts I can find about setting up a plan guide for some SQL, and the gotchas about exact matching, including white space etc.I have also read posts about taking the SQL...

View Article

SQL Server | Architecture design -

Hi Experts,I have couple of basic queries regarding the way SQL Server is designed/works:1) Schemas in SS is bit different from that in Oracle. In Oracle, explicit privileges (GRANTs) need to be given...

View Article


Identity Column

Hi,Trying to figure out what to do on a new student DB where all the table related to a student will have a unique student ID. Is it redundant to use the Identity column as well? As part of primary...

View Article


Help in finding actual days and hours difference!!!

Hello All,

View Article

Getting max(date) and relevant unique GUID

I have a table with a uniqueidentifier column (36 char GUID), an associated customerid column, and a date field.I need to get the most recent uniqueidentifier and date for the customerid, but when I...

View Article

Driving me nuts: selecting valid timelines from several lines in a table

Hi all,I've been looking like crazy for answers, and although sometimes I think I might have found something, it just isn't what I am looking for.This one being the closest, but can't get my head...

View Article

SQL 2008R2 to SQL 2014 Upgrade

Hi guys,I am planning to upgrade my SQL Server 2008r2 to SQL 2014. As a developer I want to know how, if any, will it impact any of the code base. As per my little research, Upgrade Advisor report will...

View Article


Pivot Key-Value pairs

Hello,Here is an image of the result sets from my existing tables and the desired result set I am looking to produce from a query. It is basically pivoting values from key-value pairs by deriving the...

View Article

SQL Query Help

Here is my sample dataCREATE TABLE ##Source_table1(s_isc VARCHAR(20),s_sta VARCHAR(20),s_rateDECIMAL,s_weekdayDATE,s_starttimeDATETIME,s_endtimeDATETIME,s_keyint)INSERT INTO ##Source_ta

View Article


Selecting all text between a distinct path

Hi,Im trying to get all the text between the third backslash and fourth backslash based on a select query - can anyone help me please? The results may not have a folder structure which goes into the...

View Article

Any ideas for solving a data lineage requirement using SQL Server (or other...

Hi,We have the following requirement for a new system we're building and I'm trying to figure out the best type of schema for it - also open to alternative database technologies if it makes sense. We...

View Article


the time mtom mi sh erm eo mfkdmflkdsfwtr

[url=https://ufc--210.com/]UFC 210[/url][url=https://ufc--210.com/]UFC 210 Live[/url][url=https://ufc--210.com/]UFC 210 Live Stream[/url]wher to buy is herer

View Article

SQL Agent can't run PowerShell Script - just hangs

I have an SSIS package that creates a .xlsx from a query result.  I then need to insert a new row 1 above the column headers and value columns 1 and 2.  Then schedule it via the Agent.I first did it...

View Article

Improving performance using partitioning

Hi All,I have a few related tables that are becoming big in size and row count.The Header table has a date field which i will use to group data for each year.while the detail tables linked to it has no...

View Article
Browsing all 3145 articles
Browse latest View live