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

Greek Collation and Select Distinct Statements

I've got two distinct Greek words with a slight accent mark differentiation. SQL 2014 is seeing them as the same value when I do a Select Distinct.These are the two values:ΧριστὸςΧριστόςNotice the...

View Article


SQL Query - Help Needed

Hi,I have a query which imports data into an excel table.The issue I have is some of the columns the data needs to be transpose?Below is the current query I currently have what I need is the names in...

View Article


Ping Linked Servers From Agent Job Script

I run an agent job every 5 minutes with the following script to query the active linked servers. If a query errors out on a linked server, an email is sent to the recipient in the script with the basic...

View Article

can anybody give brief explanation on the normalization please.

Hi I am Naresh currently I am working as a sql developer.Now I am in training my T.L gave an work to me create student profile info with normalization.Please give me the guidance.Regardsnaresh

View Article

Create a trigger to Insert timestamp into created_at field

Quite simply I would like to create a trigger to insert timestamp into my created_at field whenever a new record is created.I know how to create the trigger but have no idea how to write the query and...

View Article


SQL triggers query

Hi, this is my first post on sqlservercentral. I am trying to learn about triggers, I know how to do really basic ones, but I can't wrap my head around this. I have two tables Services(master) and...

View Article

syncing a table from a complex View

Hi everyone,I am currently working on a performance issue related to a view..The view is very complex and its taking at least 2 min to execute and we are using same view along with other tables/views...

View Article

Find what values are passing to UDF from select query

Hi,I want to see what values are passing to my UDF.I am calling UDF from select query.Here I am giving sample query to tell how I am calling UDF. But original query is little big.Exmple:Select ID From...

View Article


How to delete particular day record from database using SSIS package

Hi Friends,I have to load the records from Flatfile to Database on daily basis.I am Using SQL server 2012I will load these files records using SSIS package.And the Flatfiles wil, be named after the...

View Article


Modify SQL Server Agent Properties in T-SQL

I just discovered the option to set a job to run when CPU is below a certain threshold for a certain length of time. I would love to set this up, but need to be able to create a deployment script for...

View Article

Procedure Increace by % Using Criteria

Hoping someone maybe able to assist with this procedure.I am trying to increase the price of an product by a user entered % for items with Dishwasher in the itemdesc.Below is the procedure I have which...

View Article

Right outer join with filters

[center]Hi everyoneNoticed you are able to help with a similar query and were hoping you could assist with mine, I need to find;Card number and date of borrowers earliest loan for all borrowers who had...

View Article

incrementing value sql query help

I have two columns in a table right now. My query is inserting data into this table from another so that non technical users can view this database value via excel. One column shows the date and the...

View Article


Select Parent and Child with HiearchyID

All,How to select parent and child with HierarchyID base on child attribute. Here's my table :[code="sql"]CREATE TABLE #BOMTbl( ItemNo HIERARCHYID NOT NULL, Lvl AS ItemNo.GetLevel() PERSISTED, MatID...

View Article

Call SSRS snapshot report dynamically

Hi Guys, We are setting up a new reporting environment for our client and as part of the deliverable I need to achieve the following two things, on which I need expert's advise. 1. Most of our reports...

View Article


Unexpected Increasing ram memory when using query in SQL 2014

Hello everyone, I am using SQL 2014, but having problem :When I use query in a table (having big data ..over one hundred million rows). I just query about 700 rows for select statement but I see : ram...

View Article

DEADLOCK and NOLOCK question for reading parameters from DB.

Hi guys.Here's the scenario: aspnet application, about 300 web requests per second, each request generates 10 to 20 sql server requests. In my vb6 times it was very easy to generate DEADLOCK error with...

View Article


Performance of the new (2014) Cardinality Estimator

Has anybody had any experience (good or bad) with this? Microsoft's own documentation ([url]http://msdn.microsoft.com/en-us/library/dn673537.aspx[/url]) hints at improvements while warning:[quote]While...

View Article

Columnstore and Slowly Changing Dimension

HelloI have an existing SSIS that uses SCD on a rather large table. I am also migrating to SQL2014 Enterprise. My question is, is it possible to use SCD and Columnstore(CS) together? I know that I can...

View Article

Reverse recursion for some specific statistical calculation

Hi All, First of all, I couldn't come up with a better title explaining my t-sql challenge. Sorry :)I have been trying to wrap my head around this for days. I have a table :id + A + B 1 |0,11| 02...

View Article
Browsing all 3145 articles
Browse latest View live