Viewing 15 posts - 17,176 through 17,190 (of 18,926 total)
I'm not... I thaught that there was a refference to the split function.. There is but it's not so easy to find out.
BTW the charindex is about the slowest method...
June 8, 2005 at 2:23 pm
Return must be an int
once you set the output parameter, it "returns" to the caller automatically
CREATE PROCEDURE dbo.sptest
@Par as varchar(9),
@w_o char(9) out
AS
Declare @Int...
June 8, 2005 at 2:17 pm
Wow... can you explain the logic of this one??
June 8, 2005 at 2:14 pm
CREATE TABLE #xyzout ...
Insert into #xyzout (FieldName) EXECUTE master..xp_cmdshell 'xyz.exe
Select * from #xyzout
June 8, 2005 at 2:07 pm
#5 is about the same as #3...
It depends only on the other params of the insert... if they are static, then I'd go with #3, else #5.
June 8, 2005 at 2:05 pm
You can't return something else than an interger in a stored proc. You'll have to use either a function or an output parameter in the proc.
June 8, 2005 at 1:56 pm
Sounds like a good plan... except for the part where the history of the table is kept in the master table. I can't imagine having to go through millions...
June 8, 2005 at 1:47 pm
Not really, the simple version :
Declare @Par as varchar(10)
Declare @Return as varchar(10)
Declare @Int as int
set @Par = '123456-01'
set @Int = CAST(right(@Par, 2) AS INT)
set @Int = @Int - 1
set @Return...
June 8, 2005 at 1:09 pm
run sp_updatestats on the server to update the statistics, then recompile the proc.
If it happens again, post back on this board with the keywords parameter sniffing, and we'll be able...
June 8, 2005 at 1:07 pm
How did you execute it in QA
Did you manually set the parameters' value?
June 8, 2005 at 12:58 pm
Viewing 15 posts - 17,176 through 17,190 (of 18,926 total)