Solved

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

Posted on 2010-08-18
7
2,021 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 500 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 500 total points
ID: 33471460
DSN.
0
Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

 

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

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

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

A Stored Procedure in Microsoft SQL Server is a powerful feature that it can be used to execute the Data Manipulation Language (DML) or Data Definition Language (DDL). Depending on business requirements, a single Stored Procedure can return differe…
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
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.

718 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