Dreamweaver 8 changes in SQL syntax

There seems to be a difference in the way D8 deals with SQL
queries - the code generated differs significantly from previous
versions, and I'm struggling to get it to do what I need.
I have a database with a number of geographical areas for
searching, field names 'area1', 'area2'...'area10' each using a
Boolean field and populated by ticking a checkbox.
I want to create a search results page by filtering the
results based on selecting one of these areas - this is passed as a
URL parameter from a form using a drop-down list which sends the
parameter 'area1' etc., i.e. I want to display all records in which
area1 is ticked by selecting 'area' from the drop-down list.
In MX2004, I had this working fine by using a URL statement
as follows:
SELECT *
FROM Consultants
WHERE MMColParam = -1
where MMColParam is set to Request.QueryString("regionlist")
In D8, there's an additional element to set in the parameter
box of 'type'.
Whatever settings I try, I can't now get this statement to
work. I've tried setting type to 'text' (which seems logical as it
should return something like 'Area1'), and have tried matching the
return with as many variations of Bollean 'True' as I can think of
(text 'True', numeric '1', '-1' etc.), but nothing seems to work.
Can anybody point me in the right direction for solving this
problem? Many thanks!

DW 8.02 uses actual parameters for your recordset parameters,
so passing
object (table, column, procedure, view, etc) names via a
recordset parameter
from the GUI dialog box is not possible.
You'll have to alter the query yourself. You can simply
concatenate the
column name with the rest of the SQL. You'll of course want
to take care of
all the security holes this introduces into your workflow
(those holes exist
under 8.01 and earlier, too).
"Richard Gray" <[email protected]> wrote in
message
news:erjnrk$o89$[email protected]..
> There seems to be a difference in the way D8 deals with
SQL queries - the
> code
> generated differs significantly from previous versions,
and I'm struggling
> to
> get it to do what I need.
>
> I have a database with a number of geographical areas
for searching, field
> names 'area1', 'area2'...'area10' each using a Boolean
field and populated
> by
> ticking a checkbox.
>
> I want to create a search results page by filtering the
results based on
> selecting one of these areas - this is passed as a URL
parameter from a
> form
> using a drop-down list which sends the parameter 'area1'
etc., i.e. I want
> to
> display all records in which area1 is ticked by
selecting 'area' from
> the
> drop-down list.
>
> In MX2004, I had this working fine by using a URL
statement as follows:
>
> SELECT *
> FROM Consultants
> WHERE MMColParam = -1
>
> where MMColParam is set to
Request.QueryString("regionlist")
>
> In D8, there's an additional element to set in the
parameter box of
> 'type'.
>
> Whatever settings I try, I can't now get this statement
to work. I've
> tried
> setting type to 'text' (which seems logical as it should
return something
> like
> 'Area1'), and have tried matching the return with as
many variations of
> Bollean
> 'True' as I can think of (text 'True', numeric '1', '-1'
etc.), but
> nothing
> seems to work.
>
> Can anybody point me in the right direction for solving
this problem? Many
> thanks!
>

