Set Datasource In Code 追蹤

0
Avatar
Legacy Poster

How would I set the Datasource in a .NET application, is it possible?

2 意見

0
Avatar
Legacy Poster
評論操作 永久連結

I found the answer in another topic posted in 2012:

 

Thnaks to Shotaro for posting the code.

 

http://forums.seagullscientific.com/index.php?/topic/525-sample-code-create-and-assign-csv-database/

0
Avatar
Legacy Poster
評論操作 永久連結

Also, you can pass to your BarTender.Format a complete SQL string like something:

btFormat.Databases.GetDatabase(1).OLEDB.SQLStatement = sql
 

where sql is a string like "SELECT field_list FROM table ..."

登入寫評論。