Thursday 17-05-2012
About Us | Contact Us | FAQ | Support | Links
Coldfusion Custom Tags, CFXs, CFCs, Full Applications and more!
< Built by ColdFusion Developers, for ColdFusion Developers >
 
Home | Tag Categories | Latest Tags | Top Rated Tags | Top Selling Tags | My Account | Search | Sell Your Tags | Tags A-Z
MS Sql Server database schema script to text file

MS Sql Server database schema script to text file - Script the database schema to a text file.
Developer Name: Theo Galanakis
Company Name:
Email Developer Email Developer:
Latest Version: 1.0
Price: $15
License: One copy for multiple servers in multiple locations.
Encrypted: No
Average Rating:
Times Rated: 4
Rate This Tag:


Tag Comments

There are no comments for this tag yet!


What Is MS Sql Server database schema script to text file?
This com object allows the user to script a complete backup of tables, view and stored procs. This can be useful to keep a backup of a database schema that changes regularly and allows for quick recovery if rollback of the database schema is required. Or a historical reference of changes made.

There is no obigation to buy, It is offered Free of charge. However if you find it beneficial, please donate the small amount outlined, which will be given to cftagstore.com designated charity. Then you will have access to the full VB source code as well.

There is one essential requirement for this activeX dll to work. SQL Server is required to be installed on the same machine, the SQL server client only installation should have the required dll to run this.

To Install this Microsoft COM activeX DLL, perform the following.

1. Copy the generateScript.dll to the c:\%windows%\system folder, e.g. c:WINNT\SYSTEM.

2. Register the dll. At the doc command prompt type "regsvr32.exe c:WINNT\SYSTEM\generateScript.dll". Msgbox will appear to confirm the registration.

3. Sample CF code to run the dll. The first line instantiates the com object. The second line calls the generateScript function passing in four parameters.

  1. First parameter is the server name or IP address.
  2. Second parameter is the database name.
  3. Third parameter is the sql server username, using (local) NT account on the server , security wise is better, no need to store the password.
  4. Fourth parameter is the password, required if (local) is unspecified.

 <cfobject type="COM" name="gScript" class="generateScript.gScript" action="CREATE" context="LOCAL">
 <cfset scriptOutput = gScript.generateScript("SQLServer1","Northwind","(local)","blank")>

The above example returns a variable which contains the scripted objects of the Northwind database, all tables, views and stored procs included.



 


< Business Strength Coldfusion Custom Tags >
Sitemap | Privacy | Branding | Web Services | Support | Contact Us