[how to] I am new to the programming field and I am interested in jdbc - Tips or Advice needed |
- I am new to the programming field and I am interested in jdbc - Tips or Advice needed
- Selecting the first purchase item of each customer
- SQL Server 2008 R2 Logs
- Network Databases
- How to determine cause of runtime increase given two query plans with SpillToTempDb warning
- how to fix error #1062 duplicate entry [closed]
- Efficient way to perform approximated search?
- Will SSIS 2012 work with SQL Server 2008R2 (not integrated)
- Enforce indirect relationship
- SQL 2012 indirect checkpoint
- Transactional Replication Concerns
- best relationship for this design?
- Extract part of string based on nth instance of character
- MySQL (v5.6.11) InnoDB 5.6.11 restoring indexes during table copy
- WITH ROLLUP WHERE NULL = x
- Exporting schema data (tables, permisions) into another schema on same database
- MySQL: Error reading communication packets
- Oracle Connection Manager Configuration
- Database migration, how to
- SWITCHOFFSET() not working in SQL Server 2008 R2
- why would command text not execute at all?
- loading a csv file which is on local system in to Mysql DB which is on remote server
- AWS performance of RDS with provisioned IOPS vs EC2
- sp_startpublication_snapshot Parameter(s)
- query processor ran out of internal resources and could not produce a query plan
- Binlog has bad magic number
- What is the recommended way to backup a MySQL/Amazon RDS database to S3?
I am new to the programming field and I am interested in jdbc - Tips or Advice needed Posted: 25 Apr 2013 07:53 PM PDT I am currently acquiring my associates degree in software engineering. I have been told in order to be successful in a computer science field you have to specialized in something. After researching several areas I have decided I want to specialize in Java Database Connectivity. It earns a decent income and seems interesting. I would like to know what the field is like. What the job, bosses/managers, pay, etc. I just want to know as much as I can first hand from the people that currently work in the field. What are some tips you would give a new-comer in college and what do you wish you had known before getting into the industry. I have heard the life of a programmer can be strenuous. I have a husband and two children will I ever have time for them again after I actually start working. FYI, I am going to go directly into my bachelor's degree and possibly my master's in software engineering. Any advice is appreciated. |
Selecting the first purchase item of each customer Posted: 25 Apr 2013 09:10 PM PDT I have a table like this: I need to fetch the first purchased item name by all the id individually. How can I do this? |
Posted: 25 Apr 2013 05:43 PM PDT I just want to know if SQL Server 2008 R2 has a default logging scheme for SELECT statements (or any other T-SQL for that matter). If yes, where can I see it. If none, how can I set it. I tried searching Google, if you could just point me to a source that is already existing. Thank you very much. |
Posted: 25 Apr 2013 05:17 PM PDT I am doing some research on network database e.g. IDMS-type databases. Are there any free/open source network databases available? TIA |
How to determine cause of runtime increase given two query plans with SpillToTempDb warning Posted: 25 Apr 2013 04:44 PM PDT Two actual query plans were captured for two executions of one query:
Since the graphical plans look identical to me, I dumped the XML versions and performed a diff to look at the text differences to be sure. There are 2 "SpillToTempDb" warnings on the fast side and four on the slow side. Looking that the 2 extra on the slow side: The cost is the same (1%) for both the slow and fast cases. Does that mean the warning can be ignored? Is there a way to show "actual" times or costs. That would be so much better! Actual row counts are the same for the operation with the spill. Besides performing a manual text diff of xml execution plans to find the differences in warnings, how can I tell what the 1500% increase in runtime is actually due to? Differences except "RunTimeCountersPerThread" lines: Should I be looking at the differences in the RunTimeCountersPerThread lines? It appears it is just the order that is different between the Threads. |
how to fix error #1062 duplicate entry [closed] Posted: 25 Apr 2013 12:30 PM PDT whats causing this error SQL query: this is happening when i try to delete a record from my database |
Efficient way to perform approximated search? Posted: 25 Apr 2013 12:20 PM PDT I have to perform a join between As it happens though, the
To tackle the situation, there are a few possibilities I am experimenting, but my doubt is on which architecture should I use to perform a very efficient "approximated join" - these tables are partitioned, sub-partitioned and each sub part may contain billions of records... (although I have a reasonable amount of resources). For once, I thought of storing the unique sencond of the event (i.e. second it happened since julian calendar) on both sides so the real join (give a " But I am unsure of how efficiently would that perform with the indexes and scans.. This is just an example, I am not stuck to any sort of architecture. Also, I am using Oracle 11gR2. |
Will SSIS 2012 work with SQL Server 2008R2 (not integrated) Posted: 25 Apr 2013 05:20 PM PDT Our company has SQL Server 2008R2 and plans to upgrade to 2012 in late 2013 or early 2014. I would like to use SSIS 2012 now as we do have the software. We have a company policy where we cannot run SSIS packages on the database server itself. We run them from another app server, not integrated services. My question is, if I were to install all 2012 composent for SSIS on our app server would there be any potental issues? I have not used SSIS 2012 yet so I do not know if the OLE DB compoents Id use to point to our SQL 2008 instance would be an issue. |
Posted: 25 Apr 2013 11:15 AM PDT Given the following structure There's a way to enforce that Table1.id3 only can seted to values in Table4.id3 where Table4.id2 = Table1.id2? Initially I thought in a CHECK constraint, but subqueries are not allowed. |
Posted: 25 Apr 2013 06:15 PM PDT I am trying to understand where to draw a fine line for Indirect Checkpoint that was introduced in SQL 2012. Based on my understanding SQL Server does checkpoint to flush dirty pages out to the disk, but frequency or time interval between checkpoints depends on many factors. It is controlled by server level configuration called recovery interval and default value for this settings is zero which means in a fairly busy system SQL server can perform checkpoint every minute and can result in database recovery time of less than a minute. SQL 2012 introduced indirect checkpoint – which in turn can allow you to control recovery interval for individual databases. At a high level this setting appears to a good thing, it allows to even out disk IO by performing more frequent checkpoints instead of doing a periodic checkpoint which can result in flooding the underlying IO subsystem Now my questions are a)Does indirect checkpoint takes into considerations number of dirty buffers instead of number of transaction which usually automatic checkpoint was using? b)I keep finding in many blogs that indirect checkpoint setting is very dangerous as
c) Does indirect checkpoint setting is more suitable for Data Warehouse vs OLTP type workload? What scenarios you consider for SQL database in question before you start leveraging indirect checkpoint? |
Transactional Replication Concerns Posted: 25 Apr 2013 12:26 PM PDT We are debating an architecture that employs sql server 2012 and transaction replication. Idea is to offload reporting activity to a secondary server and have the ability to include/exclude what is replicated by keeping historic data on the reporting server. Couple of questions:
Thanks! |
best relationship for this design? Posted: 25 Apr 2013 12:57 PM PDT There is a table There is also a table
Which kind of relationship in Workbench it should be? As far as I understand:
Please advise me what is the best relationship in this case. |
Extract part of string based on nth instance of character Posted: 25 Apr 2013 08:38 PM PDT I am trying to find a way to extract part of the strings below. I need everything between the 6th and 7th Desired results: |
MySQL (v5.6.11) InnoDB 5.6.11 restoring indexes during table copy Posted: 25 Apr 2013 08:06 PM PDT When i see the profile for my optimize table query here is what i see for the InnoDB storage engine 5.6.11: +----------------------+------------+ | Status | Duration | +----------------------+------------+ | starting | 0.023145 | | checking permissions | 0.003454 | | Opening tables | 0.000054 | | System lock | 0.000056 | | init | 0.000004 | | Opening tables | 0.000726 | | setup | 0.009575 | | creating table | 0.005515 | | After create | 0.000013 | | System lock | 0.073562 | | copy to tmp table | 999.999999 | | rename result table | 1.218323 | | end | 0.000026 | | Opening tables | 0.000625 | | System lock | 0.424206 | | query end | 0.000010 | | closing tables | 0.000004 | | freeing items | 0.000095 | | cleaning up | 0.000040 | +----------------------+------------+ I have one primary key and one secondary key. So since i don't see the index being restored in the profile i assumed that the index is being restored along side the table copy. This is very far from optimal right ? Why hasn't this been handled in InnoDB ? Or am i missing something here. Please let me know. Thanks. |
Posted: 25 Apr 2013 11:10 AM PDT I tried to find this question somewhere else on here, and found a couple that were similar to it -- but all the answers seemed pretty convoluted, and I think it was surprising to me because I just imagined that SQL would have a way easier way to do this. Essentially, I'm using a Is there an easy way to substitute something saying if "NULL" is in the "Person" column, then make And if that's weirdly complicated, I'd be totally fine with just calling all of them "Total." Thanks! |
Exporting schema data (tables, permisions) into another schema on same database Posted: 25 Apr 2013 10:55 AM PDT I want to take data from one schema schema1 and put it into schema2 this should be quite easy to do but i have searched through the oracle documentation and can't find a way to do it. |
MySQL: Error reading communication packets Posted: 25 Apr 2013 05:31 PM PDT I get this warning in mysql, I have been through few topics in google and according to some suggestion I increased the I am using Drupal 7, and yes there are lots of blob data types, but Any other workaround how to overcome this warning ? |
Oracle Connection Manager Configuration Posted: 25 Apr 2013 11:40 AM PDT I've a problem with Oracle Connection Manager and I've read the Oracle topic about it at OCM but it doesn't work well An image Inside Diagram describing the diagram I want to configure The IP for each machine is
And these are the files for each machine 1.cmhost1(Proxy server) 1 file called cman.ora 2.dbhost1(original server) 3 file, and for each one I've added some lines as following tnsnames.ora listener.ora init.ora 3.client1 (the client) has one file tnsnames.ora The Problems :
Any Help will be appreciated |
Posted: 25 Apr 2013 11:22 AM PDT I have two databases DB1 and DB2. In both databases exists this two tables mo_sms and mt_sms. This is the structure of those tables: I have some values in DB2 that should be migrated (inserted) in DB1. My problem here is I don't know how to get the records from DB2.mo_sms tables and those relations from DB2.mt_sms and then insert to DB1.mo_sms and DB2.mt_sms. For example I'll get all the records from mo_sms with |
SWITCHOFFSET() not working in SQL Server 2008 R2 Posted: 25 Apr 2013 09:05 PM PDT We have been encountering problem in the builtin function
Our code works fine in SQL Server 2012, so I don't think we have problems in syntax. Does anyone here know any relative CU or SP's of SQL Server 2008 R2 that tends to fix this issue? Actually we have development machines that the code is working fine and it is running in SS 2008 R2 but it has update. We have tried to replicate the CU and SP's of that machine but we are very unfortunate. This is the part of the query that does not work: We have also made a solution for this. We made the UNION to UNION ALL and it is working fine but with large data only. When there is small data it gives again the error. |
why would command text not execute at all? Posted: 25 Apr 2013 05:04 PM PDT in my report i have:: i am using sql server profiler to see exactly what statement is being set. i have set only two filters:
yet after running the report, no statement gets intercepted. i suspect that because i am a beginner at SSRS, i am missing something crucial here. for what reason would commandtext not be executed at all? i did follow this question, to make sure that i am using sql profiler correctly, and indeed, i am: http://stackoverflow.com/questions/9107383/sql-server-profiler-capture-calls-to-your-databases-stored-procs-during-ssrs another bit of important information is although the chart shows no data: i actually am indeed showing data when i run the commandtext from ssms! |
loading a csv file which is on local system in to Mysql DB which is on remote server Posted: 25 Apr 2013 01:04 PM PDT Can we directly load a CSV file ( which is on the local system) on MYSQL DB ( which is installed on the Remote server ) ? 'load data infile into table name' command can only be used for loading in local system only. |
AWS performance of RDS with provisioned IOPS vs EC2 Posted: 25 Apr 2013 11:04 AM PDT Has anyone done a performance comparison of AWS RDS with the new provisioned IOPS vs EC2? I've found plenty of non-high IOPS RDS vs EC2 but nothing with the new high IOPS feature in RDS. |
sp_startpublication_snapshot Parameter(s) Posted: 25 Apr 2013 03:04 PM PDT I am creating a stored procedure that:
Here is my new brick wall... On this DB server, I have a 'shell' db that they will be running the SP from, that has a history table so I can keep track of who created/deleted databases using my SP's... The only parameter for sp_startpublication_snapshot is @publication... I can give it the publication name, but since I am not running it from the publishing database, how do I specify the publishing database? i.e.: the publication shows up as: but I am running the script from the database [WC_QACatalog] Any ideas about how to accomplish this? Thank you, Wes |
query processor ran out of internal resources and could not produce a query plan Posted: 25 Apr 2013 02:11 PM PDT This is showing up in the logs several times a night. How do I find the query causing the issue? SQL Server 2008 R2 Sp1. Thank you |
Posted: 25 Apr 2013 09:04 PM PDT I keep getting this error whenever I start MySQL. I have already tried this. I have an EasyPHP 12.1 setup on Windows 7x64 PC. |
What is the recommended way to backup a MySQL/Amazon RDS database to S3? Posted: 25 Apr 2013 02:47 PM PDT I have two purposes for this:
Currently it does not appear that Amazon supports either of these two use cases out of the box. I have seen mysqldump and xtrabackup (see form post) mentioned. I have also seen a more complicated process (documented here)
Tips and suggestions are appreciated. |
You are subscribed to email updates from Recent Questions - Database Administrators Stack Exchange To stop receiving these emails, you may unsubscribe now. | Email delivery powered by Google |
Google Inc., 20 West Kinzie, Chicago IL USA 60610 |
No comments:
Post a Comment