Closed kibebr closed 2 years ago
Hello,
I have copy-pasted your dump file and executed a
perl sqlserver2pgsql.pl -f dump.sql -b /tmp/before -a /tmp/after -u /tmp/unsure
command.
As a result I get a /tmp/before file containing
\set ECHO all
BEGIN;
CREATE TABLE "public"."person"(
"id" int,
"name" varchar(50));
COMMIT;
as expected. So the dump file format looks good for me. What command did you run?
@beaud76
I don't know what I did, but it is now working as expected. My bad.
Thanks!
@kibebr No problem. Anyway, it's good to know that mssql-scripter can be used too.
mssql-scripter is supposed to do the same as the "Generate Scripts Wizard" but is multi-platform, (I do not own a Windows machine so this is important for me).
This command:
outputs a
dump.sql
file:when I try to use this
dump.sql
to generate theafter
,before
andunsure
scripts, I only get:unsure:
after:
and before:
Any pointers as to why?