Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
AskSQLTeam
Ask SQLTeam Question
0 Posts |
Posted - 2004-05-05 : 14:55:38
|
| Jayakumar K P writes "Hi All,I have tried to create a CSV File and to be stored in the Client Machine.I have created a "VB - DLL" to select the records from the SQL Server and create the CSV File and store it in the Client Machine using the Host Name/Shared Folder.I want to know how to create the object for the DLL and call a DLL Method from the Stored Procedure. I am working with MS-Access Report which will pass parameters to the Stored Procedure mapped to it. All I want to know is the way to create the object for the DLL and call a DLL Method from the Stored Procedure.If anyone can help in this, it will be very helpful for me to finish my job.with regards,Jayakumar K P" |
|
|
nr
SQLTeam MVY
12543 Posts |
Posted - 2004-05-05 : 15:07:26
|
| You can create the object using sp_oacreate. sp_oamethod will call a method.There's an example herehttp://www.nigelrivett.net/sp_oacreateLoadDTSpackage.htmlBut why use a dll for creating a csv file. Have a look at bcp or even dts.==========================================Cursors are useful if you don't know sql.DTS can be used in a similar way.Beer is not cold and it isn't fizzy. |
 |
|
|
|
|
|