Forum Replies Created

Viewing 15 posts - 7,636 through 7,650 (of 8,760 total)

  • RE: Cannot be perform write operation in database sql server 2008 r2

    As Lynn said, give us something to work with! My guess is that Grant is dead on, just in case, check free space on all relative volumes, auto growth limits/settings,...

  • RE: Adding unique int key using max

    tshad (8/1/2014)


    That worked fine.

    Not sure what this means:

    ROW_NUMBER() OVER (ORDER BY (SELECT NULL))

    How does that work?

    This adds an incremental number to the output, by stating (SELECT NULL), one indicates that...

  • RE: handle resultset in SP

    The code below demonstrates how to use output parameters in a stored procedure

    😎

    CREATE PROCEDURE dbo.WasInsertSuccessfulQuestionMark

    (

    @ValueToInsert INT

    ,@ThisTellsMeIfSuccessful INT OUTPUT

    )

    AS

    /*

    usage

    ...

  • RE: Update is Slow in SQL server 2014

    Quick question, do you need assistance providing the necessary information.

    😎

  • RE: SQL - case statement

    ScottPletcher (8/1/2014)


    If the table may or may not exist, you'll have to make references to that table only in dynamic SQL. Otherwise, if the code runs and the table...

  • RE: SSIS XML import

    Just throwing in my 2 cents, my preferred way is to use SSIS to import the XML into a staging table and shred it with XQuery into the destination tables....

  • RE: Migration from SQL Server 2012 to Oracle 11g

    Out of curiosity, why 11g, that's quite an old horse? BTW, don't know of any automatic tools for the job, normally is scripting rebuilding, rewriting and transferring kind of a...

  • RE: SQL - case statement

    You can use a query in the case statement, simplifies thing

    😎

    SELECT

    CASE

    WHEN EXISTS (SELECT * FROM DB_1.sys.tables WHERE name = 'TBL_TRIP') THEN (SELECT TOP 1 name...

  • RE: End User Blocking of ETL

    danielfountain (8/1/2014)


    Hey all,

    I am shortly embarking on a project to redesign an ETL process.

    Currently issues can be cause by end users running reports (SSRS, EXCEL) while a table is updating....

  • RE: Update is Slow in SQL server 2014

    Impossible to say without more information. Could you post the table structure, the update code, execution plans etc., the more the merrier.

    😎

  • RE: CASE question

    Since the case statement is doing incremental steps, it can be simplified using integer division, see the example.

    😎

    USE tempdb;

    GO

    SET NOCOUNT ON;

    DECLARE @SET_SIZE INT = 40000;

    /* Test data 1 to @SET_SIZE...

  • RE: handle resultset in SP

    You can count the rows before and after or use @@ROWCOUNT

    😎

    USE tempdb;

    GO

    DECLARE @PRECOUNT INT = 0;

    DECLARE @RET_VAL INT =0;

    DECLARE @TABLEX TABLE (IVAL INT NOT NULL);

    SELECT @PRECOUNT = COUNT(*) FROM @TABLEX

    INSERT...

  • RE: series of transactions

    GilaMonster (7/31/2014)


    salomon.frid (7/31/2014)


    I am aware of that one, just some people in my shop have told me that is not the preferred way of doing this ...

    So according to your...

  • RE: norweigen date time problem.

    lee.hopkins (7/31/2014)


    I have an vb6 (dont snicker) application that is used all over the world.

    some users refuse to leave the regional setting to english and i am haveing an issue.

    a...

  • RE: Today's Humor..

    Michael Valentine Jones (7/31/2014)


    As a general rule, vendors have very little knowledge of DBA best practices, so they just toss out some misinterpreted stuff that some junior developer found on...

Viewing 15 posts - 7,636 through 7,650 (of 8,760 total)