Quantcast
Channel: Microsoft SQL Server
Viewing all articles
Browse latest Browse all 4871

SQL query help

$
0
0

We have a query that pulls all job numbers from our ERP system to import to our tool inventory tracking system. The query outputs to a comma delimited text file with the job number, and part description. Unfortunately someone entered a part description that contained a comma which cannot be edited in our ERP system. The output file cannot be imported now due the this.

We pulled a report in Power BI excluding the job number that includes the commas, and copied the results to a text file.
I am trying to figure out how to set a filter in our SQL query to exclude that job number.
Here is the original stored procedure:
USE [EAGLE]
GO
/****** Object: StoredProcedure [dbo].[uspToolBossEQ_Export] Script Date: 11/6/2020 9:51:56 AM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO


ALTER PROCEDURE [dbo].[uspToolBossEQ_Export]
AS


DECLARE @date...

Viewing all articles
Browse latest Browse all 4871

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>