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 6838803
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T23:38:28+00:00 2026-05-26T23:38:28+00:00

I realize that this question spans many technologies, but I am only looking for

  • 0

I realize that this question spans many technologies, but I am only looking for high-level contributions here.

I am currently tasked with exporting from a SQL Server proc into Excel, and then email the Excel file as attachment through SQL Agent. The SQL Agent job must be run daily.

What I have tried:

  • SQL -> Excel using xp_cmdshell & bcp. This is fine but then the excel output changes non-alpha text fields to numbers. (ie. phone numbers)
  • SQL OpenRowset. I can’t overcome the lack of the Jet 4.0 provider to use OpenRowset due to 64bit Win7 — from what I understand.
  • SSIS. After overcoming the dynamic file name predicament, I get stuck when my data types in from SQL to Excel didn’t match up. (some Unicode to non Unicode issue)
  • I can write the export process in .NET but then I do not know how to attach it to SQL Agent.

I guess my biggest question is, if you were going to address this yourself (as I am sure many of you must) which technology path should I take?

NOTE: I am almost certain I should not install Office on the Server

Thanks in advance.

  • 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-26T23:38:28+00:00Added an answer on May 26, 2026 at 11:38 pm

    I’d definitely use SSIS. I’d have a Data Flow task reading the stored procedure output and writing to the Excel file, then a Send Mail task to handle the emailing of the resulting spreadsheet. (I’ve cleaned up Unicode vs. non-Unicode confusion in the past using Derived Column transformations in my Data Flows.)

    SQL Agent could be used to kick off the SSIS package, although I haven’t used it.

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

Sidebar

Related Questions

I realize that this question is impossible to answer absolutely, but I'm only after
I realize that this question has been asked and has been answered here but
I realize that there was a similar question asked here , but this is
I realize that this question has been asked 100times but none that I have
I realize that the query this question is looking for won't be enough to
Ok so I realize that this is a pretty vague question, but bear with
I half realize that this question is probably asked already, but I'm not familiar
I realize that this question might not make sense to some, but I was
I realize that this question has been asked before - but none of the
I realize that this is probably a very basic question, but I have spent

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.