Click here to Skip to main content
15,891,607 members
Home / Discussions / Database
   

Database

 
AnswerRe: can anyone explain batch_control, batch_log....? Pin
Wendelius7-Aug-08 8:41
mentorWendelius7-Aug-08 8:41 
GeneralRe: can anyone explain batch_control, batch_log....? Pin
alexyxj7-Aug-08 9:16
alexyxj7-Aug-08 9:16 
GeneralRe: can anyone explain batch_control, batch_log....? Pin
Wendelius7-Aug-08 9:21
mentorWendelius7-Aug-08 9:21 
GeneralRe: can anyone explain batch_control, batch_log....? Pin
alexyxj7-Aug-08 9:49
alexyxj7-Aug-08 9:49 
GeneralRe: can anyone explain batch_control, batch_log....? Pin
Wendelius7-Aug-08 10:02
mentorWendelius7-Aug-08 10:02 
AnswerRe: can anyone explain batch_control, batch_log....? Pin
GuyThiebaut8-Aug-08 0:59
professionalGuyThiebaut8-Aug-08 0:59 
QuestionRequire a single instance of a Stored Procedure Pin
Antony M Kancidrowski7-Aug-08 7:03
Antony M Kancidrowski7-Aug-08 7:03 
AnswerRe: Require a single instance of a Stored Procedure Pin
Wendelius7-Aug-08 8:50
mentorWendelius7-Aug-08 8:50 
Hi,

You could use locking for this. Create a small table and insert a single row in it. In the beginning of the procedure, update the row in the table to acquire lock and in the end of the procedure commit your changes. For example:

CREATE TABLE ProcedureRun (LastRun datetime);
INSERT INTO ProcedureRun (LastRun) VALUES (NULL);
CREATE PROCEDURE SomeProcedure AS
BEGIN
   UPDATE ProcedureRun SET LastRun = GETDATE(); 

   ... do some stuff...

   COMMIT;
END;

Hope this helps,

Mika
GeneralRe: Require a single instance of a Stored Procedure Pin
Antony M Kancidrowski7-Aug-08 12:39
Antony M Kancidrowski7-Aug-08 12:39 
GeneralRe: Require a single instance of a Stored Procedure Pin
Wendelius7-Aug-08 18:25
mentorWendelius7-Aug-08 18:25 
QuestionExtract SQLSERVER.exe programmatically Pin
sunil goyalG7-Aug-08 6:53
sunil goyalG7-Aug-08 6:53 
QuestionHow can identify that particular Instance of SQL Server is installed or not Pin
sunil goyalG7-Aug-08 4:42
sunil goyalG7-Aug-08 4:42 
QuestionTrigger issue Pin
Howard Richards7-Aug-08 2:59
Howard Richards7-Aug-08 2:59 
AnswerRevised billing logic Pin
David Mujica7-Aug-08 3:44
David Mujica7-Aug-08 3:44 
GeneralRe: Revised billing logic Pin
Howard Richards7-Aug-08 4:47
Howard Richards7-Aug-08 4:47 
AnswerRe: Trigger issue Pin
Wendelius7-Aug-08 8:34
mentorWendelius7-Aug-08 8:34 
QuestionNeed some advice on a good "practice" SQL server Pin
MarkB7777-Aug-08 0:52
MarkB7777-Aug-08 0:52 
AnswerRe: Need some advice on a good "practice" SQL server Pin
Howard Richards7-Aug-08 2:45
Howard Richards7-Aug-08 2:45 
AnswerRe: Need some advice on a good "practice" SQL server Pin
Mycroft Holmes7-Aug-08 17:34
professionalMycroft Holmes7-Aug-08 17:34 
QuestionAttach database failed for Server 'computername\Instance1'. Give Error on VISTA but successfully run on XP Pin
Rupsaa7-Aug-08 0:43
Rupsaa7-Aug-08 0:43 
Questionsql server management studio express 32 bit or 64 bit.... Pin
new2pgrmg6-Aug-08 22:27
new2pgrmg6-Aug-08 22:27 
AnswerRe: sql server management studio express 32 bit or 64 bit.... Pin
SimulationofSai6-Aug-08 23:08
SimulationofSai6-Aug-08 23:08 
QuestionCreate Login/User when Install SQL Server In Silent mode Pin
Rupsaa6-Aug-08 22:16
Rupsaa6-Aug-08 22:16 
QuestionHow to Edit & Read binary data on SQL 2005 Pin
jdfgdg6-Aug-08 20:56
jdfgdg6-Aug-08 20:56 
AnswerRe: How to Edit & Read binary data on SQL 2005 Pin
topcatalpha6-Aug-08 21:36
topcatalpha6-Aug-08 21:36 

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.