• talinkio (8/6/2014)


    I am curious what other people have done to implement read-only routing for a large number of procedures.

    Basically figuring out when to call procedures that are read-only with read-only intent.

    We have a user application that passes an encrypted string to a web service that directs it to our SQL Servers.

    I've been tasked with finding a way to make this happen without changing the application.

    The only thing I have been able to come up with is writing something (which I did) that will identify whether something is read-only or not and storing a big list.

    Then having the web service look up the given procedure and adding the intent where needed. I really hate the idea of calling SQL to figure out how to call SQL. It just seems backwards to me.

    Anyone have any better ideas or approaches?

    Thank you,

    Josh

    Can you elaborate on the question? Not sure what you mean by intent and read-only etc. I am sure it makes perfect sense since you are close to the situation but from the outside this doesn't provide enough information of what you are trying to do.

    _______________________________________________________________

    Need help? Help us help you.

    Read the article at http://www.sqlservercentral.com/articles/Best+Practices/61537/ for best practices on asking questions.

    Need to split a string? Try Jeff Modens splitter http://www.sqlservercentral.com/articles/Tally+Table/72993/.

    Cross Tabs and Pivots, Part 1 – Converting Rows to Columns - http://www.sqlservercentral.com/articles/T-SQL/63681/
    Cross Tabs and Pivots, Part 2 - Dynamic Cross Tabs - http://www.sqlservercentral.com/articles/Crosstab/65048/
    Understanding and Using APPLY (Part 1) - http://www.sqlservercentral.com/articles/APPLY/69953/
    Understanding and Using APPLY (Part 2) - http://www.sqlservercentral.com/articles/APPLY/69954/