VBScripting and SAPlogon/SAPGui

I'm trying to write a few scripts to automate a few tasks for Basis admins, but I'm new to VBScript and SAP and am having some trouble getting my scripts to launch the SAP GUI. I have scripting enabled in the client and on the server. The souce of this code is from the forums, and may people seem to be able to make it work.
Here is what I have, and when I run it (With SAP Logon running in the background) it bombs out on line 3:
1  Set SapGui = GetObject("SAPGUI")
2  Set application = SapGui.GetScriptingEngine
3  Set connection = application.OpenConnection("MY_SID", True)
4  Set Session = connection.children(0)
5  session.findById("wnd[0]/usr/txtRSYST-BNAME").text = UNAME
6  session.findById("wnd[0]/usr/pwdRSYST-BCODE").text = PWORD
7  session.findById("wnd[0]").sendVKey 0
And the error is:
Windows Script Host
Line: 3
Char: 1
Error: Error descripiton not available
Code: 800A03E8
Source: saplogon
Any help is greatly appreciated!

I have solved this problem. What was happening is that I was entering an SID in the application.OpenConnection() method. It has to have the exact Description String as set in the SAP Logon gui.
Since this produces no readable error, I have sent a message reporting a bug.
Thank you to all who helped out, I apprecate your efforts.

