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

SSRS Grouping Problem

I have a report that has a dataset problem that I'm not sure I can fix.   The query for it is dynamic SQL because the company won't let me use a string splitting function like Jeff Moden's...

View Article


How to fix this query?

This query has been driving me nuts and need some help please.  I have a working example below but, to try to explain, I collect data on what databases have been used or not since the last service...

View Article


Joining a large table to itself....better ideas?

Hello all,I'm creating a view to use for future queries to make things easier.  Essentially this view needs to join a very large table to itself and I'd like to see what are the best ways to maintain...

View Article

XML replace node

----I have the following xml structure----I need to replace the entire <select> node IN @option_xm

View Article

SARGability of query

We have inherited the following (obfuscated) code, and are looking to improve performance. MyAudit has over 35 million rows, and MyTable has 0.5 million rows. The query takes 3-4 minutes to complete...

View Article


can we connect the two sql server management studio using client (like oracle...

Hi all ,Can we connect the two sql server management studio in lan  using client (like oracle client).in oracle there are client to connect or DBlink to connect database.Best Regards Santosh Ghoagre

View Article

Show ALL results or limit them based on parameter

I have an query returning back to excel. It is a list of items and their class. Based on a parameter in excel, I want to see ALL of the items, or I want to exclude those with class C and show all the...

View Article

Violation of Primary Key Contraint

Hello,I am getting this error when executing my statement:Msg 2627, Level 14, State 1, Procedure ad_MissingStudentMasterData_Enrolled,

View Article


General query intended to be Stored Prodedure using optional parameters

I intend to make a stored procedure that accepts several parameters and that has an option not to accept any parameters or some paramters.I have made the default value null in all cases.The Problem is...

View Article


Insert a duplicate copy of any record that meets certain criteria

Sorry for this dumb question but I am very new to SQL. Could someone help me write a SQL code?

View Article

SSIS data truncation.

I have a csv file which I am processing through SSIS. But there are companies in the list which have some produce data and the length of those values are more than 4000 bytes which is causing this job...

View Article

Understanding Deadlock

Dear Experts,Myself created a deadlock situation to better understand it. The process created a deadlock involving multiple process but I run commands from only two query windows. Can anyone help...

View Article

SSIS File system task, prevent error

I'm developing an SSIS task that I can use to import to a table SQL Audit files.  I've got the task working the way I want it to, but there's one niggling little detail I'd like to resolve, if...

View Article


db_owner

do i need to  be database owner to change table definition from SSMS? I am not able to do that with ddl_admin permissions from SSMS but i can using t-sql.

View Article

Capture effects of nested stored procedure without committing

I have a situation where a nested stored procedure has a lot of code and many updates.  I only want to get one value that would be updated after the procedure runs, but without committing the...

View Article


concatenate xml values in multiple rows into one row in SQL server 2012

I have attached the sample file for your reference.The column TEXT VALUE  contains  values of a xml file.I need to concatenate it as one row and report it.But  i don't know how to implement it.Can...

View Article

Looking for TSQL Query to display Parent child relationships

Hi All, Checking if anybody has query which displays all the user tables in a Tree format based on parent child relationship. CREATE TABLE [dbo].[Dept](    [DEP_ID] [int] NOT NULL PRIMARY KEY ,  

View Article


Load SSIS package with XML code only

Hi SSC,I made a copy of an SSIS package XML. I saved it to notepad with a ".DTSX" extension. I am trying to load that file into SSIS but I keep getting errors. Here are my steps...1) Add existing...

View Article

SSIS Job execution issue

Well, after two days of digging and pulling hair I am posting here.. geeeeeeeeeesh..  Anyway on with my issue.I have a simple SSIS job that truncates a table, reads an excel file on a share and dumps...

View Article

Need to bring pivot results into another table with JOIN

I have a CTE that results in a pivot, now I want to bring in the results to another query. I can't seem to get the pivot table alias correct so I can tie it in. Here is what I have and am trying to...

View Article
Browsing all 3145 articles
Browse latest View live