Solved

SSIS Script Task

Posted on 2010-08-18
2
745 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Add a step to a system backup job 6 18
SQL Query 2 32
Transact SQL - Frequency of Length of Distinct Values 3 25
job schedule 8 18
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…
Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
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.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

860 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