Azuredatastudio: Script as Create returns error for tables created on DataPool

Created on 18 Sep 2019  Â·  12Comments  Â·  Source: microsoft/azuredatastudio

Issue Type: Bug

  1. Create an external table on a SQL 2019 BDC, with data source = SqlDataPool

  2. In ADS, right click on "Script As Create"

  3. Get error dialog: "Scripting Failed: No script was returned when scritping as Create on object Table"

Azure Data Studio version: azuredatastudio 1.11.0 (460c739a8d90bdbbde39e01abfb8ecdc278ea787, 2019-09-06T18:08:50.974Z)
OS version: Windows_NT x64 10.0.14393


System Info

|Item|Value|
|---|---|
|CPUs|Intel(R) Xeon(R) CPU E5-2650 v4 @ 2.20GHz (48 x 2200)|
|GPU Status|2d_canvas: unavailable_software
flash_3d: disabled_software
flash_stage3d: disabled_software
flash_stage3d_baseline: disabled_software
gpu_compositing: disabled_software
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
oop_rasterization: disabled_off
protected_video_decode: disabled_off
rasterization: disabled_software
skia_deferred_display_list: disabled_off
skia_renderer: disabled_off
surface_synchronization: enabled_on
video_decode: disabled_software
viz_display_compositor: disabled_off
webgl: unavailable_software
webgl2: unavailable_software|
|Load (avg)|undefined|
|Memory (System)|127.89GB (117.37GB free)|
|Process Argv||
|Screen Reader|no|
|VM|0%|

Extensions (1)

Extension|Author (truncated)|Version
---|---|---
sql-vnext|Mic|0.16.0


Area - Data Virtualization Bug Upstream

Most helpful comment

The fix is now available in our insiders builds. Otherwise it'll be available in the next stable release - currently targeted for early February.

All 12 comments

@kevcunnane can you help triage here?

@shueybubbles does this fail in SSMS also? Is this another case where we need folks to update SMO?

Triaged - we should get fixed for future update but likely this needs a fix in SMO (by the folks who made related changes)?

@shueybubbles Would an update to SMO fix this issue?

This issue remains in ADS/SSMS. Is there any known workaround whilst we wait on a resolution?

Version: 1.13.1 (user setup)
Commit: d08d07fe39c7fe74f9265db02cb963c38d048299
Date: 2019-11-14T23:08:09.800Z
VS Code: 1.38.0
Electron: 4.2.10
Chrome: 69.0.3497.128
Node.js: 10.11.0
V8: 6.9.427.31-electron.0
OS: Windows_NT x64 10.0.18363

Still running into this issue in ADS, while scripting external tables on Azure SQL DB. Any help working around this is much appreciated.

Version: 1.14.1
Commit: f9b968c1ae514a0d1210788629e1c69125857279
Date: 2019-12-24T02:37:56.865Z
VS Code: 1.38.0
Electron: 6.1.5
Chrome: 76.0.3809.146
Node.js: 12.4.0
V8: 7.6.303.31-electron.0
OS: Darwin x64 18.7.0

Update to this - we've made the fix in SMO and I have a PR out (https://github.com/microsoft/sqltoolsservice/pull/911) that will bring the fix in to SqlToolsService so that ADS can pick it up. So this should be fixed in the next stable release (but once SqlToolsService is updated you it'll be in the insiders builds so you can use that)

The fix is now available in our insiders builds. Otherwise it'll be available in the next stable release - currently targeted for early February.

this is great news, thank you.

On Wed, Jan 22, 2020 at 1:33 PM Charles Gagnon notifications@github.com
wrote:

The fix is now available in our insiders builds
https://github.com/Microsoft/azuredatastudio#try-out-the-latest-insiders-build-from-master.
Otherwise it'll be available in the next stable release - currently
targeted for early February.

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/microsoft/azuredatastudio/issues/7260?email_source=notifications&email_token=ABOVE3W73IPSX7D3KFHJW7TQ7CGOTA5CNFSM4IX7XM22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJUUDMI#issuecomment-577323441,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABOVE3VA344G2MC5YKHKDX3Q7CGOTANCNFSM4IX7XM2Q
.

The fix is now available in our insiders builds. Otherwise it'll be available in the next stable release - currently targeted for early February.

Just a follow-up. I had a problem running "Script as Create" on an external table that was just using another Azure Sql Server as a data source. I was able to use the latest insiders mentioned here to work around the issue. Thanks guys!

Had this problem today with the latest version of ADS. Script as Create on a table in my (LocalDb)\MSSQLLocalDB took about 10 minutes to open. Tried a bunch of times though and it only opened once in the end so not sure if it actually took 10 min or if one of the later tries succeeded, either way it took minutes.

Tried restoring a backup to mcr.microsoft.com/mssql/server docker container and there it opened instantly. Tried again later with localdb and it opened instantly again. But I've had this problem a few times so it seems random when it's super slow and works as normal.

Can I see logs somewhere if there is an error?

Was this page helpful?
0 / 5 - 0 ratings