views:

30

answers:

2

Hello everybody.

I have no enough experience on database systems. I have to connect to remote sql server and process some queries on it. How can i connect remote server by Entity Framework ?

+1  A: 

Same as you would with any other database connection tool: Make sure the server and all firewalls/proxy servers between you and the server accepts the connection, and then supply EF with a correct connection string.

However, if you're only going to process some sql queries, I would suggest using SQL Server Management Studio instead. Entity Framework is an ORM, not a database management tool.

Tomas Lycken
+2  A: 

1) Check if remote sql server is allowed remote connetions

2) In Visual Studio use Entity Framework wizard (add new connection)

igor