Click here to Skip to main content
15,887,083 members
Home / Discussions / Database
   

Database

 
AnswerRe: unbound RadioButtonList Selected Item problem Pin
Ashfield23-Oct-08 1:29
Ashfield23-Oct-08 1:29 
AnswerRe: unbound RadioButtonList Selected Item problem Pin
John Gathogo23-Oct-08 1:37
John Gathogo23-Oct-08 1:37 
GeneralRe: unbound RadioButtonList Selected Item problem Pin
amit201123-Oct-08 1:52
amit201123-Oct-08 1:52 
GeneralRe: unbound RadioButtonList Selected Item problem Pin
Paddy Boyd23-Oct-08 2:07
Paddy Boyd23-Oct-08 2:07 
GeneralRe: unbound RadioButtonList Selected Item problem Pin
amit201123-Oct-08 3:30
amit201123-Oct-08 3:30 
GeneralRe: unbound RadioButtonList Selected Item problem Pin
amit201123-Oct-08 3:48
amit201123-Oct-08 3:48 
GeneralRe: unbound RadioButtonList Selected Item problem Pin
John Gathogo23-Oct-08 2:20
John Gathogo23-Oct-08 2:20 
Questionhow to read returned identity value from stored procedure Pin
Poonam Gandash23-Oct-08 0:08
Poonam Gandash23-Oct-08 0:08 
I am inserting record in table using stored procedure.

CREATE PROCEDURE add_member(
@UserName Varchar( 50 ),
@Password Varchar( 50 ),
@dob datetime,
@education Varchar(50),
@designation Varchar(50),
@name Varchar(50)
) AS

If Exists( SELECT username FROM member WHERE username = @username )
RETURN -1
ELSE
BEGIN
DECLARE @ID int -- new ID value holder
INSERT member (
username, password, dob, education, designation, name
) VALUES (
@username, @password, @dob, @education, @designation, @name
)

-- get the new identity column value
SET @id = @@IDENTITY

END
GO
-------------------------------


I am using classic asp to add records in this way -

sql = "add_member " & "'" & request.form("username") & "'" & "," & "'" & request.form("password") & "'" & "," & "'2/2/2'" & "," & request.form("education") & "," & request.form("designation") & "," & "'" & request.form("name") & "'"


set rsAdd = Server.CreateObject("ADODB.Recordset")
rsAdd.Open sql, con

Its adding new record successfully But I am not able to read id of newly added record.


Plzzzzzzz help
AnswerRe: how to read returned identity value from stored procedure Pin
Ashfield23-Oct-08 1:26
Ashfield23-Oct-08 1:26 
GeneralRe: how to read returned identity value from stored procedure Pin
Poonam Gandash23-Oct-08 2:20
Poonam Gandash23-Oct-08 2:20 
GeneralRe: how to read returned identity value from stored procedure Pin
Ashfield23-Oct-08 2:36
Ashfield23-Oct-08 2:36 
AnswerRe: how to read returned identity value from stored procedure Pin
Mycroft Holmes23-Oct-08 11:55
professionalMycroft Holmes23-Oct-08 11:55 
GeneralRe: how to read returned identity value from stored procedure Pin
Poonam Gandash23-Oct-08 19:14
Poonam Gandash23-Oct-08 19:14 
GeneralRe: how to read returned identity value from stored procedure Pin
Mycroft Holmes23-Oct-08 19:43
professionalMycroft Holmes23-Oct-08 19:43 
Questioncan't start sql server service manager [modified] Pin
sathyan_829422-Oct-08 23:37
sathyan_829422-Oct-08 23:37 
AnswerRe: can't start sql server service manager Pin
Ashfield22-Oct-08 23:54
Ashfield22-Oct-08 23:54 
QuestionWhat are the various debug visualizers in visual studio ? Pin
lovedotnet22-Oct-08 18:38
lovedotnet22-Oct-08 18:38 
AnswerRe: What are the various debug visualizers in visual studio ? Pin
John Gathogo23-Oct-08 1:53
John Gathogo23-Oct-08 1:53 
QuestionRollback transaction problem Pin
hdtrung22-Oct-08 17:42
hdtrung22-Oct-08 17:42 
AnswerRe: Rollback transaction problem Pin
Mycroft Holmes22-Oct-08 23:44
professionalMycroft Holmes22-Oct-08 23:44 
GeneralRe: Rollback transaction problem Pin
hdtrung23-Oct-08 4:01
hdtrung23-Oct-08 4:01 
GeneralRe: Rollback transaction problem Pin
Mycroft Holmes23-Oct-08 11:51
professionalMycroft Holmes23-Oct-08 11:51 
QuestionProblem with .ldb file Pin
Venumunna22-Oct-08 15:49
Venumunna22-Oct-08 15:49 
AnswerRe: Problem with .ldb file Pin
Wendelius22-Oct-08 17:42
mentorWendelius22-Oct-08 17:42 
QuestionGet the columns name that contains this value in it's first row Pin
Muammar©21-Oct-08 22:39
Muammar©21-Oct-08 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.