Solved

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

Posted on 2010-08-18
7
1,970 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
  • 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
NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

 

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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Suggested Solutions

In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Via a live example, show how to shrink a transaction log file down to a reasonable size.

778 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