I was tring to use the LOAD DATA INFILE as a sotred procedure but it seems it cannot be done. Then i tried the usual way of embedding the code to the application itself like
I too encountered with this problem, then I created the bulk insert script and run it using C#.net code
I found the solution myself, it is to set this condition,
Allow User Variables=true;
in the connection string that will allow to use @parameter values in a query :)
Thank you for the responses :)