Forum Replies Created

Viewing 15 posts - 4,291 through 4,305 (of 13,469 total)

  • RE: How to retrieve Table Variable data in a Trigger

    Minnu (12/4/2012)


    Sorry for asking,

    my requirement is:

    i've to call the stored procedure based on "id" and get the corresponding Name from the temp table.

    Please suggest

    wouldn't that be a simple select?

    SELECT...

  • RE: Collation

    it also gets a lot more difficult if you have any constraints on any of those 50 columns...unique constraints, indexes, defaults, etc could prevent the ALTER command from completing.... all...

  • RE: Straight & Reverse Check - kcehc eserveR & Straight

    great job on providing sample ddl and data!

    does this do what you are after?

    With CurrencySplit(currencypair,rate_value ,ccy1,ccy2)

    AS

    (

    SELECT

    currencypair,

    rate_value,

    LEFT(currencypair,3),

    RIGHT (currencypair,3)

    ...

  • RE: Data migration from sql to oracle

    as i remember it, MSDAORA is 32 bit, no longer supported, adn only works correctly on oracle 9 and below;

    10,11 and above changed the way they handle BLOB/CLOBS, and you...

  • RE: SQL Query performing really slow

    this is what i would suggest first thing, since it's not a bad thing to update statistics:

    DECLARE @Exec VARCHAR(MAX)

    SELECT @Exec = ''

    SELECT @Exec = 'UPDATE STATISTICS ' + QUOTENAME(schema_name(schema_id))+ '.'...

  • RE: 6 NICs for a Cluster?

    umm... one nic card can listen to multiple IP addresses, right? so there's no need for 6 nic cards to watch 6 ip addresses, if that's what they are thinking.

    here's...

  • RE: How to implement this DDL trigger?

    glad it's working for you!

    one more thing to consider:

    if you create a new database via a RESTORE, that does not trigger the CREATE_DATABASE event. that triggers the event AUDIT_BACKUP_RESTORE_EVENT, which...

  • RE: SQL Query performing really slow

    you need to provide more details; the actual execution plan would tell us exactly what happened,a nd we could identify the items in the execution plan that is causing performance...

  • RE: Run a Query on a Database Restore

    I'm sure you have to use extended events, specifically on the

    AUDIT_BACKUP_RESTORE_EVENT

    I did something as a prototype that did a few things on my dev server;

    if you restored a database,...

  • RE: How to implement this DDL trigger?

    yeah, i just scripted a CREATE DATABASE from the GUI; you can see it does a bunch of alters for the properties after it does the create:

    CREATE DATABASE [Example] ON...

  • RE: How to implement this DDL trigger?

    the event data is going to have the new database name...it's already been changed by thetime you get to the ddl trigger, unless you force a rollback.

    you could rollback ,...

  • RE: How to implement this DDL trigger?

    arunyadav007 pointed you in the right direction, here's a code model for your trigger.

    I',m not sure if you are just inserting the changes, updating existing, or what;

    i'd think there needs...

  • RE: Syntax request needed. Merge an 'openquery' select towards linkedserver

    you just need to add an alias, sorry:

    select * from openquery([abc],'SELECT

    ...

  • RE: Error accessing views for specific accounts that should have access

    crowellc (11/30/2012)


    I’m seeing the following error message when I try to query seven specific views in a database: Msg 18456, Level 14, State 1, Line 1 Login failed for user...

  • RE: Syntax request needed. Merge an 'openquery' select towards linkedserver

    in that case, assuming you wanted the value as columns again like your first query, it would go like this...notice i did a simple cross join, on a table we...

Viewing 15 posts - 4,291 through 4,305 (of 13,469 total)