SQL DB Options with Xcode

What are people using for SQL back-engines in their applications? Is there a set of frameworks in-place for popular SQL engines?
I have a Windows-app that uses Firebird and I'd like to have a Cocoa-app share the same DB but I'm not sure how easy that's going to be. It might be easier to switch the windows DB infastructure to something like MySQL or Postgre, if those are easier to write-for in objective-C.
Is it just me or are Windows-based development environments much more DB-focused? Visual Studio with it's SQL Server, Delphi with it's Interbase..

Hi Woody,
there is a free framework available for connecting to mySQL databases. it is fairly simple to use and can be embedded in your app so endusers don't have to install it. I am using it since two years now for keeping track of the data I am collecting for my PhD work and have written several applications using it together with Cocoa bindings.
Volker

Similar Messages

  • Any hope for OpenMP with Xcode / Obj-C?

    I've been compiling command-line OpenMP C-based stuff, but it uses the gcc 4.3 from hpc.sourceforge.net, and I don't believe this can be made to work with Xcode 3 / Objective-C. I presume I either have to wait for Apple to support OpenMP in their gcc. Is there anything to be done? Or is my only option in the foreseeable future to just make use of the current threading options and do all the work that OpenMP does manually? I think this would be a big win for Apple, performance-wise, since most Macs now are multiprocessor machines. I'll file a feature request, of course, but wondering if there are options now.

    Have you downloaded the GCC 4.2 preview from the ADC site?
    GCC 4.2 Developer Preview 1
    This is a developer preview of the GCC 4.2 compiler for Mac OS X version 10.5 (Leopard). This GCC 4.2 preview release is an additional, optional compiler that can be used with Xcode 3, and does not replace or upgrade the bundled GCC 4.0 compiler. The 4.2 compiler adds several performance enhancements, as well as new features such as OpenMP support, and enhanced symbol visibility control for C++.

  • How to Use Custom Linker with Xcode 4.x?

    I am using a customer compiler with Xcode and would like to know how to force Xcode to use my own linker line with custom arguments.
    I created a new compiler spec file under:
    /Developer/Library/Xcode/PrivatePlugIns/Xcode3Core.ideplugin/Contents/SharedSupp ort/Developer/Library/Xcode/Plug-ins
    The default linker is defined in Ld.spec located in:
    /Developer/Library/Xcode/PrivatePlugIns/Xcode3Core.ideplugin/Contents/SharedSupp ort/Developer/Library/Xcode/Plug-ins/CoreBuildTasks.xcplugin/Contents/Resources
    The following link seems to indicate that what I want to do is possible:
    http://maxao.free.fr/xcode-plugin-interface/compilers-linkers.html
    It seems like you have to create a custom Linker spec, give it an identifier, and then have the compiler spec reference your linker spec id by including it in the "RequiredLinker" key.
    My compiler spec looks like:
    {   Type = Compiler;
       Identifier = com.apple.compilers.armx;
       BasedOn = com.apple.compilers.gcc.4_2;
       Name = "ARMx";
       Version = "4.2";
       Description = "ARMx GCC Cross Compiler";
       ExecPath = "/Volumes/arm-x/bin/arm-none-linux-gnueabi-gcc";
       RequiredLinker = com.apple.pbx.linkers.armx;
    The problem is that Xcode 4.1 still is insisting on using the default Apple linker.  I want it to use my ARM based toolchain, which does not support some of the options that Xcode ends up passing on the linker line.

    You would be better off using a makefile-based project with custom compilers and linkers.

  • Want to use presentation date variable in Advance SQL filter option

    Hi,
    I want to use presentation date variable in Advance SQL filter option.....I am getting the below error.
    SQL in Advance SQL filter ----
    "Fact Status Details"."Load Date" =
    (select min(Cast("D Time"."Business Date" as char))-1
    from "D Time" where "D Time"."Operational Month Sk" =
    (select "D Time"."Operational Month Sk" from "D Time" where date '@{Date1}'=cast("D Time"."Business Date" As char)))
    Error ---
    Error getting drill information: SELECT "Fact Status Details"."Load Date" saw_0 FROM "Pre RFAI Sales" WHERE "Fact Status Details"."Load Date" = (select min(Cast("D Time"."Business Date" as char))-1 from "D Time" where "D Time"."Operational Month Sk" = (select "D Time"."Operational Month Sk" from "D Time" where date '@{Date1}'=cast("D Time"."Business Date" As char)))
    Error Details
    Error Codes: YQCO4T56:OPR4ONWY:U9IM8TAC:OI2DL65P
    Odbc driver returned an error (SQLExecDirectW).
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 27002] Near <select>: Syntax error [nQSError: 26012] . (HY000)
    SQL Issued: {call NQSGetLevelDrillability('SELECT "Fact Status Details"."Load Date" saw_0 FROM "Pre RFAI Sales" WHERE "Fact Status Details"."Load Date" = (select min(Cast("D Time"."Business Date" as char))-1 from "D Time" where "D Time"."Operational Month Sk" = (select "D Time"."Operational Month Sk" from "D Time" where date ''@{Date1}''=cast("D Time"."Business Date" As char)))')}
    Load Date format ---YYYYMMDD
    Please advise...i need to fix this issue urgently.

    Thanks for your reply.
    Could you please help me with the correct code...i tried to correct it....
    "Fact Status Details"."Load Date" =
    (select Cast(min("D Time"."Business Date" )-1 as char)
    from "D Time" where "D Time"."Operational Month Sk" =
    (select "D Time"."Operational Month Sk" from "D Time" where Date'@{Date1}'=cast("D Time"."Business Date" As char)))
    Please let me know if i am wrong..this code is also not working.

  • SQL IN clause with a Tool variable

     

    We are using using Forte 3.M.2 (just upgraded from 3.G, finally).
    Platform is AIX 4.3. Database is DB2 (UDB) (version 5.2 i think).
    True, I haven't tried my code on any other platform. I think it should work on NT, because one of our other teams members has set up an NT laptop for portable demos. And it has DB2 (NT version i guess) loaded on it.
    Dynamic sql is not really that bad, if you have to go that route to build your list.
    Let me know how it goes.
    Steven Barnes
    Daniel Gonz&aacute;lez de Lucas <danieleam.es> 07/28/00 04:06AM >>>We are getinng some trouble, the DB Manager seems to try to convert
    :OfficeList to a unique integer lets say:
    :OfficeList value is 3,4,7
    so the IN clause
    trying with Oracle 8.1.5 converts 3,4,7 in a unique integer (a extrange
    value because doesn't match with 3,4 nor 7).
    trying with SQL Server 6.5 gives an error converting 3,4,7 to a unique
    tinyint.
    The idea is that with your sintax the DB Manager must split the TextData
    into 3 integer values. I think that it works fine in some DB Managers and
    not in others.
    Which release and vendor of DB Manager you use?
    Which Fort&eacute; release?
    Thank you very much in advance.
    Daniel.
    ----- Original Message -----
    From: "Steve Barnes" <DHS9126dhs.state.il.us>
    To: <danieleam.es>; <kamranaminyahoo.com>
    Sent: Thursday, July 27, 2000 1:55 PM
    Subject: Re: (forte-users) SQL IN clause with a Tool variable
    I needed to have an "IN" clause for some numbers. Here's how I did it:
    GetOffices():TextData method...
    Offices : TextData = new ;
    for (x : integer) in sql select MyIntegerColumn
    from MY_TABLE
    where whatever condition
    on session MyDBSession do
    Offices.Concat(x) ;
    Offices.Concat(',') ;
    end for ;
    return (Offices.CopyRange(0,Offices.ActualSize -1)) ; // get rid of lastcomma
    in actual sql.....
    OfficeList : TextData ;
    OfficeList = GetOffices() ;
    sql select * from MyTable where MyField in (:OfficeList)
    on session MyDBSession ;
    Works very well.
    Steven Barnes
    Daniel Gonz&aacute;lez de Lucas <danieleam.es> 07/27/00 05:32AM >>>Hello,
    To do a select we have two options:
    select * from MyTable
    where MyField in ('a','b','c')
    we would like to do the same but using a fort&eacute; variable in the IN clause.
    select * from MyTable
    where MyField in (:ToolVar)
    What should we do and what kind of variable or array of variables shouldwe use in ToolVar to do the same than in first option?
    >
    Has anybody done this without a dynamic query?
    Best regards
    Daniel
    For the archives, go to: http://lists.xpedior.com/forte-users and use
    the login: forte and the password: archive. To unsubscribe, send in a new
    email the word: 'Unsubscribe' to: forte-users-requestlists.xpedior.com

  • Connecting Oracle(64bit) to SQL Server(32bit) with heterogeneous serv ODBC

    Hi,
    We are planing the migration of 32bit Oracle 9.2.0.8 (MS Windows Server 2003 EE SP1) to 64 bit Oracle 10.2.0.4 (MS Windows Server 2003 Standard x64 Edition SP2).
    We have tested the migration using export/import procedure, and everything passed ok.
    The problem is because the database we are planning to migrate (32bit) using Oracles heterogeneous Services ODBC agent in connection to 32 bit SQL Server 2000. When we have tried to implement that on 64bit 10.2.0.4 oracle we always get the message:
    ORA-28545: error diagnosed by Net8 when connecting to an agent
    Unable to retrieve text of NETWORK/NCR message 65535
    Then we looked up the metalink and find the document: Is Generic Connectivity Available On Linux Or Windows 64-bit Platforms ? [*ID 361676.1*]
    Is there any way to make the connection between 64bit Oracle 10.2.0.4 and 32bit SQL Server using system DSN within the Windows ODBC Data Sources with choosing the SQL Server driver?
    The option with Database Gateway for ODBC (DG4ODBC) isn't free.
    Thanks

    Hi everyone
    As far as I am aware, you need to install the Discoverer EUL into an Oracle database and then use an ODBC connection to SQL Server. This is because Discoverer has hooks into the Oracle database and is looking for features that only exist in an Oracle database. If you are using an Infrastructure, which is mandatory when using 4i, you can use that database to store your EUL using an ODBC connection over to SQL Server.
    I hope this helps
    Best wishes
    Michael Armstrong-Smith
    URL: http://learndiscoverer.com
    Blog: http://learndiscoverer.blogspot.com

  • PL/SQL compile options

    Is there any way to give the PL/SQL compile options while compiling from SQL*PLUS like we give in Pro*c Compilers using EXEC ORACLE OPTIONS (name=value);
    Thanks

    Richard,
    I tried the following simple PL/SQL
    created the package
    CREATE OR REPLACE PACKAGE partest AS -- package spec
    PROCEDURE insert_dummy_details(num INTEGER);
    END partest;
    Created the body
    CREATE OR REPLACE PACKAGE BODY partest AS -- package body
    PROCEDURE insert_dummy_details(num INTEGER) IS
    BEGIN
    INSERT INTO pardummy values(num);
    END insert_dummy_details;
    END partest;
    created pardummy table
    compiled & executed it
    count in v$open_cursor increased by 1.
    Also, i executed the query which you mentioned.
    It showed the corresponding insertion sql text with the status CURBOUND
    Does it mean that a cursor is open in session which can be counted against open_cursor for that insert statement.
    Partha

  • SQL Server Express with SS Management Studio. Which version is lightest/smallest?

    I’m looking to download the smallest/lightest version of SQL Server Express with SS Management Studio. 
    Which option should I choose?
    http://www.microsoft.com/en-us/download/details.aspx?id=29062
    Knowledge is the only thing that I can give you, and still retain, and we are both better off for it.

    Hello,
    What's the main propuse you use SQL Server Express edition? If you just use SQL Server in development. You can try to use SQL Server 2012 Express LocalDB.
    LocalDB is a lightweight version of Express that has all its programmability features.SQL Server Express LocalDB runs in user mode, and you can install it more quickly with fewer prerequisites (a minimal set of files necessary to start the SQL Server Database
    Engine) and no configuration.
    Reference:
    Introducing LocalDB, an improved SQL Express
    SQL Express v LocalDB v SQL Compact Edition
    Regards,
    Fanny Liu
    Fanny Liu
    TechNet Community Support

  • SQL server 2012 with SP2 for hosting VMM 2012 R2 DB server

    Hi,
    I would like to implement System Center 2012 R2 Operation Manager, VMM and Configuration Manager.
    I have proposed to my customer two MSSQL Server 2012 Box, one for SCOM/VMM DB server and another one for SCCM (SCCM DB and SCVMM DB cannot be on the same computer).
    But I read on Microsoft web site that only SQL Server 2012 SP1 are supported for VMM DB server and SQL Server 2012 SP2 is supported for SCOM DB server.
    So my question is: Can I deploy one box SQL server 2012 with SP2 for hosting VMM 2012 R2 DB server ?  if not, When SQL Server 2012 SP2 will be supported for VMM 2012 R2 DB server ?
    Regards.
    BrahimH.
    BrahimH

    Hi,
    As per the link this seems to me a known issue. I cannot 100 % say because I have seen/faced this issue with
    SP1 and you mentioned SP2. I would always suggest to install RTM only there is option to un select SP2 during installing.
    Well thank you for reporting I guess Microsoft would take this as feedback.
    Can you share setup log files please just for analysis
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it.
    My TechNet Wiki Articles

  • Different migration options with OWB.

    Hi there,
    We are very new to Oracle Warehouse Builder (OWB) version 10.2.0.3. We are Oracle E-Business Suite users. We will be loading data into 10gOLAP cubes via Analytical Workspace Manager and will be using Discoverer for OLAP for reporting.
    We are considering various options with OWB migration from DEV -> UAT -> PROD.
    Our current thinking is to install OWB in our DEV environment only. PL/SQL packages that are generated in DEV and tested will be migrated to UAT for execution.
    Results of the execution of the PL/SQL packages in UAT will be subjected to users testing. Upon successful UAT testing by the users, we then migrate the PL/SQL code to PROD for execution.
    What are the short comings of the above arrangement as compare to installing OWB on all three environments.
    Also what are the benefits of using Workflow Manager as compared to using concurrent manager to submit our OWB PL/SQL packages?
    Please share your thoughts on the above.
    Thank you in advance

    Sorry, but as you deduced, you cannot use branching in tests.
    A test is expected to be a linear progression of slides,
    where all scored slides have answers. If the user never sees some
    questions, they cannot get 100%.
    You might want to submit a feature request to specify that
    only answered questions be evaluated when determining quiz passing
    (or whatever terminology best fits what you'd like to see).
    You can so so here:
    Link
    to Adobe Captivate Feature Request Form

  • Unable to get SQL Server Agent to run after installing SQL 2012 Standard with SP1

    I am unable to get SQL Server Agent to run after installing SQL 2012 Standard with SP1. Log message is as follows:
    Attempting to load library 'xplog70.dll' into memory. This is an informational message only. No user action is required.
    Failed to verify Authenticode signature on DLL 'C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\Binn\xplog70.dll'.
    Error: 17750, Severity: 16, State: 0.
    Could not load the DLL xplog70.dll, or one of the DLLs it references. Reason: (null).

    Hi JFriedley,
    According to your error message, there might three reasons for this issue.
    xplog70.dll is corrupt, you need to check if you have any SQL Server running on same file version and same production
     edition. If xplog70.dll is corrupt, you can copy it from the new server where agent is running fine to your problematic server.
    Native client not installed properly. If you try applying any latest Service Pack or Cumulative Update then check if the SQL Server Agent can start, if that also doesn’t solve issue then try to reinstalling SQL Server Native client from SQL Server setup
    files.
    There is a similar issue about error 17750, you can review the following article.
    http://blogs.lostincreativity.com/sqldba/sqlserver-error-17750-could-not-load-the-dll-xpstar90-dll/
    Regards,
    Sofiya Li
    If you have any feedback on our support, please click here.
    Sofiya Li
    TechNet Community Support

  • Checking against Select-Options with "CP" using "IF value IN select_option"

    Dear experts,
    first of all: I'm sorry, if this question already should have been asked and answered!
    I tried quite a lot of search terms but didn't find anything helpful.
    We are using a statement like "IF value IN select_option" to perform comparisons after the Select-Options have been used in a SELECT statement. This logical expression fails (compared to the results of the DB-SELECT) whenever a select-option line contains the option CP (Contains Pattern). To be more specific: The case sensitivity of the LOW value doesn't seem to play a role any more. A variable with the value 'ABCD' would be positively checked against a select-option with OPTION 'CP' and LOW 'abc*', whereas this value wouldn't have been selected if the select-option had been used in a DB-SELECT.
    Does anybody know a workaround?
    Thanks in advance
    Andreas

    Dear Keshav,
    it's an own field in an own table, defined as CHAR of length 140 (lowercase allowed), reflecting to a line of remittance info of an account statement. A regular Select-Option for this field is provided in a report which works perfectly fine regarding the case sensitivity. For reasons I don't want to point out in detail we need to check a value in this field against the select-option without selecting it from the db again.
    Let's assume that a field remittance_info contains the value 'ABCD'.
    A line of the select-option table looks like this:
    select_option_table-SIGN = 'I'
    select_option_table-OPTION = 'CP'
    select_option_table-LOW = 'abc*'.
    Then an ABAP statement such as
    IF remittance_info IN select_option_table.
    * would be true !!!
    ENDIF.
    but wouldn't deliver a result in a SELECT such as
    SELECT * FROM my_table INTO TABLE my_internal_table WHERE remittance_info IN select_option_table.
    because of the differences in lower/upper case.
    regards
    Andreas

  • On previous iPhones you could go to settings and block the the actual text message from pooping up. Only the sender would show up. On the i4gs the sender and message show up. This is a major flaw as far as privacy. There are no options with in settings to

    On previous iPhones you could go to settings and block the the actual text message from pooping up. Only the sender would show up. On the i4gs the sender and message show up. This is a major flaw as far as privacy. There are no options with in settings to stop this from happening. PLEASE TELL ME IM WRONG ???

    YOU ARE WRONG.
    Go to Settings > Notifications > Messages. You can turn Notifcation Center off for Messages, or select None for the alert style, and turn Show Preview off, and view in Lock Screen on or off.

  • Setting fields defined in SQL updateable report with a process

    I have SQL statement defined in a SQL updateable report with hidden fields. I want to be able to update these hidden fields with values from other displayed fields on the page. How do I reference these hidden items - I have referencign them as :my_field but get and error telling me thats its underfined.

    But, the reason I am doing this is because I want to format the page with 6 columns in one <TD> cell with some extra text and formatting etc - I don't want 1 column per <TD>. Thats why I am using the APEX_ITEM.TEXT so I can format the 1 <TD> the way I want it (with 6 columns it there).
    In the short term can you tell me how to reference hidden fields please.
    I will create the case in apex.oracle.com in the next few days to make it clearer.
    P.S. see my previous post: SQL QUERY updateable report with APEX_ITEM fields to update hidden columns

  • How to export data with column headers in sql server 2008 with bcp command?

    Hi all,
    I want know "how to export data with column headers in sql server 2008 with bcp command", I know how to import data with import and export wizard. when i
    am trying to import data with bcp command data has been copied but column names are not came.
    I am using the below query:-
    EXEC master..xp_cmdshell
    'BCP "SELECT  * FROM   [tempdb].[dbo].[VBAS_ErrorLog] " QUERYOUT "D:\Temp\SQLServer.log" -c -t , -T -S SERVER-A'
    Thanks,
    SAAD.

    Hi All,
    I have done as per your suggestion but here i have face the below problem, in print statment it give correct query, in EXEC ( EXEC master..xp_cmdshell @BCPCMD) it was displayed error message like below
    DECLARE @BCPCMD
    nvarchar(4000)
    DECLARE @BCPCMD1
    nvarchar(4000)
    DECLARE @BCPCMD2
    nvarchar(4000)
    DECLARE @SQLEXPRESS
    varchar(50)
    DECLARE @filepath
    nvarchar(150),@SQLServer
    varchar(50)
    SET @filepath
    = N'"D:\Temp\LDH_SQLErrorlog_'+CAST(YEAR(GETDATE())
    as varchar(4))
    +RIGHT('00'+CAST(MONTH(GETDATE())
    as varchar(2)),2)
    +RIGHT('00'+CAST(DAY(GETDATE())
    as varchar(2)),2)+'.log" '
    Set @SQLServer
    =(SELECT
    @@SERVERNAME)
    SELECT @BCPCMD1
    = '''BCP "SELECT 
    * FROM   [tempdb].[dbo].[wErrorLog] " QUERYOUT '
    SELECT @BCPCMD2
    = '-c -t , -T -S '
    + @SQLServer + 
    SET @BCPCMD
    = @BCPCMD1+ @filepath 
    + @BCPCMD2
    Print @BCPCMD
    -- Print out below
    'BCP "SELECT 
    * FROM   [tempdb].[dbo].[wErrorLog] " QUERYOUT "D:\Temp\LDH_SQLErrorlog_20130313.log" -c -t , -T -S servername'
    EXEC
    master..xp_cmdshell
    @BCPCMD
      ''BCP' is not recognized as an internal or external command,
    operable program or batch file.
    NULL
    if i copy the print ourt put like below and excecute the CMD it was working fine, could you please suggest me what is the problem in above query.
    EXEC
    master..xp_cmdshell
    'BCP "SELECT  * FROM  
    [tempdb].[dbo].[wErrorLog] " QUERYOUT "D:\Temp\LDH_SQLErrorlog_20130313.log" -c -t , -T -S servername '
    Thanks, SAAD.

Maybe you are looking for