SQL Questions and Answers

Recent IT Questions

121 - 140 of 830

hourly backup schedule

have a question about client schedule settings. My problem is that I am using TDP for MS SQL and i want to backup database logs every hour but only during productive hours, e.g. from 6am til 5pm. The only way I solved is to create each schedule for each hour, because if i set parametres "period"...

Answer Question   |  May 28 2009  12:35 AM GMT
TDP, SQL, SQL Backup
asked by Khn0664

  5 pts.

Alter SQL table

hi i have a set of data number | code 1 | abc 2 |ff 3 |aa 3 |bb 4 |cc 5 |dd 5 |ee and i'm wondering if there is a way to convert this data so it looks like number | code1 |code2 1 | abc |null 2 |ff ...

View Answer   |  May 28 2009  11:21 AM GMT
SQL, SQL tables
asked by Lazy167

  55 pts.

Oracle RR Date Format

TELL ME ABOUT RR DATE FORMAT IN ORACLE9I(SQL)

View Answer   |  May 27 2009  8:43 AM GMT
SQL, Oracle RR date format, Oracle 9i
asked by JOGENDER2009

  5 pts.

Database Issues - Trying to prove that something has to be done

Hello Everyone, I'm currently trying to prove a concept on why we should re-create our old existing PFs into SQL defined tables (Portability, performance, etc.). After taking a look at some files, I noticed an even larger problem that would ruin my chance of proving this concept. Unless some...

View Answer   |  May 26 2009  2:16 PM GMT
Database issues, iSeries, Indexes
asked by Dcantwell

  180 pts.

sql update a column to remove a certain character

i have a table (book) where there is a column that contains number in some rows and numbers with an addition *infront. i want to be able to perform some calculation with the table but the '*' is preventing me from doing this. SO how do i update or alter the table so that i can remove the * and keep...

View Answer   |  May 26 2009  1:41 PM GMT
SQL, SQL tables
asked by Lazy167

  55 pts.

SQL error

