Hello everyone
I'm a new dB user, thrown into this cruel and hard world by my boss who decided that as 1st line support, I should handle all the basic dB reporting. Not that I'm complaining, as I've decided that I...
View ArticleUrgent Help Needed!!!!
:eek: I used the MS Access security wizard and it quickly became apparent I didn't know what I was doing. I stopped it and reverted back to how it was. I then spent the next few days populating tables...
View ArticleStored Proc Performance
Hi All, For my company, I am revisiting one of the stored procedures that has already been written by a third party vendor. Very recently there was an issue where this procedure took unusually long to...
View ArticleGetting the INFORMATION_SCHEMA.TABLES from a databasename.
Hello I want to achieve something like this: Code: DECLARE @dbName nvarchar(100) SET @dbName = 'TestDatabase' SELECT * FROM @dbName.INFORMATION_SCHEMA.TABLES But of course, the string, ehm, the...
View ArticleUsing Like in If condition
Hi.. A value is being passed to the procedure as a parameter. Within this procedure, can another variable be declared to hold this value and apply some conditions like: if @sample is the parameter...
View ArticleTables in cursors
Hi All, Currently there is one table in my code and it is used by the cursor. As now i need to use the another table as well. According to requirement i check some condition if condition satisfies i...
View Articlealternative for count(distinct col)
Hi, Please check the below query: select e.first_name,e.job_id, count(distinct e.manager_id), count(distinct e.salary), count(distinct e.commission_pct) from employees e where e.department_id between...
View ArticleLoading blobs from del file
I'm using IBM Data Movement Tool to migrate a database from DB2Z to DB2 LUW. This tool generates dump files with, for one table, blob data represented as hex within the delimited file. I wish to load...
View Articledatabase design schema etc
I am trying to brainstorm a little database with tbl_Users, tbl_Company, tbl_Employees tbl_USERS - These are USER accounts that will be used to login to the website/db. tbl_COMPANY - These are numerous...
View ArticleAre the first 2 Characters a letter??
I do not have any experience with DB2, but i have an issue that i need to resolve. I want to select all records from a table where the first 2 characters within a field are alphanumeric. I know that...
View ArticleGrant ROLE performance issue
Hi , I am seeing a major performance difference when running a grant to a role vs grant to a user can any one explain why this is happening and if there is a way to improve the performance of grants to...
View ArticleCursor exception (SQLSTATE=24501) during nested error handling
I am getting error when running following procedure. Logs indicate that cursor cur_loop_test (cursor is declared using WITH HOLD option) is thorwing error on 2 record's fetch. Error message is:...
View ArticleHelp needed
Hi to all am new in this forum & new to plsql. i wish to become a plsql developer.i wish you people help me for this. Today i installed Oracle 11gR2 and sql Developer.i write a simple pgm.the pgm...
View Articledb2 license
lparstat -i output for an AIX LPAR with DB2 v9.7 ESE: Code: > lparstat -i Node Name : xxxx Partition Name : xxxx Partition Number...
View ArticleNode hostname update
I have a Node entry on a server that has the hostname as X, how do I change to Y? Thanks! md
View ArticleASP ConnectionString - desperate
Hi, I have to connect to a Sybase db from a classic ASP Page. I can't find the correct connectionstring, even if I tried to used all I found in Internet. I thought I could use: StrConnect =...
View ArticleSQL Cursor vs XMLAGG(?)
Hi all! The purpose is to get concatenated string from varchar field. There're 2 ways - use combination of XML2CLOB(XMLAGG(XMLELEMENT(?))) or use cursor with looping throgh each sql query row. (or may...
View ArticleQuestion Regarding Commit
Hello SQL-Server-Experts, i was tracing one of SQL-Server Instances and found a strange Behavior. I've batches with Code: IF @@TRANCOUNT > 0 COMMIT TRAN taking between 3 and 5 Seconds. I've no clue...
View ArticleSoftware developer, NW England
Software Development contractor, £350 per day in the North West, UK Skills required: C#, .NET, html, JavaScript, CSS, MVC Must use Test Driven Development as a fundamental way of working. Must be able...
View ArticleInserting/updating Dynamic Date values (YYYY/MM / YYYY-MM-01 ,MM/01/YYYY )
Hello, I am trying to write some DB2 queries to do following activity. Can you help me with you suggestions.. A). I need to INSERT a date in the format YYYY-MM-01 to the date field where YYYY is...
View Article