|
-
Jun 22nd, 2004, 04:39 AM
#1
Thread Starter
New Member
sql in vb
I am writing a project in vb and i need to use sql because i need to create a database in a network. how can i write sql statments in vb?
like when i tried to declare a begin definition
exec sql begin declare section
char pass(10)
exec sql end declare section
it was a mistake, because begin & end are saved world's in vb
please help me out!!
thank's in advence
p.s: if u now when i can learn more about this subject please let me now
thank's a lot.
-
Jun 22nd, 2004, 05:06 AM
#2
Is there a reason you've posted this twice?
Btw, are you doing vb6 or vb.net?
-
Jun 22nd, 2004, 06:03 AM
#3
Lively Member
Hey Anat,
Please explain in detail about your environment like, backend, ADO/DAO/ etc. and what you have given as code is no at all VB .
generally in VB and if you are using ADODC, then it is
connection.execute ssql
is the method used to execute any sql statement where connection is an object of ADODC.Connection
Cheers
GS
-
Jun 22nd, 2004, 08:43 AM
#4
Frenzied Member
If you are trying to create a Database you might also want to look into the SQLDMO whether you are in VB 6 or VB.NET, it provides some nice functionality for creating databases through code.
Sean
Some days when I think about the next 30 years or so of my life I am going to spend writing code, I happily contemplate stepping off a curb in front of a fast moving bus.
-
Jun 24th, 2004, 02:57 AM
#5
Thread Starter
New Member
-
Jun 24th, 2004, 03:49 AM
#6
As I mentioned in your other thread, check out Beacon's tutorial. It's a good ADO reference, will help you lots when working with databases.
Also, this is the VB.NET forum, so try being a little careful. You might have ended up trying out SQLDataSets and wondering why nothing's working at all!
-
Jun 24th, 2004, 11:49 AM
#7
New Member
I think first off, you need to figure out your database platform first (MySQL, Oracle, etc, etc). The drivers/syntaxes are different for each.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|