Click here to Skip to main content
15,911,785 members
Home / Discussions / Database
   

Database

 
AnswerRe: Sound?! Pin
Colin Angus Mackay22-Jun-06 0:55
Colin Angus Mackay22-Jun-06 0:55 
QuestionSetting Password to the Database Pin
meetbinu200321-Jun-06 22:36
meetbinu200321-Jun-06 22:36 
AnswerRe: Setting Password to the Database Pin
Colin Angus Mackay22-Jun-06 1:04
Colin Angus Mackay22-Jun-06 1:04 
Questionget list of active connections on a database Pin
flippydeflippydebop21-Jun-06 22:32
flippydeflippydebop21-Jun-06 22:32 
AnswerRe: get list of active connections on a database Pin
Eric Dahlvang22-Jun-06 6:07
Eric Dahlvang22-Jun-06 6:07 
QuestionAdding Auto-Increment ID in both parent and child table Pin
@myg@l21-Jun-06 8:48
@myg@l21-Jun-06 8:48 
AnswerRe: Adding Auto-Increment ID in both parent and child table Pin
r.stropek21-Jun-06 20:41
r.stropek21-Jun-06 20:41 
GeneralRe: Adding Auto-Increment ID in both parent and child table Pin
@myg@l22-Jun-06 4:32
@myg@l22-Jun-06 4:32 
Hi Rainer,
thanks for the reply
but it seemed having some prob:
I had tried the stored procedure u had specify, but is generate error says that no null value can be inserted into the Login Table. Alright, I had set the StaffID in child table of Login AS Not Allow Null, I guess tis is the prob, but yet if i changed the setting to Set as Allow Null, the result the same- IT does not insert the auto-generated StaffID in (Staff Record)Parent Record to the (Login)child table.
Here is my Procedure

Create PROCEDURE InsertStaffAccount
@StaffName varchar(20),
@Gender char(10),
@Address varchar(50),
@Position varchar(20),
@Identity int OUT

AS
SET nocount On
INSERT INTO StaffAccount(StaffName,Gender,Address,Position) VALUES (@StaffName,@Gender,@Address,@Position)
INSERT INTO StaffLogin(StaffID,Password) VALUES (@@Identity,@Identity)
SET @Identity = SCOPE_IDENTITY()
go

any Idea??

QuestionRe: Adding Auto-Increment ID in both parent and child table Pin
Eric Dahlvang23-Jun-06 2:55
Eric Dahlvang23-Jun-06 2:55 
AnswerRe: Adding Auto-Increment ID in both parent and child table Pin
@myg@l25-Jun-06 21:15
@myg@l25-Jun-06 21:15 
GeneralRe: Adding Auto-Increment ID in both parent and child table Pin
Eric Dahlvang26-Jun-06 4:59
Eric Dahlvang26-Jun-06 4:59 
GeneralRe: Adding Auto-Increment ID in both parent and child table Pin
@myg@l28-Jun-06 2:57
@myg@l28-Jun-06 2:57 
AnswerRe: Adding Auto-Increment ID in both parent and child table Pin
Eric Dahlvang28-Jun-06 3:16
Eric Dahlvang28-Jun-06 3:16 
GeneralRe: Adding Auto-Increment ID in both parent and child table Pin
@myg@l28-Jun-06 4:18
@myg@l28-Jun-06 4:18 
GeneralRe: Adding Auto-Increment ID in both parent and child table Pin
Eric Dahlvang28-Jun-06 4:30
Eric Dahlvang28-Jun-06 4:30 
GeneralRe: Adding Auto-Increment ID in both parent and child table Pin
@myg@l28-Jun-06 4:46
@myg@l28-Jun-06 4:46 
GeneralRe: Adding Auto-Increment ID in both parent and child table Pin
Eric Dahlvang28-Jun-06 5:04
Eric Dahlvang28-Jun-06 5:04 
GeneralRe: Adding Auto-Increment ID in both parent and child table Pin
@myg@l28-Jun-06 5:08
@myg@l28-Jun-06 5:08 
GeneralRe: Adding Auto-Increment ID in both parent and child table Pin
Eric Dahlvang28-Jun-06 5:55
Eric Dahlvang28-Jun-06 5:55 
GeneralRe: Adding Auto-Increment ID in both parent and child table Pin
@myg@l1-Jul-06 8:00
@myg@l1-Jul-06 8:00 
Questionfor xml guide Pin
prasad kabbur20-Jun-06 23:50
prasad kabbur20-Jun-06 23:50 
GeneralRe: for xml guide Pin
User 171649221-Jun-06 13:03
professionalUser 171649221-Jun-06 13:03 
AnswerRe: for xml guide Pin
Graham Nimbley21-Jun-06 14:22
Graham Nimbley21-Jun-06 14:22 
Questioncan't save image in database Pin
md_refay20-Jun-06 22:24
md_refay20-Jun-06 22:24 
AnswerRe: can't save image in database [modified] Pin
Colin Angus Mackay20-Jun-06 22:33
Colin Angus Mackay20-Jun-06 22:33 

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.