Forum Replies Created

Viewing 15 posts - 10,366 through 10,380 (of 13,461 total)

  • RE: Auto Generating Scripts in SQL Server 2005

    i've done this all via TSQL; I happen to also get all the scripts in FK hierarchy order as well.

    this has a dependancy for the procedure sp_GetDDL, which gets any...

  • RE: Anyone got a quick script to Kill database sessions?

    i use this and stick it in master:

    usage is simply sp_kill databasename

    this is simliar to Sanjay's, but a little more robust on a couple of validation things like your own...

  • RE: What do you use to store useful t-sql code?

    Shabba (10/30/2009)


    the unregisted version of Editplus is free, with only a single nag screen at startup. it is completely full featured, with just a reminder screen .

    hmmm... can only seem...

  • RE: What do you use to store useful t-sql code?

    Shabba (10/30/2009)


    Thanks for all the responses. Lowell that's exactly what i'm after do you know of a free alternative to EditPlus?

    Cheers,

    Mark

    the unregisted version of Editplus is free, with only...

  • RE: What do you use to store useful t-sql code?

    i use the cliptext feature of Editplus to save all my snippets and valuable code; i try to organize with a keyword and brief description;

    if i double click on the...

  • RE: Cursor help - Or provide different solution?

    ok, if things run under a default account like you said, this is my next guess: does it return the correct results?

    Select

    'Sept'as mnth,

    td.tdes_m,

    tran_x,

    ...

  • RE: Cursor help - Or provide different solution?

    this is just a guess, but i think this would return a result set for all of your numbers, so you can avoid a cursor.

    Select

    'Sept'as mnth,

    ...

  • RE: Hidden carriage returns

    I'm sure the CrLf is in there, it's just not visible based ont he tools you are using;

    Proof: you said it looks like this:

    Dear Committee Member,

    We'd like to invite you...

  • RE: Alter statement to change width of col

    Best practice is for each column you need to change should have a single ALTER TABLE statement for it.

    your syntax was way off, probably just peudocode, but the example below...

  • RE: Hidden carriage returns

    i'm pretty sure there is a CHAR(13) + CHAR(10) in there, that you are not seeing, but is part of the data...THAT is what is getting replaced witha < br...

  • RE: How To Convert the SP to View

    faijurrahuman17 (10/29/2009)


    HOW CAN I CHECK WHETHER THE RIGHTS ARE ENABLED

    OR OTHER WISE

    HOW TO ASSIGNED THE RIGHTS

    the error message from MS was really good; it basically said to check the Surface...

  • RE: How to set first letter to a Capital letter

    search for "ProperCase" in the scripts section for even more ways to do this;

    here's an old example which assumes a Tally Table exists:

    --===== Create and populate the Tally table on...

  • RE: Set field length

    do you mean like this:

    SELECT DISTINCT

    CONVERT(CHAR(50),'ecd or emm') AS RESULTS,

    ...

    so that it is say, 50 chars, padded with whitespace?

  • RE: Odd Audit Request

    i have this saved in my snippets from a similar post:

    --Security List Admin rights

    EXEC sp_MSForEachDB 'SELECT ''?'' AS [Database Name], su1.name AS [Database User Name], su2.name AS [Database Role]

    ...

  • RE: How to find the backup is happening by third party tool.

    well, you can check the status of the databases:

    select * from sys.databases where state_desc <> 'ONLINE'

    --possible values:

    /*Database state:

    0 = ONLINE

    1 = RESTORING

    2 = RECOVERING

    3 = RECOVERY_PENDING

    4 = SUSPECT

    5 =...

Viewing 15 posts - 10,366 through 10,380 (of 13,461 total)