Forum Replies Created

Viewing 15 posts - 6,871 through 6,885 (of 7,466 total)

  • RE: Is there a way to distribute EM registrations ?

    I've tested export of regestry keys "registered servers x"  and "MSSQLserver" (with subkeys), but that did not do the trick

    That only gives me...

  • RE: Deleting 170 Million rows - Database Maintenance

    so after the delete operation, did you perform dbcc updateusage for that db ?

    With such mass operations, statistics often get out of date.

    If...

  • RE: storing variable in command file from SQL Server

    You could generate your queries as you desire and store them in a file and then use osql to execute from the saved file(s).

     

  • RE: transaction log file full

    this message occurs when sqlserver gets a timeout when trying to extend a file. In this case it's the logfile.

    The is no need...

  • RE: comma separated values usage in where clause

    IMHO memberlists should be documented in a separate entity containing at least listID and memberID.

    This way your queries will be easy and straightforward.

    With the kind of list you are using...

  • RE: Defragment table?

    Don't drop/recreate the clustered indexes !

    use dbcc dbreindex (check BOL)

    DECLARE @TableName nvarchar(261)

    DECLARE @SQLStatement nvarchar(4000)

    DECLARE TableList CURSOR LOCAL FAST_FORWARD READ_ONLY  FOR

    SELECT

        QUOTENAME(TABLE_SCHEMA) +

        N'.' +

        QUOTENAME(TABLE_NAME)

    FROM

        INFORMATION_SCHEMA.TABLES

    WHERE EXISTS

        (

        SELECT *

       ...

  • RE: How to get the top boss from list of employess?

    How about this :

    set nocount on

    declare @Employees table (EmployeeID integer not null, ManagerID integer null, EmployeeName varchar(128))

    insert into @Employees values (1, 2, 'Jane')

    insert into @Employees values (2, 3, 'Joe')

    insert into...

  • RE: Grouping in recursive function?

    how about using temporary objects to explode your relationships and then count the temporary objects (@table, #table or ##table).

    declare @tmpRelations table (HiarchyLevel integer not null, EmployeeID integer not null, ReportsTo...

  • RE: Renaming Windows group requires SQL Server reboot?

    if that group already has access to your sqlserver, sqlserver will have stored the "old" windows-group-name in the system-tables. This will not be refreshed by default.

  • RE: WARNING: Failed to reserve contiguous memory of Size= Can anyone help?

    also take a look at KB 832674 (hotfix available !)

     

  • RE: Stored procedures

    If you want to create proc SP_ADD_SCRAP_EXCEPTION_REVIEW2

          from within SP_ADD_SCRAP_EXCEPTION_REVIEW1,

         you'll have to use exec(@sql).

    Else

         put a GO before the second create proc statement

    end if

  • RE: Please assist

    Found it !

    Define your @sql variable varchar(500).

    It is now defined to short !!

      Declare @sql varchar(100)

     

      Set @repIds = 'Z30'

      Set...

  • RE: Find Nt Users

    how about :

    EXEC master..xp_logininfo @acctname = 'yourdomain\yourgroup',@option = 'members'    

  • RE: Please assist

    cmd.Parameters.Append cmd.CreateParameter ("@TableName",adChar,adParamInput,3,"Z30")

    vs

    CREATE Proc LateResponses(@stableName char(3),@idCount int output,@idList varchar(500) output)

    should give a unknown parameter.

     

    Because you dynamicaly define the cursor, your users will have...

  • RE: How to change the owner of a User-Defined Data Type?

    did you refresh all views that might have used the column with the datatype ?

Viewing 15 posts - 6,871 through 6,885 (of 7,466 total)