[how to] Doubt about conceptual tables in Access |
- Doubt about conceptual tables in Access
- Can't change Oracle sqlnet.ora runtime in the client program?
- Object-oriented programming CRUD design pattern
- Reinsert data in new table with new IDs
- How to move folder of MS SQL Server LocalDB instances from the default location?
- How to enforce full integer (no floating point)?
- I need help in Nested Cursors in SQL server
- How to grant only functions while revoking tables?
- Get Heirarchial Data in Self-Referencing Table (Parents , Childs) [closed]
- sql file system for users
- sql server full text search - fuzzy searching?
- Moving MSDB database
- Login failed for user sa ssis 2008
- How to deny access to see the logins in a database
- SWITCHOFFSET() not working in SQL Server 2008 R2
- Deployment Manager Vs DBA Cage Match On Pushing Releases To Prod
- Select query having count and variable
- Defining constraints in `CREATE TABLE` statements
- Overview of how MongoDB uses its various threads
- upgrade mysql 5.1 to 5.5 on Ubuntu 11.10
- MySQL information_schema doesn't update
- How to succesfully run a batch file in an SQL Agent job?
- MySQL partitioned tables?
- Using MySQL EXPLAIN to analyze the performance of a function
- Limit memory used for mongoDb
- MySQL user defined rollback procedure
- Same query taking 0.2 sec in Oracle database but 4 mins in SQL Server
- Pgpool, Postgresql and Apache tuning (1000 concurrent spatial queries)
Doubt about conceptual tables in Access Posted: 06 Apr 2013 08:32 PM PDT I wanted to take a conceptual question: I have a table and a subtable * Budgets detOrçamentos ** where the 1st is the 2nd parent, ie a ratio of 1 w / many. I would generate a * contracts with detContratos, so that the contract is exactly what turned Budget Agreement. I ask, I better make a table contracts separately and play inside the budget, or I can leave the budget and put a tag calling him a contract? I ask this as a matter of good practice, matters of future implementation. Detail, nothing in the Contract can be added or deleted, just changed something, or everything that can be done with user permission. What do you recommend? |
Can't change Oracle sqlnet.ora runtime in the client program? Posted: 06 Apr 2013 08:08 PM PDT I am trying to setup Kerberos authentication for my Oracle database and I have a situation where I need to maintain different versions of sqlnet.ora for each kerberos user connection. My application is using OCI driver (a single unix process does more than one user connection to the same Oracle database). And I am not able switch sqlnet.ora between user connections using setenv(TNS_ADMIN) call programmatically. I am assuming once the contents of sqlnet.ora gets loaded to process, it remains unchanged for the rest of its life. Is my case a practical one, has anyone encountered? When it comes to kerberos, I am not sure why Oracle client restricts the sqlnet.ora to one principal kerberos user. Maybe Oracle does not have a clean support for kerberos as I dont see OCI API's? Or can I just merge all the key tab files into one and maintain one version of sqlnet.ora? How will my connection string change from providing only tns_alias name? Should I also provide username when I merge all the keytab files? Please help |
Object-oriented programming CRUD design pattern Posted: 06 Apr 2013 07:54 PM PDT At first I have posted this question at http://cstheory.stackexchange.com/questions/17170/object-oriented-programming-crud-design-pattern - that's because I think it's a subect question, and it can not answered by "yes" or "no" or with a single answer. I don't know if here it's the better place for this question, but here we go. I have shared a common question for DB designers - imagine the following SELECT: The above SELECT has a "maintaining" level relatively high by the following factors:
Imagining all this complexity is also necessary. Now think that be need to run in 3 differente SGDBs (MySQL, Oracle and Postgres) - the quoted example are created in MySQL.
Thank you in advance for your time. |
Reinsert data in new table with new IDs Posted: 06 Apr 2013 02:30 PM PDT I have the following two tables: buynsell bsmsgs The field buynsell replies Now, my problem is even though the What I can do is use the same entries from previous tables in my new ones but I want an elegant design and hence, would like to insert from scratch. I can reinsert data from older What I am facing trouble with is referencing the NOTEIf it can not be achieved by purely MySQL, I can use LuaSQL for this task. |
How to move folder of MS SQL Server LocalDB instances from the default location? Posted: 06 Apr 2013 02:07 PM PDT I get multiple errors with LocalDB (startup error, can't create DB from SQL Server Management Studio and also multiple issues when trying to restore a backup) and none of the fixes I found are helping anything. It seems to me that all errors have their root in permissions not set up correctly. Now a simple DDL table creation script works fine from SQL Server Management Studio and creates the DB in the root of my user account's folder (as explained here). The Instances folder however (located at D:\Users[My name]\AppData\Local\Microsoft\Microsoft SQL Server Local DB\Instances despite when installing the SQL Server Express with Advanced Services I specified the DATA folder in another location - where only standard SQL Server Express mdf files are stored, but not LocalDB instances) seems problematic regarding permissions (in contrary to the account root) therefore and also for having my DB files in a location among my projects I'd like to move the Instances folder to another place. Is this possible? I haven't even found a corresponding registry entry. I'm using SQL Server Express 2012 and also SSMS of the same version (latest updates installed). Any help would be appreciated. |
How to enforce full integer (no floating point)? Posted: 06 Apr 2013 05:51 PM PDT Why is the following allowed When table contains In other words, total of 3 digits with 0 after floating point? If |
I need help in Nested Cursors in SQL server Posted: 06 Apr 2013 12:04 PM PDT I need to use |
How to grant only functions while revoking tables? Posted: 06 Apr 2013 11:04 AM PDT I am a newbie to PostgreSQL, and configuring a new database. I wrote several functions for indirect access(read/write) to data, and I want to prohibit all direct access to table. If I don't REVOKE table privilege, direct table access will be allowed. If I REVOKE table privilege, and GRANT functions, Users access the functions but see table access restriction error. How can I make user P.S. I am using Postgres 9.2.x. |
Get Heirarchial Data in Self-Referencing Table (Parents , Childs) [closed] Posted: 06 Apr 2013 10:09 AM PDT In the following Fiddle, I will pass a sno and I need all the parents of that sno in a table. and all the Childs of that sno in another table Please refer to this Question Since both are related. they use the same table. I need to Display top 10 Levels in a Table. |
Posted: 06 Apr 2013 11:35 AM PDT i need to design a way to save files of users websites, each file contain 3 strings. for example: user1: user2: how should i design the db? all files in one table? in this way if each user has 10 files aprox, 1mil users have 10mil lines in this table. |
sql server full text search - fuzzy searching? Posted: 06 Apr 2013 05:40 AM PDT Is there a way to configure fuzzy searches in sql server full text search. Meaning if I search for a term called POWDER, I must get matches (i.e. strings) which contain any variations of it within an allowable distance, like for e.g. the matches can be strings which can contain the following variations of the previously mentioned word: I remember reading somewhere you can do this kind of thing, however this specifically requires you to specify the allowable edit distance. How or where do you do this? |
Posted: 06 Apr 2013 09:53 AM PDT When I am trying to move msdb database from it's default location (C:\Program Files\Microsoft SQL Server\MSSQL10.SQLEXPRESS\MSSQL\DATA) to another drive(E:). After moving the database I am getting error as shown below.(the error I am getting while expanding database node in SSMS and now I am not able to access any database.)
The procedure I followed to shift msdb database is as follows:
ALTER DATABASE msdb MODIFY FILE ( NAME = MSDBLog , FILENAME = 'E:\MSDBLog.ldf' )
And output was showing current location of both MSDBdata and MSDBLog as E:\ This error happened while I did it for testing server. I want to do it for a production server. So please help me on this error. How exactly to move msdb database? |
Login failed for user sa ssis 2008 Posted: 06 Apr 2013 06:23 AM PDT I have a problem with ssis2008 I built a package that have a connection with SQL Server authentication (username : When I use BI, it works fine but when I build a job that used this package it doesn't work. I tried several solution for example change the package protection level or using xml configuration file to save password but none of them worked. Can some body help me? Errors are:
or
thanks |
How to deny access to see the logins in a database Posted: 06 Apr 2013 07:17 AM PDT I create a login in SQL Server 2008 R2, and when that user connects to a database, it can see all the logins in the security logins. Can I deny access to watch the logins of the database? |
SWITCHOFFSET() not working in SQL Server 2008 R2 Posted: 06 Apr 2013 06:24 AM 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. Thanks for the help. |
Deployment Manager Vs DBA Cage Match On Pushing Releases To Prod Posted: 06 Apr 2013 09:31 AM PDT Our company has now hired a full time release engineer for the MS Windows side and we were thinking of a release management process for MS SQL Server. IF we have confidence in their abilities to deploy SQL Server scripts, is it common to just have the release manager do it or is it something that the DBAs typically do? Our enterprise is growing fast and our DBA's are somewhat overloaded (surprise surprise what else is new) but we can hire more, but that's another matter. How do you guys manage this? Do you allow a release manager to have access to prod to roll out changes? Do you take away rights and turn them on when they need to release? I'm thinking I will give them access to a sproc that gives them prod access for an hour, but it logs who calls it. Or am I totally off, and this is something a DBA should always manage? Any thoughts would be appreciated! Edit: Update: Also what happens when we encounter anomoloies? For example, a dev stated that 'these tables should match this other environment (by environment I mean customer prod environment, not qa/stage/etc.)'. Usually they would do a spot check. I did a checksum and noticed issues which ended up being just whitespace issues. In a case like this, do we push it back to the release manager/qa person to fix after doing basic troublehshooting? Another example: We have scripts by about 20 developers, sometimes they are dependent on each other. The ordering of the script was wrong. I can't keep up with 20 developers work and also manage the data, but after some troubleshooting we discovered the issue and changed the order. Is this something the DBA should typically be deeply involved in or is it fair after basic testing and look over, we send it back to the release manager and devs to fix? |
Select query having count and variable Posted: 06 Apr 2013 07:43 AM PDT I have a table like the one below. I need to form a select query. I'm going to pass a And beside the The Precise Question as @JNK Specified: Show me all the Sno values with a RefID of 1, and for each Sno show me also a count of how many times that Sno value is itself used as a RefID anywhere else in the table. |
Defining constraints in `CREATE TABLE` statements Posted: 06 Apr 2013 07:26 AM PDT Recently I have been using a Database Abstraction Layer built by a Python web-framework called web2py (click for their DAL syntax). They include the option to include your constraints within the Whilst taking Stanford's "Introduction to Databases" MOOC, the SQL Standard was mentioned as supporting any query within the What is best practice?Below is a simple example of including constraints in BTW: You'll note that I'm using CAPS for keywords, upper CamelCase for table names and lower under_score for attribute and trigger names. Is this good practice? - Feel free to critique my indentation and whitespace usage styles also :) |
Overview of how MongoDB uses its various threads Posted: 06 Apr 2013 12:48 PM PDT On one instance I have MongoDB using ~85 threads. In lieu of having time to investigate directly, I am curious:
|
upgrade mysql 5.1 to 5.5 on Ubuntu 11.10 Posted: 06 Apr 2013 07:00 PM PDT I currently have mysql server 5.1 installed via apt-get on my production Ubuntu 11.10 server I would like to upgrade this to 5.6, but the mysql docs seem to suggest upgrading to 5.5 first, and from there to 5.6. I've seen various lengthy guides describing how to upgrade from 5.1 to 5.5, but they all seem to describe how to upgrade by installing the tarball rather than using the package manager. Is there a simpler to upgrade using the package manager if the current version was installed using Obviously I want my existing configuration and databases to be retained after the upgrade and I will be sure to backup my databases using |
MySQL information_schema doesn't update Posted: 06 Apr 2013 08:01 PM PDT I have a database, say After I run the query The strange thing is that I find the database size doesn't decrease at all, however the data in "test" is gone. I've done this kind of test many times, this strange behavior happens sometimes. I'm using Can anybody tell me what is wrong? Update: Actually, I use another thread to check the database size periodically. |
How to succesfully run a batch file in an SQL Agent job? Posted: 06 Apr 2013 05:00 PM PDT I have a SQL Agent Job which generates a specific report in PDF-file and then copies the PDF to a network directory and then deletes the PDF file in the source directory. The SQL Jobs consists of 2 steps: 1. Generate the report 2. Copy the report to the network location. For step 2 I made a bat-file which handles the copying and removal of the pdf file. The bat-file is as follows: However, when I run my the Job, it hangs on the second step. The status just stays on "Executing". This is the line which I stated in the step (location of the bat-file to execute): My job-settings are as follows: Step 1 Type: Operating system (CmdExec) On Success: Go to the next step On Failure: Quit the job reporting failure Step 2 Type: Operating system (CmdExec) On Success: Quit the job reporting success On Failure: Quit the job reporting failure Some facts:
|
Posted: 06 Apr 2013 01:00 PM PDT I have a database that supports a web application with several large tables. I'm wondering if partitioned tables will help speed up certain queries. Each of these tables has a colum called client_id. Data for each client_id is independent from every other client_id. In other words, web queries will always contain a where clause with a single client_id. I'm thinking this may be a good column on which to partition my large tables. After reading up on partitioned tables, I'm still a little unsure as to how best to partition. For example, a typical table may have 50 million rows distributed more or less evenly across 35 client_ids. We add new client_ids periodically but in the short term the number of client_ids is relatively fixed. I was thinking something along these lines: My question. Is this an optimal strategy for partitioning these types of tables? My tests indicate a considerable speedup over indexing on client_id, but can I do better with some other form of partitioning (i.e. hash or range)? |
Using MySQL EXPLAIN to analyze the performance of a function Posted: 06 Apr 2013 04:00 PM PDT You can precede a |
Posted: 06 Apr 2013 09:00 AM PDT Is there any way to limit using RAM for mongodb on Debian? I'm looking for a solution fo about 8 hours, but have no results. |
MySQL user defined rollback procedure Posted: 06 Apr 2013 02:00 PM PDT I'm attempting to write my own mini-rollback procedure. I have a table that tracks any updates or deletes to another table using a trigger. I am attempting to make it possible to restore one or more of these tracked changes through the use of a procedure. However, I'm receiving a syntax error with the following: The syntax error comes in in regards to my update statement, any help or suggestions would be appreciated. |
Same query taking 0.2 sec in Oracle database but 4 mins in SQL Server Posted: 06 Apr 2013 07:00 AM PDT
This query takes 0.2 sec in an Oracle database but 4 mins in SQL Server database. Both the databases have the same indexes, the same records structure and the same column structure. Can anyone tell me why? |
Pgpool, Postgresql and Apache tuning (1000 concurrent spatial queries) Posted: 06 Apr 2013 08:00 AM PDT I'm trying to configure a load balancing system. I've a python script, invoked through mod_wsgi on Apache, that generates a query and executes it on pgpool: request-> wsgi python -> pgpool -> postgresql. Pgpool is configured as load balancer using 4 servers with 24GB ram and 350GB ssh hd. Our db is about 150GB and a query takes about 2 seconds. These are the configurations: Pgpool
Apache (mpm_prefork)
PostgreSQL
It seems not working When I try to submit more than 150 concurrent queries, although pgpool log file doesn't have any errors I get this error from the python script:
Any ideas? |
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