Viewing 15 posts - 31 through 45 (of 50 total)
It has been a while since I`ve done ADO in VB but it sounds, from the second error message, like you are trying to Open a connection that is already...
January 25, 2006 at 2:58 am
A UNION might help get rid of the OR IE:
select ID from TBL where COL1= @a UNION select ID from TBL where COL2= @a
This may or may...
January 25, 2006 at 1:48 am
I am not sure what Hemasunder means, you can Delete, Copy etc in a DTS and add in Date control no problem.
If I was writing a DTS for what you...
January 24, 2006 at 4:44 am
Oh - one other thing about cursors - don`t forget you can make them more efficient by using Fast Forward Only and the like.
January 23, 2006 at 7:25 am
Jeffery - Sounds as though you have found a good reason for using a loop rather than folding the loop into the SQL.
But are you sure that these 'Parts of the...
January 23, 2006 at 7:23 am
Because the Temp DB is created each time SQL server is started it takes its collation from the server (or, more correctly, from the 'model' db). If you have databases...
January 23, 2006 at 5:55 am
Thanks, but I think you are assuming a type of usage that simply does not occur in our setup.
Once we have the data uploaded (lets say its monthly, but...
January 23, 2006 at 5:29 am
Thanks, I think the size of data any one statement in our process has to handle would make it necessary to shrink the log regularly, IE several times during each...
January 20, 2006 at 8:27 am
Thanks, sadly that is exactly the sort of thing I am trying to avoid, our app is very CPU & disk access intensive.
I have tested a fixed log file...
January 20, 2006 at 7:45 am
I know this query is now fixed but I thought a small point on debugging might help in future.
I often find it useful to change such statements into selects just...
January 19, 2006 at 4:38 am
Look up GETUTCDATE() in BOL, this gives GMT whatever the computers local time zone.
January 19, 2006 at 4:19 am
Generally speaking you want to avoid using 'IN ({subquery})' as it can be very inefficient. Stick to using the JOIN method.
January 19, 2006 at 4:04 am
You might also try formatting the column as text in Excel before importing. We sometimes get a similar problem (but the other way round) where numeric columns containing commas (eg...
January 19, 2006 at 3:56 am
I think Jo`s idea makes sense, create a view with something like:
SELECT * FROM HistoryYYYYMM
UNION
SELECT * FROM HistoryYYYYMM
etc....
Then grant permissions as required on the view, then you only need...
January 19, 2006 at 3:07 am
I was not aware that the DTS would do this (I have not made much use of DDQs), but I`m not particularly surprised
Are you changing the connection Manually (IE via...
January 19, 2006 at 2:33 am
Viewing 15 posts - 31 through 45 (of 50 total)