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

columnStore Index Problem in Sql server 2014

Dear All,without disabling the columnstore index how to insert the data table in sql server 2014

View Article


ALTER TRIGGER behavior change in SQL Server 2014

I was perusing old QotDs, and came across the following quite interesting one: [url]http://www.sqlservercentral.com/Forums/Topic1492971-3440-1.aspx[/url].It pointed out that after disabling a trigger,...

View Article


SSIS data tool issue in SQL 2014

I have installed SQL 2014 enterprise edition in Windows server 2012 . After that I installed SSDT tool SQL 2014 CTP2 version . However I am getting below error if I try to open any package or if I try...

View Article

Recover database value

Hello sir, good afternoon i need your help regarding SQL server, by-mistaken i updated values of a column in a database hosted online, is there any way undo the transaction. I didn't created any backup...

View Article

Going from 15 Minute intervals to 1 min intervals

I have two fields ID and Log data and log data is a 96 character long string of numbers representing 15 minute intervals from midnight to midnight. I need to convert these 96 characters to a full 1440...

View Article


Select statment returning too many rows for the backup start date

Here's my statement below. What I'm trying to get is joining the name column in master.sys.databases with a sub query for the database name, file location and backup start date from the MSDB database....

View Article

Partitioning on Date

Hi Guys,I'm looking to partition a big table into years.I have a big table with data going back to 2001.I need to partition this into file groups each for the last 5 years, and the rest into its own...

View Article

sp_send_dbmail Wrapper for HTML

Someone, somewhere, must have done this. Please share if you have.As many will know, executing sp_send_dbmail @query='query', [other args here]sends an e-mail with the results of the query embedded in...

View Article


How to Split a string into two columns

Hi Everyone,I have a database in which sample data is as below:सुविधा देवी पुत्री हजारू राम देवकी देवी पुत्री शंकर दास लीला देवी पुत्री काँशी राम मनोरमा उर्फ सपना देवी पुत्री बिद्या सागर Now I need to...

View Article


Return data between two dates in the past

Hello - does anyone know why the statement "where WD.WRKD_WORK_DATE BETWEEN DATEADD(DD, -6, GETDATE()) AND GETDATE()) = 0' is successful, but "WD.WRKD_WORK_DATE BETWEEN (DATEADD(DD, -16, GETDATE()))...

View Article

Eliminate Duplicate Rows when joining multiple tables

We have the below query which is pulling in Sales and Revenue information. Since the sale is recorded in just one month and the revenue is recorded each month, we need to have the results of this query...

View Article

Delimiters - Importing Data - SQL Server Import Wizard

Hello,I have an issue trying to import oil and gas data from a magnetic tape into SQL Server. At this point all I want to do is import into a staging table and then I will absorb the information...

View Article

Best practice for variable manipulation?

I was wondering what the pros and cons to alter the variables in a script task or expression editor are. I have been changing values in the Script task since I could walk through the script and see the...

View Article


How to do do data massage for this scenario

[u][b]i have a table in the following format [/b] [/u]FA FA_Type PID FirstName MiddleName LastName SplitNames UserLogon ImpersFirstName ImpersMiddleName ImpersLastName prsn_position_desc acc_id82P5 pri...

View Article

which is better for performance: LEFT join or NOT EXISTS

I am curious as to which of my two options would generally perform better when dealing with a table with 5+ million rows. Option 1 is the left join TABLE A to TABLE B on the key and then say WHERE...

View Article


Gathering Stored Procedure execution time in real time?

Is there a way to keep track in real time on how long a stored procedure is running for? So what I want to do is fire off a trace in a stored procedure if that stored procedure is running for over like...

View Article

SQL 2016 Syntax

No forum for SQL 2016, so I do apologize for posting this here. However, I can't find documentation for the R-Integration features. Could anyone point me in the right direction to get the syntax for...

View Article


Query in sql 2K8R2 : 13 sec, on 2K14 : 23 minutes..

Hi, i am facing a huge issue in sql 2014 (SP1)i have a very very complex query from a third party software.It involve 10 table variable and a lot (seriously a lot) of subqueriesOf course the query is...

View Article

converting NULL

i have a little confusion...DECLARE @name varchar(30)SET @name = NULLSELECT ISNULL(CONVERT(DATE,@name),'')Result: 1900-01-01But..DECLARE @name varchar(30)SET @name = NULLSELECT ISNULL(@name,'')Result:...

View Article

Indexing Dates

Hello SQL ServerCentral,I have a quick question. I am trying to index dates to numbers with a large data set.The first colums is index, the next is FactorsS, the next is value and the next is Date and...

View Article
Browsing all 3145 articles
Browse latest View live