Viewing 15 posts - 496 through 510 (of 560 total)
If you are rebuilding your Indexes, MS-SQL requires a lock on that page, no matter what. Even using Enteprise edition, it will temporary acquire a shared lock, between processing.
I recommend...
October 4, 2012 at 8:42 am
Jeff Moden (10/3/2012)
sql-lover (10/3/2012)
sqlfriends (10/3/2012)
but I mean the starting seed number, I mean in order for it start again from 5000 in a table that already have records,...
October 3, 2012 at 6:57 pm
sqlfriends (10/3/2012)
but I mean the starting seed number, I mean in order for it start again from 5000 in a table that already have records, it seems I...
October 3, 2012 at 5:01 pm
I can be wrong, but if you want to start from where you left, different table, you must use SET IDENTITY INSERT ON ... insert, then turned it off. That...
October 3, 2012 at 4:35 pm
Jeff Moden (10/3/2012)
So.... no interest in trying the 65 millisecond method I proposed to see if it'll work? 😉
Took a less elegant approach 🙂 ... and I may use bt's...
October 3, 2012 at 4:31 pm
bteraberry (10/3/2012)
Wow, they built a billion record heap? Ouch. Sorry man.
I've seen a few similar tables. I am in the process of fixing those issues.
Anyway ... tested your...
October 3, 2012 at 1:19 pm
I wanna die ... :crying:
I just discovered there is no CI on that table, just a NCI. So bt ... your script is doing an ugly table scan (checked the...
October 3, 2012 at 12:43 pm
bt,
That's a very nice piece of code, thank you so much. However, I wonder how many locks (if one) it will create. Like I said, the production server has serious...
October 3, 2012 at 12:18 pm
Michael,
Good catch!
Here's the simple schema...
CREATE TABLE [dbo].[MyTargetTable](
[col1] [bigint] IDENTITY(1,1) NOT FOR REPLICATION NOT NULL,
[col2] [int] NOT NULL,
[col3] [smallint] NOT NULL,
[col4] [smalldatetime] NOT NULL,
[col5] [real] NULL
) ON [FG2]
col1 is INT on...
October 3, 2012 at 10:56 am
Faced 1st challenge (dumb error)
I can't use "n" option with BCP or re-inserted from source table. Source has "int" on that column. Target table already has the new "bigint" data...
October 3, 2012 at 9:47 am
aaron.reese (10/3/2012)
October 3, 2012 at 8:54 am
bteraberry (10/2/2012)
October 3, 2012 at 5:18 am
bteraberry (10/2/2012)
ScottPletcher (10/2/2012)
Maybe I'm missing something.Why not just ALTER the column to be a bigint instead of an int?
He said these are very big tables. Altering the column means...
October 2, 2012 at 5:18 pm
ScottPletcher (10/2/2012)
Maybe I'm missing something.Why not just ALTER the column to be a bigint instead of an int?
NO way! Because downtime! Why do you think that I am taking all...
October 2, 2012 at 5:13 pm
bteraberry (10/2/2012)
Are the records in the tables in question ever updated or just inserted?
Good point...
Ever increased ... it is my understanding, no updates or inserts in the middle ...
October 2, 2012 at 12:43 pm
Viewing 15 posts - 496 through 510 (of 560 total)