About 503,000 results
Open links in new tab
  1. Create SQL Server Database with PowerShell

    Nov 12, 2019 · Method # 1b – Create SQL Server Database Using PowerShell Invoke-SqlCmd and a PowerShell variable. Another way to do this with Invoke-SqlCmd is to is to paste the …

  2. How do I set up a postgresql database in Windows Powershell?

    Jul 28, 2023 · Try psql -U postgres -c "CREATE DATABASE database1;" Alternatively, you can use the Postgres shell and enter user details based on the prompts given, and then create a …

  3. Hey, Scripting Guy! How Can I Use Windows PowerShell to Create

    Feb 16, 2009 · For information about downloading and installing Windows PowerShell, you can go to the Windows PowerShell Scripting Hub. To create an Office Access database using a …

  4. Is it possible to create a Database in SQL Server with powershell ...

    SMO certainly supports a database create method - the linked MSDN page includes a powershell example: $srv = new-Object Microsoft.SqlServer.Management.Smo.Server("(local)") $db = …

  5. SQL Server Database Scripting with PowerShell - AutomateSQL

    Mar 2, 2024 · In 2018, I built a PowerShell function to help with this and I'd like to share that with you today. Here's how I use it to accomplish the following tasks in my test environment: Create …

  6. PowerShell: Create a single database - Azure SQL Database

    Mar 3, 2023 · This Azure PowerShell script example creates a single database in Azure SQL Database and configures a server-level firewall rule. After the script has been successfully run, …

  7. Creating SQL Server Database with PowerShell - Rob Sewell …

    Sep 8, 2013 · Create a database object, a Primary file group object and add the file group object to the database object. Add a User File Group for User objects. Create a database file on the …

  8. Create SQL Database using PowerShell – Lab Core | The Lab of …

    Jun 4, 2016 · Using this PowerShell code, you can either run it directly in the console, or make a CreateDB.ps1 file, to add a new SQL DB. Note, you could use with some of the previous PS …

  9. Creating a New Database in SQL Server Using PowerShell

    Jun 30, 2020 · By utilizing PowerShell and the dbatools module, you can streamline the process of creating new databases in SQL Server, ensuring that they are created with the desired …

  10. Creating a SQL Server Database using DBATools - SQL Shack

    May 23, 2019 · In this article, let’s explore creating a SQL Server database using DBATools. Usually, we create a SQL Server database using a graphical user interface in SSMS or …

  11. Some results have been removed
Refresh