Forum Replies Created

Viewing 15 posts - 22,036 through 22,050 (of 26,484 total)

  • RE: Issue with CTE

    Really comes down to six and half dozen the other. Personal experience on my system at home had fewer larger cross joins ran faster when I wanted millions of...

  • RE: Issue with CTE

    Bob Hovious (3/12/2009)


    there is no table definition or data that is relevant

    You are absolutely correct. When asking for more information, I just asked for complete text of errors,...

  • RE: backup with append option and restore

    Yes, you really should do each backup to a separate file. If you are appending backups to the same file you have to specify which file to restore from...

  • RE: Random 64 Characters alphanumeric String

    Here is another solution:

    with

    a1 as (select 1 as N union all

    select 1 union all

    select 1 union...

  • RE: backup with append option and restore

    Please post the code you used for both your backups and restores.

  • RE: time difference computation

    How are you looking for elapsed time to be returned? Not knowing your data, I don't know if I need to worry about elapsed time going over 24 hours...

  • RE: Issue with CTE

    siddartha pal (3/12/2009)


    I am not able to complie the function because of Varchar(max) for @string parameter.

    Not sure why that would give you a problem, you are using varchar(max) in your...

  • RE: Unique Constraint

    The other alternative put a where clause on your inserts that checks for the existance of those three values existing in the database already.

  • RE: Optimize delete statement

    You can also drop the NOLOCK hint. It is ignored any way on INSERT, UPDATE, and DELETE statements.

  • RE: Issue with CTE

    How about trying the following code:

    create function dbo.DelimitedSplit (

    @pString varchar(max),

    @pDelimiter char(1)

    )

    returns table

    as

    return

    with

    a1 as (select 1 as N union all

    ...

  • RE: Issue with CTE

    Please confirm that the purpose of the function is to return a table of items from a delimited string.

    For example, given the string "'A','B','C','D','E'" return the following:

    1 A

    2...

  • RE: Using BackupExec vs Native SQL Backups

    Here is my .02. I'd prefer to do native backups to local disks, then backup the backup files to tape or other remote storage media. Reason, it is...

  • RE: SQL Query not running...

    Nice it would be if feedback OP would provide.

  • RE: Previous week date range

    Check out the following code and see if it does what you need:

    select getdate(), dateadd(wk, datediff(wk, 0, getdate()) - 1, 0), dateadd(wk, datediff(wk, 0, getdate()) - 1, 0) + 4

  • RE: Are the posted questions getting worse?

    GilaMonster (3/11/2009)


    Roy Ernest (3/11/2009)


    I think we have good one here...

    Let us see if he comes back with a positive answer or not.

    Bet you a coffee that either he comes back...

Viewing 15 posts - 22,036 through 22,050 (of 26,484 total)