Ask a Question related to ASP Database, Design and Development.
-
Joe #1
How to get Table Parameters to copy table
Hey all,
I'm trying to do the following in ASP :
- Determine the parameters(field names and data types) of a
table .
- Create a new table with these same parameters.
- Insert all data from first table into copied table.
Any suggestions as to what a reliable solution might be for this would
be appreciated.
Thanks,
Joe
Joe Guest
-
copy table
hi , i am using sql create table xxx like aaa including indentity to copy a table , but if table aaa has primary keys specified and xxx has the... -
Copy row from table to table
What is the easiest way to copy a particular row from one table to another (assuming all the columns are exactly the same). I want to maintain a... -
Could not load type VTFixup Table from assembly Invalid token in v-table fix-up table.
We are getting this error after clearing the web.config of database infomation - even after using the wizard to re-enter the information. I could... -
Copy data into same table
I have table Properties. I want to select data for one item and to add that data in same table but for other item (all values would be the... -
Copy data from one table to another
Simon this is very nearly the exact same question you asked in "DTS task" Please do not post the same Q under different headings See my reply... -
Bob Barrows #2
Re: How to get Table Parameters to copy table
Joe wrote:
Why didn't you think your database type and version would be relevant? There> Hey all,
>
> I'm trying to do the following in ASP :
>
> - Determine the parameters(field names and data types) of a
> table .
> - Create a new table with these same parameters.
> - Insert all data from first table into copied table.
>
> Any suggestions as to what a reliable solution might be for this would
> be appreciated.
>
> Thanks,
>
> Joe
is no way we can answer this question without that information.
Bob Barrows
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Bob Barrows Guest
-
TomB #3
Re: How to get Table Parameters to copy table
If you are using SQL Server, take a look at DTS(Data Transformation
Services).
If you are using Access, I would use ADOX (but there may be a better way)
"Joe" <jbassil@cs.dal.ca> wrote in message
news:a4ac3447.0311270613.2e76d2ef@posting.google.c om...> Hey all,
>
> I'm trying to do the following in ASP :
>
> - Determine the parameters(field names and data types) of a
> table .
> - Create a new table with these same parameters.
> - Insert all data from first table into copied table.
>
> Any suggestions as to what a reliable solution might be for this would
> be appreciated.
>
> Thanks,
>
> Joe
TomB Guest
-
Joe Bassil #4
Re: How to get Table Parameters to copy table
I'm using SQL Server 7, and would like to essentially mimmick the
functionality of the 'Generate SQL Script' command. I've considered
using DTS to get me going, but would appreciate your suggestions...
thanks,
Joe
*** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
Don't just participate in USENET...get rewarded for it!
Joe Bassil Guest
-
Foo Man Chew #5
Re: How to get Table Parameters to copy table
If you don't care about indexes and constraints, you can say:
SELECT * INTO newTable FROM oldTable
This will create a table with the same structure, and populate it with a
copy of the existing data.
"Joe Bassil" <jbassil@cs.dal.ca> wrote in message
news:eLa6TXPtDHA.2456@TK2MSFTNGP12.phx.gbl...> I'm using SQL Server 7, and would like to essentially mimmick the
> functionality of the 'Generate SQL Script' command. I've considered
> using DTS to get me going, but would appreciate your suggestions...
>
> thanks,
> Joe
>
>
>
> *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
> Don't just participate in USENET...get rewarded for it!
Foo Man Chew Guest
-
Aaron Bertrand [MVP] #6
Re: How to get Table Parameters to copy table
> If you don't care about indexes and constraints, you can say:
Just as another disclaimer, this can also cause problems with IDENTITY>
> SELECT * INTO newTable FROM oldTable
columns, computed columns, primary keys, triggers, defaults (yes, primary
keys and defaults are constraints, but they deserve individual mention as
well).
--
Aaron Bertrand
SQL Server MVP
[url]http://www.aspfaq.com/[/url]
Aaron Bertrand [MVP] Guest



Reply With Quote

