From DWUTKA at Marlow.com Wed Jul 1 11:54:36 2009 From: DWUTKA at Marlow.com (Drew Wutka) Date: Wed, 1 Jul 2009 11:54:36 -0500 Subject: [dba-VB] Messaging For JWC WAS: Syslogs In-Reply-To: <4A4A65A5.8080101@colbyconsulting.com> References: <4A49027A.5000604@colbyconsulting.com> <4A4A4F27.6010606@colbyconsulting.com> <4a4a60ca.0a1ad00a.63e4.2ae9@mx.google.com> <4A4A65A5.8080101@colbyconsulting.com> Message-ID: Well UDP is what you want then. However, I don't have anything setup to do that with strictly API calls. It's just too easy to do it with the Winsock Control. Drew -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, June 30, 2009 2:21 PM To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Messaging For JWC WAS: Syslogs Drew, >If you want to play around with it, what you need to do is use UDP to 'broadcast' a hello and goodbye message, to alert everything on the subnet. (And you have to filter that message on the broadcasting machine, cause it'll pick up it's own message). In that hello/goodbye message, you can include all the info you want (username, computername, IP,etc). Then it's just a matter of using TCP for direct comms between two machines. In fact I don't want direct comms between machines, I want precisely "broadcast" messages. "Hey everybody, I added a new record in tblX". Any machine receiving that message promptly refreshes the cache for that table. "Hey everybody, we are shutting down the BE in 10 minutes, get out". Any machine receiving the message pops up a message to the user telling them to finish up and get out of the database. That kind of message. I really don't care about sending to a specific machine, I care about sending to ALL machines. John W. Colby www.ColbyConsulting.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 jwcolby at colbyconsulting.com Wed Jul 1 12:18:11 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 01 Jul 2009 13:18:11 -0400 Subject: [dba-VB] Messaging For JWC WAS: Syslogs In-Reply-To: References: <4A49027A.5000604@colbyconsulting.com> <4A4A4F27.6010606@colbyconsulting.com> <4a4a60ca.0a1ad00a.63e4.2ae9@mx.google.com> <4A4A65A5.8080101@colbyconsulting.com> Message-ID: <4A4B9A53.9090904@colbyconsulting.com> Understood however that won't work for me. Thanks though. John W. Colby www.ColbyConsulting.com Drew Wutka wrote: > Well UDP is what you want then. However, I don't have anything setup to > do that with strictly API calls. It's just too easy to do it with the > Winsock Control. > > Drew From ssharkins at gmail.com Wed Jul 1 15:23:22 2009 From: ssharkins at gmail.com (Susan Harkins) Date: Wed, 1 Jul 2009 16:23:22 -0400 Subject: [dba-VB] .NET mistakes to avoid Message-ID: <8AB61109C40B414B9C4F37B64431D47F@SusanOne> I'll be writing an article on avoiding mistakes in .NET -- I'm looking for the basic stuff. If I use yours, you'll get full credit, and you can include your contact information if you like (don't have to). The readers seem to really enjoy hearing from other developers and users, not just me. Susan H. From max.wanadoo at gmail.com Wed Jul 1 15:46:02 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Wed, 1 Jul 2009 21:46:02 +0100 Subject: [dba-VB] .NET mistakes to avoid In-Reply-To: <8AB61109C40B414B9C4F37B64431D47F@SusanOne> References: <8AB61109C40B414B9C4F37B64431D47F@SusanOne> Message-ID: <4a4bcb0d.1c07d00a.7881.6f9d@mx.google.com> Umm...didnt know you were a developer, Susan. Learn summat every day... Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: 01 July 2009 21:23 To: VBLIst Subject: [dba-VB] .NET mistakes to avoid I'll be writing an article on avoiding mistakes in .NET -- I'm looking for the basic stuff. If I use yours, you'll get full credit, and you can include your contact information if you like (don't have to). The readers seem to really enjoy hearing from other developers and users, not just me. Susan H. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From ssharkins at gmail.com Wed Jul 1 15:52:52 2009 From: ssharkins at gmail.com (Susan Harkins) Date: Wed, 1 Jul 2009 16:52:52 -0400 Subject: [dba-VB] .NET mistakes to avoid References: <8AB61109C40B414B9C4F37B64431D47F@SusanOne> <4a4bcb0d.1c07d00a.7881.6f9d@mx.google.com> Message-ID: <467285A806ED4FE888137DC907B2FBAE@SusanOne> Only sometimes -- I write more than anything else now-a-days. It use to be about 50/50 -- but Access and VBA projects are rather scarce anymore. Charlotte is teaching me .NET -- you've probably seen the links to our first few articles. Whether I'll actually use .NET in a development project is up in the air -- certainly not ready to do so right now! ;) Susan H. > Umm...didnt know you were a developer, Susan. > > Learn summat every day... > > Max > > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Susan Harkins > Sent: 01 July 2009 21:23 > To: VBLIst > Subject: [dba-VB] .NET mistakes to avoid > > I'll be writing an article on avoiding mistakes in .NET -- I'm looking for > the basic stuff. If I use yours, you'll get full credit, and you can > include > > your contact information if you like (don't have to). > > The readers seem to really enjoy hearing from other developers and users, > not just me. > > Susan H. > > _______________________________________________ > 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 max.wanadoo at gmail.com Wed Jul 1 16:20:38 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Wed, 1 Jul 2009 22:20:38 +0100 Subject: [dba-VB] .NET mistakes to avoid In-Reply-To: <467285A806ED4FE888137DC907B2FBAE@SusanOne> References: <8AB61109C40B414B9C4F37B64431D47F@SusanOne> <4a4bcb0d.1c07d00a.7881.6f9d@mx.google.com> <467285A806ED4FE888137DC907B2FBAE@SusanOne> Message-ID: <4a4bd32a.0508d00a.40d4.ffffb8f3@mx.google.com> Yes, that makes sense. I always thought of you as a Technology Journalist...more than a user but not into developer stuff. Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: 01 July 2009 21:53 To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] .NET mistakes to avoid Only sometimes -- I write more than anything else now-a-days. It use to be about 50/50 -- but Access and VBA projects are rather scarce anymore. Charlotte is teaching me .NET -- you've probably seen the links to our first few articles. Whether I'll actually use .NET in a development project is up in the air -- certainly not ready to do so right now! ;) Susan H. > Umm...didnt know you were a developer, Susan. > > Learn summat every day... > > Max > > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Susan Harkins > Sent: 01 July 2009 21:23 > To: VBLIst > Subject: [dba-VB] .NET mistakes to avoid > > I'll be writing an article on avoiding mistakes in .NET -- I'm looking for > the basic stuff. If I use yours, you'll get full credit, and you can > include > > your contact information if you like (don't have to). > > The readers seem to really enjoy hearing from other developers and users, > not just me. > > Susan H. > > _______________________________________________ > 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 > _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From ssharkins at gmail.com Wed Jul 1 16:34:50 2009 From: ssharkins at gmail.com (Susan Harkins) Date: Wed, 1 Jul 2009 17:34:50 -0400 Subject: [dba-VB] .NET mistakes to avoid References: <8AB61109C40B414B9C4F37B64431D47F@SusanOne> <4a4bcb0d.1c07d00a.7881.6f9d@mx.google.com><467285A806ED4FE888137DC907B2FBAE@SusanOne> <4a4bd32a.0508d00a.40d4.ffffb8f3@mx.google.com> Message-ID: > Yes, that makes sense. I always thought of you as a Technology > Journalist...more than a user but not into developer stuff. =======That's a fair enough assessment, although I have developed lots of small projects. Susan H. From max.wanadoo at gmail.com Wed Jul 1 16:39:48 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Wed, 1 Jul 2009 22:39:48 +0100 Subject: [dba-VB] .NET mistakes to avoid In-Reply-To: References: <8AB61109C40B414B9C4F37B64431D47F@SusanOne> <4a4bcb0d.1c07d00a.7881.6f9d@mx.google.com><467285A806ED4FE888137DC907B2FBAE@SusanOne> <4a4bd32a.0508d00a.40d4.ffffb8f3@mx.google.com> Message-ID: <4a4bd7a8.1c05d00a.18f2.1c68@mx.google.com> Me too...but never written stuff...hate writing, get distracted with "smart" comments...one day I will get my bot bot smacked...hopefully Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: 01 July 2009 22:35 To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] .NET mistakes to avoid > Yes, that makes sense. I always thought of you as a Technology > Journalist...more than a user but not into developer stuff. =======That's a fair enough assessment, although I have developed lots of small projects. Susan H. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From accessd at shaw.ca Tue Jul 7 21:20:03 2009 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 7 Jul 2009 19:20:03 -0700 Subject: [dba-VB] Syslogs In-Reply-To: References: Message-ID: Hi guys: Sorry for being a little late to the thread but you could just use some of the basic primitive on all Windows machines. There is the AT command for automatically spawning a process and then NET VIEW for checking whether there is an established network connections... etc. Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, June 29, 2009 10:08 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Syslogs Hi Max The paragraph on page 1, "The WinSock Control", is for you. You need both the license and the "compatibility". Thank you to MS and IE and the "Compatibility" flag. /gustav >>> max.wanadoo at gmail.com 29-06-2009 18:51 >>> Run it in A2007K and opened the Demo form to get this error: .Protocol = sckUDPProtocol Run time error 438 Object doesn't support this property or method. Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 29 June 2009 17:37 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Syslogs Hi Susan, Max et al This article: Create a Syslog Sender/Receiver Using the MS Winsock Control With the Microsoft WinSock Control and a few coding tricks, you can use Access as a high-performance syslog sender, receiver, and logger. _is_ in VBA! I have no idea why it was put in the VB section. In fact, given the current "discussion" on Access 2007, it is just about the only project I have made in Access 2007. I started out with this several years ago with Access 97 for fun, but when I recently got the chance to write and polish it up, I felt it had to be finished in A2007. If Steve is looking for "fans of the ribbon", don't count me in - I really looked for features or benefits of the ribbon but found none, sorry. /gustav >>> max.wanadoo at gmail.com 29-06-2009 18:14 >>> Gustav, does this work under Access VBA? Max -----Original Message----- Susan Harkins wrote: > > > I'm so proud... ;) Notice, my name is NOT in the byline... I'm so > proud... yet another ones passes safely to single author status. :) > > Susan H. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From accessd at shaw.ca Tue Jul 7 22:43:28 2009 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 7 Jul 2009 20:43:28 -0700 Subject: [dba-VB] favicon (was: Syslogs) In-Reply-To: References: Message-ID: Hi Gustav: The Favicon only seems to work reliably, in all browsers, if there is an absolute link. If you have access to the web server's DNS (forward lookups) and the zones, multiple connections can be easily setup, by just adding an alias to the domain and then depending on the server, it will allow access to icons at/on any web server location: Website: http://www.mywebsite.com Icon code in the header and icon location: Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, June 30, 2009 10:06 AM To: dba-vb at databaseadvisors.com Subject: [dba-VB] favicon (was: Syslogs) Hi Drew That gives me an idea regarding favicon. I've found that it is sometimes difficult to get IE to understand that a favicon is present and should be displayed. Some common methods are: This typically doesn't work. These may: mtaulty.com/CommunityServer: The most reliable method I've found is the last - to use the full URL - but it is not nice to have hardcoded strings like these. So how about using your method: or localhost: Anyone having experience with this? /gustav >>> DWUTKA at marlow.com 30-06-2009 18:49 >>> Actually, if you have an IP address, it is real. It then gets into what it is used for. For example, with your wireless, if it's not connected, it won't have an IP address. If a standard NIC is not connected, it will show no address. If it IS connected, but not receiving an IP address, it will default to a (I think) 169 something, which is a hard coded address, which means nothing. You can also have internal addresses such as 127.0.0.1, which is a loopback to your local machine. (so if you are running a website, putting in http://127.0.0.1 on the server will give you the local website). Drew _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From Gustav at cactus.dk Wed Jul 8 02:23:34 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 08 Jul 2009 09:23:34 +0200 Subject: [dba-VB] Syslogs Message-ID: Hi Jim How Jim? The question was about if the ocx is installed and accessible ... /gustav >>> accessd at shaw.ca 08-07-2009 04:20 >>> Hi guys: Sorry for being a little late to the thread but you could just use some of the basic primitive on all Windows machines. There is the AT command for automatically spawning a process and then NET VIEW for checking whether there is an established network connections... etc. Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, June 29, 2009 10:08 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Syslogs Hi Max The paragraph on page 1, "The WinSock Control", is for you. You need both the license and the "compatibility". Thank you to MS and IE and the "Compatibility" flag. /gustav >>> max.wanadoo at gmail.com 29-06-2009 18:51 >>> Run it in A2007K and opened the Demo form to get this error: .Protocol = sckUDPProtocol Run time error 438 Object doesn't support this property or method. Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 29 June 2009 17:37 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Syslogs Hi Susan, Max et al This article: Create a Syslog Sender/Receiver Using the MS Winsock Control With the Microsoft WinSock Control and a few coding tricks, you can use Access as a high-performance syslog sender, receiver, and logger. _is_ in VBA! I have no idea why it was put in the VB section. In fact, given the current "discussion" on Access 2007, it is just about the only project I have made in Access 2007. I started out with this several years ago with Access 97 for fun, but when I recently got the chance to write and polish it up, I felt it had to be finished in A2007. If Steve is looking for "fans of the ribbon", don't count me in - I really looked for features or benefits of the ribbon but found none, sorry. /gustav >>> max.wanadoo at gmail.com 29-06-2009 18:14 >>> Gustav, does this work under Access VBA? Max -----Original Message----- Susan Harkins wrote: > > > I'm so proud... ;) Notice, my name is NOT in the byline... I'm so > proud... yet another ones passes safely to single author status. :) > > Susan H. From Gustav at cactus.dk Wed Jul 8 02:32:18 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 08 Jul 2009 09:32:18 +0200 Subject: [dba-VB] favicon (was: Syslogs) Message-ID: Hi Jim Thanks. That makes two of us. Problem is that if you google on how to implement favicon, you most often see the relative url used. Strange. /gustav >>> accessd at shaw.ca 08-07-2009 05:43 >>> Hi Gustav: The Favicon only seems to work reliably, in all browsers, if there is an absolute link. If you have access to the web server's DNS (forward lookups) and the zones, multiple connections can be easily setup, by just adding an alias to the domain and then depending on the server, it will allow access to icons at/on any web server location: Website: http://www.mywebsite.com Icon code in the header and icon location: Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, June 30, 2009 10:06 AM To: dba-vb at databaseadvisors.com Subject: [dba-VB] favicon (was: Syslogs) Hi Drew That gives me an idea regarding favicon. I've found that it is sometimes difficult to get IE to understand that a favicon is present and should be displayed. Some common methods are: This typically doesn't work. These may: mtaulty.com/CommunityServer: The most reliable method I've found is the last - to use the full URL - but it is not nice to have hardcoded strings like these. So how about using your method: or localhost: Anyone having experience with this? /gustav >>> DWUTKA at marlow.com 30-06-2009 18:49 >>> Actually, if you have an IP address, it is real. It then gets into what it is used for. For example, with your wireless, if it's not connected, it won't have an IP address. If a standard NIC is not connected, it will show no address. If it IS connected, but not receiving an IP address, it will default to a (I think) 169 something, which is a hard coded address, which means nothing. You can also have internal addresses such as 127.0.0.1, which is a loopback to your local machine. (so if you are running a website, putting in http://127.0.0.1 on the server will give you the local website). Drew From Johncliviger at aol.com Sun Jul 12 13:02:40 2009 From: Johncliviger at aol.com (Johncliviger at aol.com) Date: Sun, 12 Jul 2009 14:02:40 EDT Subject: [dba-VB] .Net Graphs in 2008 Message-ID: Hi all I've just installed the graph control into VB2008 and with help of Pat Tormey's video I got a bar chart working. What I can't do however is to get the x-axis data labels to appear. . But where and how do you switch them on/off ? Regards johnc From ssharkins at gmail.com Sun Jul 12 19:55:55 2009 From: ssharkins at gmail.com (Susan Harkins) Date: Sun, 12 Jul 2009 20:55:55 -0400 Subject: [dba-VB] Next .NET basics article from Charlotte Message-ID: <11A694D51BEF4D79B16500AD19F60FD9@SusanOne> http://www.devx.com/dotnet/Article/42296?trk=DXRSS_DOTNET From Gustav at cactus.dk Mon Jul 13 04:04:54 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 13 Jul 2009 11:04:54 +0200 Subject: [dba-VB] Next .NET basics article from Charlotte Message-ID: Hi Susan and Charlotte > A .NET typed dataset is an in-memory representation of a remote database As far as I know, it doesn't have to be remote, it can be local as well, in fact it doesn't even have to "be" as you can create it on the fly (for temporary usage or to be written to, say, an XML file). That aside, I welcome any article that promote this great feature (typed dataset) of .Net. /gustav >>> ssharkins at gmail.com 13-07-2009 02:55 >>> http://www.devx.com/dotnet/Article/42296?trk=DXRSS_DOTNET From ssharkins at gmail.com Mon Jul 13 08:54:12 2009 From: ssharkins at gmail.com (Susan Harkins) Date: Mon, 13 Jul 2009 09:54:12 -0400 Subject: [dba-VB] Next .NET basics article from Charlotte References: Message-ID: <455F2BD731014F37BF1F35DF34263F10@SusanOne> > >> A .NET typed dataset is an in-memory representation of a remote database > > As far as I know, it doesn't have to be remote, it can be local as well, > in fact it doesn't even have to "be" as you can create it on the fly (for > temporary usage or to be written to, say, an XML file). ========Well, remote is in the official MS definition and I think that simply means that .NET doesn't store data. Susan H. From cfoust at infostatsystems.com Mon Jul 13 10:18:56 2009 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 13 Jul 2009 08:18:56 -0700 Subject: [dba-VB] Next .NET basics article from Charlotte In-Reply-To: References: Message-ID: But Wait! There's more! Next article we're going to create data entities based on typed datasets and use them to implement business rules in the data tier. Charlotte -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, July 13, 2009 2:05 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Next .NET basics article from Charlotte Hi Susan and Charlotte > A .NET typed dataset is an in-memory representation of a remote > database As far as I know, it doesn't have to be remote, it can be local as well, in fact it doesn't even have to "be" as you can create it on the fly (for temporary usage or to be written to, say, an XML file). That aside, I welcome any article that promote this great feature (typed dataset) of .Net. /gustav >>> ssharkins at gmail.com 13-07-2009 02:55 >>> http://www.devx.com/dotnet/Article/42296?trk=DXRSS_DOTNET _______________________________________________ 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 Fri Jul 17 02:22:16 2009 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Fri, 17 Jul 2009 11:22:16 +0400 Subject: [dba-VB] LINQ for EF Example (Part III) Message-ID: <002101ca06af$517c8940$f4759bc0$@spb.ru> (continued) Request: ======== Get all pairs of part numbers such that some supplier supplies both of the indicated parts. Generated SQL expression (obtained via SQL profiler): ===================================================== SELECT [Project2].[C1] AS [C1], [Project2].[SN] AS [SN], [Project2].[PN] AS [PN], [Project2].[PN1] AS [PN1] FROM ( SELECT [Distinct1].[PN] AS [PN], [Distinct1].[SN] AS [SN], [Distinct1].[PN1] AS [PN1], 1 AS [C1] FROM (SELECT DISTINCT [Extent1].[PN] AS [PN], [Extent1].[SN] AS [SN], [Extent2].[PN] AS [PN1], 1 AS [C1] FROM [dbo].[SPJ] AS [Extent1] INNER JOIN [dbo].[SPJ] AS [Extent2] ON [Extent1].[SN] = [Extent2].[SN] ) AS [Distinct1] INNER JOIN (SELECT [Extent3].[CITY] AS [CITY1], [Extent3].[COLOR] AS [COLOR1], [Extent3].[PN] AS [PN1], [Extent3].[PNAME] AS [PNAME1], [Extent3].[WEIGHT] AS [WEIGHT1], [Extent4].[CITY] AS [CITY2], [Extent4].[COLOR] AS [COLOR2], [Extent4].[PN] AS [PN2], [Extent4].[PNAME] AS [PNAME2], [Extent4].[WEIGHT] AS [WEIGHT2] FROM [dbo].[P] AS [Extent3] CROSS JOIN [dbo].[P] AS [Extent4] ) AS [Join2] ON ([Distinct1].[PN] = [Join2].[PN1]) AND ([Distinct1].[PN1] = [Join2].[PN2]) WHERE ([Join2].[PN1] <> [Join2].[PN2]) AND ((SUBSTRING([Join2].[PN1], 1 + 1, 1)) < (SUBSTRING([Join2].[PN2], 1 + 1, 1))) ) AS [Project2] ORDER BY [Project2].[SN] ASC, [Project2].[PN] ASC, [Project2].[PN1] ASC Result (LINQ for EF - C#): ========================== SN PN1 PN2 ---------- S2 P3 P5 S3 P3 P4 S5 P1 P2 S5 P1 P3 S5 P1 P4 S5 P1 P5 S5 P1 P6 S5 P2 P3 S5 P2 P4 S5 P2 P5 S5 P2 P6 S5 P3 P4 S5 P3 P5 S5 P3 P6 S5 P4 P5 S5 P4 P6 S5 P5 P6 ---------- (17 rows) Result (Manual SQL): ==================== SN PN1 PN2 S2 P3 P5 S3 P3 P4 S5 P1 P2 S5 P1 P3 S5 P1 P4 S5 P1 P5 S5 P1 P6 S5 P2 P3 S5 P2 P4 S5 P2 P5 S5 P2 P6 S5 P3 P4 S5 P3 P5 S5 P3 P6 S5 P4 P5 S5 P4 P6 S5 P5 P6 (17 rows) --- LINQ for EF looks "smart" isn't it? Thank you. -- Shamil From shamil at smsconsulting.spb.ru Fri Jul 17 02:22:16 2009 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Fri, 17 Jul 2009 11:22:16 +0400 Subject: [dba-VB] LINQ for EF Example (Part II) Message-ID: <002601ca06af$52ca17e0$f85e47a0$@spb.ru> (continued) Request: ======== Get all pairs of part numbers such that some supplier supplies both of the indicated parts. LINQ for EF (C#): ================= SPJEntities suppliersAndParts = new SPJEntities(); var queryResult1 = ( from spj1 in suppliersAndParts.SPJ from spj2 in suppliersAndParts.SPJ where (spj1.SN == spj2.SN) select new { SN = spj1.SN, PN1 = spj1.PN, PN2 = spj2.PN } ).Distinct() ; var queryResult2 = ( from p1 in suppliersAndParts.P from p2 in suppliersAndParts.P let p1Num = p1.PN.Substring(1, 1) let p2Num = p2.PN.Substring(1, 1) where (p1.PN != p2.PN && string.Compare(p1Num,p2Num) < 0 ) select new { PN1 = p1.PN, PN2 = p2.PN } ).Distinct() ; var queryResult = from q1 in queryResult1 from q2 in queryResult2 where (q1.PN1 == q2.PN1 && q1.PN2 == q2.PN2) orderby q1.SN, q1.PN1, q1.PN2 select new { SN = q1.SN, PN1 = q1.PN1, PN2 = q1.PN2 }; Console.WriteLine("SN PN1 PN2"); Console.WriteLine("----------"); foreach (var row in queryResult) Console.WriteLine("{0} {1} {2}", row.SN, row.PN1, row.PN2); Console.WriteLine("----------"); -- Shamil From shamil at smsconsulting.spb.ru Fri Jul 17 02:22:16 2009 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Fri, 17 Jul 2009 11:22:16 +0400 Subject: [dba-VB] LINQ for EF Example (Part I) Message-ID: <002b01ca06af$540caa00$fc25fe00$@spb.ru> Hi All, Have a look what LINQ for EF can do - I mainly mean that it can combine C# subqueries into one SQL expression executed on server side. I personally was unaware of this feature. Yes, I have read about LINQ's "lazy execution mode" but I haven't seen such advanced examples. Of course I could have missed them. Anyway I wanted to post about this LINQ feature here - just for the records J This posting is split into three parts to get through dba-VB posting size limitations. Example uses well known C.J. Date sample database from his "An Introduction to Database Systems" book (http://www.amazon.com/Introduction-Database-Systems-C-Date/dp/0201385902): Request: ======== Get all pairs of part numbers such that some supplier supplies both of the indicated parts. Manually written SQL: ================= SELECT DISTINCT spj1.SN as SN, spj1.PN AS PN1, spj2.PN AS PN2 FROM SPJ AS spj1, SPJ AS spj2, ( select p1.PN as PN1, p2.PN as PN2 from P as p1, P as p2 where p1.PN <> p2.PN and CAST(SUBSTRING(p1.PN,2,1) as int) < CAST(SUBSTRING(p2.PN,2,1) as int) ) Q WHERE spj1.SN = spj2.SN and spj1.PN = Q.PN1 and spj2.PN = Q.PN2 order by SN, PN1, PN2 -- Shamil From mmattys at rochester.rr.com Fri Jul 17 09:13:50 2009 From: mmattys at rochester.rr.com (Mike Mattys) Date: Fri, 17 Jul 2009 10:13:50 -0400 Subject: [dba-VB] LINQ for EF Example (Part III) References: <002101ca06af$517c8940$f4759bc0$@spb.ru> Message-ID: <2CDA2A89C2FF4A7D8A42293E87A8913C@Mattys> Thanks, Shamil - These look great! I'll have to try it out. As soon as I look up EF? - Michael R Mattys MapPoint and Database Dev www.mattysconsulting.com - ----- Original Message ----- From: "Shamil Salakhetdinov" To: "'Discussion concerning Visual Basic and related programming issues.'" Sent: Friday, July 17, 2009 3:22 AM Subject: [dba-VB] LINQ for EF Example (Part III) > (continued) > > > > Request: > > ======== > > Get all pairs of part numbers such that some supplier supplies both of > the indicated parts. > > > > Generated SQL expression (obtained via SQL profiler): > > ===================================================== > > SELECT > > [Project2].[C1] AS [C1], > > [Project2].[SN] AS [SN], > > [Project2].[PN] AS [PN], > > [Project2].[PN1] AS [PN1] > > FROM ( SELECT > > [Distinct1].[PN] AS [PN], > > [Distinct1].[SN] AS [SN], > > [Distinct1].[PN1] AS [PN1], > > 1 AS [C1] > > FROM (SELECT DISTINCT > > [Extent1].[PN] AS [PN], > > [Extent1].[SN] AS [SN], > > [Extent2].[PN] AS [PN1], > > 1 AS [C1] > > FROM [dbo].[SPJ] AS [Extent1] > > INNER JOIN [dbo].[SPJ] AS [Extent2] ON [Extent1].[SN] = > [Extent2].[SN] ) AS [Distinct1] > > INNER JOIN (SELECT [Extent3].[CITY] AS [CITY1], [Extent3].[COLOR] AS > [COLOR1], [Extent3].[PN] AS [PN1], [Extent3].[PNAME] AS [PNAME1], > [Extent3].[WEIGHT] AS [WEIGHT1], [Extent4].[CITY] AS [CITY2], > [Extent4].[COLOR] AS [COLOR2], [Extent4].[PN] AS [PN2], [Extent4].[PNAME] > AS > [PNAME2], [Extent4].[WEIGHT] AS [WEIGHT2] > > FROM [dbo].[P] AS [Extent3] > > CROSS JOIN [dbo].[P] AS [Extent4] ) AS [Join2] ON > ([Distinct1].[PN] = [Join2].[PN1]) AND ([Distinct1].[PN1] = [Join2].[PN2]) > > WHERE ([Join2].[PN1] <> [Join2].[PN2]) AND ((SUBSTRING([Join2].[PN1], > 1 + 1, 1)) < (SUBSTRING([Join2].[PN2], 1 + 1, 1))) > > ) AS [Project2] > > ORDER BY [Project2].[SN] ASC, [Project2].[PN] ASC, [Project2].[PN1] ASC > > > > Result (LINQ for EF - C#): > > ========================== > > SN PN1 PN2 > > ---------- > > S2 P3 P5 > > S3 P3 P4 > > S5 P1 P2 > > S5 P1 P3 > > S5 P1 P4 > > S5 P1 P5 > > S5 P1 P6 > > S5 P2 P3 > > S5 P2 P4 > > S5 P2 P5 > > S5 P2 P6 > > S5 P3 P4 > > S5 P3 P5 > > S5 P3 P6 > > S5 P4 P5 > > S5 P4 P6 > > S5 P5 P6 > > ---------- > > > > (17 rows) > > > > Result (Manual SQL): > > ==================== > > > > SN PN1 PN2 > > S2 P3 P5 > > S3 P3 P4 > > S5 P1 P2 > > S5 P1 P3 > > S5 P1 P4 > > S5 P1 P5 > > S5 P1 P6 > > S5 P2 P3 > > S5 P2 P4 > > S5 P2 P5 > > S5 P2 P6 > > S5 P3 P4 > > S5 P3 P5 > > S5 P3 P6 > > S5 P4 P5 > > S5 P4 P6 > > S5 P5 P6 > > > > (17 rows) > > > > --- > > LINQ for EF looks "smart" isn't it? > > > > Thank you. > > > > -- > > Shamil > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From Gustav at cactus.dk Fri Jul 17 10:16:52 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 17 Jul 2009 17:16:52 +0200 Subject: [dba-VB] LINQ for EF Example (Part I) Message-ID: Hi Shamil No, I wasn't aware of exactly this - or rather down to what level the SQL code generator operates - but it is a great feature. Where can the C.J. Date test database you mention be obtained? I found the book for download as a PDF here: http://www.scribd.com/doc/13078295/An-Introduction-to-Database-Systems-8Ed-C-J-Date-Solutions-Manual It seems to be complete. Not sure what the deal is? /gustav >>> shamil at smsconsulting.spb.ru 17-07-2009 09:22 >>> Hi All, Have a look what LINQ for EF can do - I mainly mean that it can combine C# subqueries into one SQL expression executed on server side. I personally was unaware of this feature. Yes, I have read about LINQ's "lazy execution mode" but I haven't seen such advanced examples. Of course I could have missed them. Anyway I wanted to post about this LINQ feature here - just for the records J This posting is split into three parts to get through dba-VB posting size limitations. Example uses well known C.J. Date sample database from his "An Introduction to Database Systems" book (http://www.amazon.com/Introduction-Database-Systems-C-Date/dp/0201385902): From mmattys at rochester.rr.com Fri Jul 17 10:53:57 2009 From: mmattys at rochester.rr.com (Mike Mattys) Date: Fri, 17 Jul 2009 11:53:57 -0400 Subject: [dba-VB] LINQ for EF Example (Part III) References: <002101ca06af$517c8940$f4759bc0$@spb.ru> <2CDA2A89C2FF4A7D8A42293E87A8913C@Mattys> Message-ID: <868FCF698D3F4BE1A75E23ACD6CF09E5@Mattys> Entity Framework Extraneous Froth :) - Michael R Mattys MapPoint and Database Dev www.mattysconsulting.com - ----- Original Message ----- From: "Mike Mattys" To: "Discussion concerning Visual Basic and related programming issues." Sent: Friday, July 17, 2009 10:13 AM Subject: Re: [dba-VB] LINQ for EF Example (Part III) > Thanks, Shamil - These look great! > I'll have to try it out. > > As soon as I look up EF? > > - > Michael R Mattys > MapPoint and Database Dev > www.mattysconsulting.com > - > > ----- Original Message ----- > From: "Shamil Salakhetdinov" > To: "'Discussion concerning Visual Basic and related programming issues.'" > > Sent: Friday, July 17, 2009 3:22 AM > Subject: [dba-VB] LINQ for EF Example (Part III) > > >> (continued) >> >> >> >> Request: >> >> ======== >> >> Get all pairs of part numbers such that some supplier supplies both of >> the indicated parts. >> >> >> >> Generated SQL expression (obtained via SQL profiler): >> >> ===================================================== >> >> SELECT >> >> [Project2].[C1] AS [C1], >> >> [Project2].[SN] AS [SN], >> >> [Project2].[PN] AS [PN], >> >> [Project2].[PN1] AS [PN1] >> >> FROM ( SELECT >> >> [Distinct1].[PN] AS [PN], >> >> [Distinct1].[SN] AS [SN], >> >> [Distinct1].[PN1] AS [PN1], >> >> 1 AS [C1] >> >> FROM (SELECT DISTINCT >> >> [Extent1].[PN] AS [PN], >> >> [Extent1].[SN] AS [SN], >> >> [Extent2].[PN] AS [PN1], >> >> 1 AS [C1] >> >> FROM [dbo].[SPJ] AS [Extent1] >> >> INNER JOIN [dbo].[SPJ] AS [Extent2] ON [Extent1].[SN] = >> [Extent2].[SN] ) AS [Distinct1] >> >> INNER JOIN (SELECT [Extent3].[CITY] AS [CITY1], [Extent3].[COLOR] >> AS >> [COLOR1], [Extent3].[PN] AS [PN1], [Extent3].[PNAME] AS [PNAME1], >> [Extent3].[WEIGHT] AS [WEIGHT1], [Extent4].[CITY] AS [CITY2], >> [Extent4].[COLOR] AS [COLOR2], [Extent4].[PN] AS [PN2], [Extent4].[PNAME] >> AS >> [PNAME2], [Extent4].[WEIGHT] AS [WEIGHT2] >> >> FROM [dbo].[P] AS [Extent3] >> >> CROSS JOIN [dbo].[P] AS [Extent4] ) AS [Join2] ON >> ([Distinct1].[PN] = [Join2].[PN1]) AND ([Distinct1].[PN1] = >> [Join2].[PN2]) >> >> WHERE ([Join2].[PN1] <> [Join2].[PN2]) AND >> ((SUBSTRING([Join2].[PN1], >> 1 + 1, 1)) < (SUBSTRING([Join2].[PN2], 1 + 1, 1))) >> >> ) AS [Project2] >> >> ORDER BY [Project2].[SN] ASC, [Project2].[PN] ASC, [Project2].[PN1] ASC >> >> >> >> Result (LINQ for EF - C#): >> >> ========================== >> >> SN PN1 PN2 >> >> ---------- >> >> S2 P3 P5 >> >> S3 P3 P4 >> >> S5 P1 P2 >> >> S5 P1 P3 >> >> S5 P1 P4 >> >> S5 P1 P5 >> >> S5 P1 P6 >> >> S5 P2 P3 >> >> S5 P2 P4 >> >> S5 P2 P5 >> >> S5 P2 P6 >> >> S5 P3 P4 >> >> S5 P3 P5 >> >> S5 P3 P6 >> >> S5 P4 P5 >> >> S5 P4 P6 >> >> S5 P5 P6 >> >> ---------- >> >> >> >> (17 rows) >> >> >> >> Result (Manual SQL): >> >> ==================== >> >> >> >> SN PN1 PN2 >> >> S2 P3 P5 >> >> S3 P3 P4 >> >> S5 P1 P2 >> >> S5 P1 P3 >> >> S5 P1 P4 >> >> S5 P1 P5 >> >> S5 P1 P6 >> >> S5 P2 P3 >> >> S5 P2 P4 >> >> S5 P2 P5 >> >> S5 P2 P6 >> >> S5 P3 P4 >> >> S5 P3 P5 >> >> S5 P3 P6 >> >> S5 P4 P5 >> >> S5 P4 P6 >> >> S5 P5 P6 >> >> >> >> (17 rows) >> >> >> >> --- >> >> LINQ for EF looks "smart" isn't it? >> >> >> >> 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 Gustav at cactus.dk Fri Jul 17 11:29:47 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 17 Jul 2009 18:29:47 +0200 Subject: [dba-VB] Using Microsoft ADO.NET Entity Framework with MySQL (was: LINQ for EF Example) Message-ID: Hi all And as an apropos: Live Webinar: For ISVs - Using Microsoft ADO.NET Entity Framework with MySQL Tuesday, August 11, 2009 - 10:00am PDT The Entity Framework is a new technology that was developed by Microsoft and delivered as part of .NET 3.5 SP1. This framework abstracts the relational schema of the database and presents it as a conceptual schema. This is particularly beneficial for ISVs because by working with a conceptual schema, the commercial application developer avoids having to write complicated joins to connect all the related items of data, greatly reducing development time, resources and therefore, COGS. ISV developers can access their data using ORM-like classes, LinQ syntax, or with a new SQL syntax named EntitySQL, all of which further reduce COGS. Register for this Webinar: http://www.mysql.com/news-and-events/web-seminars/display-397.html /gustav ----- Original Message ----- > Thanks, Shamil - These look great! > I'll have to try it out. > > As soon as I look up EF? > > - > Michael R Mattys > MapPoint and Database Dev > www.mattysconsulting.com From Gustav at cactus.dk Fri Jul 17 11:38:44 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 17 Jul 2009 18:38:44 +0200 Subject: [dba-VB] Using Microsoft ADO.NET Entity Framework with MySQL (was: LINQ for EF Example) Message-ID: Also: New Release of MySQL Connector/Net 6.0.4 (GA) MySQL Connector/Net 6.0.4, a new version of the all-managed .NET driver for MySQL has been released. This is the first post-GA release of the new 6.0 connector and includes several bug fixes from the initial GA release. This release is approved for use in all scenarios and officially supports MySQL servers 4.1 and higher. View the complete list of changes: http://dev.mysql.com/doc/refman/6.0/en/connector-net-news-6-0-4.html Download Now: http://dev.mysql.com/downloads/connector/net/6.0.html /gustav >>> Gustav at cactus.dk 17-07-2009 18:29 >>> Hi all And as an apropos: Live Webinar: For ISVs - Using Microsoft ADO.NET Entity Framework with MySQL Tuesday, August 11, 2009 - 10:00am PDT The Entity Framework is a new technology that was developed by Microsoft and delivered as part of .NET 3.5 SP1. This framework abstracts the relational schema of the database and presents it as a conceptual schema. This is particularly beneficial for ISVs because by working with a conceptual schema, the commercial application developer avoids having to write complicated joins to connect all the related items of data, greatly reducing development time, resources and therefore, COGS. ISV developers can access their data using ORM-like classes, LinQ syntax, or with a new SQL syntax named EntitySQL, all of which further reduce COGS. Register for this Webinar: http://www.mysql.com/news-and-events/web-seminars/display-397.html /gustav ----- Original Message ----- > Thanks, Shamil - These look great! > I'll have to try it out. > > As soon as I look up EF? > > - > Michael R Mattys > MapPoint and Database Dev > www.mattysconsulting.com From cfoust at infostatsystems.com Fri Jul 17 11:52:45 2009 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 17 Jul 2009 09:52:45 -0700 Subject: [dba-VB] Using Microsoft ADO.NET Entity Framework with MySQL(was: LINQ for EF Example) In-Reply-To: References: Message-ID: I started to look at the data entity model but found it horribly confusing in VS2008. Our project manager previously worked for a large company that had played with it and found the problems it created for them outweighed any advantages. I may come around to it as it evolves, but for now I'll stay with our homegrown entity model. Charlotte -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, July 17, 2009 9:30 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Using Microsoft ADO.NET Entity Framework with MySQL(was: LINQ for EF Example) Hi all And as an apropos: Live Webinar: For ISVs - Using Microsoft ADO.NET Entity Framework with MySQL Tuesday, August 11, 2009 - 10:00am PDT The Entity Framework is a new technology that was developed by Microsoft and delivered as part of .NET 3.5 SP1. This framework abstracts the relational schema of the database and presents it as a conceptual schema. This is particularly beneficial for ISVs because by working with a conceptual schema, the commercial application developer avoids having to write complicated joins to connect all the related items of data, greatly reducing development time, resources and therefore, COGS. ISV developers can access their data using ORM-like classes, LinQ syntax, or with a new SQL syntax named EntitySQL, all of which further reduce COGS. Register for this Webinar: http://www.mysql.com/news-and-events/web-seminars/display-397.html /gustav ----- Original Message ----- > Thanks, Shamil - These look great! > I'll have to try it out. > > As soon as I look up EF? > > - > Michael R Mattys > MapPoint and Database Dev > www.mattysconsulting.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 Fri Jul 17 15:34:45 2009 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sat, 18 Jul 2009 00:34:45 +0400 Subject: [dba-VB] LINQ for EF Example (Part I) In-Reply-To: References: Message-ID: <005401ca071e$066b0250$134106f0$@spb.ru> Hi Gustav, Yes, this is a great feature. I have just published SPJ sample database at: http://northwind.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=26600#D ownloadId=75624 I have made this sample database developed here by typing its data from the book, which I have got purchased here in 1981, in USSR, Russian Edition. ?.J.Date has released this year yet another book - I'd recommend it as it's IMO more modern/advanced/suitable for professional db developers: SQL and Relational Theory, 1st Edition by C.J. Date January 2009 ISBN-10: 0-596-52306-8 http://oreilly.com/catalog/9780596523060/ "Understanding SQL's underlying theory is the best way to guarantee that your SQL code is correct and your database schema is robust and maintainable. In SQL and Relational Theory, author C.J. Date demonstrates how you can apply relational theory directly to your use of SQL, with numerous examples and clear explanations of the reasoning behind them. Anyone with a modest to advanced background in SQL will benefit from the many insights in this book." -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, July 17, 2009 7:17 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] LINQ for EF Example (Part I) Hi Shamil No, I wasn't aware of exactly this - or rather down to what level the SQL code generator operates - but it is a great feature. Where can the C.J. Date test database you mention be obtained? I found the book for download as a PDF here: http://www.scribd.com/doc/13078295/An-Introduction-to-Database-Systems-8Ed-C -J-Date-Solutions-Manual It seems to be complete. Not sure what the deal is? /gustav >>> shamil at smsconsulting.spb.ru 17-07-2009 09:22 >>> Hi All, Have a look what LINQ for EF can do - I mainly mean that it can combine C# subqueries into one SQL expression executed on server side. I personally was unaware of this feature. Yes, I have read about LINQ's "lazy execution mode" but I haven't seen such advanced examples. Of course I could have missed them. Anyway I wanted to post about this LINQ feature here - just for the records J This posting is split into three parts to get through dba-VB posting size limitations. Example uses well known C.J. Date sample database from his "An Introduction to Database Systems" book (http://www.amazon.com/Introduction-Database-Systems-C-Date/dp/0201385902): _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com __________ Information from ESET NOD32 Antivirus, version of virus signature database 4255 (20090717) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru __________ Information from ESET NOD32 Antivirus, version of virus signature database 4255 (20090717) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru From shamil at smsconsulting.spb.ru Fri Jul 17 18:28:34 2009 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sat, 18 Jul 2009 03:28:34 +0400 Subject: [dba-VB] Using Microsoft ADO.NET Entity Framework with MySQL (was: LINQ for EF Example) In-Reply-To: References: Message-ID: <005501ca0736$50039180$f00ab480$@spb.ru> Hi Gustav, This mySQL Connector, which can be used to work with mySQL DBs from LINQ for EF(?), is probably developed by using "Entity Client" concept/technology: http://blogs.msdn.com/adonet/archive/2007/02/14/entity-client.aspx It may happen somebody will use this technology to develop an MS Access connector - let's hope that happens real soon? Hey, MS MS Access Team - how about doing that there? Another useful technology MS "cooks" there is "CodeOnly for Entity Framework": http://blogs.msdn.com/adonet/archive/2009/06/22/feature-ctp-walkthrough-code -only-for-entity-framework.aspx You mentioned something like that here already - did you mean that "CodeOnly for Entity Framework" technology or just a concept of starting with Domain Model implemented in code/metadata and then using this Domain Model to generate actual (relational) DB model? -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, July 17, 2009 8:39 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Using Microsoft ADO.NET Entity Framework with MySQL (was: LINQ for EF Example) Also: New Release of MySQL Connector/Net 6.0.4 (GA) MySQL Connector/Net 6.0.4, a new version of the all-managed .NET driver for MySQL has been released. This is the first post-GA release of the new 6.0 connector and includes several bug fixes from the initial GA release. This release is approved for use in all scenarios and officially supports MySQL servers 4.1 and higher. View the complete list of changes: http://dev.mysql.com/doc/refman/6.0/en/connector-net-news-6-0-4.html Download Now: http://dev.mysql.com/downloads/connector/net/6.0.html /gustav >>> Gustav at cactus.dk 17-07-2009 18:29 >>> Hi all And as an apropos: Live Webinar: For ISVs - Using Microsoft ADO.NET Entity Framework with MySQL Tuesday, August 11, 2009 - 10:00am PDT The Entity Framework is a new technology that was developed by Microsoft and delivered as part of .NET 3.5 SP1. This framework abstracts the relational schema of the database and presents it as a conceptual schema. This is particularly beneficial for ISVs because by working with a conceptual schema, the commercial application developer avoids having to write complicated joins to connect all the related items of data, greatly reducing development time, resources and therefore, COGS. ISV developers can access their data using ORM-like classes, LinQ syntax, or with a new SQL syntax named EntitySQL, all of which further reduce COGS. Register for this Webinar: http://www.mysql.com/news-and-events/web-seminars/display-397.html /gustav ----- Original Message ----- > Thanks, Shamil - These look great! > I'll have to try it out. > > As soon as I look up EF? > > - > Michael R Mattys > MapPoint and Database Dev > www.mattysconsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com __________ Information from ESET NOD32 Antivirus, version of virus signature database 4255 (20090717) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru __________ Information from ESET NOD32 Antivirus, version of virus signature database 4255 (20090717) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru From shamil at smsconsulting.spb.ru Sat Jul 18 07:30:01 2009 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sat, 18 Jul 2009 16:30:01 +0400 Subject: [dba-VB] LINQ for EF Example (Part III) In-Reply-To: <868FCF698D3F4BE1A75E23ACD6CF09E5@Mattys> References: <002101ca06af$517c8940$f4759bc0$@spb.ru> <2CDA2A89C2FF4A7D8A42293E87A8913C@Mattys> <868FCF698D3F4BE1A75E23ACD6CF09E5@Mattys> Message-ID: <007501ca07a3$79738d00$6c5aa700$@spb.ru> Hi Mike, Yes, "LINQ for ADO.NET Entity Framework" to be precise :) What about teaming-up with Gustav and myself and to port our Northwind.NET for MS SQL 2005 to "LINQ for ADO.NET Entity Framework"? Just an idea - and doing that project in "lazy summer mode" without setting strict deadlines? Gustav how about you? Anybody else? Have nice weekend. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Mike Mattys Sent: Friday, July 17, 2009 7:54 PM To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] LINQ for EF Example (Part III) Entity Framework Extraneous Froth :) - Michael R Mattys MapPoint and Database Dev www.mattysconsulting.com - ----- Original Message ----- From: "Mike Mattys" To: "Discussion concerning Visual Basic and related programming issues." Sent: Friday, July 17, 2009 10:13 AM Subject: Re: [dba-VB] LINQ for EF Example (Part III) > Thanks, Shamil - These look great! > I'll have to try it out. > > As soon as I look up EF? > > - > Michael R Mattys > MapPoint and Database Dev > www.mattysconsulting.com > - > > ----- Original Message ----- > From: "Shamil Salakhetdinov" > To: "'Discussion concerning Visual Basic and related programming issues.'" > > Sent: Friday, July 17, 2009 3:22 AM > Subject: [dba-VB] LINQ for EF Example (Part III) > > >> (continued) >> >> >> >> Request: >> >> ======== >> >> Get all pairs of part numbers such that some supplier supplies both of >> the indicated parts. >> >> >> >> Generated SQL expression (obtained via SQL profiler): >> >> ===================================================== >> >> SELECT >> >> [Project2].[C1] AS [C1], >> >> [Project2].[SN] AS [SN], >> >> [Project2].[PN] AS [PN], >> >> [Project2].[PN1] AS [PN1] >> >> FROM ( SELECT >> >> [Distinct1].[PN] AS [PN], >> >> [Distinct1].[SN] AS [SN], >> >> [Distinct1].[PN1] AS [PN1], >> >> 1 AS [C1] >> >> FROM (SELECT DISTINCT >> >> [Extent1].[PN] AS [PN], >> >> [Extent1].[SN] AS [SN], >> >> [Extent2].[PN] AS [PN1], >> >> 1 AS [C1] >> >> FROM [dbo].[SPJ] AS [Extent1] >> >> INNER JOIN [dbo].[SPJ] AS [Extent2] ON [Extent1].[SN] = >> [Extent2].[SN] ) AS [Distinct1] >> >> INNER JOIN (SELECT [Extent3].[CITY] AS [CITY1], [Extent3].[COLOR] >> AS >> [COLOR1], [Extent3].[PN] AS [PN1], [Extent3].[PNAME] AS [PNAME1], >> [Extent3].[WEIGHT] AS [WEIGHT1], [Extent4].[CITY] AS [CITY2], >> [Extent4].[COLOR] AS [COLOR2], [Extent4].[PN] AS [PN2], [Extent4].[PNAME] >> AS >> [PNAME2], [Extent4].[WEIGHT] AS [WEIGHT2] >> >> FROM [dbo].[P] AS [Extent3] >> >> CROSS JOIN [dbo].[P] AS [Extent4] ) AS [Join2] ON >> ([Distinct1].[PN] = [Join2].[PN1]) AND ([Distinct1].[PN1] = >> [Join2].[PN2]) >> >> WHERE ([Join2].[PN1] <> [Join2].[PN2]) AND >> ((SUBSTRING([Join2].[PN1], >> 1 + 1, 1)) < (SUBSTRING([Join2].[PN2], 1 + 1, 1))) >> >> ) AS [Project2] >> >> ORDER BY [Project2].[SN] ASC, [Project2].[PN] ASC, [Project2].[PN1] ASC >> >> >> >> Result (LINQ for EF - C#): >> >> ========================== >> >> SN PN1 PN2 >> >> ---------- >> >> S2 P3 P5 >> >> S3 P3 P4 >> >> S5 P1 P2 >> >> S5 P1 P3 >> >> S5 P1 P4 >> >> S5 P1 P5 >> >> S5 P1 P6 >> >> S5 P2 P3 >> >> S5 P2 P4 >> >> S5 P2 P5 >> >> S5 P2 P6 >> >> S5 P3 P4 >> >> S5 P3 P5 >> >> S5 P3 P6 >> >> S5 P4 P5 >> >> S5 P4 P6 >> >> S5 P5 P6 >> >> ---------- >> >> >> >> (17 rows) >> >> >> >> Result (Manual SQL): >> >> ==================== >> >> >> >> SN PN1 PN2 >> >> S2 P3 P5 >> >> S3 P3 P4 >> >> S5 P1 P2 >> >> S5 P1 P3 >> >> S5 P1 P4 >> >> S5 P1 P5 >> >> S5 P1 P6 >> >> S5 P2 P3 >> >> S5 P2 P4 >> >> S5 P2 P5 >> >> S5 P2 P6 >> >> S5 P3 P4 >> >> S5 P3 P5 >> >> S5 P3 P6 >> >> S5 P4 P5 >> >> S5 P4 P6 >> >> S5 P5 P6 >> >> >> >> (17 rows) >> >> >> >> --- >> >> LINQ for EF looks "smart" isn't it? >> >> >> >> 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 > _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com __________ Information from ESET NOD32 Antivirus, version of virus signature database 4255 (20090717) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru From Gustav at cactus.dk Sat Jul 18 09:02:55 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Sat, 18 Jul 2009 16:02:55 +0200 Subject: [dba-VB] Using Microsoft ADO.NET Entity Framework with MySQL Message-ID: Hi Shamil I don't know, it could be, on the other hand MySQL (Sun and now Oracle) indeed have the programming resources to create the connector the way they prefer - and I think they pay a lot of attention to this because as they wrote in the recent news letter much to my surprise: For many years, Microsoft Windows has been the most popular development platform and second most popular production platform for organizations developing MySQL applications. The "CodeOnly for Entity Framework" is exactly what I had in mind. Thanks for the link - looks like I should sign up for that blog. This must be the ultimate goal - to design and specify your database directly in your code at a higher level than manually adding fields and constraints and so on. I better get that VS2010 beta! But right now - with VS2005 and 2008 - you can edit your datatables in VS and, when you press enter, VS writes the changes back to the database. I think this may be what you recall that I previously have referred to. This feature is great but "CodeOnly for Entity Framework" is certainly better. I'll recommend anyone to study the links to the MSDN blog (and the links at those pages about POCO, Plain Old CLR Objects!). If this works, one day you won't look back. /gustav >>> shamil at smsconsulting.spb.ru 18-07-2009 01:28 >>> Hi Gustav, This mySQL Connector, which can be used to work with mySQL DBs from LINQ for EF(?), is probably developed by using "Entity Client" concept/technology: http://blogs.msdn.com/adonet/archive/2007/02/14/entity-client.aspx It may happen somebody will use this technology to develop an MS Access connector - let's hope that happens real soon? Hey, MS MS Access Team - how about doing that there? Another useful technology MS "cooks" there is "CodeOnly for Entity Framework": http://blogs.msdn.com/adonet/archive/2009/06/22/feature-ctp-walkthrough-code-only-for-entity-framework.aspx You mentioned something like that here already - did you mean that "CodeOnly for Entity Framework" technology or just a concept of starting with Domain Model implemented in code/metadata and then using this Domain Model to generate actual (relational) DB model? -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, July 17, 2009 8:39 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Using Microsoft ADO.NET Entity Framework with MySQL (was: LINQ for EF Example) Also: New Release of MySQL Connector/Net 6.0.4 (GA) MySQL Connector/Net 6.0.4, a new version of the all-managed .NET driver for MySQL has been released. This is the first post-GA release of the new 6.0 connector and includes several bug fixes from the initial GA release. This release is approved for use in all scenarios and officially supports MySQL servers 4.1 and higher. View the complete list of changes: http://dev.mysql.com/doc/refman/6.0/en/connector-net-news-6-0-4.html Download Now: http://dev.mysql.com/downloads/connector/net/6.0.html /gustav >>> Gustav at cactus.dk 17-07-2009 18:29 >>> Hi all And as an apropos: Live Webinar: For ISVs - Using Microsoft ADO.NET Entity Framework with MySQL Tuesday, August 11, 2009 - 10:00am PDT The Entity Framework is a new technology that was developed by Microsoft and delivered as part of .NET 3.5 SP1. This framework abstracts the relational schema of the database and presents it as a conceptual schema. This is particularly beneficial for ISVs because by working with a conceptual schema, the commercial application developer avoids having to write complicated joins to connect all the related items of data, greatly reducing development time, resources and therefore, COGS. ISV developers can access their data using ORM-like classes, LinQ syntax, or with a new SQL syntax named EntitySQL, all of which further reduce COGS. Register for this Webinar: http://www.mysql.com/news-and-events/web-seminars/display-397.html /gustav From mmattys at rochester.rr.com Sat Jul 18 19:52:05 2009 From: mmattys at rochester.rr.com (Mike Mattys) Date: Sat, 18 Jul 2009 20:52:05 -0400 Subject: [dba-VB] LINQ for EF Example (Part III) References: <002101ca06af$517c8940$f4759bc0$@spb.ru> <2CDA2A89C2FF4A7D8A42293E87A8913C@Mattys><868FCF698D3F4BE1A75E23ACD6CF09E5@Mattys> <007501ca07a3$79738d00$6c5aa700$@spb.ru> Message-ID: <56BD4D1BAB674ACC92EA34E805C0297E@Mattys> Hi Shamil, You can count me in! - Michael R Mattys MapPoint and Database Dev www.mattysconsulting.com - ----- Original Message ----- From: "Shamil Salakhetdinov" To: "'Discussion concerning Visual Basic and related programming issues.'" Sent: Saturday, July 18, 2009 8:30 AM Subject: Re: [dba-VB] LINQ for EF Example (Part III) > Hi Mike, > > Yes, "LINQ for ADO.NET Entity Framework" to be precise :) > > What about teaming-up with Gustav and myself and to port our Northwind.NET > for MS SQL 2005 to "LINQ for ADO.NET Entity Framework"? Just an idea - and > doing that project in "lazy summer mode" without setting strict deadlines? > > Gustav how about you? > Anybody else? > > Have nice weekend. > > -- > Shamil > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Mike Mattys > Sent: Friday, July 17, 2009 7:54 PM > To: Discussion concerning Visual Basic and related programming issues. > Subject: Re: [dba-VB] LINQ for EF Example (Part III) > > Entity Framework > > Extraneous Froth :) > > - > Michael R Mattys > MapPoint and Database Dev > www.mattysconsulting.com > - > ----- Original Message ----- > From: "Mike Mattys" > To: "Discussion concerning Visual Basic and related programming issues." > > Sent: Friday, July 17, 2009 10:13 AM > Subject: Re: [dba-VB] LINQ for EF Example (Part III) > > >> Thanks, Shamil - These look great! >> I'll have to try it out. >> >> As soon as I look up EF? >> >> - >> Michael R Mattys >> MapPoint and Database Dev >> www.mattysconsulting.com >> - >> >> ----- Original Message ----- >> From: "Shamil Salakhetdinov" >> To: "'Discussion concerning Visual Basic and related programming >> issues.'" >> >> Sent: Friday, July 17, 2009 3:22 AM >> Subject: [dba-VB] LINQ for EF Example (Part III) >> >> >>> (continued) >>> >>> >>> >>> Request: >>> >>> ======== >>> >>> Get all pairs of part numbers such that some supplier supplies both of >>> the indicated parts. >>> >>> >>> >>> Generated SQL expression (obtained via SQL profiler): >>> >>> ===================================================== >>> >>> SELECT >>> >>> [Project2].[C1] AS [C1], >>> >>> [Project2].[SN] AS [SN], >>> >>> [Project2].[PN] AS [PN], >>> >>> [Project2].[PN1] AS [PN1] >>> >>> FROM ( SELECT >>> >>> [Distinct1].[PN] AS [PN], >>> >>> [Distinct1].[SN] AS [SN], >>> >>> [Distinct1].[PN1] AS [PN1], >>> >>> 1 AS [C1] >>> >>> FROM (SELECT DISTINCT >>> >>> [Extent1].[PN] AS [PN], >>> >>> [Extent1].[SN] AS [SN], >>> >>> [Extent2].[PN] AS [PN1], >>> >>> 1 AS [C1] >>> >>> FROM [dbo].[SPJ] AS [Extent1] >>> >>> INNER JOIN [dbo].[SPJ] AS [Extent2] ON [Extent1].[SN] = >>> [Extent2].[SN] ) AS [Distinct1] >>> >>> INNER JOIN (SELECT [Extent3].[CITY] AS [CITY1], [Extent3].[COLOR] >>> AS >>> [COLOR1], [Extent3].[PN] AS [PN1], [Extent3].[PNAME] AS [PNAME1], >>> [Extent3].[WEIGHT] AS [WEIGHT1], [Extent4].[CITY] AS [CITY2], >>> [Extent4].[COLOR] AS [COLOR2], [Extent4].[PN] AS [PN2], >>> [Extent4].[PNAME] >>> AS >>> [PNAME2], [Extent4].[WEIGHT] AS [WEIGHT2] >>> >>> FROM [dbo].[P] AS [Extent3] >>> >>> CROSS JOIN [dbo].[P] AS [Extent4] ) AS [Join2] ON >>> ([Distinct1].[PN] = [Join2].[PN1]) AND ([Distinct1].[PN1] = >>> [Join2].[PN2]) >>> >>> WHERE ([Join2].[PN1] <> [Join2].[PN2]) AND >>> ((SUBSTRING([Join2].[PN1], >>> 1 + 1, 1)) < (SUBSTRING([Join2].[PN2], 1 + 1, 1))) >>> >>> ) AS [Project2] >>> >>> ORDER BY [Project2].[SN] ASC, [Project2].[PN] ASC, [Project2].[PN1] ASC >>> >>> >>> >>> Result (LINQ for EF - C#): >>> >>> ========================== >>> >>> SN PN1 PN2 >>> >>> ---------- >>> >>> S2 P3 P5 >>> >>> S3 P3 P4 >>> >>> S5 P1 P2 >>> >>> S5 P1 P3 >>> >>> S5 P1 P4 >>> >>> S5 P1 P5 >>> >>> S5 P1 P6 >>> >>> S5 P2 P3 >>> >>> S5 P2 P4 >>> >>> S5 P2 P5 >>> >>> S5 P2 P6 >>> >>> S5 P3 P4 >>> >>> S5 P3 P5 >>> >>> S5 P3 P6 >>> >>> S5 P4 P5 >>> >>> S5 P4 P6 >>> >>> S5 P5 P6 >>> >>> ---------- >>> >>> >>> >>> (17 rows) >>> >>> >>> >>> Result (Manual SQL): >>> >>> ==================== >>> >>> >>> >>> SN PN1 PN2 >>> >>> S2 P3 P5 >>> >>> S3 P3 P4 >>> >>> S5 P1 P2 >>> >>> S5 P1 P3 >>> >>> S5 P1 P4 >>> >>> S5 P1 P5 >>> >>> S5 P1 P6 >>> >>> S5 P2 P3 >>> >>> S5 P2 P4 >>> >>> S5 P2 P5 >>> >>> S5 P2 P6 >>> >>> S5 P3 P4 >>> >>> S5 P3 P5 >>> >>> S5 P3 P6 >>> >>> S5 P4 P5 >>> >>> S5 P4 P6 >>> >>> S5 P5 P6 >>> >>> >>> >>> (17 rows) >>> >>> >>> >>> --- >>> >>> LINQ for EF looks "smart" isn't it? >>> >>> >>> >>> 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 >> > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > > __________ Information from ESET NOD32 Antivirus, version of virus > signature > database 4255 (20090717) __________ > > The message was checked by ESET NOD32 Antivirus. > > http://www.esetnod32.ru > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From Gustav at cactus.dk Sun Jul 19 02:25:30 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Sun, 19 Jul 2009 09:25:30 +0200 Subject: [dba-VB] LINQ for EF Example (Part III) Message-ID: Hi Shamil Of course, in lazy summer mode, as I probably will be off for a week or so from late next week. /gustav >>> shamil at smsconsulting.spb.ru 18-07-2009 14:30 >>> Hi Mike, Yes, "LINQ for ADO.NET Entity Framework" to be precise :) What about teaming-up with Gustav and myself and to port our Northwind.NET for MS SQL 2005 to "LINQ for ADO.NET Entity Framework"? Just an idea - and doing that project in "lazy summer mode" without setting strict deadlines? Gustav how about you? Anybody else? Have nice weekend. -- Shamil From shamil at smsconsulting.spb.ru Tue Jul 21 12:29:34 2009 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Tue, 21 Jul 2009 21:29:34 +0400 Subject: [dba-VB] LINQ for EF Example (Part III) In-Reply-To: References: Message-ID: <002b01ca0a28$d451f130$7cf5d390$@spb.ru> Hi Mike and Gustav, Thank you for your approval to team up to develop Northwind.NET for EF. Let's first of all implement a simple sample form (Shippers, Suppliers...) with BindingNavigator bound to object data source, and a simple sample report (Shippers) bound to object data source, and then implement all the other forms and reports of Northwind.NET using samples as templates? Do you see any other ways to proceed with this project? Thank you. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Sunday, July 19, 2009 11:26 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] LINQ for EF Example (Part III) Hi Shamil Of course, in lazy summer mode, as I probably will be off for a week or so from late next week. /gustav >>> shamil at smsconsulting.spb.ru 18-07-2009 14:30 >>> Hi Mike, Yes, "LINQ for ADO.NET Entity Framework" to be precise :) What about teaming-up with Gustav and myself and to port our Northwind.NET for MS SQL 2005 to "LINQ for ADO.NET Entity Framework"? Just an idea - and doing that project in "lazy summer mode" without setting strict deadlines? Gustav how about you? Anybody else? Have nice weekend. -- Shamil _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com __________ Information from ESET NOD32 Antivirus, version of virus signature database 4262 (20090720) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru __________ Information from ESET NOD32 Antivirus, version of virus signature database 4264 (20090721) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru From mmattys at rochester.rr.com Wed Jul 22 08:16:45 2009 From: mmattys at rochester.rr.com (Mike Mattys) Date: Wed, 22 Jul 2009 09:16:45 -0400 Subject: [dba-VB] LINQ for EF Example (Part III) References: <002b01ca0a28$d451f130$7cf5d390$@spb.ru> Message-ID: <1B6FE550BFA84B93987EF3BF91940CA1@Mattys> Hi Shamil, Still pretty busy ... I hope to start tomorrow evening. - Michael R Mattys MapPoint and Database Dev www.mattysconsulting.com - ----- Original Message ----- From: "Shamil Salakhetdinov" To: "'Discussion concerning Visual Basic and related programming issues.'" Sent: Tuesday, July 21, 2009 1:29 PM Subject: Re: [dba-VB] LINQ for EF Example (Part III) > Hi Mike and Gustav, > > Thank you for your approval to team up to develop Northwind.NET for EF. > Let's first of all implement a simple sample form (Shippers, Suppliers...) > with BindingNavigator bound to object data source, and a simple sample > report (Shippers) bound to object data source, and then implement all the > other forms and reports of Northwind.NET using samples as templates? > > Do you see any other ways to proceed with this project? > > Thank you. > > -- > Shamil > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: Sunday, July 19, 2009 11:26 AM > To: dba-vb at databaseadvisors.com > Subject: Re: [dba-VB] LINQ for EF Example (Part III) > > Hi Shamil > > Of course, in lazy summer mode, as I probably will be off for a week or so > from late next week. > > /gustav > > >>>> shamil at smsconsulting.spb.ru 18-07-2009 14:30 >>> > Hi Mike, > > Yes, "LINQ for ADO.NET Entity Framework" to be precise :) > > What about teaming-up with Gustav and myself and to port our Northwind.NET > for MS SQL 2005 to "LINQ for ADO.NET Entity Framework"? Just an idea - and > doing that project in "lazy summer mode" without setting strict deadlines? > > Gustav how about you? > Anybody else? > > Have nice weekend. > > -- > Shamil > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > > __________ Information from ESET NOD32 Antivirus, version of virus > signature > database 4262 (20090720) __________ > > The message was checked by ESET NOD32 Antivirus. > > http://www.esetnod32.ru > > > > > __________ Information from ESET NOD32 Antivirus, version of virus > signature > database 4264 (20090721) __________ > > The message was checked by ESET NOD32 Antivirus. > > http://www.esetnod32.ru > > > _______________________________________________ > 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 Jul 22 09:12:33 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 22 Jul 2009 10:12:33 -0400 Subject: [dba-VB] Simple web project In-Reply-To: <1B6FE550BFA84B93987EF3BF91940CA1@Mattys> References: <002b01ca0a28$d451f130$7cf5d390$@spb.ru> <1B6FE550BFA84B93987EF3BF91940CA1@Mattys> Message-ID: <4A671E51.1020303@colbyconsulting.com> I need some advice. My wife is on the PTA. She (I as her husband) was tasked with a simple database for tracking volunteer work for the PTA. They have to track (they get "credit" for) hours that volunteers put in. This is drop dead simple for an Access database, tblVolunteer, tblVolunteerHours, and MAYBE tblLocation. Plus a report to get the data out. The problem of course is that a database requires Access (or a runtime installation). Thus... Because it is such a simple database, I am thinking of doing it as a .Net application and make it available on the web so that any authorized person can enter the data or run the report. Questions (how do I do): 1) Web hosting? 2) Security model? 3) Other issues I am not even considering? 4) Which .Net product? Comments and advice requested. John W. Colby www.ColbyConsulting.com From ssharkins at gmail.com Wed Jul 22 10:02:06 2009 From: ssharkins at gmail.com (Susan Harkins) Date: Wed, 22 Jul 2009 11:02:06 -0400 Subject: [dba-VB] Simple web project References: <002b01ca0a28$d451f130$7cf5d390$@spb.ru><1B6FE550BFA84B93987EF3BF91940CA1@Mattys> <4A671E51.1020303@colbyconsulting.com> Message-ID: I think it's a great idea, but, you are assuming that all volunteers have access to the Web. That might currently be the case. However, that could change at any time. Will the school give volunteers access to this web-based application via a school computer? If that's the case, it doesn't even need to be web-based. You could create a simple .exe and drop it on the computer's desktop. Even VB Express can handle that. I would recommend some kind of group/user security because... I hate to say it, but I can easily see someone messing with the other volunteer's hours. That's only necessary if they're entering their own information. Web hosting shouldn't be a problem. I would imagine the school already has that set up. Susan H. > > Because it is such a simple database, I am thinking of doing it as a .Net > application and make it > available on the web so that any authorized person can enter the data or > run the report. > > Questions (how do I do): > > 1) Web hosting? > 2) Security model? > 3) Other issues I am not even considering? > 4) Which .Net product? > > Comments and advice requested. From jwcolby at colbyconsulting.com Wed Jul 22 10:17:42 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 22 Jul 2009 11:17:42 -0400 Subject: [dba-VB] SPAM-LOW: Re: Simple web project In-Reply-To: References: <002b01ca0a28$d451f130$7cf5d390$@spb.ru><1B6FE550BFA84B93987EF3BF91940CA1@Mattys> <4A671E51.1020303@colbyconsulting.com> Message-ID: <4A672D96.4000509@colbyconsulting.com> Susan, Actually the data entry is done by one person. They have a "sign in / out" sheet that they then manually figure out the hours and total. That is a lot of work. I was just thinking of the data store being available form any web enabled computer as opposed to my wife's computer or some other person's computer. Handing off the data entry becomes much easier. Seeing the numbers becomes much easier. And yes, the users do have to have web access. John W. Colby www.ColbyConsulting.com Susan Harkins wrote: > I think it's a great idea, but, you are assuming that all volunteers have > access to the Web. That might currently be the case. However, that could > change at any time. Will the school give volunteers access to this web-based > application via a school computer? If that's the case, it doesn't even need > to be web-based. You could create a simple .exe and drop it on the > computer's desktop. Even VB Express can handle that. > > I would recommend some kind of group/user security because... I hate to say > it, but I can easily see someone messing with the other volunteer's hours. > That's only necessary if they're entering their own information. > > Web hosting shouldn't be a problem. I would imagine the school already has > that set up. > > Susan H. > > >> Because it is such a simple database, I am thinking of doing it as a .Net >> application and make it >> available on the web so that any authorized person can enter the data or >> run the report. >> >> Questions (how do I do): >> >> 1) Web hosting? >> 2) Security model? >> 3) Other issues I am not even considering? >> 4) Which .Net product? >> >> Comments and advice requested. > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From max.wanadoo at gmail.com Wed Jul 22 10:20:16 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Wed, 22 Jul 2009 16:20:16 +0100 Subject: [dba-VB] Simple web project In-Reply-To: <4A671E51.1020303@colbyconsulting.com> References: <002b01ca0a28$d451f130$7cf5d390$@spb.ru> <1B6FE550BFA84B93987EF3BF91940CA1@Mattys> <4A671E51.1020303@colbyconsulting.com> Message-ID: <4a672e33.0506d00a.5f9a.ffff93d1@mx.google.com> Ha! Watch this grow exponentially. Can we just add this bit, and this bit, and, oh bye the way would it be possible..and then reports... Hahaha good luck with your "drop dead simple" DB. Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: 22 July 2009 15:13 To: Discussion concerning Visual Basic and related programming issues.; Access Developers discussion and problem solving Subject: [dba-VB] Simple web project I need some advice. My wife is on the PTA. She (I as her husband) was tasked with a simple database for tracking volunteer work for the PTA. They have to track (they get "credit" for) hours that volunteers put in. This is drop dead simple for an Access database, tblVolunteer, tblVolunteerHours, and MAYBE tblLocation. Plus a report to get the data out. The problem of course is that a database requires Access (or a runtime installation). Thus... Because it is such a simple database, I am thinking of doing it as a .Net application and make it available on the web so that any authorized person can enter the data or run the report. Questions (how do I do): 1) Web hosting? 2) Security model? 3) Other issues I am not even considering? 4) Which .Net product? Comments and advice requested. 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 max.wanadoo at gmail.com Wed Jul 22 10:21:17 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Wed, 22 Jul 2009 16:21:17 +0100 Subject: [dba-VB] LINQ for EF Example (Part III) In-Reply-To: <1B6FE550BFA84B93987EF3BF91940CA1@Mattys> References: <002b01ca0a28$d451f130$7cf5d390$@spb.ru> <1B6FE550BFA84B93987EF3BF91940CA1@Mattys> Message-ID: <4a672e70.0702d00a.72d7.ffffab6f@mx.google.com> ...he's doing proximity calculations... Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Mike Mattys Sent: 22 July 2009 14:17 To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] LINQ for EF Example (Part III) Hi Shamil, Still pretty busy ... I hope to start tomorrow evening. - Michael R Mattys MapPoint and Database Dev www.mattysconsulting.com - ----- Original Message ----- From: "Shamil Salakhetdinov" To: "'Discussion concerning Visual Basic and related programming issues.'" Sent: Tuesday, July 21, 2009 1:29 PM Subject: Re: [dba-VB] LINQ for EF Example (Part III) > Hi Mike and Gustav, > > Thank you for your approval to team up to develop Northwind.NET for EF. > Let's first of all implement a simple sample form (Shippers, Suppliers...) > with BindingNavigator bound to object data source, and a simple sample > report (Shippers) bound to object data source, and then implement all the > other forms and reports of Northwind.NET using samples as templates? > > Do you see any other ways to proceed with this project? > > Thank you. > > -- > Shamil > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: Sunday, July 19, 2009 11:26 AM > To: dba-vb at databaseadvisors.com > Subject: Re: [dba-VB] LINQ for EF Example (Part III) > > Hi Shamil > > Of course, in lazy summer mode, as I probably will be off for a week or so > from late next week. > > /gustav > > >>>> shamil at smsconsulting.spb.ru 18-07-2009 14:30 >>> > Hi Mike, > > Yes, "LINQ for ADO.NET Entity Framework" to be precise :) > > What about teaming-up with Gustav and myself and to port our Northwind.NET > for MS SQL 2005 to "LINQ for ADO.NET Entity Framework"? Just an idea - and > doing that project in "lazy summer mode" without setting strict deadlines? > > Gustav how about you? > Anybody else? > > Have nice weekend. > > -- > Shamil > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > > __________ Information from ESET NOD32 Antivirus, version of virus > signature > database 4262 (20090720) __________ > > The message was checked by ESET NOD32 Antivirus. > > http://www.esetnod32.ru > > > > > __________ Information from ESET NOD32 Antivirus, version of virus > signature > database 4264 (20090721) __________ > > The message was checked by ESET NOD32 Antivirus. > > http://www.esetnod32.ru > > > _______________________________________________ > 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 DWUTKA at Marlow.com Wed Jul 22 10:30:38 2009 From: DWUTKA at Marlow.com (Drew Wutka) Date: Wed, 22 Jul 2009 10:30:38 -0500 Subject: [dba-VB] Simple web project In-Reply-To: <4A671E51.1020303@colbyconsulting.com> References: <002b01ca0a28$d451f130$7cf5d390$@spb.ru><1B6FE550BFA84B93987EF3BF91940CA1@Mattys> <4A671E51.1020303@colbyconsulting.com> Message-ID: If this is something that you really want to keep SIMPLE, then just use plain old ASP, on whatever site you have access to. Make the data entry hours 'password protected' (either from the web side, or in the asp itself). You have your own site, don't you? Just put it there. Again, that's if you are going to keep this SIMPLE! Drew -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, July 22, 2009 9:13 AM To: Discussion concerning Visual Basic and related programming issues.; Access Developers discussion and problem solving Subject: [dba-VB] Simple web project I need some advice. My wife is on the PTA. She (I as her husband) was tasked with a simple database for tracking volunteer work for the PTA. They have to track (they get "credit" for) hours that volunteers put in. This is drop dead simple for an Access database, tblVolunteer, tblVolunteerHours, and MAYBE tblLocation. Plus a report to get the data out. The problem of course is that a database requires Access (or a runtime installation). Thus... Because it is such a simple database, I am thinking of doing it as a .Net application and make it available on the web so that any authorized person can enter the data or run the report. Questions (how do I do): 1) Web hosting? 2) Security model? 3) Other issues I am not even considering? 4) Which .Net product? Comments and advice requested. 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 jwcolby at colbyconsulting.com Wed Jul 22 10:30:50 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 22 Jul 2009 11:30:50 -0400 Subject: [dba-VB] Simple web project In-Reply-To: <4a672e33.0506d00a.5f9a.ffff93d1@mx.google.com> References: <002b01ca0a28$d451f130$7cf5d390$@spb.ru> <1B6FE550BFA84B93987EF3BF91940CA1@Mattys> <4A671E51.1020303@colbyconsulting.com> <4a672e33.0506d00a.5f9a.ffff93d1@mx.google.com> Message-ID: <4A6730AA.6000807@colbyconsulting.com> ROTFL. Yea, I know that! ;) OTOH I haven't persuaded a client to pay me to learn this stuff either. A volunteer project allows me to do it at my own pace, add stuff if I want etc. John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > Ha! Watch this grow exponentially. Can we just add this bit, and this bit, > and, oh bye the way would it be possible..and then reports... > > Hahaha good luck with your "drop dead simple" DB. > > Max > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: 22 July 2009 15:13 > To: Discussion concerning Visual Basic and related programming issues.; > Access Developers discussion and problem solving > Subject: [dba-VB] Simple web project > > I need some advice. My wife is on the PTA. She (I as her husband) was > tasked with a simple > database for tracking volunteer work for the PTA. They have to track (they > get "credit" for) hours > that volunteers put in. > > This is drop dead simple for an Access database, tblVolunteer, > tblVolunteerHours, and MAYBE > tblLocation. Plus a report to get the data out. The problem of course is > that a database requires > Access (or a runtime installation). Thus... > > Because it is such a simple database, I am thinking of doing it as a .Net > application and make it > available on the web so that any authorized person can enter the data or run > the report. > > Questions (how do I do): > > 1) Web hosting? > 2) Security model? > 3) Other issues I am not even considering? > 4) Which .Net product? > > Comments and advice requested. > > 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 jwcolby at colbyconsulting.com Wed Jul 22 11:33:36 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 22 Jul 2009 12:33:36 -0400 Subject: [dba-VB] Simple web project In-Reply-To: References: <002b01ca0a28$d451f130$7cf5d390$@spb.ru><1B6FE550BFA84B93987EF3BF91940CA1@Mattys> <4A671E51.1020303@colbyconsulting.com> Message-ID: <4A673F60.50005@colbyconsulting.com> I said simple, not edit it in notepad. ;) John W. Colby www.ColbyConsulting.com Drew Wutka wrote: > If this is something that you really want to keep SIMPLE, then just use > plain old ASP, on whatever site you have access to. Make the data entry > hours 'password protected' (either from the web side, or in the asp > itself). You have your own site, don't you? Just put it there. > > Again, that's if you are going to keep this SIMPLE! > > Drew > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Wednesday, July 22, 2009 9:13 AM > To: Discussion concerning Visual Basic and related programming issues.; > Access Developers discussion and problem solving > Subject: [dba-VB] Simple web project > > I need some advice. My wife is on the PTA. She (I as her husband) was > tasked with a simple > database for tracking volunteer work for the PTA. They have to track > (they get "credit" for) hours > that volunteers put in. > > This is drop dead simple for an Access database, tblVolunteer, > tblVolunteerHours, and MAYBE > tblLocation. Plus a report to get the data out. The problem of course > is that a database requires > Access (or a runtime installation). Thus... > > Because it is such a simple database, I am thinking of doing it as a > .Net application and make it > available on the web so that any authorized person can enter the data or > run the report. > > Questions (how do I do): > > 1) Web hosting? > 2) Security model? > 3) Other issues I am not even considering? > 4) Which .Net product? > > Comments and advice requested. > > 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 DWUTKA at Marlow.com Wed Jul 22 11:48:28 2009 From: DWUTKA at Marlow.com (Drew Wutka) Date: Wed, 22 Jul 2009 11:48:28 -0500 Subject: [dba-VB] Simple web project In-Reply-To: <4A673F60.50005@colbyconsulting.com> References: <002b01ca0a28$d451f130$7cf5d390$@spb.ru><1B6FE550BFA84B93987EF3BF91940CA1@Mattys> <4A671E51.1020303@colbyconsulting.com> <4A673F60.50005@colbyconsulting.com> Message-ID: LOL, I use Microsoft Script Editor (I believe it comes with Office), to write ASP. It acts like an VBE of sorts for ASP (intellisense for both asp and html). Drew -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, July 22, 2009 11:34 AM To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Simple web project I said simple, not edit it in notepad. ;) John W. Colby www.ColbyConsulting.com Drew Wutka wrote: > If this is something that you really want to keep SIMPLE, then just use > plain old ASP, on whatever site you have access to. Make the data entry > hours 'password protected' (either from the web side, or in the asp > itself). You have your own site, don't you? Just put it there. > > Again, that's if you are going to keep this SIMPLE! > > Drew > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Wednesday, July 22, 2009 9:13 AM > To: Discussion concerning Visual Basic and related programming issues.; > Access Developers discussion and problem solving > Subject: [dba-VB] Simple web project > > I need some advice. My wife is on the PTA. She (I as her husband) was > tasked with a simple > database for tracking volunteer work for the PTA. They have to track > (they get "credit" for) hours > that volunteers put in. > > This is drop dead simple for an Access database, tblVolunteer, > tblVolunteerHours, and MAYBE > tblLocation. Plus a report to get the data out. The problem of course > is that a database requires > Access (or a runtime installation). Thus... > > Because it is such a simple database, I am thinking of doing it as a > .Net application and make it > available on the web so that any authorized person can enter the data or > run the report. > > Questions (how do I do): > > 1) Web hosting? > 2) Security model? > 3) Other issues I am not even considering? > 4) Which .Net product? > > Comments and advice requested. > > 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 > > _______________________________________________ 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 shamil at smsconsulting.spb.ru Wed Jul 22 12:59:50 2009 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Wed, 22 Jul 2009 21:59:50 +0400 Subject: [dba-VB] LINQ for EF Example (Part III) In-Reply-To: <1B6FE550BFA84B93987EF3BF91940CA1@Mattys> References: <002b01ca0a28$d451f130$7cf5d390$@spb.ru> <1B6FE550BFA84B93987EF3BF91940CA1@Mattys> Message-ID: <006a01ca0af6$3709eb70$a51dc250$@spb.ru> Hi Mike, No, problem. This is "lazy summer mode" project. It doesn't require commitments for deadlines currently. I'm pretty busy here too. And as Gustav I plan to have some "holiday breaks". It may happen I will start working on subject project next week only. I suppose that as soon as we get a sample form and report ready we will proceed much quicker - maybe you know about/have seen any ready to (re-)use in this project samples? I failed to find them on Internet, have a missed them? Anybody here please advise on samples of WinForms and MS ReportViewer reports bound to ObjectDataSources based on/built from ADO.NET Entity Framework model objects. WinForm sample should use BindingNavigator. Thank you. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Mike Mattys Sent: Wednesday, July 22, 2009 5:17 PM To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] LINQ for EF Example (Part III) Hi Shamil, Still pretty busy ... I hope to start tomorrow evening. - Michael R Mattys MapPoint and Database Dev www.mattysconsulting.com - ----- Original Message ----- From: "Shamil Salakhetdinov" To: "'Discussion concerning Visual Basic and related programming issues.'" Sent: Tuesday, July 21, 2009 1:29 PM Subject: Re: [dba-VB] LINQ for EF Example (Part III) > Hi Mike and Gustav, > > Thank you for your approval to team up to develop Northwind.NET for EF. > Let's first of all implement a simple sample form (Shippers, Suppliers...) > with BindingNavigator bound to object data source, and a simple sample > report (Shippers) bound to object data source, and then implement all the > other forms and reports of Northwind.NET using samples as templates? > > Do you see any other ways to proceed with this project? > > Thank you. > > -- > Shamil > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: Sunday, July 19, 2009 11:26 AM > To: dba-vb at databaseadvisors.com > Subject: Re: [dba-VB] LINQ for EF Example (Part III) > > Hi Shamil > > Of course, in lazy summer mode, as I probably will be off for a week or so > from late next week. > > /gustav > > >>>> shamil at smsconsulting.spb.ru 18-07-2009 14:30 >>> > Hi Mike, > > Yes, "LINQ for ADO.NET Entity Framework" to be precise :) > > What about teaming-up with Gustav and myself and to port our Northwind.NET > for MS SQL 2005 to "LINQ for ADO.NET Entity Framework"? Just an idea - and > doing that project in "lazy summer mode" without setting strict deadlines? > > Gustav how about you? > Anybody else? > > Have nice weekend. > > -- > Shamil > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > > __________ Information from ESET NOD32 Antivirus, version of virus > signature > database 4262 (20090720) __________ > > The message was checked by ESET NOD32 Antivirus. > > http://www.esetnod32.ru > > > > > __________ Information from ESET NOD32 Antivirus, version of virus > signature > database 4264 (20090721) __________ > > The message was checked by ESET NOD32 Antivirus. > > http://www.esetnod32.ru > > > _______________________________________________ > 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 __________ Information from ESET NOD32 Antivirus, version of virus signature database 4267 (20090722) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru __________ Information from ESET NOD32 Antivirus, version of virus signature database 4267 (20090722) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru From shamil at smsconsulting.spb.ru Wed Jul 22 12:59:50 2009 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Wed, 22 Jul 2009 21:59:50 +0400 Subject: [dba-VB] Simple web project In-Reply-To: <4A671E51.1020303@colbyconsulting.com> References: <002b01ca0a28$d451f130$7cf5d390$@spb.ru> <1B6FE550BFA84B93987EF3BF91940CA1@Mattys> <4A671E51.1020303@colbyconsulting.com> Message-ID: <006e01ca0af6$3acb1220$b0613660$@spb.ru> Hi John, I'd recommend you to use ASP.Net 2.0 or 3.5 with MS SQL Server 2005/2008 (Express) as backend (please see below why MS SQL Server is IMO below). <<< 1) Web hosting? >>> I do use PARKING.RU - http://hosting.parking.ru/text.aspx?s=W2008 It works well for me as well as for my customers, one of them from your country "wild west" (WA), used this hosting as a "test-bed" to run her ASP.NET web service in 24x7 mode for several months, and that was very heavy duty web service with many requests coming to it every second. I'm not sure you'll pick to use the above hosting provider as it's located in Moscow, Russia. You can try then http://www.discountasp.net/ <<< 2) Security model? >>> Built-in ASP.NET 2.0/3.5 Membership system - runs only when MS SQL Server 2005/2008 (Express) is used for backend. Supports Members and Roles (and some other useful stuff), provides built-in login/logout (and related) ASP.NET controls. <<< 3) Other issues I am not even considering? >>> Improvement Ravine :) - at least you didn't mention it here - you'll have to have some patience and courage to get through it as on first steps you'll feel yourself extremely unproductive comparing with what you can do using MS Access: Source: http://martinfowler.com/bliki/ImprovementRavine.html <<< 4) Which .Net product? >>> ASP.NET 3.5 SP1 (FYI: is supports both ASP.NET 2.0 and 3.5) --- As for some simple samples of ASP.NET WebForms development for MS Access (AccessDataSource) you can find them in our Northwind.Net solution here: Northwind.NET.v.1.2.Sources.zip http://northwind.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=26600#D ownloadId=66932 in Northwind.ASP.NET.MSAccess.Reporting web project. I have made this web project entry web form available online here: http://shamils-4.hosting.parking.ru/nw/default1.aspx In the bottom of the above web page you'll find: +++++++ Northwind Forms (Sorry, just rough mock-ups mainly generated by VS2008 with a few code lines in code-behind to coordinate parent-child data retrieval using AccessDataSources) Shippers Categories Customers Employees Suppliers Products Orders -------- Try them this week. (I will remove all sample webforms allowing to edit data, and I will restore original MS Access db next week). If you or anybody else here wanted to collect some data access stats while playing with this db - I can add those stats collection code - please propose what stats would be interesting to collect (a few). Thank you. -- Shamil P.S. Have a look also here - the following sample web site is done (mainly generated by VS2008 from some of its templates) in about ten minutes: http://shamils-4.hosting.parking.ru/NorthwindNetDynamicDataWebSite/Default.a spx This is ADO.NET Entity Framework in action - it requires MS SQL Server 2005/2008 (Express) as backend, and .NET Framework 3.5 SP1 -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, July 22, 2009 6:13 PM To: Discussion concerning Visual Basic and related programming issues.; Access Developers discussion and problem solving Subject: [dba-VB] Simple web project I need some advice. My wife is on the PTA. She (I as her husband) was tasked with a simple database for tracking volunteer work for the PTA. They have to track (they get "credit" for) hours that volunteers put in. This is drop dead simple for an Access database, tblVolunteer, tblVolunteerHours, and MAYBE tblLocation. Plus a report to get the data out. The problem of course is that a database requires Access (or a runtime installation). Thus... Because it is such a simple database, I am thinking of doing it as a .Net application and make it available on the web so that any authorized person can enter the data or run the report. Questions (how do I do): 1) Web hosting? 2) Security model? 3) Other issues I am not even considering? 4) Which .Net product? Comments and advice requested. 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 __________ Information from ESET NOD32 Antivirus, version of virus signature database 4267 (20090722) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru __________ Information from ESET NOD32 Antivirus, version of virus signature database 4267 (20090722) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru From Gustav at cactus.dk Thu Jul 23 07:36:05 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 23 Jul 2009 14:36:05 +0200 Subject: [dba-VB] LINQ for EF Example (Part III) Message-ID: Hi Shamil and team That's fine with me. I'm on my way with Rita (wife) to the nature of Sweden and Norway for a relaxing break and will be back Monday 2009-08-03. Will try to view the inbox now and then but won't promise anything ... /gustav >>> shamil at smsconsulting.spb.ru 21-07-2009 19:29 >>> Hi Mike and Gustav, Thank you for your approval to team up to develop Northwind.NET for EF. Let's first of all implement a simple sample form (Shippers, Suppliers...) with BindingNavigator bound to object data source, and a simple sample report (Shippers) bound to object data source, and then implement all the other forms and reports of Northwind.NET using samples as templates? Do you see any other ways to proceed with this project? Thank you. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Sunday, July 19, 2009 11:26 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] LINQ for EF Example (Part III) Hi Shamil Of course, in lazy summer mode, as I probably will be off for a week or so from late next week. /gustav >>> shamil at smsconsulting.spb.ru 18-07-2009 14:30 >>> Hi Mike, Yes, "LINQ for ADO.NET Entity Framework" to be precise :) What about teaming-up with Gustav and myself and to port our Northwind.NET for MS SQL 2005 to "LINQ for ADO.NET Entity Framework"? Just an idea - and doing that project in "lazy summer mode" without setting strict deadlines? Gustav how about you? Anybody else? Have nice weekend. -- Shamil From shamil at smsconsulting.spb.ru Thu Jul 23 12:17:46 2009 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Thu, 23 Jul 2009 21:17:46 +0400 Subject: [dba-VB] ADO.NET Entity Framework with Winforms and MS eportViewer report sample project... Message-ID: <00dd01ca0bb9$806f8d10$814ea730$@spb.ru> Hi All, FYI: I have just released on http://northwind.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=26600 - SPJ_SQL2005.zip - C.J.Date sample database (prepared here) - previous version was broken; - SPJWinFormsForEF_VS2008.zip - VS2008 sample project to demonstrate WinForms and MS ReportViewer reports bound to ADO.NET Entity Framework object datasources; - SPJWinFormsForEF_Executables.zip - just executables and sample database for the above sample project. Please test the samples if you're interested in the subject technology. Please inform me here in the case of any issues to fix. Please note that the above sample is just a preparation of conversion of our Northwind.NET WinForms project to use ADO.NET Entity Framework. Thank you. -- Shamil From shamil at smsconsulting.spb.ru Thu Jul 23 12:17:46 2009 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Thu, 23 Jul 2009 21:17:46 +0400 Subject: [dba-VB] LINQ for EF Example (Part III) In-Reply-To: References: Message-ID: <00e201ca0bb9$81b21f30$85165d90$@spb.ru> Hi Gustav, Good luck with your trip to Sweden and Norway (BTW, I plan to have a short trip to Finland (Imatra, Laapenranta and Helsinki) on 26-28 this months.) FYI: I have just got released a small VS2008 project: - SPJWinFormsForEF_VS2008.zip - VS2008 sample project to demonstrate WinForms and MS ReportViewer reports bound to ADO.NET Entity Framework object datasources; - SPJWinFormsForEF_Executables.zip - just executables and sample database for the above sample project. which can be used as sample to work on converting Northwind.NET to use ADO.NET Entity Framework object data sources. Thank you. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, July 23, 2009 4:36 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] LINQ for EF Example (Part III) Hi Shamil and team That's fine with me. I'm on my way with Rita (wife) to the nature of Sweden and Norway for a relaxing break and will be back Monday 2009-08-03. Will try to view the inbox now and then but won't promise anything ... /gustav >>> shamil at smsconsulting.spb.ru 21-07-2009 19:29 >>> Hi Mike and Gustav, Thank you for your approval to team up to develop Northwind.NET for EF. Let's first of all implement a simple sample form (Shippers, Suppliers...) with BindingNavigator bound to object data source, and a simple sample report (Shippers) bound to object data source, and then implement all the other forms and reports of Northwind.NET using samples as templates? Do you see any other ways to proceed with this project? Thank you. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Sunday, July 19, 2009 11:26 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] LINQ for EF Example (Part III) Hi Shamil Of course, in lazy summer mode, as I probably will be off for a week or so from late next week. /gustav >>> shamil at smsconsulting.spb.ru 18-07-2009 14:30 >>> Hi Mike, Yes, "LINQ for ADO.NET Entity Framework" to be precise :) What about teaming-up with Gustav and myself and to port our Northwind.NET for MS SQL 2005 to "LINQ for ADO.NET Entity Framework"? Just an idea - and doing that project in "lazy summer mode" without setting strict deadlines? Gustav how about you? Anybody else? Have nice weekend. -- Shamil _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com __________ Information from ESET NOD32 Antivirus, version of virus signature database 4270 (20090723) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru __________ Information from ESET NOD32 Antivirus, version of virus signature database 4270 (20090723) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru From mmattys at rochester.rr.com Thu Jul 23 13:33:19 2009 From: mmattys at rochester.rr.com (Mike Mattys) Date: Thu, 23 Jul 2009 14:33:19 -0400 Subject: [dba-VB] ADO.NET Entity Framework with Winforms and MS eportViewerreport sample project... References: <00dd01ca0bb9$806f8d10$814ea730$@spb.ru> Message-ID: <943FA89E7E1E4318807137B9AB209E95@Mattys> Thanks, Shamil - Michael R Mattys MapPoint and Database Dev www.mattysconsulting.com - ----- Original Message ----- From: "Shamil Salakhetdinov" To: "'Discussion concerning Visual Basic and related programming issues.'" Sent: Thursday, July 23, 2009 1:17 PM Subject: [dba-VB] ADO.NET Entity Framework with Winforms and MS eportViewerreport sample project... > Hi All, > > > > FYI: I have just released on > http://northwind.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=26600 > > > > - SPJ_SQL2005.zip - C.J.Date sample database (prepared here) - previous > version was broken; > > - SPJWinFormsForEF_VS2008.zip - VS2008 sample project to demonstrate > WinForms and MS ReportViewer reports bound to ADO.NET Entity Framework > object datasources; > > - SPJWinFormsForEF_Executables.zip - just executables and sample database > for the above sample project. > > > > Please test the samples if you're interested in the subject technology. > > Please inform me here in the case of any issues to fix. > > Please note that the above sample is just a preparation of conversion of > our > Northwind.NET WinForms project to use ADO.NET Entity Framework. > > > > Thank you. > > > > -- > > Shamil > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From mmattys at rochester.rr.com Thu Jul 23 13:34:08 2009 From: mmattys at rochester.rr.com (Mike Mattys) Date: Thu, 23 Jul 2009 14:34:08 -0400 Subject: [dba-VB] LINQ for EF Example (Part III) References: Message-ID: <556D4755E8F944039B38F1A631117CF1@Mattys> I hope you enjoy your vacation, Gustav. - Michael R Mattys MapPoint and Database Dev www.mattysconsulting.com - ----- Original Message ----- From: "Gustav Brock" To: Sent: Thursday, July 23, 2009 8:36 AM Subject: Re: [dba-VB] LINQ for EF Example (Part III) > Hi Shamil and team > > That's fine with me. > > I'm on my way with Rita (wife) to the nature of Sweden and Norway for a > relaxing break and will be back Monday 2009-08-03. Will try to view the > inbox now and then but won't promise anything ... > > /gustav From fhtapia at gmail.com Wed Jul 29 23:38:45 2009 From: fhtapia at gmail.com (Francisco Tapia) Date: Wed, 29 Jul 2009 21:38:45 -0700 Subject: [dba-VB] QueryStringParameter error Message-ID: Hi, I've not been active on this list at all, but I do have a quick question someone here may have already ran into. I am working on an ASP.NET (visual studio 2008) and I created a few pages that all work fairly similarly, where there is a GridView on the main Entity page, and Add pages along with Edit pages created with Details View controls. In the GridView page, I add an edit button and the link points the ~/language/EditLanguage.aspx?intLanguage={0}. On the receiving page I edited the SELECT command with the proper WHERE clause as WHERE intLanguage= @intLanguage. The QueryStringParameter is as follows: so this is the same for my other pages such as my Release page and my Category page and both work fine, but the language page is different... the PKID is the intLanguage field, but it's not an autoincremented number (since this project is still in it's infancy, I've thought about adding a true surrogate PKID and see if that is the problem... note, If i edit the select command w/o the where, the page loads fine (well w/o the parameter being passed so my DetailsView control only displays the first record in the recordset, I'm new to ASP.NET and don't really know how to troubleshoot this.... any ideas? -Francisco http://sqlthis.blogspot.com | Tsql and More... From ebarro at verizon.net Fri Jul 31 23:48:26 2009 From: ebarro at verizon.net (Eric Barro) Date: Fri, 31 Jul 2009 21:48:26 -0700 Subject: [dba-VB] QueryStringParameter error In-Reply-To: References: Message-ID: <07C21F79042A4BDD98A27EF049A0B312@advancedinput.com> Francico, I haven't really worked with the syntax you show below but I've seen a buddy of mine use it as well. Try and put Response.Write(intLanguage) in your code to debug and see if it is passing the value. Eric -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Francisco Tapia Sent: Wednesday, July 29, 2009 9:39 PM To: Discussion concerning Visual Basic and related programming issues. Subject: [dba-VB] QueryStringParameter error Hi, I've not been active on this list at all, but I do have a quick question someone here may have already ran into. I am working on an ASP.NET (visual studio 2008) and I created a few pages that all work fairly similarly, where there is a GridView on the main Entity page, and Add pages along with Edit pages created with Details View controls. In the GridView page, I add an edit button and the link points the ~/language/EditLanguage.aspx?intLanguage={0}. On the receiving page I edited the SELECT command with the proper WHERE clause as WHERE intLanguage= @intLanguage. The QueryStringParameter is as follows: so this is the same for my other pages such as my Release page and my Category page and both work fine, but the language page is different... the PKID is the intLanguage field, but it's not an autoincremented number (since this project is still in it's infancy, I've thought about adding a true surrogate PKID and see if that is the problem... note, If i edit the select command w/o the where, the page loads fine (well w/o the parameter being passed so my DetailsView control only displays the first record in the recordset, I'm new to ASP.NET and don't really know how to troubleshoot this.... any ideas? -Francisco http://sqlthis.blogspot.com | Tsql and More... _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From DWUTKA at Marlow.com Wed Jul 1 11:54:36 2009 From: DWUTKA at Marlow.com (Drew Wutka) Date: Wed, 1 Jul 2009 11:54:36 -0500 Subject: [dba-VB] Messaging For JWC WAS: Syslogs In-Reply-To: <4A4A65A5.8080101@colbyconsulting.com> References: <4A49027A.5000604@colbyconsulting.com> <4A4A4F27.6010606@colbyconsulting.com> <4a4a60ca.0a1ad00a.63e4.2ae9@mx.google.com> <4A4A65A5.8080101@colbyconsulting.com> Message-ID: Well UDP is what you want then. However, I don't have anything setup to do that with strictly API calls. It's just too easy to do it with the Winsock Control. Drew -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, June 30, 2009 2:21 PM To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Messaging For JWC WAS: Syslogs Drew, >If you want to play around with it, what you need to do is use UDP to 'broadcast' a hello and goodbye message, to alert everything on the subnet. (And you have to filter that message on the broadcasting machine, cause it'll pick up it's own message). In that hello/goodbye message, you can include all the info you want (username, computername, IP,etc). Then it's just a matter of using TCP for direct comms between two machines. In fact I don't want direct comms between machines, I want precisely "broadcast" messages. "Hey everybody, I added a new record in tblX". Any machine receiving that message promptly refreshes the cache for that table. "Hey everybody, we are shutting down the BE in 10 minutes, get out". Any machine receiving the message pops up a message to the user telling them to finish up and get out of the database. That kind of message. I really don't care about sending to a specific machine, I care about sending to ALL machines. John W. Colby www.ColbyConsulting.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 jwcolby at colbyconsulting.com Wed Jul 1 12:18:11 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 01 Jul 2009 13:18:11 -0400 Subject: [dba-VB] Messaging For JWC WAS: Syslogs In-Reply-To: References: <4A49027A.5000604@colbyconsulting.com> <4A4A4F27.6010606@colbyconsulting.com> <4a4a60ca.0a1ad00a.63e4.2ae9@mx.google.com> <4A4A65A5.8080101@colbyconsulting.com> Message-ID: <4A4B9A53.9090904@colbyconsulting.com> Understood however that won't work for me. Thanks though. John W. Colby www.ColbyConsulting.com Drew Wutka wrote: > Well UDP is what you want then. However, I don't have anything setup to > do that with strictly API calls. It's just too easy to do it with the > Winsock Control. > > Drew From ssharkins at gmail.com Wed Jul 1 15:23:22 2009 From: ssharkins at gmail.com (Susan Harkins) Date: Wed, 1 Jul 2009 16:23:22 -0400 Subject: [dba-VB] .NET mistakes to avoid Message-ID: <8AB61109C40B414B9C4F37B64431D47F@SusanOne> I'll be writing an article on avoiding mistakes in .NET -- I'm looking for the basic stuff. If I use yours, you'll get full credit, and you can include your contact information if you like (don't have to). The readers seem to really enjoy hearing from other developers and users, not just me. Susan H. From max.wanadoo at gmail.com Wed Jul 1 15:46:02 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Wed, 1 Jul 2009 21:46:02 +0100 Subject: [dba-VB] .NET mistakes to avoid In-Reply-To: <8AB61109C40B414B9C4F37B64431D47F@SusanOne> References: <8AB61109C40B414B9C4F37B64431D47F@SusanOne> Message-ID: <4a4bcb0d.1c07d00a.7881.6f9d@mx.google.com> Umm...didnt know you were a developer, Susan. Learn summat every day... Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: 01 July 2009 21:23 To: VBLIst Subject: [dba-VB] .NET mistakes to avoid I'll be writing an article on avoiding mistakes in .NET -- I'm looking for the basic stuff. If I use yours, you'll get full credit, and you can include your contact information if you like (don't have to). The readers seem to really enjoy hearing from other developers and users, not just me. Susan H. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From ssharkins at gmail.com Wed Jul 1 15:52:52 2009 From: ssharkins at gmail.com (Susan Harkins) Date: Wed, 1 Jul 2009 16:52:52 -0400 Subject: [dba-VB] .NET mistakes to avoid References: <8AB61109C40B414B9C4F37B64431D47F@SusanOne> <4a4bcb0d.1c07d00a.7881.6f9d@mx.google.com> Message-ID: <467285A806ED4FE888137DC907B2FBAE@SusanOne> Only sometimes -- I write more than anything else now-a-days. It use to be about 50/50 -- but Access and VBA projects are rather scarce anymore. Charlotte is teaching me .NET -- you've probably seen the links to our first few articles. Whether I'll actually use .NET in a development project is up in the air -- certainly not ready to do so right now! ;) Susan H. > Umm...didnt know you were a developer, Susan. > > Learn summat every day... > > Max > > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Susan Harkins > Sent: 01 July 2009 21:23 > To: VBLIst > Subject: [dba-VB] .NET mistakes to avoid > > I'll be writing an article on avoiding mistakes in .NET -- I'm looking for > the basic stuff. If I use yours, you'll get full credit, and you can > include > > your contact information if you like (don't have to). > > The readers seem to really enjoy hearing from other developers and users, > not just me. > > Susan H. > > _______________________________________________ > 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 max.wanadoo at gmail.com Wed Jul 1 16:20:38 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Wed, 1 Jul 2009 22:20:38 +0100 Subject: [dba-VB] .NET mistakes to avoid In-Reply-To: <467285A806ED4FE888137DC907B2FBAE@SusanOne> References: <8AB61109C40B414B9C4F37B64431D47F@SusanOne> <4a4bcb0d.1c07d00a.7881.6f9d@mx.google.com> <467285A806ED4FE888137DC907B2FBAE@SusanOne> Message-ID: <4a4bd32a.0508d00a.40d4.ffffb8f3@mx.google.com> Yes, that makes sense. I always thought of you as a Technology Journalist...more than a user but not into developer stuff. Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: 01 July 2009 21:53 To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] .NET mistakes to avoid Only sometimes -- I write more than anything else now-a-days. It use to be about 50/50 -- but Access and VBA projects are rather scarce anymore. Charlotte is teaching me .NET -- you've probably seen the links to our first few articles. Whether I'll actually use .NET in a development project is up in the air -- certainly not ready to do so right now! ;) Susan H. > Umm...didnt know you were a developer, Susan. > > Learn summat every day... > > Max > > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Susan Harkins > Sent: 01 July 2009 21:23 > To: VBLIst > Subject: [dba-VB] .NET mistakes to avoid > > I'll be writing an article on avoiding mistakes in .NET -- I'm looking for > the basic stuff. If I use yours, you'll get full credit, and you can > include > > your contact information if you like (don't have to). > > The readers seem to really enjoy hearing from other developers and users, > not just me. > > Susan H. > > _______________________________________________ > 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 > _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From ssharkins at gmail.com Wed Jul 1 16:34:50 2009 From: ssharkins at gmail.com (Susan Harkins) Date: Wed, 1 Jul 2009 17:34:50 -0400 Subject: [dba-VB] .NET mistakes to avoid References: <8AB61109C40B414B9C4F37B64431D47F@SusanOne> <4a4bcb0d.1c07d00a.7881.6f9d@mx.google.com><467285A806ED4FE888137DC907B2FBAE@SusanOne> <4a4bd32a.0508d00a.40d4.ffffb8f3@mx.google.com> Message-ID: > Yes, that makes sense. I always thought of you as a Technology > Journalist...more than a user but not into developer stuff. =======That's a fair enough assessment, although I have developed lots of small projects. Susan H. From max.wanadoo at gmail.com Wed Jul 1 16:39:48 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Wed, 1 Jul 2009 22:39:48 +0100 Subject: [dba-VB] .NET mistakes to avoid In-Reply-To: References: <8AB61109C40B414B9C4F37B64431D47F@SusanOne> <4a4bcb0d.1c07d00a.7881.6f9d@mx.google.com><467285A806ED4FE888137DC907B2FBAE@SusanOne> <4a4bd32a.0508d00a.40d4.ffffb8f3@mx.google.com> Message-ID: <4a4bd7a8.1c05d00a.18f2.1c68@mx.google.com> Me too...but never written stuff...hate writing, get distracted with "smart" comments...one day I will get my bot bot smacked...hopefully Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: 01 July 2009 22:35 To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] .NET mistakes to avoid > Yes, that makes sense. I always thought of you as a Technology > Journalist...more than a user but not into developer stuff. =======That's a fair enough assessment, although I have developed lots of small projects. Susan H. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From accessd at shaw.ca Tue Jul 7 21:20:03 2009 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 7 Jul 2009 19:20:03 -0700 Subject: [dba-VB] Syslogs In-Reply-To: References: Message-ID: Hi guys: Sorry for being a little late to the thread but you could just use some of the basic primitive on all Windows machines. There is the AT command for automatically spawning a process and then NET VIEW for checking whether there is an established network connections... etc. Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, June 29, 2009 10:08 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Syslogs Hi Max The paragraph on page 1, "The WinSock Control", is for you. You need both the license and the "compatibility". Thank you to MS and IE and the "Compatibility" flag. /gustav >>> max.wanadoo at gmail.com 29-06-2009 18:51 >>> Run it in A2007K and opened the Demo form to get this error: .Protocol = sckUDPProtocol Run time error 438 Object doesn't support this property or method. Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 29 June 2009 17:37 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Syslogs Hi Susan, Max et al This article: Create a Syslog Sender/Receiver Using the MS Winsock Control With the Microsoft WinSock Control and a few coding tricks, you can use Access as a high-performance syslog sender, receiver, and logger. _is_ in VBA! I have no idea why it was put in the VB section. In fact, given the current "discussion" on Access 2007, it is just about the only project I have made in Access 2007. I started out with this several years ago with Access 97 for fun, but when I recently got the chance to write and polish it up, I felt it had to be finished in A2007. If Steve is looking for "fans of the ribbon", don't count me in - I really looked for features or benefits of the ribbon but found none, sorry. /gustav >>> max.wanadoo at gmail.com 29-06-2009 18:14 >>> Gustav, does this work under Access VBA? Max -----Original Message----- Susan Harkins wrote: > > > I'm so proud... ;) Notice, my name is NOT in the byline... I'm so > proud... yet another ones passes safely to single author status. :) > > Susan H. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From accessd at shaw.ca Tue Jul 7 22:43:28 2009 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 7 Jul 2009 20:43:28 -0700 Subject: [dba-VB] favicon (was: Syslogs) In-Reply-To: References: Message-ID: Hi Gustav: The Favicon only seems to work reliably, in all browsers, if there is an absolute link. If you have access to the web server's DNS (forward lookups) and the zones, multiple connections can be easily setup, by just adding an alias to the domain and then depending on the server, it will allow access to icons at/on any web server location: Website: http://www.mywebsite.com Icon code in the header and icon location: Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, June 30, 2009 10:06 AM To: dba-vb at databaseadvisors.com Subject: [dba-VB] favicon (was: Syslogs) Hi Drew That gives me an idea regarding favicon. I've found that it is sometimes difficult to get IE to understand that a favicon is present and should be displayed. Some common methods are: This typically doesn't work. These may: mtaulty.com/CommunityServer: The most reliable method I've found is the last - to use the full URL - but it is not nice to have hardcoded strings like these. So how about using your method: or localhost: Anyone having experience with this? /gustav >>> DWUTKA at marlow.com 30-06-2009 18:49 >>> Actually, if you have an IP address, it is real. It then gets into what it is used for. For example, with your wireless, if it's not connected, it won't have an IP address. If a standard NIC is not connected, it will show no address. If it IS connected, but not receiving an IP address, it will default to a (I think) 169 something, which is a hard coded address, which means nothing. You can also have internal addresses such as 127.0.0.1, which is a loopback to your local machine. (so if you are running a website, putting in http://127.0.0.1 on the server will give you the local website). Drew _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From Gustav at cactus.dk Wed Jul 8 02:23:34 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 08 Jul 2009 09:23:34 +0200 Subject: [dba-VB] Syslogs Message-ID: Hi Jim How Jim? The question was about if the ocx is installed and accessible ... /gustav >>> accessd at shaw.ca 08-07-2009 04:20 >>> Hi guys: Sorry for being a little late to the thread but you could just use some of the basic primitive on all Windows machines. There is the AT command for automatically spawning a process and then NET VIEW for checking whether there is an established network connections... etc. Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, June 29, 2009 10:08 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Syslogs Hi Max The paragraph on page 1, "The WinSock Control", is for you. You need both the license and the "compatibility". Thank you to MS and IE and the "Compatibility" flag. /gustav >>> max.wanadoo at gmail.com 29-06-2009 18:51 >>> Run it in A2007K and opened the Demo form to get this error: .Protocol = sckUDPProtocol Run time error 438 Object doesn't support this property or method. Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 29 June 2009 17:37 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Syslogs Hi Susan, Max et al This article: Create a Syslog Sender/Receiver Using the MS Winsock Control With the Microsoft WinSock Control and a few coding tricks, you can use Access as a high-performance syslog sender, receiver, and logger. _is_ in VBA! I have no idea why it was put in the VB section. In fact, given the current "discussion" on Access 2007, it is just about the only project I have made in Access 2007. I started out with this several years ago with Access 97 for fun, but when I recently got the chance to write and polish it up, I felt it had to be finished in A2007. If Steve is looking for "fans of the ribbon", don't count me in - I really looked for features or benefits of the ribbon but found none, sorry. /gustav >>> max.wanadoo at gmail.com 29-06-2009 18:14 >>> Gustav, does this work under Access VBA? Max -----Original Message----- Susan Harkins wrote: > > > I'm so proud... ;) Notice, my name is NOT in the byline... I'm so > proud... yet another ones passes safely to single author status. :) > > Susan H. From Gustav at cactus.dk Wed Jul 8 02:32:18 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 08 Jul 2009 09:32:18 +0200 Subject: [dba-VB] favicon (was: Syslogs) Message-ID: Hi Jim Thanks. That makes two of us. Problem is that if you google on how to implement favicon, you most often see the relative url used. Strange. /gustav >>> accessd at shaw.ca 08-07-2009 05:43 >>> Hi Gustav: The Favicon only seems to work reliably, in all browsers, if there is an absolute link. If you have access to the web server's DNS (forward lookups) and the zones, multiple connections can be easily setup, by just adding an alias to the domain and then depending on the server, it will allow access to icons at/on any web server location: Website: http://www.mywebsite.com Icon code in the header and icon location: Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, June 30, 2009 10:06 AM To: dba-vb at databaseadvisors.com Subject: [dba-VB] favicon (was: Syslogs) Hi Drew That gives me an idea regarding favicon. I've found that it is sometimes difficult to get IE to understand that a favicon is present and should be displayed. Some common methods are: This typically doesn't work. These may: mtaulty.com/CommunityServer: The most reliable method I've found is the last - to use the full URL - but it is not nice to have hardcoded strings like these. So how about using your method: or localhost: Anyone having experience with this? /gustav >>> DWUTKA at marlow.com 30-06-2009 18:49 >>> Actually, if you have an IP address, it is real. It then gets into what it is used for. For example, with your wireless, if it's not connected, it won't have an IP address. If a standard NIC is not connected, it will show no address. If it IS connected, but not receiving an IP address, it will default to a (I think) 169 something, which is a hard coded address, which means nothing. You can also have internal addresses such as 127.0.0.1, which is a loopback to your local machine. (so if you are running a website, putting in http://127.0.0.1 on the server will give you the local website). Drew From Johncliviger at aol.com Sun Jul 12 13:02:40 2009 From: Johncliviger at aol.com (Johncliviger at aol.com) Date: Sun, 12 Jul 2009 14:02:40 EDT Subject: [dba-VB] .Net Graphs in 2008 Message-ID: Hi all I've just installed the graph control into VB2008 and with help of Pat Tormey's video I got a bar chart working. What I can't do however is to get the x-axis data labels to appear. . But where and how do you switch them on/off ? Regards johnc From ssharkins at gmail.com Sun Jul 12 19:55:55 2009 From: ssharkins at gmail.com (Susan Harkins) Date: Sun, 12 Jul 2009 20:55:55 -0400 Subject: [dba-VB] Next .NET basics article from Charlotte Message-ID: <11A694D51BEF4D79B16500AD19F60FD9@SusanOne> http://www.devx.com/dotnet/Article/42296?trk=DXRSS_DOTNET From Gustav at cactus.dk Mon Jul 13 04:04:54 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 13 Jul 2009 11:04:54 +0200 Subject: [dba-VB] Next .NET basics article from Charlotte Message-ID: Hi Susan and Charlotte > A .NET typed dataset is an in-memory representation of a remote database As far as I know, it doesn't have to be remote, it can be local as well, in fact it doesn't even have to "be" as you can create it on the fly (for temporary usage or to be written to, say, an XML file). That aside, I welcome any article that promote this great feature (typed dataset) of .Net. /gustav >>> ssharkins at gmail.com 13-07-2009 02:55 >>> http://www.devx.com/dotnet/Article/42296?trk=DXRSS_DOTNET From ssharkins at gmail.com Mon Jul 13 08:54:12 2009 From: ssharkins at gmail.com (Susan Harkins) Date: Mon, 13 Jul 2009 09:54:12 -0400 Subject: [dba-VB] Next .NET basics article from Charlotte References: Message-ID: <455F2BD731014F37BF1F35DF34263F10@SusanOne> > >> A .NET typed dataset is an in-memory representation of a remote database > > As far as I know, it doesn't have to be remote, it can be local as well, > in fact it doesn't even have to "be" as you can create it on the fly (for > temporary usage or to be written to, say, an XML file). ========Well, remote is in the official MS definition and I think that simply means that .NET doesn't store data. Susan H. From cfoust at infostatsystems.com Mon Jul 13 10:18:56 2009 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 13 Jul 2009 08:18:56 -0700 Subject: [dba-VB] Next .NET basics article from Charlotte In-Reply-To: References: Message-ID: But Wait! There's more! Next article we're going to create data entities based on typed datasets and use them to implement business rules in the data tier. Charlotte -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, July 13, 2009 2:05 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Next .NET basics article from Charlotte Hi Susan and Charlotte > A .NET typed dataset is an in-memory representation of a remote > database As far as I know, it doesn't have to be remote, it can be local as well, in fact it doesn't even have to "be" as you can create it on the fly (for temporary usage or to be written to, say, an XML file). That aside, I welcome any article that promote this great feature (typed dataset) of .Net. /gustav >>> ssharkins at gmail.com 13-07-2009 02:55 >>> http://www.devx.com/dotnet/Article/42296?trk=DXRSS_DOTNET _______________________________________________ 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 Fri Jul 17 02:22:16 2009 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Fri, 17 Jul 2009 11:22:16 +0400 Subject: [dba-VB] LINQ for EF Example (Part III) Message-ID: <002101ca06af$517c8940$f4759bc0$@spb.ru> (continued) Request: ======== Get all pairs of part numbers such that some supplier supplies both of the indicated parts. Generated SQL expression (obtained via SQL profiler): ===================================================== SELECT [Project2].[C1] AS [C1], [Project2].[SN] AS [SN], [Project2].[PN] AS [PN], [Project2].[PN1] AS [PN1] FROM ( SELECT [Distinct1].[PN] AS [PN], [Distinct1].[SN] AS [SN], [Distinct1].[PN1] AS [PN1], 1 AS [C1] FROM (SELECT DISTINCT [Extent1].[PN] AS [PN], [Extent1].[SN] AS [SN], [Extent2].[PN] AS [PN1], 1 AS [C1] FROM [dbo].[SPJ] AS [Extent1] INNER JOIN [dbo].[SPJ] AS [Extent2] ON [Extent1].[SN] = [Extent2].[SN] ) AS [Distinct1] INNER JOIN (SELECT [Extent3].[CITY] AS [CITY1], [Extent3].[COLOR] AS [COLOR1], [Extent3].[PN] AS [PN1], [Extent3].[PNAME] AS [PNAME1], [Extent3].[WEIGHT] AS [WEIGHT1], [Extent4].[CITY] AS [CITY2], [Extent4].[COLOR] AS [COLOR2], [Extent4].[PN] AS [PN2], [Extent4].[PNAME] AS [PNAME2], [Extent4].[WEIGHT] AS [WEIGHT2] FROM [dbo].[P] AS [Extent3] CROSS JOIN [dbo].[P] AS [Extent4] ) AS [Join2] ON ([Distinct1].[PN] = [Join2].[PN1]) AND ([Distinct1].[PN1] = [Join2].[PN2]) WHERE ([Join2].[PN1] <> [Join2].[PN2]) AND ((SUBSTRING([Join2].[PN1], 1 + 1, 1)) < (SUBSTRING([Join2].[PN2], 1 + 1, 1))) ) AS [Project2] ORDER BY [Project2].[SN] ASC, [Project2].[PN] ASC, [Project2].[PN1] ASC Result (LINQ for EF - C#): ========================== SN PN1 PN2 ---------- S2 P3 P5 S3 P3 P4 S5 P1 P2 S5 P1 P3 S5 P1 P4 S5 P1 P5 S5 P1 P6 S5 P2 P3 S5 P2 P4 S5 P2 P5 S5 P2 P6 S5 P3 P4 S5 P3 P5 S5 P3 P6 S5 P4 P5 S5 P4 P6 S5 P5 P6 ---------- (17 rows) Result (Manual SQL): ==================== SN PN1 PN2 S2 P3 P5 S3 P3 P4 S5 P1 P2 S5 P1 P3 S5 P1 P4 S5 P1 P5 S5 P1 P6 S5 P2 P3 S5 P2 P4 S5 P2 P5 S5 P2 P6 S5 P3 P4 S5 P3 P5 S5 P3 P6 S5 P4 P5 S5 P4 P6 S5 P5 P6 (17 rows) --- LINQ for EF looks "smart" isn't it? Thank you. -- Shamil From shamil at smsconsulting.spb.ru Fri Jul 17 02:22:16 2009 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Fri, 17 Jul 2009 11:22:16 +0400 Subject: [dba-VB] LINQ for EF Example (Part II) Message-ID: <002601ca06af$52ca17e0$f85e47a0$@spb.ru> (continued) Request: ======== Get all pairs of part numbers such that some supplier supplies both of the indicated parts. LINQ for EF (C#): ================= SPJEntities suppliersAndParts = new SPJEntities(); var queryResult1 = ( from spj1 in suppliersAndParts.SPJ from spj2 in suppliersAndParts.SPJ where (spj1.SN == spj2.SN) select new { SN = spj1.SN, PN1 = spj1.PN, PN2 = spj2.PN } ).Distinct() ; var queryResult2 = ( from p1 in suppliersAndParts.P from p2 in suppliersAndParts.P let p1Num = p1.PN.Substring(1, 1) let p2Num = p2.PN.Substring(1, 1) where (p1.PN != p2.PN && string.Compare(p1Num,p2Num) < 0 ) select new { PN1 = p1.PN, PN2 = p2.PN } ).Distinct() ; var queryResult = from q1 in queryResult1 from q2 in queryResult2 where (q1.PN1 == q2.PN1 && q1.PN2 == q2.PN2) orderby q1.SN, q1.PN1, q1.PN2 select new { SN = q1.SN, PN1 = q1.PN1, PN2 = q1.PN2 }; Console.WriteLine("SN PN1 PN2"); Console.WriteLine("----------"); foreach (var row in queryResult) Console.WriteLine("{0} {1} {2}", row.SN, row.PN1, row.PN2); Console.WriteLine("----------"); -- Shamil From shamil at smsconsulting.spb.ru Fri Jul 17 02:22:16 2009 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Fri, 17 Jul 2009 11:22:16 +0400 Subject: [dba-VB] LINQ for EF Example (Part I) Message-ID: <002b01ca06af$540caa00$fc25fe00$@spb.ru> Hi All, Have a look what LINQ for EF can do - I mainly mean that it can combine C# subqueries into one SQL expression executed on server side. I personally was unaware of this feature. Yes, I have read about LINQ's "lazy execution mode" but I haven't seen such advanced examples. Of course I could have missed them. Anyway I wanted to post about this LINQ feature here - just for the records J This posting is split into three parts to get through dba-VB posting size limitations. Example uses well known C.J. Date sample database from his "An Introduction to Database Systems" book (http://www.amazon.com/Introduction-Database-Systems-C-Date/dp/0201385902): Request: ======== Get all pairs of part numbers such that some supplier supplies both of the indicated parts. Manually written SQL: ================= SELECT DISTINCT spj1.SN as SN, spj1.PN AS PN1, spj2.PN AS PN2 FROM SPJ AS spj1, SPJ AS spj2, ( select p1.PN as PN1, p2.PN as PN2 from P as p1, P as p2 where p1.PN <> p2.PN and CAST(SUBSTRING(p1.PN,2,1) as int) < CAST(SUBSTRING(p2.PN,2,1) as int) ) Q WHERE spj1.SN = spj2.SN and spj1.PN = Q.PN1 and spj2.PN = Q.PN2 order by SN, PN1, PN2 -- Shamil From mmattys at rochester.rr.com Fri Jul 17 09:13:50 2009 From: mmattys at rochester.rr.com (Mike Mattys) Date: Fri, 17 Jul 2009 10:13:50 -0400 Subject: [dba-VB] LINQ for EF Example (Part III) References: <002101ca06af$517c8940$f4759bc0$@spb.ru> Message-ID: <2CDA2A89C2FF4A7D8A42293E87A8913C@Mattys> Thanks, Shamil - These look great! I'll have to try it out. As soon as I look up EF? - Michael R Mattys MapPoint and Database Dev www.mattysconsulting.com - ----- Original Message ----- From: "Shamil Salakhetdinov" To: "'Discussion concerning Visual Basic and related programming issues.'" Sent: Friday, July 17, 2009 3:22 AM Subject: [dba-VB] LINQ for EF Example (Part III) > (continued) > > > > Request: > > ======== > > Get all pairs of part numbers such that some supplier supplies both of > the indicated parts. > > > > Generated SQL expression (obtained via SQL profiler): > > ===================================================== > > SELECT > > [Project2].[C1] AS [C1], > > [Project2].[SN] AS [SN], > > [Project2].[PN] AS [PN], > > [Project2].[PN1] AS [PN1] > > FROM ( SELECT > > [Distinct1].[PN] AS [PN], > > [Distinct1].[SN] AS [SN], > > [Distinct1].[PN1] AS [PN1], > > 1 AS [C1] > > FROM (SELECT DISTINCT > > [Extent1].[PN] AS [PN], > > [Extent1].[SN] AS [SN], > > [Extent2].[PN] AS [PN1], > > 1 AS [C1] > > FROM [dbo].[SPJ] AS [Extent1] > > INNER JOIN [dbo].[SPJ] AS [Extent2] ON [Extent1].[SN] = > [Extent2].[SN] ) AS [Distinct1] > > INNER JOIN (SELECT [Extent3].[CITY] AS [CITY1], [Extent3].[COLOR] AS > [COLOR1], [Extent3].[PN] AS [PN1], [Extent3].[PNAME] AS [PNAME1], > [Extent3].[WEIGHT] AS [WEIGHT1], [Extent4].[CITY] AS [CITY2], > [Extent4].[COLOR] AS [COLOR2], [Extent4].[PN] AS [PN2], [Extent4].[PNAME] > AS > [PNAME2], [Extent4].[WEIGHT] AS [WEIGHT2] > > FROM [dbo].[P] AS [Extent3] > > CROSS JOIN [dbo].[P] AS [Extent4] ) AS [Join2] ON > ([Distinct1].[PN] = [Join2].[PN1]) AND ([Distinct1].[PN1] = [Join2].[PN2]) > > WHERE ([Join2].[PN1] <> [Join2].[PN2]) AND ((SUBSTRING([Join2].[PN1], > 1 + 1, 1)) < (SUBSTRING([Join2].[PN2], 1 + 1, 1))) > > ) AS [Project2] > > ORDER BY [Project2].[SN] ASC, [Project2].[PN] ASC, [Project2].[PN1] ASC > > > > Result (LINQ for EF - C#): > > ========================== > > SN PN1 PN2 > > ---------- > > S2 P3 P5 > > S3 P3 P4 > > S5 P1 P2 > > S5 P1 P3 > > S5 P1 P4 > > S5 P1 P5 > > S5 P1 P6 > > S5 P2 P3 > > S5 P2 P4 > > S5 P2 P5 > > S5 P2 P6 > > S5 P3 P4 > > S5 P3 P5 > > S5 P3 P6 > > S5 P4 P5 > > S5 P4 P6 > > S5 P5 P6 > > ---------- > > > > (17 rows) > > > > Result (Manual SQL): > > ==================== > > > > SN PN1 PN2 > > S2 P3 P5 > > S3 P3 P4 > > S5 P1 P2 > > S5 P1 P3 > > S5 P1 P4 > > S5 P1 P5 > > S5 P1 P6 > > S5 P2 P3 > > S5 P2 P4 > > S5 P2 P5 > > S5 P2 P6 > > S5 P3 P4 > > S5 P3 P5 > > S5 P3 P6 > > S5 P4 P5 > > S5 P4 P6 > > S5 P5 P6 > > > > (17 rows) > > > > --- > > LINQ for EF looks "smart" isn't it? > > > > Thank you. > > > > -- > > Shamil > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From Gustav at cactus.dk Fri Jul 17 10:16:52 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 17 Jul 2009 17:16:52 +0200 Subject: [dba-VB] LINQ for EF Example (Part I) Message-ID: Hi Shamil No, I wasn't aware of exactly this - or rather down to what level the SQL code generator operates - but it is a great feature. Where can the C.J. Date test database you mention be obtained? I found the book for download as a PDF here: http://www.scribd.com/doc/13078295/An-Introduction-to-Database-Systems-8Ed-C-J-Date-Solutions-Manual It seems to be complete. Not sure what the deal is? /gustav >>> shamil at smsconsulting.spb.ru 17-07-2009 09:22 >>> Hi All, Have a look what LINQ for EF can do - I mainly mean that it can combine C# subqueries into one SQL expression executed on server side. I personally was unaware of this feature. Yes, I have read about LINQ's "lazy execution mode" but I haven't seen such advanced examples. Of course I could have missed them. Anyway I wanted to post about this LINQ feature here - just for the records J This posting is split into three parts to get through dba-VB posting size limitations. Example uses well known C.J. Date sample database from his "An Introduction to Database Systems" book (http://www.amazon.com/Introduction-Database-Systems-C-Date/dp/0201385902): From mmattys at rochester.rr.com Fri Jul 17 10:53:57 2009 From: mmattys at rochester.rr.com (Mike Mattys) Date: Fri, 17 Jul 2009 11:53:57 -0400 Subject: [dba-VB] LINQ for EF Example (Part III) References: <002101ca06af$517c8940$f4759bc0$@spb.ru> <2CDA2A89C2FF4A7D8A42293E87A8913C@Mattys> Message-ID: <868FCF698D3F4BE1A75E23ACD6CF09E5@Mattys> Entity Framework Extraneous Froth :) - Michael R Mattys MapPoint and Database Dev www.mattysconsulting.com - ----- Original Message ----- From: "Mike Mattys" To: "Discussion concerning Visual Basic and related programming issues." Sent: Friday, July 17, 2009 10:13 AM Subject: Re: [dba-VB] LINQ for EF Example (Part III) > Thanks, Shamil - These look great! > I'll have to try it out. > > As soon as I look up EF? > > - > Michael R Mattys > MapPoint and Database Dev > www.mattysconsulting.com > - > > ----- Original Message ----- > From: "Shamil Salakhetdinov" > To: "'Discussion concerning Visual Basic and related programming issues.'" > > Sent: Friday, July 17, 2009 3:22 AM > Subject: [dba-VB] LINQ for EF Example (Part III) > > >> (continued) >> >> >> >> Request: >> >> ======== >> >> Get all pairs of part numbers such that some supplier supplies both of >> the indicated parts. >> >> >> >> Generated SQL expression (obtained via SQL profiler): >> >> ===================================================== >> >> SELECT >> >> [Project2].[C1] AS [C1], >> >> [Project2].[SN] AS [SN], >> >> [Project2].[PN] AS [PN], >> >> [Project2].[PN1] AS [PN1] >> >> FROM ( SELECT >> >> [Distinct1].[PN] AS [PN], >> >> [Distinct1].[SN] AS [SN], >> >> [Distinct1].[PN1] AS [PN1], >> >> 1 AS [C1] >> >> FROM (SELECT DISTINCT >> >> [Extent1].[PN] AS [PN], >> >> [Extent1].[SN] AS [SN], >> >> [Extent2].[PN] AS [PN1], >> >> 1 AS [C1] >> >> FROM [dbo].[SPJ] AS [Extent1] >> >> INNER JOIN [dbo].[SPJ] AS [Extent2] ON [Extent1].[SN] = >> [Extent2].[SN] ) AS [Distinct1] >> >> INNER JOIN (SELECT [Extent3].[CITY] AS [CITY1], [Extent3].[COLOR] >> AS >> [COLOR1], [Extent3].[PN] AS [PN1], [Extent3].[PNAME] AS [PNAME1], >> [Extent3].[WEIGHT] AS [WEIGHT1], [Extent4].[CITY] AS [CITY2], >> [Extent4].[COLOR] AS [COLOR2], [Extent4].[PN] AS [PN2], [Extent4].[PNAME] >> AS >> [PNAME2], [Extent4].[WEIGHT] AS [WEIGHT2] >> >> FROM [dbo].[P] AS [Extent3] >> >> CROSS JOIN [dbo].[P] AS [Extent4] ) AS [Join2] ON >> ([Distinct1].[PN] = [Join2].[PN1]) AND ([Distinct1].[PN1] = >> [Join2].[PN2]) >> >> WHERE ([Join2].[PN1] <> [Join2].[PN2]) AND >> ((SUBSTRING([Join2].[PN1], >> 1 + 1, 1)) < (SUBSTRING([Join2].[PN2], 1 + 1, 1))) >> >> ) AS [Project2] >> >> ORDER BY [Project2].[SN] ASC, [Project2].[PN] ASC, [Project2].[PN1] ASC >> >> >> >> Result (LINQ for EF - C#): >> >> ========================== >> >> SN PN1 PN2 >> >> ---------- >> >> S2 P3 P5 >> >> S3 P3 P4 >> >> S5 P1 P2 >> >> S5 P1 P3 >> >> S5 P1 P4 >> >> S5 P1 P5 >> >> S5 P1 P6 >> >> S5 P2 P3 >> >> S5 P2 P4 >> >> S5 P2 P5 >> >> S5 P2 P6 >> >> S5 P3 P4 >> >> S5 P3 P5 >> >> S5 P3 P6 >> >> S5 P4 P5 >> >> S5 P4 P6 >> >> S5 P5 P6 >> >> ---------- >> >> >> >> (17 rows) >> >> >> >> Result (Manual SQL): >> >> ==================== >> >> >> >> SN PN1 PN2 >> >> S2 P3 P5 >> >> S3 P3 P4 >> >> S5 P1 P2 >> >> S5 P1 P3 >> >> S5 P1 P4 >> >> S5 P1 P5 >> >> S5 P1 P6 >> >> S5 P2 P3 >> >> S5 P2 P4 >> >> S5 P2 P5 >> >> S5 P2 P6 >> >> S5 P3 P4 >> >> S5 P3 P5 >> >> S5 P3 P6 >> >> S5 P4 P5 >> >> S5 P4 P6 >> >> S5 P5 P6 >> >> >> >> (17 rows) >> >> >> >> --- >> >> LINQ for EF looks "smart" isn't it? >> >> >> >> 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 Gustav at cactus.dk Fri Jul 17 11:29:47 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 17 Jul 2009 18:29:47 +0200 Subject: [dba-VB] Using Microsoft ADO.NET Entity Framework with MySQL (was: LINQ for EF Example) Message-ID: Hi all And as an apropos: Live Webinar: For ISVs - Using Microsoft ADO.NET Entity Framework with MySQL Tuesday, August 11, 2009 - 10:00am PDT The Entity Framework is a new technology that was developed by Microsoft and delivered as part of .NET 3.5 SP1. This framework abstracts the relational schema of the database and presents it as a conceptual schema. This is particularly beneficial for ISVs because by working with a conceptual schema, the commercial application developer avoids having to write complicated joins to connect all the related items of data, greatly reducing development time, resources and therefore, COGS. ISV developers can access their data using ORM-like classes, LinQ syntax, or with a new SQL syntax named EntitySQL, all of which further reduce COGS. Register for this Webinar: http://www.mysql.com/news-and-events/web-seminars/display-397.html /gustav ----- Original Message ----- > Thanks, Shamil - These look great! > I'll have to try it out. > > As soon as I look up EF? > > - > Michael R Mattys > MapPoint and Database Dev > www.mattysconsulting.com From Gustav at cactus.dk Fri Jul 17 11:38:44 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 17 Jul 2009 18:38:44 +0200 Subject: [dba-VB] Using Microsoft ADO.NET Entity Framework with MySQL (was: LINQ for EF Example) Message-ID: Also: New Release of MySQL Connector/Net 6.0.4 (GA) MySQL Connector/Net 6.0.4, a new version of the all-managed .NET driver for MySQL has been released. This is the first post-GA release of the new 6.0 connector and includes several bug fixes from the initial GA release. This release is approved for use in all scenarios and officially supports MySQL servers 4.1 and higher. View the complete list of changes: http://dev.mysql.com/doc/refman/6.0/en/connector-net-news-6-0-4.html Download Now: http://dev.mysql.com/downloads/connector/net/6.0.html /gustav >>> Gustav at cactus.dk 17-07-2009 18:29 >>> Hi all And as an apropos: Live Webinar: For ISVs - Using Microsoft ADO.NET Entity Framework with MySQL Tuesday, August 11, 2009 - 10:00am PDT The Entity Framework is a new technology that was developed by Microsoft and delivered as part of .NET 3.5 SP1. This framework abstracts the relational schema of the database and presents it as a conceptual schema. This is particularly beneficial for ISVs because by working with a conceptual schema, the commercial application developer avoids having to write complicated joins to connect all the related items of data, greatly reducing development time, resources and therefore, COGS. ISV developers can access their data using ORM-like classes, LinQ syntax, or with a new SQL syntax named EntitySQL, all of which further reduce COGS. Register for this Webinar: http://www.mysql.com/news-and-events/web-seminars/display-397.html /gustav ----- Original Message ----- > Thanks, Shamil - These look great! > I'll have to try it out. > > As soon as I look up EF? > > - > Michael R Mattys > MapPoint and Database Dev > www.mattysconsulting.com From cfoust at infostatsystems.com Fri Jul 17 11:52:45 2009 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 17 Jul 2009 09:52:45 -0700 Subject: [dba-VB] Using Microsoft ADO.NET Entity Framework with MySQL(was: LINQ for EF Example) In-Reply-To: References: Message-ID: I started to look at the data entity model but found it horribly confusing in VS2008. Our project manager previously worked for a large company that had played with it and found the problems it created for them outweighed any advantages. I may come around to it as it evolves, but for now I'll stay with our homegrown entity model. Charlotte -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, July 17, 2009 9:30 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Using Microsoft ADO.NET Entity Framework with MySQL(was: LINQ for EF Example) Hi all And as an apropos: Live Webinar: For ISVs - Using Microsoft ADO.NET Entity Framework with MySQL Tuesday, August 11, 2009 - 10:00am PDT The Entity Framework is a new technology that was developed by Microsoft and delivered as part of .NET 3.5 SP1. This framework abstracts the relational schema of the database and presents it as a conceptual schema. This is particularly beneficial for ISVs because by working with a conceptual schema, the commercial application developer avoids having to write complicated joins to connect all the related items of data, greatly reducing development time, resources and therefore, COGS. ISV developers can access their data using ORM-like classes, LinQ syntax, or with a new SQL syntax named EntitySQL, all of which further reduce COGS. Register for this Webinar: http://www.mysql.com/news-and-events/web-seminars/display-397.html /gustav ----- Original Message ----- > Thanks, Shamil - These look great! > I'll have to try it out. > > As soon as I look up EF? > > - > Michael R Mattys > MapPoint and Database Dev > www.mattysconsulting.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 Fri Jul 17 15:34:45 2009 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sat, 18 Jul 2009 00:34:45 +0400 Subject: [dba-VB] LINQ for EF Example (Part I) In-Reply-To: References: Message-ID: <005401ca071e$066b0250$134106f0$@spb.ru> Hi Gustav, Yes, this is a great feature. I have just published SPJ sample database at: http://northwind.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=26600#D ownloadId=75624 I have made this sample database developed here by typing its data from the book, which I have got purchased here in 1981, in USSR, Russian Edition. ?.J.Date has released this year yet another book - I'd recommend it as it's IMO more modern/advanced/suitable for professional db developers: SQL and Relational Theory, 1st Edition by C.J. Date January 2009 ISBN-10: 0-596-52306-8 http://oreilly.com/catalog/9780596523060/ "Understanding SQL's underlying theory is the best way to guarantee that your SQL code is correct and your database schema is robust and maintainable. In SQL and Relational Theory, author C.J. Date demonstrates how you can apply relational theory directly to your use of SQL, with numerous examples and clear explanations of the reasoning behind them. Anyone with a modest to advanced background in SQL will benefit from the many insights in this book." -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, July 17, 2009 7:17 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] LINQ for EF Example (Part I) Hi Shamil No, I wasn't aware of exactly this - or rather down to what level the SQL code generator operates - but it is a great feature. Where can the C.J. Date test database you mention be obtained? I found the book for download as a PDF here: http://www.scribd.com/doc/13078295/An-Introduction-to-Database-Systems-8Ed-C -J-Date-Solutions-Manual It seems to be complete. Not sure what the deal is? /gustav >>> shamil at smsconsulting.spb.ru 17-07-2009 09:22 >>> Hi All, Have a look what LINQ for EF can do - I mainly mean that it can combine C# subqueries into one SQL expression executed on server side. I personally was unaware of this feature. Yes, I have read about LINQ's "lazy execution mode" but I haven't seen such advanced examples. Of course I could have missed them. Anyway I wanted to post about this LINQ feature here - just for the records J This posting is split into three parts to get through dba-VB posting size limitations. Example uses well known C.J. Date sample database from his "An Introduction to Database Systems" book (http://www.amazon.com/Introduction-Database-Systems-C-Date/dp/0201385902): _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com __________ Information from ESET NOD32 Antivirus, version of virus signature database 4255 (20090717) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru __________ Information from ESET NOD32 Antivirus, version of virus signature database 4255 (20090717) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru From shamil at smsconsulting.spb.ru Fri Jul 17 18:28:34 2009 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sat, 18 Jul 2009 03:28:34 +0400 Subject: [dba-VB] Using Microsoft ADO.NET Entity Framework with MySQL (was: LINQ for EF Example) In-Reply-To: References: Message-ID: <005501ca0736$50039180$f00ab480$@spb.ru> Hi Gustav, This mySQL Connector, which can be used to work with mySQL DBs from LINQ for EF(?), is probably developed by using "Entity Client" concept/technology: http://blogs.msdn.com/adonet/archive/2007/02/14/entity-client.aspx It may happen somebody will use this technology to develop an MS Access connector - let's hope that happens real soon? Hey, MS MS Access Team - how about doing that there? Another useful technology MS "cooks" there is "CodeOnly for Entity Framework": http://blogs.msdn.com/adonet/archive/2009/06/22/feature-ctp-walkthrough-code -only-for-entity-framework.aspx You mentioned something like that here already - did you mean that "CodeOnly for Entity Framework" technology or just a concept of starting with Domain Model implemented in code/metadata and then using this Domain Model to generate actual (relational) DB model? -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, July 17, 2009 8:39 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Using Microsoft ADO.NET Entity Framework with MySQL (was: LINQ for EF Example) Also: New Release of MySQL Connector/Net 6.0.4 (GA) MySQL Connector/Net 6.0.4, a new version of the all-managed .NET driver for MySQL has been released. This is the first post-GA release of the new 6.0 connector and includes several bug fixes from the initial GA release. This release is approved for use in all scenarios and officially supports MySQL servers 4.1 and higher. View the complete list of changes: http://dev.mysql.com/doc/refman/6.0/en/connector-net-news-6-0-4.html Download Now: http://dev.mysql.com/downloads/connector/net/6.0.html /gustav >>> Gustav at cactus.dk 17-07-2009 18:29 >>> Hi all And as an apropos: Live Webinar: For ISVs - Using Microsoft ADO.NET Entity Framework with MySQL Tuesday, August 11, 2009 - 10:00am PDT The Entity Framework is a new technology that was developed by Microsoft and delivered as part of .NET 3.5 SP1. This framework abstracts the relational schema of the database and presents it as a conceptual schema. This is particularly beneficial for ISVs because by working with a conceptual schema, the commercial application developer avoids having to write complicated joins to connect all the related items of data, greatly reducing development time, resources and therefore, COGS. ISV developers can access their data using ORM-like classes, LinQ syntax, or with a new SQL syntax named EntitySQL, all of which further reduce COGS. Register for this Webinar: http://www.mysql.com/news-and-events/web-seminars/display-397.html /gustav ----- Original Message ----- > Thanks, Shamil - These look great! > I'll have to try it out. > > As soon as I look up EF? > > - > Michael R Mattys > MapPoint and Database Dev > www.mattysconsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com __________ Information from ESET NOD32 Antivirus, version of virus signature database 4255 (20090717) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru __________ Information from ESET NOD32 Antivirus, version of virus signature database 4255 (20090717) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru From shamil at smsconsulting.spb.ru Sat Jul 18 07:30:01 2009 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sat, 18 Jul 2009 16:30:01 +0400 Subject: [dba-VB] LINQ for EF Example (Part III) In-Reply-To: <868FCF698D3F4BE1A75E23ACD6CF09E5@Mattys> References: <002101ca06af$517c8940$f4759bc0$@spb.ru> <2CDA2A89C2FF4A7D8A42293E87A8913C@Mattys> <868FCF698D3F4BE1A75E23ACD6CF09E5@Mattys> Message-ID: <007501ca07a3$79738d00$6c5aa700$@spb.ru> Hi Mike, Yes, "LINQ for ADO.NET Entity Framework" to be precise :) What about teaming-up with Gustav and myself and to port our Northwind.NET for MS SQL 2005 to "LINQ for ADO.NET Entity Framework"? Just an idea - and doing that project in "lazy summer mode" without setting strict deadlines? Gustav how about you? Anybody else? Have nice weekend. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Mike Mattys Sent: Friday, July 17, 2009 7:54 PM To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] LINQ for EF Example (Part III) Entity Framework Extraneous Froth :) - Michael R Mattys MapPoint and Database Dev www.mattysconsulting.com - ----- Original Message ----- From: "Mike Mattys" To: "Discussion concerning Visual Basic and related programming issues." Sent: Friday, July 17, 2009 10:13 AM Subject: Re: [dba-VB] LINQ for EF Example (Part III) > Thanks, Shamil - These look great! > I'll have to try it out. > > As soon as I look up EF? > > - > Michael R Mattys > MapPoint and Database Dev > www.mattysconsulting.com > - > > ----- Original Message ----- > From: "Shamil Salakhetdinov" > To: "'Discussion concerning Visual Basic and related programming issues.'" > > Sent: Friday, July 17, 2009 3:22 AM > Subject: [dba-VB] LINQ for EF Example (Part III) > > >> (continued) >> >> >> >> Request: >> >> ======== >> >> Get all pairs of part numbers such that some supplier supplies both of >> the indicated parts. >> >> >> >> Generated SQL expression (obtained via SQL profiler): >> >> ===================================================== >> >> SELECT >> >> [Project2].[C1] AS [C1], >> >> [Project2].[SN] AS [SN], >> >> [Project2].[PN] AS [PN], >> >> [Project2].[PN1] AS [PN1] >> >> FROM ( SELECT >> >> [Distinct1].[PN] AS [PN], >> >> [Distinct1].[SN] AS [SN], >> >> [Distinct1].[PN1] AS [PN1], >> >> 1 AS [C1] >> >> FROM (SELECT DISTINCT >> >> [Extent1].[PN] AS [PN], >> >> [Extent1].[SN] AS [SN], >> >> [Extent2].[PN] AS [PN1], >> >> 1 AS [C1] >> >> FROM [dbo].[SPJ] AS [Extent1] >> >> INNER JOIN [dbo].[SPJ] AS [Extent2] ON [Extent1].[SN] = >> [Extent2].[SN] ) AS [Distinct1] >> >> INNER JOIN (SELECT [Extent3].[CITY] AS [CITY1], [Extent3].[COLOR] >> AS >> [COLOR1], [Extent3].[PN] AS [PN1], [Extent3].[PNAME] AS [PNAME1], >> [Extent3].[WEIGHT] AS [WEIGHT1], [Extent4].[CITY] AS [CITY2], >> [Extent4].[COLOR] AS [COLOR2], [Extent4].[PN] AS [PN2], [Extent4].[PNAME] >> AS >> [PNAME2], [Extent4].[WEIGHT] AS [WEIGHT2] >> >> FROM [dbo].[P] AS [Extent3] >> >> CROSS JOIN [dbo].[P] AS [Extent4] ) AS [Join2] ON >> ([Distinct1].[PN] = [Join2].[PN1]) AND ([Distinct1].[PN1] = >> [Join2].[PN2]) >> >> WHERE ([Join2].[PN1] <> [Join2].[PN2]) AND >> ((SUBSTRING([Join2].[PN1], >> 1 + 1, 1)) < (SUBSTRING([Join2].[PN2], 1 + 1, 1))) >> >> ) AS [Project2] >> >> ORDER BY [Project2].[SN] ASC, [Project2].[PN] ASC, [Project2].[PN1] ASC >> >> >> >> Result (LINQ for EF - C#): >> >> ========================== >> >> SN PN1 PN2 >> >> ---------- >> >> S2 P3 P5 >> >> S3 P3 P4 >> >> S5 P1 P2 >> >> S5 P1 P3 >> >> S5 P1 P4 >> >> S5 P1 P5 >> >> S5 P1 P6 >> >> S5 P2 P3 >> >> S5 P2 P4 >> >> S5 P2 P5 >> >> S5 P2 P6 >> >> S5 P3 P4 >> >> S5 P3 P5 >> >> S5 P3 P6 >> >> S5 P4 P5 >> >> S5 P4 P6 >> >> S5 P5 P6 >> >> ---------- >> >> >> >> (17 rows) >> >> >> >> Result (Manual SQL): >> >> ==================== >> >> >> >> SN PN1 PN2 >> >> S2 P3 P5 >> >> S3 P3 P4 >> >> S5 P1 P2 >> >> S5 P1 P3 >> >> S5 P1 P4 >> >> S5 P1 P5 >> >> S5 P1 P6 >> >> S5 P2 P3 >> >> S5 P2 P4 >> >> S5 P2 P5 >> >> S5 P2 P6 >> >> S5 P3 P4 >> >> S5 P3 P5 >> >> S5 P3 P6 >> >> S5 P4 P5 >> >> S5 P4 P6 >> >> S5 P5 P6 >> >> >> >> (17 rows) >> >> >> >> --- >> >> LINQ for EF looks "smart" isn't it? >> >> >> >> 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 > _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com __________ Information from ESET NOD32 Antivirus, version of virus signature database 4255 (20090717) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru From Gustav at cactus.dk Sat Jul 18 09:02:55 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Sat, 18 Jul 2009 16:02:55 +0200 Subject: [dba-VB] Using Microsoft ADO.NET Entity Framework with MySQL Message-ID: Hi Shamil I don't know, it could be, on the other hand MySQL (Sun and now Oracle) indeed have the programming resources to create the connector the way they prefer - and I think they pay a lot of attention to this because as they wrote in the recent news letter much to my surprise: For many years, Microsoft Windows has been the most popular development platform and second most popular production platform for organizations developing MySQL applications. The "CodeOnly for Entity Framework" is exactly what I had in mind. Thanks for the link - looks like I should sign up for that blog. This must be the ultimate goal - to design and specify your database directly in your code at a higher level than manually adding fields and constraints and so on. I better get that VS2010 beta! But right now - with VS2005 and 2008 - you can edit your datatables in VS and, when you press enter, VS writes the changes back to the database. I think this may be what you recall that I previously have referred to. This feature is great but "CodeOnly for Entity Framework" is certainly better. I'll recommend anyone to study the links to the MSDN blog (and the links at those pages about POCO, Plain Old CLR Objects!). If this works, one day you won't look back. /gustav >>> shamil at smsconsulting.spb.ru 18-07-2009 01:28 >>> Hi Gustav, This mySQL Connector, which can be used to work with mySQL DBs from LINQ for EF(?), is probably developed by using "Entity Client" concept/technology: http://blogs.msdn.com/adonet/archive/2007/02/14/entity-client.aspx It may happen somebody will use this technology to develop an MS Access connector - let's hope that happens real soon? Hey, MS MS Access Team - how about doing that there? Another useful technology MS "cooks" there is "CodeOnly for Entity Framework": http://blogs.msdn.com/adonet/archive/2009/06/22/feature-ctp-walkthrough-code-only-for-entity-framework.aspx You mentioned something like that here already - did you mean that "CodeOnly for Entity Framework" technology or just a concept of starting with Domain Model implemented in code/metadata and then using this Domain Model to generate actual (relational) DB model? -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, July 17, 2009 8:39 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Using Microsoft ADO.NET Entity Framework with MySQL (was: LINQ for EF Example) Also: New Release of MySQL Connector/Net 6.0.4 (GA) MySQL Connector/Net 6.0.4, a new version of the all-managed .NET driver for MySQL has been released. This is the first post-GA release of the new 6.0 connector and includes several bug fixes from the initial GA release. This release is approved for use in all scenarios and officially supports MySQL servers 4.1 and higher. View the complete list of changes: http://dev.mysql.com/doc/refman/6.0/en/connector-net-news-6-0-4.html Download Now: http://dev.mysql.com/downloads/connector/net/6.0.html /gustav >>> Gustav at cactus.dk 17-07-2009 18:29 >>> Hi all And as an apropos: Live Webinar: For ISVs - Using Microsoft ADO.NET Entity Framework with MySQL Tuesday, August 11, 2009 - 10:00am PDT The Entity Framework is a new technology that was developed by Microsoft and delivered as part of .NET 3.5 SP1. This framework abstracts the relational schema of the database and presents it as a conceptual schema. This is particularly beneficial for ISVs because by working with a conceptual schema, the commercial application developer avoids having to write complicated joins to connect all the related items of data, greatly reducing development time, resources and therefore, COGS. ISV developers can access their data using ORM-like classes, LinQ syntax, or with a new SQL syntax named EntitySQL, all of which further reduce COGS. Register for this Webinar: http://www.mysql.com/news-and-events/web-seminars/display-397.html /gustav From mmattys at rochester.rr.com Sat Jul 18 19:52:05 2009 From: mmattys at rochester.rr.com (Mike Mattys) Date: Sat, 18 Jul 2009 20:52:05 -0400 Subject: [dba-VB] LINQ for EF Example (Part III) References: <002101ca06af$517c8940$f4759bc0$@spb.ru> <2CDA2A89C2FF4A7D8A42293E87A8913C@Mattys><868FCF698D3F4BE1A75E23ACD6CF09E5@Mattys> <007501ca07a3$79738d00$6c5aa700$@spb.ru> Message-ID: <56BD4D1BAB674ACC92EA34E805C0297E@Mattys> Hi Shamil, You can count me in! - Michael R Mattys MapPoint and Database Dev www.mattysconsulting.com - ----- Original Message ----- From: "Shamil Salakhetdinov" To: "'Discussion concerning Visual Basic and related programming issues.'" Sent: Saturday, July 18, 2009 8:30 AM Subject: Re: [dba-VB] LINQ for EF Example (Part III) > Hi Mike, > > Yes, "LINQ for ADO.NET Entity Framework" to be precise :) > > What about teaming-up with Gustav and myself and to port our Northwind.NET > for MS SQL 2005 to "LINQ for ADO.NET Entity Framework"? Just an idea - and > doing that project in "lazy summer mode" without setting strict deadlines? > > Gustav how about you? > Anybody else? > > Have nice weekend. > > -- > Shamil > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Mike Mattys > Sent: Friday, July 17, 2009 7:54 PM > To: Discussion concerning Visual Basic and related programming issues. > Subject: Re: [dba-VB] LINQ for EF Example (Part III) > > Entity Framework > > Extraneous Froth :) > > - > Michael R Mattys > MapPoint and Database Dev > www.mattysconsulting.com > - > ----- Original Message ----- > From: "Mike Mattys" > To: "Discussion concerning Visual Basic and related programming issues." > > Sent: Friday, July 17, 2009 10:13 AM > Subject: Re: [dba-VB] LINQ for EF Example (Part III) > > >> Thanks, Shamil - These look great! >> I'll have to try it out. >> >> As soon as I look up EF? >> >> - >> Michael R Mattys >> MapPoint and Database Dev >> www.mattysconsulting.com >> - >> >> ----- Original Message ----- >> From: "Shamil Salakhetdinov" >> To: "'Discussion concerning Visual Basic and related programming >> issues.'" >> >> Sent: Friday, July 17, 2009 3:22 AM >> Subject: [dba-VB] LINQ for EF Example (Part III) >> >> >>> (continued) >>> >>> >>> >>> Request: >>> >>> ======== >>> >>> Get all pairs of part numbers such that some supplier supplies both of >>> the indicated parts. >>> >>> >>> >>> Generated SQL expression (obtained via SQL profiler): >>> >>> ===================================================== >>> >>> SELECT >>> >>> [Project2].[C1] AS [C1], >>> >>> [Project2].[SN] AS [SN], >>> >>> [Project2].[PN] AS [PN], >>> >>> [Project2].[PN1] AS [PN1] >>> >>> FROM ( SELECT >>> >>> [Distinct1].[PN] AS [PN], >>> >>> [Distinct1].[SN] AS [SN], >>> >>> [Distinct1].[PN1] AS [PN1], >>> >>> 1 AS [C1] >>> >>> FROM (SELECT DISTINCT >>> >>> [Extent1].[PN] AS [PN], >>> >>> [Extent1].[SN] AS [SN], >>> >>> [Extent2].[PN] AS [PN1], >>> >>> 1 AS [C1] >>> >>> FROM [dbo].[SPJ] AS [Extent1] >>> >>> INNER JOIN [dbo].[SPJ] AS [Extent2] ON [Extent1].[SN] = >>> [Extent2].[SN] ) AS [Distinct1] >>> >>> INNER JOIN (SELECT [Extent3].[CITY] AS [CITY1], [Extent3].[COLOR] >>> AS >>> [COLOR1], [Extent3].[PN] AS [PN1], [Extent3].[PNAME] AS [PNAME1], >>> [Extent3].[WEIGHT] AS [WEIGHT1], [Extent4].[CITY] AS [CITY2], >>> [Extent4].[COLOR] AS [COLOR2], [Extent4].[PN] AS [PN2], >>> [Extent4].[PNAME] >>> AS >>> [PNAME2], [Extent4].[WEIGHT] AS [WEIGHT2] >>> >>> FROM [dbo].[P] AS [Extent3] >>> >>> CROSS JOIN [dbo].[P] AS [Extent4] ) AS [Join2] ON >>> ([Distinct1].[PN] = [Join2].[PN1]) AND ([Distinct1].[PN1] = >>> [Join2].[PN2]) >>> >>> WHERE ([Join2].[PN1] <> [Join2].[PN2]) AND >>> ((SUBSTRING([Join2].[PN1], >>> 1 + 1, 1)) < (SUBSTRING([Join2].[PN2], 1 + 1, 1))) >>> >>> ) AS [Project2] >>> >>> ORDER BY [Project2].[SN] ASC, [Project2].[PN] ASC, [Project2].[PN1] ASC >>> >>> >>> >>> Result (LINQ for EF - C#): >>> >>> ========================== >>> >>> SN PN1 PN2 >>> >>> ---------- >>> >>> S2 P3 P5 >>> >>> S3 P3 P4 >>> >>> S5 P1 P2 >>> >>> S5 P1 P3 >>> >>> S5 P1 P4 >>> >>> S5 P1 P5 >>> >>> S5 P1 P6 >>> >>> S5 P2 P3 >>> >>> S5 P2 P4 >>> >>> S5 P2 P5 >>> >>> S5 P2 P6 >>> >>> S5 P3 P4 >>> >>> S5 P3 P5 >>> >>> S5 P3 P6 >>> >>> S5 P4 P5 >>> >>> S5 P4 P6 >>> >>> S5 P5 P6 >>> >>> ---------- >>> >>> >>> >>> (17 rows) >>> >>> >>> >>> Result (Manual SQL): >>> >>> ==================== >>> >>> >>> >>> SN PN1 PN2 >>> >>> S2 P3 P5 >>> >>> S3 P3 P4 >>> >>> S5 P1 P2 >>> >>> S5 P1 P3 >>> >>> S5 P1 P4 >>> >>> S5 P1 P5 >>> >>> S5 P1 P6 >>> >>> S5 P2 P3 >>> >>> S5 P2 P4 >>> >>> S5 P2 P5 >>> >>> S5 P2 P6 >>> >>> S5 P3 P4 >>> >>> S5 P3 P5 >>> >>> S5 P3 P6 >>> >>> S5 P4 P5 >>> >>> S5 P4 P6 >>> >>> S5 P5 P6 >>> >>> >>> >>> (17 rows) >>> >>> >>> >>> --- >>> >>> LINQ for EF looks "smart" isn't it? >>> >>> >>> >>> 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 >> > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > > __________ Information from ESET NOD32 Antivirus, version of virus > signature > database 4255 (20090717) __________ > > The message was checked by ESET NOD32 Antivirus. > > http://www.esetnod32.ru > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From Gustav at cactus.dk Sun Jul 19 02:25:30 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Sun, 19 Jul 2009 09:25:30 +0200 Subject: [dba-VB] LINQ for EF Example (Part III) Message-ID: Hi Shamil Of course, in lazy summer mode, as I probably will be off for a week or so from late next week. /gustav >>> shamil at smsconsulting.spb.ru 18-07-2009 14:30 >>> Hi Mike, Yes, "LINQ for ADO.NET Entity Framework" to be precise :) What about teaming-up with Gustav and myself and to port our Northwind.NET for MS SQL 2005 to "LINQ for ADO.NET Entity Framework"? Just an idea - and doing that project in "lazy summer mode" without setting strict deadlines? Gustav how about you? Anybody else? Have nice weekend. -- Shamil From shamil at smsconsulting.spb.ru Tue Jul 21 12:29:34 2009 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Tue, 21 Jul 2009 21:29:34 +0400 Subject: [dba-VB] LINQ for EF Example (Part III) In-Reply-To: References: Message-ID: <002b01ca0a28$d451f130$7cf5d390$@spb.ru> Hi Mike and Gustav, Thank you for your approval to team up to develop Northwind.NET for EF. Let's first of all implement a simple sample form (Shippers, Suppliers...) with BindingNavigator bound to object data source, and a simple sample report (Shippers) bound to object data source, and then implement all the other forms and reports of Northwind.NET using samples as templates? Do you see any other ways to proceed with this project? Thank you. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Sunday, July 19, 2009 11:26 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] LINQ for EF Example (Part III) Hi Shamil Of course, in lazy summer mode, as I probably will be off for a week or so from late next week. /gustav >>> shamil at smsconsulting.spb.ru 18-07-2009 14:30 >>> Hi Mike, Yes, "LINQ for ADO.NET Entity Framework" to be precise :) What about teaming-up with Gustav and myself and to port our Northwind.NET for MS SQL 2005 to "LINQ for ADO.NET Entity Framework"? Just an idea - and doing that project in "lazy summer mode" without setting strict deadlines? Gustav how about you? Anybody else? Have nice weekend. -- Shamil _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com __________ Information from ESET NOD32 Antivirus, version of virus signature database 4262 (20090720) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru __________ Information from ESET NOD32 Antivirus, version of virus signature database 4264 (20090721) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru From mmattys at rochester.rr.com Wed Jul 22 08:16:45 2009 From: mmattys at rochester.rr.com (Mike Mattys) Date: Wed, 22 Jul 2009 09:16:45 -0400 Subject: [dba-VB] LINQ for EF Example (Part III) References: <002b01ca0a28$d451f130$7cf5d390$@spb.ru> Message-ID: <1B6FE550BFA84B93987EF3BF91940CA1@Mattys> Hi Shamil, Still pretty busy ... I hope to start tomorrow evening. - Michael R Mattys MapPoint and Database Dev www.mattysconsulting.com - ----- Original Message ----- From: "Shamil Salakhetdinov" To: "'Discussion concerning Visual Basic and related programming issues.'" Sent: Tuesday, July 21, 2009 1:29 PM Subject: Re: [dba-VB] LINQ for EF Example (Part III) > Hi Mike and Gustav, > > Thank you for your approval to team up to develop Northwind.NET for EF. > Let's first of all implement a simple sample form (Shippers, Suppliers...) > with BindingNavigator bound to object data source, and a simple sample > report (Shippers) bound to object data source, and then implement all the > other forms and reports of Northwind.NET using samples as templates? > > Do you see any other ways to proceed with this project? > > Thank you. > > -- > Shamil > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: Sunday, July 19, 2009 11:26 AM > To: dba-vb at databaseadvisors.com > Subject: Re: [dba-VB] LINQ for EF Example (Part III) > > Hi Shamil > > Of course, in lazy summer mode, as I probably will be off for a week or so > from late next week. > > /gustav > > >>>> shamil at smsconsulting.spb.ru 18-07-2009 14:30 >>> > Hi Mike, > > Yes, "LINQ for ADO.NET Entity Framework" to be precise :) > > What about teaming-up with Gustav and myself and to port our Northwind.NET > for MS SQL 2005 to "LINQ for ADO.NET Entity Framework"? Just an idea - and > doing that project in "lazy summer mode" without setting strict deadlines? > > Gustav how about you? > Anybody else? > > Have nice weekend. > > -- > Shamil > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > > __________ Information from ESET NOD32 Antivirus, version of virus > signature > database 4262 (20090720) __________ > > The message was checked by ESET NOD32 Antivirus. > > http://www.esetnod32.ru > > > > > __________ Information from ESET NOD32 Antivirus, version of virus > signature > database 4264 (20090721) __________ > > The message was checked by ESET NOD32 Antivirus. > > http://www.esetnod32.ru > > > _______________________________________________ > 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 Jul 22 09:12:33 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 22 Jul 2009 10:12:33 -0400 Subject: [dba-VB] Simple web project In-Reply-To: <1B6FE550BFA84B93987EF3BF91940CA1@Mattys> References: <002b01ca0a28$d451f130$7cf5d390$@spb.ru> <1B6FE550BFA84B93987EF3BF91940CA1@Mattys> Message-ID: <4A671E51.1020303@colbyconsulting.com> I need some advice. My wife is on the PTA. She (I as her husband) was tasked with a simple database for tracking volunteer work for the PTA. They have to track (they get "credit" for) hours that volunteers put in. This is drop dead simple for an Access database, tblVolunteer, tblVolunteerHours, and MAYBE tblLocation. Plus a report to get the data out. The problem of course is that a database requires Access (or a runtime installation). Thus... Because it is such a simple database, I am thinking of doing it as a .Net application and make it available on the web so that any authorized person can enter the data or run the report. Questions (how do I do): 1) Web hosting? 2) Security model? 3) Other issues I am not even considering? 4) Which .Net product? Comments and advice requested. John W. Colby www.ColbyConsulting.com From ssharkins at gmail.com Wed Jul 22 10:02:06 2009 From: ssharkins at gmail.com (Susan Harkins) Date: Wed, 22 Jul 2009 11:02:06 -0400 Subject: [dba-VB] Simple web project References: <002b01ca0a28$d451f130$7cf5d390$@spb.ru><1B6FE550BFA84B93987EF3BF91940CA1@Mattys> <4A671E51.1020303@colbyconsulting.com> Message-ID: I think it's a great idea, but, you are assuming that all volunteers have access to the Web. That might currently be the case. However, that could change at any time. Will the school give volunteers access to this web-based application via a school computer? If that's the case, it doesn't even need to be web-based. You could create a simple .exe and drop it on the computer's desktop. Even VB Express can handle that. I would recommend some kind of group/user security because... I hate to say it, but I can easily see someone messing with the other volunteer's hours. That's only necessary if they're entering their own information. Web hosting shouldn't be a problem. I would imagine the school already has that set up. Susan H. > > Because it is such a simple database, I am thinking of doing it as a .Net > application and make it > available on the web so that any authorized person can enter the data or > run the report. > > Questions (how do I do): > > 1) Web hosting? > 2) Security model? > 3) Other issues I am not even considering? > 4) Which .Net product? > > Comments and advice requested. From jwcolby at colbyconsulting.com Wed Jul 22 10:17:42 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 22 Jul 2009 11:17:42 -0400 Subject: [dba-VB] SPAM-LOW: Re: Simple web project In-Reply-To: References: <002b01ca0a28$d451f130$7cf5d390$@spb.ru><1B6FE550BFA84B93987EF3BF91940CA1@Mattys> <4A671E51.1020303@colbyconsulting.com> Message-ID: <4A672D96.4000509@colbyconsulting.com> Susan, Actually the data entry is done by one person. They have a "sign in / out" sheet that they then manually figure out the hours and total. That is a lot of work. I was just thinking of the data store being available form any web enabled computer as opposed to my wife's computer or some other person's computer. Handing off the data entry becomes much easier. Seeing the numbers becomes much easier. And yes, the users do have to have web access. John W. Colby www.ColbyConsulting.com Susan Harkins wrote: > I think it's a great idea, but, you are assuming that all volunteers have > access to the Web. That might currently be the case. However, that could > change at any time. Will the school give volunteers access to this web-based > application via a school computer? If that's the case, it doesn't even need > to be web-based. You could create a simple .exe and drop it on the > computer's desktop. Even VB Express can handle that. > > I would recommend some kind of group/user security because... I hate to say > it, but I can easily see someone messing with the other volunteer's hours. > That's only necessary if they're entering their own information. > > Web hosting shouldn't be a problem. I would imagine the school already has > that set up. > > Susan H. > > >> Because it is such a simple database, I am thinking of doing it as a .Net >> application and make it >> available on the web so that any authorized person can enter the data or >> run the report. >> >> Questions (how do I do): >> >> 1) Web hosting? >> 2) Security model? >> 3) Other issues I am not even considering? >> 4) Which .Net product? >> >> Comments and advice requested. > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From max.wanadoo at gmail.com Wed Jul 22 10:20:16 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Wed, 22 Jul 2009 16:20:16 +0100 Subject: [dba-VB] Simple web project In-Reply-To: <4A671E51.1020303@colbyconsulting.com> References: <002b01ca0a28$d451f130$7cf5d390$@spb.ru> <1B6FE550BFA84B93987EF3BF91940CA1@Mattys> <4A671E51.1020303@colbyconsulting.com> Message-ID: <4a672e33.0506d00a.5f9a.ffff93d1@mx.google.com> Ha! Watch this grow exponentially. Can we just add this bit, and this bit, and, oh bye the way would it be possible..and then reports... Hahaha good luck with your "drop dead simple" DB. Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: 22 July 2009 15:13 To: Discussion concerning Visual Basic and related programming issues.; Access Developers discussion and problem solving Subject: [dba-VB] Simple web project I need some advice. My wife is on the PTA. She (I as her husband) was tasked with a simple database for tracking volunteer work for the PTA. They have to track (they get "credit" for) hours that volunteers put in. This is drop dead simple for an Access database, tblVolunteer, tblVolunteerHours, and MAYBE tblLocation. Plus a report to get the data out. The problem of course is that a database requires Access (or a runtime installation). Thus... Because it is such a simple database, I am thinking of doing it as a .Net application and make it available on the web so that any authorized person can enter the data or run the report. Questions (how do I do): 1) Web hosting? 2) Security model? 3) Other issues I am not even considering? 4) Which .Net product? Comments and advice requested. 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 max.wanadoo at gmail.com Wed Jul 22 10:21:17 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Wed, 22 Jul 2009 16:21:17 +0100 Subject: [dba-VB] LINQ for EF Example (Part III) In-Reply-To: <1B6FE550BFA84B93987EF3BF91940CA1@Mattys> References: <002b01ca0a28$d451f130$7cf5d390$@spb.ru> <1B6FE550BFA84B93987EF3BF91940CA1@Mattys> Message-ID: <4a672e70.0702d00a.72d7.ffffab6f@mx.google.com> ...he's doing proximity calculations... Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Mike Mattys Sent: 22 July 2009 14:17 To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] LINQ for EF Example (Part III) Hi Shamil, Still pretty busy ... I hope to start tomorrow evening. - Michael R Mattys MapPoint and Database Dev www.mattysconsulting.com - ----- Original Message ----- From: "Shamil Salakhetdinov" To: "'Discussion concerning Visual Basic and related programming issues.'" Sent: Tuesday, July 21, 2009 1:29 PM Subject: Re: [dba-VB] LINQ for EF Example (Part III) > Hi Mike and Gustav, > > Thank you for your approval to team up to develop Northwind.NET for EF. > Let's first of all implement a simple sample form (Shippers, Suppliers...) > with BindingNavigator bound to object data source, and a simple sample > report (Shippers) bound to object data source, and then implement all the > other forms and reports of Northwind.NET using samples as templates? > > Do you see any other ways to proceed with this project? > > Thank you. > > -- > Shamil > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: Sunday, July 19, 2009 11:26 AM > To: dba-vb at databaseadvisors.com > Subject: Re: [dba-VB] LINQ for EF Example (Part III) > > Hi Shamil > > Of course, in lazy summer mode, as I probably will be off for a week or so > from late next week. > > /gustav > > >>>> shamil at smsconsulting.spb.ru 18-07-2009 14:30 >>> > Hi Mike, > > Yes, "LINQ for ADO.NET Entity Framework" to be precise :) > > What about teaming-up with Gustav and myself and to port our Northwind.NET > for MS SQL 2005 to "LINQ for ADO.NET Entity Framework"? Just an idea - and > doing that project in "lazy summer mode" without setting strict deadlines? > > Gustav how about you? > Anybody else? > > Have nice weekend. > > -- > Shamil > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > > __________ Information from ESET NOD32 Antivirus, version of virus > signature > database 4262 (20090720) __________ > > The message was checked by ESET NOD32 Antivirus. > > http://www.esetnod32.ru > > > > > __________ Information from ESET NOD32 Antivirus, version of virus > signature > database 4264 (20090721) __________ > > The message was checked by ESET NOD32 Antivirus. > > http://www.esetnod32.ru > > > _______________________________________________ > 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 DWUTKA at Marlow.com Wed Jul 22 10:30:38 2009 From: DWUTKA at Marlow.com (Drew Wutka) Date: Wed, 22 Jul 2009 10:30:38 -0500 Subject: [dba-VB] Simple web project In-Reply-To: <4A671E51.1020303@colbyconsulting.com> References: <002b01ca0a28$d451f130$7cf5d390$@spb.ru><1B6FE550BFA84B93987EF3BF91940CA1@Mattys> <4A671E51.1020303@colbyconsulting.com> Message-ID: If this is something that you really want to keep SIMPLE, then just use plain old ASP, on whatever site you have access to. Make the data entry hours 'password protected' (either from the web side, or in the asp itself). You have your own site, don't you? Just put it there. Again, that's if you are going to keep this SIMPLE! Drew -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, July 22, 2009 9:13 AM To: Discussion concerning Visual Basic and related programming issues.; Access Developers discussion and problem solving Subject: [dba-VB] Simple web project I need some advice. My wife is on the PTA. She (I as her husband) was tasked with a simple database for tracking volunteer work for the PTA. They have to track (they get "credit" for) hours that volunteers put in. This is drop dead simple for an Access database, tblVolunteer, tblVolunteerHours, and MAYBE tblLocation. Plus a report to get the data out. The problem of course is that a database requires Access (or a runtime installation). Thus... Because it is such a simple database, I am thinking of doing it as a .Net application and make it available on the web so that any authorized person can enter the data or run the report. Questions (how do I do): 1) Web hosting? 2) Security model? 3) Other issues I am not even considering? 4) Which .Net product? Comments and advice requested. 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 jwcolby at colbyconsulting.com Wed Jul 22 10:30:50 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 22 Jul 2009 11:30:50 -0400 Subject: [dba-VB] Simple web project In-Reply-To: <4a672e33.0506d00a.5f9a.ffff93d1@mx.google.com> References: <002b01ca0a28$d451f130$7cf5d390$@spb.ru> <1B6FE550BFA84B93987EF3BF91940CA1@Mattys> <4A671E51.1020303@colbyconsulting.com> <4a672e33.0506d00a.5f9a.ffff93d1@mx.google.com> Message-ID: <4A6730AA.6000807@colbyconsulting.com> ROTFL. Yea, I know that! ;) OTOH I haven't persuaded a client to pay me to learn this stuff either. A volunteer project allows me to do it at my own pace, add stuff if I want etc. John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > Ha! Watch this grow exponentially. Can we just add this bit, and this bit, > and, oh bye the way would it be possible..and then reports... > > Hahaha good luck with your "drop dead simple" DB. > > Max > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: 22 July 2009 15:13 > To: Discussion concerning Visual Basic and related programming issues.; > Access Developers discussion and problem solving > Subject: [dba-VB] Simple web project > > I need some advice. My wife is on the PTA. She (I as her husband) was > tasked with a simple > database for tracking volunteer work for the PTA. They have to track (they > get "credit" for) hours > that volunteers put in. > > This is drop dead simple for an Access database, tblVolunteer, > tblVolunteerHours, and MAYBE > tblLocation. Plus a report to get the data out. The problem of course is > that a database requires > Access (or a runtime installation). Thus... > > Because it is such a simple database, I am thinking of doing it as a .Net > application and make it > available on the web so that any authorized person can enter the data or run > the report. > > Questions (how do I do): > > 1) Web hosting? > 2) Security model? > 3) Other issues I am not even considering? > 4) Which .Net product? > > Comments and advice requested. > > 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 jwcolby at colbyconsulting.com Wed Jul 22 11:33:36 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 22 Jul 2009 12:33:36 -0400 Subject: [dba-VB] Simple web project In-Reply-To: References: <002b01ca0a28$d451f130$7cf5d390$@spb.ru><1B6FE550BFA84B93987EF3BF91940CA1@Mattys> <4A671E51.1020303@colbyconsulting.com> Message-ID: <4A673F60.50005@colbyconsulting.com> I said simple, not edit it in notepad. ;) John W. Colby www.ColbyConsulting.com Drew Wutka wrote: > If this is something that you really want to keep SIMPLE, then just use > plain old ASP, on whatever site you have access to. Make the data entry > hours 'password protected' (either from the web side, or in the asp > itself). You have your own site, don't you? Just put it there. > > Again, that's if you are going to keep this SIMPLE! > > Drew > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Wednesday, July 22, 2009 9:13 AM > To: Discussion concerning Visual Basic and related programming issues.; > Access Developers discussion and problem solving > Subject: [dba-VB] Simple web project > > I need some advice. My wife is on the PTA. She (I as her husband) was > tasked with a simple > database for tracking volunteer work for the PTA. They have to track > (they get "credit" for) hours > that volunteers put in. > > This is drop dead simple for an Access database, tblVolunteer, > tblVolunteerHours, and MAYBE > tblLocation. Plus a report to get the data out. The problem of course > is that a database requires > Access (or a runtime installation). Thus... > > Because it is such a simple database, I am thinking of doing it as a > .Net application and make it > available on the web so that any authorized person can enter the data or > run the report. > > Questions (how do I do): > > 1) Web hosting? > 2) Security model? > 3) Other issues I am not even considering? > 4) Which .Net product? > > Comments and advice requested. > > 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 DWUTKA at Marlow.com Wed Jul 22 11:48:28 2009 From: DWUTKA at Marlow.com (Drew Wutka) Date: Wed, 22 Jul 2009 11:48:28 -0500 Subject: [dba-VB] Simple web project In-Reply-To: <4A673F60.50005@colbyconsulting.com> References: <002b01ca0a28$d451f130$7cf5d390$@spb.ru><1B6FE550BFA84B93987EF3BF91940CA1@Mattys> <4A671E51.1020303@colbyconsulting.com> <4A673F60.50005@colbyconsulting.com> Message-ID: LOL, I use Microsoft Script Editor (I believe it comes with Office), to write ASP. It acts like an VBE of sorts for ASP (intellisense for both asp and html). Drew -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, July 22, 2009 11:34 AM To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Simple web project I said simple, not edit it in notepad. ;) John W. Colby www.ColbyConsulting.com Drew Wutka wrote: > If this is something that you really want to keep SIMPLE, then just use > plain old ASP, on whatever site you have access to. Make the data entry > hours 'password protected' (either from the web side, or in the asp > itself). You have your own site, don't you? Just put it there. > > Again, that's if you are going to keep this SIMPLE! > > Drew > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Wednesday, July 22, 2009 9:13 AM > To: Discussion concerning Visual Basic and related programming issues.; > Access Developers discussion and problem solving > Subject: [dba-VB] Simple web project > > I need some advice. My wife is on the PTA. She (I as her husband) was > tasked with a simple > database for tracking volunteer work for the PTA. They have to track > (they get "credit" for) hours > that volunteers put in. > > This is drop dead simple for an Access database, tblVolunteer, > tblVolunteerHours, and MAYBE > tblLocation. Plus a report to get the data out. The problem of course > is that a database requires > Access (or a runtime installation). Thus... > > Because it is such a simple database, I am thinking of doing it as a > .Net application and make it > available on the web so that any authorized person can enter the data or > run the report. > > Questions (how do I do): > > 1) Web hosting? > 2) Security model? > 3) Other issues I am not even considering? > 4) Which .Net product? > > Comments and advice requested. > > 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 > > _______________________________________________ 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 shamil at smsconsulting.spb.ru Wed Jul 22 12:59:50 2009 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Wed, 22 Jul 2009 21:59:50 +0400 Subject: [dba-VB] LINQ for EF Example (Part III) In-Reply-To: <1B6FE550BFA84B93987EF3BF91940CA1@Mattys> References: <002b01ca0a28$d451f130$7cf5d390$@spb.ru> <1B6FE550BFA84B93987EF3BF91940CA1@Mattys> Message-ID: <006a01ca0af6$3709eb70$a51dc250$@spb.ru> Hi Mike, No, problem. This is "lazy summer mode" project. It doesn't require commitments for deadlines currently. I'm pretty busy here too. And as Gustav I plan to have some "holiday breaks". It may happen I will start working on subject project next week only. I suppose that as soon as we get a sample form and report ready we will proceed much quicker - maybe you know about/have seen any ready to (re-)use in this project samples? I failed to find them on Internet, have a missed them? Anybody here please advise on samples of WinForms and MS ReportViewer reports bound to ObjectDataSources based on/built from ADO.NET Entity Framework model objects. WinForm sample should use BindingNavigator. Thank you. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Mike Mattys Sent: Wednesday, July 22, 2009 5:17 PM To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] LINQ for EF Example (Part III) Hi Shamil, Still pretty busy ... I hope to start tomorrow evening. - Michael R Mattys MapPoint and Database Dev www.mattysconsulting.com - ----- Original Message ----- From: "Shamil Salakhetdinov" To: "'Discussion concerning Visual Basic and related programming issues.'" Sent: Tuesday, July 21, 2009 1:29 PM Subject: Re: [dba-VB] LINQ for EF Example (Part III) > Hi Mike and Gustav, > > Thank you for your approval to team up to develop Northwind.NET for EF. > Let's first of all implement a simple sample form (Shippers, Suppliers...) > with BindingNavigator bound to object data source, and a simple sample > report (Shippers) bound to object data source, and then implement all the > other forms and reports of Northwind.NET using samples as templates? > > Do you see any other ways to proceed with this project? > > Thank you. > > -- > Shamil > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: Sunday, July 19, 2009 11:26 AM > To: dba-vb at databaseadvisors.com > Subject: Re: [dba-VB] LINQ for EF Example (Part III) > > Hi Shamil > > Of course, in lazy summer mode, as I probably will be off for a week or so > from late next week. > > /gustav > > >>>> shamil at smsconsulting.spb.ru 18-07-2009 14:30 >>> > Hi Mike, > > Yes, "LINQ for ADO.NET Entity Framework" to be precise :) > > What about teaming-up with Gustav and myself and to port our Northwind.NET > for MS SQL 2005 to "LINQ for ADO.NET Entity Framework"? Just an idea - and > doing that project in "lazy summer mode" without setting strict deadlines? > > Gustav how about you? > Anybody else? > > Have nice weekend. > > -- > Shamil > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > > __________ Information from ESET NOD32 Antivirus, version of virus > signature > database 4262 (20090720) __________ > > The message was checked by ESET NOD32 Antivirus. > > http://www.esetnod32.ru > > > > > __________ Information from ESET NOD32 Antivirus, version of virus > signature > database 4264 (20090721) __________ > > The message was checked by ESET NOD32 Antivirus. > > http://www.esetnod32.ru > > > _______________________________________________ > 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 __________ Information from ESET NOD32 Antivirus, version of virus signature database 4267 (20090722) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru __________ Information from ESET NOD32 Antivirus, version of virus signature database 4267 (20090722) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru From shamil at smsconsulting.spb.ru Wed Jul 22 12:59:50 2009 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Wed, 22 Jul 2009 21:59:50 +0400 Subject: [dba-VB] Simple web project In-Reply-To: <4A671E51.1020303@colbyconsulting.com> References: <002b01ca0a28$d451f130$7cf5d390$@spb.ru> <1B6FE550BFA84B93987EF3BF91940CA1@Mattys> <4A671E51.1020303@colbyconsulting.com> Message-ID: <006e01ca0af6$3acb1220$b0613660$@spb.ru> Hi John, I'd recommend you to use ASP.Net 2.0 or 3.5 with MS SQL Server 2005/2008 (Express) as backend (please see below why MS SQL Server is IMO below). <<< 1) Web hosting? >>> I do use PARKING.RU - http://hosting.parking.ru/text.aspx?s=W2008 It works well for me as well as for my customers, one of them from your country "wild west" (WA), used this hosting as a "test-bed" to run her ASP.NET web service in 24x7 mode for several months, and that was very heavy duty web service with many requests coming to it every second. I'm not sure you'll pick to use the above hosting provider as it's located in Moscow, Russia. You can try then http://www.discountasp.net/ <<< 2) Security model? >>> Built-in ASP.NET 2.0/3.5 Membership system - runs only when MS SQL Server 2005/2008 (Express) is used for backend. Supports Members and Roles (and some other useful stuff), provides built-in login/logout (and related) ASP.NET controls. <<< 3) Other issues I am not even considering? >>> Improvement Ravine :) - at least you didn't mention it here - you'll have to have some patience and courage to get through it as on first steps you'll feel yourself extremely unproductive comparing with what you can do using MS Access: Source: http://martinfowler.com/bliki/ImprovementRavine.html <<< 4) Which .Net product? >>> ASP.NET 3.5 SP1 (FYI: is supports both ASP.NET 2.0 and 3.5) --- As for some simple samples of ASP.NET WebForms development for MS Access (AccessDataSource) you can find them in our Northwind.Net solution here: Northwind.NET.v.1.2.Sources.zip http://northwind.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=26600#D ownloadId=66932 in Northwind.ASP.NET.MSAccess.Reporting web project. I have made this web project entry web form available online here: http://shamils-4.hosting.parking.ru/nw/default1.aspx In the bottom of the above web page you'll find: +++++++ Northwind Forms (Sorry, just rough mock-ups mainly generated by VS2008 with a few code lines in code-behind to coordinate parent-child data retrieval using AccessDataSources) Shippers Categories Customers Employees Suppliers Products Orders -------- Try them this week. (I will remove all sample webforms allowing to edit data, and I will restore original MS Access db next week). If you or anybody else here wanted to collect some data access stats while playing with this db - I can add those stats collection code - please propose what stats would be interesting to collect (a few). Thank you. -- Shamil P.S. Have a look also here - the following sample web site is done (mainly generated by VS2008 from some of its templates) in about ten minutes: http://shamils-4.hosting.parking.ru/NorthwindNetDynamicDataWebSite/Default.a spx This is ADO.NET Entity Framework in action - it requires MS SQL Server 2005/2008 (Express) as backend, and .NET Framework 3.5 SP1 -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, July 22, 2009 6:13 PM To: Discussion concerning Visual Basic and related programming issues.; Access Developers discussion and problem solving Subject: [dba-VB] Simple web project I need some advice. My wife is on the PTA. She (I as her husband) was tasked with a simple database for tracking volunteer work for the PTA. They have to track (they get "credit" for) hours that volunteers put in. This is drop dead simple for an Access database, tblVolunteer, tblVolunteerHours, and MAYBE tblLocation. Plus a report to get the data out. The problem of course is that a database requires Access (or a runtime installation). Thus... Because it is such a simple database, I am thinking of doing it as a .Net application and make it available on the web so that any authorized person can enter the data or run the report. Questions (how do I do): 1) Web hosting? 2) Security model? 3) Other issues I am not even considering? 4) Which .Net product? Comments and advice requested. 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 __________ Information from ESET NOD32 Antivirus, version of virus signature database 4267 (20090722) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru __________ Information from ESET NOD32 Antivirus, version of virus signature database 4267 (20090722) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru From Gustav at cactus.dk Thu Jul 23 07:36:05 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 23 Jul 2009 14:36:05 +0200 Subject: [dba-VB] LINQ for EF Example (Part III) Message-ID: Hi Shamil and team That's fine with me. I'm on my way with Rita (wife) to the nature of Sweden and Norway for a relaxing break and will be back Monday 2009-08-03. Will try to view the inbox now and then but won't promise anything ... /gustav >>> shamil at smsconsulting.spb.ru 21-07-2009 19:29 >>> Hi Mike and Gustav, Thank you for your approval to team up to develop Northwind.NET for EF. Let's first of all implement a simple sample form (Shippers, Suppliers...) with BindingNavigator bound to object data source, and a simple sample report (Shippers) bound to object data source, and then implement all the other forms and reports of Northwind.NET using samples as templates? Do you see any other ways to proceed with this project? Thank you. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Sunday, July 19, 2009 11:26 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] LINQ for EF Example (Part III) Hi Shamil Of course, in lazy summer mode, as I probably will be off for a week or so from late next week. /gustav >>> shamil at smsconsulting.spb.ru 18-07-2009 14:30 >>> Hi Mike, Yes, "LINQ for ADO.NET Entity Framework" to be precise :) What about teaming-up with Gustav and myself and to port our Northwind.NET for MS SQL 2005 to "LINQ for ADO.NET Entity Framework"? Just an idea - and doing that project in "lazy summer mode" without setting strict deadlines? Gustav how about you? Anybody else? Have nice weekend. -- Shamil From shamil at smsconsulting.spb.ru Thu Jul 23 12:17:46 2009 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Thu, 23 Jul 2009 21:17:46 +0400 Subject: [dba-VB] ADO.NET Entity Framework with Winforms and MS eportViewer report sample project... Message-ID: <00dd01ca0bb9$806f8d10$814ea730$@spb.ru> Hi All, FYI: I have just released on http://northwind.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=26600 - SPJ_SQL2005.zip - C.J.Date sample database (prepared here) - previous version was broken; - SPJWinFormsForEF_VS2008.zip - VS2008 sample project to demonstrate WinForms and MS ReportViewer reports bound to ADO.NET Entity Framework object datasources; - SPJWinFormsForEF_Executables.zip - just executables and sample database for the above sample project. Please test the samples if you're interested in the subject technology. Please inform me here in the case of any issues to fix. Please note that the above sample is just a preparation of conversion of our Northwind.NET WinForms project to use ADO.NET Entity Framework. Thank you. -- Shamil From shamil at smsconsulting.spb.ru Thu Jul 23 12:17:46 2009 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Thu, 23 Jul 2009 21:17:46 +0400 Subject: [dba-VB] LINQ for EF Example (Part III) In-Reply-To: References: Message-ID: <00e201ca0bb9$81b21f30$85165d90$@spb.ru> Hi Gustav, Good luck with your trip to Sweden and Norway (BTW, I plan to have a short trip to Finland (Imatra, Laapenranta and Helsinki) on 26-28 this months.) FYI: I have just got released a small VS2008 project: - SPJWinFormsForEF_VS2008.zip - VS2008 sample project to demonstrate WinForms and MS ReportViewer reports bound to ADO.NET Entity Framework object datasources; - SPJWinFormsForEF_Executables.zip - just executables and sample database for the above sample project. which can be used as sample to work on converting Northwind.NET to use ADO.NET Entity Framework object data sources. Thank you. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, July 23, 2009 4:36 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] LINQ for EF Example (Part III) Hi Shamil and team That's fine with me. I'm on my way with Rita (wife) to the nature of Sweden and Norway for a relaxing break and will be back Monday 2009-08-03. Will try to view the inbox now and then but won't promise anything ... /gustav >>> shamil at smsconsulting.spb.ru 21-07-2009 19:29 >>> Hi Mike and Gustav, Thank you for your approval to team up to develop Northwind.NET for EF. Let's first of all implement a simple sample form (Shippers, Suppliers...) with BindingNavigator bound to object data source, and a simple sample report (Shippers) bound to object data source, and then implement all the other forms and reports of Northwind.NET using samples as templates? Do you see any other ways to proceed with this project? Thank you. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Sunday, July 19, 2009 11:26 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] LINQ for EF Example (Part III) Hi Shamil Of course, in lazy summer mode, as I probably will be off for a week or so from late next week. /gustav >>> shamil at smsconsulting.spb.ru 18-07-2009 14:30 >>> Hi Mike, Yes, "LINQ for ADO.NET Entity Framework" to be precise :) What about teaming-up with Gustav and myself and to port our Northwind.NET for MS SQL 2005 to "LINQ for ADO.NET Entity Framework"? Just an idea - and doing that project in "lazy summer mode" without setting strict deadlines? Gustav how about you? Anybody else? Have nice weekend. -- Shamil _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com __________ Information from ESET NOD32 Antivirus, version of virus signature database 4270 (20090723) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru __________ Information from ESET NOD32 Antivirus, version of virus signature database 4270 (20090723) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru From mmattys at rochester.rr.com Thu Jul 23 13:33:19 2009 From: mmattys at rochester.rr.com (Mike Mattys) Date: Thu, 23 Jul 2009 14:33:19 -0400 Subject: [dba-VB] ADO.NET Entity Framework with Winforms and MS eportViewerreport sample project... References: <00dd01ca0bb9$806f8d10$814ea730$@spb.ru> Message-ID: <943FA89E7E1E4318807137B9AB209E95@Mattys> Thanks, Shamil - Michael R Mattys MapPoint and Database Dev www.mattysconsulting.com - ----- Original Message ----- From: "Shamil Salakhetdinov" To: "'Discussion concerning Visual Basic and related programming issues.'" Sent: Thursday, July 23, 2009 1:17 PM Subject: [dba-VB] ADO.NET Entity Framework with Winforms and MS eportViewerreport sample project... > Hi All, > > > > FYI: I have just released on > http://northwind.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=26600 > > > > - SPJ_SQL2005.zip - C.J.Date sample database (prepared here) - previous > version was broken; > > - SPJWinFormsForEF_VS2008.zip - VS2008 sample project to demonstrate > WinForms and MS ReportViewer reports bound to ADO.NET Entity Framework > object datasources; > > - SPJWinFormsForEF_Executables.zip - just executables and sample database > for the above sample project. > > > > Please test the samples if you're interested in the subject technology. > > Please inform me here in the case of any issues to fix. > > Please note that the above sample is just a preparation of conversion of > our > Northwind.NET WinForms project to use ADO.NET Entity Framework. > > > > Thank you. > > > > -- > > Shamil > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From mmattys at rochester.rr.com Thu Jul 23 13:34:08 2009 From: mmattys at rochester.rr.com (Mike Mattys) Date: Thu, 23 Jul 2009 14:34:08 -0400 Subject: [dba-VB] LINQ for EF Example (Part III) References: Message-ID: <556D4755E8F944039B38F1A631117CF1@Mattys> I hope you enjoy your vacation, Gustav. - Michael R Mattys MapPoint and Database Dev www.mattysconsulting.com - ----- Original Message ----- From: "Gustav Brock" To: Sent: Thursday, July 23, 2009 8:36 AM Subject: Re: [dba-VB] LINQ for EF Example (Part III) > Hi Shamil and team > > That's fine with me. > > I'm on my way with Rita (wife) to the nature of Sweden and Norway for a > relaxing break and will be back Monday 2009-08-03. Will try to view the > inbox now and then but won't promise anything ... > > /gustav From fhtapia at gmail.com Wed Jul 29 23:38:45 2009 From: fhtapia at gmail.com (Francisco Tapia) Date: Wed, 29 Jul 2009 21:38:45 -0700 Subject: [dba-VB] QueryStringParameter error Message-ID: Hi, I've not been active on this list at all, but I do have a quick question someone here may have already ran into. I am working on an ASP.NET (visual studio 2008) and I created a few pages that all work fairly similarly, where there is a GridView on the main Entity page, and Add pages along with Edit pages created with Details View controls. In the GridView page, I add an edit button and the link points the ~/language/EditLanguage.aspx?intLanguage={0}. On the receiving page I edited the SELECT command with the proper WHERE clause as WHERE intLanguage= @intLanguage. The QueryStringParameter is as follows: so this is the same for my other pages such as my Release page and my Category page and both work fine, but the language page is different... the PKID is the intLanguage field, but it's not an autoincremented number (since this project is still in it's infancy, I've thought about adding a true surrogate PKID and see if that is the problem... note, If i edit the select command w/o the where, the page loads fine (well w/o the parameter being passed so my DetailsView control only displays the first record in the recordset, I'm new to ASP.NET and don't really know how to troubleshoot this.... any ideas? -Francisco http://sqlthis.blogspot.com | Tsql and More... From ebarro at verizon.net Fri Jul 31 23:48:26 2009 From: ebarro at verizon.net (Eric Barro) Date: Fri, 31 Jul 2009 21:48:26 -0700 Subject: [dba-VB] QueryStringParameter error In-Reply-To: References: Message-ID: <07C21F79042A4BDD98A27EF049A0B312@advancedinput.com> Francico, I haven't really worked with the syntax you show below but I've seen a buddy of mine use it as well. Try and put Response.Write(intLanguage) in your code to debug and see if it is passing the value. Eric -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Francisco Tapia Sent: Wednesday, July 29, 2009 9:39 PM To: Discussion concerning Visual Basic and related programming issues. Subject: [dba-VB] QueryStringParameter error Hi, I've not been active on this list at all, but I do have a quick question someone here may have already ran into. I am working on an ASP.NET (visual studio 2008) and I created a few pages that all work fairly similarly, where there is a GridView on the main Entity page, and Add pages along with Edit pages created with Details View controls. In the GridView page, I add an edit button and the link points the ~/language/EditLanguage.aspx?intLanguage={0}. On the receiving page I edited the SELECT command with the proper WHERE clause as WHERE intLanguage= @intLanguage. The QueryStringParameter is as follows: so this is the same for my other pages such as my Release page and my Category page and both work fine, but the language page is different... the PKID is the intLanguage field, but it's not an autoincremented number (since this project is still in it's infancy, I've thought about adding a true surrogate PKID and see if that is the problem... note, If i edit the select command w/o the where, the page loads fine (well w/o the parameter being passed so my DetailsView control only displays the first record in the recordset, I'm new to ASP.NET and don't really know how to troubleshoot this.... any ideas? -Francisco http://sqlthis.blogspot.com | Tsql and More... _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From DWUTKA at Marlow.com Wed Jul 1 11:54:36 2009 From: DWUTKA at Marlow.com (Drew Wutka) Date: Wed, 1 Jul 2009 11:54:36 -0500 Subject: [dba-VB] Messaging For JWC WAS: Syslogs In-Reply-To: <4A4A65A5.8080101@colbyconsulting.com> References: <4A49027A.5000604@colbyconsulting.com> <4A4A4F27.6010606@colbyconsulting.com> <4a4a60ca.0a1ad00a.63e4.2ae9@mx.google.com> <4A4A65A5.8080101@colbyconsulting.com> Message-ID: Well UDP is what you want then. However, I don't have anything setup to do that with strictly API calls. It's just too easy to do it with the Winsock Control. Drew -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, June 30, 2009 2:21 PM To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Messaging For JWC WAS: Syslogs Drew, >If you want to play around with it, what you need to do is use UDP to 'broadcast' a hello and goodbye message, to alert everything on the subnet. (And you have to filter that message on the broadcasting machine, cause it'll pick up it's own message). In that hello/goodbye message, you can include all the info you want (username, computername, IP,etc). Then it's just a matter of using TCP for direct comms between two machines. In fact I don't want direct comms between machines, I want precisely "broadcast" messages. "Hey everybody, I added a new record in tblX". Any machine receiving that message promptly refreshes the cache for that table. "Hey everybody, we are shutting down the BE in 10 minutes, get out". Any machine receiving the message pops up a message to the user telling them to finish up and get out of the database. That kind of message. I really don't care about sending to a specific machine, I care about sending to ALL machines. John W. Colby www.ColbyConsulting.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 jwcolby at colbyconsulting.com Wed Jul 1 12:18:11 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 01 Jul 2009 13:18:11 -0400 Subject: [dba-VB] Messaging For JWC WAS: Syslogs In-Reply-To: References: <4A49027A.5000604@colbyconsulting.com> <4A4A4F27.6010606@colbyconsulting.com> <4a4a60ca.0a1ad00a.63e4.2ae9@mx.google.com> <4A4A65A5.8080101@colbyconsulting.com> Message-ID: <4A4B9A53.9090904@colbyconsulting.com> Understood however that won't work for me. Thanks though. John W. Colby www.ColbyConsulting.com Drew Wutka wrote: > Well UDP is what you want then. However, I don't have anything setup to > do that with strictly API calls. It's just too easy to do it with the > Winsock Control. > > Drew From ssharkins at gmail.com Wed Jul 1 15:23:22 2009 From: ssharkins at gmail.com (Susan Harkins) Date: Wed, 1 Jul 2009 16:23:22 -0400 Subject: [dba-VB] .NET mistakes to avoid Message-ID: <8AB61109C40B414B9C4F37B64431D47F@SusanOne> I'll be writing an article on avoiding mistakes in .NET -- I'm looking for the basic stuff. If I use yours, you'll get full credit, and you can include your contact information if you like (don't have to). The readers seem to really enjoy hearing from other developers and users, not just me. Susan H. From max.wanadoo at gmail.com Wed Jul 1 15:46:02 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Wed, 1 Jul 2009 21:46:02 +0100 Subject: [dba-VB] .NET mistakes to avoid In-Reply-To: <8AB61109C40B414B9C4F37B64431D47F@SusanOne> References: <8AB61109C40B414B9C4F37B64431D47F@SusanOne> Message-ID: <4a4bcb0d.1c07d00a.7881.6f9d@mx.google.com> Umm...didnt know you were a developer, Susan. Learn summat every day... Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: 01 July 2009 21:23 To: VBLIst Subject: [dba-VB] .NET mistakes to avoid I'll be writing an article on avoiding mistakes in .NET -- I'm looking for the basic stuff. If I use yours, you'll get full credit, and you can include your contact information if you like (don't have to). The readers seem to really enjoy hearing from other developers and users, not just me. Susan H. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From ssharkins at gmail.com Wed Jul 1 15:52:52 2009 From: ssharkins at gmail.com (Susan Harkins) Date: Wed, 1 Jul 2009 16:52:52 -0400 Subject: [dba-VB] .NET mistakes to avoid References: <8AB61109C40B414B9C4F37B64431D47F@SusanOne> <4a4bcb0d.1c07d00a.7881.6f9d@mx.google.com> Message-ID: <467285A806ED4FE888137DC907B2FBAE@SusanOne> Only sometimes -- I write more than anything else now-a-days. It use to be about 50/50 -- but Access and VBA projects are rather scarce anymore. Charlotte is teaching me .NET -- you've probably seen the links to our first few articles. Whether I'll actually use .NET in a development project is up in the air -- certainly not ready to do so right now! ;) Susan H. > Umm...didnt know you were a developer, Susan. > > Learn summat every day... > > Max > > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Susan Harkins > Sent: 01 July 2009 21:23 > To: VBLIst > Subject: [dba-VB] .NET mistakes to avoid > > I'll be writing an article on avoiding mistakes in .NET -- I'm looking for > the basic stuff. If I use yours, you'll get full credit, and you can > include > > your contact information if you like (don't have to). > > The readers seem to really enjoy hearing from other developers and users, > not just me. > > Susan H. > > _______________________________________________ > 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 max.wanadoo at gmail.com Wed Jul 1 16:20:38 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Wed, 1 Jul 2009 22:20:38 +0100 Subject: [dba-VB] .NET mistakes to avoid In-Reply-To: <467285A806ED4FE888137DC907B2FBAE@SusanOne> References: <8AB61109C40B414B9C4F37B64431D47F@SusanOne> <4a4bcb0d.1c07d00a.7881.6f9d@mx.google.com> <467285A806ED4FE888137DC907B2FBAE@SusanOne> Message-ID: <4a4bd32a.0508d00a.40d4.ffffb8f3@mx.google.com> Yes, that makes sense. I always thought of you as a Technology Journalist...more than a user but not into developer stuff. Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: 01 July 2009 21:53 To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] .NET mistakes to avoid Only sometimes -- I write more than anything else now-a-days. It use to be about 50/50 -- but Access and VBA projects are rather scarce anymore. Charlotte is teaching me .NET -- you've probably seen the links to our first few articles. Whether I'll actually use .NET in a development project is up in the air -- certainly not ready to do so right now! ;) Susan H. > Umm...didnt know you were a developer, Susan. > > Learn summat every day... > > Max > > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Susan Harkins > Sent: 01 July 2009 21:23 > To: VBLIst > Subject: [dba-VB] .NET mistakes to avoid > > I'll be writing an article on avoiding mistakes in .NET -- I'm looking for > the basic stuff. If I use yours, you'll get full credit, and you can > include > > your contact information if you like (don't have to). > > The readers seem to really enjoy hearing from other developers and users, > not just me. > > Susan H. > > _______________________________________________ > 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 > _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From ssharkins at gmail.com Wed Jul 1 16:34:50 2009 From: ssharkins at gmail.com (Susan Harkins) Date: Wed, 1 Jul 2009 17:34:50 -0400 Subject: [dba-VB] .NET mistakes to avoid References: <8AB61109C40B414B9C4F37B64431D47F@SusanOne> <4a4bcb0d.1c07d00a.7881.6f9d@mx.google.com><467285A806ED4FE888137DC907B2FBAE@SusanOne> <4a4bd32a.0508d00a.40d4.ffffb8f3@mx.google.com> Message-ID: > Yes, that makes sense. I always thought of you as a Technology > Journalist...more than a user but not into developer stuff. =======That's a fair enough assessment, although I have developed lots of small projects. Susan H. From max.wanadoo at gmail.com Wed Jul 1 16:39:48 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Wed, 1 Jul 2009 22:39:48 +0100 Subject: [dba-VB] .NET mistakes to avoid In-Reply-To: References: <8AB61109C40B414B9C4F37B64431D47F@SusanOne> <4a4bcb0d.1c07d00a.7881.6f9d@mx.google.com><467285A806ED4FE888137DC907B2FBAE@SusanOne> <4a4bd32a.0508d00a.40d4.ffffb8f3@mx.google.com> Message-ID: <4a4bd7a8.1c05d00a.18f2.1c68@mx.google.com> Me too...but never written stuff...hate writing, get distracted with "smart" comments...one day I will get my bot bot smacked...hopefully Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: 01 July 2009 22:35 To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] .NET mistakes to avoid > Yes, that makes sense. I always thought of you as a Technology > Journalist...more than a user but not into developer stuff. =======That's a fair enough assessment, although I have developed lots of small projects. Susan H. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From accessd at shaw.ca Tue Jul 7 21:20:03 2009 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 7 Jul 2009 19:20:03 -0700 Subject: [dba-VB] Syslogs In-Reply-To: References: Message-ID: Hi guys: Sorry for being a little late to the thread but you could just use some of the basic primitive on all Windows machines. There is the AT command for automatically spawning a process and then NET VIEW for checking whether there is an established network connections... etc. Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, June 29, 2009 10:08 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Syslogs Hi Max The paragraph on page 1, "The WinSock Control", is for you. You need both the license and the "compatibility". Thank you to MS and IE and the "Compatibility" flag. /gustav >>> max.wanadoo at gmail.com 29-06-2009 18:51 >>> Run it in A2007K and opened the Demo form to get this error: .Protocol = sckUDPProtocol Run time error 438 Object doesn't support this property or method. Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 29 June 2009 17:37 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Syslogs Hi Susan, Max et al This article: Create a Syslog Sender/Receiver Using the MS Winsock Control With the Microsoft WinSock Control and a few coding tricks, you can use Access as a high-performance syslog sender, receiver, and logger. _is_ in VBA! I have no idea why it was put in the VB section. In fact, given the current "discussion" on Access 2007, it is just about the only project I have made in Access 2007. I started out with this several years ago with Access 97 for fun, but when I recently got the chance to write and polish it up, I felt it had to be finished in A2007. If Steve is looking for "fans of the ribbon", don't count me in - I really looked for features or benefits of the ribbon but found none, sorry. /gustav >>> max.wanadoo at gmail.com 29-06-2009 18:14 >>> Gustav, does this work under Access VBA? Max -----Original Message----- Susan Harkins wrote: > > > I'm so proud... ;) Notice, my name is NOT in the byline... I'm so > proud... yet another ones passes safely to single author status. :) > > Susan H. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From accessd at shaw.ca Tue Jul 7 22:43:28 2009 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 7 Jul 2009 20:43:28 -0700 Subject: [dba-VB] favicon (was: Syslogs) In-Reply-To: References: Message-ID: Hi Gustav: The Favicon only seems to work reliably, in all browsers, if there is an absolute link. If you have access to the web server's DNS (forward lookups) and the zones, multiple connections can be easily setup, by just adding an alias to the domain and then depending on the server, it will allow access to icons at/on any web server location: Website: http://www.mywebsite.com Icon code in the header and icon location: Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, June 30, 2009 10:06 AM To: dba-vb at databaseadvisors.com Subject: [dba-VB] favicon (was: Syslogs) Hi Drew That gives me an idea regarding favicon. I've found that it is sometimes difficult to get IE to understand that a favicon is present and should be displayed. Some common methods are: This typically doesn't work. These may: mtaulty.com/CommunityServer: The most reliable method I've found is the last - to use the full URL - but it is not nice to have hardcoded strings like these. So how about using your method: or localhost: Anyone having experience with this? /gustav >>> DWUTKA at marlow.com 30-06-2009 18:49 >>> Actually, if you have an IP address, it is real. It then gets into what it is used for. For example, with your wireless, if it's not connected, it won't have an IP address. If a standard NIC is not connected, it will show no address. If it IS connected, but not receiving an IP address, it will default to a (I think) 169 something, which is a hard coded address, which means nothing. You can also have internal addresses such as 127.0.0.1, which is a loopback to your local machine. (so if you are running a website, putting in http://127.0.0.1 on the server will give you the local website). Drew _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From Gustav at cactus.dk Wed Jul 8 02:23:34 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 08 Jul 2009 09:23:34 +0200 Subject: [dba-VB] Syslogs Message-ID: Hi Jim How Jim? The question was about if the ocx is installed and accessible ... /gustav >>> accessd at shaw.ca 08-07-2009 04:20 >>> Hi guys: Sorry for being a little late to the thread but you could just use some of the basic primitive on all Windows machines. There is the AT command for automatically spawning a process and then NET VIEW for checking whether there is an established network connections... etc. Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, June 29, 2009 10:08 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Syslogs Hi Max The paragraph on page 1, "The WinSock Control", is for you. You need both the license and the "compatibility". Thank you to MS and IE and the "Compatibility" flag. /gustav >>> max.wanadoo at gmail.com 29-06-2009 18:51 >>> Run it in A2007K and opened the Demo form to get this error: .Protocol = sckUDPProtocol Run time error 438 Object doesn't support this property or method. Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 29 June 2009 17:37 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Syslogs Hi Susan, Max et al This article: Create a Syslog Sender/Receiver Using the MS Winsock Control With the Microsoft WinSock Control and a few coding tricks, you can use Access as a high-performance syslog sender, receiver, and logger. _is_ in VBA! I have no idea why it was put in the VB section. In fact, given the current "discussion" on Access 2007, it is just about the only project I have made in Access 2007. I started out with this several years ago with Access 97 for fun, but when I recently got the chance to write and polish it up, I felt it had to be finished in A2007. If Steve is looking for "fans of the ribbon", don't count me in - I really looked for features or benefits of the ribbon but found none, sorry. /gustav >>> max.wanadoo at gmail.com 29-06-2009 18:14 >>> Gustav, does this work under Access VBA? Max -----Original Message----- Susan Harkins wrote: > > > I'm so proud... ;) Notice, my name is NOT in the byline... I'm so > proud... yet another ones passes safely to single author status. :) > > Susan H. From Gustav at cactus.dk Wed Jul 8 02:32:18 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 08 Jul 2009 09:32:18 +0200 Subject: [dba-VB] favicon (was: Syslogs) Message-ID: Hi Jim Thanks. That makes two of us. Problem is that if you google on how to implement favicon, you most often see the relative url used. Strange. /gustav >>> accessd at shaw.ca 08-07-2009 05:43 >>> Hi Gustav: The Favicon only seems to work reliably, in all browsers, if there is an absolute link. If you have access to the web server's DNS (forward lookups) and the zones, multiple connections can be easily setup, by just adding an alias to the domain and then depending on the server, it will allow access to icons at/on any web server location: Website: http://www.mywebsite.com Icon code in the header and icon location: Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, June 30, 2009 10:06 AM To: dba-vb at databaseadvisors.com Subject: [dba-VB] favicon (was: Syslogs) Hi Drew That gives me an idea regarding favicon. I've found that it is sometimes difficult to get IE to understand that a favicon is present and should be displayed. Some common methods are: This typically doesn't work. These may: mtaulty.com/CommunityServer: The most reliable method I've found is the last - to use the full URL - but it is not nice to have hardcoded strings like these. So how about using your method: or localhost: Anyone having experience with this? /gustav >>> DWUTKA at marlow.com 30-06-2009 18:49 >>> Actually, if you have an IP address, it is real. It then gets into what it is used for. For example, with your wireless, if it's not connected, it won't have an IP address. If a standard NIC is not connected, it will show no address. If it IS connected, but not receiving an IP address, it will default to a (I think) 169 something, which is a hard coded address, which means nothing. You can also have internal addresses such as 127.0.0.1, which is a loopback to your local machine. (so if you are running a website, putting in http://127.0.0.1 on the server will give you the local website). Drew From Johncliviger at aol.com Sun Jul 12 13:02:40 2009 From: Johncliviger at aol.com (Johncliviger at aol.com) Date: Sun, 12 Jul 2009 14:02:40 EDT Subject: [dba-VB] .Net Graphs in 2008 Message-ID: Hi all I've just installed the graph control into VB2008 and with help of Pat Tormey's video I got a bar chart working. What I can't do however is to get the x-axis data labels to appear. . But where and how do you switch them on/off ? Regards johnc From ssharkins at gmail.com Sun Jul 12 19:55:55 2009 From: ssharkins at gmail.com (Susan Harkins) Date: Sun, 12 Jul 2009 20:55:55 -0400 Subject: [dba-VB] Next .NET basics article from Charlotte Message-ID: <11A694D51BEF4D79B16500AD19F60FD9@SusanOne> http://www.devx.com/dotnet/Article/42296?trk=DXRSS_DOTNET From Gustav at cactus.dk Mon Jul 13 04:04:54 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 13 Jul 2009 11:04:54 +0200 Subject: [dba-VB] Next .NET basics article from Charlotte Message-ID: Hi Susan and Charlotte > A .NET typed dataset is an in-memory representation of a remote database As far as I know, it doesn't have to be remote, it can be local as well, in fact it doesn't even have to "be" as you can create it on the fly (for temporary usage or to be written to, say, an XML file). That aside, I welcome any article that promote this great feature (typed dataset) of .Net. /gustav >>> ssharkins at gmail.com 13-07-2009 02:55 >>> http://www.devx.com/dotnet/Article/42296?trk=DXRSS_DOTNET From ssharkins at gmail.com Mon Jul 13 08:54:12 2009 From: ssharkins at gmail.com (Susan Harkins) Date: Mon, 13 Jul 2009 09:54:12 -0400 Subject: [dba-VB] Next .NET basics article from Charlotte References: Message-ID: <455F2BD731014F37BF1F35DF34263F10@SusanOne> > >> A .NET typed dataset is an in-memory representation of a remote database > > As far as I know, it doesn't have to be remote, it can be local as well, > in fact it doesn't even have to "be" as you can create it on the fly (for > temporary usage or to be written to, say, an XML file). ========Well, remote is in the official MS definition and I think that simply means that .NET doesn't store data. Susan H. From cfoust at infostatsystems.com Mon Jul 13 10:18:56 2009 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 13 Jul 2009 08:18:56 -0700 Subject: [dba-VB] Next .NET basics article from Charlotte In-Reply-To: References: Message-ID: But Wait! There's more! Next article we're going to create data entities based on typed datasets and use them to implement business rules in the data tier. Charlotte -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, July 13, 2009 2:05 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Next .NET basics article from Charlotte Hi Susan and Charlotte > A .NET typed dataset is an in-memory representation of a remote > database As far as I know, it doesn't have to be remote, it can be local as well, in fact it doesn't even have to "be" as you can create it on the fly (for temporary usage or to be written to, say, an XML file). That aside, I welcome any article that promote this great feature (typed dataset) of .Net. /gustav >>> ssharkins at gmail.com 13-07-2009 02:55 >>> http://www.devx.com/dotnet/Article/42296?trk=DXRSS_DOTNET _______________________________________________ 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 Fri Jul 17 02:22:16 2009 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Fri, 17 Jul 2009 11:22:16 +0400 Subject: [dba-VB] LINQ for EF Example (Part III) Message-ID: <002101ca06af$517c8940$f4759bc0$@spb.ru> (continued) Request: ======== Get all pairs of part numbers such that some supplier supplies both of the indicated parts. Generated SQL expression (obtained via SQL profiler): ===================================================== SELECT [Project2].[C1] AS [C1], [Project2].[SN] AS [SN], [Project2].[PN] AS [PN], [Project2].[PN1] AS [PN1] FROM ( SELECT [Distinct1].[PN] AS [PN], [Distinct1].[SN] AS [SN], [Distinct1].[PN1] AS [PN1], 1 AS [C1] FROM (SELECT DISTINCT [Extent1].[PN] AS [PN], [Extent1].[SN] AS [SN], [Extent2].[PN] AS [PN1], 1 AS [C1] FROM [dbo].[SPJ] AS [Extent1] INNER JOIN [dbo].[SPJ] AS [Extent2] ON [Extent1].[SN] = [Extent2].[SN] ) AS [Distinct1] INNER JOIN (SELECT [Extent3].[CITY] AS [CITY1], [Extent3].[COLOR] AS [COLOR1], [Extent3].[PN] AS [PN1], [Extent3].[PNAME] AS [PNAME1], [Extent3].[WEIGHT] AS [WEIGHT1], [Extent4].[CITY] AS [CITY2], [Extent4].[COLOR] AS [COLOR2], [Extent4].[PN] AS [PN2], [Extent4].[PNAME] AS [PNAME2], [Extent4].[WEIGHT] AS [WEIGHT2] FROM [dbo].[P] AS [Extent3] CROSS JOIN [dbo].[P] AS [Extent4] ) AS [Join2] ON ([Distinct1].[PN] = [Join2].[PN1]) AND ([Distinct1].[PN1] = [Join2].[PN2]) WHERE ([Join2].[PN1] <> [Join2].[PN2]) AND ((SUBSTRING([Join2].[PN1], 1 + 1, 1)) < (SUBSTRING([Join2].[PN2], 1 + 1, 1))) ) AS [Project2] ORDER BY [Project2].[SN] ASC, [Project2].[PN] ASC, [Project2].[PN1] ASC Result (LINQ for EF - C#): ========================== SN PN1 PN2 ---------- S2 P3 P5 S3 P3 P4 S5 P1 P2 S5 P1 P3 S5 P1 P4 S5 P1 P5 S5 P1 P6 S5 P2 P3 S5 P2 P4 S5 P2 P5 S5 P2 P6 S5 P3 P4 S5 P3 P5 S5 P3 P6 S5 P4 P5 S5 P4 P6 S5 P5 P6 ---------- (17 rows) Result (Manual SQL): ==================== SN PN1 PN2 S2 P3 P5 S3 P3 P4 S5 P1 P2 S5 P1 P3 S5 P1 P4 S5 P1 P5 S5 P1 P6 S5 P2 P3 S5 P2 P4 S5 P2 P5 S5 P2 P6 S5 P3 P4 S5 P3 P5 S5 P3 P6 S5 P4 P5 S5 P4 P6 S5 P5 P6 (17 rows) --- LINQ for EF looks "smart" isn't it? Thank you. -- Shamil From shamil at smsconsulting.spb.ru Fri Jul 17 02:22:16 2009 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Fri, 17 Jul 2009 11:22:16 +0400 Subject: [dba-VB] LINQ for EF Example (Part II) Message-ID: <002601ca06af$52ca17e0$f85e47a0$@spb.ru> (continued) Request: ======== Get all pairs of part numbers such that some supplier supplies both of the indicated parts. LINQ for EF (C#): ================= SPJEntities suppliersAndParts = new SPJEntities(); var queryResult1 = ( from spj1 in suppliersAndParts.SPJ from spj2 in suppliersAndParts.SPJ where (spj1.SN == spj2.SN) select new { SN = spj1.SN, PN1 = spj1.PN, PN2 = spj2.PN } ).Distinct() ; var queryResult2 = ( from p1 in suppliersAndParts.P from p2 in suppliersAndParts.P let p1Num = p1.PN.Substring(1, 1) let p2Num = p2.PN.Substring(1, 1) where (p1.PN != p2.PN && string.Compare(p1Num,p2Num) < 0 ) select new { PN1 = p1.PN, PN2 = p2.PN } ).Distinct() ; var queryResult = from q1 in queryResult1 from q2 in queryResult2 where (q1.PN1 == q2.PN1 && q1.PN2 == q2.PN2) orderby q1.SN, q1.PN1, q1.PN2 select new { SN = q1.SN, PN1 = q1.PN1, PN2 = q1.PN2 }; Console.WriteLine("SN PN1 PN2"); Console.WriteLine("----------"); foreach (var row in queryResult) Console.WriteLine("{0} {1} {2}", row.SN, row.PN1, row.PN2); Console.WriteLine("----------"); -- Shamil From shamil at smsconsulting.spb.ru Fri Jul 17 02:22:16 2009 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Fri, 17 Jul 2009 11:22:16 +0400 Subject: [dba-VB] LINQ for EF Example (Part I) Message-ID: <002b01ca06af$540caa00$fc25fe00$@spb.ru> Hi All, Have a look what LINQ for EF can do - I mainly mean that it can combine C# subqueries into one SQL expression executed on server side. I personally was unaware of this feature. Yes, I have read about LINQ's "lazy execution mode" but I haven't seen such advanced examples. Of course I could have missed them. Anyway I wanted to post about this LINQ feature here - just for the records J This posting is split into three parts to get through dba-VB posting size limitations. Example uses well known C.J. Date sample database from his "An Introduction to Database Systems" book (http://www.amazon.com/Introduction-Database-Systems-C-Date/dp/0201385902): Request: ======== Get all pairs of part numbers such that some supplier supplies both of the indicated parts. Manually written SQL: ================= SELECT DISTINCT spj1.SN as SN, spj1.PN AS PN1, spj2.PN AS PN2 FROM SPJ AS spj1, SPJ AS spj2, ( select p1.PN as PN1, p2.PN as PN2 from P as p1, P as p2 where p1.PN <> p2.PN and CAST(SUBSTRING(p1.PN,2,1) as int) < CAST(SUBSTRING(p2.PN,2,1) as int) ) Q WHERE spj1.SN = spj2.SN and spj1.PN = Q.PN1 and spj2.PN = Q.PN2 order by SN, PN1, PN2 -- Shamil From mmattys at rochester.rr.com Fri Jul 17 09:13:50 2009 From: mmattys at rochester.rr.com (Mike Mattys) Date: Fri, 17 Jul 2009 10:13:50 -0400 Subject: [dba-VB] LINQ for EF Example (Part III) References: <002101ca06af$517c8940$f4759bc0$@spb.ru> Message-ID: <2CDA2A89C2FF4A7D8A42293E87A8913C@Mattys> Thanks, Shamil - These look great! I'll have to try it out. As soon as I look up EF? - Michael R Mattys MapPoint and Database Dev www.mattysconsulting.com - ----- Original Message ----- From: "Shamil Salakhetdinov" To: "'Discussion concerning Visual Basic and related programming issues.'" Sent: Friday, July 17, 2009 3:22 AM Subject: [dba-VB] LINQ for EF Example (Part III) > (continued) > > > > Request: > > ======== > > Get all pairs of part numbers such that some supplier supplies both of > the indicated parts. > > > > Generated SQL expression (obtained via SQL profiler): > > ===================================================== > > SELECT > > [Project2].[C1] AS [C1], > > [Project2].[SN] AS [SN], > > [Project2].[PN] AS [PN], > > [Project2].[PN1] AS [PN1] > > FROM ( SELECT > > [Distinct1].[PN] AS [PN], > > [Distinct1].[SN] AS [SN], > > [Distinct1].[PN1] AS [PN1], > > 1 AS [C1] > > FROM (SELECT DISTINCT > > [Extent1].[PN] AS [PN], > > [Extent1].[SN] AS [SN], > > [Extent2].[PN] AS [PN1], > > 1 AS [C1] > > FROM [dbo].[SPJ] AS [Extent1] > > INNER JOIN [dbo].[SPJ] AS [Extent2] ON [Extent1].[SN] = > [Extent2].[SN] ) AS [Distinct1] > > INNER JOIN (SELECT [Extent3].[CITY] AS [CITY1], [Extent3].[COLOR] AS > [COLOR1], [Extent3].[PN] AS [PN1], [Extent3].[PNAME] AS [PNAME1], > [Extent3].[WEIGHT] AS [WEIGHT1], [Extent4].[CITY] AS [CITY2], > [Extent4].[COLOR] AS [COLOR2], [Extent4].[PN] AS [PN2], [Extent4].[PNAME] > AS > [PNAME2], [Extent4].[WEIGHT] AS [WEIGHT2] > > FROM [dbo].[P] AS [Extent3] > > CROSS JOIN [dbo].[P] AS [Extent4] ) AS [Join2] ON > ([Distinct1].[PN] = [Join2].[PN1]) AND ([Distinct1].[PN1] = [Join2].[PN2]) > > WHERE ([Join2].[PN1] <> [Join2].[PN2]) AND ((SUBSTRING([Join2].[PN1], > 1 + 1, 1)) < (SUBSTRING([Join2].[PN2], 1 + 1, 1))) > > ) AS [Project2] > > ORDER BY [Project2].[SN] ASC, [Project2].[PN] ASC, [Project2].[PN1] ASC > > > > Result (LINQ for EF - C#): > > ========================== > > SN PN1 PN2 > > ---------- > > S2 P3 P5 > > S3 P3 P4 > > S5 P1 P2 > > S5 P1 P3 > > S5 P1 P4 > > S5 P1 P5 > > S5 P1 P6 > > S5 P2 P3 > > S5 P2 P4 > > S5 P2 P5 > > S5 P2 P6 > > S5 P3 P4 > > S5 P3 P5 > > S5 P3 P6 > > S5 P4 P5 > > S5 P4 P6 > > S5 P5 P6 > > ---------- > > > > (17 rows) > > > > Result (Manual SQL): > > ==================== > > > > SN PN1 PN2 > > S2 P3 P5 > > S3 P3 P4 > > S5 P1 P2 > > S5 P1 P3 > > S5 P1 P4 > > S5 P1 P5 > > S5 P1 P6 > > S5 P2 P3 > > S5 P2 P4 > > S5 P2 P5 > > S5 P2 P6 > > S5 P3 P4 > > S5 P3 P5 > > S5 P3 P6 > > S5 P4 P5 > > S5 P4 P6 > > S5 P5 P6 > > > > (17 rows) > > > > --- > > LINQ for EF looks "smart" isn't it? > > > > Thank you. > > > > -- > > Shamil > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From Gustav at cactus.dk Fri Jul 17 10:16:52 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 17 Jul 2009 17:16:52 +0200 Subject: [dba-VB] LINQ for EF Example (Part I) Message-ID: Hi Shamil No, I wasn't aware of exactly this - or rather down to what level the SQL code generator operates - but it is a great feature. Where can the C.J. Date test database you mention be obtained? I found the book for download as a PDF here: http://www.scribd.com/doc/13078295/An-Introduction-to-Database-Systems-8Ed-C-J-Date-Solutions-Manual It seems to be complete. Not sure what the deal is? /gustav >>> shamil at smsconsulting.spb.ru 17-07-2009 09:22 >>> Hi All, Have a look what LINQ for EF can do - I mainly mean that it can combine C# subqueries into one SQL expression executed on server side. I personally was unaware of this feature. Yes, I have read about LINQ's "lazy execution mode" but I haven't seen such advanced examples. Of course I could have missed them. Anyway I wanted to post about this LINQ feature here - just for the records J This posting is split into three parts to get through dba-VB posting size limitations. Example uses well known C.J. Date sample database from his "An Introduction to Database Systems" book (http://www.amazon.com/Introduction-Database-Systems-C-Date/dp/0201385902): From mmattys at rochester.rr.com Fri Jul 17 10:53:57 2009 From: mmattys at rochester.rr.com (Mike Mattys) Date: Fri, 17 Jul 2009 11:53:57 -0400 Subject: [dba-VB] LINQ for EF Example (Part III) References: <002101ca06af$517c8940$f4759bc0$@spb.ru> <2CDA2A89C2FF4A7D8A42293E87A8913C@Mattys> Message-ID: <868FCF698D3F4BE1A75E23ACD6CF09E5@Mattys> Entity Framework Extraneous Froth :) - Michael R Mattys MapPoint and Database Dev www.mattysconsulting.com - ----- Original Message ----- From: "Mike Mattys" To: "Discussion concerning Visual Basic and related programming issues." Sent: Friday, July 17, 2009 10:13 AM Subject: Re: [dba-VB] LINQ for EF Example (Part III) > Thanks, Shamil - These look great! > I'll have to try it out. > > As soon as I look up EF? > > - > Michael R Mattys > MapPoint and Database Dev > www.mattysconsulting.com > - > > ----- Original Message ----- > From: "Shamil Salakhetdinov" > To: "'Discussion concerning Visual Basic and related programming issues.'" > > Sent: Friday, July 17, 2009 3:22 AM > Subject: [dba-VB] LINQ for EF Example (Part III) > > >> (continued) >> >> >> >> Request: >> >> ======== >> >> Get all pairs of part numbers such that some supplier supplies both of >> the indicated parts. >> >> >> >> Generated SQL expression (obtained via SQL profiler): >> >> ===================================================== >> >> SELECT >> >> [Project2].[C1] AS [C1], >> >> [Project2].[SN] AS [SN], >> >> [Project2].[PN] AS [PN], >> >> [Project2].[PN1] AS [PN1] >> >> FROM ( SELECT >> >> [Distinct1].[PN] AS [PN], >> >> [Distinct1].[SN] AS [SN], >> >> [Distinct1].[PN1] AS [PN1], >> >> 1 AS [C1] >> >> FROM (SELECT DISTINCT >> >> [Extent1].[PN] AS [PN], >> >> [Extent1].[SN] AS [SN], >> >> [Extent2].[PN] AS [PN1], >> >> 1 AS [C1] >> >> FROM [dbo].[SPJ] AS [Extent1] >> >> INNER JOIN [dbo].[SPJ] AS [Extent2] ON [Extent1].[SN] = >> [Extent2].[SN] ) AS [Distinct1] >> >> INNER JOIN (SELECT [Extent3].[CITY] AS [CITY1], [Extent3].[COLOR] >> AS >> [COLOR1], [Extent3].[PN] AS [PN1], [Extent3].[PNAME] AS [PNAME1], >> [Extent3].[WEIGHT] AS [WEIGHT1], [Extent4].[CITY] AS [CITY2], >> [Extent4].[COLOR] AS [COLOR2], [Extent4].[PN] AS [PN2], [Extent4].[PNAME] >> AS >> [PNAME2], [Extent4].[WEIGHT] AS [WEIGHT2] >> >> FROM [dbo].[P] AS [Extent3] >> >> CROSS JOIN [dbo].[P] AS [Extent4] ) AS [Join2] ON >> ([Distinct1].[PN] = [Join2].[PN1]) AND ([Distinct1].[PN1] = >> [Join2].[PN2]) >> >> WHERE ([Join2].[PN1] <> [Join2].[PN2]) AND >> ((SUBSTRING([Join2].[PN1], >> 1 + 1, 1)) < (SUBSTRING([Join2].[PN2], 1 + 1, 1))) >> >> ) AS [Project2] >> >> ORDER BY [Project2].[SN] ASC, [Project2].[PN] ASC, [Project2].[PN1] ASC >> >> >> >> Result (LINQ for EF - C#): >> >> ========================== >> >> SN PN1 PN2 >> >> ---------- >> >> S2 P3 P5 >> >> S3 P3 P4 >> >> S5 P1 P2 >> >> S5 P1 P3 >> >> S5 P1 P4 >> >> S5 P1 P5 >> >> S5 P1 P6 >> >> S5 P2 P3 >> >> S5 P2 P4 >> >> S5 P2 P5 >> >> S5 P2 P6 >> >> S5 P3 P4 >> >> S5 P3 P5 >> >> S5 P3 P6 >> >> S5 P4 P5 >> >> S5 P4 P6 >> >> S5 P5 P6 >> >> ---------- >> >> >> >> (17 rows) >> >> >> >> Result (Manual SQL): >> >> ==================== >> >> >> >> SN PN1 PN2 >> >> S2 P3 P5 >> >> S3 P3 P4 >> >> S5 P1 P2 >> >> S5 P1 P3 >> >> S5 P1 P4 >> >> S5 P1 P5 >> >> S5 P1 P6 >> >> S5 P2 P3 >> >> S5 P2 P4 >> >> S5 P2 P5 >> >> S5 P2 P6 >> >> S5 P3 P4 >> >> S5 P3 P5 >> >> S5 P3 P6 >> >> S5 P4 P5 >> >> S5 P4 P6 >> >> S5 P5 P6 >> >> >> >> (17 rows) >> >> >> >> --- >> >> LINQ for EF looks "smart" isn't it? >> >> >> >> 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 Gustav at cactus.dk Fri Jul 17 11:29:47 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 17 Jul 2009 18:29:47 +0200 Subject: [dba-VB] Using Microsoft ADO.NET Entity Framework with MySQL (was: LINQ for EF Example) Message-ID: Hi all And as an apropos: Live Webinar: For ISVs - Using Microsoft ADO.NET Entity Framework with MySQL Tuesday, August 11, 2009 - 10:00am PDT The Entity Framework is a new technology that was developed by Microsoft and delivered as part of .NET 3.5 SP1. This framework abstracts the relational schema of the database and presents it as a conceptual schema. This is particularly beneficial for ISVs because by working with a conceptual schema, the commercial application developer avoids having to write complicated joins to connect all the related items of data, greatly reducing development time, resources and therefore, COGS. ISV developers can access their data using ORM-like classes, LinQ syntax, or with a new SQL syntax named EntitySQL, all of which further reduce COGS. Register for this Webinar: http://www.mysql.com/news-and-events/web-seminars/display-397.html /gustav ----- Original Message ----- > Thanks, Shamil - These look great! > I'll have to try it out. > > As soon as I look up EF? > > - > Michael R Mattys > MapPoint and Database Dev > www.mattysconsulting.com From Gustav at cactus.dk Fri Jul 17 11:38:44 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 17 Jul 2009 18:38:44 +0200 Subject: [dba-VB] Using Microsoft ADO.NET Entity Framework with MySQL (was: LINQ for EF Example) Message-ID: Also: New Release of MySQL Connector/Net 6.0.4 (GA) MySQL Connector/Net 6.0.4, a new version of the all-managed .NET driver for MySQL has been released. This is the first post-GA release of the new 6.0 connector and includes several bug fixes from the initial GA release. This release is approved for use in all scenarios and officially supports MySQL servers 4.1 and higher. View the complete list of changes: http://dev.mysql.com/doc/refman/6.0/en/connector-net-news-6-0-4.html Download Now: http://dev.mysql.com/downloads/connector/net/6.0.html /gustav >>> Gustav at cactus.dk 17-07-2009 18:29 >>> Hi all And as an apropos: Live Webinar: For ISVs - Using Microsoft ADO.NET Entity Framework with MySQL Tuesday, August 11, 2009 - 10:00am PDT The Entity Framework is a new technology that was developed by Microsoft and delivered as part of .NET 3.5 SP1. This framework abstracts the relational schema of the database and presents it as a conceptual schema. This is particularly beneficial for ISVs because by working with a conceptual schema, the commercial application developer avoids having to write complicated joins to connect all the related items of data, greatly reducing development time, resources and therefore, COGS. ISV developers can access their data using ORM-like classes, LinQ syntax, or with a new SQL syntax named EntitySQL, all of which further reduce COGS. Register for this Webinar: http://www.mysql.com/news-and-events/web-seminars/display-397.html /gustav ----- Original Message ----- > Thanks, Shamil - These look great! > I'll have to try it out. > > As soon as I look up EF? > > - > Michael R Mattys > MapPoint and Database Dev > www.mattysconsulting.com From cfoust at infostatsystems.com Fri Jul 17 11:52:45 2009 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 17 Jul 2009 09:52:45 -0700 Subject: [dba-VB] Using Microsoft ADO.NET Entity Framework with MySQL(was: LINQ for EF Example) In-Reply-To: References: Message-ID: I started to look at the data entity model but found it horribly confusing in VS2008. Our project manager previously worked for a large company that had played with it and found the problems it created for them outweighed any advantages. I may come around to it as it evolves, but for now I'll stay with our homegrown entity model. Charlotte -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, July 17, 2009 9:30 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Using Microsoft ADO.NET Entity Framework with MySQL(was: LINQ for EF Example) Hi all And as an apropos: Live Webinar: For ISVs - Using Microsoft ADO.NET Entity Framework with MySQL Tuesday, August 11, 2009 - 10:00am PDT The Entity Framework is a new technology that was developed by Microsoft and delivered as part of .NET 3.5 SP1. This framework abstracts the relational schema of the database and presents it as a conceptual schema. This is particularly beneficial for ISVs because by working with a conceptual schema, the commercial application developer avoids having to write complicated joins to connect all the related items of data, greatly reducing development time, resources and therefore, COGS. ISV developers can access their data using ORM-like classes, LinQ syntax, or with a new SQL syntax named EntitySQL, all of which further reduce COGS. Register for this Webinar: http://www.mysql.com/news-and-events/web-seminars/display-397.html /gustav ----- Original Message ----- > Thanks, Shamil - These look great! > I'll have to try it out. > > As soon as I look up EF? > > - > Michael R Mattys > MapPoint and Database Dev > www.mattysconsulting.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 Fri Jul 17 15:34:45 2009 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sat, 18 Jul 2009 00:34:45 +0400 Subject: [dba-VB] LINQ for EF Example (Part I) In-Reply-To: References: Message-ID: <005401ca071e$066b0250$134106f0$@spb.ru> Hi Gustav, Yes, this is a great feature. I have just published SPJ sample database at: http://northwind.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=26600#D ownloadId=75624 I have made this sample database developed here by typing its data from the book, which I have got purchased here in 1981, in USSR, Russian Edition. ?.J.Date has released this year yet another book - I'd recommend it as it's IMO more modern/advanced/suitable for professional db developers: SQL and Relational Theory, 1st Edition by C.J. Date January 2009 ISBN-10: 0-596-52306-8 http://oreilly.com/catalog/9780596523060/ "Understanding SQL's underlying theory is the best way to guarantee that your SQL code is correct and your database schema is robust and maintainable. In SQL and Relational Theory, author C.J. Date demonstrates how you can apply relational theory directly to your use of SQL, with numerous examples and clear explanations of the reasoning behind them. Anyone with a modest to advanced background in SQL will benefit from the many insights in this book." -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, July 17, 2009 7:17 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] LINQ for EF Example (Part I) Hi Shamil No, I wasn't aware of exactly this - or rather down to what level the SQL code generator operates - but it is a great feature. Where can the C.J. Date test database you mention be obtained? I found the book for download as a PDF here: http://www.scribd.com/doc/13078295/An-Introduction-to-Database-Systems-8Ed-C -J-Date-Solutions-Manual It seems to be complete. Not sure what the deal is? /gustav >>> shamil at smsconsulting.spb.ru 17-07-2009 09:22 >>> Hi All, Have a look what LINQ for EF can do - I mainly mean that it can combine C# subqueries into one SQL expression executed on server side. I personally was unaware of this feature. Yes, I have read about LINQ's "lazy execution mode" but I haven't seen such advanced examples. Of course I could have missed them. Anyway I wanted to post about this LINQ feature here - just for the records J This posting is split into three parts to get through dba-VB posting size limitations. Example uses well known C.J. Date sample database from his "An Introduction to Database Systems" book (http://www.amazon.com/Introduction-Database-Systems-C-Date/dp/0201385902): _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com __________ Information from ESET NOD32 Antivirus, version of virus signature database 4255 (20090717) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru __________ Information from ESET NOD32 Antivirus, version of virus signature database 4255 (20090717) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru From shamil at smsconsulting.spb.ru Fri Jul 17 18:28:34 2009 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sat, 18 Jul 2009 03:28:34 +0400 Subject: [dba-VB] Using Microsoft ADO.NET Entity Framework with MySQL (was: LINQ for EF Example) In-Reply-To: References: Message-ID: <005501ca0736$50039180$f00ab480$@spb.ru> Hi Gustav, This mySQL Connector, which can be used to work with mySQL DBs from LINQ for EF(?), is probably developed by using "Entity Client" concept/technology: http://blogs.msdn.com/adonet/archive/2007/02/14/entity-client.aspx It may happen somebody will use this technology to develop an MS Access connector - let's hope that happens real soon? Hey, MS MS Access Team - how about doing that there? Another useful technology MS "cooks" there is "CodeOnly for Entity Framework": http://blogs.msdn.com/adonet/archive/2009/06/22/feature-ctp-walkthrough-code -only-for-entity-framework.aspx You mentioned something like that here already - did you mean that "CodeOnly for Entity Framework" technology or just a concept of starting with Domain Model implemented in code/metadata and then using this Domain Model to generate actual (relational) DB model? -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, July 17, 2009 8:39 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Using Microsoft ADO.NET Entity Framework with MySQL (was: LINQ for EF Example) Also: New Release of MySQL Connector/Net 6.0.4 (GA) MySQL Connector/Net 6.0.4, a new version of the all-managed .NET driver for MySQL has been released. This is the first post-GA release of the new 6.0 connector and includes several bug fixes from the initial GA release. This release is approved for use in all scenarios and officially supports MySQL servers 4.1 and higher. View the complete list of changes: http://dev.mysql.com/doc/refman/6.0/en/connector-net-news-6-0-4.html Download Now: http://dev.mysql.com/downloads/connector/net/6.0.html /gustav >>> Gustav at cactus.dk 17-07-2009 18:29 >>> Hi all And as an apropos: Live Webinar: For ISVs - Using Microsoft ADO.NET Entity Framework with MySQL Tuesday, August 11, 2009 - 10:00am PDT The Entity Framework is a new technology that was developed by Microsoft and delivered as part of .NET 3.5 SP1. This framework abstracts the relational schema of the database and presents it as a conceptual schema. This is particularly beneficial for ISVs because by working with a conceptual schema, the commercial application developer avoids having to write complicated joins to connect all the related items of data, greatly reducing development time, resources and therefore, COGS. ISV developers can access their data using ORM-like classes, LinQ syntax, or with a new SQL syntax named EntitySQL, all of which further reduce COGS. Register for this Webinar: http://www.mysql.com/news-and-events/web-seminars/display-397.html /gustav ----- Original Message ----- > Thanks, Shamil - These look great! > I'll have to try it out. > > As soon as I look up EF? > > - > Michael R Mattys > MapPoint and Database Dev > www.mattysconsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com __________ Information from ESET NOD32 Antivirus, version of virus signature database 4255 (20090717) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru __________ Information from ESET NOD32 Antivirus, version of virus signature database 4255 (20090717) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru From shamil at smsconsulting.spb.ru Sat Jul 18 07:30:01 2009 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sat, 18 Jul 2009 16:30:01 +0400 Subject: [dba-VB] LINQ for EF Example (Part III) In-Reply-To: <868FCF698D3F4BE1A75E23ACD6CF09E5@Mattys> References: <002101ca06af$517c8940$f4759bc0$@spb.ru> <2CDA2A89C2FF4A7D8A42293E87A8913C@Mattys> <868FCF698D3F4BE1A75E23ACD6CF09E5@Mattys> Message-ID: <007501ca07a3$79738d00$6c5aa700$@spb.ru> Hi Mike, Yes, "LINQ for ADO.NET Entity Framework" to be precise :) What about teaming-up with Gustav and myself and to port our Northwind.NET for MS SQL 2005 to "LINQ for ADO.NET Entity Framework"? Just an idea - and doing that project in "lazy summer mode" without setting strict deadlines? Gustav how about you? Anybody else? Have nice weekend. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Mike Mattys Sent: Friday, July 17, 2009 7:54 PM To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] LINQ for EF Example (Part III) Entity Framework Extraneous Froth :) - Michael R Mattys MapPoint and Database Dev www.mattysconsulting.com - ----- Original Message ----- From: "Mike Mattys" To: "Discussion concerning Visual Basic and related programming issues." Sent: Friday, July 17, 2009 10:13 AM Subject: Re: [dba-VB] LINQ for EF Example (Part III) > Thanks, Shamil - These look great! > I'll have to try it out. > > As soon as I look up EF? > > - > Michael R Mattys > MapPoint and Database Dev > www.mattysconsulting.com > - > > ----- Original Message ----- > From: "Shamil Salakhetdinov" > To: "'Discussion concerning Visual Basic and related programming issues.'" > > Sent: Friday, July 17, 2009 3:22 AM > Subject: [dba-VB] LINQ for EF Example (Part III) > > >> (continued) >> >> >> >> Request: >> >> ======== >> >> Get all pairs of part numbers such that some supplier supplies both of >> the indicated parts. >> >> >> >> Generated SQL expression (obtained via SQL profiler): >> >> ===================================================== >> >> SELECT >> >> [Project2].[C1] AS [C1], >> >> [Project2].[SN] AS [SN], >> >> [Project2].[PN] AS [PN], >> >> [Project2].[PN1] AS [PN1] >> >> FROM ( SELECT >> >> [Distinct1].[PN] AS [PN], >> >> [Distinct1].[SN] AS [SN], >> >> [Distinct1].[PN1] AS [PN1], >> >> 1 AS [C1] >> >> FROM (SELECT DISTINCT >> >> [Extent1].[PN] AS [PN], >> >> [Extent1].[SN] AS [SN], >> >> [Extent2].[PN] AS [PN1], >> >> 1 AS [C1] >> >> FROM [dbo].[SPJ] AS [Extent1] >> >> INNER JOIN [dbo].[SPJ] AS [Extent2] ON [Extent1].[SN] = >> [Extent2].[SN] ) AS [Distinct1] >> >> INNER JOIN (SELECT [Extent3].[CITY] AS [CITY1], [Extent3].[COLOR] >> AS >> [COLOR1], [Extent3].[PN] AS [PN1], [Extent3].[PNAME] AS [PNAME1], >> [Extent3].[WEIGHT] AS [WEIGHT1], [Extent4].[CITY] AS [CITY2], >> [Extent4].[COLOR] AS [COLOR2], [Extent4].[PN] AS [PN2], [Extent4].[PNAME] >> AS >> [PNAME2], [Extent4].[WEIGHT] AS [WEIGHT2] >> >> FROM [dbo].[P] AS [Extent3] >> >> CROSS JOIN [dbo].[P] AS [Extent4] ) AS [Join2] ON >> ([Distinct1].[PN] = [Join2].[PN1]) AND ([Distinct1].[PN1] = >> [Join2].[PN2]) >> >> WHERE ([Join2].[PN1] <> [Join2].[PN2]) AND >> ((SUBSTRING([Join2].[PN1], >> 1 + 1, 1)) < (SUBSTRING([Join2].[PN2], 1 + 1, 1))) >> >> ) AS [Project2] >> >> ORDER BY [Project2].[SN] ASC, [Project2].[PN] ASC, [Project2].[PN1] ASC >> >> >> >> Result (LINQ for EF - C#): >> >> ========================== >> >> SN PN1 PN2 >> >> ---------- >> >> S2 P3 P5 >> >> S3 P3 P4 >> >> S5 P1 P2 >> >> S5 P1 P3 >> >> S5 P1 P4 >> >> S5 P1 P5 >> >> S5 P1 P6 >> >> S5 P2 P3 >> >> S5 P2 P4 >> >> S5 P2 P5 >> >> S5 P2 P6 >> >> S5 P3 P4 >> >> S5 P3 P5 >> >> S5 P3 P6 >> >> S5 P4 P5 >> >> S5 P4 P6 >> >> S5 P5 P6 >> >> ---------- >> >> >> >> (17 rows) >> >> >> >> Result (Manual SQL): >> >> ==================== >> >> >> >> SN PN1 PN2 >> >> S2 P3 P5 >> >> S3 P3 P4 >> >> S5 P1 P2 >> >> S5 P1 P3 >> >> S5 P1 P4 >> >> S5 P1 P5 >> >> S5 P1 P6 >> >> S5 P2 P3 >> >> S5 P2 P4 >> >> S5 P2 P5 >> >> S5 P2 P6 >> >> S5 P3 P4 >> >> S5 P3 P5 >> >> S5 P3 P6 >> >> S5 P4 P5 >> >> S5 P4 P6 >> >> S5 P5 P6 >> >> >> >> (17 rows) >> >> >> >> --- >> >> LINQ for EF looks "smart" isn't it? >> >> >> >> 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 > _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com __________ Information from ESET NOD32 Antivirus, version of virus signature database 4255 (20090717) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru From Gustav at cactus.dk Sat Jul 18 09:02:55 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Sat, 18 Jul 2009 16:02:55 +0200 Subject: [dba-VB] Using Microsoft ADO.NET Entity Framework with MySQL Message-ID: Hi Shamil I don't know, it could be, on the other hand MySQL (Sun and now Oracle) indeed have the programming resources to create the connector the way they prefer - and I think they pay a lot of attention to this because as they wrote in the recent news letter much to my surprise: For many years, Microsoft Windows has been the most popular development platform and second most popular production platform for organizations developing MySQL applications. The "CodeOnly for Entity Framework" is exactly what I had in mind. Thanks for the link - looks like I should sign up for that blog. This must be the ultimate goal - to design and specify your database directly in your code at a higher level than manually adding fields and constraints and so on. I better get that VS2010 beta! But right now - with VS2005 and 2008 - you can edit your datatables in VS and, when you press enter, VS writes the changes back to the database. I think this may be what you recall that I previously have referred to. This feature is great but "CodeOnly for Entity Framework" is certainly better. I'll recommend anyone to study the links to the MSDN blog (and the links at those pages about POCO, Plain Old CLR Objects!). If this works, one day you won't look back. /gustav >>> shamil at smsconsulting.spb.ru 18-07-2009 01:28 >>> Hi Gustav, This mySQL Connector, which can be used to work with mySQL DBs from LINQ for EF(?), is probably developed by using "Entity Client" concept/technology: http://blogs.msdn.com/adonet/archive/2007/02/14/entity-client.aspx It may happen somebody will use this technology to develop an MS Access connector - let's hope that happens real soon? Hey, MS MS Access Team - how about doing that there? Another useful technology MS "cooks" there is "CodeOnly for Entity Framework": http://blogs.msdn.com/adonet/archive/2009/06/22/feature-ctp-walkthrough-code-only-for-entity-framework.aspx You mentioned something like that here already - did you mean that "CodeOnly for Entity Framework" technology or just a concept of starting with Domain Model implemented in code/metadata and then using this Domain Model to generate actual (relational) DB model? -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, July 17, 2009 8:39 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Using Microsoft ADO.NET Entity Framework with MySQL (was: LINQ for EF Example) Also: New Release of MySQL Connector/Net 6.0.4 (GA) MySQL Connector/Net 6.0.4, a new version of the all-managed .NET driver for MySQL has been released. This is the first post-GA release of the new 6.0 connector and includes several bug fixes from the initial GA release. This release is approved for use in all scenarios and officially supports MySQL servers 4.1 and higher. View the complete list of changes: http://dev.mysql.com/doc/refman/6.0/en/connector-net-news-6-0-4.html Download Now: http://dev.mysql.com/downloads/connector/net/6.0.html /gustav >>> Gustav at cactus.dk 17-07-2009 18:29 >>> Hi all And as an apropos: Live Webinar: For ISVs - Using Microsoft ADO.NET Entity Framework with MySQL Tuesday, August 11, 2009 - 10:00am PDT The Entity Framework is a new technology that was developed by Microsoft and delivered as part of .NET 3.5 SP1. This framework abstracts the relational schema of the database and presents it as a conceptual schema. This is particularly beneficial for ISVs because by working with a conceptual schema, the commercial application developer avoids having to write complicated joins to connect all the related items of data, greatly reducing development time, resources and therefore, COGS. ISV developers can access their data using ORM-like classes, LinQ syntax, or with a new SQL syntax named EntitySQL, all of which further reduce COGS. Register for this Webinar: http://www.mysql.com/news-and-events/web-seminars/display-397.html /gustav From mmattys at rochester.rr.com Sat Jul 18 19:52:05 2009 From: mmattys at rochester.rr.com (Mike Mattys) Date: Sat, 18 Jul 2009 20:52:05 -0400 Subject: [dba-VB] LINQ for EF Example (Part III) References: <002101ca06af$517c8940$f4759bc0$@spb.ru> <2CDA2A89C2FF4A7D8A42293E87A8913C@Mattys><868FCF698D3F4BE1A75E23ACD6CF09E5@Mattys> <007501ca07a3$79738d00$6c5aa700$@spb.ru> Message-ID: <56BD4D1BAB674ACC92EA34E805C0297E@Mattys> Hi Shamil, You can count me in! - Michael R Mattys MapPoint and Database Dev www.mattysconsulting.com - ----- Original Message ----- From: "Shamil Salakhetdinov" To: "'Discussion concerning Visual Basic and related programming issues.'" Sent: Saturday, July 18, 2009 8:30 AM Subject: Re: [dba-VB] LINQ for EF Example (Part III) > Hi Mike, > > Yes, "LINQ for ADO.NET Entity Framework" to be precise :) > > What about teaming-up with Gustav and myself and to port our Northwind.NET > for MS SQL 2005 to "LINQ for ADO.NET Entity Framework"? Just an idea - and > doing that project in "lazy summer mode" without setting strict deadlines? > > Gustav how about you? > Anybody else? > > Have nice weekend. > > -- > Shamil > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Mike Mattys > Sent: Friday, July 17, 2009 7:54 PM > To: Discussion concerning Visual Basic and related programming issues. > Subject: Re: [dba-VB] LINQ for EF Example (Part III) > > Entity Framework > > Extraneous Froth :) > > - > Michael R Mattys > MapPoint and Database Dev > www.mattysconsulting.com > - > ----- Original Message ----- > From: "Mike Mattys" > To: "Discussion concerning Visual Basic and related programming issues." > > Sent: Friday, July 17, 2009 10:13 AM > Subject: Re: [dba-VB] LINQ for EF Example (Part III) > > >> Thanks, Shamil - These look great! >> I'll have to try it out. >> >> As soon as I look up EF? >> >> - >> Michael R Mattys >> MapPoint and Database Dev >> www.mattysconsulting.com >> - >> >> ----- Original Message ----- >> From: "Shamil Salakhetdinov" >> To: "'Discussion concerning Visual Basic and related programming >> issues.'" >> >> Sent: Friday, July 17, 2009 3:22 AM >> Subject: [dba-VB] LINQ for EF Example (Part III) >> >> >>> (continued) >>> >>> >>> >>> Request: >>> >>> ======== >>> >>> Get all pairs of part numbers such that some supplier supplies both of >>> the indicated parts. >>> >>> >>> >>> Generated SQL expression (obtained via SQL profiler): >>> >>> ===================================================== >>> >>> SELECT >>> >>> [Project2].[C1] AS [C1], >>> >>> [Project2].[SN] AS [SN], >>> >>> [Project2].[PN] AS [PN], >>> >>> [Project2].[PN1] AS [PN1] >>> >>> FROM ( SELECT >>> >>> [Distinct1].[PN] AS [PN], >>> >>> [Distinct1].[SN] AS [SN], >>> >>> [Distinct1].[PN1] AS [PN1], >>> >>> 1 AS [C1] >>> >>> FROM (SELECT DISTINCT >>> >>> [Extent1].[PN] AS [PN], >>> >>> [Extent1].[SN] AS [SN], >>> >>> [Extent2].[PN] AS [PN1], >>> >>> 1 AS [C1] >>> >>> FROM [dbo].[SPJ] AS [Extent1] >>> >>> INNER JOIN [dbo].[SPJ] AS [Extent2] ON [Extent1].[SN] = >>> [Extent2].[SN] ) AS [Distinct1] >>> >>> INNER JOIN (SELECT [Extent3].[CITY] AS [CITY1], [Extent3].[COLOR] >>> AS >>> [COLOR1], [Extent3].[PN] AS [PN1], [Extent3].[PNAME] AS [PNAME1], >>> [Extent3].[WEIGHT] AS [WEIGHT1], [Extent4].[CITY] AS [CITY2], >>> [Extent4].[COLOR] AS [COLOR2], [Extent4].[PN] AS [PN2], >>> [Extent4].[PNAME] >>> AS >>> [PNAME2], [Extent4].[WEIGHT] AS [WEIGHT2] >>> >>> FROM [dbo].[P] AS [Extent3] >>> >>> CROSS JOIN [dbo].[P] AS [Extent4] ) AS [Join2] ON >>> ([Distinct1].[PN] = [Join2].[PN1]) AND ([Distinct1].[PN1] = >>> [Join2].[PN2]) >>> >>> WHERE ([Join2].[PN1] <> [Join2].[PN2]) AND >>> ((SUBSTRING([Join2].[PN1], >>> 1 + 1, 1)) < (SUBSTRING([Join2].[PN2], 1 + 1, 1))) >>> >>> ) AS [Project2] >>> >>> ORDER BY [Project2].[SN] ASC, [Project2].[PN] ASC, [Project2].[PN1] ASC >>> >>> >>> >>> Result (LINQ for EF - C#): >>> >>> ========================== >>> >>> SN PN1 PN2 >>> >>> ---------- >>> >>> S2 P3 P5 >>> >>> S3 P3 P4 >>> >>> S5 P1 P2 >>> >>> S5 P1 P3 >>> >>> S5 P1 P4 >>> >>> S5 P1 P5 >>> >>> S5 P1 P6 >>> >>> S5 P2 P3 >>> >>> S5 P2 P4 >>> >>> S5 P2 P5 >>> >>> S5 P2 P6 >>> >>> S5 P3 P4 >>> >>> S5 P3 P5 >>> >>> S5 P3 P6 >>> >>> S5 P4 P5 >>> >>> S5 P4 P6 >>> >>> S5 P5 P6 >>> >>> ---------- >>> >>> >>> >>> (17 rows) >>> >>> >>> >>> Result (Manual SQL): >>> >>> ==================== >>> >>> >>> >>> SN PN1 PN2 >>> >>> S2 P3 P5 >>> >>> S3 P3 P4 >>> >>> S5 P1 P2 >>> >>> S5 P1 P3 >>> >>> S5 P1 P4 >>> >>> S5 P1 P5 >>> >>> S5 P1 P6 >>> >>> S5 P2 P3 >>> >>> S5 P2 P4 >>> >>> S5 P2 P5 >>> >>> S5 P2 P6 >>> >>> S5 P3 P4 >>> >>> S5 P3 P5 >>> >>> S5 P3 P6 >>> >>> S5 P4 P5 >>> >>> S5 P4 P6 >>> >>> S5 P5 P6 >>> >>> >>> >>> (17 rows) >>> >>> >>> >>> --- >>> >>> LINQ for EF looks "smart" isn't it? >>> >>> >>> >>> 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 >> > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > > __________ Information from ESET NOD32 Antivirus, version of virus > signature > database 4255 (20090717) __________ > > The message was checked by ESET NOD32 Antivirus. > > http://www.esetnod32.ru > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From Gustav at cactus.dk Sun Jul 19 02:25:30 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Sun, 19 Jul 2009 09:25:30 +0200 Subject: [dba-VB] LINQ for EF Example (Part III) Message-ID: Hi Shamil Of course, in lazy summer mode, as I probably will be off for a week or so from late next week. /gustav >>> shamil at smsconsulting.spb.ru 18-07-2009 14:30 >>> Hi Mike, Yes, "LINQ for ADO.NET Entity Framework" to be precise :) What about teaming-up with Gustav and myself and to port our Northwind.NET for MS SQL 2005 to "LINQ for ADO.NET Entity Framework"? Just an idea - and doing that project in "lazy summer mode" without setting strict deadlines? Gustav how about you? Anybody else? Have nice weekend. -- Shamil From shamil at smsconsulting.spb.ru Tue Jul 21 12:29:34 2009 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Tue, 21 Jul 2009 21:29:34 +0400 Subject: [dba-VB] LINQ for EF Example (Part III) In-Reply-To: References: Message-ID: <002b01ca0a28$d451f130$7cf5d390$@spb.ru> Hi Mike and Gustav, Thank you for your approval to team up to develop Northwind.NET for EF. Let's first of all implement a simple sample form (Shippers, Suppliers...) with BindingNavigator bound to object data source, and a simple sample report (Shippers) bound to object data source, and then implement all the other forms and reports of Northwind.NET using samples as templates? Do you see any other ways to proceed with this project? Thank you. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Sunday, July 19, 2009 11:26 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] LINQ for EF Example (Part III) Hi Shamil Of course, in lazy summer mode, as I probably will be off for a week or so from late next week. /gustav >>> shamil at smsconsulting.spb.ru 18-07-2009 14:30 >>> Hi Mike, Yes, "LINQ for ADO.NET Entity Framework" to be precise :) What about teaming-up with Gustav and myself and to port our Northwind.NET for MS SQL 2005 to "LINQ for ADO.NET Entity Framework"? Just an idea - and doing that project in "lazy summer mode" without setting strict deadlines? Gustav how about you? Anybody else? Have nice weekend. -- Shamil _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com __________ Information from ESET NOD32 Antivirus, version of virus signature database 4262 (20090720) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru __________ Information from ESET NOD32 Antivirus, version of virus signature database 4264 (20090721) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru From mmattys at rochester.rr.com Wed Jul 22 08:16:45 2009 From: mmattys at rochester.rr.com (Mike Mattys) Date: Wed, 22 Jul 2009 09:16:45 -0400 Subject: [dba-VB] LINQ for EF Example (Part III) References: <002b01ca0a28$d451f130$7cf5d390$@spb.ru> Message-ID: <1B6FE550BFA84B93987EF3BF91940CA1@Mattys> Hi Shamil, Still pretty busy ... I hope to start tomorrow evening. - Michael R Mattys MapPoint and Database Dev www.mattysconsulting.com - ----- Original Message ----- From: "Shamil Salakhetdinov" To: "'Discussion concerning Visual Basic and related programming issues.'" Sent: Tuesday, July 21, 2009 1:29 PM Subject: Re: [dba-VB] LINQ for EF Example (Part III) > Hi Mike and Gustav, > > Thank you for your approval to team up to develop Northwind.NET for EF. > Let's first of all implement a simple sample form (Shippers, Suppliers...) > with BindingNavigator bound to object data source, and a simple sample > report (Shippers) bound to object data source, and then implement all the > other forms and reports of Northwind.NET using samples as templates? > > Do you see any other ways to proceed with this project? > > Thank you. > > -- > Shamil > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: Sunday, July 19, 2009 11:26 AM > To: dba-vb at databaseadvisors.com > Subject: Re: [dba-VB] LINQ for EF Example (Part III) > > Hi Shamil > > Of course, in lazy summer mode, as I probably will be off for a week or so > from late next week. > > /gustav > > >>>> shamil at smsconsulting.spb.ru 18-07-2009 14:30 >>> > Hi Mike, > > Yes, "LINQ for ADO.NET Entity Framework" to be precise :) > > What about teaming-up with Gustav and myself and to port our Northwind.NET > for MS SQL 2005 to "LINQ for ADO.NET Entity Framework"? Just an idea - and > doing that project in "lazy summer mode" without setting strict deadlines? > > Gustav how about you? > Anybody else? > > Have nice weekend. > > -- > Shamil > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > > __________ Information from ESET NOD32 Antivirus, version of virus > signature > database 4262 (20090720) __________ > > The message was checked by ESET NOD32 Antivirus. > > http://www.esetnod32.ru > > > > > __________ Information from ESET NOD32 Antivirus, version of virus > signature > database 4264 (20090721) __________ > > The message was checked by ESET NOD32 Antivirus. > > http://www.esetnod32.ru > > > _______________________________________________ > 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 Jul 22 09:12:33 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 22 Jul 2009 10:12:33 -0400 Subject: [dba-VB] Simple web project In-Reply-To: <1B6FE550BFA84B93987EF3BF91940CA1@Mattys> References: <002b01ca0a28$d451f130$7cf5d390$@spb.ru> <1B6FE550BFA84B93987EF3BF91940CA1@Mattys> Message-ID: <4A671E51.1020303@colbyconsulting.com> I need some advice. My wife is on the PTA. She (I as her husband) was tasked with a simple database for tracking volunteer work for the PTA. They have to track (they get "credit" for) hours that volunteers put in. This is drop dead simple for an Access database, tblVolunteer, tblVolunteerHours, and MAYBE tblLocation. Plus a report to get the data out. The problem of course is that a database requires Access (or a runtime installation). Thus... Because it is such a simple database, I am thinking of doing it as a .Net application and make it available on the web so that any authorized person can enter the data or run the report. Questions (how do I do): 1) Web hosting? 2) Security model? 3) Other issues I am not even considering? 4) Which .Net product? Comments and advice requested. John W. Colby www.ColbyConsulting.com From ssharkins at gmail.com Wed Jul 22 10:02:06 2009 From: ssharkins at gmail.com (Susan Harkins) Date: Wed, 22 Jul 2009 11:02:06 -0400 Subject: [dba-VB] Simple web project References: <002b01ca0a28$d451f130$7cf5d390$@spb.ru><1B6FE550BFA84B93987EF3BF91940CA1@Mattys> <4A671E51.1020303@colbyconsulting.com> Message-ID: I think it's a great idea, but, you are assuming that all volunteers have access to the Web. That might currently be the case. However, that could change at any time. Will the school give volunteers access to this web-based application via a school computer? If that's the case, it doesn't even need to be web-based. You could create a simple .exe and drop it on the computer's desktop. Even VB Express can handle that. I would recommend some kind of group/user security because... I hate to say it, but I can easily see someone messing with the other volunteer's hours. That's only necessary if they're entering their own information. Web hosting shouldn't be a problem. I would imagine the school already has that set up. Susan H. > > Because it is such a simple database, I am thinking of doing it as a .Net > application and make it > available on the web so that any authorized person can enter the data or > run the report. > > Questions (how do I do): > > 1) Web hosting? > 2) Security model? > 3) Other issues I am not even considering? > 4) Which .Net product? > > Comments and advice requested. From jwcolby at colbyconsulting.com Wed Jul 22 10:17:42 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 22 Jul 2009 11:17:42 -0400 Subject: [dba-VB] SPAM-LOW: Re: Simple web project In-Reply-To: References: <002b01ca0a28$d451f130$7cf5d390$@spb.ru><1B6FE550BFA84B93987EF3BF91940CA1@Mattys> <4A671E51.1020303@colbyconsulting.com> Message-ID: <4A672D96.4000509@colbyconsulting.com> Susan, Actually the data entry is done by one person. They have a "sign in / out" sheet that they then manually figure out the hours and total. That is a lot of work. I was just thinking of the data store being available form any web enabled computer as opposed to my wife's computer or some other person's computer. Handing off the data entry becomes much easier. Seeing the numbers becomes much easier. And yes, the users do have to have web access. John W. Colby www.ColbyConsulting.com Susan Harkins wrote: > I think it's a great idea, but, you are assuming that all volunteers have > access to the Web. That might currently be the case. However, that could > change at any time. Will the school give volunteers access to this web-based > application via a school computer? If that's the case, it doesn't even need > to be web-based. You could create a simple .exe and drop it on the > computer's desktop. Even VB Express can handle that. > > I would recommend some kind of group/user security because... I hate to say > it, but I can easily see someone messing with the other volunteer's hours. > That's only necessary if they're entering their own information. > > Web hosting shouldn't be a problem. I would imagine the school already has > that set up. > > Susan H. > > >> Because it is such a simple database, I am thinking of doing it as a .Net >> application and make it >> available on the web so that any authorized person can enter the data or >> run the report. >> >> Questions (how do I do): >> >> 1) Web hosting? >> 2) Security model? >> 3) Other issues I am not even considering? >> 4) Which .Net product? >> >> Comments and advice requested. > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From max.wanadoo at gmail.com Wed Jul 22 10:20:16 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Wed, 22 Jul 2009 16:20:16 +0100 Subject: [dba-VB] Simple web project In-Reply-To: <4A671E51.1020303@colbyconsulting.com> References: <002b01ca0a28$d451f130$7cf5d390$@spb.ru> <1B6FE550BFA84B93987EF3BF91940CA1@Mattys> <4A671E51.1020303@colbyconsulting.com> Message-ID: <4a672e33.0506d00a.5f9a.ffff93d1@mx.google.com> Ha! Watch this grow exponentially. Can we just add this bit, and this bit, and, oh bye the way would it be possible..and then reports... Hahaha good luck with your "drop dead simple" DB. Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: 22 July 2009 15:13 To: Discussion concerning Visual Basic and related programming issues.; Access Developers discussion and problem solving Subject: [dba-VB] Simple web project I need some advice. My wife is on the PTA. She (I as her husband) was tasked with a simple database for tracking volunteer work for the PTA. They have to track (they get "credit" for) hours that volunteers put in. This is drop dead simple for an Access database, tblVolunteer, tblVolunteerHours, and MAYBE tblLocation. Plus a report to get the data out. The problem of course is that a database requires Access (or a runtime installation). Thus... Because it is such a simple database, I am thinking of doing it as a .Net application and make it available on the web so that any authorized person can enter the data or run the report. Questions (how do I do): 1) Web hosting? 2) Security model? 3) Other issues I am not even considering? 4) Which .Net product? Comments and advice requested. 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 max.wanadoo at gmail.com Wed Jul 22 10:21:17 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Wed, 22 Jul 2009 16:21:17 +0100 Subject: [dba-VB] LINQ for EF Example (Part III) In-Reply-To: <1B6FE550BFA84B93987EF3BF91940CA1@Mattys> References: <002b01ca0a28$d451f130$7cf5d390$@spb.ru> <1B6FE550BFA84B93987EF3BF91940CA1@Mattys> Message-ID: <4a672e70.0702d00a.72d7.ffffab6f@mx.google.com> ...he's doing proximity calculations... Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Mike Mattys Sent: 22 July 2009 14:17 To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] LINQ for EF Example (Part III) Hi Shamil, Still pretty busy ... I hope to start tomorrow evening. - Michael R Mattys MapPoint and Database Dev www.mattysconsulting.com - ----- Original Message ----- From: "Shamil Salakhetdinov" To: "'Discussion concerning Visual Basic and related programming issues.'" Sent: Tuesday, July 21, 2009 1:29 PM Subject: Re: [dba-VB] LINQ for EF Example (Part III) > Hi Mike and Gustav, > > Thank you for your approval to team up to develop Northwind.NET for EF. > Let's first of all implement a simple sample form (Shippers, Suppliers...) > with BindingNavigator bound to object data source, and a simple sample > report (Shippers) bound to object data source, and then implement all the > other forms and reports of Northwind.NET using samples as templates? > > Do you see any other ways to proceed with this project? > > Thank you. > > -- > Shamil > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: Sunday, July 19, 2009 11:26 AM > To: dba-vb at databaseadvisors.com > Subject: Re: [dba-VB] LINQ for EF Example (Part III) > > Hi Shamil > > Of course, in lazy summer mode, as I probably will be off for a week or so > from late next week. > > /gustav > > >>>> shamil at smsconsulting.spb.ru 18-07-2009 14:30 >>> > Hi Mike, > > Yes, "LINQ for ADO.NET Entity Framework" to be precise :) > > What about teaming-up with Gustav and myself and to port our Northwind.NET > for MS SQL 2005 to "LINQ for ADO.NET Entity Framework"? Just an idea - and > doing that project in "lazy summer mode" without setting strict deadlines? > > Gustav how about you? > Anybody else? > > Have nice weekend. > > -- > Shamil > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > > __________ Information from ESET NOD32 Antivirus, version of virus > signature > database 4262 (20090720) __________ > > The message was checked by ESET NOD32 Antivirus. > > http://www.esetnod32.ru > > > > > __________ Information from ESET NOD32 Antivirus, version of virus > signature > database 4264 (20090721) __________ > > The message was checked by ESET NOD32 Antivirus. > > http://www.esetnod32.ru > > > _______________________________________________ > 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 DWUTKA at Marlow.com Wed Jul 22 10:30:38 2009 From: DWUTKA at Marlow.com (Drew Wutka) Date: Wed, 22 Jul 2009 10:30:38 -0500 Subject: [dba-VB] Simple web project In-Reply-To: <4A671E51.1020303@colbyconsulting.com> References: <002b01ca0a28$d451f130$7cf5d390$@spb.ru><1B6FE550BFA84B93987EF3BF91940CA1@Mattys> <4A671E51.1020303@colbyconsulting.com> Message-ID: If this is something that you really want to keep SIMPLE, then just use plain old ASP, on whatever site you have access to. Make the data entry hours 'password protected' (either from the web side, or in the asp itself). You have your own site, don't you? Just put it there. Again, that's if you are going to keep this SIMPLE! Drew -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, July 22, 2009 9:13 AM To: Discussion concerning Visual Basic and related programming issues.; Access Developers discussion and problem solving Subject: [dba-VB] Simple web project I need some advice. My wife is on the PTA. She (I as her husband) was tasked with a simple database for tracking volunteer work for the PTA. They have to track (they get "credit" for) hours that volunteers put in. This is drop dead simple for an Access database, tblVolunteer, tblVolunteerHours, and MAYBE tblLocation. Plus a report to get the data out. The problem of course is that a database requires Access (or a runtime installation). Thus... Because it is such a simple database, I am thinking of doing it as a .Net application and make it available on the web so that any authorized person can enter the data or run the report. Questions (how do I do): 1) Web hosting? 2) Security model? 3) Other issues I am not even considering? 4) Which .Net product? Comments and advice requested. 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 jwcolby at colbyconsulting.com Wed Jul 22 10:30:50 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 22 Jul 2009 11:30:50 -0400 Subject: [dba-VB] Simple web project In-Reply-To: <4a672e33.0506d00a.5f9a.ffff93d1@mx.google.com> References: <002b01ca0a28$d451f130$7cf5d390$@spb.ru> <1B6FE550BFA84B93987EF3BF91940CA1@Mattys> <4A671E51.1020303@colbyconsulting.com> <4a672e33.0506d00a.5f9a.ffff93d1@mx.google.com> Message-ID: <4A6730AA.6000807@colbyconsulting.com> ROTFL. Yea, I know that! ;) OTOH I haven't persuaded a client to pay me to learn this stuff either. A volunteer project allows me to do it at my own pace, add stuff if I want etc. John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > Ha! Watch this grow exponentially. Can we just add this bit, and this bit, > and, oh bye the way would it be possible..and then reports... > > Hahaha good luck with your "drop dead simple" DB. > > Max > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: 22 July 2009 15:13 > To: Discussion concerning Visual Basic and related programming issues.; > Access Developers discussion and problem solving > Subject: [dba-VB] Simple web project > > I need some advice. My wife is on the PTA. She (I as her husband) was > tasked with a simple > database for tracking volunteer work for the PTA. They have to track (they > get "credit" for) hours > that volunteers put in. > > This is drop dead simple for an Access database, tblVolunteer, > tblVolunteerHours, and MAYBE > tblLocation. Plus a report to get the data out. The problem of course is > that a database requires > Access (or a runtime installation). Thus... > > Because it is such a simple database, I am thinking of doing it as a .Net > application and make it > available on the web so that any authorized person can enter the data or run > the report. > > Questions (how do I do): > > 1) Web hosting? > 2) Security model? > 3) Other issues I am not even considering? > 4) Which .Net product? > > Comments and advice requested. > > 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 jwcolby at colbyconsulting.com Wed Jul 22 11:33:36 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 22 Jul 2009 12:33:36 -0400 Subject: [dba-VB] Simple web project In-Reply-To: References: <002b01ca0a28$d451f130$7cf5d390$@spb.ru><1B6FE550BFA84B93987EF3BF91940CA1@Mattys> <4A671E51.1020303@colbyconsulting.com> Message-ID: <4A673F60.50005@colbyconsulting.com> I said simple, not edit it in notepad. ;) John W. Colby www.ColbyConsulting.com Drew Wutka wrote: > If this is something that you really want to keep SIMPLE, then just use > plain old ASP, on whatever site you have access to. Make the data entry > hours 'password protected' (either from the web side, or in the asp > itself). You have your own site, don't you? Just put it there. > > Again, that's if you are going to keep this SIMPLE! > > Drew > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Wednesday, July 22, 2009 9:13 AM > To: Discussion concerning Visual Basic and related programming issues.; > Access Developers discussion and problem solving > Subject: [dba-VB] Simple web project > > I need some advice. My wife is on the PTA. She (I as her husband) was > tasked with a simple > database for tracking volunteer work for the PTA. They have to track > (they get "credit" for) hours > that volunteers put in. > > This is drop dead simple for an Access database, tblVolunteer, > tblVolunteerHours, and MAYBE > tblLocation. Plus a report to get the data out. The problem of course > is that a database requires > Access (or a runtime installation). Thus... > > Because it is such a simple database, I am thinking of doing it as a > .Net application and make it > available on the web so that any authorized person can enter the data or > run the report. > > Questions (how do I do): > > 1) Web hosting? > 2) Security model? > 3) Other issues I am not even considering? > 4) Which .Net product? > > Comments and advice requested. > > 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 DWUTKA at Marlow.com Wed Jul 22 11:48:28 2009 From: DWUTKA at Marlow.com (Drew Wutka) Date: Wed, 22 Jul 2009 11:48:28 -0500 Subject: [dba-VB] Simple web project In-Reply-To: <4A673F60.50005@colbyconsulting.com> References: <002b01ca0a28$d451f130$7cf5d390$@spb.ru><1B6FE550BFA84B93987EF3BF91940CA1@Mattys> <4A671E51.1020303@colbyconsulting.com> <4A673F60.50005@colbyconsulting.com> Message-ID: LOL, I use Microsoft Script Editor (I believe it comes with Office), to write ASP. It acts like an VBE of sorts for ASP (intellisense for both asp and html). Drew -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, July 22, 2009 11:34 AM To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Simple web project I said simple, not edit it in notepad. ;) John W. Colby www.ColbyConsulting.com Drew Wutka wrote: > If this is something that you really want to keep SIMPLE, then just use > plain old ASP, on whatever site you have access to. Make the data entry > hours 'password protected' (either from the web side, or in the asp > itself). You have your own site, don't you? Just put it there. > > Again, that's if you are going to keep this SIMPLE! > > Drew > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Wednesday, July 22, 2009 9:13 AM > To: Discussion concerning Visual Basic and related programming issues.; > Access Developers discussion and problem solving > Subject: [dba-VB] Simple web project > > I need some advice. My wife is on the PTA. She (I as her husband) was > tasked with a simple > database for tracking volunteer work for the PTA. They have to track > (they get "credit" for) hours > that volunteers put in. > > This is drop dead simple for an Access database, tblVolunteer, > tblVolunteerHours, and MAYBE > tblLocation. Plus a report to get the data out. The problem of course > is that a database requires > Access (or a runtime installation). Thus... > > Because it is such a simple database, I am thinking of doing it as a > .Net application and make it > available on the web so that any authorized person can enter the data or > run the report. > > Questions (how do I do): > > 1) Web hosting? > 2) Security model? > 3) Other issues I am not even considering? > 4) Which .Net product? > > Comments and advice requested. > > 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 > > _______________________________________________ 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 shamil at smsconsulting.spb.ru Wed Jul 22 12:59:50 2009 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Wed, 22 Jul 2009 21:59:50 +0400 Subject: [dba-VB] LINQ for EF Example (Part III) In-Reply-To: <1B6FE550BFA84B93987EF3BF91940CA1@Mattys> References: <002b01ca0a28$d451f130$7cf5d390$@spb.ru> <1B6FE550BFA84B93987EF3BF91940CA1@Mattys> Message-ID: <006a01ca0af6$3709eb70$a51dc250$@spb.ru> Hi Mike, No, problem. This is "lazy summer mode" project. It doesn't require commitments for deadlines currently. I'm pretty busy here too. And as Gustav I plan to have some "holiday breaks". It may happen I will start working on subject project next week only. I suppose that as soon as we get a sample form and report ready we will proceed much quicker - maybe you know about/have seen any ready to (re-)use in this project samples? I failed to find them on Internet, have a missed them? Anybody here please advise on samples of WinForms and MS ReportViewer reports bound to ObjectDataSources based on/built from ADO.NET Entity Framework model objects. WinForm sample should use BindingNavigator. Thank you. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Mike Mattys Sent: Wednesday, July 22, 2009 5:17 PM To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] LINQ for EF Example (Part III) Hi Shamil, Still pretty busy ... I hope to start tomorrow evening. - Michael R Mattys MapPoint and Database Dev www.mattysconsulting.com - ----- Original Message ----- From: "Shamil Salakhetdinov" To: "'Discussion concerning Visual Basic and related programming issues.'" Sent: Tuesday, July 21, 2009 1:29 PM Subject: Re: [dba-VB] LINQ for EF Example (Part III) > Hi Mike and Gustav, > > Thank you for your approval to team up to develop Northwind.NET for EF. > Let's first of all implement a simple sample form (Shippers, Suppliers...) > with BindingNavigator bound to object data source, and a simple sample > report (Shippers) bound to object data source, and then implement all the > other forms and reports of Northwind.NET using samples as templates? > > Do you see any other ways to proceed with this project? > > Thank you. > > -- > Shamil > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: Sunday, July 19, 2009 11:26 AM > To: dba-vb at databaseadvisors.com > Subject: Re: [dba-VB] LINQ for EF Example (Part III) > > Hi Shamil > > Of course, in lazy summer mode, as I probably will be off for a week or so > from late next week. > > /gustav > > >>>> shamil at smsconsulting.spb.ru 18-07-2009 14:30 >>> > Hi Mike, > > Yes, "LINQ for ADO.NET Entity Framework" to be precise :) > > What about teaming-up with Gustav and myself and to port our Northwind.NET > for MS SQL 2005 to "LINQ for ADO.NET Entity Framework"? Just an idea - and > doing that project in "lazy summer mode" without setting strict deadlines? > > Gustav how about you? > Anybody else? > > Have nice weekend. > > -- > Shamil > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > > __________ Information from ESET NOD32 Antivirus, version of virus > signature > database 4262 (20090720) __________ > > The message was checked by ESET NOD32 Antivirus. > > http://www.esetnod32.ru > > > > > __________ Information from ESET NOD32 Antivirus, version of virus > signature > database 4264 (20090721) __________ > > The message was checked by ESET NOD32 Antivirus. > > http://www.esetnod32.ru > > > _______________________________________________ > 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 __________ Information from ESET NOD32 Antivirus, version of virus signature database 4267 (20090722) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru __________ Information from ESET NOD32 Antivirus, version of virus signature database 4267 (20090722) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru From shamil at smsconsulting.spb.ru Wed Jul 22 12:59:50 2009 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Wed, 22 Jul 2009 21:59:50 +0400 Subject: [dba-VB] Simple web project In-Reply-To: <4A671E51.1020303@colbyconsulting.com> References: <002b01ca0a28$d451f130$7cf5d390$@spb.ru> <1B6FE550BFA84B93987EF3BF91940CA1@Mattys> <4A671E51.1020303@colbyconsulting.com> Message-ID: <006e01ca0af6$3acb1220$b0613660$@spb.ru> Hi John, I'd recommend you to use ASP.Net 2.0 or 3.5 with MS SQL Server 2005/2008 (Express) as backend (please see below why MS SQL Server is IMO below). <<< 1) Web hosting? >>> I do use PARKING.RU - http://hosting.parking.ru/text.aspx?s=W2008 It works well for me as well as for my customers, one of them from your country "wild west" (WA), used this hosting as a "test-bed" to run her ASP.NET web service in 24x7 mode for several months, and that was very heavy duty web service with many requests coming to it every second. I'm not sure you'll pick to use the above hosting provider as it's located in Moscow, Russia. You can try then http://www.discountasp.net/ <<< 2) Security model? >>> Built-in ASP.NET 2.0/3.5 Membership system - runs only when MS SQL Server 2005/2008 (Express) is used for backend. Supports Members and Roles (and some other useful stuff), provides built-in login/logout (and related) ASP.NET controls. <<< 3) Other issues I am not even considering? >>> Improvement Ravine :) - at least you didn't mention it here - you'll have to have some patience and courage to get through it as on first steps you'll feel yourself extremely unproductive comparing with what you can do using MS Access: Source: http://martinfowler.com/bliki/ImprovementRavine.html <<< 4) Which .Net product? >>> ASP.NET 3.5 SP1 (FYI: is supports both ASP.NET 2.0 and 3.5) --- As for some simple samples of ASP.NET WebForms development for MS Access (AccessDataSource) you can find them in our Northwind.Net solution here: Northwind.NET.v.1.2.Sources.zip http://northwind.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=26600#D ownloadId=66932 in Northwind.ASP.NET.MSAccess.Reporting web project. I have made this web project entry web form available online here: http://shamils-4.hosting.parking.ru/nw/default1.aspx In the bottom of the above web page you'll find: +++++++ Northwind Forms (Sorry, just rough mock-ups mainly generated by VS2008 with a few code lines in code-behind to coordinate parent-child data retrieval using AccessDataSources) Shippers Categories Customers Employees Suppliers Products Orders -------- Try them this week. (I will remove all sample webforms allowing to edit data, and I will restore original MS Access db next week). If you or anybody else here wanted to collect some data access stats while playing with this db - I can add those stats collection code - please propose what stats would be interesting to collect (a few). Thank you. -- Shamil P.S. Have a look also here - the following sample web site is done (mainly generated by VS2008 from some of its templates) in about ten minutes: http://shamils-4.hosting.parking.ru/NorthwindNetDynamicDataWebSite/Default.a spx This is ADO.NET Entity Framework in action - it requires MS SQL Server 2005/2008 (Express) as backend, and .NET Framework 3.5 SP1 -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, July 22, 2009 6:13 PM To: Discussion concerning Visual Basic and related programming issues.; Access Developers discussion and problem solving Subject: [dba-VB] Simple web project I need some advice. My wife is on the PTA. She (I as her husband) was tasked with a simple database for tracking volunteer work for the PTA. They have to track (they get "credit" for) hours that volunteers put in. This is drop dead simple for an Access database, tblVolunteer, tblVolunteerHours, and MAYBE tblLocation. Plus a report to get the data out. The problem of course is that a database requires Access (or a runtime installation). Thus... Because it is such a simple database, I am thinking of doing it as a .Net application and make it available on the web so that any authorized person can enter the data or run the report. Questions (how do I do): 1) Web hosting? 2) Security model? 3) Other issues I am not even considering? 4) Which .Net product? Comments and advice requested. 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 __________ Information from ESET NOD32 Antivirus, version of virus signature database 4267 (20090722) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru __________ Information from ESET NOD32 Antivirus, version of virus signature database 4267 (20090722) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru From Gustav at cactus.dk Thu Jul 23 07:36:05 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 23 Jul 2009 14:36:05 +0200 Subject: [dba-VB] LINQ for EF Example (Part III) Message-ID: Hi Shamil and team That's fine with me. I'm on my way with Rita (wife) to the nature of Sweden and Norway for a relaxing break and will be back Monday 2009-08-03. Will try to view the inbox now and then but won't promise anything ... /gustav >>> shamil at smsconsulting.spb.ru 21-07-2009 19:29 >>> Hi Mike and Gustav, Thank you for your approval to team up to develop Northwind.NET for EF. Let's first of all implement a simple sample form (Shippers, Suppliers...) with BindingNavigator bound to object data source, and a simple sample report (Shippers) bound to object data source, and then implement all the other forms and reports of Northwind.NET using samples as templates? Do you see any other ways to proceed with this project? Thank you. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Sunday, July 19, 2009 11:26 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] LINQ for EF Example (Part III) Hi Shamil Of course, in lazy summer mode, as I probably will be off for a week or so from late next week. /gustav >>> shamil at smsconsulting.spb.ru 18-07-2009 14:30 >>> Hi Mike, Yes, "LINQ for ADO.NET Entity Framework" to be precise :) What about teaming-up with Gustav and myself and to port our Northwind.NET for MS SQL 2005 to "LINQ for ADO.NET Entity Framework"? Just an idea - and doing that project in "lazy summer mode" without setting strict deadlines? Gustav how about you? Anybody else? Have nice weekend. -- Shamil From shamil at smsconsulting.spb.ru Thu Jul 23 12:17:46 2009 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Thu, 23 Jul 2009 21:17:46 +0400 Subject: [dba-VB] ADO.NET Entity Framework with Winforms and MS eportViewer report sample project... Message-ID: <00dd01ca0bb9$806f8d10$814ea730$@spb.ru> Hi All, FYI: I have just released on http://northwind.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=26600 - SPJ_SQL2005.zip - C.J.Date sample database (prepared here) - previous version was broken; - SPJWinFormsForEF_VS2008.zip - VS2008 sample project to demonstrate WinForms and MS ReportViewer reports bound to ADO.NET Entity Framework object datasources; - SPJWinFormsForEF_Executables.zip - just executables and sample database for the above sample project. Please test the samples if you're interested in the subject technology. Please inform me here in the case of any issues to fix. Please note that the above sample is just a preparation of conversion of our Northwind.NET WinForms project to use ADO.NET Entity Framework. Thank you. -- Shamil From shamil at smsconsulting.spb.ru Thu Jul 23 12:17:46 2009 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Thu, 23 Jul 2009 21:17:46 +0400 Subject: [dba-VB] LINQ for EF Example (Part III) In-Reply-To: References: Message-ID: <00e201ca0bb9$81b21f30$85165d90$@spb.ru> Hi Gustav, Good luck with your trip to Sweden and Norway (BTW, I plan to have a short trip to Finland (Imatra, Laapenranta and Helsinki) on 26-28 this months.) FYI: I have just got released a small VS2008 project: - SPJWinFormsForEF_VS2008.zip - VS2008 sample project to demonstrate WinForms and MS ReportViewer reports bound to ADO.NET Entity Framework object datasources; - SPJWinFormsForEF_Executables.zip - just executables and sample database for the above sample project. which can be used as sample to work on converting Northwind.NET to use ADO.NET Entity Framework object data sources. Thank you. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, July 23, 2009 4:36 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] LINQ for EF Example (Part III) Hi Shamil and team That's fine with me. I'm on my way with Rita (wife) to the nature of Sweden and Norway for a relaxing break and will be back Monday 2009-08-03. Will try to view the inbox now and then but won't promise anything ... /gustav >>> shamil at smsconsulting.spb.ru 21-07-2009 19:29 >>> Hi Mike and Gustav, Thank you for your approval to team up to develop Northwind.NET for EF. Let's first of all implement a simple sample form (Shippers, Suppliers...) with BindingNavigator bound to object data source, and a simple sample report (Shippers) bound to object data source, and then implement all the other forms and reports of Northwind.NET using samples as templates? Do you see any other ways to proceed with this project? Thank you. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Sunday, July 19, 2009 11:26 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] LINQ for EF Example (Part III) Hi Shamil Of course, in lazy summer mode, as I probably will be off for a week or so from late next week. /gustav >>> shamil at smsconsulting.spb.ru 18-07-2009 14:30 >>> Hi Mike, Yes, "LINQ for ADO.NET Entity Framework" to be precise :) What about teaming-up with Gustav and myself and to port our Northwind.NET for MS SQL 2005 to "LINQ for ADO.NET Entity Framework"? Just an idea - and doing that project in "lazy summer mode" without setting strict deadlines? Gustav how about you? Anybody else? Have nice weekend. -- Shamil _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com __________ Information from ESET NOD32 Antivirus, version of virus signature database 4270 (20090723) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru __________ Information from ESET NOD32 Antivirus, version of virus signature database 4270 (20090723) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru From mmattys at rochester.rr.com Thu Jul 23 13:33:19 2009 From: mmattys at rochester.rr.com (Mike Mattys) Date: Thu, 23 Jul 2009 14:33:19 -0400 Subject: [dba-VB] ADO.NET Entity Framework with Winforms and MS eportViewerreport sample project... References: <00dd01ca0bb9$806f8d10$814ea730$@spb.ru> Message-ID: <943FA89E7E1E4318807137B9AB209E95@Mattys> Thanks, Shamil - Michael R Mattys MapPoint and Database Dev www.mattysconsulting.com - ----- Original Message ----- From: "Shamil Salakhetdinov" To: "'Discussion concerning Visual Basic and related programming issues.'" Sent: Thursday, July 23, 2009 1:17 PM Subject: [dba-VB] ADO.NET Entity Framework with Winforms and MS eportViewerreport sample project... > Hi All, > > > > FYI: I have just released on > http://northwind.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=26600 > > > > - SPJ_SQL2005.zip - C.J.Date sample database (prepared here) - previous > version was broken; > > - SPJWinFormsForEF_VS2008.zip - VS2008 sample project to demonstrate > WinForms and MS ReportViewer reports bound to ADO.NET Entity Framework > object datasources; > > - SPJWinFormsForEF_Executables.zip - just executables and sample database > for the above sample project. > > > > Please test the samples if you're interested in the subject technology. > > Please inform me here in the case of any issues to fix. > > Please note that the above sample is just a preparation of conversion of > our > Northwind.NET WinForms project to use ADO.NET Entity Framework. > > > > Thank you. > > > > -- > > Shamil > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From mmattys at rochester.rr.com Thu Jul 23 13:34:08 2009 From: mmattys at rochester.rr.com (Mike Mattys) Date: Thu, 23 Jul 2009 14:34:08 -0400 Subject: [dba-VB] LINQ for EF Example (Part III) References: Message-ID: <556D4755E8F944039B38F1A631117CF1@Mattys> I hope you enjoy your vacation, Gustav. - Michael R Mattys MapPoint and Database Dev www.mattysconsulting.com - ----- Original Message ----- From: "Gustav Brock" To: Sent: Thursday, July 23, 2009 8:36 AM Subject: Re: [dba-VB] LINQ for EF Example (Part III) > Hi Shamil and team > > That's fine with me. > > I'm on my way with Rita (wife) to the nature of Sweden and Norway for a > relaxing break and will be back Monday 2009-08-03. Will try to view the > inbox now and then but won't promise anything ... > > /gustav From fhtapia at gmail.com Wed Jul 29 23:38:45 2009 From: fhtapia at gmail.com (Francisco Tapia) Date: Wed, 29 Jul 2009 21:38:45 -0700 Subject: [dba-VB] QueryStringParameter error Message-ID: Hi, I've not been active on this list at all, but I do have a quick question someone here may have already ran into. I am working on an ASP.NET (visual studio 2008) and I created a few pages that all work fairly similarly, where there is a GridView on the main Entity page, and Add pages along with Edit pages created with Details View controls. In the GridView page, I add an edit button and the link points the ~/language/EditLanguage.aspx?intLanguage={0}. On the receiving page I edited the SELECT command with the proper WHERE clause as WHERE intLanguage= @intLanguage. The QueryStringParameter is as follows: so this is the same for my other pages such as my Release page and my Category page and both work fine, but the language page is different... the PKID is the intLanguage field, but it's not an autoincremented number (since this project is still in it's infancy, I've thought about adding a true surrogate PKID and see if that is the problem... note, If i edit the select command w/o the where, the page loads fine (well w/o the parameter being passed so my DetailsView control only displays the first record in the recordset, I'm new to ASP.NET and don't really know how to troubleshoot this.... any ideas? -Francisco http://sqlthis.blogspot.com | Tsql and More... From ebarro at verizon.net Fri Jul 31 23:48:26 2009 From: ebarro at verizon.net (Eric Barro) Date: Fri, 31 Jul 2009 21:48:26 -0700 Subject: [dba-VB] QueryStringParameter error In-Reply-To: References: Message-ID: <07C21F79042A4BDD98A27EF049A0B312@advancedinput.com> Francico, I haven't really worked with the syntax you show below but I've seen a buddy of mine use it as well. Try and put Response.Write(intLanguage) in your code to debug and see if it is passing the value. Eric -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Francisco Tapia Sent: Wednesday, July 29, 2009 9:39 PM To: Discussion concerning Visual Basic and related programming issues. Subject: [dba-VB] QueryStringParameter error Hi, I've not been active on this list at all, but I do have a quick question someone here may have already ran into. I am working on an ASP.NET (visual studio 2008) and I created a few pages that all work fairly similarly, where there is a GridView on the main Entity page, and Add pages along with Edit pages created with Details View controls. In the GridView page, I add an edit button and the link points the ~/language/EditLanguage.aspx?intLanguage={0}. On the receiving page I edited the SELECT command with the proper WHERE clause as WHERE intLanguage= @intLanguage. The QueryStringParameter is as follows: so this is the same for my other pages such as my Release page and my Category page and both work fine, but the language page is different... the PKID is the intLanguage field, but it's not an autoincremented number (since this project is still in it's infancy, I've thought about adding a true surrogate PKID and see if that is the problem... note, If i edit the select command w/o the where, the page loads fine (well w/o the parameter being passed so my DetailsView control only displays the first record in the recordset, I'm new to ASP.NET and don't really know how to troubleshoot this.... any ideas? -Francisco http://sqlthis.blogspot.com | Tsql and More... _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From DWUTKA at Marlow.com Wed Jul 1 11:54:36 2009 From: DWUTKA at Marlow.com (Drew Wutka) Date: Wed, 1 Jul 2009 11:54:36 -0500 Subject: [dba-VB] Messaging For JWC WAS: Syslogs In-Reply-To: <4A4A65A5.8080101@colbyconsulting.com> References: <4A49027A.5000604@colbyconsulting.com> <4A4A4F27.6010606@colbyconsulting.com> <4a4a60ca.0a1ad00a.63e4.2ae9@mx.google.com> <4A4A65A5.8080101@colbyconsulting.com> Message-ID: Well UDP is what you want then. However, I don't have anything setup to do that with strictly API calls. It's just too easy to do it with the Winsock Control. Drew -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, June 30, 2009 2:21 PM To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Messaging For JWC WAS: Syslogs Drew, >If you want to play around with it, what you need to do is use UDP to 'broadcast' a hello and goodbye message, to alert everything on the subnet. (And you have to filter that message on the broadcasting machine, cause it'll pick up it's own message). In that hello/goodbye message, you can include all the info you want (username, computername, IP,etc). Then it's just a matter of using TCP for direct comms between two machines. In fact I don't want direct comms between machines, I want precisely "broadcast" messages. "Hey everybody, I added a new record in tblX". Any machine receiving that message promptly refreshes the cache for that table. "Hey everybody, we are shutting down the BE in 10 minutes, get out". Any machine receiving the message pops up a message to the user telling them to finish up and get out of the database. That kind of message. I really don't care about sending to a specific machine, I care about sending to ALL machines. John W. Colby www.ColbyConsulting.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 jwcolby at colbyconsulting.com Wed Jul 1 12:18:11 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 01 Jul 2009 13:18:11 -0400 Subject: [dba-VB] Messaging For JWC WAS: Syslogs In-Reply-To: References: <4A49027A.5000604@colbyconsulting.com> <4A4A4F27.6010606@colbyconsulting.com> <4a4a60ca.0a1ad00a.63e4.2ae9@mx.google.com> <4A4A65A5.8080101@colbyconsulting.com> Message-ID: <4A4B9A53.9090904@colbyconsulting.com> Understood however that won't work for me. Thanks though. John W. Colby www.ColbyConsulting.com Drew Wutka wrote: > Well UDP is what you want then. However, I don't have anything setup to > do that with strictly API calls. It's just too easy to do it with the > Winsock Control. > > Drew From ssharkins at gmail.com Wed Jul 1 15:23:22 2009 From: ssharkins at gmail.com (Susan Harkins) Date: Wed, 1 Jul 2009 16:23:22 -0400 Subject: [dba-VB] .NET mistakes to avoid Message-ID: <8AB61109C40B414B9C4F37B64431D47F@SusanOne> I'll be writing an article on avoiding mistakes in .NET -- I'm looking for the basic stuff. If I use yours, you'll get full credit, and you can include your contact information if you like (don't have to). The readers seem to really enjoy hearing from other developers and users, not just me. Susan H. From max.wanadoo at gmail.com Wed Jul 1 15:46:02 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Wed, 1 Jul 2009 21:46:02 +0100 Subject: [dba-VB] .NET mistakes to avoid In-Reply-To: <8AB61109C40B414B9C4F37B64431D47F@SusanOne> References: <8AB61109C40B414B9C4F37B64431D47F@SusanOne> Message-ID: <4a4bcb0d.1c07d00a.7881.6f9d@mx.google.com> Umm...didnt know you were a developer, Susan. Learn summat every day... Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: 01 July 2009 21:23 To: VBLIst Subject: [dba-VB] .NET mistakes to avoid I'll be writing an article on avoiding mistakes in .NET -- I'm looking for the basic stuff. If I use yours, you'll get full credit, and you can include your contact information if you like (don't have to). The readers seem to really enjoy hearing from other developers and users, not just me. Susan H. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From ssharkins at gmail.com Wed Jul 1 15:52:52 2009 From: ssharkins at gmail.com (Susan Harkins) Date: Wed, 1 Jul 2009 16:52:52 -0400 Subject: [dba-VB] .NET mistakes to avoid References: <8AB61109C40B414B9C4F37B64431D47F@SusanOne> <4a4bcb0d.1c07d00a.7881.6f9d@mx.google.com> Message-ID: <467285A806ED4FE888137DC907B2FBAE@SusanOne> Only sometimes -- I write more than anything else now-a-days. It use to be about 50/50 -- but Access and VBA projects are rather scarce anymore. Charlotte is teaching me .NET -- you've probably seen the links to our first few articles. Whether I'll actually use .NET in a development project is up in the air -- certainly not ready to do so right now! ;) Susan H. > Umm...didnt know you were a developer, Susan. > > Learn summat every day... > > Max > > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Susan Harkins > Sent: 01 July 2009 21:23 > To: VBLIst > Subject: [dba-VB] .NET mistakes to avoid > > I'll be writing an article on avoiding mistakes in .NET -- I'm looking for > the basic stuff. If I use yours, you'll get full credit, and you can > include > > your contact information if you like (don't have to). > > The readers seem to really enjoy hearing from other developers and users, > not just me. > > Susan H. > > _______________________________________________ > 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 max.wanadoo at gmail.com Wed Jul 1 16:20:38 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Wed, 1 Jul 2009 22:20:38 +0100 Subject: [dba-VB] .NET mistakes to avoid In-Reply-To: <467285A806ED4FE888137DC907B2FBAE@SusanOne> References: <8AB61109C40B414B9C4F37B64431D47F@SusanOne> <4a4bcb0d.1c07d00a.7881.6f9d@mx.google.com> <467285A806ED4FE888137DC907B2FBAE@SusanOne> Message-ID: <4a4bd32a.0508d00a.40d4.ffffb8f3@mx.google.com> Yes, that makes sense. I always thought of you as a Technology Journalist...more than a user but not into developer stuff. Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: 01 July 2009 21:53 To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] .NET mistakes to avoid Only sometimes -- I write more than anything else now-a-days. It use to be about 50/50 -- but Access and VBA projects are rather scarce anymore. Charlotte is teaching me .NET -- you've probably seen the links to our first few articles. Whether I'll actually use .NET in a development project is up in the air -- certainly not ready to do so right now! ;) Susan H. > Umm...didnt know you were a developer, Susan. > > Learn summat every day... > > Max > > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Susan Harkins > Sent: 01 July 2009 21:23 > To: VBLIst > Subject: [dba-VB] .NET mistakes to avoid > > I'll be writing an article on avoiding mistakes in .NET -- I'm looking for > the basic stuff. If I use yours, you'll get full credit, and you can > include > > your contact information if you like (don't have to). > > The readers seem to really enjoy hearing from other developers and users, > not just me. > > Susan H. > > _______________________________________________ > 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 > _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From ssharkins at gmail.com Wed Jul 1 16:34:50 2009 From: ssharkins at gmail.com (Susan Harkins) Date: Wed, 1 Jul 2009 17:34:50 -0400 Subject: [dba-VB] .NET mistakes to avoid References: <8AB61109C40B414B9C4F37B64431D47F@SusanOne> <4a4bcb0d.1c07d00a.7881.6f9d@mx.google.com><467285A806ED4FE888137DC907B2FBAE@SusanOne> <4a4bd32a.0508d00a.40d4.ffffb8f3@mx.google.com> Message-ID: > Yes, that makes sense. I always thought of you as a Technology > Journalist...more than a user but not into developer stuff. =======That's a fair enough assessment, although I have developed lots of small projects. Susan H. From max.wanadoo at gmail.com Wed Jul 1 16:39:48 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Wed, 1 Jul 2009 22:39:48 +0100 Subject: [dba-VB] .NET mistakes to avoid In-Reply-To: References: <8AB61109C40B414B9C4F37B64431D47F@SusanOne> <4a4bcb0d.1c07d00a.7881.6f9d@mx.google.com><467285A806ED4FE888137DC907B2FBAE@SusanOne> <4a4bd32a.0508d00a.40d4.ffffb8f3@mx.google.com> Message-ID: <4a4bd7a8.1c05d00a.18f2.1c68@mx.google.com> Me too...but never written stuff...hate writing, get distracted with "smart" comments...one day I will get my bot bot smacked...hopefully Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: 01 July 2009 22:35 To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] .NET mistakes to avoid > Yes, that makes sense. I always thought of you as a Technology > Journalist...more than a user but not into developer stuff. =======That's a fair enough assessment, although I have developed lots of small projects. Susan H. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From accessd at shaw.ca Tue Jul 7 21:20:03 2009 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 7 Jul 2009 19:20:03 -0700 Subject: [dba-VB] Syslogs In-Reply-To: References: Message-ID: Hi guys: Sorry for being a little late to the thread but you could just use some of the basic primitive on all Windows machines. There is the AT command for automatically spawning a process and then NET VIEW for checking whether there is an established network connections... etc. Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, June 29, 2009 10:08 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Syslogs Hi Max The paragraph on page 1, "The WinSock Control", is for you. You need both the license and the "compatibility". Thank you to MS and IE and the "Compatibility" flag. /gustav >>> max.wanadoo at gmail.com 29-06-2009 18:51 >>> Run it in A2007K and opened the Demo form to get this error: .Protocol = sckUDPProtocol Run time error 438 Object doesn't support this property or method. Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 29 June 2009 17:37 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Syslogs Hi Susan, Max et al This article: Create a Syslog Sender/Receiver Using the MS Winsock Control With the Microsoft WinSock Control and a few coding tricks, you can use Access as a high-performance syslog sender, receiver, and logger. _is_ in VBA! I have no idea why it was put in the VB section. In fact, given the current "discussion" on Access 2007, it is just about the only project I have made in Access 2007. I started out with this several years ago with Access 97 for fun, but when I recently got the chance to write and polish it up, I felt it had to be finished in A2007. If Steve is looking for "fans of the ribbon", don't count me in - I really looked for features or benefits of the ribbon but found none, sorry. /gustav >>> max.wanadoo at gmail.com 29-06-2009 18:14 >>> Gustav, does this work under Access VBA? Max -----Original Message----- Susan Harkins wrote: > > > I'm so proud... ;) Notice, my name is NOT in the byline... I'm so > proud... yet another ones passes safely to single author status. :) > > Susan H. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From accessd at shaw.ca Tue Jul 7 22:43:28 2009 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 7 Jul 2009 20:43:28 -0700 Subject: [dba-VB] favicon (was: Syslogs) In-Reply-To: References: Message-ID: Hi Gustav: The Favicon only seems to work reliably, in all browsers, if there is an absolute link. If you have access to the web server's DNS (forward lookups) and the zones, multiple connections can be easily setup, by just adding an alias to the domain and then depending on the server, it will allow access to icons at/on any web server location: Website: http://www.mywebsite.com Icon code in the header and icon location: Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, June 30, 2009 10:06 AM To: dba-vb at databaseadvisors.com Subject: [dba-VB] favicon (was: Syslogs) Hi Drew That gives me an idea regarding favicon. I've found that it is sometimes difficult to get IE to understand that a favicon is present and should be displayed. Some common methods are: This typically doesn't work. These may: mtaulty.com/CommunityServer: The most reliable method I've found is the last - to use the full URL - but it is not nice to have hardcoded strings like these. So how about using your method: or localhost: Anyone having experience with this? /gustav >>> DWUTKA at marlow.com 30-06-2009 18:49 >>> Actually, if you have an IP address, it is real. It then gets into what it is used for. For example, with your wireless, if it's not connected, it won't have an IP address. If a standard NIC is not connected, it will show no address. If it IS connected, but not receiving an IP address, it will default to a (I think) 169 something, which is a hard coded address, which means nothing. You can also have internal addresses such as 127.0.0.1, which is a loopback to your local machine. (so if you are running a website, putting in http://127.0.0.1 on the server will give you the local website). Drew _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From Gustav at cactus.dk Wed Jul 8 02:23:34 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 08 Jul 2009 09:23:34 +0200 Subject: [dba-VB] Syslogs Message-ID: Hi Jim How Jim? The question was about if the ocx is installed and accessible ... /gustav >>> accessd at shaw.ca 08-07-2009 04:20 >>> Hi guys: Sorry for being a little late to the thread but you could just use some of the basic primitive on all Windows machines. There is the AT command for automatically spawning a process and then NET VIEW for checking whether there is an established network connections... etc. Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, June 29, 2009 10:08 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Syslogs Hi Max The paragraph on page 1, "The WinSock Control", is for you. You need both the license and the "compatibility". Thank you to MS and IE and the "Compatibility" flag. /gustav >>> max.wanadoo at gmail.com 29-06-2009 18:51 >>> Run it in A2007K and opened the Demo form to get this error: .Protocol = sckUDPProtocol Run time error 438 Object doesn't support this property or method. Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 29 June 2009 17:37 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Syslogs Hi Susan, Max et al This article: Create a Syslog Sender/Receiver Using the MS Winsock Control With the Microsoft WinSock Control and a few coding tricks, you can use Access as a high-performance syslog sender, receiver, and logger. _is_ in VBA! I have no idea why it was put in the VB section. In fact, given the current "discussion" on Access 2007, it is just about the only project I have made in Access 2007. I started out with this several years ago with Access 97 for fun, but when I recently got the chance to write and polish it up, I felt it had to be finished in A2007. If Steve is looking for "fans of the ribbon", don't count me in - I really looked for features or benefits of the ribbon but found none, sorry. /gustav >>> max.wanadoo at gmail.com 29-06-2009 18:14 >>> Gustav, does this work under Access VBA? Max -----Original Message----- Susan Harkins wrote: > > > I'm so proud... ;) Notice, my name is NOT in the byline... I'm so > proud... yet another ones passes safely to single author status. :) > > Susan H. From Gustav at cactus.dk Wed Jul 8 02:32:18 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 08 Jul 2009 09:32:18 +0200 Subject: [dba-VB] favicon (was: Syslogs) Message-ID: Hi Jim Thanks. That makes two of us. Problem is that if you google on how to implement favicon, you most often see the relative url used. Strange. /gustav >>> accessd at shaw.ca 08-07-2009 05:43 >>> Hi Gustav: The Favicon only seems to work reliably, in all browsers, if there is an absolute link. If you have access to the web server's DNS (forward lookups) and the zones, multiple connections can be easily setup, by just adding an alias to the domain and then depending on the server, it will allow access to icons at/on any web server location: Website: http://www.mywebsite.com Icon code in the header and icon location: Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, June 30, 2009 10:06 AM To: dba-vb at databaseadvisors.com Subject: [dba-VB] favicon (was: Syslogs) Hi Drew That gives me an idea regarding favicon. I've found that it is sometimes difficult to get IE to understand that a favicon is present and should be displayed. Some common methods are: This typically doesn't work. These may: mtaulty.com/CommunityServer: The most reliable method I've found is the last - to use the full URL - but it is not nice to have hardcoded strings like these. So how about using your method: or localhost: Anyone having experience with this? /gustav >>> DWUTKA at marlow.com 30-06-2009 18:49 >>> Actually, if you have an IP address, it is real. It then gets into what it is used for. For example, with your wireless, if it's not connected, it won't have an IP address. If a standard NIC is not connected, it will show no address. If it IS connected, but not receiving an IP address, it will default to a (I think) 169 something, which is a hard coded address, which means nothing. You can also have internal addresses such as 127.0.0.1, which is a loopback to your local machine. (so if you are running a website, putting in http://127.0.0.1 on the server will give you the local website). Drew From Johncliviger at aol.com Sun Jul 12 13:02:40 2009 From: Johncliviger at aol.com (Johncliviger at aol.com) Date: Sun, 12 Jul 2009 14:02:40 EDT Subject: [dba-VB] .Net Graphs in 2008 Message-ID: Hi all I've just installed the graph control into VB2008 and with help of Pat Tormey's video I got a bar chart working. What I can't do however is to get the x-axis data labels to appear. . But where and how do you switch them on/off ? Regards johnc From ssharkins at gmail.com Sun Jul 12 19:55:55 2009 From: ssharkins at gmail.com (Susan Harkins) Date: Sun, 12 Jul 2009 20:55:55 -0400 Subject: [dba-VB] Next .NET basics article from Charlotte Message-ID: <11A694D51BEF4D79B16500AD19F60FD9@SusanOne> http://www.devx.com/dotnet/Article/42296?trk=DXRSS_DOTNET From Gustav at cactus.dk Mon Jul 13 04:04:54 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 13 Jul 2009 11:04:54 +0200 Subject: [dba-VB] Next .NET basics article from Charlotte Message-ID: Hi Susan and Charlotte > A .NET typed dataset is an in-memory representation of a remote database As far as I know, it doesn't have to be remote, it can be local as well, in fact it doesn't even have to "be" as you can create it on the fly (for temporary usage or to be written to, say, an XML file). That aside, I welcome any article that promote this great feature (typed dataset) of .Net. /gustav >>> ssharkins at gmail.com 13-07-2009 02:55 >>> http://www.devx.com/dotnet/Article/42296?trk=DXRSS_DOTNET From ssharkins at gmail.com Mon Jul 13 08:54:12 2009 From: ssharkins at gmail.com (Susan Harkins) Date: Mon, 13 Jul 2009 09:54:12 -0400 Subject: [dba-VB] Next .NET basics article from Charlotte References: Message-ID: <455F2BD731014F37BF1F35DF34263F10@SusanOne> > >> A .NET typed dataset is an in-memory representation of a remote database > > As far as I know, it doesn't have to be remote, it can be local as well, > in fact it doesn't even have to "be" as you can create it on the fly (for > temporary usage or to be written to, say, an XML file). ========Well, remote is in the official MS definition and I think that simply means that .NET doesn't store data. Susan H. From cfoust at infostatsystems.com Mon Jul 13 10:18:56 2009 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 13 Jul 2009 08:18:56 -0700 Subject: [dba-VB] Next .NET basics article from Charlotte In-Reply-To: References: Message-ID: But Wait! There's more! Next article we're going to create data entities based on typed datasets and use them to implement business rules in the data tier. Charlotte -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, July 13, 2009 2:05 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Next .NET basics article from Charlotte Hi Susan and Charlotte > A .NET typed dataset is an in-memory representation of a remote > database As far as I know, it doesn't have to be remote, it can be local as well, in fact it doesn't even have to "be" as you can create it on the fly (for temporary usage or to be written to, say, an XML file). That aside, I welcome any article that promote this great feature (typed dataset) of .Net. /gustav >>> ssharkins at gmail.com 13-07-2009 02:55 >>> http://www.devx.com/dotnet/Article/42296?trk=DXRSS_DOTNET _______________________________________________ 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 Fri Jul 17 02:22:16 2009 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Fri, 17 Jul 2009 11:22:16 +0400 Subject: [dba-VB] LINQ for EF Example (Part III) Message-ID: <002101ca06af$517c8940$f4759bc0$@spb.ru> (continued) Request: ======== Get all pairs of part numbers such that some supplier supplies both of the indicated parts. Generated SQL expression (obtained via SQL profiler): ===================================================== SELECT [Project2].[C1] AS [C1], [Project2].[SN] AS [SN], [Project2].[PN] AS [PN], [Project2].[PN1] AS [PN1] FROM ( SELECT [Distinct1].[PN] AS [PN], [Distinct1].[SN] AS [SN], [Distinct1].[PN1] AS [PN1], 1 AS [C1] FROM (SELECT DISTINCT [Extent1].[PN] AS [PN], [Extent1].[SN] AS [SN], [Extent2].[PN] AS [PN1], 1 AS [C1] FROM [dbo].[SPJ] AS [Extent1] INNER JOIN [dbo].[SPJ] AS [Extent2] ON [Extent1].[SN] = [Extent2].[SN] ) AS [Distinct1] INNER JOIN (SELECT [Extent3].[CITY] AS [CITY1], [Extent3].[COLOR] AS [COLOR1], [Extent3].[PN] AS [PN1], [Extent3].[PNAME] AS [PNAME1], [Extent3].[WEIGHT] AS [WEIGHT1], [Extent4].[CITY] AS [CITY2], [Extent4].[COLOR] AS [COLOR2], [Extent4].[PN] AS [PN2], [Extent4].[PNAME] AS [PNAME2], [Extent4].[WEIGHT] AS [WEIGHT2] FROM [dbo].[P] AS [Extent3] CROSS JOIN [dbo].[P] AS [Extent4] ) AS [Join2] ON ([Distinct1].[PN] = [Join2].[PN1]) AND ([Distinct1].[PN1] = [Join2].[PN2]) WHERE ([Join2].[PN1] <> [Join2].[PN2]) AND ((SUBSTRING([Join2].[PN1], 1 + 1, 1)) < (SUBSTRING([Join2].[PN2], 1 + 1, 1))) ) AS [Project2] ORDER BY [Project2].[SN] ASC, [Project2].[PN] ASC, [Project2].[PN1] ASC Result (LINQ for EF - C#): ========================== SN PN1 PN2 ---------- S2 P3 P5 S3 P3 P4 S5 P1 P2 S5 P1 P3 S5 P1 P4 S5 P1 P5 S5 P1 P6 S5 P2 P3 S5 P2 P4 S5 P2 P5 S5 P2 P6 S5 P3 P4 S5 P3 P5 S5 P3 P6 S5 P4 P5 S5 P4 P6 S5 P5 P6 ---------- (17 rows) Result (Manual SQL): ==================== SN PN1 PN2 S2 P3 P5 S3 P3 P4 S5 P1 P2 S5 P1 P3 S5 P1 P4 S5 P1 P5 S5 P1 P6 S5 P2 P3 S5 P2 P4 S5 P2 P5 S5 P2 P6 S5 P3 P4 S5 P3 P5 S5 P3 P6 S5 P4 P5 S5 P4 P6 S5 P5 P6 (17 rows) --- LINQ for EF looks "smart" isn't it? Thank you. -- Shamil From shamil at smsconsulting.spb.ru Fri Jul 17 02:22:16 2009 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Fri, 17 Jul 2009 11:22:16 +0400 Subject: [dba-VB] LINQ for EF Example (Part II) Message-ID: <002601ca06af$52ca17e0$f85e47a0$@spb.ru> (continued) Request: ======== Get all pairs of part numbers such that some supplier supplies both of the indicated parts. LINQ for EF (C#): ================= SPJEntities suppliersAndParts = new SPJEntities(); var queryResult1 = ( from spj1 in suppliersAndParts.SPJ from spj2 in suppliersAndParts.SPJ where (spj1.SN == spj2.SN) select new { SN = spj1.SN, PN1 = spj1.PN, PN2 = spj2.PN } ).Distinct() ; var queryResult2 = ( from p1 in suppliersAndParts.P from p2 in suppliersAndParts.P let p1Num = p1.PN.Substring(1, 1) let p2Num = p2.PN.Substring(1, 1) where (p1.PN != p2.PN && string.Compare(p1Num,p2Num) < 0 ) select new { PN1 = p1.PN, PN2 = p2.PN } ).Distinct() ; var queryResult = from q1 in queryResult1 from q2 in queryResult2 where (q1.PN1 == q2.PN1 && q1.PN2 == q2.PN2) orderby q1.SN, q1.PN1, q1.PN2 select new { SN = q1.SN, PN1 = q1.PN1, PN2 = q1.PN2 }; Console.WriteLine("SN PN1 PN2"); Console.WriteLine("----------"); foreach (var row in queryResult) Console.WriteLine("{0} {1} {2}", row.SN, row.PN1, row.PN2); Console.WriteLine("----------"); -- Shamil From shamil at smsconsulting.spb.ru Fri Jul 17 02:22:16 2009 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Fri, 17 Jul 2009 11:22:16 +0400 Subject: [dba-VB] LINQ for EF Example (Part I) Message-ID: <002b01ca06af$540caa00$fc25fe00$@spb.ru> Hi All, Have a look what LINQ for EF can do - I mainly mean that it can combine C# subqueries into one SQL expression executed on server side. I personally was unaware of this feature. Yes, I have read about LINQ's "lazy execution mode" but I haven't seen such advanced examples. Of course I could have missed them. Anyway I wanted to post about this LINQ feature here - just for the records J This posting is split into three parts to get through dba-VB posting size limitations. Example uses well known C.J. Date sample database from his "An Introduction to Database Systems" book (http://www.amazon.com/Introduction-Database-Systems-C-Date/dp/0201385902): Request: ======== Get all pairs of part numbers such that some supplier supplies both of the indicated parts. Manually written SQL: ================= SELECT DISTINCT spj1.SN as SN, spj1.PN AS PN1, spj2.PN AS PN2 FROM SPJ AS spj1, SPJ AS spj2, ( select p1.PN as PN1, p2.PN as PN2 from P as p1, P as p2 where p1.PN <> p2.PN and CAST(SUBSTRING(p1.PN,2,1) as int) < CAST(SUBSTRING(p2.PN,2,1) as int) ) Q WHERE spj1.SN = spj2.SN and spj1.PN = Q.PN1 and spj2.PN = Q.PN2 order by SN, PN1, PN2 -- Shamil From mmattys at rochester.rr.com Fri Jul 17 09:13:50 2009 From: mmattys at rochester.rr.com (Mike Mattys) Date: Fri, 17 Jul 2009 10:13:50 -0400 Subject: [dba-VB] LINQ for EF Example (Part III) References: <002101ca06af$517c8940$f4759bc0$@spb.ru> Message-ID: <2CDA2A89C2FF4A7D8A42293E87A8913C@Mattys> Thanks, Shamil - These look great! I'll have to try it out. As soon as I look up EF? - Michael R Mattys MapPoint and Database Dev www.mattysconsulting.com - ----- Original Message ----- From: "Shamil Salakhetdinov" To: "'Discussion concerning Visual Basic and related programming issues.'" Sent: Friday, July 17, 2009 3:22 AM Subject: [dba-VB] LINQ for EF Example (Part III) > (continued) > > > > Request: > > ======== > > Get all pairs of part numbers such that some supplier supplies both of > the indicated parts. > > > > Generated SQL expression (obtained via SQL profiler): > > ===================================================== > > SELECT > > [Project2].[C1] AS [C1], > > [Project2].[SN] AS [SN], > > [Project2].[PN] AS [PN], > > [Project2].[PN1] AS [PN1] > > FROM ( SELECT > > [Distinct1].[PN] AS [PN], > > [Distinct1].[SN] AS [SN], > > [Distinct1].[PN1] AS [PN1], > > 1 AS [C1] > > FROM (SELECT DISTINCT > > [Extent1].[PN] AS [PN], > > [Extent1].[SN] AS [SN], > > [Extent2].[PN] AS [PN1], > > 1 AS [C1] > > FROM [dbo].[SPJ] AS [Extent1] > > INNER JOIN [dbo].[SPJ] AS [Extent2] ON [Extent1].[SN] = > [Extent2].[SN] ) AS [Distinct1] > > INNER JOIN (SELECT [Extent3].[CITY] AS [CITY1], [Extent3].[COLOR] AS > [COLOR1], [Extent3].[PN] AS [PN1], [Extent3].[PNAME] AS [PNAME1], > [Extent3].[WEIGHT] AS [WEIGHT1], [Extent4].[CITY] AS [CITY2], > [Extent4].[COLOR] AS [COLOR2], [Extent4].[PN] AS [PN2], [Extent4].[PNAME] > AS > [PNAME2], [Extent4].[WEIGHT] AS [WEIGHT2] > > FROM [dbo].[P] AS [Extent3] > > CROSS JOIN [dbo].[P] AS [Extent4] ) AS [Join2] ON > ([Distinct1].[PN] = [Join2].[PN1]) AND ([Distinct1].[PN1] = [Join2].[PN2]) > > WHERE ([Join2].[PN1] <> [Join2].[PN2]) AND ((SUBSTRING([Join2].[PN1], > 1 + 1, 1)) < (SUBSTRING([Join2].[PN2], 1 + 1, 1))) > > ) AS [Project2] > > ORDER BY [Project2].[SN] ASC, [Project2].[PN] ASC, [Project2].[PN1] ASC > > > > Result (LINQ for EF - C#): > > ========================== > > SN PN1 PN2 > > ---------- > > S2 P3 P5 > > S3 P3 P4 > > S5 P1 P2 > > S5 P1 P3 > > S5 P1 P4 > > S5 P1 P5 > > S5 P1 P6 > > S5 P2 P3 > > S5 P2 P4 > > S5 P2 P5 > > S5 P2 P6 > > S5 P3 P4 > > S5 P3 P5 > > S5 P3 P6 > > S5 P4 P5 > > S5 P4 P6 > > S5 P5 P6 > > ---------- > > > > (17 rows) > > > > Result (Manual SQL): > > ==================== > > > > SN PN1 PN2 > > S2 P3 P5 > > S3 P3 P4 > > S5 P1 P2 > > S5 P1 P3 > > S5 P1 P4 > > S5 P1 P5 > > S5 P1 P6 > > S5 P2 P3 > > S5 P2 P4 > > S5 P2 P5 > > S5 P2 P6 > > S5 P3 P4 > > S5 P3 P5 > > S5 P3 P6 > > S5 P4 P5 > > S5 P4 P6 > > S5 P5 P6 > > > > (17 rows) > > > > --- > > LINQ for EF looks "smart" isn't it? > > > > Thank you. > > > > -- > > Shamil > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From Gustav at cactus.dk Fri Jul 17 10:16:52 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 17 Jul 2009 17:16:52 +0200 Subject: [dba-VB] LINQ for EF Example (Part I) Message-ID: Hi Shamil No, I wasn't aware of exactly this - or rather down to what level the SQL code generator operates - but it is a great feature. Where can the C.J. Date test database you mention be obtained? I found the book for download as a PDF here: http://www.scribd.com/doc/13078295/An-Introduction-to-Database-Systems-8Ed-C-J-Date-Solutions-Manual It seems to be complete. Not sure what the deal is? /gustav >>> shamil at smsconsulting.spb.ru 17-07-2009 09:22 >>> Hi All, Have a look what LINQ for EF can do - I mainly mean that it can combine C# subqueries into one SQL expression executed on server side. I personally was unaware of this feature. Yes, I have read about LINQ's "lazy execution mode" but I haven't seen such advanced examples. Of course I could have missed them. Anyway I wanted to post about this LINQ feature here - just for the records J This posting is split into three parts to get through dba-VB posting size limitations. Example uses well known C.J. Date sample database from his "An Introduction to Database Systems" book (http://www.amazon.com/Introduction-Database-Systems-C-Date/dp/0201385902): From mmattys at rochester.rr.com Fri Jul 17 10:53:57 2009 From: mmattys at rochester.rr.com (Mike Mattys) Date: Fri, 17 Jul 2009 11:53:57 -0400 Subject: [dba-VB] LINQ for EF Example (Part III) References: <002101ca06af$517c8940$f4759bc0$@spb.ru> <2CDA2A89C2FF4A7D8A42293E87A8913C@Mattys> Message-ID: <868FCF698D3F4BE1A75E23ACD6CF09E5@Mattys> Entity Framework Extraneous Froth :) - Michael R Mattys MapPoint and Database Dev www.mattysconsulting.com - ----- Original Message ----- From: "Mike Mattys" To: "Discussion concerning Visual Basic and related programming issues." Sent: Friday, July 17, 2009 10:13 AM Subject: Re: [dba-VB] LINQ for EF Example (Part III) > Thanks, Shamil - These look great! > I'll have to try it out. > > As soon as I look up EF? > > - > Michael R Mattys > MapPoint and Database Dev > www.mattysconsulting.com > - > > ----- Original Message ----- > From: "Shamil Salakhetdinov" > To: "'Discussion concerning Visual Basic and related programming issues.'" > > Sent: Friday, July 17, 2009 3:22 AM > Subject: [dba-VB] LINQ for EF Example (Part III) > > >> (continued) >> >> >> >> Request: >> >> ======== >> >> Get all pairs of part numbers such that some supplier supplies both of >> the indicated parts. >> >> >> >> Generated SQL expression (obtained via SQL profiler): >> >> ===================================================== >> >> SELECT >> >> [Project2].[C1] AS [C1], >> >> [Project2].[SN] AS [SN], >> >> [Project2].[PN] AS [PN], >> >> [Project2].[PN1] AS [PN1] >> >> FROM ( SELECT >> >> [Distinct1].[PN] AS [PN], >> >> [Distinct1].[SN] AS [SN], >> >> [Distinct1].[PN1] AS [PN1], >> >> 1 AS [C1] >> >> FROM (SELECT DISTINCT >> >> [Extent1].[PN] AS [PN], >> >> [Extent1].[SN] AS [SN], >> >> [Extent2].[PN] AS [PN1], >> >> 1 AS [C1] >> >> FROM [dbo].[SPJ] AS [Extent1] >> >> INNER JOIN [dbo].[SPJ] AS [Extent2] ON [Extent1].[SN] = >> [Extent2].[SN] ) AS [Distinct1] >> >> INNER JOIN (SELECT [Extent3].[CITY] AS [CITY1], [Extent3].[COLOR] >> AS >> [COLOR1], [Extent3].[PN] AS [PN1], [Extent3].[PNAME] AS [PNAME1], >> [Extent3].[WEIGHT] AS [WEIGHT1], [Extent4].[CITY] AS [CITY2], >> [Extent4].[COLOR] AS [COLOR2], [Extent4].[PN] AS [PN2], [Extent4].[PNAME] >> AS >> [PNAME2], [Extent4].[WEIGHT] AS [WEIGHT2] >> >> FROM [dbo].[P] AS [Extent3] >> >> CROSS JOIN [dbo].[P] AS [Extent4] ) AS [Join2] ON >> ([Distinct1].[PN] = [Join2].[PN1]) AND ([Distinct1].[PN1] = >> [Join2].[PN2]) >> >> WHERE ([Join2].[PN1] <> [Join2].[PN2]) AND >> ((SUBSTRING([Join2].[PN1], >> 1 + 1, 1)) < (SUBSTRING([Join2].[PN2], 1 + 1, 1))) >> >> ) AS [Project2] >> >> ORDER BY [Project2].[SN] ASC, [Project2].[PN] ASC, [Project2].[PN1] ASC >> >> >> >> Result (LINQ for EF - C#): >> >> ========================== >> >> SN PN1 PN2 >> >> ---------- >> >> S2 P3 P5 >> >> S3 P3 P4 >> >> S5 P1 P2 >> >> S5 P1 P3 >> >> S5 P1 P4 >> >> S5 P1 P5 >> >> S5 P1 P6 >> >> S5 P2 P3 >> >> S5 P2 P4 >> >> S5 P2 P5 >> >> S5 P2 P6 >> >> S5 P3 P4 >> >> S5 P3 P5 >> >> S5 P3 P6 >> >> S5 P4 P5 >> >> S5 P4 P6 >> >> S5 P5 P6 >> >> ---------- >> >> >> >> (17 rows) >> >> >> >> Result (Manual SQL): >> >> ==================== >> >> >> >> SN PN1 PN2 >> >> S2 P3 P5 >> >> S3 P3 P4 >> >> S5 P1 P2 >> >> S5 P1 P3 >> >> S5 P1 P4 >> >> S5 P1 P5 >> >> S5 P1 P6 >> >> S5 P2 P3 >> >> S5 P2 P4 >> >> S5 P2 P5 >> >> S5 P2 P6 >> >> S5 P3 P4 >> >> S5 P3 P5 >> >> S5 P3 P6 >> >> S5 P4 P5 >> >> S5 P4 P6 >> >> S5 P5 P6 >> >> >> >> (17 rows) >> >> >> >> --- >> >> LINQ for EF looks "smart" isn't it? >> >> >> >> 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 Gustav at cactus.dk Fri Jul 17 11:29:47 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 17 Jul 2009 18:29:47 +0200 Subject: [dba-VB] Using Microsoft ADO.NET Entity Framework with MySQL (was: LINQ for EF Example) Message-ID: Hi all And as an apropos: Live Webinar: For ISVs - Using Microsoft ADO.NET Entity Framework with MySQL Tuesday, August 11, 2009 - 10:00am PDT The Entity Framework is a new technology that was developed by Microsoft and delivered as part of .NET 3.5 SP1. This framework abstracts the relational schema of the database and presents it as a conceptual schema. This is particularly beneficial for ISVs because by working with a conceptual schema, the commercial application developer avoids having to write complicated joins to connect all the related items of data, greatly reducing development time, resources and therefore, COGS. ISV developers can access their data using ORM-like classes, LinQ syntax, or with a new SQL syntax named EntitySQL, all of which further reduce COGS. Register for this Webinar: http://www.mysql.com/news-and-events/web-seminars/display-397.html /gustav ----- Original Message ----- > Thanks, Shamil - These look great! > I'll have to try it out. > > As soon as I look up EF? > > - > Michael R Mattys > MapPoint and Database Dev > www.mattysconsulting.com From Gustav at cactus.dk Fri Jul 17 11:38:44 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 17 Jul 2009 18:38:44 +0200 Subject: [dba-VB] Using Microsoft ADO.NET Entity Framework with MySQL (was: LINQ for EF Example) Message-ID: Also: New Release of MySQL Connector/Net 6.0.4 (GA) MySQL Connector/Net 6.0.4, a new version of the all-managed .NET driver for MySQL has been released. This is the first post-GA release of the new 6.0 connector and includes several bug fixes from the initial GA release. This release is approved for use in all scenarios and officially supports MySQL servers 4.1 and higher. View the complete list of changes: http://dev.mysql.com/doc/refman/6.0/en/connector-net-news-6-0-4.html Download Now: http://dev.mysql.com/downloads/connector/net/6.0.html /gustav >>> Gustav at cactus.dk 17-07-2009 18:29 >>> Hi all And as an apropos: Live Webinar: For ISVs - Using Microsoft ADO.NET Entity Framework with MySQL Tuesday, August 11, 2009 - 10:00am PDT The Entity Framework is a new technology that was developed by Microsoft and delivered as part of .NET 3.5 SP1. This framework abstracts the relational schema of the database and presents it as a conceptual schema. This is particularly beneficial for ISVs because by working with a conceptual schema, the commercial application developer avoids having to write complicated joins to connect all the related items of data, greatly reducing development time, resources and therefore, COGS. ISV developers can access their data using ORM-like classes, LinQ syntax, or with a new SQL syntax named EntitySQL, all of which further reduce COGS. Register for this Webinar: http://www.mysql.com/news-and-events/web-seminars/display-397.html /gustav ----- Original Message ----- > Thanks, Shamil - These look great! > I'll have to try it out. > > As soon as I look up EF? > > - > Michael R Mattys > MapPoint and Database Dev > www.mattysconsulting.com From cfoust at infostatsystems.com Fri Jul 17 11:52:45 2009 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 17 Jul 2009 09:52:45 -0700 Subject: [dba-VB] Using Microsoft ADO.NET Entity Framework with MySQL(was: LINQ for EF Example) In-Reply-To: References: Message-ID: I started to look at the data entity model but found it horribly confusing in VS2008. Our project manager previously worked for a large company that had played with it and found the problems it created for them outweighed any advantages. I may come around to it as it evolves, but for now I'll stay with our homegrown entity model. Charlotte -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, July 17, 2009 9:30 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Using Microsoft ADO.NET Entity Framework with MySQL(was: LINQ for EF Example) Hi all And as an apropos: Live Webinar: For ISVs - Using Microsoft ADO.NET Entity Framework with MySQL Tuesday, August 11, 2009 - 10:00am PDT The Entity Framework is a new technology that was developed by Microsoft and delivered as part of .NET 3.5 SP1. This framework abstracts the relational schema of the database and presents it as a conceptual schema. This is particularly beneficial for ISVs because by working with a conceptual schema, the commercial application developer avoids having to write complicated joins to connect all the related items of data, greatly reducing development time, resources and therefore, COGS. ISV developers can access their data using ORM-like classes, LinQ syntax, or with a new SQL syntax named EntitySQL, all of which further reduce COGS. Register for this Webinar: http://www.mysql.com/news-and-events/web-seminars/display-397.html /gustav ----- Original Message ----- > Thanks, Shamil - These look great! > I'll have to try it out. > > As soon as I look up EF? > > - > Michael R Mattys > MapPoint and Database Dev > www.mattysconsulting.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 Fri Jul 17 15:34:45 2009 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sat, 18 Jul 2009 00:34:45 +0400 Subject: [dba-VB] LINQ for EF Example (Part I) In-Reply-To: References: Message-ID: <005401ca071e$066b0250$134106f0$@spb.ru> Hi Gustav, Yes, this is a great feature. I have just published SPJ sample database at: http://northwind.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=26600#D ownloadId=75624 I have made this sample database developed here by typing its data from the book, which I have got purchased here in 1981, in USSR, Russian Edition. ?.J.Date has released this year yet another book - I'd recommend it as it's IMO more modern/advanced/suitable for professional db developers: SQL and Relational Theory, 1st Edition by C.J. Date January 2009 ISBN-10: 0-596-52306-8 http://oreilly.com/catalog/9780596523060/ "Understanding SQL's underlying theory is the best way to guarantee that your SQL code is correct and your database schema is robust and maintainable. In SQL and Relational Theory, author C.J. Date demonstrates how you can apply relational theory directly to your use of SQL, with numerous examples and clear explanations of the reasoning behind them. Anyone with a modest to advanced background in SQL will benefit from the many insights in this book." -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, July 17, 2009 7:17 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] LINQ for EF Example (Part I) Hi Shamil No, I wasn't aware of exactly this - or rather down to what level the SQL code generator operates - but it is a great feature. Where can the C.J. Date test database you mention be obtained? I found the book for download as a PDF here: http://www.scribd.com/doc/13078295/An-Introduction-to-Database-Systems-8Ed-C -J-Date-Solutions-Manual It seems to be complete. Not sure what the deal is? /gustav >>> shamil at smsconsulting.spb.ru 17-07-2009 09:22 >>> Hi All, Have a look what LINQ for EF can do - I mainly mean that it can combine C# subqueries into one SQL expression executed on server side. I personally was unaware of this feature. Yes, I have read about LINQ's "lazy execution mode" but I haven't seen such advanced examples. Of course I could have missed them. Anyway I wanted to post about this LINQ feature here - just for the records J This posting is split into three parts to get through dba-VB posting size limitations. Example uses well known C.J. Date sample database from his "An Introduction to Database Systems" book (http://www.amazon.com/Introduction-Database-Systems-C-Date/dp/0201385902): _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com __________ Information from ESET NOD32 Antivirus, version of virus signature database 4255 (20090717) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru __________ Information from ESET NOD32 Antivirus, version of virus signature database 4255 (20090717) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru From shamil at smsconsulting.spb.ru Fri Jul 17 18:28:34 2009 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sat, 18 Jul 2009 03:28:34 +0400 Subject: [dba-VB] Using Microsoft ADO.NET Entity Framework with MySQL (was: LINQ for EF Example) In-Reply-To: References: Message-ID: <005501ca0736$50039180$f00ab480$@spb.ru> Hi Gustav, This mySQL Connector, which can be used to work with mySQL DBs from LINQ for EF(?), is probably developed by using "Entity Client" concept/technology: http://blogs.msdn.com/adonet/archive/2007/02/14/entity-client.aspx It may happen somebody will use this technology to develop an MS Access connector - let's hope that happens real soon? Hey, MS MS Access Team - how about doing that there? Another useful technology MS "cooks" there is "CodeOnly for Entity Framework": http://blogs.msdn.com/adonet/archive/2009/06/22/feature-ctp-walkthrough-code -only-for-entity-framework.aspx You mentioned something like that here already - did you mean that "CodeOnly for Entity Framework" technology or just a concept of starting with Domain Model implemented in code/metadata and then using this Domain Model to generate actual (relational) DB model? -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, July 17, 2009 8:39 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Using Microsoft ADO.NET Entity Framework with MySQL (was: LINQ for EF Example) Also: New Release of MySQL Connector/Net 6.0.4 (GA) MySQL Connector/Net 6.0.4, a new version of the all-managed .NET driver for MySQL has been released. This is the first post-GA release of the new 6.0 connector and includes several bug fixes from the initial GA release. This release is approved for use in all scenarios and officially supports MySQL servers 4.1 and higher. View the complete list of changes: http://dev.mysql.com/doc/refman/6.0/en/connector-net-news-6-0-4.html Download Now: http://dev.mysql.com/downloads/connector/net/6.0.html /gustav >>> Gustav at cactus.dk 17-07-2009 18:29 >>> Hi all And as an apropos: Live Webinar: For ISVs - Using Microsoft ADO.NET Entity Framework with MySQL Tuesday, August 11, 2009 - 10:00am PDT The Entity Framework is a new technology that was developed by Microsoft and delivered as part of .NET 3.5 SP1. This framework abstracts the relational schema of the database and presents it as a conceptual schema. This is particularly beneficial for ISVs because by working with a conceptual schema, the commercial application developer avoids having to write complicated joins to connect all the related items of data, greatly reducing development time, resources and therefore, COGS. ISV developers can access their data using ORM-like classes, LinQ syntax, or with a new SQL syntax named EntitySQL, all of which further reduce COGS. Register for this Webinar: http://www.mysql.com/news-and-events/web-seminars/display-397.html /gustav ----- Original Message ----- > Thanks, Shamil - These look great! > I'll have to try it out. > > As soon as I look up EF? > > - > Michael R Mattys > MapPoint and Database Dev > www.mattysconsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com __________ Information from ESET NOD32 Antivirus, version of virus signature database 4255 (20090717) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru __________ Information from ESET NOD32 Antivirus, version of virus signature database 4255 (20090717) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru From shamil at smsconsulting.spb.ru Sat Jul 18 07:30:01 2009 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sat, 18 Jul 2009 16:30:01 +0400 Subject: [dba-VB] LINQ for EF Example (Part III) In-Reply-To: <868FCF698D3F4BE1A75E23ACD6CF09E5@Mattys> References: <002101ca06af$517c8940$f4759bc0$@spb.ru> <2CDA2A89C2FF4A7D8A42293E87A8913C@Mattys> <868FCF698D3F4BE1A75E23ACD6CF09E5@Mattys> Message-ID: <007501ca07a3$79738d00$6c5aa700$@spb.ru> Hi Mike, Yes, "LINQ for ADO.NET Entity Framework" to be precise :) What about teaming-up with Gustav and myself and to port our Northwind.NET for MS SQL 2005 to "LINQ for ADO.NET Entity Framework"? Just an idea - and doing that project in "lazy summer mode" without setting strict deadlines? Gustav how about you? Anybody else? Have nice weekend. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Mike Mattys Sent: Friday, July 17, 2009 7:54 PM To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] LINQ for EF Example (Part III) Entity Framework Extraneous Froth :) - Michael R Mattys MapPoint and Database Dev www.mattysconsulting.com - ----- Original Message ----- From: "Mike Mattys" To: "Discussion concerning Visual Basic and related programming issues." Sent: Friday, July 17, 2009 10:13 AM Subject: Re: [dba-VB] LINQ for EF Example (Part III) > Thanks, Shamil - These look great! > I'll have to try it out. > > As soon as I look up EF? > > - > Michael R Mattys > MapPoint and Database Dev > www.mattysconsulting.com > - > > ----- Original Message ----- > From: "Shamil Salakhetdinov" > To: "'Discussion concerning Visual Basic and related programming issues.'" > > Sent: Friday, July 17, 2009 3:22 AM > Subject: [dba-VB] LINQ for EF Example (Part III) > > >> (continued) >> >> >> >> Request: >> >> ======== >> >> Get all pairs of part numbers such that some supplier supplies both of >> the indicated parts. >> >> >> >> Generated SQL expression (obtained via SQL profiler): >> >> ===================================================== >> >> SELECT >> >> [Project2].[C1] AS [C1], >> >> [Project2].[SN] AS [SN], >> >> [Project2].[PN] AS [PN], >> >> [Project2].[PN1] AS [PN1] >> >> FROM ( SELECT >> >> [Distinct1].[PN] AS [PN], >> >> [Distinct1].[SN] AS [SN], >> >> [Distinct1].[PN1] AS [PN1], >> >> 1 AS [C1] >> >> FROM (SELECT DISTINCT >> >> [Extent1].[PN] AS [PN], >> >> [Extent1].[SN] AS [SN], >> >> [Extent2].[PN] AS [PN1], >> >> 1 AS [C1] >> >> FROM [dbo].[SPJ] AS [Extent1] >> >> INNER JOIN [dbo].[SPJ] AS [Extent2] ON [Extent1].[SN] = >> [Extent2].[SN] ) AS [Distinct1] >> >> INNER JOIN (SELECT [Extent3].[CITY] AS [CITY1], [Extent3].[COLOR] >> AS >> [COLOR1], [Extent3].[PN] AS [PN1], [Extent3].[PNAME] AS [PNAME1], >> [Extent3].[WEIGHT] AS [WEIGHT1], [Extent4].[CITY] AS [CITY2], >> [Extent4].[COLOR] AS [COLOR2], [Extent4].[PN] AS [PN2], [Extent4].[PNAME] >> AS >> [PNAME2], [Extent4].[WEIGHT] AS [WEIGHT2] >> >> FROM [dbo].[P] AS [Extent3] >> >> CROSS JOIN [dbo].[P] AS [Extent4] ) AS [Join2] ON >> ([Distinct1].[PN] = [Join2].[PN1]) AND ([Distinct1].[PN1] = >> [Join2].[PN2]) >> >> WHERE ([Join2].[PN1] <> [Join2].[PN2]) AND >> ((SUBSTRING([Join2].[PN1], >> 1 + 1, 1)) < (SUBSTRING([Join2].[PN2], 1 + 1, 1))) >> >> ) AS [Project2] >> >> ORDER BY [Project2].[SN] ASC, [Project2].[PN] ASC, [Project2].[PN1] ASC >> >> >> >> Result (LINQ for EF - C#): >> >> ========================== >> >> SN PN1 PN2 >> >> ---------- >> >> S2 P3 P5 >> >> S3 P3 P4 >> >> S5 P1 P2 >> >> S5 P1 P3 >> >> S5 P1 P4 >> >> S5 P1 P5 >> >> S5 P1 P6 >> >> S5 P2 P3 >> >> S5 P2 P4 >> >> S5 P2 P5 >> >> S5 P2 P6 >> >> S5 P3 P4 >> >> S5 P3 P5 >> >> S5 P3 P6 >> >> S5 P4 P5 >> >> S5 P4 P6 >> >> S5 P5 P6 >> >> ---------- >> >> >> >> (17 rows) >> >> >> >> Result (Manual SQL): >> >> ==================== >> >> >> >> SN PN1 PN2 >> >> S2 P3 P5 >> >> S3 P3 P4 >> >> S5 P1 P2 >> >> S5 P1 P3 >> >> S5 P1 P4 >> >> S5 P1 P5 >> >> S5 P1 P6 >> >> S5 P2 P3 >> >> S5 P2 P4 >> >> S5 P2 P5 >> >> S5 P2 P6 >> >> S5 P3 P4 >> >> S5 P3 P5 >> >> S5 P3 P6 >> >> S5 P4 P5 >> >> S5 P4 P6 >> >> S5 P5 P6 >> >> >> >> (17 rows) >> >> >> >> --- >> >> LINQ for EF looks "smart" isn't it? >> >> >> >> 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 > _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com __________ Information from ESET NOD32 Antivirus, version of virus signature database 4255 (20090717) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru From Gustav at cactus.dk Sat Jul 18 09:02:55 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Sat, 18 Jul 2009 16:02:55 +0200 Subject: [dba-VB] Using Microsoft ADO.NET Entity Framework with MySQL Message-ID: Hi Shamil I don't know, it could be, on the other hand MySQL (Sun and now Oracle) indeed have the programming resources to create the connector the way they prefer - and I think they pay a lot of attention to this because as they wrote in the recent news letter much to my surprise: For many years, Microsoft Windows has been the most popular development platform and second most popular production platform for organizations developing MySQL applications. The "CodeOnly for Entity Framework" is exactly what I had in mind. Thanks for the link - looks like I should sign up for that blog. This must be the ultimate goal - to design and specify your database directly in your code at a higher level than manually adding fields and constraints and so on. I better get that VS2010 beta! But right now - with VS2005 and 2008 - you can edit your datatables in VS and, when you press enter, VS writes the changes back to the database. I think this may be what you recall that I previously have referred to. This feature is great but "CodeOnly for Entity Framework" is certainly better. I'll recommend anyone to study the links to the MSDN blog (and the links at those pages about POCO, Plain Old CLR Objects!). If this works, one day you won't look back. /gustav >>> shamil at smsconsulting.spb.ru 18-07-2009 01:28 >>> Hi Gustav, This mySQL Connector, which can be used to work with mySQL DBs from LINQ for EF(?), is probably developed by using "Entity Client" concept/technology: http://blogs.msdn.com/adonet/archive/2007/02/14/entity-client.aspx It may happen somebody will use this technology to develop an MS Access connector - let's hope that happens real soon? Hey, MS MS Access Team - how about doing that there? Another useful technology MS "cooks" there is "CodeOnly for Entity Framework": http://blogs.msdn.com/adonet/archive/2009/06/22/feature-ctp-walkthrough-code-only-for-entity-framework.aspx You mentioned something like that here already - did you mean that "CodeOnly for Entity Framework" technology or just a concept of starting with Domain Model implemented in code/metadata and then using this Domain Model to generate actual (relational) DB model? -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, July 17, 2009 8:39 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Using Microsoft ADO.NET Entity Framework with MySQL (was: LINQ for EF Example) Also: New Release of MySQL Connector/Net 6.0.4 (GA) MySQL Connector/Net 6.0.4, a new version of the all-managed .NET driver for MySQL has been released. This is the first post-GA release of the new 6.0 connector and includes several bug fixes from the initial GA release. This release is approved for use in all scenarios and officially supports MySQL servers 4.1 and higher. View the complete list of changes: http://dev.mysql.com/doc/refman/6.0/en/connector-net-news-6-0-4.html Download Now: http://dev.mysql.com/downloads/connector/net/6.0.html /gustav >>> Gustav at cactus.dk 17-07-2009 18:29 >>> Hi all And as an apropos: Live Webinar: For ISVs - Using Microsoft ADO.NET Entity Framework with MySQL Tuesday, August 11, 2009 - 10:00am PDT The Entity Framework is a new technology that was developed by Microsoft and delivered as part of .NET 3.5 SP1. This framework abstracts the relational schema of the database and presents it as a conceptual schema. This is particularly beneficial for ISVs because by working with a conceptual schema, the commercial application developer avoids having to write complicated joins to connect all the related items of data, greatly reducing development time, resources and therefore, COGS. ISV developers can access their data using ORM-like classes, LinQ syntax, or with a new SQL syntax named EntitySQL, all of which further reduce COGS. Register for this Webinar: http://www.mysql.com/news-and-events/web-seminars/display-397.html /gustav From mmattys at rochester.rr.com Sat Jul 18 19:52:05 2009 From: mmattys at rochester.rr.com (Mike Mattys) Date: Sat, 18 Jul 2009 20:52:05 -0400 Subject: [dba-VB] LINQ for EF Example (Part III) References: <002101ca06af$517c8940$f4759bc0$@spb.ru> <2CDA2A89C2FF4A7D8A42293E87A8913C@Mattys><868FCF698D3F4BE1A75E23ACD6CF09E5@Mattys> <007501ca07a3$79738d00$6c5aa700$@spb.ru> Message-ID: <56BD4D1BAB674ACC92EA34E805C0297E@Mattys> Hi Shamil, You can count me in! - Michael R Mattys MapPoint and Database Dev www.mattysconsulting.com - ----- Original Message ----- From: "Shamil Salakhetdinov" To: "'Discussion concerning Visual Basic and related programming issues.'" Sent: Saturday, July 18, 2009 8:30 AM Subject: Re: [dba-VB] LINQ for EF Example (Part III) > Hi Mike, > > Yes, "LINQ for ADO.NET Entity Framework" to be precise :) > > What about teaming-up with Gustav and myself and to port our Northwind.NET > for MS SQL 2005 to "LINQ for ADO.NET Entity Framework"? Just an idea - and > doing that project in "lazy summer mode" without setting strict deadlines? > > Gustav how about you? > Anybody else? > > Have nice weekend. > > -- > Shamil > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Mike Mattys > Sent: Friday, July 17, 2009 7:54 PM > To: Discussion concerning Visual Basic and related programming issues. > Subject: Re: [dba-VB] LINQ for EF Example (Part III) > > Entity Framework > > Extraneous Froth :) > > - > Michael R Mattys > MapPoint and Database Dev > www.mattysconsulting.com > - > ----- Original Message ----- > From: "Mike Mattys" > To: "Discussion concerning Visual Basic and related programming issues." > > Sent: Friday, July 17, 2009 10:13 AM > Subject: Re: [dba-VB] LINQ for EF Example (Part III) > > >> Thanks, Shamil - These look great! >> I'll have to try it out. >> >> As soon as I look up EF? >> >> - >> Michael R Mattys >> MapPoint and Database Dev >> www.mattysconsulting.com >> - >> >> ----- Original Message ----- >> From: "Shamil Salakhetdinov" >> To: "'Discussion concerning Visual Basic and related programming >> issues.'" >> >> Sent: Friday, July 17, 2009 3:22 AM >> Subject: [dba-VB] LINQ for EF Example (Part III) >> >> >>> (continued) >>> >>> >>> >>> Request: >>> >>> ======== >>> >>> Get all pairs of part numbers such that some supplier supplies both of >>> the indicated parts. >>> >>> >>> >>> Generated SQL expression (obtained via SQL profiler): >>> >>> ===================================================== >>> >>> SELECT >>> >>> [Project2].[C1] AS [C1], >>> >>> [Project2].[SN] AS [SN], >>> >>> [Project2].[PN] AS [PN], >>> >>> [Project2].[PN1] AS [PN1] >>> >>> FROM ( SELECT >>> >>> [Distinct1].[PN] AS [PN], >>> >>> [Distinct1].[SN] AS [SN], >>> >>> [Distinct1].[PN1] AS [PN1], >>> >>> 1 AS [C1] >>> >>> FROM (SELECT DISTINCT >>> >>> [Extent1].[PN] AS [PN], >>> >>> [Extent1].[SN] AS [SN], >>> >>> [Extent2].[PN] AS [PN1], >>> >>> 1 AS [C1] >>> >>> FROM [dbo].[SPJ] AS [Extent1] >>> >>> INNER JOIN [dbo].[SPJ] AS [Extent2] ON [Extent1].[SN] = >>> [Extent2].[SN] ) AS [Distinct1] >>> >>> INNER JOIN (SELECT [Extent3].[CITY] AS [CITY1], [Extent3].[COLOR] >>> AS >>> [COLOR1], [Extent3].[PN] AS [PN1], [Extent3].[PNAME] AS [PNAME1], >>> [Extent3].[WEIGHT] AS [WEIGHT1], [Extent4].[CITY] AS [CITY2], >>> [Extent4].[COLOR] AS [COLOR2], [Extent4].[PN] AS [PN2], >>> [Extent4].[PNAME] >>> AS >>> [PNAME2], [Extent4].[WEIGHT] AS [WEIGHT2] >>> >>> FROM [dbo].[P] AS [Extent3] >>> >>> CROSS JOIN [dbo].[P] AS [Extent4] ) AS [Join2] ON >>> ([Distinct1].[PN] = [Join2].[PN1]) AND ([Distinct1].[PN1] = >>> [Join2].[PN2]) >>> >>> WHERE ([Join2].[PN1] <> [Join2].[PN2]) AND >>> ((SUBSTRING([Join2].[PN1], >>> 1 + 1, 1)) < (SUBSTRING([Join2].[PN2], 1 + 1, 1))) >>> >>> ) AS [Project2] >>> >>> ORDER BY [Project2].[SN] ASC, [Project2].[PN] ASC, [Project2].[PN1] ASC >>> >>> >>> >>> Result (LINQ for EF - C#): >>> >>> ========================== >>> >>> SN PN1 PN2 >>> >>> ---------- >>> >>> S2 P3 P5 >>> >>> S3 P3 P4 >>> >>> S5 P1 P2 >>> >>> S5 P1 P3 >>> >>> S5 P1 P4 >>> >>> S5 P1 P5 >>> >>> S5 P1 P6 >>> >>> S5 P2 P3 >>> >>> S5 P2 P4 >>> >>> S5 P2 P5 >>> >>> S5 P2 P6 >>> >>> S5 P3 P4 >>> >>> S5 P3 P5 >>> >>> S5 P3 P6 >>> >>> S5 P4 P5 >>> >>> S5 P4 P6 >>> >>> S5 P5 P6 >>> >>> ---------- >>> >>> >>> >>> (17 rows) >>> >>> >>> >>> Result (Manual SQL): >>> >>> ==================== >>> >>> >>> >>> SN PN1 PN2 >>> >>> S2 P3 P5 >>> >>> S3 P3 P4 >>> >>> S5 P1 P2 >>> >>> S5 P1 P3 >>> >>> S5 P1 P4 >>> >>> S5 P1 P5 >>> >>> S5 P1 P6 >>> >>> S5 P2 P3 >>> >>> S5 P2 P4 >>> >>> S5 P2 P5 >>> >>> S5 P2 P6 >>> >>> S5 P3 P4 >>> >>> S5 P3 P5 >>> >>> S5 P3 P6 >>> >>> S5 P4 P5 >>> >>> S5 P4 P6 >>> >>> S5 P5 P6 >>> >>> >>> >>> (17 rows) >>> >>> >>> >>> --- >>> >>> LINQ for EF looks "smart" isn't it? >>> >>> >>> >>> 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 >> > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > > __________ Information from ESET NOD32 Antivirus, version of virus > signature > database 4255 (20090717) __________ > > The message was checked by ESET NOD32 Antivirus. > > http://www.esetnod32.ru > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From Gustav at cactus.dk Sun Jul 19 02:25:30 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Sun, 19 Jul 2009 09:25:30 +0200 Subject: [dba-VB] LINQ for EF Example (Part III) Message-ID: Hi Shamil Of course, in lazy summer mode, as I probably will be off for a week or so from late next week. /gustav >>> shamil at smsconsulting.spb.ru 18-07-2009 14:30 >>> Hi Mike, Yes, "LINQ for ADO.NET Entity Framework" to be precise :) What about teaming-up with Gustav and myself and to port our Northwind.NET for MS SQL 2005 to "LINQ for ADO.NET Entity Framework"? Just an idea - and doing that project in "lazy summer mode" without setting strict deadlines? Gustav how about you? Anybody else? Have nice weekend. -- Shamil From shamil at smsconsulting.spb.ru Tue Jul 21 12:29:34 2009 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Tue, 21 Jul 2009 21:29:34 +0400 Subject: [dba-VB] LINQ for EF Example (Part III) In-Reply-To: References: Message-ID: <002b01ca0a28$d451f130$7cf5d390$@spb.ru> Hi Mike and Gustav, Thank you for your approval to team up to develop Northwind.NET for EF. Let's first of all implement a simple sample form (Shippers, Suppliers...) with BindingNavigator bound to object data source, and a simple sample report (Shippers) bound to object data source, and then implement all the other forms and reports of Northwind.NET using samples as templates? Do you see any other ways to proceed with this project? Thank you. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Sunday, July 19, 2009 11:26 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] LINQ for EF Example (Part III) Hi Shamil Of course, in lazy summer mode, as I probably will be off for a week or so from late next week. /gustav >>> shamil at smsconsulting.spb.ru 18-07-2009 14:30 >>> Hi Mike, Yes, "LINQ for ADO.NET Entity Framework" to be precise :) What about teaming-up with Gustav and myself and to port our Northwind.NET for MS SQL 2005 to "LINQ for ADO.NET Entity Framework"? Just an idea - and doing that project in "lazy summer mode" without setting strict deadlines? Gustav how about you? Anybody else? Have nice weekend. -- Shamil _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com __________ Information from ESET NOD32 Antivirus, version of virus signature database 4262 (20090720) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru __________ Information from ESET NOD32 Antivirus, version of virus signature database 4264 (20090721) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru From mmattys at rochester.rr.com Wed Jul 22 08:16:45 2009 From: mmattys at rochester.rr.com (Mike Mattys) Date: Wed, 22 Jul 2009 09:16:45 -0400 Subject: [dba-VB] LINQ for EF Example (Part III) References: <002b01ca0a28$d451f130$7cf5d390$@spb.ru> Message-ID: <1B6FE550BFA84B93987EF3BF91940CA1@Mattys> Hi Shamil, Still pretty busy ... I hope to start tomorrow evening. - Michael R Mattys MapPoint and Database Dev www.mattysconsulting.com - ----- Original Message ----- From: "Shamil Salakhetdinov" To: "'Discussion concerning Visual Basic and related programming issues.'" Sent: Tuesday, July 21, 2009 1:29 PM Subject: Re: [dba-VB] LINQ for EF Example (Part III) > Hi Mike and Gustav, > > Thank you for your approval to team up to develop Northwind.NET for EF. > Let's first of all implement a simple sample form (Shippers, Suppliers...) > with BindingNavigator bound to object data source, and a simple sample > report (Shippers) bound to object data source, and then implement all the > other forms and reports of Northwind.NET using samples as templates? > > Do you see any other ways to proceed with this project? > > Thank you. > > -- > Shamil > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: Sunday, July 19, 2009 11:26 AM > To: dba-vb at databaseadvisors.com > Subject: Re: [dba-VB] LINQ for EF Example (Part III) > > Hi Shamil > > Of course, in lazy summer mode, as I probably will be off for a week or so > from late next week. > > /gustav > > >>>> shamil at smsconsulting.spb.ru 18-07-2009 14:30 >>> > Hi Mike, > > Yes, "LINQ for ADO.NET Entity Framework" to be precise :) > > What about teaming-up with Gustav and myself and to port our Northwind.NET > for MS SQL 2005 to "LINQ for ADO.NET Entity Framework"? Just an idea - and > doing that project in "lazy summer mode" without setting strict deadlines? > > Gustav how about you? > Anybody else? > > Have nice weekend. > > -- > Shamil > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > > __________ Information from ESET NOD32 Antivirus, version of virus > signature > database 4262 (20090720) __________ > > The message was checked by ESET NOD32 Antivirus. > > http://www.esetnod32.ru > > > > > __________ Information from ESET NOD32 Antivirus, version of virus > signature > database 4264 (20090721) __________ > > The message was checked by ESET NOD32 Antivirus. > > http://www.esetnod32.ru > > > _______________________________________________ > 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 Jul 22 09:12:33 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 22 Jul 2009 10:12:33 -0400 Subject: [dba-VB] Simple web project In-Reply-To: <1B6FE550BFA84B93987EF3BF91940CA1@Mattys> References: <002b01ca0a28$d451f130$7cf5d390$@spb.ru> <1B6FE550BFA84B93987EF3BF91940CA1@Mattys> Message-ID: <4A671E51.1020303@colbyconsulting.com> I need some advice. My wife is on the PTA. She (I as her husband) was tasked with a simple database for tracking volunteer work for the PTA. They have to track (they get "credit" for) hours that volunteers put in. This is drop dead simple for an Access database, tblVolunteer, tblVolunteerHours, and MAYBE tblLocation. Plus a report to get the data out. The problem of course is that a database requires Access (or a runtime installation). Thus... Because it is such a simple database, I am thinking of doing it as a .Net application and make it available on the web so that any authorized person can enter the data or run the report. Questions (how do I do): 1) Web hosting? 2) Security model? 3) Other issues I am not even considering? 4) Which .Net product? Comments and advice requested. John W. Colby www.ColbyConsulting.com From ssharkins at gmail.com Wed Jul 22 10:02:06 2009 From: ssharkins at gmail.com (Susan Harkins) Date: Wed, 22 Jul 2009 11:02:06 -0400 Subject: [dba-VB] Simple web project References: <002b01ca0a28$d451f130$7cf5d390$@spb.ru><1B6FE550BFA84B93987EF3BF91940CA1@Mattys> <4A671E51.1020303@colbyconsulting.com> Message-ID: I think it's a great idea, but, you are assuming that all volunteers have access to the Web. That might currently be the case. However, that could change at any time. Will the school give volunteers access to this web-based application via a school computer? If that's the case, it doesn't even need to be web-based. You could create a simple .exe and drop it on the computer's desktop. Even VB Express can handle that. I would recommend some kind of group/user security because... I hate to say it, but I can easily see someone messing with the other volunteer's hours. That's only necessary if they're entering their own information. Web hosting shouldn't be a problem. I would imagine the school already has that set up. Susan H. > > Because it is such a simple database, I am thinking of doing it as a .Net > application and make it > available on the web so that any authorized person can enter the data or > run the report. > > Questions (how do I do): > > 1) Web hosting? > 2) Security model? > 3) Other issues I am not even considering? > 4) Which .Net product? > > Comments and advice requested. From jwcolby at colbyconsulting.com Wed Jul 22 10:17:42 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 22 Jul 2009 11:17:42 -0400 Subject: [dba-VB] SPAM-LOW: Re: Simple web project In-Reply-To: References: <002b01ca0a28$d451f130$7cf5d390$@spb.ru><1B6FE550BFA84B93987EF3BF91940CA1@Mattys> <4A671E51.1020303@colbyconsulting.com> Message-ID: <4A672D96.4000509@colbyconsulting.com> Susan, Actually the data entry is done by one person. They have a "sign in / out" sheet that they then manually figure out the hours and total. That is a lot of work. I was just thinking of the data store being available form any web enabled computer as opposed to my wife's computer or some other person's computer. Handing off the data entry becomes much easier. Seeing the numbers becomes much easier. And yes, the users do have to have web access. John W. Colby www.ColbyConsulting.com Susan Harkins wrote: > I think it's a great idea, but, you are assuming that all volunteers have > access to the Web. That might currently be the case. However, that could > change at any time. Will the school give volunteers access to this web-based > application via a school computer? If that's the case, it doesn't even need > to be web-based. You could create a simple .exe and drop it on the > computer's desktop. Even VB Express can handle that. > > I would recommend some kind of group/user security because... I hate to say > it, but I can easily see someone messing with the other volunteer's hours. > That's only necessary if they're entering their own information. > > Web hosting shouldn't be a problem. I would imagine the school already has > that set up. > > Susan H. > > >> Because it is such a simple database, I am thinking of doing it as a .Net >> application and make it >> available on the web so that any authorized person can enter the data or >> run the report. >> >> Questions (how do I do): >> >> 1) Web hosting? >> 2) Security model? >> 3) Other issues I am not even considering? >> 4) Which .Net product? >> >> Comments and advice requested. > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From max.wanadoo at gmail.com Wed Jul 22 10:20:16 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Wed, 22 Jul 2009 16:20:16 +0100 Subject: [dba-VB] Simple web project In-Reply-To: <4A671E51.1020303@colbyconsulting.com> References: <002b01ca0a28$d451f130$7cf5d390$@spb.ru> <1B6FE550BFA84B93987EF3BF91940CA1@Mattys> <4A671E51.1020303@colbyconsulting.com> Message-ID: <4a672e33.0506d00a.5f9a.ffff93d1@mx.google.com> Ha! Watch this grow exponentially. Can we just add this bit, and this bit, and, oh bye the way would it be possible..and then reports... Hahaha good luck with your "drop dead simple" DB. Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: 22 July 2009 15:13 To: Discussion concerning Visual Basic and related programming issues.; Access Developers discussion and problem solving Subject: [dba-VB] Simple web project I need some advice. My wife is on the PTA. She (I as her husband) was tasked with a simple database for tracking volunteer work for the PTA. They have to track (they get "credit" for) hours that volunteers put in. This is drop dead simple for an Access database, tblVolunteer, tblVolunteerHours, and MAYBE tblLocation. Plus a report to get the data out. The problem of course is that a database requires Access (or a runtime installation). Thus... Because it is such a simple database, I am thinking of doing it as a .Net application and make it available on the web so that any authorized person can enter the data or run the report. Questions (how do I do): 1) Web hosting? 2) Security model? 3) Other issues I am not even considering? 4) Which .Net product? Comments and advice requested. 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 max.wanadoo at gmail.com Wed Jul 22 10:21:17 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Wed, 22 Jul 2009 16:21:17 +0100 Subject: [dba-VB] LINQ for EF Example (Part III) In-Reply-To: <1B6FE550BFA84B93987EF3BF91940CA1@Mattys> References: <002b01ca0a28$d451f130$7cf5d390$@spb.ru> <1B6FE550BFA84B93987EF3BF91940CA1@Mattys> Message-ID: <4a672e70.0702d00a.72d7.ffffab6f@mx.google.com> ...he's doing proximity calculations... Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Mike Mattys Sent: 22 July 2009 14:17 To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] LINQ for EF Example (Part III) Hi Shamil, Still pretty busy ... I hope to start tomorrow evening. - Michael R Mattys MapPoint and Database Dev www.mattysconsulting.com - ----- Original Message ----- From: "Shamil Salakhetdinov" To: "'Discussion concerning Visual Basic and related programming issues.'" Sent: Tuesday, July 21, 2009 1:29 PM Subject: Re: [dba-VB] LINQ for EF Example (Part III) > Hi Mike and Gustav, > > Thank you for your approval to team up to develop Northwind.NET for EF. > Let's first of all implement a simple sample form (Shippers, Suppliers...) > with BindingNavigator bound to object data source, and a simple sample > report (Shippers) bound to object data source, and then implement all the > other forms and reports of Northwind.NET using samples as templates? > > Do you see any other ways to proceed with this project? > > Thank you. > > -- > Shamil > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: Sunday, July 19, 2009 11:26 AM > To: dba-vb at databaseadvisors.com > Subject: Re: [dba-VB] LINQ for EF Example (Part III) > > Hi Shamil > > Of course, in lazy summer mode, as I probably will be off for a week or so > from late next week. > > /gustav > > >>>> shamil at smsconsulting.spb.ru 18-07-2009 14:30 >>> > Hi Mike, > > Yes, "LINQ for ADO.NET Entity Framework" to be precise :) > > What about teaming-up with Gustav and myself and to port our Northwind.NET > for MS SQL 2005 to "LINQ for ADO.NET Entity Framework"? Just an idea - and > doing that project in "lazy summer mode" without setting strict deadlines? > > Gustav how about you? > Anybody else? > > Have nice weekend. > > -- > Shamil > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > > __________ Information from ESET NOD32 Antivirus, version of virus > signature > database 4262 (20090720) __________ > > The message was checked by ESET NOD32 Antivirus. > > http://www.esetnod32.ru > > > > > __________ Information from ESET NOD32 Antivirus, version of virus > signature > database 4264 (20090721) __________ > > The message was checked by ESET NOD32 Antivirus. > > http://www.esetnod32.ru > > > _______________________________________________ > 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 DWUTKA at Marlow.com Wed Jul 22 10:30:38 2009 From: DWUTKA at Marlow.com (Drew Wutka) Date: Wed, 22 Jul 2009 10:30:38 -0500 Subject: [dba-VB] Simple web project In-Reply-To: <4A671E51.1020303@colbyconsulting.com> References: <002b01ca0a28$d451f130$7cf5d390$@spb.ru><1B6FE550BFA84B93987EF3BF91940CA1@Mattys> <4A671E51.1020303@colbyconsulting.com> Message-ID: If this is something that you really want to keep SIMPLE, then just use plain old ASP, on whatever site you have access to. Make the data entry hours 'password protected' (either from the web side, or in the asp itself). You have your own site, don't you? Just put it there. Again, that's if you are going to keep this SIMPLE! Drew -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, July 22, 2009 9:13 AM To: Discussion concerning Visual Basic and related programming issues.; Access Developers discussion and problem solving Subject: [dba-VB] Simple web project I need some advice. My wife is on the PTA. She (I as her husband) was tasked with a simple database for tracking volunteer work for the PTA. They have to track (they get "credit" for) hours that volunteers put in. This is drop dead simple for an Access database, tblVolunteer, tblVolunteerHours, and MAYBE tblLocation. Plus a report to get the data out. The problem of course is that a database requires Access (or a runtime installation). Thus... Because it is such a simple database, I am thinking of doing it as a .Net application and make it available on the web so that any authorized person can enter the data or run the report. Questions (how do I do): 1) Web hosting? 2) Security model? 3) Other issues I am not even considering? 4) Which .Net product? Comments and advice requested. 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 jwcolby at colbyconsulting.com Wed Jul 22 10:30:50 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 22 Jul 2009 11:30:50 -0400 Subject: [dba-VB] Simple web project In-Reply-To: <4a672e33.0506d00a.5f9a.ffff93d1@mx.google.com> References: <002b01ca0a28$d451f130$7cf5d390$@spb.ru> <1B6FE550BFA84B93987EF3BF91940CA1@Mattys> <4A671E51.1020303@colbyconsulting.com> <4a672e33.0506d00a.5f9a.ffff93d1@mx.google.com> Message-ID: <4A6730AA.6000807@colbyconsulting.com> ROTFL. Yea, I know that! ;) OTOH I haven't persuaded a client to pay me to learn this stuff either. A volunteer project allows me to do it at my own pace, add stuff if I want etc. John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > Ha! Watch this grow exponentially. Can we just add this bit, and this bit, > and, oh bye the way would it be possible..and then reports... > > Hahaha good luck with your "drop dead simple" DB. > > Max > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: 22 July 2009 15:13 > To: Discussion concerning Visual Basic and related programming issues.; > Access Developers discussion and problem solving > Subject: [dba-VB] Simple web project > > I need some advice. My wife is on the PTA. She (I as her husband) was > tasked with a simple > database for tracking volunteer work for the PTA. They have to track (they > get "credit" for) hours > that volunteers put in. > > This is drop dead simple for an Access database, tblVolunteer, > tblVolunteerHours, and MAYBE > tblLocation. Plus a report to get the data out. The problem of course is > that a database requires > Access (or a runtime installation). Thus... > > Because it is such a simple database, I am thinking of doing it as a .Net > application and make it > available on the web so that any authorized person can enter the data or run > the report. > > Questions (how do I do): > > 1) Web hosting? > 2) Security model? > 3) Other issues I am not even considering? > 4) Which .Net product? > > Comments and advice requested. > > 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 jwcolby at colbyconsulting.com Wed Jul 22 11:33:36 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 22 Jul 2009 12:33:36 -0400 Subject: [dba-VB] Simple web project In-Reply-To: References: <002b01ca0a28$d451f130$7cf5d390$@spb.ru><1B6FE550BFA84B93987EF3BF91940CA1@Mattys> <4A671E51.1020303@colbyconsulting.com> Message-ID: <4A673F60.50005@colbyconsulting.com> I said simple, not edit it in notepad. ;) John W. Colby www.ColbyConsulting.com Drew Wutka wrote: > If this is something that you really want to keep SIMPLE, then just use > plain old ASP, on whatever site you have access to. Make the data entry > hours 'password protected' (either from the web side, or in the asp > itself). You have your own site, don't you? Just put it there. > > Again, that's if you are going to keep this SIMPLE! > > Drew > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Wednesday, July 22, 2009 9:13 AM > To: Discussion concerning Visual Basic and related programming issues.; > Access Developers discussion and problem solving > Subject: [dba-VB] Simple web project > > I need some advice. My wife is on the PTA. She (I as her husband) was > tasked with a simple > database for tracking volunteer work for the PTA. They have to track > (they get "credit" for) hours > that volunteers put in. > > This is drop dead simple for an Access database, tblVolunteer, > tblVolunteerHours, and MAYBE > tblLocation. Plus a report to get the data out. The problem of course > is that a database requires > Access (or a runtime installation). Thus... > > Because it is such a simple database, I am thinking of doing it as a > .Net application and make it > available on the web so that any authorized person can enter the data or > run the report. > > Questions (how do I do): > > 1) Web hosting? > 2) Security model? > 3) Other issues I am not even considering? > 4) Which .Net product? > > Comments and advice requested. > > 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 DWUTKA at Marlow.com Wed Jul 22 11:48:28 2009 From: DWUTKA at Marlow.com (Drew Wutka) Date: Wed, 22 Jul 2009 11:48:28 -0500 Subject: [dba-VB] Simple web project In-Reply-To: <4A673F60.50005@colbyconsulting.com> References: <002b01ca0a28$d451f130$7cf5d390$@spb.ru><1B6FE550BFA84B93987EF3BF91940CA1@Mattys> <4A671E51.1020303@colbyconsulting.com> <4A673F60.50005@colbyconsulting.com> Message-ID: LOL, I use Microsoft Script Editor (I believe it comes with Office), to write ASP. It acts like an VBE of sorts for ASP (intellisense for both asp and html). Drew -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, July 22, 2009 11:34 AM To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Simple web project I said simple, not edit it in notepad. ;) John W. Colby www.ColbyConsulting.com Drew Wutka wrote: > If this is something that you really want to keep SIMPLE, then just use > plain old ASP, on whatever site you have access to. Make the data entry > hours 'password protected' (either from the web side, or in the asp > itself). You have your own site, don't you? Just put it there. > > Again, that's if you are going to keep this SIMPLE! > > Drew > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Wednesday, July 22, 2009 9:13 AM > To: Discussion concerning Visual Basic and related programming issues.; > Access Developers discussion and problem solving > Subject: [dba-VB] Simple web project > > I need some advice. My wife is on the PTA. She (I as her husband) was > tasked with a simple > database for tracking volunteer work for the PTA. They have to track > (they get "credit" for) hours > that volunteers put in. > > This is drop dead simple for an Access database, tblVolunteer, > tblVolunteerHours, and MAYBE > tblLocation. Plus a report to get the data out. The problem of course > is that a database requires > Access (or a runtime installation). Thus... > > Because it is such a simple database, I am thinking of doing it as a > .Net application and make it > available on the web so that any authorized person can enter the data or > run the report. > > Questions (how do I do): > > 1) Web hosting? > 2) Security model? > 3) Other issues I am not even considering? > 4) Which .Net product? > > Comments and advice requested. > > 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 > > _______________________________________________ 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 shamil at smsconsulting.spb.ru Wed Jul 22 12:59:50 2009 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Wed, 22 Jul 2009 21:59:50 +0400 Subject: [dba-VB] LINQ for EF Example (Part III) In-Reply-To: <1B6FE550BFA84B93987EF3BF91940CA1@Mattys> References: <002b01ca0a28$d451f130$7cf5d390$@spb.ru> <1B6FE550BFA84B93987EF3BF91940CA1@Mattys> Message-ID: <006a01ca0af6$3709eb70$a51dc250$@spb.ru> Hi Mike, No, problem. This is "lazy summer mode" project. It doesn't require commitments for deadlines currently. I'm pretty busy here too. And as Gustav I plan to have some "holiday breaks". It may happen I will start working on subject project next week only. I suppose that as soon as we get a sample form and report ready we will proceed much quicker - maybe you know about/have seen any ready to (re-)use in this project samples? I failed to find them on Internet, have a missed them? Anybody here please advise on samples of WinForms and MS ReportViewer reports bound to ObjectDataSources based on/built from ADO.NET Entity Framework model objects. WinForm sample should use BindingNavigator. Thank you. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Mike Mattys Sent: Wednesday, July 22, 2009 5:17 PM To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] LINQ for EF Example (Part III) Hi Shamil, Still pretty busy ... I hope to start tomorrow evening. - Michael R Mattys MapPoint and Database Dev www.mattysconsulting.com - ----- Original Message ----- From: "Shamil Salakhetdinov" To: "'Discussion concerning Visual Basic and related programming issues.'" Sent: Tuesday, July 21, 2009 1:29 PM Subject: Re: [dba-VB] LINQ for EF Example (Part III) > Hi Mike and Gustav, > > Thank you for your approval to team up to develop Northwind.NET for EF. > Let's first of all implement a simple sample form (Shippers, Suppliers...) > with BindingNavigator bound to object data source, and a simple sample > report (Shippers) bound to object data source, and then implement all the > other forms and reports of Northwind.NET using samples as templates? > > Do you see any other ways to proceed with this project? > > Thank you. > > -- > Shamil > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: Sunday, July 19, 2009 11:26 AM > To: dba-vb at databaseadvisors.com > Subject: Re: [dba-VB] LINQ for EF Example (Part III) > > Hi Shamil > > Of course, in lazy summer mode, as I probably will be off for a week or so > from late next week. > > /gustav > > >>>> shamil at smsconsulting.spb.ru 18-07-2009 14:30 >>> > Hi Mike, > > Yes, "LINQ for ADO.NET Entity Framework" to be precise :) > > What about teaming-up with Gustav and myself and to port our Northwind.NET > for MS SQL 2005 to "LINQ for ADO.NET Entity Framework"? Just an idea - and > doing that project in "lazy summer mode" without setting strict deadlines? > > Gustav how about you? > Anybody else? > > Have nice weekend. > > -- > Shamil > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > > __________ Information from ESET NOD32 Antivirus, version of virus > signature > database 4262 (20090720) __________ > > The message was checked by ESET NOD32 Antivirus. > > http://www.esetnod32.ru > > > > > __________ Information from ESET NOD32 Antivirus, version of virus > signature > database 4264 (20090721) __________ > > The message was checked by ESET NOD32 Antivirus. > > http://www.esetnod32.ru > > > _______________________________________________ > 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 __________ Information from ESET NOD32 Antivirus, version of virus signature database 4267 (20090722) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru __________ Information from ESET NOD32 Antivirus, version of virus signature database 4267 (20090722) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru From shamil at smsconsulting.spb.ru Wed Jul 22 12:59:50 2009 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Wed, 22 Jul 2009 21:59:50 +0400 Subject: [dba-VB] Simple web project In-Reply-To: <4A671E51.1020303@colbyconsulting.com> References: <002b01ca0a28$d451f130$7cf5d390$@spb.ru> <1B6FE550BFA84B93987EF3BF91940CA1@Mattys> <4A671E51.1020303@colbyconsulting.com> Message-ID: <006e01ca0af6$3acb1220$b0613660$@spb.ru> Hi John, I'd recommend you to use ASP.Net 2.0 or 3.5 with MS SQL Server 2005/2008 (Express) as backend (please see below why MS SQL Server is IMO below). <<< 1) Web hosting? >>> I do use PARKING.RU - http://hosting.parking.ru/text.aspx?s=W2008 It works well for me as well as for my customers, one of them from your country "wild west" (WA), used this hosting as a "test-bed" to run her ASP.NET web service in 24x7 mode for several months, and that was very heavy duty web service with many requests coming to it every second. I'm not sure you'll pick to use the above hosting provider as it's located in Moscow, Russia. You can try then http://www.discountasp.net/ <<< 2) Security model? >>> Built-in ASP.NET 2.0/3.5 Membership system - runs only when MS SQL Server 2005/2008 (Express) is used for backend. Supports Members and Roles (and some other useful stuff), provides built-in login/logout (and related) ASP.NET controls. <<< 3) Other issues I am not even considering? >>> Improvement Ravine :) - at least you didn't mention it here - you'll have to have some patience and courage to get through it as on first steps you'll feel yourself extremely unproductive comparing with what you can do using MS Access: Source: http://martinfowler.com/bliki/ImprovementRavine.html <<< 4) Which .Net product? >>> ASP.NET 3.5 SP1 (FYI: is supports both ASP.NET 2.0 and 3.5) --- As for some simple samples of ASP.NET WebForms development for MS Access (AccessDataSource) you can find them in our Northwind.Net solution here: Northwind.NET.v.1.2.Sources.zip http://northwind.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=26600#D ownloadId=66932 in Northwind.ASP.NET.MSAccess.Reporting web project. I have made this web project entry web form available online here: http://shamils-4.hosting.parking.ru/nw/default1.aspx In the bottom of the above web page you'll find: +++++++ Northwind Forms (Sorry, just rough mock-ups mainly generated by VS2008 with a few code lines in code-behind to coordinate parent-child data retrieval using AccessDataSources) Shippers Categories Customers Employees Suppliers Products Orders -------- Try them this week. (I will remove all sample webforms allowing to edit data, and I will restore original MS Access db next week). If you or anybody else here wanted to collect some data access stats while playing with this db - I can add those stats collection code - please propose what stats would be interesting to collect (a few). Thank you. -- Shamil P.S. Have a look also here - the following sample web site is done (mainly generated by VS2008 from some of its templates) in about ten minutes: http://shamils-4.hosting.parking.ru/NorthwindNetDynamicDataWebSite/Default.a spx This is ADO.NET Entity Framework in action - it requires MS SQL Server 2005/2008 (Express) as backend, and .NET Framework 3.5 SP1 -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, July 22, 2009 6:13 PM To: Discussion concerning Visual Basic and related programming issues.; Access Developers discussion and problem solving Subject: [dba-VB] Simple web project I need some advice. My wife is on the PTA. She (I as her husband) was tasked with a simple database for tracking volunteer work for the PTA. They have to track (they get "credit" for) hours that volunteers put in. This is drop dead simple for an Access database, tblVolunteer, tblVolunteerHours, and MAYBE tblLocation. Plus a report to get the data out. The problem of course is that a database requires Access (or a runtime installation). Thus... Because it is such a simple database, I am thinking of doing it as a .Net application and make it available on the web so that any authorized person can enter the data or run the report. Questions (how do I do): 1) Web hosting? 2) Security model? 3) Other issues I am not even considering? 4) Which .Net product? Comments and advice requested. 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 __________ Information from ESET NOD32 Antivirus, version of virus signature database 4267 (20090722) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru __________ Information from ESET NOD32 Antivirus, version of virus signature database 4267 (20090722) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru From Gustav at cactus.dk Thu Jul 23 07:36:05 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 23 Jul 2009 14:36:05 +0200 Subject: [dba-VB] LINQ for EF Example (Part III) Message-ID: Hi Shamil and team That's fine with me. I'm on my way with Rita (wife) to the nature of Sweden and Norway for a relaxing break and will be back Monday 2009-08-03. Will try to view the inbox now and then but won't promise anything ... /gustav >>> shamil at smsconsulting.spb.ru 21-07-2009 19:29 >>> Hi Mike and Gustav, Thank you for your approval to team up to develop Northwind.NET for EF. Let's first of all implement a simple sample form (Shippers, Suppliers...) with BindingNavigator bound to object data source, and a simple sample report (Shippers) bound to object data source, and then implement all the other forms and reports of Northwind.NET using samples as templates? Do you see any other ways to proceed with this project? Thank you. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Sunday, July 19, 2009 11:26 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] LINQ for EF Example (Part III) Hi Shamil Of course, in lazy summer mode, as I probably will be off for a week or so from late next week. /gustav >>> shamil at smsconsulting.spb.ru 18-07-2009 14:30 >>> Hi Mike, Yes, "LINQ for ADO.NET Entity Framework" to be precise :) What about teaming-up with Gustav and myself and to port our Northwind.NET for MS SQL 2005 to "LINQ for ADO.NET Entity Framework"? Just an idea - and doing that project in "lazy summer mode" without setting strict deadlines? Gustav how about you? Anybody else? Have nice weekend. -- Shamil From shamil at smsconsulting.spb.ru Thu Jul 23 12:17:46 2009 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Thu, 23 Jul 2009 21:17:46 +0400 Subject: [dba-VB] ADO.NET Entity Framework with Winforms and MS eportViewer report sample project... Message-ID: <00dd01ca0bb9$806f8d10$814ea730$@spb.ru> Hi All, FYI: I have just released on http://northwind.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=26600 - SPJ_SQL2005.zip - C.J.Date sample database (prepared here) - previous version was broken; - SPJWinFormsForEF_VS2008.zip - VS2008 sample project to demonstrate WinForms and MS ReportViewer reports bound to ADO.NET Entity Framework object datasources; - SPJWinFormsForEF_Executables.zip - just executables and sample database for the above sample project. Please test the samples if you're interested in the subject technology. Please inform me here in the case of any issues to fix. Please note that the above sample is just a preparation of conversion of our Northwind.NET WinForms project to use ADO.NET Entity Framework. Thank you. -- Shamil From shamil at smsconsulting.spb.ru Thu Jul 23 12:17:46 2009 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Thu, 23 Jul 2009 21:17:46 +0400 Subject: [dba-VB] LINQ for EF Example (Part III) In-Reply-To: References: Message-ID: <00e201ca0bb9$81b21f30$85165d90$@spb.ru> Hi Gustav, Good luck with your trip to Sweden and Norway (BTW, I plan to have a short trip to Finland (Imatra, Laapenranta and Helsinki) on 26-28 this months.) FYI: I have just got released a small VS2008 project: - SPJWinFormsForEF_VS2008.zip - VS2008 sample project to demonstrate WinForms and MS ReportViewer reports bound to ADO.NET Entity Framework object datasources; - SPJWinFormsForEF_Executables.zip - just executables and sample database for the above sample project. which can be used as sample to work on converting Northwind.NET to use ADO.NET Entity Framework object data sources. Thank you. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, July 23, 2009 4:36 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] LINQ for EF Example (Part III) Hi Shamil and team That's fine with me. I'm on my way with Rita (wife) to the nature of Sweden and Norway for a relaxing break and will be back Monday 2009-08-03. Will try to view the inbox now and then but won't promise anything ... /gustav >>> shamil at smsconsulting.spb.ru 21-07-2009 19:29 >>> Hi Mike and Gustav, Thank you for your approval to team up to develop Northwind.NET for EF. Let's first of all implement a simple sample form (Shippers, Suppliers...) with BindingNavigator bound to object data source, and a simple sample report (Shippers) bound to object data source, and then implement all the other forms and reports of Northwind.NET using samples as templates? Do you see any other ways to proceed with this project? Thank you. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Sunday, July 19, 2009 11:26 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] LINQ for EF Example (Part III) Hi Shamil Of course, in lazy summer mode, as I probably will be off for a week or so from late next week. /gustav >>> shamil at smsconsulting.spb.ru 18-07-2009 14:30 >>> Hi Mike, Yes, "LINQ for ADO.NET Entity Framework" to be precise :) What about teaming-up with Gustav and myself and to port our Northwind.NET for MS SQL 2005 to "LINQ for ADO.NET Entity Framework"? Just an idea - and doing that project in "lazy summer mode" without setting strict deadlines? Gustav how about you? Anybody else? Have nice weekend. -- Shamil _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com __________ Information from ESET NOD32 Antivirus, version of virus signature database 4270 (20090723) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru __________ Information from ESET NOD32 Antivirus, version of virus signature database 4270 (20090723) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru From mmattys at rochester.rr.com Thu Jul 23 13:33:19 2009 From: mmattys at rochester.rr.com (Mike Mattys) Date: Thu, 23 Jul 2009 14:33:19 -0400 Subject: [dba-VB] ADO.NET Entity Framework with Winforms and MS eportViewerreport sample project... References: <00dd01ca0bb9$806f8d10$814ea730$@spb.ru> Message-ID: <943FA89E7E1E4318807137B9AB209E95@Mattys> Thanks, Shamil - Michael R Mattys MapPoint and Database Dev www.mattysconsulting.com - ----- Original Message ----- From: "Shamil Salakhetdinov" To: "'Discussion concerning Visual Basic and related programming issues.'" Sent: Thursday, July 23, 2009 1:17 PM Subject: [dba-VB] ADO.NET Entity Framework with Winforms and MS eportViewerreport sample project... > Hi All, > > > > FYI: I have just released on > http://northwind.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=26600 > > > > - SPJ_SQL2005.zip - C.J.Date sample database (prepared here) - previous > version was broken; > > - SPJWinFormsForEF_VS2008.zip - VS2008 sample project to demonstrate > WinForms and MS ReportViewer reports bound to ADO.NET Entity Framework > object datasources; > > - SPJWinFormsForEF_Executables.zip - just executables and sample database > for the above sample project. > > > > Please test the samples if you're interested in the subject technology. > > Please inform me here in the case of any issues to fix. > > Please note that the above sample is just a preparation of conversion of > our > Northwind.NET WinForms project to use ADO.NET Entity Framework. > > > > Thank you. > > > > -- > > Shamil > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From mmattys at rochester.rr.com Thu Jul 23 13:34:08 2009 From: mmattys at rochester.rr.com (Mike Mattys) Date: Thu, 23 Jul 2009 14:34:08 -0400 Subject: [dba-VB] LINQ for EF Example (Part III) References: Message-ID: <556D4755E8F944039B38F1A631117CF1@Mattys> I hope you enjoy your vacation, Gustav. - Michael R Mattys MapPoint and Database Dev www.mattysconsulting.com - ----- Original Message ----- From: "Gustav Brock" To: Sent: Thursday, July 23, 2009 8:36 AM Subject: Re: [dba-VB] LINQ for EF Example (Part III) > Hi Shamil and team > > That's fine with me. > > I'm on my way with Rita (wife) to the nature of Sweden and Norway for a > relaxing break and will be back Monday 2009-08-03. Will try to view the > inbox now and then but won't promise anything ... > > /gustav From fhtapia at gmail.com Wed Jul 29 23:38:45 2009 From: fhtapia at gmail.com (Francisco Tapia) Date: Wed, 29 Jul 2009 21:38:45 -0700 Subject: [dba-VB] QueryStringParameter error Message-ID: Hi, I've not been active on this list at all, but I do have a quick question someone here may have already ran into. I am working on an ASP.NET (visual studio 2008) and I created a few pages that all work fairly similarly, where there is a GridView on the main Entity page, and Add pages along with Edit pages created with Details View controls. In the GridView page, I add an edit button and the link points the ~/language/EditLanguage.aspx?intLanguage={0}. On the receiving page I edited the SELECT command with the proper WHERE clause as WHERE intLanguage= @intLanguage. The QueryStringParameter is as follows: so this is the same for my other pages such as my Release page and my Category page and both work fine, but the language page is different... the PKID is the intLanguage field, but it's not an autoincremented number (since this project is still in it's infancy, I've thought about adding a true surrogate PKID and see if that is the problem... note, If i edit the select command w/o the where, the page loads fine (well w/o the parameter being passed so my DetailsView control only displays the first record in the recordset, I'm new to ASP.NET and don't really know how to troubleshoot this.... any ideas? -Francisco http://sqlthis.blogspot.com | Tsql and More... From ebarro at verizon.net Fri Jul 31 23:48:26 2009 From: ebarro at verizon.net (Eric Barro) Date: Fri, 31 Jul 2009 21:48:26 -0700 Subject: [dba-VB] QueryStringParameter error In-Reply-To: References: Message-ID: <07C21F79042A4BDD98A27EF049A0B312@advancedinput.com> Francico, I haven't really worked with the syntax you show below but I've seen a buddy of mine use it as well. Try and put Response.Write(intLanguage) in your code to debug and see if it is passing the value. Eric -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Francisco Tapia Sent: Wednesday, July 29, 2009 9:39 PM To: Discussion concerning Visual Basic and related programming issues. Subject: [dba-VB] QueryStringParameter error Hi, I've not been active on this list at all, but I do have a quick question someone here may have already ran into. I am working on an ASP.NET (visual studio 2008) and I created a few pages that all work fairly similarly, where there is a GridView on the main Entity page, and Add pages along with Edit pages created with Details View controls. In the GridView page, I add an edit button and the link points the ~/language/EditLanguage.aspx?intLanguage={0}. On the receiving page I edited the SELECT command with the proper WHERE clause as WHERE intLanguage= @intLanguage. The QueryStringParameter is as follows: so this is the same for my other pages such as my Release page and my Category page and both work fine, but the language page is different... the PKID is the intLanguage field, but it's not an autoincremented number (since this project is still in it's infancy, I've thought about adding a true surrogate PKID and see if that is the problem... note, If i edit the select command w/o the where, the page loads fine (well w/o the parameter being passed so my DetailsView control only displays the first record in the recordset, I'm new to ASP.NET and don't really know how to troubleshoot this.... any ideas? -Francisco http://sqlthis.blogspot.com | Tsql and More... _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com