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

Similar quires produce different output !! why ?

[code="sql"]create table #t1 (id int)create table #t2 (id int)insert into #t1 values (1)insert into #t1 values (2)insert into #t1 values (3)insert into #t2 values (1)insert into #t2 values (2)...

View Article


omit rows that have NULL value

Greetings All,It's been a while since I last posted on here, about 4 years maybe more. Anyway I'm happy to be back. I have an existing query that I needed to add two columns to. I did that but now my...

View Article


How to Import Data to SQL Server from Access Database using TSQL Script

I want to import the data from specific Access Database and Table to SQL Server, using SQL Script. I am trying to implement the solution as given in this link...

View Article

SFTP Task sql 2014 in SSDT

Hello,I am trying to run ssis package on sql 2014 which has SFTP task but it gives me below error. Description: Cannot create a task from XML for task "SFTP Task", type...

View Article

best isolation level to use in a long delete insert query

hi all, i use a single stored procedure to update many tables in sql server 2014 database, using defalut transaction isolation level we got random performance issues.maybe it would better to use read...

View Article


Restore the latest transactional log file job

Dear All,I'm trying find a way of crating an sql server job which would restore only transactional log file just once a day. The trouble I'm having is trying to get only the latest transactional log...

View Article

Hresult: 0x80004005 Description: "The metadata could not be determined...

Dear Experts,I am running below TSQL from SSIS package and its failing but runs successfully when ran from SSMS.Can anyone please help me to figure out the problem.IF(select count(*) from...

View Article

ISDATE function not working as expected

[code="sql"]Declare @var varchar(100)set @var = '2000'select case when ISDATE(@var ) =1 then 'Valid Date' when ISDATE(@var ) =0 then 'Invalid Date' END[/code]In the above code I have given value for...

View Article


Case statement troubles.

Hi All, I am having trouble with a certain query - being the only SQL resource in my company, I do not have anyone to confirm or deny my logic...I have three columns containing Id's (Account,...

View Article


Performance factors of insert

Hi There,Im have a situation to insert data from multiple sources to a single table.ie., multiple and concurrent insert on same table will it lead to dead lock at any point? is there any...

View Article

Pivot, NestedPivot, unPivot?

Trying to work out some code that involves a pivot, and I'm stuck. Grateful for some assistance...Source table has:[code][font="Courier New"]NUMBER MileStone ForecastDate ActualDate StatusFlag1 A...

View Article

Debugging CTEs

An annoyance for me is that a CTE doesn't seem to allow me to highlight-a-section-and-execute as I can with a SQL statement without a CTE.For example, if I have[code]SELECT Col1, Col2, ... long list of...

View Article

sp_addrolemember not working

Hi, I'm on SQL Server 2014. Trying to add my user to a group. I use the following:[code="sql"]exec sp_addrolemember 'MyGroup', 'DOMAIN\jbloggs'[/code] I then check it using:[code="sql"]select...

View Article


Alter Table Add 2 Fields Takes Too Long

Hello all. I have a strange one that i have never encountered and at this point am totally lost. We have a proc that adds some fields to a few tables of ours and normally there are no issues. For one...

View Article

change Daily info to Weekly periods in pivot report

hiI create a report base on categories and sales of goods. Now I have Daily Info abaout all Products.But I Need to present this report base on weekly periods. in pivotal format. I family with pivotal...

View Article


SSDT - Where??

After trashing my Visual Studio 2013 Professional installation by installing the stand-alone SQL Server 2014 SSDT package, I downloaded and installed Visual Studio 2015 Professional, noting in the...

View Article

SSIS Deployment

Hi,I need to deploy a SSIS project to a remote server to which I have very limited access. Don't have remote access to this SQL server. In fact, the only way I can connect is with RDP via a Citrix...

View Article


Need best way to move historical data out

Hi,I am getting ready to start a project where I am charged with moving out old data from production into a newly created historical DB. We have about 8 tables that are internal audit tables, that are...

View Article

Error using PowerShell script for restore job

Dear All,I'm trying to create a restore job for restore job in sql using PowerShell but I get the following error, would anyone let me know what I'm doing wrong please?The job script encountered the...

View Article

SQLCMD format issue

Hello All, I am trying to export data using SQLCMD. One of the columns in the table has the FLOAT data type with all the values for that column is 1.when I select * from table in SSMS the result is...

View Article
Browsing all 3145 articles
Browse latest View live