Forum Replies Created

Viewing 15 posts - 286 through 300 (of 2,645 total)

  • Reply To: How to speed up this?

    Do you know which index takes the longest to create or are they both about the same?

    You can use MAXDOP in the options when creating an index, which might speed...

  • Reply To: Provide access to View Vs Tables

    On one of our systems we don't give any permissions to any tables or views to users, users only get permissions to a specific list of stored procedures.

  • Reply To: Can find the issue for join that does not work

    yrstruly wrote:

    For my final table i would like an inner join consisting of the columns/tables of my Temp table. You mentioned i can do an inner join to avoid nulls? 

    If...

  • Reply To: Can find the issue for join that does not work

    The temp table needs to have all the columns in the select.

    After the first insert into the temp table you just insert rows that don't already exist in the temp...

  • Reply To: Can find the issue for join that does not work

    yrstruly wrote:

    Does this solve the issue of the NULL columns and would i still need to do the UNION as described in the requirements/tasks?

    I think it should solve your issues...

  • Reply To: Can find the issue for join that does not work

    Create a temporary table with these columns

    "ZTBR_TransactionCode",
    "Company_Code",
    "Posting_Period",
    "Fiscal_Year",
    "Profit_Center",
    "Account_Number",
    "Business_Process",
    "Internal_Order",
    "Trading_Partner",
    "Amount_in_Company_Code_Currency",
    "Company_Code_Currency",
    "BRACS_FA",
    "Expense_Type",
    "BRACS_ACCT_Key",
    "CC_Direct",
    "Segment_PC",
    "CC_Master_FA",
    "Region_Secondary_Key",
    "Direct_Indirect_Secondary_Key",
    "Source_Description_Secondary_Key",
    "Entity_Secondary_Key",
    "Master_BRACS_Secondary_Key",
    "Acct Type",
    "Level 1",
    "Level 2",
    "Level 3",
    "GCoA",
    "Account Desc",
    "EXPENSE FLAG",
    "BRACS",
    "BRACS_DESC",
    "Primary_ZTBR_TransactionCode",
    "BRACS Account Description",
    "CLASSIFICATION",
    "Direct_Primary_Key"

    Insert the rows from the fist query into the temp table

    Then insert the...

  • Reply To: Can find the issue for join that does not work

    You could create a temporary table.

    Then insert the rows from each query into the temporary table with a WHERE NOT EXSITS (SELECT * FROM temp_table_name WHERE ...) at the end...

  • Reply To: Can find the issue for join that does not work

    Well is says in the spec you should do a UNION of selects.

    So I would think you can just have several select statements with inner joins and UNION ALL them...

  • Reply To: Can find the issue for join that does not work

    If you follow the Kimball methodology for dimension tables you will include rows with keys with negative values in the dimension table, then you have values in the FK columns...

  • Reply To: Database Query Optimization: How to Improve Query Performance in SQL

    ScottPletcher wrote:

    If you are going to do that -- and then keep modifying that index endlessly as the base query add columns and otherwise changes -- you might as well...

  • Reply To: Database Query Optimization: How to Improve Query Performance in SQL

    You could add an index:

    CREATE INDEX IX_users_1 ON users(registration_date) INCLUDE (first_name, last_name, email);

    If you're not sure what to do just put the query in a script and...

  • Reply To: Move DB

    Jeff Moden wrote:

    Jonathan AC Roberts wrote:

    Jeff Moden wrote:

    Jonathan AC Roberts wrote:

    If you are only moving the application databases (not the system databases). You can just detach the databases, move the database files to a different location...

  • Reply To: Move DB

    Jeffrey Williams wrote:

    I find it to be much easier t0 update the file locations directly - take the database offline - move the files and then bring the database online.  Detaching...

  • Reply To: Move DB

    Jeff Moden wrote:

    Jonathan AC Roberts wrote:

    If you are only moving the application databases (not the system databases). You can just detach the databases, move the database files to a different location then just...

  • Reply To: Move DB

    If you are only moving the application databases (not the system databases). You can just detach the databases, move the database files to a different location then just Attach to...

Viewing 15 posts - 286 through 300 (of 2,645 total)