Hi,
It could be that you are missing single quotes around one of your parameters.
Cheers
C
User Profile
Collapse
-
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
CLeave a comment:
-
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...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
_______________ _______________ _______________ _______________ _...Leave a comment:
-
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
CLeave a comment:
-
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.*... -
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'Leave a comment:
-
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
CLeave a comment:
-
I would put the results of the stored procedure into a global temp table.....
Cheers
CLeave 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
CLeave 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...Leave a comment:
-
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....Leave a comment:
-
-
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. -
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...Leave a comment:
-
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...Leave a comment:
-
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....Leave a comment:
-
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.
No activity results to display
Show More
Leave a comment: