Showing posts with label understanding. Show all posts
Showing posts with label understanding. Show all posts

Friday, March 30, 2012

Merge Join question

Hi, All,

In the data flow of Intergration Service, my understanding is that the "Merge Join" only does the "join", there is no way to input the "where" clause. If I need to input the the "Where" clause or selection criteria, how should I do it in Integration Service?

TIA,

Maybe put in a conditional split transformation before you go into the merge... Filter your rows there.|||

john zhang wrote:

Hi, All,

In the data flow of Intergration Service, my understanding is that the "Merge Join" only does the "join", there is no way to input the "where" clause. If I need to input the the "Where" clause or selection criteria, how should I do it in Integration Service?

TIA,

Depending in the source you are using; I would use a SQL statement right in the surce components to 'pull' only required rows; otherwise I would use conditional split transforms within the data flow.

Rafael Salas

|||Thanks Phil.|||

Thanks Rafael for the input. Now I have "conditional split" worked for me even it's inconvenient

|||

john zhang wrote:

Thanks Rafael for the input. Now I have "conditional split" worked for me even it's inconvenient

Why is it inconvenient?

-Jamie

|||

With other popular ETL tool, in one transformation, you can do both "join" and "where". But in SQL Server 2005 Integration service, you have to use two transformation to finish the task.

|||

john zhang wrote:

With other popular ETL tool, in one transformation, you can do both "join" and "where". But in SQL Server 2005 Integration service, you have to use two transformation to finish the task.

Why is that a bad thing? Is having 2 boxes on the design surface really such a bad thing?

SSIS components are deliberately "atomic". By that I mean they do one single operation and thus the aim is to build data-flows which are greater than the sum of their parts. Just because the "join" and "where" is in the same box then it doesn't mean its doing any less work. In fact it might actually be doing more because you are using a CPU to do two operations whereas in SSIS this may not be the case.

Please don't think I'm trying to say that you're wrong - this is just my opinion and in a way I'm playing devil's advocate. I think its a useful discussion to have.

-Jamie

|||

here's a discussion, the merge join would be even better if it could join more than 2 tables at a time.

I have many packages that require a left join to 5 or 6 other tables and the only way to do this is to use a merge join for the first two tables, then get the data from the 3rd table, add another merge join transform, then join the output of the first merge join to the data from the third table to get a 3 table join and so on...

It works ok though..

|||

bobbins wrote:

here's a discussion, the merge join would be even better if it could join more than 2 tables at a time.

I have many packages that require a left join to 5 or 6 other tables and the only way to do this is to use a merge join for the first two tables, then get the data from the 3rd table, add another merge join transform, then join the output of the first merge join to the data from the third table to get a 3 table join and so on...

It works ok though..

Nice idea. Submit it at http://connect.microsoft.com

-Jamie

sql

Friday, March 9, 2012

Memory Settings

Hi - we have SQL Server Enterprise 2005 and Windows Standard 2003, with 8GB
RAM on the box. 3 questions for the experts:
(1) Firstly, my understanding is that only 4GB can be used by windows - is
this correct?
(2) do we still have to change boot.ini file or is this not needed with
windows 2003?
(3) do we need to make changes to sp_configure - the max server memory will
need changing but how about the AWE setting?
Thanks.
Jack
- Enabling Memory Support for Over 4GB of Physical Memory
http://msdn2.microsoft.com/en-us/library/ms179301.aspx
"Jack" <jack@.Nospam.com> wrote in message
news:%2367lbLjDHHA.3492@.TK2MSFTNGP02.phx.gbl...
> Hi - we have SQL Server Enterprise 2005 and Windows Standard 2003, with
> 8GB RAM on the box. 3 questions for the experts:
> (1) Firstly, my understanding is that only 4GB can be used by windows - is
> this correct?
> (2) do we still have to change boot.ini file or is this not needed with
> windows 2003?
> (3) do we need to make changes to sp_configure - the max server memory
> will need changing but how about the AWE setting?
> Thanks.
>
|||Also
http://blogs.msdn.com/slavao/
"Uri Dimant" <urid@.iscar.co.il> wrote in message
news:upLFsNjDHHA.4404@.TK2MSFTNGP06.phx.gbl...
> Jack
> - Enabling Memory Support for Over 4GB of Physical Memory
> http://msdn2.microsoft.com/en-us/library/ms179301.aspx
>
>
> "Jack" <jack@.Nospam.com> wrote in message
> news:%2367lbLjDHHA.3492@.TK2MSFTNGP02.phx.gbl...
>
|||Hi Jack,
I just started playing with AWE my self and this is what I found so far.
SQL Server 2005 can make use of the extra memory with modifying the boot.ini.
Make sure that the account that the sql service is running as is part of the
lock pages in memory group policy, AWE is enabled in SQL server, and
configure max memory in SQL server to be at most 7GB, leaving 1 GB for the
OS. If you go to 16 GB of RAM then leave 2 GB free for the OS. The max that
the OS can use depends on the version of the OS that you are running I think.
MG
"Jack" wrote:

