Viewing 15 posts - 466 through 480 (of 507 total)
For my 2 cents.
I've found the fastest way to do something like select zip codes within a radius is to use simple betweens for latitude and longitude into a temp...
June 9, 2008 at 12:37 pm
You can also use COALESCE(ColumnName, 'N/A')
Todd Fifield
June 9, 2008 at 11:48 am
I had a similar problem. Access doesn't like nvarchar or ntext in a table that also has a REAL data type on the SQL Server side. I changed...
June 5, 2008 at 12:01 pm
The following code should work from Access. It's simpler to use ADO but in some cases this isn't possible.
The code below is how to insert a row into the...
June 5, 2008 at 11:46 am
Thanks guys. It makes sense I'll give it a whirl.
Todd Fifield
May 31, 2008 at 11:01 am
Jeff,
You got me on that one! I didn't check it against a million rows - oops!
I'll try the triangular join next time.
Todd
May 25, 2008 at 11:31 am
Jeff,
Wouldn't something like this work faster? I normally use this technique to delete duplicates and I've never had a performance problem:
DELETE T1
FROM dbo.JBMTest T1
INNER JOIN
(SELECT ProductID, CustomerID,...
May 24, 2008 at 11:41 am
If you're in a stored procedure I don't see why you wouldn't create a temp table and then make 7 passes at inserts into it using specific criteria each time...
May 13, 2008 at 11:12 am
If you are truncating the tables before loading them, I would also drop the indexes (except for the clustered index if the data is loaded in clustered index order). ...
April 28, 2008 at 11:59 am
I agree that you have to be very careful when assigning variables to something that might have more than 1 row in it. It's a bad practice. To...
April 24, 2008 at 12:38 pm
The first thing I noticed was that you're using a function as the first part of your WHERE clause. This makes it difficult for the optimizer to us an...
April 8, 2008 at 11:07 am
There's a fairly easy way to do this using Dynamic SQL. If you mostly want all columns and a few that you want to omit then you can get...
April 4, 2008 at 11:23 am
I agree with Jeff on this one. I've had to go through 2 systems the used the WHERE IN syntax and replace them with an INNER JOIN. These...
April 2, 2008 at 12:17 pm
Actually, I made a typo in the above function. It should read SELECT C.Colour. PC is the alias for ProductColour, not the Colour table.
Todd Fifield
April 2, 2008 at 12:06 pm
The way I've handled this in 2000 (and 2005) is to use a User Defined Function to string the text together. You have to be careful about using this...
April 2, 2008 at 12:03 pm
Viewing 15 posts - 466 through 480 (of 507 total)