Solved

SSIS Error on a Wizard created SSIS

Posted on 2009-05-12
5
1,500 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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

Suggested Solutions

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
Via a live example, show how to shrink a transaction log file down to a reasonable size.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

810 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