Share via


SPDatabase.CreateFromFilePath method

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Shared Sub CreateFromFilePath ( _
    strDatabaseServer As String, _
    strDatabaseName As String, _
    strDatabaseUserName As String, _
    strDatabasePassword As SecureString, _
    strPrebakedPath As String, _
    fCreateNewShare As Boolean _
)
'Usage
Dim strDatabaseServer As String
Dim strDatabaseName As String
Dim strDatabaseUserName As String
Dim strDatabasePassword As SecureString
Dim strPrebakedPath As String
Dim fCreateNewShare As BooleanSPDatabase.CreateFromFilePath(strDatabaseServer, _
    strDatabaseName, strDatabaseUserName, _
    strDatabasePassword, strPrebakedPath, _
    fCreateNewShare)
public static void CreateFromFilePath(
    string strDatabaseServer,
    string strDatabaseName,
    string strDatabaseUserName,
    SecureString strDatabasePassword,
    string strPrebakedPath,
    bool fCreateNewShare
)

Parameters

See also

Reference

SPDatabase class

SPDatabase members

Microsoft.SharePoint.Administration namespace