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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with date when calling a store procedure 1

Status
Not open for further replies.

Lekar

Programmer
Sep 7, 2001
85
0
0
CR
I'm connecting to MS SQL Server and there is a store procedure that returns a value using an output variable.
I declared the store procedure in the Local External
Functions of a Transaction object.
Where PB calls the store procedure, PB changes the month and the day. Here is an example:
Code:
// On the PB debugger, ldt_Fec has
// the value: '2006-Feb-05'

SQLCA.proc_NewInvoic(ldt_Fec, lde_CodInv)
On the Profiler after the previous sentence:
Code:
Exec proc_NuevaFact 'May 2 2006', 0
I've changed the Control Panel, also I've execute "Set DateFormat" in my PB program but the problem persists. If I run Exec proc_NuevaFact 'Feb 5 2006', 0 from the Query Analyzer it works.
Anyone has a suggestion?

[bomb]
 
Forget the output variable. Send the date back in a result set.

Matt

"Nature forges everything on the anvil of time
 
That's a great idea. I used a DataWindow. Thanks mbalent.

[bomb]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top