Forum Replies Created

Viewing 15 posts - 1 through 15 (of 25 total)

  • RE: Distributed Query

    Thanks Guys, I've managed to crack it. It just needed more single qoutes, and here is the code

    SET QUOTED_IDENTIFIER ON

    DECLARE @srvname nvarchar(50),

      @query nvarchar(200)

    SELECT @srvname='TEST123'

    SELECT @query=N'' + @srvname

    SELECT @query=@query + '.master..sp_msforeachdb...

  • RE: Maintenance Plan Not Updating

    I've seen this before and the only way I know is to re-create the plan.

  • RE: Anti-Virus Software on SQL Server

    We have all our servers running SQL with Virus check software. We only enabled scanning on incoming files, and so far no performance issues.

  • RE: URGENT:Indexes removed

    If optimization job was used, it would drop and create indexes table by table and in one big transaction. If anything fails, it should roll back.

  • RE: permission trouble running jobs

    Only sa can manage jobs for all of the SQL server. However,  other users who have been given access to MSDB can create their own jobs and manage them. The problem here is...

  • RE: SQL 2000 Upgrade on Same Server

    Upgrading to SQL2K is straight forward,

    1- detach databases

    2- install SQL2K and choose upgrade option

    3- attach databases

  • RE: How to find out the biggest table by size in a database?

    Here is another solution, that list all tables and database size.

    CREATE TABLE #temp(

     rec_id  int IDENTITY (1, 1),

     table_name varchar(128),

     nbr_of_rows int,

     data_space decimal(15,2),

     index_space decimal(15,2),

     total_size decimal(15,2),

     percent_of_db decimal(15,12),

     db_size  decimal(15,2))

    -- Get all tables, names, and sizes

    EXEC sp_msforeachtable @command1="insert into #temp(nbr_of_rows, data_space, index_space) exec sp_mstablespace...

  • RE: Unable to access a SQLServer 6.5 Database (SA passwd forgotten)

    Are you saying the server is configured to only accept standard SQL login? if so you would need to rebuild your master databse and restore database(s) from backup. If security...

  • RE: job faild

    Does the userID used on the jon have access to the T drive or the file? How about creating a batch/cmd file and call these file from the dts package.

  • RE: Killing all the process

    Here is a simple method to kill all processes related to a database,

    declare @runcmd varchar(100), @dbconn int

    declare dbconn cursor

    for select spid from sysprocesses

    where dbid=11 --Your database ID

    open dbconn

    fetch next...

  • RE: killing a process that is rolling back

    Make the database suspect and restore from backup. That way SQL will not rollback.

  • RE: Job Running Status permission

    AJ,

    In EM once you start a job, you can refresh the screen to see its status. So far only Sysadmin members can see the status (Executing/Not Running).

  • RE: Job Running Status permission

    Thanks for Steve and AJ, the problem is these guys need to check the jobs and run then in the Enterprise Manager, and as they had the SA permissions before and...

  • RE: Split log file or not?

    I guess there are some good points to split log file. First, it enhance the restore operation when restoring from multiple files on separate disks. Second, if you have a disk space...

Viewing 15 posts - 1 through 15 (of 25 total)