SQLSaturday

Technical Article

RE: Output from dynamic sql

  • Reply

Try this declare @sqlstring nvarchar(1000), @table_name varchar(25), @cntout as int set @table_name = 'tableA' set @sqlstring = 'select @cntout = count(*) from ' + @table_name exec sp_executesql @sqlstring, N'@cntout as int OUTPUT', @cntout = @cntout OUTPUT PRINT @cntout

You rated this post out of 5. Change rating

2003-07-10

1 reads

Technical Article

RE: the update() function in a trigger

  • Reply

No, I was saying that the INSERT INTO command will return true for update() for all columns, regardless of whether NULLS or empty strings are assigned. The following will return false for update() of col3: UPDATE Testing SET col1='a', col2='b', col4='d' WHERE .....

You rated this post out of 5. Change rating

2003-07-07

Blogs

Our Contributions Towards a Stronger Open Source Future

By

Whether you’re a developer at an agency or an aspiring creator, you can trust...

Rebuilding a SQL Server Database Transaction Log

By

“Could you help me, we deleted the database’s transaction log file and now that...

Copying Content from One Databricks Unity Catalog Catalog to Another

By

I had a couple of clients who were moving content from development catalogs to...

Read the latest Blogs

Forums

7 sept, scheduled book

By philip.scott

Comments posted to this topic are about the item 7 sept, scheduled book

7 sept, schedlued article

By philip.scott

Comments posted to this topic are about the item 7 sept, schedlued article

6 sept, published book

By philip.scott

Comments posted to this topic are about the item 6 sept, published book

Visit the forum

Question of the Day

Azure Data Lake Storage Gen 2

Azure Data Lake Storage Gen 2 is built on ...?

See possible answers