Quantcast
Channel: All Forums
Viewing all articles
Browse latest Browse all 27852

Web Deploy 3.0 and SQL scripts

$
0
0

I've been driving myself crazy trying to find decent documentation on using the Web Deploy tool from within the IIS7/Deploy/Export Application link in the Information Services Manager. I finally have found accurate resources for everything I need other than running a SQL script from within the import that allows the user to define some values that get replaces when the generated .zip file is imported. I've generated a pretty simple script and set it up in the export using the dbfullsql provider. Here's my script:

:setvar clientID CLIENT
:setvar auditDB AUDIT
:setvar caseDB CASE

USE YCN_DB_Client
GO

UPDATE ClientMaster SET [clientCode] = $(clientID), dbServerConnectionString = $(auditDB), dbServerCaseConnectionString = $(caseDB) WHERE [clientCode] = 'paws'
GO

When I do the export I set dbfullsql as the provider and enter the fully qualified path the my script in the path variable.  When I click the OK button and then click on the resulting SQL script parameter it does show the correct script contents.  When I click the next button the form shows me the provider path and 3 sql command variables that correspond to my script.  I then create the .zip and all seems OK.

When I attempt to do my import my site is correctly generated and my database is created.  If I go to the details panel of the installation progress and summary form that is displayed after the import completes it tells my the import was successful but it has the following block of 'problems' related to the script:

[9/29/2012 6:34:15 PM] Parameter entry 'Parameter 1/1' is applicable to 'dbFullSql/c:\inetpub\wwwroot\auditOL\UpdateClientData.sql' because of its scope.
[9/29/2012 6:34:15 PM] Adding child sqlScript (MSDeploy.dbFullSql/dbFullSql[@path='c:\inetpub\wwwroot\auditOL\UpdateClientData.sql']/sqlScript).
[9/29/2012 6:34:15 PM] Getting stream data for 'sqlScript' ('MSDeploy.dbFullSql/dbFullSql[@path='c:\inetpub\wwwroot\auditOL\UpdateClientData.sql']/sqlScript').
[9/29/2012 6:34:15 PM] Parameter entry 'SQLCmdVariable 1/1' could not be applied anywhere.
[9/29/2012 6:34:15 PM] Parameter entry 'SQLCmdVariable 2/1' could not be applied anywhere.
[9/29/2012 6:34:15 PM] Parameter entry 'SQLCmdVariable 3/1' could not be applied anywhere.
[9/29/2012 6:34:15 PM] The dependency check 'DependencyCheckInUse' found no issues.
[9/29/2012 6:34:15 PM] The synchronization completed in 1 pass(es).

At that point I'm at a loss to figure out what I've done wrong in generating that portion of the export.  I've looked at a few examples and my code seems to follow their techniques.  What am I missing?


Viewing all articles
Browse latest Browse all 27852

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>