Click here to Skip to main content
15,893,266 members
Home / Discussions / Database
   

Database

 
GeneralRe: Executing an UPDATE for each record returned by a SELECT Pin
Luis Alonso Ramos20-Apr-05 13:02
Luis Alonso Ramos20-Apr-05 13:02 
GeneralRe: Executing an UPDATE for each record returned by a SELECT Pin
Colin Angus Mackay20-Apr-05 20:29
Colin Angus Mackay20-Apr-05 20:29 
GeneralData Source for Reporting Services Pin
azam31620-Apr-05 3:15
azam31620-Apr-05 3:15 
GeneralRe: Data Source for Reporting Services Pin
NewSilence23-Apr-05 13:17
NewSilence23-Apr-05 13:17 
GeneralRe: Data Source for Reporting Services Pin
azam31625-Apr-05 4:51
azam31625-Apr-05 4:51 
GeneralHey guys, Pin
Wilbur J. Pereira20-Apr-05 2:26
Wilbur J. Pereira20-Apr-05 2:26 
QuestionSQL Server : Add user login in a trigger? Pin
Duncan Edwards Jones20-Apr-05 0:12
professionalDuncan Edwards Jones20-Apr-05 0:12 
AnswerRe: SQL Server : Add user login in a trigger? Pin
Mike Dimmick20-Apr-05 1:23
Mike Dimmick20-Apr-05 1:23 
A trigger is really the wrong solution for this. You'll never be able to avoid the transaction because, even if not in an explicit transaction created with BEGIN TRANSACTION, a trigger executes in the context of the statement that caused it to fire, which is implicitly transactional.

I'd argue that triggers are for two purposes - for enforcing consistency (although you should normally use a constraint for that), and for selective denormalization - the trigger updates the denormalized data as the normalized data is updated. For example, updating an 'order total' field of an order record when order line records are inserted, updated or deleted. They're also useful for trapping and redirecting attempted updates to a view - this is really another case of handling denormalization or partitioning.

Stability. What an interesting concept. -- Chris Maunder
GeneralRe: SQL Server : Add user login in a trigger? Pin
Duncan Edwards Jones20-Apr-05 2:16
professionalDuncan Edwards Jones20-Apr-05 2:16 
Generalauotmatically generating a unique ID number [* Resolved *] Pin
steve_rm19-Apr-05 21:50
steve_rm19-Apr-05 21:50 
GeneralRe: auotmatically generating a unique ID number Pin
Mike Dimmick19-Apr-05 23:25
Mike Dimmick19-Apr-05 23:25 
GeneralRe: auotmatically generating a unique ID number Pin
totig22-Apr-05 2:20
totig22-Apr-05 2:20 
GeneralRe: auotmatically generating a unique ID number Pin
steve_rm22-Apr-05 13:27
steve_rm22-Apr-05 13:27 
Generalhelp - newbie needs help with sql problem Pin
squeakerz19-Apr-05 16:22
squeakerz19-Apr-05 16:22 
GeneralRe: help - newbie needs help with sql problem Pin
Christian Graus19-Apr-05 17:46
protectorChristian Graus19-Apr-05 17:46 
GeneralRe: help - newbie needs help with sql problem Pin
squeakerz20-Apr-05 1:37
squeakerz20-Apr-05 1:37 
GeneralRe: help - newbie needs help with sql problem Pin
Colin Angus Mackay20-Apr-05 2:06
Colin Angus Mackay20-Apr-05 2:06 
GeneralRe: help - newbie needs help with sql problem Pin
squeakerz20-Apr-05 3:42
squeakerz20-Apr-05 3:42 
GeneralRe: help - newbie needs help with sql problem Pin
Colin Angus Mackay20-Apr-05 3:49
Colin Angus Mackay20-Apr-05 3:49 
GeneralRe: help - newbie needs help with sql problem Pin
squeakerz20-Apr-05 8:05
squeakerz20-Apr-05 8:05 
GeneralSearch - Question Pin
matthias s.19-Apr-05 1:04
matthias s.19-Apr-05 1:04 
GeneralRe: Search - Question Pin
totig22-Apr-05 2:22
totig22-Apr-05 2:22 
GeneralRe: Search - Question Pin
Anonymous23-Apr-05 16:31
Anonymous23-Apr-05 16:31 
QuestionNHibernate configuration file - multiple datasource? Pin
devvvy19-Apr-05 0:20
devvvy19-Apr-05 0:20 
GeneralReporting Service Pin
sukasukabo18-Apr-05 22:39
sukasukabo18-Apr-05 22:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.