Forum Replies Created

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

  • RE: Change the Collation Setting for Clustered SQL Server 2014 Instance

    Good article.

    You have to consider that if you created your tempdb with multiple files and especially on another disk then you’ll have to re-check the tempdb because it will be...

    Igor Micev

  • RE: Trigger to restrict user froom Deleting Procedures

    If you want to prevent some from the whole set of stored procedures from dropping:

    CREATE TRIGGER [TR_PreventDropProcedure] ON DATABASE

    FOR DROP_PROCEDURE

    AS

    BEGIN

    SET NOCOUNT ON;

    DECLARE @data XML

    SET @data = EVENTDATA();

    DECLARE @objname nvarchar(200);

    DECLARE @objtype...

    Igor Micev

  • RE: Database Mirroring

    alexlihw (11/21/2016)


    Since I have time limit on the reboot progress and I don't want to run the risk of needing to reconfigurate the mirroring and run into some errors. Would...

    Igor Micev

  • RE: Database Mirroring

    Hi

    If you don't want to have a failover, then you'll have to have a downtime while rebooting.

    You can go with ALTER DATABASE XXX SET PARTNER OFF, and then re-establish the...

    Igor Micev

  • RE: Boundless Opportunities

    Thanks,

    All those topics is something that I used to study on faculty, but implementation in practice is going slowly 🙂

    I'm sure there are some new materials there as well.

    Igor Micev

  • RE: Temp tables in transaction

    A good reminder QotD. Thanks.

    Igor Micev

  • RE: The parameterized query expects the parameter '@Id', which was not supplied.

    Expects the parameter '@Id', which was not supplied:

    cmd.Parameters.Add("@Id",SqlDbType.Int);

    but here you're supplying the @Name parameter

    cmd.Parameters.Add("@Name", SqlDbType.NVarChar, 100).Value = name;

    Igor Micev

  • RE: Two Select statements without UNION

    Minnu (11/9/2016)


    i have below two tables,and am trying to create a view using below statements.

    also wants to apply index on view, i cannot apply index on views with UNION.

    so i...

    Igor Micev

  • RE: script job scheduless

    No, the schedule can be scripted out. Why not?

    Igor Micev

  • RE: Query needed

    Try this query:

    DECLARE @database_id int

    DECLARE @database_name sysname

    DECLARE @sql_string nvarchar(2000)

    DECLARE @file_size TABLE

    (

    [database_name] [sysname] NULL,

    [groupid] [smallint] NULL,

    [groupname] sysname NULL,

    [fileid] [smallint] NULL,

    [file_size] [decimal](12, 2)...

    Igor Micev

  • RE: INSERTing datetimeoffsets

    Henrico Bekker (11/2/2016)


    Nice question, technically both:

    1. INSERT dbo.TimeZoneOffsetTest (mytime) CAST(SELECT '20161015 08:15 -4:25' as DATETIMEOFFSET)

    and

    2. INSERT dbo.TimeZoneOffsetTest (mytime) SELECT '20161015 08:15 2:00'

    are invalid, option 1 contains an invalid sub-query...

    Igor Micev

  • RE: Adding Temporal Support

    A nice new property in Sql Server 2016. Thanks!

    Igor Micev

  • RE: Performance monitor counter question

    Guras (10/25/2016)


    Igor Micev (10/25/2016)


    Guras (10/25/2016)


    Counter_name : Counter_Value

    User Connections: 316

    Batch Requests/sec : 20

    SQL compilations/sec : 36

    SQL Recompilations/sec : 20

    Is this normal? Does the SQL compilations/sec seem high?

    Thanks

    It's just a...

    Igor Micev

  • RE: Secondary Replica - adding databases

    Derek Knutsen (10/25/2016)


    But I would also like to put other separate read/write databases on that same instance. Is that possible?

    ex:

    Report_Server

    Prod_DB (Read only - replicated from production_server...

    Igor Micev

  • RE: Performance monitor counter question

    Guras (10/25/2016)


    Counter_name : Counter_Value

    User Connections: 316

    Batch Requests/sec : 20

    SQL compilations/sec : 36

    SQL Recompilations/sec : 20

    Is this normal? Does the SQL compilations/sec seem high?

    Thanks

    It's just a very calm environment....

    Igor Micev

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