> Hi - we have SQL Server Enterprise 2005 and Windows Standard 2003, with 8GB
> RAM on the box. 3 questions for the experts:
> (1) Firstly, my understanding is that only 4GB can be used by windows - is
> this correct?
> (2) do we still have to change boot.ini file or is this not needed with
> windows 2003?
> (3) do we need to make changes to sp_configure - the max server memory will
> need changing but how about the AWE setting?
> Thanks.
>
>

Memory Settings

Hi - we have SQL Server Enterprise 2005 and Windows Standard 2003, with 8GB
RAM on the box. 3 questions for the experts:
(1) Firstly, my understanding is that only 4GB can be used by windows - is
this correct?
(2) do we still have to change boot.ini file or is this not needed with
windows 2003?
(3) do we need to make changes to sp_configure - the max server memory will
need changing but how about the AWE setting?
Thanks.Jack
- Enabling Memory Support for Over 4GB of Physical Memory
http://msdn2.microsoft.com/en-us/library/ms179301.aspx
"Jack" <jack@.Nospam.com> wrote in message
news:%2367lbLjDHHA.3492@.TK2MSFTNGP02.phx.gbl...
> Hi - we have SQL Server Enterprise 2005 and Windows Standard 2003, with
> 8GB RAM on the box. 3 questions for the experts:
> (1) Firstly, my understanding is that only 4GB can be used by windows - is
> this correct?
> (2) do we still have to change boot.ini file or is this not needed with
> windows 2003?
> (3) do we need to make changes to sp_configure - the max server memory
> will need changing but how about the AWE setting?
> Thanks.
>|||Also
http://blogs.msdn.com/slavao/
"Uri Dimant" <urid@.iscar.co.il> wrote in message
news:upLFsNjDHHA.4404@.TK2MSFTNGP06.phx.gbl...
> Jack
> - Enabling Memory Support for Over 4GB of Physical Memory
> http://msdn2.microsoft.com/en-us/library/ms179301.aspx
>
>
> "Jack" <jack@.Nospam.com> wrote in message
> news:%2367lbLjDHHA.3492@.TK2MSFTNGP02.phx.gbl...
>|||Hi Jack,
I just started playing with AWE my self and this is what I found so far.
SQL Server 2005 can make use of the extra memory with modifying the boot.ini
.
Make sure that the account that the sql service is running as is part of the
lock pages in memory group policy, AWE is enabled in SQL server, and
configure max memory in SQL server to be at most 7GB, leaving 1 GB for the
OS. If you go to 16 GB of RAM then leave 2 GB free for the OS. The max tha
t
the OS can use depends on the version of the OS that you are running I think
.
--
MG
"Jack" wrote:

> Hi - we have SQL Server Enterprise 2005 and Windows Standard 2003, with 8G
B
> RAM on the box. 3 questions for the experts:
> (1) Firstly, my understanding is that only 4GB can be used by windows - is
> this correct?
> (2) do we still have to change boot.ini file or is this not needed with
> windows 2003?
> (3) do we need to make changes to sp_configure - the max server memory wil
l
> need changing but how about the AWE setting?
> Thanks.
>
>