Pascal code to asscess database
Hi programmers,
Can we use Pascal code to access an Oracle database and if it is please point me to where I can find sample PASCAL code. We are on Linux server running Redhat2.5 with Oracle 9i. I am developing an application in Pascal, could use external c functions and procedures if needed but would like to stick with Pascal, that needs to do a number of things like adding / deleting / updating / retrieving ...
Thank you,
Steve
I suspect your problem is that there are not a lot of folks in this forum who use Pascal. I've never encountered a situation, in fact, where Pascal was used other than in an introductory programming class.
You may have more luck finding some Pascal developers and hoping they have used Oracle or know of libraries that interface with a relational database.
Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC
Similar Messages
-
I am trying to use the relatively new Code First from Database with the newest EF (6.x) and on an Oracle database (11g, but I have installed the newest ODTwithODAC). First of all, it works fine as long as the connection string is inside the App.Config file. But when I try to build it dynamically in the C# code (or rather, statically at the moment) it fails. I have it working with a dynamically built connection string when doing Model from Database though, so I'm at a loss right now.
First, I have created a second constructor for the context class that takes a string and does base(connectionString). Then I build the connection string via
OracleConnectionStringBuilder oracleBuilder = new OracleConnectionStringBuilder();
oracleBuilder.DataSource = "TEST.BLA.COM";
oracleBuilder.UserID = "ABC";
oracleBuilder.Password = "abc";
oracleBuilder.PersistSecurityInfo = true;
string connection = oracleBuilder.ToStrin();
Now trying to open an EntityConnection by giving to it this provider-specific connection string (or even the static one from the App.Config) doesn't work; I get "keyword not supported: user id"). Trying it by creating a context and giving this connection string doesn't work either. I'm pretty sure that this is because I didn't specify the provider to use; after all, it should use the Oracle.ManagedDataAccess.Client provider and not an SQL Server based one.
I then tried to get around this by using an EntityConnectionStringBuilder on top and specifying the provider keyword there, but then I get "keyword not supported: provider" when using it in the context constructor, and "the 'metadata' keyword is always required" when using it with the EntityConnection constructor.
As I said above: I bet it's the provider that I have to specify somehow, but I don't know how. The code that does work is the following:
using (var context = new Model())
context.Database.Connection.Open();
context.Database.Connection.Close();
When I read context.Database.Connection.ConnectionString, it is exactly the provider-specific connection string I created above, but I don't know where to specify the provider again. Do you know of any way to do this? Certainly there must be one.
PS: I have also posted this question on http://stackoverflow.com/questions/27979454/ef-code-first-from-database-with-managed-oracle-data-access-dynamic-connection because it is quite urgent and I'd like to use Code First from Database. Otherwise I'd have to go "back" to using Model from Database again, which is not ideal because we have updatable views where the .edmx-file has to be edited after every reload of the model, while with Code First from DB inserting into the view automatically works.I am trying to use the relatively new Code First from Database with the newest EF (6.x) and on an Oracle database (11g, but I have installed the newest ODTwithODAC). First of all, it works fine as long as the connection string is inside the App.Config file. But when I try to build it dynamically in the C# code (or rather, statically at the moment) it fails. I have it working with a dynamically built connection string when doing Model from Database though, so I'm at a loss right now.
First, I have created a second constructor for the context class that takes a string and does base(connectionString). Then I build the connection string via
OracleConnectionStringBuilder oracleBuilder = new OracleConnectionStringBuilder();
oracleBuilder.DataSource = "TEST.BLA.COM";
oracleBuilder.UserID = "ABC";
oracleBuilder.Password = "abc";
oracleBuilder.PersistSecurityInfo = true;
string connection = oracleBuilder.ToStrin();
Now trying to open an EntityConnection by giving to it this provider-specific connection string (or even the static one from the App.Config) doesn't work; I get "keyword not supported: user id"). Trying it by creating a context and giving this connection string doesn't work either. I'm pretty sure that this is because I didn't specify the provider to use; after all, it should use the Oracle.ManagedDataAccess.Client provider and not an SQL Server based one.
I then tried to get around this by using an EntityConnectionStringBuilder on top and specifying the provider keyword there, but then I get "keyword not supported: provider" when using it in the context constructor, and "the 'metadata' keyword is always required" when using it with the EntityConnection constructor.
As I said above: I bet it's the provider that I have to specify somehow, but I don't know how. The code that does work is the following:
using (var context = new Model())
context.Database.Connection.Open();
context.Database.Connection.Close();
When I read context.Database.Connection.ConnectionString, it is exactly the provider-specific connection string I created above, but I don't know where to specify the provider again. Do you know of any way to do this? Certainly there must be one.
PS: I have also posted this question on http://stackoverflow.com/questions/27979454/ef-code-first-from-database-with-managed-oracle-data-access-dynamic-connection because it is quite urgent and I'd like to use Code First from Database. Otherwise I'd have to go "back" to using Model from Database again, which is not ideal because we have updatable views where the .edmx-file has to be edited after every reload of the model, while with Code First from DB inserting into the view automatically works. -
Code include from database through servlet into jsp
Hi all,
Im alittle stuck at the moment. I need to store code in a database that will be retrieved and displayed on a webpage. I know how to retrieve the information and display it if it is just normal data. The data in the database will be html along with java code that has to be included into the jsp page. Im doing the retrieve in a java bean and the servlet uses that bean to pass the information to the jsp.
How can i include to code into the jsp so that it doesnt show as text but is included into the jsp?? Is this possible??
NiallHi,
If you are storing Java code in your database (a Java class file), perhaps you could use class loader and 1) retrieve your code as regular file, 2) use class loader to load it, 3) run methods from your newly created class.
Maybe you can write some sample code that loads any class from a file and calls methods on it, then you could modify that code and fit it in your servlet/JSP code.
Mark -
How to get List Item attachments name without write any custom code or any database query?
Hi,
How to get List Items attachments name without write any custom code or any database query?You can get it from Rest,
There are 2 options,
1) create a 'Result Source' which has a search query for that List which has attachments
- Use rest query to get the 'Filename' , it will have the attachment file name
For example, if the result source id is : 73e6b573-abf8-4407-9e5f-8a85a4a95159 , then the query will be
http://[site URL]/_api/search/query?querytext='*'&selectproperties='Title,Path,FileExtension,SecondaryFileExtension,Filename'&sourceid='73e6b573-abf8-4407-9e5f-8a85a4a95159'&startrow=0&rowLimit=100
You can refine the query, be giving proper 'querytext'
2) Use the List rest api
For example if your list guid is :38d524a1-e95c-439f-befd-9ede6ecd242e
You can get he attachments for 1st item using this
http://[Site URL]/_api/lists(guid'38d524a1-e95c-439f-befd-9ede6ecd242e')/items(1)/AttachmentFiles
get2pallav
Please click "Propose As Answer" if this post solves your problem or "Vote As Helpful" if this post has been useful to you. -
Comparing PL/SQL code from different database
Hi,
I have 3 databases(development, test and production) lying in 3 different servers. I wanted to check if all the databases have the same PL/SQL code.
is there a automatic ways of doing that. If not is there any best practices that can be followed
I use oracle 10g
Thanks,
DJDont you have a Change Management System in place. How do you do your deployment. What is the versoin control system you use?
When you deploy your code in some database dont you store the details some where?
In database source code is available at ALL_SOURCE. You can query that and compare. But its never a good idea. -
Execute shell command from within pascal code
Hello there,
I am trying to execute a shell command from within my pascal code. I use XCode together with FreePascal. I have tried something like:
exec ('program', 'options');
adding the 'Dos' unit to the Uses clause of my program.
Thus, e.g.,
exec ('mkdir', '/A')
to create a directory with the name 'A'.
However, my attempts so far were unsuccessful. Can anyone help me on this, and perhaps provide a simple example of how to do it right?
Thank you in advance,
ShaneIn the mean time, I found the problem myself. I am just posting the solution here for anyone that is interested. My original solution was correct, in that the 'Dos' Unit must be added, and that the right command is 'exec'. There was however a problem with the correct path to the program that I wanted to invoke. In the shell, this program was accessible from anywhere. However, in the 'exec' command, the full path to the program must be given. Since I am not a Unix expert, I don't know the reason for this.
So, in summary, the solution is:
Uses Dos;
begin
exec ('full path to program', 'program options');
e.g.: exec ('/bin/sh', '/run.sh') to process the commands in the file /run.sh
end
Hope this may be of help to anyone else.
Shane
Mac OS X (10.3.9)
Mac OS X (10.3.9)
Mac OS X (10.3.9) -
How to transform this pascal code into java code!
I want to transform this pascal code into java code . Please tel me how to do it because I really don't know how to do it!
Thanks!
{CALCULATE HOHN-LONDON FACTORS}
var kk:tab4;
PROCEDURE INTENS(var kk:tab4);
begin
for n:=0 to nr+2 do
begin
kk^[1,n]:=sqrt(lup*lup*yg*(yg-4)+4*sqr(n+1)) +lup*(yg-2);
kk^[2,n]:= sqrt(lup*lup*yg*(yg-4)+4*sqr(n+1))-lup*(yg-2);
kk^[3,n]:=0.5*(kk^[1,n]*kk^[1,n]+4*(sqr(n+1)-lup*lup));
kk^[4,n]:= 0.5*(kk^[2,n]*kk^[2,n]+4*(sqr(n+1)-lup*lup));
kk^[5,n]:= sqrt(ldown*ldown*yd*(yd-4)+4*sqr(n+1)) +ldown*(yd-2);
end;
end;
BEGIN
new (kk);
intens(kk);
writeln(f2,' ','N ','V','branch ','H-L');
for n:=1 to np do
begin
fp1[n,v]:=(n-ldown)*(n+ldown+1)*sqr(kk^[2,n-1]*kk^[6,n]+4*(n+ldown)*(n-ldown+1));
fp1[n,v]:=fp1[n,v]/(4*(n+0.5)*kk^[4,n-1]*kk^[8,n]) ;
writeln(f2,' ',n,' ',v,' fp1 ',fp1[n,v]:10:2);
end;
for n:=1 to nq do
begin
fq1[n,v]:=sqr(kk^[2,n]*kk^[6,n]*(ldown+0.5)+4*(n-ldown+1)*(n+ldown+1)*(ldown-0.5)) ;
fq1[n,v]:=fq1[n,v]/(2*(n+0.5)*kk^[4,n]*kk^[8,n]*(n+1.5));
fq1[n,v]:=fq1[n,v]*(n+1);
writeln(f2,' ',n,' ',v,' fq1 ',fq1[n,v]:10:2);
end;
for n:=1 to nr do
begin
fr1[n,v]:=sqr(kk^[2,n+1]*kk^[6,n]+4*(n-ldown+2)*(n+ldown+1));
fr1[n,v]:=fr1[n,v]/(4*kk^[4,n+1]*kk^[8,n]*(n+1.5));
fr1[n,v]:=fr1[n,v]*(n-ldown+1)*(n+ldown+2) ;
writeln(f2,' ',n,' ',v,' fr1 ',fr1[n,v]:10:2);
end;Basically it looks like this:
public class KK{
private your_type[][] kk = new your_type[length][length];
private void intens(your_type[] kk){
for(int n= 0; n<nr+2; n++){
kk[1][n] = Math.sqrt(lup*lup*yg*(yg-4)+4*Math.pow((n+1), 2)) +lup*(yg-2);
kk[2][n] = Math.sqrt(lup*lup*yg*(yg-4)+4*Math.pow((n+1), 2))-lup*(yg-2);
kk[3][n] = 0.5*(kk[1][n]*kk[1][n]+4*(Math.pow((n+1), 2)-lup*lup));
kk[4][n] = 0.5*(kk[2][n]*kk[2][n]+4*(Math.pow((n+1), 2)-lup*lup));
kk[5][n] = Math.sqrt(ldown*ldown*yd*(yd-4)+4*Math.pow((n+1), 2)) +ldown*(yd-2);
public static void main(String args[]){
KK k = new KK();
k.intens(kk);
System.out.println(f2 + ' ' + 'N ' + 'V' + 'branch ' + 'H-L');
for(int n=1; n < np; n++){
fp1[n][v] = (n-ldown)*(n+ldown+1)*Math.pow((kk[2][n-1]*kk[6][n]+4*(n+ldown)*(n-ldown+1)), 2);
fp1[n][v] = fp1[n][v]/(4*(n+0.5)*kk[4][n-1]*kk[8][n]) ;
System.out.println(f2 + ' ' + n + ' ' + v + ' fp1 ' + fp1[n][v]:10:2);
for(int n=1; n< nq;n++){
fq1[n][v] = Math.pow((kk[2][n]*kk[6][n]*(ldown+0.5)+4*(n-ldown+1)*(n+ldown+1)*(ldown-0.5)), 2);
fq1[n][v] = fq1[n][v]/(2*(n+0.5)*kk[4][n]*kk[8][n]*(n+1.5));
fq1[n][v] = fq1[n][v]*(n+1);
System.out.println(f2 + ' ' + n + ' ' + v + ' fq1 ' + fq1[n][v]:10:2);
for(int n=1; n < nr; n++){
fr1[n][v] = Math.pow((kk[2][n+1]*kk[6][n]+4*(n-ldown+2)*(n+ldown+1)), 2);
fr1[n][v] = fr1[n][v]/(4*kk[4][n+1]*kk[8][n]*(n+1.5));
fr1[n][v] = fr1[n][v]*(n-ldown+1)*(n+ldown+2) ;
System.out.println(f2 + ' ' + n + ' ' + v + ' fr1 ' + fr1[n][v]:10:2); //fr1[n][v]:10:2 --> Here you must use the BigDecimal class
}I'm not very sure because my pascal knowledge is extremely "dated".
What about the converter I told you about? -
I need help re-installing CS4 production premium (for PC). Error code says "Installation database is corrupt" but if I try to delete the caps.db file I can't even find one. Furthermore, I tried Adobe Cleaner and it made no difference. HELP!
I need help re-installing CS4 production premium (for PC). Error code says "Installation database is corrupt" but if I try to delete the caps.db file I can't even find one. Furthermore, I tried Adobe Cleaner and it made no difference. HELP!
-
Parsing code from a database table
Hi,
How do I output / parse / evaluate HTML and CF code stored in
a database table? For example, I have the following query which
retrieves some HTML and CF code:
<cfquery datasource="MyDatasource" name="GetEmailCode">
select Mail_Content
from Message_Table
</cfquery>
<cfset Subject = "Test email subject...">
<cfset Message="Test email body message....">
Then I have:
<cfoutput query="GetEmailCode">
E-mail message:<br>
#Trim(Mail_Content)#
</cfoutput>
The actual content of #Trim(Mail_Content)# is:
<TABLE WIDTH="750" BORDER="0" CELLPADDING="0"
CELLSPACING="0" ALIGN="center">
<TR>
<TD ALIGN="center">
<TABLE WIDTH="100%" BORDER="0" CELLPADDING="5"
CELLSPACING="0">
<TR>
<TD ALIGN="left" BGCOLOR="tan">
<B>#Trim(Subject)#</B>
</TD>
</TR>
<TR>
<TD ALIGN="left" BGCOLOR="aliceblue">
#Trim(Message)#
</TD>
</TR>
</TABLE>
</TD>
</TR>
</TABLE>
But the output of GetEmailCode displays #Trim(Subject)# and
#Trim(Message)# as is. In other words, it's not outputing the
actual value of Subject and Message which are "Test email
subject..." and "Test email body message...."
How do I output and parse the code correctly? I've tried the
following, but it gives me an error:
<cfoutput query="GetEmailCode">
E-mail message:<br>
#Trim(Evaluate(Mail_Content))#
</cfoutput>
Any help/suggestiong is greatly appreciated.
Thanks in advance!!!I was looking for something like this last week, thanks for
posting your own answer instead of just saying "nevermind, I
figured it out" and leaving all to wonder what the solution
was... -
Visual C++ code to connect database
Hi
I am currently writing a program in visual c++.
However I need to store image to oracle database.
Therefore there is a need to connect to the database.
In other word, I need to connect using ODBC.
However I am not sure of the code in visual c++ to connect
and to store jpg image into oracle database.
Is there any reference or link that i can get the standard code
to connect to oracle database using visual c++ code?You have a lot of options for how you want to connect. You can use OCI, OCCI, ODBC, OLE DB, and OO4O from C++ code without a problem. If you decide on ODBC or OLE DB, you can use the API directly, or, more commonly, you can use one of the API's that are layered on top of those API's, i.e. ADO, RDO, DAO, etc..
There isn't a single standard way of connecting to the database in C++-- you have lots of options, depending on what you're most comfortable with. If you can give some additional details about exactly which API you're going to be using, I'll try to point you in the right direction for samples.
Justin -
Clob/blob in java-code stored in database
Hi!
I want to write some java-code (CREATE OR REPLACE AND RESOLVE JAVA SOURCE NAMED...)
where I want to return an image as blob.
For doing that I have to initialize the blob in the java-code -correct?
I see many examples like
oracle.sql.BLOB.createTemporary(conn, false,oracle.sql.BLOB.DURATION_CALL)
In PL/SQL there is some similar:
dbms_lob.createtemporary(lob_loc => xmlclob, cache => TRUE, dur => dbms_lob.SESSION);
If I have to initialize the blob in the java source, how to do that (using empty_blob, but why using oracle...createTemporary then?)?
I don't want an connection to an remote database, the java-code will be in the database, so can I call createTemporary without >conn<?
(Oracle 10gR2, Windows, Linux, AIX)
The picture will be generated calling other java-code loaded with loadjava.
The java-source I want to write will be wrapped with PL/SQL.
Greetings
BjørnHi!
It seems you can do this:
try {
conn = new OracleDriver().defaultConnection(); graphblob = oracle.sql.BLOB.createTemporary(conn, false,oracle.sql.BLOB.DURATION_CALL); // must init
System.out.println("Blob is init");
} catch ( java.sql.SQLException sEx ) {
throw new RuntimeException ("No connection", sEx);
http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:1285601748584
http://www.unix.org.ua/orelly/oracle/guide8i/ch09_08.htm
/Bjoern -
Export java code out of database? difference between Prod and Test
Hi all,
I'm a seasoned DBA, but I have never really dealt with Java, so this is all new to me. Within one of my test databases (10.2.0.3.0), I have a database package - within the package is a procedure that has this Java call:
language java name 'com.clinapps.pmd.etl.interfaces.forecasting.itemtrial.helper.SSFItemOutboundPMDHelper.processSSFItemInterface()';
This Java code goes and exports a file to .xml format. The basic problem is that in our Test environment, there is a problem in the xml file that gets generated - the second line is missing the first few characters. However, in all of our other environments, including Production and Validation, it all works fine - the xml file is good. What has me confused, is that we've done several database refreshes, where we export from production, then import it down to test. So from everything I'm looking at, the schema is exactly the same - but something is different, causing the issue in the xml file that is being generated. I was wondering if I could get into the database and export the Java code, then that is something where I could confirm if there's a difference or not, from Prod to Test.
Does anyone have any input/feedback on how to do this? I've been googling, and tried several methods, including dbms_metadata.get_ddl, and DBMS_JAVA.EXPORT_SOURCE, but I can't get anything to work.
Or if anyone has any other thoughts on how to debug/troubleshoot this, I'd appreciate any ideas!!
Thank you from a Java newbie!!OK, that is helping me get somewhere!! If I change the query to this, I am getting results:
select obj_num,long_name from SYS."KU$_JAVA_CLASS_VIEW" where LONG_NAME like '%SSFItemOutboundPMDHelper%';
171879
com/clinapps/pmd/etl/interfaces/forecasting/itemtrial/helper/SSFItemOutboundPMDHelper
Note that it has the / instead of the . as the differentiator
Now if I do the second query, I see this:
SQL> select * from SYS."KU$_JAVA_OBJNUM_VIEW" where OBJ_NUM=171879;
OBJ_NUM DATAOBJ_NUM OWNER_NUM OWNER_NAME
NAME NAMESPACE SUBNAME
TYPE_NUM TYPE_NAME CTIME MTIME
STIME STATUS REMOTEOWNER
LINKNAME
FLAGS OID SPARE1 SPARE2 SPARE3
SPARE4
SPARE5
SPARE6
171879 123 PMD50
/34bae3f1_SSFItemOutboundPMDHe 1
29 JAVA_CLASS 2012-06-28 10:44:22 2012-06-28 10:44:22
2012-06-28 10:44:22 1
8 6 65535
Any thoughts on where to go from here?? -
How to compile a piece of code from the database
I've created my own object navigator which is also able to view the code of a certain object. (HTML)
I'm trying to create a function to compile this code again to the database.
I've tried "execute immediate" but this has the downside that It can only parse 32kb of text and that every object I create in this manner will not compile correctly. ("success but with compilation errors")
How can I compile my own objects?If your objects already exist in the database, try
EXECUTE IMMEDIATE 'ALTER FUNCTION function_name COMPILE' ;
Of course if you make changes, one of your options is to compile using SqlPlus (using a script).
You could also create an external proc (Java or C) to compile the objects.
I've created my own object navigator which is also able to view the code of a certain object. (HTML)
I'm trying to create a function to compile this code again to the database.
I've tried "execute immediate" but this has the downside that It can only parse 32kb of text and that every object I create in this manner will not compile correctly. ("success but with compilation errors")
How can I compile my own objects? -
T-SQL Code to backup database with multiple files - Syntax error
Hello,
I'm trying to backup a database into multiple files but I'm getting a syntax error.
Here is the code:
declare @DBName varchar(100)
declare @DBFileName varchar(256)
declare @FolderName varchar(256)
declare @Path varchar(100)
set @Path = '\\Backup-Server\Test\'
set @DBName = 'DayNite'
set @DBFileName = 'DayNite-Full' + '-' + (SELECT CONVERT(char(10), GetDate(),110)) + '-' + 'P'
set @FolderName =(SELECT CONVERT(char(10), GetDate(),110))
set @Path = @Path + @FolderName + '\'
EXEC master.dbo.xp_create_subdir @Path
--Calculate broken files for BACKUP DATBASE Function
/*declare @dbsize int
set @dbsize = (SELECT ((size*8)/1024)/1000 as SizeGB FROM sys.database_files WHERE file_id = '1')
set @dbsize = @dbsize / 4
print @dbsize*/
EXEC
BACKUP DATABASE [test] TO
DISK = @Path + @DBFileName + '1.bak',
DISK = @Path + @DBFileName + '2.bak',
DISK = @Path + @DBFileName + '3.bak',
DISK = @Path + @DBFileName + '4.bak',
DISK = @Path + @DBFileName + '5.bak',
DISK = @Path + @DBFileName + '6.bak',
DISK = @Path + @DBFileName + '7.bak',
DISK = @Path + @DBFileName + '8.bak',
DISK = @Path + @DBFileName + '9.bak',
DISK = @Path + @DBFileName + '10.bak',
DISK = @Path + @DBFileName + '11.bak',
DISK = @Path + @DBFileName + '12.bak',
DISK = @Path + @DBFileName + '13.bak'
WITH INIT , NOUNLOAD , NAME = 'DayNite Full Backup', NOSKIP , NOFORMATMade some slight modifications to your script and it should work(worked when tested).. if you wnat more complete solution -- google -OLA Hallengren backups -- you should get some good scripts..
declare @DBName varchar(100)
declare @DBFileName varchar(256)
declare @FolderName varchar(256)
declare @Path varchar(100)
set @Path = '\\Backup-Server\Test\'
set @DBName = 'DayNite'
set @DBFileName = 'DayNite-Full' +''+ '-' +''+ (SELECT CONVERT(char(10), GetDate(),110)) +''+ '-' +''+ 'P'
set @FolderName =(SELECT CONVERT(char(10), GetDate(),110))
set @Path = @Path +''+ @FolderName +''+ '\'
EXEC master.dbo.xp_create_subdir @Path
--Calculate broken files for BACKUP DATBASE Function
/*declare @dbsize int
set @dbsize = (SELECT ((size*8)/1024)/1000 as SizeGB FROM sys.database_files WHERE file_id = '1')
set @dbsize = @dbsize / 4
print @dbsize*/
select @Path,@DbFileName
declare @SQL nvarchar(2000)
Set @SQL ='Backup DATABASE [DAYNITE] TO DISK = '''+@Path +''+ @DBFileName +''+ '1.bak'',
DISK = '''+@Path +''+ @DBFileName +''+ '2.bak'',
DISK = '''+@Path +''+ @DBFileName +''+ '3.bak'',
DISK = '''+@Path +''+ @DBFileName +''+ '4.bak'',
DISK = '''+@Path +''+ @DBFileName +''+ '5.bak'',
DISK = '''+@Path +''+ @DBFileName +''+ '6.bak'',
DISK = '''+@Path +''+ @DBFileName +''+ '7.bak'',
DISK = '''+@Path +''+ @DBFileName +''+ '8.bak'',
DISK = '''+@Path +''+ @DBFileName +''+ '9.bak'',
DISK = '''+@Path +''+ @DBFileName +''+ '10.bak'',
DISK = '''+@Path +''+ @DBFileName +''+ '11.bak'',
DISK = '''+@Path +''+ @DBFileName +''+ '12.bak'',
DISK = '''+@Path +''+ @DBFileName +''+ '13.bak''
WITH INIT , NOUNLOAD , NAME = ''DayNite Full Backup'', NOSKIP , NOFORMAT '
print @SQL
exec (@SQL)
Hope it Helps!! -
Java code to take database backup
Hi,
I need java code which can take Ms.access database backup on 15th of every month. Please help me to do that.
Advance thanksmake a batch file to copy the little db from it's location to the backup location or invoke the backup command with the correct commandline parameters so you do not get prompted for input, go into the Windoz scheduler and tell it to run the batchfile on the 15th of ever month. Doing this with a language is going to be a problem in logistics you do not have to deal with.
Maybe you are looking for
-
ITunes application could not be opened. An unknown error occurred (13014)
Ysterday I bought a brand spanking new Acer Aspire 7551 laptop with Windows 7 Home Premium and installed the latest version of iTunes (64 bit) on it. I started iTunes with great anticipation because I so looked forward to syncing my iPhone with my Ve
-
FYI - I am using Acrobat X Pro v 10.1.13 If I convert a MS Word Document to a PDF file the Redaction works fine without affecting the rest of the document. The problem I am describing below only seems to happen on documents that have been scanned to
-
MY printer won't print some coupons. I have downloaded the coupon printer but it still wont work. I keep getting a message that says to change my setting so that it won't save the items printed but I can't find that option in the settings anywhere. S
-
Hi, Trust this is the right forum. If you can assist,I would appreciate it.I'm running Mountain Lion on a Mac Pro 1. I get an error -50 trying to empty the trash. 2. The trash is on an external drive (Mac OS Extended (Journaled) 3. The disk utility r
-
When record audio I can`t see the graphical overview of the waveform.
When record audio I can`t see the graphical overview of the waveform.