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

[N]Varchar(4000) and Performance

Hi,What are the disadvantages of using many columns with varchar (4000) or nvarchar (4000) in terms of performance, DB size, index size (CI, NCI, CCI) and IO? Some developers argue that anyway only the...

View Article


Full text issues after string with "\.\" in it

Hi, all -Weird issue on Sql Server 2014 that I'm hoping someone can help me with.  We work with a lot medical notes and reports that comes in via a wide variety of formats. These notes and reports get...

View Article


Format column as HHH:MM:SS instead of MMM DD YYYY HH:MM (AM/PM)

Hi everyone,This problem seemingly does not have a clear solution.I am importing data from Excel using OPENROWSET. In the Excel files I have columns that contain time durations in the format of...

View Article

Change Logs

View Article

Query Performance Improvement

Hi All,I'm very new to PI and sorry if this is a silly question, but was wondering if I can reduce the logical read/ improve the query performance slightly.The query is ; Select col1,Col2 from tbl...

View Article


finding duplicates users

Hi,I'm trying to get the 'leaver's date' of employees who have left our organisation. However, I came across an issue in that if a previous employee is re-employed they get a new record - the old one...

View Article

SSIS not copying all rows in data flow task

I'm trying to create a basic SSIS package to copy almost all the columns of a table from production down to QA, for one of the developers to run some reports against.  While the package does what I...

View Article

finding previous 12 months data, not including current month

on the 10th of each month i run a report for the 12 month period, not including the month i am in.So in October 2018, i want the report to pull for Oct 2017 through Sept 2018. With no Oct 2018 data.I...

View Article


Query 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...

View Article


How to flip tables in sql server 2014

Hello,I have a requirement wherein there are 2 tables (Staging & Target) in the same database.Everytime data is first loaded in the Staging table. Now in second run data will be again first Loaded to

View Article

Image may be NSFW.
Clik here to view.

SQL Query to split values

Hi, I have below column with values and I want to split values into multiple column values<

View Article

optimize sql stored proc for better performance

Hello,I have this stored proc I am trying to determine if it can be optimized for better performance. If anyone could advise it would be appreciated.Please find attached script containing table, stored...

View Article

Exporting data to Azure Data Lake Store with Custom code in Script task...

I need a help. I am trying to export the data to ADLS by converting the result set into the stream.When I am trying this with a Console app, No error is thrown, But When I integrate this with the...

View Article


How to transfer data from all table in database to azure data lake destination?

 have two tables tbl1 and tbl2. I want to create a package which will read the data from tbl1 and tbl2 and transfer the data to Azure data lake as two files 

View Article

looping through all databases to find dependencies (cursor)

I want to have a go-to query that finds all dependencies of an object, across all databases (without requiring any permanent object like a stored procedure in the host server)I believe a cursor is one...

View Article


Showing all records that appear more than once

Hi everyoneI'm trying to write some SQL that will allow me to pull all records where the NUMBER column appears more than once. I need to see all the other columns too, whatever they contain e.g.NUMBER...

View Article

My data-value parameter does not conform to the parameter SQL Server error...

I am attempting to get data from active directory Users and place them into a datatable in SQL Server 2014 Standard. I first placed this question on stack overflow. The link is here

View Article


How to PIVOT various VAT breakdown options with Invoice Summary data

Countries like Canada have certain consumption taxes to be applied, when selling products, e.g. GST, HST, QST -  (if one is interested here

View Article

Options to assign a dynamic content to XMLNAMESPACES area

I have a long running process, generating XML files with XML Namespaces, which are defined using WITH XMLNAMESPACES as below:[code language="sql"]WITH XMLNAMESPACES (    'urn

View Article

Image may be NSFW.
Clik here to view.

SSIS to load complex Excel File

Hi,I want to load the below table into SQL Server Database using SSIS package. Can you one please tell me how to achieve this? I am quite struggling to load.

View Article
Browsing all 3145 articles
Browse latest View live