Forum Replies Created

Viewing 15 posts - 1,306 through 1,320 (of 2,647 total)

  • RE: MAT Quarter

    Great! Good for you! 🙂

    I assume there was question you wanted to ask, or you were just letting us know? 😀

  • RE: IMPORT DATA INTO A TABLE FROM A FLAT FILE

    My guess is that SSIS is converting the column.

    If you run this code:CREATE TABLE #temp (create_date DATE)

    INSERT INTO #temp

    SELECT 20120501

    You get an error... right? Why do you think that it...

  • RE: I need my columns to trim off a few pounds...!

    ilike doing these types of things in steps to verify what I have done:

    USE test

    CREATE TABLE #test (gobbledegook VARCHAR(30))

    INSERT INTO #test

    SELECT '*12345'

    UNION ALL

    SELECT '*6789-hir'

    UNION ALL

    SELECT 'hello-john'

    SELECT gobbledegook, CHARINDEX('*', gobbledegook, 1)

    FROM...

  • RE: Reduce the store Procedure execution time

    SS999 (3/27/2012)


    Currently its on sql server 2005.

    Replace

    SET @OneMonthBackDate = CAST(DATEADD(mm, -1, GETDATE()) - DAY(GETDATE()) AS DATE)

    with this:

    SET @OneMonthBackDate = CAST(DATEDIFF(D,0,DATEADD(mm, -1, GETDATE()) - DAY(GETDATE())) AS DATETIME)

  • RE: Reduce the store Procedure execution time

    SS999 (3/27/2012)


    Hi Elutin,

    I m trying to execute ur code to test and i get this error.

    Msg 243, Level 16, State 1, Procedure Select_QuotestoBind_TestSample, Line 9

    Type DATE is not a defined...

  • RE: not getting rid of physical reads

    The Dark Passenger (3/27/2012)


    It means when the code dealing with the amount of data having memory space required more than RAM we get physical reads...am I right?

    I think we are...

  • RE: Having Trouble Deleting a DB

    Again, the point being that as soon as you logged off of SQL Server, something created a connection. You should have found out what that was...

  • RE: Having Trouble Deleting a DB

    djustice 20821 (3/27/2012)


    This is the code that I used:

    ALTER DATABASE DB

    SET SINGLE_USER

    WITH ROLLBACK IMMEDIATE

    GO

    DROP DATABASE db

    GO

    and the error that I got:

    Msg 5064, Level 16, State 1, Line 1

    Changes to...

  • RE: CAST vs CONVERT or another solution?

    SELECT mt1.col1,

    mt1.col2,

    mt1.b,

    cnt.countInd

    FROM #mytable1 mt1

    ...

  • RE: Having Trouble Deleting a DB

    Just guessing... but did you put the database into single user using the query window, then try to delete the database by right-clicking on it and selecting delete? (2 connections;...

  • RE: CAST vs CONVERT or another solution?

    S_Kumar_S (3/27/2012)


    Using cast or convert won't make any differencr performance wise.

    That's not true...

  • RE: How to reduce the execution time of a query?

    How long does it take to just execute your cte portion?

    SELECT --COUNT(*)

    j.NameIDRef

    , 0 AS SEQNUM

    , ADR.GASTR# AS PREMISE

    , A.PnxCodeValue AS PREFIX

    , ADR.GASNAM AS STREETNAME

    , B.PnxCodeValue as STREETTYPE

    , ADR.GASQLF AS APTNO

    ,...

  • RE: Having Trouble Deleting a DB

    Find out what is using that process before doing anything and find out why it is still accessing the database.

  • RE: Upgrading trail version of VS2008 on live SQL Server 2008R2

    Why are you trying to open that? The maintenance plan can be edited in SSMS.

    Are you trying to do this on a client computer or the server? Your statements are...

  • RE: How to reduce the execution time of a query?

    Ok, now you just set all rows = 0 for seqnumber, and then you filter on that. Why? Take out that column in the cte and take out the...

Viewing 15 posts - 1,306 through 1,320 (of 2,647 total)