Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to create database in postgresql using round house tool and .net core #451

Open
pavankog opened this issue Sep 10, 2022 · 0 comments

Comments

@pavankog
Copy link

I have postgresql localhost database installed in to my machine and try to create table using round house tool, I'm getting the below error

RoundhousE encountered an error. System.Data.SqlClient.SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
command I have tried to execute:

"D:\Users\myusername\.dotnet\tools\rh.exe" rh.redgate.diff /d="TestRoundhousE" /f="D:\Users\myusername\Desktop\Round\roundhouse\db\PostgreSQL" /s="PostgreSQL 14" /vf="_BuildInfo.xml" /vx="//buildInfo/version" /r="https://github.com/chucknorris/roundhouse.git" /env=LOCAL /simple

rh.redgate.diff.bat file text

B@echo off
::"C:\Program Files (x86)\Red Gate\SQL Compare 8\sqlcompare.exe" /database1:"TestRoundhousE" /scripts2:"C:\code\RoundhousE\db\TestRoundhouse" /include:table /exclude:table:\[Version\]^|\[ScriptsRun\]^|\[ScriptsRunErrors\] /options:Default,IgnoreConstraintNames,IgnorePermissions /ignoreparsererrors /f /scriptfile:"C:\Users\robz\Desktop\Diff.sql"

SET DIR=%~d0%~p0%
SET DIR=C:\code\roundhouse\code_drop\sample\deployment\

SET database.name="TestRoundhousE"
SET sql.files.directory="D:\Users\username\Desktop\Round\roundhouse\db\PostgreSQL\TestRoundhousE"
SET server.database="localhost"
SET repository.path="https://github.com/chucknorris/roundhouse.git"
SET version.file="_BuildInfo.xml"
SET version.xpath="//buildInfo/version"
SET environment=LOCAL

"D:\Users\username\.dotnet\tools\rh.exe" rh.redgate.diff /d=%database.name% /f=%sql.files.directory% /s=%server.database% /vf=%version.file% /vx=%version.xpath% /r=%repository.path% /env=%environment% /simple

pause

Do I need to use any username and password command here?. can you please suggest ?.
Note: I'm trying to use same sample scripts to create database - https://github.com/chucknorris/roundhouse/tree/master/db/PostgreSQL/TestRoundhousE

Error

@pavankog pavankog changed the title unable to create database in postgresql using round house tool Unable to create database in postgresql using round house tool and .net core Sep 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant