Forum Replies Created

Viewing 15 posts - 2,341 through 2,355 (of 2,894 total)

  • RE: Query on Linked Server fails when using a table alias?? Help!

    What version of SQLServer you are running?

    I have tried:

    select cd.* from [SERVERNAME].[master].[sys].[tables] cd

    And it does work fine as expected.

    Actually, should mention the following if your query uses joins between...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: Generate CLuster IDs based on 2 columns

    Sean Lange (7/26/2011)


    I am thinking there has to be a set based solution to this but my brain is too full with my own stuff today. πŸ˜‰

    ...

    There is...

    At least one,...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: sql server optimize statement

    In your case it's very simple:

    You just need to apply query optimisation techniques and your query will fly.

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: Generate CLuster IDs based on 2 columns

    andrei.burdun (7/26/2011)


    Thanks, but if I insert into tbl1 the following row in addition to your rows, the approach will not work anymore:

    insert into tbl1 values

    (null, '10', '1');

    This row should...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: can i join a table valued function with a table?

    Simple answer is Yes you can join to TVF (actually is main reason it was designed for).

    Example:

    CREATE FUNCTION fn_List ( @p1 int ) RETURNS TABLE

    AS

    RETURN

    (

    SELECT @p1 AS...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: Generate CLuster IDs based on 2 columns

    I've found your sample inconsistent. I guess you will have all pairs of related Id's

    I have updated your sample to have all ID pairs. However my query should work...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: Generate CLuster IDs based on 2 columns

    What cluster Id you would give to company named as "Alfa Beta Omega Ltd"?

    Do you check company names do match by the first word only?

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: CSV file as source for SSIS package with datestamp

    In this case I do usually use ForEach loop container and simply copy the file into β€œWork” folder and renaming it to the fixed name. Then connection can be configured...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: Optimization strategy?!

    frfernan (9/30/2010)


    Eugene Elutin (9/29/2010)


    1. Your "Movements" table example looks very familiar to me (and I guess to many who worked with transactional data). From practical prospective I can say that...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: Index question for a monthly summary table

    1. If your clustered index is period and project_code, you better not insert anything which will be placed between existing data. Also, as you insert all data will be sorted...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: Index question for a monthly summary table

    The best thing I would suggest is to try insert all 8000 rows once (or in batches) with all required data populated.

    If it is absolutely impossible in your case, I...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: Optimization strategy?!

    Post edited...

    He is so well known that even googling for "Joe Celco" will find him easely! πŸ˜‰

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: Optimization strategy?!

    frfernan (9/29/2010)


    ...

    At end of day, if you need to consolidate all movements (money movements, or warehouse movements) for this day - or week, or month -, you probably will start...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: Index question for a monthly summary table

    Nevyn (9/29/2010)


    ...

    On the subject of non-clustered indexes, the issue would be the number of columns to be included. Even though they are only at the leaf level, it seems...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: Index question for a monthly summary table

    Nevyn (9/29/2010)


    ...NOTE: I have considered the idea of having an identity column for primary key and clustered index, and using a non-clustered index for this, but the issue is that...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

Viewing 15 posts - 2,341 through 2,355 (of 2,894 total)