Ask a Question related to ASP.NET General, Design and Development.
-
smen #1
how to returning a table id..
hiye, i use sqlcommand.executescalar to insert datainto
my table hoping that it will return the table id, but its
not :(. can someone uot there tell mehows its done?
thanks in advance.
smen Guest
-
#25473 [Opn->Bgs]: Updating single row in table causing all rows in table to be updated.
ID: 25473 Updated by: sniper@php.net Reported By: jim at bluedojo dot com -Status: Open +Status: ... -
#25473 [Opn->Fbk]: Updating single row in table causing all rows in table to be updated.
ID: 25473 Updated by: sniper@php.net Reported By: jim at bluedojo dot com -Status: Open +Status: ... -
#25473 [Opn]: Updating single row in table causing all rows in table to be updated.
ID: 25473 User updated by: jim at bluedojo dot com Reported By: jim at bluedojo dot com Status: Open Bug Type: ... -
#25473 [NEW]: Updating single row in table causing all rows in table to be updated.
From: jim at bluedojo dot com Operating system: WinXP PHP version: 4.3.3 PHP Bug Type: MySQL related Bug description: ... -
Could not load type VTFixup Table from assembly Invalid token in v-table fix-up table.
We are getting this error after clearing the web.config of database infomation - even after using the wizard to re-enter the information. I could... -
SStory #2
Re: how to returning a table id..
assuming this table id is an IDENTITY field
CREATE Procedure spAddSomething
(
@SSNO char(9),
@FirstName nvarchar(15),
@MidName nvarchar(15),
@LastName nvarchar(25)
)
AS
INSERT tblWhatever (
SSNO,
FirstName,
MidName,
LastName
) Values (
@SSNO,
@FirstName,
@MidName,
@LastName
)
SELECT @@IDENTITY AS 'Table_ID'
GO
Hope this helps
Shane
"smen" <scht80@hotmail.com> wrote in message
news:019801c35ecd$35123c40$a501280a@phx.gbl...> hiye, i use sqlcommand.executescalar to insert datainto
> my table hoping that it will return the table id, but its
> not :(. can someone uot there tell mehows its done?
>
> thanks in advance.
SStory Guest



Reply With Quote

