search fields that contain commas
I'm searching a field in a table that contains commas. The field contains sales ids and it it's stores in this format: 267,549,496. This web app was created a long time ago and I've been tasked with...
View ArticleBulk insert comma delimited file
I have a file which is comma delimited. There are text fields and numeric fields. There are double quotes within the text fields and in the text fields there are also commas. When I try to load (bulk...
View ArticleSplitting comma delimited results into rows from XL
SELECT CData.value('(/fields/Genres)[1]', 'varchar(255)')FROM Categories WHERE ReqNum = 9281 Here are my results: King, Saul, Robb I need the results to display like this: King Saul Robb How do I...
View ArticleComma Separated List in SQL
I’m trying to create a comma separated table by running the below query but this query has been running for 8 hours and I still don’t have any records in my table. SELECT DISTINCT connaics.* , itemlist...
View ArticleUsing a comma separated string local variable in dynamic sql
I am trying to pass the local variable @DB1ColNames into the WHERE clause for SELECT @DB2ColNames (see below). Passing the local variable is not working, however if I cut and paste the results for...
View Article
More Pages to Explore .....