I use visual studio Express 2012 for Web and install ODTwithODAC1210 (oracle client), but the oracle client cannot integrate with visual studio. When I select Data source as "Oracle Database", there is only one Data provider ".Net Framework Data Provider for OLE DATA DB".
When I fillout all information, and test connection, I get following error:
Error while trying to retrieve text for error ORA-01019
Any one know how to solve this problem. I very need a hlep.
I too had this problem. I think this is mainly related to the procedure while installing oracle on your pc. And oracle sucks up big time connecting with visual studio.
I>
1) Download the 'Oracle developer tools for visual studio' link while creating a new server connection. (U can find this link on the right side where you are getting that ".Net Framework Data Provider for OLE DATA DB" option)
2) Uninstall oracle
3)now install oracle again and those tools u have downloaded.
II>
1) Or U can use Oracle XE plugin (google it, its around 160 MB) and carefully enter your username and passwords.
2) Now try to link it from VS.
Hope this help somewhat.
NOTE:- Still I dont recommend oracle with visual studio because even if you get a success in trying all above. But While writing a 'connection string' for DB in VS. Its again will give some kind of errors: such as word 'UNICODE' is not recognized, etc.
Related
I use Microsoft Visual Studio Express 2012 for Web and Oracle database 11g in Window 8.
When I use GridView to connect the database, I get following error.
Oracle Client and networking components were not found. These components are supplied by Oracle Corporation and are part of the Oracle Version 7.3.3 or later client software installation.
Provider is unable to function until these components are installed.
How can I solve this problem?
by installing the oracle drivers http://www.oracle.com/technetwork/database/windows/downloads/index-101290.html
I have found this answer from here, hope it solves your issue:
To find out the reason and solutions for this error follow the
following steps
Try a test connection in oracle's sql plus utility. If the connection fails you have a bad installation or configuration of
oracle client components.
If the oracle is first installed on IIS you should reboot at once.
If theire is multiple copies of OCIW32.dll you have to make sure that there is only one copy of OCIW32.dll which should be in /Bin
folder of the oracle home folder.
Add the IUSR_machine name account and the IWAM_machine name account to the Oracle home folder. Give both accounts full control.
To do this, right-click on the Oracle home folder in Windows Explorer.
Click Properties, and then click the Security tab. Add the appropriate
accounts and then give them full control. Restart your computer.
I'm developing a web application and was trying to use a local database file to store some information. However, when I add the .sdf file, I get an error. Below are some screenshots detailing my problem.
I've been trying to figure what's wrong for several hours. I've seen similar issues, but have yet to find a fix. I used to be able to use SqlServerCe connections before with .sdf files, though that was a different development environment. I have tried reinstalling everything SQL several times, including downloading everything I could find on MSDN. Can anyone help me out?
Below is my Solution Explorer View. I've just added Database1.sdf to the project.
I get an error as soon as I add it:
If I try to open the .sdf file, I get this error:
Here is my list of references:
And, finally, all of the relevant SQL-related installations on my local machine:
SQL Server Compact 4.0 is supported by VS 2012, but requires the DDEX provider to be properly isntalled. Sounds like your VS install is somehow broken. You can install my Toolbox add-in, and go to the About dialog in the Toolbox to check if the DDEX provider and SQL Server CE 4.0 is properly installed.
I created a project a while ago and transferred it to my other computer, and now it's stopped working. I can't manage to fill the grid with the data from the .mdf.
I have struggled a while with this problem and I can't manage to solve it. I would appreciate if someone here could download the .rar and help me solve this problem.
http://www.filefactory.com/file/3wabxfsyxign/n/CDapplikation_uppgift_rar
.mdf are SQL Server data files; for working with those files, you must have some version (other than Compact Edition) of SQL Server installed
So to get this data out:
check to see what version of SQL Server you have installed
fire up the management tool, e.g. SQL Server Management Studio (possibly the Express version which you can find by searching on Google or Bing and download for free from Microsoft)
attach the .mdf file to the SQL Server under a logical name, so that you can use it
now you can access it using raw ADO.NET or Entity Framework or whatever other data access technology you wish to use
I was using this tutorial and I'm stuck in this part. The guide tells me to choose 'Microsoft SQL Server', however this is not included in the options of my computer. I only have 'Microsoft Database File', 'Microsoft Server Compact', and 'Microsoft Database Server File'.
How could I add the option 'Microsoft SQL Server'?
I don't think the express version can natively connect to SQL server. I can't seem to find any documentation on this, but if I recall correctly it was one of the reasons we switched to pro way back when. Anyways, perhaps this post will help: How to connect Visual Studio 2010 Express C# to SQL Server Express
If yours is a web application, then you can do it the way its shown in your tutorial,
but if yours is a Winforms of WPF application you can't do it with Visual Studio Express..
There are other ways to connect using SqlConnection, SqlCommand objects etc, which are not design time..you can use them however..
maybe you are missing some component try to download http://www.microsoft.com/web/downloads/platform.aspx
please select option other from that part and then select ".NET Framework Data Provider for SQL Server" from that list. please try let me know
I had used Server Explorer and related tools for graphical database development with Microsoft SQL Server in some of my learning projects - and it was a great experience. However, in my work I deal with Oracle DB and SQLite and my hobby projects use MySQL (because they are hosted on Linux).
Is there a way to leverage the database-related tools in Visual Studio with other database providers?
Here is instructions on how to connect to your MySQL database from Visual Studio:
To make the connection in server
explorer you need to do the following:
first of all you need to install the MyODBC connector 3.51 (or latest) on
the development machine (NB. you can
find this at
http://www.mysql.com/products/connector/odbc/
)
Create a datasource in Control Panel/Administrative Tools with a
connection to your database. This data
source is going to be used purely for
Server Manager and you dont need to
worry about creating the same data
source on your clients PC when you
have made your VS.NET application
(Unless you want to) - I dont want to
cover this in this answer, too long.
For the purpose of this explanation I
will pretend that you created a MyODBC
data source called 'AADSN' to database
'noddy' on mysqlserver 'SERVER01' and
have a root password of 'fred'. The
server can be either the Computer Name
(found in Control
Panel/System/Computer Name), or
alternatively it can be the IP
Address. NB. Make sure that you test
this connection before continuing with
this explanation.
open your VS.NET project
go to server explorer
right-click on 'Data Connections'
select 'Add Connection'
In DataLink Properties, go to the provider tab and select "Microsoft OLE
DB Provider For ODBC drivers"
Click Next
If you previously created an ODBC data source then you could just select
that. The disadvantage of this is that
when you install your project
application on the client machine, the
same data source needs to be there. I
prefer to use a connection string.
This should look something like:
DSN=AADSN;DESC=MySQL ODBC 3.51 Driver
DSN;DATABASE=noddy;SERVER=SERVER01;UID=root;PASSWORD=fred;PORT=3306;SOCKET=;OPTION=11;STMT=;
If you omit the password from the
connection string then you must make
sure that the datasource you created
(AADSN) contains a password. I am not
going to describe what these mean, you
can look in the documentation for
myodbc for that, just ensure that you
get a "Connection Succeeded" message
when you test the datasource.
I found this during my research on Sqlite. I haven't had the chance to use it though. Let us know if this works for you.
http://sqlite.phxsoftware.com/
System.Data.SQLite System.Data.SQLite is the original
SQLite database engine and a complete
ADO.NET 2.0 provider all rolled into a
single mixed mode assembly.
...
Visual Studio 2005/2008 Design-Time
Support
You can add a SQLite connection to the
Server Explorer, create queries with
the query designer, drag-and-drop
tables onto a Typed DataSet and more!
SQLite's designer works on full
editions of Visual Studio 2005/2008,
including VS2005 Express Editions.
NEW You can create/edit views, tables, indexes, foreign keys,
constraints and triggers interactively
within the Visual Studio Server
Explorer!
The Server Explorer should support any database system that provides an ODBC driver. In the case of Oracle there is a built in driver with Visual Studio.
In the Add Connection Dialog click the change button on the data source you should then get a list of the providers you have drivers for.
Oracle has a set of tools that integrates with Visual Studio. It's packaged with their data access libraries.
http://www.oracle.com/technology/software/tech/windows/odpnet/index.html