Forum Replies Created

Viewing 15 posts - 19,171 through 19,185 (of 22,202 total)

  • RE: A Stroed Procedure in side a StoredProcedure

    You can also use OUTPUT parameters.

    CREATE PROCEDURE proc1

    (@param1 INT

    ,@param2 INT OUTPUT)

    AS

    SET @param2 = @param1 ;

    GO

    CREATE PROCEDURE proc2

    AS...

  • RE: Monitoring stored procedure usage

    In addition to Profiler, if you want to get real time information on queries that are currently in cache, you can get aggregate performance information from sys.dm_exec_query_stats. You can get...

  • RE: SPs/UDFs across different databases

    Personally, I create all the databases out of TSQL code and check the code into a source control management system (Visual SourceSafe VSS, Team Foundation Server TFS, there are others)....

  • RE: Passing parameter to SProc

    I'd change that definition just slightly. It means that the string passed will be unicode. This would be for use with NVARCHAR, NCHAR and the other fields and/or parameters in...

  • RE: Statistics

    Generally, rather than create statistics, I just create an index. It's a fairly rare circumstance that requires you to manually build and maintain statistics rather than simply have an index....

  • RE: Odd DMV Behavior

    Wow! That one is busy. Thanks for posting it.

    Interestingly enough, it's not returning query text for the blocking process either.

    Now that I think about it, maybe it's my test. I'm...

  • RE: Any sql-db-related objects updated?

    I'm still a bit confused by the question.

    By and large, understanding what's occurring at lower levels within the system is useful, but shouldn't be a day-to-day worry. Rather than be...

  • RE: auto locking

    Because, right now, I'm utterly confused what storing an IP address has to do with "auto locking" which is the title of the post.

  • RE: How to get the print message in sproc

    Is this 2005?

    If so... GOTO? Oooh, yuck. 😉

    Using TRY/CATCH you can then do as Gail suggested and fire off RAISERROR which will automatically move you into the CATCH statement. Much...

  • RE: Stored Procedure Basics

    rajesh_281984 (12/3/2008)


    Thanks to all of you guys for giving me good information and the code is working fine now. Can u guys suggest some stored procedure samples that i can...

  • RE: Schemas for Organizing, not for access

    We mostly use schemas for storage requirements or security, but I don't think simple organization would be an issue either. I also agree with Jack, if you have to combine...

  • RE: auto locking

    It's much easier to answer questions on the forum if you provide a very clear, focused and detailed question. Really general and vague questions can only be answered in general...

  • RE: Creating Index(es) in Large Table to Speed Query Processing

    Another word of caution for the DTA. I recently ran a series of experiments using the DTA against AdventureWorks2008. It wasn't capturing obvious indexing issues. I don't trust it at...

  • RE: The Ebb and Flow of Community

    skjoldtc (12/2/2008)


    I have a question for the frequent posters? Do you spend you employer's time answering questions here or are you doing it on your own time. If on your...

  • RE: Migration from 2000 to 2005

    One minor detail in addition, run update statistics will full scan.

Viewing 15 posts - 19,171 through 19,185 (of 22,202 total)