[how to] Relational vs Non-Relational Database for Events Database |
- Relational vs Non-Relational Database for Events Database
- Accidentally Deleted SQL Server Log Reader Service Account
- PostgreSQL and default Schemas
- sql web-application Connection String for member of a domain group
- Accidentally turned down SQL memory too low to log in, how do I fix?
- Unable to import exported Wordpress DB - #2006 - MySQL server has gone away
- Reasons for incremental backup on Progress OpenEdge
- Why use separate databases for high traffic/volume tables?
- Clustered vs Nonclustered Index
- IIS takes longer to run queries than SMSS
- Access 2007 - Splitting single record into component parts similar to Microsoft Money's split transaction
- Tool to export data with all relational data?
- Limiting user access to tables based on a ROLE
- SQL Server to compress the backup file from procedure
- Server side trace to database
- Proper way to export database to other servers
- Migrating from SQL Server 2005 to SQL Server 2008 R2 on a different box
- Replication on MySQL server
- query taking long time to execute.we are expecting result in very quickly anybody please rewrite it
- Merge Replication identity field issues
- MySQL Slaves lag behind master
- MySQL replication between VPS and shared host
- Partition of tablespace
- SQL Server equivalent to functionality of Oracle RAC?
- Call a stored procedure from a trigger
- How to safely change MySQL innodb variable 'innodb_log_file_size'?
- How do you document your databases?
Relational vs Non-Relational Database for Events Database Posted: 19 Apr 2013 04:43 PM PDT I'm trying to find out whether an SQL or no-SQL solution would be better for creating an events database. I'm creating a ticketing system, similar to ticket master. I know that for either database-type storage is the simple part. The deciding factor is the performance of the following queries:
Events basically have ID, NAME, LOCATION, VENUE, START DATE, END DATE In a relational schema I would have an EVENTS table, a DATES table for storing dates separately because events can occur on more than one date and they are repeatable, and a VENUES table from which the event location (country, city, etc) can be cross-referenced. I have no experience with no-SQL databases, so if you vote for no-SQL please suggest how you see the "schema" being organized and which particular DB. I hope this question is specific enough. Query performance is the deciding factor. |
Accidentally Deleted SQL Server Log Reader Service Account Posted: 19 Apr 2013 05:07 PM PDT Uh, I accidentally deleted the Security Login in my SQL server that allows for the reading of log files. Now, I can no longer see any of the log files in my SQL Server Logs node of SMSS:( What account is it so that I can add back the login? I think it started with "BUILT IN" or something. |
PostgreSQL and default Schemas Posted: 19 Apr 2013 04:11 PM PDT Whenever I create a brand new database in PostgreSQL Maestro it creates the following list of default schemas: Now from my understanding Schemas are like folders for organization, etc. So the question I have is are all these schemas needed when I create a new DB? If so what are they used for on PG side as I won't ever use them myself. I can understand |
sql web-application Connection String for member of a domain group Posted: 19 Apr 2013 05:09 PM PDT In my testing environment, I have a local sql express (2008R) server instance. I've created a domain group and given it a login in the database. But now, how do I consctruct the connection string for my web-application? Do I give it the username and password of one of the members of the group? And, what do I put for a "user" in the Database security section? The group itself doesn't have a password. Do I have to add the service account from the application pool to the AD group? Here is what I have for a connection string; but this allows all connections, it seems: |
Accidentally turned down SQL memory too low to log in, how do I fix? Posted: 19 Apr 2013 02:09 PM PDT I turned down the Maximum Memory of the my SQL Server instance to 15 MB... Now I can't log in to increase it. How can I increase the maximum memory without logging in? Version is SQL 2008 R2 |
Unable to import exported Wordpress DB - #2006 - MySQL server has gone away Posted: 19 Apr 2013 01:08 PM PDT I'm having a nightmare trying to clone a live Wordpress site into a local dev environment using MAMP Pro and BackupBuddy. I have no problem with setup. The problem is that there seems to be some issue within my database that prevents import. Backupbuddy fails at the database import stage. If I switch and try to import manually, via MAMP PRO's phpMyAdmin, I get the following: 2006 - MySQL server has gone awayThe import always stops at the same place: with my wp_options table. Experimenting, I was able to import the full database when the wp_options table was NOT included. Thereafter, trying to import only the wp_options table leads to the same error. The wp_options take is only 3MB. The whole database is 13MB. I followed suggestions online relating to increasing some basic configuration values. In MAMP PRO's startMysql.sh (MAMP.app/bin/startMysql.sh): max_allowed_packet=100M I also added the following to my php.ini (MAMP PRO.app --> File menu --> Edit Template --> PHP ..) max_allowed_packet= 100M wait_timeout= 6000 Memory limit (in php.ini) is 256MB, max input time is 600, and max execution time is 600. These values should be more than enough to prevent the "#2006 - MySQL server has gone away" error, but I'm still getting it. FURTHER, I have tried importing the database as xml, and csv. So far, I simply cannot get a working copy of this database going in my localhost environment. I even wanted to simply export and cut and paste the actual database, but then I find that Wordpress uses .frm .MYD and .MYI files, and my export is a .sql file that likely phpMyAdmin would convert and segment out, but then the import fails. Does anyone have any suggestions? |
Reasons for incremental backup on Progress OpenEdge Posted: 19 Apr 2013 02:00 PM PDT In the case that storage is not a problem: are there actually any good reasons for doing incremental backups instead of just doing full backups? Edit |
Why use separate databases for high traffic/volume tables? Posted: 19 Apr 2013 01:27 PM PDT While looking at the database structure of an application I am using I recognized that it uses 3 different databases on the same SQL Server instance for different things. The first one contains the main data that changes rarely. The second one contains event logs with high traffic and volume and the last one is an archive database for old event logs. I was wondering what the benefit of this structure might be, because the databases are running on the same instance and the database files are located on the same disk. Therefore I would not expect any performance improvements from this. I thought, maybe I am overlooking something and somebody can point me to benefits that I did not think of. Update: A more general question would be: Can the performance of one table suffer from other large tables in the same database (due to fragmentation or for some other reason) or are those effects probably negligible. |
Clustered vs Nonclustered Index Posted: 19 Apr 2013 02:18 PM PDT My database currently has a primary Key/Clustered index on the Would it be best to add the |
IIS takes longer to run queries than SMSS Posted: 19 Apr 2013 12:23 PM PDT I'm completely stumped on this one. We're running a pretty usual intranet app here, classic ASP frontend and SQL Server 2005 backend. Occasionally, once/twice a week, a certain stored proc takes ~50x longer to run when I run it in the Management Studio. This slowness lasts the entire day and it inexcplicably goes away the next day. So essentially what's happening is this: once/twice a week, when I fire up the intranet page that runs the stored procedure and displays the results, it takes roughly 115secs to run. I then fire up SQL Server Management Studio and run the same query, which this time around takes only 3-4secs to run. The next day, the intranet page is taking as long as SSMS to run the very same stored procedure, with nothing having been changed in the interim (not to my knowledge anyway). Other details:
As such, I was wondering whether any of you has encountered any similar behaviour before, if you've fond a solution to it and what would your advice be in tackling/solving it? Thanks for your help, Please find Trace results in .csv format below: EventClass,TextData,ApplicationName,CPU,Reads,Writes,Duration (s),ClientProcessID,SPID,StartTime,EndTime 12,exec spStubbornProc,Internet Information Services,"106,016","7,059,999",1,115.80,5476,85,18/04/2013 08:17:15,18/04/2013 08:19:11 12,exec dbo.spStubbornProc,Microsoft SQL Server Management Studio - Query,"3,141","146,051",0,3.40,5876,84,18/04/2013 08:20:45,18/04/2013 08:20:48 12,exec dbo.spStubbornProc,Microsoft SQL Server Management Studio - Query,"2,563","147,387",0,2.93,5876,84,18/04/2013 08:21:04,18/04/2013 08:21:07 12,exec spStubbornProc,Internet Information Services,"103,156","7,083,365",7,118.73,5476,80,18/04/2013 09:39:41,18/04/2013 09:41:40 12,exec dbo.spStubbornProc,Microsoft SQL Server Management Studio - Query,"2,406","175,029",1,2.57,5876,84,18/04/2013 10:08:58,18/04/2013 10:09:01 12,exec spStubbornProc,Internet Information Services,"112,218","7,103,267",7,114.72,5476,75,18/04/2013 14:06:26,18/04/2013 14:08:21 12,exec spStubbornProc,Internet Information Services,"93,515","7,101,229",3,93.60,6092,60,18/04/2013 19:37:02,18/04/2013 19:38:35 12,exec spStubbornProc,Internet Information Services,"2,500","148,775",1,3.42,5160,75,19/04/2013 09:16:01,19/04/2013 09:16:04 |
Posted: 19 Apr 2013 02:57 PM PDT I currently import a bank statement into Access 2007 and would like to be able to categorise each record into its component parts similar to the way that Microsoft Money splits a transaction. I have a Microsoft Money screen grab showing a payment to Amazon that has been split into 3 component categories, however, I can't post it as I do not have a 10 reputation. I hope therefore that someone may have used this product to know what I am referring to. If so, is there a way to achieve this using tables/queries? Or, can it be done programatically? Or, is this just a step too far for someone with my limited Access knowledge? |
Tool to export data with all relational data? Posted: 19 Apr 2013 02:11 PM PDT Is there a tool to export data from selected rows in a table with all data stored in other tables in other tables linked by relational design? The purpose is to ease migrations of bits of data between servers for adhoc migrations. I am looking specifically for a tool for MySQL InnoDB with defined foreign keys. |
Limiting user access to tables based on a ROLE Posted: 19 Apr 2013 05:20 PM PDT I have a SQL Server 2005 database to which I would like to LIMIT access. I have done the following:
I would expect the user to have whatever public access is allowed to the database but be denied access to the tables as defined in the role. Problem is, users can access all tables as if the rules in the role are not taken into account. My question: How do I block access to tables based on role membership? A few facts:
SG |
SQL Server to compress the backup file from procedure Posted: 19 Apr 2013 02:56 PM PDT Is it possible to compress a backup file to .zip (or another) in a stored procedure invoked from a maintenance plan? My maintenance plan contains these steps:
After restore_verifyonly/shrink database I want to compress this file. |
Posted: 19 Apr 2013 05:23 PM PDT How can I set up a server side trace that dumps to a database instead of a trace file? I set-up and tested a trace configuration I want with Sql Server Profiler that dumps only needed info straight to a separate database (without a .trc file). Either my googling-fu is letting me down or nobody is interested in this. |
Proper way to export database to other servers Posted: 19 Apr 2013 05:24 PM PDT I am using I tried doing 3 things (
What is the correct approach to replicate a database to another server ? P.S. I am new to this Stack Exchange website, I read several question but didn't find an answer after looking on several questions. |
Migrating from SQL Server 2005 to SQL Server 2008 R2 on a different box Posted: 19 Apr 2013 05:24 PM PDT We currently have a SQL Server 2005 instance hosting a lot of application specific databases (ArchiveManager, SolarWinds, Kaspersky etc). We are planning to deploy a new SQL Server 2008 R2 instance on a new server and slowly migrate across to this instance. All of the applications have fairly straightforward migration plans for changing the database location normally revolving around stopping services, detaching, attaching and rerunning installers. All looks good so far. My only concern is with SQL Server Agent jobs and logins. Initially I was under the impression that these were all stored in the system databases and that I could move these. I understand now that this is not the case. Microsft KB 918992 suggest running a script to generate a stored procedure and then calling this and running the generated script on the new instance. There seem to be a lot of caveats to it though. Another option would be to use SSIS to generate a "Transfer Logins" and "Transfer Jobs" package and run that (both editions are Standard) but I am unversed in SSIS so am a touch scared to use that. I suppose my question boils down to this:
I am trying to get it as clear in my head as possible for my planning documentation so am very appreciative of any replies/guidance. |
Posted: 19 Apr 2013 01:34 PM PDT I had to stop the slave server to test something. After I started the server again there is a problem with replication on MySQL server On the problematic server on the problematic server: on the main server: according to what I've read, there is a need to execute the following command om the main server: What will happen then? if there is any application connected to it - will it disconnect it also? |
query taking long time to execute.we are expecting result in very quickly anybody please rewrite it Posted: 19 Apr 2013 03:02 PM PDT Query is taking long time to execute.we are expecting result in 0 sec.If possible Please help me to rewrite it. Also suggest me to add any indexes on table.Also suggest me if optimization is needed.If possible explain me what is the root cause. Query And Explain Plan: Table structure: |
Merge Replication identity field issues Posted: 19 Apr 2013 12:21 PM PDT One of our clients is using our software with merge replication of a database on a SQL Server 2008 R2 machine. There are two production environments in separate geographical locations only one of which is live at any one time, so basically one and live one on standby. Only the live database is updated by teh applications. Every couple of months they failover between the datacentres and the standby environment become the live centre. There is an instance of SQL Server 2008 in each datacentre and merge replication is used to keep them in sync. This was all working ok until the beginning of the year when we started getting replication errors with some The errors were like this one:
Then after the last failover we noticed we had an issue with the |
MySQL Slaves lag behind master Posted: 19 Apr 2013 02:02 PM PDT I have one master and four slaves. Sometimes all my slaves lag behind the master. I have implemented the I saw the slow queries (for today) on the master and I found that the slowest query (DML) was taking 138 seconds. But the slaves were lagging about 1400 seconds and there were also no slow queries on the slaves for DML (update, delete, insert, etc.). Points to be taken into consideration:
What may be the reason for lag? |
MySQL replication between VPS and shared host Posted: 19 Apr 2013 01:02 PM PDT I have a VPS where I have ssh access and shared host with CPanel. Both have MySQL. I need to create a master/slave setup among the two server. As per this tutorial: How To Set Up Database Replication In MySQL, I will need to modify the Is it possible to achieve this with the following permissions on both the servers?
|
Posted: 19 Apr 2013 08:02 PM PDT My postgres server is running in a windows server and three tablespace are created. Postgresql server is installed in C: drive and the tablespaces are in D: and E: drive. So how to take a backup and restore. Is it similar to normal backup and while restore, in another machine, do i need to have the same setup or i can restore it in a single drive? From the tablespace folder, is it possible to retreive information for only one table which is huge? |
SQL Server equivalent to functionality of Oracle RAC? Posted: 19 Apr 2013 12:55 PM PDT I did some Googling and couldn't find an answer to this question more recent than a few years ago, so I thought I'd ask. Oracle's RAC feature offers load-balancing for both read and write transactions, as well as scale-out and high-availability without downtime (at least, as I understand it - we're about to deploy our first databases that use RAC, so we'll see how it goes). Is there any SQL Server feature set (or third party component you could install on top) that delivers equivalent functionality? We've always used Windows clustering, where a failover event causes about 20-30 seconds of SQL downtime - always tolerable, but not ideal. Now, with AlwaysOn in SQL 2012, SQL Server shrinks that to about 15 seconds and adds the concept of read-only-secondary databases, but they still require that write transactions are choked through a single connection point (much improved, since many transactions are just read, but still not really load balancing), and in the case of a node failure or the need to patch, there's still downtime. I suppose it's just more curiosity - I feel like this is the only area that SQL Server falls behind Oracle (at least among the features I've personally seen used). I wanted to see if there are any options out there to close that gap and possibly improve our own SQL Server deployment while we wait for Microsoft's equivalent feature to be added - maybe in SQL 2014/2015? |
Call a stored procedure from a trigger Posted: 19 Apr 2013 04:56 PM PDT I have created a stored procedure in mysql using the following syntax. FYI I've greatly simplified the stored procedure but I do know it works without any issues. What I'd like to be able to do is set up a trigger from usergroup_comments that works like this. But for some reason every time I do mysql throws an error at me that's less than helpful stating that there's a syntax error on line 4. I've combed through the mysql documentation and found some information on restrictions of triggers but found it to be fairly convoluted. http://dev.mysql.com/doc/refman/5.1/en/stored-program-restrictions.html Any ideas would be helpful. |
How to safely change MySQL innodb variable 'innodb_log_file_size'? Posted: 19 Apr 2013 01:16 PM PDT So I'm fairly new to tuning InnoDB. I'm slowly changing tables (where necessary) from MyIsam to InnoDB. I've got about 100MB in innodb, so I increased the When I went to change the When I restart the server, I get this error:
So my question: Is it safe to delete the old log_files, or is there another method to change the |
How do you document your databases? Posted: 19 Apr 2013 02:52 PM PDT I find that most of my clients are not documenting their databases at all and I find that pretty scary. To introduce some better practice I would like to know what tools/process you are using.
I am not talking about reverse engineering / document a existing database, but mainly on the documentation best practices while you develop your system/database. |
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