Solved

SSIS Error on a Wizard created SSIS

Posted on 2009-05-12
5
1,529 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

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

In this article I will describe the Copy Database Wizard 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.
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.

728 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