Showing posts with label package. Show all posts
Showing posts with label package. Show all posts

Friday, March 30, 2012

Long time SSIS package loading

I load SSIS package using following code:

Application app = new Application();
Package pac = app.LoadFromSqlServer(packageName, serverName, null, null, null);

For simple package containing 2 tasks this code executes about 20 seconds.
If I load old version (SQL2K) package from SQL2000 then it takes 5 seconds.

Is any way to increase loading speed for SSIS packages?

Do you have SSIS service running? The service caches SSIS component information; in the absense of the service it may take long time (although it is usually 2-3 seconds on reasonable hardware) to enumerate them when loading the package.|||

Thank you Michael.
I carry out additional experiments with realworld package (contains 11 tasks) at another computer.
When I start this experiment I have to wait 1.5 minutes to load package every time. Then I examine if SSIS running. I discover SSIS don't running after SP1 was applied (widely known SP1 bug). I installed post SP1 cumulative hotfixes and continue investigation. Now package loading first time during 30 seconds. When I start it second time it takes about 2 seconds. This is good result. But is there ability to increase loading speed at first time? Will be loading perfomance improved if such delay caused internal implementation of SSIS?

|||Much of the time on the initial load of the package is due to validation of the metadata of each of your tasks. In order to speed of the initial load, you could change the DelayValidation property of your package and all tasks to true. However, that's not really best practices.|||

Thank you Martin
This helps.

BTW, BOL says:
"Validating the package before it runs is a way of finding some errors before execution starts. However, it processes the package to find errors, and if no errors are found, the package runs. Because this goes through the package two times, validating a package increases the amount of processing for the package, so should be used only when necessary."

|||

Alexey Rokhin wrote:

... I discover SSIS don't running after SP1 was applied (widely known SP1 bug). I installed post SP1 cumulative hotfixes and continue investigation. Now package loading first time during 30 seconds...

The bug you quote is described in http://support.microsoft.com/kb/918644. While the hotfix fixes the service startup failure, it can't fix the cause of the problem - long time to start the service due to network configuration that timeouts requests to CRL. So the service still takes 30+ seconds to start (which caused to fail before the hotfix, this later part is now fixed).

To avoid this 30+ delay you should either change the SSIS service to autostart (thus moving the delay to the computer boot time), or better fix the network configuration as described in the KB (although it might be very specific to your environment) to either allow access to CRL, or to quickly fail and return failure status to an application accessing CRL.

|||

Thank you, Michael.
In production environment SSIS service will autostart.

|||

Alexey,

IMHO, a good practice is defining a Events class and so, debugging the code and so you'll find issues faster, i.e with F11...

