Viewing 15 posts - 31 through 45 (of 427 total)
In the trigger code presented by segiy, any applications and users are inserted into their respective tables with every run, if they are found not to exist yet:
INSERT INTO dbo.Audit_User...
May 17, 2016 at 8:15 am
Jason A. Long (5/16/2016)
RV16 (5/13/2016)
You mean If I want to count number of students according to crs_cde then I should write like this
count(sch.id_num) OVER (PARTITION BY ss.CRS_CDE) "No of student"
I...
May 17, 2016 at 6:39 am
I have some idea of where you're probably going wrong, but indeed, having your tables in a test database on my machine would make it so much easier to show...
May 17, 2016 at 4:32 am
and yet it is still lots better if you would get rid of the cursor. I know it is easy to stop now, but you should REALY do without that...
May 13, 2016 at 7:18 am
Hello b.grove,
Which of those tables are 'the 3 document tables' you refer to? And what are the column names that indicate their version?
May 13, 2016 at 3:34 am
Lynn Pettis (5/12/2016)
May 13, 2016 at 3:32 am
The other replies about cursors being slow are all completely correct, so better steer away from them using almost any alternative given. But the original problem is probably rather easily...
May 9, 2016 at 9:33 am
J Livingston SQL (5/9/2016)
Sergiy (5/9/2016)
J Livingston SQL (5/8/2016)
ok.The original code was found on the web http://www.nigelrivett.net/SQLTriggers/AuditTrailTrigger.html
can you please provide sample to code to explain what you mean?
Many thanks
Sorry, did not...
May 9, 2016 at 8:26 am
Seriously, I see it was suggested before, did you have a look at CDC (Change Data Capture)? BOL: https://msdn.microsoft.com/en-us/library/cc645937.aspx. This technology provides -though only available in the enterprise and...
May 6, 2016 at 3:32 am
I know this doesn't answer your question, but why don't you just generate your statements as nvarchar(max)? You'll be giving the dynamic sql generated as a parameter into sp_executesql (bol)...
May 1, 2016 at 4:29 am
Viewing 15 posts - 31 through 45 (of 427 total)