Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

can you connect and extract data from remedy using a  remedy driver and .NET application

Posted on 2010-08-18
7
Medium Priority
?
2,061 Views
Last Modified: 2013-11-10
Has anyone ever tried this.

I am trying to do it using vbscript in SSIS.

Get a S000 AR Remedy driver No Data found error.

Thanks

YRKS
0
Comment
Question by:YRKS
[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
  • 3
7 Comments
 
LVL 7

Accepted Solution

by:
bouscal earned 2000 total points
ID: 33470603
We use the standard AR System ODBC Driver that is installed with the Remedy components.  It works well for most ODBC connections.  Apart from that, you'll probably want to use a driver specific to the database that is storing the data.
0
 

Author Comment

by:YRKS
ID: 33471347
Do you use a DSN CONNECTION OR DSN less odbc Connection?
0
 
LVL 7

Assisted Solution

by:bouscal
bouscal earned 2000 total points
ID: 33471460
DSN.
0
 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

 

Author Comment

by:YRKS
ID: 33471654
Could you let me know what wrong I am doing here in the vb script below.
' Microsoft SQL Server Integration Services Script Task
' Write scripts using Microsoft Visual Basic
' The ScriptMain class is the entry point of the Script Task.

Imports System
Imports System.Data
Imports System.Math
Imports Microsoft.Data.Odbc
Imports Microsoft.SqlServer.Dts.Runtime
Imports System.Xml

Public Class ScriptMain

      ' The execution engine calls this method when the task executes.
      ' To access the object model, use the Dts object. Connections, variables, events,
      ' and logging features are available as static members of the Dts class.
      ' Before returning from this method, set the value of Dts.TaskResult to indicate success or failure.
      '
      ' To open Code and Text Editor Help, press F1.
      ' To open Object Browser, press Ctrl+Alt+J.

      Public Sub Main()
            '
        ' Add your code here




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

        'Dim conn As Odbc.OdbcConnection
        'Dim comm As Odbc.OdbcCommand
        Dim connectionString As String
        Dim objReader As Odbc.OdbcDataReader
        connectionString = "DSN=MYDSN;UID=uSERid;Pwd=MYpaSSWORD;Driver={AR System ODBC Driver}; arserver=MYSERVER; arserverport=8888;  aruseunderscores=1; server=MYSERVER;"
       
        conn = New Odbc.OdbcConnection(connectionString)

        comm = New Odbc.OdbcCommand("select cOLUMN1, CoLUMN2 from TABLE1 WHERE ID='CYYYYY00000000038'", conn)
        conn.Open()
        ''       Dim myReader As Odbc.OdbcDataReader
        ''      myReader = comm.ExecuteReader()
        ' Always call Read before accessing data.
        ''    While myReader.Read()
        ''Console.WriteLine(myReader.GetInt32(0).ToString() + ", " _
        '' + myReader.GetString(1))
        ''End While
        ' always call Close when done reading.

        ''myReader.Close()
        Dim ODBCdata As Odbc.OdbcDataAdapter


        ODBCdata = New Odbc.OdbcDataAdapter("select cOLUMN1, CoLUMN2 from TABLE1 WHERE ID='CYYYYY00000000038'", conn)
        Dim table As New DataTable




        Dim recordCount As Integer







        recordCount = ODBCdata.Fill(table)  ---this is where it errors out


        MsgBox(recordCount)






        ODBCdata.Dispose()



        ' Close the connection when done with it.
        conn.Close()



        'objReader = comm.ExecuteReader()
        Dts.TaskResult = Dts.Results.Success
    End Sub

End Class
0
 
LVL 30

Expert Comment

by:Reza Rad
ID: 33471735
what is the error you received exactly?
0
 

Author Closing Comment

by:YRKS
ID: 33471791
I was not using the odbc connection properly.

Thanks for your help.
0
 
LVL 7

Expert Comment

by:bouscal
ID: 33471801
Ty!
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
This month, Experts Exchange sat down with resident SQL expert, Jim Horn, for an in-depth look into the makings of a successful career in SQL.
Via a live example, show how to shrink a transaction log file down to a reasonable size.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

604 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