Generate Entity Framework model on database without direct access - visual-studio-2013

I would like to create a model from a database.
This is easy enough to do in visual studio using the wizards, BUT what happens when one does not have direct access to a database?
My database is on another network completely, and there is no VPN access. In other words, my visual studio can not see the database.
Is there a way for me to run this wizard remotely? Or any console apps within visual studio that I can transfer across and run on that side?

Related

How do I connect live to SQL Server Analysis Services from Power BI Desktop?

I am using Power BI Desktop and try to create a live connection (no standard import) to an Analysis Services tabular model in Visual Studio 2017.
In Power BI Desktop, I press Get Data -> Analysis Services.
I use Power BI Desktop with the same credentials as in the Analysis Services model in Visual Studio.
I use Microsoft SQL Server 2017 (RTM).
What am I missing?
Try this check list:
Try to access your cube with SQL Server Management Studio
if not ok -> there is a problem with credential or server. If your computer and the server are not in the same domain it could be an issue
from power bi desktop try import data rather than live connection
can you connect to your model with data tools for visual studio?
The point here is to exclude some configuration to focus on the real problem.
let me know.
I faced this problem today in my work and I make the following and it's working for me
process the whole analysis service project from visual studio, not just the cube or one dimensional
type the name of the database in the Database(optional) and click ok.
tell me if this not working with you
good luck

Trying to deploy an SSAS database immediately locks the user out. What is going on?

I'm trying to bring a new server, with SQL Server 2012 Data Warehouse edition installed, into production. Recently the act of deploying a new SSAS database definition using Visual Studio immediately causes the user that owns the installation on the server to become locked out of the network. Neither I nor the network administrator can figure out what is going on.
I'm perfectly willing to believe that somewhere deep within Visual Studio it has an incorrect password for that user and is making several sequential attempts to log in until the network locks the user out. But I have no idea where in Visual Studio that user/password is stored so that I can check it.
FWIW, I'm deploying things from a Visual Studio installation on my client computer using my personal account. The account that is immediately getting locked is a specially created network account to be used for installing and running the server software.
Where can I find the referenced user account? What else might be happening?
Have you tried using the SSAs import wizard instead of using VS?

Is it possible to use Windows Authentication to connect to a SQL Express db?

I've been looking around to find an answer to this question, and seeing lots of different answers, some of which don't look right to me. Here's my problem.
I've created a SQL Server 2008 Express database, and populated it with tables from 2 regular SQL Server databases (it's to receive data from the 2 databases). I've done this using Windows Authentication.
Now I want to test deploying an app, as a ClickOnce application, so I've written a bare-bones console app in VS 2010. Next I tried to add a new data source to the SQL Express 2008 database. But when I try to do that I get a message saying, "This file is in use. Enter a new name of close the file that's open in another program." (I'm running VS 2010 as an administrator on my Windows 7 Ultimate box, which was one of the answers someone gave to fix this problem, but isn't working for me.) I don't have the SQL Express db open in SSMS or anything else. One solution I've read is to get into SSMS and detach the .mdf, but then how would I do maintenance, like create new SP's, views, etc? Is it a maintenance nightmare of attaching in SSMS while not in VS 2010, do DBA work, then detach the DB, get into VS 2010 do work, etc?
The database is meant to run on the user's machine; not a network share.

New visual Studio 2010 Database project and database diagrams

I am experimenting with the database project in Visual Studio 2010. The schema diff and management of scripts looks great, but where are the database diagrams? I would like to design the tables visually, but still make use of the versioning/comparison/deployment tools in VS2010. I didn't see any option in the database project to create a diagram. Is that not supported?
You could create the diagrams in SSMS (or another diagramming/modelling tool) as you would do normally, and synchronize the structure back to your Visual Studio Database Project, although you'll need the Premium or Ultimate version of Visual Studio to use this feature.
I'm not sure if this is what you are looking for,
but I suggest you add an Entity Diagram (Entity Framework) to your
project / solution. This will allow you to design/describe your data model(s)
either by drawing them visually or by importing an existing database schema.
Entity Framework information:
http://msdn.microsoft.com/en-us/library/aa697427(VS.80).aspx
Tutorial (for EF 2.0 but still relevant)
http://blog.garypretty.co.uk/index.php/2009/05/20/tutorial-entity-framework-v20-model-first-using-visual-studio-2010-and-net-40/
I hope this helps you get started
There certainly is diagramming support.
Open the "Server Explorer"
Create/open a data connection.
You should see "Database Diagrams", which will function very similarly to the same function in SQL Server Management Studio.
Bam.
Note, I'm referring to V2010 Ultimate.

Can I create a simple DB browser with VS 2010 like I could with VS 6?

Having recently installed the beta of VS 2010, I'm curious whether anybody knows how to get it to do something that was quite straightforward with VS 6. To create a simple database browser in VS 6, you could create an MFC application using a database view, connected to (for example an ODBC connection. Then, the interesting part. In a normal application, doing a -double-click on the control will bring up a dialog that lets you connect that control to a member variable of the dialog class. In a database application like this, however, it brings up a dialog that lets you connect the control to a field in the database:
Having done this for the fields we care about, we can build the application (note that we haven't typed in a single line of code) and we can browse data from the database:
At this point, we have live data being read from (in this case) a SQL Server database, and we can browse through it, modify data, etc. The development is about like we'd used something like Access, but the output is a standalone executable.
How can I do the same (or how close to the same can I get) using Visual Studio 2008 or 2010?
The last remaining database project templates were removed in VS2008. Nobody writes code like this in C++ anymore. C# and VB.NET, their IDEs have very good dbase integration through the server explorer window. Give it a try, you'll find it easy going.

Resources