Feb 1, 2004 #1 meravsha Programmer Jul 27, 2001 21 0 0 IL I wrote a script with 50 tables definition It's called: NewTables.sql my question is: How can I run this script from vb6 -> sqlDmo?
I wrote a script with 50 tables definition It's called: NewTables.sql my question is: How can I run this script from vb6 -> sqlDmo?
Feb 1, 2004 #2 rdroske IS-IT--Management Aug 27, 2002 532 0 0 US With MS SQLServer I would just create a stored procedure and execute that from VB by issuing an SQL statement like EXEC stored_procedure_name? Upvote 0 Downvote
With MS SQLServer I would just create a stored procedure and execute that from VB by issuing an SQL statement like EXEC stored_procedure_name?
Feb 2, 2004 #3 zemp Programmer Jan 27, 2002 3,301 0 0 CA You can also create an SQL statement to create your tables and execute it through an ADO connection. There are SQLDMO examples available for download at http://www.planetsourcecode.com as well. Including this complete enterprise manager clone. http://www.Planet-Source-Code.com/vb/scripts/ShowCode.asp?txtCodeId=40912&lngWId=1 Take Care, zemp "If the grass looks greener... it's probably because there is more manure." Upvote 0 Downvote
You can also create an SQL statement to create your tables and execute it through an ADO connection. There are SQLDMO examples available for download at http://www.planetsourcecode.com as well. Including this complete enterprise manager clone. http://www.Planet-Source-Code.com/vb/scripts/ShowCode.asp?txtCodeId=40912&lngWId=1 Take Care, zemp "If the grass looks greener... it's probably because there is more manure."