Forum Replies Created

Viewing 15 posts - 4,291 through 4,305 (of 7,164 total)

  • RE: How to Add Parent Table Record Id in Child Table Using Foreign Key

    Grant Fritchey (4/27/2012)


    I'm not so sure I'd use a trigger. Those things are notorious performance and maintenance headaches.

    What about using the OUTPUT clause. You can output the IDs generated from...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: SQL Server Locking Up

    Thanks. From those numbers it looks like you need to set max memory for the buffer pool. You have it at 2097152GB, which in peak usage times will allow SQL...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: How to Add Parent Table Record Id in Child Table Using Foreign Key

    Gopal Singh (4/26/2012)


    Hello,

    I have one parent & child table and i have make relation ship using a foreign key. Primary key in parent table is forein key in child table.

    So...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: return multiple columns based on single CASE evaluation

    It's kind of tough to visualize with no DDL, sample data and desired results to infer your requirement and test code against...can you provide that?

    Some guesses though...initial thought was two...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Basic permissions for read/write/update/delete records only

    Security is a big topic in SQL Server...but for a simple approach abide by the notion that "a database user should only be able to do what is needed to...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Facet field not permitted in EXECUTESQL() statement

    My first thought was to check the Login facet @sid property to see if it was NULL, but that turned out to be harder than it should have been. Then...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Converting user defined functions to system defined functions

    Allow user defined functions to be called in the same manner as Builtin functions

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Determine whether a database was ever upgraded?

    Just looking out in case you were now supporting a database that originated on 2000 and had some impure data. I inherited a bunch of 2000 DBs a while back...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Determine whether a database was ever upgraded?

    It's a good idea to make sure Data Purity was run cleanly since the upgrade. The info is on the same page Gail pointed you to 😉

    CHECKDB From Every Angle:...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Create a database from a SQL Server 2000 .bak file

    Note that just restoring the database will not make it fully operational on the 2008R2 instance. You also need to make sure you transfer the Server Logins used within that...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Stored Procedure taking more time to execute (Sql Server 2005)

    Test_plan-1.sqlplan

    It looks like you could benefit from an index on Users.ID that INCLUDEs email but I need to see the DDL to be sure. Can you please provide the DDL...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Application Role and Stored Procedure

    What does the proc do? It, or something else in the stack, may be changing your security context using EXECUTE AS or sp_unsetapprole. Can you post the procedure code?

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: function/code ??

    DBCS is not natively supported in SQL Server, only ANSI (CHAR & VARCHAR) as well as Unicode (NCHAR & NVARCHAR). If you want to store DBCS in SQL Server it...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: function/code ??

    Still no answers on desired Collation of returned VARCHAR types...no answer to answer potential substitution issues if no E/ASCII code point is found...no answer on how exactly to strip apart...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: If proc1 calls procB, can proc1 complete without waiting for procB?

    +1 for Service Broker (SB)...the use-case described might be the most common of all. And no, no concerns about reliability, Microsoft uses SB within the SQL Server Database Mail subsystem,...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

Viewing 15 posts - 4,291 through 4,305 (of 7,164 total)