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 open up a notepad from my program using Process.Start() but the new opened
I want to open a notepad file using VisualBasic.Interaction.Shell method. At present I get
i want to call this.. well as good as ShellExecute(Handle, 'open', 'c:\Windows\notepad.exe', nil, nil,
I want open a path to vim from Screen's copy-mode by Ctrl-A f similarly
Want to open firefox from terminal at linux with firebug enabled // Terminal $
I want to open a document file using Open Xml Open Method, search for
I want to open a MFC modeless dialog from a MFC dll injected into
I want the open dialog to filter files by *.spectrum or not filter it
I'm having some trouble using resource files. In my project I'm using a bunch
I am making a Java program and want to open a text(notepad) file ,that

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.