Forum Replies Created

Viewing 15 posts - 25,576 through 25,590 (of 26,484 total)

  • RE: DateDiff using BETWEEN statement

    It would probably help more if you explained what it is you are try to accomplish besides just modifying the code.  An example of the expected output would also help.

     

  • RE: pass a parameter into a data flow to be used by a OLE DB source

    What exactly are you trying change in OLE DB source?

     

  • RE: Adjust Date?

    update dbo.TargetTable set

         targetfield = dateadd(yyyy, targetfield, 1)

    where

        (any criteria to restrict the update)

  • RE: Database Size way larger than sum of table size

    Have you also included the size of the indexes in your calculations?

  • RE: unique top record

    Here is the problem (only thing I can think of why it worked on my system is I am running on SQL Server 2005):

    WHERE

        (class.class_date > GETDATE()) AND (course.course_type_id =...

  • RE: What SQL SERVER LICENCE should we buy for this achitecture.

    Here is my suggestion, contact Microsoft.  With the configuration you listed, you may be able use the Developer Edition for your Development, QA, and Training servers, and then use the...

  • RE: Error 156, problems with a case statement

    True, I goofed with the THEN, I sometimes put it in as a line comment to keep things straight in my mind.

  • RE: unique top record

    Just for me, can you post back what you copied?  Thanks.

  • RE: unique top record

    Check out John's code, I think it will do what you need also (I haven't tried myself).  Also, as you didn't post the code you are running based on my...

  • RE: Error 156, problems with a case statement

    Looking at your code, not even going to try and fix it.  You are using CASE incorrectly to start.  From your description of the problem, your script (or stored procedure)...

  • RE: Run same packege on different SQL server 2005.

    Start by reading about configuration files in BOL.  You can also learn more in the WROX book Professional SQL Server 2005 Integration Services by Brian Knight, et al.

  • RE: unique top record

    Try this:

    SELECT

        dtclass.class_id,

        dtclass.class_date,

        course.course_type_id,

        location.location_id,

        location.display_city,

        location.location_city

    FROM

       (select

            class.class_id,

            class.class_date,

            class.course_type_id,

            class.location_id

        from

            dbo.class

        where

            class.class_id in (select top 1 sq.class_id from dbo.class sq where class.course_type_id = sq.course_type_id and...

  • RE: Scheduling SQL Mail

    Sounds like a scheduled job to me.  Yes, you can.

  • RE: Troubleshooting aggregate function

    I am still not sure what your procedure is supposed to do.  What is the input and what is the expected (not actual) output from the procedure?

  • RE: 70-431 Microsoft Press Book frustration

    Brandie,

    Actually, I haven't purchased any of the "test help" books.  I have quite a few of the MS Press books related to SQL Server 2005 which I rely on, but...

Viewing 15 posts - 25,576 through 25,590 (of 26,484 total)