Showing posts with label current. Show all posts
Showing posts with label current. Show all posts

Thursday, March 29, 2012

determine what is the current database in a stored proc

Hi,
I am writing a stored proc that has to change to a different database
inline. Example:
use database2
go
What I need to do first is find out what the name of the current
database is before I switch to database2 so I can switch back.
How do I determine what the current database is?
Thanks
Randy
Randy,
Try SELECT DB_NAME()
HTH
Jerry
"Randy" <no_freakin_spam@.sickofit.com> wrote in message
news:MPG.1d932eeaaa07777a989697@.news.supernews.com ...
> Hi,
> I am writing a stored proc that has to change to a different database
> inline. Example:
>
> use database2
> go
>
> What I need to do first is find out what the name of the current
> database is before I switch to database2 so I can switch back.
>
> How do I determine what the current database is?
>
> Thanks
> Randy
|||Thanks
Seems obvious now.
In article <OCvORgguFHA.3608@.TK2MSFTNGP10.phx.gbl>, jspivey@.vestas-
awt.com says...
> Randy,
> Try SELECT DB_NAME()
> HTH
> Jerry
> "Randy" <no_freakin_spam@.sickofit.com> wrote in message
> news:MPG.1d932eeaaa07777a989697@.news.supernews.com ...
>
>

determine what is the current database in a stored proc

Hi,
I am writing a stored proc that has to change to a different database
inline. Example:
use database2
go
What I need to do first is find out what the name of the current
database is before I switch to database2 so I can switch back.
How do I determine what the current database is?
Thanks
RandyRandy,
Try SELECT DB_NAME()
HTH
Jerry
"Randy" <no_freakin_spam@.sickofit.com> wrote in message
news:MPG.1d932eeaaa07777a989697@.news.supernews.com...
> Hi,
> I am writing a stored proc that has to change to a different database
> inline. Example:
>
> use database2
> go
>
> What I need to do first is find out what the name of the current
> database is before I switch to database2 so I can switch back.
>
> How do I determine what the current database is?
>
> Thanks
> Randy|||Thanks
Seems obvious now.
In article <OCvORgguFHA.3608@.TK2MSFTNGP10.phx.gbl>, jspivey@.vestas-
awt.com says...
> Randy,
> Try SELECT DB_NAME()
> HTH
> Jerry
> "Randy" <no_freakin_spam@.sickofit.com> wrote in message
> news:MPG.1d932eeaaa07777a989697@.news.supernews.com...
> > Hi,
> >
> > I am writing a stored proc that has to change to a different database
> > inline. Example:
> >
> >
> > use database2
> > go
> >
> >
> > What I need to do first is find out what the name of the current
> > database is before I switch to database2 so I can switch back.
> >
> >
> > How do I determine what the current database is?
> >
> >
> > Thanks
> >
> > Randy
>
>

determine what is the current database in a stored proc

Hi,
I am writing a stored proc that has to change to a different database
inline. Example:
use database2
go
What I need to do first is find out what the name of the current
database is before I switch to database2 so I can switch back.
How do I determine what the current database is?
Thanks
RandyRandy,
Try SELECT DB_NAME()
HTH
Jerry
"Randy" <no_freakin_spam@.sickofit.com> wrote in message
news:MPG.1d932eeaaa07777a989697@.news.supernews.com...
> Hi,
> I am writing a stored proc that has to change to a different database
> inline. Example:
>
> use database2
> go
>
> What I need to do first is find out what the name of the current
> database is before I switch to database2 so I can switch back.
>
> How do I determine what the current database is?
>
> Thanks
> Randy|||Thanks
Seems obvious now.
In article <OCvORgguFHA.3608@.TK2MSFTNGP10.phx.gbl>, jspivey@.vestas-
awt.com says...
> Randy,
> Try SELECT DB_NAME()
> HTH
> Jerry
> "Randy" <no_freakin_spam@.sickofit.com> wrote in message
> news:MPG.1d932eeaaa07777a989697@.news.supernews.com...
>
>

Sunday, March 25, 2012

Determine Duration between Two Dates

