Viewing 15 posts - 3,856 through 3,870 (of 5,502 total)
Quoting the OP's first post:
We have jobs that perform inserts into a table with an alphanumeric primary key...
it seems like the major issue is the alphanumeric key. Therefore neither...
April 3, 2010 at 7:09 am
What is the business case you need to deal with?
Basically I see two options:
1) if possible at all modify the trigger to deal with all rows at once or
2) import...
April 3, 2010 at 4:18 am
olie480 (4/2/2010)
Jeff Moden (4/2/2010)
April 3, 2010 at 3:47 am
Grant Fritchey (4/2/2010)
...But seriously, I was thinking, and I'm assuming Lutz was thinking, adding a number or or substituting a number for the char field. Idle chatter really.
Your assumption is...
April 3, 2010 at 3:37 am
cgreathouse (4/2/2010)
Could you explain what's going on here to make it so much faster?
Thanks!
....
this one
WHERE...
April 3, 2010 at 3:26 am
Thank you Jason for detecting my simple but most relevant mistake.
Since my error rate increase dramatically at the moment (in another thread I just forgot that table variables where introduced...
April 2, 2010 at 5:40 pm
CirquedeSQLeil (4/2/2010)
My concern is due to the ands
WHERE LOW >= 982827279
AND LOW < 982827279 +1000
AND HIGH <= 982827279
Since the High and Low are the same value - it...
April 2, 2010 at 5:26 pm
Btw: What do you mean by "query manager"?
If you're using SQL Server 2000, the query shouldn't run at all since table variable as well as ROW_NUMBER function that I've used...
April 2, 2010 at 5:12 pm
That's weird...
Here's the result in the Results window when running the modified query as you posted:
CustNumberFirstNameLastNameCity
345321JohnDoeKellogg
459978JohnDoeKellogg
Message window output:
(4 row(s) affected)
(2 row(s) affected)
The total number of columns doesn't really matter as...
April 2, 2010 at 5:07 pm
CirquedeSQLeil (4/2/2010)
lmu92 (4/2/2010)
If so, you could base your query on the LOW column to narrow down the...
April 2, 2010 at 5:01 pm
Is there any change to have a known maximum range between LOW and HIGH?
If so, you could base your query on the LOW column to narrow down the number of...
April 2, 2010 at 4:11 pm
You could use Row_Number() to find the dupes...
Something like this:
DECLARE @tbl TABLE
(
CustNumber INT, FirstName VARCHAR(30), LastName VARCHAR(30), City VARCHAR(30)
)
INSERT INTO @tbl
SELECT 345321 ,'John','Doe','Kellogg' UNION ALL
SELECT 459978...
April 2, 2010 at 3:31 pm
Grant Fritchey (4/2/2010)
April 2, 2010 at 7:06 am
scziege (3/30/2010)
...Another pain is the creation of new codes
we have a stored procedure which checks if a code exists and if not it will be inserted. ...
I truly hope the...
April 2, 2010 at 4:32 am
Something like this?
CREATE TABLE #TableA ( id INT,columnA VARCHAR(200))
INSERT INTO #TableA
SELECT 1,'here is my phone number 12345678. but my cell is 44444444.' UNION ALL
SELECT 2,'987654321 is my balance' UNION ALL
SELECT...
April 2, 2010 at 4:07 am
Viewing 15 posts - 3,856 through 3,870 (of 5,502 total)