Forum Replies Created

Viewing 15 posts - 76 through 90 (of 1,538 total)

  • RE: Return messages from EXEC SQL Statement to file or variable

    craig-962225 (8/17/2011)


    If I run a set of SQL statements in SQL management Studio I can return the results of SQL query statements to a grid while getting record counts, print...

  • RE: Space used by Temp table

    only4mithunc (9/7/2011)


    Also is how can we check the space used by a temp table in temp db?

    You can check the space used by the session that created the tempdb by...

  • RE: dropping from a column

    jess. (9/10/2011)


    I want to drop results from a column

    ex:

    ...where

    pi.pay_id = lpa.pay_id and

    pi.business_date between '2011-08-14 00:00:00.000' and '2011-08-20 00:00:00.000'

    and lpa.name != 'Sched Vac%'

    and lpa.name != 'BPay%'

    and lpa.name != 'Vacances%'

    and lpa.name !=...

  • RE: How to find X job run on which time?X job already created,DO we know

    query sysjobschedules in msdb database.

  • RE: Restore database

    In fact i shud write the names too 🙂

    Glenn Berry i remember.. but hard to find actual owners for all queries 🙁

  • RE: Restore database

    Ninja's_RGR'us (9/8/2011)


    I did and now I don't know where I got it from :-D.

    I'll write your name at the top of the notepad file;-)

    I have done this only one time...

  • RE: Restore database

    GilaMonster (9/8/2011)


    ps. (9/8/2011)


    GilaMonster (9/8/2011)


    Restoring over an existing database that is in use? If so, the restore can't even start until exclusive access is obtained on the DB.

    SQL throws error message...

  • RE: Restore database

    Thanks for the script Remi. I had written one but this is better. Copied and saved for future use 😉

  • RE: Restore database

    GilaMonster (9/8/2011)


    Restoring over an existing database that is in use? If so, the restore can't even start until exclusive access is obtained on the DB.

    SQL throws error message for the...

  • RE: Restore database

    how are u measuring progress? hv you used stats clause in restore? or are you using dmvs?

  • RE: SQL Windows Logins

    we've seen orphaned users which are actually windows logins.

    sp_help_users_login 'report' doesnt list orphaned windows logins.

    you'll hv to write a script to match SIDs bettween database_principals and server_principals.

  • RE: SQL Server 2010

    Thanks Gail.

  • RE: SQL Server 2010

    Is sql denali available for production?

  • RE: How to transfer files when log shipping

    you can create a custom script in vbscript or other scripting language to transfer the files. Sort the files based on modified timestamp so that oldest file is copied first....

  • RE: tempdb log is growing

    You can also use sys.dm_db_session_space_usage DMV to find out which session is using/has used tempdb including IO done in tempdb.

Viewing 15 posts - 76 through 90 (of 1,538 total)