Forum Replies Created

Viewing 13 posts - 61 through 74 (of 74 total)

  • RE: Searching Stored Procedures

    Old School:

    loop through all SP's

      exec sp_helptext 'proc name'

      search text

      break (when found)

    end


    Regards,

    Coach James

  • RE: Importing Flat file with Fixed-length columns

    For future reference & a little bit of old school:

    create <tablename>(<fieldname> Nvarchar(1000))

    grant all on <tablename> to public

    EXEC master..xp_cmdshell "bcp DB..<tablename> in C:\<filename>  /U<user> /P<password> /n"

    Now you have...


    Regards,

    Coach James

  • RE: data architecture

    data structures should be sepperate, when any of your field data in a table is repeated.

    example like patient record

    is linked to more than one address, & treatments, & appointments, etc... so...


    Regards,

    Coach James

  • RE: Returning a record from a queue using stored procedure

    You need a sequential aproach:

    because you start a transaction and do all the processing in the same transaction, the flag is being set at the end of your process...(commit)

    other calls start...


    Regards,

    Coach James

  • RE: RSS Newsfeeds to SQL?

    You need SOAP & SQLXML:

    see (RE: Soap RPC via SQLXML

    Posted 3/16/2004 9:39:00 AM) from fhanlon user.


    Regards,

    Coach James

  • RE: Trigger

    You're both right & now have the requestor re-thinking the purpose for his question...

    I would like to know why he/she needs to do this action and if it is a fast fix...


    Regards,

    Coach James

  • RE: T-SQL Experts - Can this SP be recoded to work as a UDF

    I believe this needs "DECLARE <name> INSENSITIVE CURSOR FOR";otherwise its not in a loop...

    Insert Into @temp

      Select Distinct employeeid

      From directory

      Where higmanagerempid =...


    Regards,

    Coach James

  • RE: Identify triggers event /action in triggers script ?

    Simple answer & most overlooked;is that you can create a trigger for each event like this:

    CREATE TRIGGER [sp_INS_trrequest] ON [dbo].[TrRequest]

    FOR INSERT

    AS

    BEGIN

    CREATE TRIGGER [sp_UPD_trrequest] ON [dbo].[TrRequest]...


    Regards,

    Coach James

  • RE: Server error Msg 208 for a stored procedure

    A large procedure is memory intensive; lots of temp tables means lots of memory allocation; Intermittent errors caused by reused memory area, like partitioning between functions. Something gets dropped, usually...


    Regards,

    Coach James

  • RE: Return multiple rows from a cursor with one fetch (need to do paging)

    This may seem to simple, but why not place 'FETCH ABSOLUTE @FromRec FROM cPartners' into a loop?

    DECLARE @MaxRec Int

    SET @MaxRec = 10

    WHILE (


    Regards,

    Coach James

  • RE: T-SQL Experts - Can this SP be recoded to work as a UDF

    Recursive function example;

    Trick is using simplified create function,

    then use alter function to add the recursive call.

    http://www.sqlservercentral.com/scripts/contributions/890.asp


    Regards,

    Coach James

  • RE: Indexed views

    Also, you can resort to forcing indexes, whenever the optimizer is being stubborn…

    (NOLOCK INDEX=<index_name&gt


    Regards,

    Coach James

  • RE: Column length and Performance

    Other than creating large dynamic statements, why would you need a Nvarchar(4000)?

    SQL supports (image & text) types which are much more effient in storage&recall..

     


    Regards,

    Coach James

Viewing 13 posts - 61 through 74 (of 74 total)