[how to] How to UPDATE a table for the level of parents in a column? |
- How to UPDATE a table for the level of parents in a column?
- Where can I see the log in MSSQL 2008 R2 [duplicate]
- What am I doing wrong in mysql database?
- Several stays: many-to-many relationship
- FOR loop oracle query with calulation
- Concatenate one-to-many field in single result?
- How to increase MySQL performance with joins
- MDX Crossjoin filtering on different hierarchies from the same dimension is very slow
- MS SQL 2012 Express dying randomly
- Restore of database failed
- How to transfer logins from sql server 2012 to 2008?
- is oracle free to download
- pg_upgrade unrecognized configuration parameter "unix_socket_directory"
- When was Torn Page Detection introduced to SQL Server and what is its upgrade behavior?
- Lock a MySQL database for upgrade
- retrieve data based on a condition
- Is there a way to achieve Workload Management in MySQL?
- Duration Field in Profiler
- Reasons to Backup (or not backup) QA and Dev Databases
- How to store object with property of generic type in DB
- How to access a SQL Server database from other computer connected to the same workgroup?
- Improve performance of transactional replication
- Moving large databases
- How should I set up my social network database design?
- Database user specified as a definer
- How do I execute an Oracle SQL script without sqlplus hanging on me?
- SSRS appears to be ignoring Permissions set using Report Manager
- Powershell to dump database schema to text file
How to UPDATE a table for the level of parents in a column? Posted: 18 Sep 2013 09:06 PM PDT I have a table with internal parents as where How can I update the table to assign the values of |
Where can I see the log in MSSQL 2008 R2 [duplicate] Posted: 18 Sep 2013 07:33 PM PDT This question already has an answer here: I want to know if is possible that MSSQL 2008 r2 has a log, when someone run an alter table or modify a SP MSSQL save this action and who did it, if this is possible how can I see the log. Sorry for my English |
What am I doing wrong in mysql database? Posted: 18 Sep 2013 08:56 PM PDT I'm creating a trigger that deletes rows from a table when they are inserted. However, when the trigger executes I get the following message:
What do I need to do for this trigger to work? |
Several stays: many-to-many relationship Posted: 18 Sep 2013 07:36 PM PDT Could you please help me with the following problem? I'm a total novice in DB design. I have a table with researchers who visit our university. They come for some period of time (from, till). Now, how can I save in the database if somebody came several times? I have an entry already for a particular person and need to add some other stays and be able to see them in a form. My idea was: this must be a many-to-many relationship. Ok. Then I need a third table Researcher/Stay. And then I don't know what to do next. In Stay-table "from+till" is a key. I haven't seen examples with double-value key in a many-to-many relationship and don't know what to do next. |
FOR loop oracle query with calulation Posted: 18 Sep 2013 03:36 PM PDT I have a list of distinct areas, and would like to track statistics for those districts in a SQL statement. I currently have a setup that runs some summary information, but it doesn't include the whole list. What I'd like to do is Select a distinct array of values from 1 table, then run SQL for each of those values against a few other tables and populate a third table. I've done a fair amount of Googling, and see that I can loop using "LOOP" or feed in the distinct values via a CURSOR. Here's my SQL I'm using now, but if there isn't a dispatchgroup that is in the current outages table, it doesn't show statistics for that dispatch group. When I try adding the |
Concatenate one-to-many field in single result? Posted: 18 Sep 2013 02:06 PM PDT Say I have the following query: Which gives the following results: How can I modify the query to return something like this: |
How to increase MySQL performance with joins Posted: 18 Sep 2013 03:13 PM PDT I have a MySQL database with InnoDB engine. Particularly one of my queries became very slow. The query is shown below: How it works: I get through SOAP webservice an XML document. In the XML document I get the article number and supplier number and I query my database to see if the article exists. I use indexes on the rows which I search. Every day I purge empty fields to optimize my database How can I increase the speed of the query? Some database and hardware information:
I hope someone can help me with this problem. |
MDX Crossjoin filtering on different hierarchies from the same dimension is very slow Posted: 18 Sep 2013 01:42 PM PDT I have an MDX query that was written by an MDX novice that is excessively slow (the query, that is, not the MDX novice). And I am also an MDX novice. Here is the query: I have very little knowledge of MDX, but through some trial-and-error, I have found that removing the two One thing I did try, is to put Any help would be greatly appreciated. |
MS SQL 2012 Express dying randomly Posted: 18 Sep 2013 11:39 AM PDT I have a Windows 2008R2 box with MS SQL 2012 Express. The problem is that randomly(sometimes twice a day, sometimes once a month) the SQL Server dies leaving those messages in error log: When I try to start the service again, it says: After reboot of the machine it starts working again. How can I fix this problem? |
Posted: 18 Sep 2013 12:03 PM PDT I wanna restore my database and i use sql server 2012 express edition but when i restore my backup file in sql server management studio, i take this error:
My .bak file is 8.27 gb and my C disk has 44.1 gb free space. Why do i take this error ? how can i fix this error ? Thanks in advance. |
How to transfer logins from sql server 2012 to 2008? Posted: 18 Sep 2013 11:51 AM PDT I need to transfer dynamically logins from SQL Server 2012 to SQL Server 2008 and I can't because when I get the hashed password on 2012 does not have a valid format to be used on 2008. I know that SQL Server change its legacy of hashing on 2012. So that the hash is bigger than those of 2008. Is there a way to perform this? Regards. |
Posted: 18 Sep 2013 03:24 PM PDT I am a Java developer and currently I use PostgreSQL as the RDBMS. However, I would also like to learn Oracle. So can I download a latest version of Oracle (11g I guess) for free ? I found this link : http://www.oracle.com/technetwork/database/enterprise-edition/downloads/112010-linx8664soft-100572.html and it seems that it is downloadable. However, I know that Oracle RDBMS (or ORDBMS) is a proprietary one. So how does that work ? Also, will there be PL/SQL along with the download of Oracle 11g ? |
pg_upgrade unrecognized configuration parameter "unix_socket_directory" Posted: 18 Sep 2013 09:00 AM PDT I'm trying to upgrade Postgresql from 9.2 to 9.3 in Fedora 18 using this command as the postgres user The error in the log
As pointed by a_horse in the comments that parameter was replaced by Any ideas? |
When was Torn Page Detection introduced to SQL Server and what is its upgrade behavior? Posted: 18 Sep 2013 03:22 PM PDT There are two different options in modern SQL Server for page verify; being TORN PAGE DETECTION and CHECKSUM. NONE is also of course an option. I believe CHECKSUM was introduced in SQL Server 2005 and that upgrading or restoring a DB from a prior version would maintain its previous page verify method. i.e. there was no implicit upgrade. I have a production database that went into production using SQL Server 2000, though may have been developed against SQL Server 7.0, and has since moved to a SQL Server 2008 R2 server. Page Verify is set to NONE though I expected it to be TORN PAGE DETECTION. I was wondering when TORN PAGE DETECTION became a Page Verify feature and SQL Server, and how it behaves when migrated or upgraded to newer editions. |
Lock a MySQL database for upgrade Posted: 18 Sep 2013 08:54 AM PDT I've looked around for solutions to lock a whole database, and the only one I found so far is FLUSH TABLES WITH READ LOCK. This is fine for backups, but unfortunately I can't use that to prevent other accesses to the database while I'm patching my database with schema changes. If I run an
Is there a way to just prevent other database connections from accessing the database temporarily while I'm patching the database? I don't want to actively refuse the other connections, I'd just like to put them "on hold" until the patching is finished (a matter of seconds). How can I do that? |
retrieve data based on a condition Posted: 18 Sep 2013 11:29 AM PDT I have 2 tables, I need : if If |
Is there a way to achieve Workload Management in MySQL? Posted: 18 Sep 2013 06:18 PM PDT Is there a way to set up Workload Management in MySQL (in particular v5.5 on AWS RDS)? By Workload Management I mean the functionality implemented in e.g. Teradata, RedShift that allows prioritization of queries. In particular, I want to give high priority to tactical, short running queries from applications and give low priority to longer running background queries. |
Posted: 18 Sep 2013 01:05 PM PDT I would like to monitor the script which takes more than 25 Sec. When i use filter i am not able to see the duration taken by the script. How can we get the time taken to execute the query. My Requirement is simple: |
Reasons to Backup (or not backup) QA and Dev Databases Posted: 18 Sep 2013 01:32 PM PDT Pretty simple question: is it standard/best practice to backup dev and QA instances of the database? Assume that the schema information is kept in some form of source control. |
How to store object with property of generic type in DB Posted: 18 Sep 2013 03:37 PM PDT In my business domain there exists an entity parameter. Beside other properties which are identical for each parameter, they have values. These values can be of different data types. There might be values that are strings, integers, timestamps, IP-Adresses, etc. It is also possible that I need to add another data type later but this should happen not very frequently. New parameters will be inserted frequently. Values of existing parameters will probably be updated several different times. Parameters and values will be read very frequently but only for displaying them to the user, so without any special analytical operation. For the later code (which will be C++) I was thinking of a parameter base class from which subclasses for each data type will be derived. StringParameter, TimestampParameter, etc. I was now wondering how to store parameters in an Oracle 10g database. Ideas so far are
For which option would you go and why? Is there another solution I have not yet thought of? |
How to access a SQL Server database from other computer connected to the same workgroup? Posted: 18 Sep 2013 07:26 PM PDT I have created a C# application which uses a SQL Server database. I have other computers connected to me and to each other in a workgroup. I have shared my C# application with others. When they open the application they get the error
But the application is working fine on my PC. The connection string I am using is which is stored in a The application is working fine on my PC. What must I do? I have enabled the TCP/IP in the server but the same error persists. Some change in connection string or something else? Please help.. Thank you.. |
Improve performance of transactional replication Posted: 18 Sep 2013 09:21 AM PDT I 'm testing implementing transactional replication . The replication works fine if I insert/update handful of rows. The problem occurs when I have a sql job running which deletes/updates & inserts 1000's 15000 plus rows in each database(more than 100) on the server. And this job runs every n minutes. It eventually causes locking issues and slows down replication. The main objective of doing replication is to able to scale horizontally and also improve performance. Following is a quick overview of test environment 2 database server Each server has 100 unique databases & 5 shared database(which are replicated) Any suggestion how to get around the locking issues? Thanks |
Posted: 18 Sep 2013 09:21 PM PDT I have a centos server and /var/lib/mysql/ is 125GB (disk has 1GB free space). Ordinarily I would use mysqldump to backup the databases, but I don't normally work with such large databases, so I need to know the safest way of copying the databases over to a new server. All advice appreciated! |
How should I set up my social network database design? Posted: 18 Sep 2013 10:21 AM PDT I am designing a db for a Social Network type website where users enter lot of information varying from family member details, education, employment, personal favorite such as TV, movie, music, food, books etc using InnoDB and expect exponentially increasing writes but far few reads. I already have 26 tables. |
Database user specified as a definer Posted: 18 Sep 2013 11:21 AM PDT I have a view in my database. problem is below Error SQL query: MySQL said:
i Google for a solution User is created for Host & not for Global. How to create the User for Global ???? |
How do I execute an Oracle SQL script without sqlplus hanging on me? Posted: 18 Sep 2013 04:21 PM PDT For an automated task I would very much like to run some SQL scripts and make sure that
How can i do this with Oracle (and |
SSRS appears to be ignoring Permissions set using Report Manager Posted: 18 Sep 2013 07:21 PM PDT I have setup SSRS on SQL Server 2008 in native mode. As an administrator I can login to report manager, upload reports and run them, and also use the Web Service URL to generate reports. I have also created a local user on the machine, I went into Report Manager as Admin, and at the top level set permissions that should assign the local user to all roles. When I login to the machine as that user, and then navigate to Report Manager I just get the heading for the page, but do not see any of the folders that are configured. I've checked and the folders are set to inherit parent permissions and they are showing the newly created local user in there too. It seems odd that I have set the permissions, yet SSRS is still not showing what I should be able to see. Is there another step I need to take other than configuring the permissions in Report Manager? When logged in as the newly created local user: |
Powershell to dump database schema to text file Posted: 18 Sep 2013 10:07 AM PDT I want to be able to dump a database schema to a sql text file using Powershell. I want this because our DBAs want to be able to do a diff on the file that is committed to SVN. They won't execute it if they can't see what it contains. I've found many scripts that backup to a binary .bak file, but I can't find any that dump as a sql text file. How do you do this in Powershell? |
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