Hi
I am faced with an interesting problem and I am not even sure if it is possible:
I need to create a Stored Procedure in SQL Server 2008 that when executed does the following:
Executes a Batch file - located on the SQL Server (i.e. C:\Mybatchfile.bat) - This Batch file will output a single text file to a directory on the SQL Server (i.e. C:\Output\BatchFileOutput1.txt).
Bulk Insert the contents of the text file into table within my database.
Deletes the text file from the server.
Before I really start digging into how to achieve this, is this even possible?
Thanks in advance