PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 12/2/2008 1:57 PM by  Rod Weir
Editing multiple records
 1 Replies
AddThis - Bookmarking and Sharing Button
Sort:
You are not authorized to post a reply.
Author Messages
Knowledge Bird
Helpdesk leader
Helpdesk leader
Posts:57
Points:89


--
12/2/2008 1:39 PM

    I'm trying to tidy up inconsistences with our records in both the assets and clients dbs. Is tricky SQl the on the db itself the best way to handle that? For example, selecting any client records marked as external and changing them to internal. And on the assets - selecting any workstations and marking them as 'computer workstations'.

    Rod Weir
    HelpMaster development team
    Helpdesk Hall of Fame
    Helpdesk Hall of Fame
    Posts:555
    Points:1017


    --
    12/2/2008 1:57 PM
    Hi Aprill,

    Yes, tricky SQL is the way to go ;-)

    When dealing with "Bit" fields as both of these fields are remember that 0 = false, 1 = true.

    Here's how to get a list of all external clients
    Select * From tblClient Where IsInternal = 1 -- Finds all the clients marked as Internal

    The Update statement would go like this
    Update tblClient Set IsInternal = 1 Where [put your filter clause here...]

    For Assets

    Select * From tblAssets Where IsComputer = 0 -- Finds all the assets not marked as "Is Computer"
    Update tblAssets Set IsComputer = 1 Where [put your filter clause here...]


    Remember that there is no undo when executing SQL Update statements (unless you consider restoring a backup an undo), so please be careful and ensure that you use an appropriate "Where" clause to adequately limit the effects of the Update to only the records you want. Not specifying a "Where" clause will affect all records in the table.

    Best regards,

    Rod
    HelpMaster development team
    Check out the HelpMaster roadmap
    You are not authorized to post a reply.


    New version - HelpMaster v24 now available! by Rod Weir in Announcements with 0 replies A new major release of HelpMaster is now available! Read about some of the new features and improvements here:  https://docs.helpmasterpr...-f...

    New version - HelpMaster v23 now available! by Rod Weir in Announcements with 0 replies A new major release of HelpMaster is now available! Read about some of the new features and improvements here:  https://docs.helpmasterpro.com...

    March 2023 v22.7 maintenance release now available by Rod Weir in Announcements with 0 replies A maintenance release for v22.7 HelpMaster is now available! The maintenance release fixes a number of issues that have been reported since the ini...

    July 2022 release now available - New version released! by Rod Weir in Announcements with 0 replies A new feature release of HelpMaster is now available!  v22.7.22 For a list of the major new features of v22, see the new documentation site ht...

    June 2022 v22.2 maintenance release now available by Rod Weir in Announcements with 0 replies A maintenance release for v22.2 HelpMaster is now available! The maintenance release fixes a number of issues that have been reported since the ini...

    RE: Use PowerBI for HelpMaster dashboards by Rod Weir in Reports and reporting Hi SR, Thanks for the post. Yes, the PowerBI reports for HelpMaster have been well received. Download the latest version, from here. https://www...

    RE: Use PowerBI for HelpMaster dashboards by Scenic_Rim_IT in Reports and reporting Hi Rod - just wondering how PowerBI reports are going? Any chance you have a beta/pre-release version we can help test for you?...

    New version - HelpMaster v24 now available! by Rod Weir in Announcements A new major release of HelpMaster is now available! Read about some of the new features and improvements here:  https://docs.helpmasterpr...-f...

    New version - HelpMaster v23 now available! by Rod Weir in Announcements A new major release of HelpMaster is now available! Read about some of the new features and improvements here:  https://docs.helpmasterpro.com...

    March 2023 v22.7 maintenance release now available by Rod Weir in Announcements A maintenance release for v22.7 HelpMaster is now available! The maintenance release fixes a number of issues that have been reported since the ini...

    July 2022 release now available - New version released! by Rod Weir in Announcements A new feature release of HelpMaster is now available!  v22.7.22 For a list of the major new features of v22, see the new documentation site ht...

    June 2022 v22.2 maintenance release now available by Rod Weir in Announcements A maintenance release for v22.2 HelpMaster is now available! The maintenance release fixes a number of issues that have been reported since the ini...

    February 2022 release now available - New version released! by Rod Weir in Announcements A new major release of HelpMaster is now available! For a list of the major new features of v22, see the new documentation site https://docs.helpma...

    November 2021 release now available - New Major Version! by Rod Weir in Announcements A new major release of HelpMaster is now available! For a list of the major new features of v22, see the new documentation site https://docs.helpma...

    May 2021 release now available - New Major Version! by Rod Weir in Announcements A new major release of HelpMaster is now available! For a list of the major new features of v21, see the new documentation site https://docs.helpma...