Forum Replies Created

Viewing 15 posts - 2,311 through 2,325 (of 2,894 total)

  • RE: UPDATE multiple columns - Are column values calculated and updated in order specified?

    I think it does it always, otherwise "running total update" method wouldn't 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: Using aggregate function for datatime column

    Can you specify what your expected results should look like? Do you want to calculate how many hours employee did work each day or what?

    DDL with table setup and some...

    _____________________________________________
    "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: Niagara Falls

    cengland0 (8/1/2011)


    Eugene Elutin (8/1/2011)


    Can someone guess without executing what the following SQL will return on Canada like server setup (I have the UK one) 😀

    DECLARE @var varchar(max);

    SET @var =...

    _____________________________________________
    "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: Conversion failed when converting from a character string to uniqueidentifier.

    mahalaxmi.k62 (8/1/2011)


    Hi,

    In my query I have to compare two fields, one uniqueidentifier and the other nvarchar.

    Uniqueidentifier Field value is :

    the query in Where clause is:

    wpmp.grew_workproductmoduleprofilesid in

    (select grew_includemodules from...

    _____________________________________________
    "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: Niagara Falls

    Can someone guess without executing what the following SQL will return on Canada like server setup (I have the UK one) 😀

    DECLARE @var varchar(max);

    SET @var = 'Hello World';

    SELECT...

    _____________________________________________
    "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: Adhoc vs stored procedure

    The query looks like the reporting 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: view directory

    Map the drive or use full path :

    \\machinename\c$ ...

    But, why are you using SQL for this? PowerShell or old dos-batch are designed exactly fo the purpose you have.

    _____________________________________________
    "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: Insert data to a temp table from a SP which is returning 2 recordset

    C.K.Shaiju (7/29/2011)


    Hi All,

    ...

    There is a procedure which is returning 2 separate record sets (Refer 2nd Part).

    I need to get both the record sets from the SP and make to...

    _____________________________________________
    "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: behaviour of LEN()

    If you determined to use LEN function and want it to return 3 in your case you can do the following:

    select len('1 ' + 'a') - 1

    :w00t::w00t::w00t:

    _____________________________________________
    "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: Adhoc vs stored procedure

    Ninja's_RGR'us (7/30/2011)


    Attopeu (7/29/2011)


    I can confirm there is no parameter sniffings because I do not change paramters when calling the proc but I call proc with same parameters multiple times. Also,...

    _____________________________________________
    "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: SSIS job failed to run in SQL server agent

    If you don't have a value for this new column in your existing source file, you can use some default value for that column.

    If you don't want to change...

    _____________________________________________
    "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: running total in a hierarchy

    Would help if you provide DDL and data setup scripts...

    Please follow the link in my signature where you will find details.

    Otherwise, you will need to wait for someone who has...

    _____________________________________________
    "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: Search keyword "with" in FullText search using CONTAINSTABLE is ignored and the exact keyword search is not working

    Shamshad Ali (7/28/2011)


    yes, its working now. Thanks

    1- What are the pros & cons of this change?

    2- Should I remove the stopList which is StopWith as mentioned above? or...

    _____________________________________________
    "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: Search keyword "with" in FullText search using CONTAINSTABLE is ignored and the exact keyword search is not working

    You shouldn't have this word in the list! It works other way arround!

    Try

    ALTER FULLTEXT INDEX ON table_name SET STOPLIST OFF

    then rebuild the index.

    _____________________________________________
    "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: openrowset, excel, providers, permissions, oh my!

    allmhuran (7/27/2011)


    ...

    Why not SSIS? Because the idea is to create a data driven framework that allows one to easily add new queries to the set of available exports.

    ...

    Why not create...

    _____________________________________________
    "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,311 through 2,325 (of 2,894 total)