Is it possible to load an external sql script by connecting to a mysql data
hi,
this is ayesha parween.
Basically we manually connect to the mysql server and go to the administrator and take the back up of the file
and load the sql script for creating a schema creating the tables and populating the tables with the data.
Is it possible through some java jdbc for connecting to the mysql server and creating the schema and creating the table structure and populating the tables with data.
And if there is any error display some message.
Regards,
Ayesha.
hi,
this is ayesha parween.
Basically we manually connect to the mysql server and go to the administrator and take the back up of the file
and load the sql script for creating a schema creating the tables and populating the tables with the data.
Is it possible through some java jdbc for connecting to the mysql server and creating the schema and creating the table structure and populating the tables with data.
And if there is any error display some message.
Regards,
Ayesha.
Similar Messages
-
Load an external clip in all connected user ?
hi everybody
i have a problem and I will try to explain.. :
i load a external clip on the stage (with loadClip), and i want for all users connected (FMS) on this time to load also this clip ?
how can a triggered the load of the clip to other users ?
any help ?Hi,
You can try this.
<mx:HTTPService url="https://localhost/external.php" method="POST" useProxy="false" id="httpService"
resultFormat="text" result="resultHandler(event)"/>
public function resultHandler(evt:ResultEvent):void
var res:String=evt.result as String
Instead of res you can use your variable to assign the php result.
Thanks
Jayagopal. -
Is it possible to load an external swf at a specific frame?
Hey! I've got a flash file which acts as the main menu for a
program I'm developing. Everything works fine from the main menu
however when you click to return to the main menu the whole main
menu file reloads. Is it possible to use loadMovieNum( ) to go to a
specific frame within the main swf file? If not, is there a way to
do this?
Here's the button code I'm using now:
on (release) {
unloadMovieNum(0); //unloads the current movie so we can
reload the main menu
loadMovieNum("DemoMainMenu.swf", 0); //reloads the main menu
Thank you for whatever help you can provide! :)mcommini wrote:
> Hey! I've got a flash file which acts as the main menu
for a program I'm
> developing. Everything works fine from the main menu
however when you click to
> return to the main menu the whole main menu file
reloads. Is it possible to
> use loadMovieNum( ) to go to a specific frame within the
main swf file? If
> not, is there a way to do this?
First let me clarify one thing with you. Level zero is the
main level on the flash
player. By loading things in level zero you will remove
current content and replace
it with the new one. This is not a good idea because it works
like purge, clears the
player and from there on you can't maintain any functionality
unless you reload the
whole html document over again. Also, do not unload and load
in the same time in the
same level. Flash can hold single SWF per level, once you
load content, whatever previously
loaded will be automatically replaced, so just the loadMovie
action and you all set.
Good practice is to have the main level (zero) an empty base
and than load and unload
things in above levels, 1 and so on...
> Here's the button code I'm using now:
> on (release) {
> unloadMovieNum(0); //unloads the current movie so we can
reload the main menu
> loadMovieNum("DemoMainMenu.swf", 0); //reloads the main
menu
> }
>
In regard to the load and go to. Yes it is possible but no
matter what frame you want to
go to,you need to load the whole movie first. I will come
back to that in a second.
While you execute the loadMovie action, you can set up a
variable, for example:
loadMovieNum("file.swf", 1);
Variable="mcommini_01";
Than in the loaded movie you have preloader which makes sure
that the movie is loaded before
playing and once done loading, make it jump to frame which
has IF ELSE condition in some kind
of loop, using setInterval or Enterframe. That condition
checks for the variable value and based
on it proceed to particular frame.
That's why I told you not to clear level zero, if you set
variable and load movie in that level
in the same time, all the information will be gone and you
have totally no reference point to
get the variable from.
You could as well use shared object which is native form of
Flash's cookies. Write SOL file into
user drive temp folder, than read it from the other file and
go to frame based on the given value.
Best Regards
Urami
Beauty is in the eye of the beer holder...
<urami>
If you want to mail me - DO NOT LAUGH AT MY ADDRESS
</urami> -
Is it possible to load an external MP3 file and play it on a mobile phone?
please help, is that possible? if so, how??
Could you elaborate your issue?
It is possible. Are you using Flash Lite 3.1 to achieve this? if so, refer to the help documentation for more help on "how" to do this.
If you are using FL 3.0 or less, you cannot as it doesn't support Sound streaming. But better if your question was detailed.
- Hemanth Sharma
http://www.flashlitehub.com/blog -
Is it possible to run PLSQL, or SQL script daily?
I am trying to write a script will delete everything that is older then 90 days, and i only want to run this script once a day.
is this something it can be done in apex?
Thanks
John Lau
APEX version: Application Express 4.1.1.00.23
Browser(s) and version(s) used: Firefox
Theme: Midnight BlueHello John,
You have not given the database version you are using. If it is Oracle Database 10g Release 3 or higher then you can go with DBMS_SCHEDULER and schedule your script to run periodically.
Following is the Oracle Database 11g Release 2 documentation for DBMS_SCHEDULER:
http://docs.oracle.com/cd/E11882_01/appdev.112/e25788/d_sched.htm#CIHHBGGI
I found the following blog post of @Tobias Arnhold helpful while creating my first scheduled job:
http://www.apex-at-work.com/2009/06/dbmsscheduler-examples.html
If you are looking for APEX built-in solution then here is one using APEX_PLSQL_JOB :
http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21676/apex_plsql_job.htm#BGBFGBIB
But I will suggest DBMS_SCHEDULER over APEX_PLSQL_JOB as DBMS_SCHEDULER package has more fine tuning facilities regarding scheduling than the APEX_PLSQL_JOB.
Hope it helps!
Regards,
Kiran -
How to load SQL scripts from a text file.
Hi, i tried several time to load a text file/SQL script with 10 different tables and data, but 10g Express doesen't allows me to do that, any one can direct me or point out to me what i should do or do i need to adopt any special method to to get this done. i am sure there must be some thing where you can upload SQL scripts from a text file (in SQL command editor!). thanks
Hi,
see my other answer here:
SQL command editor doesn't take more than 1 insert command
This seems to be a duplicate question, right? Or am I missing something?
Regards,
~Dietmar. -
Newbie here!
I am trying to load a 155MB SQL script (mostly INSERTs) in SQL Developer 1.2 and the program never displays the file and the tab at the top of the workspace turns gray. There is a lot of Disk and CPU activity right up until the point where it stops. Is there any way to run the script without loading it into the editor? I just need to build the table, not edit the script.
I can create and insert into smaller tables fine. I also have the same problem on other scripts of similar size or larger.
The system is a Pentium 4/1.7GHz (1GB RAM, XP SP2, 60GB Partition) running Database XE (10g) just downloaded last week. The 155MB script was created by SQL Developer on another system/database.
Thanks!Thanks, that's what I was looking for and got me going. Still, I'm having a lot of trouble with these files that seem to be related to serious bugs in SQL Developer 1.1's Export>Insert on my source system. I'm having to reload most of these files using SQL*Plus because SQL Developer 1.2 hangs or drops rows with no explanation. Even SQL*Plus is struggling with them, which all points back to a faulty Export>Insert.
I cannot believe this is a 1.2 release...
However, thanks for the great help! -
Is it possible to load transaction with multiple batch_source_name??
Hi,
I am calling 'Autoinvoice Master Program' for creating transactions in my custom package.
I have 15 lines in my data file. They are invoices, credit memos, debit memos with different batch_source_name.
Import program is picking tranasctions with any one of batch_source_name & update the base table.
15 lines are populated in interface(ra_interface_lines_all) but base table (ra_customer_trx_all) populated with few line.
Is it possible to load transactions & call the AutoInvoice with multiple batch_source_name in one data file ??
Please help me on this issue.
Thanks in advance.
Manish
Edited by: user12143717 on Mar 4, 2010 6:49 AM
Edited by: user12143717 on Mar 11, 2010 6:16 AMHi,
I cannot find a method to achieve this. You may try to create a new contact folder and copy the contacts you want to use to the new contact folder, and then mail merge from the newly created contact folder.
Regards,
Steve Fan
TechNet Community Support
It's recommended to download and install
Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
programs. -
Generating SQL Script for Existing Tables and DBs
Hello,
is it possible to generate automatically a SQL-Script from an existing table or oracle database ?
I want to export an existing table from an Oracle DB (g11) if its possible with the data.
Perhaps somebody could me explain how to to do this.
I am using the "SQL Developer 2.1" and the "enterprise manager konsole".
I'm a rookie in using this tools.
Thank you for any informations.
N. WylutzkiIf you want to export data, you should use the export utility. This is documented:
http://tinyurl.com/23b7on -
Running sql script from pl/sql
Is there any standard way to run an external sql script from pl/sql
I really appreciate any assistance.If you want, I did start writing a function reading and executing statements out of sql script with utl_file.
can I issue this command in PL/SQL: EXECUTE IMMEDIATE '@filename.sql';
the function could be extended for DDL, session setting, etc...
Regards
Laurent -
Hi, is it possible to call a pl sql script from within another pl sql script. I wanted to created a function or a procedures but turns out that I'm not allowed to in my organization.
Thank youSeanMacGC wrote:
BluShadow wrote:
I take it your organization doesn't expect you to do much work then. What a stupid limitation.All in the name of 'Database Independence' or to be 'Database Agnostic' no doubt, the first to put humans on Mars they won't be! ;-)LOL!
All attempts I've ever seen by people to write completely generic solutions (whether database generic or application generic) have resulted in unmaintainable code that performs slower than you could do it by hand). -
Passing Time Parameter to a SQL Script
I am trying to create an SSIS package that will extract data from a non BPC database to load into BPC. I am calling the package from DM prompting for the time parameter. However, I am having problems passing the parameter to the SQL script. I am using OLEDB Data source task using the SQL command - Using the following scrip where the '?'' is the prompt for the BPC time parameter. Any suggestions on how to resolve would be greatly appreciated.
SELECT
CASE
WHEN LEN(GLAccountNumber)=10
THEN LEFT(GLAccountNumber,6)
ELSE GLAccountNumber
END AS ACCOUNT ,
'F_CLO' AS ACCTDETAIL ,
'ACTUAL' AS CATEGORY ,
RTRIM(CompanyCode) AS COMPANY ,
RTRIM(CompanyDepartment) AS COSTCENTER ,
'FM' AS DATASRC ,
'NON_INTERCO' AS INTERCO ,
'NOMAT' AS MATERIALS ,
'NOPC' AS PROFITCTR ,
'LC' AS RPTCURRENCY ,
CAST(YearNumber AS CHAR(4)) + '.' + MonthAbbreviation AS [TIME] ,
SUM(TransactionAmount) AS SIGNEDDAA
FROM dbo.GLTransactionDimension a WITH (nolock)
JOIN dbo.GLTransactionFacts b WITH (nolock)
ON a.GLTransactionDimensionKey = b.GLTransactionDimensionKey
JOIN dbo.DateDimension c WITH (nolock)
ON b.EntryDateDimensionKey = c.DateDimensionKey
WHERE EntryDateDimensionKey LIKE
CASE
WHEN RIGHT(?,3)='APR' THEN '200904%'
WHEN RIGHT(?,3)='MAY' THEN '200905%'
END
AND RowType = 'T'
GROUP BY CompanyCode ,
DepartmentCode ,
CompanyDepartment ,
GLAccountNumber ,
YearNumber ,
MonthAbbreviation
ORDER BY CompanyCode ,
DepartmentCode ,
GLAccountNumber ,
YearNumber ,
MonthAbbreviationHi Steven,
Use SQL task without parameter
Into DM package into Modify script Build a variable where you will build the entire sql string and of course you will be able to pass also the variable.
After that you will call into Modify scrip something like:
TASK( Yourtask, SQL, "the entire SQL with parameter")
Regards
Sorin -
Question about correctly EXIT on SQL Script
Hi there,
I have created a SQL script, every time when the raise_application error appears then of course the PL/SQL block ends but then still the external sql script is being executed, how can I prevent the External sql script from being executed after a raise application error is displayed?
Regards
RobH
DECLARE
BEGIN
IF start_date > stop_date
THEN
raise_application_error (-020110,
'Start Date can not be greater Stop Date. '
ELSE ..... do some selecting and inserting of data into temporary tables etc...
END IF;
END;
--And now a external SQL script should be started...
@c:\reports\test.sqlyou can trap your exception in the inner block using EXCEPTION block and from there propagate it to the external block to stop further processing. something like this...
DECLARE
l_deptno NUMBER;
BEGIN
FOR i IN (SELECT deptno FROM dept)
LOOP
BEGIN
FOR j IN (SELECT empno, ename FROM emp WHERE deptno = i.deptno)
LOOP
IF ( i.deptno = 20 ) THEN
RAISE_APPLICATION_ERROR(-20001, 'Error Raised');
ELSE
DBMS_OUTPUT.PUT_LINE('Dept = ' || i.deptno || ' EmpNo: ' || j.empno || ' EName: ' || j.ename);
END IF;
END LOOP;
EXCEPTION
WHEN OTHERS THEN
DBMS_OUTPUT.PUT_LINE('Error Trapped Inside');
RAISE;
END;
END LOOP;
EXCEPTION
WHEN OTHERS THEN
DBMS_OUTPUT.PUT_LINE('Error Trapped Outside');
END;
SQL> /
Dept = 10 EmpNo: 7782 EName: CLARK
Dept = 10 EmpNo: 7839 EName: KING
Dept = 10 EmpNo: 7934 EName: MILLER
Error Trapped Inside
Error Trapped Outside
PL/SQL procedure successfully completed. -
How to accept user inputs from sql script
I want to create Tablespace useing sql script , but the location of the data file I need accept from user . (to get the location of the data file ) .
How can I accept user input from pl/sql .
Example :
CREATE TABLESPACE TSPACE_INDIA LOGGING
DATAFILE 'H:\ORACLE_DATA\FRSDB\TSPACE_INDI_D1_01.dbf'
SIZE 500M AUTOEXTEND ON NEXT 1280K MAXSIZE UNLIMITED
EXTENT MANAGEMENT LOCAL;here I need to accept location of the datafile from user ie : 'H:\ORACLE_DATA\FRSDB\TSPACE_INDI_D1_01.dbf'Hi,
Whenenever you write dynamic SQL, put the SQL text into a variable. During development, display the variable instead of executing it. If it looks okay, then you can try executing it in addition to displaying it. When you're finished testing, then you can comment out or delete the display.
For example:
SET SERVEROUTPUT ON
DECLARE
flocation VARCHAR2 (300);
sql_txt VARCHAR2 (1000);
BEGIN
SELECT '&Enter_The_Path'
INTO flocation
FROM dual;
sql_txt := 'CREATE TABLESPACE SRC_TSPACE_INDIA LOGGING
DATAFILE' || flocation || ' "\SRC_TSPACE_INDI_D1_01.dbf" ' || '
SIZE 500M AUTOEXTEND ON NEXT 1280K MAXSIZE UNLIMITED
EXTENT MANAGEMENT LOCAL ';
dbms_output.put_line (sql_txt || ' = sql_txt');
-- EXECUTE IMMEDIATE sql_txt;
END;
/When you run it, you'll see something like this:
Enter value for enter_the_path: c:\d\fubar
old 5: SELECT '&Enter_The_Path'
new 5: SELECT 'c:\d\fubar'
CREATE TABLESPACE SRC_TSPACE_INDIA LOGGING
DATAFILEc:\d\fubar
"\SRC_TSPACE_INDI_D1_01.dbf"
SIZE 500M AUTOEXTEND ON NEXT 1280K MAXSIZE
UNLIMITED
EXTENT MANAGEMENT LOCAL = sql_txt
PL/SQL procedure successfully completed.This makes it easy to see that you're missing a space after the keyword DATAFILE. There are other errrors, too. For example, the path name has to be inside the quotes with the file name, without a line-feed between them, and the quotes should be single-quotes, not double-quotes.
Is there some reason why you're using PL/SQL? In SQL, you can just say:
CREATE TABLESPACE SRC_TSPACE_INDIA LOGGING
DATAFILE '&Enter_The_Path\SRC_TSPACE_INDI_D1_01.dbf'
SIZE 500M AUTOEXTEND ON NEXT 1280K MAXSIZE UNLIMITED
EXTENT MANAGEMENT LOCAL;though I would use an ACCEPT command to given a better prompt.
Given that you want to use PL/SQL, you could assign the value above to sql_txt. If you need a separate PL/SQL variable for flocation, then you can assign it without using dual, for example:
DECLARE
flocation VARCHAR2 (300) := '&Enter_The_Path';The dual table isn't needed very much in PL/SQL.
Edited by: Frank Kulash on Jan 10, 2013 6:56 AM -
CF8 & MSDE SQL Server DSN Connection Error SOLVED!!!
Getting the following error trying to add a CF DSN to SQL
Server?
Connection verification failed for data source:
datasource_name
java.sql.SQLException: [Macromedia][SQLServer JDBC
Driver]Error establishing socket to host and port: localhost:1433.
Reason: Connection refused: connect
The root cause was that: java.sql.SQLException:
[Macromedia][SQLServer JDBC Driver]Error establishing socket to
host and port: localhost:1433. Reason: Connection refused: connect
There are several steps in order to make ColdFusion 8 and
MSDE SQL 2005 Server
1. TCP/IP is not enabled by default. When looking in SQL
Server Configuration Manager it appears TCP/IP is enabled by there
is a second place that it has to be enabled.
2. The TCP/IP port is dynamically assigned each time the
service is started, if they are no errors it the port number stays
the same but if there is an error the port number is dynamically
changed the next time the service starts.
3. You have to add your dsn login username and password to
the database in order to connect without using the sa username and
password.
Steps to get DSN setup correctly.
1. Open SQL Server Configuration Manager
2. Expand the SQL Server 2005 Network Configuration Group
3. Click on Protocols for SQLEXPRESS
4. Right click TCP/IP in the right pane and select properties
5. On the protocol tab under enabled set to yes and apply.
6. Disable dynamic port assignments by following the
instruction below:
If enabled, the default instance of the Microsoft SQL Server
Database Engine listens on TCP port 1433. Named instances of the
SQL Server Database Engine and SQL Server Compact Edition are
configured for dynamic ports, which means they select an available
port when the SQL Server service is started. When connecting to a
named instance through a firewall, configure the Database Engine to
listen on a specific port, so that the appropriate port can be
opened in the firewall.
To assign a TCP/IP port number to the SQL Server Database
Engine
In SQL Server Configuration Manager, in the console pane,
expand SQL Server 2005 Network Configuration, expand Protocols for
<instance name>, and then double-click TCP/IP.
In the TCP/IP Properties dialog box, on the IP Addresses tab,
several IP addresses appear, in the format IP1, IP2, up to IPAll.
One of these are for the IP address of the loopback adapter,
127.0.0.1. Additional IP addresses appear for each IP Address on
the computer. Right-click each address, and then click Properties
to identify the IP address that you wish to configure.
If the TCP Dynamic Ports dialog box contains 0, indicating
the Database Engine is listening on dynamic ports, delete the 0.
In the IPn Properties area box, in the TCP Port box, type the
port number you wish this IP address to listen on, and then click
OK.
In the console pane, click SQL Server 2005 Services.
In the details pane, right-click SQL Server (<instance
name>) and then click restart, to stop and restart SQL
Server.
7. Open Microsoft SQL Server Management Studio Express
8. Connect to your local copy of SQL Server
9. Expand the Security group
10. Right click login. Select new login.
12. Enter the dsn login name you want.
11. Choose SQL Server Authetication.
12. Enter the dsn password you want twice.
13. Disable user must change password at next login
14. Choose default database if you like.
15. Click User Mappings in left pane.
16. Click databases you want login to have access to.
17. Click ok.
You should now be able to add your CF DSN using localhost for
server and the port number you put in earlier. Default port number
is 1433.
You can view which port number SQL is listening to at this
registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL
Server\SQLEXPRESS\MSSQLServer\SuperSocketNetLib\Tcp
tcpport
You can test connectivity to the sql server by typing telnet
localhost 1433 or the port number you selected at a command prompt.
You should get a blank screen not an error.
Hope this helps, I spent 3 hours figuring it out.
DavidI'm running into the same error with CFMX 7 and SQL 2000. The
port is set correctly (1433) in SQL, but it just can't communicate
successfully. SQL reside on a seperate server. Any thoughts?
Chris
Maybe you are looking for
-
I cannot get the .mov files I recorded on my I-phone 4 to play correctly( i.e. no audio, video jerky at best), on my HP Pavilion laptop with an AMD athlon xp-m, OS=XP, 1 gig ram, plenty of hard drive space >50 gig. Just not enough RAM or am I missing
-
Hi Expert, I try to execute job on development system but he showed error "Error creating RFC function </BODS/ABAP_RUN>: <RFC_ABAP_EXCEPTION-(Exception_Key: FU_NOT_FOUND, SY-MSGTY: E, SY-MSGID: FL, SY-MSGNO: 046, SY-MSGV1: /BODS/ABAP_RUN)>. Notify Cu
-
In warehouse management how to post stock in the warehouse by using physica
hi in warehouse management how to post stock in the warehouse by using physical inventory method can anyone tell me the process in detail thanksin advance.
-
Image processor and web gallery untagging sRGB profiles
When I image process a batch of files (mixture of raws and psds) the resulting files have an untagged RGB colour space even though the 'convert to sRGB' is ticked in the processor dialogue. This also happens to my images when I create a web gallery,
-
Clip degradation with color correction effects added
Hello, I've had this issue lately where I can't push any of my clips past 2 or 3% increase on any color correction effect without huge amounts of color noise, artifacts and other degredation. Adding a simple HSL adustment and bumping up the saturati