Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all 13329 articles
Browse latest View live

MongoDB World Meetup?

$
0
0
Anyone here going to MongoDB World this year? This section of the forums are dead but I am going so figured I'd throw a line out. If anyone wants to link up and grab a beer and talk databases or oddly discuss Scarlett Johansson, let me know...

Sybase Ase 15.7 Web Services not working

$
0
0
I configured the web service in my server and while starting it is throwing below error.

please help.


C:\Sybase\WS-15_0\bin>runws -Usa -P jupi123 -SDELLPC -f "C:\Sybase\WS-15_0\props
\ws.properties" -v

runws initiating execution at 10:50 AM

Files\Java\jdk1.7.0_25]==[] was unexpected at this time.
C:\Sybase\WS-15_0\bin>

What Exactly is Always Encrypted for 2016?

$
0
0
I'm curious what this is and how it differs from other SSL options for vendors like PostgreSQL and MySQL? Is this Microsoft just catching up on the SSL / security front or what is this feature and how does it stand out over other similar vendor offerings? Trying to really just understand what this is. I've been enabling SSL security on my *NIX based databases for years and force all clients to connect over HOSTSSL or no talk-ie. Is this not the same thing?

Montly Comparison

$
0
0
I currently have been running two queries, pasting the results into excel, and combining the data to one dataset, but there must be an easier way. I need to show a comparison of Feb 2016 to Feb 2015. My query to get the data for one month would be
Code:

Select flname, flsaleamt ,flsalesdate from flsales where flsaledate between '01/01/2016' and '01/31/20106'
Then to capture the data for 2015 same query but change the year. Which gives me a data output of:
Bl 2610 01/01/2016
BI 1412 01/04/2016
LL 200 01/10/2016
EE 3200 01/14/2016
EE 3200 01/21/206

My ideal data output is:
BI 4022 Jan-16
BI 2300 Jan-15
LL 200 Jan-16
LL 400 Jan-15
EE 6400 Jan-16
EE 7000 Jan-15

How would I need to ammend my query so that the data can be output like I need (or at least pretty close to that)

Access Totally Crashing

$
0
0
HI All,

No matter what database I open, as soon as I open a form, or click any command, access crashes. It was working fine earlier, and then bam, all of the sudden it does this. Same computer, no new updates to windows 8. I'm running access 2007. I've tried it on other computers. What went wrong here? I really don't to have to restore this machine. I tried reinstalling access, no success.

Need Help in Constructing looping SELECT statement but calculating the result of rows

$
0
0
Hi I have this select statement and results

SELECT PondCrop, Week,ABW FROM table1 ORDER BY PondCrop

PondCrop Week ABW Calculation
03PA01-20 1 0.45 get the first week of ABW for the same pondcrop
03PA01-20 2 1.02 abw of 2nd week minus 1st week
03PA01-20 3 2.1 abw of 3rd week minus 2nd week
03PA02-21 1 0.5 get the first week of ABW for the same pondcrop
03PA02-21 2 1.23 abw of 2nd week minus 1st week
03PA03-20 1 0.71
03PA03-20 2 1.39
03PA03-20 3 2.43


Desired OUTPUT

PondCrop Week ABW Result Needed
03PA01-20 1 0.45 0.45
03PA01-20 2 1.02 0.57
03PA01-20 3 2.1 1.08
03PA02-21 1 0.5 0.5
03PA02-21 2 1.23 0.73
03PA03-20 1 0.71 0.71
03PA03-20 2 1.39 0.68
03PA03-20 3 2.43 1.04

T-SQl Script Help Please

$
0
0
Hello
I would like to achieve the following .
List all databases with the help of T - SQL , and then appropriate role ( with exec sp_addrolemember ) assign .
Unfortunately it does not work as I want. Can someone help?
my script

DECLARE @LoopCounter INT = 8, @DatabaseID INT,
@DatabaseName NVARCHAR(100)

SELECT @DatabaseID = max(dbid)
FROM master.dbo.sysdatabases

WHILE(@LoopCounter IS NOT NULL
AND @LoopCounter <= @DatabaseID)
BEGIN
SELECT @DatabaseName = name
FROM master.dbo.sysdatabases WHERE dbid = @LoopCounter
print @DatabaseName
exec sp_addrolemember 'SPExecuter', [User] //here is my Problem, i think.
SET @LoopCounter = @LoopCounter + 1
END

Need help to write a function in shell scripting to execute sql files

$
0
0
Hi,

I am new to shell scripting and i need to write a automation script to execute sql files. I need to check the table if it is there in system tables and need to write a function to call the .sql files.

For ex. I have a.sql,b.sql,c.sql files, where the sql file contains DELETE and INSERT queries.

