User Profile

Collapse

Profile Sidebar

Collapse
moldster
moldster
Last Activity: Oct 10 '06, 02:36 PM
Joined: Jul 28 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Hi,

    It could be that you are missing single quotes around one of your parameters.

    Cheers
    C
    See more | Go to post

    Leave a comment:


  • moldster
    replied to time out expired
    Hi,

    I take it the time out occurs on the page. You need to up the wait limits on the page. It's not a SQL problem, it's a web problem. I've had that same problem here.

    Cheers
    C
    See more | Go to post

    Leave a comment:


  • moldster
    replied to Deleting duplicate rows in a table
    CREATE PROCEDURE RemoveDuplicate AS
    Begin
    SET NOCOUNT ON
    --
    DECLARE @iErrorVar int,
    @CertificateID INT,
    @ClientID INT,
    @iCount int,
    @chCount char(3),
    @nvchCommand nvarchar(4000)
    -- set initial environment
    SET ROWCOUNT 0
    -- Build cursor to find duplicated information

    --Change...
    See more | Go to post

    Leave a comment:


  • The @Cmd string doesn't seem to include the second exec.

    set @cmd = 'osql -E -d ' + @dbname + ' + '-Q' + ' "exec ret_sizes @fname OUTPUT,@fsizes OUTPUT"' '

    exec @CMD




    _______________ _______________ _______________ _______________ _...
    See more | Go to post

    Leave a comment:


  • moldster
    replied to Removing HASH Match / Inner Join
    Hi,

    Thanks for the reply. Yes I do have the indexes identically setup on both tables. Could it be ignoring the indexes because of the size difference of the two tables? One has 1millish and the other 2.5mill ish?

    Cheers
    C
    See more | Go to post

    Leave a comment:


  • moldster
    started a topic Removing HASH Match / Inner Join

    Removing HASH Match / Inner Join

    Hi,

    I'm at my wits end! I have two large tables one with 1.2mill one with 2.3 mill and they are very wide tables. I have a select with an inner join. All columns used in the join are contained in indexes. But it does an index scan and a massive hashmatch. Why is this? both tables have columns in the index ordered the same, all datatypes of the indexes are ints. The code looks like this.

    SELECT TblActivities.*...
    See more | Go to post

  • moldster
    replied to Scrambled data in some fields
    If I understand you, you need to try the following

    INSERT INTO PossibleErrors
    ( SID )
    SELECT SID
    FROM Table
    WHERE SUBSTRING(conve rt(varchar,SID) ,1,3) = '000'
    AND SUBSTRING(conve rt(varchar,SID) ,4,1) = '0'
    AND SUBSTRING(conve rt(varchar,SID) ,7,1) = '0'
    AND SUBSTRING(conve rt(varchar,SID) ,8,1) = '0'
    See more | Go to post

    Leave a comment:


  • moldster
    replied to Insert Problem in MS SQL
    Does your code look like this.

    INSERT INTO Table1
    ( Col1, Col2, Col3.....Etc)
    SELECT col1, Col2, Col3
    FROM Table2

    If not then it won't work. Post your code and I'll have a look

    Cheers
    C
    See more | Go to post

    Leave a comment:


  • moldster
    replied to OUTPUT and Recordset
    I would put the results of the stored procedure into a global temp table.....

    Cheers
    C
    See more | Go to post

    Leave a comment:


  • Hi,

    Why don't you import the excel to it's own table and write a stored proc to do the updates for you?

    Cheers
    C
    See more | Go to post

    Leave a comment:


  • I don't think you can do this because DynamicSQL has it's own scope. Which means it won't return anything to the function. It will just run. So you can't do

    SET @Return = EXEC @Command

    As they are two different scopes.

    What you could do is store the results of the output to a temp table and interrogate that when the function completes.

    Cheers
    C...
    See more | Go to post

    Leave a comment:


  • moldster
    replied to Very Small Numbers
    Ahh the joy of ferreting around SQL Online help.

    This 1.0000000000 / 15.0000000000

    Returns

    .0666666667

    It's because I used an INT and SQL Server in its wisdom therefore returns and INT Result.

    Cheers, apologies for wasting anyones time.

    Craig....
    See more | Go to post

    Leave a comment:


  • moldster
    replied to Searching a database
    Hi,

    Have you got an Index on the Word column?

    Cheers
    C
    See more | Go to post

    Leave a comment:


  • moldster
    started a topic Very Small Numbers

    Very Small Numbers

    Hi Groovers,

    Anyone know a good way of making sql perform

    1/15

    It returns 0.0 or 0 no matter what I try.

    Help would be greatly appreciated.

    Regards,
    Craig.
    See more | Go to post

  • moldster
    replied to ASP.NET Stops Responding.
    Sashi,

    It turns out that there is a machine.config based value that times the page out at three minutes. It's called Interval Timeout or something. We set that to 20 minutes and the page is still timing out.

    Arrgghh! Any further ideas would be appreciated.

    Cheers
    C...
    See more | Go to post

    Leave a comment:


  • moldster
    replied to ASP.NET Stops Responding.
    Hi there,

    Thanks for your reply. What this is doing is importing a file and validating the columns row by row. So SQL Server size is not important. It's processing 5000 rows and SQL Server looks to complete ok and it drops the connection when it's done. If we remote into the server and do it "locally" the process completes ok. So it's got to be a timeout issue. Thing is we've set all the timeouts to a crazy number of...
    See more | Go to post

    Leave a comment:


  • moldster
    replied to ASP.NET Stops Responding.
    Hi Sashi,

    Thanks for responding. We have checked all the timeout options and set them to very large numbers. Still get the issue tho'.

    Cheers
    Craig....
    See more | Go to post

    Leave a comment:


  • moldster
    started a topic ASP.NET Stops Responding.

    ASP.NET Stops Responding.

    Hi all,

    We've got a page that executes a stored proc on SQL Server. The stored proc completes. I know this because I've checked using profiler. But for some reason our web page simply "hangs" and does not continue on to next task.

    The code runs successfully on IIS v5.1, but is hanging on IIS version 6.0. Please help.

    Regards,
    Craig.
    See more | Go to post
No activity results to display
Show More
Working...