How to see if database is installed - visual-studio-2010

I'm using Visual Studio 2010 Premium and I just wonder if there is a way to see if the database SQL Server 2008 Express is already installed? I read somewhere that if you have the Professional version of Visual Studio it's installed!?
Simple question, but just want to check before I download and install the database. Thanks!

To check if SQL Server is installed, you can check if this registry key
exists: HKEY_LOCAL_MACHINE\SOFTWARE\MICROSOFT\Microsoft SQL Server
For the version, I'm not sure since I don't have different versions of
SQL Server installed.
On my computer, the registry path
HKEY_LOCAL_MACHINE\SOFTWARE\MICROSOFT\Microsoft SQL
Server\80\Tools\Client Setup\Current Version
exists. In this key, you can read the string "CurrentVersion". In my
case it's 8.00.194.
Best Regards,
or for the alternate you can use
Alternate resource for verfying Sql instance

Related

SSDT in Visual Studio 2015 Oracle Connection Issue

I am trying to setup SSDT so that I am able to run reports locally and edit them in Visual Studio. I have a previous report that I know works. I have installed the Oracle Developer Tools for Visual Studio 2015. I can configure the dataset and have tested the connection my Oracle Database,It works. When I preview the report I can input my parameter but when I click view report I get the following error.
An error occurred during local report processing.
An error has occurred during report processing
An attempt has been made to use a data extension 'ORACLE' that is either not registered for this report serve or is not supported in this edition of Reporting Services.
We are running SQL Server 2012
I have Visual Studio 2008,2012,2015. I'd prefer to do everything in Visual Studio 2015. I've already setup all the TNS information as well. What settings or installs am i missing.
I've recently bumped into this issue and it was very tricky to resolve. It looks like there was an undocumented change to the drivers used in the SQL 2016 RTM release, as I didn't strike these issues on the same machine when it had the RC3 build.
Anyway in case it helps, here are the setup steps I'm using (with thanks to Dan English for some tips):
Install Oracle drivers: Oracle Client 12c (32-bit) plus ODAC.
a. Download and unzip the following files from http://www.oracle.com/technetwork/database/enterprise-edition/downloads/database12c-win64-download-2297732.html and http://www.oracle.com/technetwork/database/windows/downloads/utilsoft-087491.html ):
i. winnt_12102_client32.zip
ii. ODAC112040Xcopy_32bit.zip
b. Run winnt_12102_client32\client32\setup.exe. For the Installation Type, choose Admin. For the installation location enter C:\Oracle\Oracle12. Accept other defaults.
c. Start a Command Prompt “As Administrator” and change directory (cd) to your ODAC112040Xcopy_32bit folder.
d. Enter the command: install.bat all C:\Oracle\Oracle12 odac
e. Copy the tnsnames.ora file from another machine to these folders:
i. C:\Oracle\Oracle12\network\admin
ii. C:\Oracle\Oracle12\product\12.1.0\client_1\network\admin
Install Oracle drivers: Oracle Client 12c (64-bit) plus ODAC.
a. Download and unzip the following files from http://www.oracle.com/technetwork/database/enterprise-edition/downloads/database12c-win64-download-2297732.html and http://www.oracle.com/technetwork/database/windows/downloads/index-090165.html ):
i. winx64_12102_client.zip
ii. ODAC121024Xcopy_x64.zip
b. Run winx64_12102_client\client\setup.exe. For the Installation Type, choose Admin. For the installation location enter C:\Oracle\Oracle12_x64. Accept other defaults.
c. Start a Command Prompt “As Administrator” and change directory (cd) to the C:\Software\Oracle Client\ODAC121024Xcopy_x64 folder.
d. Enter the command: install.bat all C:\Oracle\Oracle12_x64 odac
e. Copy the tnsnames.ora file from the K drive folder (see 4.a. above) to these folders:
i. C:\Oracle\Oracle12_x64\network\admin
ii. C:\Oracle\Oracle12_x64\product\12.1.0\client_1\network\admin
After all that, most SSRS components worked OK. The exception was the SSRS Portal where Data Source setup and Test worked OK, but (bizarely) running reports gives an error:
ORA-12154: TNS:could not resolve the connect identifier specified
Eventually I gave up on this and went with an EZCONNECT connection string: host:port/sid. I never liked TNSNAMES files anyway, so this was my excuse to kill them for good.
I had this exact problem until I also installed Oracle Data Access Components. This link is for ODAC with ODT for Visual Studio - like you, I'd already installed ODT for VS 2015 but this didn't seem to be a problem.

