Hi ,
First of all thanks for reply.
Actually i m trying this code on Server machine itselt.
One more doubt i hv whether SQL Server supports System.IO Bcaz when i went into add reference on soln explorer i m not abel to get any of dll except System.Data,System.Data.sqlClint,OracleClient..... ..
If nt
cn u suggest me i hv to retrive data n write that data frm sql n that data i hv to write in text file n File shoukd be created at runtime
regards,
Pady 123
:)
Quote:
quote:Originally posted by samjudson
I know this will sound silly, but you are checking on the right hard drive - I'm assuming it will be the C: drive on the server that it is trying to write to, rather than the C: drive on your PC (unless you happen to be running the server on your own PC, in which case they will obviously both be the same).
Other than that its likely to be a security issue, but in that case I would expect you to get an Exception, rather than the procedure running fine.
/- Sam Judson : Wrox Technical Editor -/
|