This is crazy. We develop app in VS2008 and the connection string pointing to oracle db (generated by a Dataset designer) allows to view table adapter's queries just fine at design time. But when we hit F5 the stupid ora-12154 pops up and you can die or beat your head to death. By the way toad, dbartisan work perfectly.
That error code indicates your database service name is not correct. That's probably because the Oracle client hasn't been configured correctly on the PC or you're using the wrong name. Can you connect with sqlplus or any of the Oracle tools that came with the client?
Related
I am trying to connect to our Oracle database using Visual Studio (VS) 2017 (i am not able to upgrade to the latest version due to company policy). So far, I have downloaded ODTwithODAC183 from this site: https://www.oracle.com/database/technologies/dotnet-odacdev-downloads.html
I have done the installation properly , after the installation, I opened VS, and clicked on Tools -> Connect to Database and chose Oracle Database
After pressing OK, I got this screen below and filled it up accordingly:
Next I clicked on test connection, and I received a message saying that the connection is successfully established, however, on the second screenshot, if you look under Data Connection at the left side, under tables -> Relational tables, it is completely empty and none of the tables from the database have loaded.
I was wondering if anyone could please help me figure out how I can view the tables from an Oracle database using Visual Studio 2017.
thank you!
I have connected with the database successfully by using wizard in server explorer. but the data source is showing nothing. i have googled and search on msdn help. but not get help.
I want to add data source. but add new data source option is disabled for me.
I am using windows form application...
I want ask that am i doing right. could you please tell me how can i get rid of not showing thing.
PLEASE HELP!!!
The Server Explorer of Visual Studio 2010 and the Datasource of your application are completely different. Check the following links to see how you can connect your Windows Form Application with Sql-Server database:
Walkthrough: Connecting to Data in a SQL Server Express Database (Windows Forms)
Connecting to a Database with Visual Studio Tools
I'm working with Visual Studio 2010 express and MSSQL 2008 R2 express.
I've created model from DB tables.
Now I have problem with connection.
When I connected to DB with Management Studio, I can't run my project, I'm receiving exception with message "The underlying provider failed on Open".
Restart of SQL instance helps, than I can run my project and work with entities, but after that I can't connect to DB from Management Studio.
To connect successfully, I need to restart SQL server instance again.
Are there some ways to do that simultaneously?
It sounds a little bit like your database might be set to Single User Mode, have you checked that?
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.
I'm trying to connect to SQL Server 2008 express database from Visual Studio 2010 using data connection wizard. I choose new connection -> MS Sql Server then I choose the only available server name (PAVEL-PC\SQLEXPRESS). The problem is i cannot see my database in the combobox below. System databases (like master, model, msdb etc) are shown though.
I've managed to find similar questions (like this one: Cannot connect to SQL Server database in Visual Studio because my database isn't there) and it seems I'm having permission issues. However I cannot understand which user (and where) should I add.
The account name which I'm running my Visual Studio on is Pavel. My computer name is Pavel-PC. I'm not sure what my SQL Servers account names are, but it was installed using default settings.
Here is the answer to my question:
use "PAVEL-PC" instead of "PAVEL-PC\SQLEXPRESS"