The SMO-libraries are for a specific version of SQL Server.
So , is there any possibility to use different SMO libraries , in the same VB.net application in order that my application works regardless of SQL server version?
Thank you !
Yes! You can use older version of SMO-libraries for both servers. I used SMO-libraries from SQL Server 2008R2 in C# apllication and powershell script to migrate DB from 2008R2 to SQL Server 2005. Thus, there shan't be problems and when using VB.net.
Related
I'm currently creating a solution for a software that were developed in 2005 and beside using some more modern technologies, the company wants to keep supports of the old windows embedded compact edition based phones until they can replace everything.
I tried using ErikEJ's Export2SQLCE and SqlCEcmd command tools and thought I found the solution, until I realised the older application is using SQL Server CE version 3.0, whereas ErikEJ's can only convert to 3.5 or 4.
Is there any way to convert an existing SQL Server table into SQL Server CE version 3.0?
If not, is there any way to connect into a SQL Server CE file (.sdf) from a nodejs server and send queries?
Thanks!
I am new to SQL Server and trying to familiarize myself with it, so I have some questions.
My background is Oracle and am wondering if it works very similar to SQL Server.
On a client machine we need to install a client version of Oracle, and with the installation it comes with a TNSNames.ORA file which has settings for all of the Oracle DB's which are located on an Oracle DB server.
I would assume that SQL server would follow something similar, install a client version of SQL server? If so, does SQL Server has something similar to local Oracle?
I've found how connect to SQL server from another computer, just wondering if I still would need a slim down/client version of SQL Server, I would assume yes.
https://technet.microsoft.com/en-us/library/ms345343(v=sql.110).aspx
Some of you might be asking, why don't you try it, don't have my second computer yet, would like this info. ahead of time.
Thank you
SQL Server client APIs include the low-level components needed to connect to and use SQL Server so there is generally no need to install other connectivity components. To name a few Microsoft ones:
ODBC: Latest version is ODBC Driver 13.1 for SQL Server
OLE DB: Latest is SQL Server 2012 Native Client
.Net Provider for SQL Server (SqlClient): included .NET framework
JDBC: Latest Microsoft version is 6.2
There are also a number of other open source and commercial APIs available for use in various programming languages and development frameworks (e.g. Tedious for Node.js).
I have installed Visual Studio 2010 and Oracle 11g in my Window 7.
Oracle seem to be fine because i can connect to System user, Create user and create database.
But the problem is that I can not connect the Oracle to my VB.net project and there is no System.Data.OracleClient Namespace. Do I need to install Oracle Client in my computer even though i have installed Oracle Server?
You have to install Oracle Data Provider for .net, which is a separate download. Older oracle versions relied upon OleDb, but newer versions provide their own Data Provider.
Check this sites:
Getting Started with Oracle Data Provider for .NET (VB.NET Version)
Using Oracle VB.NET
I need to install SQL server using ADO in VC++ application, fortunately it is done.
Then I need to attach a precreated Database using ADO to the instence of the installed SQL server 2005 Express using ADO through my VC++ application.How do I go about this? Can any one please help me with the code!!!!!!!
You need to get the database file(s) on the to server running your SQL Server instance.
As far as I know, you can't do that through ADO. You may need to copy it over a network, through FTP, or some equivilent non-sql mechanism.
When in 'SQL Server Configuration Manager' I see, under 'SQL Server Services', 2 items that look like SQL Server's:
SQL Server (sqlexpress)
SQL Server (mssqlserver)
Does that mean I have 2 versions installed at the same time? The 'SQL Server (mssqlserver) is currently stopped).
You have two instances. They might or might not be the same version (meaning 2005/2008).
Express is just an SKU / edition from the myriad of different editions.
You can have the same version or multiple versions/SKUs installed as different instances on the same machine.
So unless someone wittingly set up a new instance with the name "sqlexpress", you probably have two kinds of products installed (both can be 2008 or both can be 2005 or they can be different - it is just that one of them is presumably the Express SKU while the other is say Standard.)
You can get more information on the instances by using ##VERSION.
It looks like you got SQL Server Express installed with Visual Studio and then later installed SQL Server 2008. I've done this before and the best solution I found was to completely uninstall SQL Server Express and SQL Server 2008. Remove all the files in the Microsoft SQL Server directory in Program Files, then reinstall SQL Server 2008. If you still have problems getting the 2008 instance to be the default, you may also need to uninstall Visual Studio.
In the future, if you're going to install the development (or other) version of SQL Server locally, I suggest making sure you install it before Visual Studio. The VS install won't install SQL Server Express if it detects an existing SQL Server instance on the system.
BTW, you can verify if this is true by using the Add/Remove Programs Control Panel item.
SQLExpress is the light/free edition, usually used for developers or very lightweight applications.
MSSQLServer is the full blown SQL install.
So yes you have 2 "SQL Server" installs, but they are different products, I can't say which versions based on your provided data.
You have two SqlServer instances installed on your system. One is SqlServer Express Edition and the other one a Sql Server. I can't say which version or edition.
Maybe you can find some more information in the registry (HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft).
I'd vote against removing either one--SQL server does fine with multiple instances and they are good for different things. For example, lots of open source projects presume a local copy of sql express at .\SQLEXPRESS for development use. Whereas you can't write analysis service stuff with SQL Express.
Or, its not a problem. Those aren't the droids your looking for. Move along.