pkg = app.LoadFromSqlServer(ObjSSIS.sRutaDts & "\" & ObjSSIS.sSSISName, ObjSSIS.sServer, "usrSSIS", "ninot", EventsSSIS)

Public Class EventsSSIS

OnError

OnPreExecute

..

..

sql

Wednesday, March 28, 2012

long running packages

I need to execute a long running package (it takes about 16 hours to finish) to load a data warehouse for the first time with all historical data. This package it's a master package and execute other packages; I log the start time and the finish time of the package in a table to manage future incremental loads.

I executed the package on sql server where it is saved, but after 8 hours it was running, a new package was started automatically. Then two more packages started .. each every two hours.

I set the MaxConcorrentExecutable = 4, this could affect this strange behavoir ?

Anyone could imagine wath happened ?

Thanks

Cosimo

cosimog wrote:

I need to execute a long running package (it takes about 16 hours to finish) to load a data warehouse for the first time with all historical data. This package it's a master package and execute other packages; I log the start time and the finish time of the package in a table to manage future incremental loads.

I executed the package on sql server where it is saved, but after 8 hours it was running, a new package was started automatically. Then two more packages started .. each every two hours.

I set the MaxConcorrentExecutable = 4, this could affect this strange behavoir ?

Anyone could imagine wath happened ?

Thanks

Cosimo

What mechanism are you using to start the package?

Packages will not start executing unless you tell them to.

MaxConcurrentExecutables is completely irrelevant here by the way.

-Jamie

|||

Solved.

It was just a bug ... thank

Cosimo

Long running DTS package

Hello,
I have a DTS package that took 52 hours to run. Within the package is a
task that runs a sproc which is a procedure to calculate premiums recvd and
has to run through over 2 million records. The procedure uses a cursor to
move through the records. My question is - is it possible that there were
memory leaks in the server while the package ran (there are a lot of other
things that go on on that server) making some of the data incorrect and some
of it correct? Because, I can take a portion of the data (a months worth)
and run that same process and it works just fine. Any ideas would help
tremendously.
Thanks,
PatriceMy goodness, that is a long-running process. I've had DTS packages going
through millions of records in a matter of 2-3 hours on an older machine.
There was some cursor activity in those processes as well. My guess is that
with some thoughtful redesign you can eliminate the cursor on a bunch of it.
(Can you precalculate some information and then handle the rest with joins
and aggregate functions?) That will make it easier to debug, as well as
run faster.
Cheers,
'(' Jeff A. Stucker
\
Senior Consultant
www.rapidigm.com
"Patrice" <Patrice@.discussions.microsoft.com> wrote in message
news:1EC80DAD-CC19-447F-B9B5-A344A5E417E5@.microsoft.com...
> Hello,
> I have a DTS package that took 52 hours to run. Within the package is a
> task that runs a sproc which is a procedure to calculate premiums recvd
> and
> has to run through over 2 million records. The procedure uses a cursor to
> move through the records. My question is - is it possible that there were
> memory leaks in the server while the package ran (there are a lot of other
> things that go on on that server) making some of the data incorrect and
> some
> of it correct? Because, I can take a portion of the data (a months worth)
> and run that same process and it works just fine. Any ideas would help
> tremendously.
>
> Thanks,
> Patrice
>|||On Thu, 29 Dec 2005 07:28:02 -0800, "Patrice"
<Patrice@.discussions.microsoft.com> wrote:
>Hello,
>I have a DTS package that took 52 hours to run. Within the package is a
>task that runs a sproc which is a procedure to calculate premiums recvd and
>has to run through over 2 million records. The procedure uses a cursor to
>move through the records. My question is - is it possible that there were
>memory leaks in the server while the package ran (there are a lot of other
>things that go on on that server) making some of the data incorrect and som
e
>of it correct? Because, I can take a portion of the data (a months worth)
>and run that same process and it works just fine. Any ideas would help
>tremendously.
Can you post the cursor code?
Please look into the forward_only and fast_forward options. When you
have a (default) dynamic cursor, it can scale very poorly.
Josh

Monday, March 26, 2012

Long line of text error

Hey,
After working on a package for a while, I started to get the following error
when re-opening the package:
"Document contains one or more extremely long lines of text.
These lines will cause the editor to respond slowly when you open the file.
Do you still want to open the file?"
What is the problem and if there is fix or workaround?
Thanks.There is no fix or workaround however don't worry because there isn't a problem either. Its just a VS thing rather than a SSIS thing that's all.

I think (but may be wrong) it appears when you have a pre-compiled script task/component in your package. Perhaps you could confirm?

-Jamie|||Yes, I have precompiled script tasks in package. Otherwise they don't work :)|||Don't they?

This is a complete digression from the main point of this thread but...why not? What error do you get?

-Jamie

P.S. As I say, forget about the "long lines of text" thing!|||it's on this tread
http://forums.microsoft.com/msdn/showpost.aspx?postid=68546&siteid=1
actually I had the same problem. with precompilation I get no error.

ps. thanks for answering on "long line text..." stuff.

Wednesday, March 21, 2012

Logs with timestamp

Hi,

I'm using the SSIS log feature. However, I want a timestamp on the file everytime the IS package runs so as to keep track also that this particular log file is for this specific execution of IS.

How do i do that?

thanks a lot

cherriesh

Are you logging to SQL Server? If so, you can add a column to the dbo.sysdtslog90 table with a datetime datatype and set its default to GetDate().

I recommend that you read Jamie Thomson's blog about custom logging: http://blogs.conchango.com/jamiethomson/archive/2005/06/11/1593.aspx

|||

Here's a post from Jamie that shows how to set the log file name dynamically through an expression:

http://blogs.conchango.com/jamiethomson/archive/2006/10/05/SSIS-Nugget_3A00_-Dynamically-set-a-logfile-name.aspx

Friday, February 24, 2012

Login problem, mystery

Hi
I have installed MSDE ver 8.00.760.03 from the package sql2desksp03 located
at go.microsoft.com/fwlink/?linkid=13962
My intention is to develop an asp.net application with Microsoft Visual
Basic.Net Standard. Already installed. Because I can't create a database
with the
standard edition I want to use MS Access 2000 project to create the tables,
but when I try to create the project using the Microsoft SQL Server database
wizard and enter my SQL Server details as follows
name=svrname
user=sa
password=correctpassword
I get the following message.
Connection failed:
SQLState:'28000'
SQL Server Error: 18452
[Microsoft][ODBC SQL Server Driver][SQL Server] Login failed for user 'sa'.
Reason: Not associated with a trusted SQL Server connection.
If I leave the Microsoft SQL Server database wizard user and password boxes
empty I am able to create my project but unable to create tables.
I'm on WinXP SP2 with Administrative rights. MSDE is running and my password
is definately correct - Please help :-)
hi,
SimonW wrote:
> Hi
> I have installed MSDE ver 8.00.760.03 from the package sql2desksp03
> located at go.microsoft.com/fwlink/?linkid=13962
> My intention is to develop an asp.net application with Microsoft
> Visual Basic.Net Standard. Already installed. Because I can't create
> a database with the
> standard edition I want to use MS Access 2000 project to create the
> tables, but when I try to create the project using the Microsoft SQL
> Server database
> wizard and enter my SQL Server details as follows
> name=svrname
> user=sa
> password=correctpassword
> I get the following message.
> Connection failed:
> SQLState:'28000'
> SQL Server Error: 18452
> [Microsoft][ODBC SQL Server Driver][SQL Server] Login failed for user
> 'sa'. Reason: Not associated with a trusted SQL Server connection.
> If I leave the Microsoft SQL Server database wizard user and password
> boxes empty I am able to create my project but unable to create
> tables.
> I'm on WinXP SP2 with Administrative rights. MSDE is running and my
> password is definately correct - Please help :-)
MSDE installs by default only allowing trusted conections... you can modify
this behavior bot at install time, providing the
SECURITYMODE=SQL
parameter to the setup.exe boostrap installer or later, at runtime, hacking
the Windows registry as described in
http://support.microsoft.com/default...n-us;285097... stop and
restart the server..
Andrea Montanari (Microsoft MVP - SQL Server)
http://www.asql.biz/DbaMgr.shtmhttp://italy.mvps.org
DbaMgr2k ver 0.15.0 - DbaMgr ver 0.60.0
(my vb6+sql-dmo little try to provide MS MSDE 1.0 and MSDE 2000 a visual
interface)
-- remove DMO to reply
|||Thank you very much Andrea :-)
"Andrea Montanari" wrote:

