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

Stored proc with variables

Heloo, i have a problem with the follow storedprocin my VB program i have a lot of tables with SQL Server 2014ith this storedproc i try to consider of a name really exist in one table.USE...

View Article


Importing Multiple pipe delimiter files at once

Hello everyone,I am able to import one pipe delimited file at a time with the script below but can't get it to import multiple files at once. I tried to use a wildcard in the file name but it won't...

View Article


Logic to check for empty table before joining

Hi All,I have a requirement which requires me to display report as per the dimension access to the user trying to pull the report. Just to give an example.. My dimension "Dimension.Sites" can have more...

View Article

Increament id if running total for group exceeds value

hi all,as you can see below, i want to add an incrementing basket id if running total exceeds 10 for that group.order 1 , 2 and 3 are for group id 3 but order 3 would exceed the running total of 10,...

View Article

Very Basic PIVOT function, first try

[code language="sql"]SELECT*From  (SELECT  Line_item_Duty as [DUTY],  [Supplier] as [SUPPLIER],  Datepart(MM

View Article


help with substring

hello all,need help to split data as below. i try to use charindex to find occurrence of 'And Id in (', but facing difficulty with close parenthesis due to multiple occurrences.[code language="s

View Article

Pivot in SSMS porting to SSRS

I wrote this, and it works fine in SSMS. But i would prefer it in SSRS so the user can just run it and then open in Excel.  I am wondering if i can port this to SSRS.  I tried, it didn't work for...

View Article

Data Analysis

Please help!  I have the query below.  The output is as...

View Article


AND and OR Operator on single table

Hi All,I have a dynamic where clause which needs to be applied on a table. where clause conditions explained below:1. where clause may contain one or more columns.2. where clause may contain both AND...

View Article


GROUP BY TO appear IN one row THEN Calculate total and AVG

HiI currently when i run my query i get the following output. **Current**|year|Weeks|Won|Lost||---|---|---|---||2017|48|4|NULL||2017|49|NULL|2||2017|49|7|NULL||2017|50|NULL|8||2017|50|19|NULLAs y

View Article

Fulltext to search for numeric values

Hello,I'm trying to utilize full text indexing to speed up a function.  Right now I have a condition that looks like this:WHERE Subject like '%E[0-9][0-9][0-9][0-9][0-9][0-9]%'Ultimately

View Article

Encryption on Varchar(max) Column

I have a table in SQL Server 2014, with varchar(Max) column which holds xml type data, we get data from external source. Data contains some customer name and addresses, so we need to encrypt the data....

View Article

MS Access Compare two columns

MS Access Script I hope you don’t mind me asking for script in an MS Access database, but I don’t know much about this topicI am helping my daughter with a school project and it involves students with...

View Article


Service Broker

Currently I use service broker purely for an auditing function i.e when a row is updated/inserted in the source table a trigger calls the activation proc, then send an XML formatted message to be...

View Article

Need a SQL Query to find numeric values

Hi Experts,Can you all help me out to find a query in which i can find all the tables in a particular Database which has numeric values with 3 decimals  present ; situation is that I need to round off...

View Article


DB Link from Oracle to SQL Server 2014 Issues

View Article

Business Day Function - Count today as 1

Hi, I am having an issue with my below function.  I want it to count the start day as 1 day which it does... but it is messing up if the start date is a holiday.  It is still counting the start date as...

View Article


T-SQL for counting rows

I have a data table "T" with data that looks like this:Class        ScheduledDateA              6/1/2018B              6/5/2018A    &nb

View Article

Stored procedure not executing in Linked Server

Have a problem in which stored procedure is not getting executing it through a SQL Server agent job .Executing the SQL Server job on another SQL Server which is associated by Linked server.The error is...

View Article

issue joining on Temp Table

crashes at /* Joining on Prod_Class */ section.Issue has something to do with joining on a created temp table.thoughts?SELECT * INTO #TEMP1 From(SelectL.PART_NUM,Like_PD_ID,PD_IDfromADHOC.ATS_ES

View Article
Browsing all 3145 articles
Browse latest View live


Latest Images