Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Touble with ASP INTERDEV SQL Query

Status
Not open for further replies.

bryant89

Programmer
Nov 23, 2000
150
CA
I am having trouble with an sql query in interdev.

I am trying to retrieve the identity using the @@IDENTITY value but for some reason it will not work.
Here is my code

Alter Procedure stpCreateReturn

@copName varchar(70),
@copCity varchar(40),
@copProv char(2),
@copCountry varchar(30),
@copAddress varchar(70),
@copStatus varchar(70),
@copEstCost money

AS

INSERT INTO tblContProj (copName, copCity, copProv, copCountry, copAddress, copStatus, copEstCost)
VALUES (@copName, @copCity, @copProv, @copCountry, @copAddress, @copStatus, @copEstCost)

SELECT @@IDENTITY
GO
return


The insert works fine but the select does not.
Any help would be Appreciated

Bryant
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top