I am using Netezza as database.

Thanks in advance.

Cheers,
Samah

Formated text flat file

$
0
0
Hi

People

I'm new with sybase, I work with DB2 Mainframe, do you know how can I create/export a formatted flat files with sybase sql query result set

Thank you

Severe error in db2diag - how to debug what is cause of it?

$
0
0
In "DB2/Linux 10.1 fixpack 1 Enterprise Server Edition" in db2diag.log I see bellow error every few minutes. Both "Severe" errors appear one after another.
How to debug what this error is and what is cause of it?


Code:

2016-05-10-16.21.32.034468+120 I577563505A663      LEVEL: Severe
PID    : 14389                TID : 4383643265296  PROC : db2sysc 0
INSTANCE: db2inst1            NODE : 000          DB  : ISQ
APPHDL  : 0-31154              APPID: *LOCAL.db2inst1.160513072121
AUTHID  : DB2INST1            HOSTNAME: pdb2v10
EDUID  : 498                  EDUNAME: db2agent (ISQ) 0
FUNCTION: DB2 UDB, base sys utilities, sqeApplication::SetupCodePageInfo, probe:200
RETCODE : ZRC=0x800F005B=-2146500517=SQLO_NOTABLE "No conversion table exists"
          DIA8102C Conversion table not loaded. Source code page "819", Target
          code page "912", method "", handle "".

2016-05-10-16.21.32.034700+120 I577564169A546      LEVEL: Severe
PID    : 14389                TID : 4383643265296  PROC : db2sysc 0
INSTANCE: db2inst1            NODE : 000          DB  : ISQ
APPHDL  : 0-31154              APPID: *LOCAL.db2inst1.160513072121
AUTHID  : DB2INST1            HOSTNAME: pdb2v10
EDUID  : 498                  EDUNAME: db2agent (ISQ) 0
FUNCTION: DB2 UDB, base sys utilities, sqeApplication::AppStartUsing, probe:20
DATA #1 : Hexdump, 4 bytes
0x000003FCA57FBF50 : FFFF FEB4

Total noob: how to create list choices from past users' entries

$
0
0
Access 2010, total noob here. Google's been pretty great at helping me design my first database (frequently pointing me to this site, among others), but I don't even know what to call this feature I'm looking for.

From the form, I want users to be able to enter text into a field, and as users enter the text and save the record, I'd like those entries to become list choices for that field in future records. (Leave off for a minute whether this is a good idea or not...this dbase will only have two users making entries.)

Let's say for example I'm asking for Make of Car, but I don't know all the possible choices, and I also don't want either of us users to have to type in the whole value every time. As I or my colleague start entering cars into records, those entries will now become dropdown list choices: "Honda";"Toyota";"Chevrolet"...etc.

I hope that makes sense what I'm asking for. I know spelling will be an issue, but with just two of us using the dbase I think we can manage that.

Thanks all!

What DB software to choose

$
0
0
Hello all,

I just joined the forum with hopes to facilitate a long term project I've been hoping to get off the ground

I don't really know where to start though. I learned a bit of Access in college so I understand how dbs "work."

I don't believe my content is too complicated. Its a fitness database with all the exercises I can think of and the details associated with them.

I work on a Mac at home and a PC at the office. I'd like to be able to add content from both locations. Ideally it would be web based so I could really use it from any of several computers. I also hope ultimately to insert this info into a website.

Is there a software solution that could help check these boxes?

I appreciate any help...

B-

Split string and insert to table

student_id and their MAX score as one OUT parameter

$
0
0
This is my first ever procedure in MySQL and all I know is that there can be IN, OUT and INOUT procedures and that we pass the IN parameters to the Sproc, and the OUT parameter from the Sproc. Until now I didn't think we could assign two values to one OUT parameter. I have attempted to begin writing the procedure below!! I would appreciate if you could help me alter the procedure below.


DELIMITER $



DROP PROCEDURE IF EXISTS MAX_SCORE$



CREATE PROCEDURE MAX (IN start_student_id INT,
IN end_student_id INT,
OUT,
OUT rc INT

)


BEGIN



BEGIN


set rc := -1;



SELECT NAME, MAX(SCORE),MIN(SCORE),AVG(SCORE)
FROM STUDENT, SCORE

WHERE STUDENT.STUDENT_ID = SCORE.STUDENT_ID

AND STUDENT.STUDENT_ID = in_student_id

GROUP BY NAME

;


set rc:=0;


END;


END$




DELIMITER ;



These are things I want in the procedure:

a. The procedure takes TWO input parameters for student Id’s, {start_student_id and end_student_id and it has TWO output parameters}.

b. Identify the student who has received maximum score among these students.

c. The procedure should return the student_id and their MAX score as one OUT parameter

