Forum Replies Created

Viewing 15 posts - 46 through 60 (of 78 total)

  • RE: Unable to connect to the instance through SSMS

    Enabling the named pipe did the trick.

  • RE: Disabled job notification

    Luis Cazares (2/16/2016)What happens if the second job gets disabled as well?

    Why don't you simply set notifications for successful runs?

    I have thought about setting the notification for successful runs but...

  • RE: The server prinicipal is not able to access the database under the current security context.

    Thanks for the reply all but the problem has been solved.

    The only thing that I couldn't understand was that the user I had created was not able to access...

  • RE: Rebuild index job runs for a long time

    Jeff Moden (12/7/2015)Ok... let's just say that you get a script working to do such a notification for your index rebuild job and it sends you an email that the...

  • RE: Confused about VLFs in Full recovery model.

    GilaMonster (12/2/2015)


    Let me guess

    You created the database, set the recovery model and then started to test?

    Until a database has had a full backup, it runs in pseudo-simple recovery because there's...

  • RE: Question for All DBAs (What can I learn to enahnce my career?)

    Thanks all. I think I will start with learning TSQL since I am just a little weak in that department. 🙂

  • RE: Alter DB modify log file.

    Finally :-):-)

    drop table #test

    create table #test (command varchar (500))

    insert into #test SELECT 'USE [MASTER] ' + CHAR(13) + 'ALTER DATABASE [' + d.name + N'] '

    ...

  • RE: Alter DB modify log file.

    ALTER DATABASE [SSISDB] MODIFY FILE (NAME=N'log', FILEGROWTH = 66000KB)

    GO;

    ALTER DATABASE [PRODUCT_DB_SSIS_SOURCE] MODIFY FILE (NAME=N'PRODUCT_DB_SSIS_SOURCE_log', FILEGROWTH = 66000KB)

    GO;

    So when I run this declare @sqlcommand nvarchar (500)

    declare CRS cursor

    for

    select command from...

  • RE: Alter DB modify log file.

    Update:

    Still stuck.

    declare @sqlcommand nvarchar (500)

    declare CRS cursor

    for

    select command from #test

    open CRS

    FETCH NEXT FROM CRS

    WHILE @@FETCH_STATUS = 0

    begin

    set @sqlcommand = N'command from #test'

    exec SP_EXECUTESQL @sqlcommand

    END

    deallocate CRS

  • RE: Alter DB modify log file.

    So I ran the above script from the central Management servers and inserted all the data into a temp table.

    CREATE TABLE #TEST

    (SQLQUERY VARCHAR (1000))

    INSERT INTO #TEST SELECT 'ALTER DATABASE ['+d.name+']...

  • RE: Alter DB modify log file.

    JeremyE (11/6/2015)


    You can run the following with the results to text and it will generate the statements for you.

    SELECT 'ALTER DATABASE ['+d.name+'] MODIFY FILE (NAME=N'''+mf.name+''', FILEGROWTH = 10000KB)'+CHAR(13)+'GO'

    FROM sys.master_files...

  • RE: dm_os_sys_memory and dm_os_sys_info

    JeremyE (10/22/2015)


    In your modified query, you are not using the #temp table to insert any data. It's being inserted into the dba.dbo.inventory_server table. You would need to select from dba.dbo.inventory_server.

    Silly...

  • RE: dm_os_sys_memory and dm_os_sys_info

    Lowell (10/22/2015)


    i think you have to switch to dynamic sql for an all in one script right?

    something like this?

    Declare @serverID int,

    @Memory int,

    @Edition varchar (200),

    @Version varchar (200),

    @CoreCount int

    select @serverID = server_id...

  • RE: dm_os_sys_memory and dm_os_sys_info

    JeremyE (10/21/2015)


    create table #SVer(ID int, Name sysname, Internal_Value int, Value nvarchar(512))

    insert #SVer exec master.dbo.xp_msver

    select Internal_Value AS [PhysicalMemory_MB] from #SVer where...

  • RE: dm_os_sys_memory and dm_os_sys_info

    It may work but I don't know. drop table #temp

    Create table #temp(

    ServerID int,

    Memory int,

    Edition varchar (200),

    Version varchar...

Viewing 15 posts - 46 through 60 (of 78 total)