?
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,038 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
Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

 

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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Recently we ran in to an issue while running some SQL jobs where we were trying to process the cubes.  We got an error saying failure stating 'NT SERVICE\SQLSERVERAGENT does not have access to Analysis Services. So this is a way to automate that wit…
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 utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
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…
Suggested Courses

752 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