SiteConfig.PutSQLScript Method (PIA)
Use this method to put the specified SQL script file into the Administration database.
Definition
[Visual Basic .NET]
Imports Microsoft.CommerceServer.Interop.Configuration
…
Public Sub PutSQLScript(sResource As String,
sScriptName As String,
sScriptContents As String)
[C#]
using Microsoft.CommerceServer.Interop.Configuration;
…
public void PutSQLScript(stringsResource,
stringsScriptName,
stringsScriptContents);
Parameters
[Visual Basic .NET]
- sResource
A String that contains the name of the resource associated with the SQL script file. - sScriptName
A String that contains the name of the SQL script file. - sScriptContents
A String that contains the SQL script file contents.
[C#]
- sResource
A string that contains the name of the resource associated with the SQL script file. - sScriptName
A string that contains the name of the SQL script file. - sScriptContents
A string that contains the SQL script file contents.
Exceptions
This method may throw one of many mapped exceptions or an exception of type COMException. See Standard COM Errors for additional details.
Remarks
The Initialize method must be called before this method can be used.
[Visual Basic .NET]
Example
' sMySQLFileName.sql, sMyRes and sMyContents are strings
' oSiteConfig is a Commerce SiteConfig object
oSiteConfig.PutSQLScript(sMyRes, "sMySQLFileName.sql" ,sMyContents )
Requirements
Namespace: Microsoft.CommerceServer.Interop.Configuration
Platforms: Windows 2000, Windows Server 2003
Assembly: cs_mscscfg (in cs_mscscfg.dll)
See Also
Copyright © 2005 Microsoft Corporation.
All rights reserved.