VS 2010 Server Explorer Database Showing No Tables - visual-studio

I'm working on a .Net application that needs to read from an Oracle 10g database behind Siebel. In VS 2010 Server Explorer, I've created a connection using the OracleClient type connector with a reference to the Oracle TNS service name as the "server name." The "Test Connection" button shows that the connection is successful. However, in the Server Explorer, when I go to expand the Tables, no tables are shown. I know for a fact that there are 3000+ tables in the database (thanks Siebel). Anyone know what's happening here? I'd like to create an Entity Framework 4.0 Entity Data Model...
Thanks for the help!
Andy

I've had the hardest time trying to solve this issue myself. There's very little useful documentation on the subject. Once you create a data connection and tested the connection click "Ok" then open up the server explorer window. Right click on the new oracle data connection and select "Change View". By default "My Objects" are selected, try selecting "User Objects" or "All Objects". Once you do, you should be able to see all of the objects under the data connection sub categories.

Right click on connections, go to Filters, the "displayed schemas" property by default, it's your logon name to the connection. Change the schemas to dbo schema and update the property. Then you should see all the tables. It worked for me :)

Do you have privileges on the schema and/or tables?
Don't know VS2010 but it sounds to me like there's a setting to show you only your schema by default.
UPDATE: Oracle just announced a new ODAC version, 11.2.0.1.1 Beta with support for VS 2010. You might give that a shot.

The same situation occurred for me, however this was with SQL Server 2008. Somehow the sql user account I was connecting with lost both read and write privileges. Once the account was given back those privileges I was able to access everything as expected.

Related

Cannot connect in Oracle SQL Developer

I have a problem with just installed Oracle SQL Developer. In the column 'Connections' I don't have any button to add connection and there is no possibility to connect in the other way. I used the SQL Developer before and I have never had a problem like that.
I don't know why you don't have any buttons, but - you do have the "File" menu which lets you choose "New" and "Connection".
BTW, I hope you also have a database to connect to; SQL Developer itself doesn't install any database.
to solve the problem in windows follow following step
1.first install oracle software and sqldeveloper saperately and have same versions.
type about your pc in search bar
find device name
then go into homes folder which created in user name folder .local disk c>app>james>product>21c>homes>oradb21home1>network>admin>listner file
change host name to device name and save it.
come into sqldeveloper app and while creating the new connection ,change localhost name to device name.
app will work

How can I start my sql server?

Hi Please I stopped my sql server in order to attach a database and unknowingly I closed the sql studio and now i cant connect to the instance again because I can't start the server
This is not really a programming question, but try this from your command line:
C:\> SqlLocalDb start "MyInstance"
Where "MyInstance" would be your instance name.
Taken from this article, which has a good lot of info about setting up and working with SQL LocalDB.
Well I got it fixed. For record Purpose, I opened the ms sql management studio, clicked on the view menu, select Registered Servers, this will open the Database engine on the left panel, click and expand the Database engine, expand Local Server Groups and right click on the server name under the local server groups, select Service control and then click start, follow the prompt message and start the server and then you can login to your instance. Thats all though no programming.

What is wrong with my SQL Server Compact Toolbox?

I have just installed SQL Server Compact Toolbox in VS2012, but when I open my password protected db, and expand the Tables node in the toolbox treeview, it seems to get stuck just showing "Loading..." under Tables. I wasn't asked for a password and don't see any place to provide one.
If I connect to the same database jusing Server Explorer, all is find and I can examine the tables.
What am I doing wrong with the Toolbox?

How to convert a Crystal Report file (RPT) from Access to Microsoft Sql Server?

I have taken over support of an application that was originally written in VB.Net net and has now been ported to C#. The application originally made use of an Access database which I have now migrated to Microsoft SQL Server 2008. Everything is working fine except for the reports which were built with Crystal Reports. I have never worked with Crystal Reports before and I am struggling to get the .RPT files converted to work with Sql Server instead of Access.
I am using Visual Studio 2010 and have installed Crystal Reports 13.0.1 for VS. Now when I open one of the RPT files I see "Field Explorer" with "Database fields" tree item which I can expand to show a single table. If I right click on "Database fields" and select "Verify Database" a window popups up with the title "Access/Excel (DAO)" and fields "Database Name" showing the path to a .mdb file and "Database Type" with "Access" shown here. If I dropdown "Database Type" I see only file based databases listed here, such as "dBase 5.0", "Excel 8.0", "Paradox 5.x", etc.
So how do I change "Database Fields" to read my Sql Server database rather than Access?
UPDATE:
Ok. I am most of the way there now. I have managed to connect to the database with Database Expert (Right clicking on "Database Fields" and then selecting "Database Expert" from the context menu). I then expanded "Create New Connection" then "OLE DB (ADO)" and was able to select "SQL Server Native Client 10.0" from the provider list. In this way I was able to add a link to the Sql Server database.
Then I tried going to "Set Database Location.." and updating the provider from the .mdb under "My Connections" to the Sql Database which is now listed there and then selecting "Update". This works fine if only tables are linked and these are present in the Sql Database (which they are). But if the report has a command (sql query) then the update fails because the syntax of the command is not correct for Sql Server. I can delete the command and recreate it under the Sql Server connection with the correct syntax, but then I lose all the fields on the report that were linked to the original command. This is not too much of an issue cos I can manually recreate these, but I am wondering if there is a way change the syntax of commands when setting the database location to the Sql Server?
rem the lines of the sql code, then do the db update, then update the sql code.

How can I upgrade my Sql Server CE 3.5 sdf database to Sql Server CE 4.0?

I need to update my SqlCE3.5 database to 4.0.
I get the following error message when I'm trying to access my 3.5 sdf/database using the new CE4.0 connection provide :-
System.Data.EntityException: The underlying provider failed on Open. ---> System.Data.SqlServerCe.SqlCeInvalidDatabaseFormatException: The database file has been created by an earlier version of SQL Server Compact. Please upgrade using SqlCeEngine.Upgrade() method.
Anyone know how I can do this? Obviously I need to do it programatcially but i'm not sure what I should do / what references I need to add, etc.
Cheers!
Call System.Data.SqlServerCe.SqlCeEngine.Upgrade. See MSDN, which contains sample code.
You needn't upgrade when you see this error:
The database file has been created by an earlier version of SQL Server Compact. Please upgrade using SqlCeEngine.Upgrade() method.
Simply:
Right-click your Project in Solution Explorer
Choose properties, go to References tab
You'll see a reference called: System. Data.SqlServerCe Type/net version/4.0 - delete this item (select item and then click remove in the bottom of this window).
Click on the "add..." button left of the "remove" button
In the .NET tab, find System.Data.SqlServerCe 3.5 and add this.
Compile your project!
I think this will work.

Resources