Viewing 15 posts - 2,401 through 2,415 (of 5,590 total)
Expanding on what has already been provided:
-- test table with data
DECLARE @test-2 TABLE (CCNumber varchar(16), CCV varchar(4) NULL);
INSERT INTO @test-2
SELECT '1234567890123456', NULL UNION ALL -- don't update this...
November 17, 2010 at 5:08 am
Okay, so we can't do it the way I was thinking of.
What we're going to do:
1. Create a temporary table with an identity column that starts at 1000001
2. Copy existing...
November 17, 2010 at 5:00 am
Craig Farrell (11/16/2010)
Hm, Identity column seeded at 1000001 and then obfuscate that into the 'LB' format with a calculated column should work as well.
Except that there is already an identity...
November 16, 2010 at 6:15 pm
LutzM (11/16/2010)
I guess Waynes questions are there to determine which solution will apply here... Right, Wayne?
Absolutely - I'm leaning towards the quirky update right now. The OP already has the...
November 16, 2010 at 6:13 pm
Craig Farrell (11/16/2010)
Hm, I thought we were building the test data first.
Okay, I see that I didn't state that clearly enough.
In your script, it builds the test data and then...
November 16, 2010 at 6:10 pm
Steve Jones - SSC Editor (11/16/2010)
CirquedeSQLeil (11/16/2010)
Do we have any opinions on the following (comments included)?http://www.sqlservercentral.com/blogs/steve_jones/archive/2010/11/16/another-plagiarizer.aspx
I think the author is 100% correct and a genius 😛
You would... 😉
November 16, 2010 at 3:40 pm
Questions:
1. Do you have a clustered index on the identity column?
2. Will the ID #'s ever need to be reset (ie changing account #, restart at 1)?
3. Is the "1"...
November 16, 2010 at 3:32 pm
FYI, I've asked Jeff to poke his head in here.
Something that is really interesting in an odd way: if you build the test data first, and then separately run the...
November 16, 2010 at 3:24 pm
LutzM (11/16/2010)
Chris Morris-439714 (11/16/2010)
Am I being too harsh with this poster?
If what you did over there would be considered being harsh, I'd have to stop posting!!
The effort you put in...
November 16, 2010 at 1:28 pm
Okay, that 31million row test table is making testing take too long.
Using:
SELECT @NumAccounts = 1000,
@DateSpan = 400
When doing...
November 16, 2010 at 1:18 pm
Craig - I'm testing... I'll get back later.
I'm using:
SELECT @NumAccounts = 10000,
@DateSpan = 4000
Test table total: 31,986,801 rows
FYI:...
November 16, 2010 at 12:43 pm
LutzM (11/16/2010)
WayneS (11/16/2010)
November 16, 2010 at 11:43 am
Note that you can accomplish this with a CTE:
;WITH CTE AS
(
SELECT [CLIENT_NUMBER],
[CLIENT_SURNAME],
[CLIENT_GIVEN_NAME],
...
November 16, 2010 at 11:27 am
However, you are allowed to have the same INDEX name across multiple tables. If you're getting a duplicate index name error, then an index of that name already exists for...
November 16, 2010 at 11:21 am
Viewing 15 posts - 2,401 through 2,415 (of 5,590 total)