blah blah blah is here! blah blah » Close

0
votes
3 answers

How to get SQL insert/update statements?

I am doing this way but can't get insert's [code] SELECT REPLACE (REPLACE ([text], CHAR(13), ' '), CHAR(10), ' ') AS QUERY FROM sys.dm_exec_cached_plans AS p CROSS APPLY sys.dm_exec_sql_text (p.plan_handle) WHERE p.objtype = 'Adhoc ...

0
votes
1 answers

about IF statement Help

public int Cash; public int GiveCash(int amount) { if (amount <= Cash && amount > 1) { Cash -= amount; return amount; } ...

Feedback