Click here to Skip to main content
15,918,041 members
Home / Discussions / Database
   

Database

 
AnswerRe: calling procedure within trigger Pin
Member 33013254-Jun-08 10:00
Member 33013254-Jun-08 10:00 
QuestionProblem on applying MySql.Data.dll into Visual Studio 2003 for VB.NET Pin
drexler_kk2-Jun-08 16:31
drexler_kk2-Jun-08 16:31 
AnswerCross post Pin
dan!sh 2-Jun-08 20:31
professional dan!sh 2-Jun-08 20:31 
Questionsql editor Pin
xybroxymoron2-Jun-08 16:12
xybroxymoron2-Jun-08 16:12 
QuestionSelect Query problem... Pin
tthellebuyck2-Jun-08 3:04
tthellebuyck2-Jun-08 3:04 
AnswerRe: Select Query problem... Pin
The Nightcoder2-Jun-08 4:54
The Nightcoder2-Jun-08 4:54 
AnswerRe: Select Query problem... Pin
Om Prakash Pant12-Apr-11 23:03
Om Prakash Pant12-Apr-11 23:03 
QuestionProblem with the Following Cursor Pin
Vimalsoft(Pty) Ltd2-Jun-08 2:30
professionalVimalsoft(Pty) Ltd2-Jun-08 2:30 
Good Afternoon All

I have the Following Cursor

DECLARE VAL_CURSOR CURSOR FOR
SELECT PROPERTY_ID, NEW_MARKET_VALUE, NEW_ATTRIB_CODE, 
ACTUAL_EXTENT,11 AS VAL_REASON_ID, 6 AS VAL_METHOD_ID
FROM  PROPERTY_MASS
WHERE NEW =1 

OPEN VAL_CURSOR

DECLARE @PROPERTY_ID INT 
DECLARE @MARKET_VALUE INT
DECLARE @NEW_ATTRIB_CODE VARCHAR(12)
DECLARE @STATUS_DATE VARCHAR(100)
DECLARE @ACTUAL_EXTENT FLOAT 
DECLARE @VAL_REASON_ID INT
DECLARE @PAR_METHOD_ID INT

SET @STATUS_DATE = GETDATE()

FETCH NEXT FROM VAL_CURSOR INTO
@PROPERTY_ID, @MARKET_VALUE,@NEW_ATTRIB_CODE,@STATUS_DATE,@VAL_REASON_ID,@PAR_METHOD_ID

 
WHILE @@FETCH_STATUS = 0
BEGIN

IF ISDATE(@STATUS_DATE)=0 PRINT CAST(@PROPERTY_ID AS CHAR(20))+'"'+@STATUS_DATE+'"'

FETCH NEXT FROM VAL_CURSOR INTO
@PROPERTY_ID, @MARKET_VALUE,@NEW_ATTRIB_CODE,@STATUS_DATE,@VAL_REASON_ID,@PAR_METHOD_ID
END
 
CLOSE VAL_CURSOR
DEALLOCATE VAL_CURSORbtw - why are you using a CURSOR instead of


when i run it gives me the Following Error


Msg 16922, Level 16, State 1, Line 26
Cursor Fetch: Implicit conversion from data type datetime to float is not allowed.


What is Wrong

Thanks

Vuyiswa Maseko,

Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding

VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za


AnswerRe: Problem with the Following Cursor Pin
Alsvha2-Jun-08 4:32
Alsvha2-Jun-08 4:32 
AnswerRe: Problem with the Following Cursor Pin
Mike Dimmick2-Jun-08 5:25
Mike Dimmick2-Jun-08 5:25 
GeneralRe: Problem with the Following Cursor Pin
Vimalsoft(Pty) Ltd2-Jun-08 7:57
professionalVimalsoft(Pty) Ltd2-Jun-08 7:57 
QuestionWhy DataColumn.DefaultValue is null Pin
Ahmad Safwat2-Jun-08 2:28
Ahmad Safwat2-Jun-08 2:28 
AnswerRe: Why DataColumn.DefaultValue is null Pin
Ahmad Safwat2-Jun-08 3:10
Ahmad Safwat2-Jun-08 3:10 
AnswerNew Problem Pin
Ahmad Safwat2-Jun-08 21:25
Ahmad Safwat2-Jun-08 21:25 
QuestionMSMQ vs Service Broker performance Pin
Member 42747082-Jun-08 1:52
Member 42747082-Jun-08 1:52 
Questionsql2000 + distinct rows Pin
ritu43212-Jun-08 0:04
ritu43212-Jun-08 0:04 
AnswerRe: sql2000 + distinct rows Pin
Alsvha2-Jun-08 0:08
Alsvha2-Jun-08 0:08 
GeneralRe: sql2000 + distinct rows Pin
ritu43212-Jun-08 0:27
ritu43212-Jun-08 0:27 
GeneralRe: sql2000 + distinct rows Pin
Alsvha2-Jun-08 0:34
Alsvha2-Jun-08 0:34 
GeneralRe: sql2000 + distinct rows Pin
SomeGuyThatIsMe2-Jun-08 2:18
SomeGuyThatIsMe2-Jun-08 2:18 
AnswerRe: sql2000 + distinct rows Pin
Hesham Amin2-Jun-08 10:47
Hesham Amin2-Jun-08 10:47 
Questioncan we use stored procedure in user defined function ???? Pin
Shaik Haneef1-Jun-08 23:51
Shaik Haneef1-Jun-08 23:51 
AnswerRe: can we use stored procedure in user defined function ???? Pin
Ashfield2-Jun-08 0:00
Ashfield2-Jun-08 0:00 
Questionhow to validate template column (textBox) in datagrid using c# Pin
sacr831-Jun-08 21:41
sacr831-Jun-08 21:41 
AnswerRe: how to validate template column (textBox) in datagrid using c# Pin
Ashfield1-Jun-08 23:15
Ashfield1-Jun-08 23:15 

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.