Forum Replies Created

Viewing 15 posts - 406 through 420 (of 522 total)

  • RE: T-SQL Query

    And just to mention that we all have made bad decisions in our past.

    Some might not admit it, but thats how we function. We're not robots.

    Best Regards,

    Chris Büttner

  • RE: T-SQL Query

    Hello,

    The proposed solution doesn't work with other languages:

    SET LANGUAGE GERMAN

    SELECT Datename(m, TheDate)TheMonthName, TheDate, Month(TheDate) TheMonth FROM (

    SELECT '19000101' AS TheDate

    UNION ALL SELECT '19000201'

    UNION ALL SELECT '19000301'

    UNION ALL SELECT...

    Best Regards,

    Chris Büttner

  • RE: Upgrading SQL Server 2005

    Hi Jamie,

    there is a footnote with the following text in the link you mentioned:

    2You can upgrade an instance of SQL Server 2005 Evaluation Edition to any other edition of SQL...

    Best Regards,

    Chris Büttner

  • RE: Query

    I like the math here 😉

    Correct answers: 72% (966)

    [font="Courier New"]

    --------------------------------------------------------------------------------

    month(join_date) in (1,2,3,4,5,8) 61%

    datename(m,join_date) like '%a%' 37%

    Not in List ...

    Best Regards,

    Chris Büttner

  • RE: HierarchyID Trees

    Hi Steve,

    What you are saying is, that the question was about

    /1/, /1/1/, /1/2/, /1/2/3/

    and not about

    /1/, /1/1/, /1/2/, /1/2/3/, etc.

    ?

    Thanks!

    Best Regards,

    Chris Büttner

  • RE: HierarchyID Trees

    Can someone please explain this to me?

    As far as my knowledge goes, the following tree

    represents a possible implementation of the tree

    posted by the author. Node /1/1/2/ has been

    added since...

    Best Regards,

    Chris Büttner

  • RE: Coping with No Column Names in the SSIS OLEDB Data Source Editor

    Great Article! Just one comment on indexing table variables: It actually is possible, just a little limited: You can create unique or primary key constraints on single columns.

    Example:

    DECLARE @MyTable TABLE...

    Best Regards,

    Chris Büttner

  • RE: Solving the "Running Total" & "Ordinal Rank" Problems in SS 2k/2k5

    You're talking about this Conor? 🙂

    http://www.sqlskills.com/blogs/conor/

    Best Regards,

    Chris Büttner

  • RE: String or binary data would be truncated.

    Hello,

    could you please let me know the output of the following query?

    SELECT MAX(DATALENGTH(LEGAL_ENTITY), MAX(DATALENGTH(DESCRIPTION)

    FROM table_1 WITH (NOLOCK)

    Thanks!

    Best Regards,

    Chris Büttner

  • RE: EXISTS Subqueries: SELECT 1 vs. SELECT * (Database Weekly 11.02.2008)

    Yes, the same error is raised.

    I posted a comment on the blog, maybe Conor will be able to explain this.

    Thanks!

    Best Regards,

    Chris Büttner

  • RE: EXISTS Subqueries: SELECT 1 vs. SELECT * (Database Weekly 11.02.2008)

    Hm, should have checked this link first...

    Still I am not yet convinced, or at least a little confused:

    Given a table "a" with columns "cola" and "colrestricted".

    User "Test" only has access...

    Best Regards,

    Chris Büttner

  • RE: User Defined Function Execution

    Ah, good to know! Thanks for the heads up!

    Best Regards,

    Chris Büttner

  • RE: EXISTS Subqueries: SELECT 1 vs. SELECT * (Database Weekly 11.02.2008)

    I am a little confused by this thread.

    Ignore my post if you meant the same as I write now:

    I am pretty sure that SQL Server does NOT make a...

    Best Regards,

    Chris Büttner

  • RE: User Defined Function Execution

    Hm, I thought I had tried the SCHEMABINDING before already but that really works now.

    I have also tried to use a non-deterministic function within a function - that actually is...

    Best Regards,

    Chris Büttner

  • RE: User Defined Function Execution

    Like this?

    CREATE FUNCTION dbo.fnDateAdd(@intA int)

    RETURNS int

    AS

    BEGIN

    RETURN @intA

    END

    GO

    Still no luck... 🙁

    Best Regards,

    Chris Büttner

Viewing 15 posts - 406 through 420 (of 522 total)