< Back

New-SdfFile

Sat Jan 11, 2020 8:32 am

NAME New-SdfFile



SYNOPSIS

Create a new SQL Server CE Database





SYNTAX

New-SdfFile [-Path] <FileInfo> [-Connect] [-Force] [<CommonParameters>]





DESCRIPTION

Creates a new SQL Server CE database file in the supplied location.





PARAMETERS

-Connect [<SwitchParameter>]

Connects to the database just created



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-Force [<SwitchParameter>]

Overwrites the SQL Server CE file, if it exists



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-Path <FileInfo>

Path to the sdf-file



Required? true

Position? 0

Default value None

Accept pipeline input? False

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

None







OUTPUTS

System.Object







NOTES









-------------------------- Example 1 --------------------------



PS C:\\> New-SdfFile -Path C:\\Temp\\MyDatabase.sdf



Creates a new SQL Server CE file in C:\\Temp called MyDatabase.sdf. Use Connect-SdfFile fo



RELATED LINKS