I suggest you ...

Edit database tables directly from CMSSiteManager.

We come upon some common situations where we need to edit some rows in the db, but don't have access to db using SQL Server Management Studio. For such scenarios editing db contents directly from Kentico panel would be very handy.

6 votes
Vote 0 votes Vote Vote
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    I agree to the terms of service

    You'll receive a confirmation email with a link to create a password (optional).

    Signed in as (Sign out)
    You have left! (?) (thinking…)
    AnarAnar shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →
    under review

    7 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service

      You'll receive a confirmation email with a link to create a password (optional).

      Signed in as (Sign out)
      Submitting...
      • Martin Hejtmanek (CTO)AdminMartin Hejtmanek (CTO) (Admin, Kentico CMS) commented  ·   ·  Flag as inappropriate

        I was refering to your second scenario which are actions that you typically do not want to do just once, and where the report makes actually more sense than an empty textbox where you need to put query every time. We will see what we can do about it, but probably later than sooner, we have other priorities for version 7.

      • AnarAnar commented  ·   ·  Flag as inappropriate

        I was trying to point out that creating a report for running queries is not very practical.

      • AnarAnar commented  ·   ·  Flag as inappropriate

        1) Sounds great.
        2) Do we have to define/create new reports for that or is there a texarea where we enter our query and see query execution results right away?

      • Martin Hejtmanek (CTO)AdminMartin Hejtmanek (CTO) (Admin, Kentico CMS) commented  ·   ·  Flag as inappropriate

        Thanks for clarification. Still, I am afraid of breaking the data, so I would prefer to solve these kinds of situations differently, how about this:

        1) Be able to define the custom table that is built on existing table in DB without changing it's structure?

        2) Allow for read-only view of the database objects (well technically this can be done with reporting module as well, so it may be actually better to use that right away)

      • AnarAnar commented  ·   ·  Flag as inappropriate

        Honestly, you are right about potential dangers. But there might arise certain cases when one might need it:
        1. If you have a non-Kentico table in your DB, the only chance to access data is by writing a .NET code.
        2. If you want to run a SELECT query. Let say, you want to see the list of documents that are hidden in sitemap. Or if you want to list books whose author is not set where books are under different book category nodes in content tree.
        ...and similar scenarios that I cannot think of right now.

        P.S.: I want to remind you that, these are valid if your hosting environment does not provide you an SQL Server Management Studio access.

      • Martin Hejtmanek (CTO)AdminMartin Hejtmanek (CTO) (Admin, Kentico CMS) commented  ·   ·  Flag as inappropriate

        We are just little afraid that by putting this to the admin UI we would encourage the users to use it and potentially make their data inconsistent. Could you please tell me some specific typical scenarios when this is needed? I am not saying we won't do that, but I need some reasoning behind it to understand.

      Knowledge Base and Helpdesk