473,925 Members | 24,963 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

SQL in place of Adodc. How is it done?

20 New Member
I have been using Adodc recently to link my system in vb6 to my detabase until our professor required us recently to use SQL which is completely new to me and ive never encountered before. How is it related or is it related to Adodc or Adodb?im still on the process of researching my problem but since it is urgent i already posted it for me not to get stuck between these projects. I hope you understand and give some help.thanks and more power.
Mar 5 '08 #1
3 1724
Scott Price
1,384 Recognized Expert Top Contributor
SQL stands for Structured Query Language and is the standard (with various flavors) for querying any database anywhere in the world (just about).

ADO stands for ActiveX Data Objects and is a language used to connect databases.

The two languages are not mutually exclusive and actually make use of each other. This makes me think your professor is actually throwing you a curve ball, since using ADO for the connection requires you to use SQL for the queries.

Regards,
Scott
Mar 5 '08 #2
yosh29rs
20 New Member
SQL stands for Structured Query Language and is the standard (with various flavors) for querying any database anywhere in the world (just about).

ADO stands for ActiveX Data Objects and is a language used to connect databases.

The two languages are not mutually exclusive and actually make use of each other. This makes me think your professor is actually throwing you a curve ball, since using ADO for the connection requires you to use SQL for the queries.

Regards,
Scott
Is that so? ah okay. . .
What about their use as a connection from the database to the system? For instance you are using VB?
Mar 12 '08 #3
Scott Price
1,384 Recognized Expert Top Contributor
The process is:

You make the connection from your front end GUI (written in VB6?) using ADODC.

SQL does not provide any connection capabilities. SQL is an international query language standard that is platform independent. That means that it doesn't matter which program you are using as a database manager, the basic SQL syntax stays the same as any other Relational DataBase Management System... Various software companies have added different specific high-level implementations to the basic SQL standard (MS' flavor is called T-SQL or Transact SQL), however they still do not provide the connection code.

A likely scenario is that you create the connection using a command from VB6. In the next lines of code you 'query' the database using an SQL statement which is going to take the form of: "SELECT [something] FROM [sometable] WHERE [somecondition]"

Regards,
Scott
Mar 12 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
1313
by: howie | last post by:
I've upgraded a vb6 application to vb .net and am having an issue. whenever I try to set the recordset property of the VB6.adodc object in .net and run the application I get the error “object reference not set to an instance of an object” this is what the code looks like Dim lador_JLD As New ADODB.Recordset ls_sql = "execute sp_ShiftEditJobsDetail " Dim Gdf_cpv As Object
4
5988
by: Raoul Watson | last post by:
I have a form with an AdoDc control associated to a datagrid. The AdoDC uses a "ConnectionString" such as "Provider=Microsoft.Jet.OLEDB.4.0;Persist Security Info=False;Data Source=..." this is where the problem begins. The data source will not be known until the user selects the database. What is really weird is that if the source is not placed during design time, during run time the form upon loading will generate an error ("Failed to
1
2329
by: blobi | last post by:
i tried to use adodc with unknown recordsource but it couldn't work when i was using datagrid with adodc as datasource. "ADO can not set for the command text". why i failed for using adodc with unknown recordsource while i would like to plan dynamic sql command. thanx
9
3337
by: Neelesh2007 | last post by:
Hi All, I have developed project in VB6.0 with access as backend.I have used ADODC control in VB to retrieve data from access. I have created the Setup file by Package & Deployment. Now when i install the software on other PC whole program works fine but ADODC can not establish connection with database. Then if I install VB6.0 then only ADODC works. Can any body guide me how can i create set-up file so that i can install my software without...
2
1339
by: techie2 | last post by:
Can you help me to handle the error with ADODC? When I run any form which has ADODC on it I get an 'Operation was cancelled' or 'Could not find installable isam' errors. How to eliminate these errors? Added to this When I open my components list, I find it blank even after I registered them manually I dont find them after I reopen it. Help me with this I must do a project in VB which has a lot to do with ADODC.
4
1496
by: alem | last post by:
Hallo friends! PlS help me I got confused. Can I use ADODC and ADODB together if I can; I already applied ADODC in my database file. How to use mathimatical functions and other code shall I use array for the text box I already use ADODC for some commands I need to use ADODB..
2
1251
by: yosh29rs | last post by:
I have been using Adodc recently to link my system in vb6 to my detabase until our professor required us recently to use SQL which is completely new to me and ive never encountered before. How is it related or is it related to Adodc or Adodb?im still on the process of researching my problem but since it is urgent i already posted it for me not to get stuck between these projects. I hope you understand and give some help.thanks and more power.
1
2192
by: hussainiyad | last post by:
Dear all, i,m new to v.b and i tried to connect to sqlserver through adodc in a datagrid or datalist , but there was no result in my form, can any one tell me what's the reason and i done every thing to connect with the sql step 1:Right click the adodc control declared the provider,database,pwd step2.: In choose Record source i declaled the commad type as "cmd table" and as well the table name step 3 : Draged a data grid and declared the...
2
1617
by: Wernerh | last post by:
Hi, please can anyone tell me if there is a way to navigate two adodc controls. I have a from with adodc1 and adodc2 - each linked to their own mdb table working perfectly. Is there any way by code that if you use the adodc1 control to navigate to the next record it will mirror this action in adodc2. Would appreciate any insight, not even sure it can be done. Regards Werner
0
9935
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11463
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10607
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9810
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 projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
7332
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
6028
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
6228
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4860
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 we have to send another system
2
4403
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.