Viewing 15 posts - 1,741 through 1,755 (of 2,038 total)
RBarryYoung (3/25/2009)
The Variable method is more efficient...
March 25, 2009 at 2:38 pm
Hi Jeffrey
Thanks for your reply!
You are all absolutely right for these administrative task!
I think I've just been nerved for this "security" introduction. Since now all my team members worked with...
March 25, 2009 at 2:32 pm
You're always welcome!
... sorry for the little joke. 😉
Greets
Flo
March 25, 2009 at 2:07 pm
Hi sqlblue
I just added comments to my sample script. Now you should see the place for the UPDATE statement:
DECLARE @big TABLE (id INT IDENTITY, value1 INT, to_update VARCHAR(100))
-- "Many" sample...
March 25, 2009 at 1:47 pm
Lowell, do you know how to recognize if there is any problem while sending the mail?
Since now I also use the job-based solution. I just had a look to BOL...
March 25, 2009 at 1:39 pm
Hi Noel
So I thought the OPENQUERY might be a better solution. I don't really know if the data are too much before or even after the grouping. Maybe Mike has...
March 25, 2009 at 1:27 pm
Hi Noel
If I rethink my question I think my thought makes no sense, because it is a circle:
* If I concatenate to many statements I run into the problem that...
March 25, 2009 at 1:25 pm
Hi
It is advisable to handle really huge updates in batches. The TOP function helps you to handle this. Here a little sample:
DECLARE @big TABLE (id INT IDENTITY, value1 INT, to_update...
March 25, 2009 at 1:19 pm
Hi Dlongnecker
This is an alike solution as my second one to concatenate all statements. But the XML way is definitely cooler! 😀
I'm just not sure if this may become a...
March 25, 2009 at 1:09 pm
Hi Richard
Thank your for your feedback. The sp_MSforeachdb also uses a CURSOR internally. See:
DECLARE @v-2 NVARCHAR(MAX)
SELECT @v-2 = definition
FROM sys.all_sql_modules
WHERE object_id =...
March 25, 2009 at 1:01 pm
Hi Sander
Try this:
SET NOCOUNT ON
DECLARE @History TABLE (
ID int identity(1,1)
, IDStatus int
, IDItem int
, DateCreated datetime)
INSERT INTO @History (IDStatus, IDItem, DateCreated)
...
March 25, 2009 at 12:19 pm
Lowell (3/25/2009)
in 2000,...
March 25, 2009 at 12:08 pm
Oups... sorry! I just tried on my SQL Server 2008.
Just researched... so this should work on SQL Server 2005:
SELECT OBJECT_NAME(object_id) referencing,
OBJECT_NAME(referenced_major_id),
...
March 25, 2009 at 11:57 am
To avoid this you may add a "IsComplete" and a "IsSend" column to your Order table and use an UPDATE trigger. Then:
* Insert the order
* Insert the order details
* Update...
March 25, 2009 at 11:48 am
Hi
Mike Levan (3/25/2009)
The OLE DB provider "SQLNCLI" for linked server "OBEAVER" reported an error. Execution terminated by the provider because a resource limit was reached.
Sounds like a resource problem. Maybe...
March 25, 2009 at 11:41 am
Viewing 15 posts - 1,741 through 1,755 (of 2,038 total)