Forum Replies Created

Viewing 15 posts - 7,951 through 7,965 (of 8,753 total)

  • RE: round

    antonela (6/20/2014)


    Is there a funcion in sql server 2005 to obtain this result?

    For a number =0,55 I want to have 1

    For a number =0,45 I want to have 0

    For...

  • RE: Help to do this query!!

    jaimepc199 (6/19/2014)


    I forget something, is there any way to use windows functions on this example?

    thanks 😀

    As the set has only one divisor (codcategory) and there is no requirement to preserve...

  • RE: Counting the characters in a string before a space

    Jeff Moden (6/19/2014)


    My problem is that I really don't understand what you're trying to do. This start out with "counting characters in a string before a space" and I...

  • RE: SQL Server Database Developer Role Dying?

    OCTom (6/19/2014)


    GilaMonster (6/19/2014)


    david.tyler (6/18/2014)


    My current employer is trying to convince our DB group SQL Server is a dying technology and open source is the way to go.

    So what's his motivation...

  • RE: returning only portion of string

    Yet two more ways

    😎

    USE tempdb;

    GO

    DECLARE @TSTR TABLE

    (

    TSTR_ID INT IDENTITY(1,1) PRIMARY KEY CLUSTERED NOT NULL

    ,TSTR_VALUE VARCHAR(50) NOT NULL

    );

    INSERT INTO...

  • RE: returning only portion of string

    Another of many

    😎

    DECLARE @STR_A VARCHAR(50) = '1.9999-Q1'

    ;WITH STR_POS AS

    (

    SELECT

    CHARINDEX(CHAR(46),@STR_A) AS P1

    ...

  • RE: Schedule table with open/closed slots

    Is it something along these lines that you are after?

    😎

    SELECT

    TBO.schedule_time

    ,'OPEN' AS open_closed

    FROM

    (

    SELECT

    ...

  • RE: I need a pivot of this data

    Many ways of doing this, here are two quick examples. BTW, thanks for the nice DDL/sample.

    😎

    Slightly long winded pre 2012.

    ;WITH LIC_TYPE AS

    (

    SELECT

    TL.ID

    ,ROW_NUMBER...

  • RE: SQL Server Database Developer Role Dying?

    I see steadily increasing demand for SQL Server professionals, it is the de facto database platform for small and medium enterprises, and one of M$ best money buckets.

    😎

  • RE: Replace keyword or a better way?

    Further on Jason's advice

    😎

    USE tempdb;

    GO

    create table dbo.names (Place varchar(50));

    insert into dbo.names ( Place) values ('(1)');

    insert into dbo.names ( Place) values ('(100)');

    insert into dbo.names ( Place) values ('(200)');

    SELECT

    ...

  • RE: Are the posted questions getting worse?

    Lynn Pettis (6/18/2014)


    Grant Fritchey (6/18/2014)


    SQLRNNR (6/18/2014)


    jasona.work (6/18/2014)


    GilaMonster (6/17/2014)


    Gotta love a review system where an above-average rating requires "Leaves only when work is done and stays to assist others"

    "No pressure to...

  • RE: Trigger is not working as expected

    raju.venkatsv (6/18/2014)


    Thank you for your quick reply.

    request you to provide some hints or some information , using which i can update my trigger to meet business requirement.z

    requesting you for...

  • RE: The fun factor: Magical numbers and other peculiarities

    mickyT (6/16/2014)


    One to make you smile if you have 2012:-)

    DECLARE @smiley varchar(20) = 'Dont Worry Be Happy';

    WITH Params AS (

    SELECT MAX(CASE WHEN ItemNumber = 1 THEN Val END) OFFSET,

    MAX(CASE WHEN...

  • RE: How can I modify .dtsx file .?

    trikha.ishan (6/18/2014)


    Hi,

    I tried to update the .dtsx file using notepad in development server and that change is in Script Component but when I ran the package that change didn't reflected...

  • RE: Is Killing Database Shrink via SSMS a risk?

    Gazareth (6/18/2014)


    MS's comments on this: http://support.microsoft.com/kb/86903

    There's another link on the page to more detailed requirements.

    Thanks!

    😎

Viewing 15 posts - 7,951 through 7,965 (of 8,753 total)