Can you confirm the ways I can apply the scripts generated?
spireite
Posts: 25
As I understand it, the scripts generated by the Toolkit can only be applied through....
OSQL
Query Analyzer
SQL-DMO
Is there anything I've overlooked? The reason I ask is that I may be asked if I can let an enduser apply the script. Obviously, installing any of the above on an endusers machine may be an issue for customer administrators. Is there anyway I can leverage ADO for this?
Everytime I ty, the GO command of course is incompatible for ADO.
Or is it a case of using .NET to achieve this without resorting to OSQL.QA/DMO?
Cheers for your help - its really appreciated!
OSQL
Query Analyzer
SQL-DMO
Is there anything I've overlooked? The reason I ask is that I may be asked if I can let an enduser apply the script. Obviously, installing any of the above on an endusers machine may be an issue for customer administrators. Is there anyway I can leverage ADO for this?
Everytime I ty, the GO command of course is incompatible for ADO.
Or is it a case of using .NET to achieve this without resorting to OSQL.QA/DMO?
Cheers for your help - its really appreciated!
This discussion has been closed.
Comments
--THIS IS THE END OF A BATCH
GO
When you want to run the script on the client you could parse the script and then split it whenever you see that comment.
Another possibility would be to generate the script on the client rather than the server by using the toolkit and then using the Utils class to execute the SQL.
Yet another option would be to use SQL Packager to generate a .exe file with all the SQL statements in it.
Red Gate Software Ltd
The Packager would have been great at , but it came out a little too late in our timeline to be implemented. Maybe considered for the future though.