[how to] Monitor Usage on a SSAS 2012 Tabular Model |
- Monitor Usage on a SSAS 2012 Tabular Model
- Unattended SQL install on a remote machine
- SSDT/SSIS 2012 - How to automatically load some projects?
- Audit table insert restriction
- partitioning by datetime vs date vs int performance
- How to concatenate multi row sql output
- Query to compare two subsets of data from the same table?
- MySQL create all rows for (over) normalized schema at start or as data is available
- MS Sql Server Management Studio gives error on start
- SQL Server full text indexing disabled
- How do I access the build configuration in SSDT, ie SSIS 2012? [on hold]
- Oracle database on different disk
- Multiple versions of SQL Server on the same development machine
- How to partition a table by timestamp, where data from every i'th day goes to partition i?
- I have to create INDEX but which? [on hold]
- How can I synchronize data between two RDS MySQL databases
- Wrong error in SSIS - [Execute SQL Task] Error: There is an invalid number of result bindings returned for the ResultSetType: “ResultSetType_Rowset”
- storing arrays or images in a database table
- How can I integrate a new system to a design scheme I previously created?
- Targeting MSX with job on Multi-Server Administration
- FileWatcher Troubleshooting Options
- What if I want to keep using MyISAM
- restrict user host settings to socket connection only
- Unable to create a new listener in oracle 11g
- Grant access to a table to all users
- Performance difference between MySQL and PostgreSQL for the same schema/queries
- NoSQL approach: design table "scheme"
- User has no password set
Monitor Usage on a SSAS 2012 Tabular Model Posted: 30 Sep 2013 07:15 PM PDT I have a SSAS 2012 tabular model and I am trying to figure out the most efficient way to track which users are accessing my model. My tabular model is on a server that is used by other databases, so system wide tracing and logging are not options that I'd like to implement as I don't want to affect the performance on the server for those other databases. I haven't been able to find out much while searching online and am still pretty new to tabular models. Has anyone implemented something similar to what I am looking for or has any ideas? |
Unattended SQL install on a remote machine Posted: 30 Sep 2013 06:54 PM PDT My product installation does an unattended install of SQL (SQLExpress by default). I use command line arguments rather than a configuration file, so I'm quite familiar with this process. This unattended install occurs on the same machine that my install media is running on. However I need to look at installing the SQL instance on a separate machine to what the install media is running on. The target machine will be on the same network. Is it possible to do this unattended? If so, is it simply extra command line arguments or is it a different process (i.e. a PowerShell script)? (Note: can someone with sufficient rep please add the tag unattended-install for me, as I cannot yet?) |
SSDT/SSIS 2012 - How to automatically load some projects? Posted: 30 Sep 2013 03:37 PM PDT I did not use the default projects folder in SSDT, ie SSIS 2012. I used my own instead. Every time I open SSIS, I have to load the projects manually. Is there any way I can load them automatically ? |
Audit table insert restriction Posted: 30 Sep 2013 02:36 PM PDT So I'm trying to create my own audit table for some user management analysis and stumbled across a little problem. I use this trigger to insert some standard informations into my table. It works fine, except the logoff time inside my other trigger isn't always that correct. But my actual problem is, that I don't want to insert all user logons. For example I only want to audit some chosen users. How can I achieve such a restriction? I can't put a |
partitioning by datetime vs date vs int performance Posted: 30 Sep 2013 04:06 PM PDT I am trying to determine which partitioning strategy will be most efficient for my queries on SQL Server. We know we want daily partitions. The data has a natural All queries on this data will be on a specific date ( I have tested performance of each strategy on a few hundred thousand rows of data, and seen no real difference. The production deployment, however, will be in the hundreds of millions up to maybe a couple billion rows. Is one of these strategies going to lead to more efficient queries than the others? Why or why not? Thanks for your help. [EDIT] The queries will be formatted by application code, so I'm not concerned about how to translate between |
How to concatenate multi row sql output Posted: 30 Sep 2013 05:39 PM PDT Version Information: I am creating a report of all my HP-SA managed servers. The report includes data from multiple tables. With the exception of Networking information everything is included on one row. I'm trying to come up with a method to concatenate the NIC NAME, MAC, IP, DNS so that I don't get multiple rows for each active NIC. I ran into roadblocks with sub select queries not knowing how to pass the D.DVC_ID from the outer query into the sub query. I briefly tried using WM_CONCAT and LISTAGG without success. Any help would be greatly appreciated Posting the full SQL in case any other HPSA users out there could benefit from knowing where in the database to look for some basic hardware information: With a sample result of: Desired Output would have everything to do with the server on one row similar to the following: Thank you, Lars |
Query to compare two subsets of data from the same table? Posted: 30 Sep 2013 02:01 PM PDT My problem: I'm trying to compare to subsets of data within one table, and I've got two methods that partially work and one certainty that there's got to be a more correct way to do it. The idea here is a table which contains datasets about the same systems over time, and I would like to compare them and especially to see when there are introductions or absences. Allow me to demonstrate with a simple test table: In this example there are two datasets - the tag "old" dataset, and the tag "new" dataset. Each reflects a data sample taken at some point in time. For server "enterprise", we have one software package that changed over time (apache), one software package that was introduced (tomcat), and one software package that became absent (geronimo). My goal: A query that will allow me to summarize the state between "old" and "new": It is important for my purposes to be able to see the 'NULL' cells above - I need to know when software has been added or removed from the system. TO BE CLEAR, the table above is not the result of a query - it's me using a text editor to fix up what I was getting to describe what I'm looking for. I need your help to figure out the query that would make that table :) My Kludges: If I perform a LEFT JOIN and use the WHERE clause to discriminate between "old" and "new" tags, I get results for only those entries that exist under both tags: My next try was to create two views so that I could perform the JOIN without throwing the tag filter into the mix: That works better - I now see absence, not just change, but I still don't see introduction. And I had to go create views for this, which strikes me as inflexible as the dataset is added to over time. My questions:
Any help you can provide is greatly appreciated. Thanks! |
MySQL create all rows for (over) normalized schema at start or as data is available Posted: 30 Sep 2013 01:16 PM PDT I am developing an app, and using MySQL and the db schema is provided. To me the db looks (over)normalized. Data for a single user will be spread over dozen tables, and around 150 rows in total. Some data will be available on user signup (around 40 rows), the rest will be added overtime as all the data is needed to properly use the app. I am creating a stored procedure for creating new users. So I was thinking that when creating a user should I create ALL the rows with either available data or NULL values? or just create the rows whose data is available? Will there be any performance bonus when all the rows for a user are together? for example 1 table will have exact 11 rows for each user, but when user joins there exactly 8 rows will be populated. The other 3 rows will be added after a while. So should I create those 3 rows with NULLs? In the app we will be displaying data for all the available rows together. So if all the rows a query have to return are together will it provide noticeable performance? EDIT Its basically a match-making app. Tables are stripped down to give you overview. Thn there is a basic info table which has a dozen questions. and thn we have an intersect table and there are like dozen more intersection tables. |
MS Sql Server Management Studio gives error on start Posted: 30 Sep 2013 01:41 PM PDT When i try to connect my sa account on sql server management studio it gives me this error: *ps: the error message is turkish but you will see english version in 3rd image Then i clicked on "Get Help For" thing as its shown above. It showed me this: So i clicked to "Yes" button. Then it opened web page below: *ps: error message is the same in first image but its english. After that, i tried to start sql server process in services windows regarding 3rd image. But it gave me this error message: It means "Windows couldn't start SQL SERVER service on local computer. For more information see event logs. If this is not a Microsoft service, call provider and give this special error code: 3417" I wanted to look system event logs from C:\Windows\System32\winevt\Logs directory but there was 84 different .evtx files, I couldn't know what to do. How can i fix this? *ps: I'm also not little bit confused about this problem's scope. I also thought to post this on superuser and/or stackoverflow but this place looked more convenient to me. So, if i'm mistaken please warn me. edit: I opened Event Log application in Control Panel\Administrative Tools according to Jon Siegel's suggestions and filtered all event logs from SQL Server Reporting Services (MSSQLSERVER) source. There are 82 events from "SQL Server Reporting Services (MSSQLSERVER)" But they're all information, their event id is 0. And when i right clied on them and chose Event Properties, here is the dateils tab: *ps: After EventData, It says "Service started successfully" |
SQL Server full text indexing disabled Posted: 30 Sep 2013 12:26 PM PDT I have a SQL Server 2008 R2 server instance where I'm unable to use full text catalogs. It was upgraded from SQL Server 2008. When I go to the database properties of an existing database or try to create a new database the "Use full-text indexing" checkbox is disabled. Some things that I have checked are:
What else could go wrong, because I'm stuck at it? |
How do I access the build configuration in SSDT, ie SSIS 2012? [on hold] Posted: 30 Sep 2013 12:21 PM PDT I need to do this to solve an excel problem as shown over here - and here - But, I cannot find this "build" menu. Please help me to find the damn thing. Here is a pic - Thanks. |
Oracle database on different disk Posted: 30 Sep 2013 11:47 AM PDT I have a VM with Oracle Server installed, now Oracle home is defined locally. The VM's disk is no longer expandable because of snapshots (VMWare Workstation claims expansions and snapshots don't play nice together). I had to create a new virtual disk to be able to host a dmp file given to me which is just over 70GB. With that said, how can I import this dmp onto the new disk? The current Oracle is C:\Oracle and the new drive is d: I have minimal experience with Oracle so I would appreciate a detailed answer. Thanks |
Multiple versions of SQL Server on the same development machine Posted: 30 Sep 2013 10:38 AM PDT I am consolidating some SQL Servers to simplify administration. I am thinking about a new VM with SQL Server 2005/2008R2/2012 each as a separate named instance on the same machine. This machine will only be used in a 'sandbox' environment primarily to test restores of our backups. No applications will be hitting this. Am I likely to run into any issues with multiple versions? I remember running into issues years ago with SQL 2000/2005 on the same box. Do you folks use separate machines for restore testing? |
How to partition a table by timestamp, where data from every i'th day goes to partition i? Posted: 30 Sep 2013 12:14 PM PDT I'm looking into partitioning a table in my InnoDB database. I have a column corresponding to a UTC timestamp, and I want to partition around that. The basic idea that I want to capture is a partitioning scheme where, with a fixed number of partitions, we cycle through them as follows: Given 3 partitions (3 for simplicity)
Basically, extract the day out of the timestamp and put the row into partition This is probably easily done, but I can't find a similar example to emulate this with. What would the Update By atxdba's suggestion, I tried partitioning by hash. I tried the following statement: This results in error code 1564: |
I have to create INDEX but which? [on hold] Posted: 30 Sep 2013 11:41 AM PDT I have to create INDEX but which with this query ? |
How can I synchronize data between two RDS MySQL databases Posted: 30 Sep 2013 05:48 PM PDT I have 2 Amazon RDS MySQL instances, one is MySql v5.5 and the new one is 5.6. I want to upgrade the 5.5 to the 5.6 but you cannot do upgrades at this time, so we are trying to migrate the data. I did a dump of the 5.5 and have imported the dump into the 5.6 but since I need to keep our down time to a minimum, I decided to try to do a data synchronization between the two. What are my options for this?
I need to try to stay under 5 hours total! |
Posted: 30 Sep 2013 02:50 PM PDT I have an Execute SQL task which gives returns only one row with one column - a number. I set my result set to single row. Despite that, the task fails. Why ? How do I fix it ? |
storing arrays or images in a database table Posted: 30 Sep 2013 06:06 PM PDT I'm a beginner with both database design and use of forums such as this one so forgive me if I forget to provide some relevant information below. Basically I'm trying to store a set of arrays, in this case raster images, of 2500*2500 in a database in order to extract timeseries for individual pixels. I currently have roughly 1500 images and every day an image is added. The original raw files of bytetype are only small, but my database table grows very quickly in the following form: I understand that this is because I need a pixelnr and date for every pixelvalue. Unfortunately I don't know how else to store the data in a database. I've tried to optimize the table for select statements of timeseries per pixel with a clustered PK on pixelnr,date. The drawback is that inserts of new images take an increasingly long time. There are only two things I do with this table: - bulk insert from a csv file. I convert a new image to a CSV file with the same form as the table. It will have all pixels, but only for a single date.
I now have two questions: 1) Is there a more efficient way to store this kind of data? I've not found much useful on storing arrays in an RDBMS. 2) How to improve the performance of bulk inserts (all pixels for a single date) into the the table while keeping the clustered index optimised as described above. I use SQL server 2012 developer edition on a PC with 8GB RAM and a RAID system. There's not much room for hardware changes.... Any pointers particularly to more efficient storage of such data in a RMDBS would be greatly appreciated! |
How can I integrate a new system to a design scheme I previously created? Posted: 30 Sep 2013 02:13 PM PDT This is a follow-up to a question I wrote a while ago, for reference, you can look it up here. I've developed a curriculum based database scheme that looks like this(Thanks Joel Brown) Now that a new educational system is introduced(while the old one is still not "deprecated") I have been looking for a way to integrate both curriculum systems together without creating a whole new different system; As the two systems are fundamentally different, this have been quite a challenge for me. Here's a picture describing the new system . . .
(English level 1, 2, and 3 are classified as courses) See, the new system removes the whole grades system. A jr. high school student can enroll in the exact same course(English level 3, for example) as a sr. high school student. Is there a way to make those two systems work with my current design scheme? Or should I create a whole new scheme for the new system? |
Targeting MSX with job on Multi-Server Administration Posted: 30 Sep 2013 02:24 PM PDT I am using Multi-Server Administration to execute jobs on multiple targets. This works well, but I am not able to enlist the master as a target. I receive the following error when attempting to enlist the MSX as a TSX:
I would think that running these same jobs on the master would not require managing a local job as well as the multi-server jobs. Any help is appreciated. |
FileWatcher Troubleshooting Options Posted: 30 Sep 2013 11:24 AM PDT I have setup a Credential/Procedure/Program/File Watcher/Job to monitor a folder for new files, but it is not working. I am trying to figure out what I can check to troubleshoot why this isn't working. After scaling back the code to a bare minimum, here are somethings I have already done.
Could someone explain what I am doing wrong or give me a way to troubleshoot this further? Here is my test code: |
What if I want to keep using MyISAM Posted: 30 Sep 2013 10:31 AM PDT In my current use of MyISAM the databases are extremely small and kept for a few weeks after which time they are deleted and completely rebuilt with a clean slate. The script uses MYISAM tables and other than lack of support in the latest MYSQL versions, I have never had a problem with the way they work. My question is: Does anyone know of a specific reason to change from MyISAM to MyinnoDB just to keep up with MySQL. If I can keep using what works for my own specific use, I see no reason to worry with testing and possible errors when there are more pressing issues that do need attention that have problems now. MyISAM does not have a problem at this time. |
restrict user host settings to socket connection only Posted: 30 Sep 2013 01:24 PM PDT Is there a way to restrict a user's host setting so that (s)he can only connect by socket and not TCP/IP? I'd like to have this setting for the root account. edit: As Abdul Manaf pointed out |
Unable to create a new listener in oracle 11g Posted: 30 Sep 2013 03:24 PM PDT In net manager i get an error message "A valid logfile is required" when i click on listener and choose '+' button. and then it keeps on giving me that error when i click on any other tab or button in net manager. |
Grant access to a table to all users Posted: 30 Sep 2013 10:24 AM PDT Is it possible to assign a grant to a table for all users, or a default permission so that when new users are created they will have the specific grants for that table to |
Performance difference between MySQL and PostgreSQL for the same schema/queries Posted: 30 Sep 2013 07:24 PM PDT I'm a newbie DBA, and I have experience in Microsoft SQL Server but I want to jump to FLOSS. I'm starting a company, and we develop an app (PHP) with a Postgres backend, and we did some tests comparing with MySQL too. We observe that MySQL is twice as fast as PostgreSQL. I did a tangible performance test:
What am I doing wrong? P.S: I read many "howtos" on performance tuning for database engines. Hi Mat! I did the three common select (and hardest) queries. The question about disk, certainly it's not the same; In Postgres it's a SSD (almost three time fastest). MySQL cache data: I don't know how to view this in PostgreSQL. Thanks in advance. |
NoSQL approach: design table "scheme" Posted: 30 Sep 2013 01:49 PM PDT We need to store simple log data in a database, but we also need to get and filter data in realtime, based on 'user', simple 'tag' (ie. redis, memcache, php, mysql, etc.) and timestamp. We need to scale horizontally and real fast data access on billions rows. In a SQL approach, table can be like this: where tag 1 and 3 are different and related to another table (ie. tag_id | tag_name). I think this is a relational approach and we can create three index (timestamp, tag and user) in order to speed up data access. What is a good practice to reproduce this in a NoSQL database like DynamoDB (AWS) where we can create only HASH or RANGE index? Does a SQL database fit better than a DynamoDB? My first attempt is: First table: ID hash index Second table: USER, TIMESTAMP range index Third table: TAG index Thank you in advice! |
Posted: 30 Sep 2013 03:07 PM PDT I see these when running MySQLTuner.pl:
Thanks |
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