Forum Replies Created

Viewing 15 posts - 16 through 30 (of 363 total)

  • RE: Setting an Parameters in Stored Procedure Using an Alias

    aturner51, To be truthfull, I do not access my SPs using VBs ExecuteNonQuery(), therefor I do not know the proper VB syntax...



    Once you understand the BITs, all the pieces come together

  • RE: Sub Query in Join does not recognise outer query alias

    David, I do not know your data, and can not know what the "best" method will be for you, but have you considered putting the data from the tbl_Site_parameters table...



    Once you understand the BITs, all the pieces come together

  • RE: Urgent SQL view help required

    As far as the "derived" table usage, give this a try...

    Replace your entire WHERE clause with something like...

    INNER JOIN (

        SELECT TOP 1

          [Data_Cube_Minimum_Shipment_Date] as MinDate,

          [Data_Cube_Maximum_Shipment_Date] as...



    Once you understand the BITs, all the pieces come together

  • RE: Temp tables and performance

    In some instances adding an index or a clustered index to the #Temp table can greatly enhance perfomance. This is one thing that that #Temp tables have over the other methods,...



    Once you understand the BITs, all the pieces come together

  • RE: A Quick question.

    Sure, just create the VIEW with an expression for you date column data. However, you will not be able to UPDATE the "date" data using this VIEW. (Maybe see TRIGGERs - INSTEAD...



    Once you understand the BITs, all the pieces come together

  • RE: Setting an Parameters in Stored Procedure Using an Alias

    Can you supply an example script with a call to your SP in context?

    This may help me understand exactly what you are looking for.



    Once you understand the BITs, all the pieces come together

  • RE: Sub Query in Join does not recognise outer query alias

    You are accessing the data from tbl_Site_parameters table within a "derived" table structure. Within this structure you can not access values from outside the structure.

    Try JOINing the tbl_Site_parameters table without...



    Once you understand the BITs, all the pieces come together

  • RE: Problem with Temporary tables

    NP, glad it worked for you. I know it seems easier to code the multiple SELECT ... INTOs, but the single SELECT ... INTO ... WHERE 1=2 to create the...



    Once you understand the BITs, all the pieces come together

  • RE: Urgent SQL view help required

    Neil,

    What column specifically did you change?

    Did you ALTER the view after to made the column name change?

    Has the WHERE clause shipment date span changed? Run the SELECT TOP 1 *...



    Once you understand the BITs, all the pieces come together

  • RE: Problem with Temporary tables

    Seems you can not create the same #Table twice in a script, even if you DROP it in between.

    How about something like this (if structure is the same for either)

    IF...



    Once you understand the BITs, all the pieces come together

  • RE: How To Find or Remove Duplicate Groups of Records

    I found a solution that works for what I need.

    Since the "Product" data in the #TempGroups table is numeric,

    I could use this to my advantage:

    Instead of (1st Step)

     Insert...



    Once you understand the BITs, all the pieces come together

  • RE: To View or not to View

    My understanding, and what I've noticed...

    If an underlying "real" table is accessed WITH NOLOCK, the only "locks" on that table would be a "Schema" lock that could prevent structural changes...



    Once you understand the BITs, all the pieces come together

  • RE: Stored procedures are BAD...a philosophical question

    One thing about SPs, as opposed to client / mid tier, is the code is more exposed. This has never been an issue for me, but it may be to...



    Once you understand the BITs, all the pieces come together

  • RE: Stored procedures are BAD...a philosophical question

    Greg, It might be the "SP Hater" likes Views for limiting access to and from the data, and yes, I think most of us agree that Views are great "tools"...



    Once you understand the BITs, all the pieces come together

  • RE: What You Dont Know

    Nice, to the point... always a good "reminder". Seems coding for NULLs is like making backups, as soon as you don't, you get bit



    Once you understand the BITs, all the pieces come together

Viewing 15 posts - 16 through 30 (of 363 total)