Viewing 15 posts - 12,496 through 12,510 (of 18,923 total)
ConnectionObject is the connection you are using to connect to the db... I gues this should work :
Set cmd.ActiveConnection = CurrentProject.Connection
October 20, 2005 at 11:53 am
Please post the table definition, sample data and I'll create the script for you...
October 20, 2005 at 11:50 am
Ya better plan >>
exec sp_update_resume
exec sp_sendBossLetter
if @@Error > 0
exec sp_distribute_resume
October 20, 2005 at 11:40 am
We'll assume it was done on purpuse (for now)... than we'll see.
October 20, 2005 at 11:39 am
How many databases do you have on the server?
When EXACTLY does it hang up in EM?
October 20, 2005 at 11:37 am
Hard to forget when you don't know about it
. Thanx for the info.
October 20, 2005 at 11:34 am
Yup... but it's faster to write with xp_execresultset.
Not really any better solution here as they both have to use some sort of looping so you use whatever you preffer.
October 20, 2005 at 10:20 am
Might not be what you want to hear but :
A quote from rudy komacsar
time for:
exec sp_update_resume
and
exec sp_distribute_resume
If they don't understand the risk for that then you can't really...
October 20, 2005 at 10:17 am
This is a more evolved solution than you need but you'll get the idea :
IF object_id('Data') > 0
DROP TABLE dbo.Data
GO
IF object_id('Target') > 0
DROP TABLE dbo.Target
GO
IF object_id('Transfers') > 0
DROP TABLE...
October 20, 2005 at 10:05 am
Not quite, I'm suggesting that you alter the relationships so that when you update the parent key that all the child keys get updated without you having to do anything.
The...
October 20, 2005 at 10:01 am
Back to the original solution... please post some sample data and the expected output so that we can show you the set based solution to this problem.
October 20, 2005 at 9:58 am
Are you reffering to my suggestion??
October 20, 2005 at 9:52 am
set cmd.activeconnection = ConnnectionObject.
The timing is important too... I think that the connection must be opened when you do that or it throws another error.
October 20, 2005 at 9:50 am
Not needing a cursor is most likely true but I'm gonna state the obvious : How can you declare a cursor for update that can only read the data???
October 20, 2005 at 9:32 am
Viewing 15 posts - 12,496 through 12,510 (of 18,923 total)