473,513 Members | 10,313 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

TOAD: Create a code statement mod

This may be slightly off topic, but this is probably a better place to
ask than an Oracle group as folk here are more likely to use the
feature I'm asking about.

In Toad (Quest Software) there is a button called 'Create a code
statement' that turns SQL into something you can use in ASP for
building SQL strings:

For example if in Toad you highlight the following, and click the
button:

SELECT
name,
address_line1,
address_line2,
county,
city,
postcode
FROM
address_table
WHERE
city = 'Birmingham'

It copies this into clipboard:

SQL = " SELECT "
SQL = SQL & " name,"
SQL = SQL & " address_line1,"
SQL = SQL & " address_line2,"
SQL = SQL & " county,"
SQL = SQL & " city,"
SQL = SQL & " postcode"
SQL = SQL & " FROM "
SQL = SQL & " address_table"
SQL = SQL & " WHERE "
SQL = SQL & " city = 'Birmingham'"

This is a nice feature (and there is another button that does the
reverse), but I like to build my SQL like this:

Dim aSQL()
Redim aSQL(8)

aSQL(0) = "SELECT "
aSQL(1) = " name, "
aSQL(2) = " address_line1,"
aSQL(3) = " address_line2,"
aSQL(4) = " county,"
aSQL(5) = " city,"
aSQL(6) = " postcode"
aSQL(7) = "FROM "
aSQL(8) = " address_table"
aSQL(9) = "WHERE "
aSQL(10) = " city = 'Birmingham'"

sql = Join(aSQL,"")
Erase aSQL

Anyone know if Toad can be modified to create the array above instead?
I cant find any information about this anywhere.

TIA,

Colin
Jul 19 '05 #1
0 1675

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
6849
by: Joel Racicot | last post by:
Hi Everyone, I recently had to rebuild my test server and decided to install 9i. Done and works fine. Can connect to DB using SQL*Plus. Then installed TOAD on same box and can't connect to DB...
2
9632
by: Salvador Valencia | last post by:
Hi, I'm getting the message "NO CREATE statement found to execute" in the procedure edit window of TOAD (v7.3.0.0). The code COMPILED last night and now this morning I get this message. There...
2
3047
by: Christian Brennsteiner | last post by:
hi all ms sql specialists..... i am a newbie on ms sql but i am used to oracle and toad ... and now a question (i guess this was asked xxx times befor but i couldn't find the answer easilly)...
1
2282
by: William F. O'Neill | last post by:
Have just downloaded Toad for SQL Server, and by accident noticed that decimal and number fields have a dollar sign in the column values, only in Toad, not when I access these tables in Enterprise...
2
2468
by: luku | last post by:
Hello J have a problem with connecting to database using toad for ss on windows XP. the error is: class unregistered Please help thanks
1
1659
by: xunling | last post by:
Hello, i want to use toad to work with sql-Server for my business. But i cant get rid of it, after extracting the packets i find the toad ss.exe. I dont know how to connect to my database, as...
1
5038
by: stdo63 | last post by:
select distinct (npa+nnx) Can anybody tell me what the missing expression from the above statement? Or just provide any example of using distinct function in TOAD? Thanks a lot!
1
19746
by: smita81 | last post by:
Hi, I have a problem while trying to login to toad. My operating system is WINDOWS XP. I have Oracle 9i at my system. I installed the Toad into the system.When I start the Toad "Toad Server...
0
1712
by: sherifffruitfly | last post by:
Hi all, After finishing a script in Toad for MSSQL, I saved and closed the file in Toad. I then kicked off our staging process which moves the file from the save location to somewhere else. The...
0
7254
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7153
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7432
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7519
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5677
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4743
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3230
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3218
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1585
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.