Hello,
I've been modifying my HTML5 code to work with HANA.
My connection and controls have been working great, but now I need to pass session variables to a "SqlDataSource" control which gets the variable as '@variable', and I keep getting a SQL syntax error because of this.
I NEED to use an asp.net "SqlDataSource" control in order to make some parts of my program work.
Please help...
<asp:SqlDataSourceID="SqlDataSource3"runat="server"
providerName="<%$ ConnectionStrings:HANAConnectionString.providerName %>"
ConnectionString="<%$ ConnectionStrings:HANAConnectionString %>"
SelectCommand="select T0."U_DtlCode", T0."U_ParentID", T1."U_DtlName", T0."U_code2"
from "DB_TEST"."@EMEVD" T0 inner join "DB_TEST"."@EMETD" T1 on T0."U_DtlCode" = T1."U_DtlCode"
where T0."U_TransNum" = @VAR
order by SUBSTRING(T0."U_DtlCode",7,2),substring(CONCAT(T0."U_DtlCode",'.00.00.00.00.00.00.00.00.00.00.00'),1,32)">
<SelectParameters>
<asp:SessionParameterName="VAR"SessionField="VAR"DefaultValue="2"/>
</SelectParameters>
</asp:SqlDataSource>