Forum Replies Created

Viewing 15 posts - 2,836 through 2,850 (of 13,469 total)

  • RE: Moving a database log file when recovery model is Simple

    dan-572483 (12/6/2013)


    Then why would my simple recovery model databases not come online with copies of the original log files in the new location?

    does the startup account of SQL server have...

  • RE: executing dynamic sql string

    This way be an object name, and optionally parameters after object name

    exec @sqlStr

    THIS way, you can execute a string command: note the parenthesis!

    exec(@sqlStr )

  • RE: Performance impact if I reference objects from other databases inside the same sql

    As I understand it, there will be no significant impact at all;

    if you look at the execution plan, all objects are extracted out to their four part naming convention anyway;

    I...

  • RE: Sql Select statement running slow

    On The server NJACCOUNTING01, look at the indexes on the table marlin_test.dbo.apdoc

    an index like this would greatly help the query, i believe:

    CREATE INDEX IX_apdoc ON dbo.apdoc(Crtd_DateTime,DocType,VendId) INCLUDE (user1,vendid)

    see what indexes...

  • RE: Returning Value fo Foreign Key

    Tina there's quite a few things i'd do differently as far as the naming of tables and columns; Tables don't need tbl_ in front of the name, and the PK...

  • RE: how to maintain test environment

    here's an adapted example of some code i use to check for invalid objects; this will recompile your procs/functions/views to allow you to point to a different database.

    at the end,...

  • RE: sp_send_dbmail; one record at a time

    ok, here's a cursor example adapted a bit to your requirements;

    YOU will have to modify it to manage any date conversions/formats to varchar, as well as gracefully handle nulls, because...

  • RE: sp_send_dbmail; one record at a time

    also, wouldn't it be better to send an email simply stating there is an alert/facilities are down,a nd direct them to a web page for details?

  • RE: sp_send_dbmail; one record at a time

    ok, so how many rows does your query return?: and please confirm that if that returns 100 rows, you want 100 emails, one per row? is that what you are...

  • RE: sp_send_dbmail; one record at a time

    wheelsthatgrip (12/5/2013)


    Hello All,

    I am using dbmail to send out the results of a query. The results are being sent to SMS users so the output has to be limited...

  • RE: Triggers for insert,update,delete in MSSQL

    details. you'll wnat to provide details if you wantany meaningful answers.

    inside the trigger, you compare the columns in the virtual tablees INSERTED and DELETED to each other.

    ie

    IF EXISTS (SELECT 1...

  • RE: Hit on DB from a User

    Ratheesh.K.Nair (12/5/2013)


    Hi Experts,

    We have a DB user names Supply . Application will hit the DB with this username.

    Is there anyway to find the hit happening to the database?Thanks in...

  • RE: Column properties of table variables

    Gail i just tried that, but cannot seem to get the object_id;

    for a temp table, i can get object_id('tempdb.dbo.TableName') no problem, but is there a trick for table variables?

    this is...

  • RE: Triggers for insert,update,delete in MSSQL

    navimir (12/5/2013)


    I am working on triggers for insert,update and delete

    output of the trigger shows tablename,user and timestamp

    Is it possible to display the column name,old value and new value??

    There are around...

  • RE: how to maintain test environment

    rightontarget (12/4/2013)


    but then I will have to edit every procedure to make sure that joins point to test instance of the database.

    so your procedures are using three part naming...

Viewing 15 posts - 2,836 through 2,850 (of 13,469 total)