Showing posts with label excel. Show all posts
Showing posts with label excel. Show all posts

Friday, March 30, 2012

Launch a package from VBA...

Hi all,

I'm trying to launch a SIS package from a VBA macro in excel...now I launch the dtexec.exe from a shell but a have this error:

Started: 10.14.33
Could not load package "Package1" because of error 0xC0014062.
Description: The LoadFromSQLServer method has encountered OLE DB error code 0x80004005 (Login timeout expired). The SQL statement that was issued has failed.
Source:
Started: 10.14.33
Finished: 10.14.49
Elapsed: 16.594 seconds

but all credential are correct...

any ideas ?

thanks in advance

Wolly

Hi, Wolly.

1) Please post the *exact* command-line you typed.

2) Did you use the /U and /P flags to specify the credentials?

-Rieekan

|||

Wolly,

Please ignore my previous post--here is a probable solution:

1) From the command line, you can invoke the "DTExecUI" utility. It helps you build a command line by specifying options in the GUI.

2) When you have specified the package you want to run, simply click the "Command Line" item (at the bottom), copy the contents of the "Command line" textbox, then paste the newly generated command line into your VBA shell command.

Hope this helps!

-Rieekan

Launch a package from VBA...

Hi all,

I'm trying to launch a SIS package from a VBA macro in excel...now I launch the dtexec.exe from a shell but a have this error:

Started: 10.14.33
Could not load package "Package1" because of error 0xC0014062.
Description: The LoadFromSQLServer method has encountered OLE DB error code 0x80004005 (Login timeout expired). The SQL statement that was issued has failed.
Source:
Started: 10.14.33
Finished: 10.14.49
Elapsed: 16.594 seconds

but all credential are correct...

any ideas ?

thanks in advance

Wolly

Hi, Wolly.

1) Please post the *exact* command-line you typed.

2) Did you use the /U and /P flags to specify the credentials?

-Rieekan

|||

Wolly,

Please ignore my previous post--here is a probable solution:

1) From the command line, you can invoke the "DTExecUI" utility. It helps you build a command line by specifying options in the GUI.

2) When you have specified the package you want to run, simply click the "Command Line" item (at the bottom), copy the contents of the "Command line" textbox, then paste the newly generated command line into your VBA shell command.

Hope this helps!

-Rieekan

sql

Friday, February 24, 2012

Large report killing server

