Results 1 to 4 of 4

Thread: How to Logon Server and SQL Server

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2015
    Posts
    5

    How to Logon Server and SQL Server

    Dear All,

    I have create VB6 application and using SQL Server 2000 Databases.

    I have create Crystal Report 8.5 using Stored Procedures.

    Every time the Server change or database name change.

    I have to open all Crystal Reports files and do it manually.

    I need VB6 code to set Database name and server when using crystal Report.

    I am using OCX Control.

    I have use CrystalReport.Logon

    it fails.


    Please advice

  2. #2
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: How to Logon Server and SQL Server

    It's been a long time since I do it but you can open the CR and then iterate through the report and sub reports... In the object model somewhere there is a method ChangeServer I think is what it is called, use that to reset the connection string for the reports and it should be fine.

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  3. #3

    Thread Starter
    New Member
    Join Date
    Sep 2015
    Posts
    5

    Re: How to Logon Server and SQL Server

    Thanks for your reply..

    Infact if you can show me coding through vb6 using ocx control.

    How to change for the same.

    Your reply is appreciate.

    Thanking you

  4. #4
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: How to Logon Server and SQL Server

    That was over 15 years ago... and I no longer use CReports nor do I use VB6 any more... so you'll need to go looking through the documentation and the object model and see if you can find it. It should be obvious. It's either Set or Open followed by either Database or Connection or Server... it's some combination of those.

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width