Are All The Database Open/Close Necessary?

I feel this is a bit overkill opening/closing the connection so many times.  Their must be a way to simplify this but I am to much of a novice to know how, can a more experienced one assist?
public static void DeleteCreateWrite()
OleDbConnection oleconn = new OleDbConnection(AccessConnectionString);
oleconn.Open();
try
string[] tablename = new string[1] { "tbl_Data", };
for (int q = tablename.GetLowerBound(0); q <= tablename.GetUpperBound(0); q++)
OleDbCommand cmd = new OleDbCommand("DROP TABLE " + tablename[q], oleconn);
try { cmd.ExecuteNonQuery(); }
catch { }
catch { }
oleconn.Close();
OleDbConnection olc = new OleDbConnection(AccessConnectionString);
olc.Open();
try
OleDbCommand command = new OleDbCommand();
try
command.Connection = olc;
command.CommandText = CreateTableSQL;
command.CommandType = CommandType.Text;
try { command.ExecuteNonQuery(); }
catch { }
command.Dispose();
catch { }
catch { }
olc.Close();
OleDbConnection con1 = new OleDbConnection(AccessConnectionString);
con1.Open();
try
OleDbCommand cm = new OleDbCommand();
cm.CommandText = "Insert Into " + AccessTableName + "([C], [E], [R]) VALUES (@C, @E, @R)";
cm.Parameters.AddWithValue("@C", field1);
cm.Parameters.AddWithValue("@E", PgName);
cm.Parameters.AddWithValue("@R", field2);
cm.CommandType = CommandType.Text;
cm.Connection = con1;
try { cm.ExecuteNonQuery(); }
catch { }
catch { }
con1.Close();

try-finally is a lot of code if the object is disposable.
//Your code isn't exception safe. You are silently ignoring exceptions but your late code blocks assume
//that it doesn't (i.e. a drop fails but you try to create anyway)
public static void DeleteCreateWrite ()
using (var oleconn = new OleDbConnection(AccessConnectionString))
oleconn.Open();
var tablename = new string[] { "tbl_Data", };
//This is inefficient, combine all the drops into a single batch statement
for (int q = 0; q <= tablename.Length; q++)
using (var cmd = new OleDbCommand("DROP TABLE " + tablename[q], oleconn))
cmd.ExecuteNonQueryIgnoringErrors();
using (var command = new OleDbCommand())
command.Connection = oleconn;
command.CommandText = CreateTableSQL;
command.CommandType = CommandType.Text;
command.ExecuteNonQueryIgnoringErrors();
using (var cm = new OleDbCommand())
cm.CommandText = "Insert Into " + AccessTableName + "([C], [E], [R]) VALUES (@C, @E, @R)";
cm.Parameters.AddWithValue("@C", field1);
cm.Parameters.AddWithValue("@E", PgName);
cm.Parameters.AddWithValue("@R", field2);
cm.CommandType = CommandType.Text;
cm.Connection = oleconn;
cm.ExecuteNonQueryIgnoringErrors();
And the helper method that I don't agree with but mimics your existing code.
static class CommandExtensions
public static void ExecuteNonQueryIgnoringErrors ( this IDbCommand command )
try
command.ExecuteNonQuery();
} catch
/* This is bad since some exceptions aren't recoverable... */
Michael Taylor
http://blogs.msmvps.com/p3net

