Solved

SSIS Script Task

Posted on 2010-08-18
2
744 Views
Last Modified: 2013-11-10
Hi There,

I need to use a system DSN to connect to the remedy database in a script task.

Has anyone done this before? Is this doable? would anyone have a sample code of connecting to remedy using a script task in SSIS.

YRKS
0
Comment
Question by:YRKS
2 Comments
 
LVL 16

Accepted Solution

by:
vdr1620 earned 300 total points
ID: 33467524
try this below code

Imports Microsoft.Data.Odbc

Dim conn As Odbc.OdbcConnection
Dim comm As Odbc.OdbcCommand
Dim conn As Odbc.OdbcConnection
Dim comm As Odbc.OdbcCommand

connectionString = "DSN=BI_Database;UID="  Login ";Pwd="  Password  ";"
conn = New Odbc.OdbcConnection(connectionString)
conn.Open()
0
 
LVL 30

Assisted Solution

by:Reza Rad
Reza Rad earned 200 total points
ID: 33467912
when you work with Remedy or any other database with ODBC, then in Script there is no different what the database is, because ODBC connection is counted here.
So,
you can use simply ODBCConnection, ODBCDataReader and other ODBC objects to connect to it.
just you need an ODBC connection sample from .net code:

http://support.microsoft.com/kb/310988

0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
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
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Via a live example, show how to shrink a transaction log file down to a reasonable size.

770 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