Execute scripts in the database

Any template questions or comments or suggestions

Execute scripts in the database

Postby themustela on Thu Sep 27, 2007 1:57 pm

Hi!!! I've created some templates, that generate sql server scripts. I would like to know if it is possible to execute this scripts inside MyGeneration, in order not to execute the .sql by myselft.

Thanks!!
themustela
Lurker
 
Posts: 2
Joined: Thu Sep 27, 2007 1:48 pm

Postby mike.griffin on Thu Sep 27, 2007 6:47 pm

On the IDatabase MyMeta interface there is an ExcuteSQL() method I believe, but remember, you can also use ADO.NET directly in your templates too.
User avatar
mike.griffin
Site Admin
 
Posts: 3290
Joined: Sat Apr 03, 2004 6:10 am
Location: Indianapolis, IN

Execute scripts in the database

Postby themustela on Fri Sep 28, 2007 3:01 pm

Yes, i tried that , i try to use ado.net in a template, but without luck :(
Can you give me an example please? or a link?

Thanks in advantage!
themustela
Lurker
 
Posts: 2
Joined: Thu Sep 27, 2007 1:48 pm


Return to General Template Questions/Comments

Who is online

Users browsing this forum: No registered users and 2 guests

cron