Forum Replies Created

Viewing 15 posts - 466 through 480 (of 789 total)

  • RE: Finding Tables that are Heaps?

    Michael Earl (1/9/2009)


    Dugi (1/9/2009)


    Use this Script to find the Tables without any Primary Keys or Clustered Indexes!

    SELECT c.name, b.name

    FROM sys.tables b

    INNER JOIN sys.schemas c ON b.schema_id = c.schema_id...

    ============================================================
    SELECT YOUR PROBLEM FROM SSC.com WHERE PROBLEM DESCRIPTION =
    http://www.sqlservercentral.com/articles/Best+Practices/61537/[/url]

  • RE: System Databases

    jameslester78 (1/9/2009)


    Adi Cohn (1/9/2009)


    jameslester78 (1/9/2009)


    i got it wrong, missed mssqlsystemresource, mainly because im a 2005 user.

    Actually the mssqlsystemresource was introduced at SQL Server 2005

    Adi

    oh, when i look in my system...

    ============================================================
    SELECT YOUR PROBLEM FROM SSC.com WHERE PROBLEM DESCRIPTION =
    http://www.sqlservercentral.com/articles/Best+Practices/61537/[/url]

  • RE: Updating values in a table based of table in another db

    Did you try the 2 little code above!?

    ============================================================
    SELECT YOUR PROBLEM FROM SSC.com WHERE PROBLEM DESCRIPTION =
    http://www.sqlservercentral.com/articles/Best+Practices/61537/[/url]

  • RE: Finding Tables that are Heaps?

    Use this Script to find the Tables without any Primary Keys or Clustered Indexes!

    SELECT c.name, b.name

    FROM sys.tables b

    INNER JOIN sys.schemas c ON b.schema_id = c.schema_id

    WHERE b.type =...

    ============================================================
    SELECT YOUR PROBLEM FROM SSC.com WHERE PROBLEM DESCRIPTION =
    http://www.sqlservercentral.com/articles/Best+Practices/61537/[/url]

  • RE: Select Statement

    Let say your table has 100 rec and the ID column withvalues 1,2,3,4,5...100

    so you write

    SELECT * FROM TABLE WHERE ID IN (2,3,24,1)

    Post more info for your problem!

    :hehe:

    ============================================================
    SELECT YOUR PROBLEM FROM SSC.com WHERE PROBLEM DESCRIPTION =
    http://www.sqlservercentral.com/articles/Best+Practices/61537/[/url]

  • RE: Insert scripts takes so much time ? Any alternative.

    barunkmallick (1/9/2009)


    you can use the below

    insert into

    select column1,column2 from

    Don't do double post just edit the post!

    ============================================================
    SELECT YOUR PROBLEM FROM SSC.com WHERE PROBLEM DESCRIPTION =
    http://www.sqlservercentral.com/articles/Best+Practices/61537/[/url]

  • RE: Loading data through insert scripts takes so much time.

    All reply should post here

    http://www.sqlservercentral.com/Forums/Topic633185-338-1.aspx

    Don't do double post!

    ================================================================================

    ============================================================
    SELECT YOUR PROBLEM FROM SSC.com WHERE PROBLEM DESCRIPTION =
    http://www.sqlservercentral.com/articles/Best+Practices/61537/[/url]

  • RE: System Databases

    Adi Cohn (1/9/2009)


    jameslester78 (1/9/2009)


    i got it wrong, missed mssqlsystemresource, mainly because im a 2005 user.

    Actually the mssqlsystemresource was introduced at SQL Server 2005

    Adi

    Yes the system databases in SQL Server 2005...

    ============================================================
    SELECT YOUR PROBLEM FROM SSC.com WHERE PROBLEM DESCRIPTION =
    http://www.sqlservercentral.com/articles/Best+Practices/61537/[/url]

  • RE: Did you find the job from SQL Jobs

    Anybody has info aobut that or anybody has success!?!:w00t:

    ============================================================
    SELECT YOUR PROBLEM FROM SSC.com WHERE PROBLEM DESCRIPTION =
    http://www.sqlservercentral.com/articles/Best+Practices/61537/[/url]

  • RE: Please Guide How To Restore Backup to new database?

    Ooooppsss I didn't see the "r" ...ok try with replace option during restoration !

    ============================================================
    SELECT YOUR PROBLEM FROM SSC.com WHERE PROBLEM DESCRIPTION =
    http://www.sqlservercentral.com/articles/Best+Practices/61537/[/url]

  • RE: Please Guide How To Restore Backup to new database?

    umer (1/8/2009)


    can anyone guide me how can i restore database backup of name "cbs_test" to new database "rmsdb" i have created backup of old database and when i try to...

    ============================================================
    SELECT YOUR PROBLEM FROM SSC.com WHERE PROBLEM DESCRIPTION =
    http://www.sqlservercentral.com/articles/Best+Practices/61537/[/url]

  • RE: Merge 2 access databse

    Gaurav (1/8/2009)


    Thanks for your reply

    I was able to merge two table however the final table has no more primary key and also in my database there is a relationship...

    ============================================================
    SELECT YOUR PROBLEM FROM SSC.com WHERE PROBLEM DESCRIPTION =
    http://www.sqlservercentral.com/articles/Best+Practices/61537/[/url]

  • RE: Updating values in a table based of table in another db

    ahall13 (1/8/2009)


    wow fast responses thanks, those examples are perfect.. is there any reson I would have a problem calling a KEY? for example I can select staff_id fine...

    ============================================================
    SELECT YOUR PROBLEM FROM SSC.com WHERE PROBLEM DESCRIPTION =
    http://www.sqlservercentral.com/articles/Best+Practices/61537/[/url]

  • RE: Updating values in a table based of table in another db

    or you can try like this:

    NEW OR your table is TAB1

    OLD OR the table with old values is TAB2

    the code should be like this:

    UPDATE TAB1

    SET new_amount = T2.old_amount

    FORM TAB1 T1,...

    ============================================================
    SELECT YOUR PROBLEM FROM SSC.com WHERE PROBLEM DESCRIPTION =
    http://www.sqlservercentral.com/articles/Best+Practices/61537/[/url]

  • RE: Updating values in a table based of table in another db

    If you want the best and the correct solution, post the structure of the tables and some sample data!!

    ============================================================
    SELECT YOUR PROBLEM FROM SSC.com WHERE PROBLEM DESCRIPTION =
    http://www.sqlservercentral.com/articles/Best+Practices/61537/[/url]

Viewing 15 posts - 466 through 480 (of 789 total)