Viewing 15 posts - 57,316 through 57,330 (of 59,049 total)
| ...but when doing that I must maintain the sequence of un-duplicated numbers |
Commando...
I think the quote above explains it...
October 25, 2006 at 5:06 pm
A good ol' batch file that uses OSQL or BCP would be easy enough... and, then, the user could provide whatever filename they wanted as a parameter.
October 24, 2006 at 8:04 pm
If the naming differences are that bad, generate scripts for all the views from EnterPrise Manger, drop all the views, recreate the views using the script.
October 24, 2006 at 7:56 pm
This should do it... don't worry about the couple of strings you see... this is still pretty darned fast and they make it independent of the @@DATEFIRST setting... (you can...
October 24, 2006 at 6:16 pm
Sorry... had posted a solution here (and deleted it) for hours that didn't take into account days that were on the weekends... I'll be right back with the correction....
October 24, 2006 at 6:05 pm
This will give you whole days... modify the "ends" of the range to do hours... also, not affected by @@DATEFIRST settings... very fast... very simple...
SELECT (DATEDIFF(dd,@StartDate,@EndDate)+1)
-(DATEDIFF(wk,@StartDate,@EndDate)*2)
...
October 24, 2006 at 5:38 pm
Also, have you looked into using sp_AddLinkedServer... it, in fact, supports links to DB2. See Books Online,
October 24, 2006 at 4:13 pm
You could use Sp_ExecuteSQL but then you'd still end up with a table variable that cannot be made to use statistics...
If it were me, I'd use a temp table instead...
October 24, 2006 at 4:09 pm
Sorry, Remi... that wasn't directed at you... I got so ticked
at the mere suggestion that such a simple data manipulation be done...
October 24, 2006 at 7:49 am
Ok... I know... "put up or shut up, Jeff"... fine
Let's see you do it any simpler in an app
October 24, 2006 at 7:20 am
I try to use my memory... but I forget... ![]()
October 24, 2006 at 6:08 am
Serqiy... You really that old ? ![]()
October 23, 2006 at 11:35 pm
Viewing 15 posts - 57,316 through 57,330 (of 59,049 total)