Quantcast
Channel: Answers for "How do I INSERT or UPDATE an array of values without iteration?"
Browsing latest articles
Browse All 4 View Live

Answer by Tom Staab

NOTE: Edited to fix issue with copying and pasting the stored procedure code. My inline tabs were being converted to spaces, so I replaced them with CHAR(9). Also, see note at bottom for a potential...

View Article



Answer by Bob Hovious

I ran your code, but it produced NULL values for @SqlStmt. Here's a quick tally table solution:DECLARE @BigArray varchar(max) SET @BigArray = ',1,2,3,5,7,11,13,17,19,23,29,31,' ;with Array AS (select...

View Article
Browsing latest articles
Browse All 4 View Live




Latest Images