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

Shredding XML - more of a general question than a technical one - go on take...

Hi,Bit of a broad one this so I'll start at the beginning.We have a third party database which stores information for products in an XML format. The XML can be in a variety of formats depending on the...

View Article


Image may be NSFW.
Clik here to view.

Switch between Columns and rows in a given table

Hi guys,I am looking for a query that can switch my rows and columns in the table below :The final re

View Article


Simple/Easy Way To Test Stored Procedures And Functions

Hi Guys,Does SQL Server provide a simple easy way to test stored procedures and functions?  Something similar to the Immediate Window in Access.  I would like to test some of my procedures that do not...

View Article

Can't trim last character of string

Hi there,I've tried all kind of methods but I just can't get sql to trim the last "," from my string. I'm sure I could re-write the script not to add the last "," where the column_id is MAX(column_id)

View Article

Multiple Values for Single Parameter in User Defined Function

Did anyone come across this scenario where a developer/analyst comes in and pass multiple values for Parameter so he/she can see the data as a table with bunch of fields.

View Article


Views, Select & Windows Functions Performance General Question

Hi All,This is generic question which I may follow up and post some code on at a later date but I just wanted to ask for some initial feedback first.Basically I inherited took some old T-SQL - of lots...

View Article

Return Count(*) Value Into Output Parameter

Hi Guys,I know that SELECT COUNT(*) FROM table name will return the total number of records for a given table but I'm unsure how to code the SQL statement when you want to store that value in an output...

View Article

Execute Stored Procedure With Output Parameter

Hi Guys,What is the correct syntax for executing a stored procedure with an output parameter?  I have tried several different variations and can't seem to get it right.  I'm executing a stored...

View Article


Convert Rows to Columns

Hello:I have this query:[code language="sql"]SELECT DISTINCT F.DocumentID, F.[Filename], F.LatestRevisionNo, V.ValueText, V.VariableID    FROM ACME.dbo.Documents F<

View Article


Correspond Row Data

Hello:I have this query:[code language="sql"]SELECT F.DocumentID, F.[Filename], V.VariableID, V.RevisionNo, V.ValueText FROM MultipleApproval.dbo.Documents F INNER JOIN (SELECT DocumentID

View Article

Using Output clause with Insert Statements

Here is procedure I am trying to create:ALTER

View Article

Returning Output Parameters From Stored Procedure

Hi Guys,I'm having some difficulties trying to figure out the proper way to return output parameters from SQL Server Stored Procedure into variables in my VB.Net App and could use some assistance. Most...

View Article

Moving Partititioned Data

I have a database where I have implemented view level partitioning.  I have created separate file and file groups for each partition and have created the appropriate objects in the partitions within...

View Article


BULK INSERT with format file problems

Hi allCould anyone shed any light on the problem I have using BULK INSERT please? It's not something I have ever really needed to use in anger. This is proof of concept at the moment, there are...

View Article

XML - Basic but help me out if you can

Hi,This is probably pretty basic but I've never

View Article


Inner/Outer Join

I want to select all the columns from tblA and two columns from tblB:select

View Article

Check for Excel File Existence and Send Email (SSIS)

I've been using Script Task to check for the existence of File(.xls) in a folder(directory). I've written C#Code by declaring three variables.FileName, FilePath, FileExistsFlag. Readonly variables are...

View Article


Deadlock on TempTable in SP

I was asked to help a developer and was not given much information, so i hope you can help outUsing SQL Server 2014The developer re wrote a stored procedure to use #temp tables instead of @variable to...

View Article

How to ignore the duplicates and make same value for rest

Hi ,I am calculating the end date based on start date  and using the help of LEAD function.However i am not able to retain the value for the duplicate records.My Source[code]a              b

View Article

Cursor to Load two tables

I need help with the below cursor. i have the below data in the temp table . I need to use the temp table to load the data in 2 other tables. Table A & Table B.Table A- It will be loaded with the...

View Article
Browsing all 3145 articles
Browse latest View live