How do I connect to a SQL Server database?

How to connect to a SQL Server database from local pc?

  • I am a Crystal Reports developer and I have always been working with Oracle database and this is my first time with SQL Server. This is what I have been desperately searching for. From my local PC, I want to connect to a SQL Server database which is on a database server. I am aware that I need a 'SQL Server Native Client'. And I am also aware that I need to use 'sql server management studio' so that I can view the tables and writes queries instead of using a tool like TOAD. My questions are: Can I use 'Microsoft SQL Server Management Studio Express' from my local PC to connect to a SQL Server 2005 Database in a database server? If I install 'Microsoft SQL Server Management Studio Express' do I still need to install a 'SQL Server Native Client'? Thanks, rivi

  • Answer:

    Can I use 'Microsoft SQL Server Management Studio Express' from my local PC to connect to a SQL SERVER 2005 Database in a database server? Yes. If I install 'Microsoft SQL Server Management Studio Express' do I still need to install a 'SQL Server Native Client'? If you want to connect to the database from your application you will need it installed. It should be installed as part of the SSMS install.

user547453 at Stack Overflow Visit the source

Was this solution helpful to you?

Other answers

Answer 1: SQL Server Management Studio can be used to manage either local or remote SQL database server. If you installed SQL Server Express, the default instance will be SQLExpress. To connect it locally using Windows Credential, just type .\SQLExpress or yourmachinename\SQLExpress in the server name textbox. If you host the SQL Server on a remote server, you must use the credential given by the authority hosting your SQL Server. It is easy, ask your admin for the details. Answer 2: See this for the http://msdn.microsoft.com/en-us/library/ms130828.aspx I copy and paste the important notes from the link above here: When deciding whether to use SQL Server Native Client as the data access technology of your application, you should consider several factors. For new applications, if you're using a managed programming language such as Microsoft Visual C# or Visual Basic, and you need to access the new features in SQL Server, you should use the .NET Framework Data Provider for SQL Server, which is part of the .NET Framework. If you are developing a COM-based application and need to access the new features introduced in SQL Server, you should use SQL Server Native Client. If you don't need access to the new features of SQL Server, you can continue to use Microsoft Data Access Components (MDAC). For existing OLE DB and ODBC applications, the primary issue is whether you need to access the new features of SQL Server. If you have a mature application that does not need the new features of SQL Server, you can continue to use MDAC. But if you do need to access those new features, such as the new xml Data Type, you should use SQL Server Native Client. Both SQL Server Native Client and MDAC support read committed transaction isolation using row versioning, but only SQL Server Native Client supports snapshot transaction isolation. (In programming terms, read commited transaction isolation with row versioning is the same as Read-Committed transaction.) For more information, see Choosing Row Versioning-based Isolation Levels. For information about the differences between SQL Server Native Client and MDAC, see Updating an Application to SQL Server Native Client from MDAC.

xport

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.