Viewing 15 posts - 121 through 135 (of 388 total)
You can just do a 'RETURN' at the end of the stored procedure. Assign correct value to the OUTPUT parameter and it will be passed to the calling procedure.
October 10, 2008 at 8:29 am
There is no built-in function in SQL Server 2000/2005. (in 2008, you can use the DATE data type).
You can strip off the TIME part from a datetime value by running...
October 10, 2008 at 8:23 am
The return value of a stored procedure is INT. You cannot return a string or other data types. The correct way to do this is to use an OUTPUT parameter.
October 10, 2008 at 8:21 am
You only have two CREATE statements in your script and the first CREATE statement already has it.
Now find out the missing place 🙂
October 10, 2008 at 4:45 am
Try this script and see if you get the same results:
CREATE PROCEDURE innerproc as
select 0
go
create procedure outerproc1 as
execute innerproc
go
create procedure outerproc2 as
execute innerproc
go
sp_depends innerproc
/*
name ...
October 10, 2008 at 4:13 am
which version of SQL Server are you working with? I have heard that some times the dependency information is not updated correctly. But i could not experience such a case...
October 10, 2008 at 4:06 am
SET ANSI_NULLS and QUOTED_IDENTIFIER to ON before the create statement and see if that fixes the problem.
October 10, 2008 at 3:57 am
Look for the following in BOL
DBCC INDEXDEFRAG
DBCC DBREINDEX
October 10, 2008 at 12:02 am
Yes, that's absolutely true... but my point was that you shouldn't use SELECT *. 🙂
I agree with you Jeff. I am not in favor of using 'SELECT *'
October 9, 2008 at 11:34 pm
Agreed. But in such cases, having an index (even if it is NC) might be better than not having an index (even if there is an RID lookup). An index...
October 9, 2008 at 10:51 pm
Well, if the selectivity is high, query optimizer might use an 'index seek' even if the query contains "select *".
October 9, 2008 at 9:37 pm
Two things
1. to retrieve the context_info value you assigned, you should use the CONTEXT_INFO() function.
2. Context_info is a binary value. you should use a VARBINARY(128) column to store it.
Here is...
October 9, 2008 at 9:18 pm
Brian,
The XML parameter has the 'items' node.
Try to run the sample code (last example) in the pubs database and see if you get a correct RSS feed generated.
October 9, 2008 at 8:48 pm
Is this question to me or to "bjoern"?
October 9, 2008 at 10:43 am
Viewing 15 posts - 121 through 135 (of 388 total)