datafile

Adding a datafile in an optional download group for ClickOnce

From the VS UI it seems I cannot assign datafiles to a download group. If I change this to 'Include', the datafile gets installed to the app directory and not the data directory. Is this possible at all, or am I chasing fairies? Update: The reason why I need this is due to our database being 20MB while the app is only around 5mb, and...

Using VB6 to search for existence of DataFile in Outlook

Hi, I am wanting to write an Add-In for Outlook 2003 which, when Outlook is opened, search for the existence of a datafile called DMSDataStore and if it doesn't exist will install the datafile. I have managed to create the Add-In using VB6 and it runs when I open Outlook. However I haven't found the best/easiest way to search for the ...

Deleted some Oracle DBF files by mistake - how can I tell Oracle XE to forget about them?

So I accidently deleted some DBF files (only ones specfic to my tablespaces), fortunately I was only just about to start loading data in so have lost nothing, except now can't re-create the tablespaces. If I run: select name from v$datafile; The results include the DBF files that I deleted. I attempted to run a command I found on th...

How do executables on Linux know where to get data files?

Programs on Linux install data for programs into $PREFIX/share/programname, how does the program know where that is, does it need to be compiled in? Would it be suitable to assume that the binary is in $PREFIX/bin, and use that to determine $PREFIX? This only needs to work on Linux, and specifically, I am using C. ...

Map element position in data file to class property

I need to read/write files, following a format provided by a third party specification. The specification itself is pretty simple: it says the position and the size of the data that will be saved in the file. For example: Position Size Description -------------------------------------------------- 0001 10 ...

how do I mark a file as a data file in a visual studio 2010 vsto clickonce application?

I'm making a Word 2007 add-in with C# 4.0 in Visual Studio 2010. I need an Access 2007 database (a .accdb file) to be placed in the data directory by the clickonce installer. Unfortunately, the file is getting put elsewhere, so the application can't find it at runtime. I've seen various articles refer to using the Application Files dialo...

Autoextend on chunks informix

Does anyone know if Informix has the same capability as Oracle with respect to the autoextend feature. With Oracle I can create a datafile and by using the autoextend feature Oracle will automatically grow the file when it gets full. Does Informix have anything like that for chunks? I can't seem to find anything in the documentation. T...

.dat file, when created using Matlab, not opening

I am creating a .dat file with headers and data in Matlab like this: %# Define the name of the file where data is to be written dataName = 'sampledata_models_poro_reference_truth'; %# open the file fid = fopen('sampledata_models_poro_reference_truth.dat','w'); %# start writing. First line: title fprintf(fid,'%s\n',dataName); %# don't ...

How to write a ANSI C user-defined function that returns a specific line from a text file?

How to write a ANSI C user-defined function that returns a specific line from a text file? char * ReadFromFile(const char * fileName, int line) { //.......... } ...

How to purge the Database data and log files in MySQL ?

I want to purge the ibdata1, ib_logfile0 and ib_logfile1 files in MySQL. Because these files are taking too much space of my C:\ disk. And I don't want to move these files anywhere else in the Hard disk. I heard about purging which can shrink the data. I am using Windows Vista. What are the steps to be done to purge the data ? ...