Forum Replies Created

Viewing 15 posts - 4,366 through 4,380 (of 8,753 total)

  • RE: Convert Oracle query to SQL

    vipin_jha123 (10/12/2015)


    Yes sir

    Slight different between the two, roughly connect_by_isleaf is the equivalent of GetDescendant

    😎

  • RE: Convert Oracle query to SQL

    Quick question, is this hierarchical data?

    😎

  • RE: How to combine results from 4 rows into 1?

    Quick solution

    😎

    SELECT

    RoleName = max(pr.name ...

  • RE: Today's Random Word!

    Ed Wagner (10/9/2015)


    DonlSimpson (10/9/2015)


    anthony.green (10/9/2015)


    Ed Wagner (10/9/2015)


    crookj (10/9/2015)


    Ed Wagner (10/9/2015)


    happygeek (10/9/2015)


    Deadlock victim!

    Cost

    Expense

    Revenue

    Tax

    Tariff

    Price Increase

    Pint

  • RE: Help to sort out conversion error

    Slightly more pedantic approach preventing an implicit conversion

    😎

    DECLARE @sql NVARCHAR(400)

    DECLARE @WgnWCUser VARCHAR(30)='DBO'

    DECLARE @TIMESTAMP VARCHAR(30)='UpdateTimestamp'

    DECLARE @datFrom DATETIME='20150916'

    DECLARE @datTo DATETIME='20150930'

    SET @sql='SELECT EVENTUID,EVENTTIMESTAMP,EVENTMAJORTYPE,EVENTMINORTYPE INTO #TEMP

    FROM ' + @WgnWCUser + '.EMPLOYEE A WITH(NOLOCK)

    WHERE A.'+@TIMESTAMP+'>=CONVERT(DATE,'''+CONVERT(VARCHAR(25),@datFrom,112)+''',112)AND...

  • RE: Are the posted questions getting worse?

    dwain.c (10/1/2015)


    Eirikur Eiriksson (10/1/2015)


    ChrisM@Work (10/1/2015)


    Eirikur Eiriksson (10/1/2015)


    ChrisM@Work (10/1/2015)


    Eirikur Eiriksson (10/1/2015)


    ChrisM@Work (10/1/2015)


    Eirikur Eiriksson (10/1/2015)


    ChrisM@Work (10/1/2015)


    Eirikur Eiriksson (10/1/2015)


    ChrisM@Work (10/1/2015)


    Eirikur Eiriksson (10/1/2015)


    ChrisM@Work (10/1/2015)


    Oh, and maple beer - yuck.

    This made me spill my ESB...

  • RE: Slow Query (FOR XML)

    sandhuz24 (10/7/2015)


    Thanks Eirikur!

    Sorry for the delay in getting back to the post. Been really busy at work. I had the indexes on the table as you suggest in your post...

  • RE: Need help putting data into XML format

    Quick solution

    😎

    USE tempdb;

    GO

    SET NOCOUNT ON;

    if object_id('Tempdb..#Element1') is not null drop table #Element1;

    create table #Element1 (

    [Attr1] varchar(10)

    ,[Attr2] varchar(4)

    ,[Attr3] varchar(2)

    ...

  • RE: Data Corruption while upgrading

    Does the 2008 db pass the integrity check?

    😎

  • RE: Invalid character value for cast specification

    John Rowan (10/5/2015)


    Number(38) is much larger than integer and I don't think they play nice together with implicit conversions. The error looks like it's happening on your destination component...

  • RE: Concatenating Multiple records into one field

    Quick solution

    😎

    USE tempdb;

    GO

    SET NOCOUNT ON;

    DECLARE @TableA TABLE

    (

    FldA INT NOT NULL

    ,FldB INT NOT NULL

    );

    INSERT INTO @TableA(FldA,FldB)

    VALUES (3,4)

    ...

  • RE: Do not see full backups in the specified Backup folder

    Grant Fritchey (10/5/2015)


    You can give the files any extension name, but it's the path and security to that path that are going to make the difference. Before you run the...

  • RE: Query question - Joins??

    Quick question, can you post the DDL (create table script) for those two tables?

    😎

  • RE: Does anybody know how to configure the Named Pipes protocol correctly ?

    chancrovsky (10/5/2015)


    I've been reading about the protocols and i've been trying to connect to my SQL SERVER using each one of the protocols, but i think I'm missing something, i...

  • RE: Do not see full backups in the specified Backup folder

    Welsh Corgi (10/5/2015)


    I did a couple of backups from the GUI and it named the file with a trn extension.

    Are you certain those are full backups and not transaction log...

Viewing 15 posts - 4,366 through 4,380 (of 8,753 total)