All
I have a table of members and I would like to determine how long each member
has been a member based upon the current date. I would like the result
retuned in the Number of Years, Months and Days ie. 5y 6m 26d. Any
assistance would be appreciated.
CREATE TABLE member
(
MemberID INT,
DateJoined SMALLDATETIME
)
INSERT INTO member SELECT 1, '1999-01-11 00:00:00'
INSERT INTO member SELECT 2, '2004-12-26 00:00:00'
INSERT INTO member SELECT 3, '2005-01-01 00:00:00'
Desired Result:
1 1999-01-11 2005-10-13 6y 9m 2d
2 2004-12-26 2005-10-13 0y 10m 18d
3 2005-01-01 2005-10-13 0y 10m 12d
ThanksHi David,
There must be a simpler way than this, but what the heck...
SELECT id, dt, y, m,
diff_d - CASE WHEN dt_ym + diff_d > today THEN 1 ELSE 0 END AS d
FROM
(
SELECT *, DATEDIFF(day, dt_ym, today) AS diff_d
FROM
(
SELECT id, dt, today, y, m,
DATEADD(month, m, dt_y) AS dt_ym
FROM
(
SELECT id, dt, today, y, dt_y,
m_diff - CASE WHEN DATEADD(month, m_diff, dt_y) > today
THEN 1 ELSE 0 END AS m
FROM
(
SELECT *, DATEDIFF(month, dt_y, today) AS m_diff
FROM
(
SELECT *, DATEADD(year, y, dt) AS dt_y
FROM
(
SELECT id, dt, today,
y_diff - CASE WHEN DATEADD(year, y_diff, dt) > today
THEN 1 ELSE 0 END AS y
FROM
(
SELECT *, DATEDIFF(year, dt, today) AS y_diff
FROM
(
SELECT MemberID AS id, DateJoined AS dt,
CAST(CONVERT(VARCHAR(8), GETDATE(), 112) AS DATETIME) AS today
FROM member
) AS D1
) AS D2
) AS D3
) AS D4
) AS D5
) AS D6
) AS D7
) AS D8;
BG, SQL Server MVP
www.SolidQualityLearning.com
Join us for the SQL Server 2005 launch at the SQL W in Israel!
[url]http://www.microsoft.com/israel/sql/sqlw/default.mspx[/url]
"David" <David@.discussions.microsoft.com> wrote in message
news:44CF768B-1213-453F-8A62-024857AF5089@.microsoft.com...
> All
> I have a table of members and I would like to determine how long each
> member
> has been a member based upon the current date. I would like the result
> retuned in the Number of Years, Months and Days ie. 5y 6m 26d. Any
> assistance would be appreciated.
> CREATE TABLE member
> (
> MemberID INT,
> DateJoined SMALLDATETIME
> )
> INSERT INTO member SELECT 1, '1999-01-11 00:00:00'
> INSERT INTO member SELECT 2, '2004-12-26 00:00:00'
> INSERT INTO member SELECT 3, '2005-01-01 00:00:00'
>
> Desired Result:
> 1 1999-01-11 2005-10-13 6y 9m 2d
> 2 2004-12-26 2005-10-13 0y 10m 18d
> 3 2005-01-01 2005-10-13 0y 10m 12d
>
> Thanks|||Hi David
Probably you can check the link.
http://chanduas.blogspot.com/2005/0...lating-age.html
This is not the exact solution but can give u an idea
please let me know if u have any questions
best Regards,
Chandra
http://chanduas.blogspot.com/
http://www.SQLResource.com/
---
"David" wrote:

> All
> I have a table of members and I would like to determine how long each memb
er
> has been a member based upon the current date. I would like the result
> retuned in the Number of Years, Months and Days ie. 5y 6m 26d. Any
> assistance would be appreciated.
> CREATE TABLE member
> (
> MemberID INT,
> DateJoined SMALLDATETIME
> )
> INSERT INTO member SELECT 1, '1999-01-11 00:00:00'
> INSERT INTO member SELECT 2, '2004-12-26 00:00:00'
> INSERT INTO member SELECT 3, '2005-01-01 00:00:00'
>
> Desired Result:
> 1 1999-01-11 2005-10-13 6y 9m 2d
> 2 2004-12-26 2005-10-13 0y 10m 18d
> 3 2005-01-01 2005-10-13 0y 10m 12d
>
> Thanks

Thursday, March 22, 2012

Detecting the network UserID

