CrConnectionInfo- ServerName when a datasource is not defined in the contro

I have been testing dbconnectivity.cpp from cppnet_win_dbengine in preparation for a project to migrate from the legacy CR apis to NET, but I cannot seem to get the database logins correct. Instead of cluttering the control panel with datasources, we create a DSN from scratch, but I cannot seem to get it to work:
crConnectionInfo = new ConnectionInfo ;
crConnectionInfo->Servername="SQL Native Client;Server=10.0.20.63;UID=sa;Database=blabla";
crConnectionInfo->DatabaseName = "blabla";
crConnectionInfo->UserID = "sa";
crConnectionInfo->Password = "password";
Ie, if I use a name defined under the ODBC control panel then it works, but anything else,I just get a failed login.

OK. Please remember that I am trying to port an application with perhaps a hundred reports from the legacy interface to .NET. I would naturally like to do so with a minimum changes to the original app. When you say:
"Once the connection is established and a resultset object created, you can bind that resultset to a Crystal report.
Microsoft documentation provides more information on potential issues and methodologies regarding programming DSN-less applications."
There is no way for me to provide the servename to the report this way? I have to create a result set and then bind that one to the report? If so, can you point me to some examples?
Please note that I am using DBConnectivity.cpp from cppnet_win_dbviewer.zip as a template.
Update:
Apparently am I not alone. When googling I found several posts describing similar issues, for example:
http://social.msdn.microsoft.com/Forums/en/vscrystalreports/thread/29c0bb9c-98f5-458d-b643-41d5b739535a
At one point did I even see Crystal Reports pull down all data from SQL Server (on the wire) and then complaining about a login failure?? What seems to work though is this:
Create a System DSN or a User DSN that point to the server. You can then select database on that server:
            crConnectionInfo = new ConnectionInfo ();
     crConnectionInfo->ServerName = "Pedago SQL Native Client"; // System or User DSN
            crConnectionInfo->DatabaseName = "lp0001_xx"; // database to use
            crConnectionInfo->UserID = "sa";
            crConnectionInfo->Password = "password1";
What irks me is the error reporting. CR will report a "Logon Failure" for all types of errors. It would be much better if you got more detailed error info.
Edited by: Anders Gustafsson on Dec 16, 2010 1:41 PM