We have a report that needs to run 2-3 times day that is fairly large.
The need is to have it in Excel format and it is about 20 columns by
7-8,000 rows. The data is returned by the db server fairly readily, but
when Reporting Services tried to make it an Excel file, the render
object on the web front end timesout. I checked the server during this
time and the CPU usage is 100% and memory usage climbs. Is it normal
for RS to choke on a large report like this?Do you have SP1 installed?
Bruce Loehle-Conger
MVP SQL Server Reporting Services
"no one" <noone@.yahoo.com> wrote in message
news:420E4351.E3D5A5CA@.yahoo.com...
> We have a report that needs to run 2-3 times day that is fairly large.
> The need is to have it in Excel format and it is about 20 columns by
> 7-8,000 rows. The data is returned by the db server fairly readily, but
> when Reporting Services tried to make it an Excel file, the render
> object on the web front end timesout. I checked the server during this
> time and the CPU usage is 100% and memory usage climbs. Is it normal
> for RS to choke on a large report like this?
>|||SP1 for what? Reporting Services? SQL Server? Win2k?
"Bruce L-C [MVP]" wrote:
> Do you have SP1 installed?
> --
> Bruce Loehle-Conger
> MVP SQL Server Reporting Services
> "no one" <noone@.yahoo.com> wrote in message
> news:420E4351.E3D5A5CA@.yahoo.com...
> > We have a report that needs to run 2-3 times day that is fairly large.
> > The need is to have it in Excel format and it is about 20 columns by
> > 7-8,000 rows. The data is returned by the db server fairly readily, but
> > when Reporting Services tried to make it an Excel file, the render
> > object on the web front end timesout. I checked the server during this
> > time and the CPU usage is 100% and memory usage climbs. Is it normal
> > for RS to choke on a large report like this?
> >|||SP 1 for Reporting Services. Before digging too much more into this I would
suggest installing SP1. Note that you need to install it at the server and
wherever you develop your reports.
Bruce Loehle-Conger
MVP SQL Server Reporting Services
"no one" <noone@.yahoo.com> wrote in message
news:420FB123.1423F27A@.yahoo.com...
> SP1 for what? Reporting Services? SQL Server? Win2k?
> "Bruce L-C [MVP]" wrote:
>> Do you have SP1 installed?
>> --
>> Bruce Loehle-Conger
>> MVP SQL Server Reporting Services
>> "no one" <noone@.yahoo.com> wrote in message
>> news:420E4351.E3D5A5CA@.yahoo.com...
>> > We have a report that needs to run 2-3 times day that is fairly large.
>> > The need is to have it in Excel format and it is about 20 columns by
>> > 7-8,000 rows. The data is returned by the db server fairly readily,
>> > but
>> > when Reporting Services tried to make it an Excel file, the render
>> > object on the web front end timesout. I checked the server during this
>> > time and the CPU usage is 100% and memory usage climbs. Is it normal
>> > for RS to choke on a large report like this?
>> >
>|||The server guys tell me they installed it at most 6 weeks ago. Did SP1 come out
after that?
"Bruce L-C [MVP]" wrote:
> SP 1 for Reporting Services. Before digging too much more into this I would
> suggest installing SP1. Note that you need to install it at the server and
> wherever you develop your reports.
> --
> Bruce Loehle-Conger
> MVP SQL Server Reporting Services
> "no one" <noone@.yahoo.com> wrote in message
> news:420FB123.1423F27A@.yahoo.com...
> > SP1 for what? Reporting Services? SQL Server? Win2k?
> >
> > "Bruce L-C [MVP]" wrote:
> >
> >> Do you have SP1 installed?
> >>
> >> --
> >> Bruce Loehle-Conger
> >> MVP SQL Server Reporting Services
> >>
> >> "no one" <noone@.yahoo.com> wrote in message
> >> news:420E4351.E3D5A5CA@.yahoo.com...
> >> > We have a report that needs to run 2-3 times day that is fairly large.
> >> > The need is to have it in Excel format and it is about 20 columns by
> >> > 7-8,000 rows. The data is returned by the db server fairly readily,
> >> > but
> >> > when Reporting Services tried to make it an Excel file, the render
> >> > object on the web front end timesout. I checked the server during this
> >> > time and the CPU usage is 100% and memory usage climbs. Is it normal
> >> > for RS to choke on a large report like this?
> >> >
> >|||No, SP1 is older than 6 weeks, but it included some fixes for rendering in
Excel that sound like what your problem is.
--
Wayne Snyder, MCDBA, SQL Server MVP
Mariner, Charlotte, NC
www.mariner-usa.com
(Please respond only to the newsgroups.)
I support the Professional Association of SQL Server (PASS) and it's
community of SQL Server professionals.
www.sqlpass.org
"no one" <noone@.yahoo.com> wrote in message
news:42100F1E.8F4DD308@.yahoo.com...
> The server guys tell me they installed it at most 6 weeks ago. Did SP1
> come out
> after that?
> "Bruce L-C [MVP]" wrote:
>> SP 1 for Reporting Services. Before digging too much more into this I
>> would
>> suggest installing SP1. Note that you need to install it at the server
>> and
>> wherever you develop your reports.
>> --
>> Bruce Loehle-Conger
>> MVP SQL Server Reporting Services
>> "no one" <noone@.yahoo.com> wrote in message
>> news:420FB123.1423F27A@.yahoo.com...
>> > SP1 for what? Reporting Services? SQL Server? Win2k?
>> >
>> > "Bruce L-C [MVP]" wrote:
>> >
>> >> Do you have SP1 installed?
>> >>
>> >> --
>> >> Bruce Loehle-Conger
>> >> MVP SQL Server Reporting Services
>> >>
>> >> "no one" <noone@.yahoo.com> wrote in message
>> >> news:420E4351.E3D5A5CA@.yahoo.com...
>> >> > We have a report that needs to run 2-3 times day that is fairly
>> >> > large.
>> >> > The need is to have it in Excel format and it is about 20 columns by
>> >> > 7-8,000 rows. The data is returned by the db server fairly readily,
>> >> > but
>> >> > when Reporting Services tried to make it an Excel file, the render
>> >> > object on the web front end timesout. I checked the server during
>> >> > this
>> >> > time and the CPU usage is 100% and memory usage climbs. Is it
>> >> > normal
>> >> > for RS to choke on a large report like this?
>> >> >
>> >
>|||Go to http://yourserver/Reportserver
It should show version 8.00.878.00 if you have SP1 installed.
Bruce Loehle-Conger
MVP SQL Server Reporting Services
"no one" <noone@.yahoo.com> wrote in message
news:42100F1E.8F4DD308@.yahoo.com...
> The server guys tell me they installed it at most 6 weeks ago. Did SP1
come out
> after that?
> "Bruce L-C [MVP]" wrote:
> > SP 1 for Reporting Services. Before digging too much more into this I
would
> > suggest installing SP1. Note that you need to install it at the server
and
> > wherever you develop your reports.
> >
> > --
> > Bruce Loehle-Conger
> > MVP SQL Server Reporting Services
> >
> > "no one" <noone@.yahoo.com> wrote in message
> > news:420FB123.1423F27A@.yahoo.com...
> > > SP1 for what? Reporting Services? SQL Server? Win2k?
> > >
> > > "Bruce L-C [MVP]" wrote:
> > >
> > >> Do you have SP1 installed?
> > >>
> > >> --
> > >> Bruce Loehle-Conger
> > >> MVP SQL Server Reporting Services
> > >>
> > >> "no one" <noone@.yahoo.com> wrote in message
> > >> news:420E4351.E3D5A5CA@.yahoo.com...
> > >> > We have a report that needs to run 2-3 times day that is fairly
large.
> > >> > The need is to have it in Excel format and it is about 20 columns
by
> > >> > 7-8,000 rows. The data is returned by the db server fairly
readily,
> > >> > but
> > >> > when Reporting Services tried to make it an Excel file, the render
> > >> > object on the web front end timesout. I checked the server during
this
> > >> > time and the CPU usage is 100% and memory usage climbs. Is it
normal
> > >> > for RS to choke on a large report like this?
> > >> >
> > >
>|||Bruce L-C [MVP] wrote:
> Go to http://yourserver/Reportserver
> It should show version 8.00.878.00 if you have SP1 installed.
>
Since I have control of our Dev box, I checked it as well. It did not
have SP1. I downloaded and installed. The report still chokes the
server while trying to render with 100% CPU and memory usage climbing
about actual RAM (on this box it is only 512 MB). Looks like the SP
didn't help.|||As an experiment / workaround try rendering as CSV. If that works then that
can be loaded into Excel. It is possible that SP2 might make a difference
but I don't know.
--
Bruce Loehle-Conger
MVP SQL Server Reporting Services
"Bryon" <blape@.whittmanhart.com> wrote in message
news:O3VThA4EFHA.2756@.TK2MSFTNGP15.phx.gbl...
> Bruce L-C [MVP] wrote:
> > Go to http://yourserver/Reportserver
> >
> > It should show version 8.00.878.00 if you have SP1 installed.
> >
> >
> Since I have control of our Dev box, I checked it as well. It did not
> have SP1. I downloaded and installed. The report still chokes the
> server while trying to render with 100% CPU and memory usage climbing
> about actual RAM (on this box it is only 512 MB). Looks like the SP
> didn't help.|||Bruce L-C [MVP] wrote:
> As an experiment / workaround try rendering as CSV. If that works then that
> can be loaded into Excel. It is possible that SP2 might make a difference
> but I don't know.
>
sp2?|||SP2 is supposed to be release before too long (Feb/March). It is always
possible that they have put in somemore Excel rendering improvements.
--
Bruce Loehle-Conger
MVP SQL Server Reporting Services
"Bryon" <blape@.whittmanhart.com> wrote in message
news:eOTLcE5EFHA.2456@.TK2MSFTNGP10.phx.gbl...
> Bruce L-C [MVP] wrote:
> > As an experiment / workaround try rendering as CSV. If that works then
that
> > can be loaded into Excel. It is possible that SP2 might make a
difference
> > but I don't know.
> >
> sp2?

