In addition to using datasets, I need to allow my users to connect directly to the database and see all of the available tables/fields. Can you do this?
SqlConnection conn = new SqlConnection("Data Source=(local);Initial Catalog=Trebuchet;Integrated Security=True;");
conn.Open();
rpt.RegData("Trebuchet", conn); //Trebuchet is the name of my database
If not, I can prompt for a SQL string before I launch your designer. In this case, I need to know what API method(s) to use to set the SQL string.
Direct database connection
-
- Posts: 62
- Joined: Mon Dec 11, 2006 1:43 pm
- Location: U.S.A.
Direct database connection
You can connect directly to database from report designer. To create new connection go to report dictionary andIn addition to using datasets, I need to allow my users to connect directly to the database and
select command "New Database".
At this moment you can't select tables from available. You need write sql query.see all of the available tables/fields. Can you do this?
In next version we will provide this functionality.
Thank you.