As was foretold, we've added advertisements to the forums! If you have questions, or if you encounter any bugs, please visit this thread: https://forums.penny-arcade.com/discussion/240191/forum-advertisement-faq-and-reports-thread/
Options

Any DBAs in the house? (ODBC question)

So i am trying to get a "live feed" of a few tables in our GL system (account master, vendor master, customer master). the SysAdmins will not allow me to directly connect an Access DB (over ODBC) to the tables to do this. so instead, they've created a query that runs every 10 minutes to update a CSV file out on a shared drive. unfortunately, this means i can't connect excel files to it without opening the file itself, which is a pain. however, i have been able to link to it via Access, so i may try to work around that. in addition, our vendor file has commas in the description (employees are displayed as "Smith, John") of certain vendors, which blows the columns up, and renders that feed pretty much useless. They have told me they are unable to get the data to produce an excel file, only csv. is there a good argument to convince system administrators to allow ODBC connections to SQL DBs? i only want read access, so there should be no data integrity concerns. I'm just trying to build some tools that will automate/improve some of our current manual processes.

I'm starting to wonder if this job has me too locked down for my liking.

Posts

  • Options
    bowenbowen How you doin'? Registered User regular
    I don't see a problem.

    They could just set up a read only username. CSV can't really be used with comma in text fields, I mean it can, but it's a nightmare. Tab delimited is what you should use if you have that kind of data.

    I can see where they're coming from, export to an excel is often times not a thing that can be done.

    ODBC shouldn't be a concern, especially if you want read only access. If your DBAs won't give you that, then you should petition for new DBAs.

    not a doctor, not a lawyer, examples I use may not be fully researched so don't take out of context plz, don't @ me
  • Options
    Dr. FrenchensteinDr. Frenchenstein Registered User regular
    that's what i thought! when i suggested ODBC connection you'd think i proposed eating a puppy.

  • Options
    bowenbowen How you doin'? Registered User regular
    edited October 2014
    What happens when you propose using a username with readonly access to the tables in question, what's their issue with that?

    Edit: If this is SQL Server, they'd need to do user mapping to the DB in question, and give you db_datareader IIRC.

    MySQL lets you choose which kind of things you want to give them access to (select on tables and views, etc).

    They'll probably take offense to my use of 'readonly', probably, as their first line of defense.

    bowen on
    not a doctor, not a lawyer, examples I use may not be fully researched so don't take out of context plz, don't @ me
  • Options
    schussschuss Registered User regular
    There can be performance concerns with hitting a table with ODBC that's being touched by a live application, but you can easily set it up so there's no lock contention (usually the biggest concern). What I would do is see if they can take the process for the CSV and just have it replicate to another set of tables on the server, as then there's less risk of anything bad happening performance-wise. Other than that, there's no reason you can't setup a view that does a select with UR or something similar so you can't hurt the data or contend for data page or table locks.

  • Options
    CogCog What'd you expect? Registered User regular
    It'd be helpful if they could articulate their reasoning beyond just "lul no".

    On the surface, it sounds like they're just being lazy.

  • Options
    Inquisitor77Inquisitor77 2 x Penny Arcade Fight Club Champion A fixed point in space and timeRegistered User regular
    If it's like any other corporate environment, chances are that it's just a blanket rule being enforced mindlessly.

    Just don't let your frustration get to you. There's a way to be naggy without being an asshole, and that's usually the best way to push through these kinds of road blocks. Keep asking if it's possible, who you need to talk to, what kind of information they need, etc. etc. etc. in the nicest way possible. At some point, you'll be handed down the line until you get to someone who can actually definitively give you an answer of yes or no. This way, if they say no, at least you know you're hearing it from the right person and not just some jackass who just doesn't want to spend more than 5 minutes thinking about it.

  • Options
    bowenbowen How you doin'? Registered User regular
    Cog wrote: »
    It'd be helpful if they could articulate their reasoning beyond just "lul no".

    On the surface, it sounds like they're just being lazy.

    For sure.

    If it's like any other corporate environment, chances are that it's just a blanket rule being enforced mindlessly.

    Just don't let your frustration get to you. There's a way to be naggy without being an asshole, and that's usually the best way to push through these kinds of road blocks. Keep asking if it's possible, who you need to talk to, what kind of information they need, etc. etc. etc. in the nicest way possible. At some point, you'll be handed down the line until you get to someone who can actually definitively give you an answer of yes or no. This way, if they say no, at least you know you're hearing it from the right person and not just some jackass who just doesn't want to spend more than 5 minutes thinking about it.

    In my experience they'd say, "Sorry it's against policy to do such a thing, best I can do is _____"

    The fact that they're giving him an export means it's probably kosher, they're just lazy and don't want to do anything.

    not a doctor, not a lawyer, examples I use may not be fully researched so don't take out of context plz, don't @ me
  • Options
    PapillonPapillon Registered User regular
    bowen wrote: »
    The fact that they're giving him an export means it's probably kosher, they're just lazy and don't want to do anything.

    Where "lazy" may actually be overworked. As a developer, I find myself saying no, or maybe in 3 months even for easy things, just because I have higher priority work that stretches out that far.

  • Options
    bowenbowen How you doin'? Registered User regular
    I dunno, as a developer and system admin, I'd probably be okay with doing 3 minutes of work if they bought me a slice of pizza for lunch or something.

    not a doctor, not a lawyer, examples I use may not be fully researched so don't take out of context plz, don't @ me
  • Options
    schussschuss Registered User regular
    Papillon wrote: »
    bowen wrote: »
    The fact that they're giving him an export means it's probably kosher, they're just lazy and don't want to do anything.

    Where "lazy" may actually be overworked. As a developer, I find myself saying no, or maybe in 3 months even for easy things, just because I have higher priority work that stretches out that far.

    If that's the case, your answer should be "not right now". Answering "No" gives your users/stakeholders/business the wrong impression.

Sign In or Register to comment.