Viewing 15 posts - 5,146 through 5,160 (of 6,216 total)
Not sure I explained it well - you can execute the query and return it via DMO to a queryresults object. You dont HAVE to use ADO at all.
Andy
January 8, 2002 at 9:24 pm
I think you have to use the attach option if there are more than 16. Otherwise sp_attach_db shoud do fine, you just keep passing it arguments.
Not totally on topic, but...
January 8, 2002 at 9:23 pm
I actually do this quite a bit with in house utility apps - things built to automate a process that was too awkward for SQL alone. Definitely have to exercise...
January 8, 2002 at 9:18 pm
Try sp_who or sp_who2 - both will show you the spid that is causing the blocking - its common to have to follow a chain where 1 blocks 2 blocks...
January 8, 2002 at 9:13 pm
Maybe! Havent timed honestly, though you have to figure if you have indexes on the table that might add to a bit more time than just appending to the end...
January 8, 2002 at 9:04 pm
I dont think you can get passwords from the login object in DMO, you can just set passwords. You can definitely run the query using the executeimmediate which will return...
January 8, 2002 at 3:19 pm
Try just using executeimmediate. Once you start doing more than the simplest of queries you'll be better off using ADO for that part of it. Richer tools, returns a real...
January 8, 2002 at 7:59 am
Steve - you been writing spew again? I TOLD you to turn the humor checker on!
Andy
January 8, 2002 at 5:11 am
Try this, it suggests that the ado connection might still be busy when you're trying to access it:
If you dim your connection using withevents you can probably see whats going...
January 8, 2002 at 5:06 am
Just remove the (16) - text is all you need for SQL to know what you mean, all text cols are treated the same regardless of size (more or less).
Andy
January 8, 2002 at 5:03 am
I agree with Paul's answer - right on the money! Syntax looks like this:
Insert Into tablearchive (field1, field2, etc) select field1, field2, etc from
sourcetable where readytoarchive=1
The key is that the...
January 8, 2002 at 5:01 am
I'd suggest VB6 for now. Tons and tons of discounted books, learning CD's, etc available, plus a wide pool of web sites, in house developers, etc to help you learn....
January 7, 2002 at 7:48 pm
Havent done merge in a while - but doesnt it require a distributed transaction?
Andy
January 7, 2002 at 7:45 pm
Thanks! Hope you'll continue to visit and participate.
Andy
January 7, 2002 at 7:43 pm
No reason you couldnt create a user defined function to do the work. Should be fine to discourage casual snooping, just dont rely on it for anything more!
We've got an...
January 7, 2002 at 8:59 am
Viewing 15 posts - 5,146 through 5,160 (of 6,216 total)