Forum Replies Created

Viewing 15 posts - 3,631 through 3,645 (of 5,103 total)

  • RE: PKs using a Cursor

    OR:

    SELECT

      t.TABLE_SCHEMA

     ,t.TABLE_NAME

     ,tc.CONSTRAINT_NAME

     ,kcu.COLUMN_NAME

     ,kcu.ORDINAL_POSITION

    FROM

     INFORMATION_SCHEMA.TABLES t

     JOIN

     INFORMATION_SCHEMA.TABLE_CONSTRAINTS tc

     ON tc.TABLE_NAME = t.TABLE_NAME

     JOIN INFORMATION_SCHEMA.KEY_COLUMN_USAGE kcu

      ON TC.CONSTRAINT_CATALOG =KCU.CONSTRAINT_CATALOG

      AND TC.CONSTRAINT_SCHEMA =KCU.CONSTRAINT_SCHEMA

      AND TC.CONSTRAINT_NAME = KCU.CONSTRAINT_NAME

    WHERE

     tc.CONSTRAINT_TYPE = 'PRIMARY KEY'

    ORDER BY

      t.TABLE_NAME

     ,tc.CONSTRAINT_NAME

     , kcu.ORDINAL_POSITION

     

  • RE: Matching Values

    I also think that at least you should supply a maximum number of factors!

    it is very difficult to compute the roots for all avalable values. But if you still want...

  • RE: Versioning Rows for Point-in-time

    Oh and btw I do believe that Celco IS rude, specially with people that come to these forums asking for help and knowledge and happen to mention something that may...

  • RE: Dropping a Non clustered Index

    1. Not really the fact is that it still points to the clustered no materr how many columns or which it contains.

    2.Sure! the reason for the alters is that those indexes...

  • RE: Using Triggers

    It was very marked the difference between picked activity and non pick hours:

    When in normal(working hours) could drag the system for about 30min

    When scheduled (at night) 5 min will suffice

  • RE: Using Triggers

    To be honest those monsters are runned at scheduled times(because Everybody would suffer it if they were ad hoc) and hopefully nobody happen...

  • RE: Using Triggers

    Unfortunately, I can't do anything ( posting realated ), I signed a confidentiality agreement and not even the name of the company can be said here

  • RE: Using Triggers

    It can be possible to have that many tables (I've dealt with 1000's), I had to deal with the 240 limit many times because of the views of views of views......

  • RE: Using Triggers

    I know the feeling. It is almost a law in software:

    "There is never time to make it right, there is always time to do it over"

  • RE: Using Triggers

    Sorry, I noticed the Double post and as you can see I deleted it

     

     

  • RE: Using Triggers

    I know that what I am going to say you are not going to like but I feel imperative to be said because in the long run may make your...

  • RE: table variables or Temp tables which is better

    Yep! Was on vacation last week.

    Lots of rain in FL  but every minute of sun and beach that could be taken ... were taken...

  • RE: table variables or Temp tables which is better

    I didn't mean to imply that! ... just that the poster said:

    I am thinking of creating a table variable and pass that table variable to the stored procedure

    Because #temp is...

  • RE: table variables or Temp tables which is better

    AND table variable datatype is not permited as a procedure parameter!

     

  • RE: report to check the result for 10 consucutive minutes

    -- create table ids( n int)

    -- insert into ids (n) values (7535)

    -- insert into ids (n) values (7536)

    -- insert into ids (n) values (7537)

    -- insert into ids (n) values (7538)

    --...

Viewing 15 posts - 3,631 through 3,645 (of 5,103 total)