SQL Scripts Questions and Answers

Recent IT Questions

1 - 19 of 19
<<PREVIOUS 1 NEXT>>

SQL Script with hyphen in the value set

We have a particular piece of malware that will put some binary code in the HKLM/System/ControlSet001/Services/{5083B7D5-47AF-8FF9-657C651C2B10}/ I am using an sql script along with Microsofts logparser to parse some data out of the registry on a windows box and I am having trouble with the last...

Answer Question   |  Oct 5 2009  9:03 PM GMT
SQL scripts, SQL Scripting
asked by Markmorgan47

  5 pts.

Retreiving AS/400 SQL scripts

When I start sql on our iSeries, the system returns my previous scripts I have run. Which fle do these live in in the iSeries and can I report on them? Software/Hardware used: i570

View Answer   |  Aug 14 2009  2:33 PM GMT
SQL commands, iSeries SQL, SQL scripts
asked by Morticia001

  10 pts.

dba deleting data

Is part of a DBA's job to delete production data using SQL scripts?

View Answer   |  Jul 7 2009  7:49 PM GMT
DBA, Database Administrator, SQL scripts
asked by Biker01

  5 pts.

SQL script to disable views after a demo period.

Hi, I have a sql view that I created for someone on a test basis. I want to create something (stored procedure, trigger, etc) that will delete or disable this view after a 30 day trial period. I prefer to make the view unvisible even to the "sa" administrator so that the view can not be recreated...

View Answer   |  Jun 23 2009  3:25 PM GMT
SQL, SQL Server 2005, SQL scripts
asked by Katiekat

  5 pts.

runScript() returning null

Hello to all of the participants. This is my first blog. This is a program to execute .sql file which contains bunch of sql statements. I have used iBatis package it's compling and executing with out any mistakes, but resulting nothing. I have tried in both 2.3 and 2.0 release also. Can any...

Answer Question   |  Jun 1 2009  1:13 PM GMT
iBATIS, SQL statement, SQL scripts
asked by Querier

  5 pts.

Display Query for OS/400 SQL script

Is it possible to view the SQL that is generated by a query created in Query for OS/400. I have the query defined as I want it and would now like to give the SQL script to my development team to use in automating reports by accessing the database directly.

View Answer   |  May 19 2009  3:15 PM GMT
SQL scripts, Query for OS/400, OS/400
asked by Tomotsk

  45 pts.

How to run SQL script with parameters in CL

I have to call an sql script with parameters from an existing cl program that runs daily (in batch). If I call it from the cl program, it is giving me this error "Pointer not set for referenced location referenced".

View Answer   |  Mar 22 2009  11:48 PM GMT
SQL, SQL/400, CL
asked by Ara

  5 pts.

Send a email with attachment?

How do I send a email with attachment in a sql script using SQL2000

View Answer   |  Feb 24 2009  2:30 PM GMT
SQL 2000, SQL scripts
asked by Mistp001

  20 pts.

SQL Cursor to use or not to use

Hi, I've been told to never use cursor in SQL, because of possibility of memory leak, etc. But I have no idea of how to implement my script without them. My script doesn't execute anything on the database, it simply use cursor to create another TSQL script that does the execution. EG. open...

View Answer   |  Jan 7 2009  1:39 PM GMT
SQL Cursors, SQL, T-SQL
asked by Db23

  230 pts.

deployment

While running the setup on client machine, An error Number 5 occurred telling - "An error has occurred while establishing a connection to the server. When connecting to SQL server 2005., this failure may be caused by the fact that under default settings SQL server does not allow remote connections....

View Answer   |  Nov 20 2008  1:58 PM GMT
SQL Server 2005, SQL error messages, SQL scripts
asked by Pchandrachoudhary

  5 pts.

SQL script output to a file

I am running ad hoc SQL scripts in iSeries Navigator (V5R4) and need to direct the output to a text file. Is there a way to do this? TIA... Steve B

View Answer   |  Nov 14 2008  4:54 PM GMT
V5R4, iSeries database, iSeries Navigator
asked by SBatSI

  370 pts.

Read Only Table

I create a table in sql server 2k5, the script is look like this: CREATE TABLE [dbo].[tb1PmtD]( [PmtDLU] [int] NOT NULL, [PmtDInvLU] [int] NOT NULL, [PmtDAmount] [money] NOT NULL ) ON [PRIMARY] GO ALTER TABLE [dbo].[tb1PmtD] WITH NOCHECK ADD CONSTRAINT [tb1Pmttb1PmtD] FOREIGN KEY([PmtDLU])...

View Answer   |  Sep 9 2008  9:08 PM GMT
Microsoft Access, SQL Server 2005, File permissions
asked by Ipong

  40 pts.

SQL Script

I am trying to write a sql script that will ask for a date range each time it's run. How do I do this?

View Answer   |  Aug 27 2008  2:16 PM GMT
Date calculation, SQL scripts
asked by Ebethea

  5 pts.

Migrating shell scripts

We have to move more than 250 shell scripts from a unix to a linux environment, and also 100 sql scripts. Could you please give me some steps or a check list to follow to migrate these from unix to linux?

View Answer   |  Jul 29 2008  4:35 PM GMT
Migration, SQL, Unix
asked by Chunter

  110 pts.

How do i replace a sql tables field value with another value

I have the following script that works in Access but not in sql. I trying to replace the the value in the field "RSAMSTORE" with another value I give it (i.e. 999994, etc.) when the data is displayed. In otherwords when the select distinct is ran instead of seeing the value in the table...

View Answer   |  Jul 28 2008  7:18 PM GMT
SQL, SQL scripts, SQL tables
asked by Ilfoprog

  30 pts.

Want to extract the Zip file using DTS Package and also run the DOSBase Batch file with it

Want to extract the Zip file using DTS Package and also run the DOSBase Batch file with it? Hey i have Zip file which i want to extract using the sql script or using DTS Packages. and also want to run the Batch file from DTS Packge. its possible or not ? and yes then how ?

View Answer   |  Jul 17 2008  8:27 AM GMT
Batch files, SQL scripts, DTS packages
asked by 2174816

  5 pts.

Restrict a script to reduce SQL injection attacks

I want to reduce SQL injection attacks. How can I restrict a script to execute one query at a time?

View Answer   |  Jul 10 2008  5:58 PM GMT
SQL injection, Scripts, SQL scripts
asked by SQL Server Ask the Experts

  2445 pts.

Insert records between records in a file using RPG code.

Is there a way to insert a record in between records in a file? For example, a file contains 10 records (1 to 10). I want to insert a record in between records 1 and 2, thus record 2 will move to position 3, 3 to 4, and so on and so forth. Can SQL/Insert function be used to do this?

View Answer   |  Jun 8 2008  5:00 PM GMT
RPG, RPG ILE, SQL scripts
asked by Francissamonte

  15 pts.

sql scripts

Hi all, i'm updating a new 'commun management' software n i wanna update the database bcoz i added many extra tables. i did write scripts for all the tables this way: Create........... Drop........... Alter........ so our clients would be able to have access to it. but i have been asked to write...

View Answer   |  Jun 5 2008  9:12 AM GMT
SQL, Scripts, SQL scripts
asked by JARON

  5 pts.

1 - 19 of 19
<<PREVIOUS 1 NEXT>>