Forum Replies Created

Viewing 15 posts - 91 through 105 (of 196 total)

  • RE: Administration

    If you are referring to trace flags, then try this (more info in BOL)

    DBCC TRACESTATUS(-1)

    Regards,

    Willem
    http://wschampheleer.wordpress.com[/url]

  • RE: Query Help

    OK - I didn't get that from your earlier specifications.

    Try this

    SELECT TYPE = CASE WHEN TERM_ID LIKE '040%' THEN 'A GROUP'

    ...

    Regards,

    Willem
    http://wschampheleer.wordpress.com[/url]

  • RE: Query Help

    Moorthy,

    Can you try this query?

    SELECT TYPE = CASE WHEN TERM_ID LIKE '040%' THEN 'A GROUP'

    ...

    Regards,

    Willem
    http://wschampheleer.wordpress.com[/url]

  • RE: PLEASE HELP CREATING A DTS PACKAGE

    What version of SQL Server are you using? I strongly suggest you upgrade to SQL2005 or 2008 and use SSIS instead of DTS.

    Regards,

    Willem
    http://wschampheleer.wordpress.com[/url]

  • RE: Recursive call in sp,udf

    Please check BOL and Google before asking.

    From BOL:

    User-defined functions can be nested; that is, one user-defined function can call another. The nesting level is incremented when the called function starts...

    Regards,

    Willem
    http://wschampheleer.wordpress.com[/url]

  • RE: Report with group, sum and having

    Here's another way to write the query, but compared to what you have it is only marginally better on the sample set you provided (49% to 51% 🙂

    SELECT [t1].

    ...

    Regards,

    Willem
    http://wschampheleer.wordpress.com[/url]

  • RE: Use of WHILE in SQL Query

    SELECT [t1].[Id]

    ,[t1].[Name]

    ,[t1].[Designation]

    ,[t1].[Address]

    ...

    Regards,

    Willem
    http://wschampheleer.wordpress.com[/url]

  • RE: procedure or function required for this view in best/optimized way

    Use an outer join with a table that contains the dates you require like in my example.

    Regards,

    Willem
    http://wschampheleer.wordpress.com[/url]

  • RE: Schemas and their owners

    http://www.sommarskog.se/grantperm.html#ownerschema

    Regards,

    Willem
    http://wschampheleer.wordpress.com[/url]

  • RE: Use of WHILE in SQL Query

    Please provide create table statements, sample data and an example of the output you would like to see for it.

    Regards,

    Willem
    http://wschampheleer.wordpress.com[/url]

  • RE: procedure or function required for this view in best/optimized way

    You'll first need to generate all the necessary dates. You can either to this dynamically (e.g. using a CTE - see BOL) or use a calendar table. For the solution...

    Regards,

    Willem
    http://wschampheleer.wordpress.com[/url]

  • RE: Use of WHILE in SQL Query

    Not sure why you think you need a WHILE. Try this:

    SELECT [t1].[Id] AS [Id_Table1]

    ,[t1].[Name]

    ,[t1].[Designation]

    ...

    Regards,

    Willem
    http://wschampheleer.wordpress.com[/url]

  • RE: User creation date

    Open the Object Explorer Details window (F7) and click on Security - Logins in the Object Explorer pane.

    Regards,

    Willem
    http://wschampheleer.wordpress.com[/url]

  • RE: For Each Loop - error accessing text file

    Dave,

    I have the impression that in your first step (FST Rename Source File) you are trying to copy the file onto itself which raises the error.

    This seems to happen because...

    Regards,

    Willem
    http://wschampheleer.wordpress.com[/url]

  • RE: SSIS picking up incorrect datatype

    Did you try correcting the metadata using the Advanced Editor on the source?

    Regards,

    Willem
    http://wschampheleer.wordpress.com[/url]

Viewing 15 posts - 91 through 105 (of 196 total)