Click here to Skip to main content
15,895,142 members
Home / Discussions / Database
   

Database

 
GeneralRe: SQL Pin
shoaibnawaz7-Oct-05 12:09
shoaibnawaz7-Oct-05 12:09 
GeneralRe: SQL Pin
Colin Angus Mackay7-Oct-05 13:12
Colin Angus Mackay7-Oct-05 13:12 
QuestionSQL Performance Question Pin
jgallen236-Oct-05 8:29
jgallen236-Oct-05 8:29 
AnswerRe: SQL Performance Question Pin
Colin Angus Mackay6-Oct-05 9:11
Colin Angus Mackay6-Oct-05 9:11 
GeneralRe: SQL Performance Question Pin
jgallen236-Oct-05 9:17
jgallen236-Oct-05 9:17 
QuestionExecuting SQL Script File Pin
KragAapie5-Oct-05 19:32
KragAapie5-Oct-05 19:32 
AnswerRe: Executing SQL Script File Pin
Colin Angus Mackay5-Oct-05 21:59
Colin Angus Mackay5-Oct-05 21:59 
QuestionHow to call stored procedure from update statement Pin
iluha5-Oct-05 15:54
iluha5-Oct-05 15:54 
Hello,

I have a stored procedure called P_DATE_TO_MS that takes 2 parameters DATE & MILLISECOND and I need to call this procedure from an update statement:

conConnection.Execute ("UPDATE table SET CURRENT_TIME_IN_MS = P_DATE_TO_MS(getDate()) WHERE id=123")

It looks like the stored procedure returns the information in the second variable (ByRef?) and not as a return value. I'm calling the statement through ADODB.Connection object
and not in the SQL directly.

Please correct me if my assumption is incorrect, I'm not an SQL guy and I'm just getting into SQL

Can anyone tell me if this is possible or how to do it.

here is the store procedure:
CREATE PROCEDURE P_DATE_TO_MS

@DATE DATETIME,
@MILLISECOND DECIMAL OUTPUT

SET @MILLISECOND = TIME_IN_MS
END

GO

Thank you in advance
ilya
AnswerRe: How to call stored procedure from update statement (edit) Pin
Nic Rowan6-Oct-05 1:55
Nic Rowan6-Oct-05 1:55 
QuestionImport/Export in MS Access Pin
suzie1005-Oct-05 8:38
suzie1005-Oct-05 8:38 
QuestionHelp with Cursors in Stored Procedures Pin
jszpila5-Oct-05 6:33
jszpila5-Oct-05 6:33 
AnswerRe: Help with Cursors in Stored Procedures [long reply] Pin
Colin Angus Mackay5-Oct-05 11:12
Colin Angus Mackay5-Oct-05 11:12 
AnswerRe: Help with Cursors in Stored Procedures [long reply] Pin
jszpila5-Oct-05 11:54
jszpila5-Oct-05 11:54 
GeneralRe: Help with Cursors in Stored Procedures [long reply] Pin
Colin Angus Mackay5-Oct-05 12:16
Colin Angus Mackay5-Oct-05 12:16 
QuestionLooking for the right forum Pin
Michael Hulthin4-Oct-05 21:42
Michael Hulthin4-Oct-05 21:42 
QuestionHow to launch access database and view reports Pin
dw19284-Oct-05 20:36
dw19284-Oct-05 20:36 
Questionadd stored procedures .sql to database Pin
theStorminMormon4-Oct-05 10:32
theStorminMormon4-Oct-05 10:32 
AnswerRe: add stored procedures .sql to database Pin
Colin Angus Mackay4-Oct-05 12:44
Colin Angus Mackay4-Oct-05 12:44 
GeneralRe: add stored procedures .sql to database Pin
theStorminMormon5-Oct-05 2:57
theStorminMormon5-Oct-05 2:57 
GeneralRe: add stored procedures .sql to database Pin
Scott Serl6-Oct-05 11:14
Scott Serl6-Oct-05 11:14 
AnswerRe: add stored procedures .sql to database Pin
Luis Alonso Ramos6-Oct-05 18:45
Luis Alonso Ramos6-Oct-05 18:45 
QuestionUsing SqlConnection without Time out Pin
thainam3-Oct-05 23:13
thainam3-Oct-05 23:13 
AnswerRe: Using SqlConnection without Time out Pin
Colin Angus Mackay4-Oct-05 1:19
Colin Angus Mackay4-Oct-05 1:19 
QuestionSQL SERVER Pin
Tran Ngoc Minh3-Oct-05 18:15
Tran Ngoc Minh3-Oct-05 18:15 
AnswerRe: SQL SERVER Pin
Colin Angus Mackay4-Oct-05 1:25
Colin Angus Mackay4-Oct-05 1:25 

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.