Deleting rows in Numbers without resorting?
I have about ten thousand items in a Numbers spreadsheet. In one column, I have a formula that, in the third column, writes "Same" if the numbers being compared in the first two columns for a row are the same, and "Different" if they're different. I want to remove all of the "Same" rows, but I don't want to lose my current sort order. If anyone can help me achieve this, I would be very grateful. Thank you!
Unfortunately "fill down" doesn't do it. For that many rows, enter one formula of =ROW() . Select that cell and copy it. Select the entire column (headers and all, just click on the column letter) and Paste. While the column is still selected, Copy/Paste Values to replace the formulas with the actual numbers.
Similar Messages
-
How do I delete rows in Numbers for iPad?
I am new to numbers for iPad. How do I delete rows in Numbers for iPad? I am able to delete the data in the rows/cells but I can't delete/move up the rows so I can move data in it's place.
I havn't got Numbers so I can't check it, but is what is on this page any help http://help.apple.com/numbers/ipad/1.4/#tan72717a35 ?
-
Keeping formulas intact when deleting rows in Numbers '09
In a Numbers spreadsheet, how do I delete (or add) rows in the body of the spreadsheet, without affecting lower rows which contain a formula?
Depends what you mean by "without affecting lower rows which contain a formula."
Formulas with cell references will adjust those references to fit the new circumstances.
Example: D9 contains =C3
Row 2 is selected and Table > Add Row Above is used to insert a new row (now row 2) above. Row 2 becomes Row 3, Row 3 becomes Row 4 etc. and the formula in D9 (now D10) adjusts to remain pointed to the same cell (what was C3) in its new position (C4). The formula changes to =C4
Rows 6 and 7 are then selected and deleted, which makes no change to row 4 and the current position of the target cell (C4), but does change the position of D10 to D8. The formula remains pointed at the same cell, still in the same position: =C4.
If Row 4 is then deleted (or if Row 3 was deleted in stead of Row 2 at the first step) a problem is created. The formula originally in D9 and most recently in D8 is now referencing a cell which is no longer part of the table, and will present an error triangle and the message "invalid reference".
Formulas with fixed cell references show the same results, indicating the "fix" is to the cell itself, not to the cell's address. Same table, same steps, but this time the formula in what starts out as D9 is =$C$3
D9 becomes D10, C3 becomes C4. The formula again changes to refer to the same cell: =$C$4
D10 becomes D8. C4 remains C4. The formula remains pointed to the same cell: =$C$4
Row 4 is deleted. C4 is removed from the table. D8 becomes D7 and returns the "invalid reference" error message.
But I suspect this is not what you are looking for. If that's the case, some clarification to the question would help.
Regards,
Barry
PS: Is there a Winnipeg that's not in Canada? Google maps doesn't appear to be aware of one. -
Have two iPhones with the same id as I got hubbie one in week and when I got it they asked for email address so I gave the one we use, so when my husband started phone up he just put my password in. When he tried to back his numbers on iCloud they all appeared on my phone and now I can't delete his numbers without them deleting on his phone as well . Any help would be appreciated.
You'll have to migrate one of the phones to a different account, then delete the other person's data from each account (you can continue to share the same Apple ID for purchasing from the iTunes and app stores).
Decide which iPhone will be keeping the current iCloud account. On the one that will be changing accounts, if you have any photos in photo stream that are not in your camera roll or backed up somewhere else save these to your camera roll by opening the photo stream album in the thumbnail view, tapping Edit, then tap all the photos you want to save, tap Share and tap Save to Camera Roll.
Once this is done, go to Settings>iCloud, scroll to the bottom and tap Delete Account. (This will only delete the account from this phone, not from iCloud. The phone that will be keeping the account will not be effected by this.) When prompted about what to do with the iCloud data, be sure to select Keep On My iPhone. Next, set up a new iCloud account using a different Apple ID (if you don't have one, tap Get a Free Apple ID at the bottom). Then turn iCloud data syncing for contacts, etc. back to On, and when prompted about merging with iCloud, choose Merge. This will upload the data to the new account.
Finally, go to icloud.com on your computer and sign into each iCloud account separately and manually delete the data you don't from each account. -
How do you delete more than one row on numbers?
how do you delete more than one row on numbers?
Hi operatorcarmax,
Select the Rows (shift click works for me). Then hover the cursor over any selected Row label to see the upside-down triangle. Click on it to see a Pop-up menu.
The Numbers User Guide is available for download under the Numbers Help Menu. A good read.
Regards,
Ian. -
Can I add just cells in numbers without creating a whole new row?
can I add just cells in numbers without creating a whole new row?
Thanks to Jerrold Green1 for the answer to this back in Dec. 09. Numbers is so logical, it worked perfectly.
-
Microsoft Visual Basic 2010 Express.
I am new to Visual Basic programing and i am trying to understand the relationships between Datasets, database, table Adaptors. I have to following code that is is giving me the following error" Unable to load, Update requires a valid DeleteCommand
when passed DataRow collection with deleted rows".
I can track the error and its located in "OffsetTableTableAdapter.Update(MaterionOffsetDataSet.OffsetTable)" code. What am i missing?
It seems that i can delete the data on the DataGridView Table and it only displays the correct data. but my database is not updating, even though the data grid displays differently.I can determine this because, when i save the offset database, i have all
the previous uploads and all the rows that i wanted to delete are still there.
My final goal is to be able to import offset data from a CSV file, save this data on the pc, send a copy of this data to a NuermicUpDown so the customer can modify certain numbers. From here they download all the date to a controller. IF the customer
needs to modify the imported data, they can go to a tab with a data grid view and modify the table. They will also have to option to save the modified data into a csv file.
Im not sure if i am making this overcomplicated or if there is a easier way to program this.
CODE:
Private Function LoadOffSetData()
Dim LoadOffsetDialog As New OpenFileDialog 'create a new open file dialog and setup its parameters
LoadOffsetDialog.DefaultExt = "csv"
LoadOffsetDialog.Filter = "csv|*.csv"
LoadOffsetDialog.Title = "Load Offset Data"
LoadOffsetDialog.FileName = "RollCoaterOffset.csv"
If LoadOffsetDialog.ShowDialog() = Windows.Forms.DialogResult.OK Then 'show the dialog and if the result is ok then
Try
Dim myStream As New System.IO.StreamReader(LoadOffsetDialog.OpenFile) 'try to open the file with a stream reader
If (myStream IsNot Nothing) Then 'if the file is valid
For Each oldRow As MaterionOffsetDataSet.OffsetTableRow In MaterionOffsetDataSet.OffsetTable.Rows
oldRow.Delete()
'delete all of the existing rows
Next
'OffsetTableTableAdapter.Update(MaterionOffsetDataSet.OffsetTable)
Dim rowvalue As String
Dim cellvalue(25) As String
'Reading CSV file content
While myStream.Peek() <> -1
Dim NRow As MaterionOffsetDataSet.OffsetTableRow
rowvalue = myStream.ReadLine()
cellvalue = rowvalue.Split(","c) 'check what is ur separator
NRow = MaterionOffsetDataSet.OffsetTable.Rows.Add(cellvalue)
Me.OffsetTableTableAdapter.Update(NRow)
End While
Me.OffsetTableTableAdapter.Update(MaterionOffsetDataSet.OffsetTable)
MainOffset.Value = OffsetTableTableAdapter.MainOffsetValue 'saves all the table offsets
to the offset numericUpDown registers in the main window
StationOffset01.Value = OffsetTableTableAdapter.Station01Value
StationOffset02.Value = OffsetTableTableAdapter.Station02Value
myStream.Close() 'close the stream
Return True
Else 'if we were not able to open the file then
MsgBox("Unable to load, check file name and location") 'let the operator know that the file wasn't able to open
Return False
End If
Catch ex As Exception
MsgBox("Unable to load, " + ex.Message)
Return False
End Try
Else
Return False
End If
End FunctionHello SaulMTZ,
>>I can track the error and its located in "OffsetTableTableAdapter.Update(MaterionOffsetDataSet.OffsetTable)" code. What am i missing?
This error usually shows that you do not initialize the
DeleteCommand object, you could check this
article to see if you get a workaround.
>> Im not sure if i am making this overcomplicated or if there is a easier way to program this.
If you are working CSV file, you could use OleDB to read it which would treat the CSV file as a Table:
http://www.codeproject.com/Articles/27802/Using-OleDb-to-Import-Text-Files-tab-CSV-custom
which seems to be easier (in my opinion).
Regards.
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
How do I export a specific set of rows from Numbers?
What i am looking to be able to do is
Export a specific set of rows from Numbers
I am working with large files of information
but would like to break the file up into smaller files
for example
I have 1 file with 40,000 rows
I need to be able to export/save this file into 4 smaller files
Rows 1-10,000
Rows 10,001-20,000
Rows 20,001-30,000
Rows 30,001-40,000I do not think I would use Numbers for this task.
I would duplicate the file (let's say the name is data.txt)
and name the two files:
dataA.txt
dataC.txt
then I would open dataA.txt in TextEdit and delete the last half of the file and save
then I would open dataC.txt in TextEdit and delete the first half of the file and save
then duplicate dataA.txt and name the new file dataB.txt
then duplicate dataC.txt and name the new file dataD.txt
Now open dataA.txt and delete the last half of the file, save
Now open dataB.txt and delete the first half of the file, save
Now open dataC.txt and delete the last half of the file, save
Now open dataD.txt and delete the first half of the file, save
if you did this very often I would suggest a script of some kind -
Delete row in report........
i have report, i have to delete row without page loading. i have wrote the application process(on demand). but i dont know how to write the javascript for htmldb items...
my req is when i click the delete button the checked row(using check box) should delete without page load. i use ajax to call the javascript to process the plsql code.
can any one pls help me to modify the below javascript coding....
application process
begin
for i in 1..htmldb_application.g_f01.count
loop
delete from service
where service_code = htmldb_application.g_f02(htmldb_application.g_f01(i));
end loop;
end;
javascript
function get_repd(){
var get = new htmldb_Get(null,html_GetElement('pFlowId').value,'APPLICATION_PROCESS=REP_D',0);
}thanks and regard.
skud.Hi Skud,
I will have to say your observation is incorrect. The whole purpose of doing the DML via Application Process using ajax technique is to avoid a page refresh, otherwise it would simply be a page level after submit process.
I have just tested and its working as expected, i.e
1. You select one or more records
2. Use the delete button to delete
3. Records get deleted from DB, you get a message
4. Only the report region get refreshed. (However this could delay for a few seconds if the dataset is larger and server is very busy)
If you are however using APEX 4.x you could use dynamic actions to get it done. My work environment is still on 3.x so my solution is using classic method.
If you are still having issue could you please let me know which browser you are using?
Cheers
Ligon -
Add row / delete row in PDF Form
Alright so I am really struggling here and no one has been able to provide me a solid answer to date.
1. I am creating a PDF form I want users to be able to fill and remit via email
2. I have created the form in Acrobat 9 Pro via the form Wizard and in some combination with MS Word 2007 for text and table fields to get the forms wizard to auto-populate Adobe form fields.
3. Some of the tables, i.e. In the first table for "Full Time" and "Part Time" should have check boxes - works fine to date. While others should have drop downs, i.e. platform build, etc - works fine to date.
4. This is the pressing issue. As they exist today there is a large table as you can clearly see. I want users to be able to simply click an "Add Row" or "Delete Row" button to add another row to the table (or delete) without having to have a massive table.
I've watched demos on Lynda.com (all of which are irrelevant and provided 0 value), tried to work with what people have responded with previously but all are mainly sample documents and I don't know where to start. In short, I open my form and other forms in LifeCycle Designer ES, take a look at the buttons people have created, the scripts, the XML source, etc. but no idea where to go. If the button needs to be in the table. How it should be scripted. etc. I cannot find a video tutorial anywhere on the web and all the responses simply provide a sample but no idea how to make it a reality in terms of translating their sample into a working dynamic form in PDF. Any help is greatly appreciated. Thanks.For a dynamic table you have to design a new XFA-form in Designer.
Here's a little tutorial how to create dynamic tables.
http://forms.stefcameron.com/2009/02/25/expandable-table-with-totals/
Just a little correction.
You can inport Docx-Files with tables and add / remove rows in a dynamic PDF.
But, this is not handy, if the table contains more than one row when it is imported because Designer gives every detected row the same name (Row).
Delete all row excepting the first one and set it to repeatable in the binding tab.
Then you can use the addInstance() and removeInstance() methods to add/remove row to the table.
Here an example file I made from a docx file.
https://acrobat.com/#d=k8XbQWmqu6bhfrrwui93pw -
Deleting row in matrix.
Hello.
I have weird problem.
If I add some rows to matrix, and then delete rows the method with:
m_pMatrix->GetRowCount();
return the number of rows without delete.
For example:
If i have matrix with 5 rows, and I delete 2 rows, method with GetRowCount show me 5
What is wrong ?
I solved this problem with adding new variable, but why does it work wrong ?
Sorry for my english.
Regards
Kamil WydraHello.
Thank You for Your response.
I try that and it works.
Thanks again.
Regards
Kamil Wydra -
How can I move columns in Numbers without distorting the formula in other cells? In Excel I can cut and paste entire columns and the formula in other cells adjusts accordingly. When I do it in Numbers, the formula messes up. How can I do this?
For example: I have formulas in columns D and F that relate to columns C to CU
If I want to move one column from one position to another (say S to T), the formula loses the colums that was moved, i.e. it doesn't recognize it has moved, rather sees it as deleted... How can I do this without distorting the formula?Thanks for the feedback.
If I often urge askers to look at the available resources, it's because a large range of questions asked in the forums are already answered in these documents.
As they are PDFs, they are easy to search in.
CAUTION
Download them while they are available.
Given what is delivered with iBooks Author, I'm afraid that we will not get such easy to use documents.
Searching infos in the iBooks Author documentation available on line is awfully cumbersome and a lot of embedded links are wrongly flagged this way. In the Help files they aren't links but underlined strings.
It seems that the tool used to generate the web pages was wrongly configured.
Yvan KOENIG (VALLAURIS, France) dimanche 22 janvier 2012
iMac 21”5, i7, 2.8 GHz, 12 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
My Box account is : http://www.box.com/s/00qnssoyeq2xvc22ra4k
My iDisk is : http://public.me.com/koenigyvan -
Remove Duplicate Rows in Numbers 09
Is there a way to remove duplicate rows in Numbers 09? For example I have 2 Tables and the values of Column A are mainly the same, but there are definitely a few dozen unique values in 1 table which are not in table 2 and visa versa. I'd like to make a new table with a column A with all of the values, but with duplicates removed so that I can then compare the values of a different column based on the value of Column A for each table.
I copied tabeau 1 and tableau 2 in tableau 3 then in cell E2 of tableau 3 I entered the formula:
=COUNTIF($A$1:$A1,"="&A)
Using fillDown, I filled the column E
I get 0 if the cell a is unique
I get 1 (or higher) if the cell is available several times.
Sort upon column E
delete the rows whose cell E is not 0.
Yvan KOENIG (VALLAURIS, France.) samedi 22 août 2009 11:08:15 -
Delete row internal bank problem
Hi,
i wasn't able to delete row of my internal bank, despite i delete this bank in my BP account and in all payment method.
Also i delete all the information in internal banck account ( branch, count number, iban,etc) but when i delete the row the system give me this messagge error
bank account is currently in use and therefore can not be eliminated 705-20
i currently use 2007A SP 01 patch level 7
how can i resolve this problem? thanks a lotHi,
thanks a lot, but this bank is not linked to any one field in Sap B1
1) in initial details there isn't
2) in payment methods there isn't
3) in registry BP there isn't
where can i has to find it????
By copy espress i had copied all payment methods ( with this bank), and after i deleted this payment methods without using this payment method in anyone Sap b1 documents....and here the strange thing -
Deadlock when delete rows with blob.
Hello
I have the following issue. I try to clean a table that contains a BLOB column.
To do this I use SQLDBC I create a statement that contains the LOB column, I fetch the line, load the Blob. and before fetching the next line, I send a delete request. and I fall in the deadlock.
If I fetch the next line before sending the delete request there is no deadlock, there is also no deadlock if i do not request le LOB column in the select.
In fact when I made select with LOB, there is the follwing line in DOMAIN.LOCKS
SESSION;TRANSCOUNT;PROCESS;USERNAME;DATE;TIME;TERMID;LASTWRITE;LOCKMODE;LOCKSTATE;APPLPROCESS;APPLNODE;SCHEMANAME;OWNER;TABLENAME;TABLEID;ROWIDLENGTH;ROWIDHEX;ROWID;
295513; 4290;438;ESKDBADM;2010-06-17;12:05:46;ly-delorme-u..1674;?;tab_share;?;5748;LY-DELORME.esker.corp;?;?;?;0000800000046919;0;?;?
when i send the delete request the following lock appears in DOMAIN.LOCKS. A exclusif lock on the column I want to delete. It's ok
SESSION;TRANSCOUNT;PROCESS;USERNAME;DATE;TIME;TERMID;LASTWRITE;LOCKMODE;LOCKSTATE;APPLPROCESS;APPLNODE;SCHEMANAME;OWNER;TABLENAME;TABLEID;ROWIDLENGTH;ROWIDHEX;ROWID;
295521; 4287;167;ESKDBADM;2010-06-17;12:05:49;ly-delorme-u..1674; 5;row_exclusive;write;5748;LY-DELORME.esker.corp;ESKDBADM;ESKDBADM;DBM350_AUTOTESTXML;0000000000000934;5;00C51133800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;
BUT there is a dead lock , I think because of the following entry in DOMAIN.LOCK_WAITS
TABLENAME;TABLEID;H_TERMID;H_PROCESS;H_APPLPROCESS;H_APPLNODE;H_ROWIDHEX;H_ROWID;H_LOCKMODE;H_DATE;H_TIME;H_LOCKTIMEOUT;R_TERMID;R_PROCESS;R_APPLPROCESS;R_APPLNODE;R_ROWIDHEX;R_ROWID;R_REQMODE;R_DATE;R_TIME;R_REQTIMEOUT;
?;0000800000046919;ly-delorme-u..1674;438;5748;LY-DELORME.esker.corp;?;?;tab_share;2010-06-17;12:05:46;?;ly-delorme-u..1674;167;5748;LY-DELORME.esker.corp;?;?;tab_exclusive;2010-06-17;12:05:49; 3585
The database request a tab_exclusive lock on tableid 0000800000046918 but there is already a tab_share lock on this.
Do you why there is a lock on the table : tableid 0000800000046918 ?
How to avoid this lock using SQLDBC ?
Thanks for you help.
Yann.this is the same reply as previous reply, this carriage return. I hope.
Hello,
Here is code that explain my issue.
I create a table like this :
create table "ESKDBADM"."DBM350_AUTOTESTXML"( "MSN" INTEGER not null, "DIST_FILE" BLOB, constraint SYSPRIMARYKEY primary key ("MSN"))
And then I try to delete row with the following program. I do not understand why the request SELECT Msn, DIST_FILE FROM DBM350_AUTOTESTXML set a share lock on the tableid : 000080000004691D.
I do not find this tableid in the "SYSINFO"."FILES" table.
SESSION;TRANSCOUNT;PROCESS;USERNAME;DATE;TIME;TERMID;LASTWRITE;LOCKMODE;LOCKSTATE;APPLPROCESS;APPLNODE;SCHEMANAME;OWNER;TABLENAME;TABLEID;ROWIDLENGTH;ROWIDHEX;ROWID;
295697; 5220;172;ESKDBADM;2010-06-21;11:01:40;ly-delorme-u..1CDC;?;tab_share;?;7388;LY-DELORME.esker.corp;?;?;?;000080000004691D;0;?;?
// SQLDBC.cpp : Defines the entry point for the console application.
// YOU MUST CHANGE CONNECTION SETTINGS.
#include "stdafx.h"
#include <stdio.h>
#include <tchar.h>
#include <comdef.h>
#include <iostream>
#include "SQLDBC.h"
using namespace SQLDBC;
static void parseArgs(int argc, wchar_t **argv);
static SQLDBC_Connection *connectDB(SQLDBC_Environment * env = NULL);
static char* convertToUCS2(char *src);
static void usage();
SQLDBC_Environment *g_env;
typedef struct ConnectArgsT {
bstrt username;
bstrt password;
bstrt dbname;
bstrt host;
bstrt request;
} ConnectArgsT;
ConnectArgsT connectArgs;
void exitOnError(SQLDBC_ErrorHndl &err);
int _tmain(int argc, _TCHAR* argv[])
parseArgs(argc, argv);
SQLDBC_Connection *conn = connectDB();
//* Create a new statment object and execute it.
SQLDBC_PreparedStatement *stmt = conn->createPreparedStatement();
// FREEZE
if (connectArgs.request.length() == 0)
connectArgs.request = "SELECT Msn, DIST_FILE FROM DBM350_AUTOTESTXML";
/* NO FREEZE
if (connectArgs.request.length() == 0)
connectArgs.request = "SELECT Msn FROM DBM350_AUTOTESTXML";
char command = (char)((LPCWSTR)(connectArgs.request));
//* Executes the UNICODE encoded SQL command.
SQLDBC_Retcode ret = stmt->prepare((const char*)command, SQLDBC_StringEncodingType::UCS2Swapped);
exitOnError(stmt->error());
stmt->execute();
exitOnError(stmt->error());
// * Get the resultset.
SQLDBC_ResultSet *result;
result = stmt->getResultSet();
exitOnError(stmt->error());
// * Fetch the row from the resultset.
result->next();
SQLDBC::SQLDBC_RowSet* pRowset = result->getRowSet();
ret = pRowset->fetch();
exitOnError(result->error());
wchar_t szString[30];
SQLDBC_Length ind;
Get a string value from the column.
result->getObject(1, SQLDBC_HOSTTYPE_UCS2_SWAPPED, szString, &ind, sizeof(szString)); // Retreive MSN.
// Delete de line.
// Create a new connection for delete
SQLDBC_Connection *conn2 = connectDB(g_env);
//* Create a new statment object and execute it.
SQLDBC_PreparedStatement *stmt2 = conn2->createPreparedStatement();
std::wstring st = L"DELETE FROM DBM350_AUTOTESTXML WHERE MSN=";
st += szString;
stmt2->prepare((char*)st.c_str(), SQLDBC_StringEncodingType::UCS2Swapped);
//* Executes the UNICODE encoded SQL command.
ret = stmt2->execute();
exitOnError(stmt->error());
printf("%s\n", szString);
return 0;
static char *convertToUCS2(char *src)
int len = strlen(src);
wchar_t w=(wchar_t)calloc(len, sizeof(wchar_t));
int nc = mbstowcs(w, src, len);
if ((size_t)-1 == nc) {
fprintf(stderr, "Conversion to UCS2 failed. Execution stopped.\n");
exit(1);
short s=(SQLDBC_Int2)calloc(nc+1, sizeof(SQLDBC_Int2));
int i;
for(i=0; i<nc; i++) {
s<i> = w<i>;
free(w);
return (char*)s;
static char* strupper(char *str)
char *p=str;
while(*p) {
p=toupper(p);
++p;
return str;
static wchar_t *argv0;
#ifdef WIN32
#define STRICMP _stricmp
#else
#define STRICMP strcasecmp
#endif
SQLDBC_Connection *connectDB(SQLDBC_Environment * env)
char errorText[200];
SQLDBC_Retcode rc;
if (g_env == NULL)
Every application has to initialize the SQLDBC library by getting a
reference to the ClientRuntime and calling the SQLDBC_Environment constructor.
SQLDBC_IRuntime *runtime;
runtime = SQLDBC::GetClientRuntime(errorText, sizeof(errorText));
if (!runtime) {
fprintf(stderr, "Getting instance of the ClientRuntime failed %s\n", errorText);
usage();
env = new SQLDBC_Environment(runtime);
g_env = env;
Create a new connection object and open a session to the database.
SQLDBC_Connection *conn = env->createConnection();
printf("Connecting to '%s' on '%s' as user '%s'\n",
(char)connectArgs.dbname, (char)connectArgs.host, (char*)connectArgs.username);
rc = conn->connect(connectArgs.host, connectArgs.dbname,
connectArgs.username, connectArgs.password);
if(SQLDBC_OK != rc) {
fprintf(stderr, "Can't connect to '%s'.\nERROR: %d:'%s'\n",
connectArgs.dbname, conn->error().getErrorCode(), conn->error().getErrorText());
exit(1);
return conn;
static void parseArgs (int argc, wchar_t **argv)
argv0 = wcsdup(argv[0]);
setting defaults for demo database
connectArgs.username = "ESKDBADM";
connectArgs.password = "DELORME";
connectArgs.dbname = "EDP350";
connectArgs.host = "ly-delorme";
use values from command line
if (argc > 5) {
connectArgs.request = argv [5];
if (argc > 4) {
connectArgs.host = argv [4];
if (argc > 3) {
connectArgs.dbname = argv [3];
if (argc > 2) {
connectArgs.password = argv [2];
if (argc > 1) {
if (!wcsicmp(argv [1], L"-h"))
usage();
else {
connectArgs.username = argv [1];
strupper(connectArgs.username);
strupper(connectArgs.password);
void exitOnError(SQLDBC_ErrorHndl &err)
if(err) {
fprintf(stderr, "Execution stopped %d:'%s'", err.getErrorCode(), err.getErrorText());
exit(1);
static void usage()
wchar_t *s = wcsrchr(argv0, L'/');
if (!s)
s = wcsrchr(argv0, L'
if (s)
*s = '\0';
printf("Syntax: %s [-h] | [<connect_options>]\n"
"\tconnect_options :: \n"
"\t\t[ <username> \n"
"\t\t[ <password>\n"
"\t\t[ <database_name>\n"
"\t\t[ <database_server> ]]]]\n"
"\t\t[ <request> ]]]]\n"
"\tCalling %s without any arguments will use user '%s','%s'\n"
"\t\ton database '%s' at server '%s'\n",
argv0, argv0,
connectArgs.username, connectArgs.password,
connectArgs.dbname, connectArgs.host);
exit(1);
Maybe you are looking for
-
Report does not show Title at first load (CR 11.5 SP3)
Hello I load an RPT from the file system, and then load data using an ADO disconnected recordset. At the end, the Report object is asigned to a CR Viewer. When the report appears, the Title is not shown. One has to press the "Refresh" button on the v
-
GAPs in financial year periods
i have encountered an error whie maintaining financial year variants. When maintaining the fiscal year variants in Transaction OB29 for variant WK, the following error message appears: "Gaps in financial year periods XY" (FGV 556), even though there
-
Hello, I recently have been getting a lot of blue screen crashes simultaneously. I haven't downloaded any games or anything. I just use this laptop for school work mostly. I already ran a memory diagnostic test and no problems found as well as restor
-
Decode variant data w/o using 'Variant To Data' function.
I need to decode variant data w/o having foreknowledge of the type used to create it. That is, I'm using the 'Flattened String To Variant' function which gives me the info I need, but it's all contained within one indicator. I need some way to break
-
Hi, We have Idoc to web service scenario. The real problem, web service has only one field named "STRING" I need to pass Idoc into xml format as shown below to this STRING. e.g. <ZQM_NOTIFICATION><QMNUM>000000006471</QMNUM><QMART>Z2</QMART><MATNR>000