> hi,
> SimonW wrote:
> MSDE installs by default only allowing trusted conections... you can modify
> this behavior bot at install time, providing the
> SECURITYMODE=SQL
> parameter to the setup.exe boostrap installer or later, at runtime, hacking
> the Windows registry as described in
> http://support.microsoft.com/default...n-us;285097... stop and
> restart the server..
> --
> Andrea Montanari (Microsoft MVP - SQL Server)
> http://www.asql.biz/DbaMgr.shtmhttp://italy.mvps.org
> DbaMgr2k ver 0.15.0 - DbaMgr ver 0.60.0
> (my vb6+sql-dmo little try to provide MS MSDE 1.0 and MSDE 2000 a visual
> interface)
> -- remove DMO to reply
>
>

Login problem when scheduling a dts package

Hi.
(Environment: Win 2000 Server sp. 4. MS SQL 7.0 sp 4)
As me, some of you might use the "Scedule Package" option on dts packages to
let the SQL server generate a job, and then copy the "Operating System
Command" string into another job which bundles together a set of dts
packages in one scheduled job.
My problem now is when I rightclick a DTS package and select "Schedule
Package" I get a [Microsoft][ODBC SQL Server Driver][SQL Server]Login failed
for user ' '. It got no detailed error number as the one you get on the
error: "...not assosiated with a trusted SQL connection..." stuff. It only
gives the general SQLState: 28000 error.
We have done a lot off stuff on our domain lately (converted to AD), but it
worked allright yesterday, but after a reboot this morning I got the above
issue.
Where should I start looking? Where do I set the login account which is used
when generating a job from a DTS Package? The Server Agent runs normaly, and
I'm logged into the server with the same ID which have created and owns the
DTS package
Please give me a resource URL or a hint on the above, if you have any
expiriences...
Regards
Mr. SmithThe problem with Authentication, can you provide for the DTS package, to
Windows authentication mode. so that the package run successfully. i faced
same problem.some R&D i fix that issue. can you proceed with windows
authentication.
still u have problem let me know.
"Mr. Smith" wrote:
> Hi.
> (Environment: Win 2000 Server sp. 4. MS SQL 7.0 sp 4)
> As me, some of you might use the "Scedule Package" option on dts packages to
> let the SQL server generate a job, and then copy the "Operating System
> Command" string into another job which bundles together a set of dts
> packages in one scheduled job.
> My problem now is when I rightclick a DTS package and select "Schedule
> Package" I get a [Microsoft][ODBC SQL Server Driver][SQL Server]Login failed
> for user ' '. It got no detailed error number as the one you get on the
> error: "...not assosiated with a trusted SQL connection..." stuff. It only
> gives the general SQLState: 28000 error.
> We have done a lot off stuff on our domain lately (converted to AD), but it
> worked allright yesterday, but after a reboot this morning I got the above
> issue.
> Where should I start looking? Where do I set the login account which is used
> when generating a job from a DTS Package? The Server Agent runs normaly, and
> I'm logged into the server with the same ID which have created and owns the
> DTS package
> Please give me a resource URL or a hint on the above, if you have any
> expiriences...
> Regards
> Mr. Smith
>
>

Login problem when scheduling a dts package