Similar Messages

  • SQL Developer 1.1.0.21: Issues with Data Grid and SQL syntax checking

    In this new release of SQL Dev, when I execute a SQL in the SQL Worksheet and click in the Data Grid in the Results tab and try to navigate within a record using arrow keys, the grid cell enters into edit mode by default and so I cannot use the Left or Right arrow keys to navigate the grid. I am forced to use tab key to navigate. This is counter intuitive in my opinion.
    Is there any option to change this behavior?
    Another issue that I have come across is with SQL syntax checking. In some cases, when I press F9 to execute a SQL, it shows the SQL as executed i.e. shows something like 0.0134 seconds in the toolbar and no results displayed. In reality, the SQL had some syntax error which were NOT reported. This can be frustrating since now I have to fall back to SQL*Plus or TOAD just for syntax check.
    I like the fact that SQLDev highlights the current SQL but it would be more useful if it just indicated the first line of the current sql instead of highlighting the whole sql.
    Manish

    "In this new release of SQL Dev, when I execute a SQL in the SQL Worksheet and click in the Data Grid in the Results tab and try to navigate within a record using arrow keys, the grid cell enters into edit mode by default and so I cannot use the Left or Right arrow keys to navigate the grid. I am forced to use tab key to navigate. This is counter intuitive in my opinion."
    In the "Results" tab, Click Ctrl & Tab keys (at the same time) or with mouse click on any cell other than the first column (a sequence or rownum), you will be able to navigate using the arrow keys.
    "Another issue that I have come across is with SQL syntax checking. In some cases, when I press F9 to execute a SQL, it shows the SQL as executed i.e. shows something like 0.0134 seconds in the toolbar and no results displayed. In reality, the SQL had some syntax error which were NOT reported. This can be frustrating since now I have to fall back to SQL*Plus or TOAD just for syntax check."
    The 0.0134 seconds could be the result of the most recently executed successful statement. Check the Script Output tab for errors. Use F5 (Run Script option) instead of F9.
    "I like the fact that SQLDev highlights the current SQL but it would be more useful if it just indicated the first line of the current sql instead of highlighting the whole sql."
    On the SQL statement (or code), Right Click -> Format SQL (or press Ctrl & B), proper formatting would help.
    I use version 1.0.0.15.57 and seems to be working allright.
    - Babu Rangasamy

  • SQL Syntax Issue

    This is a weird one!!!
    I am using Dreamweaver/php/mysql and I am in the process of
    developing the forms that edit articles that have been added to the
    CMS. I have a page called edit.php which has the current list of
    articles. Each article has a radio button next to it and have given
    it an id of "id" (which is what I called it in the DB). On
    selecting this article, and hitting submit, this should load up a
    editnews2.php. On editnews2.php I have a filtered recordset that
    filters on "id " so that it loads the article selected into the
    editnews2 form. I have bound the fields in the form to the related
    fields in the recordset.
    When I test this out using the TEST button, in the recordset
    pop-up window and enter an id, it retrieves the correct article
    from the database. However, when I do it using the forms, I get an
    error:
    "You have an error in your SQL syntax; check the manual that
    corresponds to your Mysql server version for the right syntax to
    use near " at line 1"
    This is really weird because the recordset works and
    retreives the data no problems, which mean the connection file path
    is correct and other parameters are correct. I have tried lots of
    times to try and figure this out but I am now really stuck.
    Could anyone shed some light on this one?
    regards
    orange22

    orange22 wrote:
    > When I test this out using the TEST button, in the
    recordset pop-up window and
    > enter an id, it retrieves the correct article from the
    database. However, when
    > I do it using the forms, I get an error:
    >
    > "You have an error in your SQL syntax; check the manual
    that corresponds to
    > your Mysql server version for the right syntax to use
    near " at line 1"
    What that means is that the way Dreamweaver is building your
    query
    contains a mistake - probably an extra quotation mark or
    something like
    that.
    Go into Code view and use echo to display the actual SQL
    query being
    sent to the database. That will give you a clue as to where
    to start
    troubleshooting the rest of the code.
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS3" (friends of
    ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • Sql syntax inside java

    I am having a terrible time with the sql syntax INSIDE a java program. Is there somewhere online that has this information (in easy english!) For example I am trying to insert information in an access table. This is my sql query that works in access. How do I change the syntax to place it into java?
    INSERT INTO reservations ( fromcity, tocity, fromdate, todate, air, hotel, rental, airticketamt, hotelamt, rentalamt, customerId )
                   VALUES ('Seattle', 'Phoenix', #1/1/2002#, #2/2/2002#, yes, yes, yes, 50, 50, 50, 'CUST001');
    I also need to change the actual values (Seattle, etc) to the variables which is also a syntax problem!

    Here is a slightly smaller example of building the SQL. I didn't compile this so the syntax may not be 100%, but I think you can figure out the rest from this example.
    // Seed the String values for the convenience of the example
    String fromCity = "St. Paul";
    String toCity   = "Chicago";
    String fromDate = "#1/1/2002#";
    String toDate   = "#2/2/2002#";
    // Build the SQL using the String Values, the trick is to be
    // sure you have the appropriate spaces in the SQL when done,
    // and that you should use single tick marks to surround String
    // values
    String sql = "INSERT INTO reservations (fromCity, toCity, fromDate, toDate) " +
                    "VALUES ('" + fromCity + "', " +
                             "'"+ toCity   + "', " +
                             "'"+ fromDate + "', " +
                             "'"+ toDate   + "')";
    // Take a look at what was generated
    // to be sure it is what you want
    System.out.println(sql);                                 

  • Ms SQL syntax recognition

    Hi All,
    This is my first post so be gentle!
    I am using SQLDeveloper to connect to both Oracle and MS SQL at different times.
    The stable MS SQL scripts (legacy written in MS Query analyser) I have must be left as just that but I have a new requirement to be able to run them from SQLDeveloper and it seems that the parser will not accept the MS SQL syntax when connected to a MS SQL database. For example "declare @my_variable" is completely not allowed. I could of course change the slq to conform to oracle sql but I do not want to run two versions of the same code.
    Is there any way to tell SQLDeveloper to use MS SQL syntax when connected to a MS SQL database.
    Many thanks,
    James

    Hi James,
    SQLDeveloper cannot run T-SQL scripts.
    It can run individual statements:
    MySQL Example:
    If you connect to your MySQL connection you can perform the following
    /*sqldev:query*/show databases;
    /*sqldev:stmt*/use dermot;
    select database();
    /*sqldev:stmt*/use information_schema;
    select database();
    Sybase Example:
    /sqldev:query*/sp_help;
    http://dermotoneill.blogspot.co.uk/2010/11/workheet-hints.html
    Might be of use if you put your script into a stored procedure/function on the T-SQL side.
    Turloch
    -SQLDeveloper Team

  • Error in your SQL syntax........near '' at line 1

    i have a payment success page that should update the database when a payment is correct but am getting the error
    You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
    on the success.php page, i have looked at the code but cant seem to see the error, i have changed the ' ' to "" on line one but that didn't do it so was hoping someone could look and see the incorrect syntax
    <?php require_once('Connections/chic.php'); ?>
    <?php
    // *** Update the stock ***
    $details_table = "chicJewls_orderdetails";
    $ID_column = "UniqueID";
    $details_prodID = "ProductID";
    $details_qty = "Quantity";
    $XStock_TableName = "chicJewls_products";
    $XStock_FieldName = "Stock";
    $XStock_unID = "ProductID";
    if (!session_id()) session_start();
    if (isset($_SESSION["orderID"])) {
      mysql_select_db($database_chic, $chic);
      $details_Source = "select * from " .  $details_table . " where " . $ID_column . " = " . $_SESSION["orderID"];
      $detailsRS = mysql_query($details_Source, $chic) or die(mysql_error());
      $row_detailsRS = mysql_fetch_assoc($detailsRS);
      do {
        $XStock_qtySource = "select " . $XStock_FieldName . " from " .  $XStock_TableName . " where " . $XStock_unID . " = " .$row_detailsRS[$details_prodID] . "";
        $XStock_rsUpd = mysql_query($XStock_qtySource, $chic) or die(mysql_error());
        $row_XStock_rsUpd = mysql_fetch_assoc($XStock_rsUpd);
        if ($row_XStock_rsUpd[$XStock_FieldName] > 0) {
          $XStock_new = $row_XStock_rsUpd[$XStock_FieldName] - $row_detailsRS[$details_qty];
          if ($XStock_new < 0) $XStock_new = 0;
          $XStock_UpdSource = "update " . $XStock_TableName . " set " . $XStock_FieldName . " = " . $XStock_new . " where " . $XStock_unID . " = " .$row_detailsRS[$details_prodID] . "";
          $XStock_rsUpd = mysql_query($XStock_UpdSource, $chic) or die(mysql_error());
      } while ($row_detailsRS = mysql_fetch_assoc($detailsRS));
      $XStock_rsUpd = null;
      $detailsRS = null;
      session_unregister("orderID");
    ?>
    thanks in advance

    No, I'm talking about the dot before.
    Change this
    .$row_detailsRS[$details_prodID] . "";
    to this
    . $row_detailsRS[$details_prodID] . "";
    in both places.

  • Non riesco a ricevere acquisti fatti su itunes, mi da questo errore :erreu : you have an error in your sql syntax; checkthe manual that corresponds to your mysql server version for the right syntax to use near from news order by id desc at line. cosa devo

    non riesco a ricevere acquisti fatti su itunes, mi da questo errore :erreu : you have an error in your sql syntax; checkthe manual that corresponds to your mysql server version for the right syntax to use near from news order by id desc at line. cosa devo fare?  grazie

    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]

  • Oracle access sql syntax

    Hi,
    I am migrating access database to oracle 9i. Do you know of any changes to access sql syntax for it to use oracle backend?

    Very general question. It of course depends on the SQL you use. They are not 100% compatibile. The workbench will create the necessary link tables on your behalf, but you may need to update the SQL in you Access application code. Also you might have to tune your access application to work better in a client/server mode, e.g. if you where doing a join of two tables you would want that to occur on the server not on the client. This depends how you interface/bypass the jet engine. These issues are common whether the backend is Oracle or SQL Server for that matter.
    This should become obvious during your testing.
    Donal

  • After changing 'MS SQL server' service's user name SDAC doesn't work properly

    I've changed 'MS SQL Server' service user name
    from .\admin (have had such already) to network_services
    and now my oracle linked servers to Oracle instance stopped to work.
    Namely, 'Cannot create an instance of OLE DB provider "OraOLEDB.Oracle" for linked server Ora_RO'.
    In event log i see next:
    The machine-default permission settings do not grant Local Activation permission for the COM Server application with CLSID 
    {2206CDB0-19C1-11D1-89E0-00C04FD7A829}
     and APPID 
    {2206CDB0-19C1-11D1-89E0-00C04FD7A829}
     to the user NT AUTHORITY\NETWORK SERVICE SID (S-1-5-20) from address LocalHost (Using LRPC). This security permission can be modified using the Component Services administrative tool.
    So, MSDAINITIALIZE Class fails to start. I cannot locate this service under dcomcnfg. Could you help me?

    The error seems to be clear what is causing the issue, check this link to fix this issue
    Here the scenario is with SharePoint instead oracle so you can make out:-
    http://www.wictorwilen.se/Post/Fix-the-SharePoint-DCOM-10016-error-on-Windows-Server-2008-R2.aspx
    http://social.technet.microsoft.com/Forums/en-US/696204d5-b07e-46db-a785-737ea57b8da2/distributed-com-error-message
    Mark ANSWER if this reply resolves your query, If helpful then VOTE HELPFUL
    INSQLSERVER.COM
    Mohammad Nizamuddin

  • Sql syntax in jsp

    Hey All!
    Im trying ot use a a bean to select data from a table where email != ''
    The funny thing is my code works in one couple of jsp/bean but not in another, even though it's the exact same code.
    This works
    The Bean:
    String sql = "SELECT applicantid, firstname, lastname, dob, " +
    "homestreet, homestate, homecity, homezip, " +
    "email, college, major, standing, " +
    "graddate, schstreet, schcity, schstate, " +
    "schzip, schphone, resOne, resTwo, " +
    "resThree, waiver, bioletter, password, " +
    "homephone " +
    "FROM apptest " +
    "WHERE " + filter + " " +
    "ORDER BY " + orderBy;
    The filter is the String "email != ''" and orderBy ="lastname"
    Works perfectly!
    But when I use similar code for another table
    Code:
    String sql = "SELECT providerid, applicantid, pin, title, " +
    "company, firstname, lastname, phone, " +
    "email, recletter " +
    "FROM provtest " +
    "WHERE " + filter + " " +
    "ORDER BY " + orderBy;
    with filter as "email != '' " and orderBy = "lastname"
    I get the following error:
    Error in findRecords ProviderUtility(Syntax error or access violation, message from server: "You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1")
    Keep in mind that email != '' (these are single quotes)
    I am really baffled.
    Ike

    "The funny thing is my code works in one couple of jsp/bean but not in another, even though it's the exact same code."
    If it's EXACTLY the same code, what did you need another bean for?
    If you needed a new bean, then it's not exactly the same.
    Why aren't you using PreparedStatement to escape strings and dates for you?
    Believe the engine when it tells you there's a mistake.
    %

  • Change automatic SQL Tuning Advisor time

    Hi All,
    can anyone help me in changing "automatic SQL Tuning Advisor" job timingsm because currently it is scheduled during peak hours , i want to change it to evening 6 pm daily.Because during peak hours it is taking more cpu and taking one hour.
    Wed May 08 08:00:10 2013
    Begin automatic SQL Tuning Advisor run for special tuning task "SYS_AUTO_SQL_TUNING_TASK"
    Wed May 08 08:05:47 2013
    thanks
    Mapps

    Hello,
    Here's what you can do,
    Create a new window to the time you want it to run:
    EXEC dbms_scheduler.create_window(window_name => 'YOUR_WINDOW_NAME',
    duration => numtodsinterval(1, 'hour'),
    resource_plan => 'DEFAULT_MAINTENANCE_PLAN',
    repeat_interval => 'FREQ=DAILY;BYHOUR=18;BYMINUTE=0;BYSECOND=0');>
    The above window would be in effect from 6 pm to 7 pm.
    Then, disable automatic sql_tuning and then re-enable it to run on the window you just created:
    EXEC DBMS_AUTO_TASK_ADMIN.DISABLE(client_name => 'sql tuning advisor',
    operation => NULL,
    window_name => NULL);>
    and now set it to run to your window:
    EXEC DBMS_AUTO_TASK_ADMIN.ENABLE(client_name => 'sql tuning advisor',
    operation => NULL,
    window_name => 'YOUR_WINDOW_NAME');

  • Error in SQL syntax

    Hi all,
    I have an SQL database which up untli about 20 minutes ago was fine.  I have a complex contact form whic is (was) all finished.  I have added a couple more tables to the database (now totalling 4), in order to create a registration / login page.
    (Is it okay to have 4 tables in 1 database?)
    Anyway.  I have just finished with the login stuff and all works fine.  I decided to have a quick look around the site and make sure everything is okay - but for some reason when I navigate to the "complex contact form" - I get this message:
    You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ASCE LIMIT 0, 150' at line 1
    The registration wizard and login pages still work, and in general the site is browseable.  But this page will not work and I have no idea why?
    Does anyone have any suggestion?  All I have done since it worked is add 2 other tables as I said....
    Thank you / please help!
    NJ

    There was a typo in my previous post. There should be only one $ in $query_recordsetName. I should also have added that "recordsetName" is the name of your recordset. I would have thought it was obvious, but I see you're limiting the number of results, so the name is slightly different.
    The other thing is that you have not put it where I told you. Apart from that...
    $query_rscontacts1 = "SELECT contacts.Logo, contacts.Industries,
    contacts.coverage, contacts.misc, contacts.id, contacts.email,
    contacts.website FROM contacts WHERE {$NXTFilter_rscontacts1} ORDER BY
    {$NXTSort_rscontacts1}";
    $query_limit_rscontacts1 = sprintf("%s LIMIT %d, %d", $query_rscontacts1, $startRow_rscontacts1, $maxRows_rscontacts1);
    echo $query_limit_rscontacts1 . '<br />';
    $rscontacts1 = mysql_query($query_limit_rscontacts1, $Contacts) or die(mysql_error());

  • Error with SQL syntax

    I'm trying to get onto a website i could normally get into but all it says is this
    you have an error in your SQL syntax;check the manual that corresponds to your MySQL server version for the right syntax to use near') and adlx.'action' !=  2' at line 1
    I'm not good with computers and I've never heard of this i need some help, I may just be stupid but i seriously need some help here
    preferably instructions for a hp computer

    This looks to be an error with the web site you are visiting, not a problem with your PC.  I suggest you contact the web site owner.  The error suggests a problem with programming against a MySQL database, which is not a Microsoft technology.
    Dan Guzman, SQL Server MVP, http://www.dbdelta.com

  • ANSI SQL Syntax - What belongs to join-clause and what to where-clause

    Hello,
    we currently have a discussion about the ANSI SQL Syntax where we do not agree what belongs to the join clause and what belongs to the where clause in an ANSI Sytnax SQL Query.
    Lets say there is a query like this:
    +SELECT *+
    FROM employees emp, departments dept
    WHERE emp.dept_country = dept.dept_country
    AND emp.dept_name = dept.dept_name
    AND dept.dept_type = 'HQ'
    AND emp.emp_lastname = 'Smith'
    Primary key of the departments table is on the columns dept_country, dept_name and dept_type. We have a Oracle database 10g.
    Now I have rewritten the query to Ansi Syntax:
    +SELECT *+
    FROM employees emp
    JOIN departments dept
    ON emp.dept_country = dept.dept_country AND emp.dept_name = dept.dept_name
    WHERE dept.dept_type = 'HQ'
    AND emp.emp_lastname = 'Smith'
    Another developer says that this is not completely correct, every filter on a column that belongs to the primary-key of the joined table has to be in the join clause, like this:
    +SELECT *+
    FROM employees emp
    JOIN departments dept
    +ON emp.dept_country = dept.dept_country AND emp.dept_name = dept.dept_name AND dept.dept_type = 'HQ'
    WHERE emp.emp_lastname = 'Smith'
    Can somebody tell me which on is correct?
    Is there any definition for that? I couldn't find it in the Oracle Database definition.
    I just found out the names of the ANSI documents here: http://docs.oracle.com/cd/B19306_01/server.102/b14200/ap_standard_sql001.htm#i11939
    I had a look at the ANSI webstore but there you have to buy the PDF files. In my case thats exaggerated because both of the Queries work and i am just interessted if there is one correct way.
    Thank you in advance
    Marco

    Hi,
    As i guideline i would say, answer the question: should the result of the join be filtered or should only filtered rows be joined from a particular table?
    This is helpful in the case of outer joins also, for inner joins it doesnt matters as said already be former posters, where there may be hughe semantical differences depending of where the predicates are placed.
    From performance view, if we talk about oracle, take a look a the execution plans. You will see that there is (probably) no difference in case of inner joins. Even in case of outer joins the optimizer pushes the predicate as a filter towards the table if it semantically possible.
    Regards

  • SQL syntax error...

    SQL Syntax:
    select ename||'-'||job from emp
    Initially, I was using the .Net Framework Data Provider for Oracle and had no problem bringing up the Query Builder in VS 2008. However, when I use the ODP .Net from Oracle, I get an error when bringing up the Query Builder:
    Error in SELECT clause: expression near '|'.
    Unable to parse query text.
    It seems like when uing ODP .Net, it does not like the concatenation in the Select statment.
    Any clue why?

    Is this consistently reproducible for you? Is it query builder specific? What version of ODP are you using? I just tried this with 11.1.6.20 ODP and it worked fine..
    Cheers
    Greg
    using System;
    using System.Data;
    using Oracle.DataAccess.Client;
    class Program
        static void Main(string[] args)
            using (OracleConnection con = new OracleConnection("data source=orcl;user id=scott;password=tiger"))
                con.Open();
                using (OracleCommand cmd = new OracleCommand("select ename||'-'||job from emp", con))
                    Console.WriteLine(cmd.ExecuteScalar().ToString());
    }

Maybe you are looking for

  • Free Issue material

    We have a following scenario in case of subcontracting PO/Bought PO. Case I :- 1)  We need to supply Jig/Fixture or some measuring tool at vendors place which are returnable. How can we manage it through subcontracting PO ? or suggest any other alter

  • Co code not seen for cost center master data creation in OKEON

    hI:            In org tab of Cost center master data creation while configuring cost center hierarchy in OKEON i can not see organization tab. I have checked in OKKP Co area is assigned to co code but still the issue persist. Br

  • Mac Mini and Airport

    I do not know where to put this topic, but the airport section didn't seem to deal with internal airport cards Anyways, I receive an internet signal via ethernet, and want to transmit it to a PC through my airport card. I can do that, but only unsecu

  • Best way to Export HD footage for SD DVD

    Hi all, I have a Sony HDV-HC7 camera and record everything in HD. I've captured the footage into final cut pro as HDV - 1080i60, then did some editing on the time line. Then, I went to File + Export + QuickTime Movie... This is where I'm lost. What s

  • Saving data for iphone & ipod

    I'm upgrading windows xp to windows 7 so i'm doing a clean install. I want to backup all of my data in itunes for my phone and ipod. i'm not worried about my music and playlists, but i do want to save my apps, data and settings for my phone and games