Similar Messages

  • SAPGui 7.20 and SapLogon.ini Question

    We configure our install of SAPGui 7.20 to place a configured SAPLOGON.ini in C:\windows (WinXP).
    Upon first use that file is then copied (as 7.20 is designed to do) to C:\Documents and Settings\<username>\Application Data\SAP\Common  for the individual user.
    So how do I go about resetting the "1st use" flag so that if I have updates to SAPLOGON.ini ... I can put the updated file in C:\windows .... and when the user starts SAPLogon the updated file will overwrite the one in their '\sap\common\ location"?
    Bob H

    Hello,
    We are using centrally located file for ini file distribution. So you do not need to worry about updating ini file in each and every PC
    What you need to do
    Add system environment variable as below..
    SAPLOGON_INI_FILE    =     \ \ <Shared location> \ <inifile>
    This will be the easy way to manage ini file.
    You can use multiple ini files for diffrent user groups from central location. And set this system environment variable through windows group policy.
    Please let me know if you have any question.
    Yogesh

  • SAPGUI Java 7.20 and saplogon.ini of an old Windows GUI...

    I changed Windows 7 for Ubuntu.
    I installed the Java GUI (version 7.20): I would like to import my previous server list in the new GUI.
    Using windows I have a saplogon.ini file, but I don't know if I can make it readable to the Java GUI
    (a lot of servers there, most of them are not used anymore... but I would like to have the same list :-P).

    You can found that in Linux in ~/.SAPGUI/connections file.

  • VBscript and Process Responding to flag a script exit?

    Hey All
    I work for a small game company called The Good Mood Creators and I am trying to build a software kit that can be handed to someone, and with minimal effort on their part. Copy the folder to their PC, plug in an xbox controller, click the BEGIN.*** and play
    while our testing tools and streaming software have a chance to successfully start.
    FYI I do not program for our game..
    The tool I am including with this kit is a controller emulator (XBCE) that allows us to print controller input directly to the screen.
    I am using Open Broadcasting Software to stream gameplay to a private twitch channel via a simple batch called in this vb.
    My problem is that XBCE often hangs, and with some computers requires reinstalling .NET frameworks as well as the full directx distribution before updating again to get it to start. When it works however, XBCE will hang once started 1/10 times or so, then
    randomly a few times in a row. I don't want the remote playtester to start recording video before the tools are started. So I wrote a script that checks to see if the program is running a short time after its been started.
    <job>
    <script language="VBScript">
    Option Explicit
    On Error GoTo 0
    Dim os
    Dim wmi
    Dim procs
    set os=CreateObject("WScript.Shell")
    set wmi = GetObject ("winmgmts:")
    os.CurrentDirectory = "C:\Users\Public\TESTPC-remote\"
    os.run "XBCE.exe"
    While True
        Set procs = wmi.ExecQuery("select * from Win32_Process Where Name = 'XBCE.exe'")
        If procs.Count > 0 Then
            Wscript.echo "Initiate Good Mood?"        
            os.run "DATA\Mekazoo.exe"
            WScript.Sleep 1000
            os.run "DATA\obsSTART.bat"
            WScript.Sleep 1000
            WScript.Quit
        Else
            WScript.Echo "Good Mood Initialization Had Failed! Please Close All Running Applications And Try Again"
            WScript.Quit
        End If
    Wend
    </script>
    </job>
    But when its hung and not responding to the task manager, the process XBCE.exe is still getting listed in Win32 Processes. The script believes all is good and initializes the stream, but XBCE wont show up on the recording because it has crashed and windows
    is waiting for me to wait or close.
    I have searched but to no avail have I found a way to check if the task manager thinks if XBCE is hung, then proceed to quit the script. That's all I really need. If its not hung proceed, if it's hung quit. Can someone please help?
    Edit
    I have updated the code above to reflect my current progress with this question and so you dont have to dig through my terrible formatting.

    I have a few questions that I haven't got the vocabulary to figure out I guess.
    -Is there anyway to automate changing the execution policy?
    I tried sending powershell two commands from a ps1. Set-ExecutionPolicy Restricted and Set-ExecutionPolicy Unrestricted. Obviously it blocks the script from running to change from restricted. So I either needed a way through the problem or around it. I could
    ask the person playtesting to Win+R powershell.exe and type Set-ExecutionPolicy to Unrestricted and then include a line in the script to change it back once everything has started. The problem with this is the user having to change the executionpolicy
    every time they try to play, and the biggest reason I dont like this is that the user has to mess with powershell at all. That was my way around the problem.
    My way through the problem was to find a way to bypass the execution policy. I tried running a few lines of code I picked up here in cmd as a batch file and a javascript file. The line I ran was:
    http://stackoverflow.com/questions/9271681/how-to-run-powershell-script-even-if-set-executionpolicy-is-banned
    powershell.exe -ExecutionPolicy Bypass -NoLogo -NonInteractive -NoProfile -WindowStyle Hidden -File <C:\Users\Public\TESTPC-remote\switchrun.ps1>
    Batch through cmd gave me bad syntax, JS basically said the same thing and suggested adding semicolons to fix the problems.
    -What is the script syntax to start a diagnostic process and then check to see if its true?
    I can not figure out how to write the script to both start XBCE as a diagnostic process and then immediately after see if its responding. I can send the command to start but powershell doesnt move to the next line.
    $p=[System.Diagnostics.Process]::Start('C:\Users\Public\TESTPC-remote\XBCE.exe')
    While $p.Responding = True
    Invoke and start both cause powershell to stop..
    -Can I use this command and chain the start commands together?
    While writing the script I have now I thought about the possibility of running a program, check to see if responding equals true as a case to start the next program, or else stop the previous process and close the session. Here's my gibberish with that:
    $p=[System.Diagnostics.Process]::Start('C:\Users\Public\TESTPC-remote\XBCE.exe')
    While $p.Responding = True
    $p=[System.Diagnostics.Process]::Start('C:\Users\Public\TESTPC-remote\Mekazoo.exe')
    Else Stop-Process ('XBCE.exe')
    Exit-PSSession
    While $p.Responding = True
    $p=[System.Diagnostics.Process]::Start('C:\Users\Public\TESTPC-remote\OBS.exe')
    Else Stop-Process ('Mekazoo.exe', 'XBCE.exe')
    Exit-PSSession
    I have more questions but honestly with how many people have viewed my question vs answered it's clear I'm just an idiot and need to read more.. but Ill keep posting.
    Youneed to drop back andlearn a bit more about how software based systems wotj and how progrmming systems work.
    THe code you posted cannot funciton because it makes no technical sense.
    We cannot answer every little questionfor you. You need to spend time learning the basics and ask quesitons when a real issue confuses you.
    You cannot use a non-existent variable in a loop test becase it wil always evaluate to false and the loop will never execute.  This si programming 101.
    Execution policy IS automated via Group Policy. Please as you domain admmisn or Netowrk Admmin to explain the to you. 
    Your original question has been answered.  If you have another issue please open a new topic.
    ¯\_(ツ)_/¯

  • Downloading and Installing SAPGUI for Mac OSX

    First of all I want to say, that this site has the most un-intuitive interface and complicated navigation system I have ever encountered.  Was it so difficult to create an easy to access download area for all the GUI's to be accessed and downloaded along with detailed instructions on how to install them?
    Sigh.
    That being said, I would like some help downloading the SAPGUI for Mac.  I know its the java, which can be installed Platform independent.  When I go to the download site, and I get to the basket portion it doesnt let me download it.  It asks me for my credentials (the same ones I had to use to post in here) and then it knocks out my connection and doesnt let me download.
    Secondly I would like also the steps I need to do to install the .jar file on a Mac running 10.6.8.  I found a .jar file elsewhere but it runs with errors and doesnt let me get to the familiar interface for configuring SAP.
    When I run the .jar file on the mac I get the following error:
    Java Plug-in 1.6.0_26
    Using JRE version 1.6.0_26-b03 Java HotSpot(TM) Client VM
    User home directory = C:\Users\palaugi
    c:   clear console window
    f:   finalize objects on finalization queue
    g:   garbage collect
    h:   display this help message
    l:   dump classloader list
    m:   print memory usage
    o:   trigger logging
    q:   hide console
    r:   reload policy configuration
    s:   dump system and deployment properties
    t:   dump thread list
    v:   dump thread stack
    x:   clear classloader cache
    0-5: set trace level to <n>
    java.lang.reflect.InvocationTargetException
         at com.sun.deploy.util.DeployAWTUtil.invokeAndWait(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager.runOnEDT(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Caused by: java.security.AccessControlException: access denied (java.util.PropertyPermission com.sap.platin.productType read)
         at java.security.AccessControlContext.checkPermission(Unknown Source)
         at java.security.AccessController.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkPropertyAccess(Unknown Source)
         at java.lang.System.getProperty(Unknown Source)
         at com.sap.platin.micro.Version.guessVersionType(Version.java:244)
         at com.sap.platin.GuiAppletBase2.findProductType(GuiAppletBase2.java:336)
         at com.sap.platin.GuiApplet2.getProductType(GuiApplet2.java:18)
         at com.sap.platin.GuiAppletBase2.<init>(GuiAppletBase2.java:54)
         at com.sap.platin.GuiApplet2.<init>(GuiApplet2.java:14)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
         at java.lang.reflect.Constructor.newInstance(Unknown Source)
         at java.lang.Class.newInstance0(Unknown Source)
         at java.lang.Class.newInstance(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager$12.run(Unknown Source)
         at java.awt.event.InvocationEvent.dispatch(Unknown Source)
         at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
         at java.awt.EventQueue.access$000(Unknown Source)
         at java.awt.EventQueue$1.run(Unknown Source)
         at java.awt.EventQueue$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    Exception: java.lang.reflect.InvocationTargetException
    I am not a SAP expert, and no one in my company knows how to work the technical side of SAP on this platform, so I am trying to install and configure this for them so they are able to work.
    Thanks!

    Hello,
    doing a search for "SAPGUI for Java" with your favorite search engine should include the site SAP GUI Family in the top ten of the result list.
    This site includes links to navigate directly to the [downloads|SAP GUI Family#section31] of both SAP GUI for Windows and SAP GUI for Java.
    On the [same page|SAP GUI Family#section16], there is a [link|SAP GUI Family?rid=/library/uuid/f0dcf725-6b0e-2d10-da9a-96eb3474bdd3] to the online version of the manual which is included with SAP GUI for Java.
    Your problem downloading the installer might be related to permissions, please refer to [note 1037574|https://service.sap.com/sap/support/notes/1037574] .
    Regarding your problem running SAP GUI for Java
    I do not understand "When I run the .jar file". From the stack of the Java console, it looks like your are trying to start it in the browser and the version on the web server and the one installed on your Mac do not match (see "Incompatible Certificates" in the known issues section of the manual coming with SAP GUI for Java).
    Once you have downloaded a current SAP GUI for Java version and still have issues using it, please provide more information about your scenario.
    Best regards
    Rolf-Martin

  • Portal and shortcut sapgui

    Hi, i have see that i can make a portal transaction that can open with a shortcut the SAPGUI for windows/java?
    Shortcut information:
    [System]
    Name=S1D
    Description=VM01 - S1D
    Client=100
    [User]
    Name=XBOUCHET
    Language=EN
    [Function]
    Title=User Maintenance: Initial Screen
    Command=SU01
    [Configuration]
    WorkDir=D:\Documents and Settings\testing\SapWorkDir
    [Options]
    Reuse=1
    Want to know haow to send for exemple:
    USR02-BNAME=TITI
    And if i want to send more parameters,
    ex:
    USR02-BNAME=TITI
    USREFUS-USERALIAS= toto
    Thanks in advance.

    Gilles,
    If you have the system admin role, you can access the logs from
    http://<FQDN>:<port>/nwa > administration > monitoring > log files
    and if you are given a file server access, you can check the logs at
    <drive>:\usr\sap\<SID>\<Central instance name>\j2ee\cluster\server0\logs\defaultTrace.trc
    The error could be related to permissions.
    1. Check if you have the same user name in the portal and ABAP.
    2. Check if your SSO is working fine.
    Regards,
    Sandeep Tudumu

  • Issue using GW 8.x, VBScript and object API

    Greetings folks,
    We have a simple script that we'd run to find the location of a users
    current archive..
    It worked under earlier versions but after upgrading to 8, it runs
    sucessfully, but windows (XP SP3 using GW 8.01/802 clients) will ALWAYS
    throw the following error after it executes (Note that it DOES execute as
    expected, but windows scripting throwing an error after execution is what is
    new>
    Here's the error as shown by the event log:
    Faulting application wscript.exe, version 5.7.0.16599, faulting module
    gwxplt1.dll, version 8.0.2.10840, fault address 0x00031470.
    Here's the test script (simply outputs the UID of the account, path to
    archive, and the FID of the account,
    since we can build a real path using the PathToArchive + "of" + FID + "arc"
    On Error resume next
    dim GWApp
    Set GWApp = CreateObject("NovellGroupWareSession")
    dim GWAccount
    Set GWAccount = GWApp.Login()
    msgbox GWAccount.AccountUID &" : " & GWAccount.PathToArchive & " : " &
    GWAccount.AccountProperty(9)
    set GwApp = Nothing
    set GWAccount = Nothing
    Any idea why calling these methods via VBscript would make windows scripting
    host barf?

    Working fine here with Delphi 2005 ?
    Start by posting the code
    And you are in the correct forum
    Tommy Mikkelsen
    IT Quality A/S, Denmark
    Novell Support Forums SYSOP
    Sorry, but no support through email
    Be a GroupWiseR, go http://www.groupwiser.net

  • How to download and install SAPGUI

    Hi All
    This may sound like a naive question, but I have been struggling for a while.
    I need to install SAP Logon Pad where I can configure SAP Servers and access them.
    I dont know where to find the installable. I have a Suser id with me.
    Can you guide me the basic steps as to where to find the installable and how to install it.
    Regards
    Ankur

    Your SID needs to have the correct permissions, but if so, you can go to https://websmp202.sap-ag.de/support.
    From there you can go to Downloads.  On the left hand column, click Downloads, and then to Installations and Upgrades -> Entry by Application Group - SAP Frontend Components -> SAP GUI FOR WINDOWS -> SAP GUI FOR WINDOWS 7.10 CORE -> Installation.
    From there you can download the entire Compilation in ZIP format which includes the SAP GUI.
    But there are other ways as well such as SAP GUI Family and ftp://ftp.sap.com/pub/sapgui/java/710r11
    That info can be found in the stickies at the top of this forum.  <at the time of my posting here, see 3rd sticky post down from the top>
    Regards,
    Zecher

  • VBScript and SMO

    I've have a vbscript that utilizes sql-dmo and accesses sql 2005 and sql2008 r2(with back ward compatability).  I now have a sql 2012 server where this script no longer works.  I've attempted to change the sql-dmo to smo per the documentation,
    but am getting an error right from the start. 
    Set objSqlServer = CreateObject("Microsoft.SQLServer.Management.SMO.Server")  returns "Microsoft VBScript runtime error: ActiveX component can't create object: 'Microsoft.SQLServer.Management.SMO.Server'"
    Does this not work using vbscript?  If not, what is my best course of action.
    thanks in advance for any help on this.

    The easiest way to do this is by installing SQL Server Management Studio, which includes the PowerShell feature and client libraries automatically.You
    must install a SQL Server feature that includes the SQL Server PowerShell (SQLPS) module and client libraries. The SQL Server PowerShell (SQLPS) module contains
    the PowerShell providers and cmdlets for all SQL Server features.
    --Prashanth

  • ASP VBScript and ADDT Dynamic List Wizard HELP

    Using ADDT I've created a dynamic list in a membership area. How do I get that dynamic list to populate only the data for that particular member that is logged in. Any help would be so much appreciated as I have been trying to figure this out for days now.
    <br />
    <br /><%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
    <br />
    <!--#include file="../Connections/rentalpaypro.asp" -->
    <br />
    <!--#include file="../includes/common/KT_common.asp" -->
    <br />
    <!--#include file="../includes/tNG/tNG.inc.asp" -->
    <br /><%<br />'Start log out user<br />  Set logout = new tNG_Logout<br />  logout.setLogoutType "link"<br />  logout.setPageRedirect "../index.html"<br />  logout.Execute<br />'End log out user<br />%>
    <br />
    <!--#include file="../includes/tfi/TFI.asp" -->
    <br />
    <!--#include file="../includes/tso/TSO.asp" -->
    <br />
    <!--#include file="../includes/nav/NAV.asp" -->
    <br /><%<br />'Start Restrict Access to Page<br />  Dim restrict: Set restrict  = new tNG_RestrictAccess<br />  restrict.Init MM_rentalpaypro_STRING, "../"<br />'Grand Levels: Any<br />  restrict.Execute<br />'End Restrict Access to Page<br />%>
    <br /><%<br />' Filter<br />  Dim tfi_listLandlord_Property1: Set tfi_listLandlord_Property1 = new TFI_TableFilter<br />  tfi_listLandlord_Property1.Init MM_rentalpaypro_STRING, "tfi_listLandlord_Property1"<br />  tfi_listLandlord_Property1.addColumn "Landlord_Property.ContactInfoID", "NUMERIC_TYPE", "ContactInfoID", "="<br />  tfi_listLandlord_Property1.addColumn "Landlord_Property.RegistrationID", "NUMERIC_TYPE", "RegistrationID", "="<br />  tfi_listLandlord_Property1.addColumn "Landlord_Property.StreetNumber", "NUMERIC_TYPE", "StreetNumber", "="<br />  tfi_listLandlord_Property1.addColumn "Landlord_Property.StreetName", "STRING_TYPE", "StreetName", "%"<br />  tfi_listLandlord_Property1.addColumn "Landlord_Property.AptNumber", "NUMERIC_TYPE", "AptNumber", "="<br />  tfi_listLandlord_Property1.addColumn "Landlord_Property.City", "STRING_TYPE", "City", "%"<br />  tfi_listLandlord_Property1.addColumn "Landlord_Property.State", "STRING_TYPE", "State", "%"<br />  tfi_listLandlord_Property1.addColumn "Landlord_Property.ZipCode", "NUMERIC_TYPE", "ZipCode", "="<br />  tfi_listLandlord_Property1.addColumn "Landlord_Property.MonthlyRent", "NUMERIC_TYPE", "MonthlyRent", "="<br />  tfi_listLandlord_Property1.Execute()<br /><br />' Sorter<br />  Dim tso_listLandlord_Property1: Set tso_listLandlord_Property1 = new TSO_TableSorter<br />  tso_listLandlord_Property1.Init "rslistLandlord_Property1", "tso_listLandlord_Property1"<br />  tso_listLandlord_Property1.addColumn "Landlord_Property.ContactInfoID"<br />  tso_listLandlord_Property1.addColumn "Landlord_Property.RegistrationID"<br />  tso_listLandlord_Property1.addColumn "Landlord_Property.StreetNumber"<br />  tso_listLandlord_Property1.addColumn "Landlord_Property.StreetName"<br />  tso_listLandlord_Property1.addColumn "Landlord_Property.AptNumber"<br />  tso_listLandlord_Property1.addColumn "Landlord_Property.City"<br />  tso_listLandlord_Property1.addColumn "Landlord_Property.State"<br />  tso_listLandlord_Property1.addColumn "Landlord_Property.ZipCode"<br />  tso_listLandlord_Property1.addColumn "Landlord_Property.MonthlyRent"<br />  tso_listLandlord_Property1.setDefault "Landlord_Property.ContactInfoID"<br />  tso_listLandlord_Property1.Execute()<br /><br />' Navigation<br />  Dim nav_listLandlord_Property1: Set nav_listLandlord_Property1 = new NAV_Regular<br />  nav_listLandlord_Property1.Init "nav_listLandlord_Property1", "rsLandlord_Property1", "../", Request.ServerVariables("URL"), 10<br />%>
    <br /><%<br />Dim qry_contactinfo__MMColParam<br />qry_contactinfo__MMColParam = "1"<br />If (Session("kt_login_id") <> "") Then <br />  qry_contactinfo__MMColParam = Session("kt_login_id")<br />End If<br />%>
    <br />

    Use the session variable from the log in method (MM_Username as I recall) to create a recordset that you then use in the dynamic list versus using the whole table.

  • Document Auth and saplogon Ticket

    Hi all,
    I have an EJb in which i am accesing a RFC using RFC destination. I have exposed the Ejb as web service with Document Authentication.
    In RFC Destination i have congfigured the destination to use SAP logon ticket.
    In Security provide i have changed that Web service Component to use Ticket template.
    but when i access the web service it give the error the No logon Ticket Found.
    I was able to use same web service with out Document Authentication. but with Document Authentication it does not work.
    does Document Auth supports sap logon ticket.
    Regards
    Divyakumar Jain

    Hi,
    Thanks for you reply and co-oprations
    Currently I am using username & password based Authentication. Latter i have to use certificate base authentication. Actually i am trying all the scenarios i my free time.
    For Http authentication every thing is working fine. but for Document based authentication i am facing problem.

  • MS db Connection String using ASP VBScript and DW8

    Hi
    My MS db has been working with DW8 followong my use of a connection string in connSci***.asp. My OS is Windows7. This has worked fine.
    <%
    ' FileName="Connection_ado_conn_string.htm"
    ' Type="ADO"
    ' DesigntimeType="ADO"
    ' HTTP="true"
    ' Catalog=""
    ' Schema=""
    Dim MM_connSciWeb_STRING
    MM_connSciWeb_STRING = "DSN=DSN_******"
    %>
    Now when I update the db and check that the new additional records have been added (and they have been) I can still only access the original records. When I retest the connection string I get the 404 error message.
    Can anyone help?
    Regards
    Kevin

    >This has worked fine.
    When did it stop working? What changes did you make?
    MM_connSciWeb_STRING = "DSN=DSN_******"
    Any particular reason you are using DSN rather than DSNless connections?
    >Now when I update the db and check that the new additional records  have
    >been added (and they have been) I can still only access the  original records.
    Can you explain? How do you know the new records where added if you can't access them?
    >When I retest the connection string I get the 404  error message.
    How are you testing the connection?

  • Trying to simply connect to Oracle with VBscript/ASP - and I cannot.

    This is rather embarrassing. I am pretty fluent with ASP and VBscript, and I have written many a web application connecting to Microsoft SQL Server. Now I have a need to connect to an Oracle database, and I'm beating my head against the wall.
    1) Web server is Windows Server 2003 SP1
    2) Using ASP (not ASP.NET) & VBscript
    3) I have installed the Oracle drivers on the server - it is version 10g
    4) The administrator of the Oracle database to which I want to connect has created a username and password for me to use from within my code
    5) Here is the code I am trying to run:
    Set objConn = Server.CreateObject("ADODB.Connection")
    objConn.Open "Provider=MSDAORA;Data Source=XXXXXXX;User Id=YYYYYYY;Password=ZZZZZZZ;"
    That's it. 2 lines of code just trying to establish a connection. Using the user name and password provided to me by the administrator, and for Data Source I am using the IP address of the Oracle server (like I have done in the past when connecting to SQL Server). I receive the following error message when viewing this in a browser:
    Microsoft OLE DB Provider for Oracle error '80004005'
    ORA-12154: TNS:could not resolve the connect identifier specified
    Evidently, the Data Source I am using is not correct, but I was provided no other information from the admin. This is the first time any of us have tried to connect to Oracle using ASP/VBScript, so the administrator isn't sure what I need to do ... any help would be so appreciated.

    Hello,
    I got mine to work by setting up an ODBC System DSN and connecting to it. I think this bypasses the Microsoft driver, which might be what's causing the problem.
    Set Db = Server.CreateObject("ADODB.Connection")
    Db.Open "DSN=TEST;User ID=userid;Password=password;"
    Good luck, I've found it requires a lot of persistence...
    Al
    Springfield, MO

  • VBScript Editor and Tutorials

    Can anyone recommend a good VBScript editor and tutorials?
    I'm just starting to use VBScript and need some help.

    My favorite is http://www.vbsedit.com/
    as a bonus this is a great powershell editor
    http://www.powergui.org/index.jspa
    tutotial wise well there are coutless ways.  I perfer to define a problem and work towards solving it.  But other and arguable better ways might be to grab a book.
    if you are just plain cheap like me this is a great please to get some learning done
    http://www.w3schools.com/vbscript/default.asp

  • WHEN DOUBLE CLICKIING SAP BEX 7 QUERY DISIGNER -SAPLOGON LONG TIME

    hey everyone, we have a problem - when i double click sapbex 7 QUERY DISIGNER it takes aproximatly 45 second until i get the saplogon screen. i have no idea what to do . please help. notice that on the same computer sap bex bw 3.5 also installed and comes up the saplogon screen in just a second or 2 .
    thank in advanced.
    Moshe Mizrachi
    SAP BASIS ADM

    Hi,
    Let me know you are usint SAPGUI 7.10? it yes,
    SAPGUI 7.10 is not supported by SAP since April 2011.
    Please, download and install SAPGUI 7.20 + Business Explore 7.20. After
    that, install the latest patch.
    Installer:
    http://service.sap.com/swdc
    > Software Downloads
    > Installations and Upgrade
      > Browse our Download Catalog
       > SAP Frontend Components
        > SAP GUI FOR WINDOWS
         > SAP GUI FOR WINDOWS 7.20 CORE
          > Installation
           > latest
    Patches:
    http://service.sap.com/swdc
    > Support Packages and Patches
    > Browse our Download Catalog
      > SAP Frontend Components
          > SAP GUI FOR WINDOWS
    > SAP GUI FOR WINDOWS 7.20 CORE
    > Win32
    > latest
    > BI ADDON FOR SAP GUI
    > BI 7.0 ADDON FOR SAP GUI 7.20
    > latest
    > BI ADDON FOR SAP GUI
    > BW 3.5 ADDON FOR SAP GUI 7.20
    > Win32
    >Latest
    It should resolved your issue.
    Regards,
    Venkat

Maybe you are looking for