Forum Replies Created

Viewing 15 posts - 5,686 through 5,700 (of 8,761 total)

  • RE: sql syntax issue

    vipin_jha123 (4/10/2015)


    Hi,

    I am getting error in my below sql statement

    Declare @sqlquery varchar(max)

    Set @sqlquery='INSERT INTO dbo.Staging_Temp_1 fnGetFirstOcurrences(col001, 'Β―',@Columns),LoadDate FROM dbo.Staging_Temp'

    Select @sqlquery

    error:-

    Msg 102, Level 15, State 1, Line 11

    Incorrect syntax...

  • RE: script, that returns all SPs to a given table, incl. the access type

    Try this

    😎

    SELECT

    OBJECT_NAME(ASM.object_id) AS OBJ_NAME

    ,OBJECT_SCHEMA_NAME(ASM.object_id) AS OBJ_SCHEMA_NAME

    ,CASE WHEN ASM.definition LIKE N'%UPDATE%' ...

  • RE: Specific Column Matching...with nulls

    Slightly different approach, only scans each table once

    😎

    USE tempdb;

    GO

    SET NOCOUNT ON;

    declare @vehicle table(id int, vehiclemake varchar(10), vehiclemodel varchar(10));

    declare @vehicleclass table(id int, vehiclemake varchar(10), vehiclemodel varchar(10), classtype varchar(1));

    insert into @vehicle values

    ...

  • RE: Temp Table Names

    Thanks Steve!

    😎

    BTW, the leading "#" is included in the count, BOL does not mention that.

  • RE: How to find the needle in the haystack

    Jeff Moden (4/9/2015)


    Eirikur Eiriksson (4/9/2015)


    tcronin 95651 (4/9/2015)


    I have baselines, just stunned to see this happen, I have been a dba for 20 years and 99% of the time this happens...

  • RE: Converting date column that is a varchar data type to a datetime data type

    Sigerson (4/9/2015)


    ZZartin (4/3/2015)


    Quick question Grant, how many times have you seen systems/processes fail on the 13th of the month? I can count a good handful.

    In my last job I managed...

  • RE: Presentation Advice

    Sean Lange (4/9/2015)


    My workplace participates in the β€œTake Your Daughters and Sons to Work Day” and I have to give a 10-15 minute presentation about how important technology is to...

  • RE: Today's Random Word!

    Ed Wagner (4/9/2015)


    Eirikur Eiriksson (4/9/2015)


    Ed Wagner (4/9/2015)


    Eirikur Eiriksson (4/9/2015)


    TomThomson (4/9/2015)


    Ed Wagner (4/9/2015)


    SQLRNNR (4/9/2015)


    @##$@&*&%#@

    WTF

    WOE

    TBA

    TLA (three-letter acronym)

    MAA (Mother of All Acronyms)

    MMA (Mixed Martial Arts)

    MMM (Many Mountains Moving)

  • RE: script, that returns all SPs to a given table, incl. the access type

    Sean Lange (4/9/2015)


    Thanks!!! Not sure why I pointed out a possible concern and stopped short of providing an alternative. Been a heck of a week around the office...thankfully the weekend...

  • RE: script, that returns all SPs to a given table, incl. the access type

    Sean Lange (4/9/2015)


    One caveat of Eirikur's excellent suggestion is that it will NOT find any references if your procedures contain dynamic sql.

    Good point, then we use the sys.all_sql_modules

    😎

    SELECT

    ...

  • RE: How to find the needle in the haystack

    tcronin 95651 (4/9/2015)


    I have baselines, just stunned to see this happen, I have been a dba for 20 years and 99% of the time this happens either blocking or someone...

  • RE: Raiserror syntax in 2008R2 Vs 2012

    rxm119528 (4/9/2015)


    Eric,

    the compatibility mode is set to SqlServer2008(100).

    Thanks

    RM.

    Seen almost the same before, the difference being the text qualifiers and the missing parameter delimiter. Guess you will have to query the...

  • RE: How to find the needle in the haystack

    tcronin 95651 (4/9/2015)


    no blocking that was the first thing I looked for. I had dropped an unused index the night before on a table that the stored proc that...

  • RE: Are the posted questions getting worse?

    Sean Lange (4/9/2015)


    Luis Cazares (4/9/2015)


    I finally found Dwain's secret.

    It won't display here. Says the image contains errors. :w00t:

    He he, not the thing I would think of in the context of...

  • RE: How to find the needle in the haystack

    Grant Fritchey (4/9/2015)


    tcronin 95651 (4/9/2015)


    May have found the needle, started going through the snapshots Idera DM saves, as I scrolled through I noticed there is one stored procedure with about...

Viewing 15 posts - 5,686 through 5,700 (of 8,761 total)