Forum Replies Created

Viewing 15 posts - 6,796 through 6,810 (of 7,164 total)

  • RE: Help with my SQL 2005 code to create XML File via SSIS package.

    Re: Item 2:

    The idea is to move your ROOT tag out a level and add the username element before the rest of the stuff. I don't have your tables so...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Help with my SQL 2005 code to create XML File via SSIS package.

    Re: item 1

    Is that your actual XML? If so I see two issues:

    1. You have dashes prefixing some of your lines:

    - <batchImport>

    2. You have unescaped quotes in some attributes:

    <name first_name=""?""...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Querying a large table with an odd criteria

    giles.clapham (3/25/2011)


    Thanks for your advice, my hand is forced on the UniqueIdentifier as it MSCRM I'm affraid.

    Yikes :crazy: MS = Microsoft? Which version of CRM?

    giles.clapham (3/25/2011)


    The simpler suggestion you mention...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Running Total using Quirky Update problem storing previous row values

    What will be consuming your results? Doing this kind of work else outside the DB is also a viable option. Most reporting tools have built-in functionality well-suited for solving running...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Neested Trans

    My bad...I misread the question. SAVE TRANSACTION will let you save the inner work you've done provided you issue a COMMIT after you issue a ROLLBACK to a named savepoint...but...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: read eventlog with SQL server

    Access how? Read or Write? To which event log?

    You can write errors to the Application Event Log using RAISERROR:

    RAISERROR('Hello World!',16,1) WITH LOG ;

    You can read or write to any Event...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: script for security

    Yes, you can use a cursor. This is one of my few universally acceptable uses of a cursor on SQL Server. You could also take a look at the undocumented...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Neested Trans

    SAVE TRANSACTION will do what you need:

    http://msdn.microsoft.com/en-us/library/ms188378.aspx

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: php call to db results in premature exit from sp

    I just noticed that your proc is not calling itself...I took that for granted initially based on previous posts.

    That said...you're welcome for the quick demo on the recursion limit...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: php call to db results in premature exit from sp

    Lowell is referring the maximum recursion level, not the max transaction level. Since your proc calls itself you need to be aware of it. Try this out in your test...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Issue with BCP import data back into table

    I would like to help...can you provide the DDL for both tables attached as a .sql file and maybe some DML to create a few rows. This way I can...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Querying a large table with an odd criteria

    OK...I'll take a shot at this...

    I noticed something in your Audits table design that should be mentioned...UNIQUEIDENTIFIER might be the worst choice on the planet for the first column in...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Returning error codes when using sp_executesql

    Do you know about TRY/CATCH? You can report on trapped error, but it only sees the last error so you'll lose sight of the "DBNAME does not exist error".

    BEGIN TRY

    ...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Issue with BCP import data back into table

    If you're going from SQL Server to SQL Server I would use the native option of bcp instead of character ( -c ). Not only will it be faster but...

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • RE: Counting multiple records as one

    Dang it Lutz...I was almost there! You got it!

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

Viewing 15 posts - 6,796 through 6,810 (of 7,164 total)