Forum Replies Created

Viewing 15 posts - 91 through 105 (of 184 total)

  • RE: Pipe result of a query into new command - T-sql

    This may help you

    DECLARE @session_id int

    Declare @command varchar (max)

    DECLARE DATABASES_CURSOR CURSOR FOR

    select session_id FROM sys.dm_tran_active_snapshot_database_transactions

    where elapsed_time_seconds>30

    OPEN DATABASES_CURSOR

    FETCH NEXT FROM DATABASES_CURSOR INTO @session_id

    WHILE @@FETCH_STATUS = 0

    BEGIN

    SET @command='KILL '+convert( varchar(2),@session_id)

    exec (@command)

    FETCH...

    Ryan
    //All our dreams can come true, if we have the courage to pursue them//

  • RE: Database response very slow

    Thanks steveb

    Ryan
    //All our dreams can come true, if we have the courage to pursue them//

  • RE: Database response very slow

    I got the point. I ran index rebuild job and update statistics without checking whether indexes are there or not. Actually keys,indexes are not copied when copied using import export...

    Ryan
    //All our dreams can come true, if we have the courage to pursue them//

  • RE: Database response very slow

    It was copied using Import and export wizard. There is no fragmentation of indexes and statistics were updated.

    The application is connecting to the database through ODBC and default database is...

    Ryan
    //All our dreams can come true, if we have the courage to pursue them//

  • RE: My organization is being using Sql server 2000 from past years, now they want to move to the SQl Server 2008

    Hi grant,

    As you said ANSI 89 outer joins are no longer supported in 2008, I have one doubt. If we change the database compatiblity level to SQL server 2000, will...

    Ryan
    //All our dreams can come true, if we have the courage to pursue them//

  • RE: What's a good source for DBA checklists?

    http://www.mssqltips.com/tip.asp?tip=1240

    Ryan
    //All our dreams can come true, if we have the courage to pursue them//

  • RE: Problem in Passing Parameter

    You can pass single value at a time using a single variable.

    Ryan
    //All our dreams can come true, if we have the courage to pursue them//

  • RE: request for syntax

    @suresh Nice example

    Ryan
    //All our dreams can come true, if we have the courage to pursue them//

  • RE: how do i get the row count for a particular record with the same name.

    select name, code, status, COUNT(*) "rowcount" from tablename group by Name,code,status

    Ryan
    //All our dreams can come true, if we have the courage to pursue them//

  • RE: Create Proxy error

    Is it a domain account that you have created on your server?

    Ryan
    //All our dreams can come true, if we have the courage to pursue them//

  • RE: Sysadmin access required

    So apart from that, there are no other option like adding my account to a group which is having sysadmin access like that?

    Ryan
    //All our dreams can come true, if we have the courage to pursue them//

  • RE: Can not apply SQL server 2008 SP2

    SP2 is redownloaded and server is restarted but it does not start after extracting the files. Can it be somthing is missing in server?

    Ryan
    //All our dreams can come true, if we have the courage to pursue them//

  • RE: Can not apply SQL server 2008 SP2

    I checked system log and it has two information log during that time- "The TPM Base Services service entered the stopped state." and "A compatible Trusted Platform Module (TPM) Security...

    Ryan
    //All our dreams can come true, if we have the courage to pursue them//

  • RE: Can not apply SQL server 2008 SP2

    Hi,

    It is SQL server 2008 with SP1. I checked the logs here in C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log. But there is no logs with todays date. Actually once I run...

    Ryan
    //All our dreams can come true, if we have the courage to pursue them//

  • RE: Syntax Error...

    you have to run it from cmd prompt.

    Ryan
    //All our dreams can come true, if we have the courage to pursue them//

Viewing 15 posts - 91 through 105 (of 184 total)