Adding New Query to Database - sql

I am trying to follow this video and get stuck at 2:43 where he right clicks the database in server explorer and clicks 'New Query', once I do that it brings up the right sql file tab, but in the dropdown box where it has all the available databases, the one I created is not there, it only contains 'master, model, msdb, tempdb' I've tried searching for an answer and cannot find one.

Related

Share posts to other user's wall in Sense/Net

I am working on Sense/Net community edition. I need to share my posts to another user's wall but when using share command with the post, there are "My Wall" and "Current Workspace" options only. I can't browse other user's wall to choose. Please Help!
If you are using the old webforms UI, when you click the Share link you should see a button at the end of the 'target wall' line in the pop-up dialog window (top rigth corner). That should open a content picker window that will let you browse to pretty much anything in the repo.
Note: the picker will open at different roots, depending on the currently chosen target - but you can always change the root of the tree by selecting it from the dropdown in the top left corner of the picker.
Note2: if you see the button, but the picker is empty, it is likely a permission problem: the user that you are currently logged in may lack some permissions on the target subtree.

How can I create a new ticket that's related to the current one?

We have several projects in our YouTrack, one being our email-integrated help desk.
Tickets that come in on the help desk usually cause us to open new tickets in more specific, project-related projects and then linking those new tickets back to the help desk one.
I'm looking for a way to simplify this process, as the path through the UI is currently very long.
Is there a way to command YouTrack to "create a new issue and link it to the currently open one"?
You can find a small arrow near the 'Create Issue' button. If you click on it instead of clicking on the button itself you'll get a list of links available on your instance, including 'related to'. If you click on any item in this list, a new issue will be automatically linked to the issue where you were when clicking.
So, in your case you can easily created a related issue right from the screen of the help desk issue.

How to recover deleted View in BigQuery?

I have deleted a view in bigquery. I came to know there is an option to restore deleted tables based on table snapshot decorators. Is there any way to retrieve deleted bigquery views?
There is a way to get it back. You need to search for insertion logs rolled at a time of creating your view. This logs can be seen from stackdriver logging. Here are the steps :
Go to GCP console
Click on stackdriver logging
Click on arrow present in search text box and select "Convert to advance filter"
Now remove everything and paste below query in it. Don't forget to put your view name in a query.
resource.type="bigquery_resource"
protoPayload.methodName="tableservice.insert"
protoPayload.serviceData.tableInsertRequest.resource.tableName.tableId="Your_view_name"
You will get record of your view creation, Now click on Expand all and go to view section. There you can find a query used at a time of view creation.
Just paste that query in bigquery and click on save view.
Alternatively, if you want to search for updates to the view to recover a specific version you can use the following filter:
resource.type="bigquery_resource"
protoPayload.serviceData.tableUpdateRequest.resource.tableName.datasetId="<dataset_id>"
protoPayload.resourceName="projects/<project_id>/datasets/<dataset_id>/tables/<table_or_view_id>"
I hope this helps you get back your BQ view.

Reasons for Empty Dataset

Can you please explain the possible reasons that I'm unable to view the schema of a .csv dataset that I'm attempting to import (from a local file) into bq. The table name and icon appear in the left pane, but when I click on the table icon, I don't see a schema similar to the ones for the sample datasets. As far as I can tell, I'm correctly inputting the schema for each field name.
While the table is importing, it may show up in the left hand pane without a schema. If the import fails, then you'll never get a real table to be populated there. If you click on the job history link on the upper right side of the page, you should see your load job and you can see whether it succeeded or failed. If it failed, you should be able to click on it and see the errors from the job.

Microsoft SQL Server not letting me open .bak

I am taking a class and our instructor gave us a file to download called cs.bak and its supposed to be formatted for the version of SQL we are using. So I downloaded the one for Microsoft SQL Server.
Well I tried to do the restore but when I get to the part that I choose device and locate the file cs.bak it loads and now I am suppose to be able to choose destination. Well after I choose destination I do not have the OK button to go through with the restore.
On these instructions http://www.katieandemil.com/sql-server-2012-restore-database-backup-file
If you count the window screens. I can only get as far as the 6th screen.
I am suppose to do this, "Some questions will ask you to write out query results from a database. In order to answer these questions you will need to have the example database available to you."
Well I can't open it to do this. Any help would appreciated. Thank you.
Check this:
This checkbox might be unchecked - and then the [OK] button remains disabled...
This seems to be a Windows Layout issue. To resolve this, reset the SSMS Window Layout by selecting from the main menu Window -> Reset Windows Layout.