Visual Studio Create Script setting ignores Target Platform

For my database project, I put the tick on the Create script (.sql file) in my Project Settings. And Target Platform is set to SQL Server 2008. I have SQL Server 2012 installed on my machine. But the script its generating only works in SQL Server 2012, doesn't work in SQL 2008 at all. Is there a way to generate the script for SQL Server 2008? I'm surprised it's using whatever is installed locally and ignoring the Target Platform setting.
This is a bug in SSDT:
https://social.msdn.microsoft.com/Forums/sqlserver/en-US/2fdffc00-055c-487d-827d-f17b751dc5cd/ssdt-generates-2012-option-for-target-2008-when-target-is-a-dacpac?forum=ssdt#60de8e54-02a8-4983-a1d5-7f44766a167b
I have a deployment contributor which removes those invalid options. You can get it here: http://scardevblog.blogspot.com/2015/03/ssdt-generates-2012-option-for-target.html

Code Map not working in VS2012

I try to generate a Code Map for my solution but it blows up saying: Unable to connect to the specified database.
Specifically, it's trying to connect to (LocalDB)\v11.0
Why does it blow up and why does it need to connect to a DB?
Somehow LocalDb was not installed - typically it gets installed with VS 2012. So I installed SQL Server Data Tools for VS2012, which also installed LocalDb
Visual Studio uses a code index database to help store and create the code maps.

Unspecified error when trying to connect to an MS Access database on Visual Studio 2010

I've both Visual Studio 2010 (Premium) and MS Access 2010 installed. I'm just trying to connect to a .mdb database file from the server explorer and it doesn't work. I get the following message: "Unspecified error". If I try to add a database on the App_Data folder and open it, I get the same error. I've tried with .accdb and .mdb files but both give the same problem.
I have also Visual Studio 2005 installed on the same machine. And it works without any problems.
Anyone has any thoughts about it?
Thank you
Make sure you have the appropriate references in you VS2010 project for Access databases.
Not sure this counts as an answer but, the issue is with Visual Studio 2010. I too need to connect to an Access database (tactical solution, migration not possible) and in VS2010 I get the "unspecified error". It fails if I try an ODBC based connection too. I can connect fine using SSIS, and as it turns out, in VS2008.
My current solution is to create my class library in VS2008 and reference the compiled DLL in my VS2010 project. I haven't got the time to try and fix my VS2010 install at the moment. When I do, I'll upgrade my 2008 project.
An aside: I think most people on here would migrate to a better database if they could, and are only connecting to Access databases because they have no choice.

VS2010 Database Compare. How do you create a *.DBSchema extensioned file?

I'd like to take a snapshot of my database, make some changes and then use the db compare functionality to identify the changes, and who knows, maybe even generate scripts to make the change.
I'd like to avoid having to backup the current db and restore it as a separate db just to have a "before" snapshot. I'm guessing I shouldn't have to.
Obsviously, I'm clueless about db projects and am looking to be pointed in the right direction.
ty!
On the machine which you will generate the schemafile, do the following:
Download Microsoft SQL Server Compact 3.5 Service Pack 2 for Windows Desktop. Install 32 bit version first, then 64 bit (if your server is 64 bit)
Copy the files in (Program Files\Microsoft Visual Studio 10.0\VSTSDB\Deploy) to the machine on which you will run VSDBCMD.EXE, ignore the CE files in step 2, you have already installed these in the Compact SQL install above.
Read and understand Command-Line Reference for VSDBCMD.EXE http://msdn.microsoft.com/en-us/library/dd193283.aspx
Generate the dbschema file by running this from the command prompt: VSDBCMD /a:import /cs:"DbConnectionString" /dsp:SQL /ModelFile: outputfilname.dbschema
I'm using VS2010 Premium and I was able to do the following:
In Server Explorer, add a Data Connection to database A and database B
Right click on database A and choose Compare Schema
Pick database B as the Target, set the options/variables, then click OK
I also have SQL Server Developer Edition installed...so maybe that is what adds this functionality.
Not sure why, but this didn't work for a SQL Azure database.

Resources