Hey guys,
I would like to determine the network id of the current user so that I can
pass that value to a stored procedure that the report references.
I tried add the following code in the Code tab of the Report Properties tab:
Function GetUserID() AS String
Return System.Environment.UserName
End Function
I then referenced this function as the default value for the @.vcUserId
argument that the stored procedure wants by assigning =Code.GetUserID() as
the Non-queried default value for the report parameter.
This approach works well when I preview the report in Visual Studio.
Unfortunately, it fails when I deploy the report to the server.
Can anyone offer some suggestions on how to approach this issue?
Thanks in advance,
-JimI'd guess that the reason this doesn't work is because when you run it
in VS.net the application is running as you or some other acceptable
local user
(http://msdn2.microsoft.com/en-us/library/system.environment.username.aspx).
When it runs online it probably can't execute or it returns the
ASP.NET worker process's user or something similar and not useful. I
know for ASP.NET you can call HttpContext.User.Idenity.Name (or
something similar, I'm working from memory mostly) to see who the
logged in user is, this might work better in report services. Or there
might be a separate way to get the current user from the report manager
that I'm not aware of.|||Use the global variable User!UserID.value
You can get to this with the expression builder. It returns domain\username,
if you don't want the domain then you will need to strip it off.
Bruce Loehle-Conger
MVP SQL Server Reporting Services
"Terence Tirella" <ttirella@.literate.com> wrote in message
news:1141851303.988200.237700@.u72g2000cwu.googlegroups.com...
> I'd guess that the reason this doesn't work is because when you run it
> in VS.net the application is running as you or some other acceptable
> local user
> (http://msdn2.microsoft.com/en-us/library/system.environment.username.aspx).
> When it runs online it probably can't execute or it returns the
> ASP.NET worker process's user or something similar and not useful. I
> know for ASP.NET you can call HttpContext.User.Idenity.Name (or
> something similar, I'm working from memory mostly) to see who the
> logged in user is, this might work better in report services. Or there
> might be a separate way to get the current user from the report manager
> that I'm not aware of.
>sql

Wednesday, March 21, 2012

detect log file size

Hello,
Is there a SQL statement I can use to get the current size of a database's
log file?
Thanks,
DaveEXEC sp_helpfile '<database>_log'
--
Aaron Bertrand, SQL Server MVP
http://www.aspfaq.com/
Please reply in the newsgroups, but if you absolutely
must reply via e-mail, please take out the TRASH.
"David Reynolds" <david_m_reynolds@.hotmail.com> wrote in message
news:9JeQa.21491$lJd1.15720@.news01.bloor.is.net.cable.rogers.com...
> Hello,
> Is there a SQL statement I can use to get the current size of a database's
> log file?
> Thanks,
> Dave
>|||This is a good one too, it gives you the sizes and percentage used for
the log files.
dbcc sqlperf('logspace')
HTH
Ray Higdon MCSE, MCDBA, CCNA
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!sql

Saturday, February 25, 2012

Designing a generic database API

Hi,

My current project requires me to convert a mysql based software to a more generic one. I started by designing separate db class files and separated the lower level connection queries from the business logic. By doing this, I now have mssql.class, mysql.class, sqllite.class etc..

But am not sure how to handle sql functions in queries. For instance, one of my queries need the use of a date function to add minutes to a db field.

In mysql, I accomplish this using

dbfield+interval '$arg' minute between date1 and date1

But in mssql I cannot use this type of query. It seems I'll have to use date_add() function. How do I handle this situation?

My frontend scripting language is php

Thanks d'advance
CeliaI would create a function in your PHP code that takes two arguments, a "date" and an "adder" to the date. That way you can "cook" them as needed for each database engine, while keeping the PHP quite generic.

-PatP

Sunday, February 19, 2012

Design Question

Hi,

Iam having problem designing a proper solution for the current architecture, we have for a web application.

I would like to make use of Analysis Services, but not sure how to....

These are the typical course of events, which happen :

1) Data is uploaded into a maintenance database

Here during the data upload, a lot of calculations take place and some tables which contain the result of calculations are altered/populated. Usually, this takes hours to take place because of the number of rows being updated, deleted and added.(Usually in millions)

Scenario:

    previous data is deleted (not all, only the required)

    the tables corresponding to the uploaded data are modified(around 20 tables)

    calculations are perfomed on the uploaded data

    the tables corresponding to the calculations are updated.

2) The maintenance database is replicated to the production database.

This process is a pain in the neck and hence would like to use to analysis services.But Iam not sure of how to do it. In which direction should I proceed?Do I need a datawarehouse to perform the complex calculations ? Do I need to maintain separate databases, one for the calculations and one for production.

Thank you

Prash

Do you need to replicate back the calculations to the production database in order to support you webb application or are people running queries for pure analytic needs?

This can be reformulated as "are you running reports/analytic applications on your production database?

If so, I would recommend you to build a data warehouse/datamart.

What SSAS2005 can help you with is to aggregate information fast from the records in your data warehouse/dm. It can also help you with complex calculations because MDX(the query language that this product use) is stronger and requires less code than using TSQL/Stored procedures.

HTH

Thomas Ivarsson

|||

Thanks for your reply.

Do you need to replicate back the calculations to the production database in order to support you webb application or are people running queries for pure analytic needs?

Since all the calculations are done and stored in specific tables for the Reports, I just need to copy the database to production. No further calculations are involved.

Pardon me for my questions (Iam a beginner). Say, I have a dataware house which is built using the traditional snowflake/star schema model. Then I would assume that these steps need to be taken.

a) Built the relational database, such that no calculations are done

b) Built the dataware house/datamart and then perform the calculations(complex calculations) using the SSAS2005 by deploying the necessary cubes

