Viewing 15 posts - 47,101 through 47,115 (of 59,095 total)
Christopher Stobbs (11/20/2008)
Thanks Jeff,Very useful info there 🙂
You bet, Chris... thanks for the feedback.
--Jeff Moden
Change is inevitable... Change for the better is not.
November 20, 2008 at 6:02 pm
riverswillbeer (11/20/2008)
--Jeff Moden
Change is inevitable... Change for the better is not.
November 20, 2008 at 5:59 pm
Jim Russell (11/20/2008)
Jeff: did your "awesome idea" involve something other than BULK INSERT?
Combination of that and "something else". Dunno if it'll be worth it, but wanted to give it...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 20, 2008 at 5:46 pm
You already have one. Any cursor code is going to be slow.
--Jeff Moden
Change is inevitable... Change for the better is not.
November 20, 2008 at 12:28 am
That's a pretty good and correct summary (heh... except for the format function). And, yes, you do understand.
--Jeff Moden
Change is inevitable... Change for the better is not.
November 19, 2008 at 10:19 pm
You bet. Thank you for the feedback.
Now you know why I asked to see your query. For more information on how to get better answers quicker on future...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 19, 2008 at 10:16 pm
Phil Parkin (11/19/2008)
If it's numeric, cast to integer, otherwise leave as is:
declare @value varchar(10)
Set @Value = '0000006708'
if IsNumeric(@value) = 1
select cast(@value as integer)
else
select @value
Phil
Works fine......
--Jeff Moden
Change is inevitable... Change for the better is not.
November 19, 2008 at 9:36 pm
SELECT t.Title_ID, t.Type, t.Price, d.AvgPrice
FROM dbo.Titles t
INNER JOIN
(--==== Derived table "d" finds average Price for each...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 19, 2008 at 9:32 pm
Thanks for the feedback...
Just a bit of undocumented warning... we've had several problems in the past where using a correlated subquery in the WHERE clause of an update will occasionally...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 19, 2008 at 9:14 pm
Gaby A. (11/19/2008)
--Jeff Moden
Change is inevitable... Change for the better is not.
November 19, 2008 at 9:02 pm
Ted Zatopek (11/19/2008)
http://msdn.microsoft.com/en-us/library/ms139833(SQL.90).aspx
This seems to be just the trick I...
--Jeff Moden
Change is inevitable... Change for the better is not.
November 19, 2008 at 8:59 pm
Show me your code so I can modify it for you.
--Jeff Moden
Change is inevitable... Change for the better is not.
November 19, 2008 at 8:46 pm
Any feedback regarding my question, Karthick. Heh... "Inputs are welcome!" 😉
--Jeff Moden
Change is inevitable... Change for the better is not.
November 19, 2008 at 8:44 pm
Sounds like a one time task... recommend you use SSIS to import the data into a "staging table" and then do an insert into the final table(s) from there.
--Jeff Moden
Change is inevitable... Change for the better is not.
November 19, 2008 at 8:42 pm
Alasdair Thomson (11/19/2008)
I hope this might be of use, we use the following function to breakdown the delimited list and then pass in our sp using cusors;
Please see the following......
--Jeff Moden
Change is inevitable... Change for the better is not.
November 19, 2008 at 8:33 pm
Viewing 15 posts - 47,101 through 47,115 (of 59,095 total)