Viewing 7 posts - 1 through 7 (of 7 total)
You can use MERGE clause:
MERGE INTO aaa a
USING(
SELECT id_aa ,
id_bb
FROM bbb
)e
ON(a.id_a =e.id_aa)
WHEN MATCHED THEN
...
December 28, 2014 at 4:42 am
davidadlington78 - maybe next article will be about this.
December 2, 2013 at 5:41 am
OldFashionGang - Thank you for your comment. Next time I will try to choose a better title
December 2, 2013 at 5:37 am
In T-SQL, you cannot modify any data in a function. There is no straightforward way around it. There are some obscure hacks, but I would not use them.
Example:
CREATE FUNCTION...
October 31, 2013 at 8:25 am
Create procedure on your database:
CREATE PROC __FindText
@query varchar(100)
AS
SELECT DISTINCT name, type
FROM sysobjects so INNER JOIN syscomments sc ON so.id =...
October 29, 2013 at 2:19 am
You can use SUMMARIZE:
EVALUATE
SUMMARIZE (
'Transactions',
'Transactions'[Salesman],
"Trans. value by Salesman", SUM('Transactions'[Trans_value])
)
October 21, 2013 at 1:08 am
BCP would be fastest option. To import to a table you can use OPENROWSET with ot without BULK option.
October 19, 2013 at 6:05 am
Viewing 7 posts - 1 through 7 (of 7 total)