From stuart at lexacorp.com.pg Fri May 6 08:13:27 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 06 May 2011 23:13:27 +1000 Subject: [dba-VB] Back to native Code? In-Reply-To: References: Message-ID: <4DC3F3F7.938.70227B0@stuart.lexacorp.com.pg> Is the romance with .Net and managed code on it's way out? Is the "next big thing" going to be a return to native code? http://www.zdnet.com/blog/microsoft/what-is-winc-and-how-does-it-figure-in-microsofts-bid-to -make-tools-a-2-billion-business/9359 or Short URL: http://goo.gl/qRTUB -- Stuart From accessd at shaw.ca Fri May 6 17:58:20 2011 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 6 May 2011 15:58:20 -0700 Subject: [dba-VB] Back to native Code? In-Reply-To: <4DC3F3F7.938.70227B0@stuart.lexacorp.com.pg> References: <4DC3F3F7.938.70227B0@stuart.lexacorp.com.pg> Message-ID: <61323A1825D9472EAD300900B45D455C@creativesystemdesigns.com> I doubt whether it is on it way out but I do think MS has to realize that not everyone sees .Net as the way to salvation. Companies like Amazon, Google and even Oracle are completed committed to Java development are regardless of the temptation are not about to switch. Then there are companies like FaceBook which are completely committed to PHP. There is a massive base of there languages and that is for a number of reasons. First, the languages are Open Source which means everyone regardless of the finances can get into the product. This is particularly attractive to university students who traditionally have no money and that is important as these people are the future of the programming world. Second, the languages are not tied to a specific version of Windows and/or Framework. A .Net application that will run on a Server2008 will not necessarily run on Server2003. There is a lot of investment in development and no programmer wants to loss 10 years of their lives due to someone's idea of an improvement. Third, the .Net language is not portable. IOW they can only run on one platform. Linux's penetration of the desktop market may not be that large but in the Server market Linux is king. Until recently, there was a parallel project running under the old Novell, to create and support a Linux .Net but after its purchase by Attachmate, the project has been abandoned. MS may not realize it but this will hurt .Net on Windows as well. Fourth, Open Source products have one big advantage over controlled factory type languages and that is the speed of bug resolution. A bug appears on Thursday and a solution is posted on Saturday. Every time a major OS product has an issue, 1200 university student whip into the source code to be the first person to arrive at a viable solution. Fifth, languages that have been around for a while have been used to create and support many large and small projects and applications. That is a huge investment and major companies are loathed to abandoned migrate without a very good reason. Example: there are many large accounting system that have been written in Cobol and some companies still have stable of Cobol programmers working for them. Sixth, good desktop centric languages are not nearly as important as they were 10 years ago. People are looking for languages that are web server supporting and can be extended to browser based environments. To that end ASP.Net does an acceptable job at this level of support but, its deployment coupled with IEx does not necessarily comply with new the industry standards, in CSS3, HTML5 and now WebGL. C++ was at one time a product belonging to MS/Borland but that has dramatically changed with Open Source C/C++ compilers available. Now it is cross-platform and now its future is assured. Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, May 06, 2011 6:13 AM To: Discussion concerning Visual Basic and related programming issues. Subject: [dba-VB] Back to native Code? Is the romance with .Net and managed code on it's way out? Is the "next big thing" going to be a return to native code? http://www.zdnet.com/blog/microsoft/what-is-winc-and-how-does-it-figure-in-m icrosofts-bid-to -make-tools-a-2-billion-business/9359 or Short URL: http://goo.gl/qRTUB -- Stuart _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From shamil at smsconsulting.spb.ru Sat May 7 03:21:28 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sat, 7 May 2011 12:21:28 +0400 Subject: [dba-VB] Microsoft.SqlServer.Smo Message-ID: <0632A25A4F414713973B5CE5E091B71C@nant> Hi All -- I can't get Microsoft.SqlServer.Smo (http://msdn.microsoft.com/en-us/library/microsoft.sqlserver.management.smo% 28v=SQL.100%29.aspx) available for my VS2010 SP1 project. I have got at "Microsoft SQL Server 2008 Feature Pack, April 2009" http://www.microsoft.com/downloads/en/details.aspx?FamilyID=b33d2c78-1059-4c e2-b80d-2343c099bcb4 and I have got downloaded "Microsoft SQL Server 2008 Management Objects" "The SQL Server Management Objects (SMO) is a .NET Framework object model that enables software developers to create client-side applications to manage and administer SQL Server objects and services. This object model will work with SQL Server 2000, SQL Server 2005 and SQL Server 2008." http://download.microsoft.com/download/0/E/6/0E67502A-22B4-4C47-92D3-0D223F1 17190/SharedManagementObjects.msi But it doesn't want to setup on my system telling me it's there already :) - although I can't see it from VS2010 SP1 project's References dialog :( I'm (re-)searchning my computer files for Microsoft.SqlServer.Smo filename now but I doubt this search will get any positive results returned... Could you please advise/guess what am I'm missing? Thank you. -- Shamil From shamil at smsconsulting.spb.ru Sat May 7 04:25:41 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sat, 7 May 2011 13:25:41 +0400 Subject: [dba-VB] Microsoft.SqlServer.Smo In-Reply-To: <0632A25A4F414713973B5CE5E091B71C@nant> References: <0632A25A4F414713973B5CE5E091B71C@nant> Message-ID: Hi All -- I have found Microsoft.SqlServer.Smo related assemblies installed on my system under ... \Program Files\Microsoft SQL Server 2005 Express\100\SDK\Assemblies. Issue solved. Thank you. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: 7 ??? 2011 ?. 12:21 To: 'Discussion concerning Visual Basic and related programming issues.' Subject: [dba-VB] Microsoft.SqlServer.Smo Hi All -- I can't get Microsoft.SqlServer.Smo (http://msdn.microsoft.com/en-us/library/microsoft.sqlserver.management.smo% 28v=SQL.100%29.aspx) available for my VS2010 SP1 project. I have got at "Microsoft SQL Server 2008 Feature Pack, April 2009" http://www.microsoft.com/downloads/en/details.aspx?FamilyID=b33d2c78-1059-4c e2-b80d-2343c099bcb4 and I have got downloaded "Microsoft SQL Server 2008 Management Objects" "The SQL Server Management Objects (SMO) is a .NET Framework object model that enables software developers to create client-side applications to manage and administer SQL Server objects and services. This object model will work with SQL Server 2000, SQL Server 2005 and SQL Server 2008." http://download.microsoft.com/download/0/E/6/0E67502A-22B4-4C47-92D3-0D223F1 17190/SharedManagementObjects.msi But it doesn't want to setup on my system telling me it's there already :) - although I can't see it from VS2010 SP1 project's References dialog :( I'm (re-)searchning my computer files for Microsoft.SqlServer.Smo filename now but I doubt this search will get any positive results returned... Could you please advise/guess what am I'm missing? Thank you. -- Shamil _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Sat May 7 06:23:22 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 07 May 2011 07:23:22 -0400 Subject: [dba-VB] Microsoft.SqlServer.Smo In-Reply-To: References: <0632A25A4F414713973B5CE5E091B71C@nant> Message-ID: <4DC52BAA.2080602@colbyconsulting.com> I use SMO extensively! Very cool object. John W. Colby www.ColbyConsulting.com On 5/7/2011 5:25 AM, Shamil Salakhetdinov wrote: > Hi All -- > > I have found Microsoft.SqlServer.Smo related assemblies installed on my > system under > > ... \Program Files\Microsoft SQL Server 2005 Express\100\SDK\Assemblies. > > Issue solved. > > Thank you. > > -- > Shamil > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil > Salakhetdinov > Sent: 7 ??? 2011 ?. 12:21 > To: 'Discussion concerning Visual Basic and related programming issues.' > Subject: [dba-VB] Microsoft.SqlServer.Smo > > Hi All -- > > I can't get Microsoft.SqlServer.Smo > (http://msdn.microsoft.com/en-us/library/microsoft.sqlserver.management.smo% > 28v=SQL.100%29.aspx) available for my VS2010 SP1 project. > I have got at "Microsoft SQL Server 2008 Feature Pack, April 2009" > > http://www.microsoft.com/downloads/en/details.aspx?FamilyID=b33d2c78-1059-4c > e2-b80d-2343c099bcb4 > > and I have got downloaded "Microsoft SQL Server 2008 Management Objects" > > "The SQL Server Management Objects (SMO) is a .NET Framework object model > that enables software developers to create client-side applications to > manage and administer SQL Server objects and services. This object model > will work with SQL Server 2000, SQL Server 2005 and SQL Server 2008." > > http://download.microsoft.com/download/0/E/6/0E67502A-22B4-4C47-92D3-0D223F1 > 17190/SharedManagementObjects.msi > > But it doesn't want to setup on my system telling me it's there already :) - > although I can't see it from VS2010 SP1 project's References dialog :( > > I'm (re-)searchning my computer files for > > Microsoft.SqlServer.Smo > > filename now but I doubt this search will get any positive results > returned... > > Could you please advise/guess what am I'm missing? > > Thank you. > > -- > Shamil > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From shamil at smsconsulting.spb.ru Sat May 7 08:09:00 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sat, 7 May 2011 17:09:00 +0400 Subject: [dba-VB] Microsoft.SqlServer.Smo In-Reply-To: <4DC52BAA.2080602@colbyconsulting.com> References: <0632A25A4F414713973B5CE5E091B71C@nant> <4DC52BAA.2080602@colbyconsulting.com> Message-ID: <4FDFCEF827D34B7D8213280BD3E96761@nant> Hi John -- Did you try to deploy your SMO-empowered application to the customers' systems? I mean would that be enough in such a case to deliver to the customer side only referenced SMO .NET Framework class libraries deployed locally together with their "parent" custom application, or the full (.NET Framework) SMO SDK should be also installed/deployed? Thank you. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: 7 ??? 2011 ?. 15:23 To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Microsoft.SqlServer.Smo I use SMO extensively! Very cool object. John W. Colby www.ColbyConsulting.com On 5/7/2011 5:25 AM, Shamil Salakhetdinov wrote: > Hi All -- > > I have found Microsoft.SqlServer.Smo related assemblies installed on > my system under > > ... \Program Files\Microsoft SQL Server 2005 Express\100\SDK\Assemblies. > > Issue solved. > > Thank you. > > -- > Shamil > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil > Salakhetdinov > Sent: 7 ??? 2011 ?. 12:21 > To: 'Discussion concerning Visual Basic and related programming issues.' > Subject: [dba-VB] Microsoft.SqlServer.Smo > > Hi All -- > > I can't get Microsoft.SqlServer.Smo > (http://msdn.microsoft.com/en-us/library/microsoft.sqlserver.managemen > t.smo% > 28v=SQL.100%29.aspx) available for my VS2010 SP1 project. > I have got at "Microsoft SQL Server 2008 Feature Pack, April 2009" > > http://www.microsoft.com/downloads/en/details.aspx?FamilyID=b33d2c78-1 > 059-4c > e2-b80d-2343c099bcb4 > > and I have got downloaded "Microsoft SQL Server 2008 Management Objects" > > "The SQL Server Management Objects (SMO) is a .NET Framework object > model that enables software developers to create client-side > applications to manage and administer SQL Server objects and services. > This object model will work with SQL Server 2000, SQL Server 2005 and SQL Server 2008." > > http://download.microsoft.com/download/0/E/6/0E67502A-22B4-4C47-92D3-0 > D223F1 > 17190/SharedManagementObjects.msi > > But it doesn't want to setup on my system telling me it's there > already :) - although I can't see it from VS2010 SP1 project's > References dialog :( > > I'm (re-)searchning my computer files for > > Microsoft.SqlServer.Smo > > filename now but I doubt this search will get any positive results > returned... > > Could you please advise/guess what am I'm missing? > > Thank you. > > -- > Shamil > From stuart at lexacorp.com.pg Sat May 7 15:15:56 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sun, 08 May 2011 06:15:56 +1000 Subject: [dba-VB] Microsoft.SqlServer.Smo In-Reply-To: <4FDFCEF827D34B7D8213280BD3E96761@nant> References: <0632A25A4F414713973B5CE5E091B71C@nant>, <4DC52BAA.2080602@colbyconsulting.com>, <4FDFCEF827D34B7D8213280BD3E96761@nant> Message-ID: <4DC5A87C.16788.DAB4F6E@stuart.lexacorp.com.pg> SDK = Software Development Kit - emphasis on the Development. There should never be a requirement to deploy it to clients. -- Stuart On 7 May 2011 at 17:09, Shamil Salakhetdinov wrote: > Hi John -- > > Did you try to deploy your SMO-empowered application to the customers' > systems? I mean would that be enough in such a case to deliver to the > customer side only referenced SMO .NET Framework class libraries > deployed locally together with their "parent" custom application, or > the full (.NET Framework) SMO SDK should be also installed/deployed? > > Thank you. > > -- > Shamil > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: 7 ??? 2011 ?. 15:23 To: Discussion concerning Visual Basic and > related programming issues. Subject: Re: [dba-VB] > Microsoft.SqlServer.Smo > > I use SMO extensively! Very cool object. > > John W. Colby > www.ColbyConsulting.com > > On 5/7/2011 5:25 AM, Shamil Salakhetdinov wrote: > > Hi All -- > > > > I have found Microsoft.SqlServer.Smo related assemblies installed on > > my system under > > > > ... \Program Files\Microsoft SQL Server 2005 > > Express\100\SDK\Assemblies. > > > > Issue solved. > > > > Thank you. > > > > -- > > Shamil > > > > -----Original Message----- > > From: dba-vb-bounces at databaseadvisors.com > > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil > > Salakhetdinov Sent: 7 ??? 2011 ?. 12:21 To: 'Discussion concerning > > Visual Basic and related programming issues.' Subject: [dba-VB] > > Microsoft.SqlServer.Smo > > > > Hi All -- > > > > I can't get Microsoft.SqlServer.Smo > > (http://msdn.microsoft.com/en-us/library/microsoft.sqlserver.managem > > en t.smo% 28v=SQL.100%29.aspx) available for my VS2010 SP1 project. > > I have got at "Microsoft SQL Server 2008 Feature Pack, April 2009" > > > > http://www.microsoft.com/downloads/en/details.aspx?FamilyID=b33d2c78 > > -1 059-4c e2-b80d-2343c099bcb4 > > > > and I have got downloaded "Microsoft SQL Server 2008 Management > > Objects" > > > > "The SQL Server Management Objects (SMO) is a .NET Framework object > > model that enables software developers to create client-side > > applications to manage and administer SQL Server objects and > > services. This object model will work with SQL Server 2000, SQL > > Server 2005 and SQL > Server 2008." > > > > http://download.microsoft.com/download/0/E/6/0E67502A-22B4-4C47-92D3 > > -0 D223F1 17190/SharedManagementObjects.msi > > > > But it doesn't want to setup on my system telling me it's there > > already :) - although I can't see it from VS2010 SP1 project's > > References dialog :( > > > > I'm (re-)searchning my computer files for > > > > Microsoft.SqlServer.Smo > > > > filename now but I doubt this search will get any positive results > > returned... > > > > Could you please advise/guess what am I'm missing? > > > > Thank you. > > > > -- > > Shamil > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From jwcolby at colbyconsulting.com Sat May 7 19:20:12 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 07 May 2011 20:20:12 -0400 Subject: [dba-VB] Microsoft.SqlServer.Smo In-Reply-To: <4DC5A87C.16788.DAB4F6E@stuart.lexacorp.com.pg> References: <0632A25A4F414713973B5CE5E091B71C@nant>, <4DC52BAA.2080602@colbyconsulting.com>, <4FDFCEF827D34B7D8213280BD3E96761@nant> <4DC5A87C.16788.DAB4F6E@stuart.lexacorp.com.pg> Message-ID: <4DC5E1BC.1010909@colbyconsulting.com> He probably had to go get a reference to it in order to use it. John W. Colby www.ColbyConsulting.com On 5/7/2011 4:15 PM, Stuart McLachlan wrote: > SDK = Software Development Kit - emphasis on the Development. > > There should never be a requirement to deploy it to clients. > From jwcolby at colbyconsulting.com Sat May 7 19:21:26 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 07 May 2011 20:21:26 -0400 Subject: [dba-VB] Microsoft.SqlServer.Smo In-Reply-To: <4FDFCEF827D34B7D8213280BD3E96761@nant> References: <0632A25A4F414713973B5CE5E091B71C@nant> <4DC52BAA.2080602@colbyconsulting.com> <4FDFCEF827D34B7D8213280BD3E96761@nant> Message-ID: <4DC5E206.80007@colbyconsulting.com> I don't know the answer to that. To this point, all of my usage has been for the app we developed for internal use. John W. Colby www.ColbyConsulting.com On 5/7/2011 9:09 AM, Shamil Salakhetdinov wrote: > Hi John -- > > Did you try to deploy your SMO-empowered application to the customers' > systems? > I mean would that be enough in such a case to deliver to the customer side > only referenced SMO .NET Framework class libraries deployed locally together > with their "parent" custom application, or the full (.NET Framework) SMO SDK > should be also installed/deployed? > > Thank you. > > -- > Shamil > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: 7 ??? 2011 ?. 15:23 > To: Discussion concerning Visual Basic and related programming issues. > Subject: Re: [dba-VB] Microsoft.SqlServer.Smo > > I use SMO extensively! Very cool object. > > John W. Colby > www.ColbyConsulting.com > > On 5/7/2011 5:25 AM, Shamil Salakhetdinov wrote: >> Hi All -- >> >> I have found Microsoft.SqlServer.Smo related assemblies installed on >> my system under >> >> ... \Program Files\Microsoft SQL Server 2005 Express\100\SDK\Assemblies. >> >> Issue solved. >> >> Thank you. >> >> -- >> Shamil >> >> -----Original Message----- >> From: dba-vb-bounces at databaseadvisors.com >> [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil >> Salakhetdinov >> Sent: 7 ??? 2011 ?. 12:21 >> To: 'Discussion concerning Visual Basic and related programming issues.' >> Subject: [dba-VB] Microsoft.SqlServer.Smo >> >> Hi All -- >> >> I can't get Microsoft.SqlServer.Smo >> (http://msdn.microsoft.com/en-us/library/microsoft.sqlserver.managemen >> t.smo% >> 28v=SQL.100%29.aspx) available for my VS2010 SP1 project. >> I have got at "Microsoft SQL Server 2008 Feature Pack, April 2009" >> >> http://www.microsoft.com/downloads/en/details.aspx?FamilyID=b33d2c78-1 >> 059-4c >> e2-b80d-2343c099bcb4 >> >> and I have got downloaded "Microsoft SQL Server 2008 Management Objects" >> >> "The SQL Server Management Objects (SMO) is a .NET Framework object >> model that enables software developers to create client-side >> applications to manage and administer SQL Server objects and services. >> This object model will work with SQL Server 2000, SQL Server 2005 and SQL > Server 2008." >> >> http://download.microsoft.com/download/0/E/6/0E67502A-22B4-4C47-92D3-0 >> D223F1 >> 17190/SharedManagementObjects.msi >> >> But it doesn't want to setup on my system telling me it's there >> already :) - although I can't see it from VS2010 SP1 project's >> References dialog :( >> >> I'm (re-)searchning my computer files for >> >> Microsoft.SqlServer.Smo >> >> filename now but I doubt this search will get any positive results >> returned... >> >> Could you please advise/guess what am I'm missing? >> >> Thank you. >> >> -- >> Shamil >> > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From shamil at smsconsulting.spb.ru Sat May 7 19:46:21 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sun, 8 May 2011 04:46:21 +0400 Subject: [dba-VB] Microsoft.SqlServer.Smo In-Reply-To: <4DC5A87C.16788.DAB4F6E@stuart.lexacorp.com.pg> References: <0632A25A4F414713973B5CE5E091B71C@nant>, <4DC52BAA.2080602@colbyconsulting.com>, <4FDFCEF827D34B7D8213280BD3E96761@nant> <4DC5A87C.16788.DAB4F6E@stuart.lexacorp.com.pg> Message-ID: <8801D45F717E4478803F7B7FF04C22D5@nant> Hi Stuart -- Yes, SDK is for developers but developers (usually) do make and do deploy software for customers' computer systems therefore the question on the ways of distributing these or that SDK components is legal... Thank you. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: 8 ??? 2011 ?. 0:16 To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Microsoft.SqlServer.Smo SDK = Software Development Kit - emphasis on the Development. There should never be a requirement to deploy it to clients. -- Stuart On 7 May 2011 at 17:09, Shamil Salakhetdinov wrote: > Hi John -- > > Did you try to deploy your SMO-empowered application to the customers' > systems? I mean would that be enough in such a case to deliver to the > customer side only referenced SMO .NET Framework class libraries > deployed locally together with their "parent" custom application, or > the full (.NET Framework) SMO SDK should be also installed/deployed? > > Thank you. > > -- > Shamil > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: 7 ??? 2011 ?. 15:23 To: Discussion concerning Visual Basic and > related programming issues. Subject: Re: [dba-VB] > Microsoft.SqlServer.Smo > > I use SMO extensively! Very cool object. > > John W. Colby > www.ColbyConsulting.com > > On 5/7/2011 5:25 AM, Shamil Salakhetdinov wrote: > > Hi All -- > > > > I have found Microsoft.SqlServer.Smo related assemblies installed on > > my system under > > > > ... \Program Files\Microsoft SQL Server 2005 > > Express\100\SDK\Assemblies. > > > > Issue solved. > > > > Thank you. > > > > -- > > Shamil > > > > -----Original Message----- > > From: dba-vb-bounces at databaseadvisors.com > > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil > > Salakhetdinov Sent: 7 ??? 2011 ?. 12:21 To: 'Discussion concerning > > Visual Basic and related programming issues.' Subject: [dba-VB] > > Microsoft.SqlServer.Smo > > > > Hi All -- > > > > I can't get Microsoft.SqlServer.Smo > > (http://msdn.microsoft.com/en-us/library/microsoft.sqlserver.managem > > en t.smo% 28v=SQL.100%29.aspx) available for my VS2010 SP1 project. > > I have got at "Microsoft SQL Server 2008 Feature Pack, April 2009" > > > > http://www.microsoft.com/downloads/en/details.aspx?FamilyID=b33d2c78 > > -1 059-4c e2-b80d-2343c099bcb4 > > > > and I have got downloaded "Microsoft SQL Server 2008 Management > > Objects" > > > > "The SQL Server Management Objects (SMO) is a .NET Framework object > > model that enables software developers to create client-side > > applications to manage and administer SQL Server objects and > > services. This object model will work with SQL Server 2000, SQL > > Server 2005 and SQL > Server 2008." > > > > http://download.microsoft.com/download/0/E/6/0E67502A-22B4-4C47-92D3 > > -0 D223F1 17190/SharedManagementObjects.msi > > > > But it doesn't want to setup on my system telling me it's there > > already :) - although I can't see it from VS2010 SP1 project's > > References dialog :( > > > > I'm (re-)searchning my computer files for > > > > Microsoft.SqlServer.Smo > > > > filename now but I doubt this search will get any positive results > > returned... > > > > Could you please advise/guess what am I'm missing? > > > > Thank you. > > > > -- > > Shamil > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From shamil at smsconsulting.spb.ru Sat May 7 19:46:21 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sun, 8 May 2011 04:46:21 +0400 Subject: [dba-VB] Microsoft.SqlServer.Smo In-Reply-To: <4DC5E206.80007@colbyconsulting.com> References: <0632A25A4F414713973B5CE5E091B71C@nant> <4DC52BAA.2080602@colbyconsulting.com><4FDFCEF827D34B7D8213280BD3E96761@nant> <4DC5E206.80007@colbyconsulting.com> Message-ID: <9EAAFB9EEAE64D65BB1F97680618AC8C@nant> Hi John -- OK, I will try to test it later within a week or so on customer's PC with MS SQL Server installed but not .NET SMO. Thank you. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: 8 ??? 2011 ?. 4:21 To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Microsoft.SqlServer.Smo I don't know the answer to that. To this point, all of my usage has been for the app we developed for internal use. John W. Colby www.ColbyConsulting.com On 5/7/2011 9:09 AM, Shamil Salakhetdinov wrote: > Hi John -- > > Did you try to deploy your SMO-empowered application to the customers' > systems? > I mean would that be enough in such a case to deliver to the customer > side only referenced SMO .NET Framework class libraries deployed > locally together with their "parent" custom application, or the full > (.NET Framework) SMO SDK should be also installed/deployed? > > Thank you. > > -- > Shamil > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: 7 ??? 2011 ?. 15:23 > To: Discussion concerning Visual Basic and related programming issues. > Subject: Re: [dba-VB] Microsoft.SqlServer.Smo > > I use SMO extensively! Very cool object. > > John W. Colby > www.ColbyConsulting.com > > On 5/7/2011 5:25 AM, Shamil Salakhetdinov wrote: >> Hi All -- >> >> I have found Microsoft.SqlServer.Smo related assemblies installed on >> my system under >> >> ... \Program Files\Microsoft SQL Server 2005 Express\100\SDK\Assemblies. >> >> Issue solved. >> >> Thank you. >> >> -- >> Shamil >> >> -----Original Message----- >> From: dba-vb-bounces at databaseadvisors.com >> [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil >> Salakhetdinov >> Sent: 7 ??? 2011 ?. 12:21 >> To: 'Discussion concerning Visual Basic and related programming issues.' >> Subject: [dba-VB] Microsoft.SqlServer.Smo >> >> Hi All -- >> >> I can't get Microsoft.SqlServer.Smo >> (http://msdn.microsoft.com/en-us/library/microsoft.sqlserver.manageme >> n >> t.smo% >> 28v=SQL.100%29.aspx) available for my VS2010 SP1 project. >> I have got at "Microsoft SQL Server 2008 Feature Pack, April 2009" >> >> http://www.microsoft.com/downloads/en/details.aspx?FamilyID=b33d2c78- >> 1 >> 059-4c >> e2-b80d-2343c099bcb4 >> >> and I have got downloaded "Microsoft SQL Server 2008 Management Objects" >> >> "The SQL Server Management Objects (SMO) is a .NET Framework object >> model that enables software developers to create client-side >> applications to manage and administer SQL Server objects and services. >> This object model will work with SQL Server 2000, SQL Server 2005 and >> SQL > Server 2008." >> >> http://download.microsoft.com/download/0/E/6/0E67502A-22B4-4C47-92D3- >> 0 >> D223F1 >> 17190/SharedManagementObjects.msi >> >> But it doesn't want to setup on my system telling me it's there >> already :) - although I can't see it from VS2010 SP1 project's >> References dialog :( >> >> I'm (re-)searchning my computer files for >> >> Microsoft.SqlServer.Smo >> >> filename now but I doubt this search will get any positive results >> returned... >> >> Could you please advise/guess what am I'm missing? >> >> Thank you. >> >> -- >> Shamil >> > From jwcolby at colbyconsulting.com Mon May 9 10:43:38 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 09 May 2011 11:43:38 -0400 Subject: [dba-VB] C# Excel automation Message-ID: <4DC80BAA.4000100@colbyconsulting.com> We are trying to automate Excel from C# but we are unable to correctly close the excel object itself. IOW it is still seen in the process list. Paul has found information about marshal.releasecomobject and is doing that for every object he is even touching but something is still not working. Can anyone provide a simple example of opening a workbook, and reading a set of cells out of a worksheet, then cleaning up and closing Excel. TIA for your assistance. -- John W. Colby www.ColbyConsulting.com From dbdoug at gmail.com Mon May 9 11:17:00 2011 From: dbdoug at gmail.com (Doug Steele) Date: Mon, 9 May 2011 09:17:00 -0700 Subject: [dba-VB] C# Excel automation In-Reply-To: <4DC80BAA.4000100@colbyconsulting.com> References: <4DC80BAA.4000100@colbyconsulting.com> Message-ID: John, I can't find it quickly but I know there was a big discussion about this on the Access list a while back. Doug On Mon, May 9, 2011 at 8:43 AM, jwcolby wrote: > We are trying to automate Excel from C# but we are unable to correctly close > the excel object itself. ?IOW it is still seen in the process list. > > Paul has found information about marshal.releasecomobject and is doing that > for every object he is even touching but something is still not working. > > Can anyone provide a simple example of opening a workbook, and reading a set > of cells out of a worksheet, then cleaning up and closing Excel. > > TIA for your assistance. > > -- > John W. Colby > www.ColbyConsulting.com > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From df.waters at comcast.net Mon May 9 12:02:24 2011 From: df.waters at comcast.net (Dan Waters) Date: Mon, 9 May 2011 12:02:24 -0500 Subject: [dba-VB] C# Excel automation In-Reply-To: <4DC80BAA.4000100@colbyconsulting.com> References: <4DC80BAA.4000100@colbyconsulting.com> Message-ID: <004201cc0e6a$e0a4a2f0$a1ede8d0$@comcast.net> Hi John, I've had this issue too. It's almost certainly that somewhere in your code you are missing an Excel object qualifier. Also take a look at the sequence of opening and closing the Workbook and the instance of Excel. Another issue is that if the PC already has Excel open, then the workbook you create will be contained within the instance of Excel, and it turns out that it's about impossible for your code to loop through the different workbooks. The best plan is probably to look for an instance of Excel and close it with save = true. Then open your workbook and you should be fine. You'll need to tell your users what's going to happen (and maybe ask by message if they want to continue), and/or put up a message if you need to close/save an already open instance of Excel. See this code: '----------------- Private Sub FormatSpreadsheetDemo(stgPath As String) Dim objExcel As Object Dim objWorkbook As Object ' Dim objExcel As Excel.Application '-- TEST ' Dim objWorkbook As Excel.Workbook '-- TEST If IsNull(stgPath) Or stgPath = "" Then Exit Sub Set objExcel = CreateObject("Excel.Application") '-- for troubleshooting ' objExcel.Visible = true '-- TEST ' objExcel.ActiveWindow.WindowState = xlMaximized '-- TEST Set objWorkbook = objExcel.Workbooks.Open(stgPath) '-- Format objExcel.Rows("1:1").Select objExcel.Selection.Font.Bold = True objExcel.Cells.Select objExcel.Selection.Font.Name = "Tahoma" objExcel.Selection.Font.Size = 10 objExcel.Cells.EntireColumn.AutoFit '-- Freeze rows If InStr(stgPath, "Backups") = 0 Then objExcel.Range("A2").Select Else objExcel.Range("B2").Select End If objExcel.ActiveWindow.FreezePanes = True objExcel.ActiveWindow.WindowState = xlMaximized '-- Change column format If InStr(stgPath, "Activity") <> 0 Then objExcel.Columns("E:E").Select objExcel.Selection.NumberFormat = "[$-409]h:mm AM/PM;@" objExcel.Columns("G:G").Select objExcel.Selection.NumberFormat = "[$-409]h:mm AM/PM;@" End If '-- Select upper left cell objExcel.Range("A1").Select '-- Save & Quit objWorkbook.Save objWorkbook.Close objExcel.Quit Set objWorkbook = Nothing Set objExcel = Nothing Exit Sub ErrEx.Bookmark = BOOKMARK_ONERROR End Sub '------------------ -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Monday, May 09, 2011 10:44 AM To: VBA Subject: [dba-VB] C# Excel automation We are trying to automate Excel from C# but we are unable to correctly close the excel object itself. IOW it is still seen in the process list. Paul has found information about marshal.releasecomobject and is doing that for every object he is even touching but something is still not working. Can anyone provide a simple example of opening a workbook, and reading a set of cells out of a worksheet, then cleaning up and closing Excel. TIA for your assistance. -- John W. Colby www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Mon May 9 12:22:59 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 09 May 2011 13:22:59 -0400 Subject: [dba-VB] C# Excel automation In-Reply-To: <004201cc0e6a$e0a4a2f0$a1ede8d0$@comcast.net> References: <4DC80BAA.4000100@colbyconsulting.com> <004201cc0e6a$e0a4a2f0$a1ede8d0$@comcast.net> Message-ID: <4DC822F3.60609@colbyconsulting.com> Is this VBA or VB.Net? John W. Colby www.ColbyConsulting.com On 5/9/2011 1:02 PM, Dan Waters wrote: > Hi John, > > I've had this issue too. It's almost certainly that somewhere in your code > you are missing an Excel object qualifier. Also take a look at the sequence > of opening and closing the Workbook and the instance of Excel. > > Another issue is that if the PC already has Excel open, then the workbook > you create will be contained within the instance of Excel, and it turns out > that it's about impossible for your code to loop through the different > workbooks. The best plan is probably to look for an instance of Excel and > close it with save = true. Then open your workbook and you should be fine. > You'll need to tell your users what's going to happen (and maybe ask by > message if they want to continue), and/or put up a message if you need to > close/save an already open instance of Excel. > > See this code: > > '----------------- > Private Sub FormatSpreadsheetDemo(stgPath As String) > > Dim objExcel As Object > Dim objWorkbook As Object > ' Dim objExcel As Excel.Application '-- TEST > ' Dim objWorkbook As Excel.Workbook '-- TEST > > If IsNull(stgPath) Or stgPath = "" Then Exit Sub > > Set objExcel = CreateObject("Excel.Application") > > '-- for troubleshooting > ' objExcel.Visible = true '-- TEST > ' objExcel.ActiveWindow.WindowState = xlMaximized '-- TEST > > Set objWorkbook = objExcel.Workbooks.Open(stgPath) > > '-- Format > objExcel.Rows("1:1").Select > objExcel.Selection.Font.Bold = True > objExcel.Cells.Select > objExcel.Selection.Font.Name = "Tahoma" > objExcel.Selection.Font.Size = 10 > objExcel.Cells.EntireColumn.AutoFit > > '-- Freeze rows > If InStr(stgPath, "Backups") = 0 Then > objExcel.Range("A2").Select > Else > objExcel.Range("B2").Select > End If > objExcel.ActiveWindow.FreezePanes = True > objExcel.ActiveWindow.WindowState = xlMaximized > > '-- Change column format > If InStr(stgPath, "Activity")<> 0 Then > objExcel.Columns("E:E").Select > objExcel.Selection.NumberFormat = "[$-409]h:mm AM/PM;@" > objExcel.Columns("G:G").Select > objExcel.Selection.NumberFormat = "[$-409]h:mm AM/PM;@" > End If > > '-- Select upper left cell > objExcel.Range("A1").Select > > '-- Save& Quit > objWorkbook.Save > objWorkbook.Close > objExcel.Quit > > Set objWorkbook = Nothing > Set objExcel = Nothing > > Exit Sub > ErrEx.Bookmark = BOOKMARK_ONERROR > > End Sub > '------------------ > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Monday, May 09, 2011 10:44 AM > To: VBA > Subject: [dba-VB] C# Excel automation > > We are trying to automate Excel from C# but we are unable to correctly close > the excel object itself. IOW it is still seen in the process list. > > Paul has found information about marshal.releasecomobject and is doing that > for every object he is even touching but something is still not working. > > Can anyone provide a simple example of opening a workbook, and reading a set > of cells out of a worksheet, then cleaning up and closing Excel. > > TIA for your assistance. > > -- > John W. Colby > www.ColbyConsulting.com > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From df.waters at comcast.net Tue May 10 15:48:45 2011 From: df.waters at comcast.net (Dan Waters) Date: Tue, 10 May 2011 15:48:45 -0500 Subject: [dba-VB] Button Images - Where to Find? Message-ID: <000001cc0f53$a9ca2040$fd5e60c0$@comcast.net> In .Net for windows form is there a standard set of images for buttons like Access has? I'd hate to have to create left arrow and a right arrow images. Thanks! Dan From michael at ddisolutions.com.au Wed May 11 03:09:03 2011 From: michael at ddisolutions.com.au (Michael Maddison) Date: Wed, 11 May 2011 18:09:03 +1000 Subject: [dba-VB] Button Images - Where to Find? References: <000001cc0f53$a9ca2040$fd5e60c0$@comcast.net> Message-ID: <99266C61B516644D9727F983FAFAB4650863CA@remote.ddisolutions.com.au> I don't think so. There are heaps of free ones out there though. Cheers Michael M -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, 11 May 2011 6:49 AM To: 'Discussion concerning Visual Basic and related programming issues.' Subject: [dba-VB] Button Images - Where to Find? In .Net for windows form is there a standard set of images for buttons like Access has? I'd hate to have to create left arrow and a right arrow images. Thanks! Dan _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com ----- No virus found in this message. Checked by AVG - www.avg.com Version: 10.0.1375 / Virus Database: 1500/3629 - Release Date: 05/10/11 From shamil at smsconsulting.spb.ru Wed May 11 04:32:17 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Wed, 11 May 2011 13:32:17 +0400 Subject: [dba-VB] Button Images - Where to Find? In-Reply-To: <000001cc0f53$a9ca2040$fd5e60c0$@comcast.net> References: <000001cc0f53$a9ca2040$fd5e60c0$@comcast.net> Message-ID: Hi Dan -- For left- and right- arrow buttons you might try the following "trick": - create winform/usercontrol and bind it to a datasource - you'll get {{DataSetName}}_BindingNavigator. Now you can export button images into .png format from that BindingNavigator's resource file, which will be part of hosting winform/usercontrol resource file - {{WinFormName/WinFromsuserControlName}}.resx - just open resource file using designer, right-click button image, select 'Export To File...'... Here is xml of MovePrevious button's resource (JFI): iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACx jwv8 YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAL1JREFUOE9j YBgy ILz9wX+yHRvf/eB/cMM18gyI73n4f+n+///9qy+QbkBE+32w5sxZ//97lZ4gzYDQ1ntgza3rgLZ3 /v3v kn+AeAOCW+7+X7T3//8OoOaMOT//29X9/G+fsZ14A0ChbVd8+3/6nN///bu+/dcpfPffImE9aQaA DNFP Of/fpOjFf5WsT/+NI5eRbgDIEIOkE/9l077+1w2eR54BYJekXv6v4TuNfANAhqh4TKDMALKTMc01 AgDQ FGCYkuTLEQAAAABJRU5ErkJggg== Thank you. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: 11 ??? 2011 ?. 0:49 To: 'Discussion concerning Visual Basic and related programming issues.' Subject: [dba-VB] Button Images - Where to Find? In .Net for windows form is there a standard set of images for buttons like Access has? I'd hate to have to create left arrow and a right arrow images. Thanks! Dan From jwcolby at colbyconsulting.com Wed May 11 09:57:49 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 11 May 2011 10:57:49 -0400 Subject: [dba-VB] C# Outlook Automation Message-ID: <4DCAA3ED.1050007@colbyconsulting.com> Has anyone found C# code to emulate the ClickYes program? I found something in VB5/6 for building a program that sits in the toolbar but it seems that if you can do that, then you could just as easily look for the pop-up right in your own code and click the yes button. Just thought I'd check here before re-inventing the wheel. -- John W. Colby www.ColbyConsulting.com From df.waters at comcast.net Wed May 11 10:46:41 2011 From: df.waters at comcast.net (Dan Waters) Date: Wed, 11 May 2011 10:46:41 -0500 Subject: [dba-VB] C# Outlook Automation In-Reply-To: <4DCAA3ED.1050007@colbyconsulting.com> References: <4DCAA3ED.1050007@colbyconsulting.com> Message-ID: <000901cc0ff2$a3755620$ea600260$@comcast.net> Hi John, This is a VBA module to automatically push the ClickYes button - I have not used this. Might have some useful content. Came from: http://www.contextmagic.com/express-clickyes/ '---------------------------- Option Compare Database Option Explicit '-- Declare Windows' API functions Private Declare Function RegisterWindowMessage Lib "User32" Alias "RegisterWindowMessageA" (ByVal lpString As String) As Long Private Declare Function FindWindow Lib "User32" Alias "FindWindowA" (ByVal lpClassName As Any, ByVal lpWindowName As Any) As Long Private Declare Function SendMessage Lib "User32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long Public Function pfSendUsingObject() Dim blnPreview As Boolean '-- If you do want to preview then you do not need the ClickYes stuff. _ but if you don't want to preview and you just want to send it without being informed that _ it is being sent, then use the ClickYes stuff. blnPreview = False If blnPreview Then DoCmd.SendObject acSendNoObject, , , "max.wanadoo at gmail.com", , , "Subject", "Text Body", blnPreview Else Call fStartClickYes(True) DoCmd.SendObject acSendNoObject, , , "max.wanadoo at gmail.com", , , "Subject", "Text Body", blnPreview Call fStartClickYes(False) End If End Function Public Function fStartClickYes(bStart As Boolean) '-- Here is some vba code that starts and stops clickyes in the systray ' download from here and install. The A2k7 version is not free. _ http://www.contextmagic.com/express-clickyes/ Dim lngWnd As Long Dim lngClickYes As Long Dim lngResume As Long '-- Register a message to send lngClickYes = RegisterWindowMessage("CLICKYES_SUSPEND_RESUME") '-- Find ClickYes Window by classname lngWnd = FindWindow("EXCLICKYES_WND", 0&) If bStart Then '-- Send the message to Resume ClickYes lngResume = SendMessage(lngWnd, lngClickYes, 1, 0) Else ' Send the message to Suspend ClickYes lngResume = SendMessage(lngWnd, lngClickYes, 0, 0) End If End Function '---------------------------- -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, May 11, 2011 9:58 AM To: VBA Subject: [dba-VB] C# Outlook Automation Has anyone found C# code to emulate the ClickYes program? I found something in VB5/6 for building a program that sits in the toolbar but it seems that if you can do that, then you could just as easily look for the pop-up right in your own code and click the yes button. Just thought I'd check here before re-inventing the wheel. -- John W. Colby www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Wed May 11 12:28:17 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 11 May 2011 13:28:17 -0400 Subject: [dba-VB] C# Outlook Automation In-Reply-To: <000901cc0ff2$a3755620$ea600260$@comcast.net> References: <4DCAA3ED.1050007@colbyconsulting.com> <000901cc0ff2$a3755620$ea600260$@comcast.net> Message-ID: <4DCAC731.4040708@colbyconsulting.com> I know about ClickYes and might use that, however the free version does not support anything past Access 2003. John W. Colby www.ColbyConsulting.com On 5/11/2011 11:46 AM, Dan Waters wrote: > Hi John, > > This is a VBA module to automatically push the ClickYes button - I have not > used this. Might have some useful content. Came from: > http://www.contextmagic.com/express-clickyes/ > > '---------------------------- > Option Compare Database > Option Explicit > > '-- Declare Windows' API functions > Private Declare Function RegisterWindowMessage Lib "User32" Alias > "RegisterWindowMessageA" (ByVal lpString As String) As Long > Private Declare Function FindWindow Lib "User32" Alias "FindWindowA" (ByVal > lpClassName As Any, ByVal lpWindowName As Any) As Long > Private Declare Function SendMessage Lib "User32" Alias "SendMessageA" > (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As > Any) As Long > > Public Function pfSendUsingObject() > > Dim blnPreview As Boolean > > '-- If you do want to preview then you do not need the ClickYes stuff. _ > but if you don't want to preview and you just want to send it > without being informed that _ > it is being sent, then use the ClickYes stuff. > > blnPreview = False > > If blnPreview Then > DoCmd.SendObject acSendNoObject, , , "max.wanadoo at gmail.com", , , > "Subject", "Text Body", blnPreview > Else > Call fStartClickYes(True) > DoCmd.SendObject acSendNoObject, , , "max.wanadoo at gmail.com", , , > "Subject", "Text Body", blnPreview > Call fStartClickYes(False) > End If > > End Function > > Public Function fStartClickYes(bStart As Boolean) > > '-- Here is some vba code that starts and stops clickyes in the systray > ' download from here and install. The A2k7 version is not free. _ > http://www.contextmagic.com/express-clickyes/ > > Dim lngWnd As Long > Dim lngClickYes As Long > Dim lngResume As Long > > '-- Register a message to send > lngClickYes = RegisterWindowMessage("CLICKYES_SUSPEND_RESUME") > > '-- Find ClickYes Window by classname > lngWnd = FindWindow("EXCLICKYES_WND", 0&) > > If bStart Then > '-- Send the message to Resume ClickYes > lngResume = SendMessage(lngWnd, lngClickYes, 1, 0) > Else > ' Send the message to Suspend ClickYes > lngResume = SendMessage(lngWnd, lngClickYes, 0, 0) > End If > > End Function > > '---------------------------- > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Wednesday, May 11, 2011 9:58 AM > To: VBA > Subject: [dba-VB] C# Outlook Automation > > Has anyone found C# code to emulate the ClickYes program? I found something > in VB5/6 for building a program that sits in the toolbar but it seems that > if you can do that, then you could just as easily look for the pop-up right > in your own code and click the yes button. > > Just thought I'd check here before re-inventing the wheel. > > -- > John W. Colby > www.ColbyConsulting.com > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From df.waters at comcast.net Wed May 11 13:04:56 2011 From: df.waters at comcast.net (Dan Waters) Date: Wed, 11 May 2011 13:04:56 -0500 Subject: [dba-VB] Button Images - Found! Message-ID: <000e01cc1005$f0d9fac0$d28df040$@comcast.net> Shamil & Michael, OK - I finally found these. They are in the following folder. C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\VS2010ImageLibrary\1033\VS2010ImageLibrary\Actions\png_format\O ffice and VS First, under the 1033 folder, you'll need to unzip the VS2010ImageLibrary folder. Next, in the button's Image property, select the ellipsis. In the next window, select Project Resource file, then push Import and navigate to the above folder. When you select an image, it will be copied to your project under a Resources folder. There is also a way (I didn't pursue for now) to create your own Image List, which you can use to assign an image to a control. I'm guessing that the Image List can be used for multiple Projects so you can save some time and also have your own set of images to use consistently in all your projects. Also, there are many other image folders that contain other types of images. Thanks! Dan -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, May 10, 2011 3:49 PM To: 'Discussion concerning Visual Basic and related programming issues.' Subject: [dba-VB] Button Images - Where to Find? In .Net for windows form is there a standard set of images for buttons like Access has? I'd hate to have to create left arrow and a right arrow images. Thanks! Dan _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu May 12 14:28:03 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 12 May 2011 15:28:03 -0400 Subject: [dba-VB] =?windows-1252?q?LSI_MegaRAID_SAS/SATA_9265-8i_6Gb/s_PCI?= =?windows-1252?q?e_RAID_Card_Review_=96_Performance_Unleashed!_=7C_The_SS?= =?windows-1252?q?D_Review?= Message-ID: <4DCC34C3.4080302@colbyconsulting.com> -- John W. Colby www.ColbyConsulting.com http://thessdreview.com/our-reviews/lsi-megaraid-sassata-9265-8i-6gbs-pcie-raid-controller-card-review/ From df.waters at comcast.net Tue May 17 09:53:25 2011 From: df.waters at comcast.net (Dan Waters) Date: Tue, 17 May 2011 09:53:25 -0500 Subject: [dba-VB] Good News for .Net Developers Message-ID: <000301cc14a2$2cfda6a0$86f8f3e0$@comcast.net> Mono is an open-source implementation of .Net which was owned by Novell/Attachmate until a week ago. All the members of the Mono teams were let go. The founder of Mono has restarted his effort, with the same team members, as an independent company named Xamarin. Looks like good news for .Net developers! http://www.zdnet.com/blog/microsoft/mono-lives-in-new-startup-xamarin/9465 Dan From accessd at shaw.ca Tue May 17 10:17:30 2011 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 17 May 2011 08:17:30 -0700 Subject: [dba-VB] Good News for .Net Developers In-Reply-To: <000301cc14a2$2cfda6a0$86f8f3e0$@comcast.net> References: <000301cc14a2$2cfda6a0$86f8f3e0$@comcast.net> Message-ID: Excellent! Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, May 17, 2011 7:53 AM To: 'Discussion concerning Visual Basic and related programming issues.' Subject: [dba-VB] Good News for .Net Developers Mono is an open-source implementation of .Net which was owned by Novell/Attachmate until a week ago. All the members of the Mono teams were let go. The founder of Mono has restarted his effort, with the same team members, as an independent company named Xamarin. Looks like good news for .Net developers! http://www.zdnet.com/blog/microsoft/mono-lives-in-new-startup-xamarin/9465 Dan _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From df.waters at comcast.net Tue May 17 16:00:22 2011 From: df.waters at comcast.net (Dan Waters) Date: Tue, 17 May 2011 16:00:22 -0500 Subject: [dba-VB] Listbox on VB.Net Form - How to Display Data Correctly? Message-ID: <001b01cc14d5$707a3af0$516eb0d0$@comcast.net> I'm making my first .net form with existing data and I'm having trouble getting the listbox to display correctly. Been looking through all my books and doing lots of web searches, but no real answer. The form has a TurnbackMainBindingSource which uses a DataSource named TurnbackMain. TurnbackMain is an object in a Linq to SQL DataContext (.dbml file). I have two list boxes, both of which use an items collection entered via property sheet. The Severity listbox has choices 1, 2, 3. The QD listbox has choices Quality, Delivery. Both listboxes, have the SelectedItem set to TurnbackMainBindingSource - Severity and TurnbackMainBindingSource - QD, respectively. The comboboxes and textboxes have similar values in the Text property, but the listbox does not have a Text property in the property sheet. As I use the Navigation toolbar to move the form through the records, I want the listboxes to display like Access does, which I assume is the way a listbox should in .Net as well. What happens: For the QD listbox, as I scroll through the records, the Quality or Delivery item is highlighted, if the underlying data is not null. If the underlying data is null, then whatever was highlighted for the previous record remains highlighted. For the Severity listbox, there is no highlighting at all. For the comboboxes and textboxes, what's displayed matches the underlying data. The underlying data for QD is string, the underlying data for Severity is numeric. Is there a way to make this happen correctly without writing any code in the form's afterupdate event? If no, then what code is needed? Thanks! Dan From Gustav at cactus.dk Wed May 18 05:30:27 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 18 May 2011 12:30:27 +0200 Subject: [dba-VB] Listbox on VB.Net Form - How to Display Data Correctly? Message-ID: Hi Dan At the row enter event you may need to include code to clear the combo. C# only, but you sure get the picture: private void dataGridView1_RowEnter(object sender, DataGridViewCellEventArgs e) { // Row to look up is the current row. int rowIndex = e.RowIndex; // Column in row to look up Id of Supplier. int columnId = 0; _supplierId = Convert.ToInt32(dataGridView1.Rows[rowIndex].Cells[columnId].Value); this.FindCurrentCustomer(); } private void FindCurrentCustomer() { DataRow[] customerSupplier = _customerSupplierDataTable.Select("SupplierId = " + _supplierId.ToString()); if (customerSupplier.Length == 0) { _customerId = -1; // Erase display. this.comboBoxCustomer.Text = null; } else { _customerId = Convert.ToInt32(customerSupplier[0]["CustomerId"].ToString()); } this.comboBoxCustomer.SelectedValue = _customerId; } /gustav >>> "Dan Waters" 17-05-2011 23:00 >>> I'm making my first .net form with existing data and I'm having trouble getting the listbox to display correctly. Been looking through all my books and doing lots of web searches, but no real answer. The form has a TurnbackMainBindingSource which uses a DataSource named TurnbackMain. TurnbackMain is an object in a Linq to SQL DataContext (.dbml file). I have two list boxes, both of which use an items collection entered via property sheet. The Severity listbox has choices 1, 2, 3. The QD listbox has choices Quality, Delivery. Both listboxes, have the SelectedItem set to TurnbackMainBindingSource - Severity and TurnbackMainBindingSource - QD, respectively. The comboboxes and textboxes have similar values in the Text property, but the listbox does not have a Text property in the property sheet. As I use the Navigation toolbar to move the form through the records, I want the listboxes to display like Access does, which I assume is the way a listbox should in .Net as well. What happens: For the QD listbox, as I scroll through the records, the Quality or Delivery item is highlighted, if the underlying data is not null. If the underlying data is null, then whatever was highlighted for the previous record remains highlighted. For the Severity listbox, there is no highlighting at all. For the comboboxes and textboxes, what's displayed matches the underlying data. The underlying data for QD is string, the underlying data for Severity is numeric. Is there a way to make this happen correctly without writing any code in the form's afterupdate event? If no, then what code is needed? Thanks! Dan From jwcolby at colbyconsulting.com Fri May 20 21:51:22 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 20 May 2011 22:51:22 -0400 Subject: [dba-VB] Setting up a test VM Message-ID: <4DD728AA.8020208@colbyconsulting.com> Using a VM running on my server, I want to emulate as closely as possible a workstation running out on the internet connecting in to my server over Hamachi. I have the VM running but it was part of my workgroup. I changed the workgroup name for the VM but I am still able to access it remote desktop by the machine name which means that very likely the router is using stored info and assigning the VM an IP. I really wanted to isolate it as much as I can from my internal network. I tried assigning the machine an entirely different IP range (192.168.122.x instead of 192.168.1.x) but when I did that it appears that hamachi instantly loses it's tunnel through the firewall. Any suggestions for how to go about making this thing isolated? -- John W. Colby www.ColbyConsulting.com From michael at ddisolutions.com.au Fri May 20 22:43:39 2011 From: michael at ddisolutions.com.au (Michael Maddison) Date: Sat, 21 May 2011 13:43:39 +1000 Subject: [dba-VB] Filemaker to SQL Anyone? Message-ID: <99266C61B516644D9727F983FAFAB46508640E@remote.ddisolutions.com.au> How do I get myself into these messes? Anyone ever used Filemaker Pro? How do I just get all data from table and export it? How do you even SEE all the data from A table? OMG I can't believe its this hard! Cheers Michael M From michael at ddisolutions.com.au Fri May 20 23:13:45 2011 From: michael at ddisolutions.com.au (Michael Maddison) Date: Sat, 21 May 2011 14:13:45 +1000 Subject: [dba-VB] Filemaker to SQL Anyone? Message-ID: <99266C61B516644D9727F983FAFAB46508640F@remote.ddisolutions.com.au> Looks like I need to make a layout with the table option turned on, manually add each field to the layout, export from there! Good grief! Lucky theres only 150 fields... Cheers Michael M -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Michael Maddison Sent: Saturday, 21 May 2011 1:44 PM To: Discussion concerning Visual Basic and related programming issues. Subject: [dba-VB] Filemaker to SQL Anyone? How do I get myself into these messes? Anyone ever used Filemaker Pro? How do I just get all data from table and export it? How do you even SEE all the data from A table? OMG I can't believe its this hard! Cheers Michael M _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com ----- No virus found in this message. Checked by AVG - www.avg.com Version: 10.0.1375 / Virus Database: 1509/3649 - Release Date: 05/20/11 From gustav at cactus.dk Sun May 22 12:50:05 2011 From: gustav at cactus.dk (Gustav Brock) Date: Sun, 22 May 2011 19:50:05 +0200 Subject: [dba-VB] XML documentation builder: Sandcastle Message-ID: Hi all I was about reinstalling this splendid tool as I came across "The guided installation of Sandcastle" which I haven't seen before: http://shfb.codeplex.com/releases/view/62064 which walks you through the download and install of every needed package. Highly recommended! Sandcastle nearly makes it fun to document your code and the generated output looks exactly like what you see from MS. /gustav From DWUTKA at Marlow.com Mon May 23 11:50:35 2011 From: DWUTKA at Marlow.com (Drew Wutka) Date: Mon, 23 May 2011 11:50:35 -0500 Subject: [dba-VB] Setting up a test VM In-Reply-To: <4DD728AA.8020208@colbyconsulting.com> References: <4DD728AA.8020208@colbyconsulting.com> Message-ID: There really is no way to 'simulate' an 'external client', on a home router. Your internet connection is coming in one port, and is going through one set of rules. So unless that router is VERY programmable, then the best you can do, as far as I can think of, is to create a routed connection in from another subnet. Of course, the EASIEST way to do what you are trying to do, is just go out and buy an aircard (a usb device that connects to the internet), or, if you can 'share' your phone's internet connection, you can use that as an external connection. And setup your VM to ACTUALLY use an internet connection other than your normal ISP. Drew -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, May 20, 2011 9:51 PM To: Access Developers discussion and problem solving; VBA Subject: [dba-VB] Setting up a test VM Using a VM running on my server, I want to emulate as closely as possible a workstation running out on the internet connecting in to my server over Hamachi. I have the VM running but it was part of my workgroup. I changed the workgroup name for the VM but I am still able to access it remote desktop by the machine name which means that very likely the router is using stored info and assigning the VM an IP. I really wanted to isolate it as much as I can from my internal network. I tried assigning the machine an entirely different IP range (192.168.122.x instead of 192.168.1.x) but when I did that it appears that hamachi instantly loses it's tunnel through the firewall. Any suggestions for how to go about making this thing isolated? -- John W. Colby www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From marklbreen at gmail.com Tue May 24 05:27:44 2011 From: marklbreen at gmail.com (Mark Breen) Date: Tue, 24 May 2011 11:27:44 +0100 Subject: [dba-VB] Setting up a test VM In-Reply-To: References: <4DD728AA.8020208@colbyconsulting.com> Message-ID: Or another easy way is to ask someone here on AccessD to connect to you hamachi network, install the access client and connect across the atlantic ! That would be heavy testing for the client :) Mark On 23 May 2011 17:50, Drew Wutka wrote: > There really is no way to 'simulate' an 'external client', on a home > router. Your internet connection is coming in one port, and is going > through one set of rules. So unless that router is VERY programmable, > then the best you can do, as far as I can think of, is to create a > routed connection in from another subnet. > > Of course, the EASIEST way to do what you are trying to do, is just go > out and buy an aircard (a usb device that connects to the internet), or, > if you can 'share' your phone's internet connection, you can use that as > an external connection. And setup your VM to ACTUALLY use an internet > connection other than your normal ISP. > > Drew > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Friday, May 20, 2011 9:51 PM > To: Access Developers discussion and problem solving; VBA > Subject: [dba-VB] Setting up a test VM > > Using a VM running on my server, I want to emulate as closely as > possible a workstation running out > on the internet connecting in to my server over Hamachi. I have the VM > running but it was part of > my workgroup. I changed the workgroup name for the VM but I am still > able to access it remote > desktop by the machine name which means that very likely the router is > using stored info and > assigning the VM an IP. I really wanted to isolate it as much as I can > from my internal network. > > I tried assigning the machine an entirely different IP range > (192.168.122.x instead of 192.168.1.x) > but when I did that it appears that hamachi instantly loses it's tunnel > through the firewall. > > Any suggestions for how to go about making this thing isolated? > > -- > John W. Colby > www.ColbyConsulting.com > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > The information contained in this transmission is intended only for the > person or entity > to which it is addressed and may contain II-VI Proprietary and/or II-VI > Business > Sensitive material. If you are not the intended recipient, please contact > the sender > immediately and destroy the material in its entirety, whether electronic or > hard copy. > You are notified that any review, retransmission, copying, disclosure, > dissemination, > or other use of, or taking of any action in reliance upon this information > by persons > or entities other than the intended recipient is prohibited. > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From jwcolby at colbyconsulting.com Fri May 27 09:53:53 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 27 May 2011 10:53:53 -0400 Subject: [dba-VB] redemption Message-ID: <4DDFBB01.5060602@colbyconsulting.com> We are trying to use Redemption (outlook) to get around the MS security nonsense. We are using the RDO portion because the SafeMail object (Outlook) side of redemption was missing the mail.subject property msg.move for moving a message from folder to another. The RDO does have those things. We are still having two specific problems. 1) We are unable to find a way to cause RDO to download the mail, thus the MailReceived event never fires. As a result we are currently opening outlook and setting it up to download every 1 minute. Clumsy! 2) RDO.Msg.Move moves the message but we can't see it in the folder it was moved to. IOW if we move a bunch of mail items then go look in the folder that the mail items were put into, the collection doesn't show it as being there. If in Outlook we click on that folder, *then* back in our code the folder shows the mail items as being in the folder. If anyone is using this stuff please feel free to comment. Thanks, -- John W. Colby www.ColbyConsulting.com From mikedorism at verizon.net Tue May 31 11:24:20 2011 From: mikedorism at verizon.net (Doris Manning) Date: Tue, 31 May 2011 12:24:20 -0400 Subject: [dba-VB] redemption In-Reply-To: <4DDFBB01.5060602@colbyconsulting.com> References: <4DDFBB01.5060602@colbyconsulting.com> Message-ID: <704BE61E43064893905FD26C21CC8595@hargrove.internal> John, I do use Redemption but not any of the features you are trying to use. Have you tried contacting Dmitri personally? He is usually very quick to respond whenever I've had questions. Doris Manning Senior Developer/Database Administrator Hargrove Inc. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, May 27, 2011 10:54 AM To: Access Developers discussion and problem solving; VBA Subject: [dba-VB] redemption We are trying to use Redemption (outlook) to get around the MS security nonsense. We are using the RDO portion because the SafeMail object (Outlook) side of redemption was missing the mail.subject property msg.move for moving a message from folder to another. The RDO does have those things. We are still having two specific problems. 1) We are unable to find a way to cause RDO to download the mail, thus the MailReceived event never fires. As a result we are currently opening outlook and setting it up to download every 1 minute. Clumsy! 2) RDO.Msg.Move moves the message but we can't see it in the folder it was moved to. IOW if we move a bunch of mail items then go look in the folder that the mail items were put into, the collection doesn't show it as being there. If in Outlook we click on that folder, *then* back in our code the folder shows the mail items as being in the folder. If anyone is using this stuff please feel free to comment. Thanks, -- John W. Colby www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From stuart at lexacorp.com.pg Fri May 6 08:13:27 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 06 May 2011 23:13:27 +1000 Subject: [dba-VB] Back to native Code? In-Reply-To: References: Message-ID: <4DC3F3F7.938.70227B0@stuart.lexacorp.com.pg> Is the romance with .Net and managed code on it's way out? Is the "next big thing" going to be a return to native code? http://www.zdnet.com/blog/microsoft/what-is-winc-and-how-does-it-figure-in-microsofts-bid-to -make-tools-a-2-billion-business/9359 or Short URL: http://goo.gl/qRTUB -- Stuart From accessd at shaw.ca Fri May 6 17:58:20 2011 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 6 May 2011 15:58:20 -0700 Subject: [dba-VB] Back to native Code? In-Reply-To: <4DC3F3F7.938.70227B0@stuart.lexacorp.com.pg> References: <4DC3F3F7.938.70227B0@stuart.lexacorp.com.pg> Message-ID: <61323A1825D9472EAD300900B45D455C@creativesystemdesigns.com> I doubt whether it is on it way out but I do think MS has to realize that not everyone sees .Net as the way to salvation. Companies like Amazon, Google and even Oracle are completed committed to Java development are regardless of the temptation are not about to switch. Then there are companies like FaceBook which are completely committed to PHP. There is a massive base of there languages and that is for a number of reasons. First, the languages are Open Source which means everyone regardless of the finances can get into the product. This is particularly attractive to university students who traditionally have no money and that is important as these people are the future of the programming world. Second, the languages are not tied to a specific version of Windows and/or Framework. A .Net application that will run on a Server2008 will not necessarily run on Server2003. There is a lot of investment in development and no programmer wants to loss 10 years of their lives due to someone's idea of an improvement. Third, the .Net language is not portable. IOW they can only run on one platform. Linux's penetration of the desktop market may not be that large but in the Server market Linux is king. Until recently, there was a parallel project running under the old Novell, to create and support a Linux .Net but after its purchase by Attachmate, the project has been abandoned. MS may not realize it but this will hurt .Net on Windows as well. Fourth, Open Source products have one big advantage over controlled factory type languages and that is the speed of bug resolution. A bug appears on Thursday and a solution is posted on Saturday. Every time a major OS product has an issue, 1200 university student whip into the source code to be the first person to arrive at a viable solution. Fifth, languages that have been around for a while have been used to create and support many large and small projects and applications. That is a huge investment and major companies are loathed to abandoned migrate without a very good reason. Example: there are many large accounting system that have been written in Cobol and some companies still have stable of Cobol programmers working for them. Sixth, good desktop centric languages are not nearly as important as they were 10 years ago. People are looking for languages that are web server supporting and can be extended to browser based environments. To that end ASP.Net does an acceptable job at this level of support but, its deployment coupled with IEx does not necessarily comply with new the industry standards, in CSS3, HTML5 and now WebGL. C++ was at one time a product belonging to MS/Borland but that has dramatically changed with Open Source C/C++ compilers available. Now it is cross-platform and now its future is assured. Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, May 06, 2011 6:13 AM To: Discussion concerning Visual Basic and related programming issues. Subject: [dba-VB] Back to native Code? Is the romance with .Net and managed code on it's way out? Is the "next big thing" going to be a return to native code? http://www.zdnet.com/blog/microsoft/what-is-winc-and-how-does-it-figure-in-m icrosofts-bid-to -make-tools-a-2-billion-business/9359 or Short URL: http://goo.gl/qRTUB -- Stuart _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From shamil at smsconsulting.spb.ru Sat May 7 03:21:28 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sat, 7 May 2011 12:21:28 +0400 Subject: [dba-VB] Microsoft.SqlServer.Smo Message-ID: <0632A25A4F414713973B5CE5E091B71C@nant> Hi All -- I can't get Microsoft.SqlServer.Smo (http://msdn.microsoft.com/en-us/library/microsoft.sqlserver.management.smo% 28v=SQL.100%29.aspx) available for my VS2010 SP1 project. I have got at "Microsoft SQL Server 2008 Feature Pack, April 2009" http://www.microsoft.com/downloads/en/details.aspx?FamilyID=b33d2c78-1059-4c e2-b80d-2343c099bcb4 and I have got downloaded "Microsoft SQL Server 2008 Management Objects" "The SQL Server Management Objects (SMO) is a .NET Framework object model that enables software developers to create client-side applications to manage and administer SQL Server objects and services. This object model will work with SQL Server 2000, SQL Server 2005 and SQL Server 2008." http://download.microsoft.com/download/0/E/6/0E67502A-22B4-4C47-92D3-0D223F1 17190/SharedManagementObjects.msi But it doesn't want to setup on my system telling me it's there already :) - although I can't see it from VS2010 SP1 project's References dialog :( I'm (re-)searchning my computer files for Microsoft.SqlServer.Smo filename now but I doubt this search will get any positive results returned... Could you please advise/guess what am I'm missing? Thank you. -- Shamil From shamil at smsconsulting.spb.ru Sat May 7 04:25:41 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sat, 7 May 2011 13:25:41 +0400 Subject: [dba-VB] Microsoft.SqlServer.Smo In-Reply-To: <0632A25A4F414713973B5CE5E091B71C@nant> References: <0632A25A4F414713973B5CE5E091B71C@nant> Message-ID: Hi All -- I have found Microsoft.SqlServer.Smo related assemblies installed on my system under ... \Program Files\Microsoft SQL Server 2005 Express\100\SDK\Assemblies. Issue solved. Thank you. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: 7 ??? 2011 ?. 12:21 To: 'Discussion concerning Visual Basic and related programming issues.' Subject: [dba-VB] Microsoft.SqlServer.Smo Hi All -- I can't get Microsoft.SqlServer.Smo (http://msdn.microsoft.com/en-us/library/microsoft.sqlserver.management.smo% 28v=SQL.100%29.aspx) available for my VS2010 SP1 project. I have got at "Microsoft SQL Server 2008 Feature Pack, April 2009" http://www.microsoft.com/downloads/en/details.aspx?FamilyID=b33d2c78-1059-4c e2-b80d-2343c099bcb4 and I have got downloaded "Microsoft SQL Server 2008 Management Objects" "The SQL Server Management Objects (SMO) is a .NET Framework object model that enables software developers to create client-side applications to manage and administer SQL Server objects and services. This object model will work with SQL Server 2000, SQL Server 2005 and SQL Server 2008." http://download.microsoft.com/download/0/E/6/0E67502A-22B4-4C47-92D3-0D223F1 17190/SharedManagementObjects.msi But it doesn't want to setup on my system telling me it's there already :) - although I can't see it from VS2010 SP1 project's References dialog :( I'm (re-)searchning my computer files for Microsoft.SqlServer.Smo filename now but I doubt this search will get any positive results returned... Could you please advise/guess what am I'm missing? Thank you. -- Shamil _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Sat May 7 06:23:22 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 07 May 2011 07:23:22 -0400 Subject: [dba-VB] Microsoft.SqlServer.Smo In-Reply-To: References: <0632A25A4F414713973B5CE5E091B71C@nant> Message-ID: <4DC52BAA.2080602@colbyconsulting.com> I use SMO extensively! Very cool object. John W. Colby www.ColbyConsulting.com On 5/7/2011 5:25 AM, Shamil Salakhetdinov wrote: > Hi All -- > > I have found Microsoft.SqlServer.Smo related assemblies installed on my > system under > > ... \Program Files\Microsoft SQL Server 2005 Express\100\SDK\Assemblies. > > Issue solved. > > Thank you. > > -- > Shamil > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil > Salakhetdinov > Sent: 7 ??? 2011 ?. 12:21 > To: 'Discussion concerning Visual Basic and related programming issues.' > Subject: [dba-VB] Microsoft.SqlServer.Smo > > Hi All -- > > I can't get Microsoft.SqlServer.Smo > (http://msdn.microsoft.com/en-us/library/microsoft.sqlserver.management.smo% > 28v=SQL.100%29.aspx) available for my VS2010 SP1 project. > I have got at "Microsoft SQL Server 2008 Feature Pack, April 2009" > > http://www.microsoft.com/downloads/en/details.aspx?FamilyID=b33d2c78-1059-4c > e2-b80d-2343c099bcb4 > > and I have got downloaded "Microsoft SQL Server 2008 Management Objects" > > "The SQL Server Management Objects (SMO) is a .NET Framework object model > that enables software developers to create client-side applications to > manage and administer SQL Server objects and services. This object model > will work with SQL Server 2000, SQL Server 2005 and SQL Server 2008." > > http://download.microsoft.com/download/0/E/6/0E67502A-22B4-4C47-92D3-0D223F1 > 17190/SharedManagementObjects.msi > > But it doesn't want to setup on my system telling me it's there already :) - > although I can't see it from VS2010 SP1 project's References dialog :( > > I'm (re-)searchning my computer files for > > Microsoft.SqlServer.Smo > > filename now but I doubt this search will get any positive results > returned... > > Could you please advise/guess what am I'm missing? > > Thank you. > > -- > Shamil > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From shamil at smsconsulting.spb.ru Sat May 7 08:09:00 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sat, 7 May 2011 17:09:00 +0400 Subject: [dba-VB] Microsoft.SqlServer.Smo In-Reply-To: <4DC52BAA.2080602@colbyconsulting.com> References: <0632A25A4F414713973B5CE5E091B71C@nant> <4DC52BAA.2080602@colbyconsulting.com> Message-ID: <4FDFCEF827D34B7D8213280BD3E96761@nant> Hi John -- Did you try to deploy your SMO-empowered application to the customers' systems? I mean would that be enough in such a case to deliver to the customer side only referenced SMO .NET Framework class libraries deployed locally together with their "parent" custom application, or the full (.NET Framework) SMO SDK should be also installed/deployed? Thank you. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: 7 ??? 2011 ?. 15:23 To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Microsoft.SqlServer.Smo I use SMO extensively! Very cool object. John W. Colby www.ColbyConsulting.com On 5/7/2011 5:25 AM, Shamil Salakhetdinov wrote: > Hi All -- > > I have found Microsoft.SqlServer.Smo related assemblies installed on > my system under > > ... \Program Files\Microsoft SQL Server 2005 Express\100\SDK\Assemblies. > > Issue solved. > > Thank you. > > -- > Shamil > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil > Salakhetdinov > Sent: 7 ??? 2011 ?. 12:21 > To: 'Discussion concerning Visual Basic and related programming issues.' > Subject: [dba-VB] Microsoft.SqlServer.Smo > > Hi All -- > > I can't get Microsoft.SqlServer.Smo > (http://msdn.microsoft.com/en-us/library/microsoft.sqlserver.managemen > t.smo% > 28v=SQL.100%29.aspx) available for my VS2010 SP1 project. > I have got at "Microsoft SQL Server 2008 Feature Pack, April 2009" > > http://www.microsoft.com/downloads/en/details.aspx?FamilyID=b33d2c78-1 > 059-4c > e2-b80d-2343c099bcb4 > > and I have got downloaded "Microsoft SQL Server 2008 Management Objects" > > "The SQL Server Management Objects (SMO) is a .NET Framework object > model that enables software developers to create client-side > applications to manage and administer SQL Server objects and services. > This object model will work with SQL Server 2000, SQL Server 2005 and SQL Server 2008." > > http://download.microsoft.com/download/0/E/6/0E67502A-22B4-4C47-92D3-0 > D223F1 > 17190/SharedManagementObjects.msi > > But it doesn't want to setup on my system telling me it's there > already :) - although I can't see it from VS2010 SP1 project's > References dialog :( > > I'm (re-)searchning my computer files for > > Microsoft.SqlServer.Smo > > filename now but I doubt this search will get any positive results > returned... > > Could you please advise/guess what am I'm missing? > > Thank you. > > -- > Shamil > From stuart at lexacorp.com.pg Sat May 7 15:15:56 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sun, 08 May 2011 06:15:56 +1000 Subject: [dba-VB] Microsoft.SqlServer.Smo In-Reply-To: <4FDFCEF827D34B7D8213280BD3E96761@nant> References: <0632A25A4F414713973B5CE5E091B71C@nant>, <4DC52BAA.2080602@colbyconsulting.com>, <4FDFCEF827D34B7D8213280BD3E96761@nant> Message-ID: <4DC5A87C.16788.DAB4F6E@stuart.lexacorp.com.pg> SDK = Software Development Kit - emphasis on the Development. There should never be a requirement to deploy it to clients. -- Stuart On 7 May 2011 at 17:09, Shamil Salakhetdinov wrote: > Hi John -- > > Did you try to deploy your SMO-empowered application to the customers' > systems? I mean would that be enough in such a case to deliver to the > customer side only referenced SMO .NET Framework class libraries > deployed locally together with their "parent" custom application, or > the full (.NET Framework) SMO SDK should be also installed/deployed? > > Thank you. > > -- > Shamil > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: 7 ??? 2011 ?. 15:23 To: Discussion concerning Visual Basic and > related programming issues. Subject: Re: [dba-VB] > Microsoft.SqlServer.Smo > > I use SMO extensively! Very cool object. > > John W. Colby > www.ColbyConsulting.com > > On 5/7/2011 5:25 AM, Shamil Salakhetdinov wrote: > > Hi All -- > > > > I have found Microsoft.SqlServer.Smo related assemblies installed on > > my system under > > > > ... \Program Files\Microsoft SQL Server 2005 > > Express\100\SDK\Assemblies. > > > > Issue solved. > > > > Thank you. > > > > -- > > Shamil > > > > -----Original Message----- > > From: dba-vb-bounces at databaseadvisors.com > > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil > > Salakhetdinov Sent: 7 ??? 2011 ?. 12:21 To: 'Discussion concerning > > Visual Basic and related programming issues.' Subject: [dba-VB] > > Microsoft.SqlServer.Smo > > > > Hi All -- > > > > I can't get Microsoft.SqlServer.Smo > > (http://msdn.microsoft.com/en-us/library/microsoft.sqlserver.managem > > en t.smo% 28v=SQL.100%29.aspx) available for my VS2010 SP1 project. > > I have got at "Microsoft SQL Server 2008 Feature Pack, April 2009" > > > > http://www.microsoft.com/downloads/en/details.aspx?FamilyID=b33d2c78 > > -1 059-4c e2-b80d-2343c099bcb4 > > > > and I have got downloaded "Microsoft SQL Server 2008 Management > > Objects" > > > > "The SQL Server Management Objects (SMO) is a .NET Framework object > > model that enables software developers to create client-side > > applications to manage and administer SQL Server objects and > > services. This object model will work with SQL Server 2000, SQL > > Server 2005 and SQL > Server 2008." > > > > http://download.microsoft.com/download/0/E/6/0E67502A-22B4-4C47-92D3 > > -0 D223F1 17190/SharedManagementObjects.msi > > > > But it doesn't want to setup on my system telling me it's there > > already :) - although I can't see it from VS2010 SP1 project's > > References dialog :( > > > > I'm (re-)searchning my computer files for > > > > Microsoft.SqlServer.Smo > > > > filename now but I doubt this search will get any positive results > > returned... > > > > Could you please advise/guess what am I'm missing? > > > > Thank you. > > > > -- > > Shamil > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From jwcolby at colbyconsulting.com Sat May 7 19:20:12 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 07 May 2011 20:20:12 -0400 Subject: [dba-VB] Microsoft.SqlServer.Smo In-Reply-To: <4DC5A87C.16788.DAB4F6E@stuart.lexacorp.com.pg> References: <0632A25A4F414713973B5CE5E091B71C@nant>, <4DC52BAA.2080602@colbyconsulting.com>, <4FDFCEF827D34B7D8213280BD3E96761@nant> <4DC5A87C.16788.DAB4F6E@stuart.lexacorp.com.pg> Message-ID: <4DC5E1BC.1010909@colbyconsulting.com> He probably had to go get a reference to it in order to use it. John W. Colby www.ColbyConsulting.com On 5/7/2011 4:15 PM, Stuart McLachlan wrote: > SDK = Software Development Kit - emphasis on the Development. > > There should never be a requirement to deploy it to clients. > From jwcolby at colbyconsulting.com Sat May 7 19:21:26 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 07 May 2011 20:21:26 -0400 Subject: [dba-VB] Microsoft.SqlServer.Smo In-Reply-To: <4FDFCEF827D34B7D8213280BD3E96761@nant> References: <0632A25A4F414713973B5CE5E091B71C@nant> <4DC52BAA.2080602@colbyconsulting.com> <4FDFCEF827D34B7D8213280BD3E96761@nant> Message-ID: <4DC5E206.80007@colbyconsulting.com> I don't know the answer to that. To this point, all of my usage has been for the app we developed for internal use. John W. Colby www.ColbyConsulting.com On 5/7/2011 9:09 AM, Shamil Salakhetdinov wrote: > Hi John -- > > Did you try to deploy your SMO-empowered application to the customers' > systems? > I mean would that be enough in such a case to deliver to the customer side > only referenced SMO .NET Framework class libraries deployed locally together > with their "parent" custom application, or the full (.NET Framework) SMO SDK > should be also installed/deployed? > > Thank you. > > -- > Shamil > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: 7 ??? 2011 ?. 15:23 > To: Discussion concerning Visual Basic and related programming issues. > Subject: Re: [dba-VB] Microsoft.SqlServer.Smo > > I use SMO extensively! Very cool object. > > John W. Colby > www.ColbyConsulting.com > > On 5/7/2011 5:25 AM, Shamil Salakhetdinov wrote: >> Hi All -- >> >> I have found Microsoft.SqlServer.Smo related assemblies installed on >> my system under >> >> ... \Program Files\Microsoft SQL Server 2005 Express\100\SDK\Assemblies. >> >> Issue solved. >> >> Thank you. >> >> -- >> Shamil >> >> -----Original Message----- >> From: dba-vb-bounces at databaseadvisors.com >> [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil >> Salakhetdinov >> Sent: 7 ??? 2011 ?. 12:21 >> To: 'Discussion concerning Visual Basic and related programming issues.' >> Subject: [dba-VB] Microsoft.SqlServer.Smo >> >> Hi All -- >> >> I can't get Microsoft.SqlServer.Smo >> (http://msdn.microsoft.com/en-us/library/microsoft.sqlserver.managemen >> t.smo% >> 28v=SQL.100%29.aspx) available for my VS2010 SP1 project. >> I have got at "Microsoft SQL Server 2008 Feature Pack, April 2009" >> >> http://www.microsoft.com/downloads/en/details.aspx?FamilyID=b33d2c78-1 >> 059-4c >> e2-b80d-2343c099bcb4 >> >> and I have got downloaded "Microsoft SQL Server 2008 Management Objects" >> >> "The SQL Server Management Objects (SMO) is a .NET Framework object >> model that enables software developers to create client-side >> applications to manage and administer SQL Server objects and services. >> This object model will work with SQL Server 2000, SQL Server 2005 and SQL > Server 2008." >> >> http://download.microsoft.com/download/0/E/6/0E67502A-22B4-4C47-92D3-0 >> D223F1 >> 17190/SharedManagementObjects.msi >> >> But it doesn't want to setup on my system telling me it's there >> already :) - although I can't see it from VS2010 SP1 project's >> References dialog :( >> >> I'm (re-)searchning my computer files for >> >> Microsoft.SqlServer.Smo >> >> filename now but I doubt this search will get any positive results >> returned... >> >> Could you please advise/guess what am I'm missing? >> >> Thank you. >> >> -- >> Shamil >> > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From shamil at smsconsulting.spb.ru Sat May 7 19:46:21 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sun, 8 May 2011 04:46:21 +0400 Subject: [dba-VB] Microsoft.SqlServer.Smo In-Reply-To: <4DC5A87C.16788.DAB4F6E@stuart.lexacorp.com.pg> References: <0632A25A4F414713973B5CE5E091B71C@nant>, <4DC52BAA.2080602@colbyconsulting.com>, <4FDFCEF827D34B7D8213280BD3E96761@nant> <4DC5A87C.16788.DAB4F6E@stuart.lexacorp.com.pg> Message-ID: <8801D45F717E4478803F7B7FF04C22D5@nant> Hi Stuart -- Yes, SDK is for developers but developers (usually) do make and do deploy software for customers' computer systems therefore the question on the ways of distributing these or that SDK components is legal... Thank you. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: 8 ??? 2011 ?. 0:16 To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Microsoft.SqlServer.Smo SDK = Software Development Kit - emphasis on the Development. There should never be a requirement to deploy it to clients. -- Stuart On 7 May 2011 at 17:09, Shamil Salakhetdinov wrote: > Hi John -- > > Did you try to deploy your SMO-empowered application to the customers' > systems? I mean would that be enough in such a case to deliver to the > customer side only referenced SMO .NET Framework class libraries > deployed locally together with their "parent" custom application, or > the full (.NET Framework) SMO SDK should be also installed/deployed? > > Thank you. > > -- > Shamil > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: 7 ??? 2011 ?. 15:23 To: Discussion concerning Visual Basic and > related programming issues. Subject: Re: [dba-VB] > Microsoft.SqlServer.Smo > > I use SMO extensively! Very cool object. > > John W. Colby > www.ColbyConsulting.com > > On 5/7/2011 5:25 AM, Shamil Salakhetdinov wrote: > > Hi All -- > > > > I have found Microsoft.SqlServer.Smo related assemblies installed on > > my system under > > > > ... \Program Files\Microsoft SQL Server 2005 > > Express\100\SDK\Assemblies. > > > > Issue solved. > > > > Thank you. > > > > -- > > Shamil > > > > -----Original Message----- > > From: dba-vb-bounces at databaseadvisors.com > > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil > > Salakhetdinov Sent: 7 ??? 2011 ?. 12:21 To: 'Discussion concerning > > Visual Basic and related programming issues.' Subject: [dba-VB] > > Microsoft.SqlServer.Smo > > > > Hi All -- > > > > I can't get Microsoft.SqlServer.Smo > > (http://msdn.microsoft.com/en-us/library/microsoft.sqlserver.managem > > en t.smo% 28v=SQL.100%29.aspx) available for my VS2010 SP1 project. > > I have got at "Microsoft SQL Server 2008 Feature Pack, April 2009" > > > > http://www.microsoft.com/downloads/en/details.aspx?FamilyID=b33d2c78 > > -1 059-4c e2-b80d-2343c099bcb4 > > > > and I have got downloaded "Microsoft SQL Server 2008 Management > > Objects" > > > > "The SQL Server Management Objects (SMO) is a .NET Framework object > > model that enables software developers to create client-side > > applications to manage and administer SQL Server objects and > > services. This object model will work with SQL Server 2000, SQL > > Server 2005 and SQL > Server 2008." > > > > http://download.microsoft.com/download/0/E/6/0E67502A-22B4-4C47-92D3 > > -0 D223F1 17190/SharedManagementObjects.msi > > > > But it doesn't want to setup on my system telling me it's there > > already :) - although I can't see it from VS2010 SP1 project's > > References dialog :( > > > > I'm (re-)searchning my computer files for > > > > Microsoft.SqlServer.Smo > > > > filename now but I doubt this search will get any positive results > > returned... > > > > Could you please advise/guess what am I'm missing? > > > > Thank you. > > > > -- > > Shamil > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From shamil at smsconsulting.spb.ru Sat May 7 19:46:21 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sun, 8 May 2011 04:46:21 +0400 Subject: [dba-VB] Microsoft.SqlServer.Smo In-Reply-To: <4DC5E206.80007@colbyconsulting.com> References: <0632A25A4F414713973B5CE5E091B71C@nant> <4DC52BAA.2080602@colbyconsulting.com><4FDFCEF827D34B7D8213280BD3E96761@nant> <4DC5E206.80007@colbyconsulting.com> Message-ID: <9EAAFB9EEAE64D65BB1F97680618AC8C@nant> Hi John -- OK, I will try to test it later within a week or so on customer's PC with MS SQL Server installed but not .NET SMO. Thank you. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: 8 ??? 2011 ?. 4:21 To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Microsoft.SqlServer.Smo I don't know the answer to that. To this point, all of my usage has been for the app we developed for internal use. John W. Colby www.ColbyConsulting.com On 5/7/2011 9:09 AM, Shamil Salakhetdinov wrote: > Hi John -- > > Did you try to deploy your SMO-empowered application to the customers' > systems? > I mean would that be enough in such a case to deliver to the customer > side only referenced SMO .NET Framework class libraries deployed > locally together with their "parent" custom application, or the full > (.NET Framework) SMO SDK should be also installed/deployed? > > Thank you. > > -- > Shamil > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: 7 ??? 2011 ?. 15:23 > To: Discussion concerning Visual Basic and related programming issues. > Subject: Re: [dba-VB] Microsoft.SqlServer.Smo > > I use SMO extensively! Very cool object. > > John W. Colby > www.ColbyConsulting.com > > On 5/7/2011 5:25 AM, Shamil Salakhetdinov wrote: >> Hi All -- >> >> I have found Microsoft.SqlServer.Smo related assemblies installed on >> my system under >> >> ... \Program Files\Microsoft SQL Server 2005 Express\100\SDK\Assemblies. >> >> Issue solved. >> >> Thank you. >> >> -- >> Shamil >> >> -----Original Message----- >> From: dba-vb-bounces at databaseadvisors.com >> [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil >> Salakhetdinov >> Sent: 7 ??? 2011 ?. 12:21 >> To: 'Discussion concerning Visual Basic and related programming issues.' >> Subject: [dba-VB] Microsoft.SqlServer.Smo >> >> Hi All -- >> >> I can't get Microsoft.SqlServer.Smo >> (http://msdn.microsoft.com/en-us/library/microsoft.sqlserver.manageme >> n >> t.smo% >> 28v=SQL.100%29.aspx) available for my VS2010 SP1 project. >> I have got at "Microsoft SQL Server 2008 Feature Pack, April 2009" >> >> http://www.microsoft.com/downloads/en/details.aspx?FamilyID=b33d2c78- >> 1 >> 059-4c >> e2-b80d-2343c099bcb4 >> >> and I have got downloaded "Microsoft SQL Server 2008 Management Objects" >> >> "The SQL Server Management Objects (SMO) is a .NET Framework object >> model that enables software developers to create client-side >> applications to manage and administer SQL Server objects and services. >> This object model will work with SQL Server 2000, SQL Server 2005 and >> SQL > Server 2008." >> >> http://download.microsoft.com/download/0/E/6/0E67502A-22B4-4C47-92D3- >> 0 >> D223F1 >> 17190/SharedManagementObjects.msi >> >> But it doesn't want to setup on my system telling me it's there >> already :) - although I can't see it from VS2010 SP1 project's >> References dialog :( >> >> I'm (re-)searchning my computer files for >> >> Microsoft.SqlServer.Smo >> >> filename now but I doubt this search will get any positive results >> returned... >> >> Could you please advise/guess what am I'm missing? >> >> Thank you. >> >> -- >> Shamil >> > From jwcolby at colbyconsulting.com Mon May 9 10:43:38 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 09 May 2011 11:43:38 -0400 Subject: [dba-VB] C# Excel automation Message-ID: <4DC80BAA.4000100@colbyconsulting.com> We are trying to automate Excel from C# but we are unable to correctly close the excel object itself. IOW it is still seen in the process list. Paul has found information about marshal.releasecomobject and is doing that for every object he is even touching but something is still not working. Can anyone provide a simple example of opening a workbook, and reading a set of cells out of a worksheet, then cleaning up and closing Excel. TIA for your assistance. -- John W. Colby www.ColbyConsulting.com From dbdoug at gmail.com Mon May 9 11:17:00 2011 From: dbdoug at gmail.com (Doug Steele) Date: Mon, 9 May 2011 09:17:00 -0700 Subject: [dba-VB] C# Excel automation In-Reply-To: <4DC80BAA.4000100@colbyconsulting.com> References: <4DC80BAA.4000100@colbyconsulting.com> Message-ID: John, I can't find it quickly but I know there was a big discussion about this on the Access list a while back. Doug On Mon, May 9, 2011 at 8:43 AM, jwcolby wrote: > We are trying to automate Excel from C# but we are unable to correctly close > the excel object itself. ?IOW it is still seen in the process list. > > Paul has found information about marshal.releasecomobject and is doing that > for every object he is even touching but something is still not working. > > Can anyone provide a simple example of opening a workbook, and reading a set > of cells out of a worksheet, then cleaning up and closing Excel. > > TIA for your assistance. > > -- > John W. Colby > www.ColbyConsulting.com > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From df.waters at comcast.net Mon May 9 12:02:24 2011 From: df.waters at comcast.net (Dan Waters) Date: Mon, 9 May 2011 12:02:24 -0500 Subject: [dba-VB] C# Excel automation In-Reply-To: <4DC80BAA.4000100@colbyconsulting.com> References: <4DC80BAA.4000100@colbyconsulting.com> Message-ID: <004201cc0e6a$e0a4a2f0$a1ede8d0$@comcast.net> Hi John, I've had this issue too. It's almost certainly that somewhere in your code you are missing an Excel object qualifier. Also take a look at the sequence of opening and closing the Workbook and the instance of Excel. Another issue is that if the PC already has Excel open, then the workbook you create will be contained within the instance of Excel, and it turns out that it's about impossible for your code to loop through the different workbooks. The best plan is probably to look for an instance of Excel and close it with save = true. Then open your workbook and you should be fine. You'll need to tell your users what's going to happen (and maybe ask by message if they want to continue), and/or put up a message if you need to close/save an already open instance of Excel. See this code: '----------------- Private Sub FormatSpreadsheetDemo(stgPath As String) Dim objExcel As Object Dim objWorkbook As Object ' Dim objExcel As Excel.Application '-- TEST ' Dim objWorkbook As Excel.Workbook '-- TEST If IsNull(stgPath) Or stgPath = "" Then Exit Sub Set objExcel = CreateObject("Excel.Application") '-- for troubleshooting ' objExcel.Visible = true '-- TEST ' objExcel.ActiveWindow.WindowState = xlMaximized '-- TEST Set objWorkbook = objExcel.Workbooks.Open(stgPath) '-- Format objExcel.Rows("1:1").Select objExcel.Selection.Font.Bold = True objExcel.Cells.Select objExcel.Selection.Font.Name = "Tahoma" objExcel.Selection.Font.Size = 10 objExcel.Cells.EntireColumn.AutoFit '-- Freeze rows If InStr(stgPath, "Backups") = 0 Then objExcel.Range("A2").Select Else objExcel.Range("B2").Select End If objExcel.ActiveWindow.FreezePanes = True objExcel.ActiveWindow.WindowState = xlMaximized '-- Change column format If InStr(stgPath, "Activity") <> 0 Then objExcel.Columns("E:E").Select objExcel.Selection.NumberFormat = "[$-409]h:mm AM/PM;@" objExcel.Columns("G:G").Select objExcel.Selection.NumberFormat = "[$-409]h:mm AM/PM;@" End If '-- Select upper left cell objExcel.Range("A1").Select '-- Save & Quit objWorkbook.Save objWorkbook.Close objExcel.Quit Set objWorkbook = Nothing Set objExcel = Nothing Exit Sub ErrEx.Bookmark = BOOKMARK_ONERROR End Sub '------------------ -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Monday, May 09, 2011 10:44 AM To: VBA Subject: [dba-VB] C# Excel automation We are trying to automate Excel from C# but we are unable to correctly close the excel object itself. IOW it is still seen in the process list. Paul has found information about marshal.releasecomobject and is doing that for every object he is even touching but something is still not working. Can anyone provide a simple example of opening a workbook, and reading a set of cells out of a worksheet, then cleaning up and closing Excel. TIA for your assistance. -- John W. Colby www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Mon May 9 12:22:59 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 09 May 2011 13:22:59 -0400 Subject: [dba-VB] C# Excel automation In-Reply-To: <004201cc0e6a$e0a4a2f0$a1ede8d0$@comcast.net> References: <4DC80BAA.4000100@colbyconsulting.com> <004201cc0e6a$e0a4a2f0$a1ede8d0$@comcast.net> Message-ID: <4DC822F3.60609@colbyconsulting.com> Is this VBA or VB.Net? John W. Colby www.ColbyConsulting.com On 5/9/2011 1:02 PM, Dan Waters wrote: > Hi John, > > I've had this issue too. It's almost certainly that somewhere in your code > you are missing an Excel object qualifier. Also take a look at the sequence > of opening and closing the Workbook and the instance of Excel. > > Another issue is that if the PC already has Excel open, then the workbook > you create will be contained within the instance of Excel, and it turns out > that it's about impossible for your code to loop through the different > workbooks. The best plan is probably to look for an instance of Excel and > close it with save = true. Then open your workbook and you should be fine. > You'll need to tell your users what's going to happen (and maybe ask by > message if they want to continue), and/or put up a message if you need to > close/save an already open instance of Excel. > > See this code: > > '----------------- > Private Sub FormatSpreadsheetDemo(stgPath As String) > > Dim objExcel As Object > Dim objWorkbook As Object > ' Dim objExcel As Excel.Application '-- TEST > ' Dim objWorkbook As Excel.Workbook '-- TEST > > If IsNull(stgPath) Or stgPath = "" Then Exit Sub > > Set objExcel = CreateObject("Excel.Application") > > '-- for troubleshooting > ' objExcel.Visible = true '-- TEST > ' objExcel.ActiveWindow.WindowState = xlMaximized '-- TEST > > Set objWorkbook = objExcel.Workbooks.Open(stgPath) > > '-- Format > objExcel.Rows("1:1").Select > objExcel.Selection.Font.Bold = True > objExcel.Cells.Select > objExcel.Selection.Font.Name = "Tahoma" > objExcel.Selection.Font.Size = 10 > objExcel.Cells.EntireColumn.AutoFit > > '-- Freeze rows > If InStr(stgPath, "Backups") = 0 Then > objExcel.Range("A2").Select > Else > objExcel.Range("B2").Select > End If > objExcel.ActiveWindow.FreezePanes = True > objExcel.ActiveWindow.WindowState = xlMaximized > > '-- Change column format > If InStr(stgPath, "Activity")<> 0 Then > objExcel.Columns("E:E").Select > objExcel.Selection.NumberFormat = "[$-409]h:mm AM/PM;@" > objExcel.Columns("G:G").Select > objExcel.Selection.NumberFormat = "[$-409]h:mm AM/PM;@" > End If > > '-- Select upper left cell > objExcel.Range("A1").Select > > '-- Save& Quit > objWorkbook.Save > objWorkbook.Close > objExcel.Quit > > Set objWorkbook = Nothing > Set objExcel = Nothing > > Exit Sub > ErrEx.Bookmark = BOOKMARK_ONERROR > > End Sub > '------------------ > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Monday, May 09, 2011 10:44 AM > To: VBA > Subject: [dba-VB] C# Excel automation > > We are trying to automate Excel from C# but we are unable to correctly close > the excel object itself. IOW it is still seen in the process list. > > Paul has found information about marshal.releasecomobject and is doing that > for every object he is even touching but something is still not working. > > Can anyone provide a simple example of opening a workbook, and reading a set > of cells out of a worksheet, then cleaning up and closing Excel. > > TIA for your assistance. > > -- > John W. Colby > www.ColbyConsulting.com > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From df.waters at comcast.net Tue May 10 15:48:45 2011 From: df.waters at comcast.net (Dan Waters) Date: Tue, 10 May 2011 15:48:45 -0500 Subject: [dba-VB] Button Images - Where to Find? Message-ID: <000001cc0f53$a9ca2040$fd5e60c0$@comcast.net> In .Net for windows form is there a standard set of images for buttons like Access has? I'd hate to have to create left arrow and a right arrow images. Thanks! Dan From michael at ddisolutions.com.au Wed May 11 03:09:03 2011 From: michael at ddisolutions.com.au (Michael Maddison) Date: Wed, 11 May 2011 18:09:03 +1000 Subject: [dba-VB] Button Images - Where to Find? References: <000001cc0f53$a9ca2040$fd5e60c0$@comcast.net> Message-ID: <99266C61B516644D9727F983FAFAB4650863CA@remote.ddisolutions.com.au> I don't think so. There are heaps of free ones out there though. Cheers Michael M -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, 11 May 2011 6:49 AM To: 'Discussion concerning Visual Basic and related programming issues.' Subject: [dba-VB] Button Images - Where to Find? In .Net for windows form is there a standard set of images for buttons like Access has? I'd hate to have to create left arrow and a right arrow images. Thanks! Dan _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com ----- No virus found in this message. Checked by AVG - www.avg.com Version: 10.0.1375 / Virus Database: 1500/3629 - Release Date: 05/10/11 From shamil at smsconsulting.spb.ru Wed May 11 04:32:17 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Wed, 11 May 2011 13:32:17 +0400 Subject: [dba-VB] Button Images - Where to Find? In-Reply-To: <000001cc0f53$a9ca2040$fd5e60c0$@comcast.net> References: <000001cc0f53$a9ca2040$fd5e60c0$@comcast.net> Message-ID: Hi Dan -- For left- and right- arrow buttons you might try the following "trick": - create winform/usercontrol and bind it to a datasource - you'll get {{DataSetName}}_BindingNavigator. Now you can export button images into .png format from that BindingNavigator's resource file, which will be part of hosting winform/usercontrol resource file - {{WinFormName/WinFromsuserControlName}}.resx - just open resource file using designer, right-click button image, select 'Export To File...'... Here is xml of MovePrevious button's resource (JFI): iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACx jwv8 YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAL1JREFUOE9j YBgy ILz9wX+yHRvf/eB/cMM18gyI73n4f+n+///9qy+QbkBE+32w5sxZ//97lZ4gzYDQ1ntgza3rgLZ3 /v3v kn+AeAOCW+7+X7T3//8OoOaMOT//29X9/G+fsZ14A0ChbVd8+3/6nN///bu+/dcpfPffImE9aQaA DNFP Of/fpOjFf5WsT/+NI5eRbgDIEIOkE/9l077+1w2eR54BYJekXv6v4TuNfANAhqh4TKDMALKTMc01 AgDQ FGCYkuTLEQAAAABJRU5ErkJggg== Thank you. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: 11 ??? 2011 ?. 0:49 To: 'Discussion concerning Visual Basic and related programming issues.' Subject: [dba-VB] Button Images - Where to Find? In .Net for windows form is there a standard set of images for buttons like Access has? I'd hate to have to create left arrow and a right arrow images. Thanks! Dan From jwcolby at colbyconsulting.com Wed May 11 09:57:49 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 11 May 2011 10:57:49 -0400 Subject: [dba-VB] C# Outlook Automation Message-ID: <4DCAA3ED.1050007@colbyconsulting.com> Has anyone found C# code to emulate the ClickYes program? I found something in VB5/6 for building a program that sits in the toolbar but it seems that if you can do that, then you could just as easily look for the pop-up right in your own code and click the yes button. Just thought I'd check here before re-inventing the wheel. -- John W. Colby www.ColbyConsulting.com From df.waters at comcast.net Wed May 11 10:46:41 2011 From: df.waters at comcast.net (Dan Waters) Date: Wed, 11 May 2011 10:46:41 -0500 Subject: [dba-VB] C# Outlook Automation In-Reply-To: <4DCAA3ED.1050007@colbyconsulting.com> References: <4DCAA3ED.1050007@colbyconsulting.com> Message-ID: <000901cc0ff2$a3755620$ea600260$@comcast.net> Hi John, This is a VBA module to automatically push the ClickYes button - I have not used this. Might have some useful content. Came from: http://www.contextmagic.com/express-clickyes/ '---------------------------- Option Compare Database Option Explicit '-- Declare Windows' API functions Private Declare Function RegisterWindowMessage Lib "User32" Alias "RegisterWindowMessageA" (ByVal lpString As String) As Long Private Declare Function FindWindow Lib "User32" Alias "FindWindowA" (ByVal lpClassName As Any, ByVal lpWindowName As Any) As Long Private Declare Function SendMessage Lib "User32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long Public Function pfSendUsingObject() Dim blnPreview As Boolean '-- If you do want to preview then you do not need the ClickYes stuff. _ but if you don't want to preview and you just want to send it without being informed that _ it is being sent, then use the ClickYes stuff. blnPreview = False If blnPreview Then DoCmd.SendObject acSendNoObject, , , "max.wanadoo at gmail.com", , , "Subject", "Text Body", blnPreview Else Call fStartClickYes(True) DoCmd.SendObject acSendNoObject, , , "max.wanadoo at gmail.com", , , "Subject", "Text Body", blnPreview Call fStartClickYes(False) End If End Function Public Function fStartClickYes(bStart As Boolean) '-- Here is some vba code that starts and stops clickyes in the systray ' download from here and install. The A2k7 version is not free. _ http://www.contextmagic.com/express-clickyes/ Dim lngWnd As Long Dim lngClickYes As Long Dim lngResume As Long '-- Register a message to send lngClickYes = RegisterWindowMessage("CLICKYES_SUSPEND_RESUME") '-- Find ClickYes Window by classname lngWnd = FindWindow("EXCLICKYES_WND", 0&) If bStart Then '-- Send the message to Resume ClickYes lngResume = SendMessage(lngWnd, lngClickYes, 1, 0) Else ' Send the message to Suspend ClickYes lngResume = SendMessage(lngWnd, lngClickYes, 0, 0) End If End Function '---------------------------- -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, May 11, 2011 9:58 AM To: VBA Subject: [dba-VB] C# Outlook Automation Has anyone found C# code to emulate the ClickYes program? I found something in VB5/6 for building a program that sits in the toolbar but it seems that if you can do that, then you could just as easily look for the pop-up right in your own code and click the yes button. Just thought I'd check here before re-inventing the wheel. -- John W. Colby www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Wed May 11 12:28:17 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 11 May 2011 13:28:17 -0400 Subject: [dba-VB] C# Outlook Automation In-Reply-To: <000901cc0ff2$a3755620$ea600260$@comcast.net> References: <4DCAA3ED.1050007@colbyconsulting.com> <000901cc0ff2$a3755620$ea600260$@comcast.net> Message-ID: <4DCAC731.4040708@colbyconsulting.com> I know about ClickYes and might use that, however the free version does not support anything past Access 2003. John W. Colby www.ColbyConsulting.com On 5/11/2011 11:46 AM, Dan Waters wrote: > Hi John, > > This is a VBA module to automatically push the ClickYes button - I have not > used this. Might have some useful content. Came from: > http://www.contextmagic.com/express-clickyes/ > > '---------------------------- > Option Compare Database > Option Explicit > > '-- Declare Windows' API functions > Private Declare Function RegisterWindowMessage Lib "User32" Alias > "RegisterWindowMessageA" (ByVal lpString As String) As Long > Private Declare Function FindWindow Lib "User32" Alias "FindWindowA" (ByVal > lpClassName As Any, ByVal lpWindowName As Any) As Long > Private Declare Function SendMessage Lib "User32" Alias "SendMessageA" > (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As > Any) As Long > > Public Function pfSendUsingObject() > > Dim blnPreview As Boolean > > '-- If you do want to preview then you do not need the ClickYes stuff. _ > but if you don't want to preview and you just want to send it > without being informed that _ > it is being sent, then use the ClickYes stuff. > > blnPreview = False > > If blnPreview Then > DoCmd.SendObject acSendNoObject, , , "max.wanadoo at gmail.com", , , > "Subject", "Text Body", blnPreview > Else > Call fStartClickYes(True) > DoCmd.SendObject acSendNoObject, , , "max.wanadoo at gmail.com", , , > "Subject", "Text Body", blnPreview > Call fStartClickYes(False) > End If > > End Function > > Public Function fStartClickYes(bStart As Boolean) > > '-- Here is some vba code that starts and stops clickyes in the systray > ' download from here and install. The A2k7 version is not free. _ > http://www.contextmagic.com/express-clickyes/ > > Dim lngWnd As Long > Dim lngClickYes As Long > Dim lngResume As Long > > '-- Register a message to send > lngClickYes = RegisterWindowMessage("CLICKYES_SUSPEND_RESUME") > > '-- Find ClickYes Window by classname > lngWnd = FindWindow("EXCLICKYES_WND", 0&) > > If bStart Then > '-- Send the message to Resume ClickYes > lngResume = SendMessage(lngWnd, lngClickYes, 1, 0) > Else > ' Send the message to Suspend ClickYes > lngResume = SendMessage(lngWnd, lngClickYes, 0, 0) > End If > > End Function > > '---------------------------- > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Wednesday, May 11, 2011 9:58 AM > To: VBA > Subject: [dba-VB] C# Outlook Automation > > Has anyone found C# code to emulate the ClickYes program? I found something > in VB5/6 for building a program that sits in the toolbar but it seems that > if you can do that, then you could just as easily look for the pop-up right > in your own code and click the yes button. > > Just thought I'd check here before re-inventing the wheel. > > -- > John W. Colby > www.ColbyConsulting.com > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From df.waters at comcast.net Wed May 11 13:04:56 2011 From: df.waters at comcast.net (Dan Waters) Date: Wed, 11 May 2011 13:04:56 -0500 Subject: [dba-VB] Button Images - Found! Message-ID: <000e01cc1005$f0d9fac0$d28df040$@comcast.net> Shamil & Michael, OK - I finally found these. They are in the following folder. C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\VS2010ImageLibrary\1033\VS2010ImageLibrary\Actions\png_format\O ffice and VS First, under the 1033 folder, you'll need to unzip the VS2010ImageLibrary folder. Next, in the button's Image property, select the ellipsis. In the next window, select Project Resource file, then push Import and navigate to the above folder. When you select an image, it will be copied to your project under a Resources folder. There is also a way (I didn't pursue for now) to create your own Image List, which you can use to assign an image to a control. I'm guessing that the Image List can be used for multiple Projects so you can save some time and also have your own set of images to use consistently in all your projects. Also, there are many other image folders that contain other types of images. Thanks! Dan -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, May 10, 2011 3:49 PM To: 'Discussion concerning Visual Basic and related programming issues.' Subject: [dba-VB] Button Images - Where to Find? In .Net for windows form is there a standard set of images for buttons like Access has? I'd hate to have to create left arrow and a right arrow images. Thanks! Dan _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu May 12 14:28:03 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 12 May 2011 15:28:03 -0400 Subject: [dba-VB] =?windows-1252?q?LSI_MegaRAID_SAS/SATA_9265-8i_6Gb/s_PCI?= =?windows-1252?q?e_RAID_Card_Review_=96_Performance_Unleashed!_=7C_The_SS?= =?windows-1252?q?D_Review?= Message-ID: <4DCC34C3.4080302@colbyconsulting.com> -- John W. Colby www.ColbyConsulting.com http://thessdreview.com/our-reviews/lsi-megaraid-sassata-9265-8i-6gbs-pcie-raid-controller-card-review/ From df.waters at comcast.net Tue May 17 09:53:25 2011 From: df.waters at comcast.net (Dan Waters) Date: Tue, 17 May 2011 09:53:25 -0500 Subject: [dba-VB] Good News for .Net Developers Message-ID: <000301cc14a2$2cfda6a0$86f8f3e0$@comcast.net> Mono is an open-source implementation of .Net which was owned by Novell/Attachmate until a week ago. All the members of the Mono teams were let go. The founder of Mono has restarted his effort, with the same team members, as an independent company named Xamarin. Looks like good news for .Net developers! http://www.zdnet.com/blog/microsoft/mono-lives-in-new-startup-xamarin/9465 Dan From accessd at shaw.ca Tue May 17 10:17:30 2011 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 17 May 2011 08:17:30 -0700 Subject: [dba-VB] Good News for .Net Developers In-Reply-To: <000301cc14a2$2cfda6a0$86f8f3e0$@comcast.net> References: <000301cc14a2$2cfda6a0$86f8f3e0$@comcast.net> Message-ID: Excellent! Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, May 17, 2011 7:53 AM To: 'Discussion concerning Visual Basic and related programming issues.' Subject: [dba-VB] Good News for .Net Developers Mono is an open-source implementation of .Net which was owned by Novell/Attachmate until a week ago. All the members of the Mono teams were let go. The founder of Mono has restarted his effort, with the same team members, as an independent company named Xamarin. Looks like good news for .Net developers! http://www.zdnet.com/blog/microsoft/mono-lives-in-new-startup-xamarin/9465 Dan _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From df.waters at comcast.net Tue May 17 16:00:22 2011 From: df.waters at comcast.net (Dan Waters) Date: Tue, 17 May 2011 16:00:22 -0500 Subject: [dba-VB] Listbox on VB.Net Form - How to Display Data Correctly? Message-ID: <001b01cc14d5$707a3af0$516eb0d0$@comcast.net> I'm making my first .net form with existing data and I'm having trouble getting the listbox to display correctly. Been looking through all my books and doing lots of web searches, but no real answer. The form has a TurnbackMainBindingSource which uses a DataSource named TurnbackMain. TurnbackMain is an object in a Linq to SQL DataContext (.dbml file). I have two list boxes, both of which use an items collection entered via property sheet. The Severity listbox has choices 1, 2, 3. The QD listbox has choices Quality, Delivery. Both listboxes, have the SelectedItem set to TurnbackMainBindingSource - Severity and TurnbackMainBindingSource - QD, respectively. The comboboxes and textboxes have similar values in the Text property, but the listbox does not have a Text property in the property sheet. As I use the Navigation toolbar to move the form through the records, I want the listboxes to display like Access does, which I assume is the way a listbox should in .Net as well. What happens: For the QD listbox, as I scroll through the records, the Quality or Delivery item is highlighted, if the underlying data is not null. If the underlying data is null, then whatever was highlighted for the previous record remains highlighted. For the Severity listbox, there is no highlighting at all. For the comboboxes and textboxes, what's displayed matches the underlying data. The underlying data for QD is string, the underlying data for Severity is numeric. Is there a way to make this happen correctly without writing any code in the form's afterupdate event? If no, then what code is needed? Thanks! Dan From Gustav at cactus.dk Wed May 18 05:30:27 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 18 May 2011 12:30:27 +0200 Subject: [dba-VB] Listbox on VB.Net Form - How to Display Data Correctly? Message-ID: Hi Dan At the row enter event you may need to include code to clear the combo. C# only, but you sure get the picture: private void dataGridView1_RowEnter(object sender, DataGridViewCellEventArgs e) { // Row to look up is the current row. int rowIndex = e.RowIndex; // Column in row to look up Id of Supplier. int columnId = 0; _supplierId = Convert.ToInt32(dataGridView1.Rows[rowIndex].Cells[columnId].Value); this.FindCurrentCustomer(); } private void FindCurrentCustomer() { DataRow[] customerSupplier = _customerSupplierDataTable.Select("SupplierId = " + _supplierId.ToString()); if (customerSupplier.Length == 0) { _customerId = -1; // Erase display. this.comboBoxCustomer.Text = null; } else { _customerId = Convert.ToInt32(customerSupplier[0]["CustomerId"].ToString()); } this.comboBoxCustomer.SelectedValue = _customerId; } /gustav >>> "Dan Waters" 17-05-2011 23:00 >>> I'm making my first .net form with existing data and I'm having trouble getting the listbox to display correctly. Been looking through all my books and doing lots of web searches, but no real answer. The form has a TurnbackMainBindingSource which uses a DataSource named TurnbackMain. TurnbackMain is an object in a Linq to SQL DataContext (.dbml file). I have two list boxes, both of which use an items collection entered via property sheet. The Severity listbox has choices 1, 2, 3. The QD listbox has choices Quality, Delivery. Both listboxes, have the SelectedItem set to TurnbackMainBindingSource - Severity and TurnbackMainBindingSource - QD, respectively. The comboboxes and textboxes have similar values in the Text property, but the listbox does not have a Text property in the property sheet. As I use the Navigation toolbar to move the form through the records, I want the listboxes to display like Access does, which I assume is the way a listbox should in .Net as well. What happens: For the QD listbox, as I scroll through the records, the Quality or Delivery item is highlighted, if the underlying data is not null. If the underlying data is null, then whatever was highlighted for the previous record remains highlighted. For the Severity listbox, there is no highlighting at all. For the comboboxes and textboxes, what's displayed matches the underlying data. The underlying data for QD is string, the underlying data for Severity is numeric. Is there a way to make this happen correctly without writing any code in the form's afterupdate event? If no, then what code is needed? Thanks! Dan From jwcolby at colbyconsulting.com Fri May 20 21:51:22 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 20 May 2011 22:51:22 -0400 Subject: [dba-VB] Setting up a test VM Message-ID: <4DD728AA.8020208@colbyconsulting.com> Using a VM running on my server, I want to emulate as closely as possible a workstation running out on the internet connecting in to my server over Hamachi. I have the VM running but it was part of my workgroup. I changed the workgroup name for the VM but I am still able to access it remote desktop by the machine name which means that very likely the router is using stored info and assigning the VM an IP. I really wanted to isolate it as much as I can from my internal network. I tried assigning the machine an entirely different IP range (192.168.122.x instead of 192.168.1.x) but when I did that it appears that hamachi instantly loses it's tunnel through the firewall. Any suggestions for how to go about making this thing isolated? -- John W. Colby www.ColbyConsulting.com From michael at ddisolutions.com.au Fri May 20 22:43:39 2011 From: michael at ddisolutions.com.au (Michael Maddison) Date: Sat, 21 May 2011 13:43:39 +1000 Subject: [dba-VB] Filemaker to SQL Anyone? Message-ID: <99266C61B516644D9727F983FAFAB46508640E@remote.ddisolutions.com.au> How do I get myself into these messes? Anyone ever used Filemaker Pro? How do I just get all data from table and export it? How do you even SEE all the data from A table? OMG I can't believe its this hard! Cheers Michael M From michael at ddisolutions.com.au Fri May 20 23:13:45 2011 From: michael at ddisolutions.com.au (Michael Maddison) Date: Sat, 21 May 2011 14:13:45 +1000 Subject: [dba-VB] Filemaker to SQL Anyone? Message-ID: <99266C61B516644D9727F983FAFAB46508640F@remote.ddisolutions.com.au> Looks like I need to make a layout with the table option turned on, manually add each field to the layout, export from there! Good grief! Lucky theres only 150 fields... Cheers Michael M -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Michael Maddison Sent: Saturday, 21 May 2011 1:44 PM To: Discussion concerning Visual Basic and related programming issues. Subject: [dba-VB] Filemaker to SQL Anyone? How do I get myself into these messes? Anyone ever used Filemaker Pro? How do I just get all data from table and export it? How do you even SEE all the data from A table? OMG I can't believe its this hard! Cheers Michael M _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com ----- No virus found in this message. Checked by AVG - www.avg.com Version: 10.0.1375 / Virus Database: 1509/3649 - Release Date: 05/20/11 From gustav at cactus.dk Sun May 22 12:50:05 2011 From: gustav at cactus.dk (Gustav Brock) Date: Sun, 22 May 2011 19:50:05 +0200 Subject: [dba-VB] XML documentation builder: Sandcastle Message-ID: Hi all I was about reinstalling this splendid tool as I came across "The guided installation of Sandcastle" which I haven't seen before: http://shfb.codeplex.com/releases/view/62064 which walks you through the download and install of every needed package. Highly recommended! Sandcastle nearly makes it fun to document your code and the generated output looks exactly like what you see from MS. /gustav From DWUTKA at Marlow.com Mon May 23 11:50:35 2011 From: DWUTKA at Marlow.com (Drew Wutka) Date: Mon, 23 May 2011 11:50:35 -0500 Subject: [dba-VB] Setting up a test VM In-Reply-To: <4DD728AA.8020208@colbyconsulting.com> References: <4DD728AA.8020208@colbyconsulting.com> Message-ID: There really is no way to 'simulate' an 'external client', on a home router. Your internet connection is coming in one port, and is going through one set of rules. So unless that router is VERY programmable, then the best you can do, as far as I can think of, is to create a routed connection in from another subnet. Of course, the EASIEST way to do what you are trying to do, is just go out and buy an aircard (a usb device that connects to the internet), or, if you can 'share' your phone's internet connection, you can use that as an external connection. And setup your VM to ACTUALLY use an internet connection other than your normal ISP. Drew -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, May 20, 2011 9:51 PM To: Access Developers discussion and problem solving; VBA Subject: [dba-VB] Setting up a test VM Using a VM running on my server, I want to emulate as closely as possible a workstation running out on the internet connecting in to my server over Hamachi. I have the VM running but it was part of my workgroup. I changed the workgroup name for the VM but I am still able to access it remote desktop by the machine name which means that very likely the router is using stored info and assigning the VM an IP. I really wanted to isolate it as much as I can from my internal network. I tried assigning the machine an entirely different IP range (192.168.122.x instead of 192.168.1.x) but when I did that it appears that hamachi instantly loses it's tunnel through the firewall. Any suggestions for how to go about making this thing isolated? -- John W. Colby www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From marklbreen at gmail.com Tue May 24 05:27:44 2011 From: marklbreen at gmail.com (Mark Breen) Date: Tue, 24 May 2011 11:27:44 +0100 Subject: [dba-VB] Setting up a test VM In-Reply-To: References: <4DD728AA.8020208@colbyconsulting.com> Message-ID: Or another easy way is to ask someone here on AccessD to connect to you hamachi network, install the access client and connect across the atlantic ! That would be heavy testing for the client :) Mark On 23 May 2011 17:50, Drew Wutka wrote: > There really is no way to 'simulate' an 'external client', on a home > router. Your internet connection is coming in one port, and is going > through one set of rules. So unless that router is VERY programmable, > then the best you can do, as far as I can think of, is to create a > routed connection in from another subnet. > > Of course, the EASIEST way to do what you are trying to do, is just go > out and buy an aircard (a usb device that connects to the internet), or, > if you can 'share' your phone's internet connection, you can use that as > an external connection. And setup your VM to ACTUALLY use an internet > connection other than your normal ISP. > > Drew > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Friday, May 20, 2011 9:51 PM > To: Access Developers discussion and problem solving; VBA > Subject: [dba-VB] Setting up a test VM > > Using a VM running on my server, I want to emulate as closely as > possible a workstation running out > on the internet connecting in to my server over Hamachi. I have the VM > running but it was part of > my workgroup. I changed the workgroup name for the VM but I am still > able to access it remote > desktop by the machine name which means that very likely the router is > using stored info and > assigning the VM an IP. I really wanted to isolate it as much as I can > from my internal network. > > I tried assigning the machine an entirely different IP range > (192.168.122.x instead of 192.168.1.x) > but when I did that it appears that hamachi instantly loses it's tunnel > through the firewall. > > Any suggestions for how to go about making this thing isolated? > > -- > John W. Colby > www.ColbyConsulting.com > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > The information contained in this transmission is intended only for the > person or entity > to which it is addressed and may contain II-VI Proprietary and/or II-VI > Business > Sensitive material. If you are not the intended recipient, please contact > the sender > immediately and destroy the material in its entirety, whether electronic or > hard copy. > You are notified that any review, retransmission, copying, disclosure, > dissemination, > or other use of, or taking of any action in reliance upon this information > by persons > or entities other than the intended recipient is prohibited. > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From jwcolby at colbyconsulting.com Fri May 27 09:53:53 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 27 May 2011 10:53:53 -0400 Subject: [dba-VB] redemption Message-ID: <4DDFBB01.5060602@colbyconsulting.com> We are trying to use Redemption (outlook) to get around the MS security nonsense. We are using the RDO portion because the SafeMail object (Outlook) side of redemption was missing the mail.subject property msg.move for moving a message from folder to another. The RDO does have those things. We are still having two specific problems. 1) We are unable to find a way to cause RDO to download the mail, thus the MailReceived event never fires. As a result we are currently opening outlook and setting it up to download every 1 minute. Clumsy! 2) RDO.Msg.Move moves the message but we can't see it in the folder it was moved to. IOW if we move a bunch of mail items then go look in the folder that the mail items were put into, the collection doesn't show it as being there. If in Outlook we click on that folder, *then* back in our code the folder shows the mail items as being in the folder. If anyone is using this stuff please feel free to comment. Thanks, -- John W. Colby www.ColbyConsulting.com From mikedorism at verizon.net Tue May 31 11:24:20 2011 From: mikedorism at verizon.net (Doris Manning) Date: Tue, 31 May 2011 12:24:20 -0400 Subject: [dba-VB] redemption In-Reply-To: <4DDFBB01.5060602@colbyconsulting.com> References: <4DDFBB01.5060602@colbyconsulting.com> Message-ID: <704BE61E43064893905FD26C21CC8595@hargrove.internal> John, I do use Redemption but not any of the features you are trying to use. Have you tried contacting Dmitri personally? He is usually very quick to respond whenever I've had questions. Doris Manning Senior Developer/Database Administrator Hargrove Inc. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, May 27, 2011 10:54 AM To: Access Developers discussion and problem solving; VBA Subject: [dba-VB] redemption We are trying to use Redemption (outlook) to get around the MS security nonsense. We are using the RDO portion because the SafeMail object (Outlook) side of redemption was missing the mail.subject property msg.move for moving a message from folder to another. The RDO does have those things. We are still having two specific problems. 1) We are unable to find a way to cause RDO to download the mail, thus the MailReceived event never fires. As a result we are currently opening outlook and setting it up to download every 1 minute. Clumsy! 2) RDO.Msg.Move moves the message but we can't see it in the folder it was moved to. IOW if we move a bunch of mail items then go look in the folder that the mail items were put into, the collection doesn't show it as being there. If in Outlook we click on that folder, *then* back in our code the folder shows the mail items as being in the folder. If anyone is using this stuff please feel free to comment. Thanks, -- John W. Colby www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From stuart at lexacorp.com.pg Fri May 6 08:13:27 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 06 May 2011 23:13:27 +1000 Subject: [dba-VB] Back to native Code? In-Reply-To: References: Message-ID: <4DC3F3F7.938.70227B0@stuart.lexacorp.com.pg> Is the romance with .Net and managed code on it's way out? Is the "next big thing" going to be a return to native code? http://www.zdnet.com/blog/microsoft/what-is-winc-and-how-does-it-figure-in-microsofts-bid-to -make-tools-a-2-billion-business/9359 or Short URL: http://goo.gl/qRTUB -- Stuart From accessd at shaw.ca Fri May 6 17:58:20 2011 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 6 May 2011 15:58:20 -0700 Subject: [dba-VB] Back to native Code? In-Reply-To: <4DC3F3F7.938.70227B0@stuart.lexacorp.com.pg> References: <4DC3F3F7.938.70227B0@stuart.lexacorp.com.pg> Message-ID: <61323A1825D9472EAD300900B45D455C@creativesystemdesigns.com> I doubt whether it is on it way out but I do think MS has to realize that not everyone sees .Net as the way to salvation. Companies like Amazon, Google and even Oracle are completed committed to Java development are regardless of the temptation are not about to switch. Then there are companies like FaceBook which are completely committed to PHP. There is a massive base of there languages and that is for a number of reasons. First, the languages are Open Source which means everyone regardless of the finances can get into the product. This is particularly attractive to university students who traditionally have no money and that is important as these people are the future of the programming world. Second, the languages are not tied to a specific version of Windows and/or Framework. A .Net application that will run on a Server2008 will not necessarily run on Server2003. There is a lot of investment in development and no programmer wants to loss 10 years of their lives due to someone's idea of an improvement. Third, the .Net language is not portable. IOW they can only run on one platform. Linux's penetration of the desktop market may not be that large but in the Server market Linux is king. Until recently, there was a parallel project running under the old Novell, to create and support a Linux .Net but after its purchase by Attachmate, the project has been abandoned. MS may not realize it but this will hurt .Net on Windows as well. Fourth, Open Source products have one big advantage over controlled factory type languages and that is the speed of bug resolution. A bug appears on Thursday and a solution is posted on Saturday. Every time a major OS product has an issue, 1200 university student whip into the source code to be the first person to arrive at a viable solution. Fifth, languages that have been around for a while have been used to create and support many large and small projects and applications. That is a huge investment and major companies are loathed to abandoned migrate without a very good reason. Example: there are many large accounting system that have been written in Cobol and some companies still have stable of Cobol programmers working for them. Sixth, good desktop centric languages are not nearly as important as they were 10 years ago. People are looking for languages that are web server supporting and can be extended to browser based environments. To that end ASP.Net does an acceptable job at this level of support but, its deployment coupled with IEx does not necessarily comply with new the industry standards, in CSS3, HTML5 and now WebGL. C++ was at one time a product belonging to MS/Borland but that has dramatically changed with Open Source C/C++ compilers available. Now it is cross-platform and now its future is assured. Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, May 06, 2011 6:13 AM To: Discussion concerning Visual Basic and related programming issues. Subject: [dba-VB] Back to native Code? Is the romance with .Net and managed code on it's way out? Is the "next big thing" going to be a return to native code? http://www.zdnet.com/blog/microsoft/what-is-winc-and-how-does-it-figure-in-m icrosofts-bid-to -make-tools-a-2-billion-business/9359 or Short URL: http://goo.gl/qRTUB -- Stuart _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From shamil at smsconsulting.spb.ru Sat May 7 03:21:28 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sat, 7 May 2011 12:21:28 +0400 Subject: [dba-VB] Microsoft.SqlServer.Smo Message-ID: <0632A25A4F414713973B5CE5E091B71C@nant> Hi All -- I can't get Microsoft.SqlServer.Smo (http://msdn.microsoft.com/en-us/library/microsoft.sqlserver.management.smo% 28v=SQL.100%29.aspx) available for my VS2010 SP1 project. I have got at "Microsoft SQL Server 2008 Feature Pack, April 2009" http://www.microsoft.com/downloads/en/details.aspx?FamilyID=b33d2c78-1059-4c e2-b80d-2343c099bcb4 and I have got downloaded "Microsoft SQL Server 2008 Management Objects" "The SQL Server Management Objects (SMO) is a .NET Framework object model that enables software developers to create client-side applications to manage and administer SQL Server objects and services. This object model will work with SQL Server 2000, SQL Server 2005 and SQL Server 2008." http://download.microsoft.com/download/0/E/6/0E67502A-22B4-4C47-92D3-0D223F1 17190/SharedManagementObjects.msi But it doesn't want to setup on my system telling me it's there already :) - although I can't see it from VS2010 SP1 project's References dialog :( I'm (re-)searchning my computer files for Microsoft.SqlServer.Smo filename now but I doubt this search will get any positive results returned... Could you please advise/guess what am I'm missing? Thank you. -- Shamil From shamil at smsconsulting.spb.ru Sat May 7 04:25:41 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sat, 7 May 2011 13:25:41 +0400 Subject: [dba-VB] Microsoft.SqlServer.Smo In-Reply-To: <0632A25A4F414713973B5CE5E091B71C@nant> References: <0632A25A4F414713973B5CE5E091B71C@nant> Message-ID: Hi All -- I have found Microsoft.SqlServer.Smo related assemblies installed on my system under ... \Program Files\Microsoft SQL Server 2005 Express\100\SDK\Assemblies. Issue solved. Thank you. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: 7 ??? 2011 ?. 12:21 To: 'Discussion concerning Visual Basic and related programming issues.' Subject: [dba-VB] Microsoft.SqlServer.Smo Hi All -- I can't get Microsoft.SqlServer.Smo (http://msdn.microsoft.com/en-us/library/microsoft.sqlserver.management.smo% 28v=SQL.100%29.aspx) available for my VS2010 SP1 project. I have got at "Microsoft SQL Server 2008 Feature Pack, April 2009" http://www.microsoft.com/downloads/en/details.aspx?FamilyID=b33d2c78-1059-4c e2-b80d-2343c099bcb4 and I have got downloaded "Microsoft SQL Server 2008 Management Objects" "The SQL Server Management Objects (SMO) is a .NET Framework object model that enables software developers to create client-side applications to manage and administer SQL Server objects and services. This object model will work with SQL Server 2000, SQL Server 2005 and SQL Server 2008." http://download.microsoft.com/download/0/E/6/0E67502A-22B4-4C47-92D3-0D223F1 17190/SharedManagementObjects.msi But it doesn't want to setup on my system telling me it's there already :) - although I can't see it from VS2010 SP1 project's References dialog :( I'm (re-)searchning my computer files for Microsoft.SqlServer.Smo filename now but I doubt this search will get any positive results returned... Could you please advise/guess what am I'm missing? Thank you. -- Shamil _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Sat May 7 06:23:22 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 07 May 2011 07:23:22 -0400 Subject: [dba-VB] Microsoft.SqlServer.Smo In-Reply-To: References: <0632A25A4F414713973B5CE5E091B71C@nant> Message-ID: <4DC52BAA.2080602@colbyconsulting.com> I use SMO extensively! Very cool object. John W. Colby www.ColbyConsulting.com On 5/7/2011 5:25 AM, Shamil Salakhetdinov wrote: > Hi All -- > > I have found Microsoft.SqlServer.Smo related assemblies installed on my > system under > > ... \Program Files\Microsoft SQL Server 2005 Express\100\SDK\Assemblies. > > Issue solved. > > Thank you. > > -- > Shamil > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil > Salakhetdinov > Sent: 7 ??? 2011 ?. 12:21 > To: 'Discussion concerning Visual Basic and related programming issues.' > Subject: [dba-VB] Microsoft.SqlServer.Smo > > Hi All -- > > I can't get Microsoft.SqlServer.Smo > (http://msdn.microsoft.com/en-us/library/microsoft.sqlserver.management.smo% > 28v=SQL.100%29.aspx) available for my VS2010 SP1 project. > I have got at "Microsoft SQL Server 2008 Feature Pack, April 2009" > > http://www.microsoft.com/downloads/en/details.aspx?FamilyID=b33d2c78-1059-4c > e2-b80d-2343c099bcb4 > > and I have got downloaded "Microsoft SQL Server 2008 Management Objects" > > "The SQL Server Management Objects (SMO) is a .NET Framework object model > that enables software developers to create client-side applications to > manage and administer SQL Server objects and services. This object model > will work with SQL Server 2000, SQL Server 2005 and SQL Server 2008." > > http://download.microsoft.com/download/0/E/6/0E67502A-22B4-4C47-92D3-0D223F1 > 17190/SharedManagementObjects.msi > > But it doesn't want to setup on my system telling me it's there already :) - > although I can't see it from VS2010 SP1 project's References dialog :( > > I'm (re-)searchning my computer files for > > Microsoft.SqlServer.Smo > > filename now but I doubt this search will get any positive results > returned... > > Could you please advise/guess what am I'm missing? > > Thank you. > > -- > Shamil > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From shamil at smsconsulting.spb.ru Sat May 7 08:09:00 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sat, 7 May 2011 17:09:00 +0400 Subject: [dba-VB] Microsoft.SqlServer.Smo In-Reply-To: <4DC52BAA.2080602@colbyconsulting.com> References: <0632A25A4F414713973B5CE5E091B71C@nant> <4DC52BAA.2080602@colbyconsulting.com> Message-ID: <4FDFCEF827D34B7D8213280BD3E96761@nant> Hi John -- Did you try to deploy your SMO-empowered application to the customers' systems? I mean would that be enough in such a case to deliver to the customer side only referenced SMO .NET Framework class libraries deployed locally together with their "parent" custom application, or the full (.NET Framework) SMO SDK should be also installed/deployed? Thank you. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: 7 ??? 2011 ?. 15:23 To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Microsoft.SqlServer.Smo I use SMO extensively! Very cool object. John W. Colby www.ColbyConsulting.com On 5/7/2011 5:25 AM, Shamil Salakhetdinov wrote: > Hi All -- > > I have found Microsoft.SqlServer.Smo related assemblies installed on > my system under > > ... \Program Files\Microsoft SQL Server 2005 Express\100\SDK\Assemblies. > > Issue solved. > > Thank you. > > -- > Shamil > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil > Salakhetdinov > Sent: 7 ??? 2011 ?. 12:21 > To: 'Discussion concerning Visual Basic and related programming issues.' > Subject: [dba-VB] Microsoft.SqlServer.Smo > > Hi All -- > > I can't get Microsoft.SqlServer.Smo > (http://msdn.microsoft.com/en-us/library/microsoft.sqlserver.managemen > t.smo% > 28v=SQL.100%29.aspx) available for my VS2010 SP1 project. > I have got at "Microsoft SQL Server 2008 Feature Pack, April 2009" > > http://www.microsoft.com/downloads/en/details.aspx?FamilyID=b33d2c78-1 > 059-4c > e2-b80d-2343c099bcb4 > > and I have got downloaded "Microsoft SQL Server 2008 Management Objects" > > "The SQL Server Management Objects (SMO) is a .NET Framework object > model that enables software developers to create client-side > applications to manage and administer SQL Server objects and services. > This object model will work with SQL Server 2000, SQL Server 2005 and SQL Server 2008." > > http://download.microsoft.com/download/0/E/6/0E67502A-22B4-4C47-92D3-0 > D223F1 > 17190/SharedManagementObjects.msi > > But it doesn't want to setup on my system telling me it's there > already :) - although I can't see it from VS2010 SP1 project's > References dialog :( > > I'm (re-)searchning my computer files for > > Microsoft.SqlServer.Smo > > filename now but I doubt this search will get any positive results > returned... > > Could you please advise/guess what am I'm missing? > > Thank you. > > -- > Shamil > From stuart at lexacorp.com.pg Sat May 7 15:15:56 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sun, 08 May 2011 06:15:56 +1000 Subject: [dba-VB] Microsoft.SqlServer.Smo In-Reply-To: <4FDFCEF827D34B7D8213280BD3E96761@nant> References: <0632A25A4F414713973B5CE5E091B71C@nant>, <4DC52BAA.2080602@colbyconsulting.com>, <4FDFCEF827D34B7D8213280BD3E96761@nant> Message-ID: <4DC5A87C.16788.DAB4F6E@stuart.lexacorp.com.pg> SDK = Software Development Kit - emphasis on the Development. There should never be a requirement to deploy it to clients. -- Stuart On 7 May 2011 at 17:09, Shamil Salakhetdinov wrote: > Hi John -- > > Did you try to deploy your SMO-empowered application to the customers' > systems? I mean would that be enough in such a case to deliver to the > customer side only referenced SMO .NET Framework class libraries > deployed locally together with their "parent" custom application, or > the full (.NET Framework) SMO SDK should be also installed/deployed? > > Thank you. > > -- > Shamil > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: 7 ??? 2011 ?. 15:23 To: Discussion concerning Visual Basic and > related programming issues. Subject: Re: [dba-VB] > Microsoft.SqlServer.Smo > > I use SMO extensively! Very cool object. > > John W. Colby > www.ColbyConsulting.com > > On 5/7/2011 5:25 AM, Shamil Salakhetdinov wrote: > > Hi All -- > > > > I have found Microsoft.SqlServer.Smo related assemblies installed on > > my system under > > > > ... \Program Files\Microsoft SQL Server 2005 > > Express\100\SDK\Assemblies. > > > > Issue solved. > > > > Thank you. > > > > -- > > Shamil > > > > -----Original Message----- > > From: dba-vb-bounces at databaseadvisors.com > > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil > > Salakhetdinov Sent: 7 ??? 2011 ?. 12:21 To: 'Discussion concerning > > Visual Basic and related programming issues.' Subject: [dba-VB] > > Microsoft.SqlServer.Smo > > > > Hi All -- > > > > I can't get Microsoft.SqlServer.Smo > > (http://msdn.microsoft.com/en-us/library/microsoft.sqlserver.managem > > en t.smo% 28v=SQL.100%29.aspx) available for my VS2010 SP1 project. > > I have got at "Microsoft SQL Server 2008 Feature Pack, April 2009" > > > > http://www.microsoft.com/downloads/en/details.aspx?FamilyID=b33d2c78 > > -1 059-4c e2-b80d-2343c099bcb4 > > > > and I have got downloaded "Microsoft SQL Server 2008 Management > > Objects" > > > > "The SQL Server Management Objects (SMO) is a .NET Framework object > > model that enables software developers to create client-side > > applications to manage and administer SQL Server objects and > > services. This object model will work with SQL Server 2000, SQL > > Server 2005 and SQL > Server 2008." > > > > http://download.microsoft.com/download/0/E/6/0E67502A-22B4-4C47-92D3 > > -0 D223F1 17190/SharedManagementObjects.msi > > > > But it doesn't want to setup on my system telling me it's there > > already :) - although I can't see it from VS2010 SP1 project's > > References dialog :( > > > > I'm (re-)searchning my computer files for > > > > Microsoft.SqlServer.Smo > > > > filename now but I doubt this search will get any positive results > > returned... > > > > Could you please advise/guess what am I'm missing? > > > > Thank you. > > > > -- > > Shamil > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From jwcolby at colbyconsulting.com Sat May 7 19:20:12 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 07 May 2011 20:20:12 -0400 Subject: [dba-VB] Microsoft.SqlServer.Smo In-Reply-To: <4DC5A87C.16788.DAB4F6E@stuart.lexacorp.com.pg> References: <0632A25A4F414713973B5CE5E091B71C@nant>, <4DC52BAA.2080602@colbyconsulting.com>, <4FDFCEF827D34B7D8213280BD3E96761@nant> <4DC5A87C.16788.DAB4F6E@stuart.lexacorp.com.pg> Message-ID: <4DC5E1BC.1010909@colbyconsulting.com> He probably had to go get a reference to it in order to use it. John W. Colby www.ColbyConsulting.com On 5/7/2011 4:15 PM, Stuart McLachlan wrote: > SDK = Software Development Kit - emphasis on the Development. > > There should never be a requirement to deploy it to clients. > From jwcolby at colbyconsulting.com Sat May 7 19:21:26 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 07 May 2011 20:21:26 -0400 Subject: [dba-VB] Microsoft.SqlServer.Smo In-Reply-To: <4FDFCEF827D34B7D8213280BD3E96761@nant> References: <0632A25A4F414713973B5CE5E091B71C@nant> <4DC52BAA.2080602@colbyconsulting.com> <4FDFCEF827D34B7D8213280BD3E96761@nant> Message-ID: <4DC5E206.80007@colbyconsulting.com> I don't know the answer to that. To this point, all of my usage has been for the app we developed for internal use. John W. Colby www.ColbyConsulting.com On 5/7/2011 9:09 AM, Shamil Salakhetdinov wrote: > Hi John -- > > Did you try to deploy your SMO-empowered application to the customers' > systems? > I mean would that be enough in such a case to deliver to the customer side > only referenced SMO .NET Framework class libraries deployed locally together > with their "parent" custom application, or the full (.NET Framework) SMO SDK > should be also installed/deployed? > > Thank you. > > -- > Shamil > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: 7 ??? 2011 ?. 15:23 > To: Discussion concerning Visual Basic and related programming issues. > Subject: Re: [dba-VB] Microsoft.SqlServer.Smo > > I use SMO extensively! Very cool object. > > John W. Colby > www.ColbyConsulting.com > > On 5/7/2011 5:25 AM, Shamil Salakhetdinov wrote: >> Hi All -- >> >> I have found Microsoft.SqlServer.Smo related assemblies installed on >> my system under >> >> ... \Program Files\Microsoft SQL Server 2005 Express\100\SDK\Assemblies. >> >> Issue solved. >> >> Thank you. >> >> -- >> Shamil >> >> -----Original Message----- >> From: dba-vb-bounces at databaseadvisors.com >> [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil >> Salakhetdinov >> Sent: 7 ??? 2011 ?. 12:21 >> To: 'Discussion concerning Visual Basic and related programming issues.' >> Subject: [dba-VB] Microsoft.SqlServer.Smo >> >> Hi All -- >> >> I can't get Microsoft.SqlServer.Smo >> (http://msdn.microsoft.com/en-us/library/microsoft.sqlserver.managemen >> t.smo% >> 28v=SQL.100%29.aspx) available for my VS2010 SP1 project. >> I have got at "Microsoft SQL Server 2008 Feature Pack, April 2009" >> >> http://www.microsoft.com/downloads/en/details.aspx?FamilyID=b33d2c78-1 >> 059-4c >> e2-b80d-2343c099bcb4 >> >> and I have got downloaded "Microsoft SQL Server 2008 Management Objects" >> >> "The SQL Server Management Objects (SMO) is a .NET Framework object >> model that enables software developers to create client-side >> applications to manage and administer SQL Server objects and services. >> This object model will work with SQL Server 2000, SQL Server 2005 and SQL > Server 2008." >> >> http://download.microsoft.com/download/0/E/6/0E67502A-22B4-4C47-92D3-0 >> D223F1 >> 17190/SharedManagementObjects.msi >> >> But it doesn't want to setup on my system telling me it's there >> already :) - although I can't see it from VS2010 SP1 project's >> References dialog :( >> >> I'm (re-)searchning my computer files for >> >> Microsoft.SqlServer.Smo >> >> filename now but I doubt this search will get any positive results >> returned... >> >> Could you please advise/guess what am I'm missing? >> >> Thank you. >> >> -- >> Shamil >> > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From shamil at smsconsulting.spb.ru Sat May 7 19:46:21 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sun, 8 May 2011 04:46:21 +0400 Subject: [dba-VB] Microsoft.SqlServer.Smo In-Reply-To: <4DC5A87C.16788.DAB4F6E@stuart.lexacorp.com.pg> References: <0632A25A4F414713973B5CE5E091B71C@nant>, <4DC52BAA.2080602@colbyconsulting.com>, <4FDFCEF827D34B7D8213280BD3E96761@nant> <4DC5A87C.16788.DAB4F6E@stuart.lexacorp.com.pg> Message-ID: <8801D45F717E4478803F7B7FF04C22D5@nant> Hi Stuart -- Yes, SDK is for developers but developers (usually) do make and do deploy software for customers' computer systems therefore the question on the ways of distributing these or that SDK components is legal... Thank you. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: 8 ??? 2011 ?. 0:16 To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Microsoft.SqlServer.Smo SDK = Software Development Kit - emphasis on the Development. There should never be a requirement to deploy it to clients. -- Stuart On 7 May 2011 at 17:09, Shamil Salakhetdinov wrote: > Hi John -- > > Did you try to deploy your SMO-empowered application to the customers' > systems? I mean would that be enough in such a case to deliver to the > customer side only referenced SMO .NET Framework class libraries > deployed locally together with their "parent" custom application, or > the full (.NET Framework) SMO SDK should be also installed/deployed? > > Thank you. > > -- > Shamil > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: 7 ??? 2011 ?. 15:23 To: Discussion concerning Visual Basic and > related programming issues. Subject: Re: [dba-VB] > Microsoft.SqlServer.Smo > > I use SMO extensively! Very cool object. > > John W. Colby > www.ColbyConsulting.com > > On 5/7/2011 5:25 AM, Shamil Salakhetdinov wrote: > > Hi All -- > > > > I have found Microsoft.SqlServer.Smo related assemblies installed on > > my system under > > > > ... \Program Files\Microsoft SQL Server 2005 > > Express\100\SDK\Assemblies. > > > > Issue solved. > > > > Thank you. > > > > -- > > Shamil > > > > -----Original Message----- > > From: dba-vb-bounces at databaseadvisors.com > > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil > > Salakhetdinov Sent: 7 ??? 2011 ?. 12:21 To: 'Discussion concerning > > Visual Basic and related programming issues.' Subject: [dba-VB] > > Microsoft.SqlServer.Smo > > > > Hi All -- > > > > I can't get Microsoft.SqlServer.Smo > > (http://msdn.microsoft.com/en-us/library/microsoft.sqlserver.managem > > en t.smo% 28v=SQL.100%29.aspx) available for my VS2010 SP1 project. > > I have got at "Microsoft SQL Server 2008 Feature Pack, April 2009" > > > > http://www.microsoft.com/downloads/en/details.aspx?FamilyID=b33d2c78 > > -1 059-4c e2-b80d-2343c099bcb4 > > > > and I have got downloaded "Microsoft SQL Server 2008 Management > > Objects" > > > > "The SQL Server Management Objects (SMO) is a .NET Framework object > > model that enables software developers to create client-side > > applications to manage and administer SQL Server objects and > > services. This object model will work with SQL Server 2000, SQL > > Server 2005 and SQL > Server 2008." > > > > http://download.microsoft.com/download/0/E/6/0E67502A-22B4-4C47-92D3 > > -0 D223F1 17190/SharedManagementObjects.msi > > > > But it doesn't want to setup on my system telling me it's there > > already :) - although I can't see it from VS2010 SP1 project's > > References dialog :( > > > > I'm (re-)searchning my computer files for > > > > Microsoft.SqlServer.Smo > > > > filename now but I doubt this search will get any positive results > > returned... > > > > Could you please advise/guess what am I'm missing? > > > > Thank you. > > > > -- > > Shamil > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From shamil at smsconsulting.spb.ru Sat May 7 19:46:21 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sun, 8 May 2011 04:46:21 +0400 Subject: [dba-VB] Microsoft.SqlServer.Smo In-Reply-To: <4DC5E206.80007@colbyconsulting.com> References: <0632A25A4F414713973B5CE5E091B71C@nant> <4DC52BAA.2080602@colbyconsulting.com><4FDFCEF827D34B7D8213280BD3E96761@nant> <4DC5E206.80007@colbyconsulting.com> Message-ID: <9EAAFB9EEAE64D65BB1F97680618AC8C@nant> Hi John -- OK, I will try to test it later within a week or so on customer's PC with MS SQL Server installed but not .NET SMO. Thank you. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: 8 ??? 2011 ?. 4:21 To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Microsoft.SqlServer.Smo I don't know the answer to that. To this point, all of my usage has been for the app we developed for internal use. John W. Colby www.ColbyConsulting.com On 5/7/2011 9:09 AM, Shamil Salakhetdinov wrote: > Hi John -- > > Did you try to deploy your SMO-empowered application to the customers' > systems? > I mean would that be enough in such a case to deliver to the customer > side only referenced SMO .NET Framework class libraries deployed > locally together with their "parent" custom application, or the full > (.NET Framework) SMO SDK should be also installed/deployed? > > Thank you. > > -- > Shamil > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: 7 ??? 2011 ?. 15:23 > To: Discussion concerning Visual Basic and related programming issues. > Subject: Re: [dba-VB] Microsoft.SqlServer.Smo > > I use SMO extensively! Very cool object. > > John W. Colby > www.ColbyConsulting.com > > On 5/7/2011 5:25 AM, Shamil Salakhetdinov wrote: >> Hi All -- >> >> I have found Microsoft.SqlServer.Smo related assemblies installed on >> my system under >> >> ... \Program Files\Microsoft SQL Server 2005 Express\100\SDK\Assemblies. >> >> Issue solved. >> >> Thank you. >> >> -- >> Shamil >> >> -----Original Message----- >> From: dba-vb-bounces at databaseadvisors.com >> [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil >> Salakhetdinov >> Sent: 7 ??? 2011 ?. 12:21 >> To: 'Discussion concerning Visual Basic and related programming issues.' >> Subject: [dba-VB] Microsoft.SqlServer.Smo >> >> Hi All -- >> >> I can't get Microsoft.SqlServer.Smo >> (http://msdn.microsoft.com/en-us/library/microsoft.sqlserver.manageme >> n >> t.smo% >> 28v=SQL.100%29.aspx) available for my VS2010 SP1 project. >> I have got at "Microsoft SQL Server 2008 Feature Pack, April 2009" >> >> http://www.microsoft.com/downloads/en/details.aspx?FamilyID=b33d2c78- >> 1 >> 059-4c >> e2-b80d-2343c099bcb4 >> >> and I have got downloaded "Microsoft SQL Server 2008 Management Objects" >> >> "The SQL Server Management Objects (SMO) is a .NET Framework object >> model that enables software developers to create client-side >> applications to manage and administer SQL Server objects and services. >> This object model will work with SQL Server 2000, SQL Server 2005 and >> SQL > Server 2008." >> >> http://download.microsoft.com/download/0/E/6/0E67502A-22B4-4C47-92D3- >> 0 >> D223F1 >> 17190/SharedManagementObjects.msi >> >> But it doesn't want to setup on my system telling me it's there >> already :) - although I can't see it from VS2010 SP1 project's >> References dialog :( >> >> I'm (re-)searchning my computer files for >> >> Microsoft.SqlServer.Smo >> >> filename now but I doubt this search will get any positive results >> returned... >> >> Could you please advise/guess what am I'm missing? >> >> Thank you. >> >> -- >> Shamil >> > From jwcolby at colbyconsulting.com Mon May 9 10:43:38 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 09 May 2011 11:43:38 -0400 Subject: [dba-VB] C# Excel automation Message-ID: <4DC80BAA.4000100@colbyconsulting.com> We are trying to automate Excel from C# but we are unable to correctly close the excel object itself. IOW it is still seen in the process list. Paul has found information about marshal.releasecomobject and is doing that for every object he is even touching but something is still not working. Can anyone provide a simple example of opening a workbook, and reading a set of cells out of a worksheet, then cleaning up and closing Excel. TIA for your assistance. -- John W. Colby www.ColbyConsulting.com From dbdoug at gmail.com Mon May 9 11:17:00 2011 From: dbdoug at gmail.com (Doug Steele) Date: Mon, 9 May 2011 09:17:00 -0700 Subject: [dba-VB] C# Excel automation In-Reply-To: <4DC80BAA.4000100@colbyconsulting.com> References: <4DC80BAA.4000100@colbyconsulting.com> Message-ID: John, I can't find it quickly but I know there was a big discussion about this on the Access list a while back. Doug On Mon, May 9, 2011 at 8:43 AM, jwcolby wrote: > We are trying to automate Excel from C# but we are unable to correctly close > the excel object itself. ?IOW it is still seen in the process list. > > Paul has found information about marshal.releasecomobject and is doing that > for every object he is even touching but something is still not working. > > Can anyone provide a simple example of opening a workbook, and reading a set > of cells out of a worksheet, then cleaning up and closing Excel. > > TIA for your assistance. > > -- > John W. Colby > www.ColbyConsulting.com > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From df.waters at comcast.net Mon May 9 12:02:24 2011 From: df.waters at comcast.net (Dan Waters) Date: Mon, 9 May 2011 12:02:24 -0500 Subject: [dba-VB] C# Excel automation In-Reply-To: <4DC80BAA.4000100@colbyconsulting.com> References: <4DC80BAA.4000100@colbyconsulting.com> Message-ID: <004201cc0e6a$e0a4a2f0$a1ede8d0$@comcast.net> Hi John, I've had this issue too. It's almost certainly that somewhere in your code you are missing an Excel object qualifier. Also take a look at the sequence of opening and closing the Workbook and the instance of Excel. Another issue is that if the PC already has Excel open, then the workbook you create will be contained within the instance of Excel, and it turns out that it's about impossible for your code to loop through the different workbooks. The best plan is probably to look for an instance of Excel and close it with save = true. Then open your workbook and you should be fine. You'll need to tell your users what's going to happen (and maybe ask by message if they want to continue), and/or put up a message if you need to close/save an already open instance of Excel. See this code: '----------------- Private Sub FormatSpreadsheetDemo(stgPath As String) Dim objExcel As Object Dim objWorkbook As Object ' Dim objExcel As Excel.Application '-- TEST ' Dim objWorkbook As Excel.Workbook '-- TEST If IsNull(stgPath) Or stgPath = "" Then Exit Sub Set objExcel = CreateObject("Excel.Application") '-- for troubleshooting ' objExcel.Visible = true '-- TEST ' objExcel.ActiveWindow.WindowState = xlMaximized '-- TEST Set objWorkbook = objExcel.Workbooks.Open(stgPath) '-- Format objExcel.Rows("1:1").Select objExcel.Selection.Font.Bold = True objExcel.Cells.Select objExcel.Selection.Font.Name = "Tahoma" objExcel.Selection.Font.Size = 10 objExcel.Cells.EntireColumn.AutoFit '-- Freeze rows If InStr(stgPath, "Backups") = 0 Then objExcel.Range("A2").Select Else objExcel.Range("B2").Select End If objExcel.ActiveWindow.FreezePanes = True objExcel.ActiveWindow.WindowState = xlMaximized '-- Change column format If InStr(stgPath, "Activity") <> 0 Then objExcel.Columns("E:E").Select objExcel.Selection.NumberFormat = "[$-409]h:mm AM/PM;@" objExcel.Columns("G:G").Select objExcel.Selection.NumberFormat = "[$-409]h:mm AM/PM;@" End If '-- Select upper left cell objExcel.Range("A1").Select '-- Save & Quit objWorkbook.Save objWorkbook.Close objExcel.Quit Set objWorkbook = Nothing Set objExcel = Nothing Exit Sub ErrEx.Bookmark = BOOKMARK_ONERROR End Sub '------------------ -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Monday, May 09, 2011 10:44 AM To: VBA Subject: [dba-VB] C# Excel automation We are trying to automate Excel from C# but we are unable to correctly close the excel object itself. IOW it is still seen in the process list. Paul has found information about marshal.releasecomobject and is doing that for every object he is even touching but something is still not working. Can anyone provide a simple example of opening a workbook, and reading a set of cells out of a worksheet, then cleaning up and closing Excel. TIA for your assistance. -- John W. Colby www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Mon May 9 12:22:59 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 09 May 2011 13:22:59 -0400 Subject: [dba-VB] C# Excel automation In-Reply-To: <004201cc0e6a$e0a4a2f0$a1ede8d0$@comcast.net> References: <4DC80BAA.4000100@colbyconsulting.com> <004201cc0e6a$e0a4a2f0$a1ede8d0$@comcast.net> Message-ID: <4DC822F3.60609@colbyconsulting.com> Is this VBA or VB.Net? John W. Colby www.ColbyConsulting.com On 5/9/2011 1:02 PM, Dan Waters wrote: > Hi John, > > I've had this issue too. It's almost certainly that somewhere in your code > you are missing an Excel object qualifier. Also take a look at the sequence > of opening and closing the Workbook and the instance of Excel. > > Another issue is that if the PC already has Excel open, then the workbook > you create will be contained within the instance of Excel, and it turns out > that it's about impossible for your code to loop through the different > workbooks. The best plan is probably to look for an instance of Excel and > close it with save = true. Then open your workbook and you should be fine. > You'll need to tell your users what's going to happen (and maybe ask by > message if they want to continue), and/or put up a message if you need to > close/save an already open instance of Excel. > > See this code: > > '----------------- > Private Sub FormatSpreadsheetDemo(stgPath As String) > > Dim objExcel As Object > Dim objWorkbook As Object > ' Dim objExcel As Excel.Application '-- TEST > ' Dim objWorkbook As Excel.Workbook '-- TEST > > If IsNull(stgPath) Or stgPath = "" Then Exit Sub > > Set objExcel = CreateObject("Excel.Application") > > '-- for troubleshooting > ' objExcel.Visible = true '-- TEST > ' objExcel.ActiveWindow.WindowState = xlMaximized '-- TEST > > Set objWorkbook = objExcel.Workbooks.Open(stgPath) > > '-- Format > objExcel.Rows("1:1").Select > objExcel.Selection.Font.Bold = True > objExcel.Cells.Select > objExcel.Selection.Font.Name = "Tahoma" > objExcel.Selection.Font.Size = 10 > objExcel.Cells.EntireColumn.AutoFit > > '-- Freeze rows > If InStr(stgPath, "Backups") = 0 Then > objExcel.Range("A2").Select > Else > objExcel.Range("B2").Select > End If > objExcel.ActiveWindow.FreezePanes = True > objExcel.ActiveWindow.WindowState = xlMaximized > > '-- Change column format > If InStr(stgPath, "Activity")<> 0 Then > objExcel.Columns("E:E").Select > objExcel.Selection.NumberFormat = "[$-409]h:mm AM/PM;@" > objExcel.Columns("G:G").Select > objExcel.Selection.NumberFormat = "[$-409]h:mm AM/PM;@" > End If > > '-- Select upper left cell > objExcel.Range("A1").Select > > '-- Save& Quit > objWorkbook.Save > objWorkbook.Close > objExcel.Quit > > Set objWorkbook = Nothing > Set objExcel = Nothing > > Exit Sub > ErrEx.Bookmark = BOOKMARK_ONERROR > > End Sub > '------------------ > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Monday, May 09, 2011 10:44 AM > To: VBA > Subject: [dba-VB] C# Excel automation > > We are trying to automate Excel from C# but we are unable to correctly close > the excel object itself. IOW it is still seen in the process list. > > Paul has found information about marshal.releasecomobject and is doing that > for every object he is even touching but something is still not working. > > Can anyone provide a simple example of opening a workbook, and reading a set > of cells out of a worksheet, then cleaning up and closing Excel. > > TIA for your assistance. > > -- > John W. Colby > www.ColbyConsulting.com > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From df.waters at comcast.net Tue May 10 15:48:45 2011 From: df.waters at comcast.net (Dan Waters) Date: Tue, 10 May 2011 15:48:45 -0500 Subject: [dba-VB] Button Images - Where to Find? Message-ID: <000001cc0f53$a9ca2040$fd5e60c0$@comcast.net> In .Net for windows form is there a standard set of images for buttons like Access has? I'd hate to have to create left arrow and a right arrow images. Thanks! Dan From michael at ddisolutions.com.au Wed May 11 03:09:03 2011 From: michael at ddisolutions.com.au (Michael Maddison) Date: Wed, 11 May 2011 18:09:03 +1000 Subject: [dba-VB] Button Images - Where to Find? References: <000001cc0f53$a9ca2040$fd5e60c0$@comcast.net> Message-ID: <99266C61B516644D9727F983FAFAB4650863CA@remote.ddisolutions.com.au> I don't think so. There are heaps of free ones out there though. Cheers Michael M -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, 11 May 2011 6:49 AM To: 'Discussion concerning Visual Basic and related programming issues.' Subject: [dba-VB] Button Images - Where to Find? In .Net for windows form is there a standard set of images for buttons like Access has? I'd hate to have to create left arrow and a right arrow images. Thanks! Dan _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com ----- No virus found in this message. Checked by AVG - www.avg.com Version: 10.0.1375 / Virus Database: 1500/3629 - Release Date: 05/10/11 From shamil at smsconsulting.spb.ru Wed May 11 04:32:17 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Wed, 11 May 2011 13:32:17 +0400 Subject: [dba-VB] Button Images - Where to Find? In-Reply-To: <000001cc0f53$a9ca2040$fd5e60c0$@comcast.net> References: <000001cc0f53$a9ca2040$fd5e60c0$@comcast.net> Message-ID: Hi Dan -- For left- and right- arrow buttons you might try the following "trick": - create winform/usercontrol and bind it to a datasource - you'll get {{DataSetName}}_BindingNavigator. Now you can export button images into .png format from that BindingNavigator's resource file, which will be part of hosting winform/usercontrol resource file - {{WinFormName/WinFromsuserControlName}}.resx - just open resource file using designer, right-click button image, select 'Export To File...'... Here is xml of MovePrevious button's resource (JFI): iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACx jwv8 YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAL1JREFUOE9j YBgy ILz9wX+yHRvf/eB/cMM18gyI73n4f+n+///9qy+QbkBE+32w5sxZ//97lZ4gzYDQ1ntgza3rgLZ3 /v3v kn+AeAOCW+7+X7T3//8OoOaMOT//29X9/G+fsZ14A0ChbVd8+3/6nN///bu+/dcpfPffImE9aQaA DNFP Of/fpOjFf5WsT/+NI5eRbgDIEIOkE/9l077+1w2eR54BYJekXv6v4TuNfANAhqh4TKDMALKTMc01 AgDQ FGCYkuTLEQAAAABJRU5ErkJggg== Thank you. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: 11 ??? 2011 ?. 0:49 To: 'Discussion concerning Visual Basic and related programming issues.' Subject: [dba-VB] Button Images - Where to Find? In .Net for windows form is there a standard set of images for buttons like Access has? I'd hate to have to create left arrow and a right arrow images. Thanks! Dan From jwcolby at colbyconsulting.com Wed May 11 09:57:49 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 11 May 2011 10:57:49 -0400 Subject: [dba-VB] C# Outlook Automation Message-ID: <4DCAA3ED.1050007@colbyconsulting.com> Has anyone found C# code to emulate the ClickYes program? I found something in VB5/6 for building a program that sits in the toolbar but it seems that if you can do that, then you could just as easily look for the pop-up right in your own code and click the yes button. Just thought I'd check here before re-inventing the wheel. -- John W. Colby www.ColbyConsulting.com From df.waters at comcast.net Wed May 11 10:46:41 2011 From: df.waters at comcast.net (Dan Waters) Date: Wed, 11 May 2011 10:46:41 -0500 Subject: [dba-VB] C# Outlook Automation In-Reply-To: <4DCAA3ED.1050007@colbyconsulting.com> References: <4DCAA3ED.1050007@colbyconsulting.com> Message-ID: <000901cc0ff2$a3755620$ea600260$@comcast.net> Hi John, This is a VBA module to automatically push the ClickYes button - I have not used this. Might have some useful content. Came from: http://www.contextmagic.com/express-clickyes/ '---------------------------- Option Compare Database Option Explicit '-- Declare Windows' API functions Private Declare Function RegisterWindowMessage Lib "User32" Alias "RegisterWindowMessageA" (ByVal lpString As String) As Long Private Declare Function FindWindow Lib "User32" Alias "FindWindowA" (ByVal lpClassName As Any, ByVal lpWindowName As Any) As Long Private Declare Function SendMessage Lib "User32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long Public Function pfSendUsingObject() Dim blnPreview As Boolean '-- If you do want to preview then you do not need the ClickYes stuff. _ but if you don't want to preview and you just want to send it without being informed that _ it is being sent, then use the ClickYes stuff. blnPreview = False If blnPreview Then DoCmd.SendObject acSendNoObject, , , "max.wanadoo at gmail.com", , , "Subject", "Text Body", blnPreview Else Call fStartClickYes(True) DoCmd.SendObject acSendNoObject, , , "max.wanadoo at gmail.com", , , "Subject", "Text Body", blnPreview Call fStartClickYes(False) End If End Function Public Function fStartClickYes(bStart As Boolean) '-- Here is some vba code that starts and stops clickyes in the systray ' download from here and install. The A2k7 version is not free. _ http://www.contextmagic.com/express-clickyes/ Dim lngWnd As Long Dim lngClickYes As Long Dim lngResume As Long '-- Register a message to send lngClickYes = RegisterWindowMessage("CLICKYES_SUSPEND_RESUME") '-- Find ClickYes Window by classname lngWnd = FindWindow("EXCLICKYES_WND", 0&) If bStart Then '-- Send the message to Resume ClickYes lngResume = SendMessage(lngWnd, lngClickYes, 1, 0) Else ' Send the message to Suspend ClickYes lngResume = SendMessage(lngWnd, lngClickYes, 0, 0) End If End Function '---------------------------- -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, May 11, 2011 9:58 AM To: VBA Subject: [dba-VB] C# Outlook Automation Has anyone found C# code to emulate the ClickYes program? I found something in VB5/6 for building a program that sits in the toolbar but it seems that if you can do that, then you could just as easily look for the pop-up right in your own code and click the yes button. Just thought I'd check here before re-inventing the wheel. -- John W. Colby www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Wed May 11 12:28:17 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 11 May 2011 13:28:17 -0400 Subject: [dba-VB] C# Outlook Automation In-Reply-To: <000901cc0ff2$a3755620$ea600260$@comcast.net> References: <4DCAA3ED.1050007@colbyconsulting.com> <000901cc0ff2$a3755620$ea600260$@comcast.net> Message-ID: <4DCAC731.4040708@colbyconsulting.com> I know about ClickYes and might use that, however the free version does not support anything past Access 2003. John W. Colby www.ColbyConsulting.com On 5/11/2011 11:46 AM, Dan Waters wrote: > Hi John, > > This is a VBA module to automatically push the ClickYes button - I have not > used this. Might have some useful content. Came from: > http://www.contextmagic.com/express-clickyes/ > > '---------------------------- > Option Compare Database > Option Explicit > > '-- Declare Windows' API functions > Private Declare Function RegisterWindowMessage Lib "User32" Alias > "RegisterWindowMessageA" (ByVal lpString As String) As Long > Private Declare Function FindWindow Lib "User32" Alias "FindWindowA" (ByVal > lpClassName As Any, ByVal lpWindowName As Any) As Long > Private Declare Function SendMessage Lib "User32" Alias "SendMessageA" > (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As > Any) As Long > > Public Function pfSendUsingObject() > > Dim blnPreview As Boolean > > '-- If you do want to preview then you do not need the ClickYes stuff. _ > but if you don't want to preview and you just want to send it > without being informed that _ > it is being sent, then use the ClickYes stuff. > > blnPreview = False > > If blnPreview Then > DoCmd.SendObject acSendNoObject, , , "max.wanadoo at gmail.com", , , > "Subject", "Text Body", blnPreview > Else > Call fStartClickYes(True) > DoCmd.SendObject acSendNoObject, , , "max.wanadoo at gmail.com", , , > "Subject", "Text Body", blnPreview > Call fStartClickYes(False) > End If > > End Function > > Public Function fStartClickYes(bStart As Boolean) > > '-- Here is some vba code that starts and stops clickyes in the systray > ' download from here and install. The A2k7 version is not free. _ > http://www.contextmagic.com/express-clickyes/ > > Dim lngWnd As Long > Dim lngClickYes As Long > Dim lngResume As Long > > '-- Register a message to send > lngClickYes = RegisterWindowMessage("CLICKYES_SUSPEND_RESUME") > > '-- Find ClickYes Window by classname > lngWnd = FindWindow("EXCLICKYES_WND", 0&) > > If bStart Then > '-- Send the message to Resume ClickYes > lngResume = SendMessage(lngWnd, lngClickYes, 1, 0) > Else > ' Send the message to Suspend ClickYes > lngResume = SendMessage(lngWnd, lngClickYes, 0, 0) > End If > > End Function > > '---------------------------- > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Wednesday, May 11, 2011 9:58 AM > To: VBA > Subject: [dba-VB] C# Outlook Automation > > Has anyone found C# code to emulate the ClickYes program? I found something > in VB5/6 for building a program that sits in the toolbar but it seems that > if you can do that, then you could just as easily look for the pop-up right > in your own code and click the yes button. > > Just thought I'd check here before re-inventing the wheel. > > -- > John W. Colby > www.ColbyConsulting.com > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From df.waters at comcast.net Wed May 11 13:04:56 2011 From: df.waters at comcast.net (Dan Waters) Date: Wed, 11 May 2011 13:04:56 -0500 Subject: [dba-VB] Button Images - Found! Message-ID: <000e01cc1005$f0d9fac0$d28df040$@comcast.net> Shamil & Michael, OK - I finally found these. They are in the following folder. C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\VS2010ImageLibrary\1033\VS2010ImageLibrary\Actions\png_format\O ffice and VS First, under the 1033 folder, you'll need to unzip the VS2010ImageLibrary folder. Next, in the button's Image property, select the ellipsis. In the next window, select Project Resource file, then push Import and navigate to the above folder. When you select an image, it will be copied to your project under a Resources folder. There is also a way (I didn't pursue for now) to create your own Image List, which you can use to assign an image to a control. I'm guessing that the Image List can be used for multiple Projects so you can save some time and also have your own set of images to use consistently in all your projects. Also, there are many other image folders that contain other types of images. Thanks! Dan -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, May 10, 2011 3:49 PM To: 'Discussion concerning Visual Basic and related programming issues.' Subject: [dba-VB] Button Images - Where to Find? In .Net for windows form is there a standard set of images for buttons like Access has? I'd hate to have to create left arrow and a right arrow images. Thanks! Dan _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu May 12 14:28:03 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 12 May 2011 15:28:03 -0400 Subject: [dba-VB] =?windows-1252?q?LSI_MegaRAID_SAS/SATA_9265-8i_6Gb/s_PCI?= =?windows-1252?q?e_RAID_Card_Review_=96_Performance_Unleashed!_=7C_The_SS?= =?windows-1252?q?D_Review?= Message-ID: <4DCC34C3.4080302@colbyconsulting.com> -- John W. Colby www.ColbyConsulting.com http://thessdreview.com/our-reviews/lsi-megaraid-sassata-9265-8i-6gbs-pcie-raid-controller-card-review/ From df.waters at comcast.net Tue May 17 09:53:25 2011 From: df.waters at comcast.net (Dan Waters) Date: Tue, 17 May 2011 09:53:25 -0500 Subject: [dba-VB] Good News for .Net Developers Message-ID: <000301cc14a2$2cfda6a0$86f8f3e0$@comcast.net> Mono is an open-source implementation of .Net which was owned by Novell/Attachmate until a week ago. All the members of the Mono teams were let go. The founder of Mono has restarted his effort, with the same team members, as an independent company named Xamarin. Looks like good news for .Net developers! http://www.zdnet.com/blog/microsoft/mono-lives-in-new-startup-xamarin/9465 Dan From accessd at shaw.ca Tue May 17 10:17:30 2011 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 17 May 2011 08:17:30 -0700 Subject: [dba-VB] Good News for .Net Developers In-Reply-To: <000301cc14a2$2cfda6a0$86f8f3e0$@comcast.net> References: <000301cc14a2$2cfda6a0$86f8f3e0$@comcast.net> Message-ID: Excellent! Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, May 17, 2011 7:53 AM To: 'Discussion concerning Visual Basic and related programming issues.' Subject: [dba-VB] Good News for .Net Developers Mono is an open-source implementation of .Net which was owned by Novell/Attachmate until a week ago. All the members of the Mono teams were let go. The founder of Mono has restarted his effort, with the same team members, as an independent company named Xamarin. Looks like good news for .Net developers! http://www.zdnet.com/blog/microsoft/mono-lives-in-new-startup-xamarin/9465 Dan _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From df.waters at comcast.net Tue May 17 16:00:22 2011 From: df.waters at comcast.net (Dan Waters) Date: Tue, 17 May 2011 16:00:22 -0500 Subject: [dba-VB] Listbox on VB.Net Form - How to Display Data Correctly? Message-ID: <001b01cc14d5$707a3af0$516eb0d0$@comcast.net> I'm making my first .net form with existing data and I'm having trouble getting the listbox to display correctly. Been looking through all my books and doing lots of web searches, but no real answer. The form has a TurnbackMainBindingSource which uses a DataSource named TurnbackMain. TurnbackMain is an object in a Linq to SQL DataContext (.dbml file). I have two list boxes, both of which use an items collection entered via property sheet. The Severity listbox has choices 1, 2, 3. The QD listbox has choices Quality, Delivery. Both listboxes, have the SelectedItem set to TurnbackMainBindingSource - Severity and TurnbackMainBindingSource - QD, respectively. The comboboxes and textboxes have similar values in the Text property, but the listbox does not have a Text property in the property sheet. As I use the Navigation toolbar to move the form through the records, I want the listboxes to display like Access does, which I assume is the way a listbox should in .Net as well. What happens: For the QD listbox, as I scroll through the records, the Quality or Delivery item is highlighted, if the underlying data is not null. If the underlying data is null, then whatever was highlighted for the previous record remains highlighted. For the Severity listbox, there is no highlighting at all. For the comboboxes and textboxes, what's displayed matches the underlying data. The underlying data for QD is string, the underlying data for Severity is numeric. Is there a way to make this happen correctly without writing any code in the form's afterupdate event? If no, then what code is needed? Thanks! Dan From Gustav at cactus.dk Wed May 18 05:30:27 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 18 May 2011 12:30:27 +0200 Subject: [dba-VB] Listbox on VB.Net Form - How to Display Data Correctly? Message-ID: Hi Dan At the row enter event you may need to include code to clear the combo. C# only, but you sure get the picture: private void dataGridView1_RowEnter(object sender, DataGridViewCellEventArgs e) { // Row to look up is the current row. int rowIndex = e.RowIndex; // Column in row to look up Id of Supplier. int columnId = 0; _supplierId = Convert.ToInt32(dataGridView1.Rows[rowIndex].Cells[columnId].Value); this.FindCurrentCustomer(); } private void FindCurrentCustomer() { DataRow[] customerSupplier = _customerSupplierDataTable.Select("SupplierId = " + _supplierId.ToString()); if (customerSupplier.Length == 0) { _customerId = -1; // Erase display. this.comboBoxCustomer.Text = null; } else { _customerId = Convert.ToInt32(customerSupplier[0]["CustomerId"].ToString()); } this.comboBoxCustomer.SelectedValue = _customerId; } /gustav >>> "Dan Waters" 17-05-2011 23:00 >>> I'm making my first .net form with existing data and I'm having trouble getting the listbox to display correctly. Been looking through all my books and doing lots of web searches, but no real answer. The form has a TurnbackMainBindingSource which uses a DataSource named TurnbackMain. TurnbackMain is an object in a Linq to SQL DataContext (.dbml file). I have two list boxes, both of which use an items collection entered via property sheet. The Severity listbox has choices 1, 2, 3. The QD listbox has choices Quality, Delivery. Both listboxes, have the SelectedItem set to TurnbackMainBindingSource - Severity and TurnbackMainBindingSource - QD, respectively. The comboboxes and textboxes have similar values in the Text property, but the listbox does not have a Text property in the property sheet. As I use the Navigation toolbar to move the form through the records, I want the listboxes to display like Access does, which I assume is the way a listbox should in .Net as well. What happens: For the QD listbox, as I scroll through the records, the Quality or Delivery item is highlighted, if the underlying data is not null. If the underlying data is null, then whatever was highlighted for the previous record remains highlighted. For the Severity listbox, there is no highlighting at all. For the comboboxes and textboxes, what's displayed matches the underlying data. The underlying data for QD is string, the underlying data for Severity is numeric. Is there a way to make this happen correctly without writing any code in the form's afterupdate event? If no, then what code is needed? Thanks! Dan From jwcolby at colbyconsulting.com Fri May 20 21:51:22 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 20 May 2011 22:51:22 -0400 Subject: [dba-VB] Setting up a test VM Message-ID: <4DD728AA.8020208@colbyconsulting.com> Using a VM running on my server, I want to emulate as closely as possible a workstation running out on the internet connecting in to my server over Hamachi. I have the VM running but it was part of my workgroup. I changed the workgroup name for the VM but I am still able to access it remote desktop by the machine name which means that very likely the router is using stored info and assigning the VM an IP. I really wanted to isolate it as much as I can from my internal network. I tried assigning the machine an entirely different IP range (192.168.122.x instead of 192.168.1.x) but when I did that it appears that hamachi instantly loses it's tunnel through the firewall. Any suggestions for how to go about making this thing isolated? -- John W. Colby www.ColbyConsulting.com From michael at ddisolutions.com.au Fri May 20 22:43:39 2011 From: michael at ddisolutions.com.au (Michael Maddison) Date: Sat, 21 May 2011 13:43:39 +1000 Subject: [dba-VB] Filemaker to SQL Anyone? Message-ID: <99266C61B516644D9727F983FAFAB46508640E@remote.ddisolutions.com.au> How do I get myself into these messes? Anyone ever used Filemaker Pro? How do I just get all data from table and export it? How do you even SEE all the data from A table? OMG I can't believe its this hard! Cheers Michael M From michael at ddisolutions.com.au Fri May 20 23:13:45 2011 From: michael at ddisolutions.com.au (Michael Maddison) Date: Sat, 21 May 2011 14:13:45 +1000 Subject: [dba-VB] Filemaker to SQL Anyone? Message-ID: <99266C61B516644D9727F983FAFAB46508640F@remote.ddisolutions.com.au> Looks like I need to make a layout with the table option turned on, manually add each field to the layout, export from there! Good grief! Lucky theres only 150 fields... Cheers Michael M -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Michael Maddison Sent: Saturday, 21 May 2011 1:44 PM To: Discussion concerning Visual Basic and related programming issues. Subject: [dba-VB] Filemaker to SQL Anyone? How do I get myself into these messes? Anyone ever used Filemaker Pro? How do I just get all data from table and export it? How do you even SEE all the data from A table? OMG I can't believe its this hard! Cheers Michael M _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com ----- No virus found in this message. Checked by AVG - www.avg.com Version: 10.0.1375 / Virus Database: 1509/3649 - Release Date: 05/20/11 From gustav at cactus.dk Sun May 22 12:50:05 2011 From: gustav at cactus.dk (Gustav Brock) Date: Sun, 22 May 2011 19:50:05 +0200 Subject: [dba-VB] XML documentation builder: Sandcastle Message-ID: Hi all I was about reinstalling this splendid tool as I came across "The guided installation of Sandcastle" which I haven't seen before: http://shfb.codeplex.com/releases/view/62064 which walks you through the download and install of every needed package. Highly recommended! Sandcastle nearly makes it fun to document your code and the generated output looks exactly like what you see from MS. /gustav From DWUTKA at Marlow.com Mon May 23 11:50:35 2011 From: DWUTKA at Marlow.com (Drew Wutka) Date: Mon, 23 May 2011 11:50:35 -0500 Subject: [dba-VB] Setting up a test VM In-Reply-To: <4DD728AA.8020208@colbyconsulting.com> References: <4DD728AA.8020208@colbyconsulting.com> Message-ID: There really is no way to 'simulate' an 'external client', on a home router. Your internet connection is coming in one port, and is going through one set of rules. So unless that router is VERY programmable, then the best you can do, as far as I can think of, is to create a routed connection in from another subnet. Of course, the EASIEST way to do what you are trying to do, is just go out and buy an aircard (a usb device that connects to the internet), or, if you can 'share' your phone's internet connection, you can use that as an external connection. And setup your VM to ACTUALLY use an internet connection other than your normal ISP. Drew -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, May 20, 2011 9:51 PM To: Access Developers discussion and problem solving; VBA Subject: [dba-VB] Setting up a test VM Using a VM running on my server, I want to emulate as closely as possible a workstation running out on the internet connecting in to my server over Hamachi. I have the VM running but it was part of my workgroup. I changed the workgroup name for the VM but I am still able to access it remote desktop by the machine name which means that very likely the router is using stored info and assigning the VM an IP. I really wanted to isolate it as much as I can from my internal network. I tried assigning the machine an entirely different IP range (192.168.122.x instead of 192.168.1.x) but when I did that it appears that hamachi instantly loses it's tunnel through the firewall. Any suggestions for how to go about making this thing isolated? -- John W. Colby www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From marklbreen at gmail.com Tue May 24 05:27:44 2011 From: marklbreen at gmail.com (Mark Breen) Date: Tue, 24 May 2011 11:27:44 +0100 Subject: [dba-VB] Setting up a test VM In-Reply-To: References: <4DD728AA.8020208@colbyconsulting.com> Message-ID: Or another easy way is to ask someone here on AccessD to connect to you hamachi network, install the access client and connect across the atlantic ! That would be heavy testing for the client :) Mark On 23 May 2011 17:50, Drew Wutka wrote: > There really is no way to 'simulate' an 'external client', on a home > router. Your internet connection is coming in one port, and is going > through one set of rules. So unless that router is VERY programmable, > then the best you can do, as far as I can think of, is to create a > routed connection in from another subnet. > > Of course, the EASIEST way to do what you are trying to do, is just go > out and buy an aircard (a usb device that connects to the internet), or, > if you can 'share' your phone's internet connection, you can use that as > an external connection. And setup your VM to ACTUALLY use an internet > connection other than your normal ISP. > > Drew > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Friday, May 20, 2011 9:51 PM > To: Access Developers discussion and problem solving; VBA > Subject: [dba-VB] Setting up a test VM > > Using a VM running on my server, I want to emulate as closely as > possible a workstation running out > on the internet connecting in to my server over Hamachi. I have the VM > running but it was part of > my workgroup. I changed the workgroup name for the VM but I am still > able to access it remote > desktop by the machine name which means that very likely the router is > using stored info and > assigning the VM an IP. I really wanted to isolate it as much as I can > from my internal network. > > I tried assigning the machine an entirely different IP range > (192.168.122.x instead of 192.168.1.x) > but when I did that it appears that hamachi instantly loses it's tunnel > through the firewall. > > Any suggestions for how to go about making this thing isolated? > > -- > John W. Colby > www.ColbyConsulting.com > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > The information contained in this transmission is intended only for the > person or entity > to which it is addressed and may contain II-VI Proprietary and/or II-VI > Business > Sensitive material. If you are not the intended recipient, please contact > the sender > immediately and destroy the material in its entirety, whether electronic or > hard copy. > You are notified that any review, retransmission, copying, disclosure, > dissemination, > or other use of, or taking of any action in reliance upon this information > by persons > or entities other than the intended recipient is prohibited. > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From jwcolby at colbyconsulting.com Fri May 27 09:53:53 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 27 May 2011 10:53:53 -0400 Subject: [dba-VB] redemption Message-ID: <4DDFBB01.5060602@colbyconsulting.com> We are trying to use Redemption (outlook) to get around the MS security nonsense. We are using the RDO portion because the SafeMail object (Outlook) side of redemption was missing the mail.subject property msg.move for moving a message from folder to another. The RDO does have those things. We are still having two specific problems. 1) We are unable to find a way to cause RDO to download the mail, thus the MailReceived event never fires. As a result we are currently opening outlook and setting it up to download every 1 minute. Clumsy! 2) RDO.Msg.Move moves the message but we can't see it in the folder it was moved to. IOW if we move a bunch of mail items then go look in the folder that the mail items were put into, the collection doesn't show it as being there. If in Outlook we click on that folder, *then* back in our code the folder shows the mail items as being in the folder. If anyone is using this stuff please feel free to comment. Thanks, -- John W. Colby www.ColbyConsulting.com From mikedorism at verizon.net Tue May 31 11:24:20 2011 From: mikedorism at verizon.net (Doris Manning) Date: Tue, 31 May 2011 12:24:20 -0400 Subject: [dba-VB] redemption In-Reply-To: <4DDFBB01.5060602@colbyconsulting.com> References: <4DDFBB01.5060602@colbyconsulting.com> Message-ID: <704BE61E43064893905FD26C21CC8595@hargrove.internal> John, I do use Redemption but not any of the features you are trying to use. Have you tried contacting Dmitri personally? He is usually very quick to respond whenever I've had questions. Doris Manning Senior Developer/Database Administrator Hargrove Inc. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, May 27, 2011 10:54 AM To: Access Developers discussion and problem solving; VBA Subject: [dba-VB] redemption We are trying to use Redemption (outlook) to get around the MS security nonsense. We are using the RDO portion because the SafeMail object (Outlook) side of redemption was missing the mail.subject property msg.move for moving a message from folder to another. The RDO does have those things. We are still having two specific problems. 1) We are unable to find a way to cause RDO to download the mail, thus the MailReceived event never fires. As a result we are currently opening outlook and setting it up to download every 1 minute. Clumsy! 2) RDO.Msg.Move moves the message but we can't see it in the folder it was moved to. IOW if we move a bunch of mail items then go look in the folder that the mail items were put into, the collection doesn't show it as being there. If in Outlook we click on that folder, *then* back in our code the folder shows the mail items as being in the folder. If anyone is using this stuff please feel free to comment. Thanks, -- John W. Colby www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From stuart at lexacorp.com.pg Fri May 6 08:13:27 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 06 May 2011 23:13:27 +1000 Subject: [dba-VB] Back to native Code? In-Reply-To: References: Message-ID: <4DC3F3F7.938.70227B0@stuart.lexacorp.com.pg> Is the romance with .Net and managed code on it's way out? Is the "next big thing" going to be a return to native code? http://www.zdnet.com/blog/microsoft/what-is-winc-and-how-does-it-figure-in-microsofts-bid-to -make-tools-a-2-billion-business/9359 or Short URL: http://goo.gl/qRTUB -- Stuart From accessd at shaw.ca Fri May 6 17:58:20 2011 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 6 May 2011 15:58:20 -0700 Subject: [dba-VB] Back to native Code? In-Reply-To: <4DC3F3F7.938.70227B0@stuart.lexacorp.com.pg> References: <4DC3F3F7.938.70227B0@stuart.lexacorp.com.pg> Message-ID: <61323A1825D9472EAD300900B45D455C@creativesystemdesigns.com> I doubt whether it is on it way out but I do think MS has to realize that not everyone sees .Net as the way to salvation. Companies like Amazon, Google and even Oracle are completed committed to Java development are regardless of the temptation are not about to switch. Then there are companies like FaceBook which are completely committed to PHP. There is a massive base of there languages and that is for a number of reasons. First, the languages are Open Source which means everyone regardless of the finances can get into the product. This is particularly attractive to university students who traditionally have no money and that is important as these people are the future of the programming world. Second, the languages are not tied to a specific version of Windows and/or Framework. A .Net application that will run on a Server2008 will not necessarily run on Server2003. There is a lot of investment in development and no programmer wants to loss 10 years of their lives due to someone's idea of an improvement. Third, the .Net language is not portable. IOW they can only run on one platform. Linux's penetration of the desktop market may not be that large but in the Server market Linux is king. Until recently, there was a parallel project running under the old Novell, to create and support a Linux .Net but after its purchase by Attachmate, the project has been abandoned. MS may not realize it but this will hurt .Net on Windows as well. Fourth, Open Source products have one big advantage over controlled factory type languages and that is the speed of bug resolution. A bug appears on Thursday and a solution is posted on Saturday. Every time a major OS product has an issue, 1200 university student whip into the source code to be the first person to arrive at a viable solution. Fifth, languages that have been around for a while have been used to create and support many large and small projects and applications. That is a huge investment and major companies are loathed to abandoned migrate without a very good reason. Example: there are many large accounting system that have been written in Cobol and some companies still have stable of Cobol programmers working for them. Sixth, good desktop centric languages are not nearly as important as they were 10 years ago. People are looking for languages that are web server supporting and can be extended to browser based environments. To that end ASP.Net does an acceptable job at this level of support but, its deployment coupled with IEx does not necessarily comply with new the industry standards, in CSS3, HTML5 and now WebGL. C++ was at one time a product belonging to MS/Borland but that has dramatically changed with Open Source C/C++ compilers available. Now it is cross-platform and now its future is assured. Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, May 06, 2011 6:13 AM To: Discussion concerning Visual Basic and related programming issues. Subject: [dba-VB] Back to native Code? Is the romance with .Net and managed code on it's way out? Is the "next big thing" going to be a return to native code? http://www.zdnet.com/blog/microsoft/what-is-winc-and-how-does-it-figure-in-m icrosofts-bid-to -make-tools-a-2-billion-business/9359 or Short URL: http://goo.gl/qRTUB -- Stuart _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From shamil at smsconsulting.spb.ru Sat May 7 03:21:28 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sat, 7 May 2011 12:21:28 +0400 Subject: [dba-VB] Microsoft.SqlServer.Smo Message-ID: <0632A25A4F414713973B5CE5E091B71C@nant> Hi All -- I can't get Microsoft.SqlServer.Smo (http://msdn.microsoft.com/en-us/library/microsoft.sqlserver.management.smo% 28v=SQL.100%29.aspx) available for my VS2010 SP1 project. I have got at "Microsoft SQL Server 2008 Feature Pack, April 2009" http://www.microsoft.com/downloads/en/details.aspx?FamilyID=b33d2c78-1059-4c e2-b80d-2343c099bcb4 and I have got downloaded "Microsoft SQL Server 2008 Management Objects" "The SQL Server Management Objects (SMO) is a .NET Framework object model that enables software developers to create client-side applications to manage and administer SQL Server objects and services. This object model will work with SQL Server 2000, SQL Server 2005 and SQL Server 2008." http://download.microsoft.com/download/0/E/6/0E67502A-22B4-4C47-92D3-0D223F1 17190/SharedManagementObjects.msi But it doesn't want to setup on my system telling me it's there already :) - although I can't see it from VS2010 SP1 project's References dialog :( I'm (re-)searchning my computer files for Microsoft.SqlServer.Smo filename now but I doubt this search will get any positive results returned... Could you please advise/guess what am I'm missing? Thank you. -- Shamil From shamil at smsconsulting.spb.ru Sat May 7 04:25:41 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sat, 7 May 2011 13:25:41 +0400 Subject: [dba-VB] Microsoft.SqlServer.Smo In-Reply-To: <0632A25A4F414713973B5CE5E091B71C@nant> References: <0632A25A4F414713973B5CE5E091B71C@nant> Message-ID: Hi All -- I have found Microsoft.SqlServer.Smo related assemblies installed on my system under ... \Program Files\Microsoft SQL Server 2005 Express\100\SDK\Assemblies. Issue solved. Thank you. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: 7 ??? 2011 ?. 12:21 To: 'Discussion concerning Visual Basic and related programming issues.' Subject: [dba-VB] Microsoft.SqlServer.Smo Hi All -- I can't get Microsoft.SqlServer.Smo (http://msdn.microsoft.com/en-us/library/microsoft.sqlserver.management.smo% 28v=SQL.100%29.aspx) available for my VS2010 SP1 project. I have got at "Microsoft SQL Server 2008 Feature Pack, April 2009" http://www.microsoft.com/downloads/en/details.aspx?FamilyID=b33d2c78-1059-4c e2-b80d-2343c099bcb4 and I have got downloaded "Microsoft SQL Server 2008 Management Objects" "The SQL Server Management Objects (SMO) is a .NET Framework object model that enables software developers to create client-side applications to manage and administer SQL Server objects and services. This object model will work with SQL Server 2000, SQL Server 2005 and SQL Server 2008." http://download.microsoft.com/download/0/E/6/0E67502A-22B4-4C47-92D3-0D223F1 17190/SharedManagementObjects.msi But it doesn't want to setup on my system telling me it's there already :) - although I can't see it from VS2010 SP1 project's References dialog :( I'm (re-)searchning my computer files for Microsoft.SqlServer.Smo filename now but I doubt this search will get any positive results returned... Could you please advise/guess what am I'm missing? Thank you. -- Shamil _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Sat May 7 06:23:22 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 07 May 2011 07:23:22 -0400 Subject: [dba-VB] Microsoft.SqlServer.Smo In-Reply-To: References: <0632A25A4F414713973B5CE5E091B71C@nant> Message-ID: <4DC52BAA.2080602@colbyconsulting.com> I use SMO extensively! Very cool object. John W. Colby www.ColbyConsulting.com On 5/7/2011 5:25 AM, Shamil Salakhetdinov wrote: > Hi All -- > > I have found Microsoft.SqlServer.Smo related assemblies installed on my > system under > > ... \Program Files\Microsoft SQL Server 2005 Express\100\SDK\Assemblies. > > Issue solved. > > Thank you. > > -- > Shamil > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil > Salakhetdinov > Sent: 7 ??? 2011 ?. 12:21 > To: 'Discussion concerning Visual Basic and related programming issues.' > Subject: [dba-VB] Microsoft.SqlServer.Smo > > Hi All -- > > I can't get Microsoft.SqlServer.Smo > (http://msdn.microsoft.com/en-us/library/microsoft.sqlserver.management.smo% > 28v=SQL.100%29.aspx) available for my VS2010 SP1 project. > I have got at "Microsoft SQL Server 2008 Feature Pack, April 2009" > > http://www.microsoft.com/downloads/en/details.aspx?FamilyID=b33d2c78-1059-4c > e2-b80d-2343c099bcb4 > > and I have got downloaded "Microsoft SQL Server 2008 Management Objects" > > "The SQL Server Management Objects (SMO) is a .NET Framework object model > that enables software developers to create client-side applications to > manage and administer SQL Server objects and services. This object model > will work with SQL Server 2000, SQL Server 2005 and SQL Server 2008." > > http://download.microsoft.com/download/0/E/6/0E67502A-22B4-4C47-92D3-0D223F1 > 17190/SharedManagementObjects.msi > > But it doesn't want to setup on my system telling me it's there already :) - > although I can't see it from VS2010 SP1 project's References dialog :( > > I'm (re-)searchning my computer files for > > Microsoft.SqlServer.Smo > > filename now but I doubt this search will get any positive results > returned... > > Could you please advise/guess what am I'm missing? > > Thank you. > > -- > Shamil > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From shamil at smsconsulting.spb.ru Sat May 7 08:09:00 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sat, 7 May 2011 17:09:00 +0400 Subject: [dba-VB] Microsoft.SqlServer.Smo In-Reply-To: <4DC52BAA.2080602@colbyconsulting.com> References: <0632A25A4F414713973B5CE5E091B71C@nant> <4DC52BAA.2080602@colbyconsulting.com> Message-ID: <4FDFCEF827D34B7D8213280BD3E96761@nant> Hi John -- Did you try to deploy your SMO-empowered application to the customers' systems? I mean would that be enough in such a case to deliver to the customer side only referenced SMO .NET Framework class libraries deployed locally together with their "parent" custom application, or the full (.NET Framework) SMO SDK should be also installed/deployed? Thank you. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: 7 ??? 2011 ?. 15:23 To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Microsoft.SqlServer.Smo I use SMO extensively! Very cool object. John W. Colby www.ColbyConsulting.com On 5/7/2011 5:25 AM, Shamil Salakhetdinov wrote: > Hi All -- > > I have found Microsoft.SqlServer.Smo related assemblies installed on > my system under > > ... \Program Files\Microsoft SQL Server 2005 Express\100\SDK\Assemblies. > > Issue solved. > > Thank you. > > -- > Shamil > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil > Salakhetdinov > Sent: 7 ??? 2011 ?. 12:21 > To: 'Discussion concerning Visual Basic and related programming issues.' > Subject: [dba-VB] Microsoft.SqlServer.Smo > > Hi All -- > > I can't get Microsoft.SqlServer.Smo > (http://msdn.microsoft.com/en-us/library/microsoft.sqlserver.managemen > t.smo% > 28v=SQL.100%29.aspx) available for my VS2010 SP1 project. > I have got at "Microsoft SQL Server 2008 Feature Pack, April 2009" > > http://www.microsoft.com/downloads/en/details.aspx?FamilyID=b33d2c78-1 > 059-4c > e2-b80d-2343c099bcb4 > > and I have got downloaded "Microsoft SQL Server 2008 Management Objects" > > "The SQL Server Management Objects (SMO) is a .NET Framework object > model that enables software developers to create client-side > applications to manage and administer SQL Server objects and services. > This object model will work with SQL Server 2000, SQL Server 2005 and SQL Server 2008." > > http://download.microsoft.com/download/0/E/6/0E67502A-22B4-4C47-92D3-0 > D223F1 > 17190/SharedManagementObjects.msi > > But it doesn't want to setup on my system telling me it's there > already :) - although I can't see it from VS2010 SP1 project's > References dialog :( > > I'm (re-)searchning my computer files for > > Microsoft.SqlServer.Smo > > filename now but I doubt this search will get any positive results > returned... > > Could you please advise/guess what am I'm missing? > > Thank you. > > -- > Shamil > From stuart at lexacorp.com.pg Sat May 7 15:15:56 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sun, 08 May 2011 06:15:56 +1000 Subject: [dba-VB] Microsoft.SqlServer.Smo In-Reply-To: <4FDFCEF827D34B7D8213280BD3E96761@nant> References: <0632A25A4F414713973B5CE5E091B71C@nant>, <4DC52BAA.2080602@colbyconsulting.com>, <4FDFCEF827D34B7D8213280BD3E96761@nant> Message-ID: <4DC5A87C.16788.DAB4F6E@stuart.lexacorp.com.pg> SDK = Software Development Kit - emphasis on the Development. There should never be a requirement to deploy it to clients. -- Stuart On 7 May 2011 at 17:09, Shamil Salakhetdinov wrote: > Hi John -- > > Did you try to deploy your SMO-empowered application to the customers' > systems? I mean would that be enough in such a case to deliver to the > customer side only referenced SMO .NET Framework class libraries > deployed locally together with their "parent" custom application, or > the full (.NET Framework) SMO SDK should be also installed/deployed? > > Thank you. > > -- > Shamil > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: 7 ??? 2011 ?. 15:23 To: Discussion concerning Visual Basic and > related programming issues. Subject: Re: [dba-VB] > Microsoft.SqlServer.Smo > > I use SMO extensively! Very cool object. > > John W. Colby > www.ColbyConsulting.com > > On 5/7/2011 5:25 AM, Shamil Salakhetdinov wrote: > > Hi All -- > > > > I have found Microsoft.SqlServer.Smo related assemblies installed on > > my system under > > > > ... \Program Files\Microsoft SQL Server 2005 > > Express\100\SDK\Assemblies. > > > > Issue solved. > > > > Thank you. > > > > -- > > Shamil > > > > -----Original Message----- > > From: dba-vb-bounces at databaseadvisors.com > > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil > > Salakhetdinov Sent: 7 ??? 2011 ?. 12:21 To: 'Discussion concerning > > Visual Basic and related programming issues.' Subject: [dba-VB] > > Microsoft.SqlServer.Smo > > > > Hi All -- > > > > I can't get Microsoft.SqlServer.Smo > > (http://msdn.microsoft.com/en-us/library/microsoft.sqlserver.managem > > en t.smo% 28v=SQL.100%29.aspx) available for my VS2010 SP1 project. > > I have got at "Microsoft SQL Server 2008 Feature Pack, April 2009" > > > > http://www.microsoft.com/downloads/en/details.aspx?FamilyID=b33d2c78 > > -1 059-4c e2-b80d-2343c099bcb4 > > > > and I have got downloaded "Microsoft SQL Server 2008 Management > > Objects" > > > > "The SQL Server Management Objects (SMO) is a .NET Framework object > > model that enables software developers to create client-side > > applications to manage and administer SQL Server objects and > > services. This object model will work with SQL Server 2000, SQL > > Server 2005 and SQL > Server 2008." > > > > http://download.microsoft.com/download/0/E/6/0E67502A-22B4-4C47-92D3 > > -0 D223F1 17190/SharedManagementObjects.msi > > > > But it doesn't want to setup on my system telling me it's there > > already :) - although I can't see it from VS2010 SP1 project's > > References dialog :( > > > > I'm (re-)searchning my computer files for > > > > Microsoft.SqlServer.Smo > > > > filename now but I doubt this search will get any positive results > > returned... > > > > Could you please advise/guess what am I'm missing? > > > > Thank you. > > > > -- > > Shamil > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From jwcolby at colbyconsulting.com Sat May 7 19:20:12 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 07 May 2011 20:20:12 -0400 Subject: [dba-VB] Microsoft.SqlServer.Smo In-Reply-To: <4DC5A87C.16788.DAB4F6E@stuart.lexacorp.com.pg> References: <0632A25A4F414713973B5CE5E091B71C@nant>, <4DC52BAA.2080602@colbyconsulting.com>, <4FDFCEF827D34B7D8213280BD3E96761@nant> <4DC5A87C.16788.DAB4F6E@stuart.lexacorp.com.pg> Message-ID: <4DC5E1BC.1010909@colbyconsulting.com> He probably had to go get a reference to it in order to use it. John W. Colby www.ColbyConsulting.com On 5/7/2011 4:15 PM, Stuart McLachlan wrote: > SDK = Software Development Kit - emphasis on the Development. > > There should never be a requirement to deploy it to clients. > From jwcolby at colbyconsulting.com Sat May 7 19:21:26 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 07 May 2011 20:21:26 -0400 Subject: [dba-VB] Microsoft.SqlServer.Smo In-Reply-To: <4FDFCEF827D34B7D8213280BD3E96761@nant> References: <0632A25A4F414713973B5CE5E091B71C@nant> <4DC52BAA.2080602@colbyconsulting.com> <4FDFCEF827D34B7D8213280BD3E96761@nant> Message-ID: <4DC5E206.80007@colbyconsulting.com> I don't know the answer to that. To this point, all of my usage has been for the app we developed for internal use. John W. Colby www.ColbyConsulting.com On 5/7/2011 9:09 AM, Shamil Salakhetdinov wrote: > Hi John -- > > Did you try to deploy your SMO-empowered application to the customers' > systems? > I mean would that be enough in such a case to deliver to the customer side > only referenced SMO .NET Framework class libraries deployed locally together > with their "parent" custom application, or the full (.NET Framework) SMO SDK > should be also installed/deployed? > > Thank you. > > -- > Shamil > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: 7 ??? 2011 ?. 15:23 > To: Discussion concerning Visual Basic and related programming issues. > Subject: Re: [dba-VB] Microsoft.SqlServer.Smo > > I use SMO extensively! Very cool object. > > John W. Colby > www.ColbyConsulting.com > > On 5/7/2011 5:25 AM, Shamil Salakhetdinov wrote: >> Hi All -- >> >> I have found Microsoft.SqlServer.Smo related assemblies installed on >> my system under >> >> ... \Program Files\Microsoft SQL Server 2005 Express\100\SDK\Assemblies. >> >> Issue solved. >> >> Thank you. >> >> -- >> Shamil >> >> -----Original Message----- >> From: dba-vb-bounces at databaseadvisors.com >> [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil >> Salakhetdinov >> Sent: 7 ??? 2011 ?. 12:21 >> To: 'Discussion concerning Visual Basic and related programming issues.' >> Subject: [dba-VB] Microsoft.SqlServer.Smo >> >> Hi All -- >> >> I can't get Microsoft.SqlServer.Smo >> (http://msdn.microsoft.com/en-us/library/microsoft.sqlserver.managemen >> t.smo% >> 28v=SQL.100%29.aspx) available for my VS2010 SP1 project. >> I have got at "Microsoft SQL Server 2008 Feature Pack, April 2009" >> >> http://www.microsoft.com/downloads/en/details.aspx?FamilyID=b33d2c78-1 >> 059-4c >> e2-b80d-2343c099bcb4 >> >> and I have got downloaded "Microsoft SQL Server 2008 Management Objects" >> >> "The SQL Server Management Objects (SMO) is a .NET Framework object >> model that enables software developers to create client-side >> applications to manage and administer SQL Server objects and services. >> This object model will work with SQL Server 2000, SQL Server 2005 and SQL > Server 2008." >> >> http://download.microsoft.com/download/0/E/6/0E67502A-22B4-4C47-92D3-0 >> D223F1 >> 17190/SharedManagementObjects.msi >> >> But it doesn't want to setup on my system telling me it's there >> already :) - although I can't see it from VS2010 SP1 project's >> References dialog :( >> >> I'm (re-)searchning my computer files for >> >> Microsoft.SqlServer.Smo >> >> filename now but I doubt this search will get any positive results >> returned... >> >> Could you please advise/guess what am I'm missing? >> >> Thank you. >> >> -- >> Shamil >> > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From shamil at smsconsulting.spb.ru Sat May 7 19:46:21 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sun, 8 May 2011 04:46:21 +0400 Subject: [dba-VB] Microsoft.SqlServer.Smo In-Reply-To: <4DC5A87C.16788.DAB4F6E@stuart.lexacorp.com.pg> References: <0632A25A4F414713973B5CE5E091B71C@nant>, <4DC52BAA.2080602@colbyconsulting.com>, <4FDFCEF827D34B7D8213280BD3E96761@nant> <4DC5A87C.16788.DAB4F6E@stuart.lexacorp.com.pg> Message-ID: <8801D45F717E4478803F7B7FF04C22D5@nant> Hi Stuart -- Yes, SDK is for developers but developers (usually) do make and do deploy software for customers' computer systems therefore the question on the ways of distributing these or that SDK components is legal... Thank you. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: 8 ??? 2011 ?. 0:16 To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Microsoft.SqlServer.Smo SDK = Software Development Kit - emphasis on the Development. There should never be a requirement to deploy it to clients. -- Stuart On 7 May 2011 at 17:09, Shamil Salakhetdinov wrote: > Hi John -- > > Did you try to deploy your SMO-empowered application to the customers' > systems? I mean would that be enough in such a case to deliver to the > customer side only referenced SMO .NET Framework class libraries > deployed locally together with their "parent" custom application, or > the full (.NET Framework) SMO SDK should be also installed/deployed? > > Thank you. > > -- > Shamil > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: 7 ??? 2011 ?. 15:23 To: Discussion concerning Visual Basic and > related programming issues. Subject: Re: [dba-VB] > Microsoft.SqlServer.Smo > > I use SMO extensively! Very cool object. > > John W. Colby > www.ColbyConsulting.com > > On 5/7/2011 5:25 AM, Shamil Salakhetdinov wrote: > > Hi All -- > > > > I have found Microsoft.SqlServer.Smo related assemblies installed on > > my system under > > > > ... \Program Files\Microsoft SQL Server 2005 > > Express\100\SDK\Assemblies. > > > > Issue solved. > > > > Thank you. > > > > -- > > Shamil > > > > -----Original Message----- > > From: dba-vb-bounces at databaseadvisors.com > > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil > > Salakhetdinov Sent: 7 ??? 2011 ?. 12:21 To: 'Discussion concerning > > Visual Basic and related programming issues.' Subject: [dba-VB] > > Microsoft.SqlServer.Smo > > > > Hi All -- > > > > I can't get Microsoft.SqlServer.Smo > > (http://msdn.microsoft.com/en-us/library/microsoft.sqlserver.managem > > en t.smo% 28v=SQL.100%29.aspx) available for my VS2010 SP1 project. > > I have got at "Microsoft SQL Server 2008 Feature Pack, April 2009" > > > > http://www.microsoft.com/downloads/en/details.aspx?FamilyID=b33d2c78 > > -1 059-4c e2-b80d-2343c099bcb4 > > > > and I have got downloaded "Microsoft SQL Server 2008 Management > > Objects" > > > > "The SQL Server Management Objects (SMO) is a .NET Framework object > > model that enables software developers to create client-side > > applications to manage and administer SQL Server objects and > > services. This object model will work with SQL Server 2000, SQL > > Server 2005 and SQL > Server 2008." > > > > http://download.microsoft.com/download/0/E/6/0E67502A-22B4-4C47-92D3 > > -0 D223F1 17190/SharedManagementObjects.msi > > > > But it doesn't want to setup on my system telling me it's there > > already :) - although I can't see it from VS2010 SP1 project's > > References dialog :( > > > > I'm (re-)searchning my computer files for > > > > Microsoft.SqlServer.Smo > > > > filename now but I doubt this search will get any positive results > > returned... > > > > Could you please advise/guess what am I'm missing? > > > > Thank you. > > > > -- > > Shamil > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From shamil at smsconsulting.spb.ru Sat May 7 19:46:21 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sun, 8 May 2011 04:46:21 +0400 Subject: [dba-VB] Microsoft.SqlServer.Smo In-Reply-To: <4DC5E206.80007@colbyconsulting.com> References: <0632A25A4F414713973B5CE5E091B71C@nant> <4DC52BAA.2080602@colbyconsulting.com><4FDFCEF827D34B7D8213280BD3E96761@nant> <4DC5E206.80007@colbyconsulting.com> Message-ID: <9EAAFB9EEAE64D65BB1F97680618AC8C@nant> Hi John -- OK, I will try to test it later within a week or so on customer's PC with MS SQL Server installed but not .NET SMO. Thank you. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: 8 ??? 2011 ?. 4:21 To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Microsoft.SqlServer.Smo I don't know the answer to that. To this point, all of my usage has been for the app we developed for internal use. John W. Colby www.ColbyConsulting.com On 5/7/2011 9:09 AM, Shamil Salakhetdinov wrote: > Hi John -- > > Did you try to deploy your SMO-empowered application to the customers' > systems? > I mean would that be enough in such a case to deliver to the customer > side only referenced SMO .NET Framework class libraries deployed > locally together with their "parent" custom application, or the full > (.NET Framework) SMO SDK should be also installed/deployed? > > Thank you. > > -- > Shamil > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: 7 ??? 2011 ?. 15:23 > To: Discussion concerning Visual Basic and related programming issues. > Subject: Re: [dba-VB] Microsoft.SqlServer.Smo > > I use SMO extensively! Very cool object. > > John W. Colby > www.ColbyConsulting.com > > On 5/7/2011 5:25 AM, Shamil Salakhetdinov wrote: >> Hi All -- >> >> I have found Microsoft.SqlServer.Smo related assemblies installed on >> my system under >> >> ... \Program Files\Microsoft SQL Server 2005 Express\100\SDK\Assemblies. >> >> Issue solved. >> >> Thank you. >> >> -- >> Shamil >> >> -----Original Message----- >> From: dba-vb-bounces at databaseadvisors.com >> [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil >> Salakhetdinov >> Sent: 7 ??? 2011 ?. 12:21 >> To: 'Discussion concerning Visual Basic and related programming issues.' >> Subject: [dba-VB] Microsoft.SqlServer.Smo >> >> Hi All -- >> >> I can't get Microsoft.SqlServer.Smo >> (http://msdn.microsoft.com/en-us/library/microsoft.sqlserver.manageme >> n >> t.smo% >> 28v=SQL.100%29.aspx) available for my VS2010 SP1 project. >> I have got at "Microsoft SQL Server 2008 Feature Pack, April 2009" >> >> http://www.microsoft.com/downloads/en/details.aspx?FamilyID=b33d2c78- >> 1 >> 059-4c >> e2-b80d-2343c099bcb4 >> >> and I have got downloaded "Microsoft SQL Server 2008 Management Objects" >> >> "The SQL Server Management Objects (SMO) is a .NET Framework object >> model that enables software developers to create client-side >> applications to manage and administer SQL Server objects and services. >> This object model will work with SQL Server 2000, SQL Server 2005 and >> SQL > Server 2008." >> >> http://download.microsoft.com/download/0/E/6/0E67502A-22B4-4C47-92D3- >> 0 >> D223F1 >> 17190/SharedManagementObjects.msi >> >> But it doesn't want to setup on my system telling me it's there >> already :) - although I can't see it from VS2010 SP1 project's >> References dialog :( >> >> I'm (re-)searchning my computer files for >> >> Microsoft.SqlServer.Smo >> >> filename now but I doubt this search will get any positive results >> returned... >> >> Could you please advise/guess what am I'm missing? >> >> Thank you. >> >> -- >> Shamil >> > From jwcolby at colbyconsulting.com Mon May 9 10:43:38 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 09 May 2011 11:43:38 -0400 Subject: [dba-VB] C# Excel automation Message-ID: <4DC80BAA.4000100@colbyconsulting.com> We are trying to automate Excel from C# but we are unable to correctly close the excel object itself. IOW it is still seen in the process list. Paul has found information about marshal.releasecomobject and is doing that for every object he is even touching but something is still not working. Can anyone provide a simple example of opening a workbook, and reading a set of cells out of a worksheet, then cleaning up and closing Excel. TIA for your assistance. -- John W. Colby www.ColbyConsulting.com From dbdoug at gmail.com Mon May 9 11:17:00 2011 From: dbdoug at gmail.com (Doug Steele) Date: Mon, 9 May 2011 09:17:00 -0700 Subject: [dba-VB] C# Excel automation In-Reply-To: <4DC80BAA.4000100@colbyconsulting.com> References: <4DC80BAA.4000100@colbyconsulting.com> Message-ID: John, I can't find it quickly but I know there was a big discussion about this on the Access list a while back. Doug On Mon, May 9, 2011 at 8:43 AM, jwcolby wrote: > We are trying to automate Excel from C# but we are unable to correctly close > the excel object itself. ?IOW it is still seen in the process list. > > Paul has found information about marshal.releasecomobject and is doing that > for every object he is even touching but something is still not working. > > Can anyone provide a simple example of opening a workbook, and reading a set > of cells out of a worksheet, then cleaning up and closing Excel. > > TIA for your assistance. > > -- > John W. Colby > www.ColbyConsulting.com > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From df.waters at comcast.net Mon May 9 12:02:24 2011 From: df.waters at comcast.net (Dan Waters) Date: Mon, 9 May 2011 12:02:24 -0500 Subject: [dba-VB] C# Excel automation In-Reply-To: <4DC80BAA.4000100@colbyconsulting.com> References: <4DC80BAA.4000100@colbyconsulting.com> Message-ID: <004201cc0e6a$e0a4a2f0$a1ede8d0$@comcast.net> Hi John, I've had this issue too. It's almost certainly that somewhere in your code you are missing an Excel object qualifier. Also take a look at the sequence of opening and closing the Workbook and the instance of Excel. Another issue is that if the PC already has Excel open, then the workbook you create will be contained within the instance of Excel, and it turns out that it's about impossible for your code to loop through the different workbooks. The best plan is probably to look for an instance of Excel and close it with save = true. Then open your workbook and you should be fine. You'll need to tell your users what's going to happen (and maybe ask by message if they want to continue), and/or put up a message if you need to close/save an already open instance of Excel. See this code: '----------------- Private Sub FormatSpreadsheetDemo(stgPath As String) Dim objExcel As Object Dim objWorkbook As Object ' Dim objExcel As Excel.Application '-- TEST ' Dim objWorkbook As Excel.Workbook '-- TEST If IsNull(stgPath) Or stgPath = "" Then Exit Sub Set objExcel = CreateObject("Excel.Application") '-- for troubleshooting ' objExcel.Visible = true '-- TEST ' objExcel.ActiveWindow.WindowState = xlMaximized '-- TEST Set objWorkbook = objExcel.Workbooks.Open(stgPath) '-- Format objExcel.Rows("1:1").Select objExcel.Selection.Font.Bold = True objExcel.Cells.Select objExcel.Selection.Font.Name = "Tahoma" objExcel.Selection.Font.Size = 10 objExcel.Cells.EntireColumn.AutoFit '-- Freeze rows If InStr(stgPath, "Backups") = 0 Then objExcel.Range("A2").Select Else objExcel.Range("B2").Select End If objExcel.ActiveWindow.FreezePanes = True objExcel.ActiveWindow.WindowState = xlMaximized '-- Change column format If InStr(stgPath, "Activity") <> 0 Then objExcel.Columns("E:E").Select objExcel.Selection.NumberFormat = "[$-409]h:mm AM/PM;@" objExcel.Columns("G:G").Select objExcel.Selection.NumberFormat = "[$-409]h:mm AM/PM;@" End If '-- Select upper left cell objExcel.Range("A1").Select '-- Save & Quit objWorkbook.Save objWorkbook.Close objExcel.Quit Set objWorkbook = Nothing Set objExcel = Nothing Exit Sub ErrEx.Bookmark = BOOKMARK_ONERROR End Sub '------------------ -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Monday, May 09, 2011 10:44 AM To: VBA Subject: [dba-VB] C# Excel automation We are trying to automate Excel from C# but we are unable to correctly close the excel object itself. IOW it is still seen in the process list. Paul has found information about marshal.releasecomobject and is doing that for every object he is even touching but something is still not working. Can anyone provide a simple example of opening a workbook, and reading a set of cells out of a worksheet, then cleaning up and closing Excel. TIA for your assistance. -- John W. Colby www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Mon May 9 12:22:59 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 09 May 2011 13:22:59 -0400 Subject: [dba-VB] C# Excel automation In-Reply-To: <004201cc0e6a$e0a4a2f0$a1ede8d0$@comcast.net> References: <4DC80BAA.4000100@colbyconsulting.com> <004201cc0e6a$e0a4a2f0$a1ede8d0$@comcast.net> Message-ID: <4DC822F3.60609@colbyconsulting.com> Is this VBA or VB.Net? John W. Colby www.ColbyConsulting.com On 5/9/2011 1:02 PM, Dan Waters wrote: > Hi John, > > I've had this issue too. It's almost certainly that somewhere in your code > you are missing an Excel object qualifier. Also take a look at the sequence > of opening and closing the Workbook and the instance of Excel. > > Another issue is that if the PC already has Excel open, then the workbook > you create will be contained within the instance of Excel, and it turns out > that it's about impossible for your code to loop through the different > workbooks. The best plan is probably to look for an instance of Excel and > close it with save = true. Then open your workbook and you should be fine. > You'll need to tell your users what's going to happen (and maybe ask by > message if they want to continue), and/or put up a message if you need to > close/save an already open instance of Excel. > > See this code: > > '----------------- > Private Sub FormatSpreadsheetDemo(stgPath As String) > > Dim objExcel As Object > Dim objWorkbook As Object > ' Dim objExcel As Excel.Application '-- TEST > ' Dim objWorkbook As Excel.Workbook '-- TEST > > If IsNull(stgPath) Or stgPath = "" Then Exit Sub > > Set objExcel = CreateObject("Excel.Application") > > '-- for troubleshooting > ' objExcel.Visible = true '-- TEST > ' objExcel.ActiveWindow.WindowState = xlMaximized '-- TEST > > Set objWorkbook = objExcel.Workbooks.Open(stgPath) > > '-- Format > objExcel.Rows("1:1").Select > objExcel.Selection.Font.Bold = True > objExcel.Cells.Select > objExcel.Selection.Font.Name = "Tahoma" > objExcel.Selection.Font.Size = 10 > objExcel.Cells.EntireColumn.AutoFit > > '-- Freeze rows > If InStr(stgPath, "Backups") = 0 Then > objExcel.Range("A2").Select > Else > objExcel.Range("B2").Select > End If > objExcel.ActiveWindow.FreezePanes = True > objExcel.ActiveWindow.WindowState = xlMaximized > > '-- Change column format > If InStr(stgPath, "Activity")<> 0 Then > objExcel.Columns("E:E").Select > objExcel.Selection.NumberFormat = "[$-409]h:mm AM/PM;@" > objExcel.Columns("G:G").Select > objExcel.Selection.NumberFormat = "[$-409]h:mm AM/PM;@" > End If > > '-- Select upper left cell > objExcel.Range("A1").Select > > '-- Save& Quit > objWorkbook.Save > objWorkbook.Close > objExcel.Quit > > Set objWorkbook = Nothing > Set objExcel = Nothing > > Exit Sub > ErrEx.Bookmark = BOOKMARK_ONERROR > > End Sub > '------------------ > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Monday, May 09, 2011 10:44 AM > To: VBA > Subject: [dba-VB] C# Excel automation > > We are trying to automate Excel from C# but we are unable to correctly close > the excel object itself. IOW it is still seen in the process list. > > Paul has found information about marshal.releasecomobject and is doing that > for every object he is even touching but something is still not working. > > Can anyone provide a simple example of opening a workbook, and reading a set > of cells out of a worksheet, then cleaning up and closing Excel. > > TIA for your assistance. > > -- > John W. Colby > www.ColbyConsulting.com > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From df.waters at comcast.net Tue May 10 15:48:45 2011 From: df.waters at comcast.net (Dan Waters) Date: Tue, 10 May 2011 15:48:45 -0500 Subject: [dba-VB] Button Images - Where to Find? Message-ID: <000001cc0f53$a9ca2040$fd5e60c0$@comcast.net> In .Net for windows form is there a standard set of images for buttons like Access has? I'd hate to have to create left arrow and a right arrow images. Thanks! Dan From michael at ddisolutions.com.au Wed May 11 03:09:03 2011 From: michael at ddisolutions.com.au (Michael Maddison) Date: Wed, 11 May 2011 18:09:03 +1000 Subject: [dba-VB] Button Images - Where to Find? References: <000001cc0f53$a9ca2040$fd5e60c0$@comcast.net> Message-ID: <99266C61B516644D9727F983FAFAB4650863CA@remote.ddisolutions.com.au> I don't think so. There are heaps of free ones out there though. Cheers Michael M -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, 11 May 2011 6:49 AM To: 'Discussion concerning Visual Basic and related programming issues.' Subject: [dba-VB] Button Images - Where to Find? In .Net for windows form is there a standard set of images for buttons like Access has? I'd hate to have to create left arrow and a right arrow images. Thanks! Dan _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com ----- No virus found in this message. Checked by AVG - www.avg.com Version: 10.0.1375 / Virus Database: 1500/3629 - Release Date: 05/10/11 From shamil at smsconsulting.spb.ru Wed May 11 04:32:17 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Wed, 11 May 2011 13:32:17 +0400 Subject: [dba-VB] Button Images - Where to Find? In-Reply-To: <000001cc0f53$a9ca2040$fd5e60c0$@comcast.net> References: <000001cc0f53$a9ca2040$fd5e60c0$@comcast.net> Message-ID: Hi Dan -- For left- and right- arrow buttons you might try the following "trick": - create winform/usercontrol and bind it to a datasource - you'll get {{DataSetName}}_BindingNavigator. Now you can export button images into .png format from that BindingNavigator's resource file, which will be part of hosting winform/usercontrol resource file - {{WinFormName/WinFromsuserControlName}}.resx - just open resource file using designer, right-click button image, select 'Export To File...'... Here is xml of MovePrevious button's resource (JFI): iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACx jwv8 YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAL1JREFUOE9j YBgy ILz9wX+yHRvf/eB/cMM18gyI73n4f+n+///9qy+QbkBE+32w5sxZ//97lZ4gzYDQ1ntgza3rgLZ3 /v3v kn+AeAOCW+7+X7T3//8OoOaMOT//29X9/G+fsZ14A0ChbVd8+3/6nN///bu+/dcpfPffImE9aQaA DNFP Of/fpOjFf5WsT/+NI5eRbgDIEIOkE/9l077+1w2eR54BYJekXv6v4TuNfANAhqh4TKDMALKTMc01 AgDQ FGCYkuTLEQAAAABJRU5ErkJggg== Thank you. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: 11 ??? 2011 ?. 0:49 To: 'Discussion concerning Visual Basic and related programming issues.' Subject: [dba-VB] Button Images - Where to Find? In .Net for windows form is there a standard set of images for buttons like Access has? I'd hate to have to create left arrow and a right arrow images. Thanks! Dan From jwcolby at colbyconsulting.com Wed May 11 09:57:49 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 11 May 2011 10:57:49 -0400 Subject: [dba-VB] C# Outlook Automation Message-ID: <4DCAA3ED.1050007@colbyconsulting.com> Has anyone found C# code to emulate the ClickYes program? I found something in VB5/6 for building a program that sits in the toolbar but it seems that if you can do that, then you could just as easily look for the pop-up right in your own code and click the yes button. Just thought I'd check here before re-inventing the wheel. -- John W. Colby www.ColbyConsulting.com From df.waters at comcast.net Wed May 11 10:46:41 2011 From: df.waters at comcast.net (Dan Waters) Date: Wed, 11 May 2011 10:46:41 -0500 Subject: [dba-VB] C# Outlook Automation In-Reply-To: <4DCAA3ED.1050007@colbyconsulting.com> References: <4DCAA3ED.1050007@colbyconsulting.com> Message-ID: <000901cc0ff2$a3755620$ea600260$@comcast.net> Hi John, This is a VBA module to automatically push the ClickYes button - I have not used this. Might have some useful content. Came from: http://www.contextmagic.com/express-clickyes/ '---------------------------- Option Compare Database Option Explicit '-- Declare Windows' API functions Private Declare Function RegisterWindowMessage Lib "User32" Alias "RegisterWindowMessageA" (ByVal lpString As String) As Long Private Declare Function FindWindow Lib "User32" Alias "FindWindowA" (ByVal lpClassName As Any, ByVal lpWindowName As Any) As Long Private Declare Function SendMessage Lib "User32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long Public Function pfSendUsingObject() Dim blnPreview As Boolean '-- If you do want to preview then you do not need the ClickYes stuff. _ but if you don't want to preview and you just want to send it without being informed that _ it is being sent, then use the ClickYes stuff. blnPreview = False If blnPreview Then DoCmd.SendObject acSendNoObject, , , "max.wanadoo at gmail.com", , , "Subject", "Text Body", blnPreview Else Call fStartClickYes(True) DoCmd.SendObject acSendNoObject, , , "max.wanadoo at gmail.com", , , "Subject", "Text Body", blnPreview Call fStartClickYes(False) End If End Function Public Function fStartClickYes(bStart As Boolean) '-- Here is some vba code that starts and stops clickyes in the systray ' download from here and install. The A2k7 version is not free. _ http://www.contextmagic.com/express-clickyes/ Dim lngWnd As Long Dim lngClickYes As Long Dim lngResume As Long '-- Register a message to send lngClickYes = RegisterWindowMessage("CLICKYES_SUSPEND_RESUME") '-- Find ClickYes Window by classname lngWnd = FindWindow("EXCLICKYES_WND", 0&) If bStart Then '-- Send the message to Resume ClickYes lngResume = SendMessage(lngWnd, lngClickYes, 1, 0) Else ' Send the message to Suspend ClickYes lngResume = SendMessage(lngWnd, lngClickYes, 0, 0) End If End Function '---------------------------- -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, May 11, 2011 9:58 AM To: VBA Subject: [dba-VB] C# Outlook Automation Has anyone found C# code to emulate the ClickYes program? I found something in VB5/6 for building a program that sits in the toolbar but it seems that if you can do that, then you could just as easily look for the pop-up right in your own code and click the yes button. Just thought I'd check here before re-inventing the wheel. -- John W. Colby www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Wed May 11 12:28:17 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 11 May 2011 13:28:17 -0400 Subject: [dba-VB] C# Outlook Automation In-Reply-To: <000901cc0ff2$a3755620$ea600260$@comcast.net> References: <4DCAA3ED.1050007@colbyconsulting.com> <000901cc0ff2$a3755620$ea600260$@comcast.net> Message-ID: <4DCAC731.4040708@colbyconsulting.com> I know about ClickYes and might use that, however the free version does not support anything past Access 2003. John W. Colby www.ColbyConsulting.com On 5/11/2011 11:46 AM, Dan Waters wrote: > Hi John, > > This is a VBA module to automatically push the ClickYes button - I have not > used this. Might have some useful content. Came from: > http://www.contextmagic.com/express-clickyes/ > > '---------------------------- > Option Compare Database > Option Explicit > > '-- Declare Windows' API functions > Private Declare Function RegisterWindowMessage Lib "User32" Alias > "RegisterWindowMessageA" (ByVal lpString As String) As Long > Private Declare Function FindWindow Lib "User32" Alias "FindWindowA" (ByVal > lpClassName As Any, ByVal lpWindowName As Any) As Long > Private Declare Function SendMessage Lib "User32" Alias "SendMessageA" > (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As > Any) As Long > > Public Function pfSendUsingObject() > > Dim blnPreview As Boolean > > '-- If you do want to preview then you do not need the ClickYes stuff. _ > but if you don't want to preview and you just want to send it > without being informed that _ > it is being sent, then use the ClickYes stuff. > > blnPreview = False > > If blnPreview Then > DoCmd.SendObject acSendNoObject, , , "max.wanadoo at gmail.com", , , > "Subject", "Text Body", blnPreview > Else > Call fStartClickYes(True) > DoCmd.SendObject acSendNoObject, , , "max.wanadoo at gmail.com", , , > "Subject", "Text Body", blnPreview > Call fStartClickYes(False) > End If > > End Function > > Public Function fStartClickYes(bStart As Boolean) > > '-- Here is some vba code that starts and stops clickyes in the systray > ' download from here and install. The A2k7 version is not free. _ > http://www.contextmagic.com/express-clickyes/ > > Dim lngWnd As Long > Dim lngClickYes As Long > Dim lngResume As Long > > '-- Register a message to send > lngClickYes = RegisterWindowMessage("CLICKYES_SUSPEND_RESUME") > > '-- Find ClickYes Window by classname > lngWnd = FindWindow("EXCLICKYES_WND", 0&) > > If bStart Then > '-- Send the message to Resume ClickYes > lngResume = SendMessage(lngWnd, lngClickYes, 1, 0) > Else > ' Send the message to Suspend ClickYes > lngResume = SendMessage(lngWnd, lngClickYes, 0, 0) > End If > > End Function > > '---------------------------- > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Wednesday, May 11, 2011 9:58 AM > To: VBA > Subject: [dba-VB] C# Outlook Automation > > Has anyone found C# code to emulate the ClickYes program? I found something > in VB5/6 for building a program that sits in the toolbar but it seems that > if you can do that, then you could just as easily look for the pop-up right > in your own code and click the yes button. > > Just thought I'd check here before re-inventing the wheel. > > -- > John W. Colby > www.ColbyConsulting.com > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From df.waters at comcast.net Wed May 11 13:04:56 2011 From: df.waters at comcast.net (Dan Waters) Date: Wed, 11 May 2011 13:04:56 -0500 Subject: [dba-VB] Button Images - Found! Message-ID: <000e01cc1005$f0d9fac0$d28df040$@comcast.net> Shamil & Michael, OK - I finally found these. They are in the following folder. C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\VS2010ImageLibrary\1033\VS2010ImageLibrary\Actions\png_format\O ffice and VS First, under the 1033 folder, you'll need to unzip the VS2010ImageLibrary folder. Next, in the button's Image property, select the ellipsis. In the next window, select Project Resource file, then push Import and navigate to the above folder. When you select an image, it will be copied to your project under a Resources folder. There is also a way (I didn't pursue for now) to create your own Image List, which you can use to assign an image to a control. I'm guessing that the Image List can be used for multiple Projects so you can save some time and also have your own set of images to use consistently in all your projects. Also, there are many other image folders that contain other types of images. Thanks! Dan -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, May 10, 2011 3:49 PM To: 'Discussion concerning Visual Basic and related programming issues.' Subject: [dba-VB] Button Images - Where to Find? In .Net for windows form is there a standard set of images for buttons like Access has? I'd hate to have to create left arrow and a right arrow images. Thanks! Dan _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu May 12 14:28:03 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 12 May 2011 15:28:03 -0400 Subject: [dba-VB] =?windows-1252?q?LSI_MegaRAID_SAS/SATA_9265-8i_6Gb/s_PCI?= =?windows-1252?q?e_RAID_Card_Review_=96_Performance_Unleashed!_=7C_The_SS?= =?windows-1252?q?D_Review?= Message-ID: <4DCC34C3.4080302@colbyconsulting.com> -- John W. Colby www.ColbyConsulting.com http://thessdreview.com/our-reviews/lsi-megaraid-sassata-9265-8i-6gbs-pcie-raid-controller-card-review/ From df.waters at comcast.net Tue May 17 09:53:25 2011 From: df.waters at comcast.net (Dan Waters) Date: Tue, 17 May 2011 09:53:25 -0500 Subject: [dba-VB] Good News for .Net Developers Message-ID: <000301cc14a2$2cfda6a0$86f8f3e0$@comcast.net> Mono is an open-source implementation of .Net which was owned by Novell/Attachmate until a week ago. All the members of the Mono teams were let go. The founder of Mono has restarted his effort, with the same team members, as an independent company named Xamarin. Looks like good news for .Net developers! http://www.zdnet.com/blog/microsoft/mono-lives-in-new-startup-xamarin/9465 Dan From accessd at shaw.ca Tue May 17 10:17:30 2011 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 17 May 2011 08:17:30 -0700 Subject: [dba-VB] Good News for .Net Developers In-Reply-To: <000301cc14a2$2cfda6a0$86f8f3e0$@comcast.net> References: <000301cc14a2$2cfda6a0$86f8f3e0$@comcast.net> Message-ID: Excellent! Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, May 17, 2011 7:53 AM To: 'Discussion concerning Visual Basic and related programming issues.' Subject: [dba-VB] Good News for .Net Developers Mono is an open-source implementation of .Net which was owned by Novell/Attachmate until a week ago. All the members of the Mono teams were let go. The founder of Mono has restarted his effort, with the same team members, as an independent company named Xamarin. Looks like good news for .Net developers! http://www.zdnet.com/blog/microsoft/mono-lives-in-new-startup-xamarin/9465 Dan _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From df.waters at comcast.net Tue May 17 16:00:22 2011 From: df.waters at comcast.net (Dan Waters) Date: Tue, 17 May 2011 16:00:22 -0500 Subject: [dba-VB] Listbox on VB.Net Form - How to Display Data Correctly? Message-ID: <001b01cc14d5$707a3af0$516eb0d0$@comcast.net> I'm making my first .net form with existing data and I'm having trouble getting the listbox to display correctly. Been looking through all my books and doing lots of web searches, but no real answer. The form has a TurnbackMainBindingSource which uses a DataSource named TurnbackMain. TurnbackMain is an object in a Linq to SQL DataContext (.dbml file). I have two list boxes, both of which use an items collection entered via property sheet. The Severity listbox has choices 1, 2, 3. The QD listbox has choices Quality, Delivery. Both listboxes, have the SelectedItem set to TurnbackMainBindingSource - Severity and TurnbackMainBindingSource - QD, respectively. The comboboxes and textboxes have similar values in the Text property, but the listbox does not have a Text property in the property sheet. As I use the Navigation toolbar to move the form through the records, I want the listboxes to display like Access does, which I assume is the way a listbox should in .Net as well. What happens: For the QD listbox, as I scroll through the records, the Quality or Delivery item is highlighted, if the underlying data is not null. If the underlying data is null, then whatever was highlighted for the previous record remains highlighted. For the Severity listbox, there is no highlighting at all. For the comboboxes and textboxes, what's displayed matches the underlying data. The underlying data for QD is string, the underlying data for Severity is numeric. Is there a way to make this happen correctly without writing any code in the form's afterupdate event? If no, then what code is needed? Thanks! Dan From Gustav at cactus.dk Wed May 18 05:30:27 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 18 May 2011 12:30:27 +0200 Subject: [dba-VB] Listbox on VB.Net Form - How to Display Data Correctly? Message-ID: Hi Dan At the row enter event you may need to include code to clear the combo. C# only, but you sure get the picture: private void dataGridView1_RowEnter(object sender, DataGridViewCellEventArgs e) { // Row to look up is the current row. int rowIndex = e.RowIndex; // Column in row to look up Id of Supplier. int columnId = 0; _supplierId = Convert.ToInt32(dataGridView1.Rows[rowIndex].Cells[columnId].Value); this.FindCurrentCustomer(); } private void FindCurrentCustomer() { DataRow[] customerSupplier = _customerSupplierDataTable.Select("SupplierId = " + _supplierId.ToString()); if (customerSupplier.Length == 0) { _customerId = -1; // Erase display. this.comboBoxCustomer.Text = null; } else { _customerId = Convert.ToInt32(customerSupplier[0]["CustomerId"].ToString()); } this.comboBoxCustomer.SelectedValue = _customerId; } /gustav >>> "Dan Waters" 17-05-2011 23:00 >>> I'm making my first .net form with existing data and I'm having trouble getting the listbox to display correctly. Been looking through all my books and doing lots of web searches, but no real answer. The form has a TurnbackMainBindingSource which uses a DataSource named TurnbackMain. TurnbackMain is an object in a Linq to SQL DataContext (.dbml file). I have two list boxes, both of which use an items collection entered via property sheet. The Severity listbox has choices 1, 2, 3. The QD listbox has choices Quality, Delivery. Both listboxes, have the SelectedItem set to TurnbackMainBindingSource - Severity and TurnbackMainBindingSource - QD, respectively. The comboboxes and textboxes have similar values in the Text property, but the listbox does not have a Text property in the property sheet. As I use the Navigation toolbar to move the form through the records, I want the listboxes to display like Access does, which I assume is the way a listbox should in .Net as well. What happens: For the QD listbox, as I scroll through the records, the Quality or Delivery item is highlighted, if the underlying data is not null. If the underlying data is null, then whatever was highlighted for the previous record remains highlighted. For the Severity listbox, there is no highlighting at all. For the comboboxes and textboxes, what's displayed matches the underlying data. The underlying data for QD is string, the underlying data for Severity is numeric. Is there a way to make this happen correctly without writing any code in the form's afterupdate event? If no, then what code is needed? Thanks! Dan From jwcolby at colbyconsulting.com Fri May 20 21:51:22 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 20 May 2011 22:51:22 -0400 Subject: [dba-VB] Setting up a test VM Message-ID: <4DD728AA.8020208@colbyconsulting.com> Using a VM running on my server, I want to emulate as closely as possible a workstation running out on the internet connecting in to my server over Hamachi. I have the VM running but it was part of my workgroup. I changed the workgroup name for the VM but I am still able to access it remote desktop by the machine name which means that very likely the router is using stored info and assigning the VM an IP. I really wanted to isolate it as much as I can from my internal network. I tried assigning the machine an entirely different IP range (192.168.122.x instead of 192.168.1.x) but when I did that it appears that hamachi instantly loses it's tunnel through the firewall. Any suggestions for how to go about making this thing isolated? -- John W. Colby www.ColbyConsulting.com From michael at ddisolutions.com.au Fri May 20 22:43:39 2011 From: michael at ddisolutions.com.au (Michael Maddison) Date: Sat, 21 May 2011 13:43:39 +1000 Subject: [dba-VB] Filemaker to SQL Anyone? Message-ID: <99266C61B516644D9727F983FAFAB46508640E@remote.ddisolutions.com.au> How do I get myself into these messes? Anyone ever used Filemaker Pro? How do I just get all data from table and export it? How do you even SEE all the data from A table? OMG I can't believe its this hard! Cheers Michael M From michael at ddisolutions.com.au Fri May 20 23:13:45 2011 From: michael at ddisolutions.com.au (Michael Maddison) Date: Sat, 21 May 2011 14:13:45 +1000 Subject: [dba-VB] Filemaker to SQL Anyone? Message-ID: <99266C61B516644D9727F983FAFAB46508640F@remote.ddisolutions.com.au> Looks like I need to make a layout with the table option turned on, manually add each field to the layout, export from there! Good grief! Lucky theres only 150 fields... Cheers Michael M -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Michael Maddison Sent: Saturday, 21 May 2011 1:44 PM To: Discussion concerning Visual Basic and related programming issues. Subject: [dba-VB] Filemaker to SQL Anyone? How do I get myself into these messes? Anyone ever used Filemaker Pro? How do I just get all data from table and export it? How do you even SEE all the data from A table? OMG I can't believe its this hard! Cheers Michael M _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com ----- No virus found in this message. Checked by AVG - www.avg.com Version: 10.0.1375 / Virus Database: 1509/3649 - Release Date: 05/20/11 From gustav at cactus.dk Sun May 22 12:50:05 2011 From: gustav at cactus.dk (Gustav Brock) Date: Sun, 22 May 2011 19:50:05 +0200 Subject: [dba-VB] XML documentation builder: Sandcastle Message-ID: Hi all I was about reinstalling this splendid tool as I came across "The guided installation of Sandcastle" which I haven't seen before: http://shfb.codeplex.com/releases/view/62064 which walks you through the download and install of every needed package. Highly recommended! Sandcastle nearly makes it fun to document your code and the generated output looks exactly like what you see from MS. /gustav From DWUTKA at Marlow.com Mon May 23 11:50:35 2011 From: DWUTKA at Marlow.com (Drew Wutka) Date: Mon, 23 May 2011 11:50:35 -0500 Subject: [dba-VB] Setting up a test VM In-Reply-To: <4DD728AA.8020208@colbyconsulting.com> References: <4DD728AA.8020208@colbyconsulting.com> Message-ID: There really is no way to 'simulate' an 'external client', on a home router. Your internet connection is coming in one port, and is going through one set of rules. So unless that router is VERY programmable, then the best you can do, as far as I can think of, is to create a routed connection in from another subnet. Of course, the EASIEST way to do what you are trying to do, is just go out and buy an aircard (a usb device that connects to the internet), or, if you can 'share' your phone's internet connection, you can use that as an external connection. And setup your VM to ACTUALLY use an internet connection other than your normal ISP. Drew -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, May 20, 2011 9:51 PM To: Access Developers discussion and problem solving; VBA Subject: [dba-VB] Setting up a test VM Using a VM running on my server, I want to emulate as closely as possible a workstation running out on the internet connecting in to my server over Hamachi. I have the VM running but it was part of my workgroup. I changed the workgroup name for the VM but I am still able to access it remote desktop by the machine name which means that very likely the router is using stored info and assigning the VM an IP. I really wanted to isolate it as much as I can from my internal network. I tried assigning the machine an entirely different IP range (192.168.122.x instead of 192.168.1.x) but when I did that it appears that hamachi instantly loses it's tunnel through the firewall. Any suggestions for how to go about making this thing isolated? -- John W. Colby www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From marklbreen at gmail.com Tue May 24 05:27:44 2011 From: marklbreen at gmail.com (Mark Breen) Date: Tue, 24 May 2011 11:27:44 +0100 Subject: [dba-VB] Setting up a test VM In-Reply-To: References: <4DD728AA.8020208@colbyconsulting.com> Message-ID: Or another easy way is to ask someone here on AccessD to connect to you hamachi network, install the access client and connect across the atlantic ! That would be heavy testing for the client :) Mark On 23 May 2011 17:50, Drew Wutka wrote: > There really is no way to 'simulate' an 'external client', on a home > router. Your internet connection is coming in one port, and is going > through one set of rules. So unless that router is VERY programmable, > then the best you can do, as far as I can think of, is to create a > routed connection in from another subnet. > > Of course, the EASIEST way to do what you are trying to do, is just go > out and buy an aircard (a usb device that connects to the internet), or, > if you can 'share' your phone's internet connection, you can use that as > an external connection. And setup your VM to ACTUALLY use an internet > connection other than your normal ISP. > > Drew > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Friday, May 20, 2011 9:51 PM > To: Access Developers discussion and problem solving; VBA > Subject: [dba-VB] Setting up a test VM > > Using a VM running on my server, I want to emulate as closely as > possible a workstation running out > on the internet connecting in to my server over Hamachi. I have the VM > running but it was part of > my workgroup. I changed the workgroup name for the VM but I am still > able to access it remote > desktop by the machine name which means that very likely the router is > using stored info and > assigning the VM an IP. I really wanted to isolate it as much as I can > from my internal network. > > I tried assigning the machine an entirely different IP range > (192.168.122.x instead of 192.168.1.x) > but when I did that it appears that hamachi instantly loses it's tunnel > through the firewall. > > Any suggestions for how to go about making this thing isolated? > > -- > John W. Colby > www.ColbyConsulting.com > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > The information contained in this transmission is intended only for the > person or entity > to which it is addressed and may contain II-VI Proprietary and/or II-VI > Business > Sensitive material. If you are not the intended recipient, please contact > the sender > immediately and destroy the material in its entirety, whether electronic or > hard copy. > You are notified that any review, retransmission, copying, disclosure, > dissemination, > or other use of, or taking of any action in reliance upon this information > by persons > or entities other than the intended recipient is prohibited. > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From jwcolby at colbyconsulting.com Fri May 27 09:53:53 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 27 May 2011 10:53:53 -0400 Subject: [dba-VB] redemption Message-ID: <4DDFBB01.5060602@colbyconsulting.com> We are trying to use Redemption (outlook) to get around the MS security nonsense. We are using the RDO portion because the SafeMail object (Outlook) side of redemption was missing the mail.subject property msg.move for moving a message from folder to another. The RDO does have those things. We are still having two specific problems. 1) We are unable to find a way to cause RDO to download the mail, thus the MailReceived event never fires. As a result we are currently opening outlook and setting it up to download every 1 minute. Clumsy! 2) RDO.Msg.Move moves the message but we can't see it in the folder it was moved to. IOW if we move a bunch of mail items then go look in the folder that the mail items were put into, the collection doesn't show it as being there. If in Outlook we click on that folder, *then* back in our code the folder shows the mail items as being in the folder. If anyone is using this stuff please feel free to comment. Thanks, -- John W. Colby www.ColbyConsulting.com From mikedorism at verizon.net Tue May 31 11:24:20 2011 From: mikedorism at verizon.net (Doris Manning) Date: Tue, 31 May 2011 12:24:20 -0400 Subject: [dba-VB] redemption In-Reply-To: <4DDFBB01.5060602@colbyconsulting.com> References: <4DDFBB01.5060602@colbyconsulting.com> Message-ID: <704BE61E43064893905FD26C21CC8595@hargrove.internal> John, I do use Redemption but not any of the features you are trying to use. Have you tried contacting Dmitri personally? He is usually very quick to respond whenever I've had questions. Doris Manning Senior Developer/Database Administrator Hargrove Inc. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, May 27, 2011 10:54 AM To: Access Developers discussion and problem solving; VBA Subject: [dba-VB] redemption We are trying to use Redemption (outlook) to get around the MS security nonsense. We are using the RDO portion because the SafeMail object (Outlook) side of redemption was missing the mail.subject property msg.move for moving a message from folder to another. The RDO does have those things. We are still having two specific problems. 1) We are unable to find a way to cause RDO to download the mail, thus the MailReceived event never fires. As a result we are currently opening outlook and setting it up to download every 1 minute. Clumsy! 2) RDO.Msg.Move moves the message but we can't see it in the folder it was moved to. IOW if we move a bunch of mail items then go look in the folder that the mail items were put into, the collection doesn't show it as being there. If in Outlook we click on that folder, *then* back in our code the folder shows the mail items as being in the folder. If anyone is using this stuff please feel free to comment. Thanks, -- John W. Colby www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From stuart at lexacorp.com.pg Fri May 6 08:13:27 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 06 May 2011 23:13:27 +1000 Subject: [dba-VB] Back to native Code? In-Reply-To: References: Message-ID: <4DC3F3F7.938.70227B0@stuart.lexacorp.com.pg> Is the romance with .Net and managed code on it's way out? Is the "next big thing" going to be a return to native code? http://www.zdnet.com/blog/microsoft/what-is-winc-and-how-does-it-figure-in-microsofts-bid-to -make-tools-a-2-billion-business/9359 or Short URL: http://goo.gl/qRTUB -- Stuart From accessd at shaw.ca Fri May 6 17:58:20 2011 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 6 May 2011 15:58:20 -0700 Subject: [dba-VB] Back to native Code? In-Reply-To: <4DC3F3F7.938.70227B0@stuart.lexacorp.com.pg> References: <4DC3F3F7.938.70227B0@stuart.lexacorp.com.pg> Message-ID: <61323A1825D9472EAD300900B45D455C@creativesystemdesigns.com> I doubt whether it is on it way out but I do think MS has to realize that not everyone sees .Net as the way to salvation. Companies like Amazon, Google and even Oracle are completed committed to Java development are regardless of the temptation are not about to switch. Then there are companies like FaceBook which are completely committed to PHP. There is a massive base of there languages and that is for a number of reasons. First, the languages are Open Source which means everyone regardless of the finances can get into the product. This is particularly attractive to university students who traditionally have no money and that is important as these people are the future of the programming world. Second, the languages are not tied to a specific version of Windows and/or Framework. A .Net application that will run on a Server2008 will not necessarily run on Server2003. There is a lot of investment in development and no programmer wants to loss 10 years of their lives due to someone's idea of an improvement. Third, the .Net language is not portable. IOW they can only run on one platform. Linux's penetration of the desktop market may not be that large but in the Server market Linux is king. Until recently, there was a parallel project running under the old Novell, to create and support a Linux .Net but after its purchase by Attachmate, the project has been abandoned. MS may not realize it but this will hurt .Net on Windows as well. Fourth, Open Source products have one big advantage over controlled factory type languages and that is the speed of bug resolution. A bug appears on Thursday and a solution is posted on Saturday. Every time a major OS product has an issue, 1200 university student whip into the source code to be the first person to arrive at a viable solution. Fifth, languages that have been around for a while have been used to create and support many large and small projects and applications. That is a huge investment and major companies are loathed to abandoned migrate without a very good reason. Example: there are many large accounting system that have been written in Cobol and some companies still have stable of Cobol programmers working for them. Sixth, good desktop centric languages are not nearly as important as they were 10 years ago. People are looking for languages that are web server supporting and can be extended to browser based environments. To that end ASP.Net does an acceptable job at this level of support but, its deployment coupled with IEx does not necessarily comply with new the industry standards, in CSS3, HTML5 and now WebGL. C++ was at one time a product belonging to MS/Borland but that has dramatically changed with Open Source C/C++ compilers available. Now it is cross-platform and now its future is assured. Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, May 06, 2011 6:13 AM To: Discussion concerning Visual Basic and related programming issues. Subject: [dba-VB] Back to native Code? Is the romance with .Net and managed code on it's way out? Is the "next big thing" going to be a return to native code? http://www.zdnet.com/blog/microsoft/what-is-winc-and-how-does-it-figure-in-m icrosofts-bid-to -make-tools-a-2-billion-business/9359 or Short URL: http://goo.gl/qRTUB -- Stuart _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From shamil at smsconsulting.spb.ru Sat May 7 03:21:28 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sat, 7 May 2011 12:21:28 +0400 Subject: [dba-VB] Microsoft.SqlServer.Smo Message-ID: <0632A25A4F414713973B5CE5E091B71C@nant> Hi All -- I can't get Microsoft.SqlServer.Smo (http://msdn.microsoft.com/en-us/library/microsoft.sqlserver.management.smo% 28v=SQL.100%29.aspx) available for my VS2010 SP1 project. I have got at "Microsoft SQL Server 2008 Feature Pack, April 2009" http://www.microsoft.com/downloads/en/details.aspx?FamilyID=b33d2c78-1059-4c e2-b80d-2343c099bcb4 and I have got downloaded "Microsoft SQL Server 2008 Management Objects" "The SQL Server Management Objects (SMO) is a .NET Framework object model that enables software developers to create client-side applications to manage and administer SQL Server objects and services. This object model will work with SQL Server 2000, SQL Server 2005 and SQL Server 2008." http://download.microsoft.com/download/0/E/6/0E67502A-22B4-4C47-92D3-0D223F1 17190/SharedManagementObjects.msi But it doesn't want to setup on my system telling me it's there already :) - although I can't see it from VS2010 SP1 project's References dialog :( I'm (re-)searchning my computer files for Microsoft.SqlServer.Smo filename now but I doubt this search will get any positive results returned... Could you please advise/guess what am I'm missing? Thank you. -- Shamil From shamil at smsconsulting.spb.ru Sat May 7 04:25:41 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sat, 7 May 2011 13:25:41 +0400 Subject: [dba-VB] Microsoft.SqlServer.Smo In-Reply-To: <0632A25A4F414713973B5CE5E091B71C@nant> References: <0632A25A4F414713973B5CE5E091B71C@nant> Message-ID: Hi All -- I have found Microsoft.SqlServer.Smo related assemblies installed on my system under ... \Program Files\Microsoft SQL Server 2005 Express\100\SDK\Assemblies. Issue solved. Thank you. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: 7 ??? 2011 ?. 12:21 To: 'Discussion concerning Visual Basic and related programming issues.' Subject: [dba-VB] Microsoft.SqlServer.Smo Hi All -- I can't get Microsoft.SqlServer.Smo (http://msdn.microsoft.com/en-us/library/microsoft.sqlserver.management.smo% 28v=SQL.100%29.aspx) available for my VS2010 SP1 project. I have got at "Microsoft SQL Server 2008 Feature Pack, April 2009" http://www.microsoft.com/downloads/en/details.aspx?FamilyID=b33d2c78-1059-4c e2-b80d-2343c099bcb4 and I have got downloaded "Microsoft SQL Server 2008 Management Objects" "The SQL Server Management Objects (SMO) is a .NET Framework object model that enables software developers to create client-side applications to manage and administer SQL Server objects and services. This object model will work with SQL Server 2000, SQL Server 2005 and SQL Server 2008." http://download.microsoft.com/download/0/E/6/0E67502A-22B4-4C47-92D3-0D223F1 17190/SharedManagementObjects.msi But it doesn't want to setup on my system telling me it's there already :) - although I can't see it from VS2010 SP1 project's References dialog :( I'm (re-)searchning my computer files for Microsoft.SqlServer.Smo filename now but I doubt this search will get any positive results returned... Could you please advise/guess what am I'm missing? Thank you. -- Shamil _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Sat May 7 06:23:22 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 07 May 2011 07:23:22 -0400 Subject: [dba-VB] Microsoft.SqlServer.Smo In-Reply-To: References: <0632A25A4F414713973B5CE5E091B71C@nant> Message-ID: <4DC52BAA.2080602@colbyconsulting.com> I use SMO extensively! Very cool object. John W. Colby www.ColbyConsulting.com On 5/7/2011 5:25 AM, Shamil Salakhetdinov wrote: > Hi All -- > > I have found Microsoft.SqlServer.Smo related assemblies installed on my > system under > > ... \Program Files\Microsoft SQL Server 2005 Express\100\SDK\Assemblies. > > Issue solved. > > Thank you. > > -- > Shamil > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil > Salakhetdinov > Sent: 7 ??? 2011 ?. 12:21 > To: 'Discussion concerning Visual Basic and related programming issues.' > Subject: [dba-VB] Microsoft.SqlServer.Smo > > Hi All -- > > I can't get Microsoft.SqlServer.Smo > (http://msdn.microsoft.com/en-us/library/microsoft.sqlserver.management.smo% > 28v=SQL.100%29.aspx) available for my VS2010 SP1 project. > I have got at "Microsoft SQL Server 2008 Feature Pack, April 2009" > > http://www.microsoft.com/downloads/en/details.aspx?FamilyID=b33d2c78-1059-4c > e2-b80d-2343c099bcb4 > > and I have got downloaded "Microsoft SQL Server 2008 Management Objects" > > "The SQL Server Management Objects (SMO) is a .NET Framework object model > that enables software developers to create client-side applications to > manage and administer SQL Server objects and services. This object model > will work with SQL Server 2000, SQL Server 2005 and SQL Server 2008." > > http://download.microsoft.com/download/0/E/6/0E67502A-22B4-4C47-92D3-0D223F1 > 17190/SharedManagementObjects.msi > > But it doesn't want to setup on my system telling me it's there already :) - > although I can't see it from VS2010 SP1 project's References dialog :( > > I'm (re-)searchning my computer files for > > Microsoft.SqlServer.Smo > > filename now but I doubt this search will get any positive results > returned... > > Could you please advise/guess what am I'm missing? > > Thank you. > > -- > Shamil > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From shamil at smsconsulting.spb.ru Sat May 7 08:09:00 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sat, 7 May 2011 17:09:00 +0400 Subject: [dba-VB] Microsoft.SqlServer.Smo In-Reply-To: <4DC52BAA.2080602@colbyconsulting.com> References: <0632A25A4F414713973B5CE5E091B71C@nant> <4DC52BAA.2080602@colbyconsulting.com> Message-ID: <4FDFCEF827D34B7D8213280BD3E96761@nant> Hi John -- Did you try to deploy your SMO-empowered application to the customers' systems? I mean would that be enough in such a case to deliver to the customer side only referenced SMO .NET Framework class libraries deployed locally together with their "parent" custom application, or the full (.NET Framework) SMO SDK should be also installed/deployed? Thank you. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: 7 ??? 2011 ?. 15:23 To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Microsoft.SqlServer.Smo I use SMO extensively! Very cool object. John W. Colby www.ColbyConsulting.com On 5/7/2011 5:25 AM, Shamil Salakhetdinov wrote: > Hi All -- > > I have found Microsoft.SqlServer.Smo related assemblies installed on > my system under > > ... \Program Files\Microsoft SQL Server 2005 Express\100\SDK\Assemblies. > > Issue solved. > > Thank you. > > -- > Shamil > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil > Salakhetdinov > Sent: 7 ??? 2011 ?. 12:21 > To: 'Discussion concerning Visual Basic and related programming issues.' > Subject: [dba-VB] Microsoft.SqlServer.Smo > > Hi All -- > > I can't get Microsoft.SqlServer.Smo > (http://msdn.microsoft.com/en-us/library/microsoft.sqlserver.managemen > t.smo% > 28v=SQL.100%29.aspx) available for my VS2010 SP1 project. > I have got at "Microsoft SQL Server 2008 Feature Pack, April 2009" > > http://www.microsoft.com/downloads/en/details.aspx?FamilyID=b33d2c78-1 > 059-4c > e2-b80d-2343c099bcb4 > > and I have got downloaded "Microsoft SQL Server 2008 Management Objects" > > "The SQL Server Management Objects (SMO) is a .NET Framework object > model that enables software developers to create client-side > applications to manage and administer SQL Server objects and services. > This object model will work with SQL Server 2000, SQL Server 2005 and SQL Server 2008." > > http://download.microsoft.com/download/0/E/6/0E67502A-22B4-4C47-92D3-0 > D223F1 > 17190/SharedManagementObjects.msi > > But it doesn't want to setup on my system telling me it's there > already :) - although I can't see it from VS2010 SP1 project's > References dialog :( > > I'm (re-)searchning my computer files for > > Microsoft.SqlServer.Smo > > filename now but I doubt this search will get any positive results > returned... > > Could you please advise/guess what am I'm missing? > > Thank you. > > -- > Shamil > From stuart at lexacorp.com.pg Sat May 7 15:15:56 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sun, 08 May 2011 06:15:56 +1000 Subject: [dba-VB] Microsoft.SqlServer.Smo In-Reply-To: <4FDFCEF827D34B7D8213280BD3E96761@nant> References: <0632A25A4F414713973B5CE5E091B71C@nant>, <4DC52BAA.2080602@colbyconsulting.com>, <4FDFCEF827D34B7D8213280BD3E96761@nant> Message-ID: <4DC5A87C.16788.DAB4F6E@stuart.lexacorp.com.pg> SDK = Software Development Kit - emphasis on the Development. There should never be a requirement to deploy it to clients. -- Stuart On 7 May 2011 at 17:09, Shamil Salakhetdinov wrote: > Hi John -- > > Did you try to deploy your SMO-empowered application to the customers' > systems? I mean would that be enough in such a case to deliver to the > customer side only referenced SMO .NET Framework class libraries > deployed locally together with their "parent" custom application, or > the full (.NET Framework) SMO SDK should be also installed/deployed? > > Thank you. > > -- > Shamil > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: 7 ??? 2011 ?. 15:23 To: Discussion concerning Visual Basic and > related programming issues. Subject: Re: [dba-VB] > Microsoft.SqlServer.Smo > > I use SMO extensively! Very cool object. > > John W. Colby > www.ColbyConsulting.com > > On 5/7/2011 5:25 AM, Shamil Salakhetdinov wrote: > > Hi All -- > > > > I have found Microsoft.SqlServer.Smo related assemblies installed on > > my system under > > > > ... \Program Files\Microsoft SQL Server 2005 > > Express\100\SDK\Assemblies. > > > > Issue solved. > > > > Thank you. > > > > -- > > Shamil > > > > -----Original Message----- > > From: dba-vb-bounces at databaseadvisors.com > > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil > > Salakhetdinov Sent: 7 ??? 2011 ?. 12:21 To: 'Discussion concerning > > Visual Basic and related programming issues.' Subject: [dba-VB] > > Microsoft.SqlServer.Smo > > > > Hi All -- > > > > I can't get Microsoft.SqlServer.Smo > > (http://msdn.microsoft.com/en-us/library/microsoft.sqlserver.managem > > en t.smo% 28v=SQL.100%29.aspx) available for my VS2010 SP1 project. > > I have got at "Microsoft SQL Server 2008 Feature Pack, April 2009" > > > > http://www.microsoft.com/downloads/en/details.aspx?FamilyID=b33d2c78 > > -1 059-4c e2-b80d-2343c099bcb4 > > > > and I have got downloaded "Microsoft SQL Server 2008 Management > > Objects" > > > > "The SQL Server Management Objects (SMO) is a .NET Framework object > > model that enables software developers to create client-side > > applications to manage and administer SQL Server objects and > > services. This object model will work with SQL Server 2000, SQL > > Server 2005 and SQL > Server 2008." > > > > http://download.microsoft.com/download/0/E/6/0E67502A-22B4-4C47-92D3 > > -0 D223F1 17190/SharedManagementObjects.msi > > > > But it doesn't want to setup on my system telling me it's there > > already :) - although I can't see it from VS2010 SP1 project's > > References dialog :( > > > > I'm (re-)searchning my computer files for > > > > Microsoft.SqlServer.Smo > > > > filename now but I doubt this search will get any positive results > > returned... > > > > Could you please advise/guess what am I'm missing? > > > > Thank you. > > > > -- > > Shamil > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From jwcolby at colbyconsulting.com Sat May 7 19:20:12 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 07 May 2011 20:20:12 -0400 Subject: [dba-VB] Microsoft.SqlServer.Smo In-Reply-To: <4DC5A87C.16788.DAB4F6E@stuart.lexacorp.com.pg> References: <0632A25A4F414713973B5CE5E091B71C@nant>, <4DC52BAA.2080602@colbyconsulting.com>, <4FDFCEF827D34B7D8213280BD3E96761@nant> <4DC5A87C.16788.DAB4F6E@stuart.lexacorp.com.pg> Message-ID: <4DC5E1BC.1010909@colbyconsulting.com> He probably had to go get a reference to it in order to use it. John W. Colby www.ColbyConsulting.com On 5/7/2011 4:15 PM, Stuart McLachlan wrote: > SDK = Software Development Kit - emphasis on the Development. > > There should never be a requirement to deploy it to clients. > From jwcolby at colbyconsulting.com Sat May 7 19:21:26 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 07 May 2011 20:21:26 -0400 Subject: [dba-VB] Microsoft.SqlServer.Smo In-Reply-To: <4FDFCEF827D34B7D8213280BD3E96761@nant> References: <0632A25A4F414713973B5CE5E091B71C@nant> <4DC52BAA.2080602@colbyconsulting.com> <4FDFCEF827D34B7D8213280BD3E96761@nant> Message-ID: <4DC5E206.80007@colbyconsulting.com> I don't know the answer to that. To this point, all of my usage has been for the app we developed for internal use. John W. Colby www.ColbyConsulting.com On 5/7/2011 9:09 AM, Shamil Salakhetdinov wrote: > Hi John -- > > Did you try to deploy your SMO-empowered application to the customers' > systems? > I mean would that be enough in such a case to deliver to the customer side > only referenced SMO .NET Framework class libraries deployed locally together > with their "parent" custom application, or the full (.NET Framework) SMO SDK > should be also installed/deployed? > > Thank you. > > -- > Shamil > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: 7 ??? 2011 ?. 15:23 > To: Discussion concerning Visual Basic and related programming issues. > Subject: Re: [dba-VB] Microsoft.SqlServer.Smo > > I use SMO extensively! Very cool object. > > John W. Colby > www.ColbyConsulting.com > > On 5/7/2011 5:25 AM, Shamil Salakhetdinov wrote: >> Hi All -- >> >> I have found Microsoft.SqlServer.Smo related assemblies installed on >> my system under >> >> ... \Program Files\Microsoft SQL Server 2005 Express\100\SDK\Assemblies. >> >> Issue solved. >> >> Thank you. >> >> -- >> Shamil >> >> -----Original Message----- >> From: dba-vb-bounces at databaseadvisors.com >> [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil >> Salakhetdinov >> Sent: 7 ??? 2011 ?. 12:21 >> To: 'Discussion concerning Visual Basic and related programming issues.' >> Subject: [dba-VB] Microsoft.SqlServer.Smo >> >> Hi All -- >> >> I can't get Microsoft.SqlServer.Smo >> (http://msdn.microsoft.com/en-us/library/microsoft.sqlserver.managemen >> t.smo% >> 28v=SQL.100%29.aspx) available for my VS2010 SP1 project. >> I have got at "Microsoft SQL Server 2008 Feature Pack, April 2009" >> >> http://www.microsoft.com/downloads/en/details.aspx?FamilyID=b33d2c78-1 >> 059-4c >> e2-b80d-2343c099bcb4 >> >> and I have got downloaded "Microsoft SQL Server 2008 Management Objects" >> >> "The SQL Server Management Objects (SMO) is a .NET Framework object >> model that enables software developers to create client-side >> applications to manage and administer SQL Server objects and services. >> This object model will work with SQL Server 2000, SQL Server 2005 and SQL > Server 2008." >> >> http://download.microsoft.com/download/0/E/6/0E67502A-22B4-4C47-92D3-0 >> D223F1 >> 17190/SharedManagementObjects.msi >> >> But it doesn't want to setup on my system telling me it's there >> already :) - although I can't see it from VS2010 SP1 project's >> References dialog :( >> >> I'm (re-)searchning my computer files for >> >> Microsoft.SqlServer.Smo >> >> filename now but I doubt this search will get any positive results >> returned... >> >> Could you please advise/guess what am I'm missing? >> >> Thank you. >> >> -- >> Shamil >> > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From shamil at smsconsulting.spb.ru Sat May 7 19:46:21 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sun, 8 May 2011 04:46:21 +0400 Subject: [dba-VB] Microsoft.SqlServer.Smo In-Reply-To: <4DC5A87C.16788.DAB4F6E@stuart.lexacorp.com.pg> References: <0632A25A4F414713973B5CE5E091B71C@nant>, <4DC52BAA.2080602@colbyconsulting.com>, <4FDFCEF827D34B7D8213280BD3E96761@nant> <4DC5A87C.16788.DAB4F6E@stuart.lexacorp.com.pg> Message-ID: <8801D45F717E4478803F7B7FF04C22D5@nant> Hi Stuart -- Yes, SDK is for developers but developers (usually) do make and do deploy software for customers' computer systems therefore the question on the ways of distributing these or that SDK components is legal... Thank you. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: 8 ??? 2011 ?. 0:16 To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Microsoft.SqlServer.Smo SDK = Software Development Kit - emphasis on the Development. There should never be a requirement to deploy it to clients. -- Stuart On 7 May 2011 at 17:09, Shamil Salakhetdinov wrote: > Hi John -- > > Did you try to deploy your SMO-empowered application to the customers' > systems? I mean would that be enough in such a case to deliver to the > customer side only referenced SMO .NET Framework class libraries > deployed locally together with their "parent" custom application, or > the full (.NET Framework) SMO SDK should be also installed/deployed? > > Thank you. > > -- > Shamil > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: 7 ??? 2011 ?. 15:23 To: Discussion concerning Visual Basic and > related programming issues. Subject: Re: [dba-VB] > Microsoft.SqlServer.Smo > > I use SMO extensively! Very cool object. > > John W. Colby > www.ColbyConsulting.com > > On 5/7/2011 5:25 AM, Shamil Salakhetdinov wrote: > > Hi All -- > > > > I have found Microsoft.SqlServer.Smo related assemblies installed on > > my system under > > > > ... \Program Files\Microsoft SQL Server 2005 > > Express\100\SDK\Assemblies. > > > > Issue solved. > > > > Thank you. > > > > -- > > Shamil > > > > -----Original Message----- > > From: dba-vb-bounces at databaseadvisors.com > > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil > > Salakhetdinov Sent: 7 ??? 2011 ?. 12:21 To: 'Discussion concerning > > Visual Basic and related programming issues.' Subject: [dba-VB] > > Microsoft.SqlServer.Smo > > > > Hi All -- > > > > I can't get Microsoft.SqlServer.Smo > > (http://msdn.microsoft.com/en-us/library/microsoft.sqlserver.managem > > en t.smo% 28v=SQL.100%29.aspx) available for my VS2010 SP1 project. > > I have got at "Microsoft SQL Server 2008 Feature Pack, April 2009" > > > > http://www.microsoft.com/downloads/en/details.aspx?FamilyID=b33d2c78 > > -1 059-4c e2-b80d-2343c099bcb4 > > > > and I have got downloaded "Microsoft SQL Server 2008 Management > > Objects" > > > > "The SQL Server Management Objects (SMO) is a .NET Framework object > > model that enables software developers to create client-side > > applications to manage and administer SQL Server objects and > > services. This object model will work with SQL Server 2000, SQL > > Server 2005 and SQL > Server 2008." > > > > http://download.microsoft.com/download/0/E/6/0E67502A-22B4-4C47-92D3 > > -0 D223F1 17190/SharedManagementObjects.msi > > > > But it doesn't want to setup on my system telling me it's there > > already :) - although I can't see it from VS2010 SP1 project's > > References dialog :( > > > > I'm (re-)searchning my computer files for > > > > Microsoft.SqlServer.Smo > > > > filename now but I doubt this search will get any positive results > > returned... > > > > Could you please advise/guess what am I'm missing? > > > > Thank you. > > > > -- > > Shamil > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From shamil at smsconsulting.spb.ru Sat May 7 19:46:21 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sun, 8 May 2011 04:46:21 +0400 Subject: [dba-VB] Microsoft.SqlServer.Smo In-Reply-To: <4DC5E206.80007@colbyconsulting.com> References: <0632A25A4F414713973B5CE5E091B71C@nant> <4DC52BAA.2080602@colbyconsulting.com><4FDFCEF827D34B7D8213280BD3E96761@nant> <4DC5E206.80007@colbyconsulting.com> Message-ID: <9EAAFB9EEAE64D65BB1F97680618AC8C@nant> Hi John -- OK, I will try to test it later within a week or so on customer's PC with MS SQL Server installed but not .NET SMO. Thank you. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: 8 ??? 2011 ?. 4:21 To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Microsoft.SqlServer.Smo I don't know the answer to that. To this point, all of my usage has been for the app we developed for internal use. John W. Colby www.ColbyConsulting.com On 5/7/2011 9:09 AM, Shamil Salakhetdinov wrote: > Hi John -- > > Did you try to deploy your SMO-empowered application to the customers' > systems? > I mean would that be enough in such a case to deliver to the customer > side only referenced SMO .NET Framework class libraries deployed > locally together with their "parent" custom application, or the full > (.NET Framework) SMO SDK should be also installed/deployed? > > Thank you. > > -- > Shamil > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: 7 ??? 2011 ?. 15:23 > To: Discussion concerning Visual Basic and related programming issues. > Subject: Re: [dba-VB] Microsoft.SqlServer.Smo > > I use SMO extensively! Very cool object. > > John W. Colby > www.ColbyConsulting.com > > On 5/7/2011 5:25 AM, Shamil Salakhetdinov wrote: >> Hi All -- >> >> I have found Microsoft.SqlServer.Smo related assemblies installed on >> my system under >> >> ... \Program Files\Microsoft SQL Server 2005 Express\100\SDK\Assemblies. >> >> Issue solved. >> >> Thank you. >> >> -- >> Shamil >> >> -----Original Message----- >> From: dba-vb-bounces at databaseadvisors.com >> [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil >> Salakhetdinov >> Sent: 7 ??? 2011 ?. 12:21 >> To: 'Discussion concerning Visual Basic and related programming issues.' >> Subject: [dba-VB] Microsoft.SqlServer.Smo >> >> Hi All -- >> >> I can't get Microsoft.SqlServer.Smo >> (http://msdn.microsoft.com/en-us/library/microsoft.sqlserver.manageme >> n >> t.smo% >> 28v=SQL.100%29.aspx) available for my VS2010 SP1 project. >> I have got at "Microsoft SQL Server 2008 Feature Pack, April 2009" >> >> http://www.microsoft.com/downloads/en/details.aspx?FamilyID=b33d2c78- >> 1 >> 059-4c >> e2-b80d-2343c099bcb4 >> >> and I have got downloaded "Microsoft SQL Server 2008 Management Objects" >> >> "The SQL Server Management Objects (SMO) is a .NET Framework object >> model that enables software developers to create client-side >> applications to manage and administer SQL Server objects and services. >> This object model will work with SQL Server 2000, SQL Server 2005 and >> SQL > Server 2008." >> >> http://download.microsoft.com/download/0/E/6/0E67502A-22B4-4C47-92D3- >> 0 >> D223F1 >> 17190/SharedManagementObjects.msi >> >> But it doesn't want to setup on my system telling me it's there >> already :) - although I can't see it from VS2010 SP1 project's >> References dialog :( >> >> I'm (re-)searchning my computer files for >> >> Microsoft.SqlServer.Smo >> >> filename now but I doubt this search will get any positive results >> returned... >> >> Could you please advise/guess what am I'm missing? >> >> Thank you. >> >> -- >> Shamil >> > From jwcolby at colbyconsulting.com Mon May 9 10:43:38 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 09 May 2011 11:43:38 -0400 Subject: [dba-VB] C# Excel automation Message-ID: <4DC80BAA.4000100@colbyconsulting.com> We are trying to automate Excel from C# but we are unable to correctly close the excel object itself. IOW it is still seen in the process list. Paul has found information about marshal.releasecomobject and is doing that for every object he is even touching but something is still not working. Can anyone provide a simple example of opening a workbook, and reading a set of cells out of a worksheet, then cleaning up and closing Excel. TIA for your assistance. -- John W. Colby www.ColbyConsulting.com From dbdoug at gmail.com Mon May 9 11:17:00 2011 From: dbdoug at gmail.com (Doug Steele) Date: Mon, 9 May 2011 09:17:00 -0700 Subject: [dba-VB] C# Excel automation In-Reply-To: <4DC80BAA.4000100@colbyconsulting.com> References: <4DC80BAA.4000100@colbyconsulting.com> Message-ID: John, I can't find it quickly but I know there was a big discussion about this on the Access list a while back. Doug On Mon, May 9, 2011 at 8:43 AM, jwcolby wrote: > We are trying to automate Excel from C# but we are unable to correctly close > the excel object itself. ?IOW it is still seen in the process list. > > Paul has found information about marshal.releasecomobject and is doing that > for every object he is even touching but something is still not working. > > Can anyone provide a simple example of opening a workbook, and reading a set > of cells out of a worksheet, then cleaning up and closing Excel. > > TIA for your assistance. > > -- > John W. Colby > www.ColbyConsulting.com > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From df.waters at comcast.net Mon May 9 12:02:24 2011 From: df.waters at comcast.net (Dan Waters) Date: Mon, 9 May 2011 12:02:24 -0500 Subject: [dba-VB] C# Excel automation In-Reply-To: <4DC80BAA.4000100@colbyconsulting.com> References: <4DC80BAA.4000100@colbyconsulting.com> Message-ID: <004201cc0e6a$e0a4a2f0$a1ede8d0$@comcast.net> Hi John, I've had this issue too. It's almost certainly that somewhere in your code you are missing an Excel object qualifier. Also take a look at the sequence of opening and closing the Workbook and the instance of Excel. Another issue is that if the PC already has Excel open, then the workbook you create will be contained within the instance of Excel, and it turns out that it's about impossible for your code to loop through the different workbooks. The best plan is probably to look for an instance of Excel and close it with save = true. Then open your workbook and you should be fine. You'll need to tell your users what's going to happen (and maybe ask by message if they want to continue), and/or put up a message if you need to close/save an already open instance of Excel. See this code: '----------------- Private Sub FormatSpreadsheetDemo(stgPath As String) Dim objExcel As Object Dim objWorkbook As Object ' Dim objExcel As Excel.Application '-- TEST ' Dim objWorkbook As Excel.Workbook '-- TEST If IsNull(stgPath) Or stgPath = "" Then Exit Sub Set objExcel = CreateObject("Excel.Application") '-- for troubleshooting ' objExcel.Visible = true '-- TEST ' objExcel.ActiveWindow.WindowState = xlMaximized '-- TEST Set objWorkbook = objExcel.Workbooks.Open(stgPath) '-- Format objExcel.Rows("1:1").Select objExcel.Selection.Font.Bold = True objExcel.Cells.Select objExcel.Selection.Font.Name = "Tahoma" objExcel.Selection.Font.Size = 10 objExcel.Cells.EntireColumn.AutoFit '-- Freeze rows If InStr(stgPath, "Backups") = 0 Then objExcel.Range("A2").Select Else objExcel.Range("B2").Select End If objExcel.ActiveWindow.FreezePanes = True objExcel.ActiveWindow.WindowState = xlMaximized '-- Change column format If InStr(stgPath, "Activity") <> 0 Then objExcel.Columns("E:E").Select objExcel.Selection.NumberFormat = "[$-409]h:mm AM/PM;@" objExcel.Columns("G:G").Select objExcel.Selection.NumberFormat = "[$-409]h:mm AM/PM;@" End If '-- Select upper left cell objExcel.Range("A1").Select '-- Save & Quit objWorkbook.Save objWorkbook.Close objExcel.Quit Set objWorkbook = Nothing Set objExcel = Nothing Exit Sub ErrEx.Bookmark = BOOKMARK_ONERROR End Sub '------------------ -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Monday, May 09, 2011 10:44 AM To: VBA Subject: [dba-VB] C# Excel automation We are trying to automate Excel from C# but we are unable to correctly close the excel object itself. IOW it is still seen in the process list. Paul has found information about marshal.releasecomobject and is doing that for every object he is even touching but something is still not working. Can anyone provide a simple example of opening a workbook, and reading a set of cells out of a worksheet, then cleaning up and closing Excel. TIA for your assistance. -- John W. Colby www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Mon May 9 12:22:59 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 09 May 2011 13:22:59 -0400 Subject: [dba-VB] C# Excel automation In-Reply-To: <004201cc0e6a$e0a4a2f0$a1ede8d0$@comcast.net> References: <4DC80BAA.4000100@colbyconsulting.com> <004201cc0e6a$e0a4a2f0$a1ede8d0$@comcast.net> Message-ID: <4DC822F3.60609@colbyconsulting.com> Is this VBA or VB.Net? John W. Colby www.ColbyConsulting.com On 5/9/2011 1:02 PM, Dan Waters wrote: > Hi John, > > I've had this issue too. It's almost certainly that somewhere in your code > you are missing an Excel object qualifier. Also take a look at the sequence > of opening and closing the Workbook and the instance of Excel. > > Another issue is that if the PC already has Excel open, then the workbook > you create will be contained within the instance of Excel, and it turns out > that it's about impossible for your code to loop through the different > workbooks. The best plan is probably to look for an instance of Excel and > close it with save = true. Then open your workbook and you should be fine. > You'll need to tell your users what's going to happen (and maybe ask by > message if they want to continue), and/or put up a message if you need to > close/save an already open instance of Excel. > > See this code: > > '----------------- > Private Sub FormatSpreadsheetDemo(stgPath As String) > > Dim objExcel As Object > Dim objWorkbook As Object > ' Dim objExcel As Excel.Application '-- TEST > ' Dim objWorkbook As Excel.Workbook '-- TEST > > If IsNull(stgPath) Or stgPath = "" Then Exit Sub > > Set objExcel = CreateObject("Excel.Application") > > '-- for troubleshooting > ' objExcel.Visible = true '-- TEST > ' objExcel.ActiveWindow.WindowState = xlMaximized '-- TEST > > Set objWorkbook = objExcel.Workbooks.Open(stgPath) > > '-- Format > objExcel.Rows("1:1").Select > objExcel.Selection.Font.Bold = True > objExcel.Cells.Select > objExcel.Selection.Font.Name = "Tahoma" > objExcel.Selection.Font.Size = 10 > objExcel.Cells.EntireColumn.AutoFit > > '-- Freeze rows > If InStr(stgPath, "Backups") = 0 Then > objExcel.Range("A2").Select > Else > objExcel.Range("B2").Select > End If > objExcel.ActiveWindow.FreezePanes = True > objExcel.ActiveWindow.WindowState = xlMaximized > > '-- Change column format > If InStr(stgPath, "Activity")<> 0 Then > objExcel.Columns("E:E").Select > objExcel.Selection.NumberFormat = "[$-409]h:mm AM/PM;@" > objExcel.Columns("G:G").Select > objExcel.Selection.NumberFormat = "[$-409]h:mm AM/PM;@" > End If > > '-- Select upper left cell > objExcel.Range("A1").Select > > '-- Save& Quit > objWorkbook.Save > objWorkbook.Close > objExcel.Quit > > Set objWorkbook = Nothing > Set objExcel = Nothing > > Exit Sub > ErrEx.Bookmark = BOOKMARK_ONERROR > > End Sub > '------------------ > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Monday, May 09, 2011 10:44 AM > To: VBA > Subject: [dba-VB] C# Excel automation > > We are trying to automate Excel from C# but we are unable to correctly close > the excel object itself. IOW it is still seen in the process list. > > Paul has found information about marshal.releasecomobject and is doing that > for every object he is even touching but something is still not working. > > Can anyone provide a simple example of opening a workbook, and reading a set > of cells out of a worksheet, then cleaning up and closing Excel. > > TIA for your assistance. > > -- > John W. Colby > www.ColbyConsulting.com > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From df.waters at comcast.net Tue May 10 15:48:45 2011 From: df.waters at comcast.net (Dan Waters) Date: Tue, 10 May 2011 15:48:45 -0500 Subject: [dba-VB] Button Images - Where to Find? Message-ID: <000001cc0f53$a9ca2040$fd5e60c0$@comcast.net> In .Net for windows form is there a standard set of images for buttons like Access has? I'd hate to have to create left arrow and a right arrow images. Thanks! Dan From michael at ddisolutions.com.au Wed May 11 03:09:03 2011 From: michael at ddisolutions.com.au (Michael Maddison) Date: Wed, 11 May 2011 18:09:03 +1000 Subject: [dba-VB] Button Images - Where to Find? References: <000001cc0f53$a9ca2040$fd5e60c0$@comcast.net> Message-ID: <99266C61B516644D9727F983FAFAB4650863CA@remote.ddisolutions.com.au> I don't think so. There are heaps of free ones out there though. Cheers Michael M -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, 11 May 2011 6:49 AM To: 'Discussion concerning Visual Basic and related programming issues.' Subject: [dba-VB] Button Images - Where to Find? In .Net for windows form is there a standard set of images for buttons like Access has? I'd hate to have to create left arrow and a right arrow images. Thanks! Dan _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com ----- No virus found in this message. Checked by AVG - www.avg.com Version: 10.0.1375 / Virus Database: 1500/3629 - Release Date: 05/10/11 From shamil at smsconsulting.spb.ru Wed May 11 04:32:17 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Wed, 11 May 2011 13:32:17 +0400 Subject: [dba-VB] Button Images - Where to Find? In-Reply-To: <000001cc0f53$a9ca2040$fd5e60c0$@comcast.net> References: <000001cc0f53$a9ca2040$fd5e60c0$@comcast.net> Message-ID: Hi Dan -- For left- and right- arrow buttons you might try the following "trick": - create winform/usercontrol and bind it to a datasource - you'll get {{DataSetName}}_BindingNavigator. Now you can export button images into .png format from that BindingNavigator's resource file, which will be part of hosting winform/usercontrol resource file - {{WinFormName/WinFromsuserControlName}}.resx - just open resource file using designer, right-click button image, select 'Export To File...'... Here is xml of MovePrevious button's resource (JFI): iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACx jwv8 YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAL1JREFUOE9j YBgy ILz9wX+yHRvf/eB/cMM18gyI73n4f+n+///9qy+QbkBE+32w5sxZ//97lZ4gzYDQ1ntgza3rgLZ3 /v3v kn+AeAOCW+7+X7T3//8OoOaMOT//29X9/G+fsZ14A0ChbVd8+3/6nN///bu+/dcpfPffImE9aQaA DNFP Of/fpOjFf5WsT/+NI5eRbgDIEIOkE/9l077+1w2eR54BYJekXv6v4TuNfANAhqh4TKDMALKTMc01 AgDQ FGCYkuTLEQAAAABJRU5ErkJggg== Thank you. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: 11 ??? 2011 ?. 0:49 To: 'Discussion concerning Visual Basic and related programming issues.' Subject: [dba-VB] Button Images - Where to Find? In .Net for windows form is there a standard set of images for buttons like Access has? I'd hate to have to create left arrow and a right arrow images. Thanks! Dan From jwcolby at colbyconsulting.com Wed May 11 09:57:49 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 11 May 2011 10:57:49 -0400 Subject: [dba-VB] C# Outlook Automation Message-ID: <4DCAA3ED.1050007@colbyconsulting.com> Has anyone found C# code to emulate the ClickYes program? I found something in VB5/6 for building a program that sits in the toolbar but it seems that if you can do that, then you could just as easily look for the pop-up right in your own code and click the yes button. Just thought I'd check here before re-inventing the wheel. -- John W. Colby www.ColbyConsulting.com From df.waters at comcast.net Wed May 11 10:46:41 2011 From: df.waters at comcast.net (Dan Waters) Date: Wed, 11 May 2011 10:46:41 -0500 Subject: [dba-VB] C# Outlook Automation In-Reply-To: <4DCAA3ED.1050007@colbyconsulting.com> References: <4DCAA3ED.1050007@colbyconsulting.com> Message-ID: <000901cc0ff2$a3755620$ea600260$@comcast.net> Hi John, This is a VBA module to automatically push the ClickYes button - I have not used this. Might have some useful content. Came from: http://www.contextmagic.com/express-clickyes/ '---------------------------- Option Compare Database Option Explicit '-- Declare Windows' API functions Private Declare Function RegisterWindowMessage Lib "User32" Alias "RegisterWindowMessageA" (ByVal lpString As String) As Long Private Declare Function FindWindow Lib "User32" Alias "FindWindowA" (ByVal lpClassName As Any, ByVal lpWindowName As Any) As Long Private Declare Function SendMessage Lib "User32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long Public Function pfSendUsingObject() Dim blnPreview As Boolean '-- If you do want to preview then you do not need the ClickYes stuff. _ but if you don't want to preview and you just want to send it without being informed that _ it is being sent, then use the ClickYes stuff. blnPreview = False If blnPreview Then DoCmd.SendObject acSendNoObject, , , "max.wanadoo at gmail.com", , , "Subject", "Text Body", blnPreview Else Call fStartClickYes(True) DoCmd.SendObject acSendNoObject, , , "max.wanadoo at gmail.com", , , "Subject", "Text Body", blnPreview Call fStartClickYes(False) End If End Function Public Function fStartClickYes(bStart As Boolean) '-- Here is some vba code that starts and stops clickyes in the systray ' download from here and install. The A2k7 version is not free. _ http://www.contextmagic.com/express-clickyes/ Dim lngWnd As Long Dim lngClickYes As Long Dim lngResume As Long '-- Register a message to send lngClickYes = RegisterWindowMessage("CLICKYES_SUSPEND_RESUME") '-- Find ClickYes Window by classname lngWnd = FindWindow("EXCLICKYES_WND", 0&) If bStart Then '-- Send the message to Resume ClickYes lngResume = SendMessage(lngWnd, lngClickYes, 1, 0) Else ' Send the message to Suspend ClickYes lngResume = SendMessage(lngWnd, lngClickYes, 0, 0) End If End Function '---------------------------- -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, May 11, 2011 9:58 AM To: VBA Subject: [dba-VB] C# Outlook Automation Has anyone found C# code to emulate the ClickYes program? I found something in VB5/6 for building a program that sits in the toolbar but it seems that if you can do that, then you could just as easily look for the pop-up right in your own code and click the yes button. Just thought I'd check here before re-inventing the wheel. -- John W. Colby www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Wed May 11 12:28:17 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 11 May 2011 13:28:17 -0400 Subject: [dba-VB] C# Outlook Automation In-Reply-To: <000901cc0ff2$a3755620$ea600260$@comcast.net> References: <4DCAA3ED.1050007@colbyconsulting.com> <000901cc0ff2$a3755620$ea600260$@comcast.net> Message-ID: <4DCAC731.4040708@colbyconsulting.com> I know about ClickYes and might use that, however the free version does not support anything past Access 2003. John W. Colby www.ColbyConsulting.com On 5/11/2011 11:46 AM, Dan Waters wrote: > Hi John, > > This is a VBA module to automatically push the ClickYes button - I have not > used this. Might have some useful content. Came from: > http://www.contextmagic.com/express-clickyes/ > > '---------------------------- > Option Compare Database > Option Explicit > > '-- Declare Windows' API functions > Private Declare Function RegisterWindowMessage Lib "User32" Alias > "RegisterWindowMessageA" (ByVal lpString As String) As Long > Private Declare Function FindWindow Lib "User32" Alias "FindWindowA" (ByVal > lpClassName As Any, ByVal lpWindowName As Any) As Long > Private Declare Function SendMessage Lib "User32" Alias "SendMessageA" > (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As > Any) As Long > > Public Function pfSendUsingObject() > > Dim blnPreview As Boolean > > '-- If you do want to preview then you do not need the ClickYes stuff. _ > but if you don't want to preview and you just want to send it > without being informed that _ > it is being sent, then use the ClickYes stuff. > > blnPreview = False > > If blnPreview Then > DoCmd.SendObject acSendNoObject, , , "max.wanadoo at gmail.com", , , > "Subject", "Text Body", blnPreview > Else > Call fStartClickYes(True) > DoCmd.SendObject acSendNoObject, , , "max.wanadoo at gmail.com", , , > "Subject", "Text Body", blnPreview > Call fStartClickYes(False) > End If > > End Function > > Public Function fStartClickYes(bStart As Boolean) > > '-- Here is some vba code that starts and stops clickyes in the systray > ' download from here and install. The A2k7 version is not free. _ > http://www.contextmagic.com/express-clickyes/ > > Dim lngWnd As Long > Dim lngClickYes As Long > Dim lngResume As Long > > '-- Register a message to send > lngClickYes = RegisterWindowMessage("CLICKYES_SUSPEND_RESUME") > > '-- Find ClickYes Window by classname > lngWnd = FindWindow("EXCLICKYES_WND", 0&) > > If bStart Then > '-- Send the message to Resume ClickYes > lngResume = SendMessage(lngWnd, lngClickYes, 1, 0) > Else > ' Send the message to Suspend ClickYes > lngResume = SendMessage(lngWnd, lngClickYes, 0, 0) > End If > > End Function > > '---------------------------- > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Wednesday, May 11, 2011 9:58 AM > To: VBA > Subject: [dba-VB] C# Outlook Automation > > Has anyone found C# code to emulate the ClickYes program? I found something > in VB5/6 for building a program that sits in the toolbar but it seems that > if you can do that, then you could just as easily look for the pop-up right > in your own code and click the yes button. > > Just thought I'd check here before re-inventing the wheel. > > -- > John W. Colby > www.ColbyConsulting.com > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From df.waters at comcast.net Wed May 11 13:04:56 2011 From: df.waters at comcast.net (Dan Waters) Date: Wed, 11 May 2011 13:04:56 -0500 Subject: [dba-VB] Button Images - Found! Message-ID: <000e01cc1005$f0d9fac0$d28df040$@comcast.net> Shamil & Michael, OK - I finally found these. They are in the following folder. C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\VS2010ImageLibrary\1033\VS2010ImageLibrary\Actions\png_format\O ffice and VS First, under the 1033 folder, you'll need to unzip the VS2010ImageLibrary folder. Next, in the button's Image property, select the ellipsis. In the next window, select Project Resource file, then push Import and navigate to the above folder. When you select an image, it will be copied to your project under a Resources folder. There is also a way (I didn't pursue for now) to create your own Image List, which you can use to assign an image to a control. I'm guessing that the Image List can be used for multiple Projects so you can save some time and also have your own set of images to use consistently in all your projects. Also, there are many other image folders that contain other types of images. Thanks! Dan -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, May 10, 2011 3:49 PM To: 'Discussion concerning Visual Basic and related programming issues.' Subject: [dba-VB] Button Images - Where to Find? In .Net for windows form is there a standard set of images for buttons like Access has? I'd hate to have to create left arrow and a right arrow images. Thanks! Dan _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu May 12 14:28:03 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 12 May 2011 15:28:03 -0400 Subject: [dba-VB] =?windows-1252?q?LSI_MegaRAID_SAS/SATA_9265-8i_6Gb/s_PCI?= =?windows-1252?q?e_RAID_Card_Review_=96_Performance_Unleashed!_=7C_The_SS?= =?windows-1252?q?D_Review?= Message-ID: <4DCC34C3.4080302@colbyconsulting.com> -- John W. Colby www.ColbyConsulting.com http://thessdreview.com/our-reviews/lsi-megaraid-sassata-9265-8i-6gbs-pcie-raid-controller-card-review/ From df.waters at comcast.net Tue May 17 09:53:25 2011 From: df.waters at comcast.net (Dan Waters) Date: Tue, 17 May 2011 09:53:25 -0500 Subject: [dba-VB] Good News for .Net Developers Message-ID: <000301cc14a2$2cfda6a0$86f8f3e0$@comcast.net> Mono is an open-source implementation of .Net which was owned by Novell/Attachmate until a week ago. All the members of the Mono teams were let go. The founder of Mono has restarted his effort, with the same team members, as an independent company named Xamarin. Looks like good news for .Net developers! http://www.zdnet.com/blog/microsoft/mono-lives-in-new-startup-xamarin/9465 Dan From accessd at shaw.ca Tue May 17 10:17:30 2011 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 17 May 2011 08:17:30 -0700 Subject: [dba-VB] Good News for .Net Developers In-Reply-To: <000301cc14a2$2cfda6a0$86f8f3e0$@comcast.net> References: <000301cc14a2$2cfda6a0$86f8f3e0$@comcast.net> Message-ID: Excellent! Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, May 17, 2011 7:53 AM To: 'Discussion concerning Visual Basic and related programming issues.' Subject: [dba-VB] Good News for .Net Developers Mono is an open-source implementation of .Net which was owned by Novell/Attachmate until a week ago. All the members of the Mono teams were let go. The founder of Mono has restarted his effort, with the same team members, as an independent company named Xamarin. Looks like good news for .Net developers! http://www.zdnet.com/blog/microsoft/mono-lives-in-new-startup-xamarin/9465 Dan _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From df.waters at comcast.net Tue May 17 16:00:22 2011 From: df.waters at comcast.net (Dan Waters) Date: Tue, 17 May 2011 16:00:22 -0500 Subject: [dba-VB] Listbox on VB.Net Form - How to Display Data Correctly? Message-ID: <001b01cc14d5$707a3af0$516eb0d0$@comcast.net> I'm making my first .net form with existing data and I'm having trouble getting the listbox to display correctly. Been looking through all my books and doing lots of web searches, but no real answer. The form has a TurnbackMainBindingSource which uses a DataSource named TurnbackMain. TurnbackMain is an object in a Linq to SQL DataContext (.dbml file). I have two list boxes, both of which use an items collection entered via property sheet. The Severity listbox has choices 1, 2, 3. The QD listbox has choices Quality, Delivery. Both listboxes, have the SelectedItem set to TurnbackMainBindingSource - Severity and TurnbackMainBindingSource - QD, respectively. The comboboxes and textboxes have similar values in the Text property, but the listbox does not have a Text property in the property sheet. As I use the Navigation toolbar to move the form through the records, I want the listboxes to display like Access does, which I assume is the way a listbox should in .Net as well. What happens: For the QD listbox, as I scroll through the records, the Quality or Delivery item is highlighted, if the underlying data is not null. If the underlying data is null, then whatever was highlighted for the previous record remains highlighted. For the Severity listbox, there is no highlighting at all. For the comboboxes and textboxes, what's displayed matches the underlying data. The underlying data for QD is string, the underlying data for Severity is numeric. Is there a way to make this happen correctly without writing any code in the form's afterupdate event? If no, then what code is needed? Thanks! Dan From Gustav at cactus.dk Wed May 18 05:30:27 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 18 May 2011 12:30:27 +0200 Subject: [dba-VB] Listbox on VB.Net Form - How to Display Data Correctly? Message-ID: Hi Dan At the row enter event you may need to include code to clear the combo. C# only, but you sure get the picture: private void dataGridView1_RowEnter(object sender, DataGridViewCellEventArgs e) { // Row to look up is the current row. int rowIndex = e.RowIndex; // Column in row to look up Id of Supplier. int columnId = 0; _supplierId = Convert.ToInt32(dataGridView1.Rows[rowIndex].Cells[columnId].Value); this.FindCurrentCustomer(); } private void FindCurrentCustomer() { DataRow[] customerSupplier = _customerSupplierDataTable.Select("SupplierId = " + _supplierId.ToString()); if (customerSupplier.Length == 0) { _customerId = -1; // Erase display. this.comboBoxCustomer.Text = null; } else { _customerId = Convert.ToInt32(customerSupplier[0]["CustomerId"].ToString()); } this.comboBoxCustomer.SelectedValue = _customerId; } /gustav >>> "Dan Waters" 17-05-2011 23:00 >>> I'm making my first .net form with existing data and I'm having trouble getting the listbox to display correctly. Been looking through all my books and doing lots of web searches, but no real answer. The form has a TurnbackMainBindingSource which uses a DataSource named TurnbackMain. TurnbackMain is an object in a Linq to SQL DataContext (.dbml file). I have two list boxes, both of which use an items collection entered via property sheet. The Severity listbox has choices 1, 2, 3. The QD listbox has choices Quality, Delivery. Both listboxes, have the SelectedItem set to TurnbackMainBindingSource - Severity and TurnbackMainBindingSource - QD, respectively. The comboboxes and textboxes have similar values in the Text property, but the listbox does not have a Text property in the property sheet. As I use the Navigation toolbar to move the form through the records, I want the listboxes to display like Access does, which I assume is the way a listbox should in .Net as well. What happens: For the QD listbox, as I scroll through the records, the Quality or Delivery item is highlighted, if the underlying data is not null. If the underlying data is null, then whatever was highlighted for the previous record remains highlighted. For the Severity listbox, there is no highlighting at all. For the comboboxes and textboxes, what's displayed matches the underlying data. The underlying data for QD is string, the underlying data for Severity is numeric. Is there a way to make this happen correctly without writing any code in the form's afterupdate event? If no, then what code is needed? Thanks! Dan From jwcolby at colbyconsulting.com Fri May 20 21:51:22 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 20 May 2011 22:51:22 -0400 Subject: [dba-VB] Setting up a test VM Message-ID: <4DD728AA.8020208@colbyconsulting.com> Using a VM running on my server, I want to emulate as closely as possible a workstation running out on the internet connecting in to my server over Hamachi. I have the VM running but it was part of my workgroup. I changed the workgroup name for the VM but I am still able to access it remote desktop by the machine name which means that very likely the router is using stored info and assigning the VM an IP. I really wanted to isolate it as much as I can from my internal network. I tried assigning the machine an entirely different IP range (192.168.122.x instead of 192.168.1.x) but when I did that it appears that hamachi instantly loses it's tunnel through the firewall. Any suggestions for how to go about making this thing isolated? -- John W. Colby www.ColbyConsulting.com From michael at ddisolutions.com.au Fri May 20 22:43:39 2011 From: michael at ddisolutions.com.au (Michael Maddison) Date: Sat, 21 May 2011 13:43:39 +1000 Subject: [dba-VB] Filemaker to SQL Anyone? Message-ID: <99266C61B516644D9727F983FAFAB46508640E@remote.ddisolutions.com.au> How do I get myself into these messes? Anyone ever used Filemaker Pro? How do I just get all data from table and export it? How do you even SEE all the data from A table? OMG I can't believe its this hard! Cheers Michael M From michael at ddisolutions.com.au Fri May 20 23:13:45 2011 From: michael at ddisolutions.com.au (Michael Maddison) Date: Sat, 21 May 2011 14:13:45 +1000 Subject: [dba-VB] Filemaker to SQL Anyone? Message-ID: <99266C61B516644D9727F983FAFAB46508640F@remote.ddisolutions.com.au> Looks like I need to make a layout with the table option turned on, manually add each field to the layout, export from there! Good grief! Lucky theres only 150 fields... Cheers Michael M -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Michael Maddison Sent: Saturday, 21 May 2011 1:44 PM To: Discussion concerning Visual Basic and related programming issues. Subject: [dba-VB] Filemaker to SQL Anyone? How do I get myself into these messes? Anyone ever used Filemaker Pro? How do I just get all data from table and export it? How do you even SEE all the data from A table? OMG I can't believe its this hard! Cheers Michael M _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com ----- No virus found in this message. Checked by AVG - www.avg.com Version: 10.0.1375 / Virus Database: 1509/3649 - Release Date: 05/20/11 From gustav at cactus.dk Sun May 22 12:50:05 2011 From: gustav at cactus.dk (Gustav Brock) Date: Sun, 22 May 2011 19:50:05 +0200 Subject: [dba-VB] XML documentation builder: Sandcastle Message-ID: Hi all I was about reinstalling this splendid tool as I came across "The guided installation of Sandcastle" which I haven't seen before: http://shfb.codeplex.com/releases/view/62064 which walks you through the download and install of every needed package. Highly recommended! Sandcastle nearly makes it fun to document your code and the generated output looks exactly like what you see from MS. /gustav From DWUTKA at Marlow.com Mon May 23 11:50:35 2011 From: DWUTKA at Marlow.com (Drew Wutka) Date: Mon, 23 May 2011 11:50:35 -0500 Subject: [dba-VB] Setting up a test VM In-Reply-To: <4DD728AA.8020208@colbyconsulting.com> References: <4DD728AA.8020208@colbyconsulting.com> Message-ID: There really is no way to 'simulate' an 'external client', on a home router. Your internet connection is coming in one port, and is going through one set of rules. So unless that router is VERY programmable, then the best you can do, as far as I can think of, is to create a routed connection in from another subnet. Of course, the EASIEST way to do what you are trying to do, is just go out and buy an aircard (a usb device that connects to the internet), or, if you can 'share' your phone's internet connection, you can use that as an external connection. And setup your VM to ACTUALLY use an internet connection other than your normal ISP. Drew -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, May 20, 2011 9:51 PM To: Access Developers discussion and problem solving; VBA Subject: [dba-VB] Setting up a test VM Using a VM running on my server, I want to emulate as closely as possible a workstation running out on the internet connecting in to my server over Hamachi. I have the VM running but it was part of my workgroup. I changed the workgroup name for the VM but I am still able to access it remote desktop by the machine name which means that very likely the router is using stored info and assigning the VM an IP. I really wanted to isolate it as much as I can from my internal network. I tried assigning the machine an entirely different IP range (192.168.122.x instead of 192.168.1.x) but when I did that it appears that hamachi instantly loses it's tunnel through the firewall. Any suggestions for how to go about making this thing isolated? -- John W. Colby www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From marklbreen at gmail.com Tue May 24 05:27:44 2011 From: marklbreen at gmail.com (Mark Breen) Date: Tue, 24 May 2011 11:27:44 +0100 Subject: [dba-VB] Setting up a test VM In-Reply-To: References: <4DD728AA.8020208@colbyconsulting.com> Message-ID: Or another easy way is to ask someone here on AccessD to connect to you hamachi network, install the access client and connect across the atlantic ! That would be heavy testing for the client :) Mark On 23 May 2011 17:50, Drew Wutka wrote: > There really is no way to 'simulate' an 'external client', on a home > router. Your internet connection is coming in one port, and is going > through one set of rules. So unless that router is VERY programmable, > then the best you can do, as far as I can think of, is to create a > routed connection in from another subnet. > > Of course, the EASIEST way to do what you are trying to do, is just go > out and buy an aircard (a usb device that connects to the internet), or, > if you can 'share' your phone's internet connection, you can use that as > an external connection. And setup your VM to ACTUALLY use an internet > connection other than your normal ISP. > > Drew > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Friday, May 20, 2011 9:51 PM > To: Access Developers discussion and problem solving; VBA > Subject: [dba-VB] Setting up a test VM > > Using a VM running on my server, I want to emulate as closely as > possible a workstation running out > on the internet connecting in to my server over Hamachi. I have the VM > running but it was part of > my workgroup. I changed the workgroup name for the VM but I am still > able to access it remote > desktop by the machine name which means that very likely the router is > using stored info and > assigning the VM an IP. I really wanted to isolate it as much as I can > from my internal network. > > I tried assigning the machine an entirely different IP range > (192.168.122.x instead of 192.168.1.x) > but when I did that it appears that hamachi instantly loses it's tunnel > through the firewall. > > Any suggestions for how to go about making this thing isolated? > > -- > John W. Colby > www.ColbyConsulting.com > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > The information contained in this transmission is intended only for the > person or entity > to which it is addressed and may contain II-VI Proprietary and/or II-VI > Business > Sensitive material. If you are not the intended recipient, please contact > the sender > immediately and destroy the material in its entirety, whether electronic or > hard copy. > You are notified that any review, retransmission, copying, disclosure, > dissemination, > or other use of, or taking of any action in reliance upon this information > by persons > or entities other than the intended recipient is prohibited. > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From jwcolby at colbyconsulting.com Fri May 27 09:53:53 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 27 May 2011 10:53:53 -0400 Subject: [dba-VB] redemption Message-ID: <4DDFBB01.5060602@colbyconsulting.com> We are trying to use Redemption (outlook) to get around the MS security nonsense. We are using the RDO portion because the SafeMail object (Outlook) side of redemption was missing the mail.subject property msg.move for moving a message from folder to another. The RDO does have those things. We are still having two specific problems. 1) We are unable to find a way to cause RDO to download the mail, thus the MailReceived event never fires. As a result we are currently opening outlook and setting it up to download every 1 minute. Clumsy! 2) RDO.Msg.Move moves the message but we can't see it in the folder it was moved to. IOW if we move a bunch of mail items then go look in the folder that the mail items were put into, the collection doesn't show it as being there. If in Outlook we click on that folder, *then* back in our code the folder shows the mail items as being in the folder. If anyone is using this stuff please feel free to comment. Thanks, -- John W. Colby www.ColbyConsulting.com From mikedorism at verizon.net Tue May 31 11:24:20 2011 From: mikedorism at verizon.net (Doris Manning) Date: Tue, 31 May 2011 12:24:20 -0400 Subject: [dba-VB] redemption In-Reply-To: <4DDFBB01.5060602@colbyconsulting.com> References: <4DDFBB01.5060602@colbyconsulting.com> Message-ID: <704BE61E43064893905FD26C21CC8595@hargrove.internal> John, I do use Redemption but not any of the features you are trying to use. Have you tried contacting Dmitri personally? He is usually very quick to respond whenever I've had questions. Doris Manning Senior Developer/Database Administrator Hargrove Inc. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, May 27, 2011 10:54 AM To: Access Developers discussion and problem solving; VBA Subject: [dba-VB] redemption We are trying to use Redemption (outlook) to get around the MS security nonsense. We are using the RDO portion because the SafeMail object (Outlook) side of redemption was missing the mail.subject property msg.move for moving a message from folder to another. The RDO does have those things. We are still having two specific problems. 1) We are unable to find a way to cause RDO to download the mail, thus the MailReceived event never fires. As a result we are currently opening outlook and setting it up to download every 1 minute. Clumsy! 2) RDO.Msg.Move moves the message but we can't see it in the folder it was moved to. IOW if we move a bunch of mail items then go look in the folder that the mail items were put into, the collection doesn't show it as being there. If in Outlook we click on that folder, *then* back in our code the folder shows the mail items as being in the folder. If anyone is using this stuff please feel free to comment. Thanks, -- John W. Colby www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com