c)Then, I could use reporting services to connect to the cubes for generating the reports.

If this is the procedure, then how do I connect my dataware house and the relational database(Integration services ?). Can you throw some light on the procedure, I need to follow.

Once again, thank you for your help.

-Prash

|||

Please see my comments:

a) Built the relational database, such that no calculations are done

You build a staging area which are tables that are only used for pumping data from your production system. The connection ,between your source system and the staging area, and the pumping of data is done by SSIS. You empty all the tables in staging area every time that you extract new source data. From the staging area you then build SSIS packages to move, clean and(or aggregate data.

b) Built the dataware house/datamart and then perform the calculations(complex calculations) using the SSAS2005 by deploying the necessary cubes

You can make some simple calculations in the data wareshouse for performance reasons. The rest is correct.

c)Then, I could use reporting services to connect to the cubes for generating the reports.

Correct. The only problem with reporting services is that it do not have the flexibility of a OLAP-client. Excel 2007 will support all functionality in SSAS2005. Reporting Services is best for standard reports.

If this is the procedure, then how do I connect my dataware house and the relational database(Integration services ?). Can you throw some light on the procedure, I need to follow.

Yes. You will use SSIS for this. Have a look at http://www.msftdwtoolkit.com/ and especially the book" The Microsoft Data Warehouse Toolkit".

HTH

Thomas

|||

Thank you. That's enough for me to get started. Can you suggest me any tutorials for building a dataware house depending on the existing relational database.

Cheers

Prash

Tuesday, February 14, 2012

Design Discussion - How would YOU do this?

I'm working with data collection software and our current SQL solution is
simply not performing... well. I'm not a DB Admin, but I'm hoping to inject
useful suggestions into our next design meeting - hopefully improving things
across the board.
The situation is this:
I need to collect data about entities participating in a scenario. There can
be any number of participants, but a typical run might include 500-1000
unique entities. Each entity is streaming updates (XML) to a central
collector that is then moving the data into SQL server. While the actual
number may vary, we can safely assume that there will be at least one update
every second for each entity involved in the scenario.
The present solution is to examine the data as it is coming to the collector
and if it is new, adding it to a master table to maintain a 'current picture
'
of every entity in the scenario. If the entity is already in the master, we
simply update the record in the master table. Regardless of the action taken
,
all messages go into a history table that basically represents the entire
scenario.
The problems (I've not experienced them yet) described to me is that after
the tables become lare (again, this has yet to be defined) inserts are going
very slow and appear to be related to the size of the tables involved.
Furthermore, a decision was made to remove *ALL* index from the tables to
increase insert speed. This is (obviously) bad for a client application to
look at this data because queries are now resorting to table scans on large
tables.
What should I look to do to increase performance? Obviously it is important
that we capture all of the data and that it be inserted as quickly as
possible, but on the other hand if it takes hours to execute queries then
what good is it to have the data in the first place?
Has anyone seen case studies regarding a similiar scenario?
I've briefly reviewed documentation about partitioned views and such after
previously posting a simliar question, however I'm not sure how well that
would work as I can't know prior to the start of a scenario any data to
logically separate the tables.
Ideas? I'd love to hear them. As a developer for the client portion of this
software, I'm tired of suffering through table scans that can take an
inordinate amount of time to complete. (Indexing would help, but I get shot
down becase it makes inserts slow - or so the admin is telling me.)
Thanks for reading.
ChrisWhile you're busy preparing DDL and sample data, I'd just like to say that
removing indexes is no solution.
Based on what indexes you need to efficiently access your data you should
consider the fact how they are populated to allow for fast inserts (updates)
.
Basically what you need to do is - in your case where changes are propagated
to your tables at a high frequency - allow your index pages to be populated
with as little of repagination as possible.
See PAD_INDEX and FILLFACTOR under CREATE INDEX in Books Online.
Another issue is the issue of the clustered index. IMHO in a database where
inserts are frequent and it is of great importance that insert/update
performance is at its highest - clustered indexes should be created on
columns where any newly inserted value is larger than any previous value, so
that there is no need to repaginate the clustered index pages. I find the
identity column a wonderful candidate for the clustered index when based on
a
single column. If your clustered index (for reasons not known to me) needs t
o
be based on multiple columns try using columns, where at least half of those
have incremental values.
You haven't mentioned whether removing indexes actually resulted in an
increase of insert/update performance. Maybe you simply need new hardware :)
I guess we could say more after we see some DDL.
ML|||Disk space is cheap. Add a BIGINT IDENTITY column on the history table and
put a unique clustered index with a 100% fill factor on it. There is no
need as far as performance goes to partition this table, because inserts
will perform nearly the same if you have a million rows or if you have a
billion rows. Add a second table to keep track of the last history row
processed. Add a third table for reporting that has indexes to improve
query performance. Finally add a stored procedure that periodically
processes the new rows in the history table to populate the reporting
table.
Inserts into the history table with the clustered index will be nearly as
fast as inserts without any indexes because rows are only added to the end
of the table and the B-tree index maintenance is minimal. A new index page
is added when all index pages at the same level are full (which only occurs
every 400 or so rows) An index page is only updated when the last leaf page
fills up. Note that there isn't any page splitting going on if there is
only a clustered index on an IDENTITY column. The index grows up because
both leaf pages and index pages are always appended. There will be a few
more writes because of the BIGINT column and because of the occasional
addition of a new index page. If this is a problem, you could add a new
filegroup consisting of a separate set of mirrored disks just to store the
history table.
There will be a delay between the time that a row is inserted in the history
table and the time the data is available for reporting, but the lack of
indexes on the master table and the consequent table scans will almost
certainly cause query results to be delayed anyway. It takes on average 1.5
seconds on my development box (Dual 3GHz XEON, 4GB RAM, RAID-1) to scan a
typical table with 175,000 rows. Your table will have between 1.8 and 3.6
million rows inserted or updated every hour, so scans will definitely take a
lot more time. In any case, updates will perform abysmally without indexes
as the table grows because a scan is required to find the row to update.
You can make the periodic stored procedure populate the reporting table
using set-based operations to maximize performance. Set based operations
perform much better than row based operations because triggers are only
fired once, writes to the log are minimized, and index maintenance is
optimized.
I would hazard a guess that the delay incurred by caching the inserts and
updates will be far less than the delay caused by the table scans.
"Chris" <Chris@.discussions.microsoft.com> wrote in message
news:55221D59-F4D9-4BD8-8FE3-41C64128DD45@.microsoft.com...
> I'm working with data collection software and our current SQL solution is
> simply not performing... well. I'm not a DB Admin, but I'm hoping to
inject
> useful suggestions into our next design meeting - hopefully improving
things
> across the board.
> The situation is this:
> I need to collect data about entities participating in a scenario. There
can
> be any number of participants, but a typical run might include 500-1000
> unique entities. Each entity is streaming updates (XML) to a central
> collector that is then moving the data into SQL server. While the actual
> number may vary, we can safely assume that there will be at least one
update
> every second for each entity involved in the scenario.
> The present solution is to examine the data as it is coming to the
collector
> and if it is new, adding it to a master table to maintain a 'current
picture'
> of every entity in the scenario. If the entity is already in the master,
we
> simply update the record in the master table. Regardless of the action
taken,
> all messages go into a history table that basically represents the entire
> scenario.
> The problems (I've not experienced them yet) described to me is that after
> the tables become lare (again, this has yet to be defined) inserts are
going
> very slow and appear to be related to the size of the tables involved.
> Furthermore, a decision was made to remove *ALL* index from the tables to
> increase insert speed. This is (obviously) bad for a client application to
> look at this data because queries are now resorting to table scans on
large
> tables.
> What should I look to do to increase performance? Obviously it is
important
> that we capture all of the data and that it be inserted as quickly as
> possible, but on the other hand if it takes hours to execute queries then
> what good is it to have the data in the first place?
> Has anyone seen case studies regarding a similiar scenario?
> I've briefly reviewed documentation about partitioned views and such after
> previously posting a simliar question, however I'm not sure how well that
> would work as I can't know prior to the start of a scenario any data to
> logically separate the tables.
> Ideas? I'd love to hear them. As a developer for the client portion of
this
> software, I'm tired of suffering through table scans that can take an
> inordinate amount of time to complete. (Indexing would help, but I get
shot
> down becase it makes inserts slow - or so the admin is telling me.)
> Thanks for reading.
> Chris
>|||You might coniser a tool designed for this kind of problem. Kx and
StreamBase are DBMS designed for capturing streaming data and doing
work on it while the data is streaming.|||Hi all
What will be the performance if logshipping is used instead.The Destination
server will be used for reporting purpose. Though log shipping is generally
used in lieu of back up, I feel we can reduce the latency and boost the
performance as the read/writes are done on different machines. Of course
adding another machine is a problem, but we need to do that for back up any
way.
any thoughts on this
Regards
R.D
"--CELKO--" wrote:

> You might coniser a tool designed for this kind of problem. Kx and
> StreamBase are DBMS designed for capturing streaming data and doing
> work on it while the data is streaming.
>|||Apologies for not responding earlier, I've been out of the net for a w or
so.
Thank you for the information - it really is confirming what I had thought
to be the case with how SQL server works. I could not understand why it woul
d
make a difference how many rows are in a table as everything I have read
indicated that it would not matter.
Next w will be interesting as I push back and try to get some of these
things implemented. In the meantime, if anyone has additional input to the
scenario, I'd love to hear from you.
Chris
"Brian Selzer" wrote:

> Disk space is cheap. Add a BIGINT IDENTITY column on the history table an
d
> put a unique clustered index with a 100% fill factor on it. There is no
> need as far as performance goes to partition this table, because inserts
> will perform nearly the same if you have a million rows or if you have a
> billion rows. Add a second table to keep track of the last history row
> processed. Add a third table for reporting that has indexes to improve
> query performance. Finally add a stored procedure that periodically
> processes the new rows in the history table to populate the reporting
> table.
> Inserts into the history table with the clustered index will be nearly as
> fast as inserts without any indexes because rows are only added to the end
> of the table and the B-tree index maintenance is minimal. A new index pag
e
> is added when all index pages at the same level are full (which only occur
s
> every 400 or so rows) An index page is only updated when the last leaf pa
ge
> fills up. Note that there isn't any page splitting going on if there is
> only a clustered index on an IDENTITY column. The index grows up because
> both leaf pages and index pages are always appended. There will be a few
> more writes because of the BIGINT column and because of the occasional
> addition of a new index page. If this is a problem, you could add a new
> filegroup consisting of a separate set of mirrored disks just to store the
> history table.
> There will be a delay between the time that a row is inserted in the histo
ry
> table and the time the data is available for reporting, but the lack of
> indexes on the master table and the consequent table scans will almost
> certainly cause query results to be delayed anyway. It takes on average 1
.5
> seconds on my development box (Dual 3GHz XEON, 4GB RAM, RAID-1) to scan a
> typical table with 175,000 rows. Your table will have between 1.8 and 3.6
> million rows inserted or updated every hour, so scans will definitely take
a
> lot more time. In any case, updates will perform abysmally without index
es
> as the table grows because a scan is required to find the row to update.
> You can make the periodic stored procedure populate the reporting table
> using set-based operations to maximize performance. Set based operations
> perform much better than row based operations because triggers are only
> fired once, writes to the log are minimized, and index maintenance is
> optimized.
> I would hazard a guess that the delay incurred by caching the inserts and
> updates will be far less than the delay caused by the table scans.
> "Chris" <Chris@.discussions.microsoft.com> wrote in message
> news:55221D59-F4D9-4BD8-8FE3-41C64128DD45@.microsoft.com...
> inject
> things
> can
> update
> collector
> picture'
> we
> taken,
> going
> large
> important
> this
> shot
>
>