d. The procedure also returns return code indicating success / failure.

Oracle View

$
0
0
Hi All,

I have a table with following data :

msg_key user_key team_key message_text msg_date
1 11727 21 hello how are you 03-03-2016 20:00:00
2 11678 21 i am fine 03-03-2016 20:00:00
3 11735 124 access the system 03-03-2016 20:00:00

now, requirement is I would like to have a view, where while retrieving data from that I will the pass the user_key and view will return the all message_text for the team_key under which that user belongs to.

like if I pass user_key as 11727 or 11678 , both the cases I should get two rows they belongs to same team_key ie. 21, but for user_key 11735 will return one row.


Thanks in advance
JD

problem with Insert into Nested set Tree (self many-to-many relation ship)

$
0
0
This is my tables structure:

Codings : id,title
Coding_maps : id,coding_id,parent_coding_id,lft,rgt

How i can insert a new record into Coding_maps? :confused::confused:

Note: a coding may have N parents.

WHUK Fully Managed Dedicated Hosting | High Performance E5 Servers

$
0
0
WHUK Intel® Xeon® E5-26xx Servers are industry leading server configurations built to deliver optimum performance to any hosted website or application. Avail Free Plesk Web Pro, Full Server Management and Free Server Monitoring as standard inclusion with any of the below servers.

With E5 series servers, we can configure following additional server clustering services as per your requirement at no additional setup or configuration cost


  • Web/Database Load Balancing with Firewall
  • High Availability MySQL Clustering
  • Private Cloud


WHUK E5-26xx Server features:

  • Enterprise Quality Server Hardware
  • Proactive Server Monitoring
  • IPv6 Support
  • UK Data Centers
  • Free SmarterBundle Pro (Windows only)


WHUK E5 Standard (HDD)
CPU Model - 1 x Intel Xeon E5-2630v3 2.4GHz
CPU Cores/Threads – 8 Cores / 16 Threads
RAM - 16GB ECC DDR4 (Max 256GB)
Hard Disk - 2 x 1 TB 7.2K SATA
Port Speed – 1 Gbit
Monthly Bandwidth – 15 TB
2 IPv4 Addresses
Hardware Firewall - Fortigate Firewall (Optional)
£ 179.99/pm ex-VAT | Order Now

WHUK E5 Standard (SSD)
CPU Model - 1 x Intel Xeon E5-2630v3 2.4GHz
CPU Cores/Threads – 8 Cores / 16 Threads
RAM - 16GB ECC DDR4 (Max 256GB)
Hard Disk - 2 x 240 GB Performance SSD
Port Speed – 1 Gbit
Monthly Bandwidth – 15 TB
2 IPv4 Addresses
Hardware Firewall - Fortigate Firewall (Optional)
£ 189.99/pm ex-VAT | Order Now

WHUK E5 Professional (HDD)
CPU Model - 2 x Intel Xeon E5-2620v3 2.4GHz
CPU Cores/Threads – 12 Cores / 24 Threads
RAM - 32GB ECC DDR4 (Max 512GB)
Hard Disk - 4 x 1 TB 7.2K SATA
Port Speed – 1 Gbit
Monthly Bandwidth – 20 TB
2 IPv4 Addresses
Hardware Firewall - Fortigate Firewall (Optional)
£ 199.99/pm ex-VAT | Order Now

WHUK E5 Professional (SSD)
CPU Model - 2 x Intel Xeon E5-2620v3 2.4GHz
CPU Cores/Threads – 12 Cores / 24 Threads
RAM - 32GB ECC DDR4 (Max 512GB)
Hard Disk - 4 x 240 GB Performance SSD
Port Speed – 1 Gbit
Monthly Bandwidth – 20 TB
2 IPv4 Addresses
Hardware Firewall - Fortigate Firewall (Optional)
£ 209.99/pm ex-VAT | Order Now

WHUK E5 Enterprise (HDD)
CPU Model - 2 x Intel Xeon E5-2630v3 2.4GHz
CPU Cores/Threads – 16 Cores / 32 Threads
RAM - 32GB ECC DDR4 (Max 512GB)
Hard Disk - 4 x 1 TB 7.2K SATA
Port Speed – 1 Gbit
Monthly Bandwidth – 30 TB
2 IPv4 Addresses
Hardware Firewall - Fortigate Firewall (Optional)
£ 249.99/pm ex-VAT | Order Now

WHUK E5 Enterprise (SSD)
CPU Model - 2 x Intel Xeon E5-2630v3 2.4GHz
CPU Cores/Threads – 16 Cores / 32 Threads
RAM - 32GB ECC DDR4 (Max 512GB)
Hard Disk - 4 x 240 GB Performance SSD
Port Speed – 1 Gbit
Monthly Bandwidth – 30 TB
2 IPv4 Addresses
Hardware Firewall - Fortigate Firewall (Optional)
£ 259.99/pm ex-VAT | Order Now


