Click here to Skip to main content
15,912,897 members
Home / Discussions / Database
   

Database

 
GeneralRe: What's the best way to temporarily persist results of a long running SP? Pin
Eddy Vluggen15-Mar-12 9:57
professionalEddy Vluggen15-Mar-12 9:57 
AnswerRe: What's the best way to temporarily persist results of a long running SP? Pin
R. Giskard Reventlov14-Mar-12 8:54
R. Giskard Reventlov14-Mar-12 8:54 
GeneralRe: What's the best way to temporarily persist results of a long running SP? Pin
Trekstuff14-Mar-12 9:42
Trekstuff14-Mar-12 9:42 
GeneralRe: What's the best way to temporarily persist results of a long running SP? Pin
R. Giskard Reventlov14-Mar-12 10:02
R. Giskard Reventlov14-Mar-12 10:02 
GeneralRe: What's the best way to temporarily persist results of a long running SP? Pin
Trekstuff14-Mar-12 10:26
Trekstuff14-Mar-12 10:26 
SuggestionRe: What's the best way to temporarily persist results of a long running SP? Pin
foxyland14-Mar-12 20:21
foxyland14-Mar-12 20:21 
GeneralRe: What's the best way to temporarily persist results of a long running SP? Pin
Trekstuff15-Mar-12 9:12
Trekstuff15-Mar-12 9:12 
QuestionBest way to get PK value of newly created record Pin
Aaron Hartley13-Mar-12 4:19
Aaron Hartley13-Mar-12 4:19 
I have a VB program that uses SQL Server as a database. One of the tables has a primary key, a serial number, that is inserted as part of the insert statement. The VB program determines the correct serial just prior to creating and executing the insert statement. The serial number not an incrementing value but is an aggregate of several pieces of information. Since I have copies of the same VB program running at once there is a very small window for trouble in which both clients could attempt to insert with the same serial number. This is very unlikely but still possible. So I'm wondering if there is

(a) A way to move the serial number calculation code to the server and take the serial number out of the insert statement.

(b) Having a taken the serial number out of the insert statement, for the VB client to have an iron clad way retrieving the serial number that it just created (most recently created record wouldn't be sufficient since it would run into the same vulnerability of multiple clients trying to do the same thing at once).
AnswerRe: Best way to get PK value of newly created record Pin
Shameel13-Mar-12 5:16
professionalShameel13-Mar-12 5:16 
GeneralRe: Best way to get PK value of newly created record Pin
Aaron Hartley13-Mar-12 5:40
Aaron Hartley13-Mar-12 5:40 
AnswerRe: Best way to get PK value of newly created record Pin
Luc Pattyn13-Mar-12 5:48
sitebuilderLuc Pattyn13-Mar-12 5:48 
GeneralRe: Best way to get PK value of newly created record Pin
Shameel13-Mar-12 6:09
professionalShameel13-Mar-12 6:09 
AnswerRe: Best way to get PK value of newly created record Pin
PIEBALDconsult13-Mar-12 14:07
mvePIEBALDconsult13-Mar-12 14:07 
GeneralRe: Best way to get PK value of newly created record Pin
Shameel13-Mar-12 19:33
professionalShameel13-Mar-12 19:33 
GeneralRe: Best way to get PK value of newly created record Pin
PIEBALDconsult14-Mar-12 3:11
mvePIEBALDconsult14-Mar-12 3:11 
GeneralRe: Best way to get PK value of newly created record Pin
jschell14-Mar-12 8:50
jschell14-Mar-12 8:50 
AnswerRe: Best way to get PK value of newly created record Pin
Mycroft Holmes13-Mar-12 19:52
professionalMycroft Holmes13-Mar-12 19:52 
AnswerRe: Best way to get PK value of newly created record Pin
Bernhard Hiller13-Mar-12 21:53
Bernhard Hiller13-Mar-12 21:53 
Question1045 - Access denied for user "root@192.168.1.9" using password: YES Pin
Jassim Rahma12-Mar-12 20:12
Jassim Rahma12-Mar-12 20:12 
AnswerRe: 1045 - Access denied for user "root@192.168.1.9" using password: YES Pin
Wayne Gaylard12-Mar-12 20:42
professionalWayne Gaylard12-Mar-12 20:42 
AnswerRe: 1045 - Access denied for user "root@192.168.1.9" using password: YES Pin
Gerben Jongerius12-Mar-12 23:36
Gerben Jongerius12-Mar-12 23:36 
GeneralRe: 1045 - Access denied for user "root@192.168.1.9" using password: YES Pin
Jassim Rahma13-Mar-12 0:17
Jassim Rahma13-Mar-12 0:17 
GeneralRe: 1045 - Access denied for user "root@192.168.1.9" using password: YES Pin
Gerben Jongerius13-Mar-12 0:22
Gerben Jongerius13-Mar-12 0:22 
GeneralRe: 1045 - Access denied for user "root@192.168.1.9" using password: YES Pin
Jassim Rahma13-Mar-12 1:53
Jassim Rahma13-Mar-12 1:53 
GeneralRe: 1045 - Access denied for user "root@192.168.1.9" using password: YES Pin
Jassim Rahma13-Mar-12 7:16
Jassim Rahma13-Mar-12 7:16 

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.