Similar Messages

  • Extraction Problem - DataSource is not defined in the source system

    Hi,
    I am loading transaction data into sales cubes, while loading in process chain it shows "No Data"
    so when i go in rsa3 extration for checking availibilty of data.
    The following message shows,
    DataSource 2LIS_12_VCHDR is not defined in the source system.
    In LBWE first it was shown Inactive then i make it active.
    So, what is the procedure to defined this data source to the source system.
    Thanks & Reagards,
    SD.

    Hi All,
    Thanks for ur reply.
    But i can not found the datasource in RSA5, can anyone explain how to find the datasource in RSA5?
    Datasource name : 2LIS_12_VCHDR , Cube Name : 0SD_C03
    and how to activate in RSA5 ? & after activation how can migrate the same datasource in r3 side by replication?
    Also the procedure to fill up the setup tables and then do the loading from r3side by thorugh infopackage...
    Thanks & Regards,
    SD

  • Datasource is not defined in the source system

    We have ECC 6.0
    why I can't find these datasources in ECC system?
    0DF_IS_DFS_32  
    0PM_COMPUNIT_ATTR
    0DF_IS_DFS_45
    Thank you in advance for your help.

    Hi
    It is related to BI system. check below one
    http://help.sap.com/saphelp_tm70/helpdata/en/a3/9857a130f74936ae53aed874867dc3/frameset.htm
    Regards,
    Venkatesh

  • DataSource 0HR_ATT is not defined in the source system

    Hi Gurus,
    When I am trying load data for HR Master data Attribute it is not loading any anything. I checked that datasource in Rsa3 at R/3 side there it is showing
    "DataSource 0HR_xx_attr is not defined in the source system", can anybody give me the solution.
    I will assign full points.
    Thanks in advance.

    Hi Sergio,
    I have replicated the datasource in BW. Still It is showing the same.
    Kindly advice.
    Maruthi

  • DataSource 2LIS_11_VAHDR is not defined in the source system

    I have a problem when I had activated the Data Source called 2LIS_11_VAHDR in ERP DEV and then put it in a request to be transfered to ERP Prod
    Then I am using RSA3 I receive the following error
    DataSource 2LIS_11_VAHDR is not defined in the source system
    I tried to activate this data source several times in ERP Dev and send it to production without any success

    I am sure you would have done these steps, but just a double-check.
    1. RSA5 - Install the data source
    2. RSA6 - Activate the data source
    Check in LBWE if the data source is available.
    All this will be captured in a transport request(s) - you may may have a Workbench request & a Customizing request.
    Also, before transporting, please check in your target system whether the datasource is available or not (RSA5).
    Further to the above, do a check in Dev for the following.
    After activating it in RSA6, fill the setup tables for 2LIS_11_VAHDR - i.e. thru' transaction OLI7BW.
    And check the data in RSA3.

  • DataSource 0HR_PA_PA_1 is not defined in the source system

    Hi All,
    DataSource 0HR_PA_PA_1 is not defined in the source system Error is coming when I am trying to activate the datasource in source system (In RSA5-Data source is not available in source system)in order to pull data to HeadCount InfoCube in SAP Hr module.
    Can anybody please help me in this regards.
    I searched in sdn but no luck.
    Thanks
    Mohan

    HI Mohan,
    0HR_PA_PA_1 is a datamart datasource , It will be available in the BI system and not in the HR system
    The extractor takes the data from the master data tables in the BW system. (check SAP note 336229 )
    Check the SAP help
    http://help.sap.com/saphelp_nw70/helpdata/en/29/02b43947f80c74e10000000a114084/frameset.htm
    Regards,
    Sathya

  • InfoSource 8ODS_SLS is not defined in the source system

    Hi Guys,
        When I tried to load data from ODS to Infocube, I am getting the following error.
    “InfoSource 8ODS_SLS is not defined in the source system”
          Source System is not R/3. It is just a flat file and data was uploaded into ODS. When transferring the data from ODS to Infocube, I get this problem. And I have defined the update rules for infocube and also given the infosource name as ODS.
          But the data is not getting uploaded in the Infocube.

    First replicate your BWSELF system.
    Then, Run this program in SE38:
    rs_transtru_activate_all
    Enter the source system (your BW system)
    Enter the datasource (8ODS_SLS).
    If you get an error message immediately, the datasource doesn't exist. If it runs, check and make sure you get no error messages.
    /smw

  • Infosource 8ZISCMS10 is not defined in the source system

    Hi Gurus,
    I got an issue when loading the data with in SAP BW (Info source is ODS),It threw an error message stating "Infosource 8ZISCMS10 is not defined in the source system",
    Could any one of you help me in this regrad plz,
    N:B: I have activated the transfer structure through RS_TRANSTRU_ACTIVATE_ALL  and replicated the data sources before loading...

    When u activate DSO/ODS (say ZISCMS10) it creates datasource (8ZISCMS10) & Infosource (8ZISCMS10)
    U can check these at ...... Modeling --> Datasources -> BI -> BI source system name. If it is missing .. reactivate DSO/ODS.
    If the load is failing in QA, u should rereactivate DSO/ODS in DEV and transport that to QA.. After transport.. make sure datasource (8ZISCMS10) & Infosource (8ZISCMS10) appears in QA (Modeling --> Datasources -> BI -> BI source system name)

  • Error: Infoobject is not defined in the source system

    hi
    (I posted this in other forums as well - but wondering, it it should be here in BCT/Extractors - I could use more help).
    this is my issue:
    I am trying to load master data (attr) for an infoobject.
    But, it fails with the following error message (when I click on the "Error message" button on the "monitor" screen.
    "Infoobject is not defined in the source system"
    "Erros in source system".
    (I did rsa3 and find it has some data + i checked on the base table as well, it has data; the datasource is from an SRM system) Why is it complaining like this.
    any help on what could be wrong here? Pl let me know,
    thanks

    Thanks Ricardo,
    I have tried that b4. and it says the "source system connection is OK".
    any other idea?
    Do I have to install the infoobjects on the source system as well? SRM is my source system.. I am not sure on that, but If I have to, how do I do that?
    thanks
    Message was edited by: Esan

  • Data Source Z*** is not defined in the source system

    Hello All,
    I am facing a well known problem extracting data from R3 to the BI side. On both sides I've got SAP ALL.
    I created data source on R3 DEV side, tested it and it extracts data. I've replicated metadata on BI side and activated the data source. The problem starts once I create the info package as no data is availble in PSA.
    I went to extractor checker and tried to start the extraction and I could see the message: data source Z**** not defined in the source system.
    I tried to locate the data source through RSA5 and I cannot see that it is availble there.
    Can you please help and advise where the problem is?

    Hi Neb,
    It can be related to many issues, one of them can be RFC connection issue. Please check the link below :-
    Datasource xxx is not defined in the source system
    It might give you some of ideas. Also if possible can you tell what Datasource are you having problem with.
    Regards
    Sunny

  • Error Infosource is not defined in the source system

    I am extracting data into ODS. It was running perfectly till now. But today i am getting this error.and for all packages i run. whether it is transaction data or master data.
    I replicated the DataSource and activated all the objects and transfer structure.but still getting the same error.
    I even created a new DataSource and infosource but still the error persists. please help me in this matter.
    Thanks

    the data is extracted from BW system itself (Self System).
    there are three tables linked to each other.I have created an infoset query and creted datasource on that infoset query.
    the source system is the same bw system.
    The detailed error report is -
    InfoSource  is not defined in the source system.
    Message no. R3005 
    Diagnosis
    The InfoSource  specified in the data request, is not defined in the source system.
    System response
    The data transfer is terminated.
    Procedure
    In the Administrator Workbench of the Business Information Warehouse, update the metadata for this source system, and delete the InfoPackages belonging to InfoSources that no longer existing .

  • InfoSource  is not defined in the source system

    Hi,
        We are getting error 'InfoSource  is not defined in the source system' while extracting data from Planning book to Cube in APO.
    Data is coming up to Extrack checker ( RSA3 ) but not comming to PSA.
    Please help me.
    Thanks
    Subba Rao

    Hello Subba,
    Have you replicated the datasource on the BW side? If you use the 3.x data flow then you also need to assign the datasource to and infosource.
    Best Regards,
    Des

  • ZSD_TABLE is not defined in the ABAP dictionary as a table"

    Hello,
    I created zsd_table and inserted few records
    When i use this table in program system is giving error message "ZSD_TABLE is not defined in the ABAP dictionary as a table"
    How can we define this table in ABAP dictionary?
    Thanks

    Hi,
    Go to Transaction SE11
    Give the table name 'ZSD_TABLE'
    and click on create and enter the fileds
    after entering fields give 'techinical setting' for a table by clicking on technical setting button on tool bar
    save check and activate
    Regards
    Krishna

  • Field in structure 'is not defined in the ABAP Dictionary'

    Hi,
    I have created an Infoset (SQ01) based on an external program and structure.
    These two things are required.
    However when I try to generate my Infoset I get an error message for each element in the structure I created in SE11.
    The error is:
    "<structure_name-field_name> is not defined in the ABAP Dictionary"
    Each element in my structure gives this error yet I have defined this in SE11 as a structure and activated it.
    These elements are included in my Infoset and as a field group in the infoset.
    Has anyone come across this error before and knows how to resolve this problem?
    Many Thanks
    David

    Hey,
    I got the same prb.
    Just reset the text buffers.
    Rgds,
    Martin

  • Third-party not defined in the case of vendor with plant assignment ?

    We use a Third-Party Vendor to direct-ship some products directly to our Customers.
    When transfers third party order form's PR STO PO, prompts the following information
    Third-party not defined in the case of vendor with plant assignment
    Message no. 06769
    Diagnosis
    You are entering a purchase transaction involving a vendor to whom a plant has been assigned. Normally, this will involve the transfer of materials from one plant to another.
    This process necessitates a delivery and a billing document in the SD system. The PO appears directly in the delivery due list of the issuing plant (vendor) and therefore does not need to be transmitted.
    However, an item with the procurement form "third-party" (triangular business deal) cannot appear in the delivery due list.
    Procedure
    An item with the procurement form "third-party" can only be ordered from vendors without a plant assignment.
    how should solve?
    Many thanks,  Adny.
    Edited by: Andy Yao on Feb 8, 2010 3:58 AM

    Hi Andy
    Why u doing stock transfer order,in third party sales there is no stock transfer
    Follow below procees for third party sales( Vendor ship materials directly to customer)
    Create Sales order(Use item category TAS) >>> Purachase requisition(Automatically from order) >>> Purchase order >>> Vendor Invoice Verification >>> Invoice to customer
    Kapil

Maybe you are looking for

  • How do I stop iTunes from starting with Windows?

    Hi there. After installing iTunes 7, it launches with Windows despite there being no registry entries or Startup folder entries. I also can't find any preference settings in iTunes to change this. I don't want iTunes starting with Windows as it's a C

  • Hide line art seen through upper layer line art?

    I'm doing a t-shirt illustration and I need the line-art to overlap, remain transparent (no fills) and not see the line art behind through the front line art. If I have two shapes overlapping, I don't want the illustration behind to be seen through t

  • Upload function

    Hi, in ecc6 when i call upload function then a system message appears that "upload function is obselete-do not use". what should i use? Thanks.

  • Sockets not closing

    I'm doing some simple socket programming but I'm having trouble getting my sockets to close. I tell them to close but they don't seem to be recognized as closed. Here is where I get create my socket: {code Socket connectionSocket = myWelcomeSocket.ac

  • Brush Cursor Problem

    Hello, I've been experiencing a weird brush cursor issue and I haven't been able to find anything online to fix it.  This cursor problem is different from the "chunk of cursor missing upon resizing" issue that so many people have had. In Photoshop, w