Check table existence and delete entire records using Server 2005
I am trying to delete the entire record of table after confirmation of Table existence using SQL Server 2005 SP3,
query is as follows -
USE smsDB;
GO
IF (OBJECT_ID('organTable', 'U') IS NOT NULL)
BEGIN
PRINT 'Table Exists'
DELETE FROM organTable;
END
ELSE
BEGIN
PRINT 'Table not Exists'
END
GO
please help to delete the entire table records...
Pl. Mark/Proposed as Answer if found your solution Vote as Helpful if related to your topic. Always Motivate others by performing this Action.
You code looks good.
Are you facing any issues? Please explain.
You can even try with truncate table...
IF (OBJECT_ID('organTable', 'U') IS NOT NULL)
BEGIN
PRINT 'Table Exists'
--DELETE FROM organTable;
Truncate Table OrganTable
END
Sir, first of all thanks for reply & giving me your valuable time,
i have learned some of the issues or dependencies with Truncate query, which are as follows -
- Are referenced by a FOREIGN KEY constraint. (You can truncate a table that has a foreign key that references itself.)
- Participate in an indexed view.
- Are published by using transactional replication or merge replication
because my tables exist some of above restrictions, please guide, is it right to use the truncate?
Pl. Mark/Proposed as Answer if found your solution Vote as Helpful if related to your topic. Always Motivate others by performing this Action.
Similar Messages
-
Comparing two internal tables and deleting the record not present in second
Hi All,
I have a internal table itaba with PERNR as primary key and various other columns (1000 records) and table B with PERNR as primary key and 800 records.
Now what is the best way to compare these two and delete the record from table A when its corresponding record is not present in table B?
Thanks and Regards,
MohanHI SIR
u trained us in accenture
Hi all
when ever m running this session in SM35 , M getting error as :
"LEAVE TO TRANSACTION" MARA-BISMT is not allow
in batch input
REPORT YASEC_BDC_NIK_SESSION
no standard page heading
message-id zmm
line-count 65
line-size 150.
tables : mara.
*Top includr program
INCLUDE YNEW_MAIN_TOP.
*include yasec_bdc_nik_session_top.
***********selection screen *******************
selection-screen begin of block b1 with frame title text-001.
selection-screen skip.
PARAMETERS: p_ifile(128) TYPE c .
SELECTION-SCREEN SKIP.
SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.
PARAMETERS: rad1 TYPE c RADIOBUTTON GROUP 1 USER-COMMAND gr1,
rad2 TYPE c RADIOBUTTON GROUP 1 .
SELECTION-SCREEN SKIP.
PARAMETERS: p_sess TYPE c.
SELECTION-SCREEN END OF BLOCK b2.
SELECTION-SCREEN SKIP.
SELECTION-SCREEN END OF BLOCK b1.
Subroutine call***************************
INCLUDE YNEW_MAIN_F01.
*include yasec_bdc_nik_session_f01.
*********At selection event triggered *************
at selection-screen on value-request for p_ifile.
To get F4 help for the input file path
PERFORM f_f4_input_file.
AT SELECTION-SCREEN ON p_ifile.
To validate and upload the input file
PERFORM f_load_file.
AT SELECTION-SCREEN ON p_sess.
To validate the Number of Sessions field
IF rad2 IS NOT INITIAL AND sy-ucomm EQ c_onli.
PERFORM f_check_sessions.
ENDIF.
***********Start of selection *******************
start-of-selection.
*To process BDC
PERFORM f_process_bdc.
TOP OF PAGE
TOP-OF-PAGE.
Writes the report heading and for displaying line number.
PERFORM f_report_header.
TYPES : BEGIN OF t_final,
matnr(50) TYPE c,
bismt(18) type c,
end of t_final.
TYPES: BEGIN OF t_fdata,
data(256) TYPE c,
END OF t_fdata.
TYPES: BEGIN OF t_error,
message(100) TYPE c,
END OF t_error.
*Internal table declarations
*Internal table to load the data from the file that is changed throgh BDC
DATA : i_final TYPE STANDARD TABLE OF t_final,
wa_final TYPE t_final.
*Internal table to store the error messages
DATA : i_error TYPE STANDARD TABLE OF t_error,
wa_error TYPE t_error.
*Internal table to load the raw data
DATA : i_fdata TYPE STANDARD TABLE OF t_fdata,
wa_fdata TYPE t_fdata.
*Internal table to store records of BDC
DATA : i_bdcdata TYPE STANDARD TABLE OF bdcdata INITIAL SIZE 0,
wa_bdcdata TYPE bdcdata.
Internal table to store BDC messages
DATA: i_bdcmsgcoll TYPE STANDARD TABLE OF bdcmsgcoll INITIAL SIZE 0,
wa_bdcmsgcoll TYPE bdcmsgcoll.
VARIABLE DECLARATIONS
DATA: v_ifile TYPE string,
v_input TYPE i,
c_delimiter TYPE c VALUE 'X',
v_mode TYPE c VALUE 'A',
v_sessions TYPE i.
CONSTANTS
CONSTANTS : c_flagx TYPE c VALUE 'X',
c_slash TYPE c VALUE '/',
c_onli(4) TYPE c VALUE 'ONLI',
c_vl02(4) TYPE c VALUE 'VL02',
c_s TYPE c VALUE 'A'.
FORM f_f4_input_file .
CALL FUNCTION 'F4_FILENAME'
EXPORTING
program_name = syst-cprog
dynpro_number = syst-dynnr
IMPORTING
file_name = p_ifile.
ENDFORM. " f_f4_input_file
*& Form f_load_file
FORM f_load_file .
v_ifile = p_ifile.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = v_ifile
filetype = 'ASC'
has_field_separator = 'X'
TABLES
data_tab = i_fdata
EXCEPTIONS
file_open_error = 1
file_read_error = 2
no_batch = 3
gui_refuse_filetransfer = 4
invalid_type = 5
no_authority = 6
unknown_error = 7
bad_data_format = 8
header_not_allowed = 9
separator_not_allowed = 10
header_too_long = 11
unknown_dp_error = 12
access_denied = 13
dp_out_of_memory = 14
disk_full = 15
dp_timeout = 16
OTHERS = 17.
IF sy-subrc <> 0.
*Text-103-Input file does not exist.
MESSAGE e000 WITH text-103 .
ELSEIF NOT i_fdata IS INITIAL.
DELETE i_fdata WHERE data = space.
DESCRIBE TABLE i_fdata LINES v_input.
ENDIF.
IF v_input EQ 0.
Text-104 - Input file is empty.
MESSAGE e000 WITH text-104 .
ENDIF.
ENDFORM. " f_load_file
*& Form f_check_sessions
FORM f_check_sessions .
IF p_sess IS INITIAL.
MESSAGE e000 WITH text-106.
ELSE.
v_sessions = v_input DIV p_sess.
ENDIF.
ENDFORM. " f_check_sessions
*& Form f_process_bdc
text
FORM f_process_bdc.
LOOP AT i_fdata INTO wa_fdata.
SPLIT wa_fdata AT cl_abap_char_utilities=>horizontal_tab
INTO wa_final-matnr
wa_final-bismt.
APPEND wa_final TO i_final.
CLEAR wa_fdata.
ENDLOOP.
IF rad1 = c_flagx.
PERFORM f_passbdc_vl02.
ELSEIF rad2 = c_flagx.
PERFORM f_sessions_vl02.
ENDIF.
ENDFORM. "f_process_bdc
To populate the Screen information
p_program Program Name
p_dynpro Screen Number
FORM bdc_dynpro USING p_program TYPE any
p_dynpro TYPE any.
CLEAR wa_bdcdata.
Populate the BDC structure with the Screen Information.
Move the Program name PROGRAM
wa_bdcdata-program = p_program.
Move the Screen Number DYNPRO
wa_bdcdata-dynpro = p_dynpro.
Indicate the beginning of a new screen
wa_bdcdata-dynbegin = c_flagx.
APPEND wa_bdcdata TO i_bdcdata.
ENDFORM. "f_bdc_dynpro
*& Form f_passbdc_vl02
text
FORM f_passbdc_vl02.
DATA: l_lines_im TYPE i.
SORT i_final BY matnr ASCENDING.
CLEAR wa_final.
LOOP AT i_final INTO wa_final.
CLEAR: i_bdcmsgcoll[],
wa_bdcmsgcoll,
wa_bdcdata.
CLEAR: i_bdcdata[].
perform bdc_dynpro using 'SAPLMGMM' '0060'.
perform bdc_field using 'BDC_CURSOR'
'RMMG1-MATNR'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'RMMG1-MATNR'
wa_final-matnr.
perform bdc_dynpro using 'SAPLMGMM' '0070'.
perform bdc_field using 'BDC_CURSOR'
'MSICHTAUSW-DYTXT(01)'.
perform bdc_field using 'BDC_OKCODE'
'=ENTR'.
perform bdc_field using 'MSICHTAUSW-KZSEL(01)'
'X'.
perform bdc_dynpro using 'SAPLMGMM' '4004'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'BDC_CURSOR'
'MARA-BISMT'.
perform bdc_field using 'MARA-BISMT'
wa_final-bismt.
perform bdc_dynpro using 'SAPLSPO1' '0300'.
perform bdc_field using 'BDC_OKCODE'
'=YES'.
perform bdc_transaction using 'MM02'.
perform bdc_dynpro using 'SAPLMGMM' '0060'.
perform bdc_field using 'BDC_CURSOR'
'RMMG1-MATNR'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_dynpro using 'SAPLMGMM' '0070'.
perform bdc_field using 'BDC_CURSOR'
'MSICHTAUSW-DYTXT(01)'.
perform bdc_field using 'BDC_OKCODE'
'=ENTR'.
perform bdc_dynpro using 'SAPLMGMM' '4004'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'BDC_CURSOR'
'RMMG1-MATNR'.
perform bdc_dynpro using 'SAPLSPO1' '0300'.
perform bdc_field using 'BDC_OKCODE'
'=YES'.
perform bdc_transaction using 'MM03'.
CALL TRANSACTION 'MM02' USING i_bdcdata
MODE v_mode
UPDATE c_s
MESSAGES INTO i_bdcmsgcoll.
If error occurred in call transaction 'VA02' then stores all
information of failed records into internal table i_error_im.
IF sy-subrc NE 0.
DESCRIBE TABLE i_bdcmsgcoll LINES l_lines_im.
CLEAR wa_bdcmsgcoll.
READ TABLE i_bdcmsgcoll INTO wa_bdcmsgcoll INDEX l_lines_im.
To capture success and error messages in BDC.
CALL FUNCTION 'FORMAT_MESSAGE' "#EC *
EXPORTING
id = wa_bdcmsgcoll-msgid
lang = wa_bdcmsgcoll-msgspra
no = wa_bdcmsgcoll-msgnr
v1 = wa_bdcmsgcoll-msgv1
v2 = wa_bdcmsgcoll-msgv2
v3 = wa_bdcmsgcoll-msgv3
v4 = wa_bdcmsgcoll-msgv4
IMPORTING
msg = wa_error-message
EXCEPTIONS
not_found = 1
OTHERS = 2.
IF sy-subrc <> 0.
ENDIF.
ELSE.
WRITE: text-111 COLOR 7.
ENDIF.
CLEAR: wa_final.
REFRESH i_bdcdata.
ENDLOOP.
ENDFORM. "f_passbdc_va02
*& Form bdc_field
text
-->P_FNAM text
-->P_FVAL text
FORM bdc_field USING p_fnam TYPE any
p_fval TYPE any.
CLEAR wa_bdcdata.
Populate the Field Name
wa_bdcdata-fnam = p_fnam.
Populate the field value
wa_bdcdata-fval = p_fval.
APPEND wa_bdcdata TO i_bdcdata.
ENDFORM. "f_bdc_field
*& Form f_sessions_vl02
text
FORM f_sessions_vl02 .
DATA: l_sindex TYPE sy-tabix VALUE 1,
l_eindex TYPE sy-tabix,
l_flag TYPE c VALUE space.
l_eindex = v_input.
SORT i_final BY matnr ASCENDING.
DO p_sess TIMES.
CALL FUNCTION 'BDC_OPEN_GROUP'
EXPORTING
client = sy-mandt
group = 'Y_VL02_NIK'
user = sy-uname
keep = c_flagx
EXCEPTIONS
client_invalid = 1
destination_invalid = 2
group_invalid = 3
group_is_locked = 4
holddate_invalid = 5
internal_error = 6
queue_error = 7
running = 8
system_lock_error = 9
user_invalid = 10
OTHERS = 11.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
CLEAR wa_final.
CLEAR: i_bdcdata[].
LOOP AT i_final INTO wa_final FROM l_sindex TO l_eindex .
IF l_flag = v_sessions.
CLEAR l_flag.
EXIT.
ENDIF.
l_flag = l_flag + 1.
CLEAR: i_bdcdata[].
perform bdc_dynpro using 'SAPLMGMM' '0060'.
perform bdc_field using 'BDC_CURSOR'
'RMMG1-MATNR'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'RMMG1-MATNR'
wa_final-matnr.
perform bdc_dynpro using 'SAPLMGMM' '0070'.
perform bdc_field using 'BDC_CURSOR'
'MSICHTAUSW-DYTXT(01)'.
perform bdc_field using 'BDC_OKCODE'
'=ENTR'.
perform bdc_field using 'MSICHTAUSW-KZSEL(01)'
'X'.
perform bdc_dynpro using 'SAPLMGMM' '4004'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'BDC_CURSOR'
'MARA-BISMT'.
perform bdc_field using 'MARA-BISMT'
wa_final-bismt.
perform bdc_dynpro using 'SAPLSPO1' '0300'.
perform bdc_field using 'BDC_OKCODE'
'=YES'.
perform bdc_transaction using 'MM02'.
perform bdc_dynpro using 'SAPLMGMM' '0060'.
perform bdc_field using 'BDC_CURSOR'
'RMMG1-MATNR'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_dynpro using 'SAPLMGMM' '0070'.
perform bdc_field using 'BDC_CURSOR'
'MSICHTAUSW-DYTXT(01)'.
perform bdc_field using 'BDC_OKCODE'
'=ENTR'.
perform bdc_dynpro using 'SAPLMGMM' '4004'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'BDC_CURSOR'
'RMMG1-MATNR'.
perform bdc_dynpro using 'SAPLSPO1' '0300'.
perform bdc_field using 'BDC_OKCODE'
'=YES'.
perform bdc_transaction using 'MM03'.
l_sindex = l_sindex + 1.
ENDLOOP.
CALL FUNCTION 'BDC_CLOSE_GROUP'
EXCEPTIONS
not_open = 1
queue_error = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ENDDO.
ENDFORM. " f_sessions_vl02
*& Form f_report_header
FORM f_report_header .
FORMAT COLOR COL_HEADING INTENSIFIED ON.
ULINE.
text-201 - Company: Carrier
text-102- Batch Data Communication.
text-202 - System: SAP
WRITE: /1 sy-vline,
3 text-201,
50 text-102,
100 text-202,
AT sy-linsz sy-vline.
text-203 - Program:
text-204 - Date/Time:
WRITE: /1 sy-vline,
3 text-203, sy-repid ,
100 text-204,sy-datum ,c_slash, sy-uzeit,
AT sy-linsz sy-vline.
text-205 - User ID:
text-206 - Page:
WRITE: /1 sy-vline,
3 text-205, sy-uname,
100 text-206, sy-pagno,
AT sy-linsz sy-vline.
FORMAT COLOR OFF.
ULINE.
ENDFORM. " f_report_header
FORM bdc_transaction USING tcode.
CALL FUNCTION 'BDC_INSERT'
EXPORTING
tcode = tcode
TABLES
dynprotab = i_bdcdata
EXCEPTIONS
internal_error = 1
not_open = 2
queue_error = 3
tcode_invalid = 4
printing_invalid = 5
posting_invalid = 6
OTHERS = 7.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ELSE.
WRITE: / text-109 ,wa_final-matnr,
text-110 .
ENDIF.
ENDFORM. "bdc_transaction -
How to Delete Multiple Records using selectbox in jsf
Hi!
My Senario is I want to delete multiple records using checkbox. After selecting multiple records when i click the delete button the selected
rows shuld be deleted.if am doing like this but the edit ,delete for each row functionality is not working.
<h:selectBooleanCheckbox id ="bcb" value="#{item.empno}">
</h:selectBooleanCheckbox>
But other functionality is not wokring.
Can any one plz tell how to select the multiple records and how to send the id to the serverside.
I want code code for jsp and as well as backingBean how to accaess .
Any Reply shuld be apreciatedYou may find this article useful as well: http://balusc.blogspot.com/2006/06/using-datatables.html
Check the chapter "Select multiple rows" for two generic ways to select multiple rows in a datatable. -
SUN TEAM: Bugs in update and delete a record with long query
Creator Team,
In my opinio there is a bug issue with update and delete a record with a complex sql query. I�m using oracleXE and ojdbc14.ar with tomcat
In just two page I�m receving the following msg (I have 12 pages doing the same thing with less complex queries)
* Number of conflicts while synchronizing: 1 SyncResolver.DELETE_ROW_CONFLICT row 2 won't delete as values in database have changed: 2006-11-29
* Cannot commit changes: Number of conflicts while synchronizing: 1 SyncResolver.UPDATE_ROW_CONFLICT row 0 values changed in database
when i tried to delete or commit the updated changes in the register...
The interesting is that this code function with jdbc of jsc...
My query is bellow:
SELECT ALL PATRIMONIO.TB_BEM.INCODIGOBEM,
PATRIMONIO.TB_BEM.VATOMBAMENTO,
PATRIMONIO.TB_BEM.VAMATERIAL,
PATRIMONIO.TB_BEM.INCODIGOSETOR,
PATRIMONIO.TB_SETOR.VANOME AS NOMESETOR,
PATRIMONIO.TB_BEM.INCODIGOFORNECEDOR,
PATRIMONIO.TB_FORNECEDOR.VANOME AS NOMEFORNECEDOR,
PATRIMONIO.TB_BEM.DACHEGADA ,
PATRIMONIO.TB_BEM.DASAIDAPREVISTA,
PATRIMONIO.TB_BEM.DASAIDAEFETIVA,
PATRIMONIO.TB_BEM.VAMARCA,
PATRIMONIO.TB_BEM.VAMODELO,
PATRIMONIO.TB_BEM.VADESBAIXABEM,
PATRIMONIO.TB_BEM.INCODIGOTIPOAQUISICAO,
PATRIMONIO.TB_TIPOAQUISICAO.VANOME AS NOMETIPOAQUISICAO
FROM PATRIMONIO.TB_BEM , PATRIMONIO.TB_TIPOAQUISICAO, PATRIMONIO.TB_SETOR, PATRIMONIO.TB_FORNECEDOR
WHERE PATRIMONIO.TB_BEM.INCODIGOTIPOAQUISICAO = PATRIMONIO.TB_TIPOAQUISICAO.INCODIGOTIPOAQUISICAO
AND PATRIMONIO.TB_BEM.INCODIGOSETOR = PATRIMONIO.TB_SETOR.INCODIGOSETOR
AND PATRIMONIO.TB_BEM.INCODIGOFORNECEDOR = PATRIMONIO.TB_FORNECEDOR.INCODIGOFORNECEDOR
AND PATRIMONIO.TB_BEM.INCODIGOBEM LIKE ?
AND PATRIMONIO.TB_BEM.VATOMBAMENTO LIKE ?
AND PATRIMONIO.TB_BEM.VAMATERIAL LIKE ?
AND PATRIMONIO.TB_SETOR.VANOME LIKE ?
AND PATRIMONIO.TB_FORNECEDOR.VANOME LIKE ?
ORDER BY PATRIMONIO.TB_BEM.VATOMBAMENTO ASC
Why this problem is happing? Did you had some solution for that? Is the problem because the query is too long?!
please help me!
Gustavo CallouHello people,
I�m doing this to try to solution that bug:
This code is working fine... but I do not understand why I�m receiving the nullpointer exception!??!!?
// create a new rowset
CachedRowSetXImpl pkRowSet = new CachedRowSetXImpl();
try {
RowKey rk = tableRowGroup1.getRowKey();
if (rk != null) {
// set the rowset to use the Patrimonio database
pkRowSet.setDataSourceName("java:comp/env/jdbc/Patrimonio");
String query = "DELETE FROM TB_BEM WHERE INCODIGOBEM = "+tb_bemDataProvider.getValue("INCODIGOBEM", rk).toString();
pkRowSet.setCommand(query);
pkRowSet.setTableName("TB_BEM");
// execute the rowset -- which will contain a single row and single column
pkRowSet.execute();
pkRowSet.next();
info("Apagado");
} catch (Exception ex) {
log("ErrorDescription", ex);
error(getApplicationBean1().trateException(ex.getMessage()));
} finally {
pkRowSet.close();
Please someone help me!!!
Gustavo Callou -
Hi all
I have a requirement in oracle forms 6i
I have a data block which is tabular
there are 5 columns
1 column is display only and other 4 are normal text fields where we can insert update and delete those records
My requirement is when a user updates a record an alert must fire and the alert should ask whether the user wants to update that particular record
if the user presses yes then the record should be updated else the record should show as it was previously shown
Similarly in case of delete an alert should fire where it should be asked for confirmation if the user presses yes then the record should be deleted from the data base
else the record should be again visible on the form as earlier
also my 3rd requirement is that
i have a item field which is normal text and the display only field is the description
when entering a new record when i enter the item field and press tab or navigate out of the item field then the description of the item should be pouplated into the decsription read only field
Please help me in the above 3 cases
I am new to forms
I am using a friends ID which has many posts
Thanks in advance1)
your first requirement i'd do in the PRE-UPDATE trigger of the block:
DECLARE
v_alert_button NUMBER;
BEGIN
v_alert_button := SHOW_ALERT('your_alert'); -- "Do you want to update?"
IF v_alert_button = ALERT_BUTTON1 -- assuming "No"
THEN
-- reset value:
:YOUR_BLOCK.YOUR_ITEM1 := GET_ITEM_PROPERTY('YOUR_BLOCK.YOUR_ITEM1', DATABASE_VALUE);
-- optionally set item to valid if you don't want validations to fire:
SET_ITEM_PROPERTY('YOUR_BLOCK.YOUR_ITEM1', ITEM_IS_VALID, PROPERTY_TRUE);
-- do this for every item:
:YOUR_BLOCK.YOUR_ITEM2 := GET_ITEM_PROPERTY('YOUR_BLOCK.YOUR_ITEM2', DATABASE_VALUE);
-- finally reset record status:
SET_RECORD_STATUS(:SYSTEM.CURSOR_RECORD, STATUS, QUERY_STATUS);
-- interrupt PRE-UPATE trigger:
RAISE FORM_TRIGGER_FAILURE;
END IF;
END;(not tested, please try for youself)
2)
raise the alert in PRE-DELETE trigger.
3)
you can do this within the WHEN-VALIDATE-ITEM trigger or a List-of-value (LOV) that returns the description values. -
In tables if i delete any record delete_flag should set to 'x'
In tables if i delete any record delete_flag should set to 'x' and the record should be saved, displaying the message 'Entry deleted'.
Do u have any sample code or module written in table maintainance for this.
please help me with it.Hi Kalyani,
If you have created the Table Maintenance Generator then go to Table Maintenance Generator screen and double click on the screen and write the code in PAI Event under the Delete function code as per your requirement. -
Why yahoo/gmail retrieval and facebook app so so slow when in WIFI. But using the internet to check for emails and facebook is fast using the same WIFI connection??
Hi SandyS_VZW,
Yes tried resetting the wifi connection and problem still persist.
Here it is...to make it clear. Connected thru the same wifi at home...
-> emails (yahoo/gmail) and facebook WEBSITES are working fine and fast when using/accessing thru a browser (chrome/samsung browser) - no problem with this.
-> emails (yahoo/gmail) and facebook APP is soooooo sloooww (thru the App). Slow I mean comparing it to using their browser/websites... news feeds/emails refreshing so quickly but not when using the APP installed in Samsung Galaxy Note 4. Slow like - It will take around 5-10minutes just to get your emails and news feed refreshed.
THIS HAPPENS ONLY WHEN CONNECTED THRU A WIFI which has a speed of 10-20mb. It is not happening when connected to the network data/plan.
My wife has the same Samsung Galaxy Note 4 (coming from different provider at&t) - same setup (emails, fb app), same wifi connection, but she's not experiencing anything like it.
Not sure why, I dont want to believe that while connected to a WIFI, Verizon is restricting anything and ******* me off to make me switch to my data plan connection everytime - which is Unfair!
Was there a known issue similar about this case?
thanks, -
Select an area of sound track and delete it without using the razor?
Is there a way to select an area of sound track and delete it without using the razor please?
Like drag and then cmd-delete or clear or something would seem intuitive?
Thanks Steve z denverSet In and Out Points to define the region, then use the Lift command (Sequence>Lift). Note that the Lift command functions based on track targetting, so if the Video track is also targetted, the content will be removed there, too.
-
I have an imap account and deleted all mail from server. Once doing this all emails from my iPad -which was on a wi-fi- where automatically deleted. Fortunately these emails are still visible on my iPhone that was without connection. If I send all these emails to my iCloud account - they will remain into my outgoing folder until I open my wi-fi- …BUT will they be sent when I open my wi-fi connection, or since they are no longer on my server… be deleted for ever!?
This is how IMAP works, if you delete from one device it will also be deleted in the other devices.
iCloud do not backup e-mails. -
Steps SSIS and SSAS Migration from sql server 2005 to 2012?
steps SSIS,SSRS and SSAS Migration from sql server 2005 to 2012? any precautions to take while migration.
any documentation or any specified steps.Hi Vijay,
According to your description, you want to migrate SQL Server Integration Services and SQL Server Analysis Services from SQL Server 2005 to SQL Server 2012.
For how to migrate SQL Server Integration Services, please refer to the article:
http://www.bidn.com/blogs/DevinKnight/ssis/2718/upgrading-packages-to-ssis-2012.
In addition, since the issue regards SQL Server Integration Services. I suggest you post the question in the SQL Server Integration Services forums at
https://social.msdn.microsoft.com/Forums/sqlserver/en-US/home?forum=sqlintegrationservices.
For how to migrate SQL Server Analysis Services, please refer to this article:
http://www.codeproject.com/Articles/435703/Migration-from-SQL-server-to.
In addition, since the issue regards SQL Server Analysis Services. I suggest you post the question in the SQL Server Analysis Services forums at
https://social.msdn.microsoft.com/Forums/sqlserver/en-US/home?forum=sqlanalysisservices. It is appropriate and more experts will assist you.
Regards,
Michelle Li -
It used to work just fine, but now whenever I receive email if I check it from my phone and delete it, it will still be on my computer. If I check it on my computer, when I get on my phone, it's still there. I'm having to go through email and delete it all, on both devices, rather than just on one.
How can I make it so that when an email is deleted from one device, it will also be deleted from the other? I don't know what I did to make it stop doing this, and I've tried several things, on both my phone and my mac, but it's about to drive me crazy!
Thanks for any help you can give!But the problem is, that it Did used to do this. It synced for a year and a half and now only in the past four months has it not synced...
Any thoughts? -
I have the following Java method that is suppose to determine whether a given table exists or not:
public boolean tableExists(String table) {
String defstmt = "select TABLE_NAME from ALL_TABLES where (TABLE_NAME = '" + table + "')";
System.err.println("tableExists: stmt = " + defstmt);
tc.executeSEL(defstmt);
ResultSet rs = tc.getRS();
String tname = new String();
try {
while (rs.next()) {
rs.getString(tname);
System.err.println("tableExists.try: tname = " + tname);
rs.close();
return true;
catch (SQLException ex) {
System.err.println("tableExists.catch: tname not found");
try {
rs.close();
catch (SQLException ex1) {
return false;
Since this one didn't appear to work reliabily a friend suggested the following:
public boolean tableExists(String table) {
boolean exists = false;
String defstmt = "select TABLE_NAME from ALL_TABLES where (TABLE_NAME = '" + table + "')";
System.err.println("tableExists: stmt = " + defstmt);
if (tc.executeSEL(defstmt)) {
ResultSet rs = tc.getRS();
try {
exists = rs.first();
// This returns false if the rs is empty
// This should be sufficient if the query will return zero rows or one row.
// If there's a possibility that the query could return more than one row
// (for example if multiple schema data is in there and a table name
// might be duplicated), then this section will need to be more picky.
System.err.println("tableExists.try: tname found");
catch (SQLException ex) {
System.err.println("tableExists.catch: tname not found");
try {
rs.close();
catch (SQLException ex1) {
return exists;
Bottom line; neither method seems to be able to determine whether the table exists. Someone out there got any suggestions?
Thanks in advance
RCulpThe method "tc.executeSEL" is in a class "TableConnector" which I use to hold connection data and execute SQL statements. A new instance of the "TableConnector" class is created for each table prior to the check for existence. The method itself is boolean, returning true or false if the SQL runs successfully:
public boolean executeSEL(String inpstmt) {
rs = null;
try {
Connection conn = ConnectionData.getConnectionData().openConnection();
stmt = conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);
rs = stmt.executeQuery(inpstmt);
return true;
//debugdumpRS(rs);
catch (SQLException ex) {
System.err.println("SEL Statement = " + inpstmt);
System.err.println("Error code = " + ex.getErrorCode());
System.err.println("Error message = " + ex.getMessage());
System.err.println("SQL state = " + ex.getSQLState());
return false;
/*FINALLY CAN NOT BE USED HERE; ERASES THE RESULT SET
finally {
if (stmt != null) {
try {
stmt.close();
catch (SQLException ex) {
System.err.println("Error code = " + ex.getErrorCode());
System.err.println("Error message = " + ex.getMessage());
The TableConnector class also has a get method for the ResultSet:
public ResultSet getRS() {
return rs;
I'll try your suggestion and post the result.
Thanks
RCulp -
Checking table columns and data type before inserting
I have some data coming from different sources and want to insert the data from those files into multiple tables.
Before inserting the data I like to perform a check on data type, length, null etc so that I can avoid errors at the time of insert. If there is any problem with the data then I do not want to perform the insert and report the problems.
ThanksIf you have 10gR2 (10.2.0.4) you could use DML_ERROR_LOGGING.
Read about it here, see the examples: http://tkyte.blogspot.com/2005/07/how-cool-is-this.html
In short: it avoids errors during your transactions, afterwards you know which records failed and why.
It's more or less the same functionality:
your goal:
check before transactions and avoid the insert of 'bad' records. (extra code, extra maintenance, more chance of bugs)
dml_err_logging:
insert 'bad' records during transaction automatically into a dedicated error table including error message.
Edited by: hoek on Mar 24, 2009 6:56 PM -
Can the old_value check on updates and deletes be disabled in streams ?
I am in the beginning phases of streams replication. Replicating one table from a source db to a target db.
This table exist in both source and target and has a PK on ID.
SQL> desc api.junk;
Name Null? Type
ID NOT NULL NUMBER
PASSWORD VARCHAR2(20)
The password on the target database may be different due to security reasons. This will be done via a before insert trigger.
PROBLEM..
When i run
SQL> delete from api.junk where id=1;
It will run fine in the source but it seems to check both the ID and the PASSWORD column in target, then fails. Is there a way to prevent it from checking the old values when execute updates and deletes ?
- ShawnThe ability to turn off conflict detection in Streams on non-key columns was introduced in Oracle 10g. Please see the documentation for the procedure compare_old_values in the dbms_apply_adm package.
-
Update new records and delete old record? Urgent
Iam updating some records from internal table to Data base table.
Please suggest me
INSERT DBTable FROM TABLE itab.
UPDATE DBTable FROM itab.
Delete existing records.
DELETE DBTable FROM TABLE itab_old.
Please suggest meGot you..
Iam colecting some records to internal table from Data base table
based on year and month.
Then changing the date and months in interenla table
then inserrting this modified records of internal table into datta base table.
Finaly delete the old records with old dates.
Here is the suggestion..This is a logic and not the exact code..
DATA: ITAB TYPE STANDARD TABLE OF ZTABLE WITH HEADER LINE.
DATA: ITAB_OLD TYPE STANDARD TABLE OF ZTABLE WITH HEADER LINE.
SELECT * FROM ZTABLE
INTO TABLE ITAB.
ITAB_OLD = ITAB.
ITAB-NEW_DATE = SY-DATUM.
MODIFY ITAB TRANPORTING NEW_DATE WHERE KEY_FIELD = 'DS'.
Deletion part.
DELETE ZTABLE FROM TABLE ITAB_OLD.
Insertion part
INSERT ZTABLE FROM TABLE ITAB.
Thanks,
Naren
Maybe you are looking for
-
Firefox randomly opens an existing page in a new window
I open Firefox with no problem - it opens all my existing tabs. When I choose a tab, and run the cursor over a page (no button pressed) Firefox will randomly (not always) open that page in a new window. VERY annoying!
-
Can't change the phone number that appears on the front screen
My phone used to belong to my mom and I had it unlocked so I could use it overseas. However, her phone number still shows up on the front screen even though I've had 2 different sim cards in it, each with their own number. How do I change it to my
-
[SOLVED] Opening link in Kopete results in Firefox opening link twice
Hi, I am using the most up to date stuff, and the version of Firefox I am using is the KDE-OpenSUSE version from the AUR, though I have also tested this using the stable 3.6.13 from the repository and the effect is the same. When I click a link in Ko
-
I have been trying for a few days to update my ipad. It is running 5.1.1 and am trying to get to 7. I followed the instructions online but still says 5.1.1 is up to date.
-
I am getting an error message when I attempt to update my apps. It says "This App Is Incompatible with This iPad" Have never had this problem before, any suggestions?