Forum Replies Created

Viewing 15 posts - 2,011 through 2,025 (of 2,037 total)

  • RE: Get calling Procedure name in Trigger

    Hi

    IF (OBJECT_ID('udp_test') IS NOT NULL)

    DROP PROCEDURE udp_test

    GO

    CREATE PROCEDURE udp_test

    AS

    SELECT * FROM sys.procedures WHERE object_id = @@PROCID

    GO

    EXECUTE udp_test

    Greets

    Flo

  • RE: generating and storing a counter

    Mohit (3/5/2009)


    Luckily I haven't ran into replication much. Because as the only technology seems to be the defacto where I work is clustering or nothing heh. But for...

  • RE: generating and storing a counter

    Okay I suspected that this discussion will start now...

    I got my coke and my popcorn 😀 so let me learn about pro and contra of IDENTITIES! I'm really always interested...

  • RE: generating and storing a counter

    :hehe: Your DBAs are RIGHT :hehe:

    Hi Noel

    Thank you for this information! I still do not really know why but I don't have to. I'm an architect and only need to...

  • RE: generating and storing a counter

    Wow, that's some news there! How can you not like identity columns? I tell database developpers to put 1 on each and every table in the database. Only in really...

  • RE: generating and storing a counter

    Hi

    There are several possible practices.

    If you only need an unique id you may use an IDENTITY INT column. If it does not matter if the id is an INT you...

  • RE: HTML Output or something similar

    Hello saint

    I would suggest to use XML. After selection of data you can simply transform it with XSLT to HTML.

    Here a little example

    IF (OBJECT_ID('tempdb..#test') IS NOT NULL)

    DROP...

  • RE: Problem with the LIKE operator in the Select statement.

    Or the classic style

    DECLARE @t TABLE (txt VARCHAR(100))

    INSERT INTO @t VALUES ('abc')

    INSERT INTO @t VALUES ('a_bc')

    SELECT * FROM @t WHERE txt LIKE 'a[_]%'

  • RE: Unable to find Acitivty monitor in SQl Server 2008

    The other question:

    1. Way

    In toolbar the icon right of the "Print" icon is the "Activity Monitor"

    OR

    Right click on the server within the "Object Explorer" -> "Activity Monitor"

    Greets

    Flo

  • RE: HELP ME

    Hi

    As first:

    Sorry for a partial answer to the question :D. I also do not like those kind of wording.

    As second:

    Sounds that you want to trace information. Maybe have a look...

  • RE: Building table dynamically fails

    Bob Hovious (3/5/2009)


    DOH!! :w00t:

    That's what I get for having gotten away from using EXEC.

    *affirmative*

    😉

  • RE: How Do I strip the decimal out of a price

    Hi

    I'm not sure but just:

    SELECT CONVERT(INT, 21.80 * 100)

    ???

    Greets

    Flo

  • RE: UPDATE from Database 1 to Database 2

    Hi

    Are you sure that the posted statement works?

    Maybe try this:

    UPDATE sp1 SET

    sp1.Bank = sp2.Bank,

    sp1.Account = sp2.Account

    ...

  • RE: reducing execution time of Stored Procedure

    Some generals

    * Use of "SET NOCOUNT ON" is an important option for stored procedures.

    * Avoid to much dynamic SQL generation

    * If you use dynamic SQL generation determine if RECOMPILE may...

  • RE: Building table dynamically fails

    Hi

    It seems that some parts of your statement are not shown correctly, but I think I know the problem.

    Use:

    EXECUTE sp_executesql @v_exec_str

    Instead of

    EXEC @v_exec_str

    Greets

    Flo

Viewing 15 posts - 2,011 through 2,025 (of 2,037 total)