Re: How to specify the name of the database to export to in a make table query
From: Michael, Cheng [MST] (v-mingqc_at_online.microsoft.com)
Date: 04/12/04
- Next message: alexttp: ""Syntax error in ALTER TABLE statement.", again..."
- Previous message: Duane Hookom: "Re: Hopefully a simple query"
- In reply to: Neil Robbins: "Re: How to specify the name of the database to export to in a make table query"
- Next in thread: Yan-Hong Huang[MSFT]: "Re: How to specify the name of the database to export to in a make table query"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 12 Apr 2004 05:36:13 GMT
Hi Neil,
Based on my knowledge, you could make your query in .net like this
// Use constructor arguments to configure command object
SqlCommand cmd = new SqlCommand( "SELECT * FROM PRODUCTS", conn );
// The above line is functionally equivalent to the following
// three lines which set properties explicitly
sqlCommand cmd = new SqlCommand();
cmd.Connection = conn;
cmd.CommandText = "SELECT * FROM PRODUCTS";
you can use added String to make the whole query like String1 + "Table
Name" + String2
Detailed information about this could be find at
.NET Data Access Architecture Guide
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnbda/html/
daag.asp
However, vb.net issue is related to .net language newsgroup. The reason why
we recommend posting appropriately is you will get the most qualified pool
of respondents, and other partners who read the newsgroups regularly can
either share their knowledge or learn from your interaction with us.
Thank you for your patience and cooperation. If you have any question or
concern, don't hesitate to let me know. We are here to be of assistance!
Sincerely yours,
Michael Cheng
Microsoft Online Support
***********************************************************
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
Please reply to newsgroups only, many thanks.
- Next message: alexttp: ""Syntax error in ALTER TABLE statement.", again..."
- Previous message: Duane Hookom: "Re: Hopefully a simple query"
- In reply to: Neil Robbins: "Re: How to specify the name of the database to export to in a make table query"
- Next in thread: Yan-Hong Huang[MSFT]: "Re: How to specify the name of the database to export to in a make table query"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|