Forum Replies Created

Viewing 15 posts - 1,336 through 1,350 (of 2,894 total)

  • RE: How to Best store this data

    AndrewSQLDBA (8/21/2012)


    Is there anything Special that I need to do within my .NET code to force the issue of keeping the tags in place? Or by default, will they be...

  • RE: How to Best store this data

    And let me suggest you one tip:

    Store duplicate of your data without any formatting... You should get unformatted text when you save the data from UI, as it's easy in...

  • RE: Convert Text to Date DataType

    Sergiy (8/20/2012)


    CELKO (8/19/2012)


    2. CONVERT() is an expensive string formatting function, with all those old Sybase options; substring and concatenation are cheap, simple and fast.

    ....

    Turns out, SUBSTRING with concatenations is...

  • RE: University grad

    I hardly can see how self-learning something else (eg. SQL) will help you much in your case right now. No, I am not saying you shouldn't learn something else, people...

  • RE: Convert Text to Date DataType

    1. CONVERT() is proprietary and will not port; substring and concatenation are Standard.

    Port to where? SYBASE? DBASE? MongoDB? Mars? Alpha Centauri?

    Do you seriously think that it would help much...

  • RE: Convert comma to single quotes

    ...

    If we are talking about timming spaces or doing smth else with the elements, it would be better to split string, do manipulations and concat it back.

    or use well known...

  • RE: Minmize Down Time During Data Type Conversion

    Have I lost something? Do you need to change datatype of the table column or you need to change the datatype and values as well?

    If only column change, than the...

  • RE: Convert comma to single quotes

    SomewhereSomehow (8/17/2012)


    Try using replace function like this:

    declare @a varchar(100) = 'akraft,crunckel';

    set @a = ''''+replace(@a,',',''',''')+''''

    select @a

    The above will not produce exact expected results for some of the cases:

    Alexandria, VA,Arlington, TX

    will be...

  • RE: find max

    raghuldrag (8/17/2012)


    friends ,

    select top 2*

    from empy order by cast(sal as int)desc

    in these query has given first two max values, now i need the ouput while i am giving the...

  • RE: find max

    raghuldrag (8/17/2012)


    ya its workin..... suppose i need the particular top 3rd postion of max salary means how to modify

    I'm not 100% sure what exactly working...

    And what do you mean by...

  • RE: Does/can OUTPUT clause turn identity_insert on & off

    ...

    That will teach me to not try and answer questions before drinking coffee, thanks Chris.

    Seeing your avatar, I wouldn't think that you are great coffee-lover. Are you sure that you...

  • RE: how to change the date value to null??

    ChrisM@Work (8/17/2012)


    HowardW (8/17/2012)


    This sounds a really simplistic question, but based on what you've said, it should just be:

    update xys set submitdate=NULL where id in ('1','2'.........'100')

    I feel I must be missing...

  • RE: find max

    There is a dedicated forum here for SQL 2000:

    http://www.sqlservercentral.com/Forums/Forum8-1.aspx

    Ok for this time.

    Lets have a look your sample from beginning.

    1. First of all why are you using varchar for sal column?...

  • RE: Does/can OUTPUT clause turn identity_insert on & off

    Actually, the BoL states, that you shouldn't include identity columns in the column list of output_table, so reported behaviour is the bug (or...

  • RE: how to change the date value to null??

    Lavanyasri (8/17/2012)


    hi ,

    I have a column with date datatype. i updated the column with some date like 02-02-2012 00.00.000 ,for 100 orders Now i want to change the...

Viewing 15 posts - 1,336 through 1,350 (of 2,894 total)