For more details visit: https://www.webhosting.uk.com/dedicated-servers

We offer monthly, quarterly and annual billing options on all servers with 24 x 7 e-mail, live chat and phone support included as standard.

In case you have any questions, you can contact our sales department by initiating a chat or by dropping an email to sales @ webhosting.uk.com or call us on 0800 862 0890 / +44-191-303-8069.
.
Web hosting blog: Important Facts about Dedicated Hosting

About WHUK:
Established in the year 2001, Webhosting.UK.Com (WHUK) Limited offers a wide array of value for money web hosting services including Linux/Windows Shared Hosting, Reseller Hosting, Cloud Hosting, Virtual Private Servers (VPS), Dedicated Servers, SSL and Offsite Backup Solutions. 24x7x365 technical support is available and 99.95% uptime guarantee is offered as standard features with UK-based servers.

Update Query not working

$
0
0
I have a query that counts the number of absences a student has since x date. At the end of the year I want to take that count and add it to the students registration data for their permanent record. I think I should be able to do this with an update query, but it isn't working. I have the query with the count of absences and another based on the permanent record table with just the students for this year with the field where I want the absences to go. But when I try to make the update query and connect the two absences fields, I get "Type mismatch expression." But I don't understand where the mismatch is. Any help please? Thanks!

How To Allocate Tasks to Online Users In MS Access VBA 2007

$
0
0
Dear All,

I need your help to solve my problem, I have 2 Tables : (1st ) tblTaskDetails (2nd ) tblOnlineUsers as below sample data

I want to allocate all pending Accounts Numbers to All Online Users, Suppose 10 Accounts are pending for user allocation and currently 3 users are online in the system, then the system will automatically allocate these 3 online users to pending Accounts equally but most important there sequence like users A,B,C,A,B,C,A,B,C etc as like below Required Result.

Please refer attached Image file for your reference.

1st Table : tblTaskDetails (ORDER BY INCIDENT_DATE ASC)
Account_Number INCIDENT_DATE
201200178 04-Apr-16 07:34:09 AM
921858299 04-Apr-16 08:25:43 AM
990990101 05-Apr-16 09:28:03 AM
990990151 05-Apr-16 09:33:03 AM
990246967 05-Apr-16 09:45:08 AM
990226021 05-Apr-16 10:04:10 AM

2nd Table : tblOnlineUsers (ORDER BY Online_Users_Name ASC)
Online_Users_Name
A
B
C
D
E


Required Result
Account Number INCIDENT DATE If 1 User Online If 2 Users Online If 3 Users Online If 4 Users Online
201200178 04-Apr-16 07:34:09 AM A A A A
921858299 04-Apr-16 08:25:43 AM A B B B
990990101 04-Apr-16 09:28:03 AM A A C C
990990151 05-Apr-16 09:33:03 AM A B A D
990246967 05-Apr-16 09:45:08 AM A A B A
990226021 05-Apr-16 10:04:10 AM A B C B
948104306 05-Apr-16 10:29:18 AM A A A C
920617566 05-Apr-16 10:31:52 AM A B B D
920621842 05-Apr-16 10:33:14 AM A A C A
920844782 05-Apr-16 10:47:25 AM A B A B
936251646 05-Apr-16 11:01:30 AM A A B C
943999521 05-Apr-16 11:03:59 AM A B C D
991007397 05-Apr-16 11:06:34 AM A A A A
921511542 06-Apr-16 11:23:45 AM A B B B
944568550 06-Apr-16 11:24:10 AM A A C C
921511542 06-Apr-16 11:24:14 AM A B A D
909774256 06-Apr-16 11:31:02 AM A A B A
921773014 06-Apr-16 11:32:31 AM A B C B
988250007 07-Apr-16 11:34:58 AM A A A C
921779722 08-Apr-16 11:44:23 AM A B B D
991025088 08-Apr-16 11:58:41 AM A A C A
921841541 08-Apr-16 11:58:44 AM A B A B

Join issue in Query

$
0
0
Hey guys i have a "temporary" database i created but i am having problems on a query and i cannot figure out where i went wrong. The Query is called: Q_Excel_exportScaffoldListTime. In order to run the query you need to open the customer form. and then select the View edit project button. i use KBR as the customer and Yara as the project as this is where all of my test data is stored. once those forms are open you can open the query. The issue i am having is the query is producing duplicated results. but i cant resolve it.Estimation - Copy.zip
Attached Files
Viewing all 13329 articles
Browse latest View live