Forum Replies Created

Viewing 15 posts - 181 through 195 (of 196 total)

  • RE: Naming Keys

    You can always specify your own name for the constraint using the following syntax

    col1 int CONSTRAINT [yourname] FOREIGN KEY REFERENCES othertable(PK))

    Regards,

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

  • RE: Displaying dates in Name and dd-mm-yyyy

    For converting the number to a date, you can use the DateSerial function:

    Description

    Returns a Date value representing a specified year, month, and day, with the time information set to midnight...

    Regards,

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

  • RE: For Each loop used to delete records

    Raise the value for the MaximumErrorCount property of your For Each container. By default it is set to 1 which makes the loop stop iterating when an error is...

    Regards,

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

  • RE: Setting default values for a pivot table in SS2K5

    My pleasure.

    Coalesce will work as well. ISNULL is said to be a tiny bit more efficient, coalesce on the other hand is ANSI standard...

    A difference with ISNULL is that coalesce...

    Regards,

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

  • RE: Naming Keys

    http://msdn.microsoft.com/en-us/library/ms188351.aspx

    Regards,

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

  • RE: Setting default values for a pivot table in SS2K5

    Change the select * part of your query to something like this

    select ...

    ,isnull([01],0) as [01]

    ,isnull([02],0) as [02]

    ...

    Regards,

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

  • RE: delete duplicates

    Because you say your table is big and you don't seem to have the right indexes, you can use the following as an alternative to doing a select distinct or...

    Regards,

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

  • RE: Script task programming

    You're welcome.

    Can't help you with the link - I'm not a programmer myself :-).

    Actually, you do not really need a script task to solve your problem: you can use an...

    Regards,

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

  • RE: Script task programming

    Try this:

    Public Sub Main()

    Dts.Variables("Datum").Value = Right("0" & DateAdd(DateInterval.Day, -8, Today).Year, 2) & Right("0" & DateAdd(DateInterval.Day, -8, Today).Month, 2)...

    Regards,

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

  • RE: Creating Stored Procedure with SELECT ... inside

    To get the syntax correct, you should remove the word cursor and move the line starting with INTO before the from statement, similar to:

    SELECT columns

    INTO #temptable...

    Regards,

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

  • RE: where to start business intelligence

    If you want to learn about BI from a business perspective, I would recommend Successful Business Intelligence: Secrets to Making BI a Killer App.

    If you are looking for something more...

    Regards,

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

  • RE: SQL Server 2008 Integration Services Configurations

    I use a multi-tier approach. Basically, all my configuration settings are stored in a sql server database. To point my packages to this database, I use an indirect configuration. This...

    Regards,

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

  • RE: SSIS Conditional Split no rows path issue

    There are no precedence constraints in a Data Flow Task. I guess this is either a bug or by design. It would indeed be more convenient in some situations for...

    Regards,

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

  • RE: SSIS Conditional Split no rows path issue

    Add a Row Count Transformation between your Conditional Split and your Script. In the Script, check the value of the row count: if it is 0, leave your variable unchanged,...

    Regards,

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

  • RE: Using Event Handlers with Checkpoints (Part 3)

    The following also seems to do the trick (I'm using SQL Server 2008) and is more elegant than the For Loop:

    on the properties of the Event Handler (note that I...

    Regards,

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

Viewing 15 posts - 181 through 195 (of 196 total)