Forum Replies Created

Viewing 15 posts - 7,156 through 7,170 (of 18,926 total)

  • RE: Suggestion on Foreign Key Constraint

    I've always kept the FKs, tho I've seen systems work well without 'em (microsoft application).

    When you use the diagrams of SMSS, the FK will allow you to see the relations...

  • RE: Shared SQL Server

    Svs2010 (2/8/2011)


    @ninja's- Yes we are thinking of getting the latest version only and have to make sure all other SQL servers can be upgraded and the applications supports them as...

  • RE: Suggestion on Foreign Key Constraint

    Yes you're right on the script part.

    Like I said I NEVER leave the keys out of the dev phase.

    And then I'm good enough at tuning that I don't need to...

  • RE: dynamic sql

    Grant Fritchey (2/8/2011)


    ericwenger1 (2/8/2011)


    I'm a dba at a shop that uses alot of embedded dynamic sql and I concerned about whether the dynamic sql will use a cached query plan....

  • RE: How To Get Table Row Counts Quickly And Painlessly

    CirquedeSQLeil (2/8/2011)


    homebrew01 (2/2/2011)


    No one has mentioned this method:

    select * from tableA

    then scroll down to the bottom to see how many rows there are

    :Whistling::w00t::hehe::-D

    Evil :-D:w00t::hehe:

    I'd just do SELECT * FROM dbo.TblA...

  • RE: Shared SQL Server

    Well now just to add to that list, you need to make sure the sql 7,8,9 dbs will work on 2008 R2 (assuming you buy the latest version of sql...

  • RE: Suggestion on Foreign Key Constraint

    What I meant is that I can't simply copy and paste the script you provided. It would fail because the 2nd create table happens after you try to build...

  • RE: VS 2008

    sqlgreenhand (2/5/2011)


    I have installed to add SSRS under my new setup Visual Studio 2008 Pro, but do not see the BI templates for SSIS, SSRS, SSAS. Could someone tell me...

  • RE: Shared SQL Server

    Steve Jones - SSC Editor (2/8/2011)


    Do you mean the alias?

    I tend to use FQDNs rather than client side aliases. So if I had cognos, Sharepoint, and ERP applications, I'd setup.

    -...

  • RE: Suggestion on Foreign Key Constraint

    Nothing wrong with that. I guess you simply forgot the index on Countryid in the usersinfo table.

    Also, the script in that sequense qill not work, so maybe we are...

  • RE: How to delete backups after the job rans

    Krasavita (2/8/2011)


    I can't specify there where my backups

    What do you mean???

    Yes you can provide a root folder. And then you have a option for recursive delete for all the...

  • RE: Suggestion on Foreign Key Constraint

    zubairmasoodi (2/8/2011)


    Thanks,

    but Logically speaking , Dont you think its wrong that it will not allow me to delete a record in UserInfo Table

    Country Table is Master Table, I am not...

  • RE: Suggestion on Foreign Key Constraint

    It only has to be a key in the countries table, not the other way around.

  • RE: Suggestion on Foreign Key Constraint

    And just to point out something else. You will be able to delete, but not TRUNCATE. The fk removes the ability to truncate, but that's all.

  • RE: Suggestion on Foreign Key Constraint

    zubairmasoodi (2/8/2011)


    Thanks for your quick reply

    I quote you

    "2 Improves db speed" and this is my primary motivation., but i wonder architecturally if its a good practice.

    Limitation here i see...

Viewing 15 posts - 7,156 through 7,170 (of 18,926 total)