Forum Replies Created

Viewing 15 posts - 15,766 through 15,780 (of 18,926 total)

  • RE: Dynamic record counting

    Will be simpler for me to do the package... give me a few hours, I have something else to do first.

  • RE: Simple Syntax Problem

    Now I would call that a bug .

    Thanx for the info.

  • RE: Dynamic record counting

    Yes it does. If you read correctly I have a : for each field in myrs.Fields()

    This will work if you have 0 to X nullable columns and...

  • RE: Simple Syntax Problem

    Maybe you should drop him a line to have a confirmation... you wouldn't want to say something on his behalf that he doesn't approve of

  • RE: Simple Syntax Problem

    When did he say that?

  • RE: Dynamic record counting

    Before someone else complains (not you)

    I'd still do it set based on dts :

    Select col1, col2, coln ....

    then using a...

  • RE: Simple Syntax Problem

    Don't know either why it doesn't work, it should work with top 100 percent but it obviously doesn't.

    As I said the tables have no order. You need to put...

  • RE: Dynamic record counting

    Just change the 'No' to yes in the previous query to get the nullable columns (all others will have 100% so no need to count them).

    Then the query would look...

  • RE: Dynamic record counting

    Before someone else complains :

    Select C.TABLE_NAME, C.COLUMN_NAME from Information_Schema.COLUMNS C inner join Information_Schema.TABLES T ON C.TABLE_NAME = T.TABLE_NAME where C.IS_NULLABLE = 'No' AND T.TABLE_TYPE = 'BASE TABLE' ORDER BY...

  • RE: Dynamic record counting

    for questions A :

    Select O.Name, C.name from dbo.SysObjects O inner join dbo.SysColumns C on O.id = C.id and O.XType = 'U' and C.IsNullable = 0 order by O.Name, C.Name

  • RE: Dynamic record counting

    Count the number of non null fields per table?

    or count the number of rows where the data is not null?

  • RE: Simple Syntax Problem

    CREATE TABLE #PolicyList

    (PlanNo Char(12) NOT NULL,

    PolicyHolder1 Integer NOT NULL,

    PolicyHolder2 Integer NULL,

    CorrespondenceClient Integer NULL)

    ALTER TABLE #PolicyList WITH NOCHECK ADD

    CONSTRAINT PK_#PolicyList PRIMARY KEY CLUSTERED (PlanNo) WITH FILLFACTOR = 100

    /* Code to populate...

  • RE: Dynamic record counting

    Sure show me how to do this with the information_Schema views .

    There are exceptions to the dynamic sql rule

  • RE: Dynamic record counting

    Did you try the set based approach?

  • RE: Duration in SQL Profiler

    The real question here is... is it fast enough rom the application side to satisfy the needs of the users. If not then you have a problem, otherwise I...

Viewing 15 posts - 15,766 through 15,780 (of 18,926 total)