Click here to Skip to main content
12,074,449 members (63,801 online)

Articles by FZelle (Tip/Tricks: 2)

Tip/Tricks: 2

RSS Feed
No articles have been posted.
No blogs have been submitted.

Average tips rating: 5.00

Programming Tips
General
Posted: 4 Nov 2010   Updated: 7 Nov 2010   Views: 3,450   Rating: 5.00/5    Votes: 4   Popularity: 3.01
Licence: The Code Project Open License (CPOL)      Bookmarked: 3   Downloaded: 0
You can do this in a much easier way:object ADOXCat = Activator.CreateInstance(Type.GetTypeFromProgID("ADOX.Catalog"));ADOXCat.GetType().InvokeMember("Create", System.Reflection.BindingFlags.InvokeMethod, null, ADOXCat, new string[] { ConnectionString });
Posted: 13 Feb 2011   Updated: 14 Feb 2011   Views: 1,600   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 0
You are both wrong with the DataAdapter.Why do you think there is an overload with the querystring and the connectionstring?public DataSet select_query(string query, string con_str){ try { using (SqlDataAdapter da = new SqlDataAdapter(query,con_str)) { ...
No reference articles have been posted.

FZelle
Web Developer
Germany Germany
Software-Developer since 1990
Specialiced in LAN/WAN Tracers ( sniffer )
now developing in .NET ( c#, VB, ASP ..)


Advertise | Privacy | Mobile
Web01 | 2.8.160208.1 | Last Updated 11 Feb 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid