Forum Replies Created

Viewing 15 posts - 5,926 through 5,940 (of 8,761 total)

  • RE: Populate table with some gaps in between

    Quick and simple solution, the problem is trivial if broken down into iteration by the different orders of magnitude, that is 1000 => 1 - 9, 100 => 1 -...

  • RE: Unable to Connect To SQL Server DB Instance if Port Number is not Included

    mahikero (3/28/2015)


    Hi

    If I try to connect to ServerName\I01, I get the error below.

    "A network-related or instance-specific error occured while establishing a connection to SQL Server.

    The server was not found...

  • RE: Error is not thrown from a stored procedure

    Quick thought, you may want to re-think the error handling in the stored procedure, consider this code

    😎

    USE tempdb;

    GO

    SET NOCOUNT ON;

    GO

    IF OBJECT_ID(N'dbo.TBL_SAMPLE_RESULT') IS NOT NULL DROP TABLE dbo.TBL_SAMPLE_RESULT;

    CREATE TABLE dbo.TBL_SAMPLE_RESULT

    (

    ...

  • RE: Adding Minutes(varchar) to a datetime field

    Jeff Moden (3/27/2015)


    ScottPletcher (3/27/2015)


    Eirikur Eiriksson (3/27/2015)


    ScottPletcher (3/27/2015)


    Just add them and SQL will implicitly convert the varchar to a datetime anyway:

    SELECT datetime_column + time_varchar AS new_datetime, ...

    FROM ...

    Until the locale driven...

  • RE: Today's Random Word!

    SQLRNNR (3/27/2015)


    fruition

    Realize

  • RE: concatinating string without cursor

    Quick point, there is a hidden speed trap in the XML concatination, consider this code

    😎

    USE tempdb;

    GO

    SET NOCOUNT ON;

    IF OBJECT_ID(N'dbo.TBL_SAMPLE_DIAG') IS NOT NULL DROP TABLE dbo.TBL_SAMPLE_DIAG;

    CREATE TABLE dbo.TBL_SAMPLE_DIAG

    (

    ...

  • RE: Adding Minutes(varchar) to a datetime field

    ScottPletcher (3/27/2015)


    Just add them and SQL will implicitly convert the varchar to a datetime anyway:

    SELECT datetime_column + time_varchar AS new_datetime, ...

    FROM ...

    Until the locale driven implicit conversion starts to produce...

  • RE: Are the posted questions getting worse?

    SQLRNNR (3/27/2015)


    Brandie Tarvin (3/27/2015)


    Eirikur Eiriksson (3/27/2015)


    My Friday fun version:rolleyes:

    IF EXISTS (SELECT 1 FROM (VALUES(CAST(1 AS BIT))) d (n)) SELECT 1 FROM sys.all_columns X,sys.columns Y,sys.computed_columns Z

    AWESOME!!!!!!!

    Yes you can certainly get a...

  • RE: Are the posted questions getting worse?

    Luis Cazares (3/27/2015)


    In a different order of ideas, I want to share with you my happiness.

    Starting on April 21st I'll be working in the US. I'll make a stop at...

  • RE: Are the posted questions getting worse?

    ChrisM@Work (3/27/2015)


    Question of the day: what datatype is the Estimated Number of Rows (or Estimated Subtree Cost) displayed in the property sheet of the SELECT operator in the estimated plan...

  • RE: Today's Random Word!

    djj (3/27/2015)


    whereisSQL? (3/27/2015)


    SQLRNNR (3/27/2015)


    retriever

    golden

    Doodle

    Dandy

  • RE: Are the posted questions getting worse?

    djj (3/27/2015)


    jasona.work (3/27/2015)


    I hate Fridays around this place...

    Unless you've got some project going on that can be worked on when 50+% of the staff is off, you spend a good...

  • RE: Are the posted questions getting worse?

    jasona.work (3/27/2015)


    I hate Fridays around this place...

    Unless you've got some project going on that can be worked on when 50+% of the staff is off, you spend a good chunk...

  • RE: Are the posted questions getting worse?

    My Friday fun version:rolleyes:

    IF EXISTS (SELECT 1 FROM (VALUES(CAST(1 AS BIT))) d (n)) SELECT 1 FROM sys.all_columns X,sys.columns Y,sys.computed_columns Z

  • RE: Adding Minutes(varchar) to a datetime field

    Ells (3/27/2015)


    I have a datetime field that is just the date and zero for the time element. I also have a varchar field that is of the format 09:25:30

    is there...

Viewing 15 posts - 5,926 through 5,940 (of 8,761 total)