Copying And Moving Tasks Between DTSX

May 30, 2006

hi,

When you copy a sequence container between dtsx you obtain a different size at destination. Any way to avoid this? I'd like to see that task with the same size.

Maybe some posh from my side...

View 1 Replies


ADVERTISEMENT

Can't Execute Tasks After Moving .dtsx To New Server

Jan 10, 2007

Hello.

I have two servers, A for dev and B for production.

On server A I developed a project containing a SSIS package using SQL Server business intelligence development studio. The package runs fine from the BIDS and also when I save it to SQLServer itself and run it as a scheduled job using the SQLServer Agent.

All ready to roll out to Server B I thought, so I then saved the .dtsx file to a shared network drive.

On Server B, I created a empty project with the same name as it had on Server A. I then imported the .dtsx file into the project using project > add existing item.

The package appeared to import ok but I now cannot execute any of the data flow tasks in isolation. If I right click on them, there is no option to 'execute task' as there should be, it is not greyed out, it's not there at all.

Also, if I attempt to debug the whole package I get a message saying 'This document is opened by another project'.

Can anyone help with this as my deployment to live isn't going very well to say the least!

Both server A + B are 32-bit 2005 std edition SP1 on W2003 Server std edition SP1.

Thanks.













View 3 Replies View Related

Schedule Tasks & Copying

Aug 17, 1998

Is there anyway to copy a scheduled task from one server to another? I have several tasks that I have scheduled to run on one server but I would
like those tasks to be copied onto another remote server. Is it possible to copy or restore part/all of msdb into a database and have it create the
scheduled tasks? Is there some other way of doing this? Any insight is appreciated.

View 3 Replies View Related

DTS Moving/copying

Jul 23, 1999

Does anyone know how to move or copy DTS Package?
That I need to do:
I would have to move database from one server to the other
and last thing I want to do is recreate DTS packages from
scrach.
I could not find any way of transfering DTS packages.

Any help greatly appreciated

View 3 Replies View Related

Moving/Copying Data

Oct 4, 2007

Hello everyone!

I have two servers, one is 2005 standard, the other is 2005 express.
I'm using express to record test results and it will be keep recording non-stop.
So, what I want to do is I want to transfer data from express to standard using SSIS package, and as soon as data gets transferred the data to no longer exists in express.


I have a job running the "copy" package every minute, but I don't know how to delete the data in express.
Does anyone know how to help me out pleaseeeee..?



Thanks in advance.


MIKE!

View 6 Replies View Related

Copying/Moving User Accounts...how?

Sep 27, 2006

Ok. So we just moved over one DB from our original server to another server. The DB copied over fine.

Our next step is trying to see if there is a way to move accounts. Is that possible?

We have about 40 accounts (using SQL authentication) on the original server. Is there a way to move or copy those accounts to the new SQL server that is holding that same DB?

Haven't found anything in the Enterprise manager, so im thinking it will be something to do in the SQL analyzer.

My lack of knowledge in SQL is not helping me much here.

I appreciate the help.

View 17 Replies View Related

Copying / Moving Data From SQL2005 To SQL2000

Oct 22, 2007

Hi
I have a (possibly) common position where half of our IT department is SQL 2005 and the rest is SQL2000. For myself, having to work in a SQL2000 environment and needing data from a SQL2005 Cluster I came up with this solution.
Also, to alert me when the process starts and completes since it is part of a scheduled process, I have it do a RAISERROR with logging to record entry and exit times. In addition, this runs out a series of PRINT statements that lets the operator know what table is currently being worked on.

Of course, any suggestions for speeding this up would be helpful!

What I have found that works for getting data (albeit slow) from SQL 2005 down to SQL 2000 is to script a fairly simple copy process -

-- it is actually pretty easy to follow if you just read the code......

-- first, we find all the views which are present, so they can be ignored when copying the raw data

CREATE TABLE #VIEWS (TABLE_NAME NVARCHAR (255) )