Monday, February 20, 2012

Large files(Excel) coming out of Reporting Services how can I compress them for email

I have a 29000 row spreadsheet coming out of Reporting Services that is producing a large file that we email. How can I create the most compact spreadsheet/file for scheduled daily emailing out of Reporting Services?

I'm pretty sure there isn't any built-in way to compress the report attached to an email in Reporting Services. There aren't really any tricks that you can use to reduce the size of the report generated, other than making sure that you use numbers instead of strings whenever possible -- numbers will generally take less space in the Excel format than strings. Depending on how you are sending the emails, you might be able to use some third party code or write your own code to compress the exported report and then mail it, but it isn't something that is part of RS.

Large files(Excel) coming out of Reporting Services how can I compress them for email

I have a 29000 row spreadsheet coming out of Reporting Services that is producing a large file that we email. How can I create the most compact spreadsheet/file for scheduled daily emailing out of Reporting Services?

I'm pretty sure there isn't any built-in way to compress the report attached to an email in Reporting Services. There aren't really any tricks that you can use to reduce the size of the report generated, other than making sure that you use numbers instead of strings whenever possible -- numbers will generally take less space in the Excel format than strings. Depending on how you are sending the emails, you might be able to use some third party code or write your own code to compress the exported report and then mail it, but it isn't something that is part of RS.

large excel reports not being emailed

