Forum Replies Created

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

  • RE: Using a Window Aggregate in an Aggregate Query

    Trying to test that and see strange error ๐Ÿ™‚

    Msg 6517, Level 16, State 1, Line 2

    Failed to create AppDomain "master.sys[runtime].37".

    Exception has been thrown by the target of an invocation.

    Kindest Regards,

    Damian Widera
    SQL Server MVP,
    MCT, MCSE Data Platform, MCSD.NET

  • RE: CDC Administration

    Good one!

    Kindest Regards,

    Damian Widera
    SQL Server MVP,
    MCT, MCSE Data Platform, MCSD.NET

  • RE: Want to delete sql backup and log files for the last one month

    I think yuo should plan your SQL Server installation in such way that log shrink is never needed (ok in some extreme cases - yes)

    So - if your database is...

    Kindest Regards,

    Damian Widera
    SQL Server MVP,
    MCT, MCSE Data Platform, MCSD.NET

  • RE: Date Range

    Hi, two things (in where clause)

    1.

    select name from sys.databases where database_id not in(1,2,3,4)

    should be

    select name from sys.databases where database_id >4

    2.

    Convert(varchar(10),id_updt,101) >=Convert(varchar(10),getdate()-3,101)

    should be

    Kindest Regards,

    Damian Widera
    SQL Server MVP,
    MCT, MCSE Data Platform, MCSD.NET

  • RE: Want to delete sql backup and log files for the last one month

    Despite the question is not so precise :). We do not know what do you mena by 'database is full'. Maybe you think of it as a 'disk is full'?

    About...

    Kindest Regards,

    Damian Widera
    SQL Server MVP,
    MCT, MCSE Data Platform, MCSD.NET

  • RE: SQL 2008 R2 - Update a table using VIEW?

    Try to do it that way:

    UPDATE T

    Set t.column_in_table = V.column_in_view

    FROM Table T join View V

    on T.a_table_column = V.a_view_column

    WHERE <conditions>

    Kindest Regards,

    Damian Widera
    SQL Server MVP,
    MCT, MCSE Data Platform, MCSD.NET

  • RE: Generate C# class code for table

    great topic. no chance to test the code right now (have only mobile phone now) but how does the script behave if we have to specify the schema? we could...

    Kindest Regards,

    Damian Widera
    SQL Server MVP,
    MCT, MCSE Data Platform, MCSD.NET

  • RE: Central Management Servers

    Good one but it was not a question about the CMS but rather if you can read the text carefully ๐Ÿ™‚

    Kindest Regards,

    Damian Widera
    SQL Server MVP,
    MCT, MCSE Data Platform, MCSD.NET

  • RE: High-Performance Transact-SQL with Window Functions

    Kamil

    super - przynajmniej znowu jestesmy znani na calym swiecie - nie tylko z milosci do cudzych samochodรณw

    Kindest Regards,

    Damian Widera
    SQL Server MVP,
    MCT, MCSE Data Platform, MCSD.NET

  • RE: What Counts for a DBA: Baselines

    True - apps should inform about their perf counters.

    But in the other hand - it is not common ๐Ÿ™‚

    Best regards

    Damian

    Kindest Regards,

    Damian Widera
    SQL Server MVP,
    MCT, MCSE Data Platform, MCSD.NET

  • RE: sp_OAMethod

    Have you enabled the OA in the server? Please check this via sp_configure:

    sp_configure 'show advanced options',1

    GO

    reconfigure

    GO

    sp_configure 'Ole Automation Procedures'

    You should see the run_value as 1. If not - set...

    Kindest Regards,

    Damian Widera
    SQL Server MVP,
    MCT, MCSE Data Platform, MCSD.NET

  • RE: Question about Optional Parameters in Stored Procedures

    Hi, a general rule for saying if a parameter i optoionl or not is the business that the stored procedure must do. For example if you need to fill a...

    Kindest Regards,

    Damian Widera
    SQL Server MVP,
    MCT, MCSE Data Platform, MCSD.NET

  • RE: need to add if then else in a view?

    You have 2 other options: use CASE a_column when null then 'the date' else a_column end

    also - coalesce(a_column,'the_date') - maybe you need to cast

    Kindest Regards,

    Damian Widera
    SQL Server MVP,
    MCT, MCSE Data Platform, MCSD.NET

  • RE: Using SQL Server to collect information from your Oracle server

    IMO this should be the service name taken from tnsnames.ora

    Kindest Regards,

    Damian Widera
    SQL Server MVP,
    MCT, MCSE Data Platform, MCSD.NET

  • RE: need to learn how to be a DBA

    Agree - I always teach my students to start with Express. It is really good enough to start the SQL Server journey ๐Ÿ™‚

    You can download also version with SSMS so...

    Kindest Regards,

    Damian Widera
    SQL Server MVP,
    MCT, MCSE Data Platform, MCSD.NET

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