INSERT #VIEWS
SELECT TABLE_NAME FROM
OPENDATASOURCE(
'SQLOLEDB',
Data Source=SQL2005server;User ID=trust_me;Password=i_know_what_i_am_doing' )
.SQL_SIS_SYSTEM.INFORMATION_SCHEMA.VIEWS

-- now, we get the actual tables with data
CREATE TABLE #TEMP (TBL_SCHEMA VARCHAR (12), TBL_NAME VARCHAR (255), RECCNT INT )

INSERT #TEMP
SELECT TABLE_SCHEMA , TABLE_NAME FROM
OPENDATASOURCE( 'SQLOLEDB', 'Data Source=SQL2005server;User ID=trust_me;Password=i_know_what_i_am_doing' )
.SQL_SIS_SYSTEM.INFORMATION_SCHEMA.TABLES
WHERE TABLE_TYPE = 'BASE TABLE'
AND TABLE_NAME NOT IN (SELECT TABLE_NAME FROM #VIEWS)



-- then, we start copying tables over - now we tag the ones which are populated with at least 1 row.
-- the first cursor loop gets all table names, the second will find row counts of source tables.
-- this segment uses (ugh) cursor to loop through and gather all of the data. This cursor is at the table name level - not
-- processing anything, and is used only to find tables which have a rowcount > 0
-- believe it or not, the cursors run pretty darn quickly since they arnet doing any calculations - just finding
-- tables with row counts > 0



SET @QUOT = CHAR(39)
SET @LBRAKT = '['
SET @RBRAKT = ']'
SET @IUT = 'IsUserTable'
SET @ODBC_CMD ='(' + @QUOT + 'SQLOLEDB' + @QUOT + ',' + @QUOT + 'Data Source=SQL2005server;User ID=trust_me;Password=i_know_what_i_am_doing' + @QUOT +
').SQL_SIS_SYSTEM.dbo.'
PRINT 'BEGIN TABLE SCHEMA LOAD CURSOR. ' + CAST(GETDATE() AS VARCHAR (50) )
DECLARE GETEM CURSOR FOR
SELECT TBL_SCHEMA, TBL_NAME FROM #TEMP
OPEN GETEM
FETCH NEXT FROM GETEM INTO @TBL_SCHEMA, @TBL_NAME

WHILE @@FETCH_STATUS = 0
BEGIN

SET @SQL = 'UPDATE #TEMP SET RECCNT = ' +
'(SELECT COUNT(*) FROM OPENDATASOURCE(' +
@QUOT + 'SQLOLEDB'+ @QUOT + ',' + @QUOT +''Data Source=SQL2005server;User ID=trust_me;Password=i_know_what_i_am_doing' + @QUOT +
').SQL_SIS_SYSTEM.' + @TBL_SCHEMA + '.' + @TBL_NAME +')' +
' WHERE TBL_NAME = ' + @QUOT + @TBL_NAME + @QUOT
EXEC (@SQL)
FETCH NEXT FROM GETEM INTO @TBL_SCHEMA, @TBL_NAME
END
CLOSE GETEM
DEALLOCATE GETEM

PRINT 'FINIS TABLE SCHEMA LOAD CURSOR. ' + CAST(GETDATE() AS VARCHAR (50) )



DECLARE @PLIN VARCHAR (80),@LFT_PLIN VARCHAR (20),
@RT_PLIN VARCHAR (20), @TLIN INT
PRINT 'BEGIN TABLE CHECK AND LOAD CURSOR.'
DECLARE FETCHIT CURSOR FOR
SELECT TBL_NAME, RECCNT FROM #TEMP WHERE RECCNT > 0



OPEN FETCHIT
FETCH NEXT FROM FETCHIT INTO @TBL_NAME, @RECCNT
WHILE @@FETCH_STATUS = 0
BEGIN
PRINT 'CHECKING ' + @LBRAKT+ @TBL_NAME + @RBRAKT

IF NOT EXISTS (SELECT * FROM dbo.sysobjects
WHERE id = object_id
(@LBRAKT+ @TBL_NAME + @RBRAKT )
AND OBJECTPROPERTY(id,''+@IUT) = 1)
BEGIN
SET @LFT_PLIN = 'OBJECT' + SPACE(5)
SET @RT_PLIN = SPACE(5) + 'NOT FOUND. BUILD ' +
CAST(@RECCNT AS VARCHAR (6) ) + ' rowS.'
SET @PLIN = @LFT_PLIN + @LBRAKT+ @TBL_NAME + @RBRAKT
SET @TLIN = LEN(@PLIN)
SET @PLIN = @PLIN + SPACE(50 - @TLIN) + @RT_PLIN
PRINT 'ENTRY. ' + CAST(GETDATE() AS VARCHAR (50) )
PRINT @PLIN
PRINT 'COPYING DATABASE TABLE.'
SET @SQL = ' SELECT * INTO ' + @TBL_NAME +
' FROM OPENDATASOURCE' + @ODBC_CMD + @TBL_NAME
EXEC (@SQL)
PRINT 'COMPLETED. ' + CAST(GETDATE() AS VARCHAR (50) )
END

IF EXISTS (SELECT * FROM dbo.sysobjects
WHERE id = object_id
(@LBRAKT+ @TBL_NAME + @RBRAKT )
AND OBJECTPROPERTY(id,''+@IUT) = 1)

-- #TEMP (RECCNT) CONTAINS ROW COUNT OF SOURCE SYSTEM.
-- COMPARE TO ROW COUNT OF LOCAL TABLE
BEGIN
SELECT @DEST_RECCNT = RECCNT FROM #TEMP
WHERE TBL_NAME = @TBL_NAME
IF @DEST_RECCNT = @RECCNT
BEGIN
PRINT 'TABLE row COUNT MATCHES. BYPASSING REBUILD.'
END
IF @DEST_RECCNT <> @RECCNT
BEGIN
SET @SQL = 'DROP TABLE ' + @TBL_NAME
EXEC (@SQL)
SET @LFT_PLIN = 'OBJECT' + SPACE(5)
SET @RT_PLIN = SPACE(5) + 'REBUILD.' +
CAST(@RECCNT AS VARCHAR (6) ) + ' rowS.'
SET @PLIN = @LFT_PLIN + @LBRAKT+ @TBL_NAME + @RBRAKT
SET @TLIN = LEN(@PLIN)
SET @PLIN = @PLIN + SPACE(50 - @TLIN) + @RT_PLIN
PRINT 'ENTRY. ' + CAST(GETDATE() AS VARCHAR (50) )
PRINT @PLIN
PRINT 'COPYING DATABASE TABLE.'
SET @SQL = ' SELECT * INTO ' + @TBL_NAME +
' FROM OPENDATASOURCE' + @ODBC_CMD + @TBL_NAME
EXEC (@SQL)

PRINT 'COMPLETED. ' + CAST(GETDATE() AS VARCHAR (50) )
END
END
FETCH NEXT FROM FETCHIT INTO @TBL_NAME, @RECCNT
END

CLOSE FETCHIT
DEALLOCATE FETCHIT
PRINT 'FINIS TABLE CHECK AND LOAD CURSOR.'


XIT:


RAISERROR (50002,010,1) WITH LOG -- FLAG COMPLETION TIME IN SQL LOG

SET QUOTED_IDENTIFIER OFF


View 1 Replies View Related

DTSX Package Calling Another DTSX Package Question

Jun 13, 2007

I have a dtsx package that is calling another dtsx package, however, if the called upon dtsx package fails with errors or what not, then the calling package does not continue as well. Is there any way to override this such that if the called upon package fails, the downstream actions in that package can stop, but the calling packages downstream actions to continue?

View 3 Replies View Related

Transact SQL :: How To Get Moving Total Like Moving Average

Nov 10, 2015

I trying to get the moving total (juts as moving average). It always sum up the current record plus previous two records as well and grouped by EmpId.For example, attaching a image of excel calculation.

View 3 Replies View Related

DTSX On 64x

Jun 17, 2008

Hi people.
I just run a new instance of a SQL 2005 64x in my network.
For now all is working right. I have only one problem.

I create a procedure for BI that use DTSX.
Sometime if i try to use from Integration services, these job start and immediatly stop without no error.

Someone can help me ?

thank you in advance.

View 3 Replies View Related

Script For Dtsx

Jan 15, 2007

Hi all,

i have creatd a dtsx packages, i need to script on that packages.

is it possible to get a script on that corresponding packages..?

Can any one able to help me..?

Thanks
krishnakumar.C

View 3 Replies View Related

Failing A DTSX

Dec 27, 2007

I have been trying in vain to get a DTSX to return to a vb.net application that it has failed, all i get back is a

ReturnResult = success.

In the dtsx is the following;

Secquence

- Transaction Option set to Required
- FailParentonFaluire set to True
- FailPackageonFaluire set to True
- MaximumErrorCount set to 0

Inside the sequence Container
DataFlowTask
- Transaction Option set to Required
- FailParentonFaluire set to True
- FailPackageonFaluire set to True
- MaximumErrorCount set to 0

ExecuteSQLTask
- Transaction Option set to Required
- FailParentonFaluire set to True
- FailPackageonFaluire set to True
- MaximumErrorCount set to 0


I have run the package from my vb.net application and it runs fine, importing data from a file. I tried running it with a bogus file name that doesnt exsist and it still returned a ReturnResult = success. I need it to return a failed result on any errors, which is what i thought it would do as i have it sey to fail the package on errors throughout each task ... am i missing something ?

View 3 Replies View Related

XML Stylesheet Available For .dtsx ?

Nov 9, 2006

I am having more luck editing the dtsx files directly than using configs. Also for documentation purposes this would be helpful as I don't know enough about xml to find or build a tool to create a style sheet for me.

Thanks!

Ken

View 3 Replies View Related

I Can't Open My Dtsx

Aug 9, 2006

Hi everyone,

After a while I'm come back to SSIS but a drawback appears.

I€™ve copied from our server a folder which contains a few dtsx on my local folder and when I€™m going to open dtproj and then choose any of them:

Error 1 Error loading 'M_Hac_Modelo187.dtsx' : Error al recuperar un generador de clases COM para el componente con CLSID {E80FE1DB-D1AA-4D6B-BA7E-040D424A925C} debido al siguiente error: 8000401a.. c:ssishacienda_anualM_Hac_Modelo187.dtsx 1 1
..
..
..

(I think that is not necessary to translate into english due to simpleness of the message.)

What the hell is happening? I perfectly remember have been doing the same a month ago and I was able to open them without problems.

TIA

View 2 Replies View Related

Run A Dtsx Package In 32-bit

Dec 8, 2006

Hi!

I have a  SSIS-package with Excel Connection Manager that fails on our x64-platform with error:
Error: 2006-12-08 06:46:23.77
Code: 0xC0202009
Source: dpd2_philips Connection manager "Excel Connection Manager"
Description: An OLE DB error has occurred. Error code: 0x80040154.
An OLE DB record is available. Source: "Microsoft OLE DB Service Components" Hresult: 0x80040154 Description: "Class not registered".
End Error
Error: 2006-12-08 06:46:23.77
Code: 0xC020801C
Source: Copy Data from Blad1$ to dpd2 dbo philips Task Excel Source [107]
Description: The AcquireConnection method call to the connection manager "Excel Connection Manager" failed with error code 0xC0202009.
End Error

It's works fine on my computer (x86) and if I start the package manually on the x64-server. But I noticed that it runs under 32bit (DTExecUI.exe *32 in taskmanager) when it's started manually.

Any idea? The server use dtexec.exe to start the packages. Maybe it runs under 64bit then? 

View 4 Replies View Related

DTS Packages (.dtsx) And Automation Through C#

Jul 23, 2007

I have spent the last couple of weeks going through about 15-20 different examples/tutorials on running DTS packages from inside a C# Windows app (and even asp.net). I must have a mental block, because I can't seem to make it click in my head. I have hundreds of DTS packages saved as .dtsx files. I can double click on them and run them perfectly. What I need to do is be able to run them conditionally from inside a windows app. Could anyone point me to a tutorial or example that could help me with this? I've even looked at some VB source to see if I could work it out, but I keep running up against a wall. I'd appreciate any help anyone can provide.

View 1 Replies View Related

Schedule A Packge.dtsx

Jun 24, 2008

Hello,
Please, help me.. I'm trying to execute a packge.dtsx that be save in folder. How can i do, to execute it? I create a job, but always give me errors..

View 9 Replies View Related

How To Debug DTSX Packages?

Aug 1, 2007

I have some familiarity with DTS packages, and find them easy ( generally) to debug as you can run them step by step and simply find the offending step. when they fail they also put a message box with the error in the centre of the screen. My system has recently been updated and now uses DTSX packages. I can open and veiw these in visual studio, but i cannot run them one step at a time, and they dont give a nice error message when they fail. how do you debug a DTSX package, or at least make debugging it a little easier?

View 7 Replies View Related

The Never Ending DTSX Package

May 23, 2006

Hi Champs

I want to implement a rutine that watches for specific files in a specified folder.

I've found the WMI sample "File Watcher Task" for SSIS and it looks fine.

My question is now: how shall I run this package; shall I start it at let it run forever?

And also how do I monitor that the package is running?





Many thanks

Rogvi

View 2 Replies View Related

Is Importing A Dtsx File Necessary

Aug 15, 2007

Ok, I'm actually adding a SSIS job to my job agent on my test SQL server. Noticed that when I go to my job agent --> add new job, under the steps option, I click new. this then takes me to the new job step window. When I select

Type as SQL Server Integrated Services, I then see some new tabs at the bottom of the form. Under package source I can select File System, SQL Server, or SSIS Package Store, then I have to select the location of the dtsx file.

So my question is, since I can select the actual file (package) I want to run from here, do I really have to import a package to the file system or MSDB under the SQL Integration Services on the server?

It appears to me that its kind of the same thing.










I'm new to this SSIS, SQL DB work, so I'm learning as I go. . . .

View 1 Replies View Related

CAn't Run DTSX From Visual Studio

Aug 30, 2006

I can create and edit DTSX packages in Visual Studio 2005, but I can't execute them because the start button is grayed out. Can someone help?

I am able to run them using the execution utility, but that's a hassle.



Kathy

View 1 Replies View Related

Importing Dtsx In SQL Server

May 22, 2008



I created a dtsx with my user account and when I had imported it in SQL server
I get the following error when trying to execute:



Executed as user TESTGISSYSTEM Failed to decrypt protected XML node, Key not vallid for use in specified state.

Even when I remove the password for the dtsx I still get the same error.


I saw the reply's on this
Re: DTSX package will not run from SQL server agent
Thread Starter: jschroeder Started: 13 Aug 2007 10:08 PM Replies: 2
but it was no solution for my problem.

Thx

View 4 Replies View Related

DTSX From Deployed Packages

Dec 14, 2007

Hi,

I want to take the backup of all SSIS packages deployed in the SQL server. I need the backup in DTSX format, how should i do that. Please advice.

View 8 Replies View Related

RSExecutionLog_Update.dtsx Error!!

Feb 8, 2006

Hi,

When I execute the RSExecutionLog_Update.dtsx, I get an error saying "The task "Set Time period" cannot run on this edition of Integration Services. It requires higher level edition". I am using the Proffesional Edition of SQL2005 and the Integration Services Version is 9.00.1399.00. I have configured the target database RSExecutionLog correctly. Wat could be the problem?

TIA

View 4 Replies View Related

Dtsx Package Encryption

Oct 19, 2007

I understand that I can use dtutil to provide a password to encrypt the package. However, when I run the encrypted package, I need to provide the same password in order to run it. Is there a way that I can encrypt the package but allow anybody to run it without providing the password?
That is, I want the package to be encrypted so that nobody can load and modify the code in Visual Studio, but I want people to be able to execute it. Is there a way to do this? Similar to generating a exe file?

View 7 Replies View Related

Dtsx With Config File?

Feb 15, 2006

Hi all

This is the situation: I've a dtsx package wich creates a tab delimited txt file from a sql server 2005 databasetable. Now this all works just fine. But what I want to do is that the user can choose the destination path of that created txt-file. Right now I've declared the path when I created the flat file source.

On the net I found that a config file for a dts package (sql server 2000 - Dynamic Property Task) could do the trick...

Any help plz?

thx!

View 1 Replies View Related

Unable To Run .dtsx Package

Mar 28, 2007

Dear all,



SSIS package created from the wizard couldn't be run from the visual studio editor? The run button is disabled. Is it not possible to run from inside editor as well?



Many thanks,

milan

View 3 Replies View Related

How Do I Obtain The Log File For A DTSX?

Aug 16, 2006

Hi everyone,

I'm stuck with this silly thing but I haven't idea how to obtain the path for the log file specified in a SSIS package programatically.

This snippet of code works fine:

Dim pkg As New Microsoft.SqlServer.Dts.Runtime.Package

Dim app As New Microsoft.SqlServer.Dts.Runtime.Application

Dim pkgResults As DTSExecResult

pkgLocation = "C:Documents and Settings40990880Mis documentosVisual Studio 2005ProjectsProyecto de SSIS3Proyecto de SSIS3ProvaPrimera.dtsx"

pkg = app.LoadPackage(pkgLocation, Nothing)

pkgResults = pkg.Execute()



After execution I'd like to see the log file which is allocated in the same place than DTSX file. But how??

Using pkg.LogProviders.Item(0).Name appears description reference "SSIS log provider for Text files1" but no the name of the file or its path



Thanks in advance for any thought or advice,





View 6 Replies View Related

Post Dtsx Packages To Forum

Mar 30, 2007

First off, can you post .dtsx packages to the forum? I always end up cutting and pasting code, which is by is nature incomplete, as it generally has external dependencies (connections, variables).

Perhaps you cannot do so for security reasons?

Second, is there a good blog site that allows you to post .dtsx packages?

I'd rather post .dtsx links than cut and paste code (which half the time formats the code un-recognizably), or even worse, post package xml, which contains the layout information and possibly IL that makes it all but unreadable.

View 4 Replies View Related

Calling Dtsx Package Using Xp_cmdshell

Jan 17, 2008

am trying to execute a dtsx package using xp_cmdshell

when testing, this works fine

DECLARE @returncode int

EXEC @returncode = master..xp_cmdshell 'dtexec /f "C:WorkWarehouseDev.ETLLoadGroup_Daily.dtsx"'

PRINT @returncode

then change it to look at the live one

DECLARE @returncode int

EXEC @returncode = master..xp_cmdshell 'dtexec /f "C:WorkWarehouse.ETLLoadGroup_Daily.dtsx"'

PRINT @returncode


doesnt work - it tries to execute the WarehouseDev version

any ideas ??

n.b. didnt know if this should be in this forum or a t-sql forum - apologies if its in wrong place !!

View 4 Replies View Related

Reading Variabels From DTSX==&&>Writing

Jul 20, 2007

Hi,



I want to make an application that fills in the variables into a dtsx package (ssis).

I'm able to read the variables created in the package



Application app = new Application();

Package p = app.LoadPackage(pkg, null);

Connections myConns = p.Connections;



foreach( Variable v in p.Variables){

Console.WriteLine(v.Name);

Console.WriteLine(v.Value);

Console.WriteLine(v.Namespace);

Console.WriteLine("/////////////////////");

Console.WriteLine("/////////////////////");

}

i'm also able to add on

Variable myVar = p.Variables.Add("amyCustomVar", false, "User", "3")



When the applications is closed the package does not contain the variable. So this is all done in memory.

Is their a way to actually write the variable into the physical package.

View 1 Replies View Related

Can't Load SSIS Dtsx Package

Apr 4, 2007

hi there,

when i start SQL Server business intelligence developer and create new Integration Service project, i will see following error:



Error loading 'Package.dtsx' : Object reference not set to an instance of an object.. C:SairiMy DocumentsVisual Studio 2005ProjectsIntegration Services Project12Integration Services Project12Package.dtsx



this error occures just on my PC and i reinstalled VS2005 and SQL2005 again and unfotunately the problem existes.


please someone helps me (just don't tell me to format my PC!!!)



tnx

View 10 Replies View Related

Created .dtsx File How Do I Schedule It?

Mar 27, 2007

How dow you schedule a file(.dtsx)(I think it is a package) that was created in the SQL Server BI Design Studio to run? I can locate the file I created in SQL Server Management Studio and see it in the right hand pane and even edit it. I can run it in the Design Studio, but cant see how to do that in Management Studio nor how to schedule it.


This is my first attempt at recreating a DTS package using SQL Server tools instead of the Legacy conversion wizard, and I think my brain has overheated. I just cant find it on the Management Screen or the Design. I am also not searching correctly anymore on books online because I cannot find it.



Thanks for pointing me to where I need to go or do.


Tracey


View 5 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved