Re: Console application to generate Excel file
- From: "RobinS" <RobinS@xxxxxxxxxxxxxxx>
- Date: Mon, 15 Jan 2007 22:20:06 -0800
"Cor Ligthert [MVP]" <notmyfirstname@xxxxxxxxx> wrote in message
news:eYggKMTOHHA.5064@xxxxxxxxxxxxxxxxxxxxxxx
Rad,
Will you be so kind not to answer C# questions in the VB.Net
newsgroup.
I never saw that done by a MVP without telling at least that there was
a better newsgroup for that.
Thanks in advance
Cor
"Rad [Visual C# MVP]" <nospam@xxxxxxxxxx> schreef in bericht
news:11sk3cspsbwqy.dlg@xxxxxxxxxxxxxxxxxxx
On 15 Jan 2007 05:33:02 -0800, Senthil wrote:
Hi all
I created a C# console application that is called through a
stored procedure using xp_cmdshell. The application generates an
Excel
report from the database with a macro embedded in it. The report
generation fails when it is through xp_cmdshell.
But when I tried to run the executable from the command prompt the
report gets generated successfully with the macro. What could be the
problem here??
Thanks in advance
Senthil
Probably the sql server account that you use to run the xp_cmdshell
account
does not have the rights to run such system stored procedures. You'll
need
to grant the account the appropriate rights
--
Bits.Bytes
http://bytes.thinkersroom.com
.
- Follow-Ups:
- Re: Console application to generate Excel file
- From: RobinS
- Re: Console application to generate Excel file
- References:
- Console application to generate Excel file
- From: Senthil
- Re: Console application to generate Excel file
- From: Rad [Visual C# MVP]
- Re: Console application to generate Excel file
- From: Cor Ligthert [MVP]
- Console application to generate Excel file
- Prev by Date: Re: Resize a control at runtime.
- Next by Date: Re: VB FAQs (Interview Questions) lot lot
- Previous by thread: Re: Console application to generate Excel file
- Next by thread: Re: Console application to generate Excel file
- Index(es):
Relevant Pages
|