Ciao,
io provando per aprire il database con una casella di testo che richiede input dall'utente.
Impossibile aprire il database perché -
[Microsoft] [Driver ODBC SQL Server] [SQL Server] Errore durante la conversione del tipo di dati varchar in datetime.
Non riesco a capire come convertire l'input.
c'è una soluzione a questo?
Grazie
nw = New Window( "test",
H LIST BOX(
Text box("Start Date"),
a = numbereditbox(0),
a << set format(format("m/d/y")),
a << set width(12),
a << set(today()),
Spacer Box( size( 10, 20 ) ),
Text box("End Date"),
b = numbereditbox(0),
b << set format(format("m/d/y")),
b << set width(12),
b << set(today())),
Spacer Box( size( 1, 20 ) ),
Button Box( "OK",
farray = Eval List(
{a << get text, b << get text}
);
nw << close window;
)
);
dta= Open database("DRIVER=SQL Server; SERVER=xxx; Trusted_connection = Yes",
"
EXEC dbo.listData @Criteria = '
<SYSTEMSA>
<DATA name="\!"Alarm\!"">
<COLUMNS>
<COLUMN name="\!"Timestamp\!"/">
</COLUMN>
<WHERE>
<COLUMN name="\!"Resource\!"" operator="\!"Like\!"" value="\!"%a12%\!""></COLUMN>
</WHERE>
</COLUMNS>
</DATA>'
,@StartDateTime = '^farray[1]^'
,@EndDateTime =' ^farray[2]^'");</SYSTEMSA>