Forum Replies Created

Viewing 15 posts - 24,166 through 24,180 (of 26,490 total)

  • RE: passing datetime param to sproc

    Added an additional test:

    create proc dbo.MyTest (

    @StartDate datetime = null

    )

    as

    begin

    set @StartDate = isnull(@StartDate,getdate());

    select @StartDate;

    return...

  • RE: passing datetime param to sproc

    You can't use the fuction getdate() as a default. You need to do something like this:

    create proc dbo.MyTest (

    @StartDate datetime = null

    )

    as

    begin

    ...

  • RE: Join three tables and

    rbarryyoung (9/30/2008)


    Jeffrey Williams (9/30/2008)


    tbeadle (9/29/2008)


    As for the other paragraphs - basically, you cannot have the following:

    SELECT ...

    FROM table1

    LEFT JOIN table2 ON table2.fkey =...

  • RE: Allow users to create temp tables

    A quick fix may (or may not) be to add the user to the db_ddladmin role in the database in question.

    I haven't found anything else as of yet.

    😎

  • RE: what is this???

    You asked:

    does anyone know what is the purpose of this subquery???I have never seen this kind of updating statement...

    This is the only subquery I see:

    ...

  • RE: Allow users to create temp tables

    I will have to do some research, but the developer is full of it when it comes to needing to have to use sa to create temp tables.

    I'll let you...

  • RE: Transaction Log Backup Script issues

    Full Backup - Everything is backed up.

    Differential Backup - Everything that has changed since the last Full Backup is backed up.

    Incremental Backup - Everything since the last Incremental Backup is...

  • RE: Allow users to create temp tables

    What exactly is the error you get?

  • RE: The September 2008 Car Update

    Have to comment on the snow. I live in Widefield (or as my parents like to say, North Pueblo), and we get very little snow on average when compared...

  • RE: The Relational Manager

    Jack Corbett (9/30/2008)


    Jo Pattyn (9/30/2008)


    Business Intelligence. Trying to get more usefull information out of your data.

    Sorry, my question was meant to be funny. I do know what BI is,...

  • RE: Conversion failing in function

    Some sample data, a table for the sample data, and the expected output would help greatly. Preferable, all of this should be done such that all we have to...

  • RE: Allow users to create temp tables

    cmosentine (9/30/2008)


    Mark (9/30/2008)


    Chris,

    As a side issue whats sleeping in a Holiday Inn got to do with things?

    It was a joke taken from a lame TV commercial.

    Actually, to be precise, it...

  • RE: what is this???

    mixalissen (9/30/2008)


    UPDATE t

    SET count_Successful_modulesOfProgram = CountModulesOfProgram

    FROM @tmp t,

    (

    SELECTcert_cand_programs.candidate_fk,

    COUNT(cert_cand_programs_fk) AS CountModulesOfProgram

    FROM cert_cand_programs

    INNER JOIN cert_cand_programs_details ON cert_cand_programs.pk = cert_cand_programs_details.cert_cand_programs_fk

    INNER JOIN Exam_Candidate...

  • RE: Disabling an Index

    dfine (9/30/2008)


    Hi,

    I don't think you can disable the idnex.

    instead you can drop and re create it.

    If your table contains huge no of records with clustered index created

    then re creating...

  • RE: Disabling an Index

    Actually, that's one of the reasons they state in BOL for disabling an index. Go to books on line and check out ALTER INDEX.

    😎

Viewing 15 posts - 24,166 through 24,180 (of 26,490 total)