Forum Replies Created

Viewing 15 posts - 8,131 through 8,145 (of 9,641 total)

  • RE: CREATE TABLE with variable name

    You need to use dynamic SQL In order to use variables. It would be like this:

    [font="Courier New"]DECLARE @test-2 AS INT,

               @sql VARCHAR(MAX)

    SET @test-2 = CONVERT(CHAR(8), GETDATE(), 112)

    SET @sql =...

  • RE: Speed difference between SSIS or T-SQL

    As SQLNoob has said there are many other factors in place as well. IN reality the maintenance plan which uses SSIS, is really just running the BACKUP DATABASE command...

  • RE: Indented Bill of Materials Query and Proper Sorting with CTEs

    Yeah, that would make sense as SortKey is mtlseq converted to varchar. You would just want to convert SortKey back to a numeric.

  • RE: Using date in order by

    Odds are your clustered index is on order_id so no sorting actually has to be done. When you add order_date then the server actually has to apply a sort...

  • RE: Indented Bill of Materials Query and Proper Sorting with CTEs

    Include numeric sort fields in the CTE, you don't have to output them to the report. LIke this:

    [font="Courier New"]DECLARE @TOPPART VARCHAR(32)

    SET @TOPPART = '11001-01';

    WITH BOM(partnum,revisionnum,mtlseq,mtlpartnum,qtyper,bomlevel,sortkey, sortkeynum1, sortkeynum2)

    AS

    (

            SELECT partnum,revisionnum,mtlseq,mtlpartnum,qtyper,1 AS...

  • RE: use/unused databases

    None that I am aware of although there may be something in the DMV's.

  • RE: Finding a delivery date based on flags

    I keep thinking I have a solution, but As I test it to make sure it will work in each Company/delivery day situation I find cases where the solution does...

  • RE: Error In opening MRS Reports in VS.NET 2003. (URGENT)

    I don't think you can modify\open SSRS 2005 reports in VS 2003. SQL Server 2005 installs BIDS which is a limited version of VS 2005 if VS 2005 is...

  • RE: Finding a delivery date based on flags

    Okay, I misunderstood your problem as well, I think. The solution I offered assumed that the DeliveryDates were dates the company would deliver on, so if I order on...

  • RE: Sanity Check

    I'm not suer what you really gain by adding SQL Server 2005 instances as Gail has said you really can't let them all dynamically manage memory which means you have...

  • RE: Finding a delivery date based on flags

    Here is a solution that includes a Numbers[/url] table. The caveat is that my solution needs the numbers table to include 0. You can obviously adapt the solution...

  • RE: derived column

    Use the conditional statement in the derived column transfer.

    value=="y" ? "true" : "false"

    Remember that comparison in SSIS IS case-sensitive.

  • RE: Cursor vs. Common Table Expression

    It would depend on what you are doing in the cursor as to wether or not you could convert it to a CTE and/or how you would write the CTE,...

  • RE: Social Profiling

    blandry (8/1/2008)


    A few months after the reunion I heard from three class members asking that I pull their pages. Two were in the financial industry and one in healthcare...

  • RE: if-else

    The code you posted is incomplete. You are missing at least 1 END and you are not explaining what you want the code to do. If you look...

Viewing 15 posts - 8,131 through 8,145 (of 9,641 total)