Viewing 15 posts - 31 through 45 (of 138 total)
Actually original question (that I was answering) was
I have a table XYZ with 3 INT columns. There are 3000 records already in this table. Now I need a copy of...
James Horsley
Workflow Consulting Limited
February 10, 2009 at 10:31 am
SELECT INTO loses all your original indexes, constraints etc - much better to copy the structure of original table by scripting it, add the Identity column, rename old table, build...
James Horsley
Workflow Consulting Limited
February 10, 2009 at 9:35 am
Sort of conveniently omits the really tricky bit - the "and"
10129 = ten thousand one hundred and twenty nine
The rules for the "and" are rather complex ... e.g.
101202 = one...
James Horsley
Workflow Consulting Limited
February 2, 2009 at 3:07 am
If you decide to do that, pick a nice low FILL FACTOR or the page splits will be even more painfull than the hot spot.
Indeed.
James Horsley
Workflow Consulting Limited
September 3, 2008 at 2:07 am
Jeff Moden (9/2/2008)
Yeaup... but if you loose the disk where the log file is, you're still going to miss data regardless of backups.
I don't really agree - surely if the...
James Horsley
Workflow Consulting Limited
September 3, 2008 at 2:03 am
In addition to the other posts you will always have a "hotspot" on the last data page of a clustered index on and identity column - this is because the...
James Horsley
Workflow Consulting Limited
September 2, 2008 at 4:06 am
I surprised that the most obvious reason has not been given:
If your data file disk fails you can recover to the failure point in time with the last full backup...
James Horsley
Workflow Consulting Limited
September 2, 2008 at 3:56 am
noeld (6/3/2008)
sometimes is good to warn people about "sending emails from triggers may not be what you want" 😉
Yes - I really think they should be warned ....
You...
James Horsley
Workflow Consulting Limited
June 5, 2008 at 3:16 pm
OK - I guess I misunderstood your requirement - I thought it was just getting in the existing data you had a problem with. Your manual sequence table will probably...
James Horsley
Workflow Consulting Limited
May 16, 2008 at 5:43 am
Seth Delconte (5/15/2008)
James, I think you are right. SET IDENTITY_INSERT YOURTABLENAME ON should perform the same function as (in DTS) checking the Enable Identity Insert box, right?Seth
Correct
James Horsley
Workflow Consulting Limited
May 16, 2008 at 3:25 am
If I understand you correctly the system will use Identity in the new database but your problem is pushing in existing data that already has ID's allocated via you manual...
James Horsley
Workflow Consulting Limited
May 15, 2008 at 9:00 am
select cast(cast(RAND()*100000 as int) as datetime) will give you a random date between 1 Jan 1900 and 16 oct 2173 - you can see the range from
select cast(cast(0*100000 as...
James Horsley
Workflow Consulting Limited
May 15, 2008 at 8:54 am
Windows is rubbish at file copying - back in the old Netware days it had optimised file copy commands (NCOPY) to copy between servers - in all the time Microsoft...
James Horsley
Workflow Consulting Limited
May 6, 2008 at 1:26 am
Assuming your fields are called RGB for RGB value and R, G & B for individual parts then
RGB = 65536 * R + 256 * G + B
This is because...
James Horsley
Workflow Consulting Limited
May 6, 2008 at 1:16 am
I think you have a duff backup - try taking a fresh backup.
Also for this sort of thing I would strongly recommend restoring first to a SQL server instance that...
James Horsley
Workflow Consulting Limited
April 25, 2008 at 2:25 am
Viewing 15 posts - 31 through 45 (of 138 total)