Forum Replies Created

Viewing 15 posts - 3,556 through 3,570 (of 8,731 total)

  • RE: CROSS APPLY on named sets

    A different option to check if the code compiles:

    declare @myint tinyint= 5;

    SELECT 1;

    SELECT s1.c1, s2.c1

    FROM (values (s2.c1+2)) s1(c1)

    CROSS APPLY

    (values (@myint),(@myint+1),(@myint+2)) s2(c1);

    A run-time error would show the result from SELECT...

  • RE: Guarantee entire flat file loaded

    Eirikur Eiriksson (1/13/2016)


    cycle90210 (1/13/2016)


    This is definitely possible and the table I do load it in to is a "staging" table of sorts (with interface status columns, date loaded, filename loaded,...

  • RE: Is there any specific certification only for ssis ?

    Eric M Russell (1/13/2016)


    There is the Microsoft certification exam 70-463: Implementing a Data Warehouse with Microsoft SQL Server. It covers not just SSIS but also: dimensional data modeling, ETL, Data...

  • RE: Dynamic SQL and Parameters

    decreale (1/12/2016)


    You mentioned change the connection properties? This stored procedure is being used in SSRS. I wanted to create one report and have the user pass the database parameter to...

  • RE: Script to compare schema across databases?

    Are you going to compare indexes and constraints as well? Do you care about differences in names for system named objects?

    What about implementing some monitoring using DDL triggers?

  • RE: Finding Stored Procedures

    Aleksl-294755 (1/12/2016)


    Same. "information_schema" - too much typing 🙂

    Not really, especially when you have some sort of intellisense activated.

    Comparing identical functionality:

    --121 characters

    SELECT ROUTINE_SCHEMA, ROUTINE_NAME, ROUTINE_DEFINITION

    FROM INFORMATION_SCHEMA.ROUTINES

    WHERE ROUTINE_TYPE = 'PROCEDURE'

    --128...

  • RE: Dynamic SQL and Parameters

    It's funny how you're trying to call a stored procedure using dynamic sql. You're basically being redundant making nested calls. I'm assuming this is to call the same procedure in...

  • RE: Today's Random Word!

    Ed Wagner (1/11/2016)


    whereisSQL? (1/11/2016)


    djj (1/11/2016)


    Ed Wagner (1/11/2016)


    Eirikur Eiriksson (1/11/2016)


    whereisSQL? (1/11/2016)


    Ed Wagner (1/11/2016)


    SQLRNNR (1/11/2016)


    Grumpy DBA (1/11/2016)


    Hugo Kornelis (1/10/2016)


    TomThomson (1/10/2016)


    Eirikur Eiriksson (1/10/2016)


    Behind

    DoesThisDressMakeItLookBig

    It's not the dress, dear!

    Lie

    DefinitelyBetterThanTheDogHouse

    Trouble

    Maker

    Match

    Expression

    Code

    Black

    White

    Gray

  • RE: how count work at backend Level.

    You've received an explanation on why your code isn't behaving as you expected.

    Maybe now you could explain what you're trying to do and get the way to do it correctly.

    Unless...

  • RE: Are the posted questions getting worse?

    Grant Fritchey (1/11/2016)


    Continuing my role as the harbinger of death, Ziggy Stardust is no more.

    One of my favorite songs. Although Bauhaus actually did it better.

    It seems that Aaron Ramsey...

  • RE: What's the Length?

    I would actually change the variable definition.

    DECLARE

    @max-2 AS NVARCHAR(MAX) = ''

    , @var AS NVARCHAR(MAX) = 'ABCabc123';

    SELECT

    @max-2 = REPLICATE(@Var, 445);

    SELECT

    CASE...

  • RE: Are the posted questions getting worse?

    Phil Parkin (1/8/2016)


    Luis Cazares (1/8/2016)


    Brandie Tarvin (1/8/2016)


    Then again, he could just keep stumbling on the one or two bad eggs on the forums who make everyone look bad.

    You mean like...

  • RE: Are the posted questions getting worse?

    Brandie Tarvin (1/8/2016)


    Then again, he could just keep stumbling on the one or two bad eggs on the forums who make everyone look bad.

    You mean like Phil Parkin, Jeff Moden...

  • RE: osql command

    Create a step for each command or create a batch file to run both.

    If you send both in a single command, it will ignore the second and all the others.

    Wild...

  • RE: osql command

    Do you get an error?

    Do you run them one by one? Are they in a batch file?

Viewing 15 posts - 3,556 through 3,570 (of 8,731 total)