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

converting UDF to be memory optimized

Hi, I have been reading links relating to the fact that instead of using table variables, then I should be able to switch to using memory optimized tables. To do this, I am meant to define a type,...

View Article


Best way to filter columns

Hi,I have an application where we gather RSS news feed from around the world into this staging table.From that staging table, we only need "important" news articles to move into the real RSSItems...

View Article


Find value is prim or not

hi friends , if I give input for @a is 7,8,10,11,12,13 and ect . I will get perfect answer .but when will I give input for @a is 9 or 4 , I did not get answer. pls try to solvecodings : check value is...

View Article

query performance tuning

Hello! I am running a query which is taking 23 mins to run in my dev server. I need your expert advice on how to improve the performance. I can change the architecture a little bit as it is still in...

View Article

Join two tables with matching items

Hi I am using Microsoft Dynamics Navision and SQL as the sourceI have two tables the main table being Value Entry that holds all the transactions being done daily and my second table being the Transfer...

View Article


SSIS packages dont work all of a sudden through SQL agent Jobs

Hello there I have an issue with my SSIS packages they run fine on Studio 2013 but when you try to run them as a SQL job in SQL Server 2014 it fails with the following errors, The SSIS package goes...

View Article

Changing a function to work with multiple records

I have a function that I use to compute the number of days that a patient is unavailable in order to reduce the number of days they have breached a waiting times deadline.The function is as...

View Article

CTE Script Needed for delete statement

Hi,we are using below script for delete records.but it is taking timeUSE AdventureWorks2008R2;GODELETE * FROM Purchasing.PurchaseOrderDetailWHERE DueDate = '20020701';GOis there any possibility of...

View Article


Query

HI Everyone,can any one write one dynamic query based on fromdate and Todate columns data should come as mentioned below declare @tbl table (id int,Fromdate datetime,Todate datetime)insert into @tbl...

View Article


sqlcmd' is not recognized as an internal or external command

Am trying to run the below batch but I always get sqlcmd' is not recognized as an internal or external command,\roperable program or batch file . how to fix it please I have sql 2014...

View Article

Performance problem with TRY_PARSE

Hi,I have SQL Server 2014 SP1 Developer Edition with CU7. I have noticed a significant performance problem with using TRY_PARSE versus TRY_CAST. In a query with around 500,000 rows (ETL job), using...

View Article

Pattern match postcode area lookup

I regularly have to mass update customers address areas when the postcode lookups for those areas are altered. e.g the lookup table can be something like below.I usually do this as a number of runs....

View Article

TSQL Select specific records and child records from same table

Hi guys. I'm fairly new to SQL, but learning quickly. I've got a situation where I need to query a list of jobs, select some that meet a specific criteria (easy) but I need to also select some other's...

View Article


Find "Consecutive" records based on available dates in another table

I have an activity that happens each Mon, Wed, and Friday, except holidays. I have a table that stores all of the appropriate dates. Since this only happens M-W-F, I consider 05-04-2016, 05-06-2016,...

View Article

Find top 10 expensive queries in the past 10 minutes

Hi,I need a scrip to find top 10 expensive queries in the past 10 minutes for a specific application in SQL server.Thanks in advance,Yuji

View Article


CAST as numeric rounding issue

Hi,I have two servers, one running Microsoft SQL Server 2014 (SP1-CU5) and another running SQL Server 2008 R2 Service Pack 3 (SP3).I have a linked server setup to Oracle 11g. Both servers are running...

View Article

How to Put a MAX(Date) from a Table into an SSIS Variable

I can't seem to figure out how to add a variable that uses a table for its value.I'd like to use SELECT DATEADD(HH, -1,MAX(LastModifiedDate)) FROM TicketsTableAs my variable.Currently I use something...

View Article


xp_cmdshell BCP

The same command works in SQL 2005 but just returns null in 2014. I'm going nuts with this.xp_cmdshell 'bcp "select top 10 * from dbo.customer_master" queryout ''C:\customers_master.txt'' -T -e...

View Article

Stored Procedures not accessible

Hi,Please help me here.I am not able to access stored procedures but I can access functions, tables, views and other objects.Can somebody please help me here ? I am not getting what is the reason. I...

View Article

# of tables in TempDB

Hi,Is there anyway to get the number of temp tables in TempDB and created by which application? I am working with a customer with high disk contention on TempDB drive.Regards,Yuji

View Article
Browsing all 3145 articles
Browse latest View live