Viewing 15 posts - 61 through 75 (of 265 total)
Thanks, i was using this technique for a while, what i couldn't figure out it how the resultset of all these servers can be store in one table in one...
August 18, 2008 at 3:19 pm
Finally worked....
sqlcmd -E -i"install.sql" -r1 2> install-err.log 1> install.log
Thanks Gordon....
July 31, 2008 at 6:05 pm
Has anybody used -r flag, i coudn't find any method to use it though...
and no pointers on google also to use this error trapping method....
any help appriciated....
July 31, 2008 at 5:48 pm
Try this...
SELECT
user_key AS User_id,
update_date AS createDate
FROM accounting.dbo.user
WHERE user_key IN
(
SELECT
DISTINCT CONVERT(INT, RIGHT(vendor, LEN(vendor)-1)) AS user_key
FROM Prod.dbo.return_vendors)
AND update_date is null or update_date > GETDATE()...
June 24, 2008 at 3:43 pm
Noel pointed out right its a very good idea to partition the table right away and then insert data in batches based on partition keys....
June 24, 2008 at 3:33 pm
I used it it a little different fasion: if you are not able to fix it then you can use this also...
procedure stores data in a temp table and then,...
June 24, 2008 at 3:19 pm
top reason to use select into is to avoid logging...that makes it very fast
Use global temporary tables and outside transactions you will never lock tempdb, no contention issue....
Its using normal...
May 30, 2008 at 12:32 pm
Jeff Moden (4/30/2008)
Yeah you can... insert a million rows at a time instead of all 80 million. Log won't grow but a bit on simple recovery.
Thanks Jeff, I was...
May 1, 2008 at 9:59 am
PW (4/30/2008)
DBCC Log('YourDatabaseName', 1)
(2nd parameter is level of detail).
Run:
Backup Log YourDatabaseName With truncate_only
Checkpoint
The DBCC results should show only 2 entries
Now run your insert statement. It shouldn't take 10...
April 30, 2008 at 4:27 pm
Michael Earl (4/30/2008)
April 30, 2008 at 1:20 pm
Michael Earl (4/30/2008)
Every time a transaction is logged against this table, it has to include both...
April 30, 2008 at 11:38 am
PW (4/30/2008)
Are there triggers on the table being inserted into ?
Are there any indexed (materialised) views that reference the table being...
April 30, 2008 at 10:34 am
Jack Corbett (4/30/2008)
April 30, 2008 at 9:57 am
Excellent article, being relatively new to replication I found it very useful....
March 11, 2008 at 6:09 pm
George sibbald suggested method will work fine, stop sql, backup system db folder and restrore msdb files and start and see if it works, otherwise stop and replace whole folder...
January 29, 2008 at 11:40 pm
Viewing 15 posts - 61 through 75 (of 265 total)