Forum Replies Created

Viewing 15 posts - 3,706 through 3,720 (of 6,486 total)

  • RE: Adding a Custom Report to Management Studio

    Sanjeev Jha (4/9/2008)


    Hello,

    I am using Microsoft SQL Server Management Studio version 9.00.1399.00. I am trying to add a custom report to Management Studio. I created a .rdl file in BIMS....

  • RE: List all Stored Procedures and Views

    Todd Engen (4/9/2008)


    These two catalog views should show that.

    SELECT * FROM sys.views

    SELECT * FROM sys.procedures

    By the way - sys.views returns all USER views, which sounds like what you want....

    There's also...

  • RE: Performance: Every nth item

    Jeff Moden (4/9/2008)


    Matt Miller (4/8/2008)


    Jacob - you hit it on the nose. Forcing the join hint makes the difference.

    Crud... SQL Server is getting more like Oracle every day...

  • RE: Aggregating records representing ranges

    If you don't mind using a temp table - you can cut that to 15 seconds.

    [font="Courier New"]--Set up Test scenario

    DROP TABLE files

    GO

    CREATE TABLE files([file_name] VARCHAR(10), range_start VARCHAR(10), Range_end VARCHAR(10))

    INSERT files([file_name],range_start)

    SELECT...

  • RE: Importing data from Access

    GSquared (4/9/2008)


    A derived column might be the way to go on that. If you look up Cast in books online, in the Integration Services section, it will give you...

  • RE: No XP, but Look Forward To 7

    Derek Dongray (4/9/2008)


    GSquared (4/8/2008)


    On the consistency point, I have enough problems with T-SQL having weird consistency issues already. My (least) favorite example is Replace vs Charindex. One has...

  • RE: Importing data from Access

    hmm..ugly. That's not going to work.

    So - back to your original question. Keeping identities is important if you have them, so I'd keep that checked for those that...

  • RE: Importing data from Access

    Have you tried simply using your Access front-ends with linked SQL Server tables? Assuming you're not overly fancy in your Access app - you could use them "as is"...

  • RE: Time for record Insertion

    Girish Bhat (4/9/2008)


    Matt - Depending on the situation it may not be necessary to go through 10 months of log. Example: If it is a table in which data is...

  • RE: Help for Maximum date from two different tables also....

    marge0513 (4/9/2008)


    Thanks! It's working!!

    Being a newbie, I have to ask this dumb question........why do I need the Group By in order to just select the maximum dates...

  • RE: Time for record Insertion

    Girish Bhat (4/9/2008)


    One way to do this could be - assuming you have the transaction logs (or can recall the tapes/files), you might use a tool like Lumigent Log Explorer...

  • RE: Help for Maximum date from two different tables also....

    Ahh... I see it.

    don't reuse the alias in the subquery:

    [font="Courier New"]SELECT  T1.*, T2.*

    FROM

            Table1 T1 INNER JOIN

            Table2 T2 ON

                    T1.FILE_NAME = T2.FILE_NAME AND

                    T1.Downloaded_Date = T2.Act_Date INNER JOIN

            (SELECT

                    T1.FILE_NAME,

                    MAX(T1.DownLoaded_Date) AS Max_Date

               FROM    Table1      T1  --<<look here

              ...

  • RE: Performance: Every nth item

    Jeff Moden (4/9/2008)


    Matt Miller (4/8/2008)


    one of these days - I'm going to figure out how to colorize my code without turning it into a wreck........hehe

    :hehe: How'z 'bout taday 😛

    http://extras.sqlservercentral.com/prettifier/prettifier.aspx

    [font="Courier New"]SET...

  • RE: Common Functions & Stored Procedures for New Databases

    WRACK (4/8/2008)


    So let me get this right.

    I create a function called Blah in the master database and rather than calling that function if it was in the same database like...

  • RE: Help for Maximum date from two different tables also....

    marge0513 (4/9/2008)


    Thanks for responding!

    I tried that too by just taking that part out and putting in string value

    T1.File_Desc = 'LEVY'

    Does this mean you're all set, or are you...

Viewing 15 posts - 3,706 through 3,720 (of 6,486 total)