How to access the sql database in applet?
How to access the sql database in applet?
Please help me.
import java.applet.*;
import java.awl.*;
import java.sql.*;
//other packages
public class jdb extends Applet
Connection con;
Statement stmt;
String name="drvijay";
String phoneno="9842088860";
public void init(){}
pubilc void stop(){}
public void destroy(){}
public void start()
call();
public void call()
try{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
conn=DriverManager.getConnection("Jdbc:Odbc:emp","sa","");
stmt=conn.createStatement();
stmt.executeUpdate("insert into empdetails(name,phoneno) values ('"+name + "',''"+ phoneno +"' )" );
}catch(SQLException e)
System.out.println("error"+e);
System.exit(0);
//<applet code="jdb" height="200" width="200"> </applet>
u this jdbc statement in any of the method..
*/
Similar Messages
-
How to access the portal database ?
Hi ,
1. How to access the portal database from an abstract portal component program ?
2. How to insert data to the Table from the abstract portal component program ?
Please provide me some direction to proceed .
plz send me the steps how to access the Database using SQL.
Thanks
Smita
Edited by: Smita Mohanty on Nov 14, 2008 9:21 AMHi Smita,
In case your portal has MS SQL server as its databse, then I am giving the step by step directions to achieve 90% of what you wish to do. Rest 10% you can try on your own.
Go through my article given below:
[How to Create a Web Service using Enterprise JavaBeans|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/b00917dc-ead4-2910-3ebb-b0a63e49ef10]
First go through pages 1-12 which will help you to create user/table in MS SQL database as well as create a data source in Visual Admin. Page 19 will give you the code which you can use in your Portal component to access the tables you have created in your SQL database.
I hope your problem gets solved.
Bye
Ankur -
ya, I have restarted. Can you please tell me whether the path which i am giving is right or not in the context file?
Thanks,
Gana. -
How to connect and query the sql database in mobile application
Hello,
Can any one say how to connect the sql database from the j2me application.
I have got some info that only through servlet or jsp only we can connect the database and from their we should get the info or query in mobile application.
Is it true? and can i have any sample codes or white paper or guildlines.
It would be more useful form my project.
Thanks in advance.
regards,
saraHi David,
According to your description, when you add Windows Azure Mobile Services to a Window Phone 8 app, then store app data in the new mobile service. I recommend you post the related question on the Windows Azure Mobile Services Forums at
http://social.msdn.microsoft.com/Forums/en-US/home?forum=azuremobile .It is appropriate and more experts will assist you.
In addition, there are the details about creating a Windows Phone app connected to your mobile service.
http://www.windowsazure.com/en-us/develop/mobile/tutorials/get-started-wp8/
http://www.windowsazure.com/en-us/develop/mobile/tutorials/get-started-with-data-wp8/
Thanks,
Sofiya Li
Sofiya Li
TechNet Community Support -
Upload the sql database to host and manage it
hello
i have window 8.1
sql server express 2014
visual studio 2013 express
i have built a database and i am ready to copy it to the host.
not in vs or in sql.s i have found the.. connect to remote server..
i have looked on google >> its say use the
SQL Server Configuration Manager that is under the Client Tools Connectivity installation..
or search your pc for "SQLServerManager11.msc"
but i got none!!!
not the SQLServerManager11.msc
not
the Client Tools Connectivity
not the SQL Server
Configuration Manager
and i dont know how to upload the sql database to the host and manage it...thank you for replying
my installation where sql server express with advanced tools..
i have to say that the normal installation didnt work for me.. using the my_downloader_installer.exe, the akamia NetSession interface run into some error - file use by another process... and restarting the pc didnt solve the issue...
i found an alternative way to install
on http://www.microsoft.com/en-in/download/details.aspx?id=42299
and download the SQLEXPRADV_x86_ENU.exe that supposed to
be with the tools
(but could not found the tools).. so i have tried to install the SQLManagementStudio_x86_ENU.exe
>> only the tools...
but i got that error
TITLE: SQL Server 2014 Setup
There are validation errors on this page. Click OK to close this dialog box. Review errors at the bottom of the setup page, then provide valid parameters or click Help for more information.
BUTTONS:
OK
and the information page lide me to no where.. >> so general info about different installation packages..
but:
i do think i do have that SQL Server Configuration Manager
cause when i run the
USE master;
GO
EXEC sp_helpserver ;
USE master;
EXEC sp_serveroption 'Y-PC\SQLEXPRESS', 'collation compatible', 'true';
i got
name network_name status id collation_name connect_timeout query_timeout
Y-PC\SQLEXPRESS Y-PC\SQLEXPRESS rpc,rpc out,collation compatible,use remote collation 0 NULL
0 0 -
Configure Synchronization Connections An error has occurred while accessing the SQL Server database
Hi,
i am getting following error message
Central Administration --> Synchronization Connections
An error has occurred while accessing the SQL Server database or the SharePoint Server Search service.
If this is the first time you have seen this message, try again later. If this problem persists, contact your administrator.
Central Administration --> Manage Profile Service: User Profile Service Application --> Manage User Properties
Error
An unexpected error has occurred.
Troubleshoot issues with Microsoft SharePoint Foundation.
Correlation ID: 3bce5a11-f2dc-4788
Please tell how to fix it.
iffiEvent ID 5555 -> i have change the Timer jobs recycling time AM to PM
for User profile page not display number of count in the page first check services , connection ,
IISRESET /NOFORCE / timer services restart
Deepesh Yevle MCTS -
How to access the database jar file using the derby 10.2.1.6 database ?
Hi,
How to access the database jar file using the derby 10.2.1.6 database ?
I have used like below. And i am getting the following the error:
"org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot load JDBC driver class 'org.apache.derby.jdbc.EmbeddedDriver'
at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1136)"
My context.xml file looks like this:
<Context crossContext="true">
<Resource name="jdbc/derby" auth="Container"
type="javax.sql.DataSource" driverClassName="org.apache.derby.jdbc.EmbeddedDriver"
url="jdbc:derby:jar(\CalypsoDemo\database.jar)samples"
username="xxx" password="xxx" maxActive="20" maxIdle="10"
maxWait="-1"/>
</Context>
What could be the reason.?
Any suggestions will be appriciated.
Thanks in Advance,
Gana.ya, I have restarted. Can you please tell me whether the path which i am giving is right or not in the context file?
Thanks,
Gana. -
How to access the ms access database in the JApplet?
I am New here.
Please help me.
I am create one java file to access MS access the database in the JApplet.
It say "Access denied".
How to access the ms access database in the JApplet?
Message was edited by:
SVPRMHi,
First of all, were u successfull in creating the connection with the .mdb file.Like settting the DSN and configuring the .mdb file path in control panel.
If yes then one option might be that the file ur trying to access is in Read-only mode.
regards -
How to access the Microsoft Dynamics database tables for creating a DW
Hi all,
I m trying to build a POC for the manufacturing industry (Dairy Industry).
Hence I'm trying to install Microsoft Dynamics and access the tables available its OLTP and create a warehouse.
Please let me know how we access the database tables of Microsoft Dynamics to do etl (using any etl tool).
Then i would be creating reports and dashboard using OBIEE 11G.
I thought of getting help before installing microsoft dynamics so that i can install the necessary components to achieve the same.
Please let me know the necessary things i would need to do.
Thanks
JaanHi,
I think this can be possible with microsoft ssis etl tool.
Thanks,
Navin Kumar Bolla -
How to access the LOB objects through database links??????????????
Hi
See:
http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:52297289480186
http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:5322964030684
And you also might want to get a new keyboard, your '?' seems to be stucked.... -
How to attach/restore the sql database/file extension (*.File)
I took backup the database long back ago. Now I
am unable to attach/restore the sql database/file extension (*.File). I
have the file type called (*.File) which i need to attach/restore. Can anyone tell me what's are the steps
taken to do this?
Thank in advance.Database
name-->Right Click-->Tasks-->Restore-->Database-->Select "Device" radio button-->Click device Path button-->Click "ADD" button --> I tried with "All Files(*)"--> then i selected my database-->ok-->ok-->ok -->
then i am getting below error.
I am unable to post image.
"Restore of database 'Databasename' failed. (microsoft.sqlserver.management.relationalenginetasks)"
Additional Information:
System.Data.SqlClient.SqlError: The database was backed up on a server running version 8.00.0194. That version is incompatible with this server, which is running version 11.00.2100. Either
restore the database on a server that supports the backup, or use a backup that is compatible with this server. (Microsoft.SqlServer.SmoExtended).
Can
you please help me to solve this error.
Thanks,
Laxmi. -
How to access MS SQL in Oracle BI Administration?
Hi All,
I'm a new in Oracle BI, I've just created an business application using Oracle BI Administration Tool of Oracle BI Server version 10.1.3.4.1:
Steps:
1. building repository (through Physical, Business model and Mapping, Presentation),
2. making Answers from Presentation Services.
=> It ran well and beautiful reports, charts. But now, my DB is stored in Microsoft SQL Server, help me how to access MS SQL in Oracle BI, more details steps, are there any useful links?
Appreciate All.Hi
Do the following
Control panel> Administration tool> ODBC>SystemDSN > ADD > select the driver>Your SQL SERVER credentials
Then test the connection
Go to the BI tool
IMPORT from Database>Select the SQL server connection you have just created>Locate your desired schema> configure the connection pool> import
regards
Roy -
Urgent : How to do the SQL trace analysis
Hi Floks,
How to do the SQL Trace analysis and any another tools is there to test abap programming then this tools runtime analysis,extended Programming Checking,Code inspector .How to utilize that tools .please forward me
thanks
sureshHI,
<b>SQL Trace Use:</b>
The SQL Trace function is an on-demand log of selected SQL statements that are issued against the database through the Open SQL Engine. The SQL Trace can be switched on or off dynamically. The log format is database independent. Besides the SQL statement text, each log record contains information about the point in time when the statement was executed, its duration, its input parameters and results (where applicable) as well as context information.
<b>
Features</b>
The SQL Trace is especially useful for:
Development
SQL Trace can help JDO, enterprise beans, servlet and JSP developers to learn which kind of database accesses their code produces.
1. Performance analysis
Typically, performance issues are caused by inefficient database accesses. In this case SQL Trace can be used to show the issued SQL statements and their duration, thus helping to identify inefficient SQL statements.
<b>Activities</b>
Typically, you should use the SQL Trace when you need to check the behavior of a particular application. This is the following scenario:
Look at the below links, you will get the idea
http://help.sap.com/saphelp_erp2005/helpdata/en/d1/801f89454211d189710000e8322d00/content.htm
Re: Runtime Analysis vs SQL Trace
http://www.sapbrain.com/TOOLS/SQLTRACE/SQL_TRACE.html -
How to access the remote Objects Without Db_links?
Hi ,
I want to know how to access the remote objects without db_link.That is i want to access a object in some other server which has different database.SanjayBala, just so you know that it is possible to create a database link in Oracle to non-Oracle databases in some circumstances. Look up Generic Connectivity aslo know as Heterogenous Services. With 11g Oracle has basically renamed the feature and replaced it with somethinkg named ike DG4ODBC.
I have not spent time studying the details for DB4ODBC but with HS Oracle provided the interface and you had to obtain the necessary ODBC driver on your own. I had Oracle on AIX reading and writing to SQL Server on Windows but the developers chose to write a java program and connect to both via it. On Windows and Linux platforms the necessary ODBC drivers might be available without the requirement to go out and purchase one.
The Oracle Open Gateway product is an advanced version of the above features with drivers for specific non-Oracle databases included like DB2 or Informix.
HTH -- Mark D Powell -- -
How to access the mysql using ordinary command line in Azure Website?
Hi
I deploying Django project on Azure. I created project and MySQL db according this method: https://pytools.codeplex.com/wikipage?title=PollsDjangoSql . I can create tables using django command "syncdb" in Visual Studio. I see
db structure in SQL Explorer. All works. But now I need to get access directly to mysql. For example with a view to set encoding of some column, or set permissions, change user password, etc.
I found about many different tools and methods in Microsoft portal. But the purpose of these tools, how to install it and how to use it is a very entangled (After several attempts to find out what's what two weeks later I found on my computer
three dozen programs with unknown purpose. I doubt that I need to install so many tools to just add the user in mysql).
How to access the mysql using ordinary command line (or the same simple tool) in my case?Hi pvgdrk,
To get access directly to a mysql database, you can use the commandline tool(open a cmd window-->type mysql the commadline ) or the
GUI MySQL workbench.
Since this is a question about MySQL, I would suggest you post your question in a dedicated MySQL forum. You will get more prompt response.
If you have any feedback on our support, please click
here.
Eric Zhang
TechNet Community Support
Maybe you are looking for
-
How can we get our own purcahes on the one iPad please?
-
Error while deploying Composite to SOA 11.1.1.3.0 cluster
This is the error we are getting while deploying the composite to a cluster from the em console. We deploy from the em console . We choose node1 and then deploy it to the partition default .For node 2 also we do the same. Deploying on partition "defa
-
Hard disk partition not showing up during window 7 install
STOP - 0x00000116 error . I want to install fresh OS from usb stick but the hard disk partition is not showing up. Only USB stick is getting detected. Please help .. I have an interview and I need to fix this issue asap.
-
Photo Tab does not appear on 20GB ipod
Hey, my ipod is acting strangely. When i first bought it it was working fine and i could load photos and viewed them on the ipod normally. But all of a sudden the photo tab has dissapeared on my ipods menu. I have gone into settings and gone to the m
-
IPad Mini - problem syncing with iTunes
I've a problem syncing my iPad Mini with iTunes. I've a Macbook Pro 10.8.2 and also iTunes 11.0.1. Everything seems to be right. At the bottom line "how many GB is left", video and music shows sometime, but disappear when I try to sync. I've turned e