Viewing 8 posts - 1 through 8 (of 8 total)
Just edit the statement to use NULLIF for the cases when there are no blocks:
SELECT @SqlStatement = '
UPDATE lo
SET lo.wait_obct = obct.obct_name
FROM #res lo JOIN (
' + NULLIF(@SqlStatement,'') + '
)...
February 4, 2021 at 3:39 pm
This was so long ago that I'd forgotten. It's been answered elsewhere but here's the gist of the explanation: user defined data types and table tables are CLR objects(compiled code)...
August 17, 2010 at 8:28 am
I'm having the same problem.
I'm trying to use a table-valued parameter between two databases. I created the table type in both dbs (here called CallingDB and OtherDB) and they...
January 23, 2009 at 9:06 am
Elisabeth and Jerry,
Thanks for the reply. I'm trying to do an upgrade.
I'm trying to install version 10.00.1600.22 "Microsoft® SQL Server® 2008 Enterprise Evaluation: Trial Experience for Developers". Trying to upgrade...
November 5, 2008 at 8:47 am
Jacob, thanks very much for the post!
I killed many hours searching the MS sites, blogs, forums, etc and was up and working minutes after reading your post.
November 9, 2007 at 11:50 am
Mike,
Thanks for this tool, it's quite useful. It appears that the 'PH' replacement portion needs a fix too.
-- this part works (it makes a 'P' into an 'F')
} else if...
August 8, 2005 at 6:22 am
Your problem is in the string you're creating - it's trying to implicitly convert a numeric to nvarchar (I assume that's what your using for the variable @SQLViUp).
Try casting the numeric...
April 27, 2004 at 5:39 am
Viewing 8 posts - 1 through 8 (of 8 total)