+ Reply to Thread
Results 1 to 9 of 9
  1. #1
    Member
    Join Date
    Mar 2005
    Posts
    93

    Red face Insert DB users by script/code

     
    Hello all

    I am not sure if this can be done...

    Can you insert a DBO or DBA (database user/admin) by scripts or visual basic code? Can these users be created like this?

    Thank you for your smart answers!!!

  2. #2
    Ultimate Member EXreaction's Avatar
    Join Date
    Aug 2003
    Location
    Madison, WI
    Posts
    15,225
    Blog Entries
    1
    If you can do it manually it can be done with a script.
    "The problem with quotations on the internet is that the sources are hard to verify" - Abraham Lincoln

  3. #3
    Member
    Join Date
    Mar 2005
    Posts
    93
    Thank you for your reply!

    That's what I think but haven't been able to pull it.

    Do you have an idea on how to ?

    Thank you,

  4. #4
    Ultimate Member EXreaction's Avatar
    Join Date
    Aug 2003
    Location
    Madison, WI
    Posts
    15,225
    Blog Entries
    1
    All you really need to do is setup the script to connect to the database and then run the SQL queries you need to add the user/admin.

    I've never worked with databases through visual basic, so I can't tell you how. There are probably tons of tutorials if you search through google though.
    "The problem with quotations on the internet is that the sources are hard to verify" - Abraham Lincoln

  5. #5
    Caveat Emptor Rootstonian's Avatar
    Join Date
    Mar 2005
    Location
    Out of my mind
    Posts
    3,328
    That could depend on the interface too. If it's done via some type of web page or program or application, you have no idea (or maybe you do) what tirggers or procedures can be firing off in the background. A script will not be able to duplicate this (e.g. creating a hash value for a row entry).

  6. #6
    Ultimate Member EXreaction's Avatar
    Join Date
    Aug 2003
    Location
    Madison, WI
    Posts
    15,225
    Blog Entries
    1
    If a different script is currently being used to insert the data you'd of course have to figure out exactly what and how it is inserting the data as well.

    If a different script is inserting it you can still duplicate it as long as you know what things are happening with the data, like if a password is being hashed with md5 or something (which BTW is a very bad idea to use MD5 alone for passwords).
    "The problem with quotations on the internet is that the sources are hard to verify" - Abraham Lincoln

  7. #7
    Member
    Join Date
    Mar 2005
    Posts
    93
    So...

    I know I can add rows to a table I created. And I know how to do that.

    BUT...

    Can I add rows to a system database? not one I created but those that are managed by the server? like "sa" user...

  8. #8
    Caveat Emptor Rootstonian's Avatar
    Join Date
    Mar 2005
    Location
    Out of my mind
    Posts
    3,328
    Probably not. Depends on who's doing secuitry on the database. That person would grant SELECT, INSERT, DELETE etc. access on any given table. And usually a "system" table would not be updated by a user.

  9. #9
    Ultimate Member EXreaction's Avatar
    Join Date
    Aug 2003
    Location
    Madison, WI
    Posts
    15,225
    Blog Entries
    1
    If you setup the server to accept incoming connections from your IP address (by default, database systems should only accept local requests from the same machine for security) and have access to a user who has permission to insert rows then it should work.
    "The problem with quotations on the internet is that the sources are hard to verify" - Abraham Lincoln

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. "insert disk into E:
    By david.stewart in forum Storage Related
    Replies: 2
    Last Post: August 1st, 2008, 05:09 PM
  2. HELP!! INSERT BOOTABLE MEDIA?
    By shybajan4u in forum Technical Support
    Replies: 3
    Last Post: October 19th, 2005, 03:17 PM
  3. [FaDChatThur28] TT is... (insert word)
    By vikeor in forum Distributed Computing
    Replies: 43
    Last Post: July 29th, 2005, 05:24 PM
  4. Replies: 28
    Last Post: July 25th, 2002, 09:31 PM

Tags for this Thread

Posting Permissions

  • You may post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Recommended Sites: ResellerRatings Store Reviews