i want to open notepad, word or excel files from sql server using some query. is this possible? or is it possbile using C#.NET winform application. ? also, i want sql to use dll files present it my hard drive. how do i do both these tasks? please help me out with the code as well.
EDIT:
i have a .net winform application which accessess sql server database & is used to insert data in the database.
i want that when a user deletes a new record from a table in the database, & clicks the DELETE button on the Form, then the deleted data is exported to an excel file and the file is immediately opened.
is this possible?
for the export i would use bcp utility, but how to open the file ?
You can do it in .NET, using code like this:
VB.NET
C#.NET
I use it to open an Excel file I’ve just created. Should work just as well with other file types (assuming the proper program is installed).