Solved

SSIS Error on a Wizard created SSIS

Posted on 2009-05-12
5
1,495 Views
Last Modified: 2013-11-10
Hi, I'm new to SSIS and have created a SSIS package, using the wizard, transferring tables from one Databae to another.  The options are to Drop existing tables and rebuild new ones.  The error message I get is:

The connection manager "DestinationConnectionOLEDB" will not acquire a connection because the package OfflineMode property is TRUE. When the OfflineMode is TRUE, connections cannot be acquired.

I suspect it's just a setting in the SQL Server that needs to be changed but for those that want to see the SQL Server Agent Job code, I have scripted it below.

Unfortunately I have spent a lot of time trying to overcome this problem, but to no avail, and now I have to deliver.  I need answers please.

USE [msdb]

GO

/****** Object:  Job [CM_Assessors_Database_Import Loans_Data]    Script Date: 05/13/2009 11:40:09 ******/

BEGIN TRANSACTION

DECLARE @ReturnCode INT

SELECT @ReturnCode = 0

/****** Object:  JobCategory [[Uncategorized (Local)]]]    Script Date: 05/13/2009 11:40:09 ******/

IF NOT EXISTS (SELECT name FROM msdb.dbo.syscategories WHERE name=N'[Uncategorized (Local)]' AND category_class=1)

BEGIN

EXEC @ReturnCode = msdb.dbo.sp_add_category @class=N'JOB', @type=N'LOCAL', @name=N'[Uncategorized (Local)]'

IF (@@ERROR <> 0 OR @ReturnCode <> 0) GOTO QuitWithRollback
 

END
 

DECLARE @jobId BINARY(16)

EXEC @ReturnCode =  msdb.dbo.sp_add_job @job_name=N'CM_Assessors_Database_Import Loans_Data', 

		@enabled=1, 

		@notify_level_eventlog=0, 

		@notify_level_email=0, 

		@notify_level_netsend=0, 

		@notify_level_page=0, 

		@delete_level=0, 

		@description=N'No description available.', 

		@category_name=N'[Uncategorized (Local)]', 

		@owner_login_name=N'sa', @job_id = @jobId OUTPUT

IF (@@ERROR <> 0 OR @ReturnCode <> 0) GOTO QuitWithRollback

/****** Object:  Step [CM_Assessors_Data_Import_Loans_Data]    Script Date: 05/13/2009 11:40:10 ******/

EXEC @ReturnCode = msdb.dbo.sp_add_jobstep @job_id=@jobId, @step_name=N'CM_Assessors_Data_Import_Loans_Data', 

		@step_id=1, 

		@cmdexec_success_code=0, 

		@on_success_action=1, 

		@on_success_step_id=0, 

		@on_fail_action=2, 

		@on_fail_step_id=0, 

		@retry_attempts=0, 

		@retry_interval=0, 

		@os_run_priority=0, @subsystem=N'SSIS', 

		@command=N'/SQL "\SSIS_A99Loans_Transfer" /SERVER W00123f536AE8 /MAXCONCURRENT " -1 " /CHECKPOINTING OFF', 

		@database_name=N'master', 

		@flags=0

IF (@@ERROR <> 0 OR @ReturnCode <> 0) GOTO QuitWithRollback

EXEC @ReturnCode = msdb.dbo.sp_update_job @job_id = @jobId, @start_step_id = 1

IF (@@ERROR <> 0 OR @ReturnCode <> 0) GOTO QuitWithRollback

EXEC @ReturnCode = msdb.dbo.sp_add_jobschedule @job_id=@jobId, @name=N'CM_Assessors_Database_Import_Loans_Data', 

		@enabled=1, 

		@freq_type=4, 

		@freq_interval=1, 

		@freq_subday_type=1, 

		@freq_subday_interval=0, 

		@freq_relative_interval=0, 

		@freq_recurrence_factor=0, 

		@active_start_date=20090514, 

		@active_end_date=99991231, 

		@active_start_time=53000, 

		@active_end_time=235959

IF (@@ERROR <> 0 OR @ReturnCode <> 0) GOTO QuitWithRollback

EXEC @ReturnCode = msdb.dbo.sp_add_jobserver @job_id = @jobId, @server_name = N'(local)'

IF (@@ERROR <> 0 OR @ReturnCode <> 0) GOTO QuitWithRollback

COMMIT TRANSACTION

GOTO EndSave

QuitWithRollback:

	IF (@@TRANCOUNT > 0) ROLLBACK TRANSACTION

EndSave:

Open in new window

0
Comment
Question by:davidjk1
  • 3
5 Comments
 
LVL 22

Accepted Solution

by:
PedroCGD earned 500 total points
ID: 24373189
Dear user,
Open your sssi project again in Visual Studio (BIDS) and uncheck the option offline (See attached image)
Execute the package once or check if the connections in connection manager are all ok!
Helped?
regards,
Pedro
www.pedrocgd.blogspot.com
SSIS-Offline.JPG
0
 

Author Comment

by:davidjk1
ID: 24380906
Thanks PedroCGD, I'm going to have to find out how to open the SSIS project.  I created it from SQL Server Management Studio using a wizard from BIDS because I have not ventured into that area of SQL as yet.  I was not given a location where to save it.  I can see it when I schedule it to run, it sits in a location called SSIS_Packages, but I can't find that on the SQL Server drives anywhere.

I'll get back to you once I have this information and tested it.

Cheers

0
 

Author Comment

by:davidjk1
ID: 24380914
Sorry PedroCGD,
I meant to say...
 I created it from SQL Server Management Studio using a wizard [and not] from BIDS because I have not ventured into that area of SQL as yet.
0
 
LVL 17

Expert Comment

by:HoggZilla
ID: 24384432
If you saved the wizard to an SSIS Package then you can open it.
0
 

Author Comment

by:davidjk1
ID: 24389226
You  wanna tell me how Hogg!
0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Via a live example, show how to shrink a transaction log file down to a reasonable size.

943 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now