Is there a visual tool to view a RavenDB database? - ravendb

I just got RavenDB to work.
I realised I have to start RavenDB\packages\RavenDB.1.0.573\server.exe to access it in my application via:
DocumentStore store = new DocumentStore()
{
Url = "http://localhost:8080"
};
store.Initialize();
Is there a tool to view the data in the database similar to SQL Server Management Studio?

Run the server and access it using the browser, you'll get the buil-in RavenDB management Studio
http://ravendb.net/docs/intro/basic-concepts#the-management-studio

There are two products at the time of this answer
The built in web browser, as #synhershko answered.
LinqPad with the RavenDb driver.

Related

ASP.NET Web API database not created in localdb

I have created an asp.net web api 4.5.2 project and I can't find the database that it's using for adding users. The info in the connection string:
Data Source=(LocalDb)\MSSQLLocalDB;AttachDbFilename=|DataDirectory|\aspnet-WebApplicationTest2-20160906022916.mdf;Initial Catalog=aspnet-WebApplicationTest2-20160906022916;Integrated Security=True.
But when I check the app_data directory it's empty. Where can I find this database?
Database creation for templates are delayed until a request is sent.
Run your server and POST following JSON with Content-Type: application/json header to http://localhost:xxx/api/Account/Register:
{
"Email": "test#test.com",
"Password": "TestTest1!",
"ConfirmPassword": "TestTest1!"
}
You should get 200: OK.
I am using Advanced REST client.
After that database will be created in App_Data folder.
If server returned 200: OK and App_Data is empty, Do the following steps:
In Visual Studio go to View menu. Select SQL Server Object Explorer(or press Ctrl+\, Ctrl+S).
Your SQL server should be there. You can find your database in Databases folder.
If you need specifically the data file, then expand Databases folder, right click on which one you need and click on Properties. Scroll down to see Current Connection Parameters.
Some times this error occurred when you do not install local db of SQL server.To know if you install local db,open command prompt(administrator) and type "SqlLocalDb info".Then it show localdb name.add that name into connection string.If command prompt is not show this,refer following link to add localdb into SQL express server.
link:-https://www.mssqltips.com/sqlservertip/5612/getting-started-with-sql-server-2017-express-localdb/

RavenDB Embedded in the Cloud

Can you embed a RavenDB database in an MVC application that is hosted on Azure.
Ideally one could still access the management studio as well.
Thanks
I'm attaching here the answer from the support email.
Yes, you can. Here are the steps:
Download the https://www.nuget.org/packages/RavenDB.Database/3.0.30115 package
Setup like this:
var store = new EmbeddableDocumentStore
{
DataDirectory = "Data",
UseEmbeddedHttpServer = true,
Url = "http://localhsot:8080",
};
Make sure to open the port in the firewall on Azure.
Access the studio using the server IP and port, as 11.22.33.44:8080
Yes, that is possible.
Note that this require a license.

Error when start new SharePoint project in visual studio 2010

I am a new administrator to a SharePoint farm and I want to start developing web-parts for our sites.
In our company we have installed SharePoint 2010 on Windows Server 2008 R2.
And we have installed Microsoft visual studio 2010 on that server.
We also have Microsoft SQL server management studio installed in the same server.
In my computer (Windows 7 professional), I have used remote desktop connection to access that server.
From SharePoint central administration, I have created new application, new site collection and new site.
I started VS with admin rights.
From File => New => Project =>Visual basic => SharePoint =>2010 => Empty SharePoint project => ok
Then I got a dialog box asking me to enter the local site that I want to use for debugging.
I entered: "http://sharepoint:21029/team1/"
I chose deploy as a farm solution checkbox.
Click Validate.
The problem is:
When I click Validate, I get the following error:
Cannot connect to the SharePoint site: "http://sharepoint:21029/team1/" Make sure that the Site URL is valid, that the SharePoint site is running on the local computer, and that the current user as the necessary permissions to access the site.
I made a lot of searches on the internet and finally I found this link:
http://www.sharemuch.com/2010/03/19/resolving-vs-2010-solution-deployment-issues-for-sharepoint-2010-projects/
When I tried to solve my problem as described in the previous link, I could not find the following databases:
SharePoint_Config
SharePoint_AdminContent_[guid]
SharePoint Site Content DB
Why I could not find the databases in the SQL Management Studio?
And why I get the error?
I want to start developing web-parts in visual studio... Any help please!!
Thank you
I got the solution finally :)
I found this critical in Event Viewer:
SQL database log in for 'SharePoint_Config' on instance 'sharepoint' failed.
I did the following steps and it solves my issue and I can now connect visual studio to my SharePoint site successfully ^_^
Grant correct permissions to the database access account
To resolve this issue, assign the database access account and then verify that the account has correct permission in SQL Server.
To assign the database access account:
On the Central Administration Web page, on the Quick Launch, click Security, and in the General Security section click Configure service accounts.
In the Credential Management section, in the upper drop-down list click the correct Web application pool for your Web application.
In the Select an account for this component drop-down list, click the domain account with which you want to associate this Web application pool, or click Register new managed account to associate a new domain account with this application pool.
Click OK to save changes.
Thank you all
What is team1? a sub site?
Try using the root site collection:
http://sharepoint:21029/
If you install sp in standalone mode read here about the connection string because sp uses an embedded edition of SQL server

Is it possible to connect to an embedded DB with Raven Management Studio

I'm playing with Raven DB and am wondering if it's possible to connect to an embedded DB with Raven Management Studio. Has anyone ever done this?
If I understood you correct and you mean the Web UI, you simply have to enable the embedded web server.
var documentStore = new EmbeddableDocumentStore
{
DataDirectory = "Data",
UseEmbeddedHttpServer = true
};
See http://ravendb.net/docs/server/deployment/embedded
Also make sure to include Raven.Studio.xap in the root of your web application

How to access database of JasperReports Server via API?

Can we access Database of JasperReports Server server through its API?
And do that allow us to make run time report?
If so how can we do that?
You can access JasperServer's resources using it's SOAP API... java-client can be found in jasperserver-common-ws-[VERSION].jar...
examples of usage are in doc folder of jasperserver as well... Document you need is "Jasper Server Web Services Guide"
Regards..
Here's a link to a page which has a full example of how to write a c program to call an existing Jasper report from a remote client.
http://community.ingres.com/wiki/Jaspersoft_WebServices_C_API
Have a look at the following wiki.
It shows you how to set up a Microsoft Sql Server as a JDBC DataSource on a Jasper Server.