Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4117436
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T22:50:05+00:00 2026-05-20T22:50:05+00:00

i want to open notepad, word or excel files from sql server using some

  • 0

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 ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T22:50:06+00:00Added an answer on May 20, 2026 at 10:50 pm

    You can do it in .NET, using code like this:

    VB.NET

     Dim ps As New ProcessStartInfo
    
        ps.UseShellExecute = True
        ps.FileName = fileName
        Process.Start(ps)
    

    C#.NET

    ProcessStartInfo ps = new ProcessStartInfo();
    ps.FileName = filename;
    Process.Start(ps);
    

    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).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to open and manipulate Excel files with ActiveX. I've had success with
I want to open a folder window, in the appropriate file manager, from within
I want to open a file dialog box in user control. I used using
Suppose I want to open a file in an existing Emacs session using su
I'm having some trouble using resource files. In my project I'm using a bunch
I'm using RibbonSplitButton of the Microsoft Ribbon for WPF and want to open its
I have a string called 's' and I want to open it in notepad
I want to use tempfile.NamedTemporaryFile() to write some contents into it and then open
I want to open a file for reading, the C++ way. I need to
I want to open a TCP client socket in Python. Do I have to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.