DSN and cfreport

Dear all,
Let's say I have one application where users can choose to
connect to more than one databases (live, development, etc).
I use one DSN for each database connection, so in this moment
I have 3 databases with 3 DSNs.
My question is how to let the cfreport know which DSN to use.
I tried to use <cfreport datasource = "#Session.gStrDSN#">
but it doesn't work. Datasource property is used only by Crystal
Report.
Looking forward for your reply.
Thanks in advance
Keiko

<cfreport has one attribute called "query". We need to
pass one query object for this attribute value. This query object
should have all the data and columns required for the report.
To generate the CF report we need to run the query against
the DB first to get the QUERY object. LIke:
<cfquery name="myQuery" datasource="Session.gStrDSN">
SELECT .........
</cfquery>
Then we can generate the CF report we can use this QUERY
object. Like:
<cfreport template="myTemplate.cfr" query="myQuery"
format="PDF">
</cfreport>
Hope this will solve your problem.
Thanks

Similar Messages

  • Cfchart and cfreport issues in 7.0.2

    I've seen a few posts on people having issues with cfchart
    and cfreport upon upgrading to 7.0.2
    The specific issue I was having were that the cfcharts no
    longer showed up and the cfreports where getting some sort of a
    null error.
    The fix:
    in the lib dirrectory of your cf install dir (for me with
    jrun it was
    C:\JRun4\servers\cfusion\cfusion-ear\cfusion-war\WEB-INF\cfusion\lib)
    there are 2 files: commons-digester-1.3.jar and a 1.7.jar the 1.3
    version should have been deleted by the updater but was not, so
    just rename it to something like .old and then restart coldfusion.
    Everything should be working as it was before 7.0.2 now.

    You
    rock, John2!
    I recently upgraded to 7.0.2 and has the same CFCHART problem
    afterward that many other people encountered (i.e. Flash charts
    would no longer appear when viewed using Internet Explorer). Your
    recommendation worked perfectly. Thank you very much!

  • DSN and NDR

    Because of the issue with Apple and killing email messages from mail servers that use DSN. My question is can I disable DSN and still receive NDR?
    Thanks

    In article <[email protected]>, Kirk White
    wrote:
    > My question is can I disable DSN and still receive NDR?
    Yes
    NDR is a part of much older part of the SMTP standard set than DSN. I
    was getting NDRs long before we even had DSN as an option.
    NDRs were specified as a part of return codes way back in RFC 821
    (1982) https://tools.ietf.org/html/rfc821#page-34
    DSN was introduced 21 years later in RFC3461 (2003)
    http://tools.ietf.org/html/rfc3461
    Andy of
    http://KonecnyConsulting.ca in Toronto
    Knowledge Partner
    http://forums.novell.com/member.php/75037-konecnya
    If you find a post helpful and are logged in the Web interface, please
    show your appreciation by clicking on the star below. Thanks!

  • Difference between system dsn and file dsn

    what is the difference between file dsn and system dsn

    System dsn will always be available in the system (it is saved in the system registry) and it's not depends on who created the dsn, but file dsn will depends on a file, so if somebody else use the system, the file dsn might not be available for this person.

  • Request.dsn and error

    I am working on a site and I have two databases. I used the
    Request.DSN in the application.cfm for the first data base...but
    how can I do something similar for the second? I would rather not
    have to go back and rename everywhere the database is listed in the
    site to make it match the server after upload.
    Also, my second question. I am trying to allow users to
    update there information. The site works perfectly on my computer
    but after I upload it ...one of my update forms doesnt work. All
    the others do..however this one uses the username from a session
    variable.Why would it work on my computer but not when its uploaded
    to the remote server? See below.
    Thanks
    Error Executing Database Query.
    Syntax error in UPDATE statement.
    The error occurred in D:\Hosting\members\update_member.cfm:
    line 38
    36 : ''
    37 : </cfif>
    38 : WHERE UserName=<cfqueryparam value="#FORM.UserName#"
    cfsqltype="cf_sql_clob" maxlength="50">
    39 : </cfquery>
    40 : <cflocation url="index.cfm">

    Thanks for all your help regarding the request.dsn question.
    I found all your responses very helpful.
    I used dreamweaver for my forms...might be why I cant
    understand what is wrong with it. The insert record is coming up
    with an error on the remote server but not the testing server. I
    have created various other insert record forms that are working
    just fine...but this one is the last that is not working... I
    recreated the edit user form from scratch and it fixed the
    problem.. but no a problem migrated to the insert new user
    page...lool my luck ....and below is code for it.
    Thanks
    <cfif IsDefined("FORM.MM_InsertRecord") AND
    FORM.MM_InsertRecord EQ "form1">
    <cfquery datasource="#Request.DSN#">
    INSERT INTO Users (UserName, Password, FirstName, LastName,
    UserTypeID, Email)
    VALUES (<cfif IsDefined("FORM.UserName") AND
    #FORM.UserName# NEQ "">
    <cfqueryparam value="#FORM.UserName#"
    cfsqltype="cf_sql_clob" maxlength="50">
    <cfelse>
    </cfif>
    , <cfif IsDefined("FORM.Password") AND #FORM.Password# NEQ
    "">
    <cfqueryparam value="#FORM.Password#"
    cfsqltype="cf_sql_clob" maxlength="50">
    <cfelse>
    </cfif>
    , <cfif IsDefined("FORM.FirstName") AND #FORM.FirstName#
    NEQ "">
    <cfqueryparam value="#FORM.FirstName#"
    cfsqltype="cf_sql_clob" maxlength="50">
    <cfelse>
    </cfif>
    , <cfif IsDefined("FORM.LastName") AND #FORM.LastName# NEQ
    "">
    <cfqueryparam value="#FORM.LastName#"
    cfsqltype="cf_sql_clob" maxlength="50">
    <cfelse>
    </cfif>
    , <cfif IsDefined("FORM.UserTypeID") AND #FORM.UserTypeID#
    NEQ "">
    <cfqueryparam value="#FORM.UserTypeID#"
    cfsqltype="cf_sql_numeric">
    <cfelse>
    NULL
    </cfif>
    , <cfif IsDefined("FORM.Email") AND #FORM.Email# NEQ
    "">
    <cfqueryparam value="#FORM.Email#" cfsqltype="cf_sql_clob"
    maxlength="100">
    <cfelse>
    </cfif>
    </cfquery>
    <cflocation url="membership.cfm">
    </cfif>
    <cfquery name="Recordset1" datasource="#Request.DSN#">
    SELECT *
    FROM Users
    </cfquery>
    And the form
    <form
    action="<cfoutput>#CurrentPage#</cfoutput>"
    method="post" name="form1" id="form1">
    <table align="center">
    <tr valign="baseline">
    <td nowrap="nowrap" align="right">UserName:</td>
    <td><input type="text" name="UserName" value=""
    size="32" /></td>
    </tr>
    <tr valign="baseline">
    <td nowrap="nowrap" align="right">Password:</td>
    <td><input type="text" name="Password" value=""
    size="32" /></td>
    </tr>
    <tr valign="baseline">
    <td nowrap="nowrap"
    align="right">FirstName:</td>
    <td><input type="text" name="FirstName" value=""
    size="32" /></td>
    </tr>
    <tr valign="baseline">
    <td nowrap="nowrap" align="right">LastName:</td>
    <td><input type="text" name="LastName" value=""
    size="32" /></td>
    </tr>
    <tr valign="baseline">
    <td nowrap="nowrap"
    align="right">UserTypeID:</td>
    <td><input type="text" name="UserTypeID" value=""
    size="32" /></td>
    </tr>
    <tr valign="baseline">
    <td nowrap="nowrap" align="right">Email:</td>
    <td><input type="text" name="Email" value=""
    size="32" /></td>
    </tr>
    <tr valign="baseline">
    <td nowrap="nowrap"
    align="right"> </td>
    <td><input type="submit" value="Insert record"
    /></td>
    </tr>
    </table>
    <input type="hidden" name="MM_InsertRecord" value="form1"
    />
    </form>

  • DSN and mailgroup

    Hi all,
    I have Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006) and I manage mailgroup, such as:
    mgrpBroadcasterPolicy: NO_REQUIREMENTS
    mgmanHidden: false
    mgmanMemberVisibility: Closed
    mgmanJoinLocalType: MOG
    mgmanJoinability: Closed
    mgrpRFC822MailMember: [email protected]
    mgrpRFC822MailMember: [email protected]
    mgrpRFC822MailMember: [email protected]
    mgrpRFC822MailMember: [email protected]
    multiLineDescription: mail gruppo di prova
    mailHost: srvmst.csi.it
    mgrpMsgRejectAction: REPLY
    objectClass: top
    objectClass: groupofuniquenames
    objectClass: mailgroup
    objectClass: mailgroupmanagement
    mail: [email protected]
    cn: Gruppo eversivo
    description: CSI Experiment
    If a local mailaccount can't receive, I see that DSN is sent to the mail of mailgroup instead of return-path (the sender).
    In the example above,
    If <[email protected]> send mail to <[email protected]> and local account <[email protected]> can't recevice, then the DSN is sent to <[email protected]> and not to <[email protected]>.
    I would like that DSN are sent to return path of original mail, and not to the address list. What I have to do?
    I thank you very much
    Best Regards
    Marco

    Hi,
    If a local mailaccount can't receive, I see that DSN
    is sent to the mail of mailgroup instead of
    return-path (the sender).Correct. This is what distinguishes a mailing group from a mailing list.
    In the example above,
    If <[email protected]> send mail to <[email protected]>
    and local account <[email protected]> can't recevice, then
    the DSN is sent to <[email protected]> and not to
    <[email protected]>.
    Yep expected behaviour.
    I would like that DSN are sent to return path of
    original mail, and not to the address list. What I
    have to do?I would advise that for the vast majority of cases, this is not a good idea. Ideally you should be sending the email to somebody who can do something about it (list maintainer/owner).
    For example if "I" as a third party send an email to a mailing list which I have no idea who maintains, or how to get it fixed, what use is it to send me a bounce email if one of the mailing list recipients didn't get a copy? There is little I can do about it and it also exposes a member of the list (who you may want to keep hidden for some reason).
    You can set who receives the bounce using the mgrperrorsto: attribute. This must resolve to a single email address (as the return-path: can only be a single address). e.g.
    mgrperrorsto: [email protected]
    To get the 'old' iMS5.2 behaviour of bouncing back to the sender (which as I said earlier, is not advised), you can use the '/' address. (note: I know this works in the new 2006Q4 version, not sure whether it was back-ported to 2005Q4, so results may vary).
    e.g.
    mgrperrorsto: /
    Regards,
    Shane.

  • Creating a multisim compatable model from DSN and .lib files

    I'm attempting to model the texas instruments TX810 in multisim however the only model available is a PSPICE compatable model.  This consists of a data source name (DSN) file, a .lib file (which when inspected in a text editor appears to be the most similar to a .cir file), a .olb and .opj files.  There are also .sim files, .mrk and .prb file which I'm assuming are simulation parameters.  I've attempted to model the .lib file by importing it into a custom component within multisim, unfortunately this method caused multiple netlist errors when I attempted simulation.
    Any advice would be greatly appreciated
    many thanks
    Robert

    here is a copy of the tx810.lib file
    Attachments:
    TX810 - Copy.txt ‏68 KB

  • DSN and Return Receipt

    Neither of these seem to be working.
    I have an up-to-date version of Thunderbird installed (24.3.0). I compose an email, click on options, and check off both Return Receipt and Delivery Status Notification. I have tested this with various email addresses. The additional header never shows up anywhere--it appears that nothing is happening when I select these options (and nothing happens on the recipients' ends, and I never receive any notifications afterward). Please advise. Thank you!

    http://kb.mozillazine.org/Figuring_out_whether_the_recipient_read_your_message

  • After specifying a DSN, and an sql statement to SELECT data I can run the Complete SQL

    Session VI in the SQL toolkit. The query results return the requested data, and no errors are produced. When I depress the run arrow a second time, I get an illegal operation message and have to shut down Labview. Have you had problems like this before?

    Session VI in the SQL toolkit. The query results return the requested data, and no errors are produced. When I depress the run arrow a second time, I get an illegal operation message and have to shut down Labview. Have you had problems like this before?Hello,
    You may want to see if there is an update for the ODBC driver of the database you are using. Many times, a crash is caused because of a problem with the driver. You may also want to search the NI website for more information (search for +SQL +Sybase for example, if you are using a Sybase database.)
    Good luck!
    Sincerely,
    Darren Nattinger
    Applications Engineer
    National Instruments
    Darren Nattinger, CLA
    LabVIEW Artisan and Nugget Penman

  • 11.1.1.6.4 Repository variables for DSN and USER do not work after upgrade

    Hi,
    The Repository Variables OLAP_DSN and OLAP_USER no longer work after upgrading to 11.1.1.6.4 i.e they return a connection error when trying to import metadata but the connection is correct if explicitly set without the variable used.
    I have tried the following resolution:
    - From command line execute commands to set variable properties via admintool.exe /command vartext.txt
    Open rpdname user password
    SetProperty "Variable" "OLAP_DSN" Initializer "'ORCL.GLOBAL'"
    Save
    Close
    Exit
    This script works fine as demonstrated by commenting out Save, Close, Exit and running. But it does not resolve the problem.
    The issue is consistent as in the OLAP_USER variable does not work if DNS for connection pool set to ORCL.GLOBAL.
    Is this a bug?
    Thanks in advance
    Edited by: 983325 on 26-Feb-2013 02:35

    There is a 3.1.0.5 client. First thing I would try is the newest client.
    Sent from Cisco Technical Support iPad App

  • Encrypting communication between an app that uses an ODBC/DSN (with ADODB) and SQL Server 2008 R2

    I've been doing a lot of reading the last couple of days on how we can encrypt db communication between our product app and a customer's SQL Server db, but cannot make it work as expected. The app uses a ODBC/DSN to connect to the SQL Server db. I use this
    ODBC app to setup the DSN (on a Windows 7 PC):
    C:\Windows\SysWOW64\odbcad32.exe
    The  DSNconnection uses the SQL Server driver 6.01.7601.17514 and has these properties:
    - WinNT authentication.
    - Client Config button: TCP/IP to <server-name>\<instance.-name>
    - Change to default db: <name-of-app-db>
    - Everything else is default setting.
    SQL Server is on the same Windowns 7 PC and has a self-signed cert installed (used IIS to generate it) and has the Force Enryption set to "yes".
    I have a test C# program that uses the ADODB 2.7.0.0 COM-wrapper, made by Visual Studio after adding a reference to the ADO 2.7 library version 6.1.7601.17857. The program creates an ADODB.Connection object that has a simple connection string: "DSN=<san-name>;UID=<user>;PWD=<password>". The
    program then creates an ADODB.Recordset object and reads and displays a field from a table.
    Works fine.
    If I go into SQL Server and set Force Encryption to "no," clear the cert, restart the SQL service, and then re-run the program, it works fine.
    Here's the kick. If I go into the DSN and select "Use strong encryption for data" the Test button on the DSN works—why does it work? The SQL Server is no longer encrypting the connection so an error should occur. If I run the test program, it works
    as well—why? I can look at the connection properties in the test program and see that ADODB has added the ";Encrypt-yes" stuff to the end of the connection string. Yet that option seems to have no effect.
    If I set the SQL instance back to Force Encryption:yes, enable the cert, restart the SQL service, and clear the DSN's "Use strong encryption for data" option, I can still connect to the db with the
    test program—why?
    What am I doing wrong? I need to be able to ensure that the communication between our app product and the SQL instance is encrypted, and that we get an error if the SQL instance does not support encrypted communications. We really don't want the customer
    to have to enable Force Encryption because they have other db's on their SQL Server that do not use encrypted communication, but they want to know that our product's communication channel with the db is encrypted.
    No, I can't change the app product's code at this point in time. I'm stuck with working with what a DSN called from ADODB has to offer.
    Also, how can I be sure that communications are encrypted? I mean, I've tried things like "SELECT * FROM sys.dm_exec_connections" but that doesn't help because I have no idea how to tie the list of sessions shown back to my test program, although
    I guess it's a good thing that some of the sessions listed show encrypt_option as TRUE.
    -glenn-

    Ah yes, very good point. It's easy to miss because you have to delete then recreate the DSN in order to change drivers. So I switched the DSN over to the SQL Native 11 driver.
    Now when I try to connect to the SQL instance as <computer-name>\<instance-name>, and without a cert on the server, I get "the target principal name is incorrect". Perfect; now we're getting somewhere!
    Change my DSN to use <fqdn>\<instance-name> and it works. This tells me that SQL Server has auto-generated a cert and named it <fqdn>. I would have expected the "cert fail" error, not a cert
    name mismatch, because I'm not using Trust Server Cert.
    So I load up my self-signed cert, and that works too.
    I am still confused as to why I'm not seeing the "cert fail" error when I have no cert loaded on the SQL Server. I am not using Force Encryption on the server at all, so wouldn't expect SQL Server to auto-create a cert when an Encrypt=yes request comes in,
    but apparently it does?
    I also ran into a problem with this:
    select c.session_id, c.encrypt_option, s.client_interface_name
    from sys.dm_exec_connections c
    join sys.sysprocesses s
      on c.session_id = s.session_id
    where s.dbid = db_id('MyDatabase')
    There is no s.client_interface_name, probably should be s.hostname. There's also no s.session_id. I thought maybe this should be s.sid, but then no rows ever come back. The c.session_id looks like 51 and 52, but the s.sid looks like a very long binary number,
    so these two fields cannot be joined. I don't know how to convert the sid's properly so that the join would work. Ah wait, I just found the s.spid column; the join works when that column is used (I assume that's correct anyhow).
    If I add a Thread.Sleep(30 seconds) to my C# program just before the connection is closed, this query shows me the session for the correct hostname has encrypt_option=TRUE.
    And I have to keep my fingers crossed that all the app I/O will still work properly after
    changing the driver. Probably a safe bet though.
    Think I'm ready to throw in the towel on getting the "cert fail/no SSL" error to appear.
    It does look like I am able to sufficiently show that the connection is encrypted when Encrypt=yes is used with the newer driver.
    Thank for all the help!
    -glenn-

  • Automatically create ODBC DSN connection with special port and password. Add-OdbcDsn cmdlet

    Hi,
    I first posted a question in the SQL forum but I'm posting it here instead because its a Powershell question.
    In a non-persitent VDI enviroment we are trying to automatically create a ODBC DSN connection to a SQL server.
    We are using Windows 8.1 so we also have Powershell 4 together with the add-odbcdsn cmdlet. 
    But when trying to add set -SetPropertyValue for network port different than default and a password we get an error.
    here is the command:
    Add-OdbcDsn -Name test -DriverName "SQL Server" -DsnType User -SetPropertyValue @("PWD=test", "SERVER=10.0.0.1")
    and here is the error message:
    Add-OdbcDsn : Attempt to set the {UID or PWD} key of a DSN. These keys should not be stored in the registry for securit
    y reason. Provide the credential information at runtime via SQLDriverConnect, SQLConnect or SQLBrowseConnect.
    At line:1 char:1
    + Add-OdbcDsn -Name test -DriverName "SQL Server" -DsnType User -SetPropertyValue @ ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : InvalidArgument: (MSFT_OdbcDsnTask:Root/Microsoft/...SFT_OdbcDsnTask) [Add-OdbcDsn], Cim
    Exception
    + FullyQualifiedErrorId : MI RESULT 4,Add-OdbcDsn
    NB!:  this command does not contain a port number, but when adding it without a password(PWD string) we just the default port.

    Hi Primeid,
    Agree with Jrv, we cannot store  UID and PWD in an ODBC datasource, For example, you can create a DSN using the user interface but if you look at the DSN stored in the registry the UID and PWD are not stored.
    ODBC it is always required when you connect using a DSN that the caller supply UID and PWD if they want to use standard login during connection time. 
    These similar discussion are for your reference:
    Creating ODBC DSN for SQL Native
    Client fails for not-integrated authentication
    is user name and password required in ODBC admin / User DSN?
    In addition, to read data from a SQL Server database using an ODBC DSN with SQL Authentication via powershell, please refer to this script:
    Open SQL database with ODBC DSN and SQL AuthenticationIf
    there is anything else regarding this issue, please feel free to post back.
    If you have any feedback on our support, please click here.
    Best Regards,
    Anna Wang
    TechNet Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • CF DSN 'loses track' of tables and views

    ... but only in one database and only at a certain time (around 8am). We have a manual solution, Open the DSN and switch the server name to Network alias or vice versa and save - but why does this work? Ae we refreshing the connection pool? I've increased the connection pool from 100 - 200, decreased the timeout to 10 minutess and checking to 3 minutes and, t.urned off autogenerate keys        We've completed SQL traces, CF DSN logs, and tested different DNS entries, nothing notable yet.
    We checked with networking folks, they are not backing up at this time... anyone have something we haven't tried or should have tried a different way or can suggest a way to test to pinpoint the problem?
    Our infrastructure is WinServ 2008 w/ SQL2008r2 and a Winserv2008 and CF9 (it doesn't look like we have the right version to use cold fusion monitor)
    Thanks in advance,
    Chris

    Fast answer: Whatever causes this error, the resolution was to change the ColdFusion DSN (CFDSN) to an IP address instead of Server name or Server Alias.
    Details: The first occurrence of the error is March 15th, 8:28 AM (It is probably worth asking network folk if anything changed around this time). From this point, the error started everyday between 8 and 8:05AM and would seemingly randomly continue until the CFDSN was refreshed by changing Server name to Server Alias or vice versa (we had not tested IP address at this point). The first error (yes the table does exist):
    "Error","jrpp-2175","03/15/11","08:28:59","wxxx","Error Executing Database Query.[Macromedia][SQLServer JDBC Driver][SQLServer]Invalid object name 'Cxxxxxl'. The specific sequence of files included or processed is: C:\xxxxx.cfm, line: 302 " coldfusion.tagext.sql.QueryTag$DatabaseQueryException: Error Executing Database Query.
    Research: In the URL’s below most center around bad caches of DNS. The one suggestion of refreshed tables and Select * statements, seems feasible, but wasn’t supported by any other articles and I could not find any Select all statements on the website… but if this is purely a DNS caching issue, why didn’t the other testing CFDSN’s cause errors? Is the DNS cache specific to a CFDSN?
    Testing: I set up three DSN’s to match the only DSN failing, JGData. The only difference being Server name, Server Alias and IP were the sources in the test CFDSN’s. I set up test.cfm to cycle through the CFDSN’s with cftry/catch so we could record any errors every 5 minutes…. But no errors.  I added the live CFDSN, JGData, and we started picking up failures which is how we pinpointed the 8-8:05 window.
    From there it was just trying different permutations till one stuck. If time allowed and the work around was somehow problematic, I’d want to figure out how to replicate the error then experiment with different permutations (Would ODBC Socket eliminate the problem, the Java solution provided in couple of the articles below, etc). FWIW, I wouldn’t rule out some kind of anomaly with our virtual environment just b/c I know so little about it.
    N E Way. It’s fixed and brain dumped. Marching on.
    Researched posts/articles/blogs
    http://forums.adobe.com/message/3396333 - points a finger at DSN configuration.
    http://forums.adobe.com/message/3109318 Points a finger at incorrectly created DNS entries on the Server
    http://forums.adobe.com/message/3622433 – possible ‘refreshed’ tables could be causing the problem.
    http://tjordahl.blogspot.com/2004/10/cfmx-and-dns-caching.html points a finger at using cfhttp and its use of stored DNS cache – in theory, if we specify IP address this shouldn’t happen.
    http://russ.michaels.me.uk/index.cfm/2010/4/16/Fix-the-DNS-caching-in-ColdFusion  - similar article about DNS caching and potential problems.

  • MS Access and Java JDBC help!

    Hello, I having trouble with a java GUI.
    I have a MS Access named Database.mdb with a table named Customer which I want my GUI to access.
    I want my GUI to be able to flick through the records using the field I have made for them.
    I already have connected the database using windows xp's "System DSN" and have no problem creating tables using sql statements in my code
    Who can help me? any information would be great.
    Thanks

    I'm doing an inventory software application too...but my application is an automatic software inventory, is automatic your application??
    My result is the software that are intalled in a machine..is your project too?
    Sorry, my english is not very good...

  • 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

Maybe you are looking for

  • Ipod will not Update "Can't unmount Ipod" message

    This may be a simple answer but when I run ipod updater to get the newest fixes for my ipod, it stops updating in the middle and gives me the message "Can't unmount ipod" ??? What does this mean and what am I doing wrong??? Do I need to have Itunes r

  • Enterprise manager not installed.

    Hello everybody I have installed the SOA 11.1.1.2 suite as per the documentation. But when i am starting teh weblogic server,during startup it throws error regarding enterprise manager. stacktrace is like this <Jan 8, 2010 12:00:40 AM GMT+05:30> <War

  • How can I make a form show complex composite data?

    How can I make a form show complex composite data? We would like a form to display the following information: Employee Names as the columns, 1 row for each calendar day, and each item in the block containing the total sales amount (and other informat

  • My trackballs not working help plz

    its been a few days now my bb is 9300 the track ball has gone loopy when i click on summat its scolls up an down it self i have tryed to clean it also been on the screen/keypad setting my setting are on horizon- 60 vertical-60 audile mute...... pleas

  • Db2f error during install.

    I am trying to install GW Webaccess 7.0.3 onto a Suse Linux 10 server. During the gateway object creation portion I get an error stating "an attempt to add an object to the directory failed (db2f). The object does get created under my edirectory but