Forum Replies Created

Viewing 15 posts - 391 through 405 (of 1,243 total)

  • RE: Overwriting Excel File with SSIS package

    mugilanoracle (11/29/2016)


    hi,

    please tell me how to export sql server single table into multiple excel sheets in single Excel file using SSIS package.(ex-have region column in source table and have to...

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

  • RE: perform an activity on each database on the server

    Ed Wagner (11/30/2016)


    Sean Lange (11/30/2016)


    Do be careful using this procedure in a production environment. It will sometimes skip databases. http://sqlblog.com/blogs/aaron_bertrand/archive/2010/12/29/a-more-reliable-and-more-flexible-sp-msforeachdb.aspx

    Here is another great article on the topic. https://spaghettidba.com/2011/09/09/a-better-sp_msforeachdb/%5B/url%5D

    Yes it does....

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

  • RE: will it call subquery for every row of table with distinct in subqyery.

    To answer your third question that would depend on the isolation level of the transaction. You can override the databases default isolation level with something like

    set transaction isolation level read...

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

  • RE: Multiple Joins on Fact Table

    . So account name of 'EEERT0450' is unique and will be on source and DW. So when I populate the DW, the process would check if that account already exists...

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

  • RE: Thanksgiving

    sipas (11/24/2016)


    "Number 4 works for this year only."

    Actually it doesn't even work for this year.

    SELECT DATEPART(DAYOFYEAR, SYSDATETIME()); gives 329

    SELECT DATEDIFF( DAY, '20160101', SYSDATETIME()); gives 328

    Happy Thanksgiving to all in the...

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

  • RE: Change Detection with (44) Columns!

    Jeff Moden (11/22/2016)


    Phil Parkin (11/21/2016)


    Jeff Moden (11/21/2016)


    Phil Parkin (11/21/2016)


    Jeff Moden (11/21/2016)


    Why not just use EXCEPT?

    EXCEPT on a 2-million-row resultset is tidier than a column-by-column comparison, but still not to be...

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

  • RE: Multiple calls to MAX(datecolumn) in select

    Here too is a resource that can help you get started with graphical execution plans : https://www.mssqltips.com/sqlservertip/1873/how-to-read-sql-server-graphical-query-execution-plans/

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

  • RE: Multiple calls to MAX(datecolumn) in select

    The MAX(rowCreatedDT) is only scanning the table once!

    There is a button in your SSMS window that displays "include actual execution plan" when you hover over it. You push this button...

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

  • RE: Multiple Joins on Fact Table

    Upon further inspection, do you still need the following in the fact table: CounterpartyAccountKey and GenevaAccountKey? I would think these are being replaced with the sourceKey field.

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

  • RE: Multiple Joins on Fact Table

    Yes. That appears like a straight forward star schema. One note though is that I would be consistent with the namings. If a column is named sourceKey in the fact...

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

  • RE: Type INT

    Interesting that SMALLINT will implicitly convert to INT , but INT wont implicitly convert to BIGINT. Is this the case also with a .NET language like C#?

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

  • RE: Multiple Joins on Fact Table

    Eric M Russell (11/17/2016)


    In terms of the Kimball methodology of star-schema modeling, I believe this would be an example of a "role playing dimension".

    From what I understand I dont think...

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

  • RE: Find the brackets

    Jeff Moden (11/16/2016)

    IMHO, cleaner code if you take the shortcut.

    SELECT mychar FROM mydata WHERE mychar LIKE '[[]%'

    That's how I went about doing it and then had to take a closer...

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

  • RE: Multiple Joins on Fact Table

    kevin.obrien 66193 (11/16/2016)


    The question to the OP is ... are CounterpartyAccountKey and GenevaAccountKey mutualy exclusive? It appears to me from the reading that they may very well be (normally a...

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

  • RE: How can automate report from sqlserver to be sent on email everyday.

    Jeff Moden (11/16/2016)


    tnnelzo (6/20/2013)


    Hello!

    Everyday i run a querry in sqlserver 2008 to get a report to sent to my boss, but i want to automate this, so that the...

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

Viewing 15 posts - 391 through 405 (of 1,243 total)