Forum Replies Created

Viewing 15 posts - 286 through 300 (of 557 total)

  • RE: Convert a Date

    Luis Cazares (1/25/2016)


    the problem often relies on keeping the default (us_english)

    I do strongly object to the notion that the default language is English.

    I know in almost all science fictions...

  • RE: Smartway update statement

    asita (1/24/2016)


    Hello

    Can you please let me know the smart way of doing this? (below three statements into simple one statement) please help me

    UPDATE dbo.ClnTrail

    SET trailproposed_Weekno = '01 - 01/01/2016'...

  • RE: Create Text File from SELECT

    TSQL Tryer (1/25/2016)


    Hi,

    How do I get the header at the top of the file in a Select statement -

    select '"BEN_CLAIM" "3P_RENT"' ,'','','',0,'' -- Same number...

  • RE: Convert a Date

    Luis Cazares (1/25/2016)


    Another option:

    SELECT UPPER( REPLACE( CONVERT(char(11), GETDATE(), 106), ' ', '-'))

    Be carefull with dates, very often the language or the regional settings are important.

    For the solution of Luis (our...

  • RE: Split row data to multiple columns

    A solution could be:

    SELECT

    listpos

    , substring(str,1, PATINDEX ( '%:%' , str )-1) str

    , substring(str, PATINDEX...

  • RE: How to select 200k data faster in sql

    Grant Fritchey (12/10/2015)


    A single SELECT statement without any kind of filtering offers very little in the way of query tuning. A scan is the best way to access the data...

  • RE: How to select 200k data faster in sql

    select '"'+Word+'",' +' ' from Dictionary order by Word asc FOR XML PATH('')

    My expectation is that this will work a lot faster.

    Please do share...

  • RE: how extract values from expressions

    Search on the forum for:

    DelimitedSplit8K

    Recipe:

    Replace all chars/strings which are not a value with an 'X', or another character which is not used.

    Use the DelimitedSplit8K function to split the string into...

  • RE: How to update rows faster

    rhans (12/9/2015)


    Hi Guys,

    Need help from SQL experts for my scenario. I have a Inventory table that has:

    - 2 million current month transactions

    - 38 million for previous months translations

    I...

  • RE: Using convert function in create table statement

    Excel

    hours:minutes:seconds yyyy-mm-dd (hh:mm) float (days)

    24:00:00 ...

  • RE: Using convert function in create table statement

    pwalter83 (12/8/2015)


    ben.brugman (12/8/2015)


    pwalter83 (12/8/2015)

    Upon assigning the datetime datatype to SQL, the issue still is not resolved as now if the value in EXCEL is 885:39:35 it is displayed as '1900-02-05...

  • RE: Using convert function in create table statement

    pwalter83 (12/8/2015)

    Upon assigning the datetime datatype to SQL, the issue still is not resolved as now if the value in EXCEL is 885:39:35 it is displayed as '1900-02-05 21:39:35' in...

  • RE: Using convert function in create table statement

    But you are still missing the point.

    The datatype in Excel does NOT vary. (ONLY the format is different).

    What is important is the datatype of the field in SQL-server. (Again not...

  • RE: Using convert function in create table statement

    Excel

    format display

    :mm:ss ...

  • RE: Using convert function in create table statement

    pwalter83 (12/8/2015)

    Thanks for your suggestion. However, it still doesn't help with my basic requirement. I have to convert the time duration column in excel specifically where values like 100:20:30 exist.

    What...

Viewing 15 posts - 286 through 300 (of 557 total)