|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Console application to generate Excel fileHi 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 On 15 Jan 2007 05:33:02 -0800, Senthil wrote:
> Hi all Probably the sql server account that you use to run the xp_cmdshell account > 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 does not have the rights to run such system stored procedures. You'll need to grant the account the appropriate rights
Copying to the clipboard
breaking up a String into an array of chars and adding to datatable Option Strict issue Make the value of MyObjectA equal to the value of MyObjectB? loading variable with AutoNumber field value after insert? Network Communications System.Net.Sockets.SocketException Error not CLS-compliant How to go to the next control? Passing parameter to windows service... |
|||||||||||||||||||||||