microsoft / microsoft/go-sqlcmd

Bak restore from local http server corrupted file

Open
#566 1 comment 1 reaction 1 assignee View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
595
Forks
91
Avg merge
9h 35m
Merged PRs (30d)
1

Description

Hello,

I try to restore a bak file hosted on a local http server while I am creating a new container with the create command. For testing purpose I downloaded the bak file from https://aka.ms/AdventureWorksLT.bak.

When I copy the file to the container with 'docker cp' command I can successful restore ist. So the file is ok.

When I try to restore the file with the following command the file seems corrupted:

sqlcmd create mssql --name express --accept-eula --using http://localhost:3000/files/WideWorldImporters-Full.bak

I then get the following error message:

Image

The file is in the right container folder, the size of the file is the same as before but even if I try to restore it a manually after the creation of the container it seems as there is no database backup in the file.

As http server I used a nodejs express instance:

`const express = require('express')
const app = express()
const port = 3000

app.use(express.static('public'))

app.listen(port, () => {
console.log(Example app listening on port ${port})
})`

Please can somebody explain me why it is not working before I get crazy?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.