Forum Replies Created

Viewing 15 posts - 5,641 through 5,655 (of 7,636 total)

  • RE: Help with xs:dateTime() function

    Yeah, that is an illegal datetime value.

    Look at the output from this slightly modified example:

    declare @statexml as xml

    set @statexml = '<data>

    <main>

    <row number="1" modified="aoMODIFIED">

    <order_id modified="False" type="String">CS0808240001</order_id>

    <eta_date modified="False" type="DateTime">2008-08-25T00:00:00</eta_date>

    <eta_time modified="False" type="DateTime">1900-01-01T10:00:00</eta_time>

    </row>

    </main>

    </data>'

    select

    ...

  • RE: Creating a Trigger on a table by a stored procedure in another database

    oops, sorry. It's missing the "END" statement at the end of the procedure.

  • RE: 3nf, functional dependancy and head exploding

    Simon_L (8/14/2008)


    but to describe publisher city as functionally dependant on publisher I just cant get...

    if something is functionally dependant it can be uniquely determined by another attribute. But a publisher_city...

  • RE: DDL Logon triggers-2005

    No, it's like this:

    Create EVENT NOTIFICATION NotifyALTER_T1

    ON DATABASE

    FOR ALTER_TABLE

    TO SERVICE 'NotifyService',

    'current database';

  • RE: DDL Logon triggers-2005

    Oh, I see, you are using the GUID printed in the example in BOL. Well, that won't work. You need to execute the aforementioned command and check the...

  • RE: DDL Logon triggers-2005

    MANU (9/1/2008)


    ...

    CREATE EVENT NOTIFICATION NotifyALTER_T1

    ON DATABASE

    FOR ALTER_TABLE

    TO SERVICE 'NotifyService',

    '8140a771-3c4b-4479-8ac0-81008ab17984';

    ...

    Why are you using an explicit ID for your broker_instance? You should be using 'current database' here....

  • RE: Local Temporary Tables and Table Variables

    Of course we use a startup procedure to define the UDT's in TempDB.

  • RE: DDL Logon triggers-2005

    Questions:

    1) Are you doing the ALTER TABLE commands on the same database? (LoggingDemo?)

    2) Could you Drop and re-Create the Server Event Notification?

    Thanks

  • RE: One Milly-yon IOPS - Database Weekly (Sept 1, 2008)

    GilaMonster (9/1/2008)


    rbarryyoung (8/31/2008)


    The large majority of the reading, writing and caching strategies for hard drives centers on the fact that sequential sector IO's are assumed to be approximately 10x faster...

  • RE: DDL Logon triggers-2005

    Well I do not see anything wrong with the Service Broker items. Can you execute the following script and post the results:

    select * from sys.service_broker_endpoints

    select * from sys.event_notifications

    select *...

  • RE: Help with xs:dateTime() function

    I don't think that you need the xs:dateTime function. Try it like this:

    select

    nref.value('order_id[1]','varchar(50)') order_id,

    nref.value('eta_date[1]','varchar(50)') eta_date_orig,

    nref.value('eta_date[1])','datetime') eta_date1,

    nref.value('(eta_date)[1])', 'datetime') eta_date

    from

    escalation_events

    cross apply

    statexml.nodes('/data/main/row') as...

  • RE: DDL Logon triggers-2005

    In SSMS, go to the databases's Service Broker section and script out all of the non-system items: Message Types, Contracts, Services, Queues. Routes and Remote Service Bindings. Sorry, but...

  • RE: String or binary data would be truncated.

    Glad we could help.

  • RE: Excel Result Vs DB Result

    Glad we could help, Karthik.

  • RE: Playing with "GO"

    This was already explained in the discussion attached to this question. Please go there.

Viewing 15 posts - 5,641 through 5,655 (of 7,636 total)