Forum Replies Created

Viewing 15 posts - 286 through 300 (of 345 total)

  • RE: Do you know how to use SQL to make an 'indirection

    I think the only way to do this is via dynamic sql

  • RE: SQL Server VS. Oracle

    It probably comes down to

    'Can my system be implemented on the platform'.

    The answer is almost certainly yes on both SQL Server and Oracle.

    It will work better if it is...

  • RE: Detecting changes during insert/update

    Sorry - that site (amazing grapics!) is hosted by ntl and I've lost the ability to update it.

    I'll add you when I move it somewhere else. Plan to host it...

  • RE: Who's holding the Lock?

    This sp

    http://www.nigelrivett.com

    sp_nrLocks

    Will give you a list of the locks held and spid info and can give the commands that the spid is executing.

    You can maybe get the page...

  • RE: "Select * from @var" possible?

    >> A sp is compiled at creation, isn't it

    Not any more - it is compiled at first run - and possibly at every run if it is dependent on transient...

  • RE: Detecting changes during insert/update

    You can use sp_executesql to run the d-sql - set a return parameter from @@rowcount and return that.

    There is an example of using sp_executesql to return parameters from d-sql and...

  • RE: Sql Help !!!!!

    You can just run

    select 'dbcc dbreindex(' + name + ')' from sysobjects where xtype = 'U'

    (or something like that).

    The run the output

    Alternatively it's not difficult to write a script to...

  • RE: SQL Mail reply address

    You can use the com object calls to use it.

    If you want to use xp_sendmail you can stop the mail service and start it again with a different return address...

  • RE: SQL Server VS. Oracle

    I suspect that it is more possible to design a database write code in sql server to utilise the available memory more efficiently (that might just be because I...

  • RE: Sql Help !!!!!

    Have you looked in the bol?

    A fill factor defines how much free space should be left in a page. The moer free space the more likely that new data can...

  • RE: C Plus and stopping query in process

    you could send a kill <spid> command from another connection. It will close the connection <spid> if at all possible.

  • RE: Complex SQL syntax

    select id, name = max(name)

    from tbl

    group by id

  • RE: reference from one table to another

    You have a mls_photo table which has the trigger on it and you want to insert into the mls table in the trigger?

    If that's the case then

    insert mls (...)

    select ...

    from...

  • RE: reference from one table to another

    I'd left one reference to inserted which is probably why it fails

    CREATE TRIGGER photo_numbers

    ON mls_photo

    FOR INSERT , UPDATE

    as

    insert into mls(p_mod_date_time, photo)

    Select Left(CONVERT( varchar , getdate() , 1),8),

    case when m.medium_photo...

  • RE: Time function help

    have you looked in the bol?

    try

    Datediff(mi, Logtime, Getdate())

Viewing 15 posts - 286 through 300 (of 345 total)