Follow Slashdot stories on Twitter

 



Forgot your password?
typodupeerror
×

Comment Re:Haven't done T-SQL in years (Score 1) 11

I didn't explain the behavior adequately.

SELECT * FROM dbo.GetReferencedModelPointsByJobID(@JobID)

Returns someplace between 2-56 rows, depending on JobID

The second query does NOT error out, but is not returning a comma delimited string of all rows, but instead, in some cases, is returning only ONE row.

Since I'm using this to build a temp table, it doesn't error out until I attempt to fill columns in the temp table that do not exist.

User Journal

Journal Journal: Fun with SQL Server 2012 11

I have a Table Valued Function that returns a simple parameterized view. I want to turn that view into a string.

Can anybody tell me why the first query works and the second one doesn't?

DECLARE @JobID INT
DECLARE @strOut VARCHAR(MAX)

SET @JobID=2861

Slashdot Top Deals

Always draw your curves, then plot your reading.

Working...