DECLARE BEGIN FOR C1 IN (SELECT A.BANK,A.BRANCH,A.MODULE,A.SCHEME,A.ACCOUNTNO,A.ACCOUNTISN,NVL(T.NEXTDUEDATE,:TDATE) NEXTDUEDATE,A.REVIEWDATE FROM ACCOUNTMASTER A,TERMLOANSDATA T WHERE A.BANK=:INPBANK AND A.BRANCH=DECODE(:INPBRANCH,'ALL',A.BRANCH,:INPBRANCH) AND A.MODULE=:INPMODULE AND...

View Answer   |  May 26 2009  5:49 AM GMT
ORA-06550, SQL, Oracle error messages
asked by Shindetanaji

  10 pts.

Event ID: 2803 and 17137 Question

I have recently installed SQL 2005 Express and Symantec Backup Exec for Windows 2003 SBS. I have not created any backup jobs and do not have an Active SQL DB just yet. However the following Information Events are being logged under Application Event every 5 minutes. Is this normal and is it...

Answer Question   |  May 23 2009  4:54 AM GMT
SQL Express, SQL, Backup software
asked by PCJunkie

  870 pts.

DBCC CHECKDB

before runing DBCC CHECKDB WITH repair_allow_data_loss, How can i know what table and data that will be deleted

View Answer   |  May 21 2009  9:27 AM GMT
DBCC CHECKDB statement, T-SQL, SQL
asked by Sreenu12

  5 pts.

Finding nth most recent action with SQL

I am trying to determine the date on which a certain number of things have happened cumulatively, eg I have a varying number of buyers each month. I want to find out on what date of that month, those buyers make their 3rd purchase. My SQL doesn't seem to support TOP or ROWCOUNT so I would...

View Answer   |  May 18 2009  10:11 PM GMT
SQL query optimization, COUNT statement, SUM statement
asked by Munona99

  5 pts.

Error when using SQL*Plus @@ command in SQL Navigator

When I try to use the @@ SQL*Plus command in a script I get the message "ORA-00936: missing exppression!" when it reaches the line containing this command. I read the help and they say that the @@ command is admitted. I've tried the same script in Oracle Enterprise Manager...

Answer Question   |  May 12 2009  10:22 AM GMT
SQLPlus, SQL Navigator, ORA-00936
asked by Imre

  5 pts.

How to pass array in MySQL procedure parameter

how to pass array in mysql procedure parameter

Answer Question   |  May 12 2009  7:13 AM GMT
MySQL, MySQL Stored Procedures, Database programming
asked by Guptarun

  5 pts.

sql Help

I have a ten character field and need to exclude records if the first 2 character equal a specific pattern how do you do that?

View Answer   |  May 11 2009  5:21 PM GMT
SQL, SQL Fields
asked by Sjstevenson

  5 pts.

Querying database tables with their descriptions

I want to query an SQL server database for specific tables and their descriptions. How do I do that? Is there a special tool needed to do this?

View Answer   |  May 11 2009  10:01 AM GMT
SQL Server Query, SQL, SQL queries
asked by Sheni

  5 pts.

SQL Studio Express scheduled backup

I need a scheduled backup for a standalone SQL database on an XP Pro PC. I have Studio Express installed and this does not have a scheduling utility. Can anyone suggest a way of achieving this without the expense of an SQL Express license

View Answer   |  May 10 2009  9:01 PM GMT
SQL Backup, SQL, Backup Scheduler
asked by James01

  5 pts.

Execute command in SQL

can someone tell me the error in this statement declare @cmd nvarchar(4000) declare @PatNo bigint set @PatNo=123 set @cmd= N'insert into TmpDues ( PatNo, BillDate, ReceiptNo, PayMode Amt) select ReceiptTable.PatNo,ReceiptTable.BillDate,ReceiptTable.ReceiptNO,'+ '''Cash'''+' as PayMode,CashAmount...

View Answer   |  May 9 2009  6:26 AM GMT
SQL queries, SQL error messages, SQL
asked by Ash123

  5 pts.

Call SQR (Structured Query Reporter)

how to call sqr on aix and return spf to windows

Answer Question   |  May 9 2009  0:55 AM GMT
SQR, AIX, Structured Query Reporter
asked by Gdcl

  5 pts.

SQL Server 2005

CAN ANYBODY HELP ME "HOW TO ASSIGN A SQL-STATEMENT IN A VARIABLE". FOR EXAMPLE : TO ASSIGN A STRING IN A VARIABLE, WE DO LIKE THIS: DECLARE @A AS VARCHAR(20) SET @A='HAI' PRINT @A OUTPUT: HAI SIMILARLY HOW TO ASSIGN A SQL-STATEMENT IN A VARIABLE.

View Answer   |  May 8 2009  6:37 AM GMT
SQL Server 2005, SQL statements, SQL variables
asked by Narendar

  30 pts.

SQL or RPG

Would it be better to use SQL or RPG, to update one field in the file with a value from another field in the same file? I am not that familiar with SQL, only a beginner. My RPG skills are rusty as I've not written anything in the last 4 years.

View Answer   |  May 6 2009  3:22 PM GMT
SQL, RPG
asked by Adeaver

  20 pts.

Read/Write ability to MSSQL using FoxPro 2.6 for DOS

Hi All My company has a DOS Based Accounting system running under FPD 2.6 for DOS. We have purchased a project planning package that sits on a SQL server. I need to be able to transfer actuals from our DOS (dbase4) accounting data to MSSQL and also read from MSSQL for reporting purposes. Is this...

Answer Question   |  May 4 2009  8:14 PM GMT
SQL, FoxPro 2.6, FoxPro 2.6 for DOS
asked by Aimtek

  5 pts.

SQL Log files

Can I delete a SQL log file

View Answer   |  May 4 2009  2:43 PM GMT
SQL, SQL Log Files
asked by RSCC

  5 pts.

121 - 140 of 830