[how to] SSRS Reports Design Standards and Guidelines Document |
- SSRS Reports Design Standards and Guidelines Document
- checking number of occupied occupied neighbours
- Referencing a Join table
- Storing no of players the last seven days in an online game
- Unable to connect to SQL server 2008 R2 via Instance name?
- How to use CREATE TABLE ... AS with Primary Key in SQLite
- From SQL Server to NuoDB: Common Table Expressions, Stored Procedures and Bulk Uploads
- Oracle 11g delete by unique key slow
- Database mirroring - worked once?
- get rank in marks database in mysql
- How to migrate SQL Server to MySQL
- sql server-percentage calculation
- Mysql. Block/disconnect slow queries
- How to refresh AD security group on Sql Server permissions
- multi-master to single-slave replication at table level with PostgreSQL or MySQL
- Invalid File Name on login to SQLPLUS
- SQL server enterprise vs standard
- SQL Server account delegation setup
- Trouble setting up Nagios to monitor Oracle services
- innodb changing row format doesn't decrease table size?
- Can I use a foreign key index as a shortcut to getting a row count in an INNODB table?
- Database setup/design for multiple services
- Violates foreign key constraint
- FATAL: terminating autovacuum process due to administrator command
SSRS Reports Design Standards and Guidelines Document Posted: 28 Apr 2013 05:59 PM PDT We've just started to create reports for out under developed application using SSRS. To make the layouts, formats, namings, etc consistent across all reports, we should create a Reports design standards and guidelines document. I'm wondering if your in your organisation have such a document that we can use as the baseline, instead of reinventing the wheel? Thanks in advance. |
checking number of occupied occupied neighbours Posted: 28 Apr 2013 03:13 PM PDT Assuming a pixel grid with x and y of the size 1000 over 1000. In each iteration\run, using a random number generator, certain cells will be marked as occupied. Those cells will be written in a SQLite database. In a two dimentional grid, each cell can have up to 8 occupied neighbours. Once an occupied cell sees 8 occupied neighbours i would like to preform some computations. At the moment i have in my SQLite table three columns (x and y, processed). Only occupied cells are written in to the table (unoccupied cells are not in the table). The processed flag is a boolean flag. I would like to know after each run, if there exist cells which are occupied, not processed and have 8 occupied neighbours. I am open to changes in the database for doing this query. |
Posted: 28 Apr 2013 03:45 PM PDT I have a relationship that I am trying to represent in a database. Imagine I have series of many to many relationships... Say student to proffesor, and professor to classes... A student can many professors and professors can obviously have many students. A student also has many classes, each taught by a different or similar professor, and professors can teach many classes. To relate those many to many relationships to each other, you obviously need a join table between each. But, if you relate a student to a professor, you are automatically linking him to all the classes that he teaches. Which doesn't necessarily have to be the case. You could take one class with one professor, and have another class with another professor, or you could have two classes with one professor and another with another professor. Obviously you could just link the student directly to the classes and then link the professors to the classes. But Imagine, for the sake of this question, that for some reason, you can only link students to classes. Imagine this is a legacy database for instance. Would it be good form to instead of linking directly to the professor, link instead a link-table of the professor... So I would have a link table to a link table of say Prof ID 2, class ID 3... That would have a link id of lets say 2. I would then have a link table with student 3 linked to Prof->Class ID 3. So that student is now linked to professor ID 2 and class ID 3. Think of that relationship like this... Is that a good way to represent that relationship, or is there a better way to do this? |
Storing no of players the last seven days in an online game Posted: 28 Apr 2013 11:13 AM PDT I want to plot the number of players, in the last seven days, of an MMORPG which haves 50~ servers. The system fetches the number of players in each server every 15 minutes and I'm not really sure how to store and update this information in an efficient way. The easiest (but probably not so efficient) way I can think of is just having three columns, "time_fetched", "server", "no_players". Every 15 minutes it inserts 50 new rows and deletes the 50 oldest rows. Maybe I could store weekday, hours and minute instead? So instead of deleting and inserting rows it just updates the correct rows? This would mean that I always have a fixed number of rows in the table (50 * 4 * 24 * 7 = 33600). Also; would it be more efficient to store the server name as an enum instead of just strings (or some other way, maybe one table for each server)? |
Unable to connect to SQL server 2008 R2 via Instance name? Posted: 28 Apr 2013 11:15 AM PDT I don't understand : I've installed sql server 2008 R2. the installation process asked me for the desired instance name , so I wrote: after the installation , running Setup Discovery Report does shows me the instance name : I've also installed all the service packs. Also , all the services are up : Also , all the ports are open ( tcp:1433 + udp :1434) Also , Named pipes are on : So , where is the problem ? I'm unable to connect via the instance name : Also unable with :
Also unable with : But (weird) : Those 3 do work :
Question : why I can't use my instance name to connect to my sql server ? Related info : After connecting via one of the 3 who work , I run a helpful info : |
How to use CREATE TABLE ... AS with Primary Key in SQLite Posted: 28 Apr 2013 06:51 AM PDT From SQLite documentation for CREATE TABLE http://www.sqlite.org/lang_createtable.html:
So is there any general way to create table with primary key & other index information ? |
From SQL Server to NuoDB: Common Table Expressions, Stored Procedures and Bulk Uploads Posted: 28 Apr 2013 01:32 PM PDT I am currently evaluating NuoDB as a replacement for SQL Server. The application is written in C#, .NET 4.0. Now I am using features of SQL Server like:
I didn't find enough reference on NuoDB to understand if it is suitable to do these things:
Besides this, I am also interested in partitioning, anybody has some experience in partitioning with NuoDB? Thanks |
Oracle 11g delete by unique key slow Posted: 28 Apr 2013 06:04 AM PDT We have been plagued by a deadlock issue for quite some time that relates to deletes and inserts on the same table. It happens sporadically, but had been increasing in frequency. It would manifest itself as a Initially, we could not see the bind variables because we were using Hibernate and we could not turn on show_sql for Hibernate since there is far too much traffic on other Hibernate-managed POJOs in other areas of the application. We had thought Hibernate might be doing something with its cache at unexpected times. Recently, I removed Hibernate for the table in question, replaced it with JDBC, and log EVERY touch (every SELECT/INSERT/UPDATE/DELETE) against that table. After doing that, I've only seen 1 "blocker". So I don't know if the problem is fixed by virtue of removing Hibernate and doing everything via JDBC. However, I would be remiss if I didn't attempt to run down that blocker instance. Here's what I see:
I verified with our DBAs that:
Does anyone have any insight/recommendations on what might cause a Delete statement by Unique ID to possibly take 10 seconds, when there is no other touches on that table for that row (no select, update, or insert by that Unique ID)? I realize that there probably isn't a precise and exact answer to this questions, I'm just hoping someone can share insight or anecdotal information on their own experiences. Thank you sincerely in advance. |
Database mirroring - worked once? Posted: 28 Apr 2013 01:34 PM PDT I setup SQL Server 2012 Standard on 2 different servers and installed SQL Server 2012 Express on a Witness server. All 3 servers are running Server Enterprise 2008 R2. I'm using these instructions: http://blogs.msdn.com/b/suhde/archive/2009/07/13/step-by-step-guide-to-configure-database-mirroring-between-sql-server-instances-in-a-workgroup.aspx Everything connected perfectly. I disabled the NIC in the principal server, verified the mirror server had become the principal and was able to access the application! Success! That was the only time it worked. Now, when I disable the Principal server I get a timeout for our .NET application.
Ideas/Thoughts? |
get rank in marks database in mysql Posted: 28 Apr 2013 07:04 PM PDT I have a Student database having one table EXAM. Question is how to give rank like I have used a Query:- but it gives rank What should I do?? |
How to migrate SQL Server to MySQL Posted: 28 Apr 2013 04:40 PM PDT I'm trying to migrate a SQL Server db to MySQL, and I'm having a tough time. I've tried:
Anyone have suggestions? |
sql server-percentage calculation Posted: 28 Apr 2013 07:04 AM PDT Sample data : This is my query: This is my sample data actually. I already make the count. As You can see the column header. My problem is I need to sum the count and the for each row I need to get the percentage. For example the total for the above record is 199 so for the first record count is 43 so the calculation should be 43/199 * 100. How can I view the percentage? Please help me I need this urgently. |
Mysql. Block/disconnect slow queries Posted: 28 Apr 2013 03:04 AM PDT I am experiencing issue. Someone 'attacked' my server: simply by searching the same phrase with multiple requests. As it is text search request and database indices are not used, the engine searches through every row. In general I will deal with myisam full-text indices, but I am curious, is there any way to block/disconnect/interrupt the query which is longer than x seconds? P.S. I have |
How to refresh AD security group on Sql Server permissions Posted: 28 Apr 2013 02:23 AM PDT I am using Sql Server 2008 on Small Business Server 2003; client is using WinXP. I added a user to my Active Directory Security Group; Why can't this user immediately access the database? It seems there is a delay before the user is recognized in Sql Server. I am using AD Security Groups for permissions expressly so that I don't need to add individual users in Sql Server. So effectively I don't need to do anything but add the user to the AD Security Group in order to grant access. But for some reason Sql Server doesn't immediately recognize the addition. I've seen this a number of times. I add the user to the group but that user can't access data until the next day. It seems that it doesn't query the Active Directory in real time. Can you confirm that is so? What do I need to do so that Sql Server "refreshes" the list of users from Active Directory? |
multi-master to single-slave replication at table level with PostgreSQL or MySQL Posted: 28 Apr 2013 10:04 AM PDT Here is my scenario I've read similar questions and they recommend to start different instances at Slave1 and simply do MasterN-Slave1(instanceN) replication, as instructed here: Single slave - multiple master MySQL replication That would be piece of cake, but running different instances might be a waste of resources. I really want to achieve this with an single DBMS instance at Slave1, and if possible with PostgreSQL; but can try with MySQL if there is a solution for this. Any help is appreciated. |
Invalid File Name on login to SQLPLUS Posted: 28 Apr 2013 06:04 AM PDT The moment I log into SQLPLUS I get an Any help would be greatly appreciated, thanks.
The issues are that any new scripts I create (that I know work) give a |
SQL server enterprise vs standard Posted: 28 Apr 2013 05:12 PM PDT I am studying the difference between SQL server enterprise and standard. The one feature that I find beneficial from this page is: http://www.microsoft.com/sqlserver/en/us/editions.aspx
How exactly does it ensure advanced high availability? Does anybody have any details? |
SQL Server account delegation setup Posted: 28 Apr 2013 07:00 AM PDT I am try to run bulk insert command on SQL Server 2008 but I am having issues with the security. after researching via internet, the problem has something to do with account delegation and impersonation. However all solutions seems to point to an Active Directory setup which my setup is not. My setup is SQL Server 2008 Express on Windows Server 2008 Standard configured as a workgroup. Despite a SQL Server user account, assigned all the user mappings and server roles and ensuring security set to SQL, I am getting this error:
So, how does one setup SQL Server account delegation and impersonation on a workgroup environment? Thanks in advance |
Trouble setting up Nagios to monitor Oracle services Posted: 28 Apr 2013 11:04 AM PDT I've got an install of Nagios XI that doesn't seem to want to talk to any of my Oracle services here. I've pulled out the monitoring command and am running it manually, after setting I'm still fairly new to Oracle, but my googlings seem to indicate that As a note, there are multiple instances of oracle sharing the target box, but each seems to be intalled to separate partitions and are running their own listeners or various ports. |
innodb changing row format doesn't decrease table size? Posted: 28 Apr 2013 08:04 PM PDT We're currently using MySQL with innodb and we have some large tables that are compact in row format. When I change the row format to compressed we are still seeing the same size for the table. Anyone know the reason for this? |
Can I use a foreign key index as a shortcut to getting a row count in an INNODB table? Posted: 28 Apr 2013 03:04 PM PDT I have a table that has a large number of rows in it. The primary key (an auto-incrementing integer) is, by default, indexed. While waiting for a row count to be returned I did an Since the primary key is guaranteed to be unique, can I just take the number of rows from the BTW, I believe the difference in numbers is due to the fact that more data is continually being added to this table. |
Database setup/design for multiple services Posted: 28 Apr 2013 02:04 PM PDT I am working on a new MySQL database that will store orders/customer information for around 15 different services. 7 of the services are similar in regards to the information that is stored with a few of the 7 services requiring an additional piece of information. There other 7-8 services are similar to each other as well but not as similar the the first 7. So my question is how should I break this down into a MySQL database? Should each service have its own table? If this is true, what is the best way to link tables? Any advice is greatly appreciated! Also, here is a sample of the type of info that will be stored: |
Violates foreign key constraint Posted: 28 Apr 2013 07:07 PM PDT I'm trying to implement the below represented UML and I can't figure out where is my mistake since I have already place a value into the table. The error is about my last portion of code.
UPDATEOK I misunderstood inheritance. Can anyone advice me how to implement the |
FATAL: terminating autovacuum process due to administrator command Posted: 28 Apr 2013 04:04 AM PDT I am running postgresql 8.4 on Ubuntu 10.0.4. I was in the process of creating schemas/importing data when I came across some error messages. Here is a snippet of the output at the console: BTW, I have checked and the postgres processes seem to be still running: What is likely to be causing this and how may I resolve the problem?. |
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