Forum Replies Created

Viewing 15 posts - 346 through 360 (of 812 total)

  • RE: A Questionable Trigger

    In sqlserver 2008 r2 the update doesn't return any resultset and no error message.

    (2 row(s) affected)

    (2 row(s) affected)

    What I'm missing?

  • RE: Indexes

    Hugo Kornelis (3/30/2014)


    Carlo Romagnano (3/21/2014)


    Remember that "Filtered indexes" are used only if the WHERE clause matches or is compatible with the filter.

    View http://www.sqlservercentral.com/questions/T-SQL/105826/

    And even then, they are often not used...

  • RE: OPENQUERY-2

    Stewart "Arturius" Campbell (3/24/2014)


    Interesting question, thanks Carlo

    thought the lack of a semi-colon between deleted.* and COMMIT would cause an error.

    Goes to show...

    The lack of a semi-colon causes or would cause...

  • RE: Indexes

    Remember that "Filtered indexes" are used only if the WHERE clause matches or is compatible with the filter.

    View http://www.sqlservercentral.com/questions/T-SQL/105826/

  • RE: OPENQUERY-1

    marcia.j.wilson (3/18/2014)


    I'm not sure I completely understand this.

    Is this what's going on?

    -The query initially adds a single row with a value of 1.

    - The open query returns the deleted set...

  • RE: OPENQUERY-1

    crussell-931424 (3/18/2014)


    It's still a little confusing.

    About?

  • RE: OPENQUERY-1

    Hany Helmy (3/18/2014)


    Thomas Abraham (3/17/2014)


    Thanks for the question, Carlo.

    Don't know which is more interesting - the option for -1 rows, or the fact that 3% selected it as their answer!

    -1...

  • RE: OPENQUERY-1

    These queries demonstrate the two different connection:

    select @@SPID

    SELECT * FROM OPENQUERY(MyServer,'select @@SPID')

  • RE: OPENQUERY-1

    timwell (3/17/2014)


    I have a question.

    I got crossed up because the documentation says that sp_serveroption and openquery are for connecting to remote or linked servers. I was thinking the delete was...

  • RE: OPENQUERY-1

    Mikael Eriksson SE (3/17/2014)


    Carlo Romagnano (3/17/2014)


    Mikael Eriksson SE (3/17/2014)


    I guess the reason for the rollback is that the output clause is not allowed when you do remote queries.

    Using a query...

  • RE: OPENQUERY-1

    Thomas Abraham (3/17/2014)


    Thanks for the question, Carlo.

    Don't know which is more interesting - the option for -1 rows, or the fact that 3% selected it as their answer!

    :-D:-D:-D:-D

    Unbelievable, but true!

  • RE: OPENQUERY-1

    Stewart "Arturius" Campbell (3/17/2014)


    Interesting question, thanks

    wouldn't the correct way to handle deletions from a remote server be

    DELETE OPENQUERY(MyServer,'SELECT * FROM tempdb.dbo.a')

    In this case, you haven't the DELETED.* resultset.

  • RE: OPENQUERY-1

    Mikael Eriksson SE (3/17/2014)


    I guess the reason for the rollback is that the output clause is not allowed when you do remote queries.

    Using a query like this will show the...

  • RE: Schema & Renaming Fun

    palotaiarpad (3/12/2014)


    Hmmm.

    According to BOL 'not.funny' should be treated as a failure:

    [ @newname = ] 'new_name'

    Is the new name for the specified object. new_name must be a one-part name and must...

  • RE: Schema & Renaming Fun

    "Schema cannot be named Not" ?????

    "It could be said the table is not funny" ????

    Bad wording?

Viewing 15 posts - 346 through 360 (of 812 total)