Showing posts with label couple. Show all posts
Showing posts with label couple. Show all posts

Saturday, February 25, 2012

aggegrate component

Hi,

i have 2.5million records which i have to aggregate on a couple of columns, then add those to another table.

i have created ole-db-source -> aggegrate

is this wise?

or should i use ole-db-source with a sql-query that aggregates for me...

will this increase my performance?

Try to use the power of the SQL engine to do this if you can. It has the benefit of indexes and statistics, which are not available to the Aggregate Tx, so it should be faster. However if the source is a high volume transactional system it may be unacceptable to have this type of query running, in which case the Agg Tx is probably a better way for you to go.

As to which is faster, I can guess, but just test it and find out the real answer.

Friday, February 24, 2012

Agent AutoStart in Win98SE

With MSDE 2000 installs, I have tried a couple of things to get the Agent to autostart when the machine is booted. So far, I've been unsuccessful. Does anyone have experience with a working solution?

I have tried:

1. sp_set_sqlagent_properties @.auto_start = 1
2. Placing the following in the Registry: "scm.exe -Action 1 -Service SQLServerAgent -SvcStartType 2 -Silent 1" under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\Run

The checkbox in the SQL Server Service manager to "Auto-start service when OS starts" is greyed out for the Agent service. Does this mean that it just cannot be done?

-LoyalOriginally posted by loyalp
With MSDE 2000 installs, I have tried a couple of things to get the Agent to autostart when the machine is booted. So far, I've been unsuccessful. Does anyone have experience with a working solution?

I have tried:

1. sp_set_sqlagent_properties @.auto_start = 1
2. Placing the following in the Registry: "scm.exe -Action 1 -Service SQLServerAgent -SvcStartType 2 -Silent 1" under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\Run

The checkbox in the SQL Server Service manager to "Auto-start service when OS starts" is greyed out for the Agent service. Does this mean that it just cannot be done?

-Loyal

Here is what Microsoft has to say about it.

Windows 98 Limitations
Windows 98 does not provide support for the following features:

Windows NT authentication
Fiber mode scheduling
Asynchronous I/O
Read ahead
Performance Monitor counters
Scatter/Gather I/O
Named pipes server network library
Appletalk server or client network library
Banyan Vines server network library

Read more: http://www.microsoft.com/sql/techinfo/development/2000/MSDE2000.asp

HTH!|||Thanks Krusty.

Just this morning I tried adding an EXEC statement to Win98 machines at startup. This statement uses xp_servicecontrol to START the SQLServerAgent and appears to have successfully worked around the problem.

[QUOTE][SIZE=1]Originally posted by KrustyDeKlown
Here is what Microsoft has to say about it.