*this was also posted on the web forum
sql 2005 sp2
exchange 2003 sp2
i've got the report server setup to relay through the exchange server for
delivering reports. all reports are exported to excel and emailed
successfully with the exception of the largest report at about 16mb. the smtp
logs on the exchange server show the report server starting a session but no
"DATA" is every sent for this report and emails do not arrive. i am assuming
due to the size of the report there is some timeout out issue between the
smtp client and server. any ideas on how to resolve this issue? maybe a
timeout setting on the exchange smtp server? i'm trying to avoid installing a
local smtp server on the report server.
thanks in advance
nitzOn Oct 9, 12:33 pm, nitz <n...@.discussions.microsoft.com> wrote:
> *this was also posted on the web forum
> sql 2005 sp2
> exchange 2003 sp2
> i've got the report server setup to relay through the exchange server for
> delivering reports. all reports are exported to excel and emailed
> successfully with the exception of the largest report at about 16mb. the smtp
> logs on the exchange server show the report server starting a session but no
> "DATA" is every sent for this report and emails do not arrive. i am assuming
> due to the size of the report there is some timeout out issue between the
> smtp client and server. any ideas on how to resolve this issue? maybe a
> timeout setting on the exchange smtp server? i'm trying to avoid installing a
> local smtp server on the report server.
> thanks in advance
> nitz
You might want to start w/the root of IIS at the Default Website level
(right-click My Computer >> select Manage >> select Services and
Applications >> Internet Information Services >> Web Sites >> Default
Web Site >> right-click >> select Properties) and increase the timeout
value (Connection Timeout). Hope this helps.
Regards,
Enrique Martinez
Sr. Software Consultant|||i've already increased the timeout value for previous reports. this might
have been a good idea if this report was experiencing a timeout when executed
from a web browser and exported to excel. however, it executes just fine with
the current webconfig settings. any other ideas?
i will note that when symantec AV internet email auto-protect option is
checked (this scans any outgoing smtp mail orginating from the client, not
just in outlook per say) it would log error stating the exhange server
disconnected the session. i did also try with AV disabled to make sure with
the same result.
thanks
"EMartinez" wrote:
> On Oct 9, 12:33 pm, nitz <n...@.discussions.microsoft.com> wrote:
> > *this was also posted on the web forum
> >
> > sql 2005 sp2
> >
> > exchange 2003 sp2
> >
> > i've got the report server setup to relay through the exchange server for
> > delivering reports. all reports are exported to excel and emailed
> > successfully with the exception of the largest report at about 16mb. the smtp
> > logs on the exchange server show the report server starting a session but no
> > "DATA" is every sent for this report and emails do not arrive. i am assuming
> > due to the size of the report there is some timeout out issue between the
> > smtp client and server. any ideas on how to resolve this issue? maybe a
> > timeout setting on the exchange smtp server? i'm trying to avoid installing a
> > local smtp server on the report server.
> >
> > thanks in advance
> >
> > nitz
>
> You might want to start w/the root of IIS at the Default Website level
> (right-click My Computer >> select Manage >> select Services and
> Applications >> Internet Information Services >> Web Sites >> Default
> Web Site >> right-click >> select Properties) and increase the timeout
> value (Connection Timeout). Hope this helps.
> Regards,
> Enrique Martinez
> Sr. Software Consultant
>|||It's possible the email is getting blocked due to it's size. Is there a
maximum email size defined in your exchange or filtering server (eg.
Mailmarshal) ? Also note, that due to smtp mime encoding, files sent out via
email are 20-30% larger than the actual file size due to the encoding.
"nitz" wrote:
> i've already increased the timeout value for previous reports. this might
> have been a good idea if this report was experiencing a timeout when executed
> from a web browser and exported to excel. however, it executes just fine with
> the current webconfig settings. any other ideas?
> i will note that when symantec AV internet email auto-protect option is
> checked (this scans any outgoing smtp mail orginating from the client, not
> just in outlook per say) it would log error stating the exhange server
> disconnected the session. i did also try with AV disabled to make sure with
> the same result.
> thanks
> "EMartinez" wrote:
> > On Oct 9, 12:33 pm, nitz <n...@.discussions.microsoft.com> wrote:
> > > *this was also posted on the web forum
> > >
> > > sql 2005 sp2
> > >
> > > exchange 2003 sp2
> > >
> > > i've got the report server setup to relay through the exchange server for
> > > delivering reports. all reports are exported to excel and emailed
> > > successfully with the exception of the largest report at about 16mb. the smtp
> > > logs on the exchange server show the report server starting a session but no
> > > "DATA" is every sent for this report and emails do not arrive. i am assuming
> > > due to the size of the report there is some timeout out issue between the
> > > smtp client and server. any ideas on how to resolve this issue? maybe a
> > > timeout setting on the exchange smtp server? i'm trying to avoid installing a
> > > local smtp server on the report server.
> > >
> > > thanks in advance
> > >
> > > nitz
> >
> >
> > You might want to start w/the root of IIS at the Default Website level
> > (right-click My Computer >> select Manage >> select Services and
> > Applications >> Internet Information Services >> Web Sites >> Default
> > Web Site >> right-click >> select Properties) and increase the timeout
> > value (Connection Timeout). Hope this helps.
> >
> > Regards,
> >
> > Enrique Martinez
> > Sr. Software Consultant
> >
> >