Similar Messages

  • What are all the tables used for this report:

    hi
    what are all the tables used for this report:
    report:
    •     <b>Stock Report, which will give opening balance, receipt, issue, and closing balance for any given Duration for any material.</b>
    thanks in advance

    Tables: MSEG, MKPF, MARD.
    FOR REFERENCE SEE TRANSACTION : MB5B.
    Message was edited by: Sharath kumar R

  • My files are all there and open in Preview but in Numbers they come up blank. Same in Pages. Any ideas please? My Mac was stopped suddenly by a power cut. Could this be relevant? Help please. Jon Sims

    My files are all there and open in Preview but in Numbers they come up blank. Same in Pages. Any ideas please? My Mac was stopped suddenly by a power cut. Could this be relevant? Help please. Jon Sims

    "My Mac was stopped suddenly by a power cut. Could this be relevant?"
    Sounds very relevant.
    Do you have access to another computer with Numbers installed?
    If so, do your files open properly on that computer?
    If so, then the problem is your computer itself, which is best posted in a different forum.

  • How to identify what are all the events are created in background jobs?

    Hi all,
    how to identify what are all the events are created for  background jobs. And what events gets triggered for a particular job.
    thanxs
    haritha

    Hi Haritha,
    JOB is a program which starts to a determined point of time and executes some standard programs in the system. JOBs can be planed to a determined point of time on the regular basis (every night, for example) or to some discret time moments. So, the JOB can be planed and then will be started automatically without the manual start.
    Realtime programs are understood in the most cases as actual program execution which is started by somebody to the actual moment of time.
    Typically per JOBs some special processes will be started that should be executed automatically and regularly: for example, IDOC application, some correction reports, statistic updates etc.
    Standard jobs are those background jobs that should be run regularly in a production SAP System These jobs are usually jobs that clean up parts of the system, such as by deleting old spool requests.
    Use
    As of Release 4.6C, the Job Definition transaction ( sm36 ) provides a list of important standard jobs, which you can schedule, monitor, and edit.
    Standard jobs are those background jobs that should be run regularly in a production SAP System. These jobs are usually jobs that clean up parts of the system, such as by deleting old spool requests.
    for more information you can go thru the following thread:
    http://help.sap.com/saphelp_nw70/helpdata/en/24/b884388b81ea55e10000009b38f842/frameset.htm
    About Events:
    Events have meaning only in the background processing system. You can use events only to start background jobs.
    Triggering an event notifies the background processing system that a named condition has been reached. The background processing system reacts by starting any jobs that were waiting for the event.
    Types of Events:
    There are two types of events:
    1.)System events are defined by SAP. These events are triggered automatically when such system changes as the activation of a new operation mode take place.
    2.)User events are events that you define yourself. You must trigger these events yourself from ABAP or from external programs. You could, for example, signal the arrival of external data to be read into the SAP system by using an external program to trigger a background processing event.The event scheduler processes an event if the event is defined in the system.
    For example, if a system (System 1) receives an event from another system (System 2), the event scheduler of System 1 processes the event only if it is defined in System 1. That event does not need to be defined in System 2 (the sending system).
    You define an event by assigning a name (EVENTID) to it. When defining an event, you do not define the event arguments.
    for more information you can go thru the following thread:
    http://help.sap.com/saphelp_nw04s/helpdata/en/fa/096e2a543b11d1898e0000e8322d00/frameset.htm
    When you schedule the process chain or infopackages the jobs associated with it run in the background mode. In case you want to create a job for a specific activity you can do so in SM36. You would be creating jobs that would get executed in any one of the options:
    1. Immediate
    2. Date & Time
    3. After event.
    4. After job.
    5. At Operation mode.
    In case you want to view the job logs go to sm37.
    Also Pls check DB02 for database performance and ST03 for workload .
    Analyse u will have an idea ,
    *pls assign points,if info is useful**
    Regards
    CSM reddy
    null

  • How much documents are therein the database maxdb???

    Hi,
    My boss wants to know how many documents are in the database......how can I know???
    Thanks in advance!!
    Nerea.

    Hello Nerea,
    first of all it would be good to know which application you are using.
    Are you talking about a content server?
    We could tell you how many rows are in which table - but I'm not sure if that corresponds to your documents.
    It might be best to check with the application, how and where they store these docments.
    Regards,
    Melanie

  • In iTunes under my device, under the apps tab, Why are all the options shaded out?  I cannot make any changes, select any apps or do anything with the apps.  I was able to load a few apps and sync but cannot sync anymore to my phone.

    In iTunes under my device, under the apps tab, Why are all the options shaded out?  I cannot make any changes, select any apps or do anything with the apps.  I was able to load a few apps and sync but cannot sync anymore to my phone.

    Hi,
    ( I search for iChat questions when I have finished in the iChat Forum)
    So the menu bar reads iChat, File,  Edit,  View, Buddies, Video, Window and Help
    There is no Buddy List open.
    There is no other window for iChat open.
    In the iChat Menu you only have access to Status.
    Is an item ticked in the list ?
    Is this a green (Available item) or  Red ( an Away one) ?
    Can you access the Accounts option ?  (Sitll in the iChat Menu)
    Is anything in here ticked ?
    In the Window menu any Logged in account should appear in the list  (Between the Next Chat and File Transfer items)
    It would be useful to know which version of iChat this is.
    If no account is ticked (iChat Menu > Accounts) or not showing in the Window Menu, plus you cannot determine the Status and you cannot access the Preferences then you need to access your Home Folder/Library/Preferences
    As the Library in the Home Holder is Invisible in Lion you will need the Finder's Go Menu > Go to Folder option  (you can use it in earlier OS versions if you want)
    Type in:-
    ~/Library/Preferences
    Find the file called com.apple.ichat.plist
    Drag it to the Trash and Restart iChat.
    This will lose all the settings in iChat that you have changed from Defaults but there is no way around this.
    9:23 PM      Saturday; August 27, 2011
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb( 10.6.8)
     Mac OS X (10.6.8),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • Hello i have an iphone 5 it is very slow when i am downloading app my iphone 4 it is much much better are all the iphone 5 are the same or my iphone 5 have problem please

    hello i have an iphone 5 it is very slow when i am downloading app my iphone 4 it is much much better are all the iphone 5 are the same or my iphone 5 have problem please????

    Thank you for your help are you aware of any apps that will work the iso 4.2.1 system that will let you watch movies on the phone. Also I tried to down load something else the other day and got message that Safari wont let you open this is ther any to see if i have the latest safari on my phone?

  • What are all the Softwares i can install on Solaris 8

    Hi,
    Can anyone tell me what are all the Softwares i can install on Solaris Machine.
    If I want to develop a web Based appalication what are the necessary things i have to do.
    What are all the major application can develop?.
    Is there any already Developed site or some demo which we can see online?
    I will be very thankful i you provide some related information regarding this.
    THanks in Advance.

    Hi,
    You can check out http://soldc.sun.com website and select Software.
    This list the categories of Sun Software, freeware, Web Start Wizard
    much more information.
    ...jagruti

  • What LDB is and what are all the events we have in that..?

    Hi,
    Kindly let me know what LDB is and what are all the events we have in that..?
    Akshitha.

    Hi akshitha,
    1. A logical database is in fact
    a program only.
    2. This LDB provides two main things :
    a) a pre-defined selection screen
    which handles all user inputs and validations
    b) pre defined set of data
    based upon the user selection.
    3. So we dont have to worry about from
    which tables to fetch data.
    4. Moreover, this LDB Program,
    handles all user-authorisations
    and is efficient in all respects.
    5. tcode is SLDB.
    1. To get a taste of it.
    2. create a new z program.
    3. while creating type PNP
    in logical database field.
    4. paste this code and execute.
    REPORT ABC.
    infotypes : 0001.
    TABLES : PERNR.
    GET PERNR.
    WRITE :/ PERNR-PERNR.
    5. The selection screen which u see
    is coming from logical database PNP program.
    6. Execute
    7. U will get a list of pernr.
    SAPDBPNP
    this is the main program of LDB PNP
    which does the main work.
    SAPDB + ldb name.
    regards,
    amit m.

  • IS - Retail, What are all the version currently available and what is lates

    Hi,
    What are all the version currently available and what is latest version?
    Regards

    Hi akshitha,
    1. A logical database is in fact
    a program only.
    2. This LDB provides two main things :
    a) a pre-defined selection screen
    which handles all user inputs and validations
    b) pre defined set of data
    based upon the user selection.
    3. So we dont have to worry about from
    which tables to fetch data.
    4. Moreover, this LDB Program,
    handles all user-authorisations
    and is efficient in all respects.
    5. tcode is SLDB.
    1. To get a taste of it.
    2. create a new z program.
    3. while creating type PNP
    in logical database field.
    4. paste this code and execute.
    REPORT ABC.
    infotypes : 0001.
    TABLES : PERNR.
    GET PERNR.
    WRITE :/ PERNR-PERNR.
    5. The selection screen which u see
    is coming from logical database PNP program.
    6. Execute
    7. U will get a list of pernr.
    SAPDBPNP
    this is the main program of LDB PNP
    which does the main work.
    SAPDB + ldb name.
    regards,
    amit m.

  • READ privileges for *all the databases*

    Is it possible to grant READ privileges for all the databases objects (tables, schema, triggers, procedures, view and etc)

    SHANOJ wrote:
    Is it possible to grant privileges to all objects in one time?It depends on what you mean by 'in one time'. In one single SQL statement? No. But there's nothing stopping you issuing a billion grants one after the other in your session.
    Roles are probably better suited for this task. But are you sure you really want to grant SELECT privileges on all the tables in the database? It's more common to grant SELECT on all the 'MARKAPP' tables to the 'MARKAPP_READ_ONLY' role...

  • Where are all the Apps Stored?

    Where are all the apps I have purchased from the app store stored, on my PC? They do not appear in the Itunes folder where all the TV programs and music are.

    They are in a subfolder named Mobile Applications. It will be a subfolder wherever you are running your itunes library database ITL file from.
    On XP, the default path for that is
    C:\Documents and Settings\username\My Documents\My Music\iTunes\
    (this is where the default ITL file is stored)
    So your apps would be in this folder
    C:\Documents and Settings\username\My Documents\My Music\iTunes\Mobile Applications

  • Services of all the databases goes down

    Hi ,
    2 days back, Services of all the databases goes down on one of the PROD server.
    When i tried to start the services using SRVCTL command .
    I was getting the error below.
    oracle@shbaorc07b bin]$ srvctl status database -d EDW
    PRKH-1010 : Unable to communicate with CRS services.
    [Communications Error(Native: prsr_initCLSS:[3])]
    PRKO-2005 : Application error: Failure in getting Cluster Database Configuration for: EDWX
    PRKC-1056 : Failed to get the hostname for node + PRKH-1010 + prsr_initCLSS
    after this error, i came to know that there is some problem with the services.
    When i try to start the crs services, was not able to start the services
    as a root user user,
    I run the below command.
    crsctl start crs
    to my surprise the services of crs was not coming up,
    Finally I have to start the server and all the cluster services came up.
    I want to find out why this was happen, i need to find the bottle neck so this should not happen again as this is a PROD server and lots of prod database are residing on this server.
    Please find crsd.log below.
    2010-04-22 15:38:22.361: [  CRSRES][1539545408]0ora.shbaorc07b.LISTENER_UC4XPRD2.lsnr failed on shbaorc07b relocating.
    2010-04-22 15:38:22.397: [  CRSRES][1539545408]0Cannot relocate ora.shbaorc07b.LISTENER_UC4XPRD2.lsnrStopping dependents
    2010-04-22 15:38:22.407: [  CRSRES][1539545408]0StopResource: setting CLI values
    2010-04-22 15:38:27.318: [  CRSAPP][1539545408]0CheckResource error for ora.shbaorc07b.LISTENER_CTLGPRD2.lsnr error code = 1
    2010-04-22 15:38:27.321: [  CRSRES][1539545408]0In stateChanged, ora.shbaorc07b.LISTENER_CTLGPRD2.lsnr target is ONLINE
    2010-04-22 15:38:27.322: [  CRSRES][1539545408]0ora.shbaorc07b.LISTENER_CTLGPRD2.lsnr on shbaorc07b went OFFLINE unexpectedly
    2010-04-22 15:38:27.322: [  CRSRES][1539545408]0StopResource: setting CLI values
    2010-04-22 15:38:27.336: [  CRSRES][1539545408]0Attempting to stop `ora.shbaorc07b.LISTENER_CTLGPRD2.lsnr` on member `shbaorc07b`
    one more strange thing happen while restarting the 2nd server, the first server also restarted.
    Please help me regarding this?
    Thanks in advance.

    Hi,
    Thanks.
    please find the OS version
    Linux shbaorc07a.corp.shire.com 2.6.18-53.1.14.el5 #1 SMP Tue Feb 19 07:18:46 EST 2008 x86_64 x86_64 x86_64 GNU/Linux
    database version:
    10.2.0.4.0
    Node 2:
    [    CSSD]2010-04-22 19:41:19.438 [1273047360] >TRACE: clssgmCleanupGrocks: cleaning up grock IGDPAXPRDALL type 2
    [    CSSD]2010-04-22 19:41:19.438 [1273047360] >TRACE: clssgmCleanupOrphanMembers: cleaning up remote mbr(1) grock(IGDPAXPRDALL) birth(2/0)
    [    CSSD]2010-04-22 19:41:19.438 [1273047360] >TRACE: clssgmCleanupGrocks: cleaning up grock IGGMCXPRDALL type 2
    [    CSSD]2010-04-22 19:41:19.438 [1273047360] >TRACE: clssgmCleanupGrocks: cleaning up grock IGEASYPRDALL type 2
    [    CSSD]2010-04-22 19:41:19.438 [1273047360] >TRACE: clssgmCleanupOrphanMembers: cleaning up remote mbr(1) grock(IGEASYPRDALL) birth(2/0)
    [    CSSD]2010-04-22 19:41:19.438 [1273047360] >TRACE: clssgmCleanupGrocks: cleaning up grock IGCTRMPRDALL type 2
    [    CSSD]2010-04-22 19:41:19.438 [1273047360] >TRACE: clssgmCleanupOrphanMembers: cleaning up remote mbr(1) grock(IGCTRMPRDALL) birth(2/0)
    [    CSSD]2010-04-22 19:41:19.439 [1273047360] >TRACE: clssgmCleanupGrocks: cleaning up grock IGEDWXPRDALL type 2
    [    CSSD]2010-04-22 19:41:19.439 [1273047360] >TRACE: clssgmCleanupGrocks: cleaning up grock IGNUSBPRDALL type 2
    [    CSSD]2010-04-22 19:41:19.439 [1273047360] >TRACE: clssgmCleanupGrocks: cleaning up grock IGETLXPRDALL type 2
    [    CSSD]2010-04-22 19:41:19.439 [1273047360] >TRACE: clssgmCleanupOrphanMembers: cleaning up remote mbr(1) grock(IGETLXPRDALL) birth(2/0)
    [    CSSD]2010-04-22 19:41:19.439 [1273047360] >TRACE: clssgmCleanupGrocks: cleaning up grock IGCTXXPRDALL type 2
    [    CSSD]2010-04-22 19:41:19.439 [1273047360] >TRACE: clssgmCleanupOrphanMembers: cleaning up remote mbr(1) grock(IGCTXXPRDALL) birth(2/0)
    [    CSSD]2010-04-22 19:41:19.439 [1273047360] >TRACE: clssgmCleanupGrocks: cleaning up grock IGVVC30PRDALL type 2
    [    CSSD]2010-04-22 19:41:19.439 [1273047360] >TRACE: clssgmCleanupGrocks: cleaning up grock IGVUM30PRDALL type 2
    [    CSSD]2010-04-22 19:41:19.439 [1273047360] >TRACE: clssgmCleanupGrocks: cleaning up grock #CSS_CLSSOMON type 2
    [    CSSD]2010-04-22 19:41:19.439 [1273047360] >TRACE: clssgmCleanupOrphanMembers: cleaning up remote mbr(1) grock(#CSS_CLSSOMON) birth(2/0)
    [    CSSD]2010-04-22 19:41:19.445 [1273047360] >TRACE: clssgmEstablishConnections: 3 nodes in cluster incarn 5
    [    CSSD]2010-04-22 19:41:19.449 [1231087936] >TRACE: clssgmPeerListener: connects done (3/3)
    [    CSSD]2010-04-22 19:41:19.449 [1273047360] >TRACE: clssgmEstablishMasterNode: MASTER for 5 is node(3) birth(1)
    [    CSSD]2010-04-22 19:41:19.458 [1231087936] >TRACE: clssgmHandleDBDone(): src/dest (3/65535) size(72) incarn 5
    [    CSSD]CLSS-3000: reconfiguration successful, incarnation 5 with 3 nodes
    [    CSSD]CLSS-3001: local node number 2, master node number 3
    [    CSSD]2010-04-22 19:41:19.458 [1273047360] >TRACE: clssgmReconfigThread: completed for reconfig(5), with status(1)
    [    CSSD]2010-04-22 19:49:20.816 [1189128512] >TRACE: clssnmConnComplete: probe from node 1, your version: 10.2.1.2
    , support PENDINA: 1
    [    CSSD]2010-04-22 19:49:20.816 [1189128512] >TRACE: clssnmConnComplete: MSGSRC 1, type 5, node 1, flags 0x0001, con 0x2aaab01abb00, probe (nil)
    [    CSSD]2010-04-22 19:49:20.816 [1189128512] >TRACE: clssnmConnComplete: node 1, shbaorc07a, con(0x2aaab01abb00), probcon((nil)), ninfcon((nil)), node unique 1271962158, prev unique 0, msg unique 1271962158 node state 0
    [    CSSD]2010-04-22 19:49:20.816 [1189128512] >TRACE: clssnmsendConnAck: node 1, node state 0
    [    CSSD]2010-04-22 19:49:20.816 [1189128512] >TRACE: clssnmConnComplete: connecting to node 1 (con 0x2aaab01abb00), ninfcon (0x2aaab01abb00), state (0)
    [    CSSD]2010-04-22 19:49:20.816 [1189128512] >TRACE: clssnmConnComplete: connected to node 1 (con 0x2aaab01abb00), ninfcon (0x2aaab01abb00), state (0), flag (1037)
    [    CSSD]2010-04-22 19:49:20.927 [1262557504] >TRACE: clssnmDoSyncUpdate: Initiating sync 6
    [    CSSD]2010-04-22 19:49:20.927 [1262557504] >TRACE: clssnmDoSyncUpdate: diskTimeout set to (57000)ms
    [    CSSD]2010-04-22 19:49:20.927 [1262557504] >TRACE: clssnmSetupAckWait: Ack message type (11)
    [    CSSD]2010-04-22 19:49:20.927 [1262557504] >TRACE: clssnmSetupAckWait: node(1) is ALIVE
    [    CSSD]2010-04-22 19:49:20.927 [1262557504] >TRACE: clssnmSetupAckWait: node(2) is ALIVE
    [    CSSD]2010-04-22 19:49:20.927 [1262557504] >TRACE: clssnmSetupAckWait: node(3) is ALIVE
    [    CSSD]2010-04-22 19:49:20.927 [1262557504] >TRACE: clssnmSetupAckWait: node(4) is ALIVE
    [    CSSD]2010-04-22 19:49:20.927 [1262557504] >TRACE: clssnmSendSync: syncSeqNo(6)
    [    CSSD]2010-04-22 19:49:20.927 [1189128512] >TRACE: clssnmHandleSync: diskTimeout set to (57000)ms
    [    CSSD]2010-04-22 19:49:20.927 [1262557504] >TRACE: clssnmWaitForAcks: Ack message type(11), ackCount(4)
    [    CSSD]2010-04-22 19:49:20.927 [1189128512] >TRACE: clssnmHandleSync: Acknowledging sync: src[2] srcName[shbaorc07b] seq[1] sync[6]
    6911,1 99%
    node 1:
    [    CSSD]2010-04-22 18:56:00.996 [1189128512] >USER: clssnmHandleUpdate: SYNC(4) from node(4) completed
    [    CSSD]2010-04-22 18:56:00.996 [1189128512] >USER: clssnmHandleUpdate: NODE 1 (shbaorc07a) IS ACTIVE MEMBER OF CLUSTER
    [    CSSD]2010-04-22 18:56:00.996 [1189128512] >USER: clssnmHandleUpdate: NODE 2 (shbaorc07b) IS ACTIVE MEMBER OF CLUSTER
    [    CSSD]2010-04-22 18:56:00.996 [1189128512] >USER: clssnmHandleUpdate: NODE 3 (shbaorc07c) IS ACTIVE MEMBER OF CLUSTER
    [    CSSD]2010-04-22 18:56:00.996 [1189128512] >USER: clssnmHandleUpdate: NODE 4 (shbaorc07d) IS ACTIVE MEMBER OF CLUSTER
    [    CSSD]2010-04-22 18:56:00.996 [1189128512] >TRACE: clssnmHandleUpdate: diskTimeout set to (200000)ms
    [    CSSD]2010-04-22 18:56:01.008 [1273047360] >TRACE: clssgmReconfigThread: started for reconfig (4)
    [    CSSD]2010-04-22 18:56:01.008 [1273047360] >USER: NMEVENT_RECONFIG [00][00][00][1e]
    [    CSSD]2010-04-22 18:56:01.020 [1273047360] >TRACE: clssgmEstablishConnections: 4 nodes in cluster incarn 4
    [    CSSD]2010-04-22 18:56:01.096 [1231087936] >TRACE: clssgmInitialRecv: (0x2aaab4001310) accepted a new connection from node 2 born at 4 active (4, 4), vers (10,3,1,2)
    [    CSSD]2010-04-22 18:56:01.096 [1231087936] >TRACE: clssgmInitialRecv: conns done (4/4)
    [    CSSD]2010-04-22 18:56:01.096 [1273047360] >TRACE: clssgmEstablishMasterNode: MASTER for 4 is node(3) birth(1)
    [    CSSD]2010-04-22 18:56:01.138 [1231087936] >TRACE: clssgmHandleDBDone(): src/dest (3/65535) size(72) incarn 4
    [    CSSD]CLSS-3000: reconfiguration successful, incarnation 4 with 4 nodes
    [    CSSD]CLSS-3001: local node number 1, master node number 3
    [    CSSD]2010-04-22 18:56:01.138 [1273047360] >TRACE: clssgmReconfigThread: completed for reconfig(4), with status(1)
    [    CSSD]2010-04-22 19:40:00.531 [1231087936] >TRACE: clscsendx: (0x2aaab00fa3b0) Connection not active
    [    CSSD]2010-04-22 19:40:00.531 [1231087936] >TRACE: clssgmSendClient: Send failed rc 6, con (0x2aaab00fa3b0), client (0x2aaab00fa6b0), proc ((nil))
    [    CSSD]2010-04-22 19:40:19.410 [1231087936] >TRACE: clscsendx: (0x2aaab02acd00) Connection not active
    [    CSSD]2010-04-22 19:40:19.410 [1231087936] >TRACE: clssgmSendClient: Send failed rc 6, con (0x2aaab02acd00), client (0x2aaab02ad7c0), proc ((nil))
    [    CSSD]2010-04-22 19:40:19.410 [1231087936] >TRACE: clscsendx: (0x2aaab02ad570) Connection not active
    [    CSSD]2010-04-22 19:40:19.410 [1231087936] >TRACE: clssgmSendClient: Send failed rc 6, con (0x2aaab02ad570), client (0x2aaab02af660), proc ((nil))
    [    CSSD]2010-04-22 19:40:19.438 [1231087936] >TRACE: clscsendx: (0x2aaab0295780) Connection not active
    [    CSSD]2010-04-22 19:40:19.438 [1231087936] >TRACE: clssgmSendClient: Send failed rc 6, con (0x2aaab0295780), client (0x2aaab02859f0), proc ((nil))
    [    CSSD]2010-04-22 19:40:19.476 [1231087936] >TRACE: clscsendx: (0x2aaab029d150) Connection not active
    [    CSSD]2010-04-22 19:40:19.476 [1231087936] >TRACE: clssgmSendClient: Send failed rc 6, con (0x2aaab029d150), client (0x2aaab029dbb0), proc ((nil))
    [    CSSD]2010-04-22 19:40:19.476 [1231087936] >TRACE: clscsendx: (0x2aaab029d890) Connection not active
    [    CSSD]2010-04-22 19:40:19.476 [1231087936] >TRACE: clssgmSendClient: Send failed rc 6, con (0x2aaab029d890), client (0x2aaab029e1b0), proc ((nil))
    [    CSSD]2010-04-22 19:40:19.707 [1231087936] >TRACE: clscsendx: (0x2aaab02cdb30) Connection not active
    [    CSSD]2010-04-22 19:40:19.707 [1231087936] >TRACE: clssgmSendClient: Send failed rc 6, con (0x2aaab02cdb30), client (0x2aaab02cdf60), proc ((nil))
    [    CSSD]2010-04-22 19:40:19.710 [1231087936] >TRACE: clscsendx: (0x2aaab02ca9e0) Connection not active
    please help me on this.
    Thanks
    Edited by: user646034 on Apr 26, 2010 1:13 AM

  • Find particular database role permission on all the databases of an instance

    Hi Team,
    I want to find particular database role permission on all the databases of a instance.
    Example: 50 databases are running on an instance. I want to find datareader permission of ABCDE account, on which of the databases it exist?
    Please provide me a customized script to find it.
    Thanks
    Kumar

    Hi K735,
    According to your description, you want to find databases where a specific database role of a specific user exists. To do this, you could execute the stored procedure below by proving a value for each of the two parameters (@databaseRole, @user)  to
    specify the database role and the user as the following example: execute findDatabaseRole 'db_datareader', 'testUser'
    USE master
    GO
    CREATE PROCEDURE dbo.findDatabaseRole
    @databaseRole VARCHAR(200),
    @user VARCHAR(250)
    AS
    DECLARE @DBuser_sql VARCHAR(4000)
    DECLARE @DBuser_table TABLE
    AssociatedDatabaseRole VARCHAR(200),
    DBName VARCHAR(200),
    UserName VARCHAR(250),
    LoginType VARCHAR(500)
    INSERT @DBuser_table
    EXEC sp_MSforeachdb @command1='SELECT USER_NAME(b.role_principal_id) AS AssociatedDatabaseRole, "[?]" AS DBName, a.name AS Name,
    a.type_desc AS LoginType FROM [?].sys.database_principals a
    , [?].sys.database_role_members b where a.principal_id=b.member_principal_id and
    a.sid NOT IN (0x01,0x00) AND a.sid IS NOT NULL AND a.type NOT IN ("C")
    AND a.is_fixed_role <> 1 AND a.name NOT LIKE "##%" AND "?" NOT IN ("master","msdb","model","tempdb")
    ORDER BY Name'
    SELECT AssociatedDatabaseRole, DBName,UserName,LoginType
    FROM @DBuser_table WHERE UserName=@user and AssociatedDatabaseRole=@databaseRole
    group by AssociatedDatabaseRole, DBName,UserName,LoginType
    GO
    Regards,
    Michelle Li

  • To read all the database fields used in a Crystal report 10 file using Vb 6 Code

    Hi
    Iam in development of an Application in Visual basic which lists all the
    database fields used in a particular report (crystal 10)
    In simple i need to show all the checked fields in the database fields section in field explorer section of the crystal report file.
    regards
    venkateshG

    Please re-post if this is still an issue to the Legacy Application Development SDKs Forum or purchase a case and have a dedicated support engineer work with you directly

Maybe you are looking for

  • Recovering Data from an odb file found on a Dell X51 mobile device.

    I have had a db get over written that wasn't getting backed up and now all I have to recover from is an Ora 10g LIte R2 odb file recovered from a Dell Axim X51. I am wondering what is the best way to recover this data from the odb file. Thank you.

  • How long does it take to get my iBooks Store Application accepted?

    I have just created my first book with iBooks Author and on Friday went through the process of getting it published to iBooks. I had to fill out an application that I believe went to Apple. It has been three days now. Do I have to wait 7 days like th

  • What is the difference between 3.6.25 and the latest ones like 9.0.1

    I'm not sure I understand the difference between the 3.6 versions and the much newer 9.0.1 version. I have much more trouble with this newer version--in fact had to uninstall it because it kept crashing. I understand that there are more bells and whi

  • End user? in apex 4.2.3

    hi i have searched forum but could not understand the solutions yet i have create an user without admin and developing rights how should i enable applications created for view only? a step by step ...instructions pleaseeeeeeeeee

  • Possible confilt: BB desktop software and iCloud

    Running on a PC Windows 8.1 64 bit; I have iCloud control panel running and BlackBerry desktop software. My iPhone syncs with iCloud through Outlook 2010. Is there a known conflict with the BlackBerry desktop software?