Re: WEird Column as Int property returns Decimal!!
From: Tracy Myint (mswebwyz_at_hotmail.com)
Date: 06/21/04
- Next message: Gregory A. Larsen: "Re: Problem With smalldatetime"
- Previous message: t-hole: "Using Data Shape in Stored Procedure?"
- In reply to: Tom Moreau: "Re: WEird Column as Int property returns Decimal!!"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 21 Jun 2004 09:40:10 -0700
I had the same problem and have solved this.
My table's identity column was on Integer type. Before, my stored proc
had only:
(... sproc body ...)
SELECT @@IDENTITY
GO
@@IDENTITY in SQL Server is of type numeric value. In SQL Server, the
numeric data type is equivalent to the decimal data type.
Now, I have this, which returns an Integer type.
DECLARE @request_id int
(... sproc body ...)
SET @request_id = @@IDENTITY
SELECT @request_id
GO
*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
- Next message: Gregory A. Larsen: "Re: Problem With smalldatetime"
- Previous message: t-hole: "Using Data Shape in Stored Procedure?"
- In reply to: Tom Moreau: "Re: WEird Column as Int property returns Decimal!!"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|