Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Output param from SQL

I want to call a SQL stored proc from Excel VBA and get an output param, but
don't know how to do this. Can someone point me in the right direction?

Basically what I'm doing is taking 2 cell's value and feeding them to a
stored proc. The stored proc loads the data into a table. The table has an
identity column. The sproc gets the identity value using SCOPE_IDENTITY. I
want the Identity value returned to Excel.

Any help or URL's with examples would be greatly appreciated.

Thanks, Andre


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Output param from SQL

Andre,
Look in to ADO, especially the Command object and it's Parameter property.

NickHK

"Andre" wrote in message
...
I want to call a SQL stored proc from Excel VBA and get an output param,

but
don't know how to do this. Can someone point me in the right direction?

Basically what I'm doing is taking 2 cell's value and feeding them to a
stored proc. The stored proc loads the data into a table. The table has

an
identity column. The sproc gets the identity value using SCOPE_IDENTITY.

I
want the Identity value returned to Excel.

Any help or URL's with examples would be greatly appreciated.

Thanks, Andre




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
open a spreadsheet with param ITDUDE27 Excel Discussion (Misc queries) 1 April 19th 06 07:55 AM
build param string for WHERE IN (....) [email protected] Excel Programming 3 October 7th 05 04:12 PM
Haeder/Footer param Erik Creyghton Excel Programming 4 July 27th 04 08:58 PM
PrintToFile param - what's the file format? jstrater Excel Programming 3 May 16th 04 10:09 PM
CorruptLoad param of Workbooks.Open Microsoft Excel Programming 6 April 17th 04 10:50 PM


All times are GMT +1. The time now is 07:44 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"