Hi.
(Environment: Win 2000 Server sp. 4. MS SQL 7.0 sp 4)
As me, some of you might use the "Scedule Package" option on dts packages to
let the SQL server generate a job, and then copy the "Operating System
Command" string into another job which bundles together a set of dts
packages in one scheduled job.
My problem now is when I rightclick a DTS package and select "Schedule
Package" I get a [Microsoft][ODBC SQL Server Driver][SQL Server]Login failed
for user ' '. It got no detailed error number as the one you get on the
error: "...not assosiated with a trusted SQL connection..." stuff. It only
gives the general SQLState: 28000 error.
We have done a lot off stuff on our domain lately (converted to AD), but it
worked allright yesterday, but after a reboot this morning I got the above
issue.
Where should I start looking? Where do I set the login account which is used
when generating a job from a DTS Package? The Server Agent runs normaly, and
I'm logged into the server with the same ID which have created and owns the
DTS package
Please give me a resource URL or a hint on the above, if you have any
expiriences...
Regards
Mr. Smith
The problem with Authentication, can you provide for the DTS package, to
Windows authentication mode. so that the package run successfully. i faced
same problem.some R&D i fix that issue. can you proceed with windows
authentication.
still u have problem let me know.
"Mr. Smith" wrote:

> Hi.
> (Environment: Win 2000 Server sp. 4. MS SQL 7.0 sp 4)
> As me, some of you might use the "Scedule Package" option on dts packages to
> let the SQL server generate a job, and then copy the "Operating System
> Command" string into another job which bundles together a set of dts
> packages in one scheduled job.
> My problem now is when I rightclick a DTS package and select "Schedule
> Package" I get a [Microsoft][ODBC SQL Server Driver][SQL Server]Login failed
> for user ' '. It got no detailed error number as the one you get on the
> error: "...not assosiated with a trusted SQL connection..." stuff. It only
> gives the general SQLState: 28000 error.
> We have done a lot off stuff on our domain lately (converted to AD), but it
> worked allright yesterday, but after a reboot this morning I got the above
> issue.
> Where should I start looking? Where do I set the login account which is used
> when generating a job from a DTS Package? The Server Agent runs normaly, and
> I'm logged into the server with the same ID which have created and owns the
> DTS package
> Please give me a resource URL or a hint on the above, if you have any
> expiriences...
> Regards
> Mr. Smith
>
>

Login problem when scheduling a dts package

Hi.
(Environment: Win 2000 Server sp. 4. MS SQL 7.0 sp 4)
As me, some of you might use the "Scedule Package" option on dts packages to
let the SQL server generate a job, and then copy the "Operating System
Command" string into another job which bundles together a set of dts
packages in one scheduled job.
My problem now is when I rightclick a DTS package and select "Schedule
Package" I get a [Microsoft][ODBC SQL Server Driver][SQL Server]
Login failed
for user ' '. It got no detailed error number as the one you get on the
error: "...not assosiated with a trusted SQL connection..." stuff. It only
gives the general SQLState: 28000 error.
We have done a lot off stuff on our domain lately (converted to AD), but it
worked allright yesterday, but after a reboot this morning I got the above
issue.
Where should I start looking? Where do I set the login account which is used
when generating a job from a DTS Package? The Server Agent runs normaly, and
I'm logged into the server with the same ID which have created and owns the
DTS package
Please give me a resource URL or a hint on the above, if you have any
expiriences...
Regards
Mr. SmithThe problem with Authentication, can you provide for the DTS package, to
Windows authentication mode. so that the package run successfully. i faced
same problem.some R&D i fix that issue. can you proceed with windows
authentication.
still u have problem let me know.
"Mr. Smith" wrote:

> Hi.
> (Environment: Win 2000 Server sp. 4. MS SQL 7.0 sp 4)
> As me, some of you might use the "Scedule Package" option on dts packages
to
> let the SQL server generate a job, and then copy the "Operating System
> Command" string into another job which bundles together a set of dts
> packages in one scheduled job.
> My problem now is when I rightclick a DTS package and select "Schedule
> Package" I get a [Microsoft][ODBC SQL Server Driver][SQL Serve
r]Login failed
> for user ' '. It got no detailed error number as the one you get on the
> error: "...not assosiated with a trusted SQL connection..." stuff. It onl
y
> gives the general SQLState: 28000 error.
> We have done a lot off stuff on our domain lately (converted to AD), but i
t
> worked allright yesterday, but after a reboot this morning I got the above
> issue.
> Where should I start looking? Where do I set the login account which is us
ed
> when generating a job from a DTS Package? The Server Agent runs normaly, a
nd
> I'm logged into the server with the same ID which have created and owns th
e
> DTS package
> Please give me a resource URL or a hint on the above, if you have any
> expiriences...
> Regards
> Mr. Smith
>
>