RE: Scripts using T-SQL or ADO
From: Richard J (RichardJ_at_discussions.microsoft.com)
Date: 08/09/04
- Next message: DC: "RE: Scripts using T-SQL or ADO"
- Previous message: Alejandra Parra: "excecute script"
- In reply to: DC: "Scripts using T-SQL or ADO"
- Next in thread: DC: "RE: Scripts using T-SQL or ADO"
- Reply: DC: "RE: Scripts using T-SQL or ADO"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 9 Aug 2004 10:27:03 -0700
DC,
Yeah, I can't imagine why you couldn't create tables using VB 6. I'll leave
the design up to you, but you would simply set the statement as:
sSQL = "CREATE TABLE " & txtTableName.Text & " ( "_
& <fld1> & " " & <datatype> & " " & <NULL> ...
I don't see why that wouldn't work. However, building a table or database
in this manner seems like it would be counter-productive. You can't build
primary keys or indexes in this manner. So I would suggest approaching with
caution.
As for not knowing the table structure in advance, that's something you
should capture up front during requirements gathering. What information do
the users need access to?! If the users don't know, then a table isn't
needed.
Good luck.
Richard
"DC" wrote:
> Hi all,
> is it possible to script a table (or entire DB) using VB 6 source code.
> I wouldn't like to use SQL-DMO objects.
> I don't know table struture in advance.
>
> TIA,
> DC
- Next message: DC: "RE: Scripts using T-SQL or ADO"
- Previous message: Alejandra Parra: "excecute script"
- In reply to: DC: "Scripts using T-SQL or ADO"
- Next in thread: DC: "RE: Scripts using T-SQL or ADO"
- Reply: DC: "RE: Scripts using T-SQL or ADO"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|