From jwcolby at colbyconsulting.com Sun Jan 2 14:06:39 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sun, 02 Jan 2011 15:06:39 -0500 Subject: [dba-VB] A Sneaky, Subtle Price Increase | Overclockers Message-ID: <4D20DACF.1010107@colbyconsulting.com> http://www.overclockers.com/a-sneaky-subtle-price-increase/ -- John W. Colby www.ColbyConsulting.com From jwcolby at colbyconsulting.com Sun Jan 2 14:58:23 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sun, 02 Jan 2011 15:58:23 -0500 Subject: [dba-VB] A Sneaky, Subtle Price Increase | Overclockers In-Reply-To: <4D20DACF.1010107@colbyconsulting.com> References: <4D20DACF.1010107@colbyconsulting.com> Message-ID: <4D20E6EF.1020800@colbyconsulting.com> So sneaky they are still warning us 6 years later... 8( John W. Colby www.ColbyConsulting.com On 1/2/2011 3:06 PM, jwcolby wrote: > http://www.overclockers.com/a-sneaky-subtle-price-increase/ > > From shamil at smsconsulting.spb.ru Wed Jan 5 07:15:15 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Wed, 5 Jan 2011 16:15:15 +0300 Subject: [dba-VB] FYI: EF Code First CTP5 Message-ID: <9DC97BD82AA542F297C26482B27D669F@nant> Hi All -- FYI: EF Code First CTP5 http://www.infoq.com/news/2010/12/ef-ctp5 http://weblogs.asp.net/manavi/default.aspx Thank you. -- Shamil From Gustav at cactus.dk Wed Jan 5 08:41:30 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 05 Jan 2011 15:41:30 +0100 Subject: [dba-VB] Moving to .Net, ASP.NET web applications, and the Entity Framework Message-ID: Hi all A step-by-step intro for everyone, and this may be a bit optimistic but still: Build a Data-Driven Enterprise Web Site in 5 Minutes http://msdn.microsoft.com/da-dk/magazine/gg535665(en-us).aspx If this should interest you, please subscribe to our dba-VB list. /gustav From jwcolby at colbyconsulting.com Wed Jan 5 12:00:15 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 05 Jan 2011 13:00:15 -0500 Subject: [dba-VB] SQL Server security Message-ID: <4D24B1AF.3090800@colbyconsulting.com> I am having performance issues in a largish Access application, a Disability Insurance Claim call center app. I have one particular table which is not huge in terms of field count but it does have a lot of records and most of the fields are indexed, and it has about 800K records in it. This table holds "contact" info, as in phone calls that the users have. They document every "contact" with every one, claimants, doctors, lawyers, etc. into a memo field and also date of call, ClaimID FK, employee id FK, contact type id FK etc. Kind of a mini center of the universe for this application. The result is that people are storing new records in this table constantly throughout the day and we are getting a lot of "record locked..." issues caused by (AFAICT) the time it takes Jet to store the records and update all of the indexes, and probably the memo storage area of the mdb. Just to give a picture, this one table has been moved out to it's own mdb and that mdb is about 700 megabytes after a compact. Most of the rest of the database (150 tables) is in another mdb and after compact that database is 800 megabytes, so this one table is close to as big as the rest of the db. I do not have experience in a transactional database using SQL Server, but I am thinking that SQL Server express 2005 will not have an issue keeping up with this kind of usage - 25 users adding records to this table all day without causing locking issues like I am seeing now. My issue at this point is that they use a network logon and force the users to change their password every 30 days. Is SQL Server going to use that same network username / password database or does it use a list of usernames / passwords physically on the server itself? IOW will Windows authentication work or will I need to go to SQL Server username / password? -- John W. Colby www.ColbyConsulting.com From davidmcafee at gmail.com Wed Jan 5 12:21:15 2011 From: davidmcafee at gmail.com (David McAfee) Date: Wed, 5 Jan 2011 10:21:15 -0800 Subject: [dba-VB] SQL Server security In-Reply-To: <4D24B1AF.3090800@colbyconsulting.com> References: <4D24B1AF.3090800@colbyconsulting.com> Message-ID: You can choose either path. I tend to use SQL Server security myself. A better question is maybe looking at the design of the table for the contact info. I tend to design all data changes as insertions. Vary rarely to I allow a table to be edited. I display the contact information on just about every screen, but only give to choice to edit (if they have rights) when it is indeed needed. I never have locking issues in Access or SQL. D On Wed, Jan 5, 2011 at 10:00 AM, jwcolby wrote: > I am having performance issues in a largish Access application, a > Disability Insurance Claim call center app. > > I have one particular table which is not huge in terms of field count but > it does have a lot of records and most of the fields are indexed, and it has > about 800K records in it. This table holds "contact" info, as in phone > calls that the users have. They document every "contact" with every one, > claimants, doctors, lawyers, etc. into a memo field and also date of call, > ClaimID FK, employee id FK, contact type id FK etc. Kind of a mini center > of the universe for this application. > > The result is that people are storing new records in this table constantly > throughout the day and we are getting a lot of "record locked..." issues > caused by (AFAICT) the time it takes Jet to store the records and update all > of the indexes, and probably the memo storage area of the mdb. > > Just to give a picture, this one table has been moved out to it's own mdb > and that mdb is about 700 megabytes after a compact. Most of the rest of > the database (150 tables) is in another mdb and after compact that database > is 800 megabytes, so this one table is close to as big as the rest of the > db. > > I do not have experience in a transactional database using SQL Server, but > I am thinking that SQL Server express 2005 will not have an issue keeping up > with this kind of usage - 25 users adding records to this table all day > without causing locking issues like I am seeing now. > > My issue at this point is that they use a network logon and force the users > to change their password every 30 days. Is SQL Server going to use that > same network username / password database or does it use a list of usernames > / passwords physically on the server itself? IOW will Windows > authentication work or will I need to go to SQL Server username / password? > > -- > John W. Colby > www.ColbyConsulting.com > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From jwcolby at colbyconsulting.com Wed Jan 5 12:45:01 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 05 Jan 2011 13:45:01 -0500 Subject: [dba-VB] SQL Server security In-Reply-To: References: <4D24B1AF.3090800@colbyconsulting.com> Message-ID: <4D24BC2D.2050907@colbyconsulting.com> This is not contact info as in Name / address / phone, it is a place to enter information about telephone (mostly) contacts with everyone that the call center people talk to. It is primarily a memo field (because they often write pages of notes) with a hand full of FKs and a few date fields. These are primarily new records (inserts) but there are edits of existing records. There are about 800 THOUSAND of these records and hundreds a day added. John W. Colby www.ColbyConsulting.com On 1/5/2011 1:21 PM, David McAfee wrote: > You can choose either path. I tend to use SQL Server security myself. > > A better question is maybe looking at the design of the table for the > contact info. > > I tend to design all data changes as insertions. Vary rarely to I allow a > table to be edited. > > I display the contact information on just about every screen, but only give > to choice to edit (if they have rights) when it is indeed needed. > > I never have locking issues in Access or SQL. > > D > > On Wed, Jan 5, 2011 at 10:00 AM, jwcolbywrote: > >> I am having performance issues in a largish Access application, a >> Disability Insurance Claim call center app. >> >> I have one particular table which is not huge in terms of field count but >> it does have a lot of records and most of the fields are indexed, and it has >> about 800K records in it. This table holds "contact" info, as in phone >> calls that the users have. They document every "contact" with every one, >> claimants, doctors, lawyers, etc. into a memo field and also date of call, >> ClaimID FK, employee id FK, contact type id FK etc. Kind of a mini center >> of the universe for this application. >> >> The result is that people are storing new records in this table constantly >> throughout the day and we are getting a lot of "record locked..." issues >> caused by (AFAICT) the time it takes Jet to store the records and update all >> of the indexes, and probably the memo storage area of the mdb. >> >> Just to give a picture, this one table has been moved out to it's own mdb >> and that mdb is about 700 megabytes after a compact. Most of the rest of >> the database (150 tables) is in another mdb and after compact that database >> is 800 megabytes, so this one table is close to as big as the rest of the >> db. >> >> I do not have experience in a transactional database using SQL Server, but >> I am thinking that SQL Server express 2005 will not have an issue keeping up >> with this kind of usage - 25 users adding records to this table all day >> without causing locking issues like I am seeing now. >> >> My issue at this point is that they use a network logon and force the users >> to change their password every 30 days. Is SQL Server going to use that >> same network username / password database or does it use a list of usernames >> / passwords physically on the server itself? IOW will Windows >> authentication work or will I need to go to SQL Server username / password? >> >> -- >> 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 fhtapia at gmail.com Wed Jan 5 13:41:23 2011 From: fhtapia at gmail.com (Francisco Tapia) Date: Wed, 5 Jan 2011 11:41:23 -0800 Subject: [dba-VB] SQL Server security In-Reply-To: <4D24B1AF.3090800@colbyconsulting.com> References: <4D24B1AF.3090800@colbyconsulting.com> Message-ID: -Francisco http://bit.ly/sqlthis | Tsql and More... On Wed, Jan 5, 2011 at 10:00 AM, jwcolby wrote: > > I do not have experience in a transactional database using SQL Server, but > I am thinking that SQL Server express 2005 will not have an issue keeping up > with this kind of usage - 25 users adding records to this table all day > without causing locking issues like I am seeing now. > It's been a while since I did a conversion, I don't remember if you need to make all your fields varchar or nvarchar, but that's the gist. I remember also going unbound to simplify the data entry process, but ymmv with that piece of advise. We have SQL Server running in the backend for many of our transactional systems and we have > than 25 users all w/o locking problems. My issue at this point is that they use a network logon and force the users > to change their password every 30 days. Is SQL Server going to use that > same network username / password database or does it use a list of usernames > / passwords physically on the server itself? IOW will Windows > authentication work or will I need to go to SQL Server username / password? Windows Authentication will work just fine. To simplify the user to server problem, you'd want the network admin to add your users who have access to the application to a specific domain group... then just give access to the domain group. You can even put security around who has access to what based on domain group, works a treat. If you have too much difficulty with that you can always fall back to sql authentication, but I always prefer windows authentication except for the web apps we have... From michael at mattysconsulting.com Wed Jan 5 13:53:38 2011 From: michael at mattysconsulting.com (Michael Mattys) Date: Wed, 5 Jan 2011 14:53:38 -0500 Subject: [dba-VB] Moving to .Net, ASP.NET web applications, and the Entity Framework In-Reply-To: References: Message-ID: Hi Gustav / All I made the site, but found that, even after I made sure that I was running in .Net Framework 4, the Display(Name ...) mechanism doesn't work. Did you try this? Michael R Mattys Business Process Developers www.mattysconsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, January 05, 2011 9:42 AM To: accessd at databaseadvisors.com; dba-vb at databaseadvisors.com Subject: [dba-VB] Moving to .Net, ASP.NET web applications,and the Entity Framework Hi all A step-by-step intro for everyone, and this may be a bit optimistic but still: Build a Data-Driven Enterprise Web Site in 5 Minutes http://msdn.microsoft.com/da-dk/magazine/gg535665(en-us).aspx If this should interest you, please subscribe to our dba-VB list. /gustav _______________________________________________ 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 Jan 5 15:01:19 2011 From: gustav at cactus.dk (Gustav Brock) Date: Wed, 05 Jan 2011 22:01:19 +0100 Subject: [dba-VB] Moving to .Net, ASP.NET web applications, and the Entity Framework Message-ID: Hi Michael No I haven't tried to build the site. Maybe I can have a look in the weekend. /gustav >>> "Michael Mattys" 05-01-2011 20:53 >>> Hi Gustav / All I made the site, but found that, even after I made sure that I was running in .Net Framework 4, the Display(Name ...) mechanism doesn't work. Did you try this? Michael R Mattys Business Process Developers www.mattysconsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, January 05, 2011 9:42 AM To: accessd at databaseadvisors.com; dba-vb at databaseadvisors.com Subject: [dba-VB] Moving to .Net, ASP.NET web applications,and the Entity Framework Hi all A step-by-step intro for everyone, and this may be a bit optimistic but still: Build a Data-Driven Enterprise Web Site in 5 Minutes http://msdn.microsoft.com/da-dk/magazine/gg535665(en-us).aspx If this should interest you, please subscribe to our dba-VB list. /gustav From shamil at smsconsulting.spb.ru Wed Jan 5 15:47:44 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Thu, 6 Jan 2011 00:47:44 +0300 Subject: [dba-VB] Moving to .Net, ASP.NET web applications, and the Entity Framework In-Reply-To: References: Message-ID: Hi Michael -- [Display(Name = ....] gives CS0592: Attribute 'Display' is not valid on this declaration type. It is only valid on 'method, property, indexer, field, param' declarations. [DisplayName(....] works well. Thank you. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Michael Mattys Sent: 5 ?????? 2011 ?. 22:54 To: 'Discussion concerning Visual Basic and related programming issues.' Subject: Re: [dba-VB] Moving to .Net, ASP.NET web applications,and the Entity Framework Hi Gustav / All I made the site, but found that, even after I made sure that I was running in .Net Framework 4, the Display(Name ...) mechanism doesn't work. Did you try this? Michael R Mattys Business Process Developers www.mattysconsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, January 05, 2011 9:42 AM To: accessd at databaseadvisors.com; dba-vb at databaseadvisors.com Subject: [dba-VB] Moving to .Net, ASP.NET web applications,and the Entity Framework Hi all A step-by-step intro for everyone, and this may be a bit optimistic but still: Build a Data-Driven Enterprise Web Site in 5 Minutes http://msdn.microsoft.com/da-dk/magazine/gg535665(en-us).aspx If this should interest you, please subscribe to our dba-VB list. /gustav From michael at mattysconsulting.com Wed Jan 5 20:55:51 2011 From: michael at mattysconsulting.com (Michael Mattys) Date: Wed, 5 Jan 2011 21:55:51 -0500 Subject: [dba-VB] Moving to .Net, ASP.NET web applications, and the Entity Framework In-Reply-To: References: Message-ID: <0FFE4C308D6D4A30BEE3C5635FDB7E65@Gateway> Thanks, Shamil! Michael R Mattys Business Process Developers www.mattysconsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Wednesday, January 05, 2011 4:48 PM To: 'Discussion concerning Visual Basic and related programming issues.' Subject: Re: [dba-VB] Moving to .Net, ASP.NET web applications,and the Entity Framework Hi Michael -- [Display(Name = ....] gives CS0592: Attribute 'Display' is not valid on this declaration type. It is only valid on 'method, property, indexer, field, param' declarations. [DisplayName(....] works well. Thank you. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Michael Mattys Sent: 5 ?????? 2011 ?. 22:54 To: 'Discussion concerning Visual Basic and related programming issues.' Subject: Re: [dba-VB] Moving to .Net, ASP.NET web applications,and the Entity Framework Hi Gustav / All I made the site, but found that, even after I made sure that I was running in .Net Framework 4, the Display(Name ...) mechanism doesn't work. Did you try this? Michael R Mattys Business Process Developers www.mattysconsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, January 05, 2011 9:42 AM To: accessd at databaseadvisors.com; dba-vb at databaseadvisors.com Subject: [dba-VB] Moving to .Net, ASP.NET web applications,and the Entity Framework Hi all A step-by-step intro for everyone, and this may be a bit optimistic but still: Build a Data-Driven Enterprise Web Site in 5 Minutes http://msdn.microsoft.com/da-dk/magazine/gg535665(en-us).aspx If this should interest you, please subscribe to our dba-VB list. /gustav _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From paul.hartland at googlemail.com Wed Jan 5 23:15:51 2011 From: paul.hartland at googlemail.com (Paul Hartland) Date: Thu, 6 Jan 2011 05:15:51 +0000 Subject: [dba-VB] SQL Server security In-Reply-To: <4D24B1AF.3090800@colbyconsulting.com> References: <4D24B1AF.3090800@colbyconsulting.com> Message-ID: John, I remember we had a similar problem at my old company many years back, especially with one table. Our simple solution (which surprised me that it worked) was to add two fields to the table a TimeStamp field and a UniqueIdentifier field (think those are the names of the datatypes in SQL). You could try that first. Paul On 5 January 2011 18:00, jwcolby wrote: > I am having performance issues in a largish Access application, a > Disability Insurance Claim call center app. > > I have one particular table which is not huge in terms of field count but > it does have a lot of records and most of the fields are indexed, and it has > about 800K records in it. This table holds "contact" info, as in phone > calls that the users have. They document every "contact" with every one, > claimants, doctors, lawyers, etc. into a memo field and also date of call, > ClaimID FK, employee id FK, contact type id FK etc. Kind of a mini center > of the universe for this application. > > The result is that people are storing new records in this table constantly > throughout the day and we are getting a lot of "record locked..." issues > caused by (AFAICT) the time it takes Jet to store the records and update all > of the indexes, and probably the memo storage area of the mdb. > > Just to give a picture, this one table has been moved out to it's own mdb > and that mdb is about 700 megabytes after a compact. Most of the rest of > the database (150 tables) is in another mdb and after compact that database > is 800 megabytes, so this one table is close to as big as the rest of the > db. > > I do not have experience in a transactional database using SQL Server, but > I am thinking that SQL Server express 2005 will not have an issue keeping up > with this kind of usage - 25 users adding records to this table all day > without causing locking issues like I am seeing now. > > My issue at this point is that they use a network logon and force the users > to change their password every 30 days. Is SQL Server going to use that > same network username / password database or does it use a list of usernames > / passwords physically on the server itself? IOW will Windows > authentication work or will I need to go to SQL Server username / password? > > -- > 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 > > -- Paul Hartland paul.hartland at googlemail.com From marklbreen at gmail.com Thu Jan 6 03:10:37 2011 From: marklbreen at gmail.com (Mark Breen) Date: Thu, 6 Jan 2011 09:10:37 +0000 Subject: [dba-VB] SQL Server security In-Reply-To: <4D24B1AF.3090800@colbyconsulting.com> References: <4D24B1AF.3090800@colbyconsulting.com> Message-ID: Hello John, I had an almost exact issue about three months ago. It was a call centre with about 25 - 40 agents on the phone with an Access App. When they upgraded to Access 2007, the whole application ground to a halt. I did some basic checking but could find no single issue, so I downgraded them again to Access 2000 FE and BE and immediately all was ok again. Any help? thanks Mark On 5 January 2011 18:00, jwcolby wrote: > I am having performance issues in a largish Access application, a > Disability Insurance Claim call center app. > > I have one particular table which is not huge in terms of field count but > it does have a lot of records and most of the fields are indexed, and it has > about 800K records in it. This table holds "contact" info, as in phone > calls that the users have. They document every "contact" with every one, > claimants, doctors, lawyers, etc. into a memo field and also date of call, > ClaimID FK, employee id FK, contact type id FK etc. Kind of a mini center > of the universe for this application. > > The result is that people are storing new records in this table constantly > throughout the day and we are getting a lot of "record locked..." issues > caused by (AFAICT) the time it takes Jet to store the records and update all > of the indexes, and probably the memo storage area of the mdb. > > Just to give a picture, this one table has been moved out to it's own mdb > and that mdb is about 700 megabytes after a compact. Most of the rest of > the database (150 tables) is in another mdb and after compact that database > is 800 megabytes, so this one table is close to as big as the rest of the > db. > > I do not have experience in a transactional database using SQL Server, but > I am thinking that SQL Server express 2005 will not have an issue keeping up > with this kind of usage - 25 users adding records to this table all day > without causing locking issues like I am seeing now. > > My issue at this point is that they use a network logon and force the users > to change their password every 30 days. Is SQL Server going to use that > same network username / password database or does it use a list of usernames > / passwords physically on the server itself? IOW will Windows > authentication work or will I need to go to SQL Server username / password? > > -- > John W. Colby > www.ColbyConsulting.com > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From jwcolby at colbyconsulting.com Thu Jan 6 05:14:49 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 06 Jan 2011 06:14:49 -0500 Subject: [dba-VB] SQL Server security In-Reply-To: References: <4D24B1AF.3090800@colbyconsulting.com> Message-ID: <4D25A429.5030609@colbyconsulting.com> This app has been in use since I developed the initial iteration many years ago. It is still at Access 2000. John W. Colby www.ColbyConsulting.com On 1/6/2011 4:10 AM, Mark Breen wrote: > Hello John, > > I had an almost exact issue about three months ago. It was a call centre > with about 25 - 40 agents on the phone with an Access App. > > When they upgraded to Access 2007, the whole application ground to a halt. > > I did some basic checking but could find no single issue, so I downgraded > them again to Access 2000 FE and BE and immediately all was ok again. > > Any help? > > thanks > > Mark > > > > On 5 January 2011 18:00, jwcolby wrote: > >> I am having performance issues in a largish Access application, a >> Disability Insurance Claim call center app. >> >> I have one particular table which is not huge in terms of field count but >> it does have a lot of records and most of the fields are indexed, and it has >> about 800K records in it. This table holds "contact" info, as in phone >> calls that the users have. They document every "contact" with every one, >> claimants, doctors, lawyers, etc. into a memo field and also date of call, >> ClaimID FK, employee id FK, contact type id FK etc. Kind of a mini center >> of the universe for this application. >> >> The result is that people are storing new records in this table constantly >> throughout the day and we are getting a lot of "record locked..." issues >> caused by (AFAICT) the time it takes Jet to store the records and update all >> of the indexes, and probably the memo storage area of the mdb. >> >> Just to give a picture, this one table has been moved out to it's own mdb >> and that mdb is about 700 megabytes after a compact. Most of the rest of >> the database (150 tables) is in another mdb and after compact that database >> is 800 megabytes, so this one table is close to as big as the rest of the >> db. >> >> I do not have experience in a transactional database using SQL Server, but >> I am thinking that SQL Server express 2005 will not have an issue keeping up >> with this kind of usage - 25 users adding records to this table all day >> without causing locking issues like I am seeing now. >> >> My issue at this point is that they use a network logon and force the users >> to change their password every 30 days. Is SQL Server going to use that >> same network username / password database or does it use a list of usernames >> / passwords physically on the server itself? IOW will Windows >> authentication work or will I need to go to SQL Server username / password? >> >> -- >> 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 Fri Jan 7 23:01:31 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 08 Jan 2011 00:01:31 -0500 Subject: [dba-VB] Access - link to SQL database -Database not showing Message-ID: <4D27EFAB.5040200@colbyconsulting.com> I have installed SQL Server 2005 on a (remote) Windows 2000 server machine at the client. From my workstation at the client I then open SQL Server MSExpress 2005 and I can see that SQL Server Express instance and two databases that I created on that SQL Server Express instance. From Access I try to link to a table in one of those databases. When I get to the wizard page where I am allowed to change the default database, I cannot see either of the two databases that I need to get at, only the master, msdb and tempdb. I was having a problem where I could not connect and had to open the surface configuration and allow remote connections. I selected TCP AND named pipes. That allowed MSE to see that server as well as Access to see that server, but it does not yet allow me to see the actual database of interest. Any clue why? I have done this before here at my office and I could always see the databases. TIA, -- John W. Colby www.ColbyConsulting.com From jwcolby at colbyconsulting.com Fri Jan 7 23:06:11 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 08 Jan 2011 00:06:11 -0500 Subject: [dba-VB] Further to "can's see SQL Server database... Message-ID: <4D27F0C3.2030206@colbyconsulting.com> I went back in with MSE and looked at that server. While I can see the databases of interest, if I click on them and try to see the tables inside, I get an error "the database DISCO is not available" and the plus symbol in front of the database disappears. So I can see that the db exists but not actually access it (from my workstation). I can see and open the database from MSE on the server itself. Is this an ownership / rights kind of issue? I am not getting an actual error number from my workstation, just an "not available" generic kind of message. If it is ownership / rights, how do I go about discovering how to fix it? -- John W. Colby www.ColbyConsulting.com From marklbreen at gmail.com Sat Jan 8 09:34:58 2011 From: marklbreen at gmail.com (Mark Breen) Date: Sat, 8 Jan 2011 15:34:58 +0000 Subject: [dba-VB] Further to "can's see SQL Server database... In-Reply-To: <4D27F0C3.2030206@colbyconsulting.com> References: <4D27F0C3.2030206@colbyconsulting.com> Message-ID: Hello John, In this case, I would like to know whether there is a database corruption issue or a connectivity. What about quickly creating a new db names testconn and see if you can connect to that. If it works and disco does not, then quickly check the db mappings from the properties dialog box. If you are mapped and you think that you should be able to see it, then maybe the db is corrupt. A few things to do are, stop and start the server, then refresh the branch and check again. Detach and re-attach the db and see if it helps Start thinking about a restore is that any help? I have seen ghost db's hang around but usually the three-step dance of stop start services, reboot, delete again etc will remove it. HTH Mark On 8 January 2011 05:06, jwcolby wrote: > I went back in with MSE and looked at that server. While I can see the > databases of interest, if I click on them and try to see the tables inside, > I get an error "the database DISCO is not available" and the plus symbol in > front of the database disappears. > > So I can see that the db exists but not actually access it (from my > workstation). > > I can see and open the database from MSE on the server itself. > > Is this an ownership / rights kind of issue? I am not getting an actual > error number from my workstation, just an "not available" generic kind of > message. > > If it is ownership / rights, how do I go about discovering how to fix it? > > -- > John W. Colby > www.ColbyConsulting.com > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From jwcolby at colbyconsulting.com Sat Jan 8 10:49:13 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 08 Jan 2011 11:49:13 -0500 Subject: [dba-VB] Further to "can's see SQL Server database... In-Reply-To: References: <4D27F0C3.2030206@colbyconsulting.com> Message-ID: <4D289589.2020503@colbyconsulting.com> Thanks for the response Mark. The server is called DiscoSvr and is a Windows 2000 x32 server, with 4G ram. It has Office (and Access) 2000 installed. It resides on a network at my client where they have between 40 and 50 workstations on the network, about 25 of which use the Access database. The network consists of two segments physically located in two immediately adjacent wings of a small office building They have a switch in one building and everyone in that building (two floors) ties into that switch, with a single gb line running over to the second wing and into the server room. The second wing has it's own switch and a wire that ties into the same switch as the gb line from the first building, from there into the server. *Probably* none of that is relevant but that is the layout. The client runs about 25 workstations scattered throughout the two wings of the building into DiscoSvr which acts as the file server for the DISCO database. Everyone (including my workstation) is able to get into DISCO running on DiscoSvr so physical access is not the issue, and physical file access rights are not the issue. I have a handful of FEs linked to about 5 different Access BEs. One of these BEs is the one of interest here and has a single tblClaimContact with a memo field to hold details of any kind of contact, mostly phone. The user types into this memo field paragraphs or even pages of details of phone conversations with every single person they have a phone conversation with. This table has just under 800K records and the Access BE that holds this table is about 700Megs after a compact. It is this one table that I am trying to create a SQL Server Express 2005 database for and a table in that database. SQL Server 2008 will not install on a Windows 2000 OS so I installed SQL Server 2005 Express on the system, using the Admin user of DISCO Server. As that Admin user and SSMS Express 2005 I can see the server, and create databases etc. Once I was able to do all of this with the Admin directly on the server I switched to my workstation and started trying from there. I installed SMSS 2005 Express on my workstation and could then see the database. Originally I could not even see the new server. I had to go back to DiscoSvr as an admin, run the surface config wizard and allow remote access using named pipes (not sure if I even need that) and TCP. I did stop and restart the SQLServer Express service, though I did not reboot the server. Back at my workstation I can now see the new server and browse the databases and can see and physically open the admin databases, see the tables etc, all from my workstation. I tried but I was unable to use the Access upsize wizard because it did not want to see the SQL Server 2005 express instance, from Access 2000 running right on DiscoSvr. I assumed that the issue was Access 2000 not understanding SQL Server 2005 or something. Given that the upsize wizard was giving me the ever helpful one word error message, I stopped that avenue. So I went into SSMS Express and I created a database locally basically using the import data tool from inside of sql server, telling it the source was an Access database. It created the table but failed to import the data. Since both of those failed, I then zipped the BE and moved it to my office server where I happened to have SQL Server Express 2005 installed as well as Office (and Access) 2003. Once I did that I was able to use Access 2003 upsize wizard to create a database and a table and upsize the data. I backed up the database, zipped the backup, uploaded that back to DISCOSvr and uses SSMS Express there to restore the database. SSMSE can see the database, can open the table etc. DIRECTLY FROM DiscoSvr as the admin user. Now that I have the table in a SQL Server database I am trying to link the FE to that table using the link table wizard in Access - from my workstation. That wizard can see the SQL Server and it can see the admin databases but it cannot even see the net database(s) that I created using the Admin user directly on DiscoSvr. When I open SSMSE from my workstation, it can see and manipulate the built in Admin databases and it can *see* but cannot even expand the two databases that I manually created on SQL Server. John W. Colby www.ColbyConsulting.com On 1/8/2011 10:34 AM, Mark Breen wrote: > Hello John, > > In this case, I would like to know whether there is a database corruption > issue or a connectivity. > > What about quickly creating a new db names testconn and see if you can > connect to that. > > If it works and disco does not, then quickly check the db mappings from the > properties dialog box. > > If you are mapped and you think that you should be able to see it, then > maybe the db is corrupt. > > A few things to do are, stop and start the server, then refresh the branch > and check again. > > Detach and re-attach the db and see if it helps > > Start thinking about a restore > > is that any help? > > I have seen ghost db's hang around but usually the three-step dance of stop > start services, reboot, delete again etc will remove it. > > HTH > > Mark > > > On 8 January 2011 05:06, jwcolby wrote: > >> I went back in with MSE and looked at that server. While I can see the >> databases of interest, if I click on them and try to see the tables inside, >> I get an error "the database DISCO is not available" and the plus symbol in >> front of the database disappears. >> >> So I can see that the db exists but not actually access it (from my >> workstation). >> >> I can see and open the database from MSE on the server itself. >> >> Is this an ownership / rights kind of issue? I am not getting an actual >> error number from my workstation, just an "not available" generic kind of >> message. >> >> If it is ownership / rights, how do I go about discovering how to fix it? >> >> -- >> 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 Sat Jan 8 16:19:42 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 08 Jan 2011 17:19:42 -0500 Subject: [dba-VB] How can it be Message-ID: <4D28E2FE.1020207@colbyconsulting.com> I have noticed that when I create a VM on my Windows 2008 server with HyperV, the virtual machine's cpu can be pegged in Task Manager Performance, and yet none of the 8 cores even raises an eyebrow in task manager inside of Windows 2008 itself. In Windows 2003 using VMWare, I would see one (or more) of the cores in the server software start chugging when the VMWare VM started working hard. Is it because Hyper V assignes the core outside of Windows itself? IOW Hyper V installs before the Windows software itself does. Is it actually assigning CPU cycles for one or more cores "outside of" Windows. If so is there a utility to see the actual core usage in Hyper V itself? -- John W. Colby www.ColbyConsulting.com From accessd at shaw.ca Sat Jan 8 20:37:46 2011 From: accessd at shaw.ca (Jim Lawrence) Date: Sat, 8 Jan 2011 18:37:46 -0800 Subject: [dba-VB] How can it be In-Reply-To: <4D28E2FE.1020207@colbyconsulting.com> References: <4D28E2FE.1020207@colbyconsulting.com> Message-ID: I am really not sure but a fellow tech said look at the number of copies of svchost.exe processes running... why their process is not reflected in the CPU is another question. Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Saturday, January 08, 2011 2:20 PM To: Access Developers discussion and problem solving; VBA Subject: [dba-VB] How can it be I have noticed that when I create a VM on my Windows 2008 server with HyperV, the virtual machine's cpu can be pegged in Task Manager Performance, and yet none of the 8 cores even raises an eyebrow in task manager inside of Windows 2008 itself. In Windows 2003 using VMWare, I would see one (or more) of the cores in the server software start chugging when the VMWare VM started working hard. Is it because Hyper V assignes the core outside of Windows itself? IOW Hyper V installs before the Windows software itself does. Is it actually assigning CPU cycles for one or more cores "outside of" Windows. If so is there a utility to see the actual core usage in Hyper V itself? -- 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 gustav at cactus.dk Sun Jan 9 08:12:08 2011 From: gustav at cactus.dk (Gustav Brock) Date: Sun, 09 Jan 2011 15:12:08 +0100 Subject: [dba-VB] LINQ Compiled Query Message-ID: Hi all Has anyone tested this technique out: http://www.blog.ingenuitynow.net/15+Minutes+On+LINQ+Compiled+Queries.aspx It looks quite simple to implement. /gustav From shamil at smsconsulting.spb.ru Sun Jan 9 08:20:21 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sun, 9 Jan 2011 17:20:21 +0300 Subject: [dba-VB] LINQ Compiled Query In-Reply-To: References: Message-ID: <28118F262BBF49899D453DE9CCBF3D11@nant> Hi Gustav -- No, I didn't. One of comments says: "I feel this compiled query approach is cumbersome. Image your application has 100 linq queries, you have to create 100 helper classes, and another 100 static functions. I wish Microsoft provides an easily way, maybe some syntax sugar, or some more magics in DataContent, to make programmer life easier. " 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: 9 ?????? 2011 ?. 17:12 To: dba-vb at databaseadvisors.com Subject: [dba-VB] LINQ Compiled Query Hi all Has anyone tested this technique out: http://www.blog.ingenuitynow.net/15+Minutes+On+LINQ+Compiled+Queries.aspx It looks quite simple to implement. /gustav From gustav at cactus.dk Sun Jan 9 09:00:22 2011 From: gustav at cactus.dk (Gustav Brock) Date: Sun, 09 Jan 2011 16:00:22 +0100 Subject: [dba-VB] LINQ Compiled Query Message-ID: Hi Shamil Yes, I noticed that comment and think it is valid. However, if you have a crucial query in, say, a loop it could be worth the efforts. /gustav >>> shamil at smsconsulting.spb.ru 09-01-2011 15:20 >>> Hi Gustav -- No, I didn't. One of comments says: "I feel this compiled query approach is cumbersome. Image your application has 100 linq queries, you have to create 100 helper classes, and another 100 static functions. I wish Microsoft provides an easily way, maybe some syntax sugar, or some more magics in DataContent, to make programmer life easier. " 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: 9 ?????? 2011 ?. 17:12 To: dba-vb at databaseadvisors.com Subject: [dba-VB] LINQ Compiled Query Hi all Has anyone tested this technique out: http://www.blog.ingenuitynow.net/15+Minutes+On+LINQ+Compiled+Queries.aspx It looks quite simple to implement. /gustav From shamil at smsconsulting.spb.ru Sun Jan 9 09:55:07 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sun, 9 Jan 2011 18:55:07 +0300 Subject: [dba-VB] LINQ Compiled Query In-Reply-To: References: Message-ID: Hi Gustav -- <<< However, if you have a crucial query in, say, a loop it could be worth the efforts. >>> Shouldn't LINQ be "smart enough" to not rebuild dynamic queries when that used in a loop? (of course if LINQ expression is not forcibly destroyed (by developer) at the end of every cycle iteration). I'd guess even if they get forcibly destoryed LINQ coudl somehow keep parsed&compiled LINQ expression cached... It's a very smart technology... (nothing new - all the principles used in (P)LINQ are known for years but that's the first time such a technology released to the business applications developers?) 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: 9 ?????? 2011 ?. 18:00 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] LINQ Compiled Query Hi Shamil Yes, I noticed that comment and think it is valid. However, if you have a crucial query in, say, a loop it could be worth the efforts. /gustav >>> shamil at smsconsulting.spb.ru 09-01-2011 15:20 >>> Hi Gustav -- No, I didn't. One of comments says: "I feel this compiled query approach is cumbersome. Image your application has 100 linq queries, you have to create 100 helper classes, and another 100 static functions. I wish Microsoft provides an easily way, maybe some syntax sugar, or some more magics in DataContent, to make programmer life easier. " 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: 9 ?????? 2011 ?. 17:12 To: dba-vb at databaseadvisors.com Subject: [dba-VB] LINQ Compiled Query Hi all Has anyone tested this technique out: http://www.blog.ingenuitynow.net/15+Minutes+On+LINQ+Compiled+Queries.aspx It looks quite simple to implement. /gustav _______________________________________________ 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 Jan 9 11:30:04 2011 From: gustav at cactus.dk (Gustav Brock) Date: Sun, 09 Jan 2011 18:30:04 +0100 Subject: [dba-VB] LINQ Compiled Query Message-ID: Hi Shamil I have no idea - and things may have evolved from 2008 to 2010. Perhaps the only "trick" is to wrap the LINQ query in a static class? But no ... I browsed a little and found this from a year ago: EF 4.0 & compiled queries & performance http://social.msdn.microsoft.com/Forums/en/adonetefx/thread/0c07e1d6-7db6-4348-b106-e576d3153b70 which demonstrates a dramatic speed increase for repeated runs of a compiled query. It also provides this link which seems to explain what is going on: Precompiling LINQ Queries by Julie Lerman http://msdn.microsoft.com/en-gb/magazine/ee336024.aspx /gustav PS: All MSDN Magazines can be browsed from here: http://msdn.microsoft.com/en-gb/magazine/ee310108.aspx >>> shamil at smsconsulting.spb.ru 09-01-2011 16:55 >>> Hi Gustav -- <<< However, if you have a crucial query in, say, a loop it could be worth the efforts. >>> Shouldn't LINQ be "smart enough" to not rebuild dynamic queries when that used in a loop? (of course if LINQ expression is not forcibly destroyed (by developer) at the end of every cycle iteration). I'd guess even if they get forcibly destoryed LINQ coudl somehow keep parsed&compiled LINQ expression cached... It's a very smart technology... (nothing new - all the principles used in (P)LINQ are known for years but that's the first time such a technology released to the business applications developers?) 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: 9 ?????? 2011 ?. 18:00 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] LINQ Compiled Query Hi Shamil Yes, I noticed that comment and think it is valid. However, if you have a crucial query in, say, a loop it could be worth the efforts. /gustav >>> shamil at smsconsulting.spb.ru 09-01-2011 15:20 >>> Hi Gustav -- No, I didn't. One of comments says: "I feel this compiled query approach is cumbersome. Image your application has 100 linq queries, you have to create 100 helper classes, and another 100 static functions. I wish Microsoft provides an easily way, maybe some syntax sugar, or some more magics in DataContent, to make programmer life easier. " 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: 9 ?????? 2011 ?. 17:12 To: dba-vb at databaseadvisors.com Subject: [dba-VB] LINQ Compiled Query Hi all Has anyone tested this technique out: http://www.blog.ingenuitynow.net/15+Minutes+On+LINQ+Compiled+Queries.aspx It looks quite simple to implement. /gustav From shamil at smsconsulting.spb.ru Sun Jan 9 17:08:03 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Mon, 10 Jan 2011 02:08:03 +0300 Subject: [dba-VB] LINQ Compiled Query In-Reply-To: References: Message-ID: Hi Gustav -- <<< Precompiling LINQ Queries by Julie Lerman http://msdn.microsoft.com/en-gb/magazine/ee336024.aspx >>> Yes, that's a very good article, thank you. Is it interesting what will happen when two or more threads (on ASP.NET app/service, WCF service, ....) will try to use the same static compiled LINQ query (with different parameters)? Will the first thread block the others till query execution finishes? (I'm copying here refererred article's code sample) static Func _custByID; public static Customer GetCustomer( int ID) { //test for an existing instance of the compiled query if (_custByID == null) { _custByID = CompiledQuery.Compile ((ctx, id) => ctx.Customers.Where(c => c.CustomerID == id).Single()); } return _custByID.Invoke(_context, ID); } 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: 9 ?????? 2011 ?. 20:30 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] LINQ Compiled Query Hi Shamil I have no idea - and things may have evolved from 2008 to 2010. Perhaps the only "trick" is to wrap the LINQ query in a static class? But no ... I browsed a little and found this from a year ago: EF 4.0 & compiled queries & performance http://social.msdn.microsoft.com/Forums/en/adonetefx/thread/0c07e1d6-7db6-43 48-b106-e576d3153b70 which demonstrates a dramatic speed increase for repeated runs of a compiled query. It also provides this link which seems to explain what is going on: Precompiling LINQ Queries by Julie Lerman http://msdn.microsoft.com/en-gb/magazine/ee336024.aspx /gustav PS: All MSDN Magazines can be browsed from here: http://msdn.microsoft.com/en-gb/magazine/ee310108.aspx >>> shamil at smsconsulting.spb.ru 09-01-2011 16:55 >>> Hi Gustav -- <<< However, if you have a crucial query in, say, a loop it could be worth the efforts. >>> Shouldn't LINQ be "smart enough" to not rebuild dynamic queries when that used in a loop? (of course if LINQ expression is not forcibly destroyed (by developer) at the end of every cycle iteration). I'd guess even if they get forcibly destoryed LINQ coudl somehow keep parsed&compiled LINQ expression cached... It's a very smart technology... (nothing new - all the principles used in (P)LINQ are known for years but that's the first time such a technology released to the business applications developers?) 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: 9 ?????? 2011 ?. 18:00 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] LINQ Compiled Query Hi Shamil Yes, I noticed that comment and think it is valid. However, if you have a crucial query in, say, a loop it could be worth the efforts. /gustav >>> shamil at smsconsulting.spb.ru 09-01-2011 15:20 >>> Hi Gustav -- No, I didn't. One of comments says: "I feel this compiled query approach is cumbersome. Image your application has 100 linq queries, you have to create 100 helper classes, and another 100 static functions. I wish Microsoft provides an easily way, maybe some syntax sugar, or some more magics in DataContent, to make programmer life easier. " 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: 9 ?????? 2011 ?. 17:12 To: dba-vb at databaseadvisors.com Subject: [dba-VB] LINQ Compiled Query Hi all Has anyone tested this technique out: http://www.blog.ingenuitynow.net/15+Minutes+On+LINQ+Compiled+Queries.aspx It looks quite simple to implement. /gustav From Gustav at cactus.dk Mon Jan 10 05:44:57 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 10 Jan 2011 12:44:57 +0100 Subject: [dba-VB] LINQ Compiled Query Message-ID: Hi Shamil Good question, and I don't know, but I would guess that at least each thread will run at the same speed as if the query was not compiled. In fact I have some trouble understanding what really is "complied" using this technique? Perhaps it is only some clever caching behind the scene that is taken place. /gustav >>> shamil at smsconsulting.spb.ru 10-01-2011 00:08 >>> Hi Gustav -- <<< Precompiling LINQ Queries by Julie Lerman http://msdn.microsoft.com/en-gb/magazine/ee336024.aspx >>> Yes, that's a very good article, thank you. Is it interesting what will happen when two or more threads (on ASP.NET app/service, WCF service, ....) will try to use the same static compiled LINQ query (with different parameters)? Will the first thread block the others till query execution finishes? (I'm copying here refererred article's code sample) static Func _custByID; public static Customer GetCustomer( int ID) { //test for an existing instance of the compiled query if (_custByID == null) { _custByID = CompiledQuery.Compile ((ctx, id) => ctx.Customers.Where(c => c.CustomerID == id).Single()); } return _custByID.Invoke(_context, ID); } 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: 9 ?????? 2011 ?. 20:30 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] LINQ Compiled Query Hi Shamil I have no idea - and things may have evolved from 2008 to 2010. Perhaps the only "trick" is to wrap the LINQ query in a static class? But no ... I browsed a little and found this from a year ago: EF 4.0 & compiled queries & performance http://social.msdn.microsoft.com/Forums/en/adonetefx/thread/0c07e1d6-7db6-4348-b106-e576d3153b70 which demonstrates a dramatic speed increase for repeated runs of a compiled query. It also provides this link which seems to explain what is going on: Precompiling LINQ Queries by Julie Lerman http://msdn.microsoft.com/en-gb/magazine/ee336024.aspx /gustav PS: All MSDN Magazines can be browsed from here: http://msdn.microsoft.com/en-gb/magazine/ee310108.aspx >>> shamil at smsconsulting.spb.ru 09-01-2011 16:55 >>> Hi Gustav -- <<< However, if you have a crucial query in, say, a loop it could be worth the efforts. >>> Shouldn't LINQ be "smart enough" to not rebuild dynamic queries when that used in a loop? (of course if LINQ expression is not forcibly destroyed (by developer) at the end of every cycle iteration). I'd guess even if they get forcibly destoryed LINQ coudl somehow keep parsed&compiled LINQ expression cached... It's a very smart technology... (nothing new - all the principles used in (P)LINQ are known for years but that's the first time such a technology released to the business applications developers?) Thank you. -- Shamil From shamil at smsconsulting.spb.ru Tue Jan 11 04:18:42 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Tue, 11 Jan 2011 13:18:42 +0300 Subject: [dba-VB] LINQ Compiled Query In-Reply-To: References: Message-ID: <2E19D8A804ED4FBD88648DD26DAFA32E@nant> Hi Gustav -- I suppose that "compiled" means that query execution plan is built - building query execution plan needs querying EDM (using .NET Reflection) , and that ready to use compiled execution plan is cached. For queries returning a few db records (and that should constitute most of well designed web app queries) saving query compilation time should give significant preformance gains... I will try to test compiled EDM LINQ qeries vs. dynamic ones in the coming days, and I will post the results here... 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: 10 ?????? 2011 ?. 14:45 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] LINQ Compiled Query Hi Shamil Good question, and I don't know, but I would guess that at least each thread will run at the same speed as if the query was not compiled. In fact I have some trouble understanding what really is "complied" using this technique? Perhaps it is only some clever caching behind the scene that is taken place. /gustav >>> shamil at smsconsulting.spb.ru 10-01-2011 00:08 >>> Hi Gustav -- <<< Precompiling LINQ Queries by Julie Lerman http://msdn.microsoft.com/en-gb/magazine/ee336024.aspx >>> Yes, that's a very good article, thank you. Is it interesting what will happen when two or more threads (on ASP.NET app/service, WCF service, ....) will try to use the same static compiled LINQ query (with different parameters)? Will the first thread block the others till query execution finishes? (I'm copying here refererred article's code sample) static Func _custByID; public static Customer GetCustomer( int ID) { //test for an existing instance of the compiled query if (_custByID == null) { _custByID = CompiledQuery.Compile ((ctx, id) => ctx.Customers.Where(c => c.CustomerID == id).Single()); } return _custByID.Invoke(_context, ID); } 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: 9 ?????? 2011 ?. 20:30 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] LINQ Compiled Query Hi Shamil I have no idea - and things may have evolved from 2008 to 2010. Perhaps the only "trick" is to wrap the LINQ query in a static class? But no ... I browsed a little and found this from a year ago: EF 4.0 & compiled queries & performance http://social.msdn.microsoft.com/Forums/en/adonetefx/thread/0c07e1d6-7db6-43 48-b106-e576d3153b70 which demonstrates a dramatic speed increase for repeated runs of a compiled query. It also provides this link which seems to explain what is going on: Precompiling LINQ Queries by Julie Lerman http://msdn.microsoft.com/en-gb/magazine/ee336024.aspx /gustav PS: All MSDN Magazines can be browsed from here: http://msdn.microsoft.com/en-gb/magazine/ee310108.aspx >>> shamil at smsconsulting.spb.ru 09-01-2011 16:55 >>> Hi Gustav -- <<< However, if you have a crucial query in, say, a loop it could be worth the efforts. >>> Shouldn't LINQ be "smart enough" to not rebuild dynamic queries when that used in a loop? (of course if LINQ expression is not forcibly destroyed (by developer) at the end of every cycle iteration). I'd guess even if they get forcibly destoryed LINQ coudl somehow keep parsed&compiled LINQ expression cached... It's a very smart technology... (nothing new - all the principles used in (P)LINQ are known for years but that's the first time such a technology released to the business applications developers?) Thank you. -- Shamil _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue Jan 11 09:58:51 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 11 Jan 2011 10:58:51 -0500 Subject: [dba-VB] C# Databases without borders Message-ID: <4D2C7E3B.3060008@colbyconsulting.com> I want to build a little application where I have a very simple zip code table of about 40 thousand zip codes, with things like household count, population count, lat and long. My application would take lists of zip codes and sum the population and household counts, count the zips etc and put a count on the screen in a table format. I already do this using SQL Server to hold the zip code table. I get the zip lists into csv files, then create a table inside of SQL Server, join on the zip code and sum the population and household counts. Now I want to build an application to do this but SQL Server is way overkill. Can I use a csv or even xml to hold the zip table, create an xml table to hold the zip lists entered by the user and so forth. IOW I need a low impact alternative to SQL Server. Even express is just way overkill for this. Somewhere in the back of my mind I am thinking that ADO.net knows how to load tables, create relationships between tables, enforce the join etc. IOW do the store entirely in XML and just use ADO to do the rest. Is this possible? Would the speed be acceptable for a join between tblZipMaster and tblZipUserXyz on Zip count(zip) sum(household) etc. directly in memory. -- John W. Colby www.ColbyConsulting.com From Gustav at cactus.dk Tue Jan 11 10:42:56 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 11 Jan 2011 17:42:56 +0100 Subject: [dba-VB] C# Databases without borders Message-ID: Hi John First, I don't think SQL Server (Express) is overkill as you - as I understand - have several engines running, so one tiny database more a less wouldn't make noticeable difference. Then, you could for a single user app use the SQL Server Compact (file based as Access/JET) or even an mdb file. Or, you could use the built-in XML storage which is simple and fun. Just remember that it writes _all_ tables of the dataset in one go when you call WriteXml() as shown below - if you attempt to write one table only (which can be done), only this table will be held in the XML file, all other tables will get lost. This we discussed 2009-09-02: For example, read one XML file with one dataset containing several tables: private void InitializeDataSet() { _dataBaseFile = Path.Combine(_execPath, _dataFileName); this.DlDataSet.ReadXml(_dataBaseFile); } Write the (modified) dataset to one XML file: private void SaveData() { this.DlDataSet.WriteXml(_dataBaseFile); } Resulting XML for one table with one record: 0 smtp.webpartner.dk cactus at cactus.dk gustav at cactus.dk /gustav >>> jwcolby at colbyconsulting.com 11-01-2011 16:58 >>> I want to build a little application where I have a very simple zip code table of about 40 thousand zip codes, with things like household count, population count, lat and long. My application would take lists of zip codes and sum the population and household counts, count the zips etc and put a count on the screen in a table format. I already do this using SQL Server to hold the zip code table. I get the zip lists into csv files, then create a table inside of SQL Server, join on the zip code and sum the population and household counts. Now I want to build an application to do this but SQL Server is way overkill. Can I use a csv or even xml to hold the zip table, create an xml table to hold the zip lists entered by the user and so forth. IOW I need a low impact alternative to SQL Server. Even express is just way overkill for this. Somewhere in the back of my mind I am thinking that ADO.net knows how to load tables, create relationships between tables, enforce the join etc. IOW do the store entirely in XML and just use ADO to do the rest. Is this possible? Would the speed be acceptable for a join between tblZipMaster and tblZipUserXyz on Zip count(zip) sum(household) etc. directly in memory. -- John W. Colby www.ColbyConsulting.com From jwcolby at colbyconsulting.com Tue Jan 11 10:37:10 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 11 Jan 2011 11:37:10 -0500 Subject: [dba-VB] C# Databases without borders In-Reply-To: References: Message-ID: <4D2C8736.2050507@colbyconsulting.com> Gustav, This is going to be a C# applet that anyone can install on their system. John W. Colby www.ColbyConsulting.com On 1/11/2011 11:42 AM, Gustav Brock wrote: > Hi John > > First, I don't think SQL Server (Express) is overkill as you - as I understand - have several engines running, so one tiny database more a less wouldn't make noticeable difference. > > Then, you could for a single user app use the SQL Server Compact (file based as Access/JET) or even an mdb file. > Or, you could use the built-in XML storage which is simple and fun. Just remember that it writes _all_ tables of the dataset in one go when you call WriteXml() as shown below - if you attempt to write one table only (which can be done), only this table will be held in the XML file, all other tables will get lost. > > This we discussed 2009-09-02: > > For example, read one XML file with one dataset containing several tables: > > private void InitializeDataSet() > { > _dataBaseFile = Path.Combine(_execPath, _dataFileName); > this.DlDataSet.ReadXml(_dataBaseFile); > } > > Write the (modified) dataset to one XML file: > > private void SaveData() > { > this.DlDataSet.WriteXml(_dataBaseFile); > } > > Resulting XML for one table with one record: > > > > > 0 > smtp.webpartner.dk > > > cactus at cactus.dk > gustav at cactus.dk > > > > /gustav > > > >>>> jwcolby at colbyconsulting.com 11-01-2011 16:58>>> > I want to build a little application where I have a very simple zip code table of about 40 thousand > zip codes, with things like household count, population count, lat and long. My application would > take lists of zip codes and sum the population and household counts, count the zips etc and put a > count on the screen in a table format. > > I already do this using SQL Server to hold the zip code table. I get the zip lists into csv files, > then create a table inside of SQL Server, join on the zip code and sum the population and household > counts. > > Now I want to build an application to do this but SQL Server is way overkill. > > Can I use a csv or even xml to hold the zip table, create an xml table to hold the zip lists entered > by the user and so forth. IOW I need a low impact alternative to SQL Server. Even express is just > way overkill for this. > > Somewhere in the back of my mind I am thinking that ADO.net knows how to load tables, create > relationships between tables, enforce the join etc. IOW do the store entirely in XML and just use > ADO to do the rest. > > Is this possible? Would the speed be acceptable for a join between tblZipMaster and tblZipUserXyz > on Zip count(zip) sum(household) etc. directly in memory. From Gustav at cactus.dk Tue Jan 11 10:57:44 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 11 Jan 2011 17:57:44 +0100 Subject: [dba-VB] C# Databases without borders Message-ID: Hi John Oh, I missed that. That rules out the SQL Server engine and leaves you with the file based options. You can freely include and deploy SQL Server Compact Edition. /gustav >>> jwcolby at colbyconsulting.com 11-01-2011 17:37 >>> Gustav, This is going to be a C# applet that anyone can install on their system. John W. Colby www.ColbyConsulting.com On 1/11/2011 11:42 AM, Gustav Brock wrote: > Hi John > > First, I don't think SQL Server (Express) is overkill as you - as I understand - have several engines running, so one tiny database more a less wouldn't make noticeable difference. > > Then, you could for a single user app use the SQL Server Compact (file based as Access/JET) or even an mdb file. > Or, you could use the built-in XML storage which is simple and fun. Just remember that it writes _all_ tables of the dataset in one go when you call WriteXml() as shown below - if you attempt to write one table only (which can be done), only this table will be held in the XML file, all other tables will get lost. > > This we discussed 2009-09-02: > > For example, read one XML file with one dataset containing several tables: > > private void InitializeDataSet() > { > _dataBaseFile = Path.Combine(_execPath, _dataFileName); > this.DlDataSet.ReadXml(_dataBaseFile); > } > > Write the (modified) dataset to one XML file: > > private void SaveData() > { > this.DlDataSet.WriteXml(_dataBaseFile); > } > > Resulting XML for one table with one record: > > > > > 0 > smtp.webpartner.dk > > > cactus at cactus.dk > gustav at cactus.dk > > > > /gustav > > > >>>> jwcolby at colbyconsulting.com 11-01-2011 16:58>>> > I want to build a little application where I have a very simple zip code table of about 40 thousand > zip codes, with things like household count, population count, lat and long. My application would > take lists of zip codes and sum the population and household counts, count the zips etc and put a > count on the screen in a table format. > > I already do this using SQL Server to hold the zip code table. I get the zip lists into csv files, > then create a table inside of SQL Server, join on the zip code and sum the population and household > counts. > > Now I want to build an application to do this but SQL Server is way overkill. > > Can I use a csv or even xml to hold the zip table, create an xml table to hold the zip lists entered > by the user and so forth. IOW I need a low impact alternative to SQL Server. Even express is just > way overkill for this. > > Somewhere in the back of my mind I am thinking that ADO.net knows how to load tables, create > relationships between tables, enforce the join etc. IOW do the store entirely in XML and just use > ADO to do the rest. > > Is this possible? Would the speed be acceptable for a join between tblZipMaster and tblZipUserXyz > on Zip count(zip) sum(household) etc. directly in memory. From dw-murphy at cox.net Tue Jan 11 10:58:34 2011 From: dw-murphy at cox.net (Doug Murphy) Date: Tue, 11 Jan 2011 08:58:34 -0800 Subject: [dba-VB] C# Databases without borders In-Reply-To: References: Message-ID: Why not an mdb file? ADO.NET works fine. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, January 11, 2011 8:58 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] C# Databases without borders Hi John Oh, I missed that. That rules out the SQL Server engine and leaves you with the file based options. You can freely include and deploy SQL Server Compact Edition. /gustav >>> jwcolby at colbyconsulting.com 11-01-2011 17:37 >>> Gustav, This is going to be a C# applet that anyone can install on their system. John W. Colby www.ColbyConsulting.com On 1/11/2011 11:42 AM, Gustav Brock wrote: > Hi John > > First, I don't think SQL Server (Express) is overkill as you - as I understand - have several engines running, so one tiny database more a less wouldn't make noticeable difference. > > Then, you could for a single user app use the SQL Server Compact (file based as Access/JET) or even an mdb file. > Or, you could use the built-in XML storage which is simple and fun. Just remember that it writes _all_ tables of the dataset in one go when you call WriteXml() as shown below - if you attempt to write one table only (which can be done), only this table will be held in the XML file, all other tables will get lost. > > This we discussed 2009-09-02: > > For example, read one XML file with one dataset containing several tables: > > private void InitializeDataSet() > { > _dataBaseFile = Path.Combine(_execPath, _dataFileName); > this.DlDataSet.ReadXml(_dataBaseFile); > } > > Write the (modified) dataset to one XML file: > > private void SaveData() > { > this.DlDataSet.WriteXml(_dataBaseFile); > } > > Resulting XML for one table with one record: > > xmlns="http://tempuri.org/DataSetDL.xsd"> > > 0 > smtp.webpartner.dk > > > cactus at cactus.dk > gustav at cactus.dk > > > > /gustav > > > >>>> jwcolby at colbyconsulting.com 11-01-2011 16:58>>> > I want to build a little application where I have a very simple zip > code table of about 40 thousand zip codes, with things like household > count, population count, lat and long. My application would take > lists of zip codes and sum the population and household counts, count the zips etc and put a count on the screen in a table format. > > I already do this using SQL Server to hold the zip code table. I get > the zip lists into csv files, then create a table inside of SQL > Server, join on the zip code and sum the population and household counts. > > Now I want to build an application to do this but SQL Server is way overkill. > > Can I use a csv or even xml to hold the zip table, create an xml table > to hold the zip lists entered by the user and so forth. IOW I need a > low impact alternative to SQL Server. Even express is just way overkill for this. > > Somewhere in the back of my mind I am thinking that ADO.net knows how > to load tables, create relationships between tables, enforce the join > etc. IOW do the store entirely in XML and just use ADO to do the rest. > > Is this possible? Would the speed be acceptable for a join between > tblZipMaster and tblZipUserXyz on Zip count(zip) sum(household) etc. directly in memory. _______________________________________________ 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 Tue Jan 11 11:20:46 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 11 Jan 2011 18:20:46 +0100 Subject: [dba-VB] C# Databases without borders Message-ID: Hi Doug Right, except for some potential 64-bit issues? I think the driver issue was solved, but I haven't worked with it myself. And Visual Studio just loooves SQL Server Compact Edition! /gustav >>> dw-murphy at cox.net 11-01-2011 17:58 >>> Why not an mdb file? ADO.NET works fine. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, January 11, 2011 8:58 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] C# Databases without borders Hi John Oh, I missed that. That rules out the SQL Server engine and leaves you with the file based options. You can freely include and deploy SQL Server Compact Edition. /gustav >>> jwcolby at colbyconsulting.com 11-01-2011 17:37 >>> Gustav, This is going to be a C# applet that anyone can install on their system. From Gustav at cactus.dk Tue Jan 11 11:48:05 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 11 Jan 2011 18:48:05 +0100 Subject: [dba-VB] Free ebook: Programming Windows Phone 7, by Charles Petzold Message-ID: Hi all If you are serious about Windows Phone 7, this 1000+ page monster book from Microsoft is only a 13 MB download + 5 MB for code samples: http://blogs.msdn.com/b/microsoft_press/archive/2010/10/28/free-ebook-programming-windows-phone-7-by-charles-petzold.aspx Note this: To use this book properly you'll need to download and install the Windows Phone Developer Tools, which includes Visual Studio 2010 Express for Windows Phone, XNA Game Studio 4.0, and an on-screen Windows Phone Emulator to test your programs in the absence of an actual device. Get the latest information and downloads at http://developer.windowsphone.com. You can install these tools on top of Visual Studio 2010, in effect enhancing Visual Studio 2010 for phone development. That's the configuration I used. Although you can do quite a bit with the phone emulator, at some point you'll want to deploy your programs to an actual Windows Phone 7 device. You can register as a phone developer at http://developer.windowsphone.com and then have the ability to unlock your phone so you can deploy your programs from Visual Studio. /gustav From stuart at lexacorp.com.pg Tue Jan 11 14:12:22 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 12 Jan 2011 06:12:22 +1000 Subject: [dba-VB] C# Databases without borders In-Reply-To: <4D2C7E3B.3060008@colbyconsulting.com> References: <4D2C7E3B.3060008@colbyconsulting.com> Message-ID: <4D2CB9A6.30399.8ADA003@stuart.lexacorp.com.pg> Three ways: Binary array stored in the application as a resource and do that analysis yourself on the array elements. SQLite - http://www.sqlite.org/ Access mdb The first way is probably the optimum, but will require a bit more coding to do the analysus. With only 40,000 rows stored as a collection or array, the in-memory scanning and summation should be near instant ( at least it would be if I did it in Powerbasic ) -- Stuart On 11 Jan 2011 at 10:58, jwcolby wrote: > I want to build a little application where I have a very simple zip > code table of about 40 thousand zip codes, with things like household > count, population count, lat and long. My application would take > lists of zip codes and sum the population and household counts, count > the zips etc and put a count on the screen in a table format. > > I already do this using SQL Server to hold the zip code table. I get > the zip lists into csv files, then create a table inside of SQL > Server, join on the zip code and sum the population and household > counts. > > Now I want to build an application to do this but SQL Server is way > overkill. > > Can I use a csv or even xml to hold the zip table, create an xml table > to hold the zip lists entered by the user and so forth. IOW I need a > low impact alternative to SQL Server. Even express is just way > overkill for this. > > Somewhere in the back of my mind I am thinking that ADO.net knows how > to load tables, create relationships between tables, enforce the join > etc. IOW do the store entirely in XML and just use ADO to do the > rest. > > Is this possible? Would the speed be acceptable for a join between > tblZipMaster and tblZipUserXyz on Zip count(zip) sum(household) etc. > directly in memory. -- 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 dw-murphy at cox.net Tue Jan 11 14:21:38 2011 From: dw-murphy at cox.net (Doug Murphy) Date: Tue, 11 Jan 2011 12:21:38 -0800 Subject: [dba-VB] C# Databases without borders In-Reply-To: References: Message-ID: <396C8A3D6CDA4DEA8E21964189F12919@murphy3234aaf1> Good point about 64 bit. Have no experience installing apps there. Then I'd go with exporting and importing dataset to xml file. That is even more native I think. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, January 11, 2011 9:21 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] C# Databases without borders Hi Doug Right, except for some potential 64-bit issues? I think the driver issue was solved, but I haven't worked with it myself. And Visual Studio just loooves SQL Server Compact Edition! /gustav >>> dw-murphy at cox.net 11-01-2011 17:58 >>> Why not an mdb file? ADO.NET works fine. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, January 11, 2011 8:58 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] C# Databases without borders Hi John Oh, I missed that. That rules out the SQL Server engine and leaves you with the file based options. You can freely include and deploy SQL Server Compact Edition. /gustav >>> jwcolby at colbyconsulting.com 11-01-2011 17:37 >>> Gustav, This is going to be a C# applet that anyone can install on their system. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From davidmcafee at gmail.com Tue Jan 11 14:22:33 2011 From: davidmcafee at gmail.com (David McAfee) Date: Tue, 11 Jan 2011 12:22:33 -0800 Subject: [dba-VB] C# Databases without borders In-Reply-To: <4D2CB9A6.30399.8ADA003@stuart.lexacorp.com.pg> References: <4D2C7E3B.3060008@colbyconsulting.com> <4D2CB9A6.30399.8ADA003@stuart.lexacorp.com.pg> Message-ID: If the app is a single user app, you can also use C# and SQLCE. You can pass the datasets to and from the user via a web service. D On Tue, Jan 11, 2011 at 12:12 PM, Stuart McLachlan wrote: > Three ways: > > Binary array stored in the application as a resource and do that analysis > yourself on the array > elements. > > SQLite - http://www.sqlite.org/ > > Access mdb > > The first way is probably the optimum, but will require a bit more coding > to do the analysus. > > With only 40,000 rows stored as a collection or array, the in-memory > scanning and > summation should be near instant ( at least it would be if I did it in > Powerbasic ) > > -- > Stuart > > > On 11 Jan 2011 at 10:58, jwcolby wrote: > > > I want to build a little application where I have a very simple zip > > code table of about 40 thousand zip codes, with things like household > > count, population count, lat and long. My application would take > > lists of zip codes and sum the population and household counts, count > > the zips etc and put a count on the screen in a table format. > > > > I already do this using SQL Server to hold the zip code table. I get > > the zip lists into csv files, then create a table inside of SQL > > Server, join on the zip code and sum the population and household > > counts. > > > > Now I want to build an application to do this but SQL Server is way > > overkill. > > > > Can I use a csv or even xml to hold the zip table, create an xml table > > to hold the zip lists entered by the user and so forth. IOW I need a > > low impact alternative to SQL Server. Even express is just way > > overkill for this. > > > > Somewhere in the back of my mind I am thinking that ADO.net knows how > > to load tables, create relationships between tables, enforce the join > > etc. IOW do the store entirely in XML and just use ADO to do the > > rest. > > > > Is this possible? Would the speed be acceptable for a join between > > tblZipMaster and tblZipUserXyz on Zip count(zip) sum(household) etc. > > directly in memory. -- 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 shamil at smsconsulting.spb.ru Thu Jan 13 15:47:42 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Fri, 14 Jan 2011 00:47:42 +0300 Subject: [dba-VB] (Free) C#/VB.NET equivalents of Excel.Application.WorksheetFunction.NormSDist(Arg1 As Double) As Double? Message-ID: <7211AB6BCA524E3F8F3664993D3D3F47@nant> Hi All -- Do you know about any (free) equivalents of Exel.Application.WorksheetFunction.NormSDist(Arg1 As Double) As Double ? I have got googled the following link: http://bytes.com/topic/c-sharp/answers/240995-normal-distribution but I'm not sure/have no time now to check will that simple solution be equivalent to the Excel.Application.WorksheetFunction.NormSDist(...)? I have to get developed an independent from MS Excel solution. Thank you. -- Shamil From df.waters at comcast.net Thu Jan 13 16:37:23 2011 From: df.waters at comcast.net (Dan Waters) Date: Thu, 13 Jan 2011 16:37:23 -0600 Subject: [dba-VB] (Free) C#/VB.NET equivalents ofExcel.Application.WorksheetFunction.NormSDist(Arg1 As Double)As Double? In-Reply-To: <7211AB6BCA524E3F8F3664993D3D3F47@nant> References: <7211AB6BCA524E3F8F3664993D3D3F47@nant> Message-ID: Hi Shamil, I was a Quality Engineer in a former life and occasionally had to use this formula. I found this: http://en.wikipedia.org/wiki/Normal_distribution. It looks to me like the equation is similar, but I don't know what Math.Pow is. Good Luck! Dan -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Thursday, January 13, 2011 3:48 PM To: 'Discussion concerning Visual Basic and related programming issues.' Subject: [dba-VB] (Free) C#/VB.NET equivalents ofExcel.Application.WorksheetFunction.NormSDist(Arg1 As Double)As Double? Hi All -- Do you know about any (free) equivalents of Exel.Application.WorksheetFunction.NormSDist(Arg1 As Double) As Double ? I have got googled the following link: http://bytes.com/topic/c-sharp/answers/240995-normal-distribution but I'm not sure/have no time now to check will that simple solution be equivalent to the Excel.Application.WorksheetFunction.NormSDist(...)? I have to get developed an independent from MS Excel solution. Thank you. -- Shamil _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From shamil at smsconsulting.spb.ru Fri Jan 14 07:52:33 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Fri, 14 Jan 2011 16:52:33 +0300 Subject: [dba-VB] (Free) C#/VB.NET equivalentsofExcel.Application.WorksheetFunction.NormSDist(Arg1 AsDouble)As Double? In-Reply-To: References: <7211AB6BCA524E3F8F3664993D3D3F47@nant> Message-ID: <1F66E8F19E01484284E7277621C5BFA2@nant> Thank you, Dan, Math.Pow is a power math operation. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: 14 ?????? 2011 ?. 1:37 To: 'Discussion concerning Visual Basic and related programming issues.' Subject: Re: [dba-VB] (Free) C#/VB.NET equivalentsofExcel.Application.WorksheetFunction.NormSDist(Arg1 AsDouble)As Double? Hi Shamil, I was a Quality Engineer in a former life and occasionally had to use this formula. I found this: http://en.wikipedia.org/wiki/Normal_distribution. It looks to me like the equation is similar, but I don't know what Math.Pow is. Good Luck! Dan -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Thursday, January 13, 2011 3:48 PM To: 'Discussion concerning Visual Basic and related programming issues.' Subject: [dba-VB] (Free) C#/VB.NET equivalents ofExcel.Application.WorksheetFunction.NormSDist(Arg1 As Double)As Double? Hi All -- Do you know about any (free) equivalents of Exel.Application.WorksheetFunction.NormSDist(Arg1 As Double) As Double ? I have got googled the following link: http://bytes.com/topic/c-sharp/answers/240995-normal-distribution but I'm not sure/have no time now to check will that simple solution be equivalent to the Excel.Application.WorksheetFunction.NormSDist(...)? I have to get developed an independent from MS Excel solution. Thank you. -- Shamil _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From shamil at smsconsulting.spb.ru Fri Jan 14 10:51:49 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Fri, 14 Jan 2011 19:51:49 +0300 Subject: [dba-VB] How to specify a relative path to an MS Access db in app.config? Message-ID: <554BE140BB7F41ABA5636DC762C245F7@nant> Hi All -- That should be simple(?) but google somehow doesn't give any useful feedback (or I'm missing it). I wanted to have the following connection string from app.config to use relative path to MS Access db - relative to the folder where app.config (its assembly) will be installed on target system: If I write: Data Source=.\Database\TestData.mdb it works on start-up and when I work with main form, but as soon as I use, e.g., OpenFile fialog, which changes default folder main form's update which is bound do a dataset which uses the above connection string fails to update db as it gets now improper fullpath for db... Isn't there something like Data Source=~\Database\TestData.mdb or Data Source={Application}\Database\TestData.mdb or ... way to specify "stable" relative path to the MS Access db - relative to the app.config's assembly location? I do not want to use DSN... Thank you. -- Shamil From gustav at cactus.dk Fri Jan 14 15:29:02 2011 From: gustav at cactus.dk (Gustav Brock) Date: Fri, 14 Jan 2011 22:29:02 +0100 Subject: [dba-VB] How to specify a relative path to an MS Access db in app.config? Message-ID: Hi Shamil This guy seems to have found a method to specify a relative path as a parameter - which is little different from your connection string: http://www.eggheadcafe.com/community/aspnet/2/10213449/set-relative-path-in-windows-application.aspx However, you later should be able to easily modify your connection string using the SqlConnectionStringBuilder: private SqlConnection ConnectionApplyPassword(string connectionString) { // Apply password to connectionString. SqlConnectionStringBuilder sqlConnectionStringBuilder = new SqlConnectionStringBuilder(); sqlConnectionStringBuilder.ConnectionString = connectionString; sqlConnectionStringBuilder.Password = _connectionDbPassword; return new SqlConnection(sqlConnectionStringBuilder.ToString()); } like this: someDataTableAdapter.Connection = ConnectionApplyPassword(someDataTableAdapter.Connection.ConnectionString); /gustav >>> shamil at smsconsulting.spb.ru 14-01-2011 17:51 >>> Hi All -- That should be simple(?) but google somehow doesn't give any useful feedback (or I'm missing it). I wanted to have the following connection string from app.config to use relative path to MS Access db - relative to the folder where app.config (its assembly) will be installed on target system: If I write: Data Source=.\Database\TestData.mdb it works on start-up and when I work with main form, but as soon as I use, e.g., OpenFile fialog, which changes default folder main form's update which is bound do a dataset which uses the above connection string fails to update db as it gets now improper fullpath for db... Isn't there something like Data Source=~\Database\TestData.mdb or Data Source={Application}\Database\TestData.mdb or ... way to specify "stable" relative path to the MS Access db - relative to the app.config's assembly location? I do not want to use DSN... Thank you. -- Shamil From shamil at smsconsulting.spb.ru Fri Jan 14 16:09:27 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sat, 15 Jan 2011 01:09:27 +0300 Subject: [dba-VB] How to specify a relative path to an MS Access db inapp.config? In-Reply-To: References: Message-ID: <7F371F119A344A17A24F2AF9BF5D540A@nant> Thank you, Gustav, First of all I do use MS Access backend for that my simple application. Yes, I can write a couple of code lines to customize connection creation on runtime but I wanted to avoid doing that additional coding. The following static solution works well I just need to keep watching to have current directory within that application to be always equal to the app.config's assembly directory... 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: 15 ?????? 2011 ?. 0:29 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] How to specify a relative path to an MS Access db inapp.config? Hi Shamil This guy seems to have found a method to specify a relative path as a parameter - which is little different from your connection string: http://www.eggheadcafe.com/community/aspnet/2/10213449/set-relative-path-in- windows-application.aspx However, you later should be able to easily modify your connection string using the SqlConnectionStringBuilder: private SqlConnection ConnectionApplyPassword(string connectionString) { // Apply password to connectionString. SqlConnectionStringBuilder sqlConnectionStringBuilder = new SqlConnectionStringBuilder(); sqlConnectionStringBuilder.ConnectionString = connectionString; sqlConnectionStringBuilder.Password = _connectionDbPassword; return new SqlConnection(sqlConnectionStringBuilder.ToString()); } like this: someDataTableAdapter.Connection = ConnectionApplyPassword(someDataTableAdapter.Connection.ConnectionString); /gustav >>> shamil at smsconsulting.spb.ru 14-01-2011 17:51 >>> Hi All -- That should be simple(?) but google somehow doesn't give any useful feedback (or I'm missing it). I wanted to have the following connection string from app.config to use relative path to MS Access db - relative to the folder where app.config (its assembly) will be installed on target system: If I write: Data Source=.\Database\TestData.mdb it works on start-up and when I work with main form, but as soon as I use, e.g., OpenFile fialog, which changes default folder main form's update which is bound do a dataset which uses the above connection string fails to update db as it gets now improper fullpath for db... Isn't there something like Data Source=~\Database\TestData.mdb or Data Source={Application}\Database\TestData.mdb or ... way to specify "stable" relative path to the MS Access db - relative to the app.config's assembly location? I do not want to use DSN... Thank you. -- Shamil _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Sat Jan 15 17:37:00 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 15 Jan 2011 18:37:00 -0500 Subject: [dba-VB] SQL Server over Hamachi: First test not hopeful Message-ID: <4D322F9C.8090405@colbyconsulting.com> I developed a SQL Server database, with perhaps 10-15 tables, populated a few with just a handful of records, created an Access database and built a few forms. My strategy is to do Access because I can do it quickly, but link it to SQL Server, the run the FE on a remote computer over Hamachi. Tonight I went to a local Arby's to test the speed of the system. The local Arby's has an open wifi, which using Speedtest.net tested 5 mbit down, 1 mbit up - typical low end cable in my area. So I tried to use the system and... well... it took an extremely long time to connect, if it connected at all. Access mostly timed out trying to log on. SQL Server Management System would log on sometimes. Sometimes not. Trying to hit it at the actual Hamachi IP address worked but took awhile. 15 - 30 seconds to connect (I did not time it). To be honest I am puzzled. Google finds plenty of folks trying this, some succeeding, most pretty slow. Remote desktop is plenty fast. From inside of my office, out across the internet via Hamachi I have done things like file transfers etc (in the past). Remote desktop has always been very speedy, but there isn't much needed for RD. I had really expected faster connections / operation. I really expected SSMS to just work, pretty much at speed. It didn't. Sigh, back to the drawing boards. -- John W. Colby www.ColbyConsulting.com From marklbreen at gmail.com Sun Jan 16 04:39:00 2011 From: marklbreen at gmail.com (Mark Breen) Date: Sun, 16 Jan 2011 10:39:00 +0000 Subject: [dba-VB] SQL Server over Hamachi: First test not hopeful In-Reply-To: <4D322F9C.8090405@colbyconsulting.com> References: <4D322F9C.8090405@colbyconsulting.com> Message-ID: Hello John, I am using Hamachi - since you mentioned it here a few years ago - and Access and SQL server since Jan 2008 and it works the same as a VLan over Cisco hardware. No performance difference between Hamachi and CISCO, Thanks for the info on Hamachi in 2007/8 BTW :) HTH Mark On 15 January 2011 23:37, jwcolby wrote: > I developed a SQL Server database, with perhaps 10-15 tables, populated a > few with just a handful of records, created an Access database and built a > few forms. My strategy is to do Access because I can do it quickly, but > link it to SQL Server, the run the FE on a remote computer over Hamachi. > > Tonight I went to a local Arby's to test the speed of the system. The > local Arby's has an open wifi, which using Speedtest.net tested 5 mbit down, > 1 mbit up - typical low end cable in my area. > > So I tried to use the system and... well... it took an extremely long time > to connect, if it connected at all. Access mostly timed out trying to log > on. SQL Server Management System would log on sometimes. Sometimes not. > Trying to hit it at the actual Hamachi IP address worked but took awhile. > 15 - 30 seconds to connect (I did not time it). > > To be honest I am puzzled. Google finds plenty of folks trying this, some > succeeding, most pretty slow. Remote desktop is plenty fast. > > From inside of my office, out across the internet via Hamachi I have done > things like file transfers etc (in the past). Remote desktop has always > been very speedy, but there isn't much needed for RD. > > I had really expected faster connections / operation. I really expected > SSMS to just work, pretty much at speed. It didn't. > > Sigh, back to the drawing boards. > -- > John W. Colby > www.ColbyConsulting.com > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From jwcolby at colbyconsulting.com Sun Jan 16 07:40:56 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sun, 16 Jan 2011 08:40:56 -0500 Subject: [dba-VB] SQL Server over Hamachi: First test not hopeful In-Reply-To: References: <4D322F9C.8090405@colbyconsulting.com> Message-ID: <4D32F568.6050406@colbyconsulting.com> Are you running this over the internet I assume - over Hamachi wold imply that. What are your connection speeds at either end using speedtest.net? John W. Colby www.ColbyConsulting.com On 1/16/2011 5:39 AM, Mark Breen wrote: > Hello John, > > I am using Hamachi - since you mentioned it here a few years ago - and > Access and SQL server since Jan 2008 and it works the same as a VLan over > Cisco hardware. No performance difference between Hamachi and CISCO, > > Thanks for the info on Hamachi in 2007/8 BTW :) > > HTH > > Mark > > On 15 January 2011 23:37, jwcolby wrote: > >> I developed a SQL Server database, with perhaps 10-15 tables, populated a >> few with just a handful of records, created an Access database and built a >> few forms. My strategy is to do Access because I can do it quickly, but >> link it to SQL Server, the run the FE on a remote computer over Hamachi. >> >> Tonight I went to a local Arby's to test the speed of the system. The >> local Arby's has an open wifi, which using Speedtest.net tested 5 mbit down, >> 1 mbit up - typical low end cable in my area. >> >> So I tried to use the system and... well... it took an extremely long time >> to connect, if it connected at all. Access mostly timed out trying to log >> on. SQL Server Management System would log on sometimes. Sometimes not. >> Trying to hit it at the actual Hamachi IP address worked but took awhile. >> 15 - 30 seconds to connect (I did not time it). >> >> To be honest I am puzzled. Google finds plenty of folks trying this, some >> succeeding, most pretty slow. Remote desktop is plenty fast. >> >> From inside of my office, out across the internet via Hamachi I have done >> things like file transfers etc (in the past). Remote desktop has always >> been very speedy, but there isn't much needed for RD. >> >> I had really expected faster connections / operation. I really expected >> SSMS to just work, pretty much at speed. It didn't. >> >> Sigh, back to the drawing boards. >> -- >> 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 Sun Jan 16 21:21:26 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sun, 16 Jan 2011 22:21:26 -0500 Subject: [dba-VB] Access to SQL Server over Hamachi - it WORKS Message-ID: <4D33B5B6.1050102@colbyconsulting.com> Today I stepped back and set it all up internal to my network. Yesterday I had moved the Fe to my laptop. Today I deleted all of my linked tables, then I relinked all of the tables. In doing so I created a new DSN where I hit the SQL Server directly at the Hamachi IP address. Relinked using this new DSN and voila, she's a wurkin, and lightning fast over my internal network but forcing the traffic through Hamachi. So I tested a bit, then went back out to the local Arby's where I was pretty much unable to do anything last night (other than browse the internet). Got right on the connection, opened the Access FE and voila, she's a wurkin, and lightning fast. You wouldn't know you weren't directly on my LAN. Access on my laptop over Hamachi, over a public network, in to my network, directly into a Virtual Machine over Hamachi, running SQL Server 2008 Express. I am so jazzed! that leaves me with one technical barrier now, getting an Access 2007 run-time to host an Access 2003 FE. Now I need to set up a VM to run on my laptop so that I can have an environment without Office installed. Install the Access 2007 run-time and drop the Access 2003 Fe in place. Set up Hamachi on that VM and then get it all playing nice. This will allow me to take my laptop on the road to demo the system. We shall see. And yes Jim, I understand I still need to cause SQL Server to do the heavy lifting. To this point I have never really used SQL Server as the BE for Access. My biggest client uses Access 2K and it doesn't really play nice with ADO. Since I can now develop these new databases in 2003, I can do things like bind the form to an ADO recordset and still have it read/write. I will need to learn how to use a stored procedure were I can pass in a PK and have the SP return a table of data already selected and sorted. I.e. SQL Server doing the lifting. The nice thing is that these are small databases so I can do things like leave the list tables just linked, at least for awhile while I learn all the stuff I have never had to do. Next up, 2007 run-time. -- John W. Colby www.ColbyConsulting.com From jwcolby at colbyconsulting.com Sun Jan 16 21:51:01 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sun, 16 Jan 2011 22:51:01 -0500 Subject: [dba-VB] SQL Server over Hamachi: First test not hopeful In-Reply-To: References: <4D322F9C.8090405@colbyconsulting.com> Message-ID: <4D33BCA5.3020906@colbyconsulting.com> Mark, I got it working today! 8) John W. Colby www.ColbyConsulting.com On 1/16/2011 5:39 AM, Mark Breen wrote: > Hello John, > > I am using Hamachi - since you mentioned it here a few years ago - and > Access and SQL server since Jan 2008 and it works the same as a VLan over > Cisco hardware. No performance difference between Hamachi and CISCO, > > Thanks for the info on Hamachi in 2007/8 BTW :) > > HTH > > Mark From marklbreen at gmail.com Mon Jan 17 04:38:19 2011 From: marklbreen at gmail.com (Mark Breen) Date: Mon, 17 Jan 2011 10:38:19 +0000 Subject: [dba-VB] SQL Server over Hamachi: First test not hopeful In-Reply-To: <4D33BCA5.3020906@colbyconsulting.com> References: <4D322F9C.8090405@colbyconsulting.com> <4D33BCA5.3020906@colbyconsulting.com> Message-ID: Hi John, I saw your other post, congrats, I guess you do feel jazzed. I tried speedtest.net and it told me I had 5 MB and .5 down and up. What I was curious about was that what you wanted me to check. Was there another check you wanted me to do? thanks Mark On 17 January 2011 03:51, jwcolby wrote: > Mark, > > I got it working today! 8) > > > John W. Colby > www.ColbyConsulting.com > > On 1/16/2011 5:39 AM, Mark Breen wrote: > >> Hello John, >> >> I am using Hamachi - since you mentioned it here a few years ago - and >> Access and SQL server since Jan 2008 and it works the same as a VLan over >> Cisco hardware. No performance difference between Hamachi and CISCO, >> >> Thanks for the info on Hamachi in 2007/8 BTW :) >> >> HTH >> >> Mark >> > _______________________________________________ > 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 Mon Jan 17 06:54:22 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Mon, 17 Jan 2011 15:54:22 +0300 Subject: [dba-VB] .NET 4.0 + MS ReportViewer 10.0 + MS Access backend sample: Re: Ded Moroz sends you links on sample projects... :) Message-ID: Hi All, FYI: I have temporarily put subject sample running here: http://shamils-19.hosting.parking.ru/nw4/Default.aspx It's from this release http://shamils-19.hosting.parking.ru/nw4/Default.aspx (http://northwind.codeplex.com/releases/view/26600#DownloadId=192044) announced here on New 2011 Year Eve. That release has got 150+ downloads by now but almost zero feedback. Any feedback is welcome. Thank you. -- Shamil -----Original Message----- From: Shamil Salakhetdinov [mailto:shamil at smsconsulting.spb.ru] Sent: 31 ??????? 2010 ?. 15:14 To: 'Discussion concerning Visual Basic and related programming issues.'; 'Access Developers discussion and problem solving' Subject: Ded Moroz sends you links on sample projects... :) Hi All -- New Year Eve is approaching here, and I wanted to send you some gifts from Ded Moroz - here they are: This is a set of projects I have got developed a few days ago during 40+ hours R&D coding marathon. The task was to finish all the work in about 40 hours. So a few bugs left in there as release deadline wasn't possible to move. They (the bugs) are described in readme. But in general all the sample apps work rather well as my tests here show. I'd be interested to hear any comments - in what direction that sample should be better developed. Please write them here, or on http://northwind.codeplex.com . Please do not "judge severely" as as I noted that was very intensive R&D work with little time to think through while coding :) But feel free to comment it as you like. *Do not try* to be politcorrect. Please. I wish all of your Very Happy and Prosperous New Year! Thank you. -- Shamil P.S. Short description of published projects (the sources get downloaded 19 times already and I have got informed privately a couple of days ago just three people): NorthwindNET_4_0_Sources.zip (~24MB) http://northwind.codeplex.com/releases/view/26600#DownloadId=192044 NorthwindNET_4_0_SampleApps_Setup.zip (~5MB) http://northwind.codeplex.com/releases/view/26600#DownloadId=192043 Northwind.NET.VS2010.sln ======================== 1. Northwind.NET.EDM.FE - WinForms Front-End (just start-up class and app.config); 2. Northwind.NET.EDM.WinForms.Controls - UI UserControls; 3. Northwind.NET.EDM.Reports - MS ReportViewer 10.0 Reports; 4. Northwind.NET.BLL - Business Layer Library (ADO.NET EDM LINQ Reports' data sources); 5. Northwind.NET.Model - ADO.NET EDM; 6. Northwind.NET.Settings - application settings (wrappers); 7. Northwind.NET.Resources - application resource file; 8. Northwind.NET.Utilities - utility class library; 9. Northwind.NET.Testing.Console - some test functions - it's not true TDD - just a rough approximation; Northwind.NET.MSAccess.sln ========================== I. WinForms FE with MS Access backend Northwind.NET.FE.1.1 - Northwind.NET FE with MS Access backend Northwind.NET.Utilities - Utilities project II. ASP.NET sample application with MS Access backend E:/Projects/SMS/Northwind/Northwind.ASP.NET.MSAccess.Reporting/ - ASP.NET project III. Just a test ASP.NET app - can be removed E:\Projects\SMS\Northwind\Northwind.ASP.NET.MSAccess.Reporting.RDLC.10.0.0.0 Northwind.NET.zzz_OLD.sln ========================= 1. Northwind.NET.FE - WinForms Front-End with MS SQL backend using "plain old" ADO.NET data sets - the project we did last year's April. 2. All the other projects from as in Northwind.NET.VS2010.sln ----------- From jwcolby at colbyconsulting.com Mon Jan 17 07:30:46 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 17 Jan 2011 08:30:46 -0500 Subject: [dba-VB] SQL Server over Hamachi: First test not hopeful In-Reply-To: References: <4D322F9C.8090405@colbyconsulting.com> <4D33BCA5.3020906@colbyconsulting.com> Message-ID: <4D344486.1030307@colbyconsulting.com> Thanks for the reply Mark. Are you doing completely unbound forms? Mixed? All bound forms? Systems that don't really use data entry forms? This is my first foray into Access to SQL over Hamachi so I am just looking for someone with previous experience to tell us about it. As Jim pointed out, I do only have a few minutes of working from a public wifi back into my office but the second test was flawless, and literally so fast you would not know you weren't directly on my network. John W. Colby www.ColbyConsulting.com On 1/17/2011 5:38 AM, Mark Breen wrote: > Hi John, > > I saw your other post, congrats, I guess you do feel jazzed. > > I tried speedtest.net and it told me I had 5 MB and .5 down and up. > > What I was curious about was that what you wanted me to check. Was there > another check you wanted me to do? > > thanks > > Mark From shamil at smsconsulting.spb.ru Wed Jan 19 00:53:51 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Wed, 19 Jan 2011 09:53:51 +0300 Subject: [dba-VB] FYI: Agile: Mik Kersten - I think we are ready for another revolt... Message-ID: Hi All, FYI: http://www.infoq.com/interviews/kersten-tasktop Summary: "Mik Kersten discusses the role of Mylyn and Tasktop in Agile development and how these tools return control to developers. Also: how Mylyn streamlines development in Eclipse. ... The Agile movement, or the Agile community kind of was founded by programmers, and again going back the XP in specific, who were just tired of being treated the low end of the management chain. So as the programmers revolt and a lot of people have thought that the Agile community has been taken over by Scrum and by management and they are dumping on programmers just as much as before and it got to the point that the software craftsmanship movement was again the programmers revolting. I think we are ready for another revolt. That is a really interesting observation." Thank you. -- Shamil From jwcolby at colbyconsulting.com Thu Jan 20 11:52:25 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 20 Jan 2011 12:52:25 -0500 Subject: [dba-VB] C# Grid: effectively and efficiently handle dirty Message-ID: <4D387659.5010005@colbyconsulting.com> I am doing C# forms, bound to SQL Server. I dragged and dropped the table out onto the form and C# "installed" the grid as well as a record navigation toolbar. Now I am trying to make sure that data is saved. I have discovered for example that if you edit something and just close the form... no save. Basically no save unless the save button is pressed. Being the anal guy I am, this ain't good enough. I don't want to save after every cell edit, but I do want to save after every row edit or when the form closes. Even this is non-trivial. After browsing the internet and seeing what others are doing (lots of pain expressed), my strategy is to have a RowDirty set by the CellContentsModified but to be honest, things just aren't working as expected. The row leave isn't fired if I sink the CellModified (or something). All I can see for sure is that, while one would expect the row leave to fire if a row is left (makes sense to me) that isn't true and so now I am left with trying to figure out what zany rules exist. So here I am, hat in hand, asking the list "how do you do this"? -- John W. Colby www.ColbyConsulting.com From shamil at smsconsulting.spb.ru Thu Jan 20 14:01:51 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Thu, 20 Jan 2011 23:01:51 +0300 Subject: [dba-VB] C# Grid: effectively and efficiently handle dirty In-Reply-To: <4D387659.5010005@colbyconsulting.com> References: <4D387659.5010005@colbyconsulting.com> Message-ID: <4C68C4DCE29E417AA4B54C60AB4E4316@nant> Hi John -- So you use VS2008 (at least) and you have a "datasheet form" - a bound DataGridView with BindingNavigator bound to ADO.NET dataset etc.? If yes - BindingNavigator has CurrentChanged event, which if fired as soon as you move to the other grid's row. When form is closing FormClosing event is fired: private void shipperBindingSource_CurrentChanged(object sender, EventArgs e) { saveEdits(); } private void saveEdits() { this.Validate(); this.shipperBindingSource.EndEdit(); this.tableAdapterManager.UpdateAll(this.northwindNETDataSet1); } private void Form2_FormClosing(object sender, FormClosingEventArgs e) { DataRowView row = shipperBindingSource.Current as DataRowView; if (row.Row.RowState == DataRowState.Modified) saveEdits(); } Thank you. -- Shamil P.S. I must note I rarely work with bound forms and ADO.NET datasets - just my preference but they should be OK in your context of small "quick&dirty" (first version) apps... -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: 20 ?????? 2011 ?. 20:52 To: VBA Subject: [dba-VB] C# Grid: effectively and efficiently handle dirty I am doing C# forms, bound to SQL Server. I dragged and dropped the table out onto the form and C# "installed" the grid as well as a record navigation toolbar. Now I am trying to make sure that data is saved. I have discovered for example that if you edit something and just close the form... no save. Basically no save unless the save button is pressed. Being the anal guy I am, this ain't good enough. I don't want to save after every cell edit, but I do want to save after every row edit or when the form closes. Even this is non-trivial. After browsing the internet and seeing what others are doing (lots of pain expressed), my strategy is to have a RowDirty set by the CellContentsModified but to be honest, things just aren't working as expected. The row leave isn't fired if I sink the CellModified (or something). All I can see for sure is that, while one would expect the row leave to fire if a row is left (makes sense to me) that isn't true and so now I am left with trying to figure out what zany rules exist. So here I am, hat in hand, asking the list "how do you do this"? -- John W. Colby www.ColbyConsulting.com From jwcolby at colbyconsulting.com Thu Jan 20 14:27:14 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 20 Jan 2011 15:27:14 -0500 Subject: [dba-VB] C# Grid: effectively and efficiently handle dirty In-Reply-To: <4C68C4DCE29E417AA4B54C60AB4E4316@nant> References: <4D387659.5010005@colbyconsulting.com> <4C68C4DCE29E417AA4B54C60AB4E4316@nant> Message-ID: <4D389AA2.6050408@colbyconsulting.com> So this saveEdits doesn't do anything if there is no change, but if there is an add, delete or edit then it will correctly store? Works for me. I'll be a testing. Thanks, John W. Colby www.ColbyConsulting.com On 1/20/2011 3:01 PM, Shamil Salakhetdinov wrote: > Hi John -- > > So you use VS2008 (at least) and you have a "datasheet form" - a bound > DataGridView with BindingNavigator bound to ADO.NET dataset etc.? > If yes - BindingNavigator has CurrentChanged event, which if fired as soon > as you move to the other grid's row. > When form is closing FormClosing event is fired: > > private void shipperBindingSource_CurrentChanged(object sender, EventArgs e) > { > saveEdits(); > } > > private void saveEdits() > { > this.Validate(); > this.shipperBindingSource.EndEdit(); > this.tableAdapterManager.UpdateAll(this.northwindNETDataSet1); > } > > private void Form2_FormClosing(object sender, FormClosingEventArgs e) > { > DataRowView row = shipperBindingSource.Current as DataRowView; > if (row.Row.RowState == DataRowState.Modified) saveEdits(); > } > > Thank you. > > -- > Shamil > > P.S. I must note I rarely work with bound forms and ADO.NET datasets - just > my preference but they should be OK in your context of small "quick&dirty" > (first version) apps... > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: 20 ?????? 2011 ?. 20:52 > To: VBA > Subject: [dba-VB] C# Grid: effectively and efficiently handle dirty > > I am doing C# forms, bound to SQL Server. I dragged and dropped the table > out onto the form and C# "installed" the grid as well as a record navigation > toolbar. > > Now I am trying to make sure that data is saved. I have discovered for > example that if you edit something and just close the form... no save. > Basically no save unless the save button is pressed. > > Being the anal guy I am, this ain't good enough. I don't want to save after > every cell edit, but I do want to save after every row edit or when the form > closes. Even this is non-trivial. > > After browsing the internet and seeing what others are doing (lots of pain > expressed), my strategy is to have a RowDirty set by the > CellContentsModified but to be honest, things just aren't working as > expected. The row leave isn't fired if I sink the CellModified (or > something). All I can see for sure is that, while one would expect the row > leave to fire if a row is left (makes sense to me) that isn't true and so > now I am left with trying to figure out what zany rules exist. > > So here I am, hat in hand, asking the list "how do you do this"? > > -- > John W. Colby > www.ColbyConsulting.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From jwcolby at colbyconsulting.com Thu Jan 20 14:29:25 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 20 Jan 2011 15:29:25 -0500 Subject: [dba-VB] C# Grid: effectively and efficiently handle dirty In-Reply-To: <4C68C4DCE29E417AA4B54C60AB4E4316@nant> References: <4D387659.5010005@colbyconsulting.com> <4C68C4DCE29E417AA4B54C60AB4E4316@nant> Message-ID: <4D389B25.4070906@colbyconsulting.com> What does virtual mode do for me? John W. Colby www.ColbyConsulting.com On 1/20/2011 3:01 PM, Shamil Salakhetdinov wrote: > Hi John -- > > So you use VS2008 (at least) and you have a "datasheet form" - a bound > DataGridView with BindingNavigator bound to ADO.NET dataset etc.? > If yes - BindingNavigator has CurrentChanged event, which if fired as soon > as you move to the other grid's row. > When form is closing FormClosing event is fired: > > private void shipperBindingSource_CurrentChanged(object sender, EventArgs e) > { > saveEdits(); > } > > private void saveEdits() > { > this.Validate(); > this.shipperBindingSource.EndEdit(); > this.tableAdapterManager.UpdateAll(this.northwindNETDataSet1); > } > > private void Form2_FormClosing(object sender, FormClosingEventArgs e) > { > DataRowView row = shipperBindingSource.Current as DataRowView; > if (row.Row.RowState == DataRowState.Modified) saveEdits(); > } > > Thank you. > > -- > Shamil > > P.S. I must note I rarely work with bound forms and ADO.NET datasets - just > my preference but they should be OK in your context of small "quick&dirty" > (first version) apps... > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: 20 ?????? 2011 ?. 20:52 > To: VBA > Subject: [dba-VB] C# Grid: effectively and efficiently handle dirty > > I am doing C# forms, bound to SQL Server. I dragged and dropped the table > out onto the form and C# "installed" the grid as well as a record navigation > toolbar. > > Now I am trying to make sure that data is saved. I have discovered for > example that if you edit something and just close the form... no save. > Basically no save unless the save button is pressed. > > Being the anal guy I am, this ain't good enough. I don't want to save after > every cell edit, but I do want to save after every row edit or when the form > closes. Even this is non-trivial. > > After browsing the internet and seeing what others are doing (lots of pain > expressed), my strategy is to have a RowDirty set by the > CellContentsModified but to be honest, things just aren't working as > expected. The row leave isn't fired if I sink the CellModified (or > something). All I can see for sure is that, while one would expect the row > leave to fire if a row is left (makes sense to me) that isn't true and so > now I am left with trying to figure out what zany rules exist. > > So here I am, hat in hand, asking the list "how do you do this"? > > -- > John W. Colby > www.ColbyConsulting.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From jwcolby at colbyconsulting.com Thu Jan 20 14:38:58 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 20 Jan 2011 15:38:58 -0500 Subject: [dba-VB] C# Grid: effectively and efficiently handle dirty In-Reply-To: <4C68C4DCE29E417AA4B54C60AB4E4316@nant> References: <4D387659.5010005@colbyconsulting.com> <4C68C4DCE29E417AA4B54C60AB4E4316@nant> Message-ID: <4D389D62.2090704@colbyconsulting.com> Interesting (and sticky) the form closing does not fire if the main application is closed. I added a saveEdits in the formclosing event (as you indicate) which works if the user clicks the check box in the form that the edit is happening in. IOW edit something then instead of moving to another line, they just close the form. In that case the closing event fires. However that closing event does not fire if the user closes the entire application. Is there a form lostfocus? John W. Colby www.ColbyConsulting.com On 1/20/2011 3:01 PM, Shamil Salakhetdinov wrote: > Hi John -- > > So you use VS2008 (at least) and you have a "datasheet form" - a bound > DataGridView with BindingNavigator bound to ADO.NET dataset etc.? > If yes - BindingNavigator has CurrentChanged event, which if fired as soon > as you move to the other grid's row. > When form is closing FormClosing event is fired: > > private void shipperBindingSource_CurrentChanged(object sender, EventArgs e) > { > saveEdits(); > } > > private void saveEdits() > { > this.Validate(); > this.shipperBindingSource.EndEdit(); > this.tableAdapterManager.UpdateAll(this.northwindNETDataSet1); > } > > private void Form2_FormClosing(object sender, FormClosingEventArgs e) > { > DataRowView row = shipperBindingSource.Current as DataRowView; > if (row.Row.RowState == DataRowState.Modified) saveEdits(); > } > > Thank you. > > -- > Shamil > > P.S. I must note I rarely work with bound forms and ADO.NET datasets - just > my preference but they should be OK in your context of small "quick&dirty" > (first version) apps... > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: 20 ?????? 2011 ?. 20:52 > To: VBA > Subject: [dba-VB] C# Grid: effectively and efficiently handle dirty > > I am doing C# forms, bound to SQL Server. I dragged and dropped the table > out onto the form and C# "installed" the grid as well as a record navigation > toolbar. > > Now I am trying to make sure that data is saved. I have discovered for > example that if you edit something and just close the form... no save. > Basically no save unless the save button is pressed. > > Being the anal guy I am, this ain't good enough. I don't want to save after > every cell edit, but I do want to save after every row edit or when the form > closes. Even this is non-trivial. > > After browsing the internet and seeing what others are doing (lots of pain > expressed), my strategy is to have a RowDirty set by the > CellContentsModified but to be honest, things just aren't working as > expected. The row leave isn't fired if I sink the CellModified (or > something). All I can see for sure is that, while one would expect the row > leave to fire if a row is left (makes sense to me) that isn't true and so > now I am left with trying to figure out what zany rules exist. > > So here I am, hat in hand, asking the list "how do you do this"? > > -- > 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 shamil at smsconsulting.spb.ru Thu Jan 20 15:24:45 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Fri, 21 Jan 2011 00:24:45 +0300 Subject: [dba-VB] C# Grid: effectively and efficiently handle dirty In-Reply-To: <4D389D62.2090704@colbyconsulting.com> References: <4D387659.5010005@colbyconsulting.com><4C68C4DCE29E417AA4B54C60AB4E4316@nant> <4D389D62.2090704@colbyconsulting.com> Message-ID: <1609C9C0463040199A65681DE2B7F675@nant> Hi John, There is a Deactivate event for Form object. Actually a System.Windows.Forms.Form has "more event types one can imagine" - at least many of them are so weird for me - I have never used probably 95% of .NET WinForms and controls events... :) Try to KISS it now John. At least on first pass. What you have to do now is to create the main "meat" part of your app - all forms. You'd better generalize/make all the tricks later - it's so easy to make (if needed) a generic form class inheriting from System.Windows.Forms.Form class etc. and then use that class for all the relevant custom forms... And you can't do it right this first time - it's more important to "get your hands wet" with that stuff - the more you'll do mechanically now - the better (IMO) - the easier and the quicker you'll get all that stuff refactored later... But as you're a seasoned professional with DB modeliing etc. - try to make that part 99% right now.. - that will help a lot on the subsequent refactoring steps... <<< > After browsing the internet and seeing what others are doing (lots of pain expressed), >>> That are beginners very probably - there shouldn't be that much pain when doing .NET System.Windows.Forms development. But when one is a beginner with WinForms - everything looks so complicated because of the volume of information to get through, and because of the project deadline stress... Thank you. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: 20 ?????? 2011 ?. 23:39 To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] C# Grid: effectively and efficiently handle dirty Interesting (and sticky) the form closing does not fire if the main application is closed. I added a saveEdits in the formclosing event (as you indicate) which works if the user clicks the check box in the form that the edit is happening in. IOW edit something then instead of moving to another line, they just close the form. In that case the closing event fires. However that closing event does not fire if the user closes the entire application. Is there a form lostfocus? John W. Colby www.ColbyConsulting.com On 1/20/2011 3:01 PM, Shamil Salakhetdinov wrote: > Hi John -- > > So you use VS2008 (at least) and you have a "datasheet form" - a bound > DataGridView with BindingNavigator bound to ADO.NET dataset etc.? > If yes - BindingNavigator has CurrentChanged event, which if fired as > soon as you move to the other grid's row. > When form is closing FormClosing event is fired: > > private void shipperBindingSource_CurrentChanged(object sender, > EventArgs e) { > saveEdits(); > } > > private void saveEdits() > { > this.Validate(); > this.shipperBindingSource.EndEdit(); > this.tableAdapterManager.UpdateAll(this.northwindNETDataSet1); > } > > private void Form2_FormClosing(object sender, FormClosingEventArgs e) > { > DataRowView row = shipperBindingSource.Current as DataRowView; > if (row.Row.RowState == DataRowState.Modified) saveEdits(); } > > Thank you. > > -- > Shamil > > P.S. I must note I rarely work with bound forms and ADO.NET datasets - > just my preference but they should be OK in your context of small "quick&dirty" > (first version) apps... > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: 20 ?????? 2011 ?. 20:52 > To: VBA > Subject: [dba-VB] C# Grid: effectively and efficiently handle dirty > > I am doing C# forms, bound to SQL Server. I dragged and dropped the > table out onto the form and C# "installed" the grid as well as a > record navigation toolbar. > > Now I am trying to make sure that data is saved. I have discovered > for example that if you edit something and just close the form... no save. > Basically no save unless the save button is pressed. > > Being the anal guy I am, this ain't good enough. I don't want to save > after every cell edit, but I do want to save after every row edit or > when the form closes. Even this is non-trivial. > > After browsing the internet and seeing what others are doing (lots of > pain expressed), my strategy is to have a RowDirty set by the > CellContentsModified but to be honest, things just aren't working as > expected. The row leave isn't fired if I sink the CellModified (or > something). All I can see for sure is that, while one would expect > the row leave to fire if a row is left (makes sense to me) that isn't > true and so now I am left with trying to figure out what zany rules exist. > > So here I am, hat in hand, asking the list "how do you do this"? > From shamil at smsconsulting.spb.ru Fri Jan 21 10:33:50 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Fri, 21 Jan 2011 19:33:50 +0300 Subject: [dba-VB] "Smart" fulltext search on large documents (data)base... Message-ID: <54C40F764B3B4CBB812589E1808149DD@nant> Hi All -- I have a task to implement a system providing "smart" fulltext search over a large base of text documents. My current plan is to use Google Docs. I plan to get in the future 80 GB ($20.00 USD per year) hosted space on GoogleDocs, put all the subject docs there, and then use Google API to search via my documents base. That seems to be it? It should be even possible to create a simple (free?) Google Web Site as front-end to that GoogleDocs documents base? That GoogleDocs base/site is planned to be used by non-profit organization. Am I missing something? Additional overhead costs to keep that solution's stuff on Google site? And why I'm writing about that solution here in dba-VBA? - because I plan to implement a front-end to that application system as an WinForms application coomunicating with Windows API... Thank you. -- Shamil From jwcolby at colbyconsulting.com Sat Jan 22 10:16:02 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 22 Jan 2011 11:16:02 -0500 Subject: [dba-VB] How do I troubleshoot SQL Server Security Message-ID: <4D3B02C2.1010909@colbyconsulting.com> What I want to do: Create an instance of SQL Server running on a specific server, and somehow magically allow a specific set of users logged in to the "system" (not necessarily that server) to access the server. AFAIK Users log in to Active Directory. I do not use Active Directory on my home / business network and do not really understand how it works. In any event it appears that I am going to have to use Active Directory in the SQL Server login? What I tried to do: On the server (windows 2000) I: 1) Created a windows security group DISUsers 2) Added most of the normal users of the computer, all of which will use the SQL Server 2005 Express database, including my user. 3) In SQL Server 2005 Express SSMS at the server level I clicked security login 4) I created a login DiscoServer and I assigned that to the group DiscoSvr\DiscoUsers 5) I checked that the login had the public server role (and only that role) 6) I went into the DISCO database and clickde SDecurity / Users 7) I created a DiscoUsers user assigned to the DiscoSvr\DiscoUsers object (group) 7) I checked the Role members db_DataReader and db_DataWriter I saved all of the above. I then go to my workstation, log in, open ssms and select DiscoSvr\SQLExpress. I can see the database object and I can see a + symbol but if I try to expand the database to see the objects I get a very generic error message "DispecLLC\jcolby is not able to access the database "Disco" under the current Security Context: SQL Server Error 916" I do not understand network security, but AFAICT what is happening is that I am logging in to a network (Active Directory) login (which all users do) but I have just set up SQL Server on that server to use a group / users specific to that server. So is it possible to use a similar method to manipulate SQL Server with active directory groups / users? How is that done. -- John W. Colby www.ColbyConsulting.com From dw-murphy at cox.net Sat Jan 22 11:56:20 2011 From: dw-murphy at cox.net (Doug Murphy) Date: Sat, 22 Jan 2011 09:56:20 -0800 Subject: [dba-VB] "Smart" fulltext search on large documents (data)base... In-Reply-To: <54C40F764B3B4CBB812589E1808149DD@nant> References: <54C40F764B3B4CBB812589E1808149DD@nant> Message-ID: <8FA20A84C52943F49C1F87D8D6AD549B@murphy3234aaf1> Shamil, Very innovative approach. Good use of the low cost and high power offered by the "Cloud" services. I'll be interested in how this comes out. Doug -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Friday, January 21, 2011 8:34 AM To: 'Discussion concerning Visual Basic and related programming issues.' Subject: [dba-VB] "Smart" fulltext search on large documents (data)base... Hi All -- I have a task to implement a system providing "smart" fulltext search over a large base of text documents. My current plan is to use Google Docs. I plan to get in the future 80 GB ($20.00 USD per year) hosted space on GoogleDocs, put all the subject docs there, and then use Google API to search via my documents base. That seems to be it? It should be even possible to create a simple (free?) Google Web Site as front-end to that GoogleDocs documents base? That GoogleDocs base/site is planned to be used by non-profit organization. Am I missing something? Additional overhead costs to keep that solution's stuff on Google site? And why I'm writing about that solution here in dba-VBA? - because I plan to implement a front-end to that application system as an WinForms application coomunicating with Windows API... Thank you. -- Shamil _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Sat Jan 22 13:50:04 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 22 Jan 2011 14:50:04 -0500 Subject: [dba-VB] Edit the source for a dataset Message-ID: <4D3B34EC.3030309@colbyconsulting.com> I created a dataset using the wizard, to connect to a SQL Server instance. When I did so I told it to connect to the Hamachi IP address rather than the Virtual Machine name. When I clicked OK it translated the Hamachi IP to the VM name. Very helpful (not). I have to go back out for another "Arby's test" but if I were to want to specify the name of the server, how do I do so? I am not finding a connection property or anything like it. Where is that stuff? -- John W. Colby www.ColbyConsulting.com From shamil at smsconsulting.spb.ru Sat Jan 22 14:52:34 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sat, 22 Jan 2011 23:52:34 +0300 Subject: [dba-VB] "Smart" fulltext search on large documents(data)base... In-Reply-To: <8FA20A84C52943F49C1F87D8D6AD549B@murphy3234aaf1> References: <54C40F764B3B4CBB812589E1808149DD@nant> <8FA20A84C52943F49C1F87D8D6AD549B@murphy3234aaf1> Message-ID: <31B0AA2D51EB42149AEDF4396BDFF406@nant> Hi Doug -- Thank you for your feedback/interest. I plan to implement a simple WinForms client next week using Google API + Google Docs. I have got already loaded 1000+ docs on my free GoogleDocs account and I have checked how full-text search is working with that stuff when used from within browser. It works well although when a document is found the words are not highlighted - I thought about making not only Google API/Google Docs + WinForms Client but also a Browser control embedded into a WinForm to simplify browsing of found results. Because of the lack of automatic highlighting of the search target words that solution looks a bit problematic now - I will probably have to implement also custom highlighting within browsing control - some DOM programming will be needed probably.. Thank you. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Doug Murphy Sent: 22 ?????? 2011 ?. 20:56 To: 'Discussion concerning Visual Basic and related programming issues.' Subject: Re: [dba-VB] "Smart" fulltext search on large documents(data)base... Shamil, Very innovative approach. Good use of the low cost and high power offered by the "Cloud" services. I'll be interested in how this comes out. Doug -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Friday, January 21, 2011 8:34 AM To: 'Discussion concerning Visual Basic and related programming issues.' Subject: [dba-VB] "Smart" fulltext search on large documents (data)base... Hi All -- I have a task to implement a system providing "smart" fulltext search over a large base of text documents. My current plan is to use Google Docs. I plan to get in the future 80 GB ($20.00 USD per year) hosted space on GoogleDocs, put all the subject docs there, and then use Google API to search via my documents base. That seems to be it? It should be even possible to create a simple (free?) Google Web Site as front-end to that GoogleDocs documents base? That GoogleDocs base/site is planned to be used by non-profit organization. Am I missing something? Additional overhead costs to keep that solution's stuff on Google site? And why I'm writing about that solution here in dba-VBA? - because I plan to implement a front-end to that application system as an WinForms application coomunicating with Windows API... 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 jwcolby at colbyconsulting.com Sat Jan 22 15:01:34 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 22 Jan 2011 16:01:34 -0500 Subject: [dba-VB] C# Connecting to the database (or not as the case may be) Message-ID: <4D3B45AE.3070302@colbyconsulting.com> I am sitting in the local Arby's doing more connection tests back into my home/office vmDev / PrisonMinistries database. Access 2003 connects *instantly*. Admittedly small tables snap open, edits save *instantly*. SSMS connects but not quickly. I can view the database, see tables and all that. Opening the tables takes 6 seconds. C# times out after 15 seconds when just trying to "preview" the data directly in the dataset in the left hand pane. Trying to open a form bound to the table times out after approximately 45 seconds. As I mentioned earlier, when setting up the Access database I found somewhere that I needed to use the Hamachi IP address when making the dsn which I did. SSMS is connecting in to that same Hamachi name. The C# (2008) project "translated" the ip address to the name "vmDev", and I am not finding where the connection information is stored for that dataset. I created a brand new dataset with the connection set back to the Hamachi IP and voila, the dataset can see the data. Found where the connection is kept (properties of the project) and discovered that yep, it had *three* connect strings now, the last of which was directly referencing the IP address. Got rid of all but that one, and now the bound form snaps open as quickly as the Access db did. I think what was going was the the form was trying the first which just plain didn't work, and timed out on that before moving on to the next one etc. Now that I only have one, and it references the IP, all if good in my world. Much still to learn but at least I can connect a bound (small recordset) list form directly to a list table and the form "snaps open" from the Arby's restaurant. -- John W. Colby www.ColbyConsulting.com From shamil at smsconsulting.spb.ru Sat Jan 22 15:17:22 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sun, 23 Jan 2011 00:17:22 +0300 Subject: [dba-VB] Edit the source for a dataset In-Reply-To: <4D3B34EC.3030309@colbyconsulting.com> References: <4D3B34EC.3030309@colbyconsulting.com> Message-ID: <2A89BEDE599A4493B5385FEA784C8FEA@nant> Hi John -- Connection information is stored in app.config file, which gets named by VS as {ApplicationExecutableFileExtName}.config for deployment, e.g. MyTestApplication.exe.config When the app is deployed you can edit this XML text file's manually before you start your app. While within VS you can edit connection string value via: Select VS project in Solution Explorer -> Right-Click -> Properties -> Settings Thank you. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: 22 ?????? 2011 ?. 22:50 To: VBA Subject: [dba-VB] Edit the source for a dataset I created a dataset using the wizard, to connect to a SQL Server instance. When I did so I told it to connect to the Hamachi IP address rather than the Virtual Machine name. When I clicked OK it translated the Hamachi IP to the VM name. Very helpful (not). I have to go back out for another "Arby's test" but if I were to want to specify the name of the server, how do I do so? I am not finding a connection property or anything like it. Where is that stuff? -- John W. Colby www.ColbyConsulting.com From jwcolby at colbyconsulting.com Mon Jan 24 09:50:25 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 24 Jan 2011 10:50:25 -0500 Subject: [dba-VB] Report wizard / viewer Message-ID: <4D3D9FC1.60607@colbyconsulting.com> I am building databases in C# now and am reaching the point where I have to think about reports. I see the report wizard and report viewer object. Are you guys using this? Is this crystal reports in a wrapper or something? Easy, hard? Things I need to know as I start using this thing? TIA, -- John W. Colby www.ColbyConsulting.com From df.waters at comcast.net Mon Jan 24 09:55:04 2011 From: df.waters at comcast.net (Dan Waters) Date: Mon, 24 Jan 2011 09:55:04 -0600 Subject: [dba-VB] Report wizard / viewer In-Reply-To: <4D3D9FC1.60607@colbyconsulting.com> References: <4D3D9FC1.60607@colbyconsulting.com> Message-ID: <9681DFA1BEA7427DBE22EA027CBBC6B1@DanWaters> I looked at reports for a while and decided to use Report Server in SQL Server 2008 R2. They have more features than in SQL Server 2008, and are free. So you don't have to deal with Crystal Reports licensing questions or issues. I don't have experience with this yet, nor have I used Crystal Reports. You install Report Server when you install SQL Server, or you can install Report Server at some point later. Dan -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Monday, January 24, 2011 9:50 AM To: VBA Subject: [dba-VB] Report wizard / viewer I am building databases in C# now and am reaching the point where I have to think about reports. I see the report wizard and report viewer object. Are you guys using this? Is this crystal reports in a wrapper or something? Easy, hard? Things I need to know as I start using this thing? TIA, -- John W. Colby www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Mon Jan 24 10:19:09 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 24 Jan 2011 11:19:09 -0500 Subject: [dba-VB] Report wizard / viewer In-Reply-To: <9681DFA1BEA7427DBE22EA027CBBC6B1@DanWaters> References: <4D3D9FC1.60607@colbyconsulting.com> <9681DFA1BEA7427DBE22EA027CBBC6B1@DanWaters> Message-ID: <4D3DA67D.9020203@colbyconsulting.com> This is a "canned" application that will run on a user's machine out in the world somewhere. As such whatever it does it needs to be part of the C# / .Net run-time package for the application. John W. Colby www.ColbyConsulting.com On 1/24/2011 10:55 AM, Dan Waters wrote: > I looked at reports for a while and decided to use Report Server in SQL > Server 2008 R2. They have more features than in SQL Server 2008, and are > free. So you don't have to deal with Crystal Reports licensing questions or > issues. I don't have experience with this yet, nor have I used Crystal > Reports. > > You install Report Server when you install SQL Server, or you can install > Report Server at some point later. > > Dan > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Monday, January 24, 2011 9:50 AM > To: VBA > Subject: [dba-VB] Report wizard / viewer > > I am building databases in C# now and am reaching the point where I have to > think about reports. I > see the report wizard and report viewer object. Are you guys using this? > Is this crystal reports > in a wrapper or something? Easy, hard? Things I need to know as I start > using this thing? > > TIA, > From shamil at smsconsulting.spb.ru Mon Jan 24 10:55:35 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Mon, 24 Jan 2011 19:55:35 +0300 Subject: [dba-VB] Report wizard / viewer In-Reply-To: <4D3D9FC1.60607@colbyconsulting.com> References: <4D3D9FC1.60607@colbyconsulting.com> Message-ID: Hi John -- You can use MS ReportViewer Control. It's free. But it has to be isntalled additionally to .NET Framework on client's systems. Installation takes a few seconds. Be prepared to spend some time to understand its reporting design/process - it's different from MS Access, or Crystal Reports, ... - but it's quite powerful when you'll get used to use it. To make it easy this first time your can try to make your reports' queries as powerful as possible to leave MS ReportViewer Control only rendering/totalling tasks... MS ReportViewer Control info http://gotreportviewer.com/ MS ReportViewer Control - samples http://northwind.codeplex.com/releases/view/26600 http://northwind.codeplex.com/releases/view/26600#DownloadId=192044 MS ReportViewer Control - samples - in action http://shamils-19.hosting.parking.ru/nw4/ Report Builder 3.0 info (I haven't used it yet ...) http://msdn.microsoft.com/en-us/library/dd207008.aspx Thank you. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: 24 ?????? 2011 ?. 18:50 To: VBA Subject: [dba-VB] Report wizard / viewer I am building databases in C# now and am reaching the point where I have to think about reports. I see the report wizard and report viewer object. Are you guys using this? Is this crystal reports in a wrapper or something? Easy, hard? Things I need to know as I start using this thing? TIA, -- 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 bill_patten at embarqmail.com Mon Jan 24 11:50:48 2011 From: bill_patten at embarqmail.com (Bill Patten) Date: Mon, 24 Jan 2011 09:50:48 -0800 Subject: [dba-VB] Report wizard / viewer In-Reply-To: <4D3DA67D.9020203@colbyconsulting.com> References: <4D3D9FC1.60607@colbyconsulting.com><9681DFA1BEA7427DBE22EA027CBBC6B1@DanWaters> <4D3DA67D.9020203@colbyconsulting.com> Message-ID: ?John, This site has lots of information about VS.2010 Report Viewer, I'm sure much of it applies to 2008 if that is what you are using. As Shamil, say's it is certainly different than Access but the price is right. HTH Bill -------------------------------------------------- From: "jwcolby" Sent: Monday, January 24, 2011 8:19 AM To: ; "Discussion concerning Visual Basic and related programming issues." Subject: Re: [dba-VB] Report wizard / viewer This is a "canned" application that will run on a user's machine out in the world somewhere. As such whatever it does it needs to be part of the C# / .Net run-time package for the application. John W. Colby www.ColbyConsulting.com On 1/24/2011 10:55 AM, Dan Waters wrote: > I looked at reports for a while and decided to use Report Server in SQL > Server 2008 R2. They have more features than in SQL Server 2008, and are > free. So you don't have to deal with Crystal Reports licensing questions > or > issues. I don't have experience with this yet, nor have I used Crystal > Reports. > > You install Report Server when you install SQL Server, or you can install > Report Server at some point later. > > Dan > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Monday, January 24, 2011 9:50 AM > To: VBA > Subject: [dba-VB] Report wizard / viewer > > I am building databases in C# now and am reaching the point where I have > to > think about reports. I > see the report wizard and report viewer object. Are you guys using this? > Is this crystal reports > in a wrapper or something? Easy, hard? Things I need to know as I start > using this thing? > > TIA, > _______________________________________________ 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 Tue Jan 25 10:33:14 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Tue, 25 Jan 2011 19:33:14 +0300 Subject: [dba-VB] Non-blocking loading of a DataGridview using source MS Access table with 120, 000+ rows.... Message-ID: Hi All -- I have a .NET WinForm app with a DataGridView bound to an ADO.NET dataset getting data from MS Access/JET backend table. And I'd like to have my WinForm beeing *non-blocked* while loading that DataGridView with 120,000+ rows from an MS Access backend table. I do fire DataGridView data loading via TimerControl Tick event then run it via BackgroundWorker, I do use SuspendLayout etc. still as far as I see WinForm gets blocked for several seconds: - first when dataset's rows are retrieved, - second when DataGridView gets bound to retrieved dataset. Do you know about/have you seen somewhere any tricks how to make such a large data set loading non-blocking WinForm? It's not a big issue after all - I just wanted to make it working even more smoothly than it does work now - somehow like MS Access datasheets when they load data asynchronously... Of course using 120,000+ rows for a DataGridView is a questionable solution but that's a customer requirement: that much records they get in an year (then they archive/clear backend table and start from scratch) - and filtering that 120,000+ rows when they are loading happens almost instantly - so the only issue is initial loading/refreshing - the latter doesn't happen often... Thank you. -- Shamil From Gustav at cactus.dk Wed Jan 26 04:03:24 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 26 Jan 2011 11:03:24 +0100 Subject: [dba-VB] Non-blocking loading of a DataGridview using source MS Access table with 120, 000+ rows.... Message-ID: Hi Shamil If "several seconds" is the time it takes to read the data from the Access database, it has to happen. And you do so in the background in a separate thread when you open the form and expect the form to be "live" while that happens. However, the form is dimmed or non-responsive until data has been loaded. Couldn't you try - when you open the form - to fill the DataGridView with one or few dummy records and then - when data is loaded - to switch to the real source? However, if this function is used only rarely and the retrieval only lasts for some seconds, I think I would just pop a message box: Please wait ... /gustav >>> shamil at smsconsulting.spb.ru 25-01-2011 17:33 >>> Hi All -- I have a .NET WinForm app with a DataGridView bound to an ADO.NET dataset getting data from MS Access/JET backend table. And I'd like to have my WinForm beeing *non-blocked* while loading that DataGridView with 120,000+ rows from an MS Access backend table. I do fire DataGridView data loading via TimerControl Tick event then run it via BackgroundWorker, I do use SuspendLayout etc. still as far as I see WinForm gets blocked for several seconds: - first when dataset's rows are retrieved, - second when DataGridView gets bound to retrieved dataset. Do you know about/have you seen somewhere any tricks how to make such a large data set loading non-blocking WinForm? It's not a big issue after all - I just wanted to make it working even more smoothly than it does work now - somehow like MS Access datasheets when they load data asynchronously... Of course using 120,000+ rows for a DataGridView is a questionable solution but that's a customer requirement: that much records they get in an year (then they archive/clear backend table and start from scratch) - and filtering that 120,000+ rows when they are loading happens almost instantly - so the only issue is initial loading/refreshing - the latter doesn't happen often... Thank you. -- Shamil From shamil at smsconsulting.spb.ru Wed Jan 26 05:50:23 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Wed, 26 Jan 2011 14:50:23 +0300 Subject: [dba-VB] Non-blocking loading of a DataGridview using source MSAccess table with 120, 000+ rows.... In-Reply-To: References: Message-ID: Hi Gustav -- <<< Couldn't you try - when you open the form - to fill the DataGridView with one or few dummy records and then - when data is loaded - to switch to the real source? >>> Yes, this is what I'm doing: - 1) when a tab with datagridview is activated a user sees a message: "Loading grid's data rows..."; - 2) background(Worker) thread is started, which fills (via dataAdapter) a dataset which is not yet bound to the datagridview; - 3) when thread finished asynchnously it binds datagridview to the filled dataset using boundDataSource; Note: all the time while loading happens DataGridView is invisible and it only set to visible + ResumeLayout(false) + PerformLayout() when the data gets bound. Form becomes non-responsive for a while both on step 2 and step 3. I'm not that surprised about (3) but why loading large dataset in background worker thread should block form for a while - that's unclear here... <<< However, if this function is used only rarely and the retrieval only lasts for some seconds, I think I would just pop a message box: Please wait ... >>> Yes, that what happens now - but I wanted to make it more smooth in the future if possible... 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: 26 ?????? 2011 ?. 13:03 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Non-blocking loading of a DataGridview using source MSAccess table with 120, 000+ rows.... Hi Shamil If "several seconds" is the time it takes to read the data from the Access database, it has to happen. And you do so in the background in a separate thread when you open the form and expect the form to be "live" while that happens. However, the form is dimmed or non-responsive until data has been loaded. Couldn't you try - when you open the form - to fill the DataGridView with one or few dummy records and then - when data is loaded - to switch to the real source? However, if this function is used only rarely and the retrieval only lasts for some seconds, I think I would just pop a message box: Please wait ... /gustav >>> shamil at smsconsulting.spb.ru 25-01-2011 17:33 >>> Hi All -- I have a .NET WinForm app with a DataGridView bound to an ADO.NET dataset getting data from MS Access/JET backend table. And I'd like to have my WinForm beeing *non-blocked* while loading that DataGridView with 120,000+ rows from an MS Access backend table. I do fire DataGridView data loading via TimerControl Tick event then run it via BackgroundWorker, I do use SuspendLayout etc. still as far as I see WinForm gets blocked for several seconds: - first when dataset's rows are retrieved, - second when DataGridView gets bound to retrieved dataset. Do you know about/have you seen somewhere any tricks how to make such a large data set loading non-blocking WinForm? It's not a big issue after all - I just wanted to make it working even more smoothly than it does work now - somehow like MS Access datasheets when they load data asynchronously... Of course using 120,000+ rows for a DataGridView is a questionable solution but that's a customer requirement: that much records they get in an year (then they archive/clear backend table and start from scratch) - and filtering that 120,000+ rows when they are loading happens almost instantly - so the only issue is initial loading/refreshing - the latter doesn't happen often... 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 Wed Jan 26 06:32:43 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 26 Jan 2011 13:32:43 +0100 Subject: [dba-VB] Non-blocking loading of a DataGridview using source MSAccess table with 120, 000+ rows. Message-ID: Hi Shamil As you describe it, it is exactly what I would do and expect. I have no explanation for why step 2 should set the DataGridView on hold ... /gustav >>> shamil at smsconsulting.spb.ru 26-01-2011 12:50 >>> Hi Gustav -- <<< Couldn't you try - when you open the form - to fill the DataGridView with one or few dummy records and then - when data is loaded - to switch to the real source? >>> Yes, this is what I'm doing: - 1) when a tab with datagridview is activated a user sees a message: "Loading grid's data rows..."; - 2) background(Worker) thread is started, which fills (via dataAdapter) a dataset which is not yet bound to the datagridview; - 3) when thread finished asynchnously it binds datagridview to the filled dataset using boundDataSource; Note: all the time while loading happens DataGridView is invisible and it only set to visible + ResumeLayout(false) + PerformLayout() when the data gets bound. Form becomes non-responsive for a while both on step 2 and step 3. I'm not that surprised about (3) but why loading large dataset in background worker thread should block form for a while - that's unclear here... <<< However, if this function is used only rarely and the retrieval only lasts for some seconds, I think I would just pop a message box: Please wait ... >>> Yes, that what happens now - but I wanted to make it more smooth in the future if possible... 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: 26 ?????? 2011 ?. 13:03 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Non-blocking loading of a DataGridview using source MSAccess table with 120, 000+ rows.... Hi Shamil If "several seconds" is the time it takes to read the data from the Access database, it has to happen. And you do so in the background in a separate thread when you open the form and expect the form to be "live" while that happens. However, the form is dimmed or non-responsive until data has been loaded. Couldn't you try - when you open the form - to fill the DataGridView with one or few dummy records and then - when data is loaded - to switch to the real source? However, if this function is used only rarely and the retrieval only lasts for some seconds, I think I would just pop a message box: Please wait ... /gustav >>> shamil at smsconsulting.spb.ru 25-01-2011 17:33 >>> Hi All -- I have a .NET WinForm app with a DataGridView bound to an ADO.NET dataset getting data from MS Access/JET backend table. And I'd like to have my WinForm beeing *non-blocked* while loading that DataGridView with 120,000+ rows from an MS Access backend table. I do fire DataGridView data loading via TimerControl Tick event then run it via BackgroundWorker, I do use SuspendLayout etc. still as far as I see WinForm gets blocked for several seconds: - first when dataset's rows are retrieved, - second when DataGridView gets bound to retrieved dataset. Do you know about/have you seen somewhere any tricks how to make such a large data set loading non-blocking WinForm? It's not a big issue after all - I just wanted to make it working even more smoothly than it does work now - somehow like MS Access datasheets when they load data asynchronously... Of course using 120,000+ rows for a DataGridView is a questionable solution but that's a customer requirement: that much records they get in an year (then they archive/clear backend table and start from scratch) - and filtering that 120,000+ rows when they are loading happens almost instantly - so the only issue is initial loading/refreshing - the latter doesn't happen often... Thank you. -- Shamil From michael at ddisolutions.com.au Wed Jan 26 19:39:00 2011 From: michael at ddisolutions.com.au (Michael Maddison) Date: Thu, 27 Jan 2011 12:39:00 +1100 Subject: [dba-VB] WebMatrix Anyone? Message-ID: <99266C61B516644D9727F983FAFAB4650468EE@remote.ddisolutions.com.au> This looks useful to me. What do those who do a lot of web dev think? I don't do much myself... http://www.microsoft.com/web/enter/?WT.mc_id=aff-f-us-wag-WM-Audience cheers Michael M From ebarro at roadrunner.com Wed Jan 26 20:34:06 2011 From: ebarro at roadrunner.com (Eric Barro) Date: Wed, 26 Jan 2011 18:34:06 -0800 Subject: [dba-VB] WebMatrix Anyone? In-Reply-To: <99266C61B516644D9727F983FAFAB4650468EE@remote.ddisolutions.com.au> References: <99266C61B516644D9727F983FAFAB4650468EE@remote.ddisolutions.com.au> Message-ID: <054701cbbdca$abd6b6d0$03842470$@com> This is a rehash of their original WebMatrix version 1.0 back in the .NET 1.0 days. It was the pre-cursor to VS.NET. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Michael Maddison Sent: Wednesday, January 26, 2011 5:39 PM To: Discussion concerning Visual Basic and related programming issues. Subject: [dba-VB] WebMatrix Anyone? This looks useful to me. What do those who do a lot of web dev think? I don't do much myself... http://www.microsoft.com/web/enter/?WT.mc_id=aff-f-us-wag-WM-Audience cheers Michael M _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From michael at ddisolutions.com.au Wed Jan 26 20:48:15 2011 From: michael at ddisolutions.com.au (Michael Maddison) Date: Thu, 27 Jan 2011 13:48:15 +1100 Subject: [dba-VB] WebMatrix Anyone? References: <99266C61B516644D9727F983FAFAB4650468EE@remote.ddisolutions.com.au> <054701cbbdca$abd6b6d0$03842470$@com> Message-ID: <99266C61B516644D9727F983FAFAB4650468EF@remote.ddisolutions.com.au> Yeah, I kinda remember. This is new though (I think?). It's aimed at the scripting level rather than ASP.Net I think. Has links to 41 open source CMS and other app's built in. Includes IDE support for PHP, DNN, Joomla, PayPal etc. Anyone tried Razor yet? Cheers Michael M From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Thursday, 27 January 2011 1:34 PM To: 'Discussion concerning Visual Basic and related programming issues.' Subject: Re: [dba-VB] WebMatrix Anyone? This is a rehash of their original WebMatrix version 1.0 back in the .NET 1.0 days. It was the pre-cursor to VS.NET. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Michael Maddison Sent: Wednesday, January 26, 2011 5:39 PM To: Discussion concerning Visual Basic and related programming issues. Subject: [dba-VB] WebMatrix Anyone? This looks useful to me. What do those who do a lot of web dev think? I don't do much myself... http://www.microsoft.com/web/enter/?WT.mc_id=aff-f-us-wag-WM-Audience cheers Michael M _______________________________________________ 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 ________________________________ No virus found in this message. Checked by AVG - www.avg.com Version: 10.0.1204 / Virus Database: 1435/3404 - Release Date: 01/26/11 From accessd at shaw.ca Wed Jan 26 21:03:12 2011 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 26 Jan 2011 19:03:12 -0800 Subject: [dba-VB] WebMatrix Anyone? In-Reply-To: <99266C61B516644D9727F983FAFAB4650468EE@remote.ddisolutions.com.au> References: <99266C61B516644D9727F983FAFAB4650468EE@remote.ddisolutions.com.au> Message-ID: Gasp, another program of worthy note...some more to learn. It has a 1.5 hour presentation just to introduce the app. You first. ;-) Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Michael Maddison Sent: Wednesday, January 26, 2011 5:39 PM To: Discussion concerning Visual Basic and related programming issues. Subject: [dba-VB] WebMatrix Anyone? This looks useful to me. What do those who do a lot of web dev think? I don't do much myself... http://www.microsoft.com/web/enter/?WT.mc_id=aff-f-us-wag-WM-Audience cheers Michael M _______________________________________________ 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 Thu Jan 27 06:27:35 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Thu, 27 Jan 2011 15:27:35 +0300 Subject: [dba-VB] Working on an Internet Shop - what is the usual official way to get good pictures of customers' goods for such a shop? Message-ID: <4EC4D1458C794247BAECEF4A1E93CB2D@nant> Hi All -- It's a bit off-topic but it's about ASP.NET driven Internet shop I'm working here on now. The customer is a small company, and it's its first attempt to start selling customers' goods on Internet. The current issue is to make customers' goods photos for this shop - to make them by themselves here or hire good photogrpahs - that's not possible not because of financial issues but because of the way this company sells the goods - many of them are never kept on the stores so it's not possible to make good pictures of that goods right now. And the current intention is to make this shop released ASAP: we use good "out-of-the-box" Internet shop ASP.NET solution. What is the usual official way to get that pictures? I guess that most of the well known brands (that shop is for tennis shoes, clothes, equipment...) do currently have ready to use pics for their customer goods. How to get that pictures officially? What is the usual cost for such a customers good pictures' set for one year models, for, say, Babolat, Nike, Head, ...? Thank you. -- Shamil From Gustav at cactus.dk Thu Jan 27 09:09:54 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 27 Jan 2011 16:09:54 +0100 Subject: [dba-VB] Working on an Internet Shop - what is the usual official way to get good pictures of custom Message-ID: Hi Shamil Pictures typically origin from the supplier/manufacturer as a part of his marketing support. /gustav >>> shamil at smsconsulting.spb.ru 27-01-2011 13:27 >>> Hi All -- It's a bit off-topic but it's about ASP.NET driven Internet shop I'm working here on now. The customer is a small company, and it's its first attempt to start selling customers' goods on Internet. The current issue is to make customers' goods photos for this shop - to make them by themselves here or hire good photogrpahs - that's not possible not because of financial issues but because of the way this company sells the goods - many of them are never kept on the stores so it's not possible to make good pictures of that goods right now. And the current intention is to make this shop released ASAP: we use good "out-of-the-box" Internet shop ASP.NET solution. What is the usual official way to get that pictures? I guess that most of the well known brands (that shop is for tennis shoes, clothes, equipment...) do currently have ready to use pics for their customer goods. How to get that pictures officially? What is the usual cost for such a customers good pictures' set for one year models, for, say, Babolat, Nike, Head, ...? Thank you. -- Shamil From shamil at smsconsulting.spb.ru Thu Jan 27 09:22:27 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Thu, 27 Jan 2011 18:22:27 +0300 Subject: [dba-VB] Working on an Internet Shop - what is theusual official way to get good pictures of custom In-Reply-To: References: Message-ID: <921D7A17F10347559FFF4A9F04F42B62@nant> Hi Gustav -- Thank you for your reply. When you write typically - do you mean your own experience or experience of the other developers you're contacting with there? I'm also thinking that pictures should come from supplier/manufacturer especially for official dealers - they should for the new/additional options/opportunities to get their stuff sold/distributed. But my customer doesn't have such pictures - they just have .pdf or .ppt(x) (MS PowerPoint) catalogs. These are high quality catalogs with very good pics - so the supplier/manufacturer does have all the needed for an Internet shop stuff, and that shop will sell their (supplier/manufacturer) consumer goods... Not sure how to query them to get that catalogs' source pics to use them on Internet shop... I have written a short "enquire for pics" message to Babolat international offices through their site already - we will see will they react at all.. 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: 27 ?????? 2011 ?. 18:10 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Working on an Internet Shop - what is theusual official way to get good pictures of custom Hi Shamil Pictures typically origin from the supplier/manufacturer as a part of his marketing support. /gustav >>> shamil at smsconsulting.spb.ru 27-01-2011 13:27 >>> Hi All -- It's a bit off-topic but it's about ASP.NET driven Internet shop I'm working here on now. The customer is a small company, and it's its first attempt to start selling customers' goods on Internet. The current issue is to make customers' goods photos for this shop - to make them by themselves here or hire good photogrpahs - that's not possible not because of financial issues but because of the way this company sells the goods - many of them are never kept on the stores so it's not possible to make good pictures of that goods right now. And the current intention is to make this shop released ASAP: we use good "out-of-the-box" Internet shop ASP.NET solution. What is the usual official way to get that pictures? I guess that most of the well known brands (that shop is for tennis shoes, clothes, equipment...) do currently have ready to use pics for their customer goods. How to get that pictures officially? What is the usual cost for such a customers good pictures' set for one year models, for, say, Babolat, Nike, Head, ...? 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 Thu Jan 27 09:56:31 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 27 Jan 2011 16:56:31 +0100 Subject: [dba-VB] Working on an Internet Shop - what is the usual official way to get good pictures Message-ID: Hi Shamil No detailed experience - it is just how it works. If you wish to promote a physical product you will need pack shots and/or product shots to pass out for free to any dealer interested - previously to be used in catalogues and brochures, these days for web sites. If you lack such sources, one method is to google/bing on _Pictures_ using the part number or other unique description. Quite often you succeed. /gustav >>> shamil at smsconsulting.spb.ru 27-01-2011 16:22 >>> Hi Gustav -- Thank you for your reply. When you write typically - do you mean your own experience or experience of the other developers you're contacting with there? I'm also thinking that pictures should come from supplier/manufacturer especially for official dealers - they should for the new/additional options/opportunities to get their stuff sold/distributed. But my customer doesn't have such pictures - they just have .pdf or .ppt(x) (MS PowerPoint) catalogs. These are high quality catalogs with very good pics - so the supplier/manufacturer does have all the needed for an Internet shop stuff, and that shop will sell their (supplier/manufacturer) consumer goods... Not sure how to query them to get that catalogs' source pics to use them on Internet shop... I have written a short "enquire for pics" message to Babolat international offices through their site already - we will see will they react at all.. 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: 27 ?????? 2011 ?. 18:10 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Working on an Internet Shop - what is theusual official way to get good pictures of custom Hi Shamil Pictures typically origin from the supplier/manufacturer as a part of his marketing support. /gustav >>> shamil at smsconsulting.spb.ru 27-01-2011 13:27 >>> Hi All -- It's a bit off-topic but it's about ASP.NET driven Internet shop I'm working here on now. The customer is a small company, and it's its first attempt to start selling customers' goods on Internet. The current issue is to make customers' goods photos for this shop - to make them by themselves here or hire good photogrpahs - that's not possible not because of financial issues but because of the way this company sells the goods - many of them are never kept on the stores so it's not possible to make good pictures of that goods right now. And the current intention is to make this shop released ASAP: we use good "out-of-the-box" Internet shop ASP.NET solution. What is the usual official way to get that pictures? I guess that most of the well known brands (that shop is for tennis shoes, clothes, equipment...) do currently have ready to use pics for their customer goods. How to get that pictures officially? What is the usual cost for such a customers good pictures' set for one year models, for, say, Babolat, Nike, Head, ...? Thank you. -- Shamil From shamil at smsconsulting.spb.ru Thu Jan 27 10:14:09 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Thu, 27 Jan 2011 19:14:09 +0300 Subject: [dba-VB] Working on an Internet Shop - what is theusual official way to get good pictures In-Reply-To: References: Message-ID: Hi Gustav -- Thank you for your additional notes. Searching on bing/google - yes, it's possible but - it's very time consuming - there are 1000+ phisical products positions and - (which is more important) I'm not sure that "grabbing" pics on Internet to reuse them in a custom Internet shop is a legal practice. <<< No detailed experience - it is just how it works >>> OK. We will see how my enquire for Babolat will work... I will also ask my customer to request their dealers for the physical products pics... 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: 27 ?????? 2011 ?. 18:57 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Working on an Internet Shop - what is theusual official way to get good pictures Hi Shamil No detailed experience - it is just how it works. If you wish to promote a physical product you will need pack shots and/or product shots to pass out for free to any dealer interested - previously to be used in catalogues and brochures, these days for web sites. If you lack such sources, one method is to google/bing on _Pictures_ using the part number or other unique description. Quite often you succeed. /gustav >>> shamil at smsconsulting.spb.ru 27-01-2011 16:22 >>> Hi Gustav -- Thank you for your reply. When you write typically - do you mean your own experience or experience of the other developers you're contacting with there? I'm also thinking that pictures should come from supplier/manufacturer especially for official dealers - they should for the new/additional options/opportunities to get their stuff sold/distributed. But my customer doesn't have such pictures - they just have .pdf or .ppt(x) (MS PowerPoint) catalogs. These are high quality catalogs with very good pics - so the supplier/manufacturer does have all the needed for an Internet shop stuff, and that shop will sell their (supplier/manufacturer) consumer goods... Not sure how to query them to get that catalogs' source pics to use them on Internet shop... I have written a short "enquire for pics" message to Babolat international offices through their site already - we will see will they react at all.. 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: 27 ?????? 2011 ?. 18:10 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Working on an Internet Shop - what is theusual official way to get good pictures of custom Hi Shamil Pictures typically origin from the supplier/manufacturer as a part of his marketing support. /gustav >>> shamil at smsconsulting.spb.ru 27-01-2011 13:27 >>> Hi All -- It's a bit off-topic but it's about ASP.NET driven Internet shop I'm working here on now. The customer is a small company, and it's its first attempt to start selling customers' goods on Internet. The current issue is to make customers' goods photos for this shop - to make them by themselves here or hire good photogrpahs - that's not possible not because of financial issues but because of the way this company sells the goods - many of them are never kept on the stores so it's not possible to make good pictures of that goods right now. And the current intention is to make this shop released ASAP: we use good "out-of-the-box" Internet shop ASP.NET solution. What is the usual official way to get that pictures? I guess that most of the well known brands (that shop is for tennis shoes, clothes, equipment...) do currently have ready to use pics for their customer goods. How to get that pictures officially? What is the usual cost for such a customers good pictures' set for one year models, for, say, Babolat, Nike, Head, ...? Thank you. -- Shamil _______________________________________________ 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 Thu Jan 27 16:30:15 2011 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 27 Jan 2011 14:30:15 -0800 Subject: [dba-VB] Working on an Internet Shop - what is the usual official way to get good pictures of customers' goods for such a shop? In-Reply-To: <4EC4D1458C794247BAECEF4A1E93CB2D@nant> References: <4EC4D1458C794247BAECEF4A1E93CB2D@nant> Message-ID: <809ABB7E718A4876AEA74C8D8C8B1FED@creativesystemdesigns.com> Hi Shamil: The customers I have, I put them incharge of supplying the pictures...and therefore any copyrights issues are their concerns. I will do picture hunting but the time will cost. Also any picture retouching, of which I do a lot of, is also billable time. One client atually had me go around his store and photograph everything...I brought in a photo backdrop and the lights and the camera and it took almost a week to do 150 products... It would have been cheaper to get in a professional, but they were concerned with copyright issues and as I were putting the items on their new web site anyways, it was a lot easier for them. I think there is no issues with pulling product pictures off a manufacture's web site as after all you are selling their products and as long as they are given appropriate credit there should not be any issues. When downloading pictures from Microsoft's sites, for the DBA web site, their official stance was that they were copyrighted but unofficially they said help yourself as long as you are using the picture to advertise our products and are given us the appropriate credit. If you are using Professional Photographers pictures, that have been put up for sale and are generally tagged with copyright, that is a whole different set of negotiations and costing...one that the company will have to incurr. Note: An artist's (photographer as well) right of ownership to their art can never be removed. For example: A company may buy pictures for a particular web site or advertising campaign but no matter what their contract says the photographer still retains the ultimate rights to any further usage. HTH Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Thursday, January 27, 2011 4:28 AM To: 'Discussion concerning Visual Basic and related programming issues.' Subject: [dba-VB] Working on an Internet Shop - what is the usual official way to get good pictures of customers' goods for such a shop? Hi All -- It's a bit off-topic but it's about ASP.NET driven Internet shop I'm working here on now. The customer is a small company, and it's its first attempt to start selling customers' goods on Internet. The current issue is to make customers' goods photos for this shop - to make them by themselves here or hire good photogrpahs - that's not possible not because of financial issues but because of the way this company sells the goods - many of them are never kept on the stores so it's not possible to make good pictures of that goods right now. And the current intention is to make this shop released ASAP: we use good "out-of-the-box" Internet shop ASP.NET solution. What is the usual official way to get that pictures? I guess that most of the well known brands (that shop is for tennis shoes, clothes, equipment...) do currently have ready to use pics for their customer goods. How to get that pictures officially? What is the usual cost for such a customers good pictures' set for one year models, for, say, Babolat, Nike, Head, ...? Thank you. -- Shamil _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From shamil at smsconsulting.spb.ru Thu Jan 27 18:37:51 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Fri, 28 Jan 2011 03:37:51 +0300 Subject: [dba-VB] Working on an Internet Shop - what is the usualofficial way to get good pictures of customers' goods forsuch a shop? In-Reply-To: <809ABB7E718A4876AEA74C8D8C8B1FED@creativesystemdesigns.com> References: <4EC4D1458C794247BAECEF4A1E93CB2D@nant> <809ABB7E718A4876AEA74C8D8C8B1FED@creativesystemdesigns.com> Message-ID: Hi Jim -- Thank you for your feedback. <<< The customers I have, I put them in charge of supplying the pictures...and therefore any copyrights issues are their concerns. >>> Yes, this is what I've tried to do first of all but it takes "ages" for the customer to get that pictures ready (not yet) - so I have started to look for "workaround" quicker alternatives... Thank you. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: 28 ?????? 2011 ?. 1:30 To: 'Discussion concerning Visual Basic and related programming issues.' Subject: Re: [dba-VB] Working on an Internet Shop - what is the usualofficial way to get good pictures of customers' goods forsuch a shop? Hi Shamil: The customers I have, I put them incharge of supplying the pictures...and therefore any copyrights issues are their concerns. I will do picture hunting but the time will cost. Also any picture retouching, of which I do a lot of, is also billable time. One client atually had me go around his store and photograph everything...I brought in a photo backdrop and the lights and the camera and it took almost a week to do 150 products... It would have been cheaper to get in a professional, but they were concerned with copyright issues and as I were putting the items on their new web site anyways, it was a lot easier for them. I think there is no issues with pulling product pictures off a manufacture's web site as after all you are selling their products and as long as they are given appropriate credit there should not be any issues. When downloading pictures from Microsoft's sites, for the DBA web site, their official stance was that they were copyrighted but unofficially they said help yourself as long as you are using the picture to advertise our products and are given us the appropriate credit. If you are using Professional Photographers pictures, that have been put up for sale and are generally tagged with copyright, that is a whole different set of negotiations and costing...one that the company will have to incurr. Note: An artist's (photographer as well) right of ownership to their art can never be removed. For example: A company may buy pictures for a particular web site or advertising campaign but no matter what their contract says the photographer still retains the ultimate rights to any further usage. HTH Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Thursday, January 27, 2011 4:28 AM To: 'Discussion concerning Visual Basic and related programming issues.' Subject: [dba-VB] Working on an Internet Shop - what is the usual official way to get good pictures of customers' goods for such a shop? Hi All -- It's a bit off-topic but it's about ASP.NET driven Internet shop I'm working here on now. The customer is a small company, and it's its first attempt to start selling customers' goods on Internet. The current issue is to make customers' goods photos for this shop - to make them by themselves here or hire good photogrpahs - that's not possible not because of financial issues but because of the way this company sells the goods - many of them are never kept on the stores so it's not possible to make good pictures of that goods right now. And the current intention is to make this shop released ASAP: we use good "out-of-the-box" Internet shop ASP.NET solution. What is the usual official way to get that pictures? I guess that most of the well known brands (that shop is for tennis shoes, clothes, equipment...) do currently have ready to use pics for their customer goods. How to get that pictures officially? What is the usual cost for such a customers good pictures' set for one year models, for, say, Babolat, Nike, Head, ...? 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 marklbreen at gmail.com Fri Jan 28 03:41:09 2011 From: marklbreen at gmail.com (Mark Breen) Date: Fri, 28 Jan 2011 09:41:09 +0000 Subject: [dba-VB] Working on an Internet Shop - what is the usual official way to get good pictures of customers' goods for such a shop? In-Reply-To: <4EC4D1458C794247BAECEF4A1E93CB2D@nant> References: <4EC4D1458C794247BAECEF4A1E93CB2D@nant> Message-ID: Hello Shamil, It might not be useful, but for free photo's take a look at http://sxc.hu/ I was just told about it yesterday thanks Mark On 27 January 2011 12:27, Shamil Salakhetdinov wrote: > Hi All -- > > It's a bit off-topic but it's about ASP.NET driven Internet shop I'm > working > here on now. > The customer is a small company, and it's its first attempt to start > selling > customers' goods on Internet. > The current issue is to make customers' goods photos for this shop - to > make > them by themselves here or hire good photogrpahs - that's not possible not > because of financial issues but because of the way this company sells the > goods - many of them are never kept on the stores so it's not possible to > make good pictures of that goods right now. And the current intention is to > make this shop released ASAP: we use good "out-of-the-box" Internet shop > ASP.NET solution. > > What is the usual official way to get that pictures? > I guess that most of the well known brands (that shop is for tennis shoes, > clothes, equipment...) do currently have ready to use pics for their > customer goods. > How to get that pictures officially? > What is the usual cost for such a customers good pictures' set for one year > models, for, say, Babolat, Nike, Head, ...? > > 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 Sun Jan 30 09:59:50 2011 From: gustav at cactus.dk (Gustav Brock) Date: Sun, 30 Jan 2011 16:59:50 +0100 Subject: [dba-VB] Localizing Silverlight Business Application Message-ID: Hi all I had a lot of trouble adding dynamic culture selection to a Silverlight Business Application. But by combining info from these links I finally succeeded: http://johnlivingstontech.blogspot.com/2010/02/localizing-resources-in-silverlight.html http://msdn.microsoft.com/en-us/library/dd941931(v=vs.95).aspx http://blogs.msdn.com/b/brada/archive/2010/03/22/silverlight-4-ria-services-ready-for-business-localizing-business-application.aspx The missing task which left the login labels untouched, was to add the localized resx files from the web project "as link" to the Web\Resources folder of the main project. This way all text for labels, error messages, tool tips, etc. are kept in separate resx files. Further, select a language in the combobox and the language changes instantaneously. Great! /gustav From jwcolby at colbyconsulting.com Sun Jan 30 15:53:36 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sun, 30 Jan 2011 16:53:36 -0500 Subject: [dba-VB] Hamachi VPN information Message-ID: <4D45DDE0.3060409@colbyconsulting.com> I use Hamachi a lot. I am trying to set up Hamachi VPNs specific to client groups, IOW a VPN for Lenoir Prison Ministry, a VPN for Forgiven Ministry, a group for FSN Hope, a group for C2DbInternal etc. What I did not really understand is that there are actually three types of networks. I am going to cut and paste the definitions from Hamachi's page just so that you can see what they have to say. http://help.logmein.com/SelfServiceSearchResults?kw=hub+and+spoke&product=lmihamachi2&sr=0 http://help.logmein.com/SelfServiceKnowledgeRenderer?type=Documentation&id=kA130000000Lu1YCAS&search=1&kw=hub%20and%20spoke * Gateway virtual networking: Provide remote users with secure access to your private network/LAN, including the resources on it, from a centralized LogMeIn Hamachi? gateway, without modifying firewalls or network routers. * Hub-and-spoke virtual networking: Provide remote users with secure access to specific resources on your network, from any location, without modifying firewalls or network routers. * Mesh networking: Connect all of your network clients to each other. Quickly and easily create a simple, virtual, mesh network that allows remote machines to directly connect to each other, thereby giving users basic network access to all the network resources they need. So, I wanted a private network for each client. I wanted a hub and spoke for each client because both of the other types (mesh and gateway) allow all computers to see each other. In most cases, these clients are a group of people who really don't want each other to see their shares etc. If you create a network from a client (as I did) instead of from the Hamachi Web page, then you automatically create a mesh network. Once you create a network from a client, I have never found a way to "connect" or subscribe that network into your online network management page. Bad news. So think carefully about the future and consider doing all of your network management from the web page. Essentially you create an Hamachi account which you can log in to. Once you do that you can create networks from that page, then send emails to people with invitations to join your networks. You get to "approve" the subscriptions. Because I had created all of my networks from the client on my laptop, they were all "mesh" networks, and everyone could see everyone. Even worse the visibility extended out of the network to other networks. Even worse than that, I started getting echos between the networks. IOW, because mu computer belonged to each of the mesg networks I would ping computers and get many different ping echos. If you are ever going to do a single network then fine (maybe) build it from one of the Hamachi clients. However if you ever anticipate doing multiple networks as I am doing, do yourself a favor and start from the Web page and always create your networks from there. -- John W. Colby www.ColbyConsulting.com From shamil at smsconsulting.spb.ru Sun Jan 30 18:23:45 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Mon, 31 Jan 2011 03:23:45 +0300 Subject: [dba-VB] Mercurial vs. SVN Message-ID: Hi All -- Does SVN support "ignore list" as Mercurial does? (I wanted to exclude binaries and some other files from add/commit batch without going through all of added/updated items manually every time on commit). I do use Tortoise SVN v.1.4.5, and I do not see "ignore list feature" - does Tortoise SVN 1.4.7 support this feature? Or can I define ignore list somehow else when working with SVN? Thank you. -- Shamil From shamil at smsconsulting.spb.ru Sun Jan 30 19:22:12 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Mon, 31 Jan 2011 04:22:12 +0300 Subject: [dba-VB] Localizing Silverlight Business Application In-Reply-To: References: Message-ID: <2C3D300F73144E6AA37430916F1F20EB@nant> Hi Gustav -- Thank you for your note. I'm not sure I will use SIlverLight in the development real soon but who knows... Do you use SilverLight "hard way" or via LightSwitch? 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: 30 ?????? 2011 ?. 19:00 To: dba-vb at databaseadvisors.com Subject: [dba-VB] Localizing Silverlight Business Application Hi all I had a lot of trouble adding dynamic culture selection to a Silverlight Business Application. But by combining info from these links I finally succeeded: http://johnlivingstontech.blogspot.com/2010/02/localizing-resources-in-silve rlight.html http://msdn.microsoft.com/en-us/library/dd941931(v=vs.95).aspx http://blogs.msdn.com/b/brada/archive/2010/03/22/silverlight-4-ria-services- ready-for-business-localizing-business-application.aspx The missing task which left the login labels untouched, was to add the localized resx files from the web project "as link" to the Web\Resources folder of the main project. This way all text for labels, error messages, tool tips, etc. are kept in separate resx files. Further, select a language in the combobox and the language changes instantaneously. Great! /gustav _______________________________________________ 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 Mon Jan 31 02:43:27 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 31 Jan 2011 09:43:27 +0100 Subject: [dba-VB] Mercurial vs. SVN Message-ID: Hi Shamil That's a very old version, current version is 1.6.something. The trick is the Shift key. From the help file: Hold the Shift key to get the extended context menu and select TortoiseSVN and Delete (keep local) to mark the file/folder for deletion from the repository without losing the local copy. /gustav >>> shamil at smsconsulting.spb.ru 31-01-2011 01:23 >>> Hi All -- Does SVN support "ignore list" as Mercurial does? (I wanted to exclude binaries and some other files from add/commit batch without going through all of added/updated items manually every time on commit). I do use Tortoise SVN v.1.4.5, and I do not see "ignore list feature" - does Tortoise SVN 1.4.7 support this feature? Or can I define ignore list somehow else when working with SVN? Thank you. -- Shamil From Gustav at cactus.dk Mon Jan 31 02:59:52 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 31 Jan 2011 09:59:52 +0100 Subject: [dba-VB] Localizing Silverlight Business Application Message-ID: Hi Shamil Yes, I have a small project where I would use Silverlight straight, also to gain some knowledge for programming to Windows Phone 7 - we just got our Samsung Omnia 7 last week to replace the seven year old Sony-Ericsson T610 which have served extremely well. I located a book: Pro Business Applications with Silverlight 4 by Chris Anderson http://apress.com/book/view/9781430272076 to obtain some support. /gustav >>> shamil at smsconsulting.spb.ru 31-01-2011 02:22 >>> Hi Gustav -- Thank you for your note. I'm not sure I will use SIlverLight in the development real soon but who knows... Do you use SilverLight "hard way" or via LightSwitch? 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: 30 ?????? 2011 ?. 19:00 To: dba-vb at databaseadvisors.com Subject: [dba-VB] Localizing Silverlight Business Application Hi all I had a lot of trouble adding dynamic culture selection to a Silverlight Business Application. But by combining info from these links I finally succeeded: http://johnlivingstontech.blogspot.com/2010/02/localizing-resources-in-silverlight.html http://msdn.microsoft.com/en-us/library/dd941931(v=vs.95).aspx http://blogs.msdn.com/b/brada/archive/2010/03/22/silverlight-4-ria-services-ready-for-business-localizing-business-application.aspx The missing task which left the login labels untouched, was to add the localized resx files from the web project "as link" to the Web\Resources folder of the main project. This way all text for labels, error messages, tool tips, etc. are kept in separate resx files. Further, select a language in the combobox and the language changes instantaneously. Great! /gustav From shamil at smsconsulting.spb.ru Mon Jan 31 05:33:29 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Mon, 31 Jan 2011 14:33:29 +0300 Subject: [dba-VB] Localizing Silverlight Business Application In-Reply-To: References: Message-ID: <438E214CF58F4A2492FD6F7C26AA8E19@nant> Hi Gustav -- Thank you for your additional notes on Silverlight and Windiows Phone 7. BTW, I have checked Samsung Omnia 7 seems to be available here to - it costs USD700: 1) it doesn't have EMS - no problem; 2) it doesn't support memory cards - shoudln't be an issue - it has 8GB of memory installed; -- Does Windows Phone 7 support MS SQL Server CE? What software is additionally needed to develop for Silverlight 4 using VS2010? Do you expect that Windows Phone 7 may become one of the main parts of your custom software development business in the near future? Not easy question I know, you can skip it :) 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: 31 ?????? 2011 ?. 12:00 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Localizing Silverlight Business Application Hi Shamil Yes, I have a small project where I would use Silverlight straight, also to gain some knowledge for programming to Windows Phone 7 - we just got our Samsung Omnia 7 last week to replace the seven year old Sony-Ericsson T610 which have served extremely well. I located a book: Pro Business Applications with Silverlight 4 by Chris Anderson http://apress.com/book/view/9781430272076 to obtain some support. /gustav >>> shamil at smsconsulting.spb.ru 31-01-2011 02:22 >>> Hi Gustav -- Thank you for your note. I'm not sure I will use SIlverLight in the development real soon but who knows... Do you use SilverLight "hard way" or via LightSwitch? 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: 30 ?????? 2011 ?. 19:00 To: dba-vb at databaseadvisors.com Subject: [dba-VB] Localizing Silverlight Business Application Hi all I had a lot of trouble adding dynamic culture selection to a Silverlight Business Application. But by combining info from these links I finally succeeded: http://johnlivingstontech.blogspot.com/2010/02/localizing-resources-in-silve rlight.html http://msdn.microsoft.com/en-us/library/dd941931(v=vs.95).aspx http://blogs.msdn.com/b/brada/archive/2010/03/22/silverlight-4-ria-services- ready-for-business-localizing-business-application.aspx The missing task which left the login labels untouched, was to add the localized resx files from the web project "as link" to the Web\Resources folder of the main project. This way all text for labels, error messages, tool tips, etc. are kept in separate resx files. Further, select a language in the combobox and the language changes instantaneously. Great! /gustav _______________________________________________ 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 Mon Jan 31 05:48:22 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Mon, 31 Jan 2011 14:48:22 +0300 Subject: [dba-VB] Mercurial vs. SVN In-Reply-To: References: Message-ID: Hi Gustav -- Thank you for your note. I should probably install newer version. But the one I have does support the feature of ignoring/making local individual files (filenames patterns) and *whole* folders. That is useful but that's not what I'm looking for/what exists in Mercurial it has more powerful feature to keep ignore list. BTW, SVN does inform that it added file/folder to the ignore list - is it possible to edit that list manually? If yes, where it's located? - I can find it - maybe you just know it from memory/used it: in Mercurial I usually just have a generic ignore list, which I'm putting in every new repository I create and then I'm adding specific files/filenames templates to that ignore list. Gustav, it's not a big issue - I can find my way using SVN via command lines - mainly wondering if I can skip making a batch which will use command line interface of SVN to "clean-up" local repository from some files/folders before committing it... BTW, https://bitbucket.org/ has an option of free unlimited code repositories up to 5 users... I haven't used it yet but I do plan to put all my important source code mirrored there in private code repository... 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: 31 ?????? 2011 ?. 11:43 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Mercurial vs. SVN Hi Shamil That's a very old version, current version is 1.6.something. The trick is the Shift key. From the help file: Hold the Shift key to get the extended context menu and select TortoiseSVN and Delete (keep local) to mark the file/folder for deletion from the repository without losing the local copy. /gustav >>> shamil at smsconsulting.spb.ru 31-01-2011 01:23 >>> Hi All -- Does SVN support "ignore list" as Mercurial does? (I wanted to exclude binaries and some other files from add/commit batch without going through all of added/updated items manually every time on commit). I do use Tortoise SVN v.1.4.5, and I do not see "ignore list feature" - does Tortoise SVN 1.4.7 support this feature? Or can I define ignore list somehow else when working with SVN? 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 Mon Jan 31 08:47:37 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 31 Jan 2011 15:47:37 +0100 Subject: [dba-VB] Mercurial vs. SVN Message-ID: Hi Shamil I don't know about these details of TortoiseSVN - I just used it for the Northwind project and never had any trouble - and stayed off the command line. Thanks for the tip (for Mercurial hosting) at bitbucket. However, I think I stay with TortoiseSVN and/or VisualSVN as they have worked fine for me. /gustav >>> shamil at smsconsulting.spb.ru 31-01-2011 12:48 >>> Hi Gustav -- Thank you for your note. I should probably install newer version. But the one I have does support the feature of ignoring/making local individual files (filenames patterns) and *whole* folders. That is useful but that's not what I'm looking for/what exists in Mercurial it has more powerful feature to keep ignore list. BTW, SVN does inform that it added file/folder to the ignore list - is it possible to edit that list manually? If yes, where it's located? - I can find it - maybe you just know it from memory/used it: in Mercurial I usually just have a generic ignore list, which I'm putting in every new repository I create and then I'm adding specific files/filenames templates to that ignore list. Gustav, it's not a big issue - I can find my way using SVN via command lines - mainly wondering if I can skip making a batch which will use command line interface of SVN to "clean-up" local repository from some files/folders before committing it... BTW, https://bitbucket.org/ has an option of free unlimited code repositories up to 5 users... I haven't used it yet but I do plan to put all my important source code mirrored there in private code repository... 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: 31 ?????? 2011 ?. 11:43 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Mercurial vs. SVN Hi Shamil That's a very old version, current version is 1.6.something. The trick is the Shift key. From the help file: Hold the Shift key to get the extended context menu and select TortoiseSVN and Delete (keep local) to mark the file/folder for deletion from the repository without losing the local copy. /gustav >>> shamil at smsconsulting.spb.ru 31-01-2011 01:23 >>> Hi All -- Does SVN support "ignore list" as Mercurial does? (I wanted to exclude binaries and some other files from add/commit batch without going through all of added/updated items manually every time on commit). I do use Tortoise SVN v.1.4.5, and I do not see "ignore list feature" - does Tortoise SVN 1.4.7 support this feature? Or can I define ignore list somehow else when working with SVN? Thank you. -- Shamil From Gustav at cactus.dk Mon Jan 31 09:07:30 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 31 Jan 2011 16:07:30 +0100 Subject: [dba-VB] Localizing Silverlight Business Application Message-ID: Hi Shamil No, WP7 does not support databases - you set up a service for data communication. That's one of the things I wish to check out. As for development software, start here: Getting Started with Windows Phone Development http://msdn.microsoft.com/en-us/library/ff402529(v=vs.92).aspx and visit the download page: Installing Windows Phone Developer Tools http://msdn.microsoft.com/en-us/library/ff402530(v=vs.92).aspx Code Samples for Windows Phone http://msdn.microsoft.com/en-us/library/ff431744(v=vs.92).aspx Windows Phone 7 Design Guidelines * Cheat Sheet http://blogs.msdn.com/b/silverlight_sdk/archive/2011/01/07/windows-phone-7-design-guidelines-cheat-sheet.aspx Also: How to Use the Windows Phone Connect Tool http://msdn.microsoft.com/en-us/library/gg180729(v=VS.92).aspx /gustav >>> shamil at smsconsulting.spb.ru 31-01-2011 12:33 >>> Hi Gustav -- Thank you for your additional notes on Silverlight and Windiows Phone 7. BTW, I have checked Samsung Omnia 7 seems to be available here to - it costs USD700: 1) it doesn't have EMS - no problem; 2) it doesn't support memory cards - shoudln't be an issue - it has 8GB of memory installed; -- Does Windows Phone 7 support MS SQL Server CE? What software is additionally needed to develop for Silverlight 4 using VS2010? Do you expect that Windows Phone 7 may become one of the main parts of your custom software development business in the near future? Not easy question I know, you can skip it :) Thank you. -- Shamil From shamil at smsconsulting.spb.ru Mon Jan 31 12:00:41 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Mon, 31 Jan 2011 21:00:41 +0300 Subject: [dba-VB] Localizing Silverlight Business Application In-Reply-To: References: Message-ID: <546CF087491E4AF89EC2591F8E693CA6@nant> Hi Gustav -- Thank you for the additional information and the links you have provided - I will use them for Windows Phone 7 "must have" set of links first place. And I guess Windows Phone 7 Developer Tools do have Windows Phone 7 Device simulator running under VS2010 when debugging/testing? 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: 31 ?????? 2011 ?. 18:08 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Localizing Silverlight Business Application Hi Shamil No, WP7 does not support databases - you set up a service for data communication. That's one of the things I wish to check out. As for development software, start here: Getting Started with Windows Phone Development http://msdn.microsoft.com/en-us/library/ff402529(v=vs.92).aspx and visit the download page: Installing Windows Phone Developer Tools http://msdn.microsoft.com/en-us/library/ff402530(v=vs.92).aspx Code Samples for Windows Phone http://msdn.microsoft.com/en-us/library/ff431744(v=vs.92).aspx Windows Phone 7 Design Guidelines * Cheat Sheet http://blogs.msdn.com/b/silverlight_sdk/archive/2011/01/07/windows-phone-7-d esign-guidelines-cheat-sheet.aspx Also: How to Use the Windows Phone Connect Tool http://msdn.microsoft.com/en-us/library/gg180729(v=VS.92).aspx /gustav >>> shamil at smsconsulting.spb.ru 31-01-2011 12:33 >>> Hi Gustav -- Thank you for your additional notes on Silverlight and Windiows Phone 7. BTW, I have checked Samsung Omnia 7 seems to be available here to - it costs USD700: 1) it doesn't have EMS - no problem; 2) it doesn't support memory cards - shoudln't be an issue - it has 8GB of memory installed; -- Does Windows Phone 7 support MS SQL Server CE? What software is additionally needed to develop for Silverlight 4 using VS2010? Do you expect that Windows Phone 7 may become one of the main parts of your custom software development business in the near future? Not easy question I know, you can skip 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 Mon Jan 31 12:19:52 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 31 Jan 2011 19:19:52 +0100 Subject: [dba-VB] Localizing Silverlight Business Application Message-ID: Hi Shamil Well, to some degree and probably for you and me. However, for media applications you may need the Windows Phone Connect Tool and a physical phone as I understand it (not tested by me). /gustav >>> shamil at smsconsulting.spb.ru 31-01-2011 19:00 >>> Hi Gustav -- Thank you for the additional information and the links you have provided - I will use them for Windows Phone 7 "must have" set of links first place. And I guess Windows Phone 7 Developer Tools do have Windows Phone 7 Device simulator running under VS2010 when debugging/testing? 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: 31 ?????? 2011 ?. 18:08 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Localizing Silverlight Business Application Hi Shamil No, WP7 does not support databases - you set up a service for data communication. That's one of the things I wish to check out. As for development software, start here: Getting Started with Windows Phone Development http://msdn.microsoft.com/en-us/library/ff402529(v=vs.92).aspx and visit the download page: Installing Windows Phone Developer Tools http://msdn.microsoft.com/en-us/library/ff402530(v=vs.92).aspx Code Samples for Windows Phone http://msdn.microsoft.com/en-us/library/ff431744(v=vs.92).aspx Windows Phone 7 Design Guidelines * Cheat Sheet http://blogs.msdn.com/b/silverlight_sdk/archive/2011/01/07/windows-phone-7-d esign-guidelines-cheat-sheet.aspx Also: How to Use the Windows Phone Connect Tool http://msdn.microsoft.com/en-us/library/gg180729(v=VS.92).aspx /gustav From shamil at smsconsulting.spb.ru Mon Jan 31 12:26:09 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Mon, 31 Jan 2011 21:26:09 +0300 Subject: [dba-VB] Localizing Silverlight Business Application In-Reply-To: References: Message-ID: <85D74A02917E458C862D28B12BD21AF6@nant> Hi Gustav -- Do Silverlight 4 applications need to use Windows Phone Connect Tool or Silverlight applications can be run locally in debug mode (with database backend used via a Web Service as you noted). Does Windows Phone support WinForms at all? Or all Windows Phone 7 apps run within Silverlight "shell"? (<- Sorry that question may sound silly...) BTW, here is ScottGu's link blog entry on Windows Phone 7 Developers tools: http://weblogs.asp.net/scottgu/archive/2010/09/16/windows-phone-7-developer- tools-released.aspx 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: 31 ?????? 2011 ?. 21:20 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Localizing Silverlight Business Application Hi Shamil Well, to some degree and probably for you and me. However, for media applications you may need the Windows Phone Connect Tool and a physical phone as I understand it (not tested by me). /gustav >>> shamil at smsconsulting.spb.ru 31-01-2011 19:00 >>> Hi Gustav -- Thank you for the additional information and the links you have provided - I will use them for Windows Phone 7 "must have" set of links first place. And I guess Windows Phone 7 Developer Tools do have Windows Phone 7 Device simulator running under VS2010 when debugging/testing? 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: 31 ?????? 2011 ?. 18:08 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Localizing Silverlight Business Application Hi Shamil No, WP7 does not support databases - you set up a service for data communication. That's one of the things I wish to check out. As for development software, start here: Getting Started with Windows Phone Development http://msdn.microsoft.com/en-us/library/ff402529(v=vs.92).aspx and visit the download page: Installing Windows Phone Developer Tools http://msdn.microsoft.com/en-us/library/ff402530(v=vs.92).aspx Code Samples for Windows Phone http://msdn.microsoft.com/en-us/library/ff431744(v=vs.92).aspx Windows Phone 7 Design Guidelines * Cheat Sheet http://blogs.msdn.com/b/silverlight_sdk/archive/2011/01/07/windows-phone-7-d esign-guidelines-cheat-sheet.aspx Also: How to Use the Windows Phone Connect Tool http://msdn.microsoft.com/en-us/library/gg180729(v=VS.92).aspx /gustav _______________________________________________ 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 Mon Jan 31 12:31:54 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Mon, 31 Jan 2011 21:31:54 +0300 Subject: [dba-VB] Mercurial vs. SVN In-Reply-To: References: Message-ID: <9931D85A29A94CD39BBB795EFA3DB088@nant> Hi Gustav -- OK. tryig to use this info here http://stackoverflow.com/questions/85353/best-general-svn-ignore-pattern still not sure how to make it working properly - tried via SVN->[Properties] but it somehow didn't work well... As for SVN and Mercurial and Northwind.CodePlex.com - I'm going to "cross" them: - I do use Mercurial locally but - in the next release on codeplex I do plan to commit Mercuarial repository entries within source code, so the one who uses SVN - will use it, then one who use Mercurial - will use it. That's a plan. I do not see why it can break. I could be missing something. I do plan to make a new "crossed" release on Northwind.codeplex.com this week. 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: 31 ?????? 2011 ?. 17:48 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Mercurial vs. SVN Hi Shamil I don't know about these details of TortoiseSVN - I just used it for the Northwind project and never had any trouble - and stayed off the command line. Thanks for the tip (for Mercurial hosting) at bitbucket. However, I think I stay with TortoiseSVN and/or VisualSVN as they have worked fine for me. /gustav >>> shamil at smsconsulting.spb.ru 31-01-2011 12:48 >>> Hi Gustav -- Thank you for your note. I should probably install newer version. But the one I have does support the feature of ignoring/making local individual files (filenames patterns) and *whole* folders. That is useful but that's not what I'm looking for/what exists in Mercurial it has more powerful feature to keep ignore list. BTW, SVN does inform that it added file/folder to the ignore list - is it possible to edit that list manually? If yes, where it's located? - I can find it - maybe you just know it from memory/used it: in Mercurial I usually just have a generic ignore list, which I'm putting in every new repository I create and then I'm adding specific files/filenames templates to that ignore list. Gustav, it's not a big issue - I can find my way using SVN via command lines - mainly wondering if I can skip making a batch which will use command line interface of SVN to "clean-up" local repository from some files/folders before committing it... BTW, https://bitbucket.org/ has an option of free unlimited code repositories up to 5 users... I haven't used it yet but I do plan to put all my important source code mirrored there in private code repository... 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: 31 ?????? 2011 ?. 11:43 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Mercurial vs. SVN Hi Shamil That's a very old version, current version is 1.6.something. The trick is the Shift key. From the help file: Hold the Shift key to get the extended context menu and select TortoiseSVN and Delete (keep local) to mark the file/folder for deletion from the repository without losing the local copy. /gustav >>> shamil at smsconsulting.spb.ru 31-01-2011 01:23 >>> Hi All -- Does SVN support "ignore list" as Mercurial does? (I wanted to exclude binaries and some other files from add/commit batch without going through all of added/updated items manually every time on commit). I do use Tortoise SVN v.1.4.5, and I do not see "ignore list feature" - does Tortoise SVN 1.4.7 support this feature? Or can I define ignore list somehow else when working with SVN? 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 Mon Jan 31 14:55:34 2011 From: gustav at cactus.dk (Gustav Brock) Date: Mon, 31 Jan 2011 21:55:34 +0100 Subject: [dba-VB] Localizing Silverlight Business Application Message-ID: Hi Shamil The Phone Connect is only needed for running apps that stream video and the like. I have no specifics, sorry. WP7 apps are Silverlight only for "normal" apps or XNA for games and highly graphic apps. No WinForms. Thanks for the link. That seems relevant to study. Scott Gu is a good presenter. /gustav >>> shamil at smsconsulting.spb.ru 31-01-2011 19:26 >>> Hi Gustav -- Do Silverlight 4 applications need to use Windows Phone Connect Tool or Silverlight applications can be run locally in debug mode (with database backend used via a Web Service as you noted). Does Windows Phone support WinForms at all? Or all Windows Phone 7 apps run within Silverlight "shell"? (<- Sorry that question may sound silly...) BTW, here is ScottGu's link blog entry on Windows Phone 7 Developers tools: http://weblogs.asp.net/scottgu/archive/2010/09/16/windows-phone-7-developer-tools-released.aspx 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: 31 ?????? 2011 ?. 21:20 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Localizing Silverlight Business Application Hi Shamil Well, to some degree and probably for you and me. However, for media applications you may need the Windows Phone Connect Tool and a physical phone as I understand it (not tested by me). /gustav >>> shamil at smsconsulting.spb.ru 31-01-2011 19:00 >>> Hi Gustav -- Thank you for the additional information and the links you have provided - I will use them for Windows Phone 7 "must have" set of links first place. And I guess Windows Phone 7 Developer Tools do have Windows Phone 7 Device simulator running under VS2010 when debugging/testing? 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: 31 ?????? 2011 ?. 18:08 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Localizing Silverlight Business Application Hi Shamil No, WP7 does not support databases - you set up a service for data communication. That's one of the things I wish to check out. As for development software, start here: Getting Started with Windows Phone Development http://msdn.microsoft.com/en-us/library/ff402529(v=vs.92).aspx and visit the download page: Installing Windows Phone Developer Tools http://msdn.microsoft.com/en-us/library/ff402530(v=vs.92).aspx Code Samples for Windows Phone http://msdn.microsoft.com/en-us/library/ff431744(v=vs.92).aspx Windows Phone 7 Design Guidelines * Cheat Sheet http://blogs.msdn.com/b/silverlight_sdk/archive/2011/01/07/windows-phone-7-design-guidelines-cheat-sheet.aspx Also: How to Use the Windows Phone Connect Tool http://msdn.microsoft.com/en-us/library/gg180729(v=VS.92).aspx /gustav From gustav at cactus.dk Mon Jan 31 15:05:02 2011 From: gustav at cactus.dk (Gustav Brock) Date: Mon, 31 Jan 2011 22:05:02 +0100 Subject: [dba-VB] Mercurial vs. SVN Message-ID: Hi Shamil That's beyond my experience. I only have had to exclude a few files (after they were created) and that worked fine. The patterns, I think, try to exclude files before creation. /gustav >>> shamil at smsconsulting.spb.ru 31-01-2011 19:31 >>> Hi Gustav -- OK. tryig to use this info here http://stackoverflow.com/questions/85353/best-general-svn-ignore-pattern still not sure how to make it working properly - tried via SVN->[Properties] but it somehow didn't work well... As for SVN and Mercurial and Northwind.CodePlex.com - I'm going to "cross" them: - I do use Mercurial locally but - in the next release on codeplex I do plan to commit Mercuarial repository entries within source code, so the one who uses SVN - will use it, then one who use Mercurial - will use it. That's a plan. I do not see why it can break. I could be missing something. I do plan to make a new "crossed" release on Northwind.codeplex.com this week. 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: 31 ?????? 2011 ?. 17:48 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Mercurial vs. SVN Hi Shamil I don't know about these details of TortoiseSVN - I just used it for the Northwind project and never had any trouble - and stayed off the command line. Thanks for the tip (for Mercurial hosting) at bitbucket. However, I think I stay with TortoiseSVN and/or VisualSVN as they have worked fine for me. /gustav >>> shamil at smsconsulting.spb.ru 31-01-2011 12:48 >>> Hi Gustav -- Thank you for your note. I should probably install newer version. But the one I have does support the feature of ignoring/making local individual files (filenames patterns) and *whole* folders. That is useful but that's not what I'm looking for/what exists in Mercurial it has more powerful feature to keep ignore list. BTW, SVN does inform that it added file/folder to the ignore list - is it possible to edit that list manually? If yes, where it's located? - I can find it - maybe you just know it from memory/used it: in Mercurial I usually just have a generic ignore list, which I'm putting in every new repository I create and then I'm adding specific files/filenames templates to that ignore list. Gustav, it's not a big issue - I can find my way using SVN via command lines - mainly wondering if I can skip making a batch which will use command line interface of SVN to "clean-up" local repository from some files/folders before committing it... BTW, https://bitbucket.org/ has an option of free unlimited code repositories up to 5 users... I haven't used it yet but I do plan to put all my important source code mirrored there in private code repository... 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: 31 ?????? 2011 ?. 11:43 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Mercurial vs. SVN Hi Shamil That's a very old version, current version is 1.6.something. The trick is the Shift key. From the help file: Hold the Shift key to get the extended context menu and select TortoiseSVN and Delete (keep local) to mark the file/folder for deletion from the repository without losing the local copy. /gustav >>> shamil at smsconsulting.spb.ru 31-01-2011 01:23 >>> Hi All -- Does SVN support "ignore list" as Mercurial does? (I wanted to exclude binaries and some other files from add/commit batch without going through all of added/updated items manually every time on commit). I do use Tortoise SVN v.1.4.5, and I do not see "ignore list feature" - does Tortoise SVN 1.4.7 support this feature? Or can I define ignore list somehow else when working with SVN? Thank you. -- Shamil From shamil at smsconsulting.spb.ru Mon Jan 31 18:08:44 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Tue, 1 Feb 2011 03:08:44 +0300 Subject: [dba-VB] Localizing Silverlight Business Application In-Reply-To: References: Message-ID: <9DD1A698D5A34EE5A52E0B9F7B01B992@nant> Hi Gustav -- I'm looking here for Windows Phone 7 OS features (it's not your device - just because I have found interesting review for Win Phone 7 OS and apps on this page) http://www.amazon.com/HTC-hd7-t-mobile-htc-locked/product-reviews/B004B3KANO /ref=dp_top_cm_cr_acr_txt?ie=UTF8&showViewpoints=1 Here is one excerpt: "The built in applications like Office let you view/edit word documents, view/edit excel documents, view powerpoint presentations, view/edit onenote, outlook - view your email from multiple providers - hotmail, google, yahoo, any email provider - very intuitive and easy to use interface. Internet Explorer - optimized and is a really good browser now; pinch to zoom and scrolling in internet explorer works perfectly, loading pages is excellent and fast - no real faults at all with the new internet explorer. Music/Videos player is basically the zune interface - beautiful; manages all your videos and music here and if you have a zune pass you can listen to your music from right here - this works in the background too and you can play games and surf the web using this application in the background. " Sounds useful. But this is what I'm not sure I'm understanding properly: "- No multitasking for third party apps - we need the ability to multi-task and choose what we want running in the background. Some apps really do need multitasking. " What third party apps are they talking about? SIlverlight custom apps do come loaded from Internet - right? If so - once loaded they block all the other apps? Sounds strange. Or do they mean custom XNA apps? Thank you. -- Shamil 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: 31 ?????? 2011 ?. 23:56 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Localizing Silverlight Business Application Hi Shamil The Phone Connect is only needed for running apps that stream video and the like. I have no specifics, sorry. WP7 apps are Silverlight only for "normal" apps or XNA for games and highly graphic apps. No WinForms. Thanks for the link. That seems relevant to study. Scott Gu is a good presenter. /gustav >>> shamil at smsconsulting.spb.ru 31-01-2011 19:26 >>> Hi Gustav -- Do Silverlight 4 applications need to use Windows Phone Connect Tool or Silverlight applications can be run locally in debug mode (with database backend used via a Web Service as you noted). Does Windows Phone support WinForms at all? Or all Windows Phone 7 apps run within Silverlight "shell"? (<- Sorry that question may sound silly...) BTW, here is ScottGu's link blog entry on Windows Phone 7 Developers tools: http://weblogs.asp.net/scottgu/archive/2010/09/16/windows-phone-7-developer- tools-released.aspx 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: 31 ?????? 2011 ?. 21:20 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Localizing Silverlight Business Application Hi Shamil Well, to some degree and probably for you and me. However, for media applications you may need the Windows Phone Connect Tool and a physical phone as I understand it (not tested by me). /gustav >>> shamil at smsconsulting.spb.ru 31-01-2011 19:00 >>> Hi Gustav -- Thank you for the additional information and the links you have provided - I will use them for Windows Phone 7 "must have" set of links first place. And I guess Windows Phone 7 Developer Tools do have Windows Phone 7 Device simulator running under VS2010 when debugging/testing? 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: 31 ?????? 2011 ?. 18:08 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Localizing Silverlight Business Application Hi Shamil No, WP7 does not support databases - you set up a service for data communication. That's one of the things I wish to check out. As for development software, start here: Getting Started with Windows Phone Development http://msdn.microsoft.com/en-us/library/ff402529(v=vs.92).aspx and visit the download page: Installing Windows Phone Developer Tools http://msdn.microsoft.com/en-us/library/ff402530(v=vs.92).aspx Code Samples for Windows Phone http://msdn.microsoft.com/en-us/library/ff431744(v=vs.92).aspx Windows Phone 7 Design Guidelines * Cheat Sheet http://blogs.msdn.com/b/silverlight_sdk/archive/2011/01/07/windows-phone-7-d esign-guidelines-cheat-sheet.aspx Also: How to Use the Windows Phone Connect Tool http://msdn.microsoft.com/en-us/library/gg180729(v=VS.92).aspx /gustav _______________________________________________ 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 Mon Jan 31 18:56:27 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Tue, 1 Feb 2011 03:56:27 +0300 Subject: [dba-VB] ASP.NET app's web design Message-ID: <062E05BFD6C84E1AA345CFA7955C369C@nant> Hi All -- I wanted to ask three questions to the list members who has made some graphics/knows well (at least in theory) what tools and principles are involved in that graphics design process: - 1) Is there any inexpensive graphic design tools, which allow to create designs as the following? (assumption that graphics designer is able to imagine and make such design is given by default and is not the subject of my questions) http://shamils-23.hosting.parking.ru/Prototype/ (Must have for such a tool should be a feature to make layered design built from several graphical components as well as the feature of setting transparent background for given color, drawing gradients but there is no need in that many fancy and cute features one can find in ADOBE Photoshop - just a set of feature to support development of simple and elegant Web 2.0 designs - that is required...) - 2) When such design is created is it completely manual work to convert it into a (set of) .css + graphics + .html? - 3) Do you see a lot of graphics will go into .css + graphics + .html from such a design or most of it can be presented by just .css + .html4 (maybe .html5)? (I do assume here that photos of the consumer good products are not the part of the design, as well as shadows, which can be ignore while porting graphic design from .psd into .css + .html if they are not part of photos)... - 4) Do you suppose that the referred above design can be made without HTML tables - by using
+ .css + as little as possible graphics? Thank you. -- Shamil From jwcolby at colbyconsulting.com Sun Jan 2 14:06:39 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sun, 02 Jan 2011 15:06:39 -0500 Subject: [dba-VB] A Sneaky, Subtle Price Increase | Overclockers Message-ID: <4D20DACF.1010107@colbyconsulting.com> http://www.overclockers.com/a-sneaky-subtle-price-increase/ -- John W. Colby www.ColbyConsulting.com From jwcolby at colbyconsulting.com Sun Jan 2 14:58:23 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sun, 02 Jan 2011 15:58:23 -0500 Subject: [dba-VB] A Sneaky, Subtle Price Increase | Overclockers In-Reply-To: <4D20DACF.1010107@colbyconsulting.com> References: <4D20DACF.1010107@colbyconsulting.com> Message-ID: <4D20E6EF.1020800@colbyconsulting.com> So sneaky they are still warning us 6 years later... 8( John W. Colby www.ColbyConsulting.com On 1/2/2011 3:06 PM, jwcolby wrote: > http://www.overclockers.com/a-sneaky-subtle-price-increase/ > > From shamil at smsconsulting.spb.ru Wed Jan 5 07:15:15 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Wed, 5 Jan 2011 16:15:15 +0300 Subject: [dba-VB] FYI: EF Code First CTP5 Message-ID: <9DC97BD82AA542F297C26482B27D669F@nant> Hi All -- FYI: EF Code First CTP5 http://www.infoq.com/news/2010/12/ef-ctp5 http://weblogs.asp.net/manavi/default.aspx Thank you. -- Shamil From Gustav at cactus.dk Wed Jan 5 08:41:30 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 05 Jan 2011 15:41:30 +0100 Subject: [dba-VB] Moving to .Net, ASP.NET web applications, and the Entity Framework Message-ID: Hi all A step-by-step intro for everyone, and this may be a bit optimistic but still: Build a Data-Driven Enterprise Web Site in 5 Minutes http://msdn.microsoft.com/da-dk/magazine/gg535665(en-us).aspx If this should interest you, please subscribe to our dba-VB list. /gustav From jwcolby at colbyconsulting.com Wed Jan 5 12:00:15 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 05 Jan 2011 13:00:15 -0500 Subject: [dba-VB] SQL Server security Message-ID: <4D24B1AF.3090800@colbyconsulting.com> I am having performance issues in a largish Access application, a Disability Insurance Claim call center app. I have one particular table which is not huge in terms of field count but it does have a lot of records and most of the fields are indexed, and it has about 800K records in it. This table holds "contact" info, as in phone calls that the users have. They document every "contact" with every one, claimants, doctors, lawyers, etc. into a memo field and also date of call, ClaimID FK, employee id FK, contact type id FK etc. Kind of a mini center of the universe for this application. The result is that people are storing new records in this table constantly throughout the day and we are getting a lot of "record locked..." issues caused by (AFAICT) the time it takes Jet to store the records and update all of the indexes, and probably the memo storage area of the mdb. Just to give a picture, this one table has been moved out to it's own mdb and that mdb is about 700 megabytes after a compact. Most of the rest of the database (150 tables) is in another mdb and after compact that database is 800 megabytes, so this one table is close to as big as the rest of the db. I do not have experience in a transactional database using SQL Server, but I am thinking that SQL Server express 2005 will not have an issue keeping up with this kind of usage - 25 users adding records to this table all day without causing locking issues like I am seeing now. My issue at this point is that they use a network logon and force the users to change their password every 30 days. Is SQL Server going to use that same network username / password database or does it use a list of usernames / passwords physically on the server itself? IOW will Windows authentication work or will I need to go to SQL Server username / password? -- John W. Colby www.ColbyConsulting.com From davidmcafee at gmail.com Wed Jan 5 12:21:15 2011 From: davidmcafee at gmail.com (David McAfee) Date: Wed, 5 Jan 2011 10:21:15 -0800 Subject: [dba-VB] SQL Server security In-Reply-To: <4D24B1AF.3090800@colbyconsulting.com> References: <4D24B1AF.3090800@colbyconsulting.com> Message-ID: You can choose either path. I tend to use SQL Server security myself. A better question is maybe looking at the design of the table for the contact info. I tend to design all data changes as insertions. Vary rarely to I allow a table to be edited. I display the contact information on just about every screen, but only give to choice to edit (if they have rights) when it is indeed needed. I never have locking issues in Access or SQL. D On Wed, Jan 5, 2011 at 10:00 AM, jwcolby wrote: > I am having performance issues in a largish Access application, a > Disability Insurance Claim call center app. > > I have one particular table which is not huge in terms of field count but > it does have a lot of records and most of the fields are indexed, and it has > about 800K records in it. This table holds "contact" info, as in phone > calls that the users have. They document every "contact" with every one, > claimants, doctors, lawyers, etc. into a memo field and also date of call, > ClaimID FK, employee id FK, contact type id FK etc. Kind of a mini center > of the universe for this application. > > The result is that people are storing new records in this table constantly > throughout the day and we are getting a lot of "record locked..." issues > caused by (AFAICT) the time it takes Jet to store the records and update all > of the indexes, and probably the memo storage area of the mdb. > > Just to give a picture, this one table has been moved out to it's own mdb > and that mdb is about 700 megabytes after a compact. Most of the rest of > the database (150 tables) is in another mdb and after compact that database > is 800 megabytes, so this one table is close to as big as the rest of the > db. > > I do not have experience in a transactional database using SQL Server, but > I am thinking that SQL Server express 2005 will not have an issue keeping up > with this kind of usage - 25 users adding records to this table all day > without causing locking issues like I am seeing now. > > My issue at this point is that they use a network logon and force the users > to change their password every 30 days. Is SQL Server going to use that > same network username / password database or does it use a list of usernames > / passwords physically on the server itself? IOW will Windows > authentication work or will I need to go to SQL Server username / password? > > -- > John W. Colby > www.ColbyConsulting.com > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From jwcolby at colbyconsulting.com Wed Jan 5 12:45:01 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 05 Jan 2011 13:45:01 -0500 Subject: [dba-VB] SQL Server security In-Reply-To: References: <4D24B1AF.3090800@colbyconsulting.com> Message-ID: <4D24BC2D.2050907@colbyconsulting.com> This is not contact info as in Name / address / phone, it is a place to enter information about telephone (mostly) contacts with everyone that the call center people talk to. It is primarily a memo field (because they often write pages of notes) with a hand full of FKs and a few date fields. These are primarily new records (inserts) but there are edits of existing records. There are about 800 THOUSAND of these records and hundreds a day added. John W. Colby www.ColbyConsulting.com On 1/5/2011 1:21 PM, David McAfee wrote: > You can choose either path. I tend to use SQL Server security myself. > > A better question is maybe looking at the design of the table for the > contact info. > > I tend to design all data changes as insertions. Vary rarely to I allow a > table to be edited. > > I display the contact information on just about every screen, but only give > to choice to edit (if they have rights) when it is indeed needed. > > I never have locking issues in Access or SQL. > > D > > On Wed, Jan 5, 2011 at 10:00 AM, jwcolbywrote: > >> I am having performance issues in a largish Access application, a >> Disability Insurance Claim call center app. >> >> I have one particular table which is not huge in terms of field count but >> it does have a lot of records and most of the fields are indexed, and it has >> about 800K records in it. This table holds "contact" info, as in phone >> calls that the users have. They document every "contact" with every one, >> claimants, doctors, lawyers, etc. into a memo field and also date of call, >> ClaimID FK, employee id FK, contact type id FK etc. Kind of a mini center >> of the universe for this application. >> >> The result is that people are storing new records in this table constantly >> throughout the day and we are getting a lot of "record locked..." issues >> caused by (AFAICT) the time it takes Jet to store the records and update all >> of the indexes, and probably the memo storage area of the mdb. >> >> Just to give a picture, this one table has been moved out to it's own mdb >> and that mdb is about 700 megabytes after a compact. Most of the rest of >> the database (150 tables) is in another mdb and after compact that database >> is 800 megabytes, so this one table is close to as big as the rest of the >> db. >> >> I do not have experience in a transactional database using SQL Server, but >> I am thinking that SQL Server express 2005 will not have an issue keeping up >> with this kind of usage - 25 users adding records to this table all day >> without causing locking issues like I am seeing now. >> >> My issue at this point is that they use a network logon and force the users >> to change their password every 30 days. Is SQL Server going to use that >> same network username / password database or does it use a list of usernames >> / passwords physically on the server itself? IOW will Windows >> authentication work or will I need to go to SQL Server username / password? >> >> -- >> 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 fhtapia at gmail.com Wed Jan 5 13:41:23 2011 From: fhtapia at gmail.com (Francisco Tapia) Date: Wed, 5 Jan 2011 11:41:23 -0800 Subject: [dba-VB] SQL Server security In-Reply-To: <4D24B1AF.3090800@colbyconsulting.com> References: <4D24B1AF.3090800@colbyconsulting.com> Message-ID: -Francisco http://bit.ly/sqlthis | Tsql and More... On Wed, Jan 5, 2011 at 10:00 AM, jwcolby wrote: > > I do not have experience in a transactional database using SQL Server, but > I am thinking that SQL Server express 2005 will not have an issue keeping up > with this kind of usage - 25 users adding records to this table all day > without causing locking issues like I am seeing now. > It's been a while since I did a conversion, I don't remember if you need to make all your fields varchar or nvarchar, but that's the gist. I remember also going unbound to simplify the data entry process, but ymmv with that piece of advise. We have SQL Server running in the backend for many of our transactional systems and we have > than 25 users all w/o locking problems. My issue at this point is that they use a network logon and force the users > to change their password every 30 days. Is SQL Server going to use that > same network username / password database or does it use a list of usernames > / passwords physically on the server itself? IOW will Windows > authentication work or will I need to go to SQL Server username / password? Windows Authentication will work just fine. To simplify the user to server problem, you'd want the network admin to add your users who have access to the application to a specific domain group... then just give access to the domain group. You can even put security around who has access to what based on domain group, works a treat. If you have too much difficulty with that you can always fall back to sql authentication, but I always prefer windows authentication except for the web apps we have... From michael at mattysconsulting.com Wed Jan 5 13:53:38 2011 From: michael at mattysconsulting.com (Michael Mattys) Date: Wed, 5 Jan 2011 14:53:38 -0500 Subject: [dba-VB] Moving to .Net, ASP.NET web applications, and the Entity Framework In-Reply-To: References: Message-ID: Hi Gustav / All I made the site, but found that, even after I made sure that I was running in .Net Framework 4, the Display(Name ...) mechanism doesn't work. Did you try this? Michael R Mattys Business Process Developers www.mattysconsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, January 05, 2011 9:42 AM To: accessd at databaseadvisors.com; dba-vb at databaseadvisors.com Subject: [dba-VB] Moving to .Net, ASP.NET web applications,and the Entity Framework Hi all A step-by-step intro for everyone, and this may be a bit optimistic but still: Build a Data-Driven Enterprise Web Site in 5 Minutes http://msdn.microsoft.com/da-dk/magazine/gg535665(en-us).aspx If this should interest you, please subscribe to our dba-VB list. /gustav _______________________________________________ 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 Jan 5 15:01:19 2011 From: gustav at cactus.dk (Gustav Brock) Date: Wed, 05 Jan 2011 22:01:19 +0100 Subject: [dba-VB] Moving to .Net, ASP.NET web applications, and the Entity Framework Message-ID: Hi Michael No I haven't tried to build the site. Maybe I can have a look in the weekend. /gustav >>> "Michael Mattys" 05-01-2011 20:53 >>> Hi Gustav / All I made the site, but found that, even after I made sure that I was running in .Net Framework 4, the Display(Name ...) mechanism doesn't work. Did you try this? Michael R Mattys Business Process Developers www.mattysconsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, January 05, 2011 9:42 AM To: accessd at databaseadvisors.com; dba-vb at databaseadvisors.com Subject: [dba-VB] Moving to .Net, ASP.NET web applications,and the Entity Framework Hi all A step-by-step intro for everyone, and this may be a bit optimistic but still: Build a Data-Driven Enterprise Web Site in 5 Minutes http://msdn.microsoft.com/da-dk/magazine/gg535665(en-us).aspx If this should interest you, please subscribe to our dba-VB list. /gustav From shamil at smsconsulting.spb.ru Wed Jan 5 15:47:44 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Thu, 6 Jan 2011 00:47:44 +0300 Subject: [dba-VB] Moving to .Net, ASP.NET web applications, and the Entity Framework In-Reply-To: References: Message-ID: Hi Michael -- [Display(Name = ....] gives CS0592: Attribute 'Display' is not valid on this declaration type. It is only valid on 'method, property, indexer, field, param' declarations. [DisplayName(....] works well. Thank you. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Michael Mattys Sent: 5 ?????? 2011 ?. 22:54 To: 'Discussion concerning Visual Basic and related programming issues.' Subject: Re: [dba-VB] Moving to .Net, ASP.NET web applications,and the Entity Framework Hi Gustav / All I made the site, but found that, even after I made sure that I was running in .Net Framework 4, the Display(Name ...) mechanism doesn't work. Did you try this? Michael R Mattys Business Process Developers www.mattysconsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, January 05, 2011 9:42 AM To: accessd at databaseadvisors.com; dba-vb at databaseadvisors.com Subject: [dba-VB] Moving to .Net, ASP.NET web applications,and the Entity Framework Hi all A step-by-step intro for everyone, and this may be a bit optimistic but still: Build a Data-Driven Enterprise Web Site in 5 Minutes http://msdn.microsoft.com/da-dk/magazine/gg535665(en-us).aspx If this should interest you, please subscribe to our dba-VB list. /gustav From michael at mattysconsulting.com Wed Jan 5 20:55:51 2011 From: michael at mattysconsulting.com (Michael Mattys) Date: Wed, 5 Jan 2011 21:55:51 -0500 Subject: [dba-VB] Moving to .Net, ASP.NET web applications, and the Entity Framework In-Reply-To: References: Message-ID: <0FFE4C308D6D4A30BEE3C5635FDB7E65@Gateway> Thanks, Shamil! Michael R Mattys Business Process Developers www.mattysconsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Wednesday, January 05, 2011 4:48 PM To: 'Discussion concerning Visual Basic and related programming issues.' Subject: Re: [dba-VB] Moving to .Net, ASP.NET web applications,and the Entity Framework Hi Michael -- [Display(Name = ....] gives CS0592: Attribute 'Display' is not valid on this declaration type. It is only valid on 'method, property, indexer, field, param' declarations. [DisplayName(....] works well. Thank you. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Michael Mattys Sent: 5 ?????? 2011 ?. 22:54 To: 'Discussion concerning Visual Basic and related programming issues.' Subject: Re: [dba-VB] Moving to .Net, ASP.NET web applications,and the Entity Framework Hi Gustav / All I made the site, but found that, even after I made sure that I was running in .Net Framework 4, the Display(Name ...) mechanism doesn't work. Did you try this? Michael R Mattys Business Process Developers www.mattysconsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, January 05, 2011 9:42 AM To: accessd at databaseadvisors.com; dba-vb at databaseadvisors.com Subject: [dba-VB] Moving to .Net, ASP.NET web applications,and the Entity Framework Hi all A step-by-step intro for everyone, and this may be a bit optimistic but still: Build a Data-Driven Enterprise Web Site in 5 Minutes http://msdn.microsoft.com/da-dk/magazine/gg535665(en-us).aspx If this should interest you, please subscribe to our dba-VB list. /gustav _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From paul.hartland at googlemail.com Wed Jan 5 23:15:51 2011 From: paul.hartland at googlemail.com (Paul Hartland) Date: Thu, 6 Jan 2011 05:15:51 +0000 Subject: [dba-VB] SQL Server security In-Reply-To: <4D24B1AF.3090800@colbyconsulting.com> References: <4D24B1AF.3090800@colbyconsulting.com> Message-ID: John, I remember we had a similar problem at my old company many years back, especially with one table. Our simple solution (which surprised me that it worked) was to add two fields to the table a TimeStamp field and a UniqueIdentifier field (think those are the names of the datatypes in SQL). You could try that first. Paul On 5 January 2011 18:00, jwcolby wrote: > I am having performance issues in a largish Access application, a > Disability Insurance Claim call center app. > > I have one particular table which is not huge in terms of field count but > it does have a lot of records and most of the fields are indexed, and it has > about 800K records in it. This table holds "contact" info, as in phone > calls that the users have. They document every "contact" with every one, > claimants, doctors, lawyers, etc. into a memo field and also date of call, > ClaimID FK, employee id FK, contact type id FK etc. Kind of a mini center > of the universe for this application. > > The result is that people are storing new records in this table constantly > throughout the day and we are getting a lot of "record locked..." issues > caused by (AFAICT) the time it takes Jet to store the records and update all > of the indexes, and probably the memo storage area of the mdb. > > Just to give a picture, this one table has been moved out to it's own mdb > and that mdb is about 700 megabytes after a compact. Most of the rest of > the database (150 tables) is in another mdb and after compact that database > is 800 megabytes, so this one table is close to as big as the rest of the > db. > > I do not have experience in a transactional database using SQL Server, but > I am thinking that SQL Server express 2005 will not have an issue keeping up > with this kind of usage - 25 users adding records to this table all day > without causing locking issues like I am seeing now. > > My issue at this point is that they use a network logon and force the users > to change their password every 30 days. Is SQL Server going to use that > same network username / password database or does it use a list of usernames > / passwords physically on the server itself? IOW will Windows > authentication work or will I need to go to SQL Server username / password? > > -- > 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 > > -- Paul Hartland paul.hartland at googlemail.com From marklbreen at gmail.com Thu Jan 6 03:10:37 2011 From: marklbreen at gmail.com (Mark Breen) Date: Thu, 6 Jan 2011 09:10:37 +0000 Subject: [dba-VB] SQL Server security In-Reply-To: <4D24B1AF.3090800@colbyconsulting.com> References: <4D24B1AF.3090800@colbyconsulting.com> Message-ID: Hello John, I had an almost exact issue about three months ago. It was a call centre with about 25 - 40 agents on the phone with an Access App. When they upgraded to Access 2007, the whole application ground to a halt. I did some basic checking but could find no single issue, so I downgraded them again to Access 2000 FE and BE and immediately all was ok again. Any help? thanks Mark On 5 January 2011 18:00, jwcolby wrote: > I am having performance issues in a largish Access application, a > Disability Insurance Claim call center app. > > I have one particular table which is not huge in terms of field count but > it does have a lot of records and most of the fields are indexed, and it has > about 800K records in it. This table holds "contact" info, as in phone > calls that the users have. They document every "contact" with every one, > claimants, doctors, lawyers, etc. into a memo field and also date of call, > ClaimID FK, employee id FK, contact type id FK etc. Kind of a mini center > of the universe for this application. > > The result is that people are storing new records in this table constantly > throughout the day and we are getting a lot of "record locked..." issues > caused by (AFAICT) the time it takes Jet to store the records and update all > of the indexes, and probably the memo storage area of the mdb. > > Just to give a picture, this one table has been moved out to it's own mdb > and that mdb is about 700 megabytes after a compact. Most of the rest of > the database (150 tables) is in another mdb and after compact that database > is 800 megabytes, so this one table is close to as big as the rest of the > db. > > I do not have experience in a transactional database using SQL Server, but > I am thinking that SQL Server express 2005 will not have an issue keeping up > with this kind of usage - 25 users adding records to this table all day > without causing locking issues like I am seeing now. > > My issue at this point is that they use a network logon and force the users > to change their password every 30 days. Is SQL Server going to use that > same network username / password database or does it use a list of usernames > / passwords physically on the server itself? IOW will Windows > authentication work or will I need to go to SQL Server username / password? > > -- > John W. Colby > www.ColbyConsulting.com > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From jwcolby at colbyconsulting.com Thu Jan 6 05:14:49 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 06 Jan 2011 06:14:49 -0500 Subject: [dba-VB] SQL Server security In-Reply-To: References: <4D24B1AF.3090800@colbyconsulting.com> Message-ID: <4D25A429.5030609@colbyconsulting.com> This app has been in use since I developed the initial iteration many years ago. It is still at Access 2000. John W. Colby www.ColbyConsulting.com On 1/6/2011 4:10 AM, Mark Breen wrote: > Hello John, > > I had an almost exact issue about three months ago. It was a call centre > with about 25 - 40 agents on the phone with an Access App. > > When they upgraded to Access 2007, the whole application ground to a halt. > > I did some basic checking but could find no single issue, so I downgraded > them again to Access 2000 FE and BE and immediately all was ok again. > > Any help? > > thanks > > Mark > > > > On 5 January 2011 18:00, jwcolby wrote: > >> I am having performance issues in a largish Access application, a >> Disability Insurance Claim call center app. >> >> I have one particular table which is not huge in terms of field count but >> it does have a lot of records and most of the fields are indexed, and it has >> about 800K records in it. This table holds "contact" info, as in phone >> calls that the users have. They document every "contact" with every one, >> claimants, doctors, lawyers, etc. into a memo field and also date of call, >> ClaimID FK, employee id FK, contact type id FK etc. Kind of a mini center >> of the universe for this application. >> >> The result is that people are storing new records in this table constantly >> throughout the day and we are getting a lot of "record locked..." issues >> caused by (AFAICT) the time it takes Jet to store the records and update all >> of the indexes, and probably the memo storage area of the mdb. >> >> Just to give a picture, this one table has been moved out to it's own mdb >> and that mdb is about 700 megabytes after a compact. Most of the rest of >> the database (150 tables) is in another mdb and after compact that database >> is 800 megabytes, so this one table is close to as big as the rest of the >> db. >> >> I do not have experience in a transactional database using SQL Server, but >> I am thinking that SQL Server express 2005 will not have an issue keeping up >> with this kind of usage - 25 users adding records to this table all day >> without causing locking issues like I am seeing now. >> >> My issue at this point is that they use a network logon and force the users >> to change their password every 30 days. Is SQL Server going to use that >> same network username / password database or does it use a list of usernames >> / passwords physically on the server itself? IOW will Windows >> authentication work or will I need to go to SQL Server username / password? >> >> -- >> 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 Fri Jan 7 23:01:31 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 08 Jan 2011 00:01:31 -0500 Subject: [dba-VB] Access - link to SQL database -Database not showing Message-ID: <4D27EFAB.5040200@colbyconsulting.com> I have installed SQL Server 2005 on a (remote) Windows 2000 server machine at the client. From my workstation at the client I then open SQL Server MSExpress 2005 and I can see that SQL Server Express instance and two databases that I created on that SQL Server Express instance. From Access I try to link to a table in one of those databases. When I get to the wizard page where I am allowed to change the default database, I cannot see either of the two databases that I need to get at, only the master, msdb and tempdb. I was having a problem where I could not connect and had to open the surface configuration and allow remote connections. I selected TCP AND named pipes. That allowed MSE to see that server as well as Access to see that server, but it does not yet allow me to see the actual database of interest. Any clue why? I have done this before here at my office and I could always see the databases. TIA, -- John W. Colby www.ColbyConsulting.com From jwcolby at colbyconsulting.com Fri Jan 7 23:06:11 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 08 Jan 2011 00:06:11 -0500 Subject: [dba-VB] Further to "can's see SQL Server database... Message-ID: <4D27F0C3.2030206@colbyconsulting.com> I went back in with MSE and looked at that server. While I can see the databases of interest, if I click on them and try to see the tables inside, I get an error "the database DISCO is not available" and the plus symbol in front of the database disappears. So I can see that the db exists but not actually access it (from my workstation). I can see and open the database from MSE on the server itself. Is this an ownership / rights kind of issue? I am not getting an actual error number from my workstation, just an "not available" generic kind of message. If it is ownership / rights, how do I go about discovering how to fix it? -- John W. Colby www.ColbyConsulting.com From marklbreen at gmail.com Sat Jan 8 09:34:58 2011 From: marklbreen at gmail.com (Mark Breen) Date: Sat, 8 Jan 2011 15:34:58 +0000 Subject: [dba-VB] Further to "can's see SQL Server database... In-Reply-To: <4D27F0C3.2030206@colbyconsulting.com> References: <4D27F0C3.2030206@colbyconsulting.com> Message-ID: Hello John, In this case, I would like to know whether there is a database corruption issue or a connectivity. What about quickly creating a new db names testconn and see if you can connect to that. If it works and disco does not, then quickly check the db mappings from the properties dialog box. If you are mapped and you think that you should be able to see it, then maybe the db is corrupt. A few things to do are, stop and start the server, then refresh the branch and check again. Detach and re-attach the db and see if it helps Start thinking about a restore is that any help? I have seen ghost db's hang around but usually the three-step dance of stop start services, reboot, delete again etc will remove it. HTH Mark On 8 January 2011 05:06, jwcolby wrote: > I went back in with MSE and looked at that server. While I can see the > databases of interest, if I click on them and try to see the tables inside, > I get an error "the database DISCO is not available" and the plus symbol in > front of the database disappears. > > So I can see that the db exists but not actually access it (from my > workstation). > > I can see and open the database from MSE on the server itself. > > Is this an ownership / rights kind of issue? I am not getting an actual > error number from my workstation, just an "not available" generic kind of > message. > > If it is ownership / rights, how do I go about discovering how to fix it? > > -- > John W. Colby > www.ColbyConsulting.com > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From jwcolby at colbyconsulting.com Sat Jan 8 10:49:13 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 08 Jan 2011 11:49:13 -0500 Subject: [dba-VB] Further to "can's see SQL Server database... In-Reply-To: References: <4D27F0C3.2030206@colbyconsulting.com> Message-ID: <4D289589.2020503@colbyconsulting.com> Thanks for the response Mark. The server is called DiscoSvr and is a Windows 2000 x32 server, with 4G ram. It has Office (and Access) 2000 installed. It resides on a network at my client where they have between 40 and 50 workstations on the network, about 25 of which use the Access database. The network consists of two segments physically located in two immediately adjacent wings of a small office building They have a switch in one building and everyone in that building (two floors) ties into that switch, with a single gb line running over to the second wing and into the server room. The second wing has it's own switch and a wire that ties into the same switch as the gb line from the first building, from there into the server. *Probably* none of that is relevant but that is the layout. The client runs about 25 workstations scattered throughout the two wings of the building into DiscoSvr which acts as the file server for the DISCO database. Everyone (including my workstation) is able to get into DISCO running on DiscoSvr so physical access is not the issue, and physical file access rights are not the issue. I have a handful of FEs linked to about 5 different Access BEs. One of these BEs is the one of interest here and has a single tblClaimContact with a memo field to hold details of any kind of contact, mostly phone. The user types into this memo field paragraphs or even pages of details of phone conversations with every single person they have a phone conversation with. This table has just under 800K records and the Access BE that holds this table is about 700Megs after a compact. It is this one table that I am trying to create a SQL Server Express 2005 database for and a table in that database. SQL Server 2008 will not install on a Windows 2000 OS so I installed SQL Server 2005 Express on the system, using the Admin user of DISCO Server. As that Admin user and SSMS Express 2005 I can see the server, and create databases etc. Once I was able to do all of this with the Admin directly on the server I switched to my workstation and started trying from there. I installed SMSS 2005 Express on my workstation and could then see the database. Originally I could not even see the new server. I had to go back to DiscoSvr as an admin, run the surface config wizard and allow remote access using named pipes (not sure if I even need that) and TCP. I did stop and restart the SQLServer Express service, though I did not reboot the server. Back at my workstation I can now see the new server and browse the databases and can see and physically open the admin databases, see the tables etc, all from my workstation. I tried but I was unable to use the Access upsize wizard because it did not want to see the SQL Server 2005 express instance, from Access 2000 running right on DiscoSvr. I assumed that the issue was Access 2000 not understanding SQL Server 2005 or something. Given that the upsize wizard was giving me the ever helpful one word error message, I stopped that avenue. So I went into SSMS Express and I created a database locally basically using the import data tool from inside of sql server, telling it the source was an Access database. It created the table but failed to import the data. Since both of those failed, I then zipped the BE and moved it to my office server where I happened to have SQL Server Express 2005 installed as well as Office (and Access) 2003. Once I did that I was able to use Access 2003 upsize wizard to create a database and a table and upsize the data. I backed up the database, zipped the backup, uploaded that back to DISCOSvr and uses SSMS Express there to restore the database. SSMSE can see the database, can open the table etc. DIRECTLY FROM DiscoSvr as the admin user. Now that I have the table in a SQL Server database I am trying to link the FE to that table using the link table wizard in Access - from my workstation. That wizard can see the SQL Server and it can see the admin databases but it cannot even see the net database(s) that I created using the Admin user directly on DiscoSvr. When I open SSMSE from my workstation, it can see and manipulate the built in Admin databases and it can *see* but cannot even expand the two databases that I manually created on SQL Server. John W. Colby www.ColbyConsulting.com On 1/8/2011 10:34 AM, Mark Breen wrote: > Hello John, > > In this case, I would like to know whether there is a database corruption > issue or a connectivity. > > What about quickly creating a new db names testconn and see if you can > connect to that. > > If it works and disco does not, then quickly check the db mappings from the > properties dialog box. > > If you are mapped and you think that you should be able to see it, then > maybe the db is corrupt. > > A few things to do are, stop and start the server, then refresh the branch > and check again. > > Detach and re-attach the db and see if it helps > > Start thinking about a restore > > is that any help? > > I have seen ghost db's hang around but usually the three-step dance of stop > start services, reboot, delete again etc will remove it. > > HTH > > Mark > > > On 8 January 2011 05:06, jwcolby wrote: > >> I went back in with MSE and looked at that server. While I can see the >> databases of interest, if I click on them and try to see the tables inside, >> I get an error "the database DISCO is not available" and the plus symbol in >> front of the database disappears. >> >> So I can see that the db exists but not actually access it (from my >> workstation). >> >> I can see and open the database from MSE on the server itself. >> >> Is this an ownership / rights kind of issue? I am not getting an actual >> error number from my workstation, just an "not available" generic kind of >> message. >> >> If it is ownership / rights, how do I go about discovering how to fix it? >> >> -- >> 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 Sat Jan 8 16:19:42 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 08 Jan 2011 17:19:42 -0500 Subject: [dba-VB] How can it be Message-ID: <4D28E2FE.1020207@colbyconsulting.com> I have noticed that when I create a VM on my Windows 2008 server with HyperV, the virtual machine's cpu can be pegged in Task Manager Performance, and yet none of the 8 cores even raises an eyebrow in task manager inside of Windows 2008 itself. In Windows 2003 using VMWare, I would see one (or more) of the cores in the server software start chugging when the VMWare VM started working hard. Is it because Hyper V assignes the core outside of Windows itself? IOW Hyper V installs before the Windows software itself does. Is it actually assigning CPU cycles for one or more cores "outside of" Windows. If so is there a utility to see the actual core usage in Hyper V itself? -- John W. Colby www.ColbyConsulting.com From accessd at shaw.ca Sat Jan 8 20:37:46 2011 From: accessd at shaw.ca (Jim Lawrence) Date: Sat, 8 Jan 2011 18:37:46 -0800 Subject: [dba-VB] How can it be In-Reply-To: <4D28E2FE.1020207@colbyconsulting.com> References: <4D28E2FE.1020207@colbyconsulting.com> Message-ID: I am really not sure but a fellow tech said look at the number of copies of svchost.exe processes running... why their process is not reflected in the CPU is another question. Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Saturday, January 08, 2011 2:20 PM To: Access Developers discussion and problem solving; VBA Subject: [dba-VB] How can it be I have noticed that when I create a VM on my Windows 2008 server with HyperV, the virtual machine's cpu can be pegged in Task Manager Performance, and yet none of the 8 cores even raises an eyebrow in task manager inside of Windows 2008 itself. In Windows 2003 using VMWare, I would see one (or more) of the cores in the server software start chugging when the VMWare VM started working hard. Is it because Hyper V assignes the core outside of Windows itself? IOW Hyper V installs before the Windows software itself does. Is it actually assigning CPU cycles for one or more cores "outside of" Windows. If so is there a utility to see the actual core usage in Hyper V itself? -- 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 gustav at cactus.dk Sun Jan 9 08:12:08 2011 From: gustav at cactus.dk (Gustav Brock) Date: Sun, 09 Jan 2011 15:12:08 +0100 Subject: [dba-VB] LINQ Compiled Query Message-ID: Hi all Has anyone tested this technique out: http://www.blog.ingenuitynow.net/15+Minutes+On+LINQ+Compiled+Queries.aspx It looks quite simple to implement. /gustav From shamil at smsconsulting.spb.ru Sun Jan 9 08:20:21 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sun, 9 Jan 2011 17:20:21 +0300 Subject: [dba-VB] LINQ Compiled Query In-Reply-To: References: Message-ID: <28118F262BBF49899D453DE9CCBF3D11@nant> Hi Gustav -- No, I didn't. One of comments says: "I feel this compiled query approach is cumbersome. Image your application has 100 linq queries, you have to create 100 helper classes, and another 100 static functions. I wish Microsoft provides an easily way, maybe some syntax sugar, or some more magics in DataContent, to make programmer life easier. " 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: 9 ?????? 2011 ?. 17:12 To: dba-vb at databaseadvisors.com Subject: [dba-VB] LINQ Compiled Query Hi all Has anyone tested this technique out: http://www.blog.ingenuitynow.net/15+Minutes+On+LINQ+Compiled+Queries.aspx It looks quite simple to implement. /gustav From gustav at cactus.dk Sun Jan 9 09:00:22 2011 From: gustav at cactus.dk (Gustav Brock) Date: Sun, 09 Jan 2011 16:00:22 +0100 Subject: [dba-VB] LINQ Compiled Query Message-ID: Hi Shamil Yes, I noticed that comment and think it is valid. However, if you have a crucial query in, say, a loop it could be worth the efforts. /gustav >>> shamil at smsconsulting.spb.ru 09-01-2011 15:20 >>> Hi Gustav -- No, I didn't. One of comments says: "I feel this compiled query approach is cumbersome. Image your application has 100 linq queries, you have to create 100 helper classes, and another 100 static functions. I wish Microsoft provides an easily way, maybe some syntax sugar, or some more magics in DataContent, to make programmer life easier. " 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: 9 ?????? 2011 ?. 17:12 To: dba-vb at databaseadvisors.com Subject: [dba-VB] LINQ Compiled Query Hi all Has anyone tested this technique out: http://www.blog.ingenuitynow.net/15+Minutes+On+LINQ+Compiled+Queries.aspx It looks quite simple to implement. /gustav From shamil at smsconsulting.spb.ru Sun Jan 9 09:55:07 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sun, 9 Jan 2011 18:55:07 +0300 Subject: [dba-VB] LINQ Compiled Query In-Reply-To: References: Message-ID: Hi Gustav -- <<< However, if you have a crucial query in, say, a loop it could be worth the efforts. >>> Shouldn't LINQ be "smart enough" to not rebuild dynamic queries when that used in a loop? (of course if LINQ expression is not forcibly destroyed (by developer) at the end of every cycle iteration). I'd guess even if they get forcibly destoryed LINQ coudl somehow keep parsed&compiled LINQ expression cached... It's a very smart technology... (nothing new - all the principles used in (P)LINQ are known for years but that's the first time such a technology released to the business applications developers?) 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: 9 ?????? 2011 ?. 18:00 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] LINQ Compiled Query Hi Shamil Yes, I noticed that comment and think it is valid. However, if you have a crucial query in, say, a loop it could be worth the efforts. /gustav >>> shamil at smsconsulting.spb.ru 09-01-2011 15:20 >>> Hi Gustav -- No, I didn't. One of comments says: "I feel this compiled query approach is cumbersome. Image your application has 100 linq queries, you have to create 100 helper classes, and another 100 static functions. I wish Microsoft provides an easily way, maybe some syntax sugar, or some more magics in DataContent, to make programmer life easier. " 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: 9 ?????? 2011 ?. 17:12 To: dba-vb at databaseadvisors.com Subject: [dba-VB] LINQ Compiled Query Hi all Has anyone tested this technique out: http://www.blog.ingenuitynow.net/15+Minutes+On+LINQ+Compiled+Queries.aspx It looks quite simple to implement. /gustav _______________________________________________ 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 Jan 9 11:30:04 2011 From: gustav at cactus.dk (Gustav Brock) Date: Sun, 09 Jan 2011 18:30:04 +0100 Subject: [dba-VB] LINQ Compiled Query Message-ID: Hi Shamil I have no idea - and things may have evolved from 2008 to 2010. Perhaps the only "trick" is to wrap the LINQ query in a static class? But no ... I browsed a little and found this from a year ago: EF 4.0 & compiled queries & performance http://social.msdn.microsoft.com/Forums/en/adonetefx/thread/0c07e1d6-7db6-4348-b106-e576d3153b70 which demonstrates a dramatic speed increase for repeated runs of a compiled query. It also provides this link which seems to explain what is going on: Precompiling LINQ Queries by Julie Lerman http://msdn.microsoft.com/en-gb/magazine/ee336024.aspx /gustav PS: All MSDN Magazines can be browsed from here: http://msdn.microsoft.com/en-gb/magazine/ee310108.aspx >>> shamil at smsconsulting.spb.ru 09-01-2011 16:55 >>> Hi Gustav -- <<< However, if you have a crucial query in, say, a loop it could be worth the efforts. >>> Shouldn't LINQ be "smart enough" to not rebuild dynamic queries when that used in a loop? (of course if LINQ expression is not forcibly destroyed (by developer) at the end of every cycle iteration). I'd guess even if they get forcibly destoryed LINQ coudl somehow keep parsed&compiled LINQ expression cached... It's a very smart technology... (nothing new - all the principles used in (P)LINQ are known for years but that's the first time such a technology released to the business applications developers?) 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: 9 ?????? 2011 ?. 18:00 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] LINQ Compiled Query Hi Shamil Yes, I noticed that comment and think it is valid. However, if you have a crucial query in, say, a loop it could be worth the efforts. /gustav >>> shamil at smsconsulting.spb.ru 09-01-2011 15:20 >>> Hi Gustav -- No, I didn't. One of comments says: "I feel this compiled query approach is cumbersome. Image your application has 100 linq queries, you have to create 100 helper classes, and another 100 static functions. I wish Microsoft provides an easily way, maybe some syntax sugar, or some more magics in DataContent, to make programmer life easier. " 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: 9 ?????? 2011 ?. 17:12 To: dba-vb at databaseadvisors.com Subject: [dba-VB] LINQ Compiled Query Hi all Has anyone tested this technique out: http://www.blog.ingenuitynow.net/15+Minutes+On+LINQ+Compiled+Queries.aspx It looks quite simple to implement. /gustav From shamil at smsconsulting.spb.ru Sun Jan 9 17:08:03 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Mon, 10 Jan 2011 02:08:03 +0300 Subject: [dba-VB] LINQ Compiled Query In-Reply-To: References: Message-ID: Hi Gustav -- <<< Precompiling LINQ Queries by Julie Lerman http://msdn.microsoft.com/en-gb/magazine/ee336024.aspx >>> Yes, that's a very good article, thank you. Is it interesting what will happen when two or more threads (on ASP.NET app/service, WCF service, ....) will try to use the same static compiled LINQ query (with different parameters)? Will the first thread block the others till query execution finishes? (I'm copying here refererred article's code sample) static Func _custByID; public static Customer GetCustomer( int ID) { //test for an existing instance of the compiled query if (_custByID == null) { _custByID = CompiledQuery.Compile ((ctx, id) => ctx.Customers.Where(c => c.CustomerID == id).Single()); } return _custByID.Invoke(_context, ID); } 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: 9 ?????? 2011 ?. 20:30 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] LINQ Compiled Query Hi Shamil I have no idea - and things may have evolved from 2008 to 2010. Perhaps the only "trick" is to wrap the LINQ query in a static class? But no ... I browsed a little and found this from a year ago: EF 4.0 & compiled queries & performance http://social.msdn.microsoft.com/Forums/en/adonetefx/thread/0c07e1d6-7db6-43 48-b106-e576d3153b70 which demonstrates a dramatic speed increase for repeated runs of a compiled query. It also provides this link which seems to explain what is going on: Precompiling LINQ Queries by Julie Lerman http://msdn.microsoft.com/en-gb/magazine/ee336024.aspx /gustav PS: All MSDN Magazines can be browsed from here: http://msdn.microsoft.com/en-gb/magazine/ee310108.aspx >>> shamil at smsconsulting.spb.ru 09-01-2011 16:55 >>> Hi Gustav -- <<< However, if you have a crucial query in, say, a loop it could be worth the efforts. >>> Shouldn't LINQ be "smart enough" to not rebuild dynamic queries when that used in a loop? (of course if LINQ expression is not forcibly destroyed (by developer) at the end of every cycle iteration). I'd guess even if they get forcibly destoryed LINQ coudl somehow keep parsed&compiled LINQ expression cached... It's a very smart technology... (nothing new - all the principles used in (P)LINQ are known for years but that's the first time such a technology released to the business applications developers?) 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: 9 ?????? 2011 ?. 18:00 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] LINQ Compiled Query Hi Shamil Yes, I noticed that comment and think it is valid. However, if you have a crucial query in, say, a loop it could be worth the efforts. /gustav >>> shamil at smsconsulting.spb.ru 09-01-2011 15:20 >>> Hi Gustav -- No, I didn't. One of comments says: "I feel this compiled query approach is cumbersome. Image your application has 100 linq queries, you have to create 100 helper classes, and another 100 static functions. I wish Microsoft provides an easily way, maybe some syntax sugar, or some more magics in DataContent, to make programmer life easier. " 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: 9 ?????? 2011 ?. 17:12 To: dba-vb at databaseadvisors.com Subject: [dba-VB] LINQ Compiled Query Hi all Has anyone tested this technique out: http://www.blog.ingenuitynow.net/15+Minutes+On+LINQ+Compiled+Queries.aspx It looks quite simple to implement. /gustav From Gustav at cactus.dk Mon Jan 10 05:44:57 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 10 Jan 2011 12:44:57 +0100 Subject: [dba-VB] LINQ Compiled Query Message-ID: Hi Shamil Good question, and I don't know, but I would guess that at least each thread will run at the same speed as if the query was not compiled. In fact I have some trouble understanding what really is "complied" using this technique? Perhaps it is only some clever caching behind the scene that is taken place. /gustav >>> shamil at smsconsulting.spb.ru 10-01-2011 00:08 >>> Hi Gustav -- <<< Precompiling LINQ Queries by Julie Lerman http://msdn.microsoft.com/en-gb/magazine/ee336024.aspx >>> Yes, that's a very good article, thank you. Is it interesting what will happen when two or more threads (on ASP.NET app/service, WCF service, ....) will try to use the same static compiled LINQ query (with different parameters)? Will the first thread block the others till query execution finishes? (I'm copying here refererred article's code sample) static Func _custByID; public static Customer GetCustomer( int ID) { //test for an existing instance of the compiled query if (_custByID == null) { _custByID = CompiledQuery.Compile ((ctx, id) => ctx.Customers.Where(c => c.CustomerID == id).Single()); } return _custByID.Invoke(_context, ID); } 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: 9 ?????? 2011 ?. 20:30 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] LINQ Compiled Query Hi Shamil I have no idea - and things may have evolved from 2008 to 2010. Perhaps the only "trick" is to wrap the LINQ query in a static class? But no ... I browsed a little and found this from a year ago: EF 4.0 & compiled queries & performance http://social.msdn.microsoft.com/Forums/en/adonetefx/thread/0c07e1d6-7db6-4348-b106-e576d3153b70 which demonstrates a dramatic speed increase for repeated runs of a compiled query. It also provides this link which seems to explain what is going on: Precompiling LINQ Queries by Julie Lerman http://msdn.microsoft.com/en-gb/magazine/ee336024.aspx /gustav PS: All MSDN Magazines can be browsed from here: http://msdn.microsoft.com/en-gb/magazine/ee310108.aspx >>> shamil at smsconsulting.spb.ru 09-01-2011 16:55 >>> Hi Gustav -- <<< However, if you have a crucial query in, say, a loop it could be worth the efforts. >>> Shouldn't LINQ be "smart enough" to not rebuild dynamic queries when that used in a loop? (of course if LINQ expression is not forcibly destroyed (by developer) at the end of every cycle iteration). I'd guess even if they get forcibly destoryed LINQ coudl somehow keep parsed&compiled LINQ expression cached... It's a very smart technology... (nothing new - all the principles used in (P)LINQ are known for years but that's the first time such a technology released to the business applications developers?) Thank you. -- Shamil From shamil at smsconsulting.spb.ru Tue Jan 11 04:18:42 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Tue, 11 Jan 2011 13:18:42 +0300 Subject: [dba-VB] LINQ Compiled Query In-Reply-To: References: Message-ID: <2E19D8A804ED4FBD88648DD26DAFA32E@nant> Hi Gustav -- I suppose that "compiled" means that query execution plan is built - building query execution plan needs querying EDM (using .NET Reflection) , and that ready to use compiled execution plan is cached. For queries returning a few db records (and that should constitute most of well designed web app queries) saving query compilation time should give significant preformance gains... I will try to test compiled EDM LINQ qeries vs. dynamic ones in the coming days, and I will post the results here... 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: 10 ?????? 2011 ?. 14:45 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] LINQ Compiled Query Hi Shamil Good question, and I don't know, but I would guess that at least each thread will run at the same speed as if the query was not compiled. In fact I have some trouble understanding what really is "complied" using this technique? Perhaps it is only some clever caching behind the scene that is taken place. /gustav >>> shamil at smsconsulting.spb.ru 10-01-2011 00:08 >>> Hi Gustav -- <<< Precompiling LINQ Queries by Julie Lerman http://msdn.microsoft.com/en-gb/magazine/ee336024.aspx >>> Yes, that's a very good article, thank you. Is it interesting what will happen when two or more threads (on ASP.NET app/service, WCF service, ....) will try to use the same static compiled LINQ query (with different parameters)? Will the first thread block the others till query execution finishes? (I'm copying here refererred article's code sample) static Func _custByID; public static Customer GetCustomer( int ID) { //test for an existing instance of the compiled query if (_custByID == null) { _custByID = CompiledQuery.Compile ((ctx, id) => ctx.Customers.Where(c => c.CustomerID == id).Single()); } return _custByID.Invoke(_context, ID); } 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: 9 ?????? 2011 ?. 20:30 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] LINQ Compiled Query Hi Shamil I have no idea - and things may have evolved from 2008 to 2010. Perhaps the only "trick" is to wrap the LINQ query in a static class? But no ... I browsed a little and found this from a year ago: EF 4.0 & compiled queries & performance http://social.msdn.microsoft.com/Forums/en/adonetefx/thread/0c07e1d6-7db6-43 48-b106-e576d3153b70 which demonstrates a dramatic speed increase for repeated runs of a compiled query. It also provides this link which seems to explain what is going on: Precompiling LINQ Queries by Julie Lerman http://msdn.microsoft.com/en-gb/magazine/ee336024.aspx /gustav PS: All MSDN Magazines can be browsed from here: http://msdn.microsoft.com/en-gb/magazine/ee310108.aspx >>> shamil at smsconsulting.spb.ru 09-01-2011 16:55 >>> Hi Gustav -- <<< However, if you have a crucial query in, say, a loop it could be worth the efforts. >>> Shouldn't LINQ be "smart enough" to not rebuild dynamic queries when that used in a loop? (of course if LINQ expression is not forcibly destroyed (by developer) at the end of every cycle iteration). I'd guess even if they get forcibly destoryed LINQ coudl somehow keep parsed&compiled LINQ expression cached... It's a very smart technology... (nothing new - all the principles used in (P)LINQ are known for years but that's the first time such a technology released to the business applications developers?) Thank you. -- Shamil _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue Jan 11 09:58:51 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 11 Jan 2011 10:58:51 -0500 Subject: [dba-VB] C# Databases without borders Message-ID: <4D2C7E3B.3060008@colbyconsulting.com> I want to build a little application where I have a very simple zip code table of about 40 thousand zip codes, with things like household count, population count, lat and long. My application would take lists of zip codes and sum the population and household counts, count the zips etc and put a count on the screen in a table format. I already do this using SQL Server to hold the zip code table. I get the zip lists into csv files, then create a table inside of SQL Server, join on the zip code and sum the population and household counts. Now I want to build an application to do this but SQL Server is way overkill. Can I use a csv or even xml to hold the zip table, create an xml table to hold the zip lists entered by the user and so forth. IOW I need a low impact alternative to SQL Server. Even express is just way overkill for this. Somewhere in the back of my mind I am thinking that ADO.net knows how to load tables, create relationships between tables, enforce the join etc. IOW do the store entirely in XML and just use ADO to do the rest. Is this possible? Would the speed be acceptable for a join between tblZipMaster and tblZipUserXyz on Zip count(zip) sum(household) etc. directly in memory. -- John W. Colby www.ColbyConsulting.com From Gustav at cactus.dk Tue Jan 11 10:42:56 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 11 Jan 2011 17:42:56 +0100 Subject: [dba-VB] C# Databases without borders Message-ID: Hi John First, I don't think SQL Server (Express) is overkill as you - as I understand - have several engines running, so one tiny database more a less wouldn't make noticeable difference. Then, you could for a single user app use the SQL Server Compact (file based as Access/JET) or even an mdb file. Or, you could use the built-in XML storage which is simple and fun. Just remember that it writes _all_ tables of the dataset in one go when you call WriteXml() as shown below - if you attempt to write one table only (which can be done), only this table will be held in the XML file, all other tables will get lost. This we discussed 2009-09-02: For example, read one XML file with one dataset containing several tables: private void InitializeDataSet() { _dataBaseFile = Path.Combine(_execPath, _dataFileName); this.DlDataSet.ReadXml(_dataBaseFile); } Write the (modified) dataset to one XML file: private void SaveData() { this.DlDataSet.WriteXml(_dataBaseFile); } Resulting XML for one table with one record: 0 smtp.webpartner.dk cactus at cactus.dk gustav at cactus.dk /gustav >>> jwcolby at colbyconsulting.com 11-01-2011 16:58 >>> I want to build a little application where I have a very simple zip code table of about 40 thousand zip codes, with things like household count, population count, lat and long. My application would take lists of zip codes and sum the population and household counts, count the zips etc and put a count on the screen in a table format. I already do this using SQL Server to hold the zip code table. I get the zip lists into csv files, then create a table inside of SQL Server, join on the zip code and sum the population and household counts. Now I want to build an application to do this but SQL Server is way overkill. Can I use a csv or even xml to hold the zip table, create an xml table to hold the zip lists entered by the user and so forth. IOW I need a low impact alternative to SQL Server. Even express is just way overkill for this. Somewhere in the back of my mind I am thinking that ADO.net knows how to load tables, create relationships between tables, enforce the join etc. IOW do the store entirely in XML and just use ADO to do the rest. Is this possible? Would the speed be acceptable for a join between tblZipMaster and tblZipUserXyz on Zip count(zip) sum(household) etc. directly in memory. -- John W. Colby www.ColbyConsulting.com From jwcolby at colbyconsulting.com Tue Jan 11 10:37:10 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 11 Jan 2011 11:37:10 -0500 Subject: [dba-VB] C# Databases without borders In-Reply-To: References: Message-ID: <4D2C8736.2050507@colbyconsulting.com> Gustav, This is going to be a C# applet that anyone can install on their system. John W. Colby www.ColbyConsulting.com On 1/11/2011 11:42 AM, Gustav Brock wrote: > Hi John > > First, I don't think SQL Server (Express) is overkill as you - as I understand - have several engines running, so one tiny database more a less wouldn't make noticeable difference. > > Then, you could for a single user app use the SQL Server Compact (file based as Access/JET) or even an mdb file. > Or, you could use the built-in XML storage which is simple and fun. Just remember that it writes _all_ tables of the dataset in one go when you call WriteXml() as shown below - if you attempt to write one table only (which can be done), only this table will be held in the XML file, all other tables will get lost. > > This we discussed 2009-09-02: > > For example, read one XML file with one dataset containing several tables: > > private void InitializeDataSet() > { > _dataBaseFile = Path.Combine(_execPath, _dataFileName); > this.DlDataSet.ReadXml(_dataBaseFile); > } > > Write the (modified) dataset to one XML file: > > private void SaveData() > { > this.DlDataSet.WriteXml(_dataBaseFile); > } > > Resulting XML for one table with one record: > > > > > 0 > smtp.webpartner.dk > > > cactus at cactus.dk > gustav at cactus.dk > > > > /gustav > > > >>>> jwcolby at colbyconsulting.com 11-01-2011 16:58>>> > I want to build a little application where I have a very simple zip code table of about 40 thousand > zip codes, with things like household count, population count, lat and long. My application would > take lists of zip codes and sum the population and household counts, count the zips etc and put a > count on the screen in a table format. > > I already do this using SQL Server to hold the zip code table. I get the zip lists into csv files, > then create a table inside of SQL Server, join on the zip code and sum the population and household > counts. > > Now I want to build an application to do this but SQL Server is way overkill. > > Can I use a csv or even xml to hold the zip table, create an xml table to hold the zip lists entered > by the user and so forth. IOW I need a low impact alternative to SQL Server. Even express is just > way overkill for this. > > Somewhere in the back of my mind I am thinking that ADO.net knows how to load tables, create > relationships between tables, enforce the join etc. IOW do the store entirely in XML and just use > ADO to do the rest. > > Is this possible? Would the speed be acceptable for a join between tblZipMaster and tblZipUserXyz > on Zip count(zip) sum(household) etc. directly in memory. From Gustav at cactus.dk Tue Jan 11 10:57:44 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 11 Jan 2011 17:57:44 +0100 Subject: [dba-VB] C# Databases without borders Message-ID: Hi John Oh, I missed that. That rules out the SQL Server engine and leaves you with the file based options. You can freely include and deploy SQL Server Compact Edition. /gustav >>> jwcolby at colbyconsulting.com 11-01-2011 17:37 >>> Gustav, This is going to be a C# applet that anyone can install on their system. John W. Colby www.ColbyConsulting.com On 1/11/2011 11:42 AM, Gustav Brock wrote: > Hi John > > First, I don't think SQL Server (Express) is overkill as you - as I understand - have several engines running, so one tiny database more a less wouldn't make noticeable difference. > > Then, you could for a single user app use the SQL Server Compact (file based as Access/JET) or even an mdb file. > Or, you could use the built-in XML storage which is simple and fun. Just remember that it writes _all_ tables of the dataset in one go when you call WriteXml() as shown below - if you attempt to write one table only (which can be done), only this table will be held in the XML file, all other tables will get lost. > > This we discussed 2009-09-02: > > For example, read one XML file with one dataset containing several tables: > > private void InitializeDataSet() > { > _dataBaseFile = Path.Combine(_execPath, _dataFileName); > this.DlDataSet.ReadXml(_dataBaseFile); > } > > Write the (modified) dataset to one XML file: > > private void SaveData() > { > this.DlDataSet.WriteXml(_dataBaseFile); > } > > Resulting XML for one table with one record: > > > > > 0 > smtp.webpartner.dk > > > cactus at cactus.dk > gustav at cactus.dk > > > > /gustav > > > >>>> jwcolby at colbyconsulting.com 11-01-2011 16:58>>> > I want to build a little application where I have a very simple zip code table of about 40 thousand > zip codes, with things like household count, population count, lat and long. My application would > take lists of zip codes and sum the population and household counts, count the zips etc and put a > count on the screen in a table format. > > I already do this using SQL Server to hold the zip code table. I get the zip lists into csv files, > then create a table inside of SQL Server, join on the zip code and sum the population and household > counts. > > Now I want to build an application to do this but SQL Server is way overkill. > > Can I use a csv or even xml to hold the zip table, create an xml table to hold the zip lists entered > by the user and so forth. IOW I need a low impact alternative to SQL Server. Even express is just > way overkill for this. > > Somewhere in the back of my mind I am thinking that ADO.net knows how to load tables, create > relationships between tables, enforce the join etc. IOW do the store entirely in XML and just use > ADO to do the rest. > > Is this possible? Would the speed be acceptable for a join between tblZipMaster and tblZipUserXyz > on Zip count(zip) sum(household) etc. directly in memory. From dw-murphy at cox.net Tue Jan 11 10:58:34 2011 From: dw-murphy at cox.net (Doug Murphy) Date: Tue, 11 Jan 2011 08:58:34 -0800 Subject: [dba-VB] C# Databases without borders In-Reply-To: References: Message-ID: Why not an mdb file? ADO.NET works fine. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, January 11, 2011 8:58 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] C# Databases without borders Hi John Oh, I missed that. That rules out the SQL Server engine and leaves you with the file based options. You can freely include and deploy SQL Server Compact Edition. /gustav >>> jwcolby at colbyconsulting.com 11-01-2011 17:37 >>> Gustav, This is going to be a C# applet that anyone can install on their system. John W. Colby www.ColbyConsulting.com On 1/11/2011 11:42 AM, Gustav Brock wrote: > Hi John > > First, I don't think SQL Server (Express) is overkill as you - as I understand - have several engines running, so one tiny database more a less wouldn't make noticeable difference. > > Then, you could for a single user app use the SQL Server Compact (file based as Access/JET) or even an mdb file. > Or, you could use the built-in XML storage which is simple and fun. Just remember that it writes _all_ tables of the dataset in one go when you call WriteXml() as shown below - if you attempt to write one table only (which can be done), only this table will be held in the XML file, all other tables will get lost. > > This we discussed 2009-09-02: > > For example, read one XML file with one dataset containing several tables: > > private void InitializeDataSet() > { > _dataBaseFile = Path.Combine(_execPath, _dataFileName); > this.DlDataSet.ReadXml(_dataBaseFile); > } > > Write the (modified) dataset to one XML file: > > private void SaveData() > { > this.DlDataSet.WriteXml(_dataBaseFile); > } > > Resulting XML for one table with one record: > > xmlns="http://tempuri.org/DataSetDL.xsd"> > > 0 > smtp.webpartner.dk > > > cactus at cactus.dk > gustav at cactus.dk > > > > /gustav > > > >>>> jwcolby at colbyconsulting.com 11-01-2011 16:58>>> > I want to build a little application where I have a very simple zip > code table of about 40 thousand zip codes, with things like household > count, population count, lat and long. My application would take > lists of zip codes and sum the population and household counts, count the zips etc and put a count on the screen in a table format. > > I already do this using SQL Server to hold the zip code table. I get > the zip lists into csv files, then create a table inside of SQL > Server, join on the zip code and sum the population and household counts. > > Now I want to build an application to do this but SQL Server is way overkill. > > Can I use a csv or even xml to hold the zip table, create an xml table > to hold the zip lists entered by the user and so forth. IOW I need a > low impact alternative to SQL Server. Even express is just way overkill for this. > > Somewhere in the back of my mind I am thinking that ADO.net knows how > to load tables, create relationships between tables, enforce the join > etc. IOW do the store entirely in XML and just use ADO to do the rest. > > Is this possible? Would the speed be acceptable for a join between > tblZipMaster and tblZipUserXyz on Zip count(zip) sum(household) etc. directly in memory. _______________________________________________ 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 Tue Jan 11 11:20:46 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 11 Jan 2011 18:20:46 +0100 Subject: [dba-VB] C# Databases without borders Message-ID: Hi Doug Right, except for some potential 64-bit issues? I think the driver issue was solved, but I haven't worked with it myself. And Visual Studio just loooves SQL Server Compact Edition! /gustav >>> dw-murphy at cox.net 11-01-2011 17:58 >>> Why not an mdb file? ADO.NET works fine. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, January 11, 2011 8:58 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] C# Databases without borders Hi John Oh, I missed that. That rules out the SQL Server engine and leaves you with the file based options. You can freely include and deploy SQL Server Compact Edition. /gustav >>> jwcolby at colbyconsulting.com 11-01-2011 17:37 >>> Gustav, This is going to be a C# applet that anyone can install on their system. From Gustav at cactus.dk Tue Jan 11 11:48:05 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 11 Jan 2011 18:48:05 +0100 Subject: [dba-VB] Free ebook: Programming Windows Phone 7, by Charles Petzold Message-ID: Hi all If you are serious about Windows Phone 7, this 1000+ page monster book from Microsoft is only a 13 MB download + 5 MB for code samples: http://blogs.msdn.com/b/microsoft_press/archive/2010/10/28/free-ebook-programming-windows-phone-7-by-charles-petzold.aspx Note this: To use this book properly you'll need to download and install the Windows Phone Developer Tools, which includes Visual Studio 2010 Express for Windows Phone, XNA Game Studio 4.0, and an on-screen Windows Phone Emulator to test your programs in the absence of an actual device. Get the latest information and downloads at http://developer.windowsphone.com. You can install these tools on top of Visual Studio 2010, in effect enhancing Visual Studio 2010 for phone development. That's the configuration I used. Although you can do quite a bit with the phone emulator, at some point you'll want to deploy your programs to an actual Windows Phone 7 device. You can register as a phone developer at http://developer.windowsphone.com and then have the ability to unlock your phone so you can deploy your programs from Visual Studio. /gustav From stuart at lexacorp.com.pg Tue Jan 11 14:12:22 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 12 Jan 2011 06:12:22 +1000 Subject: [dba-VB] C# Databases without borders In-Reply-To: <4D2C7E3B.3060008@colbyconsulting.com> References: <4D2C7E3B.3060008@colbyconsulting.com> Message-ID: <4D2CB9A6.30399.8ADA003@stuart.lexacorp.com.pg> Three ways: Binary array stored in the application as a resource and do that analysis yourself on the array elements. SQLite - http://www.sqlite.org/ Access mdb The first way is probably the optimum, but will require a bit more coding to do the analysus. With only 40,000 rows stored as a collection or array, the in-memory scanning and summation should be near instant ( at least it would be if I did it in Powerbasic ) -- Stuart On 11 Jan 2011 at 10:58, jwcolby wrote: > I want to build a little application where I have a very simple zip > code table of about 40 thousand zip codes, with things like household > count, population count, lat and long. My application would take > lists of zip codes and sum the population and household counts, count > the zips etc and put a count on the screen in a table format. > > I already do this using SQL Server to hold the zip code table. I get > the zip lists into csv files, then create a table inside of SQL > Server, join on the zip code and sum the population and household > counts. > > Now I want to build an application to do this but SQL Server is way > overkill. > > Can I use a csv or even xml to hold the zip table, create an xml table > to hold the zip lists entered by the user and so forth. IOW I need a > low impact alternative to SQL Server. Even express is just way > overkill for this. > > Somewhere in the back of my mind I am thinking that ADO.net knows how > to load tables, create relationships between tables, enforce the join > etc. IOW do the store entirely in XML and just use ADO to do the > rest. > > Is this possible? Would the speed be acceptable for a join between > tblZipMaster and tblZipUserXyz on Zip count(zip) sum(household) etc. > directly in memory. -- 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 dw-murphy at cox.net Tue Jan 11 14:21:38 2011 From: dw-murphy at cox.net (Doug Murphy) Date: Tue, 11 Jan 2011 12:21:38 -0800 Subject: [dba-VB] C# Databases without borders In-Reply-To: References: Message-ID: <396C8A3D6CDA4DEA8E21964189F12919@murphy3234aaf1> Good point about 64 bit. Have no experience installing apps there. Then I'd go with exporting and importing dataset to xml file. That is even more native I think. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, January 11, 2011 9:21 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] C# Databases without borders Hi Doug Right, except for some potential 64-bit issues? I think the driver issue was solved, but I haven't worked with it myself. And Visual Studio just loooves SQL Server Compact Edition! /gustav >>> dw-murphy at cox.net 11-01-2011 17:58 >>> Why not an mdb file? ADO.NET works fine. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, January 11, 2011 8:58 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] C# Databases without borders Hi John Oh, I missed that. That rules out the SQL Server engine and leaves you with the file based options. You can freely include and deploy SQL Server Compact Edition. /gustav >>> jwcolby at colbyconsulting.com 11-01-2011 17:37 >>> Gustav, This is going to be a C# applet that anyone can install on their system. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From davidmcafee at gmail.com Tue Jan 11 14:22:33 2011 From: davidmcafee at gmail.com (David McAfee) Date: Tue, 11 Jan 2011 12:22:33 -0800 Subject: [dba-VB] C# Databases without borders In-Reply-To: <4D2CB9A6.30399.8ADA003@stuart.lexacorp.com.pg> References: <4D2C7E3B.3060008@colbyconsulting.com> <4D2CB9A6.30399.8ADA003@stuart.lexacorp.com.pg> Message-ID: If the app is a single user app, you can also use C# and SQLCE. You can pass the datasets to and from the user via a web service. D On Tue, Jan 11, 2011 at 12:12 PM, Stuart McLachlan wrote: > Three ways: > > Binary array stored in the application as a resource and do that analysis > yourself on the array > elements. > > SQLite - http://www.sqlite.org/ > > Access mdb > > The first way is probably the optimum, but will require a bit more coding > to do the analysus. > > With only 40,000 rows stored as a collection or array, the in-memory > scanning and > summation should be near instant ( at least it would be if I did it in > Powerbasic ) > > -- > Stuart > > > On 11 Jan 2011 at 10:58, jwcolby wrote: > > > I want to build a little application where I have a very simple zip > > code table of about 40 thousand zip codes, with things like household > > count, population count, lat and long. My application would take > > lists of zip codes and sum the population and household counts, count > > the zips etc and put a count on the screen in a table format. > > > > I already do this using SQL Server to hold the zip code table. I get > > the zip lists into csv files, then create a table inside of SQL > > Server, join on the zip code and sum the population and household > > counts. > > > > Now I want to build an application to do this but SQL Server is way > > overkill. > > > > Can I use a csv or even xml to hold the zip table, create an xml table > > to hold the zip lists entered by the user and so forth. IOW I need a > > low impact alternative to SQL Server. Even express is just way > > overkill for this. > > > > Somewhere in the back of my mind I am thinking that ADO.net knows how > > to load tables, create relationships between tables, enforce the join > > etc. IOW do the store entirely in XML and just use ADO to do the > > rest. > > > > Is this possible? Would the speed be acceptable for a join between > > tblZipMaster and tblZipUserXyz on Zip count(zip) sum(household) etc. > > directly in memory. -- 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 shamil at smsconsulting.spb.ru Thu Jan 13 15:47:42 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Fri, 14 Jan 2011 00:47:42 +0300 Subject: [dba-VB] (Free) C#/VB.NET equivalents of Excel.Application.WorksheetFunction.NormSDist(Arg1 As Double) As Double? Message-ID: <7211AB6BCA524E3F8F3664993D3D3F47@nant> Hi All -- Do you know about any (free) equivalents of Exel.Application.WorksheetFunction.NormSDist(Arg1 As Double) As Double ? I have got googled the following link: http://bytes.com/topic/c-sharp/answers/240995-normal-distribution but I'm not sure/have no time now to check will that simple solution be equivalent to the Excel.Application.WorksheetFunction.NormSDist(...)? I have to get developed an independent from MS Excel solution. Thank you. -- Shamil From df.waters at comcast.net Thu Jan 13 16:37:23 2011 From: df.waters at comcast.net (Dan Waters) Date: Thu, 13 Jan 2011 16:37:23 -0600 Subject: [dba-VB] (Free) C#/VB.NET equivalents ofExcel.Application.WorksheetFunction.NormSDist(Arg1 As Double)As Double? In-Reply-To: <7211AB6BCA524E3F8F3664993D3D3F47@nant> References: <7211AB6BCA524E3F8F3664993D3D3F47@nant> Message-ID: Hi Shamil, I was a Quality Engineer in a former life and occasionally had to use this formula. I found this: http://en.wikipedia.org/wiki/Normal_distribution. It looks to me like the equation is similar, but I don't know what Math.Pow is. Good Luck! Dan -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Thursday, January 13, 2011 3:48 PM To: 'Discussion concerning Visual Basic and related programming issues.' Subject: [dba-VB] (Free) C#/VB.NET equivalents ofExcel.Application.WorksheetFunction.NormSDist(Arg1 As Double)As Double? Hi All -- Do you know about any (free) equivalents of Exel.Application.WorksheetFunction.NormSDist(Arg1 As Double) As Double ? I have got googled the following link: http://bytes.com/topic/c-sharp/answers/240995-normal-distribution but I'm not sure/have no time now to check will that simple solution be equivalent to the Excel.Application.WorksheetFunction.NormSDist(...)? I have to get developed an independent from MS Excel solution. Thank you. -- Shamil _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From shamil at smsconsulting.spb.ru Fri Jan 14 07:52:33 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Fri, 14 Jan 2011 16:52:33 +0300 Subject: [dba-VB] (Free) C#/VB.NET equivalentsofExcel.Application.WorksheetFunction.NormSDist(Arg1 AsDouble)As Double? In-Reply-To: References: <7211AB6BCA524E3F8F3664993D3D3F47@nant> Message-ID: <1F66E8F19E01484284E7277621C5BFA2@nant> Thank you, Dan, Math.Pow is a power math operation. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: 14 ?????? 2011 ?. 1:37 To: 'Discussion concerning Visual Basic and related programming issues.' Subject: Re: [dba-VB] (Free) C#/VB.NET equivalentsofExcel.Application.WorksheetFunction.NormSDist(Arg1 AsDouble)As Double? Hi Shamil, I was a Quality Engineer in a former life and occasionally had to use this formula. I found this: http://en.wikipedia.org/wiki/Normal_distribution. It looks to me like the equation is similar, but I don't know what Math.Pow is. Good Luck! Dan -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Thursday, January 13, 2011 3:48 PM To: 'Discussion concerning Visual Basic and related programming issues.' Subject: [dba-VB] (Free) C#/VB.NET equivalents ofExcel.Application.WorksheetFunction.NormSDist(Arg1 As Double)As Double? Hi All -- Do you know about any (free) equivalents of Exel.Application.WorksheetFunction.NormSDist(Arg1 As Double) As Double ? I have got googled the following link: http://bytes.com/topic/c-sharp/answers/240995-normal-distribution but I'm not sure/have no time now to check will that simple solution be equivalent to the Excel.Application.WorksheetFunction.NormSDist(...)? I have to get developed an independent from MS Excel solution. Thank you. -- Shamil _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From shamil at smsconsulting.spb.ru Fri Jan 14 10:51:49 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Fri, 14 Jan 2011 19:51:49 +0300 Subject: [dba-VB] How to specify a relative path to an MS Access db in app.config? Message-ID: <554BE140BB7F41ABA5636DC762C245F7@nant> Hi All -- That should be simple(?) but google somehow doesn't give any useful feedback (or I'm missing it). I wanted to have the following connection string from app.config to use relative path to MS Access db - relative to the folder where app.config (its assembly) will be installed on target system: If I write: Data Source=.\Database\TestData.mdb it works on start-up and when I work with main form, but as soon as I use, e.g., OpenFile fialog, which changes default folder main form's update which is bound do a dataset which uses the above connection string fails to update db as it gets now improper fullpath for db... Isn't there something like Data Source=~\Database\TestData.mdb or Data Source={Application}\Database\TestData.mdb or ... way to specify "stable" relative path to the MS Access db - relative to the app.config's assembly location? I do not want to use DSN... Thank you. -- Shamil From gustav at cactus.dk Fri Jan 14 15:29:02 2011 From: gustav at cactus.dk (Gustav Brock) Date: Fri, 14 Jan 2011 22:29:02 +0100 Subject: [dba-VB] How to specify a relative path to an MS Access db in app.config? Message-ID: Hi Shamil This guy seems to have found a method to specify a relative path as a parameter - which is little different from your connection string: http://www.eggheadcafe.com/community/aspnet/2/10213449/set-relative-path-in-windows-application.aspx However, you later should be able to easily modify your connection string using the SqlConnectionStringBuilder: private SqlConnection ConnectionApplyPassword(string connectionString) { // Apply password to connectionString. SqlConnectionStringBuilder sqlConnectionStringBuilder = new SqlConnectionStringBuilder(); sqlConnectionStringBuilder.ConnectionString = connectionString; sqlConnectionStringBuilder.Password = _connectionDbPassword; return new SqlConnection(sqlConnectionStringBuilder.ToString()); } like this: someDataTableAdapter.Connection = ConnectionApplyPassword(someDataTableAdapter.Connection.ConnectionString); /gustav >>> shamil at smsconsulting.spb.ru 14-01-2011 17:51 >>> Hi All -- That should be simple(?) but google somehow doesn't give any useful feedback (or I'm missing it). I wanted to have the following connection string from app.config to use relative path to MS Access db - relative to the folder where app.config (its assembly) will be installed on target system: If I write: Data Source=.\Database\TestData.mdb it works on start-up and when I work with main form, but as soon as I use, e.g., OpenFile fialog, which changes default folder main form's update which is bound do a dataset which uses the above connection string fails to update db as it gets now improper fullpath for db... Isn't there something like Data Source=~\Database\TestData.mdb or Data Source={Application}\Database\TestData.mdb or ... way to specify "stable" relative path to the MS Access db - relative to the app.config's assembly location? I do not want to use DSN... Thank you. -- Shamil From shamil at smsconsulting.spb.ru Fri Jan 14 16:09:27 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sat, 15 Jan 2011 01:09:27 +0300 Subject: [dba-VB] How to specify a relative path to an MS Access db inapp.config? In-Reply-To: References: Message-ID: <7F371F119A344A17A24F2AF9BF5D540A@nant> Thank you, Gustav, First of all I do use MS Access backend for that my simple application. Yes, I can write a couple of code lines to customize connection creation on runtime but I wanted to avoid doing that additional coding. The following static solution works well I just need to keep watching to have current directory within that application to be always equal to the app.config's assembly directory... 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: 15 ?????? 2011 ?. 0:29 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] How to specify a relative path to an MS Access db inapp.config? Hi Shamil This guy seems to have found a method to specify a relative path as a parameter - which is little different from your connection string: http://www.eggheadcafe.com/community/aspnet/2/10213449/set-relative-path-in- windows-application.aspx However, you later should be able to easily modify your connection string using the SqlConnectionStringBuilder: private SqlConnection ConnectionApplyPassword(string connectionString) { // Apply password to connectionString. SqlConnectionStringBuilder sqlConnectionStringBuilder = new SqlConnectionStringBuilder(); sqlConnectionStringBuilder.ConnectionString = connectionString; sqlConnectionStringBuilder.Password = _connectionDbPassword; return new SqlConnection(sqlConnectionStringBuilder.ToString()); } like this: someDataTableAdapter.Connection = ConnectionApplyPassword(someDataTableAdapter.Connection.ConnectionString); /gustav >>> shamil at smsconsulting.spb.ru 14-01-2011 17:51 >>> Hi All -- That should be simple(?) but google somehow doesn't give any useful feedback (or I'm missing it). I wanted to have the following connection string from app.config to use relative path to MS Access db - relative to the folder where app.config (its assembly) will be installed on target system: If I write: Data Source=.\Database\TestData.mdb it works on start-up and when I work with main form, but as soon as I use, e.g., OpenFile fialog, which changes default folder main form's update which is bound do a dataset which uses the above connection string fails to update db as it gets now improper fullpath for db... Isn't there something like Data Source=~\Database\TestData.mdb or Data Source={Application}\Database\TestData.mdb or ... way to specify "stable" relative path to the MS Access db - relative to the app.config's assembly location? I do not want to use DSN... Thank you. -- Shamil _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Sat Jan 15 17:37:00 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 15 Jan 2011 18:37:00 -0500 Subject: [dba-VB] SQL Server over Hamachi: First test not hopeful Message-ID: <4D322F9C.8090405@colbyconsulting.com> I developed a SQL Server database, with perhaps 10-15 tables, populated a few with just a handful of records, created an Access database and built a few forms. My strategy is to do Access because I can do it quickly, but link it to SQL Server, the run the FE on a remote computer over Hamachi. Tonight I went to a local Arby's to test the speed of the system. The local Arby's has an open wifi, which using Speedtest.net tested 5 mbit down, 1 mbit up - typical low end cable in my area. So I tried to use the system and... well... it took an extremely long time to connect, if it connected at all. Access mostly timed out trying to log on. SQL Server Management System would log on sometimes. Sometimes not. Trying to hit it at the actual Hamachi IP address worked but took awhile. 15 - 30 seconds to connect (I did not time it). To be honest I am puzzled. Google finds plenty of folks trying this, some succeeding, most pretty slow. Remote desktop is plenty fast. From inside of my office, out across the internet via Hamachi I have done things like file transfers etc (in the past). Remote desktop has always been very speedy, but there isn't much needed for RD. I had really expected faster connections / operation. I really expected SSMS to just work, pretty much at speed. It didn't. Sigh, back to the drawing boards. -- John W. Colby www.ColbyConsulting.com From marklbreen at gmail.com Sun Jan 16 04:39:00 2011 From: marklbreen at gmail.com (Mark Breen) Date: Sun, 16 Jan 2011 10:39:00 +0000 Subject: [dba-VB] SQL Server over Hamachi: First test not hopeful In-Reply-To: <4D322F9C.8090405@colbyconsulting.com> References: <4D322F9C.8090405@colbyconsulting.com> Message-ID: Hello John, I am using Hamachi - since you mentioned it here a few years ago - and Access and SQL server since Jan 2008 and it works the same as a VLan over Cisco hardware. No performance difference between Hamachi and CISCO, Thanks for the info on Hamachi in 2007/8 BTW :) HTH Mark On 15 January 2011 23:37, jwcolby wrote: > I developed a SQL Server database, with perhaps 10-15 tables, populated a > few with just a handful of records, created an Access database and built a > few forms. My strategy is to do Access because I can do it quickly, but > link it to SQL Server, the run the FE on a remote computer over Hamachi. > > Tonight I went to a local Arby's to test the speed of the system. The > local Arby's has an open wifi, which using Speedtest.net tested 5 mbit down, > 1 mbit up - typical low end cable in my area. > > So I tried to use the system and... well... it took an extremely long time > to connect, if it connected at all. Access mostly timed out trying to log > on. SQL Server Management System would log on sometimes. Sometimes not. > Trying to hit it at the actual Hamachi IP address worked but took awhile. > 15 - 30 seconds to connect (I did not time it). > > To be honest I am puzzled. Google finds plenty of folks trying this, some > succeeding, most pretty slow. Remote desktop is plenty fast. > > From inside of my office, out across the internet via Hamachi I have done > things like file transfers etc (in the past). Remote desktop has always > been very speedy, but there isn't much needed for RD. > > I had really expected faster connections / operation. I really expected > SSMS to just work, pretty much at speed. It didn't. > > Sigh, back to the drawing boards. > -- > John W. Colby > www.ColbyConsulting.com > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From jwcolby at colbyconsulting.com Sun Jan 16 07:40:56 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sun, 16 Jan 2011 08:40:56 -0500 Subject: [dba-VB] SQL Server over Hamachi: First test not hopeful In-Reply-To: References: <4D322F9C.8090405@colbyconsulting.com> Message-ID: <4D32F568.6050406@colbyconsulting.com> Are you running this over the internet I assume - over Hamachi wold imply that. What are your connection speeds at either end using speedtest.net? John W. Colby www.ColbyConsulting.com On 1/16/2011 5:39 AM, Mark Breen wrote: > Hello John, > > I am using Hamachi - since you mentioned it here a few years ago - and > Access and SQL server since Jan 2008 and it works the same as a VLan over > Cisco hardware. No performance difference between Hamachi and CISCO, > > Thanks for the info on Hamachi in 2007/8 BTW :) > > HTH > > Mark > > On 15 January 2011 23:37, jwcolby wrote: > >> I developed a SQL Server database, with perhaps 10-15 tables, populated a >> few with just a handful of records, created an Access database and built a >> few forms. My strategy is to do Access because I can do it quickly, but >> link it to SQL Server, the run the FE on a remote computer over Hamachi. >> >> Tonight I went to a local Arby's to test the speed of the system. The >> local Arby's has an open wifi, which using Speedtest.net tested 5 mbit down, >> 1 mbit up - typical low end cable in my area. >> >> So I tried to use the system and... well... it took an extremely long time >> to connect, if it connected at all. Access mostly timed out trying to log >> on. SQL Server Management System would log on sometimes. Sometimes not. >> Trying to hit it at the actual Hamachi IP address worked but took awhile. >> 15 - 30 seconds to connect (I did not time it). >> >> To be honest I am puzzled. Google finds plenty of folks trying this, some >> succeeding, most pretty slow. Remote desktop is plenty fast. >> >> From inside of my office, out across the internet via Hamachi I have done >> things like file transfers etc (in the past). Remote desktop has always >> been very speedy, but there isn't much needed for RD. >> >> I had really expected faster connections / operation. I really expected >> SSMS to just work, pretty much at speed. It didn't. >> >> Sigh, back to the drawing boards. >> -- >> 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 Sun Jan 16 21:21:26 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sun, 16 Jan 2011 22:21:26 -0500 Subject: [dba-VB] Access to SQL Server over Hamachi - it WORKS Message-ID: <4D33B5B6.1050102@colbyconsulting.com> Today I stepped back and set it all up internal to my network. Yesterday I had moved the Fe to my laptop. Today I deleted all of my linked tables, then I relinked all of the tables. In doing so I created a new DSN where I hit the SQL Server directly at the Hamachi IP address. Relinked using this new DSN and voila, she's a wurkin, and lightning fast over my internal network but forcing the traffic through Hamachi. So I tested a bit, then went back out to the local Arby's where I was pretty much unable to do anything last night (other than browse the internet). Got right on the connection, opened the Access FE and voila, she's a wurkin, and lightning fast. You wouldn't know you weren't directly on my LAN. Access on my laptop over Hamachi, over a public network, in to my network, directly into a Virtual Machine over Hamachi, running SQL Server 2008 Express. I am so jazzed! that leaves me with one technical barrier now, getting an Access 2007 run-time to host an Access 2003 FE. Now I need to set up a VM to run on my laptop so that I can have an environment without Office installed. Install the Access 2007 run-time and drop the Access 2003 Fe in place. Set up Hamachi on that VM and then get it all playing nice. This will allow me to take my laptop on the road to demo the system. We shall see. And yes Jim, I understand I still need to cause SQL Server to do the heavy lifting. To this point I have never really used SQL Server as the BE for Access. My biggest client uses Access 2K and it doesn't really play nice with ADO. Since I can now develop these new databases in 2003, I can do things like bind the form to an ADO recordset and still have it read/write. I will need to learn how to use a stored procedure were I can pass in a PK and have the SP return a table of data already selected and sorted. I.e. SQL Server doing the lifting. The nice thing is that these are small databases so I can do things like leave the list tables just linked, at least for awhile while I learn all the stuff I have never had to do. Next up, 2007 run-time. -- John W. Colby www.ColbyConsulting.com From jwcolby at colbyconsulting.com Sun Jan 16 21:51:01 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sun, 16 Jan 2011 22:51:01 -0500 Subject: [dba-VB] SQL Server over Hamachi: First test not hopeful In-Reply-To: References: <4D322F9C.8090405@colbyconsulting.com> Message-ID: <4D33BCA5.3020906@colbyconsulting.com> Mark, I got it working today! 8) John W. Colby www.ColbyConsulting.com On 1/16/2011 5:39 AM, Mark Breen wrote: > Hello John, > > I am using Hamachi - since you mentioned it here a few years ago - and > Access and SQL server since Jan 2008 and it works the same as a VLan over > Cisco hardware. No performance difference between Hamachi and CISCO, > > Thanks for the info on Hamachi in 2007/8 BTW :) > > HTH > > Mark From marklbreen at gmail.com Mon Jan 17 04:38:19 2011 From: marklbreen at gmail.com (Mark Breen) Date: Mon, 17 Jan 2011 10:38:19 +0000 Subject: [dba-VB] SQL Server over Hamachi: First test not hopeful In-Reply-To: <4D33BCA5.3020906@colbyconsulting.com> References: <4D322F9C.8090405@colbyconsulting.com> <4D33BCA5.3020906@colbyconsulting.com> Message-ID: Hi John, I saw your other post, congrats, I guess you do feel jazzed. I tried speedtest.net and it told me I had 5 MB and .5 down and up. What I was curious about was that what you wanted me to check. Was there another check you wanted me to do? thanks Mark On 17 January 2011 03:51, jwcolby wrote: > Mark, > > I got it working today! 8) > > > John W. Colby > www.ColbyConsulting.com > > On 1/16/2011 5:39 AM, Mark Breen wrote: > >> Hello John, >> >> I am using Hamachi - since you mentioned it here a few years ago - and >> Access and SQL server since Jan 2008 and it works the same as a VLan over >> Cisco hardware. No performance difference between Hamachi and CISCO, >> >> Thanks for the info on Hamachi in 2007/8 BTW :) >> >> HTH >> >> Mark >> > _______________________________________________ > 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 Mon Jan 17 06:54:22 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Mon, 17 Jan 2011 15:54:22 +0300 Subject: [dba-VB] .NET 4.0 + MS ReportViewer 10.0 + MS Access backend sample: Re: Ded Moroz sends you links on sample projects... :) Message-ID: Hi All, FYI: I have temporarily put subject sample running here: http://shamils-19.hosting.parking.ru/nw4/Default.aspx It's from this release http://shamils-19.hosting.parking.ru/nw4/Default.aspx (http://northwind.codeplex.com/releases/view/26600#DownloadId=192044) announced here on New 2011 Year Eve. That release has got 150+ downloads by now but almost zero feedback. Any feedback is welcome. Thank you. -- Shamil -----Original Message----- From: Shamil Salakhetdinov [mailto:shamil at smsconsulting.spb.ru] Sent: 31 ??????? 2010 ?. 15:14 To: 'Discussion concerning Visual Basic and related programming issues.'; 'Access Developers discussion and problem solving' Subject: Ded Moroz sends you links on sample projects... :) Hi All -- New Year Eve is approaching here, and I wanted to send you some gifts from Ded Moroz - here they are: This is a set of projects I have got developed a few days ago during 40+ hours R&D coding marathon. The task was to finish all the work in about 40 hours. So a few bugs left in there as release deadline wasn't possible to move. They (the bugs) are described in readme. But in general all the sample apps work rather well as my tests here show. I'd be interested to hear any comments - in what direction that sample should be better developed. Please write them here, or on http://northwind.codeplex.com . Please do not "judge severely" as as I noted that was very intensive R&D work with little time to think through while coding :) But feel free to comment it as you like. *Do not try* to be politcorrect. Please. I wish all of your Very Happy and Prosperous New Year! Thank you. -- Shamil P.S. Short description of published projects (the sources get downloaded 19 times already and I have got informed privately a couple of days ago just three people): NorthwindNET_4_0_Sources.zip (~24MB) http://northwind.codeplex.com/releases/view/26600#DownloadId=192044 NorthwindNET_4_0_SampleApps_Setup.zip (~5MB) http://northwind.codeplex.com/releases/view/26600#DownloadId=192043 Northwind.NET.VS2010.sln ======================== 1. Northwind.NET.EDM.FE - WinForms Front-End (just start-up class and app.config); 2. Northwind.NET.EDM.WinForms.Controls - UI UserControls; 3. Northwind.NET.EDM.Reports - MS ReportViewer 10.0 Reports; 4. Northwind.NET.BLL - Business Layer Library (ADO.NET EDM LINQ Reports' data sources); 5. Northwind.NET.Model - ADO.NET EDM; 6. Northwind.NET.Settings - application settings (wrappers); 7. Northwind.NET.Resources - application resource file; 8. Northwind.NET.Utilities - utility class library; 9. Northwind.NET.Testing.Console - some test functions - it's not true TDD - just a rough approximation; Northwind.NET.MSAccess.sln ========================== I. WinForms FE with MS Access backend Northwind.NET.FE.1.1 - Northwind.NET FE with MS Access backend Northwind.NET.Utilities - Utilities project II. ASP.NET sample application with MS Access backend E:/Projects/SMS/Northwind/Northwind.ASP.NET.MSAccess.Reporting/ - ASP.NET project III. Just a test ASP.NET app - can be removed E:\Projects\SMS\Northwind\Northwind.ASP.NET.MSAccess.Reporting.RDLC.10.0.0.0 Northwind.NET.zzz_OLD.sln ========================= 1. Northwind.NET.FE - WinForms Front-End with MS SQL backend using "plain old" ADO.NET data sets - the project we did last year's April. 2. All the other projects from as in Northwind.NET.VS2010.sln ----------- From jwcolby at colbyconsulting.com Mon Jan 17 07:30:46 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 17 Jan 2011 08:30:46 -0500 Subject: [dba-VB] SQL Server over Hamachi: First test not hopeful In-Reply-To: References: <4D322F9C.8090405@colbyconsulting.com> <4D33BCA5.3020906@colbyconsulting.com> Message-ID: <4D344486.1030307@colbyconsulting.com> Thanks for the reply Mark. Are you doing completely unbound forms? Mixed? All bound forms? Systems that don't really use data entry forms? This is my first foray into Access to SQL over Hamachi so I am just looking for someone with previous experience to tell us about it. As Jim pointed out, I do only have a few minutes of working from a public wifi back into my office but the second test was flawless, and literally so fast you would not know you weren't directly on my network. John W. Colby www.ColbyConsulting.com On 1/17/2011 5:38 AM, Mark Breen wrote: > Hi John, > > I saw your other post, congrats, I guess you do feel jazzed. > > I tried speedtest.net and it told me I had 5 MB and .5 down and up. > > What I was curious about was that what you wanted me to check. Was there > another check you wanted me to do? > > thanks > > Mark From shamil at smsconsulting.spb.ru Wed Jan 19 00:53:51 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Wed, 19 Jan 2011 09:53:51 +0300 Subject: [dba-VB] FYI: Agile: Mik Kersten - I think we are ready for another revolt... Message-ID: Hi All, FYI: http://www.infoq.com/interviews/kersten-tasktop Summary: "Mik Kersten discusses the role of Mylyn and Tasktop in Agile development and how these tools return control to developers. Also: how Mylyn streamlines development in Eclipse. ... The Agile movement, or the Agile community kind of was founded by programmers, and again going back the XP in specific, who were just tired of being treated the low end of the management chain. So as the programmers revolt and a lot of people have thought that the Agile community has been taken over by Scrum and by management and they are dumping on programmers just as much as before and it got to the point that the software craftsmanship movement was again the programmers revolting. I think we are ready for another revolt. That is a really interesting observation." Thank you. -- Shamil From jwcolby at colbyconsulting.com Thu Jan 20 11:52:25 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 20 Jan 2011 12:52:25 -0500 Subject: [dba-VB] C# Grid: effectively and efficiently handle dirty Message-ID: <4D387659.5010005@colbyconsulting.com> I am doing C# forms, bound to SQL Server. I dragged and dropped the table out onto the form and C# "installed" the grid as well as a record navigation toolbar. Now I am trying to make sure that data is saved. I have discovered for example that if you edit something and just close the form... no save. Basically no save unless the save button is pressed. Being the anal guy I am, this ain't good enough. I don't want to save after every cell edit, but I do want to save after every row edit or when the form closes. Even this is non-trivial. After browsing the internet and seeing what others are doing (lots of pain expressed), my strategy is to have a RowDirty set by the CellContentsModified but to be honest, things just aren't working as expected. The row leave isn't fired if I sink the CellModified (or something). All I can see for sure is that, while one would expect the row leave to fire if a row is left (makes sense to me) that isn't true and so now I am left with trying to figure out what zany rules exist. So here I am, hat in hand, asking the list "how do you do this"? -- John W. Colby www.ColbyConsulting.com From shamil at smsconsulting.spb.ru Thu Jan 20 14:01:51 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Thu, 20 Jan 2011 23:01:51 +0300 Subject: [dba-VB] C# Grid: effectively and efficiently handle dirty In-Reply-To: <4D387659.5010005@colbyconsulting.com> References: <4D387659.5010005@colbyconsulting.com> Message-ID: <4C68C4DCE29E417AA4B54C60AB4E4316@nant> Hi John -- So you use VS2008 (at least) and you have a "datasheet form" - a bound DataGridView with BindingNavigator bound to ADO.NET dataset etc.? If yes - BindingNavigator has CurrentChanged event, which if fired as soon as you move to the other grid's row. When form is closing FormClosing event is fired: private void shipperBindingSource_CurrentChanged(object sender, EventArgs e) { saveEdits(); } private void saveEdits() { this.Validate(); this.shipperBindingSource.EndEdit(); this.tableAdapterManager.UpdateAll(this.northwindNETDataSet1); } private void Form2_FormClosing(object sender, FormClosingEventArgs e) { DataRowView row = shipperBindingSource.Current as DataRowView; if (row.Row.RowState == DataRowState.Modified) saveEdits(); } Thank you. -- Shamil P.S. I must note I rarely work with bound forms and ADO.NET datasets - just my preference but they should be OK in your context of small "quick&dirty" (first version) apps... -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: 20 ?????? 2011 ?. 20:52 To: VBA Subject: [dba-VB] C# Grid: effectively and efficiently handle dirty I am doing C# forms, bound to SQL Server. I dragged and dropped the table out onto the form and C# "installed" the grid as well as a record navigation toolbar. Now I am trying to make sure that data is saved. I have discovered for example that if you edit something and just close the form... no save. Basically no save unless the save button is pressed. Being the anal guy I am, this ain't good enough. I don't want to save after every cell edit, but I do want to save after every row edit or when the form closes. Even this is non-trivial. After browsing the internet and seeing what others are doing (lots of pain expressed), my strategy is to have a RowDirty set by the CellContentsModified but to be honest, things just aren't working as expected. The row leave isn't fired if I sink the CellModified (or something). All I can see for sure is that, while one would expect the row leave to fire if a row is left (makes sense to me) that isn't true and so now I am left with trying to figure out what zany rules exist. So here I am, hat in hand, asking the list "how do you do this"? -- John W. Colby www.ColbyConsulting.com From jwcolby at colbyconsulting.com Thu Jan 20 14:27:14 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 20 Jan 2011 15:27:14 -0500 Subject: [dba-VB] C# Grid: effectively and efficiently handle dirty In-Reply-To: <4C68C4DCE29E417AA4B54C60AB4E4316@nant> References: <4D387659.5010005@colbyconsulting.com> <4C68C4DCE29E417AA4B54C60AB4E4316@nant> Message-ID: <4D389AA2.6050408@colbyconsulting.com> So this saveEdits doesn't do anything if there is no change, but if there is an add, delete or edit then it will correctly store? Works for me. I'll be a testing. Thanks, John W. Colby www.ColbyConsulting.com On 1/20/2011 3:01 PM, Shamil Salakhetdinov wrote: > Hi John -- > > So you use VS2008 (at least) and you have a "datasheet form" - a bound > DataGridView with BindingNavigator bound to ADO.NET dataset etc.? > If yes - BindingNavigator has CurrentChanged event, which if fired as soon > as you move to the other grid's row. > When form is closing FormClosing event is fired: > > private void shipperBindingSource_CurrentChanged(object sender, EventArgs e) > { > saveEdits(); > } > > private void saveEdits() > { > this.Validate(); > this.shipperBindingSource.EndEdit(); > this.tableAdapterManager.UpdateAll(this.northwindNETDataSet1); > } > > private void Form2_FormClosing(object sender, FormClosingEventArgs e) > { > DataRowView row = shipperBindingSource.Current as DataRowView; > if (row.Row.RowState == DataRowState.Modified) saveEdits(); > } > > Thank you. > > -- > Shamil > > P.S. I must note I rarely work with bound forms and ADO.NET datasets - just > my preference but they should be OK in your context of small "quick&dirty" > (first version) apps... > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: 20 ?????? 2011 ?. 20:52 > To: VBA > Subject: [dba-VB] C# Grid: effectively and efficiently handle dirty > > I am doing C# forms, bound to SQL Server. I dragged and dropped the table > out onto the form and C# "installed" the grid as well as a record navigation > toolbar. > > Now I am trying to make sure that data is saved. I have discovered for > example that if you edit something and just close the form... no save. > Basically no save unless the save button is pressed. > > Being the anal guy I am, this ain't good enough. I don't want to save after > every cell edit, but I do want to save after every row edit or when the form > closes. Even this is non-trivial. > > After browsing the internet and seeing what others are doing (lots of pain > expressed), my strategy is to have a RowDirty set by the > CellContentsModified but to be honest, things just aren't working as > expected. The row leave isn't fired if I sink the CellModified (or > something). All I can see for sure is that, while one would expect the row > leave to fire if a row is left (makes sense to me) that isn't true and so > now I am left with trying to figure out what zany rules exist. > > So here I am, hat in hand, asking the list "how do you do this"? > > -- > John W. Colby > www.ColbyConsulting.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From jwcolby at colbyconsulting.com Thu Jan 20 14:29:25 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 20 Jan 2011 15:29:25 -0500 Subject: [dba-VB] C# Grid: effectively and efficiently handle dirty In-Reply-To: <4C68C4DCE29E417AA4B54C60AB4E4316@nant> References: <4D387659.5010005@colbyconsulting.com> <4C68C4DCE29E417AA4B54C60AB4E4316@nant> Message-ID: <4D389B25.4070906@colbyconsulting.com> What does virtual mode do for me? John W. Colby www.ColbyConsulting.com On 1/20/2011 3:01 PM, Shamil Salakhetdinov wrote: > Hi John -- > > So you use VS2008 (at least) and you have a "datasheet form" - a bound > DataGridView with BindingNavigator bound to ADO.NET dataset etc.? > If yes - BindingNavigator has CurrentChanged event, which if fired as soon > as you move to the other grid's row. > When form is closing FormClosing event is fired: > > private void shipperBindingSource_CurrentChanged(object sender, EventArgs e) > { > saveEdits(); > } > > private void saveEdits() > { > this.Validate(); > this.shipperBindingSource.EndEdit(); > this.tableAdapterManager.UpdateAll(this.northwindNETDataSet1); > } > > private void Form2_FormClosing(object sender, FormClosingEventArgs e) > { > DataRowView row = shipperBindingSource.Current as DataRowView; > if (row.Row.RowState == DataRowState.Modified) saveEdits(); > } > > Thank you. > > -- > Shamil > > P.S. I must note I rarely work with bound forms and ADO.NET datasets - just > my preference but they should be OK in your context of small "quick&dirty" > (first version) apps... > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: 20 ?????? 2011 ?. 20:52 > To: VBA > Subject: [dba-VB] C# Grid: effectively and efficiently handle dirty > > I am doing C# forms, bound to SQL Server. I dragged and dropped the table > out onto the form and C# "installed" the grid as well as a record navigation > toolbar. > > Now I am trying to make sure that data is saved. I have discovered for > example that if you edit something and just close the form... no save. > Basically no save unless the save button is pressed. > > Being the anal guy I am, this ain't good enough. I don't want to save after > every cell edit, but I do want to save after every row edit or when the form > closes. Even this is non-trivial. > > After browsing the internet and seeing what others are doing (lots of pain > expressed), my strategy is to have a RowDirty set by the > CellContentsModified but to be honest, things just aren't working as > expected. The row leave isn't fired if I sink the CellModified (or > something). All I can see for sure is that, while one would expect the row > leave to fire if a row is left (makes sense to me) that isn't true and so > now I am left with trying to figure out what zany rules exist. > > So here I am, hat in hand, asking the list "how do you do this"? > > -- > John W. Colby > www.ColbyConsulting.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From jwcolby at colbyconsulting.com Thu Jan 20 14:38:58 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 20 Jan 2011 15:38:58 -0500 Subject: [dba-VB] C# Grid: effectively and efficiently handle dirty In-Reply-To: <4C68C4DCE29E417AA4B54C60AB4E4316@nant> References: <4D387659.5010005@colbyconsulting.com> <4C68C4DCE29E417AA4B54C60AB4E4316@nant> Message-ID: <4D389D62.2090704@colbyconsulting.com> Interesting (and sticky) the form closing does not fire if the main application is closed. I added a saveEdits in the formclosing event (as you indicate) which works if the user clicks the check box in the form that the edit is happening in. IOW edit something then instead of moving to another line, they just close the form. In that case the closing event fires. However that closing event does not fire if the user closes the entire application. Is there a form lostfocus? John W. Colby www.ColbyConsulting.com On 1/20/2011 3:01 PM, Shamil Salakhetdinov wrote: > Hi John -- > > So you use VS2008 (at least) and you have a "datasheet form" - a bound > DataGridView with BindingNavigator bound to ADO.NET dataset etc.? > If yes - BindingNavigator has CurrentChanged event, which if fired as soon > as you move to the other grid's row. > When form is closing FormClosing event is fired: > > private void shipperBindingSource_CurrentChanged(object sender, EventArgs e) > { > saveEdits(); > } > > private void saveEdits() > { > this.Validate(); > this.shipperBindingSource.EndEdit(); > this.tableAdapterManager.UpdateAll(this.northwindNETDataSet1); > } > > private void Form2_FormClosing(object sender, FormClosingEventArgs e) > { > DataRowView row = shipperBindingSource.Current as DataRowView; > if (row.Row.RowState == DataRowState.Modified) saveEdits(); > } > > Thank you. > > -- > Shamil > > P.S. I must note I rarely work with bound forms and ADO.NET datasets - just > my preference but they should be OK in your context of small "quick&dirty" > (first version) apps... > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: 20 ?????? 2011 ?. 20:52 > To: VBA > Subject: [dba-VB] C# Grid: effectively and efficiently handle dirty > > I am doing C# forms, bound to SQL Server. I dragged and dropped the table > out onto the form and C# "installed" the grid as well as a record navigation > toolbar. > > Now I am trying to make sure that data is saved. I have discovered for > example that if you edit something and just close the form... no save. > Basically no save unless the save button is pressed. > > Being the anal guy I am, this ain't good enough. I don't want to save after > every cell edit, but I do want to save after every row edit or when the form > closes. Even this is non-trivial. > > After browsing the internet and seeing what others are doing (lots of pain > expressed), my strategy is to have a RowDirty set by the > CellContentsModified but to be honest, things just aren't working as > expected. The row leave isn't fired if I sink the CellModified (or > something). All I can see for sure is that, while one would expect the row > leave to fire if a row is left (makes sense to me) that isn't true and so > now I am left with trying to figure out what zany rules exist. > > So here I am, hat in hand, asking the list "how do you do this"? > > -- > 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 shamil at smsconsulting.spb.ru Thu Jan 20 15:24:45 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Fri, 21 Jan 2011 00:24:45 +0300 Subject: [dba-VB] C# Grid: effectively and efficiently handle dirty In-Reply-To: <4D389D62.2090704@colbyconsulting.com> References: <4D387659.5010005@colbyconsulting.com><4C68C4DCE29E417AA4B54C60AB4E4316@nant> <4D389D62.2090704@colbyconsulting.com> Message-ID: <1609C9C0463040199A65681DE2B7F675@nant> Hi John, There is a Deactivate event for Form object. Actually a System.Windows.Forms.Form has "more event types one can imagine" - at least many of them are so weird for me - I have never used probably 95% of .NET WinForms and controls events... :) Try to KISS it now John. At least on first pass. What you have to do now is to create the main "meat" part of your app - all forms. You'd better generalize/make all the tricks later - it's so easy to make (if needed) a generic form class inheriting from System.Windows.Forms.Form class etc. and then use that class for all the relevant custom forms... And you can't do it right this first time - it's more important to "get your hands wet" with that stuff - the more you'll do mechanically now - the better (IMO) - the easier and the quicker you'll get all that stuff refactored later... But as you're a seasoned professional with DB modeliing etc. - try to make that part 99% right now.. - that will help a lot on the subsequent refactoring steps... <<< > After browsing the internet and seeing what others are doing (lots of pain expressed), >>> That are beginners very probably - there shouldn't be that much pain when doing .NET System.Windows.Forms development. But when one is a beginner with WinForms - everything looks so complicated because of the volume of information to get through, and because of the project deadline stress... Thank you. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: 20 ?????? 2011 ?. 23:39 To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] C# Grid: effectively and efficiently handle dirty Interesting (and sticky) the form closing does not fire if the main application is closed. I added a saveEdits in the formclosing event (as you indicate) which works if the user clicks the check box in the form that the edit is happening in. IOW edit something then instead of moving to another line, they just close the form. In that case the closing event fires. However that closing event does not fire if the user closes the entire application. Is there a form lostfocus? John W. Colby www.ColbyConsulting.com On 1/20/2011 3:01 PM, Shamil Salakhetdinov wrote: > Hi John -- > > So you use VS2008 (at least) and you have a "datasheet form" - a bound > DataGridView with BindingNavigator bound to ADO.NET dataset etc.? > If yes - BindingNavigator has CurrentChanged event, which if fired as > soon as you move to the other grid's row. > When form is closing FormClosing event is fired: > > private void shipperBindingSource_CurrentChanged(object sender, > EventArgs e) { > saveEdits(); > } > > private void saveEdits() > { > this.Validate(); > this.shipperBindingSource.EndEdit(); > this.tableAdapterManager.UpdateAll(this.northwindNETDataSet1); > } > > private void Form2_FormClosing(object sender, FormClosingEventArgs e) > { > DataRowView row = shipperBindingSource.Current as DataRowView; > if (row.Row.RowState == DataRowState.Modified) saveEdits(); } > > Thank you. > > -- > Shamil > > P.S. I must note I rarely work with bound forms and ADO.NET datasets - > just my preference but they should be OK in your context of small "quick&dirty" > (first version) apps... > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: 20 ?????? 2011 ?. 20:52 > To: VBA > Subject: [dba-VB] C# Grid: effectively and efficiently handle dirty > > I am doing C# forms, bound to SQL Server. I dragged and dropped the > table out onto the form and C# "installed" the grid as well as a > record navigation toolbar. > > Now I am trying to make sure that data is saved. I have discovered > for example that if you edit something and just close the form... no save. > Basically no save unless the save button is pressed. > > Being the anal guy I am, this ain't good enough. I don't want to save > after every cell edit, but I do want to save after every row edit or > when the form closes. Even this is non-trivial. > > After browsing the internet and seeing what others are doing (lots of > pain expressed), my strategy is to have a RowDirty set by the > CellContentsModified but to be honest, things just aren't working as > expected. The row leave isn't fired if I sink the CellModified (or > something). All I can see for sure is that, while one would expect > the row leave to fire if a row is left (makes sense to me) that isn't > true and so now I am left with trying to figure out what zany rules exist. > > So here I am, hat in hand, asking the list "how do you do this"? > From shamil at smsconsulting.spb.ru Fri Jan 21 10:33:50 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Fri, 21 Jan 2011 19:33:50 +0300 Subject: [dba-VB] "Smart" fulltext search on large documents (data)base... Message-ID: <54C40F764B3B4CBB812589E1808149DD@nant> Hi All -- I have a task to implement a system providing "smart" fulltext search over a large base of text documents. My current plan is to use Google Docs. I plan to get in the future 80 GB ($20.00 USD per year) hosted space on GoogleDocs, put all the subject docs there, and then use Google API to search via my documents base. That seems to be it? It should be even possible to create a simple (free?) Google Web Site as front-end to that GoogleDocs documents base? That GoogleDocs base/site is planned to be used by non-profit organization. Am I missing something? Additional overhead costs to keep that solution's stuff on Google site? And why I'm writing about that solution here in dba-VBA? - because I plan to implement a front-end to that application system as an WinForms application coomunicating with Windows API... Thank you. -- Shamil From jwcolby at colbyconsulting.com Sat Jan 22 10:16:02 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 22 Jan 2011 11:16:02 -0500 Subject: [dba-VB] How do I troubleshoot SQL Server Security Message-ID: <4D3B02C2.1010909@colbyconsulting.com> What I want to do: Create an instance of SQL Server running on a specific server, and somehow magically allow a specific set of users logged in to the "system" (not necessarily that server) to access the server. AFAIK Users log in to Active Directory. I do not use Active Directory on my home / business network and do not really understand how it works. In any event it appears that I am going to have to use Active Directory in the SQL Server login? What I tried to do: On the server (windows 2000) I: 1) Created a windows security group DISUsers 2) Added most of the normal users of the computer, all of which will use the SQL Server 2005 Express database, including my user. 3) In SQL Server 2005 Express SSMS at the server level I clicked security login 4) I created a login DiscoServer and I assigned that to the group DiscoSvr\DiscoUsers 5) I checked that the login had the public server role (and only that role) 6) I went into the DISCO database and clickde SDecurity / Users 7) I created a DiscoUsers user assigned to the DiscoSvr\DiscoUsers object (group) 7) I checked the Role members db_DataReader and db_DataWriter I saved all of the above. I then go to my workstation, log in, open ssms and select DiscoSvr\SQLExpress. I can see the database object and I can see a + symbol but if I try to expand the database to see the objects I get a very generic error message "DispecLLC\jcolby is not able to access the database "Disco" under the current Security Context: SQL Server Error 916" I do not understand network security, but AFAICT what is happening is that I am logging in to a network (Active Directory) login (which all users do) but I have just set up SQL Server on that server to use a group / users specific to that server. So is it possible to use a similar method to manipulate SQL Server with active directory groups / users? How is that done. -- John W. Colby www.ColbyConsulting.com From dw-murphy at cox.net Sat Jan 22 11:56:20 2011 From: dw-murphy at cox.net (Doug Murphy) Date: Sat, 22 Jan 2011 09:56:20 -0800 Subject: [dba-VB] "Smart" fulltext search on large documents (data)base... In-Reply-To: <54C40F764B3B4CBB812589E1808149DD@nant> References: <54C40F764B3B4CBB812589E1808149DD@nant> Message-ID: <8FA20A84C52943F49C1F87D8D6AD549B@murphy3234aaf1> Shamil, Very innovative approach. Good use of the low cost and high power offered by the "Cloud" services. I'll be interested in how this comes out. Doug -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Friday, January 21, 2011 8:34 AM To: 'Discussion concerning Visual Basic and related programming issues.' Subject: [dba-VB] "Smart" fulltext search on large documents (data)base... Hi All -- I have a task to implement a system providing "smart" fulltext search over a large base of text documents. My current plan is to use Google Docs. I plan to get in the future 80 GB ($20.00 USD per year) hosted space on GoogleDocs, put all the subject docs there, and then use Google API to search via my documents base. That seems to be it? It should be even possible to create a simple (free?) Google Web Site as front-end to that GoogleDocs documents base? That GoogleDocs base/site is planned to be used by non-profit organization. Am I missing something? Additional overhead costs to keep that solution's stuff on Google site? And why I'm writing about that solution here in dba-VBA? - because I plan to implement a front-end to that application system as an WinForms application coomunicating with Windows API... Thank you. -- Shamil _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Sat Jan 22 13:50:04 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 22 Jan 2011 14:50:04 -0500 Subject: [dba-VB] Edit the source for a dataset Message-ID: <4D3B34EC.3030309@colbyconsulting.com> I created a dataset using the wizard, to connect to a SQL Server instance. When I did so I told it to connect to the Hamachi IP address rather than the Virtual Machine name. When I clicked OK it translated the Hamachi IP to the VM name. Very helpful (not). I have to go back out for another "Arby's test" but if I were to want to specify the name of the server, how do I do so? I am not finding a connection property or anything like it. Where is that stuff? -- John W. Colby www.ColbyConsulting.com From shamil at smsconsulting.spb.ru Sat Jan 22 14:52:34 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sat, 22 Jan 2011 23:52:34 +0300 Subject: [dba-VB] "Smart" fulltext search on large documents(data)base... In-Reply-To: <8FA20A84C52943F49C1F87D8D6AD549B@murphy3234aaf1> References: <54C40F764B3B4CBB812589E1808149DD@nant> <8FA20A84C52943F49C1F87D8D6AD549B@murphy3234aaf1> Message-ID: <31B0AA2D51EB42149AEDF4396BDFF406@nant> Hi Doug -- Thank you for your feedback/interest. I plan to implement a simple WinForms client next week using Google API + Google Docs. I have got already loaded 1000+ docs on my free GoogleDocs account and I have checked how full-text search is working with that stuff when used from within browser. It works well although when a document is found the words are not highlighted - I thought about making not only Google API/Google Docs + WinForms Client but also a Browser control embedded into a WinForm to simplify browsing of found results. Because of the lack of automatic highlighting of the search target words that solution looks a bit problematic now - I will probably have to implement also custom highlighting within browsing control - some DOM programming will be needed probably.. Thank you. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Doug Murphy Sent: 22 ?????? 2011 ?. 20:56 To: 'Discussion concerning Visual Basic and related programming issues.' Subject: Re: [dba-VB] "Smart" fulltext search on large documents(data)base... Shamil, Very innovative approach. Good use of the low cost and high power offered by the "Cloud" services. I'll be interested in how this comes out. Doug -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Friday, January 21, 2011 8:34 AM To: 'Discussion concerning Visual Basic and related programming issues.' Subject: [dba-VB] "Smart" fulltext search on large documents (data)base... Hi All -- I have a task to implement a system providing "smart" fulltext search over a large base of text documents. My current plan is to use Google Docs. I plan to get in the future 80 GB ($20.00 USD per year) hosted space on GoogleDocs, put all the subject docs there, and then use Google API to search via my documents base. That seems to be it? It should be even possible to create a simple (free?) Google Web Site as front-end to that GoogleDocs documents base? That GoogleDocs base/site is planned to be used by non-profit organization. Am I missing something? Additional overhead costs to keep that solution's stuff on Google site? And why I'm writing about that solution here in dba-VBA? - because I plan to implement a front-end to that application system as an WinForms application coomunicating with Windows API... 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 jwcolby at colbyconsulting.com Sat Jan 22 15:01:34 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 22 Jan 2011 16:01:34 -0500 Subject: [dba-VB] C# Connecting to the database (or not as the case may be) Message-ID: <4D3B45AE.3070302@colbyconsulting.com> I am sitting in the local Arby's doing more connection tests back into my home/office vmDev / PrisonMinistries database. Access 2003 connects *instantly*. Admittedly small tables snap open, edits save *instantly*. SSMS connects but not quickly. I can view the database, see tables and all that. Opening the tables takes 6 seconds. C# times out after 15 seconds when just trying to "preview" the data directly in the dataset in the left hand pane. Trying to open a form bound to the table times out after approximately 45 seconds. As I mentioned earlier, when setting up the Access database I found somewhere that I needed to use the Hamachi IP address when making the dsn which I did. SSMS is connecting in to that same Hamachi name. The C# (2008) project "translated" the ip address to the name "vmDev", and I am not finding where the connection information is stored for that dataset. I created a brand new dataset with the connection set back to the Hamachi IP and voila, the dataset can see the data. Found where the connection is kept (properties of the project) and discovered that yep, it had *three* connect strings now, the last of which was directly referencing the IP address. Got rid of all but that one, and now the bound form snaps open as quickly as the Access db did. I think what was going was the the form was trying the first which just plain didn't work, and timed out on that before moving on to the next one etc. Now that I only have one, and it references the IP, all if good in my world. Much still to learn but at least I can connect a bound (small recordset) list form directly to a list table and the form "snaps open" from the Arby's restaurant. -- John W. Colby www.ColbyConsulting.com From shamil at smsconsulting.spb.ru Sat Jan 22 15:17:22 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sun, 23 Jan 2011 00:17:22 +0300 Subject: [dba-VB] Edit the source for a dataset In-Reply-To: <4D3B34EC.3030309@colbyconsulting.com> References: <4D3B34EC.3030309@colbyconsulting.com> Message-ID: <2A89BEDE599A4493B5385FEA784C8FEA@nant> Hi John -- Connection information is stored in app.config file, which gets named by VS as {ApplicationExecutableFileExtName}.config for deployment, e.g. MyTestApplication.exe.config When the app is deployed you can edit this XML text file's manually before you start your app. While within VS you can edit connection string value via: Select VS project in Solution Explorer -> Right-Click -> Properties -> Settings Thank you. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: 22 ?????? 2011 ?. 22:50 To: VBA Subject: [dba-VB] Edit the source for a dataset I created a dataset using the wizard, to connect to a SQL Server instance. When I did so I told it to connect to the Hamachi IP address rather than the Virtual Machine name. When I clicked OK it translated the Hamachi IP to the VM name. Very helpful (not). I have to go back out for another "Arby's test" but if I were to want to specify the name of the server, how do I do so? I am not finding a connection property or anything like it. Where is that stuff? -- John W. Colby www.ColbyConsulting.com From jwcolby at colbyconsulting.com Mon Jan 24 09:50:25 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 24 Jan 2011 10:50:25 -0500 Subject: [dba-VB] Report wizard / viewer Message-ID: <4D3D9FC1.60607@colbyconsulting.com> I am building databases in C# now and am reaching the point where I have to think about reports. I see the report wizard and report viewer object. Are you guys using this? Is this crystal reports in a wrapper or something? Easy, hard? Things I need to know as I start using this thing? TIA, -- John W. Colby www.ColbyConsulting.com From df.waters at comcast.net Mon Jan 24 09:55:04 2011 From: df.waters at comcast.net (Dan Waters) Date: Mon, 24 Jan 2011 09:55:04 -0600 Subject: [dba-VB] Report wizard / viewer In-Reply-To: <4D3D9FC1.60607@colbyconsulting.com> References: <4D3D9FC1.60607@colbyconsulting.com> Message-ID: <9681DFA1BEA7427DBE22EA027CBBC6B1@DanWaters> I looked at reports for a while and decided to use Report Server in SQL Server 2008 R2. They have more features than in SQL Server 2008, and are free. So you don't have to deal with Crystal Reports licensing questions or issues. I don't have experience with this yet, nor have I used Crystal Reports. You install Report Server when you install SQL Server, or you can install Report Server at some point later. Dan -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Monday, January 24, 2011 9:50 AM To: VBA Subject: [dba-VB] Report wizard / viewer I am building databases in C# now and am reaching the point where I have to think about reports. I see the report wizard and report viewer object. Are you guys using this? Is this crystal reports in a wrapper or something? Easy, hard? Things I need to know as I start using this thing? TIA, -- John W. Colby www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Mon Jan 24 10:19:09 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 24 Jan 2011 11:19:09 -0500 Subject: [dba-VB] Report wizard / viewer In-Reply-To: <9681DFA1BEA7427DBE22EA027CBBC6B1@DanWaters> References: <4D3D9FC1.60607@colbyconsulting.com> <9681DFA1BEA7427DBE22EA027CBBC6B1@DanWaters> Message-ID: <4D3DA67D.9020203@colbyconsulting.com> This is a "canned" application that will run on a user's machine out in the world somewhere. As such whatever it does it needs to be part of the C# / .Net run-time package for the application. John W. Colby www.ColbyConsulting.com On 1/24/2011 10:55 AM, Dan Waters wrote: > I looked at reports for a while and decided to use Report Server in SQL > Server 2008 R2. They have more features than in SQL Server 2008, and are > free. So you don't have to deal with Crystal Reports licensing questions or > issues. I don't have experience with this yet, nor have I used Crystal > Reports. > > You install Report Server when you install SQL Server, or you can install > Report Server at some point later. > > Dan > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Monday, January 24, 2011 9:50 AM > To: VBA > Subject: [dba-VB] Report wizard / viewer > > I am building databases in C# now and am reaching the point where I have to > think about reports. I > see the report wizard and report viewer object. Are you guys using this? > Is this crystal reports > in a wrapper or something? Easy, hard? Things I need to know as I start > using this thing? > > TIA, > From shamil at smsconsulting.spb.ru Mon Jan 24 10:55:35 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Mon, 24 Jan 2011 19:55:35 +0300 Subject: [dba-VB] Report wizard / viewer In-Reply-To: <4D3D9FC1.60607@colbyconsulting.com> References: <4D3D9FC1.60607@colbyconsulting.com> Message-ID: Hi John -- You can use MS ReportViewer Control. It's free. But it has to be isntalled additionally to .NET Framework on client's systems. Installation takes a few seconds. Be prepared to spend some time to understand its reporting design/process - it's different from MS Access, or Crystal Reports, ... - but it's quite powerful when you'll get used to use it. To make it easy this first time your can try to make your reports' queries as powerful as possible to leave MS ReportViewer Control only rendering/totalling tasks... MS ReportViewer Control info http://gotreportviewer.com/ MS ReportViewer Control - samples http://northwind.codeplex.com/releases/view/26600 http://northwind.codeplex.com/releases/view/26600#DownloadId=192044 MS ReportViewer Control - samples - in action http://shamils-19.hosting.parking.ru/nw4/ Report Builder 3.0 info (I haven't used it yet ...) http://msdn.microsoft.com/en-us/library/dd207008.aspx Thank you. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: 24 ?????? 2011 ?. 18:50 To: VBA Subject: [dba-VB] Report wizard / viewer I am building databases in C# now and am reaching the point where I have to think about reports. I see the report wizard and report viewer object. Are you guys using this? Is this crystal reports in a wrapper or something? Easy, hard? Things I need to know as I start using this thing? TIA, -- 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 bill_patten at embarqmail.com Mon Jan 24 11:50:48 2011 From: bill_patten at embarqmail.com (Bill Patten) Date: Mon, 24 Jan 2011 09:50:48 -0800 Subject: [dba-VB] Report wizard / viewer In-Reply-To: <4D3DA67D.9020203@colbyconsulting.com> References: <4D3D9FC1.60607@colbyconsulting.com><9681DFA1BEA7427DBE22EA027CBBC6B1@DanWaters> <4D3DA67D.9020203@colbyconsulting.com> Message-ID: ?John, This site has lots of information about VS.2010 Report Viewer, I'm sure much of it applies to 2008 if that is what you are using. As Shamil, say's it is certainly different than Access but the price is right. HTH Bill -------------------------------------------------- From: "jwcolby" Sent: Monday, January 24, 2011 8:19 AM To: ; "Discussion concerning Visual Basic and related programming issues." Subject: Re: [dba-VB] Report wizard / viewer This is a "canned" application that will run on a user's machine out in the world somewhere. As such whatever it does it needs to be part of the C# / .Net run-time package for the application. John W. Colby www.ColbyConsulting.com On 1/24/2011 10:55 AM, Dan Waters wrote: > I looked at reports for a while and decided to use Report Server in SQL > Server 2008 R2. They have more features than in SQL Server 2008, and are > free. So you don't have to deal with Crystal Reports licensing questions > or > issues. I don't have experience with this yet, nor have I used Crystal > Reports. > > You install Report Server when you install SQL Server, or you can install > Report Server at some point later. > > Dan > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Monday, January 24, 2011 9:50 AM > To: VBA > Subject: [dba-VB] Report wizard / viewer > > I am building databases in C# now and am reaching the point where I have > to > think about reports. I > see the report wizard and report viewer object. Are you guys using this? > Is this crystal reports > in a wrapper or something? Easy, hard? Things I need to know as I start > using this thing? > > TIA, > _______________________________________________ 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 Tue Jan 25 10:33:14 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Tue, 25 Jan 2011 19:33:14 +0300 Subject: [dba-VB] Non-blocking loading of a DataGridview using source MS Access table with 120, 000+ rows.... Message-ID: Hi All -- I have a .NET WinForm app with a DataGridView bound to an ADO.NET dataset getting data from MS Access/JET backend table. And I'd like to have my WinForm beeing *non-blocked* while loading that DataGridView with 120,000+ rows from an MS Access backend table. I do fire DataGridView data loading via TimerControl Tick event then run it via BackgroundWorker, I do use SuspendLayout etc. still as far as I see WinForm gets blocked for several seconds: - first when dataset's rows are retrieved, - second when DataGridView gets bound to retrieved dataset. Do you know about/have you seen somewhere any tricks how to make such a large data set loading non-blocking WinForm? It's not a big issue after all - I just wanted to make it working even more smoothly than it does work now - somehow like MS Access datasheets when they load data asynchronously... Of course using 120,000+ rows for a DataGridView is a questionable solution but that's a customer requirement: that much records they get in an year (then they archive/clear backend table and start from scratch) - and filtering that 120,000+ rows when they are loading happens almost instantly - so the only issue is initial loading/refreshing - the latter doesn't happen often... Thank you. -- Shamil From Gustav at cactus.dk Wed Jan 26 04:03:24 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 26 Jan 2011 11:03:24 +0100 Subject: [dba-VB] Non-blocking loading of a DataGridview using source MS Access table with 120, 000+ rows.... Message-ID: Hi Shamil If "several seconds" is the time it takes to read the data from the Access database, it has to happen. And you do so in the background in a separate thread when you open the form and expect the form to be "live" while that happens. However, the form is dimmed or non-responsive until data has been loaded. Couldn't you try - when you open the form - to fill the DataGridView with one or few dummy records and then - when data is loaded - to switch to the real source? However, if this function is used only rarely and the retrieval only lasts for some seconds, I think I would just pop a message box: Please wait ... /gustav >>> shamil at smsconsulting.spb.ru 25-01-2011 17:33 >>> Hi All -- I have a .NET WinForm app with a DataGridView bound to an ADO.NET dataset getting data from MS Access/JET backend table. And I'd like to have my WinForm beeing *non-blocked* while loading that DataGridView with 120,000+ rows from an MS Access backend table. I do fire DataGridView data loading via TimerControl Tick event then run it via BackgroundWorker, I do use SuspendLayout etc. still as far as I see WinForm gets blocked for several seconds: - first when dataset's rows are retrieved, - second when DataGridView gets bound to retrieved dataset. Do you know about/have you seen somewhere any tricks how to make such a large data set loading non-blocking WinForm? It's not a big issue after all - I just wanted to make it working even more smoothly than it does work now - somehow like MS Access datasheets when they load data asynchronously... Of course using 120,000+ rows for a DataGridView is a questionable solution but that's a customer requirement: that much records they get in an year (then they archive/clear backend table and start from scratch) - and filtering that 120,000+ rows when they are loading happens almost instantly - so the only issue is initial loading/refreshing - the latter doesn't happen often... Thank you. -- Shamil From shamil at smsconsulting.spb.ru Wed Jan 26 05:50:23 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Wed, 26 Jan 2011 14:50:23 +0300 Subject: [dba-VB] Non-blocking loading of a DataGridview using source MSAccess table with 120, 000+ rows.... In-Reply-To: References: Message-ID: Hi Gustav -- <<< Couldn't you try - when you open the form - to fill the DataGridView with one or few dummy records and then - when data is loaded - to switch to the real source? >>> Yes, this is what I'm doing: - 1) when a tab with datagridview is activated a user sees a message: "Loading grid's data rows..."; - 2) background(Worker) thread is started, which fills (via dataAdapter) a dataset which is not yet bound to the datagridview; - 3) when thread finished asynchnously it binds datagridview to the filled dataset using boundDataSource; Note: all the time while loading happens DataGridView is invisible and it only set to visible + ResumeLayout(false) + PerformLayout() when the data gets bound. Form becomes non-responsive for a while both on step 2 and step 3. I'm not that surprised about (3) but why loading large dataset in background worker thread should block form for a while - that's unclear here... <<< However, if this function is used only rarely and the retrieval only lasts for some seconds, I think I would just pop a message box: Please wait ... >>> Yes, that what happens now - but I wanted to make it more smooth in the future if possible... 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: 26 ?????? 2011 ?. 13:03 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Non-blocking loading of a DataGridview using source MSAccess table with 120, 000+ rows.... Hi Shamil If "several seconds" is the time it takes to read the data from the Access database, it has to happen. And you do so in the background in a separate thread when you open the form and expect the form to be "live" while that happens. However, the form is dimmed or non-responsive until data has been loaded. Couldn't you try - when you open the form - to fill the DataGridView with one or few dummy records and then - when data is loaded - to switch to the real source? However, if this function is used only rarely and the retrieval only lasts for some seconds, I think I would just pop a message box: Please wait ... /gustav >>> shamil at smsconsulting.spb.ru 25-01-2011 17:33 >>> Hi All -- I have a .NET WinForm app with a DataGridView bound to an ADO.NET dataset getting data from MS Access/JET backend table. And I'd like to have my WinForm beeing *non-blocked* while loading that DataGridView with 120,000+ rows from an MS Access backend table. I do fire DataGridView data loading via TimerControl Tick event then run it via BackgroundWorker, I do use SuspendLayout etc. still as far as I see WinForm gets blocked for several seconds: - first when dataset's rows are retrieved, - second when DataGridView gets bound to retrieved dataset. Do you know about/have you seen somewhere any tricks how to make such a large data set loading non-blocking WinForm? It's not a big issue after all - I just wanted to make it working even more smoothly than it does work now - somehow like MS Access datasheets when they load data asynchronously... Of course using 120,000+ rows for a DataGridView is a questionable solution but that's a customer requirement: that much records they get in an year (then they archive/clear backend table and start from scratch) - and filtering that 120,000+ rows when they are loading happens almost instantly - so the only issue is initial loading/refreshing - the latter doesn't happen often... 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 Wed Jan 26 06:32:43 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 26 Jan 2011 13:32:43 +0100 Subject: [dba-VB] Non-blocking loading of a DataGridview using source MSAccess table with 120, 000+ rows. Message-ID: Hi Shamil As you describe it, it is exactly what I would do and expect. I have no explanation for why step 2 should set the DataGridView on hold ... /gustav >>> shamil at smsconsulting.spb.ru 26-01-2011 12:50 >>> Hi Gustav -- <<< Couldn't you try - when you open the form - to fill the DataGridView with one or few dummy records and then - when data is loaded - to switch to the real source? >>> Yes, this is what I'm doing: - 1) when a tab with datagridview is activated a user sees a message: "Loading grid's data rows..."; - 2) background(Worker) thread is started, which fills (via dataAdapter) a dataset which is not yet bound to the datagridview; - 3) when thread finished asynchnously it binds datagridview to the filled dataset using boundDataSource; Note: all the time while loading happens DataGridView is invisible and it only set to visible + ResumeLayout(false) + PerformLayout() when the data gets bound. Form becomes non-responsive for a while both on step 2 and step 3. I'm not that surprised about (3) but why loading large dataset in background worker thread should block form for a while - that's unclear here... <<< However, if this function is used only rarely and the retrieval only lasts for some seconds, I think I would just pop a message box: Please wait ... >>> Yes, that what happens now - but I wanted to make it more smooth in the future if possible... 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: 26 ?????? 2011 ?. 13:03 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Non-blocking loading of a DataGridview using source MSAccess table with 120, 000+ rows.... Hi Shamil If "several seconds" is the time it takes to read the data from the Access database, it has to happen. And you do so in the background in a separate thread when you open the form and expect the form to be "live" while that happens. However, the form is dimmed or non-responsive until data has been loaded. Couldn't you try - when you open the form - to fill the DataGridView with one or few dummy records and then - when data is loaded - to switch to the real source? However, if this function is used only rarely and the retrieval only lasts for some seconds, I think I would just pop a message box: Please wait ... /gustav >>> shamil at smsconsulting.spb.ru 25-01-2011 17:33 >>> Hi All -- I have a .NET WinForm app with a DataGridView bound to an ADO.NET dataset getting data from MS Access/JET backend table. And I'd like to have my WinForm beeing *non-blocked* while loading that DataGridView with 120,000+ rows from an MS Access backend table. I do fire DataGridView data loading via TimerControl Tick event then run it via BackgroundWorker, I do use SuspendLayout etc. still as far as I see WinForm gets blocked for several seconds: - first when dataset's rows are retrieved, - second when DataGridView gets bound to retrieved dataset. Do you know about/have you seen somewhere any tricks how to make such a large data set loading non-blocking WinForm? It's not a big issue after all - I just wanted to make it working even more smoothly than it does work now - somehow like MS Access datasheets when they load data asynchronously... Of course using 120,000+ rows for a DataGridView is a questionable solution but that's a customer requirement: that much records they get in an year (then they archive/clear backend table and start from scratch) - and filtering that 120,000+ rows when they are loading happens almost instantly - so the only issue is initial loading/refreshing - the latter doesn't happen often... Thank you. -- Shamil From michael at ddisolutions.com.au Wed Jan 26 19:39:00 2011 From: michael at ddisolutions.com.au (Michael Maddison) Date: Thu, 27 Jan 2011 12:39:00 +1100 Subject: [dba-VB] WebMatrix Anyone? Message-ID: <99266C61B516644D9727F983FAFAB4650468EE@remote.ddisolutions.com.au> This looks useful to me. What do those who do a lot of web dev think? I don't do much myself... http://www.microsoft.com/web/enter/?WT.mc_id=aff-f-us-wag-WM-Audience cheers Michael M From ebarro at roadrunner.com Wed Jan 26 20:34:06 2011 From: ebarro at roadrunner.com (Eric Barro) Date: Wed, 26 Jan 2011 18:34:06 -0800 Subject: [dba-VB] WebMatrix Anyone? In-Reply-To: <99266C61B516644D9727F983FAFAB4650468EE@remote.ddisolutions.com.au> References: <99266C61B516644D9727F983FAFAB4650468EE@remote.ddisolutions.com.au> Message-ID: <054701cbbdca$abd6b6d0$03842470$@com> This is a rehash of their original WebMatrix version 1.0 back in the .NET 1.0 days. It was the pre-cursor to VS.NET. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Michael Maddison Sent: Wednesday, January 26, 2011 5:39 PM To: Discussion concerning Visual Basic and related programming issues. Subject: [dba-VB] WebMatrix Anyone? This looks useful to me. What do those who do a lot of web dev think? I don't do much myself... http://www.microsoft.com/web/enter/?WT.mc_id=aff-f-us-wag-WM-Audience cheers Michael M _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From michael at ddisolutions.com.au Wed Jan 26 20:48:15 2011 From: michael at ddisolutions.com.au (Michael Maddison) Date: Thu, 27 Jan 2011 13:48:15 +1100 Subject: [dba-VB] WebMatrix Anyone? References: <99266C61B516644D9727F983FAFAB4650468EE@remote.ddisolutions.com.au> <054701cbbdca$abd6b6d0$03842470$@com> Message-ID: <99266C61B516644D9727F983FAFAB4650468EF@remote.ddisolutions.com.au> Yeah, I kinda remember. This is new though (I think?). It's aimed at the scripting level rather than ASP.Net I think. Has links to 41 open source CMS and other app's built in. Includes IDE support for PHP, DNN, Joomla, PayPal etc. Anyone tried Razor yet? Cheers Michael M From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Thursday, 27 January 2011 1:34 PM To: 'Discussion concerning Visual Basic and related programming issues.' Subject: Re: [dba-VB] WebMatrix Anyone? This is a rehash of their original WebMatrix version 1.0 back in the .NET 1.0 days. It was the pre-cursor to VS.NET. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Michael Maddison Sent: Wednesday, January 26, 2011 5:39 PM To: Discussion concerning Visual Basic and related programming issues. Subject: [dba-VB] WebMatrix Anyone? This looks useful to me. What do those who do a lot of web dev think? I don't do much myself... http://www.microsoft.com/web/enter/?WT.mc_id=aff-f-us-wag-WM-Audience cheers Michael M _______________________________________________ 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 ________________________________ No virus found in this message. Checked by AVG - www.avg.com Version: 10.0.1204 / Virus Database: 1435/3404 - Release Date: 01/26/11 From accessd at shaw.ca Wed Jan 26 21:03:12 2011 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 26 Jan 2011 19:03:12 -0800 Subject: [dba-VB] WebMatrix Anyone? In-Reply-To: <99266C61B516644D9727F983FAFAB4650468EE@remote.ddisolutions.com.au> References: <99266C61B516644D9727F983FAFAB4650468EE@remote.ddisolutions.com.au> Message-ID: Gasp, another program of worthy note...some more to learn. It has a 1.5 hour presentation just to introduce the app. You first. ;-) Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Michael Maddison Sent: Wednesday, January 26, 2011 5:39 PM To: Discussion concerning Visual Basic and related programming issues. Subject: [dba-VB] WebMatrix Anyone? This looks useful to me. What do those who do a lot of web dev think? I don't do much myself... http://www.microsoft.com/web/enter/?WT.mc_id=aff-f-us-wag-WM-Audience cheers Michael M _______________________________________________ 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 Thu Jan 27 06:27:35 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Thu, 27 Jan 2011 15:27:35 +0300 Subject: [dba-VB] Working on an Internet Shop - what is the usual official way to get good pictures of customers' goods for such a shop? Message-ID: <4EC4D1458C794247BAECEF4A1E93CB2D@nant> Hi All -- It's a bit off-topic but it's about ASP.NET driven Internet shop I'm working here on now. The customer is a small company, and it's its first attempt to start selling customers' goods on Internet. The current issue is to make customers' goods photos for this shop - to make them by themselves here or hire good photogrpahs - that's not possible not because of financial issues but because of the way this company sells the goods - many of them are never kept on the stores so it's not possible to make good pictures of that goods right now. And the current intention is to make this shop released ASAP: we use good "out-of-the-box" Internet shop ASP.NET solution. What is the usual official way to get that pictures? I guess that most of the well known brands (that shop is for tennis shoes, clothes, equipment...) do currently have ready to use pics for their customer goods. How to get that pictures officially? What is the usual cost for such a customers good pictures' set for one year models, for, say, Babolat, Nike, Head, ...? Thank you. -- Shamil From Gustav at cactus.dk Thu Jan 27 09:09:54 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 27 Jan 2011 16:09:54 +0100 Subject: [dba-VB] Working on an Internet Shop - what is the usual official way to get good pictures of custom Message-ID: Hi Shamil Pictures typically origin from the supplier/manufacturer as a part of his marketing support. /gustav >>> shamil at smsconsulting.spb.ru 27-01-2011 13:27 >>> Hi All -- It's a bit off-topic but it's about ASP.NET driven Internet shop I'm working here on now. The customer is a small company, and it's its first attempt to start selling customers' goods on Internet. The current issue is to make customers' goods photos for this shop - to make them by themselves here or hire good photogrpahs - that's not possible not because of financial issues but because of the way this company sells the goods - many of them are never kept on the stores so it's not possible to make good pictures of that goods right now. And the current intention is to make this shop released ASAP: we use good "out-of-the-box" Internet shop ASP.NET solution. What is the usual official way to get that pictures? I guess that most of the well known brands (that shop is for tennis shoes, clothes, equipment...) do currently have ready to use pics for their customer goods. How to get that pictures officially? What is the usual cost for such a customers good pictures' set for one year models, for, say, Babolat, Nike, Head, ...? Thank you. -- Shamil From shamil at smsconsulting.spb.ru Thu Jan 27 09:22:27 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Thu, 27 Jan 2011 18:22:27 +0300 Subject: [dba-VB] Working on an Internet Shop - what is theusual official way to get good pictures of custom In-Reply-To: References: Message-ID: <921D7A17F10347559FFF4A9F04F42B62@nant> Hi Gustav -- Thank you for your reply. When you write typically - do you mean your own experience or experience of the other developers you're contacting with there? I'm also thinking that pictures should come from supplier/manufacturer especially for official dealers - they should for the new/additional options/opportunities to get their stuff sold/distributed. But my customer doesn't have such pictures - they just have .pdf or .ppt(x) (MS PowerPoint) catalogs. These are high quality catalogs with very good pics - so the supplier/manufacturer does have all the needed for an Internet shop stuff, and that shop will sell their (supplier/manufacturer) consumer goods... Not sure how to query them to get that catalogs' source pics to use them on Internet shop... I have written a short "enquire for pics" message to Babolat international offices through their site already - we will see will they react at all.. 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: 27 ?????? 2011 ?. 18:10 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Working on an Internet Shop - what is theusual official way to get good pictures of custom Hi Shamil Pictures typically origin from the supplier/manufacturer as a part of his marketing support. /gustav >>> shamil at smsconsulting.spb.ru 27-01-2011 13:27 >>> Hi All -- It's a bit off-topic but it's about ASP.NET driven Internet shop I'm working here on now. The customer is a small company, and it's its first attempt to start selling customers' goods on Internet. The current issue is to make customers' goods photos for this shop - to make them by themselves here or hire good photogrpahs - that's not possible not because of financial issues but because of the way this company sells the goods - many of them are never kept on the stores so it's not possible to make good pictures of that goods right now. And the current intention is to make this shop released ASAP: we use good "out-of-the-box" Internet shop ASP.NET solution. What is the usual official way to get that pictures? I guess that most of the well known brands (that shop is for tennis shoes, clothes, equipment...) do currently have ready to use pics for their customer goods. How to get that pictures officially? What is the usual cost for such a customers good pictures' set for one year models, for, say, Babolat, Nike, Head, ...? 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 Thu Jan 27 09:56:31 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 27 Jan 2011 16:56:31 +0100 Subject: [dba-VB] Working on an Internet Shop - what is the usual official way to get good pictures Message-ID: Hi Shamil No detailed experience - it is just how it works. If you wish to promote a physical product you will need pack shots and/or product shots to pass out for free to any dealer interested - previously to be used in catalogues and brochures, these days for web sites. If you lack such sources, one method is to google/bing on _Pictures_ using the part number or other unique description. Quite often you succeed. /gustav >>> shamil at smsconsulting.spb.ru 27-01-2011 16:22 >>> Hi Gustav -- Thank you for your reply. When you write typically - do you mean your own experience or experience of the other developers you're contacting with there? I'm also thinking that pictures should come from supplier/manufacturer especially for official dealers - they should for the new/additional options/opportunities to get their stuff sold/distributed. But my customer doesn't have such pictures - they just have .pdf or .ppt(x) (MS PowerPoint) catalogs. These are high quality catalogs with very good pics - so the supplier/manufacturer does have all the needed for an Internet shop stuff, and that shop will sell their (supplier/manufacturer) consumer goods... Not sure how to query them to get that catalogs' source pics to use them on Internet shop... I have written a short "enquire for pics" message to Babolat international offices through their site already - we will see will they react at all.. 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: 27 ?????? 2011 ?. 18:10 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Working on an Internet Shop - what is theusual official way to get good pictures of custom Hi Shamil Pictures typically origin from the supplier/manufacturer as a part of his marketing support. /gustav >>> shamil at smsconsulting.spb.ru 27-01-2011 13:27 >>> Hi All -- It's a bit off-topic but it's about ASP.NET driven Internet shop I'm working here on now. The customer is a small company, and it's its first attempt to start selling customers' goods on Internet. The current issue is to make customers' goods photos for this shop - to make them by themselves here or hire good photogrpahs - that's not possible not because of financial issues but because of the way this company sells the goods - many of them are never kept on the stores so it's not possible to make good pictures of that goods right now. And the current intention is to make this shop released ASAP: we use good "out-of-the-box" Internet shop ASP.NET solution. What is the usual official way to get that pictures? I guess that most of the well known brands (that shop is for tennis shoes, clothes, equipment...) do currently have ready to use pics for their customer goods. How to get that pictures officially? What is the usual cost for such a customers good pictures' set for one year models, for, say, Babolat, Nike, Head, ...? Thank you. -- Shamil From shamil at smsconsulting.spb.ru Thu Jan 27 10:14:09 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Thu, 27 Jan 2011 19:14:09 +0300 Subject: [dba-VB] Working on an Internet Shop - what is theusual official way to get good pictures In-Reply-To: References: Message-ID: Hi Gustav -- Thank you for your additional notes. Searching on bing/google - yes, it's possible but - it's very time consuming - there are 1000+ phisical products positions and - (which is more important) I'm not sure that "grabbing" pics on Internet to reuse them in a custom Internet shop is a legal practice. <<< No detailed experience - it is just how it works >>> OK. We will see how my enquire for Babolat will work... I will also ask my customer to request their dealers for the physical products pics... 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: 27 ?????? 2011 ?. 18:57 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Working on an Internet Shop - what is theusual official way to get good pictures Hi Shamil No detailed experience - it is just how it works. If you wish to promote a physical product you will need pack shots and/or product shots to pass out for free to any dealer interested - previously to be used in catalogues and brochures, these days for web sites. If you lack such sources, one method is to google/bing on _Pictures_ using the part number or other unique description. Quite often you succeed. /gustav >>> shamil at smsconsulting.spb.ru 27-01-2011 16:22 >>> Hi Gustav -- Thank you for your reply. When you write typically - do you mean your own experience or experience of the other developers you're contacting with there? I'm also thinking that pictures should come from supplier/manufacturer especially for official dealers - they should for the new/additional options/opportunities to get their stuff sold/distributed. But my customer doesn't have such pictures - they just have .pdf or .ppt(x) (MS PowerPoint) catalogs. These are high quality catalogs with very good pics - so the supplier/manufacturer does have all the needed for an Internet shop stuff, and that shop will sell their (supplier/manufacturer) consumer goods... Not sure how to query them to get that catalogs' source pics to use them on Internet shop... I have written a short "enquire for pics" message to Babolat international offices through their site already - we will see will they react at all.. 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: 27 ?????? 2011 ?. 18:10 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Working on an Internet Shop - what is theusual official way to get good pictures of custom Hi Shamil Pictures typically origin from the supplier/manufacturer as a part of his marketing support. /gustav >>> shamil at smsconsulting.spb.ru 27-01-2011 13:27 >>> Hi All -- It's a bit off-topic but it's about ASP.NET driven Internet shop I'm working here on now. The customer is a small company, and it's its first attempt to start selling customers' goods on Internet. The current issue is to make customers' goods photos for this shop - to make them by themselves here or hire good photogrpahs - that's not possible not because of financial issues but because of the way this company sells the goods - many of them are never kept on the stores so it's not possible to make good pictures of that goods right now. And the current intention is to make this shop released ASAP: we use good "out-of-the-box" Internet shop ASP.NET solution. What is the usual official way to get that pictures? I guess that most of the well known brands (that shop is for tennis shoes, clothes, equipment...) do currently have ready to use pics for their customer goods. How to get that pictures officially? What is the usual cost for such a customers good pictures' set for one year models, for, say, Babolat, Nike, Head, ...? Thank you. -- Shamil _______________________________________________ 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 Thu Jan 27 16:30:15 2011 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 27 Jan 2011 14:30:15 -0800 Subject: [dba-VB] Working on an Internet Shop - what is the usual official way to get good pictures of customers' goods for such a shop? In-Reply-To: <4EC4D1458C794247BAECEF4A1E93CB2D@nant> References: <4EC4D1458C794247BAECEF4A1E93CB2D@nant> Message-ID: <809ABB7E718A4876AEA74C8D8C8B1FED@creativesystemdesigns.com> Hi Shamil: The customers I have, I put them incharge of supplying the pictures...and therefore any copyrights issues are their concerns. I will do picture hunting but the time will cost. Also any picture retouching, of which I do a lot of, is also billable time. One client atually had me go around his store and photograph everything...I brought in a photo backdrop and the lights and the camera and it took almost a week to do 150 products... It would have been cheaper to get in a professional, but they were concerned with copyright issues and as I were putting the items on their new web site anyways, it was a lot easier for them. I think there is no issues with pulling product pictures off a manufacture's web site as after all you are selling their products and as long as they are given appropriate credit there should not be any issues. When downloading pictures from Microsoft's sites, for the DBA web site, their official stance was that they were copyrighted but unofficially they said help yourself as long as you are using the picture to advertise our products and are given us the appropriate credit. If you are using Professional Photographers pictures, that have been put up for sale and are generally tagged with copyright, that is a whole different set of negotiations and costing...one that the company will have to incurr. Note: An artist's (photographer as well) right of ownership to their art can never be removed. For example: A company may buy pictures for a particular web site or advertising campaign but no matter what their contract says the photographer still retains the ultimate rights to any further usage. HTH Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Thursday, January 27, 2011 4:28 AM To: 'Discussion concerning Visual Basic and related programming issues.' Subject: [dba-VB] Working on an Internet Shop - what is the usual official way to get good pictures of customers' goods for such a shop? Hi All -- It's a bit off-topic but it's about ASP.NET driven Internet shop I'm working here on now. The customer is a small company, and it's its first attempt to start selling customers' goods on Internet. The current issue is to make customers' goods photos for this shop - to make them by themselves here or hire good photogrpahs - that's not possible not because of financial issues but because of the way this company sells the goods - many of them are never kept on the stores so it's not possible to make good pictures of that goods right now. And the current intention is to make this shop released ASAP: we use good "out-of-the-box" Internet shop ASP.NET solution. What is the usual official way to get that pictures? I guess that most of the well known brands (that shop is for tennis shoes, clothes, equipment...) do currently have ready to use pics for their customer goods. How to get that pictures officially? What is the usual cost for such a customers good pictures' set for one year models, for, say, Babolat, Nike, Head, ...? Thank you. -- Shamil _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From shamil at smsconsulting.spb.ru Thu Jan 27 18:37:51 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Fri, 28 Jan 2011 03:37:51 +0300 Subject: [dba-VB] Working on an Internet Shop - what is the usualofficial way to get good pictures of customers' goods forsuch a shop? In-Reply-To: <809ABB7E718A4876AEA74C8D8C8B1FED@creativesystemdesigns.com> References: <4EC4D1458C794247BAECEF4A1E93CB2D@nant> <809ABB7E718A4876AEA74C8D8C8B1FED@creativesystemdesigns.com> Message-ID: Hi Jim -- Thank you for your feedback. <<< The customers I have, I put them in charge of supplying the pictures...and therefore any copyrights issues are their concerns. >>> Yes, this is what I've tried to do first of all but it takes "ages" for the customer to get that pictures ready (not yet) - so I have started to look for "workaround" quicker alternatives... Thank you. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: 28 ?????? 2011 ?. 1:30 To: 'Discussion concerning Visual Basic and related programming issues.' Subject: Re: [dba-VB] Working on an Internet Shop - what is the usualofficial way to get good pictures of customers' goods forsuch a shop? Hi Shamil: The customers I have, I put them incharge of supplying the pictures...and therefore any copyrights issues are their concerns. I will do picture hunting but the time will cost. Also any picture retouching, of which I do a lot of, is also billable time. One client atually had me go around his store and photograph everything...I brought in a photo backdrop and the lights and the camera and it took almost a week to do 150 products... It would have been cheaper to get in a professional, but they were concerned with copyright issues and as I were putting the items on their new web site anyways, it was a lot easier for them. I think there is no issues with pulling product pictures off a manufacture's web site as after all you are selling their products and as long as they are given appropriate credit there should not be any issues. When downloading pictures from Microsoft's sites, for the DBA web site, their official stance was that they were copyrighted but unofficially they said help yourself as long as you are using the picture to advertise our products and are given us the appropriate credit. If you are using Professional Photographers pictures, that have been put up for sale and are generally tagged with copyright, that is a whole different set of negotiations and costing...one that the company will have to incurr. Note: An artist's (photographer as well) right of ownership to their art can never be removed. For example: A company may buy pictures for a particular web site or advertising campaign but no matter what their contract says the photographer still retains the ultimate rights to any further usage. HTH Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Thursday, January 27, 2011 4:28 AM To: 'Discussion concerning Visual Basic and related programming issues.' Subject: [dba-VB] Working on an Internet Shop - what is the usual official way to get good pictures of customers' goods for such a shop? Hi All -- It's a bit off-topic but it's about ASP.NET driven Internet shop I'm working here on now. The customer is a small company, and it's its first attempt to start selling customers' goods on Internet. The current issue is to make customers' goods photos for this shop - to make them by themselves here or hire good photogrpahs - that's not possible not because of financial issues but because of the way this company sells the goods - many of them are never kept on the stores so it's not possible to make good pictures of that goods right now. And the current intention is to make this shop released ASAP: we use good "out-of-the-box" Internet shop ASP.NET solution. What is the usual official way to get that pictures? I guess that most of the well known brands (that shop is for tennis shoes, clothes, equipment...) do currently have ready to use pics for their customer goods. How to get that pictures officially? What is the usual cost for such a customers good pictures' set for one year models, for, say, Babolat, Nike, Head, ...? 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 marklbreen at gmail.com Fri Jan 28 03:41:09 2011 From: marklbreen at gmail.com (Mark Breen) Date: Fri, 28 Jan 2011 09:41:09 +0000 Subject: [dba-VB] Working on an Internet Shop - what is the usual official way to get good pictures of customers' goods for such a shop? In-Reply-To: <4EC4D1458C794247BAECEF4A1E93CB2D@nant> References: <4EC4D1458C794247BAECEF4A1E93CB2D@nant> Message-ID: Hello Shamil, It might not be useful, but for free photo's take a look at http://sxc.hu/ I was just told about it yesterday thanks Mark On 27 January 2011 12:27, Shamil Salakhetdinov wrote: > Hi All -- > > It's a bit off-topic but it's about ASP.NET driven Internet shop I'm > working > here on now. > The customer is a small company, and it's its first attempt to start > selling > customers' goods on Internet. > The current issue is to make customers' goods photos for this shop - to > make > them by themselves here or hire good photogrpahs - that's not possible not > because of financial issues but because of the way this company sells the > goods - many of them are never kept on the stores so it's not possible to > make good pictures of that goods right now. And the current intention is to > make this shop released ASAP: we use good "out-of-the-box" Internet shop > ASP.NET solution. > > What is the usual official way to get that pictures? > I guess that most of the well known brands (that shop is for tennis shoes, > clothes, equipment...) do currently have ready to use pics for their > customer goods. > How to get that pictures officially? > What is the usual cost for such a customers good pictures' set for one year > models, for, say, Babolat, Nike, Head, ...? > > 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 Sun Jan 30 09:59:50 2011 From: gustav at cactus.dk (Gustav Brock) Date: Sun, 30 Jan 2011 16:59:50 +0100 Subject: [dba-VB] Localizing Silverlight Business Application Message-ID: Hi all I had a lot of trouble adding dynamic culture selection to a Silverlight Business Application. But by combining info from these links I finally succeeded: http://johnlivingstontech.blogspot.com/2010/02/localizing-resources-in-silverlight.html http://msdn.microsoft.com/en-us/library/dd941931(v=vs.95).aspx http://blogs.msdn.com/b/brada/archive/2010/03/22/silverlight-4-ria-services-ready-for-business-localizing-business-application.aspx The missing task which left the login labels untouched, was to add the localized resx files from the web project "as link" to the Web\Resources folder of the main project. This way all text for labels, error messages, tool tips, etc. are kept in separate resx files. Further, select a language in the combobox and the language changes instantaneously. Great! /gustav From jwcolby at colbyconsulting.com Sun Jan 30 15:53:36 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sun, 30 Jan 2011 16:53:36 -0500 Subject: [dba-VB] Hamachi VPN information Message-ID: <4D45DDE0.3060409@colbyconsulting.com> I use Hamachi a lot. I am trying to set up Hamachi VPNs specific to client groups, IOW a VPN for Lenoir Prison Ministry, a VPN for Forgiven Ministry, a group for FSN Hope, a group for C2DbInternal etc. What I did not really understand is that there are actually three types of networks. I am going to cut and paste the definitions from Hamachi's page just so that you can see what they have to say. http://help.logmein.com/SelfServiceSearchResults?kw=hub+and+spoke&product=lmihamachi2&sr=0 http://help.logmein.com/SelfServiceKnowledgeRenderer?type=Documentation&id=kA130000000Lu1YCAS&search=1&kw=hub%20and%20spoke * Gateway virtual networking: Provide remote users with secure access to your private network/LAN, including the resources on it, from a centralized LogMeIn Hamachi? gateway, without modifying firewalls or network routers. * Hub-and-spoke virtual networking: Provide remote users with secure access to specific resources on your network, from any location, without modifying firewalls or network routers. * Mesh networking: Connect all of your network clients to each other. Quickly and easily create a simple, virtual, mesh network that allows remote machines to directly connect to each other, thereby giving users basic network access to all the network resources they need. So, I wanted a private network for each client. I wanted a hub and spoke for each client because both of the other types (mesh and gateway) allow all computers to see each other. In most cases, these clients are a group of people who really don't want each other to see their shares etc. If you create a network from a client (as I did) instead of from the Hamachi Web page, then you automatically create a mesh network. Once you create a network from a client, I have never found a way to "connect" or subscribe that network into your online network management page. Bad news. So think carefully about the future and consider doing all of your network management from the web page. Essentially you create an Hamachi account which you can log in to. Once you do that you can create networks from that page, then send emails to people with invitations to join your networks. You get to "approve" the subscriptions. Because I had created all of my networks from the client on my laptop, they were all "mesh" networks, and everyone could see everyone. Even worse the visibility extended out of the network to other networks. Even worse than that, I started getting echos between the networks. IOW, because mu computer belonged to each of the mesg networks I would ping computers and get many different ping echos. If you are ever going to do a single network then fine (maybe) build it from one of the Hamachi clients. However if you ever anticipate doing multiple networks as I am doing, do yourself a favor and start from the Web page and always create your networks from there. -- John W. Colby www.ColbyConsulting.com From shamil at smsconsulting.spb.ru Sun Jan 30 18:23:45 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Mon, 31 Jan 2011 03:23:45 +0300 Subject: [dba-VB] Mercurial vs. SVN Message-ID: Hi All -- Does SVN support "ignore list" as Mercurial does? (I wanted to exclude binaries and some other files from add/commit batch without going through all of added/updated items manually every time on commit). I do use Tortoise SVN v.1.4.5, and I do not see "ignore list feature" - does Tortoise SVN 1.4.7 support this feature? Or can I define ignore list somehow else when working with SVN? Thank you. -- Shamil From shamil at smsconsulting.spb.ru Sun Jan 30 19:22:12 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Mon, 31 Jan 2011 04:22:12 +0300 Subject: [dba-VB] Localizing Silverlight Business Application In-Reply-To: References: Message-ID: <2C3D300F73144E6AA37430916F1F20EB@nant> Hi Gustav -- Thank you for your note. I'm not sure I will use SIlverLight in the development real soon but who knows... Do you use SilverLight "hard way" or via LightSwitch? 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: 30 ?????? 2011 ?. 19:00 To: dba-vb at databaseadvisors.com Subject: [dba-VB] Localizing Silverlight Business Application Hi all I had a lot of trouble adding dynamic culture selection to a Silverlight Business Application. But by combining info from these links I finally succeeded: http://johnlivingstontech.blogspot.com/2010/02/localizing-resources-in-silve rlight.html http://msdn.microsoft.com/en-us/library/dd941931(v=vs.95).aspx http://blogs.msdn.com/b/brada/archive/2010/03/22/silverlight-4-ria-services- ready-for-business-localizing-business-application.aspx The missing task which left the login labels untouched, was to add the localized resx files from the web project "as link" to the Web\Resources folder of the main project. This way all text for labels, error messages, tool tips, etc. are kept in separate resx files. Further, select a language in the combobox and the language changes instantaneously. Great! /gustav _______________________________________________ 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 Mon Jan 31 02:43:27 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 31 Jan 2011 09:43:27 +0100 Subject: [dba-VB] Mercurial vs. SVN Message-ID: Hi Shamil That's a very old version, current version is 1.6.something. The trick is the Shift key. From the help file: Hold the Shift key to get the extended context menu and select TortoiseSVN and Delete (keep local) to mark the file/folder for deletion from the repository without losing the local copy. /gustav >>> shamil at smsconsulting.spb.ru 31-01-2011 01:23 >>> Hi All -- Does SVN support "ignore list" as Mercurial does? (I wanted to exclude binaries and some other files from add/commit batch without going through all of added/updated items manually every time on commit). I do use Tortoise SVN v.1.4.5, and I do not see "ignore list feature" - does Tortoise SVN 1.4.7 support this feature? Or can I define ignore list somehow else when working with SVN? Thank you. -- Shamil From Gustav at cactus.dk Mon Jan 31 02:59:52 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 31 Jan 2011 09:59:52 +0100 Subject: [dba-VB] Localizing Silverlight Business Application Message-ID: Hi Shamil Yes, I have a small project where I would use Silverlight straight, also to gain some knowledge for programming to Windows Phone 7 - we just got our Samsung Omnia 7 last week to replace the seven year old Sony-Ericsson T610 which have served extremely well. I located a book: Pro Business Applications with Silverlight 4 by Chris Anderson http://apress.com/book/view/9781430272076 to obtain some support. /gustav >>> shamil at smsconsulting.spb.ru 31-01-2011 02:22 >>> Hi Gustav -- Thank you for your note. I'm not sure I will use SIlverLight in the development real soon but who knows... Do you use SilverLight "hard way" or via LightSwitch? 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: 30 ?????? 2011 ?. 19:00 To: dba-vb at databaseadvisors.com Subject: [dba-VB] Localizing Silverlight Business Application Hi all I had a lot of trouble adding dynamic culture selection to a Silverlight Business Application. But by combining info from these links I finally succeeded: http://johnlivingstontech.blogspot.com/2010/02/localizing-resources-in-silverlight.html http://msdn.microsoft.com/en-us/library/dd941931(v=vs.95).aspx http://blogs.msdn.com/b/brada/archive/2010/03/22/silverlight-4-ria-services-ready-for-business-localizing-business-application.aspx The missing task which left the login labels untouched, was to add the localized resx files from the web project "as link" to the Web\Resources folder of the main project. This way all text for labels, error messages, tool tips, etc. are kept in separate resx files. Further, select a language in the combobox and the language changes instantaneously. Great! /gustav From shamil at smsconsulting.spb.ru Mon Jan 31 05:33:29 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Mon, 31 Jan 2011 14:33:29 +0300 Subject: [dba-VB] Localizing Silverlight Business Application In-Reply-To: References: Message-ID: <438E214CF58F4A2492FD6F7C26AA8E19@nant> Hi Gustav -- Thank you for your additional notes on Silverlight and Windiows Phone 7. BTW, I have checked Samsung Omnia 7 seems to be available here to - it costs USD700: 1) it doesn't have EMS - no problem; 2) it doesn't support memory cards - shoudln't be an issue - it has 8GB of memory installed; -- Does Windows Phone 7 support MS SQL Server CE? What software is additionally needed to develop for Silverlight 4 using VS2010? Do you expect that Windows Phone 7 may become one of the main parts of your custom software development business in the near future? Not easy question I know, you can skip it :) 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: 31 ?????? 2011 ?. 12:00 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Localizing Silverlight Business Application Hi Shamil Yes, I have a small project where I would use Silverlight straight, also to gain some knowledge for programming to Windows Phone 7 - we just got our Samsung Omnia 7 last week to replace the seven year old Sony-Ericsson T610 which have served extremely well. I located a book: Pro Business Applications with Silverlight 4 by Chris Anderson http://apress.com/book/view/9781430272076 to obtain some support. /gustav >>> shamil at smsconsulting.spb.ru 31-01-2011 02:22 >>> Hi Gustav -- Thank you for your note. I'm not sure I will use SIlverLight in the development real soon but who knows... Do you use SilverLight "hard way" or via LightSwitch? 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: 30 ?????? 2011 ?. 19:00 To: dba-vb at databaseadvisors.com Subject: [dba-VB] Localizing Silverlight Business Application Hi all I had a lot of trouble adding dynamic culture selection to a Silverlight Business Application. But by combining info from these links I finally succeeded: http://johnlivingstontech.blogspot.com/2010/02/localizing-resources-in-silve rlight.html http://msdn.microsoft.com/en-us/library/dd941931(v=vs.95).aspx http://blogs.msdn.com/b/brada/archive/2010/03/22/silverlight-4-ria-services- ready-for-business-localizing-business-application.aspx The missing task which left the login labels untouched, was to add the localized resx files from the web project "as link" to the Web\Resources folder of the main project. This way all text for labels, error messages, tool tips, etc. are kept in separate resx files. Further, select a language in the combobox and the language changes instantaneously. Great! /gustav _______________________________________________ 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 Mon Jan 31 05:48:22 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Mon, 31 Jan 2011 14:48:22 +0300 Subject: [dba-VB] Mercurial vs. SVN In-Reply-To: References: Message-ID: Hi Gustav -- Thank you for your note. I should probably install newer version. But the one I have does support the feature of ignoring/making local individual files (filenames patterns) and *whole* folders. That is useful but that's not what I'm looking for/what exists in Mercurial it has more powerful feature to keep ignore list. BTW, SVN does inform that it added file/folder to the ignore list - is it possible to edit that list manually? If yes, where it's located? - I can find it - maybe you just know it from memory/used it: in Mercurial I usually just have a generic ignore list, which I'm putting in every new repository I create and then I'm adding specific files/filenames templates to that ignore list. Gustav, it's not a big issue - I can find my way using SVN via command lines - mainly wondering if I can skip making a batch which will use command line interface of SVN to "clean-up" local repository from some files/folders before committing it... BTW, https://bitbucket.org/ has an option of free unlimited code repositories up to 5 users... I haven't used it yet but I do plan to put all my important source code mirrored there in private code repository... 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: 31 ?????? 2011 ?. 11:43 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Mercurial vs. SVN Hi Shamil That's a very old version, current version is 1.6.something. The trick is the Shift key. From the help file: Hold the Shift key to get the extended context menu and select TortoiseSVN and Delete (keep local) to mark the file/folder for deletion from the repository without losing the local copy. /gustav >>> shamil at smsconsulting.spb.ru 31-01-2011 01:23 >>> Hi All -- Does SVN support "ignore list" as Mercurial does? (I wanted to exclude binaries and some other files from add/commit batch without going through all of added/updated items manually every time on commit). I do use Tortoise SVN v.1.4.5, and I do not see "ignore list feature" - does Tortoise SVN 1.4.7 support this feature? Or can I define ignore list somehow else when working with SVN? 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 Mon Jan 31 08:47:37 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 31 Jan 2011 15:47:37 +0100 Subject: [dba-VB] Mercurial vs. SVN Message-ID: Hi Shamil I don't know about these details of TortoiseSVN - I just used it for the Northwind project and never had any trouble - and stayed off the command line. Thanks for the tip (for Mercurial hosting) at bitbucket. However, I think I stay with TortoiseSVN and/or VisualSVN as they have worked fine for me. /gustav >>> shamil at smsconsulting.spb.ru 31-01-2011 12:48 >>> Hi Gustav -- Thank you for your note. I should probably install newer version. But the one I have does support the feature of ignoring/making local individual files (filenames patterns) and *whole* folders. That is useful but that's not what I'm looking for/what exists in Mercurial it has more powerful feature to keep ignore list. BTW, SVN does inform that it added file/folder to the ignore list - is it possible to edit that list manually? If yes, where it's located? - I can find it - maybe you just know it from memory/used it: in Mercurial I usually just have a generic ignore list, which I'm putting in every new repository I create and then I'm adding specific files/filenames templates to that ignore list. Gustav, it's not a big issue - I can find my way using SVN via command lines - mainly wondering if I can skip making a batch which will use command line interface of SVN to "clean-up" local repository from some files/folders before committing it... BTW, https://bitbucket.org/ has an option of free unlimited code repositories up to 5 users... I haven't used it yet but I do plan to put all my important source code mirrored there in private code repository... 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: 31 ?????? 2011 ?. 11:43 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Mercurial vs. SVN Hi Shamil That's a very old version, current version is 1.6.something. The trick is the Shift key. From the help file: Hold the Shift key to get the extended context menu and select TortoiseSVN and Delete (keep local) to mark the file/folder for deletion from the repository without losing the local copy. /gustav >>> shamil at smsconsulting.spb.ru 31-01-2011 01:23 >>> Hi All -- Does SVN support "ignore list" as Mercurial does? (I wanted to exclude binaries and some other files from add/commit batch without going through all of added/updated items manually every time on commit). I do use Tortoise SVN v.1.4.5, and I do not see "ignore list feature" - does Tortoise SVN 1.4.7 support this feature? Or can I define ignore list somehow else when working with SVN? Thank you. -- Shamil From Gustav at cactus.dk Mon Jan 31 09:07:30 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 31 Jan 2011 16:07:30 +0100 Subject: [dba-VB] Localizing Silverlight Business Application Message-ID: Hi Shamil No, WP7 does not support databases - you set up a service for data communication. That's one of the things I wish to check out. As for development software, start here: Getting Started with Windows Phone Development http://msdn.microsoft.com/en-us/library/ff402529(v=vs.92).aspx and visit the download page: Installing Windows Phone Developer Tools http://msdn.microsoft.com/en-us/library/ff402530(v=vs.92).aspx Code Samples for Windows Phone http://msdn.microsoft.com/en-us/library/ff431744(v=vs.92).aspx Windows Phone 7 Design Guidelines * Cheat Sheet http://blogs.msdn.com/b/silverlight_sdk/archive/2011/01/07/windows-phone-7-design-guidelines-cheat-sheet.aspx Also: How to Use the Windows Phone Connect Tool http://msdn.microsoft.com/en-us/library/gg180729(v=VS.92).aspx /gustav >>> shamil at smsconsulting.spb.ru 31-01-2011 12:33 >>> Hi Gustav -- Thank you for your additional notes on Silverlight and Windiows Phone 7. BTW, I have checked Samsung Omnia 7 seems to be available here to - it costs USD700: 1) it doesn't have EMS - no problem; 2) it doesn't support memory cards - shoudln't be an issue - it has 8GB of memory installed; -- Does Windows Phone 7 support MS SQL Server CE? What software is additionally needed to develop for Silverlight 4 using VS2010? Do you expect that Windows Phone 7 may become one of the main parts of your custom software development business in the near future? Not easy question I know, you can skip it :) Thank you. -- Shamil From shamil at smsconsulting.spb.ru Mon Jan 31 12:00:41 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Mon, 31 Jan 2011 21:00:41 +0300 Subject: [dba-VB] Localizing Silverlight Business Application In-Reply-To: References: Message-ID: <546CF087491E4AF89EC2591F8E693CA6@nant> Hi Gustav -- Thank you for the additional information and the links you have provided - I will use them for Windows Phone 7 "must have" set of links first place. And I guess Windows Phone 7 Developer Tools do have Windows Phone 7 Device simulator running under VS2010 when debugging/testing? 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: 31 ?????? 2011 ?. 18:08 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Localizing Silverlight Business Application Hi Shamil No, WP7 does not support databases - you set up a service for data communication. That's one of the things I wish to check out. As for development software, start here: Getting Started with Windows Phone Development http://msdn.microsoft.com/en-us/library/ff402529(v=vs.92).aspx and visit the download page: Installing Windows Phone Developer Tools http://msdn.microsoft.com/en-us/library/ff402530(v=vs.92).aspx Code Samples for Windows Phone http://msdn.microsoft.com/en-us/library/ff431744(v=vs.92).aspx Windows Phone 7 Design Guidelines * Cheat Sheet http://blogs.msdn.com/b/silverlight_sdk/archive/2011/01/07/windows-phone-7-d esign-guidelines-cheat-sheet.aspx Also: How to Use the Windows Phone Connect Tool http://msdn.microsoft.com/en-us/library/gg180729(v=VS.92).aspx /gustav >>> shamil at smsconsulting.spb.ru 31-01-2011 12:33 >>> Hi Gustav -- Thank you for your additional notes on Silverlight and Windiows Phone 7. BTW, I have checked Samsung Omnia 7 seems to be available here to - it costs USD700: 1) it doesn't have EMS - no problem; 2) it doesn't support memory cards - shoudln't be an issue - it has 8GB of memory installed; -- Does Windows Phone 7 support MS SQL Server CE? What software is additionally needed to develop for Silverlight 4 using VS2010? Do you expect that Windows Phone 7 may become one of the main parts of your custom software development business in the near future? Not easy question I know, you can skip 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 Mon Jan 31 12:19:52 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 31 Jan 2011 19:19:52 +0100 Subject: [dba-VB] Localizing Silverlight Business Application Message-ID: Hi Shamil Well, to some degree and probably for you and me. However, for media applications you may need the Windows Phone Connect Tool and a physical phone as I understand it (not tested by me). /gustav >>> shamil at smsconsulting.spb.ru 31-01-2011 19:00 >>> Hi Gustav -- Thank you for the additional information and the links you have provided - I will use them for Windows Phone 7 "must have" set of links first place. And I guess Windows Phone 7 Developer Tools do have Windows Phone 7 Device simulator running under VS2010 when debugging/testing? 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: 31 ?????? 2011 ?. 18:08 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Localizing Silverlight Business Application Hi Shamil No, WP7 does not support databases - you set up a service for data communication. That's one of the things I wish to check out. As for development software, start here: Getting Started with Windows Phone Development http://msdn.microsoft.com/en-us/library/ff402529(v=vs.92).aspx and visit the download page: Installing Windows Phone Developer Tools http://msdn.microsoft.com/en-us/library/ff402530(v=vs.92).aspx Code Samples for Windows Phone http://msdn.microsoft.com/en-us/library/ff431744(v=vs.92).aspx Windows Phone 7 Design Guidelines * Cheat Sheet http://blogs.msdn.com/b/silverlight_sdk/archive/2011/01/07/windows-phone-7-d esign-guidelines-cheat-sheet.aspx Also: How to Use the Windows Phone Connect Tool http://msdn.microsoft.com/en-us/library/gg180729(v=VS.92).aspx /gustav From shamil at smsconsulting.spb.ru Mon Jan 31 12:26:09 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Mon, 31 Jan 2011 21:26:09 +0300 Subject: [dba-VB] Localizing Silverlight Business Application In-Reply-To: References: Message-ID: <85D74A02917E458C862D28B12BD21AF6@nant> Hi Gustav -- Do Silverlight 4 applications need to use Windows Phone Connect Tool or Silverlight applications can be run locally in debug mode (with database backend used via a Web Service as you noted). Does Windows Phone support WinForms at all? Or all Windows Phone 7 apps run within Silverlight "shell"? (<- Sorry that question may sound silly...) BTW, here is ScottGu's link blog entry on Windows Phone 7 Developers tools: http://weblogs.asp.net/scottgu/archive/2010/09/16/windows-phone-7-developer- tools-released.aspx 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: 31 ?????? 2011 ?. 21:20 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Localizing Silverlight Business Application Hi Shamil Well, to some degree and probably for you and me. However, for media applications you may need the Windows Phone Connect Tool and a physical phone as I understand it (not tested by me). /gustav >>> shamil at smsconsulting.spb.ru 31-01-2011 19:00 >>> Hi Gustav -- Thank you for the additional information and the links you have provided - I will use them for Windows Phone 7 "must have" set of links first place. And I guess Windows Phone 7 Developer Tools do have Windows Phone 7 Device simulator running under VS2010 when debugging/testing? 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: 31 ?????? 2011 ?. 18:08 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Localizing Silverlight Business Application Hi Shamil No, WP7 does not support databases - you set up a service for data communication. That's one of the things I wish to check out. As for development software, start here: Getting Started with Windows Phone Development http://msdn.microsoft.com/en-us/library/ff402529(v=vs.92).aspx and visit the download page: Installing Windows Phone Developer Tools http://msdn.microsoft.com/en-us/library/ff402530(v=vs.92).aspx Code Samples for Windows Phone http://msdn.microsoft.com/en-us/library/ff431744(v=vs.92).aspx Windows Phone 7 Design Guidelines * Cheat Sheet http://blogs.msdn.com/b/silverlight_sdk/archive/2011/01/07/windows-phone-7-d esign-guidelines-cheat-sheet.aspx Also: How to Use the Windows Phone Connect Tool http://msdn.microsoft.com/en-us/library/gg180729(v=VS.92).aspx /gustav _______________________________________________ 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 Mon Jan 31 12:31:54 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Mon, 31 Jan 2011 21:31:54 +0300 Subject: [dba-VB] Mercurial vs. SVN In-Reply-To: References: Message-ID: <9931D85A29A94CD39BBB795EFA3DB088@nant> Hi Gustav -- OK. tryig to use this info here http://stackoverflow.com/questions/85353/best-general-svn-ignore-pattern still not sure how to make it working properly - tried via SVN->[Properties] but it somehow didn't work well... As for SVN and Mercurial and Northwind.CodePlex.com - I'm going to "cross" them: - I do use Mercurial locally but - in the next release on codeplex I do plan to commit Mercuarial repository entries within source code, so the one who uses SVN - will use it, then one who use Mercurial - will use it. That's a plan. I do not see why it can break. I could be missing something. I do plan to make a new "crossed" release on Northwind.codeplex.com this week. 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: 31 ?????? 2011 ?. 17:48 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Mercurial vs. SVN Hi Shamil I don't know about these details of TortoiseSVN - I just used it for the Northwind project and never had any trouble - and stayed off the command line. Thanks for the tip (for Mercurial hosting) at bitbucket. However, I think I stay with TortoiseSVN and/or VisualSVN as they have worked fine for me. /gustav >>> shamil at smsconsulting.spb.ru 31-01-2011 12:48 >>> Hi Gustav -- Thank you for your note. I should probably install newer version. But the one I have does support the feature of ignoring/making local individual files (filenames patterns) and *whole* folders. That is useful but that's not what I'm looking for/what exists in Mercurial it has more powerful feature to keep ignore list. BTW, SVN does inform that it added file/folder to the ignore list - is it possible to edit that list manually? If yes, where it's located? - I can find it - maybe you just know it from memory/used it: in Mercurial I usually just have a generic ignore list, which I'm putting in every new repository I create and then I'm adding specific files/filenames templates to that ignore list. Gustav, it's not a big issue - I can find my way using SVN via command lines - mainly wondering if I can skip making a batch which will use command line interface of SVN to "clean-up" local repository from some files/folders before committing it... BTW, https://bitbucket.org/ has an option of free unlimited code repositories up to 5 users... I haven't used it yet but I do plan to put all my important source code mirrored there in private code repository... 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: 31 ?????? 2011 ?. 11:43 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Mercurial vs. SVN Hi Shamil That's a very old version, current version is 1.6.something. The trick is the Shift key. From the help file: Hold the Shift key to get the extended context menu and select TortoiseSVN and Delete (keep local) to mark the file/folder for deletion from the repository without losing the local copy. /gustav >>> shamil at smsconsulting.spb.ru 31-01-2011 01:23 >>> Hi All -- Does SVN support "ignore list" as Mercurial does? (I wanted to exclude binaries and some other files from add/commit batch without going through all of added/updated items manually every time on commit). I do use Tortoise SVN v.1.4.5, and I do not see "ignore list feature" - does Tortoise SVN 1.4.7 support this feature? Or can I define ignore list somehow else when working with SVN? 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 Mon Jan 31 14:55:34 2011 From: gustav at cactus.dk (Gustav Brock) Date: Mon, 31 Jan 2011 21:55:34 +0100 Subject: [dba-VB] Localizing Silverlight Business Application Message-ID: Hi Shamil The Phone Connect is only needed for running apps that stream video and the like. I have no specifics, sorry. WP7 apps are Silverlight only for "normal" apps or XNA for games and highly graphic apps. No WinForms. Thanks for the link. That seems relevant to study. Scott Gu is a good presenter. /gustav >>> shamil at smsconsulting.spb.ru 31-01-2011 19:26 >>> Hi Gustav -- Do Silverlight 4 applications need to use Windows Phone Connect Tool or Silverlight applications can be run locally in debug mode (with database backend used via a Web Service as you noted). Does Windows Phone support WinForms at all? Or all Windows Phone 7 apps run within Silverlight "shell"? (<- Sorry that question may sound silly...) BTW, here is ScottGu's link blog entry on Windows Phone 7 Developers tools: http://weblogs.asp.net/scottgu/archive/2010/09/16/windows-phone-7-developer-tools-released.aspx 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: 31 ?????? 2011 ?. 21:20 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Localizing Silverlight Business Application Hi Shamil Well, to some degree and probably for you and me. However, for media applications you may need the Windows Phone Connect Tool and a physical phone as I understand it (not tested by me). /gustav >>> shamil at smsconsulting.spb.ru 31-01-2011 19:00 >>> Hi Gustav -- Thank you for the additional information and the links you have provided - I will use them for Windows Phone 7 "must have" set of links first place. And I guess Windows Phone 7 Developer Tools do have Windows Phone 7 Device simulator running under VS2010 when debugging/testing? 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: 31 ?????? 2011 ?. 18:08 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Localizing Silverlight Business Application Hi Shamil No, WP7 does not support databases - you set up a service for data communication. That's one of the things I wish to check out. As for development software, start here: Getting Started with Windows Phone Development http://msdn.microsoft.com/en-us/library/ff402529(v=vs.92).aspx and visit the download page: Installing Windows Phone Developer Tools http://msdn.microsoft.com/en-us/library/ff402530(v=vs.92).aspx Code Samples for Windows Phone http://msdn.microsoft.com/en-us/library/ff431744(v=vs.92).aspx Windows Phone 7 Design Guidelines * Cheat Sheet http://blogs.msdn.com/b/silverlight_sdk/archive/2011/01/07/windows-phone-7-design-guidelines-cheat-sheet.aspx Also: How to Use the Windows Phone Connect Tool http://msdn.microsoft.com/en-us/library/gg180729(v=VS.92).aspx /gustav From gustav at cactus.dk Mon Jan 31 15:05:02 2011 From: gustav at cactus.dk (Gustav Brock) Date: Mon, 31 Jan 2011 22:05:02 +0100 Subject: [dba-VB] Mercurial vs. SVN Message-ID: Hi Shamil That's beyond my experience. I only have had to exclude a few files (after they were created) and that worked fine. The patterns, I think, try to exclude files before creation. /gustav >>> shamil at smsconsulting.spb.ru 31-01-2011 19:31 >>> Hi Gustav -- OK. tryig to use this info here http://stackoverflow.com/questions/85353/best-general-svn-ignore-pattern still not sure how to make it working properly - tried via SVN->[Properties] but it somehow didn't work well... As for SVN and Mercurial and Northwind.CodePlex.com - I'm going to "cross" them: - I do use Mercurial locally but - in the next release on codeplex I do plan to commit Mercuarial repository entries within source code, so the one who uses SVN - will use it, then one who use Mercurial - will use it. That's a plan. I do not see why it can break. I could be missing something. I do plan to make a new "crossed" release on Northwind.codeplex.com this week. 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: 31 ?????? 2011 ?. 17:48 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Mercurial vs. SVN Hi Shamil I don't know about these details of TortoiseSVN - I just used it for the Northwind project and never had any trouble - and stayed off the command line. Thanks for the tip (for Mercurial hosting) at bitbucket. However, I think I stay with TortoiseSVN and/or VisualSVN as they have worked fine for me. /gustav >>> shamil at smsconsulting.spb.ru 31-01-2011 12:48 >>> Hi Gustav -- Thank you for your note. I should probably install newer version. But the one I have does support the feature of ignoring/making local individual files (filenames patterns) and *whole* folders. That is useful but that's not what I'm looking for/what exists in Mercurial it has more powerful feature to keep ignore list. BTW, SVN does inform that it added file/folder to the ignore list - is it possible to edit that list manually? If yes, where it's located? - I can find it - maybe you just know it from memory/used it: in Mercurial I usually just have a generic ignore list, which I'm putting in every new repository I create and then I'm adding specific files/filenames templates to that ignore list. Gustav, it's not a big issue - I can find my way using SVN via command lines - mainly wondering if I can skip making a batch which will use command line interface of SVN to "clean-up" local repository from some files/folders before committing it... BTW, https://bitbucket.org/ has an option of free unlimited code repositories up to 5 users... I haven't used it yet but I do plan to put all my important source code mirrored there in private code repository... 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: 31 ?????? 2011 ?. 11:43 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Mercurial vs. SVN Hi Shamil That's a very old version, current version is 1.6.something. The trick is the Shift key. From the help file: Hold the Shift key to get the extended context menu and select TortoiseSVN and Delete (keep local) to mark the file/folder for deletion from the repository without losing the local copy. /gustav >>> shamil at smsconsulting.spb.ru 31-01-2011 01:23 >>> Hi All -- Does SVN support "ignore list" as Mercurial does? (I wanted to exclude binaries and some other files from add/commit batch without going through all of added/updated items manually every time on commit). I do use Tortoise SVN v.1.4.5, and I do not see "ignore list feature" - does Tortoise SVN 1.4.7 support this feature? Or can I define ignore list somehow else when working with SVN? Thank you. -- Shamil From shamil at smsconsulting.spb.ru Mon Jan 31 18:08:44 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Tue, 1 Feb 2011 03:08:44 +0300 Subject: [dba-VB] Localizing Silverlight Business Application In-Reply-To: References: Message-ID: <9DD1A698D5A34EE5A52E0B9F7B01B992@nant> Hi Gustav -- I'm looking here for Windows Phone 7 OS features (it's not your device - just because I have found interesting review for Win Phone 7 OS and apps on this page) http://www.amazon.com/HTC-hd7-t-mobile-htc-locked/product-reviews/B004B3KANO /ref=dp_top_cm_cr_acr_txt?ie=UTF8&showViewpoints=1 Here is one excerpt: "The built in applications like Office let you view/edit word documents, view/edit excel documents, view powerpoint presentations, view/edit onenote, outlook - view your email from multiple providers - hotmail, google, yahoo, any email provider - very intuitive and easy to use interface. Internet Explorer - optimized and is a really good browser now; pinch to zoom and scrolling in internet explorer works perfectly, loading pages is excellent and fast - no real faults at all with the new internet explorer. Music/Videos player is basically the zune interface - beautiful; manages all your videos and music here and if you have a zune pass you can listen to your music from right here - this works in the background too and you can play games and surf the web using this application in the background. " Sounds useful. But this is what I'm not sure I'm understanding properly: "- No multitasking for third party apps - we need the ability to multi-task and choose what we want running in the background. Some apps really do need multitasking. " What third party apps are they talking about? SIlverlight custom apps do come loaded from Internet - right? If so - once loaded they block all the other apps? Sounds strange. Or do they mean custom XNA apps? Thank you. -- Shamil 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: 31 ?????? 2011 ?. 23:56 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Localizing Silverlight Business Application Hi Shamil The Phone Connect is only needed for running apps that stream video and the like. I have no specifics, sorry. WP7 apps are Silverlight only for "normal" apps or XNA for games and highly graphic apps. No WinForms. Thanks for the link. That seems relevant to study. Scott Gu is a good presenter. /gustav >>> shamil at smsconsulting.spb.ru 31-01-2011 19:26 >>> Hi Gustav -- Do Silverlight 4 applications need to use Windows Phone Connect Tool or Silverlight applications can be run locally in debug mode (with database backend used via a Web Service as you noted). Does Windows Phone support WinForms at all? Or all Windows Phone 7 apps run within Silverlight "shell"? (<- Sorry that question may sound silly...) BTW, here is ScottGu's link blog entry on Windows Phone 7 Developers tools: http://weblogs.asp.net/scottgu/archive/2010/09/16/windows-phone-7-developer- tools-released.aspx 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: 31 ?????? 2011 ?. 21:20 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Localizing Silverlight Business Application Hi Shamil Well, to some degree and probably for you and me. However, for media applications you may need the Windows Phone Connect Tool and a physical phone as I understand it (not tested by me). /gustav >>> shamil at smsconsulting.spb.ru 31-01-2011 19:00 >>> Hi Gustav -- Thank you for the additional information and the links you have provided - I will use them for Windows Phone 7 "must have" set of links first place. And I guess Windows Phone 7 Developer Tools do have Windows Phone 7 Device simulator running under VS2010 when debugging/testing? 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: 31 ?????? 2011 ?. 18:08 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Localizing Silverlight Business Application Hi Shamil No, WP7 does not support databases - you set up a service for data communication. That's one of the things I wish to check out. As for development software, start here: Getting Started with Windows Phone Development http://msdn.microsoft.com/en-us/library/ff402529(v=vs.92).aspx and visit the download page: Installing Windows Phone Developer Tools http://msdn.microsoft.com/en-us/library/ff402530(v=vs.92).aspx Code Samples for Windows Phone http://msdn.microsoft.com/en-us/library/ff431744(v=vs.92).aspx Windows Phone 7 Design Guidelines * Cheat Sheet http://blogs.msdn.com/b/silverlight_sdk/archive/2011/01/07/windows-phone-7-d esign-guidelines-cheat-sheet.aspx Also: How to Use the Windows Phone Connect Tool http://msdn.microsoft.com/en-us/library/gg180729(v=VS.92).aspx /gustav _______________________________________________ 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 Mon Jan 31 18:56:27 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Tue, 1 Feb 2011 03:56:27 +0300 Subject: [dba-VB] ASP.NET app's web design Message-ID: <062E05BFD6C84E1AA345CFA7955C369C@nant> Hi All -- I wanted to ask three questions to the list members who has made some graphics/knows well (at least in theory) what tools and principles are involved in that graphics design process: - 1) Is there any inexpensive graphic design tools, which allow to create designs as the following? (assumption that graphics designer is able to imagine and make such design is given by default and is not the subject of my questions) http://shamils-23.hosting.parking.ru/Prototype/ (Must have for such a tool should be a feature to make layered design built from several graphical components as well as the feature of setting transparent background for given color, drawing gradients but there is no need in that many fancy and cute features one can find in ADOBE Photoshop - just a set of feature to support development of simple and elegant Web 2.0 designs - that is required...) - 2) When such design is created is it completely manual work to convert it into a (set of) .css + graphics + .html? - 3) Do you see a lot of graphics will go into .css + graphics + .html from such a design or most of it can be presented by just .css + .html4 (maybe .html5)? (I do assume here that photos of the consumer good products are not the part of the design, as well as shadows, which can be ignore while porting graphic design from .psd into .css + .html if they are not part of photos)... - 4) Do you suppose that the referred above design can be made without HTML tables - by using
+ .css + as little as possible graphics? Thank you. -- Shamil From jwcolby at colbyconsulting.com Sun Jan 2 14:06:39 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sun, 02 Jan 2011 15:06:39 -0500 Subject: [dba-VB] A Sneaky, Subtle Price Increase | Overclockers Message-ID: <4D20DACF.1010107@colbyconsulting.com> http://www.overclockers.com/a-sneaky-subtle-price-increase/ -- John W. Colby www.ColbyConsulting.com From jwcolby at colbyconsulting.com Sun Jan 2 14:58:23 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sun, 02 Jan 2011 15:58:23 -0500 Subject: [dba-VB] A Sneaky, Subtle Price Increase | Overclockers In-Reply-To: <4D20DACF.1010107@colbyconsulting.com> References: <4D20DACF.1010107@colbyconsulting.com> Message-ID: <4D20E6EF.1020800@colbyconsulting.com> So sneaky they are still warning us 6 years later... 8( John W. Colby www.ColbyConsulting.com On 1/2/2011 3:06 PM, jwcolby wrote: > http://www.overclockers.com/a-sneaky-subtle-price-increase/ > > From shamil at smsconsulting.spb.ru Wed Jan 5 07:15:15 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Wed, 5 Jan 2011 16:15:15 +0300 Subject: [dba-VB] FYI: EF Code First CTP5 Message-ID: <9DC97BD82AA542F297C26482B27D669F@nant> Hi All -- FYI: EF Code First CTP5 http://www.infoq.com/news/2010/12/ef-ctp5 http://weblogs.asp.net/manavi/default.aspx Thank you. -- Shamil From Gustav at cactus.dk Wed Jan 5 08:41:30 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 05 Jan 2011 15:41:30 +0100 Subject: [dba-VB] Moving to .Net, ASP.NET web applications, and the Entity Framework Message-ID: Hi all A step-by-step intro for everyone, and this may be a bit optimistic but still: Build a Data-Driven Enterprise Web Site in 5 Minutes http://msdn.microsoft.com/da-dk/magazine/gg535665(en-us).aspx If this should interest you, please subscribe to our dba-VB list. /gustav From jwcolby at colbyconsulting.com Wed Jan 5 12:00:15 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 05 Jan 2011 13:00:15 -0500 Subject: [dba-VB] SQL Server security Message-ID: <4D24B1AF.3090800@colbyconsulting.com> I am having performance issues in a largish Access application, a Disability Insurance Claim call center app. I have one particular table which is not huge in terms of field count but it does have a lot of records and most of the fields are indexed, and it has about 800K records in it. This table holds "contact" info, as in phone calls that the users have. They document every "contact" with every one, claimants, doctors, lawyers, etc. into a memo field and also date of call, ClaimID FK, employee id FK, contact type id FK etc. Kind of a mini center of the universe for this application. The result is that people are storing new records in this table constantly throughout the day and we are getting a lot of "record locked..." issues caused by (AFAICT) the time it takes Jet to store the records and update all of the indexes, and probably the memo storage area of the mdb. Just to give a picture, this one table has been moved out to it's own mdb and that mdb is about 700 megabytes after a compact. Most of the rest of the database (150 tables) is in another mdb and after compact that database is 800 megabytes, so this one table is close to as big as the rest of the db. I do not have experience in a transactional database using SQL Server, but I am thinking that SQL Server express 2005 will not have an issue keeping up with this kind of usage - 25 users adding records to this table all day without causing locking issues like I am seeing now. My issue at this point is that they use a network logon and force the users to change their password every 30 days. Is SQL Server going to use that same network username / password database or does it use a list of usernames / passwords physically on the server itself? IOW will Windows authentication work or will I need to go to SQL Server username / password? -- John W. Colby www.ColbyConsulting.com From davidmcafee at gmail.com Wed Jan 5 12:21:15 2011 From: davidmcafee at gmail.com (David McAfee) Date: Wed, 5 Jan 2011 10:21:15 -0800 Subject: [dba-VB] SQL Server security In-Reply-To: <4D24B1AF.3090800@colbyconsulting.com> References: <4D24B1AF.3090800@colbyconsulting.com> Message-ID: You can choose either path. I tend to use SQL Server security myself. A better question is maybe looking at the design of the table for the contact info. I tend to design all data changes as insertions. Vary rarely to I allow a table to be edited. I display the contact information on just about every screen, but only give to choice to edit (if they have rights) when it is indeed needed. I never have locking issues in Access or SQL. D On Wed, Jan 5, 2011 at 10:00 AM, jwcolby wrote: > I am having performance issues in a largish Access application, a > Disability Insurance Claim call center app. > > I have one particular table which is not huge in terms of field count but > it does have a lot of records and most of the fields are indexed, and it has > about 800K records in it. This table holds "contact" info, as in phone > calls that the users have. They document every "contact" with every one, > claimants, doctors, lawyers, etc. into a memo field and also date of call, > ClaimID FK, employee id FK, contact type id FK etc. Kind of a mini center > of the universe for this application. > > The result is that people are storing new records in this table constantly > throughout the day and we are getting a lot of "record locked..." issues > caused by (AFAICT) the time it takes Jet to store the records and update all > of the indexes, and probably the memo storage area of the mdb. > > Just to give a picture, this one table has been moved out to it's own mdb > and that mdb is about 700 megabytes after a compact. Most of the rest of > the database (150 tables) is in another mdb and after compact that database > is 800 megabytes, so this one table is close to as big as the rest of the > db. > > I do not have experience in a transactional database using SQL Server, but > I am thinking that SQL Server express 2005 will not have an issue keeping up > with this kind of usage - 25 users adding records to this table all day > without causing locking issues like I am seeing now. > > My issue at this point is that they use a network logon and force the users > to change their password every 30 days. Is SQL Server going to use that > same network username / password database or does it use a list of usernames > / passwords physically on the server itself? IOW will Windows > authentication work or will I need to go to SQL Server username / password? > > -- > John W. Colby > www.ColbyConsulting.com > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From jwcolby at colbyconsulting.com Wed Jan 5 12:45:01 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 05 Jan 2011 13:45:01 -0500 Subject: [dba-VB] SQL Server security In-Reply-To: References: <4D24B1AF.3090800@colbyconsulting.com> Message-ID: <4D24BC2D.2050907@colbyconsulting.com> This is not contact info as in Name / address / phone, it is a place to enter information about telephone (mostly) contacts with everyone that the call center people talk to. It is primarily a memo field (because they often write pages of notes) with a hand full of FKs and a few date fields. These are primarily new records (inserts) but there are edits of existing records. There are about 800 THOUSAND of these records and hundreds a day added. John W. Colby www.ColbyConsulting.com On 1/5/2011 1:21 PM, David McAfee wrote: > You can choose either path. I tend to use SQL Server security myself. > > A better question is maybe looking at the design of the table for the > contact info. > > I tend to design all data changes as insertions. Vary rarely to I allow a > table to be edited. > > I display the contact information on just about every screen, but only give > to choice to edit (if they have rights) when it is indeed needed. > > I never have locking issues in Access or SQL. > > D > > On Wed, Jan 5, 2011 at 10:00 AM, jwcolbywrote: > >> I am having performance issues in a largish Access application, a >> Disability Insurance Claim call center app. >> >> I have one particular table which is not huge in terms of field count but >> it does have a lot of records and most of the fields are indexed, and it has >> about 800K records in it. This table holds "contact" info, as in phone >> calls that the users have. They document every "contact" with every one, >> claimants, doctors, lawyers, etc. into a memo field and also date of call, >> ClaimID FK, employee id FK, contact type id FK etc. Kind of a mini center >> of the universe for this application. >> >> The result is that people are storing new records in this table constantly >> throughout the day and we are getting a lot of "record locked..." issues >> caused by (AFAICT) the time it takes Jet to store the records and update all >> of the indexes, and probably the memo storage area of the mdb. >> >> Just to give a picture, this one table has been moved out to it's own mdb >> and that mdb is about 700 megabytes after a compact. Most of the rest of >> the database (150 tables) is in another mdb and after compact that database >> is 800 megabytes, so this one table is close to as big as the rest of the >> db. >> >> I do not have experience in a transactional database using SQL Server, but >> I am thinking that SQL Server express 2005 will not have an issue keeping up >> with this kind of usage - 25 users adding records to this table all day >> without causing locking issues like I am seeing now. >> >> My issue at this point is that they use a network logon and force the users >> to change their password every 30 days. Is SQL Server going to use that >> same network username / password database or does it use a list of usernames >> / passwords physically on the server itself? IOW will Windows >> authentication work or will I need to go to SQL Server username / password? >> >> -- >> 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 fhtapia at gmail.com Wed Jan 5 13:41:23 2011 From: fhtapia at gmail.com (Francisco Tapia) Date: Wed, 5 Jan 2011 11:41:23 -0800 Subject: [dba-VB] SQL Server security In-Reply-To: <4D24B1AF.3090800@colbyconsulting.com> References: <4D24B1AF.3090800@colbyconsulting.com> Message-ID: -Francisco http://bit.ly/sqlthis | Tsql and More... On Wed, Jan 5, 2011 at 10:00 AM, jwcolby wrote: > > I do not have experience in a transactional database using SQL Server, but > I am thinking that SQL Server express 2005 will not have an issue keeping up > with this kind of usage - 25 users adding records to this table all day > without causing locking issues like I am seeing now. > It's been a while since I did a conversion, I don't remember if you need to make all your fields varchar or nvarchar, but that's the gist. I remember also going unbound to simplify the data entry process, but ymmv with that piece of advise. We have SQL Server running in the backend for many of our transactional systems and we have > than 25 users all w/o locking problems. My issue at this point is that they use a network logon and force the users > to change their password every 30 days. Is SQL Server going to use that > same network username / password database or does it use a list of usernames > / passwords physically on the server itself? IOW will Windows > authentication work or will I need to go to SQL Server username / password? Windows Authentication will work just fine. To simplify the user to server problem, you'd want the network admin to add your users who have access to the application to a specific domain group... then just give access to the domain group. You can even put security around who has access to what based on domain group, works a treat. If you have too much difficulty with that you can always fall back to sql authentication, but I always prefer windows authentication except for the web apps we have... From michael at mattysconsulting.com Wed Jan 5 13:53:38 2011 From: michael at mattysconsulting.com (Michael Mattys) Date: Wed, 5 Jan 2011 14:53:38 -0500 Subject: [dba-VB] Moving to .Net, ASP.NET web applications, and the Entity Framework In-Reply-To: References: Message-ID: Hi Gustav / All I made the site, but found that, even after I made sure that I was running in .Net Framework 4, the Display(Name ...) mechanism doesn't work. Did you try this? Michael R Mattys Business Process Developers www.mattysconsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, January 05, 2011 9:42 AM To: accessd at databaseadvisors.com; dba-vb at databaseadvisors.com Subject: [dba-VB] Moving to .Net, ASP.NET web applications,and the Entity Framework Hi all A step-by-step intro for everyone, and this may be a bit optimistic but still: Build a Data-Driven Enterprise Web Site in 5 Minutes http://msdn.microsoft.com/da-dk/magazine/gg535665(en-us).aspx If this should interest you, please subscribe to our dba-VB list. /gustav _______________________________________________ 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 Jan 5 15:01:19 2011 From: gustav at cactus.dk (Gustav Brock) Date: Wed, 05 Jan 2011 22:01:19 +0100 Subject: [dba-VB] Moving to .Net, ASP.NET web applications, and the Entity Framework Message-ID: Hi Michael No I haven't tried to build the site. Maybe I can have a look in the weekend. /gustav >>> "Michael Mattys" 05-01-2011 20:53 >>> Hi Gustav / All I made the site, but found that, even after I made sure that I was running in .Net Framework 4, the Display(Name ...) mechanism doesn't work. Did you try this? Michael R Mattys Business Process Developers www.mattysconsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, January 05, 2011 9:42 AM To: accessd at databaseadvisors.com; dba-vb at databaseadvisors.com Subject: [dba-VB] Moving to .Net, ASP.NET web applications,and the Entity Framework Hi all A step-by-step intro for everyone, and this may be a bit optimistic but still: Build a Data-Driven Enterprise Web Site in 5 Minutes http://msdn.microsoft.com/da-dk/magazine/gg535665(en-us).aspx If this should interest you, please subscribe to our dba-VB list. /gustav From shamil at smsconsulting.spb.ru Wed Jan 5 15:47:44 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Thu, 6 Jan 2011 00:47:44 +0300 Subject: [dba-VB] Moving to .Net, ASP.NET web applications, and the Entity Framework In-Reply-To: References: Message-ID: Hi Michael -- [Display(Name = ....] gives CS0592: Attribute 'Display' is not valid on this declaration type. It is only valid on 'method, property, indexer, field, param' declarations. [DisplayName(....] works well. Thank you. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Michael Mattys Sent: 5 ?????? 2011 ?. 22:54 To: 'Discussion concerning Visual Basic and related programming issues.' Subject: Re: [dba-VB] Moving to .Net, ASP.NET web applications,and the Entity Framework Hi Gustav / All I made the site, but found that, even after I made sure that I was running in .Net Framework 4, the Display(Name ...) mechanism doesn't work. Did you try this? Michael R Mattys Business Process Developers www.mattysconsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, January 05, 2011 9:42 AM To: accessd at databaseadvisors.com; dba-vb at databaseadvisors.com Subject: [dba-VB] Moving to .Net, ASP.NET web applications,and the Entity Framework Hi all A step-by-step intro for everyone, and this may be a bit optimistic but still: Build a Data-Driven Enterprise Web Site in 5 Minutes http://msdn.microsoft.com/da-dk/magazine/gg535665(en-us).aspx If this should interest you, please subscribe to our dba-VB list. /gustav From michael at mattysconsulting.com Wed Jan 5 20:55:51 2011 From: michael at mattysconsulting.com (Michael Mattys) Date: Wed, 5 Jan 2011 21:55:51 -0500 Subject: [dba-VB] Moving to .Net, ASP.NET web applications, and the Entity Framework In-Reply-To: References: Message-ID: <0FFE4C308D6D4A30BEE3C5635FDB7E65@Gateway> Thanks, Shamil! Michael R Mattys Business Process Developers www.mattysconsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Wednesday, January 05, 2011 4:48 PM To: 'Discussion concerning Visual Basic and related programming issues.' Subject: Re: [dba-VB] Moving to .Net, ASP.NET web applications,and the Entity Framework Hi Michael -- [Display(Name = ....] gives CS0592: Attribute 'Display' is not valid on this declaration type. It is only valid on 'method, property, indexer, field, param' declarations. [DisplayName(....] works well. Thank you. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Michael Mattys Sent: 5 ?????? 2011 ?. 22:54 To: 'Discussion concerning Visual Basic and related programming issues.' Subject: Re: [dba-VB] Moving to .Net, ASP.NET web applications,and the Entity Framework Hi Gustav / All I made the site, but found that, even after I made sure that I was running in .Net Framework 4, the Display(Name ...) mechanism doesn't work. Did you try this? Michael R Mattys Business Process Developers www.mattysconsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, January 05, 2011 9:42 AM To: accessd at databaseadvisors.com; dba-vb at databaseadvisors.com Subject: [dba-VB] Moving to .Net, ASP.NET web applications,and the Entity Framework Hi all A step-by-step intro for everyone, and this may be a bit optimistic but still: Build a Data-Driven Enterprise Web Site in 5 Minutes http://msdn.microsoft.com/da-dk/magazine/gg535665(en-us).aspx If this should interest you, please subscribe to our dba-VB list. /gustav _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From paul.hartland at googlemail.com Wed Jan 5 23:15:51 2011 From: paul.hartland at googlemail.com (Paul Hartland) Date: Thu, 6 Jan 2011 05:15:51 +0000 Subject: [dba-VB] SQL Server security In-Reply-To: <4D24B1AF.3090800@colbyconsulting.com> References: <4D24B1AF.3090800@colbyconsulting.com> Message-ID: John, I remember we had a similar problem at my old company many years back, especially with one table. Our simple solution (which surprised me that it worked) was to add two fields to the table a TimeStamp field and a UniqueIdentifier field (think those are the names of the datatypes in SQL). You could try that first. Paul On 5 January 2011 18:00, jwcolby wrote: > I am having performance issues in a largish Access application, a > Disability Insurance Claim call center app. > > I have one particular table which is not huge in terms of field count but > it does have a lot of records and most of the fields are indexed, and it has > about 800K records in it. This table holds "contact" info, as in phone > calls that the users have. They document every "contact" with every one, > claimants, doctors, lawyers, etc. into a memo field and also date of call, > ClaimID FK, employee id FK, contact type id FK etc. Kind of a mini center > of the universe for this application. > > The result is that people are storing new records in this table constantly > throughout the day and we are getting a lot of "record locked..." issues > caused by (AFAICT) the time it takes Jet to store the records and update all > of the indexes, and probably the memo storage area of the mdb. > > Just to give a picture, this one table has been moved out to it's own mdb > and that mdb is about 700 megabytes after a compact. Most of the rest of > the database (150 tables) is in another mdb and after compact that database > is 800 megabytes, so this one table is close to as big as the rest of the > db. > > I do not have experience in a transactional database using SQL Server, but > I am thinking that SQL Server express 2005 will not have an issue keeping up > with this kind of usage - 25 users adding records to this table all day > without causing locking issues like I am seeing now. > > My issue at this point is that they use a network logon and force the users > to change their password every 30 days. Is SQL Server going to use that > same network username / password database or does it use a list of usernames > / passwords physically on the server itself? IOW will Windows > authentication work or will I need to go to SQL Server username / password? > > -- > 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 > > -- Paul Hartland paul.hartland at googlemail.com From marklbreen at gmail.com Thu Jan 6 03:10:37 2011 From: marklbreen at gmail.com (Mark Breen) Date: Thu, 6 Jan 2011 09:10:37 +0000 Subject: [dba-VB] SQL Server security In-Reply-To: <4D24B1AF.3090800@colbyconsulting.com> References: <4D24B1AF.3090800@colbyconsulting.com> Message-ID: Hello John, I had an almost exact issue about three months ago. It was a call centre with about 25 - 40 agents on the phone with an Access App. When they upgraded to Access 2007, the whole application ground to a halt. I did some basic checking but could find no single issue, so I downgraded them again to Access 2000 FE and BE and immediately all was ok again. Any help? thanks Mark On 5 January 2011 18:00, jwcolby wrote: > I am having performance issues in a largish Access application, a > Disability Insurance Claim call center app. > > I have one particular table which is not huge in terms of field count but > it does have a lot of records and most of the fields are indexed, and it has > about 800K records in it. This table holds "contact" info, as in phone > calls that the users have. They document every "contact" with every one, > claimants, doctors, lawyers, etc. into a memo field and also date of call, > ClaimID FK, employee id FK, contact type id FK etc. Kind of a mini center > of the universe for this application. > > The result is that people are storing new records in this table constantly > throughout the day and we are getting a lot of "record locked..." issues > caused by (AFAICT) the time it takes Jet to store the records and update all > of the indexes, and probably the memo storage area of the mdb. > > Just to give a picture, this one table has been moved out to it's own mdb > and that mdb is about 700 megabytes after a compact. Most of the rest of > the database (150 tables) is in another mdb and after compact that database > is 800 megabytes, so this one table is close to as big as the rest of the > db. > > I do not have experience in a transactional database using SQL Server, but > I am thinking that SQL Server express 2005 will not have an issue keeping up > with this kind of usage - 25 users adding records to this table all day > without causing locking issues like I am seeing now. > > My issue at this point is that they use a network logon and force the users > to change their password every 30 days. Is SQL Server going to use that > same network username / password database or does it use a list of usernames > / passwords physically on the server itself? IOW will Windows > authentication work or will I need to go to SQL Server username / password? > > -- > John W. Colby > www.ColbyConsulting.com > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From jwcolby at colbyconsulting.com Thu Jan 6 05:14:49 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 06 Jan 2011 06:14:49 -0500 Subject: [dba-VB] SQL Server security In-Reply-To: References: <4D24B1AF.3090800@colbyconsulting.com> Message-ID: <4D25A429.5030609@colbyconsulting.com> This app has been in use since I developed the initial iteration many years ago. It is still at Access 2000. John W. Colby www.ColbyConsulting.com On 1/6/2011 4:10 AM, Mark Breen wrote: > Hello John, > > I had an almost exact issue about three months ago. It was a call centre > with about 25 - 40 agents on the phone with an Access App. > > When they upgraded to Access 2007, the whole application ground to a halt. > > I did some basic checking but could find no single issue, so I downgraded > them again to Access 2000 FE and BE and immediately all was ok again. > > Any help? > > thanks > > Mark > > > > On 5 January 2011 18:00, jwcolby wrote: > >> I am having performance issues in a largish Access application, a >> Disability Insurance Claim call center app. >> >> I have one particular table which is not huge in terms of field count but >> it does have a lot of records and most of the fields are indexed, and it has >> about 800K records in it. This table holds "contact" info, as in phone >> calls that the users have. They document every "contact" with every one, >> claimants, doctors, lawyers, etc. into a memo field and also date of call, >> ClaimID FK, employee id FK, contact type id FK etc. Kind of a mini center >> of the universe for this application. >> >> The result is that people are storing new records in this table constantly >> throughout the day and we are getting a lot of "record locked..." issues >> caused by (AFAICT) the time it takes Jet to store the records and update all >> of the indexes, and probably the memo storage area of the mdb. >> >> Just to give a picture, this one table has been moved out to it's own mdb >> and that mdb is about 700 megabytes after a compact. Most of the rest of >> the database (150 tables) is in another mdb and after compact that database >> is 800 megabytes, so this one table is close to as big as the rest of the >> db. >> >> I do not have experience in a transactional database using SQL Server, but >> I am thinking that SQL Server express 2005 will not have an issue keeping up >> with this kind of usage - 25 users adding records to this table all day >> without causing locking issues like I am seeing now. >> >> My issue at this point is that they use a network logon and force the users >> to change their password every 30 days. Is SQL Server going to use that >> same network username / password database or does it use a list of usernames >> / passwords physically on the server itself? IOW will Windows >> authentication work or will I need to go to SQL Server username / password? >> >> -- >> 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 Fri Jan 7 23:01:31 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 08 Jan 2011 00:01:31 -0500 Subject: [dba-VB] Access - link to SQL database -Database not showing Message-ID: <4D27EFAB.5040200@colbyconsulting.com> I have installed SQL Server 2005 on a (remote) Windows 2000 server machine at the client. From my workstation at the client I then open SQL Server MSExpress 2005 and I can see that SQL Server Express instance and two databases that I created on that SQL Server Express instance. From Access I try to link to a table in one of those databases. When I get to the wizard page where I am allowed to change the default database, I cannot see either of the two databases that I need to get at, only the master, msdb and tempdb. I was having a problem where I could not connect and had to open the surface configuration and allow remote connections. I selected TCP AND named pipes. That allowed MSE to see that server as well as Access to see that server, but it does not yet allow me to see the actual database of interest. Any clue why? I have done this before here at my office and I could always see the databases. TIA, -- John W. Colby www.ColbyConsulting.com From jwcolby at colbyconsulting.com Fri Jan 7 23:06:11 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 08 Jan 2011 00:06:11 -0500 Subject: [dba-VB] Further to "can's see SQL Server database... Message-ID: <4D27F0C3.2030206@colbyconsulting.com> I went back in with MSE and looked at that server. While I can see the databases of interest, if I click on them and try to see the tables inside, I get an error "the database DISCO is not available" and the plus symbol in front of the database disappears. So I can see that the db exists but not actually access it (from my workstation). I can see and open the database from MSE on the server itself. Is this an ownership / rights kind of issue? I am not getting an actual error number from my workstation, just an "not available" generic kind of message. If it is ownership / rights, how do I go about discovering how to fix it? -- John W. Colby www.ColbyConsulting.com From marklbreen at gmail.com Sat Jan 8 09:34:58 2011 From: marklbreen at gmail.com (Mark Breen) Date: Sat, 8 Jan 2011 15:34:58 +0000 Subject: [dba-VB] Further to "can's see SQL Server database... In-Reply-To: <4D27F0C3.2030206@colbyconsulting.com> References: <4D27F0C3.2030206@colbyconsulting.com> Message-ID: Hello John, In this case, I would like to know whether there is a database corruption issue or a connectivity. What about quickly creating a new db names testconn and see if you can connect to that. If it works and disco does not, then quickly check the db mappings from the properties dialog box. If you are mapped and you think that you should be able to see it, then maybe the db is corrupt. A few things to do are, stop and start the server, then refresh the branch and check again. Detach and re-attach the db and see if it helps Start thinking about a restore is that any help? I have seen ghost db's hang around but usually the three-step dance of stop start services, reboot, delete again etc will remove it. HTH Mark On 8 January 2011 05:06, jwcolby wrote: > I went back in with MSE and looked at that server. While I can see the > databases of interest, if I click on them and try to see the tables inside, > I get an error "the database DISCO is not available" and the plus symbol in > front of the database disappears. > > So I can see that the db exists but not actually access it (from my > workstation). > > I can see and open the database from MSE on the server itself. > > Is this an ownership / rights kind of issue? I am not getting an actual > error number from my workstation, just an "not available" generic kind of > message. > > If it is ownership / rights, how do I go about discovering how to fix it? > > -- > John W. Colby > www.ColbyConsulting.com > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From jwcolby at colbyconsulting.com Sat Jan 8 10:49:13 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 08 Jan 2011 11:49:13 -0500 Subject: [dba-VB] Further to "can's see SQL Server database... In-Reply-To: References: <4D27F0C3.2030206@colbyconsulting.com> Message-ID: <4D289589.2020503@colbyconsulting.com> Thanks for the response Mark. The server is called DiscoSvr and is a Windows 2000 x32 server, with 4G ram. It has Office (and Access) 2000 installed. It resides on a network at my client where they have between 40 and 50 workstations on the network, about 25 of which use the Access database. The network consists of two segments physically located in two immediately adjacent wings of a small office building They have a switch in one building and everyone in that building (two floors) ties into that switch, with a single gb line running over to the second wing and into the server room. The second wing has it's own switch and a wire that ties into the same switch as the gb line from the first building, from there into the server. *Probably* none of that is relevant but that is the layout. The client runs about 25 workstations scattered throughout the two wings of the building into DiscoSvr which acts as the file server for the DISCO database. Everyone (including my workstation) is able to get into DISCO running on DiscoSvr so physical access is not the issue, and physical file access rights are not the issue. I have a handful of FEs linked to about 5 different Access BEs. One of these BEs is the one of interest here and has a single tblClaimContact with a memo field to hold details of any kind of contact, mostly phone. The user types into this memo field paragraphs or even pages of details of phone conversations with every single person they have a phone conversation with. This table has just under 800K records and the Access BE that holds this table is about 700Megs after a compact. It is this one table that I am trying to create a SQL Server Express 2005 database for and a table in that database. SQL Server 2008 will not install on a Windows 2000 OS so I installed SQL Server 2005 Express on the system, using the Admin user of DISCO Server. As that Admin user and SSMS Express 2005 I can see the server, and create databases etc. Once I was able to do all of this with the Admin directly on the server I switched to my workstation and started trying from there. I installed SMSS 2005 Express on my workstation and could then see the database. Originally I could not even see the new server. I had to go back to DiscoSvr as an admin, run the surface config wizard and allow remote access using named pipes (not sure if I even need that) and TCP. I did stop and restart the SQLServer Express service, though I did not reboot the server. Back at my workstation I can now see the new server and browse the databases and can see and physically open the admin databases, see the tables etc, all from my workstation. I tried but I was unable to use the Access upsize wizard because it did not want to see the SQL Server 2005 express instance, from Access 2000 running right on DiscoSvr. I assumed that the issue was Access 2000 not understanding SQL Server 2005 or something. Given that the upsize wizard was giving me the ever helpful one word error message, I stopped that avenue. So I went into SSMS Express and I created a database locally basically using the import data tool from inside of sql server, telling it the source was an Access database. It created the table but failed to import the data. Since both of those failed, I then zipped the BE and moved it to my office server where I happened to have SQL Server Express 2005 installed as well as Office (and Access) 2003. Once I did that I was able to use Access 2003 upsize wizard to create a database and a table and upsize the data. I backed up the database, zipped the backup, uploaded that back to DISCOSvr and uses SSMS Express there to restore the database. SSMSE can see the database, can open the table etc. DIRECTLY FROM DiscoSvr as the admin user. Now that I have the table in a SQL Server database I am trying to link the FE to that table using the link table wizard in Access - from my workstation. That wizard can see the SQL Server and it can see the admin databases but it cannot even see the net database(s) that I created using the Admin user directly on DiscoSvr. When I open SSMSE from my workstation, it can see and manipulate the built in Admin databases and it can *see* but cannot even expand the two databases that I manually created on SQL Server. John W. Colby www.ColbyConsulting.com On 1/8/2011 10:34 AM, Mark Breen wrote: > Hello John, > > In this case, I would like to know whether there is a database corruption > issue or a connectivity. > > What about quickly creating a new db names testconn and see if you can > connect to that. > > If it works and disco does not, then quickly check the db mappings from the > properties dialog box. > > If you are mapped and you think that you should be able to see it, then > maybe the db is corrupt. > > A few things to do are, stop and start the server, then refresh the branch > and check again. > > Detach and re-attach the db and see if it helps > > Start thinking about a restore > > is that any help? > > I have seen ghost db's hang around but usually the three-step dance of stop > start services, reboot, delete again etc will remove it. > > HTH > > Mark > > > On 8 January 2011 05:06, jwcolby wrote: > >> I went back in with MSE and looked at that server. While I can see the >> databases of interest, if I click on them and try to see the tables inside, >> I get an error "the database DISCO is not available" and the plus symbol in >> front of the database disappears. >> >> So I can see that the db exists but not actually access it (from my >> workstation). >> >> I can see and open the database from MSE on the server itself. >> >> Is this an ownership / rights kind of issue? I am not getting an actual >> error number from my workstation, just an "not available" generic kind of >> message. >> >> If it is ownership / rights, how do I go about discovering how to fix it? >> >> -- >> 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 Sat Jan 8 16:19:42 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 08 Jan 2011 17:19:42 -0500 Subject: [dba-VB] How can it be Message-ID: <4D28E2FE.1020207@colbyconsulting.com> I have noticed that when I create a VM on my Windows 2008 server with HyperV, the virtual machine's cpu can be pegged in Task Manager Performance, and yet none of the 8 cores even raises an eyebrow in task manager inside of Windows 2008 itself. In Windows 2003 using VMWare, I would see one (or more) of the cores in the server software start chugging when the VMWare VM started working hard. Is it because Hyper V assignes the core outside of Windows itself? IOW Hyper V installs before the Windows software itself does. Is it actually assigning CPU cycles for one or more cores "outside of" Windows. If so is there a utility to see the actual core usage in Hyper V itself? -- John W. Colby www.ColbyConsulting.com From accessd at shaw.ca Sat Jan 8 20:37:46 2011 From: accessd at shaw.ca (Jim Lawrence) Date: Sat, 8 Jan 2011 18:37:46 -0800 Subject: [dba-VB] How can it be In-Reply-To: <4D28E2FE.1020207@colbyconsulting.com> References: <4D28E2FE.1020207@colbyconsulting.com> Message-ID: I am really not sure but a fellow tech said look at the number of copies of svchost.exe processes running... why their process is not reflected in the CPU is another question. Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Saturday, January 08, 2011 2:20 PM To: Access Developers discussion and problem solving; VBA Subject: [dba-VB] How can it be I have noticed that when I create a VM on my Windows 2008 server with HyperV, the virtual machine's cpu can be pegged in Task Manager Performance, and yet none of the 8 cores even raises an eyebrow in task manager inside of Windows 2008 itself. In Windows 2003 using VMWare, I would see one (or more) of the cores in the server software start chugging when the VMWare VM started working hard. Is it because Hyper V assignes the core outside of Windows itself? IOW Hyper V installs before the Windows software itself does. Is it actually assigning CPU cycles for one or more cores "outside of" Windows. If so is there a utility to see the actual core usage in Hyper V itself? -- 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 gustav at cactus.dk Sun Jan 9 08:12:08 2011 From: gustav at cactus.dk (Gustav Brock) Date: Sun, 09 Jan 2011 15:12:08 +0100 Subject: [dba-VB] LINQ Compiled Query Message-ID: Hi all Has anyone tested this technique out: http://www.blog.ingenuitynow.net/15+Minutes+On+LINQ+Compiled+Queries.aspx It looks quite simple to implement. /gustav From shamil at smsconsulting.spb.ru Sun Jan 9 08:20:21 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sun, 9 Jan 2011 17:20:21 +0300 Subject: [dba-VB] LINQ Compiled Query In-Reply-To: References: Message-ID: <28118F262BBF49899D453DE9CCBF3D11@nant> Hi Gustav -- No, I didn't. One of comments says: "I feel this compiled query approach is cumbersome. Image your application has 100 linq queries, you have to create 100 helper classes, and another 100 static functions. I wish Microsoft provides an easily way, maybe some syntax sugar, or some more magics in DataContent, to make programmer life easier. " 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: 9 ?????? 2011 ?. 17:12 To: dba-vb at databaseadvisors.com Subject: [dba-VB] LINQ Compiled Query Hi all Has anyone tested this technique out: http://www.blog.ingenuitynow.net/15+Minutes+On+LINQ+Compiled+Queries.aspx It looks quite simple to implement. /gustav From gustav at cactus.dk Sun Jan 9 09:00:22 2011 From: gustav at cactus.dk (Gustav Brock) Date: Sun, 09 Jan 2011 16:00:22 +0100 Subject: [dba-VB] LINQ Compiled Query Message-ID: Hi Shamil Yes, I noticed that comment and think it is valid. However, if you have a crucial query in, say, a loop it could be worth the efforts. /gustav >>> shamil at smsconsulting.spb.ru 09-01-2011 15:20 >>> Hi Gustav -- No, I didn't. One of comments says: "I feel this compiled query approach is cumbersome. Image your application has 100 linq queries, you have to create 100 helper classes, and another 100 static functions. I wish Microsoft provides an easily way, maybe some syntax sugar, or some more magics in DataContent, to make programmer life easier. " 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: 9 ?????? 2011 ?. 17:12 To: dba-vb at databaseadvisors.com Subject: [dba-VB] LINQ Compiled Query Hi all Has anyone tested this technique out: http://www.blog.ingenuitynow.net/15+Minutes+On+LINQ+Compiled+Queries.aspx It looks quite simple to implement. /gustav From shamil at smsconsulting.spb.ru Sun Jan 9 09:55:07 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sun, 9 Jan 2011 18:55:07 +0300 Subject: [dba-VB] LINQ Compiled Query In-Reply-To: References: Message-ID: Hi Gustav -- <<< However, if you have a crucial query in, say, a loop it could be worth the efforts. >>> Shouldn't LINQ be "smart enough" to not rebuild dynamic queries when that used in a loop? (of course if LINQ expression is not forcibly destroyed (by developer) at the end of every cycle iteration). I'd guess even if they get forcibly destoryed LINQ coudl somehow keep parsed&compiled LINQ expression cached... It's a very smart technology... (nothing new - all the principles used in (P)LINQ are known for years but that's the first time such a technology released to the business applications developers?) 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: 9 ?????? 2011 ?. 18:00 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] LINQ Compiled Query Hi Shamil Yes, I noticed that comment and think it is valid. However, if you have a crucial query in, say, a loop it could be worth the efforts. /gustav >>> shamil at smsconsulting.spb.ru 09-01-2011 15:20 >>> Hi Gustav -- No, I didn't. One of comments says: "I feel this compiled query approach is cumbersome. Image your application has 100 linq queries, you have to create 100 helper classes, and another 100 static functions. I wish Microsoft provides an easily way, maybe some syntax sugar, or some more magics in DataContent, to make programmer life easier. " 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: 9 ?????? 2011 ?. 17:12 To: dba-vb at databaseadvisors.com Subject: [dba-VB] LINQ Compiled Query Hi all Has anyone tested this technique out: http://www.blog.ingenuitynow.net/15+Minutes+On+LINQ+Compiled+Queries.aspx It looks quite simple to implement. /gustav _______________________________________________ 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 Jan 9 11:30:04 2011 From: gustav at cactus.dk (Gustav Brock) Date: Sun, 09 Jan 2011 18:30:04 +0100 Subject: [dba-VB] LINQ Compiled Query Message-ID: Hi Shamil I have no idea - and things may have evolved from 2008 to 2010. Perhaps the only "trick" is to wrap the LINQ query in a static class? But no ... I browsed a little and found this from a year ago: EF 4.0 & compiled queries & performance http://social.msdn.microsoft.com/Forums/en/adonetefx/thread/0c07e1d6-7db6-4348-b106-e576d3153b70 which demonstrates a dramatic speed increase for repeated runs of a compiled query. It also provides this link which seems to explain what is going on: Precompiling LINQ Queries by Julie Lerman http://msdn.microsoft.com/en-gb/magazine/ee336024.aspx /gustav PS: All MSDN Magazines can be browsed from here: http://msdn.microsoft.com/en-gb/magazine/ee310108.aspx >>> shamil at smsconsulting.spb.ru 09-01-2011 16:55 >>> Hi Gustav -- <<< However, if you have a crucial query in, say, a loop it could be worth the efforts. >>> Shouldn't LINQ be "smart enough" to not rebuild dynamic queries when that used in a loop? (of course if LINQ expression is not forcibly destroyed (by developer) at the end of every cycle iteration). I'd guess even if they get forcibly destoryed LINQ coudl somehow keep parsed&compiled LINQ expression cached... It's a very smart technology... (nothing new - all the principles used in (P)LINQ are known for years but that's the first time such a technology released to the business applications developers?) 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: 9 ?????? 2011 ?. 18:00 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] LINQ Compiled Query Hi Shamil Yes, I noticed that comment and think it is valid. However, if you have a crucial query in, say, a loop it could be worth the efforts. /gustav >>> shamil at smsconsulting.spb.ru 09-01-2011 15:20 >>> Hi Gustav -- No, I didn't. One of comments says: "I feel this compiled query approach is cumbersome. Image your application has 100 linq queries, you have to create 100 helper classes, and another 100 static functions. I wish Microsoft provides an easily way, maybe some syntax sugar, or some more magics in DataContent, to make programmer life easier. " 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: 9 ?????? 2011 ?. 17:12 To: dba-vb at databaseadvisors.com Subject: [dba-VB] LINQ Compiled Query Hi all Has anyone tested this technique out: http://www.blog.ingenuitynow.net/15+Minutes+On+LINQ+Compiled+Queries.aspx It looks quite simple to implement. /gustav From shamil at smsconsulting.spb.ru Sun Jan 9 17:08:03 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Mon, 10 Jan 2011 02:08:03 +0300 Subject: [dba-VB] LINQ Compiled Query In-Reply-To: References: Message-ID: Hi Gustav -- <<< Precompiling LINQ Queries by Julie Lerman http://msdn.microsoft.com/en-gb/magazine/ee336024.aspx >>> Yes, that's a very good article, thank you. Is it interesting what will happen when two or more threads (on ASP.NET app/service, WCF service, ....) will try to use the same static compiled LINQ query (with different parameters)? Will the first thread block the others till query execution finishes? (I'm copying here refererred article's code sample) static Func _custByID; public static Customer GetCustomer( int ID) { //test for an existing instance of the compiled query if (_custByID == null) { _custByID = CompiledQuery.Compile ((ctx, id) => ctx.Customers.Where(c => c.CustomerID == id).Single()); } return _custByID.Invoke(_context, ID); } 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: 9 ?????? 2011 ?. 20:30 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] LINQ Compiled Query Hi Shamil I have no idea - and things may have evolved from 2008 to 2010. Perhaps the only "trick" is to wrap the LINQ query in a static class? But no ... I browsed a little and found this from a year ago: EF 4.0 & compiled queries & performance http://social.msdn.microsoft.com/Forums/en/adonetefx/thread/0c07e1d6-7db6-43 48-b106-e576d3153b70 which demonstrates a dramatic speed increase for repeated runs of a compiled query. It also provides this link which seems to explain what is going on: Precompiling LINQ Queries by Julie Lerman http://msdn.microsoft.com/en-gb/magazine/ee336024.aspx /gustav PS: All MSDN Magazines can be browsed from here: http://msdn.microsoft.com/en-gb/magazine/ee310108.aspx >>> shamil at smsconsulting.spb.ru 09-01-2011 16:55 >>> Hi Gustav -- <<< However, if you have a crucial query in, say, a loop it could be worth the efforts. >>> Shouldn't LINQ be "smart enough" to not rebuild dynamic queries when that used in a loop? (of course if LINQ expression is not forcibly destroyed (by developer) at the end of every cycle iteration). I'd guess even if they get forcibly destoryed LINQ coudl somehow keep parsed&compiled LINQ expression cached... It's a very smart technology... (nothing new - all the principles used in (P)LINQ are known for years but that's the first time such a technology released to the business applications developers?) 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: 9 ?????? 2011 ?. 18:00 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] LINQ Compiled Query Hi Shamil Yes, I noticed that comment and think it is valid. However, if you have a crucial query in, say, a loop it could be worth the efforts. /gustav >>> shamil at smsconsulting.spb.ru 09-01-2011 15:20 >>> Hi Gustav -- No, I didn't. One of comments says: "I feel this compiled query approach is cumbersome. Image your application has 100 linq queries, you have to create 100 helper classes, and another 100 static functions. I wish Microsoft provides an easily way, maybe some syntax sugar, or some more magics in DataContent, to make programmer life easier. " 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: 9 ?????? 2011 ?. 17:12 To: dba-vb at databaseadvisors.com Subject: [dba-VB] LINQ Compiled Query Hi all Has anyone tested this technique out: http://www.blog.ingenuitynow.net/15+Minutes+On+LINQ+Compiled+Queries.aspx It looks quite simple to implement. /gustav From Gustav at cactus.dk Mon Jan 10 05:44:57 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 10 Jan 2011 12:44:57 +0100 Subject: [dba-VB] LINQ Compiled Query Message-ID: Hi Shamil Good question, and I don't know, but I would guess that at least each thread will run at the same speed as if the query was not compiled. In fact I have some trouble understanding what really is "complied" using this technique? Perhaps it is only some clever caching behind the scene that is taken place. /gustav >>> shamil at smsconsulting.spb.ru 10-01-2011 00:08 >>> Hi Gustav -- <<< Precompiling LINQ Queries by Julie Lerman http://msdn.microsoft.com/en-gb/magazine/ee336024.aspx >>> Yes, that's a very good article, thank you. Is it interesting what will happen when two or more threads (on ASP.NET app/service, WCF service, ....) will try to use the same static compiled LINQ query (with different parameters)? Will the first thread block the others till query execution finishes? (I'm copying here refererred article's code sample) static Func _custByID; public static Customer GetCustomer( int ID) { //test for an existing instance of the compiled query if (_custByID == null) { _custByID = CompiledQuery.Compile ((ctx, id) => ctx.Customers.Where(c => c.CustomerID == id).Single()); } return _custByID.Invoke(_context, ID); } 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: 9 ?????? 2011 ?. 20:30 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] LINQ Compiled Query Hi Shamil I have no idea - and things may have evolved from 2008 to 2010. Perhaps the only "trick" is to wrap the LINQ query in a static class? But no ... I browsed a little and found this from a year ago: EF 4.0 & compiled queries & performance http://social.msdn.microsoft.com/Forums/en/adonetefx/thread/0c07e1d6-7db6-4348-b106-e576d3153b70 which demonstrates a dramatic speed increase for repeated runs of a compiled query. It also provides this link which seems to explain what is going on: Precompiling LINQ Queries by Julie Lerman http://msdn.microsoft.com/en-gb/magazine/ee336024.aspx /gustav PS: All MSDN Magazines can be browsed from here: http://msdn.microsoft.com/en-gb/magazine/ee310108.aspx >>> shamil at smsconsulting.spb.ru 09-01-2011 16:55 >>> Hi Gustav -- <<< However, if you have a crucial query in, say, a loop it could be worth the efforts. >>> Shouldn't LINQ be "smart enough" to not rebuild dynamic queries when that used in a loop? (of course if LINQ expression is not forcibly destroyed (by developer) at the end of every cycle iteration). I'd guess even if they get forcibly destoryed LINQ coudl somehow keep parsed&compiled LINQ expression cached... It's a very smart technology... (nothing new - all the principles used in (P)LINQ are known for years but that's the first time such a technology released to the business applications developers?) Thank you. -- Shamil From shamil at smsconsulting.spb.ru Tue Jan 11 04:18:42 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Tue, 11 Jan 2011 13:18:42 +0300 Subject: [dba-VB] LINQ Compiled Query In-Reply-To: References: Message-ID: <2E19D8A804ED4FBD88648DD26DAFA32E@nant> Hi Gustav -- I suppose that "compiled" means that query execution plan is built - building query execution plan needs querying EDM (using .NET Reflection) , and that ready to use compiled execution plan is cached. For queries returning a few db records (and that should constitute most of well designed web app queries) saving query compilation time should give significant preformance gains... I will try to test compiled EDM LINQ qeries vs. dynamic ones in the coming days, and I will post the results here... 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: 10 ?????? 2011 ?. 14:45 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] LINQ Compiled Query Hi Shamil Good question, and I don't know, but I would guess that at least each thread will run at the same speed as if the query was not compiled. In fact I have some trouble understanding what really is "complied" using this technique? Perhaps it is only some clever caching behind the scene that is taken place. /gustav >>> shamil at smsconsulting.spb.ru 10-01-2011 00:08 >>> Hi Gustav -- <<< Precompiling LINQ Queries by Julie Lerman http://msdn.microsoft.com/en-gb/magazine/ee336024.aspx >>> Yes, that's a very good article, thank you. Is it interesting what will happen when two or more threads (on ASP.NET app/service, WCF service, ....) will try to use the same static compiled LINQ query (with different parameters)? Will the first thread block the others till query execution finishes? (I'm copying here refererred article's code sample) static Func _custByID; public static Customer GetCustomer( int ID) { //test for an existing instance of the compiled query if (_custByID == null) { _custByID = CompiledQuery.Compile ((ctx, id) => ctx.Customers.Where(c => c.CustomerID == id).Single()); } return _custByID.Invoke(_context, ID); } 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: 9 ?????? 2011 ?. 20:30 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] LINQ Compiled Query Hi Shamil I have no idea - and things may have evolved from 2008 to 2010. Perhaps the only "trick" is to wrap the LINQ query in a static class? But no ... I browsed a little and found this from a year ago: EF 4.0 & compiled queries & performance http://social.msdn.microsoft.com/Forums/en/adonetefx/thread/0c07e1d6-7db6-43 48-b106-e576d3153b70 which demonstrates a dramatic speed increase for repeated runs of a compiled query. It also provides this link which seems to explain what is going on: Precompiling LINQ Queries by Julie Lerman http://msdn.microsoft.com/en-gb/magazine/ee336024.aspx /gustav PS: All MSDN Magazines can be browsed from here: http://msdn.microsoft.com/en-gb/magazine/ee310108.aspx >>> shamil at smsconsulting.spb.ru 09-01-2011 16:55 >>> Hi Gustav -- <<< However, if you have a crucial query in, say, a loop it could be worth the efforts. >>> Shouldn't LINQ be "smart enough" to not rebuild dynamic queries when that used in a loop? (of course if LINQ expression is not forcibly destroyed (by developer) at the end of every cycle iteration). I'd guess even if they get forcibly destoryed LINQ coudl somehow keep parsed&compiled LINQ expression cached... It's a very smart technology... (nothing new - all the principles used in (P)LINQ are known for years but that's the first time such a technology released to the business applications developers?) Thank you. -- Shamil _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue Jan 11 09:58:51 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 11 Jan 2011 10:58:51 -0500 Subject: [dba-VB] C# Databases without borders Message-ID: <4D2C7E3B.3060008@colbyconsulting.com> I want to build a little application where I have a very simple zip code table of about 40 thousand zip codes, with things like household count, population count, lat and long. My application would take lists of zip codes and sum the population and household counts, count the zips etc and put a count on the screen in a table format. I already do this using SQL Server to hold the zip code table. I get the zip lists into csv files, then create a table inside of SQL Server, join on the zip code and sum the population and household counts. Now I want to build an application to do this but SQL Server is way overkill. Can I use a csv or even xml to hold the zip table, create an xml table to hold the zip lists entered by the user and so forth. IOW I need a low impact alternative to SQL Server. Even express is just way overkill for this. Somewhere in the back of my mind I am thinking that ADO.net knows how to load tables, create relationships between tables, enforce the join etc. IOW do the store entirely in XML and just use ADO to do the rest. Is this possible? Would the speed be acceptable for a join between tblZipMaster and tblZipUserXyz on Zip count(zip) sum(household) etc. directly in memory. -- John W. Colby www.ColbyConsulting.com From Gustav at cactus.dk Tue Jan 11 10:42:56 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 11 Jan 2011 17:42:56 +0100 Subject: [dba-VB] C# Databases without borders Message-ID: Hi John First, I don't think SQL Server (Express) is overkill as you - as I understand - have several engines running, so one tiny database more a less wouldn't make noticeable difference. Then, you could for a single user app use the SQL Server Compact (file based as Access/JET) or even an mdb file. Or, you could use the built-in XML storage which is simple and fun. Just remember that it writes _all_ tables of the dataset in one go when you call WriteXml() as shown below - if you attempt to write one table only (which can be done), only this table will be held in the XML file, all other tables will get lost. This we discussed 2009-09-02: For example, read one XML file with one dataset containing several tables: private void InitializeDataSet() { _dataBaseFile = Path.Combine(_execPath, _dataFileName); this.DlDataSet.ReadXml(_dataBaseFile); } Write the (modified) dataset to one XML file: private void SaveData() { this.DlDataSet.WriteXml(_dataBaseFile); } Resulting XML for one table with one record: 0 smtp.webpartner.dk cactus at cactus.dk gustav at cactus.dk /gustav >>> jwcolby at colbyconsulting.com 11-01-2011 16:58 >>> I want to build a little application where I have a very simple zip code table of about 40 thousand zip codes, with things like household count, population count, lat and long. My application would take lists of zip codes and sum the population and household counts, count the zips etc and put a count on the screen in a table format. I already do this using SQL Server to hold the zip code table. I get the zip lists into csv files, then create a table inside of SQL Server, join on the zip code and sum the population and household counts. Now I want to build an application to do this but SQL Server is way overkill. Can I use a csv or even xml to hold the zip table, create an xml table to hold the zip lists entered by the user and so forth. IOW I need a low impact alternative to SQL Server. Even express is just way overkill for this. Somewhere in the back of my mind I am thinking that ADO.net knows how to load tables, create relationships between tables, enforce the join etc. IOW do the store entirely in XML and just use ADO to do the rest. Is this possible? Would the speed be acceptable for a join between tblZipMaster and tblZipUserXyz on Zip count(zip) sum(household) etc. directly in memory. -- John W. Colby www.ColbyConsulting.com From jwcolby at colbyconsulting.com Tue Jan 11 10:37:10 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 11 Jan 2011 11:37:10 -0500 Subject: [dba-VB] C# Databases without borders In-Reply-To: References: Message-ID: <4D2C8736.2050507@colbyconsulting.com> Gustav, This is going to be a C# applet that anyone can install on their system. John W. Colby www.ColbyConsulting.com On 1/11/2011 11:42 AM, Gustav Brock wrote: > Hi John > > First, I don't think SQL Server (Express) is overkill as you - as I understand - have several engines running, so one tiny database more a less wouldn't make noticeable difference. > > Then, you could for a single user app use the SQL Server Compact (file based as Access/JET) or even an mdb file. > Or, you could use the built-in XML storage which is simple and fun. Just remember that it writes _all_ tables of the dataset in one go when you call WriteXml() as shown below - if you attempt to write one table only (which can be done), only this table will be held in the XML file, all other tables will get lost. > > This we discussed 2009-09-02: > > For example, read one XML file with one dataset containing several tables: > > private void InitializeDataSet() > { > _dataBaseFile = Path.Combine(_execPath, _dataFileName); > this.DlDataSet.ReadXml(_dataBaseFile); > } > > Write the (modified) dataset to one XML file: > > private void SaveData() > { > this.DlDataSet.WriteXml(_dataBaseFile); > } > > Resulting XML for one table with one record: > > > > > 0 > smtp.webpartner.dk > > > cactus at cactus.dk > gustav at cactus.dk > > > > /gustav > > > >>>> jwcolby at colbyconsulting.com 11-01-2011 16:58>>> > I want to build a little application where I have a very simple zip code table of about 40 thousand > zip codes, with things like household count, population count, lat and long. My application would > take lists of zip codes and sum the population and household counts, count the zips etc and put a > count on the screen in a table format. > > I already do this using SQL Server to hold the zip code table. I get the zip lists into csv files, > then create a table inside of SQL Server, join on the zip code and sum the population and household > counts. > > Now I want to build an application to do this but SQL Server is way overkill. > > Can I use a csv or even xml to hold the zip table, create an xml table to hold the zip lists entered > by the user and so forth. IOW I need a low impact alternative to SQL Server. Even express is just > way overkill for this. > > Somewhere in the back of my mind I am thinking that ADO.net knows how to load tables, create > relationships between tables, enforce the join etc. IOW do the store entirely in XML and just use > ADO to do the rest. > > Is this possible? Would the speed be acceptable for a join between tblZipMaster and tblZipUserXyz > on Zip count(zip) sum(household) etc. directly in memory. From Gustav at cactus.dk Tue Jan 11 10:57:44 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 11 Jan 2011 17:57:44 +0100 Subject: [dba-VB] C# Databases without borders Message-ID: Hi John Oh, I missed that. That rules out the SQL Server engine and leaves you with the file based options. You can freely include and deploy SQL Server Compact Edition. /gustav >>> jwcolby at colbyconsulting.com 11-01-2011 17:37 >>> Gustav, This is going to be a C# applet that anyone can install on their system. John W. Colby www.ColbyConsulting.com On 1/11/2011 11:42 AM, Gustav Brock wrote: > Hi John > > First, I don't think SQL Server (Express) is overkill as you - as I understand - have several engines running, so one tiny database more a less wouldn't make noticeable difference. > > Then, you could for a single user app use the SQL Server Compact (file based as Access/JET) or even an mdb file. > Or, you could use the built-in XML storage which is simple and fun. Just remember that it writes _all_ tables of the dataset in one go when you call WriteXml() as shown below - if you attempt to write one table only (which can be done), only this table will be held in the XML file, all other tables will get lost. > > This we discussed 2009-09-02: > > For example, read one XML file with one dataset containing several tables: > > private void InitializeDataSet() > { > _dataBaseFile = Path.Combine(_execPath, _dataFileName); > this.DlDataSet.ReadXml(_dataBaseFile); > } > > Write the (modified) dataset to one XML file: > > private void SaveData() > { > this.DlDataSet.WriteXml(_dataBaseFile); > } > > Resulting XML for one table with one record: > > > > > 0 > smtp.webpartner.dk > > > cactus at cactus.dk > gustav at cactus.dk > > > > /gustav > > > >>>> jwcolby at colbyconsulting.com 11-01-2011 16:58>>> > I want to build a little application where I have a very simple zip code table of about 40 thousand > zip codes, with things like household count, population count, lat and long. My application would > take lists of zip codes and sum the population and household counts, count the zips etc and put a > count on the screen in a table format. > > I already do this using SQL Server to hold the zip code table. I get the zip lists into csv files, > then create a table inside of SQL Server, join on the zip code and sum the population and household > counts. > > Now I want to build an application to do this but SQL Server is way overkill. > > Can I use a csv or even xml to hold the zip table, create an xml table to hold the zip lists entered > by the user and so forth. IOW I need a low impact alternative to SQL Server. Even express is just > way overkill for this. > > Somewhere in the back of my mind I am thinking that ADO.net knows how to load tables, create > relationships between tables, enforce the join etc. IOW do the store entirely in XML and just use > ADO to do the rest. > > Is this possible? Would the speed be acceptable for a join between tblZipMaster and tblZipUserXyz > on Zip count(zip) sum(household) etc. directly in memory. From dw-murphy at cox.net Tue Jan 11 10:58:34 2011 From: dw-murphy at cox.net (Doug Murphy) Date: Tue, 11 Jan 2011 08:58:34 -0800 Subject: [dba-VB] C# Databases without borders In-Reply-To: References: Message-ID: Why not an mdb file? ADO.NET works fine. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, January 11, 2011 8:58 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] C# Databases without borders Hi John Oh, I missed that. That rules out the SQL Server engine and leaves you with the file based options. You can freely include and deploy SQL Server Compact Edition. /gustav >>> jwcolby at colbyconsulting.com 11-01-2011 17:37 >>> Gustav, This is going to be a C# applet that anyone can install on their system. John W. Colby www.ColbyConsulting.com On 1/11/2011 11:42 AM, Gustav Brock wrote: > Hi John > > First, I don't think SQL Server (Express) is overkill as you - as I understand - have several engines running, so one tiny database more a less wouldn't make noticeable difference. > > Then, you could for a single user app use the SQL Server Compact (file based as Access/JET) or even an mdb file. > Or, you could use the built-in XML storage which is simple and fun. Just remember that it writes _all_ tables of the dataset in one go when you call WriteXml() as shown below - if you attempt to write one table only (which can be done), only this table will be held in the XML file, all other tables will get lost. > > This we discussed 2009-09-02: > > For example, read one XML file with one dataset containing several tables: > > private void InitializeDataSet() > { > _dataBaseFile = Path.Combine(_execPath, _dataFileName); > this.DlDataSet.ReadXml(_dataBaseFile); > } > > Write the (modified) dataset to one XML file: > > private void SaveData() > { > this.DlDataSet.WriteXml(_dataBaseFile); > } > > Resulting XML for one table with one record: > > xmlns="http://tempuri.org/DataSetDL.xsd"> > > 0 > smtp.webpartner.dk > > > cactus at cactus.dk > gustav at cactus.dk > > > > /gustav > > > >>>> jwcolby at colbyconsulting.com 11-01-2011 16:58>>> > I want to build a little application where I have a very simple zip > code table of about 40 thousand zip codes, with things like household > count, population count, lat and long. My application would take > lists of zip codes and sum the population and household counts, count the zips etc and put a count on the screen in a table format. > > I already do this using SQL Server to hold the zip code table. I get > the zip lists into csv files, then create a table inside of SQL > Server, join on the zip code and sum the population and household counts. > > Now I want to build an application to do this but SQL Server is way overkill. > > Can I use a csv or even xml to hold the zip table, create an xml table > to hold the zip lists entered by the user and so forth. IOW I need a > low impact alternative to SQL Server. Even express is just way overkill for this. > > Somewhere in the back of my mind I am thinking that ADO.net knows how > to load tables, create relationships between tables, enforce the join > etc. IOW do the store entirely in XML and just use ADO to do the rest. > > Is this possible? Would the speed be acceptable for a join between > tblZipMaster and tblZipUserXyz on Zip count(zip) sum(household) etc. directly in memory. _______________________________________________ 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 Tue Jan 11 11:20:46 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 11 Jan 2011 18:20:46 +0100 Subject: [dba-VB] C# Databases without borders Message-ID: Hi Doug Right, except for some potential 64-bit issues? I think the driver issue was solved, but I haven't worked with it myself. And Visual Studio just loooves SQL Server Compact Edition! /gustav >>> dw-murphy at cox.net 11-01-2011 17:58 >>> Why not an mdb file? ADO.NET works fine. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, January 11, 2011 8:58 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] C# Databases without borders Hi John Oh, I missed that. That rules out the SQL Server engine and leaves you with the file based options. You can freely include and deploy SQL Server Compact Edition. /gustav >>> jwcolby at colbyconsulting.com 11-01-2011 17:37 >>> Gustav, This is going to be a C# applet that anyone can install on their system. From Gustav at cactus.dk Tue Jan 11 11:48:05 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 11 Jan 2011 18:48:05 +0100 Subject: [dba-VB] Free ebook: Programming Windows Phone 7, by Charles Petzold Message-ID: Hi all If you are serious about Windows Phone 7, this 1000+ page monster book from Microsoft is only a 13 MB download + 5 MB for code samples: http://blogs.msdn.com/b/microsoft_press/archive/2010/10/28/free-ebook-programming-windows-phone-7-by-charles-petzold.aspx Note this: To use this book properly you'll need to download and install the Windows Phone Developer Tools, which includes Visual Studio 2010 Express for Windows Phone, XNA Game Studio 4.0, and an on-screen Windows Phone Emulator to test your programs in the absence of an actual device. Get the latest information and downloads at http://developer.windowsphone.com. You can install these tools on top of Visual Studio 2010, in effect enhancing Visual Studio 2010 for phone development. That's the configuration I used. Although you can do quite a bit with the phone emulator, at some point you'll want to deploy your programs to an actual Windows Phone 7 device. You can register as a phone developer at http://developer.windowsphone.com and then have the ability to unlock your phone so you can deploy your programs from Visual Studio. /gustav From stuart at lexacorp.com.pg Tue Jan 11 14:12:22 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 12 Jan 2011 06:12:22 +1000 Subject: [dba-VB] C# Databases without borders In-Reply-To: <4D2C7E3B.3060008@colbyconsulting.com> References: <4D2C7E3B.3060008@colbyconsulting.com> Message-ID: <4D2CB9A6.30399.8ADA003@stuart.lexacorp.com.pg> Three ways: Binary array stored in the application as a resource and do that analysis yourself on the array elements. SQLite - http://www.sqlite.org/ Access mdb The first way is probably the optimum, but will require a bit more coding to do the analysus. With only 40,000 rows stored as a collection or array, the in-memory scanning and summation should be near instant ( at least it would be if I did it in Powerbasic ) -- Stuart On 11 Jan 2011 at 10:58, jwcolby wrote: > I want to build a little application where I have a very simple zip > code table of about 40 thousand zip codes, with things like household > count, population count, lat and long. My application would take > lists of zip codes and sum the population and household counts, count > the zips etc and put a count on the screen in a table format. > > I already do this using SQL Server to hold the zip code table. I get > the zip lists into csv files, then create a table inside of SQL > Server, join on the zip code and sum the population and household > counts. > > Now I want to build an application to do this but SQL Server is way > overkill. > > Can I use a csv or even xml to hold the zip table, create an xml table > to hold the zip lists entered by the user and so forth. IOW I need a > low impact alternative to SQL Server. Even express is just way > overkill for this. > > Somewhere in the back of my mind I am thinking that ADO.net knows how > to load tables, create relationships between tables, enforce the join > etc. IOW do the store entirely in XML and just use ADO to do the > rest. > > Is this possible? Would the speed be acceptable for a join between > tblZipMaster and tblZipUserXyz on Zip count(zip) sum(household) etc. > directly in memory. -- 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 dw-murphy at cox.net Tue Jan 11 14:21:38 2011 From: dw-murphy at cox.net (Doug Murphy) Date: Tue, 11 Jan 2011 12:21:38 -0800 Subject: [dba-VB] C# Databases without borders In-Reply-To: References: Message-ID: <396C8A3D6CDA4DEA8E21964189F12919@murphy3234aaf1> Good point about 64 bit. Have no experience installing apps there. Then I'd go with exporting and importing dataset to xml file. That is even more native I think. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, January 11, 2011 9:21 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] C# Databases without borders Hi Doug Right, except for some potential 64-bit issues? I think the driver issue was solved, but I haven't worked with it myself. And Visual Studio just loooves SQL Server Compact Edition! /gustav >>> dw-murphy at cox.net 11-01-2011 17:58 >>> Why not an mdb file? ADO.NET works fine. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, January 11, 2011 8:58 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] C# Databases without borders Hi John Oh, I missed that. That rules out the SQL Server engine and leaves you with the file based options. You can freely include and deploy SQL Server Compact Edition. /gustav >>> jwcolby at colbyconsulting.com 11-01-2011 17:37 >>> Gustav, This is going to be a C# applet that anyone can install on their system. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From davidmcafee at gmail.com Tue Jan 11 14:22:33 2011 From: davidmcafee at gmail.com (David McAfee) Date: Tue, 11 Jan 2011 12:22:33 -0800 Subject: [dba-VB] C# Databases without borders In-Reply-To: <4D2CB9A6.30399.8ADA003@stuart.lexacorp.com.pg> References: <4D2C7E3B.3060008@colbyconsulting.com> <4D2CB9A6.30399.8ADA003@stuart.lexacorp.com.pg> Message-ID: If the app is a single user app, you can also use C# and SQLCE. You can pass the datasets to and from the user via a web service. D On Tue, Jan 11, 2011 at 12:12 PM, Stuart McLachlan wrote: > Three ways: > > Binary array stored in the application as a resource and do that analysis > yourself on the array > elements. > > SQLite - http://www.sqlite.org/ > > Access mdb > > The first way is probably the optimum, but will require a bit more coding > to do the analysus. > > With only 40,000 rows stored as a collection or array, the in-memory > scanning and > summation should be near instant ( at least it would be if I did it in > Powerbasic ) > > -- > Stuart > > > On 11 Jan 2011 at 10:58, jwcolby wrote: > > > I want to build a little application where I have a very simple zip > > code table of about 40 thousand zip codes, with things like household > > count, population count, lat and long. My application would take > > lists of zip codes and sum the population and household counts, count > > the zips etc and put a count on the screen in a table format. > > > > I already do this using SQL Server to hold the zip code table. I get > > the zip lists into csv files, then create a table inside of SQL > > Server, join on the zip code and sum the population and household > > counts. > > > > Now I want to build an application to do this but SQL Server is way > > overkill. > > > > Can I use a csv or even xml to hold the zip table, create an xml table > > to hold the zip lists entered by the user and so forth. IOW I need a > > low impact alternative to SQL Server. Even express is just way > > overkill for this. > > > > Somewhere in the back of my mind I am thinking that ADO.net knows how > > to load tables, create relationships between tables, enforce the join > > etc. IOW do the store entirely in XML and just use ADO to do the > > rest. > > > > Is this possible? Would the speed be acceptable for a join between > > tblZipMaster and tblZipUserXyz on Zip count(zip) sum(household) etc. > > directly in memory. -- 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 shamil at smsconsulting.spb.ru Thu Jan 13 15:47:42 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Fri, 14 Jan 2011 00:47:42 +0300 Subject: [dba-VB] (Free) C#/VB.NET equivalents of Excel.Application.WorksheetFunction.NormSDist(Arg1 As Double) As Double? Message-ID: <7211AB6BCA524E3F8F3664993D3D3F47@nant> Hi All -- Do you know about any (free) equivalents of Exel.Application.WorksheetFunction.NormSDist(Arg1 As Double) As Double ? I have got googled the following link: http://bytes.com/topic/c-sharp/answers/240995-normal-distribution but I'm not sure/have no time now to check will that simple solution be equivalent to the Excel.Application.WorksheetFunction.NormSDist(...)? I have to get developed an independent from MS Excel solution. Thank you. -- Shamil From df.waters at comcast.net Thu Jan 13 16:37:23 2011 From: df.waters at comcast.net (Dan Waters) Date: Thu, 13 Jan 2011 16:37:23 -0600 Subject: [dba-VB] (Free) C#/VB.NET equivalents ofExcel.Application.WorksheetFunction.NormSDist(Arg1 As Double)As Double? In-Reply-To: <7211AB6BCA524E3F8F3664993D3D3F47@nant> References: <7211AB6BCA524E3F8F3664993D3D3F47@nant> Message-ID: Hi Shamil, I was a Quality Engineer in a former life and occasionally had to use this formula. I found this: http://en.wikipedia.org/wiki/Normal_distribution. It looks to me like the equation is similar, but I don't know what Math.Pow is. Good Luck! Dan -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Thursday, January 13, 2011 3:48 PM To: 'Discussion concerning Visual Basic and related programming issues.' Subject: [dba-VB] (Free) C#/VB.NET equivalents ofExcel.Application.WorksheetFunction.NormSDist(Arg1 As Double)As Double? Hi All -- Do you know about any (free) equivalents of Exel.Application.WorksheetFunction.NormSDist(Arg1 As Double) As Double ? I have got googled the following link: http://bytes.com/topic/c-sharp/answers/240995-normal-distribution but I'm not sure/have no time now to check will that simple solution be equivalent to the Excel.Application.WorksheetFunction.NormSDist(...)? I have to get developed an independent from MS Excel solution. Thank you. -- Shamil _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From shamil at smsconsulting.spb.ru Fri Jan 14 07:52:33 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Fri, 14 Jan 2011 16:52:33 +0300 Subject: [dba-VB] (Free) C#/VB.NET equivalentsofExcel.Application.WorksheetFunction.NormSDist(Arg1 AsDouble)As Double? In-Reply-To: References: <7211AB6BCA524E3F8F3664993D3D3F47@nant> Message-ID: <1F66E8F19E01484284E7277621C5BFA2@nant> Thank you, Dan, Math.Pow is a power math operation. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: 14 ?????? 2011 ?. 1:37 To: 'Discussion concerning Visual Basic and related programming issues.' Subject: Re: [dba-VB] (Free) C#/VB.NET equivalentsofExcel.Application.WorksheetFunction.NormSDist(Arg1 AsDouble)As Double? Hi Shamil, I was a Quality Engineer in a former life and occasionally had to use this formula. I found this: http://en.wikipedia.org/wiki/Normal_distribution. It looks to me like the equation is similar, but I don't know what Math.Pow is. Good Luck! Dan -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Thursday, January 13, 2011 3:48 PM To: 'Discussion concerning Visual Basic and related programming issues.' Subject: [dba-VB] (Free) C#/VB.NET equivalents ofExcel.Application.WorksheetFunction.NormSDist(Arg1 As Double)As Double? Hi All -- Do you know about any (free) equivalents of Exel.Application.WorksheetFunction.NormSDist(Arg1 As Double) As Double ? I have got googled the following link: http://bytes.com/topic/c-sharp/answers/240995-normal-distribution but I'm not sure/have no time now to check will that simple solution be equivalent to the Excel.Application.WorksheetFunction.NormSDist(...)? I have to get developed an independent from MS Excel solution. Thank you. -- Shamil _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From shamil at smsconsulting.spb.ru Fri Jan 14 10:51:49 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Fri, 14 Jan 2011 19:51:49 +0300 Subject: [dba-VB] How to specify a relative path to an MS Access db in app.config? Message-ID: <554BE140BB7F41ABA5636DC762C245F7@nant> Hi All -- That should be simple(?) but google somehow doesn't give any useful feedback (or I'm missing it). I wanted to have the following connection string from app.config to use relative path to MS Access db - relative to the folder where app.config (its assembly) will be installed on target system: If I write: Data Source=.\Database\TestData.mdb it works on start-up and when I work with main form, but as soon as I use, e.g., OpenFile fialog, which changes default folder main form's update which is bound do a dataset which uses the above connection string fails to update db as it gets now improper fullpath for db... Isn't there something like Data Source=~\Database\TestData.mdb or Data Source={Application}\Database\TestData.mdb or ... way to specify "stable" relative path to the MS Access db - relative to the app.config's assembly location? I do not want to use DSN... Thank you. -- Shamil From gustav at cactus.dk Fri Jan 14 15:29:02 2011 From: gustav at cactus.dk (Gustav Brock) Date: Fri, 14 Jan 2011 22:29:02 +0100 Subject: [dba-VB] How to specify a relative path to an MS Access db in app.config? Message-ID: Hi Shamil This guy seems to have found a method to specify a relative path as a parameter - which is little different from your connection string: http://www.eggheadcafe.com/community/aspnet/2/10213449/set-relative-path-in-windows-application.aspx However, you later should be able to easily modify your connection string using the SqlConnectionStringBuilder: private SqlConnection ConnectionApplyPassword(string connectionString) { // Apply password to connectionString. SqlConnectionStringBuilder sqlConnectionStringBuilder = new SqlConnectionStringBuilder(); sqlConnectionStringBuilder.ConnectionString = connectionString; sqlConnectionStringBuilder.Password = _connectionDbPassword; return new SqlConnection(sqlConnectionStringBuilder.ToString()); } like this: someDataTableAdapter.Connection = ConnectionApplyPassword(someDataTableAdapter.Connection.ConnectionString); /gustav >>> shamil at smsconsulting.spb.ru 14-01-2011 17:51 >>> Hi All -- That should be simple(?) but google somehow doesn't give any useful feedback (or I'm missing it). I wanted to have the following connection string from app.config to use relative path to MS Access db - relative to the folder where app.config (its assembly) will be installed on target system: If I write: Data Source=.\Database\TestData.mdb it works on start-up and when I work with main form, but as soon as I use, e.g., OpenFile fialog, which changes default folder main form's update which is bound do a dataset which uses the above connection string fails to update db as it gets now improper fullpath for db... Isn't there something like Data Source=~\Database\TestData.mdb or Data Source={Application}\Database\TestData.mdb or ... way to specify "stable" relative path to the MS Access db - relative to the app.config's assembly location? I do not want to use DSN... Thank you. -- Shamil From shamil at smsconsulting.spb.ru Fri Jan 14 16:09:27 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sat, 15 Jan 2011 01:09:27 +0300 Subject: [dba-VB] How to specify a relative path to an MS Access db inapp.config? In-Reply-To: References: Message-ID: <7F371F119A344A17A24F2AF9BF5D540A@nant> Thank you, Gustav, First of all I do use MS Access backend for that my simple application. Yes, I can write a couple of code lines to customize connection creation on runtime but I wanted to avoid doing that additional coding. The following static solution works well I just need to keep watching to have current directory within that application to be always equal to the app.config's assembly directory... 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: 15 ?????? 2011 ?. 0:29 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] How to specify a relative path to an MS Access db inapp.config? Hi Shamil This guy seems to have found a method to specify a relative path as a parameter - which is little different from your connection string: http://www.eggheadcafe.com/community/aspnet/2/10213449/set-relative-path-in- windows-application.aspx However, you later should be able to easily modify your connection string using the SqlConnectionStringBuilder: private SqlConnection ConnectionApplyPassword(string connectionString) { // Apply password to connectionString. SqlConnectionStringBuilder sqlConnectionStringBuilder = new SqlConnectionStringBuilder(); sqlConnectionStringBuilder.ConnectionString = connectionString; sqlConnectionStringBuilder.Password = _connectionDbPassword; return new SqlConnection(sqlConnectionStringBuilder.ToString()); } like this: someDataTableAdapter.Connection = ConnectionApplyPassword(someDataTableAdapter.Connection.ConnectionString); /gustav >>> shamil at smsconsulting.spb.ru 14-01-2011 17:51 >>> Hi All -- That should be simple(?) but google somehow doesn't give any useful feedback (or I'm missing it). I wanted to have the following connection string from app.config to use relative path to MS Access db - relative to the folder where app.config (its assembly) will be installed on target system: If I write: Data Source=.\Database\TestData.mdb it works on start-up and when I work with main form, but as soon as I use, e.g., OpenFile fialog, which changes default folder main form's update which is bound do a dataset which uses the above connection string fails to update db as it gets now improper fullpath for db... Isn't there something like Data Source=~\Database\TestData.mdb or Data Source={Application}\Database\TestData.mdb or ... way to specify "stable" relative path to the MS Access db - relative to the app.config's assembly location? I do not want to use DSN... Thank you. -- Shamil _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Sat Jan 15 17:37:00 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 15 Jan 2011 18:37:00 -0500 Subject: [dba-VB] SQL Server over Hamachi: First test not hopeful Message-ID: <4D322F9C.8090405@colbyconsulting.com> I developed a SQL Server database, with perhaps 10-15 tables, populated a few with just a handful of records, created an Access database and built a few forms. My strategy is to do Access because I can do it quickly, but link it to SQL Server, the run the FE on a remote computer over Hamachi. Tonight I went to a local Arby's to test the speed of the system. The local Arby's has an open wifi, which using Speedtest.net tested 5 mbit down, 1 mbit up - typical low end cable in my area. So I tried to use the system and... well... it took an extremely long time to connect, if it connected at all. Access mostly timed out trying to log on. SQL Server Management System would log on sometimes. Sometimes not. Trying to hit it at the actual Hamachi IP address worked but took awhile. 15 - 30 seconds to connect (I did not time it). To be honest I am puzzled. Google finds plenty of folks trying this, some succeeding, most pretty slow. Remote desktop is plenty fast. From inside of my office, out across the internet via Hamachi I have done things like file transfers etc (in the past). Remote desktop has always been very speedy, but there isn't much needed for RD. I had really expected faster connections / operation. I really expected SSMS to just work, pretty much at speed. It didn't. Sigh, back to the drawing boards. -- John W. Colby www.ColbyConsulting.com From marklbreen at gmail.com Sun Jan 16 04:39:00 2011 From: marklbreen at gmail.com (Mark Breen) Date: Sun, 16 Jan 2011 10:39:00 +0000 Subject: [dba-VB] SQL Server over Hamachi: First test not hopeful In-Reply-To: <4D322F9C.8090405@colbyconsulting.com> References: <4D322F9C.8090405@colbyconsulting.com> Message-ID: Hello John, I am using Hamachi - since you mentioned it here a few years ago - and Access and SQL server since Jan 2008 and it works the same as a VLan over Cisco hardware. No performance difference between Hamachi and CISCO, Thanks for the info on Hamachi in 2007/8 BTW :) HTH Mark On 15 January 2011 23:37, jwcolby wrote: > I developed a SQL Server database, with perhaps 10-15 tables, populated a > few with just a handful of records, created an Access database and built a > few forms. My strategy is to do Access because I can do it quickly, but > link it to SQL Server, the run the FE on a remote computer over Hamachi. > > Tonight I went to a local Arby's to test the speed of the system. The > local Arby's has an open wifi, which using Speedtest.net tested 5 mbit down, > 1 mbit up - typical low end cable in my area. > > So I tried to use the system and... well... it took an extremely long time > to connect, if it connected at all. Access mostly timed out trying to log > on. SQL Server Management System would log on sometimes. Sometimes not. > Trying to hit it at the actual Hamachi IP address worked but took awhile. > 15 - 30 seconds to connect (I did not time it). > > To be honest I am puzzled. Google finds plenty of folks trying this, some > succeeding, most pretty slow. Remote desktop is plenty fast. > > From inside of my office, out across the internet via Hamachi I have done > things like file transfers etc (in the past). Remote desktop has always > been very speedy, but there isn't much needed for RD. > > I had really expected faster connections / operation. I really expected > SSMS to just work, pretty much at speed. It didn't. > > Sigh, back to the drawing boards. > -- > John W. Colby > www.ColbyConsulting.com > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From jwcolby at colbyconsulting.com Sun Jan 16 07:40:56 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sun, 16 Jan 2011 08:40:56 -0500 Subject: [dba-VB] SQL Server over Hamachi: First test not hopeful In-Reply-To: References: <4D322F9C.8090405@colbyconsulting.com> Message-ID: <4D32F568.6050406@colbyconsulting.com> Are you running this over the internet I assume - over Hamachi wold imply that. What are your connection speeds at either end using speedtest.net? John W. Colby www.ColbyConsulting.com On 1/16/2011 5:39 AM, Mark Breen wrote: > Hello John, > > I am using Hamachi - since you mentioned it here a few years ago - and > Access and SQL server since Jan 2008 and it works the same as a VLan over > Cisco hardware. No performance difference between Hamachi and CISCO, > > Thanks for the info on Hamachi in 2007/8 BTW :) > > HTH > > Mark > > On 15 January 2011 23:37, jwcolby wrote: > >> I developed a SQL Server database, with perhaps 10-15 tables, populated a >> few with just a handful of records, created an Access database and built a >> few forms. My strategy is to do Access because I can do it quickly, but >> link it to SQL Server, the run the FE on a remote computer over Hamachi. >> >> Tonight I went to a local Arby's to test the speed of the system. The >> local Arby's has an open wifi, which using Speedtest.net tested 5 mbit down, >> 1 mbit up - typical low end cable in my area. >> >> So I tried to use the system and... well... it took an extremely long time >> to connect, if it connected at all. Access mostly timed out trying to log >> on. SQL Server Management System would log on sometimes. Sometimes not. >> Trying to hit it at the actual Hamachi IP address worked but took awhile. >> 15 - 30 seconds to connect (I did not time it). >> >> To be honest I am puzzled. Google finds plenty of folks trying this, some >> succeeding, most pretty slow. Remote desktop is plenty fast. >> >> From inside of my office, out across the internet via Hamachi I have done >> things like file transfers etc (in the past). Remote desktop has always >> been very speedy, but there isn't much needed for RD. >> >> I had really expected faster connections / operation. I really expected >> SSMS to just work, pretty much at speed. It didn't. >> >> Sigh, back to the drawing boards. >> -- >> 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 Sun Jan 16 21:21:26 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sun, 16 Jan 2011 22:21:26 -0500 Subject: [dba-VB] Access to SQL Server over Hamachi - it WORKS Message-ID: <4D33B5B6.1050102@colbyconsulting.com> Today I stepped back and set it all up internal to my network. Yesterday I had moved the Fe to my laptop. Today I deleted all of my linked tables, then I relinked all of the tables. In doing so I created a new DSN where I hit the SQL Server directly at the Hamachi IP address. Relinked using this new DSN and voila, she's a wurkin, and lightning fast over my internal network but forcing the traffic through Hamachi. So I tested a bit, then went back out to the local Arby's where I was pretty much unable to do anything last night (other than browse the internet). Got right on the connection, opened the Access FE and voila, she's a wurkin, and lightning fast. You wouldn't know you weren't directly on my LAN. Access on my laptop over Hamachi, over a public network, in to my network, directly into a Virtual Machine over Hamachi, running SQL Server 2008 Express. I am so jazzed! that leaves me with one technical barrier now, getting an Access 2007 run-time to host an Access 2003 FE. Now I need to set up a VM to run on my laptop so that I can have an environment without Office installed. Install the Access 2007 run-time and drop the Access 2003 Fe in place. Set up Hamachi on that VM and then get it all playing nice. This will allow me to take my laptop on the road to demo the system. We shall see. And yes Jim, I understand I still need to cause SQL Server to do the heavy lifting. To this point I have never really used SQL Server as the BE for Access. My biggest client uses Access 2K and it doesn't really play nice with ADO. Since I can now develop these new databases in 2003, I can do things like bind the form to an ADO recordset and still have it read/write. I will need to learn how to use a stored procedure were I can pass in a PK and have the SP return a table of data already selected and sorted. I.e. SQL Server doing the lifting. The nice thing is that these are small databases so I can do things like leave the list tables just linked, at least for awhile while I learn all the stuff I have never had to do. Next up, 2007 run-time. -- John W. Colby www.ColbyConsulting.com From jwcolby at colbyconsulting.com Sun Jan 16 21:51:01 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sun, 16 Jan 2011 22:51:01 -0500 Subject: [dba-VB] SQL Server over Hamachi: First test not hopeful In-Reply-To: References: <4D322F9C.8090405@colbyconsulting.com> Message-ID: <4D33BCA5.3020906@colbyconsulting.com> Mark, I got it working today! 8) John W. Colby www.ColbyConsulting.com On 1/16/2011 5:39 AM, Mark Breen wrote: > Hello John, > > I am using Hamachi - since you mentioned it here a few years ago - and > Access and SQL server since Jan 2008 and it works the same as a VLan over > Cisco hardware. No performance difference between Hamachi and CISCO, > > Thanks for the info on Hamachi in 2007/8 BTW :) > > HTH > > Mark From marklbreen at gmail.com Mon Jan 17 04:38:19 2011 From: marklbreen at gmail.com (Mark Breen) Date: Mon, 17 Jan 2011 10:38:19 +0000 Subject: [dba-VB] SQL Server over Hamachi: First test not hopeful In-Reply-To: <4D33BCA5.3020906@colbyconsulting.com> References: <4D322F9C.8090405@colbyconsulting.com> <4D33BCA5.3020906@colbyconsulting.com> Message-ID: Hi John, I saw your other post, congrats, I guess you do feel jazzed. I tried speedtest.net and it told me I had 5 MB and .5 down and up. What I was curious about was that what you wanted me to check. Was there another check you wanted me to do? thanks Mark On 17 January 2011 03:51, jwcolby wrote: > Mark, > > I got it working today! 8) > > > John W. Colby > www.ColbyConsulting.com > > On 1/16/2011 5:39 AM, Mark Breen wrote: > >> Hello John, >> >> I am using Hamachi - since you mentioned it here a few years ago - and >> Access and SQL server since Jan 2008 and it works the same as a VLan over >> Cisco hardware. No performance difference between Hamachi and CISCO, >> >> Thanks for the info on Hamachi in 2007/8 BTW :) >> >> HTH >> >> Mark >> > _______________________________________________ > 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 Mon Jan 17 06:54:22 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Mon, 17 Jan 2011 15:54:22 +0300 Subject: [dba-VB] .NET 4.0 + MS ReportViewer 10.0 + MS Access backend sample: Re: Ded Moroz sends you links on sample projects... :) Message-ID: Hi All, FYI: I have temporarily put subject sample running here: http://shamils-19.hosting.parking.ru/nw4/Default.aspx It's from this release http://shamils-19.hosting.parking.ru/nw4/Default.aspx (http://northwind.codeplex.com/releases/view/26600#DownloadId=192044) announced here on New 2011 Year Eve. That release has got 150+ downloads by now but almost zero feedback. Any feedback is welcome. Thank you. -- Shamil -----Original Message----- From: Shamil Salakhetdinov [mailto:shamil at smsconsulting.spb.ru] Sent: 31 ??????? 2010 ?. 15:14 To: 'Discussion concerning Visual Basic and related programming issues.'; 'Access Developers discussion and problem solving' Subject: Ded Moroz sends you links on sample projects... :) Hi All -- New Year Eve is approaching here, and I wanted to send you some gifts from Ded Moroz - here they are: This is a set of projects I have got developed a few days ago during 40+ hours R&D coding marathon. The task was to finish all the work in about 40 hours. So a few bugs left in there as release deadline wasn't possible to move. They (the bugs) are described in readme. But in general all the sample apps work rather well as my tests here show. I'd be interested to hear any comments - in what direction that sample should be better developed. Please write them here, or on http://northwind.codeplex.com . Please do not "judge severely" as as I noted that was very intensive R&D work with little time to think through while coding :) But feel free to comment it as you like. *Do not try* to be politcorrect. Please. I wish all of your Very Happy and Prosperous New Year! Thank you. -- Shamil P.S. Short description of published projects (the sources get downloaded 19 times already and I have got informed privately a couple of days ago just three people): NorthwindNET_4_0_Sources.zip (~24MB) http://northwind.codeplex.com/releases/view/26600#DownloadId=192044 NorthwindNET_4_0_SampleApps_Setup.zip (~5MB) http://northwind.codeplex.com/releases/view/26600#DownloadId=192043 Northwind.NET.VS2010.sln ======================== 1. Northwind.NET.EDM.FE - WinForms Front-End (just start-up class and app.config); 2. Northwind.NET.EDM.WinForms.Controls - UI UserControls; 3. Northwind.NET.EDM.Reports - MS ReportViewer 10.0 Reports; 4. Northwind.NET.BLL - Business Layer Library (ADO.NET EDM LINQ Reports' data sources); 5. Northwind.NET.Model - ADO.NET EDM; 6. Northwind.NET.Settings - application settings (wrappers); 7. Northwind.NET.Resources - application resource file; 8. Northwind.NET.Utilities - utility class library; 9. Northwind.NET.Testing.Console - some test functions - it's not true TDD - just a rough approximation; Northwind.NET.MSAccess.sln ========================== I. WinForms FE with MS Access backend Northwind.NET.FE.1.1 - Northwind.NET FE with MS Access backend Northwind.NET.Utilities - Utilities project II. ASP.NET sample application with MS Access backend E:/Projects/SMS/Northwind/Northwind.ASP.NET.MSAccess.Reporting/ - ASP.NET project III. Just a test ASP.NET app - can be removed E:\Projects\SMS\Northwind\Northwind.ASP.NET.MSAccess.Reporting.RDLC.10.0.0.0 Northwind.NET.zzz_OLD.sln ========================= 1. Northwind.NET.FE - WinForms Front-End with MS SQL backend using "plain old" ADO.NET data sets - the project we did last year's April. 2. All the other projects from as in Northwind.NET.VS2010.sln ----------- From jwcolby at colbyconsulting.com Mon Jan 17 07:30:46 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 17 Jan 2011 08:30:46 -0500 Subject: [dba-VB] SQL Server over Hamachi: First test not hopeful In-Reply-To: References: <4D322F9C.8090405@colbyconsulting.com> <4D33BCA5.3020906@colbyconsulting.com> Message-ID: <4D344486.1030307@colbyconsulting.com> Thanks for the reply Mark. Are you doing completely unbound forms? Mixed? All bound forms? Systems that don't really use data entry forms? This is my first foray into Access to SQL over Hamachi so I am just looking for someone with previous experience to tell us about it. As Jim pointed out, I do only have a few minutes of working from a public wifi back into my office but the second test was flawless, and literally so fast you would not know you weren't directly on my network. John W. Colby www.ColbyConsulting.com On 1/17/2011 5:38 AM, Mark Breen wrote: > Hi John, > > I saw your other post, congrats, I guess you do feel jazzed. > > I tried speedtest.net and it told me I had 5 MB and .5 down and up. > > What I was curious about was that what you wanted me to check. Was there > another check you wanted me to do? > > thanks > > Mark From shamil at smsconsulting.spb.ru Wed Jan 19 00:53:51 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Wed, 19 Jan 2011 09:53:51 +0300 Subject: [dba-VB] FYI: Agile: Mik Kersten - I think we are ready for another revolt... Message-ID: Hi All, FYI: http://www.infoq.com/interviews/kersten-tasktop Summary: "Mik Kersten discusses the role of Mylyn and Tasktop in Agile development and how these tools return control to developers. Also: how Mylyn streamlines development in Eclipse. ... The Agile movement, or the Agile community kind of was founded by programmers, and again going back the XP in specific, who were just tired of being treated the low end of the management chain. So as the programmers revolt and a lot of people have thought that the Agile community has been taken over by Scrum and by management and they are dumping on programmers just as much as before and it got to the point that the software craftsmanship movement was again the programmers revolting. I think we are ready for another revolt. That is a really interesting observation." Thank you. -- Shamil From jwcolby at colbyconsulting.com Thu Jan 20 11:52:25 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 20 Jan 2011 12:52:25 -0500 Subject: [dba-VB] C# Grid: effectively and efficiently handle dirty Message-ID: <4D387659.5010005@colbyconsulting.com> I am doing C# forms, bound to SQL Server. I dragged and dropped the table out onto the form and C# "installed" the grid as well as a record navigation toolbar. Now I am trying to make sure that data is saved. I have discovered for example that if you edit something and just close the form... no save. Basically no save unless the save button is pressed. Being the anal guy I am, this ain't good enough. I don't want to save after every cell edit, but I do want to save after every row edit or when the form closes. Even this is non-trivial. After browsing the internet and seeing what others are doing (lots of pain expressed), my strategy is to have a RowDirty set by the CellContentsModified but to be honest, things just aren't working as expected. The row leave isn't fired if I sink the CellModified (or something). All I can see for sure is that, while one would expect the row leave to fire if a row is left (makes sense to me) that isn't true and so now I am left with trying to figure out what zany rules exist. So here I am, hat in hand, asking the list "how do you do this"? -- John W. Colby www.ColbyConsulting.com From shamil at smsconsulting.spb.ru Thu Jan 20 14:01:51 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Thu, 20 Jan 2011 23:01:51 +0300 Subject: [dba-VB] C# Grid: effectively and efficiently handle dirty In-Reply-To: <4D387659.5010005@colbyconsulting.com> References: <4D387659.5010005@colbyconsulting.com> Message-ID: <4C68C4DCE29E417AA4B54C60AB4E4316@nant> Hi John -- So you use VS2008 (at least) and you have a "datasheet form" - a bound DataGridView with BindingNavigator bound to ADO.NET dataset etc.? If yes - BindingNavigator has CurrentChanged event, which if fired as soon as you move to the other grid's row. When form is closing FormClosing event is fired: private void shipperBindingSource_CurrentChanged(object sender, EventArgs e) { saveEdits(); } private void saveEdits() { this.Validate(); this.shipperBindingSource.EndEdit(); this.tableAdapterManager.UpdateAll(this.northwindNETDataSet1); } private void Form2_FormClosing(object sender, FormClosingEventArgs e) { DataRowView row = shipperBindingSource.Current as DataRowView; if (row.Row.RowState == DataRowState.Modified) saveEdits(); } Thank you. -- Shamil P.S. I must note I rarely work with bound forms and ADO.NET datasets - just my preference but they should be OK in your context of small "quick&dirty" (first version) apps... -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: 20 ?????? 2011 ?. 20:52 To: VBA Subject: [dba-VB] C# Grid: effectively and efficiently handle dirty I am doing C# forms, bound to SQL Server. I dragged and dropped the table out onto the form and C# "installed" the grid as well as a record navigation toolbar. Now I am trying to make sure that data is saved. I have discovered for example that if you edit something and just close the form... no save. Basically no save unless the save button is pressed. Being the anal guy I am, this ain't good enough. I don't want to save after every cell edit, but I do want to save after every row edit or when the form closes. Even this is non-trivial. After browsing the internet and seeing what others are doing (lots of pain expressed), my strategy is to have a RowDirty set by the CellContentsModified but to be honest, things just aren't working as expected. The row leave isn't fired if I sink the CellModified (or something). All I can see for sure is that, while one would expect the row leave to fire if a row is left (makes sense to me) that isn't true and so now I am left with trying to figure out what zany rules exist. So here I am, hat in hand, asking the list "how do you do this"? -- John W. Colby www.ColbyConsulting.com From jwcolby at colbyconsulting.com Thu Jan 20 14:27:14 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 20 Jan 2011 15:27:14 -0500 Subject: [dba-VB] C# Grid: effectively and efficiently handle dirty In-Reply-To: <4C68C4DCE29E417AA4B54C60AB4E4316@nant> References: <4D387659.5010005@colbyconsulting.com> <4C68C4DCE29E417AA4B54C60AB4E4316@nant> Message-ID: <4D389AA2.6050408@colbyconsulting.com> So this saveEdits doesn't do anything if there is no change, but if there is an add, delete or edit then it will correctly store? Works for me. I'll be a testing. Thanks, John W. Colby www.ColbyConsulting.com On 1/20/2011 3:01 PM, Shamil Salakhetdinov wrote: > Hi John -- > > So you use VS2008 (at least) and you have a "datasheet form" - a bound > DataGridView with BindingNavigator bound to ADO.NET dataset etc.? > If yes - BindingNavigator has CurrentChanged event, which if fired as soon > as you move to the other grid's row. > When form is closing FormClosing event is fired: > > private void shipperBindingSource_CurrentChanged(object sender, EventArgs e) > { > saveEdits(); > } > > private void saveEdits() > { > this.Validate(); > this.shipperBindingSource.EndEdit(); > this.tableAdapterManager.UpdateAll(this.northwindNETDataSet1); > } > > private void Form2_FormClosing(object sender, FormClosingEventArgs e) > { > DataRowView row = shipperBindingSource.Current as DataRowView; > if (row.Row.RowState == DataRowState.Modified) saveEdits(); > } > > Thank you. > > -- > Shamil > > P.S. I must note I rarely work with bound forms and ADO.NET datasets - just > my preference but they should be OK in your context of small "quick&dirty" > (first version) apps... > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: 20 ?????? 2011 ?. 20:52 > To: VBA > Subject: [dba-VB] C# Grid: effectively and efficiently handle dirty > > I am doing C# forms, bound to SQL Server. I dragged and dropped the table > out onto the form and C# "installed" the grid as well as a record navigation > toolbar. > > Now I am trying to make sure that data is saved. I have discovered for > example that if you edit something and just close the form... no save. > Basically no save unless the save button is pressed. > > Being the anal guy I am, this ain't good enough. I don't want to save after > every cell edit, but I do want to save after every row edit or when the form > closes. Even this is non-trivial. > > After browsing the internet and seeing what others are doing (lots of pain > expressed), my strategy is to have a RowDirty set by the > CellContentsModified but to be honest, things just aren't working as > expected. The row leave isn't fired if I sink the CellModified (or > something). All I can see for sure is that, while one would expect the row > leave to fire if a row is left (makes sense to me) that isn't true and so > now I am left with trying to figure out what zany rules exist. > > So here I am, hat in hand, asking the list "how do you do this"? > > -- > John W. Colby > www.ColbyConsulting.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From jwcolby at colbyconsulting.com Thu Jan 20 14:29:25 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 20 Jan 2011 15:29:25 -0500 Subject: [dba-VB] C# Grid: effectively and efficiently handle dirty In-Reply-To: <4C68C4DCE29E417AA4B54C60AB4E4316@nant> References: <4D387659.5010005@colbyconsulting.com> <4C68C4DCE29E417AA4B54C60AB4E4316@nant> Message-ID: <4D389B25.4070906@colbyconsulting.com> What does virtual mode do for me? John W. Colby www.ColbyConsulting.com On 1/20/2011 3:01 PM, Shamil Salakhetdinov wrote: > Hi John -- > > So you use VS2008 (at least) and you have a "datasheet form" - a bound > DataGridView with BindingNavigator bound to ADO.NET dataset etc.? > If yes - BindingNavigator has CurrentChanged event, which if fired as soon > as you move to the other grid's row. > When form is closing FormClosing event is fired: > > private void shipperBindingSource_CurrentChanged(object sender, EventArgs e) > { > saveEdits(); > } > > private void saveEdits() > { > this.Validate(); > this.shipperBindingSource.EndEdit(); > this.tableAdapterManager.UpdateAll(this.northwindNETDataSet1); > } > > private void Form2_FormClosing(object sender, FormClosingEventArgs e) > { > DataRowView row = shipperBindingSource.Current as DataRowView; > if (row.Row.RowState == DataRowState.Modified) saveEdits(); > } > > Thank you. > > -- > Shamil > > P.S. I must note I rarely work with bound forms and ADO.NET datasets - just > my preference but they should be OK in your context of small "quick&dirty" > (first version) apps... > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: 20 ?????? 2011 ?. 20:52 > To: VBA > Subject: [dba-VB] C# Grid: effectively and efficiently handle dirty > > I am doing C# forms, bound to SQL Server. I dragged and dropped the table > out onto the form and C# "installed" the grid as well as a record navigation > toolbar. > > Now I am trying to make sure that data is saved. I have discovered for > example that if you edit something and just close the form... no save. > Basically no save unless the save button is pressed. > > Being the anal guy I am, this ain't good enough. I don't want to save after > every cell edit, but I do want to save after every row edit or when the form > closes. Even this is non-trivial. > > After browsing the internet and seeing what others are doing (lots of pain > expressed), my strategy is to have a RowDirty set by the > CellContentsModified but to be honest, things just aren't working as > expected. The row leave isn't fired if I sink the CellModified (or > something). All I can see for sure is that, while one would expect the row > leave to fire if a row is left (makes sense to me) that isn't true and so > now I am left with trying to figure out what zany rules exist. > > So here I am, hat in hand, asking the list "how do you do this"? > > -- > John W. Colby > www.ColbyConsulting.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From jwcolby at colbyconsulting.com Thu Jan 20 14:38:58 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 20 Jan 2011 15:38:58 -0500 Subject: [dba-VB] C# Grid: effectively and efficiently handle dirty In-Reply-To: <4C68C4DCE29E417AA4B54C60AB4E4316@nant> References: <4D387659.5010005@colbyconsulting.com> <4C68C4DCE29E417AA4B54C60AB4E4316@nant> Message-ID: <4D389D62.2090704@colbyconsulting.com> Interesting (and sticky) the form closing does not fire if the main application is closed. I added a saveEdits in the formclosing event (as you indicate) which works if the user clicks the check box in the form that the edit is happening in. IOW edit something then instead of moving to another line, they just close the form. In that case the closing event fires. However that closing event does not fire if the user closes the entire application. Is there a form lostfocus? John W. Colby www.ColbyConsulting.com On 1/20/2011 3:01 PM, Shamil Salakhetdinov wrote: > Hi John -- > > So you use VS2008 (at least) and you have a "datasheet form" - a bound > DataGridView with BindingNavigator bound to ADO.NET dataset etc.? > If yes - BindingNavigator has CurrentChanged event, which if fired as soon > as you move to the other grid's row. > When form is closing FormClosing event is fired: > > private void shipperBindingSource_CurrentChanged(object sender, EventArgs e) > { > saveEdits(); > } > > private void saveEdits() > { > this.Validate(); > this.shipperBindingSource.EndEdit(); > this.tableAdapterManager.UpdateAll(this.northwindNETDataSet1); > } > > private void Form2_FormClosing(object sender, FormClosingEventArgs e) > { > DataRowView row = shipperBindingSource.Current as DataRowView; > if (row.Row.RowState == DataRowState.Modified) saveEdits(); > } > > Thank you. > > -- > Shamil > > P.S. I must note I rarely work with bound forms and ADO.NET datasets - just > my preference but they should be OK in your context of small "quick&dirty" > (first version) apps... > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: 20 ?????? 2011 ?. 20:52 > To: VBA > Subject: [dba-VB] C# Grid: effectively and efficiently handle dirty > > I am doing C# forms, bound to SQL Server. I dragged and dropped the table > out onto the form and C# "installed" the grid as well as a record navigation > toolbar. > > Now I am trying to make sure that data is saved. I have discovered for > example that if you edit something and just close the form... no save. > Basically no save unless the save button is pressed. > > Being the anal guy I am, this ain't good enough. I don't want to save after > every cell edit, but I do want to save after every row edit or when the form > closes. Even this is non-trivial. > > After browsing the internet and seeing what others are doing (lots of pain > expressed), my strategy is to have a RowDirty set by the > CellContentsModified but to be honest, things just aren't working as > expected. The row leave isn't fired if I sink the CellModified (or > something). All I can see for sure is that, while one would expect the row > leave to fire if a row is left (makes sense to me) that isn't true and so > now I am left with trying to figure out what zany rules exist. > > So here I am, hat in hand, asking the list "how do you do this"? > > -- > 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 shamil at smsconsulting.spb.ru Thu Jan 20 15:24:45 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Fri, 21 Jan 2011 00:24:45 +0300 Subject: [dba-VB] C# Grid: effectively and efficiently handle dirty In-Reply-To: <4D389D62.2090704@colbyconsulting.com> References: <4D387659.5010005@colbyconsulting.com><4C68C4DCE29E417AA4B54C60AB4E4316@nant> <4D389D62.2090704@colbyconsulting.com> Message-ID: <1609C9C0463040199A65681DE2B7F675@nant> Hi John, There is a Deactivate event for Form object. Actually a System.Windows.Forms.Form has "more event types one can imagine" - at least many of them are so weird for me - I have never used probably 95% of .NET WinForms and controls events... :) Try to KISS it now John. At least on first pass. What you have to do now is to create the main "meat" part of your app - all forms. You'd better generalize/make all the tricks later - it's so easy to make (if needed) a generic form class inheriting from System.Windows.Forms.Form class etc. and then use that class for all the relevant custom forms... And you can't do it right this first time - it's more important to "get your hands wet" with that stuff - the more you'll do mechanically now - the better (IMO) - the easier and the quicker you'll get all that stuff refactored later... But as you're a seasoned professional with DB modeliing etc. - try to make that part 99% right now.. - that will help a lot on the subsequent refactoring steps... <<< > After browsing the internet and seeing what others are doing (lots of pain expressed), >>> That are beginners very probably - there shouldn't be that much pain when doing .NET System.Windows.Forms development. But when one is a beginner with WinForms - everything looks so complicated because of the volume of information to get through, and because of the project deadline stress... Thank you. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: 20 ?????? 2011 ?. 23:39 To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] C# Grid: effectively and efficiently handle dirty Interesting (and sticky) the form closing does not fire if the main application is closed. I added a saveEdits in the formclosing event (as you indicate) which works if the user clicks the check box in the form that the edit is happening in. IOW edit something then instead of moving to another line, they just close the form. In that case the closing event fires. However that closing event does not fire if the user closes the entire application. Is there a form lostfocus? John W. Colby www.ColbyConsulting.com On 1/20/2011 3:01 PM, Shamil Salakhetdinov wrote: > Hi John -- > > So you use VS2008 (at least) and you have a "datasheet form" - a bound > DataGridView with BindingNavigator bound to ADO.NET dataset etc.? > If yes - BindingNavigator has CurrentChanged event, which if fired as > soon as you move to the other grid's row. > When form is closing FormClosing event is fired: > > private void shipperBindingSource_CurrentChanged(object sender, > EventArgs e) { > saveEdits(); > } > > private void saveEdits() > { > this.Validate(); > this.shipperBindingSource.EndEdit(); > this.tableAdapterManager.UpdateAll(this.northwindNETDataSet1); > } > > private void Form2_FormClosing(object sender, FormClosingEventArgs e) > { > DataRowView row = shipperBindingSource.Current as DataRowView; > if (row.Row.RowState == DataRowState.Modified) saveEdits(); } > > Thank you. > > -- > Shamil > > P.S. I must note I rarely work with bound forms and ADO.NET datasets - > just my preference but they should be OK in your context of small "quick&dirty" > (first version) apps... > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: 20 ?????? 2011 ?. 20:52 > To: VBA > Subject: [dba-VB] C# Grid: effectively and efficiently handle dirty > > I am doing C# forms, bound to SQL Server. I dragged and dropped the > table out onto the form and C# "installed" the grid as well as a > record navigation toolbar. > > Now I am trying to make sure that data is saved. I have discovered > for example that if you edit something and just close the form... no save. > Basically no save unless the save button is pressed. > > Being the anal guy I am, this ain't good enough. I don't want to save > after every cell edit, but I do want to save after every row edit or > when the form closes. Even this is non-trivial. > > After browsing the internet and seeing what others are doing (lots of > pain expressed), my strategy is to have a RowDirty set by the > CellContentsModified but to be honest, things just aren't working as > expected. The row leave isn't fired if I sink the CellModified (or > something). All I can see for sure is that, while one would expect > the row leave to fire if a row is left (makes sense to me) that isn't > true and so now I am left with trying to figure out what zany rules exist. > > So here I am, hat in hand, asking the list "how do you do this"? > From shamil at smsconsulting.spb.ru Fri Jan 21 10:33:50 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Fri, 21 Jan 2011 19:33:50 +0300 Subject: [dba-VB] "Smart" fulltext search on large documents (data)base... Message-ID: <54C40F764B3B4CBB812589E1808149DD@nant> Hi All -- I have a task to implement a system providing "smart" fulltext search over a large base of text documents. My current plan is to use Google Docs. I plan to get in the future 80 GB ($20.00 USD per year) hosted space on GoogleDocs, put all the subject docs there, and then use Google API to search via my documents base. That seems to be it? It should be even possible to create a simple (free?) Google Web Site as front-end to that GoogleDocs documents base? That GoogleDocs base/site is planned to be used by non-profit organization. Am I missing something? Additional overhead costs to keep that solution's stuff on Google site? And why I'm writing about that solution here in dba-VBA? - because I plan to implement a front-end to that application system as an WinForms application coomunicating with Windows API... Thank you. -- Shamil From jwcolby at colbyconsulting.com Sat Jan 22 10:16:02 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 22 Jan 2011 11:16:02 -0500 Subject: [dba-VB] How do I troubleshoot SQL Server Security Message-ID: <4D3B02C2.1010909@colbyconsulting.com> What I want to do: Create an instance of SQL Server running on a specific server, and somehow magically allow a specific set of users logged in to the "system" (not necessarily that server) to access the server. AFAIK Users log in to Active Directory. I do not use Active Directory on my home / business network and do not really understand how it works. In any event it appears that I am going to have to use Active Directory in the SQL Server login? What I tried to do: On the server (windows 2000) I: 1) Created a windows security group DISUsers 2) Added most of the normal users of the computer, all of which will use the SQL Server 2005 Express database, including my user. 3) In SQL Server 2005 Express SSMS at the server level I clicked security login 4) I created a login DiscoServer and I assigned that to the group DiscoSvr\DiscoUsers 5) I checked that the login had the public server role (and only that role) 6) I went into the DISCO database and clickde SDecurity / Users 7) I created a DiscoUsers user assigned to the DiscoSvr\DiscoUsers object (group) 7) I checked the Role members db_DataReader and db_DataWriter I saved all of the above. I then go to my workstation, log in, open ssms and select DiscoSvr\SQLExpress. I can see the database object and I can see a + symbol but if I try to expand the database to see the objects I get a very generic error message "DispecLLC\jcolby is not able to access the database "Disco" under the current Security Context: SQL Server Error 916" I do not understand network security, but AFAICT what is happening is that I am logging in to a network (Active Directory) login (which all users do) but I have just set up SQL Server on that server to use a group / users specific to that server. So is it possible to use a similar method to manipulate SQL Server with active directory groups / users? How is that done. -- John W. Colby www.ColbyConsulting.com From dw-murphy at cox.net Sat Jan 22 11:56:20 2011 From: dw-murphy at cox.net (Doug Murphy) Date: Sat, 22 Jan 2011 09:56:20 -0800 Subject: [dba-VB] "Smart" fulltext search on large documents (data)base... In-Reply-To: <54C40F764B3B4CBB812589E1808149DD@nant> References: <54C40F764B3B4CBB812589E1808149DD@nant> Message-ID: <8FA20A84C52943F49C1F87D8D6AD549B@murphy3234aaf1> Shamil, Very innovative approach. Good use of the low cost and high power offered by the "Cloud" services. I'll be interested in how this comes out. Doug -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Friday, January 21, 2011 8:34 AM To: 'Discussion concerning Visual Basic and related programming issues.' Subject: [dba-VB] "Smart" fulltext search on large documents (data)base... Hi All -- I have a task to implement a system providing "smart" fulltext search over a large base of text documents. My current plan is to use Google Docs. I plan to get in the future 80 GB ($20.00 USD per year) hosted space on GoogleDocs, put all the subject docs there, and then use Google API to search via my documents base. That seems to be it? It should be even possible to create a simple (free?) Google Web Site as front-end to that GoogleDocs documents base? That GoogleDocs base/site is planned to be used by non-profit organization. Am I missing something? Additional overhead costs to keep that solution's stuff on Google site? And why I'm writing about that solution here in dba-VBA? - because I plan to implement a front-end to that application system as an WinForms application coomunicating with Windows API... Thank you. -- Shamil _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Sat Jan 22 13:50:04 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 22 Jan 2011 14:50:04 -0500 Subject: [dba-VB] Edit the source for a dataset Message-ID: <4D3B34EC.3030309@colbyconsulting.com> I created a dataset using the wizard, to connect to a SQL Server instance. When I did so I told it to connect to the Hamachi IP address rather than the Virtual Machine name. When I clicked OK it translated the Hamachi IP to the VM name. Very helpful (not). I have to go back out for another "Arby's test" but if I were to want to specify the name of the server, how do I do so? I am not finding a connection property or anything like it. Where is that stuff? -- John W. Colby www.ColbyConsulting.com From shamil at smsconsulting.spb.ru Sat Jan 22 14:52:34 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sat, 22 Jan 2011 23:52:34 +0300 Subject: [dba-VB] "Smart" fulltext search on large documents(data)base... In-Reply-To: <8FA20A84C52943F49C1F87D8D6AD549B@murphy3234aaf1> References: <54C40F764B3B4CBB812589E1808149DD@nant> <8FA20A84C52943F49C1F87D8D6AD549B@murphy3234aaf1> Message-ID: <31B0AA2D51EB42149AEDF4396BDFF406@nant> Hi Doug -- Thank you for your feedback/interest. I plan to implement a simple WinForms client next week using Google API + Google Docs. I have got already loaded 1000+ docs on my free GoogleDocs account and I have checked how full-text search is working with that stuff when used from within browser. It works well although when a document is found the words are not highlighted - I thought about making not only Google API/Google Docs + WinForms Client but also a Browser control embedded into a WinForm to simplify browsing of found results. Because of the lack of automatic highlighting of the search target words that solution looks a bit problematic now - I will probably have to implement also custom highlighting within browsing control - some DOM programming will be needed probably.. Thank you. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Doug Murphy Sent: 22 ?????? 2011 ?. 20:56 To: 'Discussion concerning Visual Basic and related programming issues.' Subject: Re: [dba-VB] "Smart" fulltext search on large documents(data)base... Shamil, Very innovative approach. Good use of the low cost and high power offered by the "Cloud" services. I'll be interested in how this comes out. Doug -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Friday, January 21, 2011 8:34 AM To: 'Discussion concerning Visual Basic and related programming issues.' Subject: [dba-VB] "Smart" fulltext search on large documents (data)base... Hi All -- I have a task to implement a system providing "smart" fulltext search over a large base of text documents. My current plan is to use Google Docs. I plan to get in the future 80 GB ($20.00 USD per year) hosted space on GoogleDocs, put all the subject docs there, and then use Google API to search via my documents base. That seems to be it? It should be even possible to create a simple (free?) Google Web Site as front-end to that GoogleDocs documents base? That GoogleDocs base/site is planned to be used by non-profit organization. Am I missing something? Additional overhead costs to keep that solution's stuff on Google site? And why I'm writing about that solution here in dba-VBA? - because I plan to implement a front-end to that application system as an WinForms application coomunicating with Windows API... 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 jwcolby at colbyconsulting.com Sat Jan 22 15:01:34 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 22 Jan 2011 16:01:34 -0500 Subject: [dba-VB] C# Connecting to the database (or not as the case may be) Message-ID: <4D3B45AE.3070302@colbyconsulting.com> I am sitting in the local Arby's doing more connection tests back into my home/office vmDev / PrisonMinistries database. Access 2003 connects *instantly*. Admittedly small tables snap open, edits save *instantly*. SSMS connects but not quickly. I can view the database, see tables and all that. Opening the tables takes 6 seconds. C# times out after 15 seconds when just trying to "preview" the data directly in the dataset in the left hand pane. Trying to open a form bound to the table times out after approximately 45 seconds. As I mentioned earlier, when setting up the Access database I found somewhere that I needed to use the Hamachi IP address when making the dsn which I did. SSMS is connecting in to that same Hamachi name. The C# (2008) project "translated" the ip address to the name "vmDev", and I am not finding where the connection information is stored for that dataset. I created a brand new dataset with the connection set back to the Hamachi IP and voila, the dataset can see the data. Found where the connection is kept (properties of the project) and discovered that yep, it had *three* connect strings now, the last of which was directly referencing the IP address. Got rid of all but that one, and now the bound form snaps open as quickly as the Access db did. I think what was going was the the form was trying the first which just plain didn't work, and timed out on that before moving on to the next one etc. Now that I only have one, and it references the IP, all if good in my world. Much still to learn but at least I can connect a bound (small recordset) list form directly to a list table and the form "snaps open" from the Arby's restaurant. -- John W. Colby www.ColbyConsulting.com From shamil at smsconsulting.spb.ru Sat Jan 22 15:17:22 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sun, 23 Jan 2011 00:17:22 +0300 Subject: [dba-VB] Edit the source for a dataset In-Reply-To: <4D3B34EC.3030309@colbyconsulting.com> References: <4D3B34EC.3030309@colbyconsulting.com> Message-ID: <2A89BEDE599A4493B5385FEA784C8FEA@nant> Hi John -- Connection information is stored in app.config file, which gets named by VS as {ApplicationExecutableFileExtName}.config for deployment, e.g. MyTestApplication.exe.config When the app is deployed you can edit this XML text file's manually before you start your app. While within VS you can edit connection string value via: Select VS project in Solution Explorer -> Right-Click -> Properties -> Settings Thank you. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: 22 ?????? 2011 ?. 22:50 To: VBA Subject: [dba-VB] Edit the source for a dataset I created a dataset using the wizard, to connect to a SQL Server instance. When I did so I told it to connect to the Hamachi IP address rather than the Virtual Machine name. When I clicked OK it translated the Hamachi IP to the VM name. Very helpful (not). I have to go back out for another "Arby's test" but if I were to want to specify the name of the server, how do I do so? I am not finding a connection property or anything like it. Where is that stuff? -- John W. Colby www.ColbyConsulting.com From jwcolby at colbyconsulting.com Mon Jan 24 09:50:25 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 24 Jan 2011 10:50:25 -0500 Subject: [dba-VB] Report wizard / viewer Message-ID: <4D3D9FC1.60607@colbyconsulting.com> I am building databases in C# now and am reaching the point where I have to think about reports. I see the report wizard and report viewer object. Are you guys using this? Is this crystal reports in a wrapper or something? Easy, hard? Things I need to know as I start using this thing? TIA, -- John W. Colby www.ColbyConsulting.com From df.waters at comcast.net Mon Jan 24 09:55:04 2011 From: df.waters at comcast.net (Dan Waters) Date: Mon, 24 Jan 2011 09:55:04 -0600 Subject: [dba-VB] Report wizard / viewer In-Reply-To: <4D3D9FC1.60607@colbyconsulting.com> References: <4D3D9FC1.60607@colbyconsulting.com> Message-ID: <9681DFA1BEA7427DBE22EA027CBBC6B1@DanWaters> I looked at reports for a while and decided to use Report Server in SQL Server 2008 R2. They have more features than in SQL Server 2008, and are free. So you don't have to deal with Crystal Reports licensing questions or issues. I don't have experience with this yet, nor have I used Crystal Reports. You install Report Server when you install SQL Server, or you can install Report Server at some point later. Dan -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Monday, January 24, 2011 9:50 AM To: VBA Subject: [dba-VB] Report wizard / viewer I am building databases in C# now and am reaching the point where I have to think about reports. I see the report wizard and report viewer object. Are you guys using this? Is this crystal reports in a wrapper or something? Easy, hard? Things I need to know as I start using this thing? TIA, -- John W. Colby www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Mon Jan 24 10:19:09 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 24 Jan 2011 11:19:09 -0500 Subject: [dba-VB] Report wizard / viewer In-Reply-To: <9681DFA1BEA7427DBE22EA027CBBC6B1@DanWaters> References: <4D3D9FC1.60607@colbyconsulting.com> <9681DFA1BEA7427DBE22EA027CBBC6B1@DanWaters> Message-ID: <4D3DA67D.9020203@colbyconsulting.com> This is a "canned" application that will run on a user's machine out in the world somewhere. As such whatever it does it needs to be part of the C# / .Net run-time package for the application. John W. Colby www.ColbyConsulting.com On 1/24/2011 10:55 AM, Dan Waters wrote: > I looked at reports for a while and decided to use Report Server in SQL > Server 2008 R2. They have more features than in SQL Server 2008, and are > free. So you don't have to deal with Crystal Reports licensing questions or > issues. I don't have experience with this yet, nor have I used Crystal > Reports. > > You install Report Server when you install SQL Server, or you can install > Report Server at some point later. > > Dan > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Monday, January 24, 2011 9:50 AM > To: VBA > Subject: [dba-VB] Report wizard / viewer > > I am building databases in C# now and am reaching the point where I have to > think about reports. I > see the report wizard and report viewer object. Are you guys using this? > Is this crystal reports > in a wrapper or something? Easy, hard? Things I need to know as I start > using this thing? > > TIA, > From shamil at smsconsulting.spb.ru Mon Jan 24 10:55:35 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Mon, 24 Jan 2011 19:55:35 +0300 Subject: [dba-VB] Report wizard / viewer In-Reply-To: <4D3D9FC1.60607@colbyconsulting.com> References: <4D3D9FC1.60607@colbyconsulting.com> Message-ID: Hi John -- You can use MS ReportViewer Control. It's free. But it has to be isntalled additionally to .NET Framework on client's systems. Installation takes a few seconds. Be prepared to spend some time to understand its reporting design/process - it's different from MS Access, or Crystal Reports, ... - but it's quite powerful when you'll get used to use it. To make it easy this first time your can try to make your reports' queries as powerful as possible to leave MS ReportViewer Control only rendering/totalling tasks... MS ReportViewer Control info http://gotreportviewer.com/ MS ReportViewer Control - samples http://northwind.codeplex.com/releases/view/26600 http://northwind.codeplex.com/releases/view/26600#DownloadId=192044 MS ReportViewer Control - samples - in action http://shamils-19.hosting.parking.ru/nw4/ Report Builder 3.0 info (I haven't used it yet ...) http://msdn.microsoft.com/en-us/library/dd207008.aspx Thank you. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: 24 ?????? 2011 ?. 18:50 To: VBA Subject: [dba-VB] Report wizard / viewer I am building databases in C# now and am reaching the point where I have to think about reports. I see the report wizard and report viewer object. Are you guys using this? Is this crystal reports in a wrapper or something? Easy, hard? Things I need to know as I start using this thing? TIA, -- 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 bill_patten at embarqmail.com Mon Jan 24 11:50:48 2011 From: bill_patten at embarqmail.com (Bill Patten) Date: Mon, 24 Jan 2011 09:50:48 -0800 Subject: [dba-VB] Report wizard / viewer In-Reply-To: <4D3DA67D.9020203@colbyconsulting.com> References: <4D3D9FC1.60607@colbyconsulting.com><9681DFA1BEA7427DBE22EA027CBBC6B1@DanWaters> <4D3DA67D.9020203@colbyconsulting.com> Message-ID: ?John, This site has lots of information about VS.2010 Report Viewer, I'm sure much of it applies to 2008 if that is what you are using. As Shamil, say's it is certainly different than Access but the price is right. HTH Bill -------------------------------------------------- From: "jwcolby" Sent: Monday, January 24, 2011 8:19 AM To: ; "Discussion concerning Visual Basic and related programming issues." Subject: Re: [dba-VB] Report wizard / viewer This is a "canned" application that will run on a user's machine out in the world somewhere. As such whatever it does it needs to be part of the C# / .Net run-time package for the application. John W. Colby www.ColbyConsulting.com On 1/24/2011 10:55 AM, Dan Waters wrote: > I looked at reports for a while and decided to use Report Server in SQL > Server 2008 R2. They have more features than in SQL Server 2008, and are > free. So you don't have to deal with Crystal Reports licensing questions > or > issues. I don't have experience with this yet, nor have I used Crystal > Reports. > > You install Report Server when you install SQL Server, or you can install > Report Server at some point later. > > Dan > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Monday, January 24, 2011 9:50 AM > To: VBA > Subject: [dba-VB] Report wizard / viewer > > I am building databases in C# now and am reaching the point where I have > to > think about reports. I > see the report wizard and report viewer object. Are you guys using this? > Is this crystal reports > in a wrapper or something? Easy, hard? Things I need to know as I start > using this thing? > > TIA, > _______________________________________________ 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 Tue Jan 25 10:33:14 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Tue, 25 Jan 2011 19:33:14 +0300 Subject: [dba-VB] Non-blocking loading of a DataGridview using source MS Access table with 120, 000+ rows.... Message-ID: Hi All -- I have a .NET WinForm app with a DataGridView bound to an ADO.NET dataset getting data from MS Access/JET backend table. And I'd like to have my WinForm beeing *non-blocked* while loading that DataGridView with 120,000+ rows from an MS Access backend table. I do fire DataGridView data loading via TimerControl Tick event then run it via BackgroundWorker, I do use SuspendLayout etc. still as far as I see WinForm gets blocked for several seconds: - first when dataset's rows are retrieved, - second when DataGridView gets bound to retrieved dataset. Do you know about/have you seen somewhere any tricks how to make such a large data set loading non-blocking WinForm? It's not a big issue after all - I just wanted to make it working even more smoothly than it does work now - somehow like MS Access datasheets when they load data asynchronously... Of course using 120,000+ rows for a DataGridView is a questionable solution but that's a customer requirement: that much records they get in an year (then they archive/clear backend table and start from scratch) - and filtering that 120,000+ rows when they are loading happens almost instantly - so the only issue is initial loading/refreshing - the latter doesn't happen often... Thank you. -- Shamil From Gustav at cactus.dk Wed Jan 26 04:03:24 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 26 Jan 2011 11:03:24 +0100 Subject: [dba-VB] Non-blocking loading of a DataGridview using source MS Access table with 120, 000+ rows.... Message-ID: Hi Shamil If "several seconds" is the time it takes to read the data from the Access database, it has to happen. And you do so in the background in a separate thread when you open the form and expect the form to be "live" while that happens. However, the form is dimmed or non-responsive until data has been loaded. Couldn't you try - when you open the form - to fill the DataGridView with one or few dummy records and then - when data is loaded - to switch to the real source? However, if this function is used only rarely and the retrieval only lasts for some seconds, I think I would just pop a message box: Please wait ... /gustav >>> shamil at smsconsulting.spb.ru 25-01-2011 17:33 >>> Hi All -- I have a .NET WinForm app with a DataGridView bound to an ADO.NET dataset getting data from MS Access/JET backend table. And I'd like to have my WinForm beeing *non-blocked* while loading that DataGridView with 120,000+ rows from an MS Access backend table. I do fire DataGridView data loading via TimerControl Tick event then run it via BackgroundWorker, I do use SuspendLayout etc. still as far as I see WinForm gets blocked for several seconds: - first when dataset's rows are retrieved, - second when DataGridView gets bound to retrieved dataset. Do you know about/have you seen somewhere any tricks how to make such a large data set loading non-blocking WinForm? It's not a big issue after all - I just wanted to make it working even more smoothly than it does work now - somehow like MS Access datasheets when they load data asynchronously... Of course using 120,000+ rows for a DataGridView is a questionable solution but that's a customer requirement: that much records they get in an year (then they archive/clear backend table and start from scratch) - and filtering that 120,000+ rows when they are loading happens almost instantly - so the only issue is initial loading/refreshing - the latter doesn't happen often... Thank you. -- Shamil From shamil at smsconsulting.spb.ru Wed Jan 26 05:50:23 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Wed, 26 Jan 2011 14:50:23 +0300 Subject: [dba-VB] Non-blocking loading of a DataGridview using source MSAccess table with 120, 000+ rows.... In-Reply-To: References: Message-ID: Hi Gustav -- <<< Couldn't you try - when you open the form - to fill the DataGridView with one or few dummy records and then - when data is loaded - to switch to the real source? >>> Yes, this is what I'm doing: - 1) when a tab with datagridview is activated a user sees a message: "Loading grid's data rows..."; - 2) background(Worker) thread is started, which fills (via dataAdapter) a dataset which is not yet bound to the datagridview; - 3) when thread finished asynchnously it binds datagridview to the filled dataset using boundDataSource; Note: all the time while loading happens DataGridView is invisible and it only set to visible + ResumeLayout(false) + PerformLayout() when the data gets bound. Form becomes non-responsive for a while both on step 2 and step 3. I'm not that surprised about (3) but why loading large dataset in background worker thread should block form for a while - that's unclear here... <<< However, if this function is used only rarely and the retrieval only lasts for some seconds, I think I would just pop a message box: Please wait ... >>> Yes, that what happens now - but I wanted to make it more smooth in the future if possible... 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: 26 ?????? 2011 ?. 13:03 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Non-blocking loading of a DataGridview using source MSAccess table with 120, 000+ rows.... Hi Shamil If "several seconds" is the time it takes to read the data from the Access database, it has to happen. And you do so in the background in a separate thread when you open the form and expect the form to be "live" while that happens. However, the form is dimmed or non-responsive until data has been loaded. Couldn't you try - when you open the form - to fill the DataGridView with one or few dummy records and then - when data is loaded - to switch to the real source? However, if this function is used only rarely and the retrieval only lasts for some seconds, I think I would just pop a message box: Please wait ... /gustav >>> shamil at smsconsulting.spb.ru 25-01-2011 17:33 >>> Hi All -- I have a .NET WinForm app with a DataGridView bound to an ADO.NET dataset getting data from MS Access/JET backend table. And I'd like to have my WinForm beeing *non-blocked* while loading that DataGridView with 120,000+ rows from an MS Access backend table. I do fire DataGridView data loading via TimerControl Tick event then run it via BackgroundWorker, I do use SuspendLayout etc. still as far as I see WinForm gets blocked for several seconds: - first when dataset's rows are retrieved, - second when DataGridView gets bound to retrieved dataset. Do you know about/have you seen somewhere any tricks how to make such a large data set loading non-blocking WinForm? It's not a big issue after all - I just wanted to make it working even more smoothly than it does work now - somehow like MS Access datasheets when they load data asynchronously... Of course using 120,000+ rows for a DataGridView is a questionable solution but that's a customer requirement: that much records they get in an year (then they archive/clear backend table and start from scratch) - and filtering that 120,000+ rows when they are loading happens almost instantly - so the only issue is initial loading/refreshing - the latter doesn't happen often... 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 Wed Jan 26 06:32:43 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 26 Jan 2011 13:32:43 +0100 Subject: [dba-VB] Non-blocking loading of a DataGridview using source MSAccess table with 120, 000+ rows. Message-ID: Hi Shamil As you describe it, it is exactly what I would do and expect. I have no explanation for why step 2 should set the DataGridView on hold ... /gustav >>> shamil at smsconsulting.spb.ru 26-01-2011 12:50 >>> Hi Gustav -- <<< Couldn't you try - when you open the form - to fill the DataGridView with one or few dummy records and then - when data is loaded - to switch to the real source? >>> Yes, this is what I'm doing: - 1) when a tab with datagridview is activated a user sees a message: "Loading grid's data rows..."; - 2) background(Worker) thread is started, which fills (via dataAdapter) a dataset which is not yet bound to the datagridview; - 3) when thread finished asynchnously it binds datagridview to the filled dataset using boundDataSource; Note: all the time while loading happens DataGridView is invisible and it only set to visible + ResumeLayout(false) + PerformLayout() when the data gets bound. Form becomes non-responsive for a while both on step 2 and step 3. I'm not that surprised about (3) but why loading large dataset in background worker thread should block form for a while - that's unclear here... <<< However, if this function is used only rarely and the retrieval only lasts for some seconds, I think I would just pop a message box: Please wait ... >>> Yes, that what happens now - but I wanted to make it more smooth in the future if possible... 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: 26 ?????? 2011 ?. 13:03 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Non-blocking loading of a DataGridview using source MSAccess table with 120, 000+ rows.... Hi Shamil If "several seconds" is the time it takes to read the data from the Access database, it has to happen. And you do so in the background in a separate thread when you open the form and expect the form to be "live" while that happens. However, the form is dimmed or non-responsive until data has been loaded. Couldn't you try - when you open the form - to fill the DataGridView with one or few dummy records and then - when data is loaded - to switch to the real source? However, if this function is used only rarely and the retrieval only lasts for some seconds, I think I would just pop a message box: Please wait ... /gustav >>> shamil at smsconsulting.spb.ru 25-01-2011 17:33 >>> Hi All -- I have a .NET WinForm app with a DataGridView bound to an ADO.NET dataset getting data from MS Access/JET backend table. And I'd like to have my WinForm beeing *non-blocked* while loading that DataGridView with 120,000+ rows from an MS Access backend table. I do fire DataGridView data loading via TimerControl Tick event then run it via BackgroundWorker, I do use SuspendLayout etc. still as far as I see WinForm gets blocked for several seconds: - first when dataset's rows are retrieved, - second when DataGridView gets bound to retrieved dataset. Do you know about/have you seen somewhere any tricks how to make such a large data set loading non-blocking WinForm? It's not a big issue after all - I just wanted to make it working even more smoothly than it does work now - somehow like MS Access datasheets when they load data asynchronously... Of course using 120,000+ rows for a DataGridView is a questionable solution but that's a customer requirement: that much records they get in an year (then they archive/clear backend table and start from scratch) - and filtering that 120,000+ rows when they are loading happens almost instantly - so the only issue is initial loading/refreshing - the latter doesn't happen often... Thank you. -- Shamil From michael at ddisolutions.com.au Wed Jan 26 19:39:00 2011 From: michael at ddisolutions.com.au (Michael Maddison) Date: Thu, 27 Jan 2011 12:39:00 +1100 Subject: [dba-VB] WebMatrix Anyone? Message-ID: <99266C61B516644D9727F983FAFAB4650468EE@remote.ddisolutions.com.au> This looks useful to me. What do those who do a lot of web dev think? I don't do much myself... http://www.microsoft.com/web/enter/?WT.mc_id=aff-f-us-wag-WM-Audience cheers Michael M From ebarro at roadrunner.com Wed Jan 26 20:34:06 2011 From: ebarro at roadrunner.com (Eric Barro) Date: Wed, 26 Jan 2011 18:34:06 -0800 Subject: [dba-VB] WebMatrix Anyone? In-Reply-To: <99266C61B516644D9727F983FAFAB4650468EE@remote.ddisolutions.com.au> References: <99266C61B516644D9727F983FAFAB4650468EE@remote.ddisolutions.com.au> Message-ID: <054701cbbdca$abd6b6d0$03842470$@com> This is a rehash of their original WebMatrix version 1.0 back in the .NET 1.0 days. It was the pre-cursor to VS.NET. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Michael Maddison Sent: Wednesday, January 26, 2011 5:39 PM To: Discussion concerning Visual Basic and related programming issues. Subject: [dba-VB] WebMatrix Anyone? This looks useful to me. What do those who do a lot of web dev think? I don't do much myself... http://www.microsoft.com/web/enter/?WT.mc_id=aff-f-us-wag-WM-Audience cheers Michael M _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From michael at ddisolutions.com.au Wed Jan 26 20:48:15 2011 From: michael at ddisolutions.com.au (Michael Maddison) Date: Thu, 27 Jan 2011 13:48:15 +1100 Subject: [dba-VB] WebMatrix Anyone? References: <99266C61B516644D9727F983FAFAB4650468EE@remote.ddisolutions.com.au> <054701cbbdca$abd6b6d0$03842470$@com> Message-ID: <99266C61B516644D9727F983FAFAB4650468EF@remote.ddisolutions.com.au> Yeah, I kinda remember. This is new though (I think?). It's aimed at the scripting level rather than ASP.Net I think. Has links to 41 open source CMS and other app's built in. Includes IDE support for PHP, DNN, Joomla, PayPal etc. Anyone tried Razor yet? Cheers Michael M From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Thursday, 27 January 2011 1:34 PM To: 'Discussion concerning Visual Basic and related programming issues.' Subject: Re: [dba-VB] WebMatrix Anyone? This is a rehash of their original WebMatrix version 1.0 back in the .NET 1.0 days. It was the pre-cursor to VS.NET. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Michael Maddison Sent: Wednesday, January 26, 2011 5:39 PM To: Discussion concerning Visual Basic and related programming issues. Subject: [dba-VB] WebMatrix Anyone? This looks useful to me. What do those who do a lot of web dev think? I don't do much myself... http://www.microsoft.com/web/enter/?WT.mc_id=aff-f-us-wag-WM-Audience cheers Michael M _______________________________________________ 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 ________________________________ No virus found in this message. Checked by AVG - www.avg.com Version: 10.0.1204 / Virus Database: 1435/3404 - Release Date: 01/26/11 From accessd at shaw.ca Wed Jan 26 21:03:12 2011 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 26 Jan 2011 19:03:12 -0800 Subject: [dba-VB] WebMatrix Anyone? In-Reply-To: <99266C61B516644D9727F983FAFAB4650468EE@remote.ddisolutions.com.au> References: <99266C61B516644D9727F983FAFAB4650468EE@remote.ddisolutions.com.au> Message-ID: Gasp, another program of worthy note...some more to learn. It has a 1.5 hour presentation just to introduce the app. You first. ;-) Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Michael Maddison Sent: Wednesday, January 26, 2011 5:39 PM To: Discussion concerning Visual Basic and related programming issues. Subject: [dba-VB] WebMatrix Anyone? This looks useful to me. What do those who do a lot of web dev think? I don't do much myself... http://www.microsoft.com/web/enter/?WT.mc_id=aff-f-us-wag-WM-Audience cheers Michael M _______________________________________________ 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 Thu Jan 27 06:27:35 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Thu, 27 Jan 2011 15:27:35 +0300 Subject: [dba-VB] Working on an Internet Shop - what is the usual official way to get good pictures of customers' goods for such a shop? Message-ID: <4EC4D1458C794247BAECEF4A1E93CB2D@nant> Hi All -- It's a bit off-topic but it's about ASP.NET driven Internet shop I'm working here on now. The customer is a small company, and it's its first attempt to start selling customers' goods on Internet. The current issue is to make customers' goods photos for this shop - to make them by themselves here or hire good photogrpahs - that's not possible not because of financial issues but because of the way this company sells the goods - many of them are never kept on the stores so it's not possible to make good pictures of that goods right now. And the current intention is to make this shop released ASAP: we use good "out-of-the-box" Internet shop ASP.NET solution. What is the usual official way to get that pictures? I guess that most of the well known brands (that shop is for tennis shoes, clothes, equipment...) do currently have ready to use pics for their customer goods. How to get that pictures officially? What is the usual cost for such a customers good pictures' set for one year models, for, say, Babolat, Nike, Head, ...? Thank you. -- Shamil From Gustav at cactus.dk Thu Jan 27 09:09:54 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 27 Jan 2011 16:09:54 +0100 Subject: [dba-VB] Working on an Internet Shop - what is the usual official way to get good pictures of custom Message-ID: Hi Shamil Pictures typically origin from the supplier/manufacturer as a part of his marketing support. /gustav >>> shamil at smsconsulting.spb.ru 27-01-2011 13:27 >>> Hi All -- It's a bit off-topic but it's about ASP.NET driven Internet shop I'm working here on now. The customer is a small company, and it's its first attempt to start selling customers' goods on Internet. The current issue is to make customers' goods photos for this shop - to make them by themselves here or hire good photogrpahs - that's not possible not because of financial issues but because of the way this company sells the goods - many of them are never kept on the stores so it's not possible to make good pictures of that goods right now. And the current intention is to make this shop released ASAP: we use good "out-of-the-box" Internet shop ASP.NET solution. What is the usual official way to get that pictures? I guess that most of the well known brands (that shop is for tennis shoes, clothes, equipment...) do currently have ready to use pics for their customer goods. How to get that pictures officially? What is the usual cost for such a customers good pictures' set for one year models, for, say, Babolat, Nike, Head, ...? Thank you. -- Shamil From shamil at smsconsulting.spb.ru Thu Jan 27 09:22:27 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Thu, 27 Jan 2011 18:22:27 +0300 Subject: [dba-VB] Working on an Internet Shop - what is theusual official way to get good pictures of custom In-Reply-To: References: Message-ID: <921D7A17F10347559FFF4A9F04F42B62@nant> Hi Gustav -- Thank you for your reply. When you write typically - do you mean your own experience or experience of the other developers you're contacting with there? I'm also thinking that pictures should come from supplier/manufacturer especially for official dealers - they should for the new/additional options/opportunities to get their stuff sold/distributed. But my customer doesn't have such pictures - they just have .pdf or .ppt(x) (MS PowerPoint) catalogs. These are high quality catalogs with very good pics - so the supplier/manufacturer does have all the needed for an Internet shop stuff, and that shop will sell their (supplier/manufacturer) consumer goods... Not sure how to query them to get that catalogs' source pics to use them on Internet shop... I have written a short "enquire for pics" message to Babolat international offices through their site already - we will see will they react at all.. 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: 27 ?????? 2011 ?. 18:10 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Working on an Internet Shop - what is theusual official way to get good pictures of custom Hi Shamil Pictures typically origin from the supplier/manufacturer as a part of his marketing support. /gustav >>> shamil at smsconsulting.spb.ru 27-01-2011 13:27 >>> Hi All -- It's a bit off-topic but it's about ASP.NET driven Internet shop I'm working here on now. The customer is a small company, and it's its first attempt to start selling customers' goods on Internet. The current issue is to make customers' goods photos for this shop - to make them by themselves here or hire good photogrpahs - that's not possible not because of financial issues but because of the way this company sells the goods - many of them are never kept on the stores so it's not possible to make good pictures of that goods right now. And the current intention is to make this shop released ASAP: we use good "out-of-the-box" Internet shop ASP.NET solution. What is the usual official way to get that pictures? I guess that most of the well known brands (that shop is for tennis shoes, clothes, equipment...) do currently have ready to use pics for their customer goods. How to get that pictures officially? What is the usual cost for such a customers good pictures' set for one year models, for, say, Babolat, Nike, Head, ...? 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 Thu Jan 27 09:56:31 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 27 Jan 2011 16:56:31 +0100 Subject: [dba-VB] Working on an Internet Shop - what is the usual official way to get good pictures Message-ID: Hi Shamil No detailed experience - it is just how it works. If you wish to promote a physical product you will need pack shots and/or product shots to pass out for free to any dealer interested - previously to be used in catalogues and brochures, these days for web sites. If you lack such sources, one method is to google/bing on _Pictures_ using the part number or other unique description. Quite often you succeed. /gustav >>> shamil at smsconsulting.spb.ru 27-01-2011 16:22 >>> Hi Gustav -- Thank you for your reply. When you write typically - do you mean your own experience or experience of the other developers you're contacting with there? I'm also thinking that pictures should come from supplier/manufacturer especially for official dealers - they should for the new/additional options/opportunities to get their stuff sold/distributed. But my customer doesn't have such pictures - they just have .pdf or .ppt(x) (MS PowerPoint) catalogs. These are high quality catalogs with very good pics - so the supplier/manufacturer does have all the needed for an Internet shop stuff, and that shop will sell their (supplier/manufacturer) consumer goods... Not sure how to query them to get that catalogs' source pics to use them on Internet shop... I have written a short "enquire for pics" message to Babolat international offices through their site already - we will see will they react at all.. 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: 27 ?????? 2011 ?. 18:10 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Working on an Internet Shop - what is theusual official way to get good pictures of custom Hi Shamil Pictures typically origin from the supplier/manufacturer as a part of his marketing support. /gustav >>> shamil at smsconsulting.spb.ru 27-01-2011 13:27 >>> Hi All -- It's a bit off-topic but it's about ASP.NET driven Internet shop I'm working here on now. The customer is a small company, and it's its first attempt to start selling customers' goods on Internet. The current issue is to make customers' goods photos for this shop - to make them by themselves here or hire good photogrpahs - that's not possible not because of financial issues but because of the way this company sells the goods - many of them are never kept on the stores so it's not possible to make good pictures of that goods right now. And the current intention is to make this shop released ASAP: we use good "out-of-the-box" Internet shop ASP.NET solution. What is the usual official way to get that pictures? I guess that most of the well known brands (that shop is for tennis shoes, clothes, equipment...) do currently have ready to use pics for their customer goods. How to get that pictures officially? What is the usual cost for such a customers good pictures' set for one year models, for, say, Babolat, Nike, Head, ...? Thank you. -- Shamil From shamil at smsconsulting.spb.ru Thu Jan 27 10:14:09 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Thu, 27 Jan 2011 19:14:09 +0300 Subject: [dba-VB] Working on an Internet Shop - what is theusual official way to get good pictures In-Reply-To: References: Message-ID: Hi Gustav -- Thank you for your additional notes. Searching on bing/google - yes, it's possible but - it's very time consuming - there are 1000+ phisical products positions and - (which is more important) I'm not sure that "grabbing" pics on Internet to reuse them in a custom Internet shop is a legal practice. <<< No detailed experience - it is just how it works >>> OK. We will see how my enquire for Babolat will work... I will also ask my customer to request their dealers for the physical products pics... 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: 27 ?????? 2011 ?. 18:57 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Working on an Internet Shop - what is theusual official way to get good pictures Hi Shamil No detailed experience - it is just how it works. If you wish to promote a physical product you will need pack shots and/or product shots to pass out for free to any dealer interested - previously to be used in catalogues and brochures, these days for web sites. If you lack such sources, one method is to google/bing on _Pictures_ using the part number or other unique description. Quite often you succeed. /gustav >>> shamil at smsconsulting.spb.ru 27-01-2011 16:22 >>> Hi Gustav -- Thank you for your reply. When you write typically - do you mean your own experience or experience of the other developers you're contacting with there? I'm also thinking that pictures should come from supplier/manufacturer especially for official dealers - they should for the new/additional options/opportunities to get their stuff sold/distributed. But my customer doesn't have such pictures - they just have .pdf or .ppt(x) (MS PowerPoint) catalogs. These are high quality catalogs with very good pics - so the supplier/manufacturer does have all the needed for an Internet shop stuff, and that shop will sell their (supplier/manufacturer) consumer goods... Not sure how to query them to get that catalogs' source pics to use them on Internet shop... I have written a short "enquire for pics" message to Babolat international offices through their site already - we will see will they react at all.. 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: 27 ?????? 2011 ?. 18:10 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Working on an Internet Shop - what is theusual official way to get good pictures of custom Hi Shamil Pictures typically origin from the supplier/manufacturer as a part of his marketing support. /gustav >>> shamil at smsconsulting.spb.ru 27-01-2011 13:27 >>> Hi All -- It's a bit off-topic but it's about ASP.NET driven Internet shop I'm working here on now. The customer is a small company, and it's its first attempt to start selling customers' goods on Internet. The current issue is to make customers' goods photos for this shop - to make them by themselves here or hire good photogrpahs - that's not possible not because of financial issues but because of the way this company sells the goods - many of them are never kept on the stores so it's not possible to make good pictures of that goods right now. And the current intention is to make this shop released ASAP: we use good "out-of-the-box" Internet shop ASP.NET solution. What is the usual official way to get that pictures? I guess that most of the well known brands (that shop is for tennis shoes, clothes, equipment...) do currently have ready to use pics for their customer goods. How to get that pictures officially? What is the usual cost for such a customers good pictures' set for one year models, for, say, Babolat, Nike, Head, ...? Thank you. -- Shamil _______________________________________________ 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 Thu Jan 27 16:30:15 2011 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 27 Jan 2011 14:30:15 -0800 Subject: [dba-VB] Working on an Internet Shop - what is the usual official way to get good pictures of customers' goods for such a shop? In-Reply-To: <4EC4D1458C794247BAECEF4A1E93CB2D@nant> References: <4EC4D1458C794247BAECEF4A1E93CB2D@nant> Message-ID: <809ABB7E718A4876AEA74C8D8C8B1FED@creativesystemdesigns.com> Hi Shamil: The customers I have, I put them incharge of supplying the pictures...and therefore any copyrights issues are their concerns. I will do picture hunting but the time will cost. Also any picture retouching, of which I do a lot of, is also billable time. One client atually had me go around his store and photograph everything...I brought in a photo backdrop and the lights and the camera and it took almost a week to do 150 products... It would have been cheaper to get in a professional, but they were concerned with copyright issues and as I were putting the items on their new web site anyways, it was a lot easier for them. I think there is no issues with pulling product pictures off a manufacture's web site as after all you are selling their products and as long as they are given appropriate credit there should not be any issues. When downloading pictures from Microsoft's sites, for the DBA web site, their official stance was that they were copyrighted but unofficially they said help yourself as long as you are using the picture to advertise our products and are given us the appropriate credit. If you are using Professional Photographers pictures, that have been put up for sale and are generally tagged with copyright, that is a whole different set of negotiations and costing...one that the company will have to incurr. Note: An artist's (photographer as well) right of ownership to their art can never be removed. For example: A company may buy pictures for a particular web site or advertising campaign but no matter what their contract says the photographer still retains the ultimate rights to any further usage. HTH Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Thursday, January 27, 2011 4:28 AM To: 'Discussion concerning Visual Basic and related programming issues.' Subject: [dba-VB] Working on an Internet Shop - what is the usual official way to get good pictures of customers' goods for such a shop? Hi All -- It's a bit off-topic but it's about ASP.NET driven Internet shop I'm working here on now. The customer is a small company, and it's its first attempt to start selling customers' goods on Internet. The current issue is to make customers' goods photos for this shop - to make them by themselves here or hire good photogrpahs - that's not possible not because of financial issues but because of the way this company sells the goods - many of them are never kept on the stores so it's not possible to make good pictures of that goods right now. And the current intention is to make this shop released ASAP: we use good "out-of-the-box" Internet shop ASP.NET solution. What is the usual official way to get that pictures? I guess that most of the well known brands (that shop is for tennis shoes, clothes, equipment...) do currently have ready to use pics for their customer goods. How to get that pictures officially? What is the usual cost for such a customers good pictures' set for one year models, for, say, Babolat, Nike, Head, ...? Thank you. -- Shamil _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From shamil at smsconsulting.spb.ru Thu Jan 27 18:37:51 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Fri, 28 Jan 2011 03:37:51 +0300 Subject: [dba-VB] Working on an Internet Shop - what is the usualofficial way to get good pictures of customers' goods forsuch a shop? In-Reply-To: <809ABB7E718A4876AEA74C8D8C8B1FED@creativesystemdesigns.com> References: <4EC4D1458C794247BAECEF4A1E93CB2D@nant> <809ABB7E718A4876AEA74C8D8C8B1FED@creativesystemdesigns.com> Message-ID: Hi Jim -- Thank you for your feedback. <<< The customers I have, I put them in charge of supplying the pictures...and therefore any copyrights issues are their concerns. >>> Yes, this is what I've tried to do first of all but it takes "ages" for the customer to get that pictures ready (not yet) - so I have started to look for "workaround" quicker alternatives... Thank you. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: 28 ?????? 2011 ?. 1:30 To: 'Discussion concerning Visual Basic and related programming issues.' Subject: Re: [dba-VB] Working on an Internet Shop - what is the usualofficial way to get good pictures of customers' goods forsuch a shop? Hi Shamil: The customers I have, I put them incharge of supplying the pictures...and therefore any copyrights issues are their concerns. I will do picture hunting but the time will cost. Also any picture retouching, of which I do a lot of, is also billable time. One client atually had me go around his store and photograph everything...I brought in a photo backdrop and the lights and the camera and it took almost a week to do 150 products... It would have been cheaper to get in a professional, but they were concerned with copyright issues and as I were putting the items on their new web site anyways, it was a lot easier for them. I think there is no issues with pulling product pictures off a manufacture's web site as after all you are selling their products and as long as they are given appropriate credit there should not be any issues. When downloading pictures from Microsoft's sites, for the DBA web site, their official stance was that they were copyrighted but unofficially they said help yourself as long as you are using the picture to advertise our products and are given us the appropriate credit. If you are using Professional Photographers pictures, that have been put up for sale and are generally tagged with copyright, that is a whole different set of negotiations and costing...one that the company will have to incurr. Note: An artist's (photographer as well) right of ownership to their art can never be removed. For example: A company may buy pictures for a particular web site or advertising campaign but no matter what their contract says the photographer still retains the ultimate rights to any further usage. HTH Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Thursday, January 27, 2011 4:28 AM To: 'Discussion concerning Visual Basic and related programming issues.' Subject: [dba-VB] Working on an Internet Shop - what is the usual official way to get good pictures of customers' goods for such a shop? Hi All -- It's a bit off-topic but it's about ASP.NET driven Internet shop I'm working here on now. The customer is a small company, and it's its first attempt to start selling customers' goods on Internet. The current issue is to make customers' goods photos for this shop - to make them by themselves here or hire good photogrpahs - that's not possible not because of financial issues but because of the way this company sells the goods - many of them are never kept on the stores so it's not possible to make good pictures of that goods right now. And the current intention is to make this shop released ASAP: we use good "out-of-the-box" Internet shop ASP.NET solution. What is the usual official way to get that pictures? I guess that most of the well known brands (that shop is for tennis shoes, clothes, equipment...) do currently have ready to use pics for their customer goods. How to get that pictures officially? What is the usual cost for such a customers good pictures' set for one year models, for, say, Babolat, Nike, Head, ...? 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 marklbreen at gmail.com Fri Jan 28 03:41:09 2011 From: marklbreen at gmail.com (Mark Breen) Date: Fri, 28 Jan 2011 09:41:09 +0000 Subject: [dba-VB] Working on an Internet Shop - what is the usual official way to get good pictures of customers' goods for such a shop? In-Reply-To: <4EC4D1458C794247BAECEF4A1E93CB2D@nant> References: <4EC4D1458C794247BAECEF4A1E93CB2D@nant> Message-ID: Hello Shamil, It might not be useful, but for free photo's take a look at http://sxc.hu/ I was just told about it yesterday thanks Mark On 27 January 2011 12:27, Shamil Salakhetdinov wrote: > Hi All -- > > It's a bit off-topic but it's about ASP.NET driven Internet shop I'm > working > here on now. > The customer is a small company, and it's its first attempt to start > selling > customers' goods on Internet. > The current issue is to make customers' goods photos for this shop - to > make > them by themselves here or hire good photogrpahs - that's not possible not > because of financial issues but because of the way this company sells the > goods - many of them are never kept on the stores so it's not possible to > make good pictures of that goods right now. And the current intention is to > make this shop released ASAP: we use good "out-of-the-box" Internet shop > ASP.NET solution. > > What is the usual official way to get that pictures? > I guess that most of the well known brands (that shop is for tennis shoes, > clothes, equipment...) do currently have ready to use pics for their > customer goods. > How to get that pictures officially? > What is the usual cost for such a customers good pictures' set for one year > models, for, say, Babolat, Nike, Head, ...? > > 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 Sun Jan 30 09:59:50 2011 From: gustav at cactus.dk (Gustav Brock) Date: Sun, 30 Jan 2011 16:59:50 +0100 Subject: [dba-VB] Localizing Silverlight Business Application Message-ID: Hi all I had a lot of trouble adding dynamic culture selection to a Silverlight Business Application. But by combining info from these links I finally succeeded: http://johnlivingstontech.blogspot.com/2010/02/localizing-resources-in-silverlight.html http://msdn.microsoft.com/en-us/library/dd941931(v=vs.95).aspx http://blogs.msdn.com/b/brada/archive/2010/03/22/silverlight-4-ria-services-ready-for-business-localizing-business-application.aspx The missing task which left the login labels untouched, was to add the localized resx files from the web project "as link" to the Web\Resources folder of the main project. This way all text for labels, error messages, tool tips, etc. are kept in separate resx files. Further, select a language in the combobox and the language changes instantaneously. Great! /gustav From jwcolby at colbyconsulting.com Sun Jan 30 15:53:36 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sun, 30 Jan 2011 16:53:36 -0500 Subject: [dba-VB] Hamachi VPN information Message-ID: <4D45DDE0.3060409@colbyconsulting.com> I use Hamachi a lot. I am trying to set up Hamachi VPNs specific to client groups, IOW a VPN for Lenoir Prison Ministry, a VPN for Forgiven Ministry, a group for FSN Hope, a group for C2DbInternal etc. What I did not really understand is that there are actually three types of networks. I am going to cut and paste the definitions from Hamachi's page just so that you can see what they have to say. http://help.logmein.com/SelfServiceSearchResults?kw=hub+and+spoke&product=lmihamachi2&sr=0 http://help.logmein.com/SelfServiceKnowledgeRenderer?type=Documentation&id=kA130000000Lu1YCAS&search=1&kw=hub%20and%20spoke * Gateway virtual networking: Provide remote users with secure access to your private network/LAN, including the resources on it, from a centralized LogMeIn Hamachi? gateway, without modifying firewalls or network routers. * Hub-and-spoke virtual networking: Provide remote users with secure access to specific resources on your network, from any location, without modifying firewalls or network routers. * Mesh networking: Connect all of your network clients to each other. Quickly and easily create a simple, virtual, mesh network that allows remote machines to directly connect to each other, thereby giving users basic network access to all the network resources they need. So, I wanted a private network for each client. I wanted a hub and spoke for each client because both of the other types (mesh and gateway) allow all computers to see each other. In most cases, these clients are a group of people who really don't want each other to see their shares etc. If you create a network from a client (as I did) instead of from the Hamachi Web page, then you automatically create a mesh network. Once you create a network from a client, I have never found a way to "connect" or subscribe that network into your online network management page. Bad news. So think carefully about the future and consider doing all of your network management from the web page. Essentially you create an Hamachi account which you can log in to. Once you do that you can create networks from that page, then send emails to people with invitations to join your networks. You get to "approve" the subscriptions. Because I had created all of my networks from the client on my laptop, they were all "mesh" networks, and everyone could see everyone. Even worse the visibility extended out of the network to other networks. Even worse than that, I started getting echos between the networks. IOW, because mu computer belonged to each of the mesg networks I would ping computers and get many different ping echos. If you are ever going to do a single network then fine (maybe) build it from one of the Hamachi clients. However if you ever anticipate doing multiple networks as I am doing, do yourself a favor and start from the Web page and always create your networks from there. -- John W. Colby www.ColbyConsulting.com From shamil at smsconsulting.spb.ru Sun Jan 30 18:23:45 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Mon, 31 Jan 2011 03:23:45 +0300 Subject: [dba-VB] Mercurial vs. SVN Message-ID: Hi All -- Does SVN support "ignore list" as Mercurial does? (I wanted to exclude binaries and some other files from add/commit batch without going through all of added/updated items manually every time on commit). I do use Tortoise SVN v.1.4.5, and I do not see "ignore list feature" - does Tortoise SVN 1.4.7 support this feature? Or can I define ignore list somehow else when working with SVN? Thank you. -- Shamil From shamil at smsconsulting.spb.ru Sun Jan 30 19:22:12 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Mon, 31 Jan 2011 04:22:12 +0300 Subject: [dba-VB] Localizing Silverlight Business Application In-Reply-To: References: Message-ID: <2C3D300F73144E6AA37430916F1F20EB@nant> Hi Gustav -- Thank you for your note. I'm not sure I will use SIlverLight in the development real soon but who knows... Do you use SilverLight "hard way" or via LightSwitch? 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: 30 ?????? 2011 ?. 19:00 To: dba-vb at databaseadvisors.com Subject: [dba-VB] Localizing Silverlight Business Application Hi all I had a lot of trouble adding dynamic culture selection to a Silverlight Business Application. But by combining info from these links I finally succeeded: http://johnlivingstontech.blogspot.com/2010/02/localizing-resources-in-silve rlight.html http://msdn.microsoft.com/en-us/library/dd941931(v=vs.95).aspx http://blogs.msdn.com/b/brada/archive/2010/03/22/silverlight-4-ria-services- ready-for-business-localizing-business-application.aspx The missing task which left the login labels untouched, was to add the localized resx files from the web project "as link" to the Web\Resources folder of the main project. This way all text for labels, error messages, tool tips, etc. are kept in separate resx files. Further, select a language in the combobox and the language changes instantaneously. Great! /gustav _______________________________________________ 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 Mon Jan 31 02:43:27 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 31 Jan 2011 09:43:27 +0100 Subject: [dba-VB] Mercurial vs. SVN Message-ID: Hi Shamil That's a very old version, current version is 1.6.something. The trick is the Shift key. From the help file: Hold the Shift key to get the extended context menu and select TortoiseSVN and Delete (keep local) to mark the file/folder for deletion from the repository without losing the local copy. /gustav >>> shamil at smsconsulting.spb.ru 31-01-2011 01:23 >>> Hi All -- Does SVN support "ignore list" as Mercurial does? (I wanted to exclude binaries and some other files from add/commit batch without going through all of added/updated items manually every time on commit). I do use Tortoise SVN v.1.4.5, and I do not see "ignore list feature" - does Tortoise SVN 1.4.7 support this feature? Or can I define ignore list somehow else when working with SVN? Thank you. -- Shamil From Gustav at cactus.dk Mon Jan 31 02:59:52 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 31 Jan 2011 09:59:52 +0100 Subject: [dba-VB] Localizing Silverlight Business Application Message-ID: Hi Shamil Yes, I have a small project where I would use Silverlight straight, also to gain some knowledge for programming to Windows Phone 7 - we just got our Samsung Omnia 7 last week to replace the seven year old Sony-Ericsson T610 which have served extremely well. I located a book: Pro Business Applications with Silverlight 4 by Chris Anderson http://apress.com/book/view/9781430272076 to obtain some support. /gustav >>> shamil at smsconsulting.spb.ru 31-01-2011 02:22 >>> Hi Gustav -- Thank you for your note. I'm not sure I will use SIlverLight in the development real soon but who knows... Do you use SilverLight "hard way" or via LightSwitch? 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: 30 ?????? 2011 ?. 19:00 To: dba-vb at databaseadvisors.com Subject: [dba-VB] Localizing Silverlight Business Application Hi all I had a lot of trouble adding dynamic culture selection to a Silverlight Business Application. But by combining info from these links I finally succeeded: http://johnlivingstontech.blogspot.com/2010/02/localizing-resources-in-silverlight.html http://msdn.microsoft.com/en-us/library/dd941931(v=vs.95).aspx http://blogs.msdn.com/b/brada/archive/2010/03/22/silverlight-4-ria-services-ready-for-business-localizing-business-application.aspx The missing task which left the login labels untouched, was to add the localized resx files from the web project "as link" to the Web\Resources folder of the main project. This way all text for labels, error messages, tool tips, etc. are kept in separate resx files. Further, select a language in the combobox and the language changes instantaneously. Great! /gustav From shamil at smsconsulting.spb.ru Mon Jan 31 05:33:29 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Mon, 31 Jan 2011 14:33:29 +0300 Subject: [dba-VB] Localizing Silverlight Business Application In-Reply-To: References: Message-ID: <438E214CF58F4A2492FD6F7C26AA8E19@nant> Hi Gustav -- Thank you for your additional notes on Silverlight and Windiows Phone 7. BTW, I have checked Samsung Omnia 7 seems to be available here to - it costs USD700: 1) it doesn't have EMS - no problem; 2) it doesn't support memory cards - shoudln't be an issue - it has 8GB of memory installed; -- Does Windows Phone 7 support MS SQL Server CE? What software is additionally needed to develop for Silverlight 4 using VS2010? Do you expect that Windows Phone 7 may become one of the main parts of your custom software development business in the near future? Not easy question I know, you can skip it :) 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: 31 ?????? 2011 ?. 12:00 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Localizing Silverlight Business Application Hi Shamil Yes, I have a small project where I would use Silverlight straight, also to gain some knowledge for programming to Windows Phone 7 - we just got our Samsung Omnia 7 last week to replace the seven year old Sony-Ericsson T610 which have served extremely well. I located a book: Pro Business Applications with Silverlight 4 by Chris Anderson http://apress.com/book/view/9781430272076 to obtain some support. /gustav >>> shamil at smsconsulting.spb.ru 31-01-2011 02:22 >>> Hi Gustav -- Thank you for your note. I'm not sure I will use SIlverLight in the development real soon but who knows... Do you use SilverLight "hard way" or via LightSwitch? 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: 30 ?????? 2011 ?. 19:00 To: dba-vb at databaseadvisors.com Subject: [dba-VB] Localizing Silverlight Business Application Hi all I had a lot of trouble adding dynamic culture selection to a Silverlight Business Application. But by combining info from these links I finally succeeded: http://johnlivingstontech.blogspot.com/2010/02/localizing-resources-in-silve rlight.html http://msdn.microsoft.com/en-us/library/dd941931(v=vs.95).aspx http://blogs.msdn.com/b/brada/archive/2010/03/22/silverlight-4-ria-services- ready-for-business-localizing-business-application.aspx The missing task which left the login labels untouched, was to add the localized resx files from the web project "as link" to the Web\Resources folder of the main project. This way all text for labels, error messages, tool tips, etc. are kept in separate resx files. Further, select a language in the combobox and the language changes instantaneously. Great! /gustav _______________________________________________ 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 Mon Jan 31 05:48:22 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Mon, 31 Jan 2011 14:48:22 +0300 Subject: [dba-VB] Mercurial vs. SVN In-Reply-To: References: Message-ID: Hi Gustav -- Thank you for your note. I should probably install newer version. But the one I have does support the feature of ignoring/making local individual files (filenames patterns) and *whole* folders. That is useful but that's not what I'm looking for/what exists in Mercurial it has more powerful feature to keep ignore list. BTW, SVN does inform that it added file/folder to the ignore list - is it possible to edit that list manually? If yes, where it's located? - I can find it - maybe you just know it from memory/used it: in Mercurial I usually just have a generic ignore list, which I'm putting in every new repository I create and then I'm adding specific files/filenames templates to that ignore list. Gustav, it's not a big issue - I can find my way using SVN via command lines - mainly wondering if I can skip making a batch which will use command line interface of SVN to "clean-up" local repository from some files/folders before committing it... BTW, https://bitbucket.org/ has an option of free unlimited code repositories up to 5 users... I haven't used it yet but I do plan to put all my important source code mirrored there in private code repository... 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: 31 ?????? 2011 ?. 11:43 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Mercurial vs. SVN Hi Shamil That's a very old version, current version is 1.6.something. The trick is the Shift key. From the help file: Hold the Shift key to get the extended context menu and select TortoiseSVN and Delete (keep local) to mark the file/folder for deletion from the repository without losing the local copy. /gustav >>> shamil at smsconsulting.spb.ru 31-01-2011 01:23 >>> Hi All -- Does SVN support "ignore list" as Mercurial does? (I wanted to exclude binaries and some other files from add/commit batch without going through all of added/updated items manually every time on commit). I do use Tortoise SVN v.1.4.5, and I do not see "ignore list feature" - does Tortoise SVN 1.4.7 support this feature? Or can I define ignore list somehow else when working with SVN? 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 Mon Jan 31 08:47:37 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 31 Jan 2011 15:47:37 +0100 Subject: [dba-VB] Mercurial vs. SVN Message-ID: Hi Shamil I don't know about these details of TortoiseSVN - I just used it for the Northwind project and never had any trouble - and stayed off the command line. Thanks for the tip (for Mercurial hosting) at bitbucket. However, I think I stay with TortoiseSVN and/or VisualSVN as they have worked fine for me. /gustav >>> shamil at smsconsulting.spb.ru 31-01-2011 12:48 >>> Hi Gustav -- Thank you for your note. I should probably install newer version. But the one I have does support the feature of ignoring/making local individual files (filenames patterns) and *whole* folders. That is useful but that's not what I'm looking for/what exists in Mercurial it has more powerful feature to keep ignore list. BTW, SVN does inform that it added file/folder to the ignore list - is it possible to edit that list manually? If yes, where it's located? - I can find it - maybe you just know it from memory/used it: in Mercurial I usually just have a generic ignore list, which I'm putting in every new repository I create and then I'm adding specific files/filenames templates to that ignore list. Gustav, it's not a big issue - I can find my way using SVN via command lines - mainly wondering if I can skip making a batch which will use command line interface of SVN to "clean-up" local repository from some files/folders before committing it... BTW, https://bitbucket.org/ has an option of free unlimited code repositories up to 5 users... I haven't used it yet but I do plan to put all my important source code mirrored there in private code repository... 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: 31 ?????? 2011 ?. 11:43 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Mercurial vs. SVN Hi Shamil That's a very old version, current version is 1.6.something. The trick is the Shift key. From the help file: Hold the Shift key to get the extended context menu and select TortoiseSVN and Delete (keep local) to mark the file/folder for deletion from the repository without losing the local copy. /gustav >>> shamil at smsconsulting.spb.ru 31-01-2011 01:23 >>> Hi All -- Does SVN support "ignore list" as Mercurial does? (I wanted to exclude binaries and some other files from add/commit batch without going through all of added/updated items manually every time on commit). I do use Tortoise SVN v.1.4.5, and I do not see "ignore list feature" - does Tortoise SVN 1.4.7 support this feature? Or can I define ignore list somehow else when working with SVN? Thank you. -- Shamil From Gustav at cactus.dk Mon Jan 31 09:07:30 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 31 Jan 2011 16:07:30 +0100 Subject: [dba-VB] Localizing Silverlight Business Application Message-ID: Hi Shamil No, WP7 does not support databases - you set up a service for data communication. That's one of the things I wish to check out. As for development software, start here: Getting Started with Windows Phone Development http://msdn.microsoft.com/en-us/library/ff402529(v=vs.92).aspx and visit the download page: Installing Windows Phone Developer Tools http://msdn.microsoft.com/en-us/library/ff402530(v=vs.92).aspx Code Samples for Windows Phone http://msdn.microsoft.com/en-us/library/ff431744(v=vs.92).aspx Windows Phone 7 Design Guidelines * Cheat Sheet http://blogs.msdn.com/b/silverlight_sdk/archive/2011/01/07/windows-phone-7-design-guidelines-cheat-sheet.aspx Also: How to Use the Windows Phone Connect Tool http://msdn.microsoft.com/en-us/library/gg180729(v=VS.92).aspx /gustav >>> shamil at smsconsulting.spb.ru 31-01-2011 12:33 >>> Hi Gustav -- Thank you for your additional notes on Silverlight and Windiows Phone 7. BTW, I have checked Samsung Omnia 7 seems to be available here to - it costs USD700: 1) it doesn't have EMS - no problem; 2) it doesn't support memory cards - shoudln't be an issue - it has 8GB of memory installed; -- Does Windows Phone 7 support MS SQL Server CE? What software is additionally needed to develop for Silverlight 4 using VS2010? Do you expect that Windows Phone 7 may become one of the main parts of your custom software development business in the near future? Not easy question I know, you can skip it :) Thank you. -- Shamil From shamil at smsconsulting.spb.ru Mon Jan 31 12:00:41 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Mon, 31 Jan 2011 21:00:41 +0300 Subject: [dba-VB] Localizing Silverlight Business Application In-Reply-To: References: Message-ID: <546CF087491E4AF89EC2591F8E693CA6@nant> Hi Gustav -- Thank you for the additional information and the links you have provided - I will use them for Windows Phone 7 "must have" set of links first place. And I guess Windows Phone 7 Developer Tools do have Windows Phone 7 Device simulator running under VS2010 when debugging/testing? 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: 31 ?????? 2011 ?. 18:08 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Localizing Silverlight Business Application Hi Shamil No, WP7 does not support databases - you set up a service for data communication. That's one of the things I wish to check out. As for development software, start here: Getting Started with Windows Phone Development http://msdn.microsoft.com/en-us/library/ff402529(v=vs.92).aspx and visit the download page: Installing Windows Phone Developer Tools http://msdn.microsoft.com/en-us/library/ff402530(v=vs.92).aspx Code Samples for Windows Phone http://msdn.microsoft.com/en-us/library/ff431744(v=vs.92).aspx Windows Phone 7 Design Guidelines * Cheat Sheet http://blogs.msdn.com/b/silverlight_sdk/archive/2011/01/07/windows-phone-7-d esign-guidelines-cheat-sheet.aspx Also: How to Use the Windows Phone Connect Tool http://msdn.microsoft.com/en-us/library/gg180729(v=VS.92).aspx /gustav >>> shamil at smsconsulting.spb.ru 31-01-2011 12:33 >>> Hi Gustav -- Thank you for your additional notes on Silverlight and Windiows Phone 7. BTW, I have checked Samsung Omnia 7 seems to be available here to - it costs USD700: 1) it doesn't have EMS - no problem; 2) it doesn't support memory cards - shoudln't be an issue - it has 8GB of memory installed; -- Does Windows Phone 7 support MS SQL Server CE? What software is additionally needed to develop for Silverlight 4 using VS2010? Do you expect that Windows Phone 7 may become one of the main parts of your custom software development business in the near future? Not easy question I know, you can skip 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 Mon Jan 31 12:19:52 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 31 Jan 2011 19:19:52 +0100 Subject: [dba-VB] Localizing Silverlight Business Application Message-ID: Hi Shamil Well, to some degree and probably for you and me. However, for media applications you may need the Windows Phone Connect Tool and a physical phone as I understand it (not tested by me). /gustav >>> shamil at smsconsulting.spb.ru 31-01-2011 19:00 >>> Hi Gustav -- Thank you for the additional information and the links you have provided - I will use them for Windows Phone 7 "must have" set of links first place. And I guess Windows Phone 7 Developer Tools do have Windows Phone 7 Device simulator running under VS2010 when debugging/testing? 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: 31 ?????? 2011 ?. 18:08 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Localizing Silverlight Business Application Hi Shamil No, WP7 does not support databases - you set up a service for data communication. That's one of the things I wish to check out. As for development software, start here: Getting Started with Windows Phone Development http://msdn.microsoft.com/en-us/library/ff402529(v=vs.92).aspx and visit the download page: Installing Windows Phone Developer Tools http://msdn.microsoft.com/en-us/library/ff402530(v=vs.92).aspx Code Samples for Windows Phone http://msdn.microsoft.com/en-us/library/ff431744(v=vs.92).aspx Windows Phone 7 Design Guidelines * Cheat Sheet http://blogs.msdn.com/b/silverlight_sdk/archive/2011/01/07/windows-phone-7-d esign-guidelines-cheat-sheet.aspx Also: How to Use the Windows Phone Connect Tool http://msdn.microsoft.com/en-us/library/gg180729(v=VS.92).aspx /gustav From shamil at smsconsulting.spb.ru Mon Jan 31 12:26:09 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Mon, 31 Jan 2011 21:26:09 +0300 Subject: [dba-VB] Localizing Silverlight Business Application In-Reply-To: References: Message-ID: <85D74A02917E458C862D28B12BD21AF6@nant> Hi Gustav -- Do Silverlight 4 applications need to use Windows Phone Connect Tool or Silverlight applications can be run locally in debug mode (with database backend used via a Web Service as you noted). Does Windows Phone support WinForms at all? Or all Windows Phone 7 apps run within Silverlight "shell"? (<- Sorry that question may sound silly...) BTW, here is ScottGu's link blog entry on Windows Phone 7 Developers tools: http://weblogs.asp.net/scottgu/archive/2010/09/16/windows-phone-7-developer- tools-released.aspx 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: 31 ?????? 2011 ?. 21:20 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Localizing Silverlight Business Application Hi Shamil Well, to some degree and probably for you and me. However, for media applications you may need the Windows Phone Connect Tool and a physical phone as I understand it (not tested by me). /gustav >>> shamil at smsconsulting.spb.ru 31-01-2011 19:00 >>> Hi Gustav -- Thank you for the additional information and the links you have provided - I will use them for Windows Phone 7 "must have" set of links first place. And I guess Windows Phone 7 Developer Tools do have Windows Phone 7 Device simulator running under VS2010 when debugging/testing? 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: 31 ?????? 2011 ?. 18:08 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Localizing Silverlight Business Application Hi Shamil No, WP7 does not support databases - you set up a service for data communication. That's one of the things I wish to check out. As for development software, start here: Getting Started with Windows Phone Development http://msdn.microsoft.com/en-us/library/ff402529(v=vs.92).aspx and visit the download page: Installing Windows Phone Developer Tools http://msdn.microsoft.com/en-us/library/ff402530(v=vs.92).aspx Code Samples for Windows Phone http://msdn.microsoft.com/en-us/library/ff431744(v=vs.92).aspx Windows Phone 7 Design Guidelines * Cheat Sheet http://blogs.msdn.com/b/silverlight_sdk/archive/2011/01/07/windows-phone-7-d esign-guidelines-cheat-sheet.aspx Also: How to Use the Windows Phone Connect Tool http://msdn.microsoft.com/en-us/library/gg180729(v=VS.92).aspx /gustav _______________________________________________ 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 Mon Jan 31 12:31:54 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Mon, 31 Jan 2011 21:31:54 +0300 Subject: [dba-VB] Mercurial vs. SVN In-Reply-To: References: Message-ID: <9931D85A29A94CD39BBB795EFA3DB088@nant> Hi Gustav -- OK. tryig to use this info here http://stackoverflow.com/questions/85353/best-general-svn-ignore-pattern still not sure how to make it working properly - tried via SVN->[Properties] but it somehow didn't work well... As for SVN and Mercurial and Northwind.CodePlex.com - I'm going to "cross" them: - I do use Mercurial locally but - in the next release on codeplex I do plan to commit Mercuarial repository entries within source code, so the one who uses SVN - will use it, then one who use Mercurial - will use it. That's a plan. I do not see why it can break. I could be missing something. I do plan to make a new "crossed" release on Northwind.codeplex.com this week. 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: 31 ?????? 2011 ?. 17:48 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Mercurial vs. SVN Hi Shamil I don't know about these details of TortoiseSVN - I just used it for the Northwind project and never had any trouble - and stayed off the command line. Thanks for the tip (for Mercurial hosting) at bitbucket. However, I think I stay with TortoiseSVN and/or VisualSVN as they have worked fine for me. /gustav >>> shamil at smsconsulting.spb.ru 31-01-2011 12:48 >>> Hi Gustav -- Thank you for your note. I should probably install newer version. But the one I have does support the feature of ignoring/making local individual files (filenames patterns) and *whole* folders. That is useful but that's not what I'm looking for/what exists in Mercurial it has more powerful feature to keep ignore list. BTW, SVN does inform that it added file/folder to the ignore list - is it possible to edit that list manually? If yes, where it's located? - I can find it - maybe you just know it from memory/used it: in Mercurial I usually just have a generic ignore list, which I'm putting in every new repository I create and then I'm adding specific files/filenames templates to that ignore list. Gustav, it's not a big issue - I can find my way using SVN via command lines - mainly wondering if I can skip making a batch which will use command line interface of SVN to "clean-up" local repository from some files/folders before committing it... BTW, https://bitbucket.org/ has an option of free unlimited code repositories up to 5 users... I haven't used it yet but I do plan to put all my important source code mirrored there in private code repository... 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: 31 ?????? 2011 ?. 11:43 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Mercurial vs. SVN Hi Shamil That's a very old version, current version is 1.6.something. The trick is the Shift key. From the help file: Hold the Shift key to get the extended context menu and select TortoiseSVN and Delete (keep local) to mark the file/folder for deletion from the repository without losing the local copy. /gustav >>> shamil at smsconsulting.spb.ru 31-01-2011 01:23 >>> Hi All -- Does SVN support "ignore list" as Mercurial does? (I wanted to exclude binaries and some other files from add/commit batch without going through all of added/updated items manually every time on commit). I do use Tortoise SVN v.1.4.5, and I do not see "ignore list feature" - does Tortoise SVN 1.4.7 support this feature? Or can I define ignore list somehow else when working with SVN? 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 Mon Jan 31 14:55:34 2011 From: gustav at cactus.dk (Gustav Brock) Date: Mon, 31 Jan 2011 21:55:34 +0100 Subject: [dba-VB] Localizing Silverlight Business Application Message-ID: Hi Shamil The Phone Connect is only needed for running apps that stream video and the like. I have no specifics, sorry. WP7 apps are Silverlight only for "normal" apps or XNA for games and highly graphic apps. No WinForms. Thanks for the link. That seems relevant to study. Scott Gu is a good presenter. /gustav >>> shamil at smsconsulting.spb.ru 31-01-2011 19:26 >>> Hi Gustav -- Do Silverlight 4 applications need to use Windows Phone Connect Tool or Silverlight applications can be run locally in debug mode (with database backend used via a Web Service as you noted). Does Windows Phone support WinForms at all? Or all Windows Phone 7 apps run within Silverlight "shell"? (<- Sorry that question may sound silly...) BTW, here is ScottGu's link blog entry on Windows Phone 7 Developers tools: http://weblogs.asp.net/scottgu/archive/2010/09/16/windows-phone-7-developer-tools-released.aspx 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: 31 ?????? 2011 ?. 21:20 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Localizing Silverlight Business Application Hi Shamil Well, to some degree and probably for you and me. However, for media applications you may need the Windows Phone Connect Tool and a physical phone as I understand it (not tested by me). /gustav >>> shamil at smsconsulting.spb.ru 31-01-2011 19:00 >>> Hi Gustav -- Thank you for the additional information and the links you have provided - I will use them for Windows Phone 7 "must have" set of links first place. And I guess Windows Phone 7 Developer Tools do have Windows Phone 7 Device simulator running under VS2010 when debugging/testing? 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: 31 ?????? 2011 ?. 18:08 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Localizing Silverlight Business Application Hi Shamil No, WP7 does not support databases - you set up a service for data communication. That's one of the things I wish to check out. As for development software, start here: Getting Started with Windows Phone Development http://msdn.microsoft.com/en-us/library/ff402529(v=vs.92).aspx and visit the download page: Installing Windows Phone Developer Tools http://msdn.microsoft.com/en-us/library/ff402530(v=vs.92).aspx Code Samples for Windows Phone http://msdn.microsoft.com/en-us/library/ff431744(v=vs.92).aspx Windows Phone 7 Design Guidelines * Cheat Sheet http://blogs.msdn.com/b/silverlight_sdk/archive/2011/01/07/windows-phone-7-design-guidelines-cheat-sheet.aspx Also: How to Use the Windows Phone Connect Tool http://msdn.microsoft.com/en-us/library/gg180729(v=VS.92).aspx /gustav From gustav at cactus.dk Mon Jan 31 15:05:02 2011 From: gustav at cactus.dk (Gustav Brock) Date: Mon, 31 Jan 2011 22:05:02 +0100 Subject: [dba-VB] Mercurial vs. SVN Message-ID: Hi Shamil That's beyond my experience. I only have had to exclude a few files (after they were created) and that worked fine. The patterns, I think, try to exclude files before creation. /gustav >>> shamil at smsconsulting.spb.ru 31-01-2011 19:31 >>> Hi Gustav -- OK. tryig to use this info here http://stackoverflow.com/questions/85353/best-general-svn-ignore-pattern still not sure how to make it working properly - tried via SVN->[Properties] but it somehow didn't work well... As for SVN and Mercurial and Northwind.CodePlex.com - I'm going to "cross" them: - I do use Mercurial locally but - in the next release on codeplex I do plan to commit Mercuarial repository entries within source code, so the one who uses SVN - will use it, then one who use Mercurial - will use it. That's a plan. I do not see why it can break. I could be missing something. I do plan to make a new "crossed" release on Northwind.codeplex.com this week. 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: 31 ?????? 2011 ?. 17:48 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Mercurial vs. SVN Hi Shamil I don't know about these details of TortoiseSVN - I just used it for the Northwind project and never had any trouble - and stayed off the command line. Thanks for the tip (for Mercurial hosting) at bitbucket. However, I think I stay with TortoiseSVN and/or VisualSVN as they have worked fine for me. /gustav >>> shamil at smsconsulting.spb.ru 31-01-2011 12:48 >>> Hi Gustav -- Thank you for your note. I should probably install newer version. But the one I have does support the feature of ignoring/making local individual files (filenames patterns) and *whole* folders. That is useful but that's not what I'm looking for/what exists in Mercurial it has more powerful feature to keep ignore list. BTW, SVN does inform that it added file/folder to the ignore list - is it possible to edit that list manually? If yes, where it's located? - I can find it - maybe you just know it from memory/used it: in Mercurial I usually just have a generic ignore list, which I'm putting in every new repository I create and then I'm adding specific files/filenames templates to that ignore list. Gustav, it's not a big issue - I can find my way using SVN via command lines - mainly wondering if I can skip making a batch which will use command line interface of SVN to "clean-up" local repository from some files/folders before committing it... BTW, https://bitbucket.org/ has an option of free unlimited code repositories up to 5 users... I haven't used it yet but I do plan to put all my important source code mirrored there in private code repository... 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: 31 ?????? 2011 ?. 11:43 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Mercurial vs. SVN Hi Shamil That's a very old version, current version is 1.6.something. The trick is the Shift key. From the help file: Hold the Shift key to get the extended context menu and select TortoiseSVN and Delete (keep local) to mark the file/folder for deletion from the repository without losing the local copy. /gustav >>> shamil at smsconsulting.spb.ru 31-01-2011 01:23 >>> Hi All -- Does SVN support "ignore list" as Mercurial does? (I wanted to exclude binaries and some other files from add/commit batch without going through all of added/updated items manually every time on commit). I do use Tortoise SVN v.1.4.5, and I do not see "ignore list feature" - does Tortoise SVN 1.4.7 support this feature? Or can I define ignore list somehow else when working with SVN? Thank you. -- Shamil From shamil at smsconsulting.spb.ru Mon Jan 31 18:08:44 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Tue, 1 Feb 2011 03:08:44 +0300 Subject: [dba-VB] Localizing Silverlight Business Application In-Reply-To: References: Message-ID: <9DD1A698D5A34EE5A52E0B9F7B01B992@nant> Hi Gustav -- I'm looking here for Windows Phone 7 OS features (it's not your device - just because I have found interesting review for Win Phone 7 OS and apps on this page) http://www.amazon.com/HTC-hd7-t-mobile-htc-locked/product-reviews/B004B3KANO /ref=dp_top_cm_cr_acr_txt?ie=UTF8&showViewpoints=1 Here is one excerpt: "The built in applications like Office let you view/edit word documents, view/edit excel documents, view powerpoint presentations, view/edit onenote, outlook - view your email from multiple providers - hotmail, google, yahoo, any email provider - very intuitive and easy to use interface. Internet Explorer - optimized and is a really good browser now; pinch to zoom and scrolling in internet explorer works perfectly, loading pages is excellent and fast - no real faults at all with the new internet explorer. Music/Videos player is basically the zune interface - beautiful; manages all your videos and music here and if you have a zune pass you can listen to your music from right here - this works in the background too and you can play games and surf the web using this application in the background. " Sounds useful. But this is what I'm not sure I'm understanding properly: "- No multitasking for third party apps - we need the ability to multi-task and choose what we want running in the background. Some apps really do need multitasking. " What third party apps are they talking about? SIlverlight custom apps do come loaded from Internet - right? If so - once loaded they block all the other apps? Sounds strange. Or do they mean custom XNA apps? Thank you. -- Shamil 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: 31 ?????? 2011 ?. 23:56 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Localizing Silverlight Business Application Hi Shamil The Phone Connect is only needed for running apps that stream video and the like. I have no specifics, sorry. WP7 apps are Silverlight only for "normal" apps or XNA for games and highly graphic apps. No WinForms. Thanks for the link. That seems relevant to study. Scott Gu is a good presenter. /gustav >>> shamil at smsconsulting.spb.ru 31-01-2011 19:26 >>> Hi Gustav -- Do Silverlight 4 applications need to use Windows Phone Connect Tool or Silverlight applications can be run locally in debug mode (with database backend used via a Web Service as you noted). Does Windows Phone support WinForms at all? Or all Windows Phone 7 apps run within Silverlight "shell"? (<- Sorry that question may sound silly...) BTW, here is ScottGu's link blog entry on Windows Phone 7 Developers tools: http://weblogs.asp.net/scottgu/archive/2010/09/16/windows-phone-7-developer- tools-released.aspx 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: 31 ?????? 2011 ?. 21:20 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Localizing Silverlight Business Application Hi Shamil Well, to some degree and probably for you and me. However, for media applications you may need the Windows Phone Connect Tool and a physical phone as I understand it (not tested by me). /gustav >>> shamil at smsconsulting.spb.ru 31-01-2011 19:00 >>> Hi Gustav -- Thank you for the additional information and the links you have provided - I will use them for Windows Phone 7 "must have" set of links first place. And I guess Windows Phone 7 Developer Tools do have Windows Phone 7 Device simulator running under VS2010 when debugging/testing? 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: 31 ?????? 2011 ?. 18:08 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Localizing Silverlight Business Application Hi Shamil No, WP7 does not support databases - you set up a service for data communication. That's one of the things I wish to check out. As for development software, start here: Getting Started with Windows Phone Development http://msdn.microsoft.com/en-us/library/ff402529(v=vs.92).aspx and visit the download page: Installing Windows Phone Developer Tools http://msdn.microsoft.com/en-us/library/ff402530(v=vs.92).aspx Code Samples for Windows Phone http://msdn.microsoft.com/en-us/library/ff431744(v=vs.92).aspx Windows Phone 7 Design Guidelines * Cheat Sheet http://blogs.msdn.com/b/silverlight_sdk/archive/2011/01/07/windows-phone-7-d esign-guidelines-cheat-sheet.aspx Also: How to Use the Windows Phone Connect Tool http://msdn.microsoft.com/en-us/library/gg180729(v=VS.92).aspx /gustav _______________________________________________ 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 Mon Jan 31 18:56:27 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Tue, 1 Feb 2011 03:56:27 +0300 Subject: [dba-VB] ASP.NET app's web design Message-ID: <062E05BFD6C84E1AA345CFA7955C369C@nant> Hi All -- I wanted to ask three questions to the list members who has made some graphics/knows well (at least in theory) what tools and principles are involved in that graphics design process: - 1) Is there any inexpensive graphic design tools, which allow to create designs as the following? (assumption that graphics designer is able to imagine and make such design is given by default and is not the subject of my questions) http://shamils-23.hosting.parking.ru/Prototype/ (Must have for such a tool should be a feature to make layered design built from several graphical components as well as the feature of setting transparent background for given color, drawing gradients but there is no need in that many fancy and cute features one can find in ADOBE Photoshop - just a set of feature to support development of simple and elegant Web 2.0 designs - that is required...) - 2) When such design is created is it completely manual work to convert it into a (set of) .css + graphics + .html? - 3) Do you see a lot of graphics will go into .css + graphics + .html from such a design or most of it can be presented by just .css + .html4 (maybe .html5)? (I do assume here that photos of the consumer good products are not the part of the design, as well as shadows, which can be ignore while porting graphic design from .psd into .css + .html if they are not part of photos)... - 4) Do you suppose that the referred above design can be made without HTML tables - by using
+ .css + as little as possible graphics? Thank you. -- Shamil From jwcolby at colbyconsulting.com Sun Jan 2 14:06:39 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sun, 02 Jan 2011 15:06:39 -0500 Subject: [dba-VB] A Sneaky, Subtle Price Increase | Overclockers Message-ID: <4D20DACF.1010107@colbyconsulting.com> http://www.overclockers.com/a-sneaky-subtle-price-increase/ -- John W. Colby www.ColbyConsulting.com From jwcolby at colbyconsulting.com Sun Jan 2 14:58:23 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sun, 02 Jan 2011 15:58:23 -0500 Subject: [dba-VB] A Sneaky, Subtle Price Increase | Overclockers In-Reply-To: <4D20DACF.1010107@colbyconsulting.com> References: <4D20DACF.1010107@colbyconsulting.com> Message-ID: <4D20E6EF.1020800@colbyconsulting.com> So sneaky they are still warning us 6 years later... 8( John W. Colby www.ColbyConsulting.com On 1/2/2011 3:06 PM, jwcolby wrote: > http://www.overclockers.com/a-sneaky-subtle-price-increase/ > > From shamil at smsconsulting.spb.ru Wed Jan 5 07:15:15 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Wed, 5 Jan 2011 16:15:15 +0300 Subject: [dba-VB] FYI: EF Code First CTP5 Message-ID: <9DC97BD82AA542F297C26482B27D669F@nant> Hi All -- FYI: EF Code First CTP5 http://www.infoq.com/news/2010/12/ef-ctp5 http://weblogs.asp.net/manavi/default.aspx Thank you. -- Shamil From Gustav at cactus.dk Wed Jan 5 08:41:30 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 05 Jan 2011 15:41:30 +0100 Subject: [dba-VB] Moving to .Net, ASP.NET web applications, and the Entity Framework Message-ID: Hi all A step-by-step intro for everyone, and this may be a bit optimistic but still: Build a Data-Driven Enterprise Web Site in 5 Minutes http://msdn.microsoft.com/da-dk/magazine/gg535665(en-us).aspx If this should interest you, please subscribe to our dba-VB list. /gustav From jwcolby at colbyconsulting.com Wed Jan 5 12:00:15 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 05 Jan 2011 13:00:15 -0500 Subject: [dba-VB] SQL Server security Message-ID: <4D24B1AF.3090800@colbyconsulting.com> I am having performance issues in a largish Access application, a Disability Insurance Claim call center app. I have one particular table which is not huge in terms of field count but it does have a lot of records and most of the fields are indexed, and it has about 800K records in it. This table holds "contact" info, as in phone calls that the users have. They document every "contact" with every one, claimants, doctors, lawyers, etc. into a memo field and also date of call, ClaimID FK, employee id FK, contact type id FK etc. Kind of a mini center of the universe for this application. The result is that people are storing new records in this table constantly throughout the day and we are getting a lot of "record locked..." issues caused by (AFAICT) the time it takes Jet to store the records and update all of the indexes, and probably the memo storage area of the mdb. Just to give a picture, this one table has been moved out to it's own mdb and that mdb is about 700 megabytes after a compact. Most of the rest of the database (150 tables) is in another mdb and after compact that database is 800 megabytes, so this one table is close to as big as the rest of the db. I do not have experience in a transactional database using SQL Server, but I am thinking that SQL Server express 2005 will not have an issue keeping up with this kind of usage - 25 users adding records to this table all day without causing locking issues like I am seeing now. My issue at this point is that they use a network logon and force the users to change their password every 30 days. Is SQL Server going to use that same network username / password database or does it use a list of usernames / passwords physically on the server itself? IOW will Windows authentication work or will I need to go to SQL Server username / password? -- John W. Colby www.ColbyConsulting.com From davidmcafee at gmail.com Wed Jan 5 12:21:15 2011 From: davidmcafee at gmail.com (David McAfee) Date: Wed, 5 Jan 2011 10:21:15 -0800 Subject: [dba-VB] SQL Server security In-Reply-To: <4D24B1AF.3090800@colbyconsulting.com> References: <4D24B1AF.3090800@colbyconsulting.com> Message-ID: You can choose either path. I tend to use SQL Server security myself. A better question is maybe looking at the design of the table for the contact info. I tend to design all data changes as insertions. Vary rarely to I allow a table to be edited. I display the contact information on just about every screen, but only give to choice to edit (if they have rights) when it is indeed needed. I never have locking issues in Access or SQL. D On Wed, Jan 5, 2011 at 10:00 AM, jwcolby wrote: > I am having performance issues in a largish Access application, a > Disability Insurance Claim call center app. > > I have one particular table which is not huge in terms of field count but > it does have a lot of records and most of the fields are indexed, and it has > about 800K records in it. This table holds "contact" info, as in phone > calls that the users have. They document every "contact" with every one, > claimants, doctors, lawyers, etc. into a memo field and also date of call, > ClaimID FK, employee id FK, contact type id FK etc. Kind of a mini center > of the universe for this application. > > The result is that people are storing new records in this table constantly > throughout the day and we are getting a lot of "record locked..." issues > caused by (AFAICT) the time it takes Jet to store the records and update all > of the indexes, and probably the memo storage area of the mdb. > > Just to give a picture, this one table has been moved out to it's own mdb > and that mdb is about 700 megabytes after a compact. Most of the rest of > the database (150 tables) is in another mdb and after compact that database > is 800 megabytes, so this one table is close to as big as the rest of the > db. > > I do not have experience in a transactional database using SQL Server, but > I am thinking that SQL Server express 2005 will not have an issue keeping up > with this kind of usage - 25 users adding records to this table all day > without causing locking issues like I am seeing now. > > My issue at this point is that they use a network logon and force the users > to change their password every 30 days. Is SQL Server going to use that > same network username / password database or does it use a list of usernames > / passwords physically on the server itself? IOW will Windows > authentication work or will I need to go to SQL Server username / password? > > -- > John W. Colby > www.ColbyConsulting.com > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From jwcolby at colbyconsulting.com Wed Jan 5 12:45:01 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 05 Jan 2011 13:45:01 -0500 Subject: [dba-VB] SQL Server security In-Reply-To: References: <4D24B1AF.3090800@colbyconsulting.com> Message-ID: <4D24BC2D.2050907@colbyconsulting.com> This is not contact info as in Name / address / phone, it is a place to enter information about telephone (mostly) contacts with everyone that the call center people talk to. It is primarily a memo field (because they often write pages of notes) with a hand full of FKs and a few date fields. These are primarily new records (inserts) but there are edits of existing records. There are about 800 THOUSAND of these records and hundreds a day added. John W. Colby www.ColbyConsulting.com On 1/5/2011 1:21 PM, David McAfee wrote: > You can choose either path. I tend to use SQL Server security myself. > > A better question is maybe looking at the design of the table for the > contact info. > > I tend to design all data changes as insertions. Vary rarely to I allow a > table to be edited. > > I display the contact information on just about every screen, but only give > to choice to edit (if they have rights) when it is indeed needed. > > I never have locking issues in Access or SQL. > > D > > On Wed, Jan 5, 2011 at 10:00 AM, jwcolbywrote: > >> I am having performance issues in a largish Access application, a >> Disability Insurance Claim call center app. >> >> I have one particular table which is not huge in terms of field count but >> it does have a lot of records and most of the fields are indexed, and it has >> about 800K records in it. This table holds "contact" info, as in phone >> calls that the users have. They document every "contact" with every one, >> claimants, doctors, lawyers, etc. into a memo field and also date of call, >> ClaimID FK, employee id FK, contact type id FK etc. Kind of a mini center >> of the universe for this application. >> >> The result is that people are storing new records in this table constantly >> throughout the day and we are getting a lot of "record locked..." issues >> caused by (AFAICT) the time it takes Jet to store the records and update all >> of the indexes, and probably the memo storage area of the mdb. >> >> Just to give a picture, this one table has been moved out to it's own mdb >> and that mdb is about 700 megabytes after a compact. Most of the rest of >> the database (150 tables) is in another mdb and after compact that database >> is 800 megabytes, so this one table is close to as big as the rest of the >> db. >> >> I do not have experience in a transactional database using SQL Server, but >> I am thinking that SQL Server express 2005 will not have an issue keeping up >> with this kind of usage - 25 users adding records to this table all day >> without causing locking issues like I am seeing now. >> >> My issue at this point is that they use a network logon and force the users >> to change their password every 30 days. Is SQL Server going to use that >> same network username / password database or does it use a list of usernames >> / passwords physically on the server itself? IOW will Windows >> authentication work or will I need to go to SQL Server username / password? >> >> -- >> 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 fhtapia at gmail.com Wed Jan 5 13:41:23 2011 From: fhtapia at gmail.com (Francisco Tapia) Date: Wed, 5 Jan 2011 11:41:23 -0800 Subject: [dba-VB] SQL Server security In-Reply-To: <4D24B1AF.3090800@colbyconsulting.com> References: <4D24B1AF.3090800@colbyconsulting.com> Message-ID: -Francisco http://bit.ly/sqlthis | Tsql and More... On Wed, Jan 5, 2011 at 10:00 AM, jwcolby wrote: > > I do not have experience in a transactional database using SQL Server, but > I am thinking that SQL Server express 2005 will not have an issue keeping up > with this kind of usage - 25 users adding records to this table all day > without causing locking issues like I am seeing now. > It's been a while since I did a conversion, I don't remember if you need to make all your fields varchar or nvarchar, but that's the gist. I remember also going unbound to simplify the data entry process, but ymmv with that piece of advise. We have SQL Server running in the backend for many of our transactional systems and we have > than 25 users all w/o locking problems. My issue at this point is that they use a network logon and force the users > to change their password every 30 days. Is SQL Server going to use that > same network username / password database or does it use a list of usernames > / passwords physically on the server itself? IOW will Windows > authentication work or will I need to go to SQL Server username / password? Windows Authentication will work just fine. To simplify the user to server problem, you'd want the network admin to add your users who have access to the application to a specific domain group... then just give access to the domain group. You can even put security around who has access to what based on domain group, works a treat. If you have too much difficulty with that you can always fall back to sql authentication, but I always prefer windows authentication except for the web apps we have... From michael at mattysconsulting.com Wed Jan 5 13:53:38 2011 From: michael at mattysconsulting.com (Michael Mattys) Date: Wed, 5 Jan 2011 14:53:38 -0500 Subject: [dba-VB] Moving to .Net, ASP.NET web applications, and the Entity Framework In-Reply-To: References: Message-ID: Hi Gustav / All I made the site, but found that, even after I made sure that I was running in .Net Framework 4, the Display(Name ...) mechanism doesn't work. Did you try this? Michael R Mattys Business Process Developers www.mattysconsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, January 05, 2011 9:42 AM To: accessd at databaseadvisors.com; dba-vb at databaseadvisors.com Subject: [dba-VB] Moving to .Net, ASP.NET web applications,and the Entity Framework Hi all A step-by-step intro for everyone, and this may be a bit optimistic but still: Build a Data-Driven Enterprise Web Site in 5 Minutes http://msdn.microsoft.com/da-dk/magazine/gg535665(en-us).aspx If this should interest you, please subscribe to our dba-VB list. /gustav _______________________________________________ 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 Jan 5 15:01:19 2011 From: gustav at cactus.dk (Gustav Brock) Date: Wed, 05 Jan 2011 22:01:19 +0100 Subject: [dba-VB] Moving to .Net, ASP.NET web applications, and the Entity Framework Message-ID: Hi Michael No I haven't tried to build the site. Maybe I can have a look in the weekend. /gustav >>> "Michael Mattys" 05-01-2011 20:53 >>> Hi Gustav / All I made the site, but found that, even after I made sure that I was running in .Net Framework 4, the Display(Name ...) mechanism doesn't work. Did you try this? Michael R Mattys Business Process Developers www.mattysconsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, January 05, 2011 9:42 AM To: accessd at databaseadvisors.com; dba-vb at databaseadvisors.com Subject: [dba-VB] Moving to .Net, ASP.NET web applications,and the Entity Framework Hi all A step-by-step intro for everyone, and this may be a bit optimistic but still: Build a Data-Driven Enterprise Web Site in 5 Minutes http://msdn.microsoft.com/da-dk/magazine/gg535665(en-us).aspx If this should interest you, please subscribe to our dba-VB list. /gustav From shamil at smsconsulting.spb.ru Wed Jan 5 15:47:44 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Thu, 6 Jan 2011 00:47:44 +0300 Subject: [dba-VB] Moving to .Net, ASP.NET web applications, and the Entity Framework In-Reply-To: References: Message-ID: Hi Michael -- [Display(Name = ....] gives CS0592: Attribute 'Display' is not valid on this declaration type. It is only valid on 'method, property, indexer, field, param' declarations. [DisplayName(....] works well. Thank you. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Michael Mattys Sent: 5 ?????? 2011 ?. 22:54 To: 'Discussion concerning Visual Basic and related programming issues.' Subject: Re: [dba-VB] Moving to .Net, ASP.NET web applications,and the Entity Framework Hi Gustav / All I made the site, but found that, even after I made sure that I was running in .Net Framework 4, the Display(Name ...) mechanism doesn't work. Did you try this? Michael R Mattys Business Process Developers www.mattysconsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, January 05, 2011 9:42 AM To: accessd at databaseadvisors.com; dba-vb at databaseadvisors.com Subject: [dba-VB] Moving to .Net, ASP.NET web applications,and the Entity Framework Hi all A step-by-step intro for everyone, and this may be a bit optimistic but still: Build a Data-Driven Enterprise Web Site in 5 Minutes http://msdn.microsoft.com/da-dk/magazine/gg535665(en-us).aspx If this should interest you, please subscribe to our dba-VB list. /gustav From michael at mattysconsulting.com Wed Jan 5 20:55:51 2011 From: michael at mattysconsulting.com (Michael Mattys) Date: Wed, 5 Jan 2011 21:55:51 -0500 Subject: [dba-VB] Moving to .Net, ASP.NET web applications, and the Entity Framework In-Reply-To: References: Message-ID: <0FFE4C308D6D4A30BEE3C5635FDB7E65@Gateway> Thanks, Shamil! Michael R Mattys Business Process Developers www.mattysconsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Wednesday, January 05, 2011 4:48 PM To: 'Discussion concerning Visual Basic and related programming issues.' Subject: Re: [dba-VB] Moving to .Net, ASP.NET web applications,and the Entity Framework Hi Michael -- [Display(Name = ....] gives CS0592: Attribute 'Display' is not valid on this declaration type. It is only valid on 'method, property, indexer, field, param' declarations. [DisplayName(....] works well. Thank you. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Michael Mattys Sent: 5 ?????? 2011 ?. 22:54 To: 'Discussion concerning Visual Basic and related programming issues.' Subject: Re: [dba-VB] Moving to .Net, ASP.NET web applications,and the Entity Framework Hi Gustav / All I made the site, but found that, even after I made sure that I was running in .Net Framework 4, the Display(Name ...) mechanism doesn't work. Did you try this? Michael R Mattys Business Process Developers www.mattysconsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, January 05, 2011 9:42 AM To: accessd at databaseadvisors.com; dba-vb at databaseadvisors.com Subject: [dba-VB] Moving to .Net, ASP.NET web applications,and the Entity Framework Hi all A step-by-step intro for everyone, and this may be a bit optimistic but still: Build a Data-Driven Enterprise Web Site in 5 Minutes http://msdn.microsoft.com/da-dk/magazine/gg535665(en-us).aspx If this should interest you, please subscribe to our dba-VB list. /gustav _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From paul.hartland at googlemail.com Wed Jan 5 23:15:51 2011 From: paul.hartland at googlemail.com (Paul Hartland) Date: Thu, 6 Jan 2011 05:15:51 +0000 Subject: [dba-VB] SQL Server security In-Reply-To: <4D24B1AF.3090800@colbyconsulting.com> References: <4D24B1AF.3090800@colbyconsulting.com> Message-ID: John, I remember we had a similar problem at my old company many years back, especially with one table. Our simple solution (which surprised me that it worked) was to add two fields to the table a TimeStamp field and a UniqueIdentifier field (think those are the names of the datatypes in SQL). You could try that first. Paul On 5 January 2011 18:00, jwcolby wrote: > I am having performance issues in a largish Access application, a > Disability Insurance Claim call center app. > > I have one particular table which is not huge in terms of field count but > it does have a lot of records and most of the fields are indexed, and it has > about 800K records in it. This table holds "contact" info, as in phone > calls that the users have. They document every "contact" with every one, > claimants, doctors, lawyers, etc. into a memo field and also date of call, > ClaimID FK, employee id FK, contact type id FK etc. Kind of a mini center > of the universe for this application. > > The result is that people are storing new records in this table constantly > throughout the day and we are getting a lot of "record locked..." issues > caused by (AFAICT) the time it takes Jet to store the records and update all > of the indexes, and probably the memo storage area of the mdb. > > Just to give a picture, this one table has been moved out to it's own mdb > and that mdb is about 700 megabytes after a compact. Most of the rest of > the database (150 tables) is in another mdb and after compact that database > is 800 megabytes, so this one table is close to as big as the rest of the > db. > > I do not have experience in a transactional database using SQL Server, but > I am thinking that SQL Server express 2005 will not have an issue keeping up > with this kind of usage - 25 users adding records to this table all day > without causing locking issues like I am seeing now. > > My issue at this point is that they use a network logon and force the users > to change their password every 30 days. Is SQL Server going to use that > same network username / password database or does it use a list of usernames > / passwords physically on the server itself? IOW will Windows > authentication work or will I need to go to SQL Server username / password? > > -- > 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 > > -- Paul Hartland paul.hartland at googlemail.com From marklbreen at gmail.com Thu Jan 6 03:10:37 2011 From: marklbreen at gmail.com (Mark Breen) Date: Thu, 6 Jan 2011 09:10:37 +0000 Subject: [dba-VB] SQL Server security In-Reply-To: <4D24B1AF.3090800@colbyconsulting.com> References: <4D24B1AF.3090800@colbyconsulting.com> Message-ID: Hello John, I had an almost exact issue about three months ago. It was a call centre with about 25 - 40 agents on the phone with an Access App. When they upgraded to Access 2007, the whole application ground to a halt. I did some basic checking but could find no single issue, so I downgraded them again to Access 2000 FE and BE and immediately all was ok again. Any help? thanks Mark On 5 January 2011 18:00, jwcolby wrote: > I am having performance issues in a largish Access application, a > Disability Insurance Claim call center app. > > I have one particular table which is not huge in terms of field count but > it does have a lot of records and most of the fields are indexed, and it has > about 800K records in it. This table holds "contact" info, as in phone > calls that the users have. They document every "contact" with every one, > claimants, doctors, lawyers, etc. into a memo field and also date of call, > ClaimID FK, employee id FK, contact type id FK etc. Kind of a mini center > of the universe for this application. > > The result is that people are storing new records in this table constantly > throughout the day and we are getting a lot of "record locked..." issues > caused by (AFAICT) the time it takes Jet to store the records and update all > of the indexes, and probably the memo storage area of the mdb. > > Just to give a picture, this one table has been moved out to it's own mdb > and that mdb is about 700 megabytes after a compact. Most of the rest of > the database (150 tables) is in another mdb and after compact that database > is 800 megabytes, so this one table is close to as big as the rest of the > db. > > I do not have experience in a transactional database using SQL Server, but > I am thinking that SQL Server express 2005 will not have an issue keeping up > with this kind of usage - 25 users adding records to this table all day > without causing locking issues like I am seeing now. > > My issue at this point is that they use a network logon and force the users > to change their password every 30 days. Is SQL Server going to use that > same network username / password database or does it use a list of usernames > / passwords physically on the server itself? IOW will Windows > authentication work or will I need to go to SQL Server username / password? > > -- > John W. Colby > www.ColbyConsulting.com > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From jwcolby at colbyconsulting.com Thu Jan 6 05:14:49 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 06 Jan 2011 06:14:49 -0500 Subject: [dba-VB] SQL Server security In-Reply-To: References: <4D24B1AF.3090800@colbyconsulting.com> Message-ID: <4D25A429.5030609@colbyconsulting.com> This app has been in use since I developed the initial iteration many years ago. It is still at Access 2000. John W. Colby www.ColbyConsulting.com On 1/6/2011 4:10 AM, Mark Breen wrote: > Hello John, > > I had an almost exact issue about three months ago. It was a call centre > with about 25 - 40 agents on the phone with an Access App. > > When they upgraded to Access 2007, the whole application ground to a halt. > > I did some basic checking but could find no single issue, so I downgraded > them again to Access 2000 FE and BE and immediately all was ok again. > > Any help? > > thanks > > Mark > > > > On 5 January 2011 18:00, jwcolby wrote: > >> I am having performance issues in a largish Access application, a >> Disability Insurance Claim call center app. >> >> I have one particular table which is not huge in terms of field count but >> it does have a lot of records and most of the fields are indexed, and it has >> about 800K records in it. This table holds "contact" info, as in phone >> calls that the users have. They document every "contact" with every one, >> claimants, doctors, lawyers, etc. into a memo field and also date of call, >> ClaimID FK, employee id FK, contact type id FK etc. Kind of a mini center >> of the universe for this application. >> >> The result is that people are storing new records in this table constantly >> throughout the day and we are getting a lot of "record locked..." issues >> caused by (AFAICT) the time it takes Jet to store the records and update all >> of the indexes, and probably the memo storage area of the mdb. >> >> Just to give a picture, this one table has been moved out to it's own mdb >> and that mdb is about 700 megabytes after a compact. Most of the rest of >> the database (150 tables) is in another mdb and after compact that database >> is 800 megabytes, so this one table is close to as big as the rest of the >> db. >> >> I do not have experience in a transactional database using SQL Server, but >> I am thinking that SQL Server express 2005 will not have an issue keeping up >> with this kind of usage - 25 users adding records to this table all day >> without causing locking issues like I am seeing now. >> >> My issue at this point is that they use a network logon and force the users >> to change their password every 30 days. Is SQL Server going to use that >> same network username / password database or does it use a list of usernames >> / passwords physically on the server itself? IOW will Windows >> authentication work or will I need to go to SQL Server username / password? >> >> -- >> 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 Fri Jan 7 23:01:31 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 08 Jan 2011 00:01:31 -0500 Subject: [dba-VB] Access - link to SQL database -Database not showing Message-ID: <4D27EFAB.5040200@colbyconsulting.com> I have installed SQL Server 2005 on a (remote) Windows 2000 server machine at the client. From my workstation at the client I then open SQL Server MSExpress 2005 and I can see that SQL Server Express instance and two databases that I created on that SQL Server Express instance. From Access I try to link to a table in one of those databases. When I get to the wizard page where I am allowed to change the default database, I cannot see either of the two databases that I need to get at, only the master, msdb and tempdb. I was having a problem where I could not connect and had to open the surface configuration and allow remote connections. I selected TCP AND named pipes. That allowed MSE to see that server as well as Access to see that server, but it does not yet allow me to see the actual database of interest. Any clue why? I have done this before here at my office and I could always see the databases. TIA, -- John W. Colby www.ColbyConsulting.com From jwcolby at colbyconsulting.com Fri Jan 7 23:06:11 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 08 Jan 2011 00:06:11 -0500 Subject: [dba-VB] Further to "can's see SQL Server database... Message-ID: <4D27F0C3.2030206@colbyconsulting.com> I went back in with MSE and looked at that server. While I can see the databases of interest, if I click on them and try to see the tables inside, I get an error "the database DISCO is not available" and the plus symbol in front of the database disappears. So I can see that the db exists but not actually access it (from my workstation). I can see and open the database from MSE on the server itself. Is this an ownership / rights kind of issue? I am not getting an actual error number from my workstation, just an "not available" generic kind of message. If it is ownership / rights, how do I go about discovering how to fix it? -- John W. Colby www.ColbyConsulting.com From marklbreen at gmail.com Sat Jan 8 09:34:58 2011 From: marklbreen at gmail.com (Mark Breen) Date: Sat, 8 Jan 2011 15:34:58 +0000 Subject: [dba-VB] Further to "can's see SQL Server database... In-Reply-To: <4D27F0C3.2030206@colbyconsulting.com> References: <4D27F0C3.2030206@colbyconsulting.com> Message-ID: Hello John, In this case, I would like to know whether there is a database corruption issue or a connectivity. What about quickly creating a new db names testconn and see if you can connect to that. If it works and disco does not, then quickly check the db mappings from the properties dialog box. If you are mapped and you think that you should be able to see it, then maybe the db is corrupt. A few things to do are, stop and start the server, then refresh the branch and check again. Detach and re-attach the db and see if it helps Start thinking about a restore is that any help? I have seen ghost db's hang around but usually the three-step dance of stop start services, reboot, delete again etc will remove it. HTH Mark On 8 January 2011 05:06, jwcolby wrote: > I went back in with MSE and looked at that server. While I can see the > databases of interest, if I click on them and try to see the tables inside, > I get an error "the database DISCO is not available" and the plus symbol in > front of the database disappears. > > So I can see that the db exists but not actually access it (from my > workstation). > > I can see and open the database from MSE on the server itself. > > Is this an ownership / rights kind of issue? I am not getting an actual > error number from my workstation, just an "not available" generic kind of > message. > > If it is ownership / rights, how do I go about discovering how to fix it? > > -- > John W. Colby > www.ColbyConsulting.com > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From jwcolby at colbyconsulting.com Sat Jan 8 10:49:13 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 08 Jan 2011 11:49:13 -0500 Subject: [dba-VB] Further to "can's see SQL Server database... In-Reply-To: References: <4D27F0C3.2030206@colbyconsulting.com> Message-ID: <4D289589.2020503@colbyconsulting.com> Thanks for the response Mark. The server is called DiscoSvr and is a Windows 2000 x32 server, with 4G ram. It has Office (and Access) 2000 installed. It resides on a network at my client where they have between 40 and 50 workstations on the network, about 25 of which use the Access database. The network consists of two segments physically located in two immediately adjacent wings of a small office building They have a switch in one building and everyone in that building (two floors) ties into that switch, with a single gb line running over to the second wing and into the server room. The second wing has it's own switch and a wire that ties into the same switch as the gb line from the first building, from there into the server. *Probably* none of that is relevant but that is the layout. The client runs about 25 workstations scattered throughout the two wings of the building into DiscoSvr which acts as the file server for the DISCO database. Everyone (including my workstation) is able to get into DISCO running on DiscoSvr so physical access is not the issue, and physical file access rights are not the issue. I have a handful of FEs linked to about 5 different Access BEs. One of these BEs is the one of interest here and has a single tblClaimContact with a memo field to hold details of any kind of contact, mostly phone. The user types into this memo field paragraphs or even pages of details of phone conversations with every single person they have a phone conversation with. This table has just under 800K records and the Access BE that holds this table is about 700Megs after a compact. It is this one table that I am trying to create a SQL Server Express 2005 database for and a table in that database. SQL Server 2008 will not install on a Windows 2000 OS so I installed SQL Server 2005 Express on the system, using the Admin user of DISCO Server. As that Admin user and SSMS Express 2005 I can see the server, and create databases etc. Once I was able to do all of this with the Admin directly on the server I switched to my workstation and started trying from there. I installed SMSS 2005 Express on my workstation and could then see the database. Originally I could not even see the new server. I had to go back to DiscoSvr as an admin, run the surface config wizard and allow remote access using named pipes (not sure if I even need that) and TCP. I did stop and restart the SQLServer Express service, though I did not reboot the server. Back at my workstation I can now see the new server and browse the databases and can see and physically open the admin databases, see the tables etc, all from my workstation. I tried but I was unable to use the Access upsize wizard because it did not want to see the SQL Server 2005 express instance, from Access 2000 running right on DiscoSvr. I assumed that the issue was Access 2000 not understanding SQL Server 2005 or something. Given that the upsize wizard was giving me the ever helpful one word error message, I stopped that avenue. So I went into SSMS Express and I created a database locally basically using the import data tool from inside of sql server, telling it the source was an Access database. It created the table but failed to import the data. Since both of those failed, I then zipped the BE and moved it to my office server where I happened to have SQL Server Express 2005 installed as well as Office (and Access) 2003. Once I did that I was able to use Access 2003 upsize wizard to create a database and a table and upsize the data. I backed up the database, zipped the backup, uploaded that back to DISCOSvr and uses SSMS Express there to restore the database. SSMSE can see the database, can open the table etc. DIRECTLY FROM DiscoSvr as the admin user. Now that I have the table in a SQL Server database I am trying to link the FE to that table using the link table wizard in Access - from my workstation. That wizard can see the SQL Server and it can see the admin databases but it cannot even see the net database(s) that I created using the Admin user directly on DiscoSvr. When I open SSMSE from my workstation, it can see and manipulate the built in Admin databases and it can *see* but cannot even expand the two databases that I manually created on SQL Server. John W. Colby www.ColbyConsulting.com On 1/8/2011 10:34 AM, Mark Breen wrote: > Hello John, > > In this case, I would like to know whether there is a database corruption > issue or a connectivity. > > What about quickly creating a new db names testconn and see if you can > connect to that. > > If it works and disco does not, then quickly check the db mappings from the > properties dialog box. > > If you are mapped and you think that you should be able to see it, then > maybe the db is corrupt. > > A few things to do are, stop and start the server, then refresh the branch > and check again. > > Detach and re-attach the db and see if it helps > > Start thinking about a restore > > is that any help? > > I have seen ghost db's hang around but usually the three-step dance of stop > start services, reboot, delete again etc will remove it. > > HTH > > Mark > > > On 8 January 2011 05:06, jwcolby wrote: > >> I went back in with MSE and looked at that server. While I can see the >> databases of interest, if I click on them and try to see the tables inside, >> I get an error "the database DISCO is not available" and the plus symbol in >> front of the database disappears. >> >> So I can see that the db exists but not actually access it (from my >> workstation). >> >> I can see and open the database from MSE on the server itself. >> >> Is this an ownership / rights kind of issue? I am not getting an actual >> error number from my workstation, just an "not available" generic kind of >> message. >> >> If it is ownership / rights, how do I go about discovering how to fix it? >> >> -- >> 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 Sat Jan 8 16:19:42 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 08 Jan 2011 17:19:42 -0500 Subject: [dba-VB] How can it be Message-ID: <4D28E2FE.1020207@colbyconsulting.com> I have noticed that when I create a VM on my Windows 2008 server with HyperV, the virtual machine's cpu can be pegged in Task Manager Performance, and yet none of the 8 cores even raises an eyebrow in task manager inside of Windows 2008 itself. In Windows 2003 using VMWare, I would see one (or more) of the cores in the server software start chugging when the VMWare VM started working hard. Is it because Hyper V assignes the core outside of Windows itself? IOW Hyper V installs before the Windows software itself does. Is it actually assigning CPU cycles for one or more cores "outside of" Windows. If so is there a utility to see the actual core usage in Hyper V itself? -- John W. Colby www.ColbyConsulting.com From accessd at shaw.ca Sat Jan 8 20:37:46 2011 From: accessd at shaw.ca (Jim Lawrence) Date: Sat, 8 Jan 2011 18:37:46 -0800 Subject: [dba-VB] How can it be In-Reply-To: <4D28E2FE.1020207@colbyconsulting.com> References: <4D28E2FE.1020207@colbyconsulting.com> Message-ID: I am really not sure but a fellow tech said look at the number of copies of svchost.exe processes running... why their process is not reflected in the CPU is another question. Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Saturday, January 08, 2011 2:20 PM To: Access Developers discussion and problem solving; VBA Subject: [dba-VB] How can it be I have noticed that when I create a VM on my Windows 2008 server with HyperV, the virtual machine's cpu can be pegged in Task Manager Performance, and yet none of the 8 cores even raises an eyebrow in task manager inside of Windows 2008 itself. In Windows 2003 using VMWare, I would see one (or more) of the cores in the server software start chugging when the VMWare VM started working hard. Is it because Hyper V assignes the core outside of Windows itself? IOW Hyper V installs before the Windows software itself does. Is it actually assigning CPU cycles for one or more cores "outside of" Windows. If so is there a utility to see the actual core usage in Hyper V itself? -- 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 gustav at cactus.dk Sun Jan 9 08:12:08 2011 From: gustav at cactus.dk (Gustav Brock) Date: Sun, 09 Jan 2011 15:12:08 +0100 Subject: [dba-VB] LINQ Compiled Query Message-ID: Hi all Has anyone tested this technique out: http://www.blog.ingenuitynow.net/15+Minutes+On+LINQ+Compiled+Queries.aspx It looks quite simple to implement. /gustav From shamil at smsconsulting.spb.ru Sun Jan 9 08:20:21 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sun, 9 Jan 2011 17:20:21 +0300 Subject: [dba-VB] LINQ Compiled Query In-Reply-To: References: Message-ID: <28118F262BBF49899D453DE9CCBF3D11@nant> Hi Gustav -- No, I didn't. One of comments says: "I feel this compiled query approach is cumbersome. Image your application has 100 linq queries, you have to create 100 helper classes, and another 100 static functions. I wish Microsoft provides an easily way, maybe some syntax sugar, or some more magics in DataContent, to make programmer life easier. " 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: 9 ?????? 2011 ?. 17:12 To: dba-vb at databaseadvisors.com Subject: [dba-VB] LINQ Compiled Query Hi all Has anyone tested this technique out: http://www.blog.ingenuitynow.net/15+Minutes+On+LINQ+Compiled+Queries.aspx It looks quite simple to implement. /gustav From gustav at cactus.dk Sun Jan 9 09:00:22 2011 From: gustav at cactus.dk (Gustav Brock) Date: Sun, 09 Jan 2011 16:00:22 +0100 Subject: [dba-VB] LINQ Compiled Query Message-ID: Hi Shamil Yes, I noticed that comment and think it is valid. However, if you have a crucial query in, say, a loop it could be worth the efforts. /gustav >>> shamil at smsconsulting.spb.ru 09-01-2011 15:20 >>> Hi Gustav -- No, I didn't. One of comments says: "I feel this compiled query approach is cumbersome. Image your application has 100 linq queries, you have to create 100 helper classes, and another 100 static functions. I wish Microsoft provides an easily way, maybe some syntax sugar, or some more magics in DataContent, to make programmer life easier. " 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: 9 ?????? 2011 ?. 17:12 To: dba-vb at databaseadvisors.com Subject: [dba-VB] LINQ Compiled Query Hi all Has anyone tested this technique out: http://www.blog.ingenuitynow.net/15+Minutes+On+LINQ+Compiled+Queries.aspx It looks quite simple to implement. /gustav From shamil at smsconsulting.spb.ru Sun Jan 9 09:55:07 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sun, 9 Jan 2011 18:55:07 +0300 Subject: [dba-VB] LINQ Compiled Query In-Reply-To: References: Message-ID: Hi Gustav -- <<< However, if you have a crucial query in, say, a loop it could be worth the efforts. >>> Shouldn't LINQ be "smart enough" to not rebuild dynamic queries when that used in a loop? (of course if LINQ expression is not forcibly destroyed (by developer) at the end of every cycle iteration). I'd guess even if they get forcibly destoryed LINQ coudl somehow keep parsed&compiled LINQ expression cached... It's a very smart technology... (nothing new - all the principles used in (P)LINQ are known for years but that's the first time such a technology released to the business applications developers?) 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: 9 ?????? 2011 ?. 18:00 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] LINQ Compiled Query Hi Shamil Yes, I noticed that comment and think it is valid. However, if you have a crucial query in, say, a loop it could be worth the efforts. /gustav >>> shamil at smsconsulting.spb.ru 09-01-2011 15:20 >>> Hi Gustav -- No, I didn't. One of comments says: "I feel this compiled query approach is cumbersome. Image your application has 100 linq queries, you have to create 100 helper classes, and another 100 static functions. I wish Microsoft provides an easily way, maybe some syntax sugar, or some more magics in DataContent, to make programmer life easier. " 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: 9 ?????? 2011 ?. 17:12 To: dba-vb at databaseadvisors.com Subject: [dba-VB] LINQ Compiled Query Hi all Has anyone tested this technique out: http://www.blog.ingenuitynow.net/15+Minutes+On+LINQ+Compiled+Queries.aspx It looks quite simple to implement. /gustav _______________________________________________ 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 Jan 9 11:30:04 2011 From: gustav at cactus.dk (Gustav Brock) Date: Sun, 09 Jan 2011 18:30:04 +0100 Subject: [dba-VB] LINQ Compiled Query Message-ID: Hi Shamil I have no idea - and things may have evolved from 2008 to 2010. Perhaps the only "trick" is to wrap the LINQ query in a static class? But no ... I browsed a little and found this from a year ago: EF 4.0 & compiled queries & performance http://social.msdn.microsoft.com/Forums/en/adonetefx/thread/0c07e1d6-7db6-4348-b106-e576d3153b70 which demonstrates a dramatic speed increase for repeated runs of a compiled query. It also provides this link which seems to explain what is going on: Precompiling LINQ Queries by Julie Lerman http://msdn.microsoft.com/en-gb/magazine/ee336024.aspx /gustav PS: All MSDN Magazines can be browsed from here: http://msdn.microsoft.com/en-gb/magazine/ee310108.aspx >>> shamil at smsconsulting.spb.ru 09-01-2011 16:55 >>> Hi Gustav -- <<< However, if you have a crucial query in, say, a loop it could be worth the efforts. >>> Shouldn't LINQ be "smart enough" to not rebuild dynamic queries when that used in a loop? (of course if LINQ expression is not forcibly destroyed (by developer) at the end of every cycle iteration). I'd guess even if they get forcibly destoryed LINQ coudl somehow keep parsed&compiled LINQ expression cached... It's a very smart technology... (nothing new - all the principles used in (P)LINQ are known for years but that's the first time such a technology released to the business applications developers?) 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: 9 ?????? 2011 ?. 18:00 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] LINQ Compiled Query Hi Shamil Yes, I noticed that comment and think it is valid. However, if you have a crucial query in, say, a loop it could be worth the efforts. /gustav >>> shamil at smsconsulting.spb.ru 09-01-2011 15:20 >>> Hi Gustav -- No, I didn't. One of comments says: "I feel this compiled query approach is cumbersome. Image your application has 100 linq queries, you have to create 100 helper classes, and another 100 static functions. I wish Microsoft provides an easily way, maybe some syntax sugar, or some more magics in DataContent, to make programmer life easier. " 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: 9 ?????? 2011 ?. 17:12 To: dba-vb at databaseadvisors.com Subject: [dba-VB] LINQ Compiled Query Hi all Has anyone tested this technique out: http://www.blog.ingenuitynow.net/15+Minutes+On+LINQ+Compiled+Queries.aspx It looks quite simple to implement. /gustav From shamil at smsconsulting.spb.ru Sun Jan 9 17:08:03 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Mon, 10 Jan 2011 02:08:03 +0300 Subject: [dba-VB] LINQ Compiled Query In-Reply-To: References: Message-ID: Hi Gustav -- <<< Precompiling LINQ Queries by Julie Lerman http://msdn.microsoft.com/en-gb/magazine/ee336024.aspx >>> Yes, that's a very good article, thank you. Is it interesting what will happen when two or more threads (on ASP.NET app/service, WCF service, ....) will try to use the same static compiled LINQ query (with different parameters)? Will the first thread block the others till query execution finishes? (I'm copying here refererred article's code sample) static Func _custByID; public static Customer GetCustomer( int ID) { //test for an existing instance of the compiled query if (_custByID == null) { _custByID = CompiledQuery.Compile ((ctx, id) => ctx.Customers.Where(c => c.CustomerID == id).Single()); } return _custByID.Invoke(_context, ID); } 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: 9 ?????? 2011 ?. 20:30 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] LINQ Compiled Query Hi Shamil I have no idea - and things may have evolved from 2008 to 2010. Perhaps the only "trick" is to wrap the LINQ query in a static class? But no ... I browsed a little and found this from a year ago: EF 4.0 & compiled queries & performance http://social.msdn.microsoft.com/Forums/en/adonetefx/thread/0c07e1d6-7db6-43 48-b106-e576d3153b70 which demonstrates a dramatic speed increase for repeated runs of a compiled query. It also provides this link which seems to explain what is going on: Precompiling LINQ Queries by Julie Lerman http://msdn.microsoft.com/en-gb/magazine/ee336024.aspx /gustav PS: All MSDN Magazines can be browsed from here: http://msdn.microsoft.com/en-gb/magazine/ee310108.aspx >>> shamil at smsconsulting.spb.ru 09-01-2011 16:55 >>> Hi Gustav -- <<< However, if you have a crucial query in, say, a loop it could be worth the efforts. >>> Shouldn't LINQ be "smart enough" to not rebuild dynamic queries when that used in a loop? (of course if LINQ expression is not forcibly destroyed (by developer) at the end of every cycle iteration). I'd guess even if they get forcibly destoryed LINQ coudl somehow keep parsed&compiled LINQ expression cached... It's a very smart technology... (nothing new - all the principles used in (P)LINQ are known for years but that's the first time such a technology released to the business applications developers?) 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: 9 ?????? 2011 ?. 18:00 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] LINQ Compiled Query Hi Shamil Yes, I noticed that comment and think it is valid. However, if you have a crucial query in, say, a loop it could be worth the efforts. /gustav >>> shamil at smsconsulting.spb.ru 09-01-2011 15:20 >>> Hi Gustav -- No, I didn't. One of comments says: "I feel this compiled query approach is cumbersome. Image your application has 100 linq queries, you have to create 100 helper classes, and another 100 static functions. I wish Microsoft provides an easily way, maybe some syntax sugar, or some more magics in DataContent, to make programmer life easier. " 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: 9 ?????? 2011 ?. 17:12 To: dba-vb at databaseadvisors.com Subject: [dba-VB] LINQ Compiled Query Hi all Has anyone tested this technique out: http://www.blog.ingenuitynow.net/15+Minutes+On+LINQ+Compiled+Queries.aspx It looks quite simple to implement. /gustav From Gustav at cactus.dk Mon Jan 10 05:44:57 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 10 Jan 2011 12:44:57 +0100 Subject: [dba-VB] LINQ Compiled Query Message-ID: Hi Shamil Good question, and I don't know, but I would guess that at least each thread will run at the same speed as if the query was not compiled. In fact I have some trouble understanding what really is "complied" using this technique? Perhaps it is only some clever caching behind the scene that is taken place. /gustav >>> shamil at smsconsulting.spb.ru 10-01-2011 00:08 >>> Hi Gustav -- <<< Precompiling LINQ Queries by Julie Lerman http://msdn.microsoft.com/en-gb/magazine/ee336024.aspx >>> Yes, that's a very good article, thank you. Is it interesting what will happen when two or more threads (on ASP.NET app/service, WCF service, ....) will try to use the same static compiled LINQ query (with different parameters)? Will the first thread block the others till query execution finishes? (I'm copying here refererred article's code sample) static Func _custByID; public static Customer GetCustomer( int ID) { //test for an existing instance of the compiled query if (_custByID == null) { _custByID = CompiledQuery.Compile ((ctx, id) => ctx.Customers.Where(c => c.CustomerID == id).Single()); } return _custByID.Invoke(_context, ID); } 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: 9 ?????? 2011 ?. 20:30 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] LINQ Compiled Query Hi Shamil I have no idea - and things may have evolved from 2008 to 2010. Perhaps the only "trick" is to wrap the LINQ query in a static class? But no ... I browsed a little and found this from a year ago: EF 4.0 & compiled queries & performance http://social.msdn.microsoft.com/Forums/en/adonetefx/thread/0c07e1d6-7db6-4348-b106-e576d3153b70 which demonstrates a dramatic speed increase for repeated runs of a compiled query. It also provides this link which seems to explain what is going on: Precompiling LINQ Queries by Julie Lerman http://msdn.microsoft.com/en-gb/magazine/ee336024.aspx /gustav PS: All MSDN Magazines can be browsed from here: http://msdn.microsoft.com/en-gb/magazine/ee310108.aspx >>> shamil at smsconsulting.spb.ru 09-01-2011 16:55 >>> Hi Gustav -- <<< However, if you have a crucial query in, say, a loop it could be worth the efforts. >>> Shouldn't LINQ be "smart enough" to not rebuild dynamic queries when that used in a loop? (of course if LINQ expression is not forcibly destroyed (by developer) at the end of every cycle iteration). I'd guess even if they get forcibly destoryed LINQ coudl somehow keep parsed&compiled LINQ expression cached... It's a very smart technology... (nothing new - all the principles used in (P)LINQ are known for years but that's the first time such a technology released to the business applications developers?) Thank you. -- Shamil From shamil at smsconsulting.spb.ru Tue Jan 11 04:18:42 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Tue, 11 Jan 2011 13:18:42 +0300 Subject: [dba-VB] LINQ Compiled Query In-Reply-To: References: Message-ID: <2E19D8A804ED4FBD88648DD26DAFA32E@nant> Hi Gustav -- I suppose that "compiled" means that query execution plan is built - building query execution plan needs querying EDM (using .NET Reflection) , and that ready to use compiled execution plan is cached. For queries returning a few db records (and that should constitute most of well designed web app queries) saving query compilation time should give significant preformance gains... I will try to test compiled EDM LINQ qeries vs. dynamic ones in the coming days, and I will post the results here... 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: 10 ?????? 2011 ?. 14:45 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] LINQ Compiled Query Hi Shamil Good question, and I don't know, but I would guess that at least each thread will run at the same speed as if the query was not compiled. In fact I have some trouble understanding what really is "complied" using this technique? Perhaps it is only some clever caching behind the scene that is taken place. /gustav >>> shamil at smsconsulting.spb.ru 10-01-2011 00:08 >>> Hi Gustav -- <<< Precompiling LINQ Queries by Julie Lerman http://msdn.microsoft.com/en-gb/magazine/ee336024.aspx >>> Yes, that's a very good article, thank you. Is it interesting what will happen when two or more threads (on ASP.NET app/service, WCF service, ....) will try to use the same static compiled LINQ query (with different parameters)? Will the first thread block the others till query execution finishes? (I'm copying here refererred article's code sample) static Func _custByID; public static Customer GetCustomer( int ID) { //test for an existing instance of the compiled query if (_custByID == null) { _custByID = CompiledQuery.Compile ((ctx, id) => ctx.Customers.Where(c => c.CustomerID == id).Single()); } return _custByID.Invoke(_context, ID); } 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: 9 ?????? 2011 ?. 20:30 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] LINQ Compiled Query Hi Shamil I have no idea - and things may have evolved from 2008 to 2010. Perhaps the only "trick" is to wrap the LINQ query in a static class? But no ... I browsed a little and found this from a year ago: EF 4.0 & compiled queries & performance http://social.msdn.microsoft.com/Forums/en/adonetefx/thread/0c07e1d6-7db6-43 48-b106-e576d3153b70 which demonstrates a dramatic speed increase for repeated runs of a compiled query. It also provides this link which seems to explain what is going on: Precompiling LINQ Queries by Julie Lerman http://msdn.microsoft.com/en-gb/magazine/ee336024.aspx /gustav PS: All MSDN Magazines can be browsed from here: http://msdn.microsoft.com/en-gb/magazine/ee310108.aspx >>> shamil at smsconsulting.spb.ru 09-01-2011 16:55 >>> Hi Gustav -- <<< However, if you have a crucial query in, say, a loop it could be worth the efforts. >>> Shouldn't LINQ be "smart enough" to not rebuild dynamic queries when that used in a loop? (of course if LINQ expression is not forcibly destroyed (by developer) at the end of every cycle iteration). I'd guess even if they get forcibly destoryed LINQ coudl somehow keep parsed&compiled LINQ expression cached... It's a very smart technology... (nothing new - all the principles used in (P)LINQ are known for years but that's the first time such a technology released to the business applications developers?) Thank you. -- Shamil _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue Jan 11 09:58:51 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 11 Jan 2011 10:58:51 -0500 Subject: [dba-VB] C# Databases without borders Message-ID: <4D2C7E3B.3060008@colbyconsulting.com> I want to build a little application where I have a very simple zip code table of about 40 thousand zip codes, with things like household count, population count, lat and long. My application would take lists of zip codes and sum the population and household counts, count the zips etc and put a count on the screen in a table format. I already do this using SQL Server to hold the zip code table. I get the zip lists into csv files, then create a table inside of SQL Server, join on the zip code and sum the population and household counts. Now I want to build an application to do this but SQL Server is way overkill. Can I use a csv or even xml to hold the zip table, create an xml table to hold the zip lists entered by the user and so forth. IOW I need a low impact alternative to SQL Server. Even express is just way overkill for this. Somewhere in the back of my mind I am thinking that ADO.net knows how to load tables, create relationships between tables, enforce the join etc. IOW do the store entirely in XML and just use ADO to do the rest. Is this possible? Would the speed be acceptable for a join between tblZipMaster and tblZipUserXyz on Zip count(zip) sum(household) etc. directly in memory. -- John W. Colby www.ColbyConsulting.com From Gustav at cactus.dk Tue Jan 11 10:42:56 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 11 Jan 2011 17:42:56 +0100 Subject: [dba-VB] C# Databases without borders Message-ID: Hi John First, I don't think SQL Server (Express) is overkill as you - as I understand - have several engines running, so one tiny database more a less wouldn't make noticeable difference. Then, you could for a single user app use the SQL Server Compact (file based as Access/JET) or even an mdb file. Or, you could use the built-in XML storage which is simple and fun. Just remember that it writes _all_ tables of the dataset in one go when you call WriteXml() as shown below - if you attempt to write one table only (which can be done), only this table will be held in the XML file, all other tables will get lost. This we discussed 2009-09-02: For example, read one XML file with one dataset containing several tables: private void InitializeDataSet() { _dataBaseFile = Path.Combine(_execPath, _dataFileName); this.DlDataSet.ReadXml(_dataBaseFile); } Write the (modified) dataset to one XML file: private void SaveData() { this.DlDataSet.WriteXml(_dataBaseFile); } Resulting XML for one table with one record: 0 smtp.webpartner.dk cactus at cactus.dk gustav at cactus.dk /gustav >>> jwcolby at colbyconsulting.com 11-01-2011 16:58 >>> I want to build a little application where I have a very simple zip code table of about 40 thousand zip codes, with things like household count, population count, lat and long. My application would take lists of zip codes and sum the population and household counts, count the zips etc and put a count on the screen in a table format. I already do this using SQL Server to hold the zip code table. I get the zip lists into csv files, then create a table inside of SQL Server, join on the zip code and sum the population and household counts. Now I want to build an application to do this but SQL Server is way overkill. Can I use a csv or even xml to hold the zip table, create an xml table to hold the zip lists entered by the user and so forth. IOW I need a low impact alternative to SQL Server. Even express is just way overkill for this. Somewhere in the back of my mind I am thinking that ADO.net knows how to load tables, create relationships between tables, enforce the join etc. IOW do the store entirely in XML and just use ADO to do the rest. Is this possible? Would the speed be acceptable for a join between tblZipMaster and tblZipUserXyz on Zip count(zip) sum(household) etc. directly in memory. -- John W. Colby www.ColbyConsulting.com From jwcolby at colbyconsulting.com Tue Jan 11 10:37:10 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 11 Jan 2011 11:37:10 -0500 Subject: [dba-VB] C# Databases without borders In-Reply-To: References: Message-ID: <4D2C8736.2050507@colbyconsulting.com> Gustav, This is going to be a C# applet that anyone can install on their system. John W. Colby www.ColbyConsulting.com On 1/11/2011 11:42 AM, Gustav Brock wrote: > Hi John > > First, I don't think SQL Server (Express) is overkill as you - as I understand - have several engines running, so one tiny database more a less wouldn't make noticeable difference. > > Then, you could for a single user app use the SQL Server Compact (file based as Access/JET) or even an mdb file. > Or, you could use the built-in XML storage which is simple and fun. Just remember that it writes _all_ tables of the dataset in one go when you call WriteXml() as shown below - if you attempt to write one table only (which can be done), only this table will be held in the XML file, all other tables will get lost. > > This we discussed 2009-09-02: > > For example, read one XML file with one dataset containing several tables: > > private void InitializeDataSet() > { > _dataBaseFile = Path.Combine(_execPath, _dataFileName); > this.DlDataSet.ReadXml(_dataBaseFile); > } > > Write the (modified) dataset to one XML file: > > private void SaveData() > { > this.DlDataSet.WriteXml(_dataBaseFile); > } > > Resulting XML for one table with one record: > > > > > 0 > smtp.webpartner.dk > > > cactus at cactus.dk > gustav at cactus.dk > > > > /gustav > > > >>>> jwcolby at colbyconsulting.com 11-01-2011 16:58>>> > I want to build a little application where I have a very simple zip code table of about 40 thousand > zip codes, with things like household count, population count, lat and long. My application would > take lists of zip codes and sum the population and household counts, count the zips etc and put a > count on the screen in a table format. > > I already do this using SQL Server to hold the zip code table. I get the zip lists into csv files, > then create a table inside of SQL Server, join on the zip code and sum the population and household > counts. > > Now I want to build an application to do this but SQL Server is way overkill. > > Can I use a csv or even xml to hold the zip table, create an xml table to hold the zip lists entered > by the user and so forth. IOW I need a low impact alternative to SQL Server. Even express is just > way overkill for this. > > Somewhere in the back of my mind I am thinking that ADO.net knows how to load tables, create > relationships between tables, enforce the join etc. IOW do the store entirely in XML and just use > ADO to do the rest. > > Is this possible? Would the speed be acceptable for a join between tblZipMaster and tblZipUserXyz > on Zip count(zip) sum(household) etc. directly in memory. From Gustav at cactus.dk Tue Jan 11 10:57:44 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 11 Jan 2011 17:57:44 +0100 Subject: [dba-VB] C# Databases without borders Message-ID: Hi John Oh, I missed that. That rules out the SQL Server engine and leaves you with the file based options. You can freely include and deploy SQL Server Compact Edition. /gustav >>> jwcolby at colbyconsulting.com 11-01-2011 17:37 >>> Gustav, This is going to be a C# applet that anyone can install on their system. John W. Colby www.ColbyConsulting.com On 1/11/2011 11:42 AM, Gustav Brock wrote: > Hi John > > First, I don't think SQL Server (Express) is overkill as you - as I understand - have several engines running, so one tiny database more a less wouldn't make noticeable difference. > > Then, you could for a single user app use the SQL Server Compact (file based as Access/JET) or even an mdb file. > Or, you could use the built-in XML storage which is simple and fun. Just remember that it writes _all_ tables of the dataset in one go when you call WriteXml() as shown below - if you attempt to write one table only (which can be done), only this table will be held in the XML file, all other tables will get lost. > > This we discussed 2009-09-02: > > For example, read one XML file with one dataset containing several tables: > > private void InitializeDataSet() > { > _dataBaseFile = Path.Combine(_execPath, _dataFileName); > this.DlDataSet.ReadXml(_dataBaseFile); > } > > Write the (modified) dataset to one XML file: > > private void SaveData() > { > this.DlDataSet.WriteXml(_dataBaseFile); > } > > Resulting XML for one table with one record: > > > > > 0 > smtp.webpartner.dk > > > cactus at cactus.dk > gustav at cactus.dk > > > > /gustav > > > >>>> jwcolby at colbyconsulting.com 11-01-2011 16:58>>> > I want to build a little application where I have a very simple zip code table of about 40 thousand > zip codes, with things like household count, population count, lat and long. My application would > take lists of zip codes and sum the population and household counts, count the zips etc and put a > count on the screen in a table format. > > I already do this using SQL Server to hold the zip code table. I get the zip lists into csv files, > then create a table inside of SQL Server, join on the zip code and sum the population and household > counts. > > Now I want to build an application to do this but SQL Server is way overkill. > > Can I use a csv or even xml to hold the zip table, create an xml table to hold the zip lists entered > by the user and so forth. IOW I need a low impact alternative to SQL Server. Even express is just > way overkill for this. > > Somewhere in the back of my mind I am thinking that ADO.net knows how to load tables, create > relationships between tables, enforce the join etc. IOW do the store entirely in XML and just use > ADO to do the rest. > > Is this possible? Would the speed be acceptable for a join between tblZipMaster and tblZipUserXyz > on Zip count(zip) sum(household) etc. directly in memory. From dw-murphy at cox.net Tue Jan 11 10:58:34 2011 From: dw-murphy at cox.net (Doug Murphy) Date: Tue, 11 Jan 2011 08:58:34 -0800 Subject: [dba-VB] C# Databases without borders In-Reply-To: References: Message-ID: Why not an mdb file? ADO.NET works fine. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, January 11, 2011 8:58 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] C# Databases without borders Hi John Oh, I missed that. That rules out the SQL Server engine and leaves you with the file based options. You can freely include and deploy SQL Server Compact Edition. /gustav >>> jwcolby at colbyconsulting.com 11-01-2011 17:37 >>> Gustav, This is going to be a C# applet that anyone can install on their system. John W. Colby www.ColbyConsulting.com On 1/11/2011 11:42 AM, Gustav Brock wrote: > Hi John > > First, I don't think SQL Server (Express) is overkill as you - as I understand - have several engines running, so one tiny database more a less wouldn't make noticeable difference. > > Then, you could for a single user app use the SQL Server Compact (file based as Access/JET) or even an mdb file. > Or, you could use the built-in XML storage which is simple and fun. Just remember that it writes _all_ tables of the dataset in one go when you call WriteXml() as shown below - if you attempt to write one table only (which can be done), only this table will be held in the XML file, all other tables will get lost. > > This we discussed 2009-09-02: > > For example, read one XML file with one dataset containing several tables: > > private void InitializeDataSet() > { > _dataBaseFile = Path.Combine(_execPath, _dataFileName); > this.DlDataSet.ReadXml(_dataBaseFile); > } > > Write the (modified) dataset to one XML file: > > private void SaveData() > { > this.DlDataSet.WriteXml(_dataBaseFile); > } > > Resulting XML for one table with one record: > > xmlns="http://tempuri.org/DataSetDL.xsd"> > > 0 > smtp.webpartner.dk > > > cactus at cactus.dk > gustav at cactus.dk > > > > /gustav > > > >>>> jwcolby at colbyconsulting.com 11-01-2011 16:58>>> > I want to build a little application where I have a very simple zip > code table of about 40 thousand zip codes, with things like household > count, population count, lat and long. My application would take > lists of zip codes and sum the population and household counts, count the zips etc and put a count on the screen in a table format. > > I already do this using SQL Server to hold the zip code table. I get > the zip lists into csv files, then create a table inside of SQL > Server, join on the zip code and sum the population and household counts. > > Now I want to build an application to do this but SQL Server is way overkill. > > Can I use a csv or even xml to hold the zip table, create an xml table > to hold the zip lists entered by the user and so forth. IOW I need a > low impact alternative to SQL Server. Even express is just way overkill for this. > > Somewhere in the back of my mind I am thinking that ADO.net knows how > to load tables, create relationships between tables, enforce the join > etc. IOW do the store entirely in XML and just use ADO to do the rest. > > Is this possible? Would the speed be acceptable for a join between > tblZipMaster and tblZipUserXyz on Zip count(zip) sum(household) etc. directly in memory. _______________________________________________ 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 Tue Jan 11 11:20:46 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 11 Jan 2011 18:20:46 +0100 Subject: [dba-VB] C# Databases without borders Message-ID: Hi Doug Right, except for some potential 64-bit issues? I think the driver issue was solved, but I haven't worked with it myself. And Visual Studio just loooves SQL Server Compact Edition! /gustav >>> dw-murphy at cox.net 11-01-2011 17:58 >>> Why not an mdb file? ADO.NET works fine. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, January 11, 2011 8:58 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] C# Databases without borders Hi John Oh, I missed that. That rules out the SQL Server engine and leaves you with the file based options. You can freely include and deploy SQL Server Compact Edition. /gustav >>> jwcolby at colbyconsulting.com 11-01-2011 17:37 >>> Gustav, This is going to be a C# applet that anyone can install on their system. From Gustav at cactus.dk Tue Jan 11 11:48:05 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 11 Jan 2011 18:48:05 +0100 Subject: [dba-VB] Free ebook: Programming Windows Phone 7, by Charles Petzold Message-ID: Hi all If you are serious about Windows Phone 7, this 1000+ page monster book from Microsoft is only a 13 MB download + 5 MB for code samples: http://blogs.msdn.com/b/microsoft_press/archive/2010/10/28/free-ebook-programming-windows-phone-7-by-charles-petzold.aspx Note this: To use this book properly you'll need to download and install the Windows Phone Developer Tools, which includes Visual Studio 2010 Express for Windows Phone, XNA Game Studio 4.0, and an on-screen Windows Phone Emulator to test your programs in the absence of an actual device. Get the latest information and downloads at http://developer.windowsphone.com. You can install these tools on top of Visual Studio 2010, in effect enhancing Visual Studio 2010 for phone development. That's the configuration I used. Although you can do quite a bit with the phone emulator, at some point you'll want to deploy your programs to an actual Windows Phone 7 device. You can register as a phone developer at http://developer.windowsphone.com and then have the ability to unlock your phone so you can deploy your programs from Visual Studio. /gustav From stuart at lexacorp.com.pg Tue Jan 11 14:12:22 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 12 Jan 2011 06:12:22 +1000 Subject: [dba-VB] C# Databases without borders In-Reply-To: <4D2C7E3B.3060008@colbyconsulting.com> References: <4D2C7E3B.3060008@colbyconsulting.com> Message-ID: <4D2CB9A6.30399.8ADA003@stuart.lexacorp.com.pg> Three ways: Binary array stored in the application as a resource and do that analysis yourself on the array elements. SQLite - http://www.sqlite.org/ Access mdb The first way is probably the optimum, but will require a bit more coding to do the analysus. With only 40,000 rows stored as a collection or array, the in-memory scanning and summation should be near instant ( at least it would be if I did it in Powerbasic ) -- Stuart On 11 Jan 2011 at 10:58, jwcolby wrote: > I want to build a little application where I have a very simple zip > code table of about 40 thousand zip codes, with things like household > count, population count, lat and long. My application would take > lists of zip codes and sum the population and household counts, count > the zips etc and put a count on the screen in a table format. > > I already do this using SQL Server to hold the zip code table. I get > the zip lists into csv files, then create a table inside of SQL > Server, join on the zip code and sum the population and household > counts. > > Now I want to build an application to do this but SQL Server is way > overkill. > > Can I use a csv or even xml to hold the zip table, create an xml table > to hold the zip lists entered by the user and so forth. IOW I need a > low impact alternative to SQL Server. Even express is just way > overkill for this. > > Somewhere in the back of my mind I am thinking that ADO.net knows how > to load tables, create relationships between tables, enforce the join > etc. IOW do the store entirely in XML and just use ADO to do the > rest. > > Is this possible? Would the speed be acceptable for a join between > tblZipMaster and tblZipUserXyz on Zip count(zip) sum(household) etc. > directly in memory. -- 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 dw-murphy at cox.net Tue Jan 11 14:21:38 2011 From: dw-murphy at cox.net (Doug Murphy) Date: Tue, 11 Jan 2011 12:21:38 -0800 Subject: [dba-VB] C# Databases without borders In-Reply-To: References: Message-ID: <396C8A3D6CDA4DEA8E21964189F12919@murphy3234aaf1> Good point about 64 bit. Have no experience installing apps there. Then I'd go with exporting and importing dataset to xml file. That is even more native I think. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, January 11, 2011 9:21 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] C# Databases without borders Hi Doug Right, except for some potential 64-bit issues? I think the driver issue was solved, but I haven't worked with it myself. And Visual Studio just loooves SQL Server Compact Edition! /gustav >>> dw-murphy at cox.net 11-01-2011 17:58 >>> Why not an mdb file? ADO.NET works fine. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, January 11, 2011 8:58 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] C# Databases without borders Hi John Oh, I missed that. That rules out the SQL Server engine and leaves you with the file based options. You can freely include and deploy SQL Server Compact Edition. /gustav >>> jwcolby at colbyconsulting.com 11-01-2011 17:37 >>> Gustav, This is going to be a C# applet that anyone can install on their system. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From davidmcafee at gmail.com Tue Jan 11 14:22:33 2011 From: davidmcafee at gmail.com (David McAfee) Date: Tue, 11 Jan 2011 12:22:33 -0800 Subject: [dba-VB] C# Databases without borders In-Reply-To: <4D2CB9A6.30399.8ADA003@stuart.lexacorp.com.pg> References: <4D2C7E3B.3060008@colbyconsulting.com> <4D2CB9A6.30399.8ADA003@stuart.lexacorp.com.pg> Message-ID: If the app is a single user app, you can also use C# and SQLCE. You can pass the datasets to and from the user via a web service. D On Tue, Jan 11, 2011 at 12:12 PM, Stuart McLachlan wrote: > Three ways: > > Binary array stored in the application as a resource and do that analysis > yourself on the array > elements. > > SQLite - http://www.sqlite.org/ > > Access mdb > > The first way is probably the optimum, but will require a bit more coding > to do the analysus. > > With only 40,000 rows stored as a collection or array, the in-memory > scanning and > summation should be near instant ( at least it would be if I did it in > Powerbasic ) > > -- > Stuart > > > On 11 Jan 2011 at 10:58, jwcolby wrote: > > > I want to build a little application where I have a very simple zip > > code table of about 40 thousand zip codes, with things like household > > count, population count, lat and long. My application would take > > lists of zip codes and sum the population and household counts, count > > the zips etc and put a count on the screen in a table format. > > > > I already do this using SQL Server to hold the zip code table. I get > > the zip lists into csv files, then create a table inside of SQL > > Server, join on the zip code and sum the population and household > > counts. > > > > Now I want to build an application to do this but SQL Server is way > > overkill. > > > > Can I use a csv or even xml to hold the zip table, create an xml table > > to hold the zip lists entered by the user and so forth. IOW I need a > > low impact alternative to SQL Server. Even express is just way > > overkill for this. > > > > Somewhere in the back of my mind I am thinking that ADO.net knows how > > to load tables, create relationships between tables, enforce the join > > etc. IOW do the store entirely in XML and just use ADO to do the > > rest. > > > > Is this possible? Would the speed be acceptable for a join between > > tblZipMaster and tblZipUserXyz on Zip count(zip) sum(household) etc. > > directly in memory. -- 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 shamil at smsconsulting.spb.ru Thu Jan 13 15:47:42 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Fri, 14 Jan 2011 00:47:42 +0300 Subject: [dba-VB] (Free) C#/VB.NET equivalents of Excel.Application.WorksheetFunction.NormSDist(Arg1 As Double) As Double? Message-ID: <7211AB6BCA524E3F8F3664993D3D3F47@nant> Hi All -- Do you know about any (free) equivalents of Exel.Application.WorksheetFunction.NormSDist(Arg1 As Double) As Double ? I have got googled the following link: http://bytes.com/topic/c-sharp/answers/240995-normal-distribution but I'm not sure/have no time now to check will that simple solution be equivalent to the Excel.Application.WorksheetFunction.NormSDist(...)? I have to get developed an independent from MS Excel solution. Thank you. -- Shamil From df.waters at comcast.net Thu Jan 13 16:37:23 2011 From: df.waters at comcast.net (Dan Waters) Date: Thu, 13 Jan 2011 16:37:23 -0600 Subject: [dba-VB] (Free) C#/VB.NET equivalents ofExcel.Application.WorksheetFunction.NormSDist(Arg1 As Double)As Double? In-Reply-To: <7211AB6BCA524E3F8F3664993D3D3F47@nant> References: <7211AB6BCA524E3F8F3664993D3D3F47@nant> Message-ID: Hi Shamil, I was a Quality Engineer in a former life and occasionally had to use this formula. I found this: http://en.wikipedia.org/wiki/Normal_distribution. It looks to me like the equation is similar, but I don't know what Math.Pow is. Good Luck! Dan -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Thursday, January 13, 2011 3:48 PM To: 'Discussion concerning Visual Basic and related programming issues.' Subject: [dba-VB] (Free) C#/VB.NET equivalents ofExcel.Application.WorksheetFunction.NormSDist(Arg1 As Double)As Double? Hi All -- Do you know about any (free) equivalents of Exel.Application.WorksheetFunction.NormSDist(Arg1 As Double) As Double ? I have got googled the following link: http://bytes.com/topic/c-sharp/answers/240995-normal-distribution but I'm not sure/have no time now to check will that simple solution be equivalent to the Excel.Application.WorksheetFunction.NormSDist(...)? I have to get developed an independent from MS Excel solution. Thank you. -- Shamil _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From shamil at smsconsulting.spb.ru Fri Jan 14 07:52:33 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Fri, 14 Jan 2011 16:52:33 +0300 Subject: [dba-VB] (Free) C#/VB.NET equivalentsofExcel.Application.WorksheetFunction.NormSDist(Arg1 AsDouble)As Double? In-Reply-To: References: <7211AB6BCA524E3F8F3664993D3D3F47@nant> Message-ID: <1F66E8F19E01484284E7277621C5BFA2@nant> Thank you, Dan, Math.Pow is a power math operation. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: 14 ?????? 2011 ?. 1:37 To: 'Discussion concerning Visual Basic and related programming issues.' Subject: Re: [dba-VB] (Free) C#/VB.NET equivalentsofExcel.Application.WorksheetFunction.NormSDist(Arg1 AsDouble)As Double? Hi Shamil, I was a Quality Engineer in a former life and occasionally had to use this formula. I found this: http://en.wikipedia.org/wiki/Normal_distribution. It looks to me like the equation is similar, but I don't know what Math.Pow is. Good Luck! Dan -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Thursday, January 13, 2011 3:48 PM To: 'Discussion concerning Visual Basic and related programming issues.' Subject: [dba-VB] (Free) C#/VB.NET equivalents ofExcel.Application.WorksheetFunction.NormSDist(Arg1 As Double)As Double? Hi All -- Do you know about any (free) equivalents of Exel.Application.WorksheetFunction.NormSDist(Arg1 As Double) As Double ? I have got googled the following link: http://bytes.com/topic/c-sharp/answers/240995-normal-distribution but I'm not sure/have no time now to check will that simple solution be equivalent to the Excel.Application.WorksheetFunction.NormSDist(...)? I have to get developed an independent from MS Excel solution. Thank you. -- Shamil _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From shamil at smsconsulting.spb.ru Fri Jan 14 10:51:49 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Fri, 14 Jan 2011 19:51:49 +0300 Subject: [dba-VB] How to specify a relative path to an MS Access db in app.config? Message-ID: <554BE140BB7F41ABA5636DC762C245F7@nant> Hi All -- That should be simple(?) but google somehow doesn't give any useful feedback (or I'm missing it). I wanted to have the following connection string from app.config to use relative path to MS Access db - relative to the folder where app.config (its assembly) will be installed on target system: If I write: Data Source=.\Database\TestData.mdb it works on start-up and when I work with main form, but as soon as I use, e.g., OpenFile fialog, which changes default folder main form's update which is bound do a dataset which uses the above connection string fails to update db as it gets now improper fullpath for db... Isn't there something like Data Source=~\Database\TestData.mdb or Data Source={Application}\Database\TestData.mdb or ... way to specify "stable" relative path to the MS Access db - relative to the app.config's assembly location? I do not want to use DSN... Thank you. -- Shamil From gustav at cactus.dk Fri Jan 14 15:29:02 2011 From: gustav at cactus.dk (Gustav Brock) Date: Fri, 14 Jan 2011 22:29:02 +0100 Subject: [dba-VB] How to specify a relative path to an MS Access db in app.config? Message-ID: Hi Shamil This guy seems to have found a method to specify a relative path as a parameter - which is little different from your connection string: http://www.eggheadcafe.com/community/aspnet/2/10213449/set-relative-path-in-windows-application.aspx However, you later should be able to easily modify your connection string using the SqlConnectionStringBuilder: private SqlConnection ConnectionApplyPassword(string connectionString) { // Apply password to connectionString. SqlConnectionStringBuilder sqlConnectionStringBuilder = new SqlConnectionStringBuilder(); sqlConnectionStringBuilder.ConnectionString = connectionString; sqlConnectionStringBuilder.Password = _connectionDbPassword; return new SqlConnection(sqlConnectionStringBuilder.ToString()); } like this: someDataTableAdapter.Connection = ConnectionApplyPassword(someDataTableAdapter.Connection.ConnectionString); /gustav >>> shamil at smsconsulting.spb.ru 14-01-2011 17:51 >>> Hi All -- That should be simple(?) but google somehow doesn't give any useful feedback (or I'm missing it). I wanted to have the following connection string from app.config to use relative path to MS Access db - relative to the folder where app.config (its assembly) will be installed on target system: If I write: Data Source=.\Database\TestData.mdb it works on start-up and when I work with main form, but as soon as I use, e.g., OpenFile fialog, which changes default folder main form's update which is bound do a dataset which uses the above connection string fails to update db as it gets now improper fullpath for db... Isn't there something like Data Source=~\Database\TestData.mdb or Data Source={Application}\Database\TestData.mdb or ... way to specify "stable" relative path to the MS Access db - relative to the app.config's assembly location? I do not want to use DSN... Thank you. -- Shamil From shamil at smsconsulting.spb.ru Fri Jan 14 16:09:27 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sat, 15 Jan 2011 01:09:27 +0300 Subject: [dba-VB] How to specify a relative path to an MS Access db inapp.config? In-Reply-To: References: Message-ID: <7F371F119A344A17A24F2AF9BF5D540A@nant> Thank you, Gustav, First of all I do use MS Access backend for that my simple application. Yes, I can write a couple of code lines to customize connection creation on runtime but I wanted to avoid doing that additional coding. The following static solution works well I just need to keep watching to have current directory within that application to be always equal to the app.config's assembly directory... 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: 15 ?????? 2011 ?. 0:29 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] How to specify a relative path to an MS Access db inapp.config? Hi Shamil This guy seems to have found a method to specify a relative path as a parameter - which is little different from your connection string: http://www.eggheadcafe.com/community/aspnet/2/10213449/set-relative-path-in- windows-application.aspx However, you later should be able to easily modify your connection string using the SqlConnectionStringBuilder: private SqlConnection ConnectionApplyPassword(string connectionString) { // Apply password to connectionString. SqlConnectionStringBuilder sqlConnectionStringBuilder = new SqlConnectionStringBuilder(); sqlConnectionStringBuilder.ConnectionString = connectionString; sqlConnectionStringBuilder.Password = _connectionDbPassword; return new SqlConnection(sqlConnectionStringBuilder.ToString()); } like this: someDataTableAdapter.Connection = ConnectionApplyPassword(someDataTableAdapter.Connection.ConnectionString); /gustav >>> shamil at smsconsulting.spb.ru 14-01-2011 17:51 >>> Hi All -- That should be simple(?) but google somehow doesn't give any useful feedback (or I'm missing it). I wanted to have the following connection string from app.config to use relative path to MS Access db - relative to the folder where app.config (its assembly) will be installed on target system: If I write: Data Source=.\Database\TestData.mdb it works on start-up and when I work with main form, but as soon as I use, e.g., OpenFile fialog, which changes default folder main form's update which is bound do a dataset which uses the above connection string fails to update db as it gets now improper fullpath for db... Isn't there something like Data Source=~\Database\TestData.mdb or Data Source={Application}\Database\TestData.mdb or ... way to specify "stable" relative path to the MS Access db - relative to the app.config's assembly location? I do not want to use DSN... Thank you. -- Shamil _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Sat Jan 15 17:37:00 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 15 Jan 2011 18:37:00 -0500 Subject: [dba-VB] SQL Server over Hamachi: First test not hopeful Message-ID: <4D322F9C.8090405@colbyconsulting.com> I developed a SQL Server database, with perhaps 10-15 tables, populated a few with just a handful of records, created an Access database and built a few forms. My strategy is to do Access because I can do it quickly, but link it to SQL Server, the run the FE on a remote computer over Hamachi. Tonight I went to a local Arby's to test the speed of the system. The local Arby's has an open wifi, which using Speedtest.net tested 5 mbit down, 1 mbit up - typical low end cable in my area. So I tried to use the system and... well... it took an extremely long time to connect, if it connected at all. Access mostly timed out trying to log on. SQL Server Management System would log on sometimes. Sometimes not. Trying to hit it at the actual Hamachi IP address worked but took awhile. 15 - 30 seconds to connect (I did not time it). To be honest I am puzzled. Google finds plenty of folks trying this, some succeeding, most pretty slow. Remote desktop is plenty fast. From inside of my office, out across the internet via Hamachi I have done things like file transfers etc (in the past). Remote desktop has always been very speedy, but there isn't much needed for RD. I had really expected faster connections / operation. I really expected SSMS to just work, pretty much at speed. It didn't. Sigh, back to the drawing boards. -- John W. Colby www.ColbyConsulting.com From marklbreen at gmail.com Sun Jan 16 04:39:00 2011 From: marklbreen at gmail.com (Mark Breen) Date: Sun, 16 Jan 2011 10:39:00 +0000 Subject: [dba-VB] SQL Server over Hamachi: First test not hopeful In-Reply-To: <4D322F9C.8090405@colbyconsulting.com> References: <4D322F9C.8090405@colbyconsulting.com> Message-ID: Hello John, I am using Hamachi - since you mentioned it here a few years ago - and Access and SQL server since Jan 2008 and it works the same as a VLan over Cisco hardware. No performance difference between Hamachi and CISCO, Thanks for the info on Hamachi in 2007/8 BTW :) HTH Mark On 15 January 2011 23:37, jwcolby wrote: > I developed a SQL Server database, with perhaps 10-15 tables, populated a > few with just a handful of records, created an Access database and built a > few forms. My strategy is to do Access because I can do it quickly, but > link it to SQL Server, the run the FE on a remote computer over Hamachi. > > Tonight I went to a local Arby's to test the speed of the system. The > local Arby's has an open wifi, which using Speedtest.net tested 5 mbit down, > 1 mbit up - typical low end cable in my area. > > So I tried to use the system and... well... it took an extremely long time > to connect, if it connected at all. Access mostly timed out trying to log > on. SQL Server Management System would log on sometimes. Sometimes not. > Trying to hit it at the actual Hamachi IP address worked but took awhile. > 15 - 30 seconds to connect (I did not time it). > > To be honest I am puzzled. Google finds plenty of folks trying this, some > succeeding, most pretty slow. Remote desktop is plenty fast. > > From inside of my office, out across the internet via Hamachi I have done > things like file transfers etc (in the past). Remote desktop has always > been very speedy, but there isn't much needed for RD. > > I had really expected faster connections / operation. I really expected > SSMS to just work, pretty much at speed. It didn't. > > Sigh, back to the drawing boards. > -- > John W. Colby > www.ColbyConsulting.com > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From jwcolby at colbyconsulting.com Sun Jan 16 07:40:56 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sun, 16 Jan 2011 08:40:56 -0500 Subject: [dba-VB] SQL Server over Hamachi: First test not hopeful In-Reply-To: References: <4D322F9C.8090405@colbyconsulting.com> Message-ID: <4D32F568.6050406@colbyconsulting.com> Are you running this over the internet I assume - over Hamachi wold imply that. What are your connection speeds at either end using speedtest.net? John W. Colby www.ColbyConsulting.com On 1/16/2011 5:39 AM, Mark Breen wrote: > Hello John, > > I am using Hamachi - since you mentioned it here a few years ago - and > Access and SQL server since Jan 2008 and it works the same as a VLan over > Cisco hardware. No performance difference between Hamachi and CISCO, > > Thanks for the info on Hamachi in 2007/8 BTW :) > > HTH > > Mark > > On 15 January 2011 23:37, jwcolby wrote: > >> I developed a SQL Server database, with perhaps 10-15 tables, populated a >> few with just a handful of records, created an Access database and built a >> few forms. My strategy is to do Access because I can do it quickly, but >> link it to SQL Server, the run the FE on a remote computer over Hamachi. >> >> Tonight I went to a local Arby's to test the speed of the system. The >> local Arby's has an open wifi, which using Speedtest.net tested 5 mbit down, >> 1 mbit up - typical low end cable in my area. >> >> So I tried to use the system and... well... it took an extremely long time >> to connect, if it connected at all. Access mostly timed out trying to log >> on. SQL Server Management System would log on sometimes. Sometimes not. >> Trying to hit it at the actual Hamachi IP address worked but took awhile. >> 15 - 30 seconds to connect (I did not time it). >> >> To be honest I am puzzled. Google finds plenty of folks trying this, some >> succeeding, most pretty slow. Remote desktop is plenty fast. >> >> From inside of my office, out across the internet via Hamachi I have done >> things like file transfers etc (in the past). Remote desktop has always >> been very speedy, but there isn't much needed for RD. >> >> I had really expected faster connections / operation. I really expected >> SSMS to just work, pretty much at speed. It didn't. >> >> Sigh, back to the drawing boards. >> -- >> 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 Sun Jan 16 21:21:26 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sun, 16 Jan 2011 22:21:26 -0500 Subject: [dba-VB] Access to SQL Server over Hamachi - it WORKS Message-ID: <4D33B5B6.1050102@colbyconsulting.com> Today I stepped back and set it all up internal to my network. Yesterday I had moved the Fe to my laptop. Today I deleted all of my linked tables, then I relinked all of the tables. In doing so I created a new DSN where I hit the SQL Server directly at the Hamachi IP address. Relinked using this new DSN and voila, she's a wurkin, and lightning fast over my internal network but forcing the traffic through Hamachi. So I tested a bit, then went back out to the local Arby's where I was pretty much unable to do anything last night (other than browse the internet). Got right on the connection, opened the Access FE and voila, she's a wurkin, and lightning fast. You wouldn't know you weren't directly on my LAN. Access on my laptop over Hamachi, over a public network, in to my network, directly into a Virtual Machine over Hamachi, running SQL Server 2008 Express. I am so jazzed! that leaves me with one technical barrier now, getting an Access 2007 run-time to host an Access 2003 FE. Now I need to set up a VM to run on my laptop so that I can have an environment without Office installed. Install the Access 2007 run-time and drop the Access 2003 Fe in place. Set up Hamachi on that VM and then get it all playing nice. This will allow me to take my laptop on the road to demo the system. We shall see. And yes Jim, I understand I still need to cause SQL Server to do the heavy lifting. To this point I have never really used SQL Server as the BE for Access. My biggest client uses Access 2K and it doesn't really play nice with ADO. Since I can now develop these new databases in 2003, I can do things like bind the form to an ADO recordset and still have it read/write. I will need to learn how to use a stored procedure were I can pass in a PK and have the SP return a table of data already selected and sorted. I.e. SQL Server doing the lifting. The nice thing is that these are small databases so I can do things like leave the list tables just linked, at least for awhile while I learn all the stuff I have never had to do. Next up, 2007 run-time. -- John W. Colby www.ColbyConsulting.com From jwcolby at colbyconsulting.com Sun Jan 16 21:51:01 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sun, 16 Jan 2011 22:51:01 -0500 Subject: [dba-VB] SQL Server over Hamachi: First test not hopeful In-Reply-To: References: <4D322F9C.8090405@colbyconsulting.com> Message-ID: <4D33BCA5.3020906@colbyconsulting.com> Mark, I got it working today! 8) John W. Colby www.ColbyConsulting.com On 1/16/2011 5:39 AM, Mark Breen wrote: > Hello John, > > I am using Hamachi - since you mentioned it here a few years ago - and > Access and SQL server since Jan 2008 and it works the same as a VLan over > Cisco hardware. No performance difference between Hamachi and CISCO, > > Thanks for the info on Hamachi in 2007/8 BTW :) > > HTH > > Mark From marklbreen at gmail.com Mon Jan 17 04:38:19 2011 From: marklbreen at gmail.com (Mark Breen) Date: Mon, 17 Jan 2011 10:38:19 +0000 Subject: [dba-VB] SQL Server over Hamachi: First test not hopeful In-Reply-To: <4D33BCA5.3020906@colbyconsulting.com> References: <4D322F9C.8090405@colbyconsulting.com> <4D33BCA5.3020906@colbyconsulting.com> Message-ID: Hi John, I saw your other post, congrats, I guess you do feel jazzed. I tried speedtest.net and it told me I had 5 MB and .5 down and up. What I was curious about was that what you wanted me to check. Was there another check you wanted me to do? thanks Mark On 17 January 2011 03:51, jwcolby wrote: > Mark, > > I got it working today! 8) > > > John W. Colby > www.ColbyConsulting.com > > On 1/16/2011 5:39 AM, Mark Breen wrote: > >> Hello John, >> >> I am using Hamachi - since you mentioned it here a few years ago - and >> Access and SQL server since Jan 2008 and it works the same as a VLan over >> Cisco hardware. No performance difference between Hamachi and CISCO, >> >> Thanks for the info on Hamachi in 2007/8 BTW :) >> >> HTH >> >> Mark >> > _______________________________________________ > 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 Mon Jan 17 06:54:22 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Mon, 17 Jan 2011 15:54:22 +0300 Subject: [dba-VB] .NET 4.0 + MS ReportViewer 10.0 + MS Access backend sample: Re: Ded Moroz sends you links on sample projects... :) Message-ID: Hi All, FYI: I have temporarily put subject sample running here: http://shamils-19.hosting.parking.ru/nw4/Default.aspx It's from this release http://shamils-19.hosting.parking.ru/nw4/Default.aspx (http://northwind.codeplex.com/releases/view/26600#DownloadId=192044) announced here on New 2011 Year Eve. That release has got 150+ downloads by now but almost zero feedback. Any feedback is welcome. Thank you. -- Shamil -----Original Message----- From: Shamil Salakhetdinov [mailto:shamil at smsconsulting.spb.ru] Sent: 31 ??????? 2010 ?. 15:14 To: 'Discussion concerning Visual Basic and related programming issues.'; 'Access Developers discussion and problem solving' Subject: Ded Moroz sends you links on sample projects... :) Hi All -- New Year Eve is approaching here, and I wanted to send you some gifts from Ded Moroz - here they are: This is a set of projects I have got developed a few days ago during 40+ hours R&D coding marathon. The task was to finish all the work in about 40 hours. So a few bugs left in there as release deadline wasn't possible to move. They (the bugs) are described in readme. But in general all the sample apps work rather well as my tests here show. I'd be interested to hear any comments - in what direction that sample should be better developed. Please write them here, or on http://northwind.codeplex.com . Please do not "judge severely" as as I noted that was very intensive R&D work with little time to think through while coding :) But feel free to comment it as you like. *Do not try* to be politcorrect. Please. I wish all of your Very Happy and Prosperous New Year! Thank you. -- Shamil P.S. Short description of published projects (the sources get downloaded 19 times already and I have got informed privately a couple of days ago just three people): NorthwindNET_4_0_Sources.zip (~24MB) http://northwind.codeplex.com/releases/view/26600#DownloadId=192044 NorthwindNET_4_0_SampleApps_Setup.zip (~5MB) http://northwind.codeplex.com/releases/view/26600#DownloadId=192043 Northwind.NET.VS2010.sln ======================== 1. Northwind.NET.EDM.FE - WinForms Front-End (just start-up class and app.config); 2. Northwind.NET.EDM.WinForms.Controls - UI UserControls; 3. Northwind.NET.EDM.Reports - MS ReportViewer 10.0 Reports; 4. Northwind.NET.BLL - Business Layer Library (ADO.NET EDM LINQ Reports' data sources); 5. Northwind.NET.Model - ADO.NET EDM; 6. Northwind.NET.Settings - application settings (wrappers); 7. Northwind.NET.Resources - application resource file; 8. Northwind.NET.Utilities - utility class library; 9. Northwind.NET.Testing.Console - some test functions - it's not true TDD - just a rough approximation; Northwind.NET.MSAccess.sln ========================== I. WinForms FE with MS Access backend Northwind.NET.FE.1.1 - Northwind.NET FE with MS Access backend Northwind.NET.Utilities - Utilities project II. ASP.NET sample application with MS Access backend E:/Projects/SMS/Northwind/Northwind.ASP.NET.MSAccess.Reporting/ - ASP.NET project III. Just a test ASP.NET app - can be removed E:\Projects\SMS\Northwind\Northwind.ASP.NET.MSAccess.Reporting.RDLC.10.0.0.0 Northwind.NET.zzz_OLD.sln ========================= 1. Northwind.NET.FE - WinForms Front-End with MS SQL backend using "plain old" ADO.NET data sets - the project we did last year's April. 2. All the other projects from as in Northwind.NET.VS2010.sln ----------- From jwcolby at colbyconsulting.com Mon Jan 17 07:30:46 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 17 Jan 2011 08:30:46 -0500 Subject: [dba-VB] SQL Server over Hamachi: First test not hopeful In-Reply-To: References: <4D322F9C.8090405@colbyconsulting.com> <4D33BCA5.3020906@colbyconsulting.com> Message-ID: <4D344486.1030307@colbyconsulting.com> Thanks for the reply Mark. Are you doing completely unbound forms? Mixed? All bound forms? Systems that don't really use data entry forms? This is my first foray into Access to SQL over Hamachi so I am just looking for someone with previous experience to tell us about it. As Jim pointed out, I do only have a few minutes of working from a public wifi back into my office but the second test was flawless, and literally so fast you would not know you weren't directly on my network. John W. Colby www.ColbyConsulting.com On 1/17/2011 5:38 AM, Mark Breen wrote: > Hi John, > > I saw your other post, congrats, I guess you do feel jazzed. > > I tried speedtest.net and it told me I had 5 MB and .5 down and up. > > What I was curious about was that what you wanted me to check. Was there > another check you wanted me to do? > > thanks > > Mark From shamil at smsconsulting.spb.ru Wed Jan 19 00:53:51 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Wed, 19 Jan 2011 09:53:51 +0300 Subject: [dba-VB] FYI: Agile: Mik Kersten - I think we are ready for another revolt... Message-ID: Hi All, FYI: http://www.infoq.com/interviews/kersten-tasktop Summary: "Mik Kersten discusses the role of Mylyn and Tasktop in Agile development and how these tools return control to developers. Also: how Mylyn streamlines development in Eclipse. ... The Agile movement, or the Agile community kind of was founded by programmers, and again going back the XP in specific, who were just tired of being treated the low end of the management chain. So as the programmers revolt and a lot of people have thought that the Agile community has been taken over by Scrum and by management and they are dumping on programmers just as much as before and it got to the point that the software craftsmanship movement was again the programmers revolting. I think we are ready for another revolt. That is a really interesting observation." Thank you. -- Shamil From jwcolby at colbyconsulting.com Thu Jan 20 11:52:25 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 20 Jan 2011 12:52:25 -0500 Subject: [dba-VB] C# Grid: effectively and efficiently handle dirty Message-ID: <4D387659.5010005@colbyconsulting.com> I am doing C# forms, bound to SQL Server. I dragged and dropped the table out onto the form and C# "installed" the grid as well as a record navigation toolbar. Now I am trying to make sure that data is saved. I have discovered for example that if you edit something and just close the form... no save. Basically no save unless the save button is pressed. Being the anal guy I am, this ain't good enough. I don't want to save after every cell edit, but I do want to save after every row edit or when the form closes. Even this is non-trivial. After browsing the internet and seeing what others are doing (lots of pain expressed), my strategy is to have a RowDirty set by the CellContentsModified but to be honest, things just aren't working as expected. The row leave isn't fired if I sink the CellModified (or something). All I can see for sure is that, while one would expect the row leave to fire if a row is left (makes sense to me) that isn't true and so now I am left with trying to figure out what zany rules exist. So here I am, hat in hand, asking the list "how do you do this"? -- John W. Colby www.ColbyConsulting.com From shamil at smsconsulting.spb.ru Thu Jan 20 14:01:51 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Thu, 20 Jan 2011 23:01:51 +0300 Subject: [dba-VB] C# Grid: effectively and efficiently handle dirty In-Reply-To: <4D387659.5010005@colbyconsulting.com> References: <4D387659.5010005@colbyconsulting.com> Message-ID: <4C68C4DCE29E417AA4B54C60AB4E4316@nant> Hi John -- So you use VS2008 (at least) and you have a "datasheet form" - a bound DataGridView with BindingNavigator bound to ADO.NET dataset etc.? If yes - BindingNavigator has CurrentChanged event, which if fired as soon as you move to the other grid's row. When form is closing FormClosing event is fired: private void shipperBindingSource_CurrentChanged(object sender, EventArgs e) { saveEdits(); } private void saveEdits() { this.Validate(); this.shipperBindingSource.EndEdit(); this.tableAdapterManager.UpdateAll(this.northwindNETDataSet1); } private void Form2_FormClosing(object sender, FormClosingEventArgs e) { DataRowView row = shipperBindingSource.Current as DataRowView; if (row.Row.RowState == DataRowState.Modified) saveEdits(); } Thank you. -- Shamil P.S. I must note I rarely work with bound forms and ADO.NET datasets - just my preference but they should be OK in your context of small "quick&dirty" (first version) apps... -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: 20 ?????? 2011 ?. 20:52 To: VBA Subject: [dba-VB] C# Grid: effectively and efficiently handle dirty I am doing C# forms, bound to SQL Server. I dragged and dropped the table out onto the form and C# "installed" the grid as well as a record navigation toolbar. Now I am trying to make sure that data is saved. I have discovered for example that if you edit something and just close the form... no save. Basically no save unless the save button is pressed. Being the anal guy I am, this ain't good enough. I don't want to save after every cell edit, but I do want to save after every row edit or when the form closes. Even this is non-trivial. After browsing the internet and seeing what others are doing (lots of pain expressed), my strategy is to have a RowDirty set by the CellContentsModified but to be honest, things just aren't working as expected. The row leave isn't fired if I sink the CellModified (or something). All I can see for sure is that, while one would expect the row leave to fire if a row is left (makes sense to me) that isn't true and so now I am left with trying to figure out what zany rules exist. So here I am, hat in hand, asking the list "how do you do this"? -- John W. Colby www.ColbyConsulting.com From jwcolby at colbyconsulting.com Thu Jan 20 14:27:14 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 20 Jan 2011 15:27:14 -0500 Subject: [dba-VB] C# Grid: effectively and efficiently handle dirty In-Reply-To: <4C68C4DCE29E417AA4B54C60AB4E4316@nant> References: <4D387659.5010005@colbyconsulting.com> <4C68C4DCE29E417AA4B54C60AB4E4316@nant> Message-ID: <4D389AA2.6050408@colbyconsulting.com> So this saveEdits doesn't do anything if there is no change, but if there is an add, delete or edit then it will correctly store? Works for me. I'll be a testing. Thanks, John W. Colby www.ColbyConsulting.com On 1/20/2011 3:01 PM, Shamil Salakhetdinov wrote: > Hi John -- > > So you use VS2008 (at least) and you have a "datasheet form" - a bound > DataGridView with BindingNavigator bound to ADO.NET dataset etc.? > If yes - BindingNavigator has CurrentChanged event, which if fired as soon > as you move to the other grid's row. > When form is closing FormClosing event is fired: > > private void shipperBindingSource_CurrentChanged(object sender, EventArgs e) > { > saveEdits(); > } > > private void saveEdits() > { > this.Validate(); > this.shipperBindingSource.EndEdit(); > this.tableAdapterManager.UpdateAll(this.northwindNETDataSet1); > } > > private void Form2_FormClosing(object sender, FormClosingEventArgs e) > { > DataRowView row = shipperBindingSource.Current as DataRowView; > if (row.Row.RowState == DataRowState.Modified) saveEdits(); > } > > Thank you. > > -- > Shamil > > P.S. I must note I rarely work with bound forms and ADO.NET datasets - just > my preference but they should be OK in your context of small "quick&dirty" > (first version) apps... > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: 20 ?????? 2011 ?. 20:52 > To: VBA > Subject: [dba-VB] C# Grid: effectively and efficiently handle dirty > > I am doing C# forms, bound to SQL Server. I dragged and dropped the table > out onto the form and C# "installed" the grid as well as a record navigation > toolbar. > > Now I am trying to make sure that data is saved. I have discovered for > example that if you edit something and just close the form... no save. > Basically no save unless the save button is pressed. > > Being the anal guy I am, this ain't good enough. I don't want to save after > every cell edit, but I do want to save after every row edit or when the form > closes. Even this is non-trivial. > > After browsing the internet and seeing what others are doing (lots of pain > expressed), my strategy is to have a RowDirty set by the > CellContentsModified but to be honest, things just aren't working as > expected. The row leave isn't fired if I sink the CellModified (or > something). All I can see for sure is that, while one would expect the row > leave to fire if a row is left (makes sense to me) that isn't true and so > now I am left with trying to figure out what zany rules exist. > > So here I am, hat in hand, asking the list "how do you do this"? > > -- > John W. Colby > www.ColbyConsulting.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From jwcolby at colbyconsulting.com Thu Jan 20 14:29:25 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 20 Jan 2011 15:29:25 -0500 Subject: [dba-VB] C# Grid: effectively and efficiently handle dirty In-Reply-To: <4C68C4DCE29E417AA4B54C60AB4E4316@nant> References: <4D387659.5010005@colbyconsulting.com> <4C68C4DCE29E417AA4B54C60AB4E4316@nant> Message-ID: <4D389B25.4070906@colbyconsulting.com> What does virtual mode do for me? John W. Colby www.ColbyConsulting.com On 1/20/2011 3:01 PM, Shamil Salakhetdinov wrote: > Hi John -- > > So you use VS2008 (at least) and you have a "datasheet form" - a bound > DataGridView with BindingNavigator bound to ADO.NET dataset etc.? > If yes - BindingNavigator has CurrentChanged event, which if fired as soon > as you move to the other grid's row. > When form is closing FormClosing event is fired: > > private void shipperBindingSource_CurrentChanged(object sender, EventArgs e) > { > saveEdits(); > } > > private void saveEdits() > { > this.Validate(); > this.shipperBindingSource.EndEdit(); > this.tableAdapterManager.UpdateAll(this.northwindNETDataSet1); > } > > private void Form2_FormClosing(object sender, FormClosingEventArgs e) > { > DataRowView row = shipperBindingSource.Current as DataRowView; > if (row.Row.RowState == DataRowState.Modified) saveEdits(); > } > > Thank you. > > -- > Shamil > > P.S. I must note I rarely work with bound forms and ADO.NET datasets - just > my preference but they should be OK in your context of small "quick&dirty" > (first version) apps... > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: 20 ?????? 2011 ?. 20:52 > To: VBA > Subject: [dba-VB] C# Grid: effectively and efficiently handle dirty > > I am doing C# forms, bound to SQL Server. I dragged and dropped the table > out onto the form and C# "installed" the grid as well as a record navigation > toolbar. > > Now I am trying to make sure that data is saved. I have discovered for > example that if you edit something and just close the form... no save. > Basically no save unless the save button is pressed. > > Being the anal guy I am, this ain't good enough. I don't want to save after > every cell edit, but I do want to save after every row edit or when the form > closes. Even this is non-trivial. > > After browsing the internet and seeing what others are doing (lots of pain > expressed), my strategy is to have a RowDirty set by the > CellContentsModified but to be honest, things just aren't working as > expected. The row leave isn't fired if I sink the CellModified (or > something). All I can see for sure is that, while one would expect the row > leave to fire if a row is left (makes sense to me) that isn't true and so > now I am left with trying to figure out what zany rules exist. > > So here I am, hat in hand, asking the list "how do you do this"? > > -- > John W. Colby > www.ColbyConsulting.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From jwcolby at colbyconsulting.com Thu Jan 20 14:38:58 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 20 Jan 2011 15:38:58 -0500 Subject: [dba-VB] C# Grid: effectively and efficiently handle dirty In-Reply-To: <4C68C4DCE29E417AA4B54C60AB4E4316@nant> References: <4D387659.5010005@colbyconsulting.com> <4C68C4DCE29E417AA4B54C60AB4E4316@nant> Message-ID: <4D389D62.2090704@colbyconsulting.com> Interesting (and sticky) the form closing does not fire if the main application is closed. I added a saveEdits in the formclosing event (as you indicate) which works if the user clicks the check box in the form that the edit is happening in. IOW edit something then instead of moving to another line, they just close the form. In that case the closing event fires. However that closing event does not fire if the user closes the entire application. Is there a form lostfocus? John W. Colby www.ColbyConsulting.com On 1/20/2011 3:01 PM, Shamil Salakhetdinov wrote: > Hi John -- > > So you use VS2008 (at least) and you have a "datasheet form" - a bound > DataGridView with BindingNavigator bound to ADO.NET dataset etc.? > If yes - BindingNavigator has CurrentChanged event, which if fired as soon > as you move to the other grid's row. > When form is closing FormClosing event is fired: > > private void shipperBindingSource_CurrentChanged(object sender, EventArgs e) > { > saveEdits(); > } > > private void saveEdits() > { > this.Validate(); > this.shipperBindingSource.EndEdit(); > this.tableAdapterManager.UpdateAll(this.northwindNETDataSet1); > } > > private void Form2_FormClosing(object sender, FormClosingEventArgs e) > { > DataRowView row = shipperBindingSource.Current as DataRowView; > if (row.Row.RowState == DataRowState.Modified) saveEdits(); > } > > Thank you. > > -- > Shamil > > P.S. I must note I rarely work with bound forms and ADO.NET datasets - just > my preference but they should be OK in your context of small "quick&dirty" > (first version) apps... > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: 20 ?????? 2011 ?. 20:52 > To: VBA > Subject: [dba-VB] C# Grid: effectively and efficiently handle dirty > > I am doing C# forms, bound to SQL Server. I dragged and dropped the table > out onto the form and C# "installed" the grid as well as a record navigation > toolbar. > > Now I am trying to make sure that data is saved. I have discovered for > example that if you edit something and just close the form... no save. > Basically no save unless the save button is pressed. > > Being the anal guy I am, this ain't good enough. I don't want to save after > every cell edit, but I do want to save after every row edit or when the form > closes. Even this is non-trivial. > > After browsing the internet and seeing what others are doing (lots of pain > expressed), my strategy is to have a RowDirty set by the > CellContentsModified but to be honest, things just aren't working as > expected. The row leave isn't fired if I sink the CellModified (or > something). All I can see for sure is that, while one would expect the row > leave to fire if a row is left (makes sense to me) that isn't true and so > now I am left with trying to figure out what zany rules exist. > > So here I am, hat in hand, asking the list "how do you do this"? > > -- > 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 shamil at smsconsulting.spb.ru Thu Jan 20 15:24:45 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Fri, 21 Jan 2011 00:24:45 +0300 Subject: [dba-VB] C# Grid: effectively and efficiently handle dirty In-Reply-To: <4D389D62.2090704@colbyconsulting.com> References: <4D387659.5010005@colbyconsulting.com><4C68C4DCE29E417AA4B54C60AB4E4316@nant> <4D389D62.2090704@colbyconsulting.com> Message-ID: <1609C9C0463040199A65681DE2B7F675@nant> Hi John, There is a Deactivate event for Form object. Actually a System.Windows.Forms.Form has "more event types one can imagine" - at least many of them are so weird for me - I have never used probably 95% of .NET WinForms and controls events... :) Try to KISS it now John. At least on first pass. What you have to do now is to create the main "meat" part of your app - all forms. You'd better generalize/make all the tricks later - it's so easy to make (if needed) a generic form class inheriting from System.Windows.Forms.Form class etc. and then use that class for all the relevant custom forms... And you can't do it right this first time - it's more important to "get your hands wet" with that stuff - the more you'll do mechanically now - the better (IMO) - the easier and the quicker you'll get all that stuff refactored later... But as you're a seasoned professional with DB modeliing etc. - try to make that part 99% right now.. - that will help a lot on the subsequent refactoring steps... <<< > After browsing the internet and seeing what others are doing (lots of pain expressed), >>> That are beginners very probably - there shouldn't be that much pain when doing .NET System.Windows.Forms development. But when one is a beginner with WinForms - everything looks so complicated because of the volume of information to get through, and because of the project deadline stress... Thank you. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: 20 ?????? 2011 ?. 23:39 To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] C# Grid: effectively and efficiently handle dirty Interesting (and sticky) the form closing does not fire if the main application is closed. I added a saveEdits in the formclosing event (as you indicate) which works if the user clicks the check box in the form that the edit is happening in. IOW edit something then instead of moving to another line, they just close the form. In that case the closing event fires. However that closing event does not fire if the user closes the entire application. Is there a form lostfocus? John W. Colby www.ColbyConsulting.com On 1/20/2011 3:01 PM, Shamil Salakhetdinov wrote: > Hi John -- > > So you use VS2008 (at least) and you have a "datasheet form" - a bound > DataGridView with BindingNavigator bound to ADO.NET dataset etc.? > If yes - BindingNavigator has CurrentChanged event, which if fired as > soon as you move to the other grid's row. > When form is closing FormClosing event is fired: > > private void shipperBindingSource_CurrentChanged(object sender, > EventArgs e) { > saveEdits(); > } > > private void saveEdits() > { > this.Validate(); > this.shipperBindingSource.EndEdit(); > this.tableAdapterManager.UpdateAll(this.northwindNETDataSet1); > } > > private void Form2_FormClosing(object sender, FormClosingEventArgs e) > { > DataRowView row = shipperBindingSource.Current as DataRowView; > if (row.Row.RowState == DataRowState.Modified) saveEdits(); } > > Thank you. > > -- > Shamil > > P.S. I must note I rarely work with bound forms and ADO.NET datasets - > just my preference but they should be OK in your context of small "quick&dirty" > (first version) apps... > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: 20 ?????? 2011 ?. 20:52 > To: VBA > Subject: [dba-VB] C# Grid: effectively and efficiently handle dirty > > I am doing C# forms, bound to SQL Server. I dragged and dropped the > table out onto the form and C# "installed" the grid as well as a > record navigation toolbar. > > Now I am trying to make sure that data is saved. I have discovered > for example that if you edit something and just close the form... no save. > Basically no save unless the save button is pressed. > > Being the anal guy I am, this ain't good enough. I don't want to save > after every cell edit, but I do want to save after every row edit or > when the form closes. Even this is non-trivial. > > After browsing the internet and seeing what others are doing (lots of > pain expressed), my strategy is to have a RowDirty set by the > CellContentsModified but to be honest, things just aren't working as > expected. The row leave isn't fired if I sink the CellModified (or > something). All I can see for sure is that, while one would expect > the row leave to fire if a row is left (makes sense to me) that isn't > true and so now I am left with trying to figure out what zany rules exist. > > So here I am, hat in hand, asking the list "how do you do this"? > From shamil at smsconsulting.spb.ru Fri Jan 21 10:33:50 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Fri, 21 Jan 2011 19:33:50 +0300 Subject: [dba-VB] "Smart" fulltext search on large documents (data)base... Message-ID: <54C40F764B3B4CBB812589E1808149DD@nant> Hi All -- I have a task to implement a system providing "smart" fulltext search over a large base of text documents. My current plan is to use Google Docs. I plan to get in the future 80 GB ($20.00 USD per year) hosted space on GoogleDocs, put all the subject docs there, and then use Google API to search via my documents base. That seems to be it? It should be even possible to create a simple (free?) Google Web Site as front-end to that GoogleDocs documents base? That GoogleDocs base/site is planned to be used by non-profit organization. Am I missing something? Additional overhead costs to keep that solution's stuff on Google site? And why I'm writing about that solution here in dba-VBA? - because I plan to implement a front-end to that application system as an WinForms application coomunicating with Windows API... Thank you. -- Shamil From jwcolby at colbyconsulting.com Sat Jan 22 10:16:02 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 22 Jan 2011 11:16:02 -0500 Subject: [dba-VB] How do I troubleshoot SQL Server Security Message-ID: <4D3B02C2.1010909@colbyconsulting.com> What I want to do: Create an instance of SQL Server running on a specific server, and somehow magically allow a specific set of users logged in to the "system" (not necessarily that server) to access the server. AFAIK Users log in to Active Directory. I do not use Active Directory on my home / business network and do not really understand how it works. In any event it appears that I am going to have to use Active Directory in the SQL Server login? What I tried to do: On the server (windows 2000) I: 1) Created a windows security group DISUsers 2) Added most of the normal users of the computer, all of which will use the SQL Server 2005 Express database, including my user. 3) In SQL Server 2005 Express SSMS at the server level I clicked security login 4) I created a login DiscoServer and I assigned that to the group DiscoSvr\DiscoUsers 5) I checked that the login had the public server role (and only that role) 6) I went into the DISCO database and clickde SDecurity / Users 7) I created a DiscoUsers user assigned to the DiscoSvr\DiscoUsers object (group) 7) I checked the Role members db_DataReader and db_DataWriter I saved all of the above. I then go to my workstation, log in, open ssms and select DiscoSvr\SQLExpress. I can see the database object and I can see a + symbol but if I try to expand the database to see the objects I get a very generic error message "DispecLLC\jcolby is not able to access the database "Disco" under the current Security Context: SQL Server Error 916" I do not understand network security, but AFAICT what is happening is that I am logging in to a network (Active Directory) login (which all users do) but I have just set up SQL Server on that server to use a group / users specific to that server. So is it possible to use a similar method to manipulate SQL Server with active directory groups / users? How is that done. -- John W. Colby www.ColbyConsulting.com From dw-murphy at cox.net Sat Jan 22 11:56:20 2011 From: dw-murphy at cox.net (Doug Murphy) Date: Sat, 22 Jan 2011 09:56:20 -0800 Subject: [dba-VB] "Smart" fulltext search on large documents (data)base... In-Reply-To: <54C40F764B3B4CBB812589E1808149DD@nant> References: <54C40F764B3B4CBB812589E1808149DD@nant> Message-ID: <8FA20A84C52943F49C1F87D8D6AD549B@murphy3234aaf1> Shamil, Very innovative approach. Good use of the low cost and high power offered by the "Cloud" services. I'll be interested in how this comes out. Doug -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Friday, January 21, 2011 8:34 AM To: 'Discussion concerning Visual Basic and related programming issues.' Subject: [dba-VB] "Smart" fulltext search on large documents (data)base... Hi All -- I have a task to implement a system providing "smart" fulltext search over a large base of text documents. My current plan is to use Google Docs. I plan to get in the future 80 GB ($20.00 USD per year) hosted space on GoogleDocs, put all the subject docs there, and then use Google API to search via my documents base. That seems to be it? It should be even possible to create a simple (free?) Google Web Site as front-end to that GoogleDocs documents base? That GoogleDocs base/site is planned to be used by non-profit organization. Am I missing something? Additional overhead costs to keep that solution's stuff on Google site? And why I'm writing about that solution here in dba-VBA? - because I plan to implement a front-end to that application system as an WinForms application coomunicating with Windows API... Thank you. -- Shamil _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Sat Jan 22 13:50:04 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 22 Jan 2011 14:50:04 -0500 Subject: [dba-VB] Edit the source for a dataset Message-ID: <4D3B34EC.3030309@colbyconsulting.com> I created a dataset using the wizard, to connect to a SQL Server instance. When I did so I told it to connect to the Hamachi IP address rather than the Virtual Machine name. When I clicked OK it translated the Hamachi IP to the VM name. Very helpful (not). I have to go back out for another "Arby's test" but if I were to want to specify the name of the server, how do I do so? I am not finding a connection property or anything like it. Where is that stuff? -- John W. Colby www.ColbyConsulting.com From shamil at smsconsulting.spb.ru Sat Jan 22 14:52:34 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sat, 22 Jan 2011 23:52:34 +0300 Subject: [dba-VB] "Smart" fulltext search on large documents(data)base... In-Reply-To: <8FA20A84C52943F49C1F87D8D6AD549B@murphy3234aaf1> References: <54C40F764B3B4CBB812589E1808149DD@nant> <8FA20A84C52943F49C1F87D8D6AD549B@murphy3234aaf1> Message-ID: <31B0AA2D51EB42149AEDF4396BDFF406@nant> Hi Doug -- Thank you for your feedback/interest. I plan to implement a simple WinForms client next week using Google API + Google Docs. I have got already loaded 1000+ docs on my free GoogleDocs account and I have checked how full-text search is working with that stuff when used from within browser. It works well although when a document is found the words are not highlighted - I thought about making not only Google API/Google Docs + WinForms Client but also a Browser control embedded into a WinForm to simplify browsing of found results. Because of the lack of automatic highlighting of the search target words that solution looks a bit problematic now - I will probably have to implement also custom highlighting within browsing control - some DOM programming will be needed probably.. Thank you. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Doug Murphy Sent: 22 ?????? 2011 ?. 20:56 To: 'Discussion concerning Visual Basic and related programming issues.' Subject: Re: [dba-VB] "Smart" fulltext search on large documents(data)base... Shamil, Very innovative approach. Good use of the low cost and high power offered by the "Cloud" services. I'll be interested in how this comes out. Doug -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Friday, January 21, 2011 8:34 AM To: 'Discussion concerning Visual Basic and related programming issues.' Subject: [dba-VB] "Smart" fulltext search on large documents (data)base... Hi All -- I have a task to implement a system providing "smart" fulltext search over a large base of text documents. My current plan is to use Google Docs. I plan to get in the future 80 GB ($20.00 USD per year) hosted space on GoogleDocs, put all the subject docs there, and then use Google API to search via my documents base. That seems to be it? It should be even possible to create a simple (free?) Google Web Site as front-end to that GoogleDocs documents base? That GoogleDocs base/site is planned to be used by non-profit organization. Am I missing something? Additional overhead costs to keep that solution's stuff on Google site? And why I'm writing about that solution here in dba-VBA? - because I plan to implement a front-end to that application system as an WinForms application coomunicating with Windows API... 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 jwcolby at colbyconsulting.com Sat Jan 22 15:01:34 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 22 Jan 2011 16:01:34 -0500 Subject: [dba-VB] C# Connecting to the database (or not as the case may be) Message-ID: <4D3B45AE.3070302@colbyconsulting.com> I am sitting in the local Arby's doing more connection tests back into my home/office vmDev / PrisonMinistries database. Access 2003 connects *instantly*. Admittedly small tables snap open, edits save *instantly*. SSMS connects but not quickly. I can view the database, see tables and all that. Opening the tables takes 6 seconds. C# times out after 15 seconds when just trying to "preview" the data directly in the dataset in the left hand pane. Trying to open a form bound to the table times out after approximately 45 seconds. As I mentioned earlier, when setting up the Access database I found somewhere that I needed to use the Hamachi IP address when making the dsn which I did. SSMS is connecting in to that same Hamachi name. The C# (2008) project "translated" the ip address to the name "vmDev", and I am not finding where the connection information is stored for that dataset. I created a brand new dataset with the connection set back to the Hamachi IP and voila, the dataset can see the data. Found where the connection is kept (properties of the project) and discovered that yep, it had *three* connect strings now, the last of which was directly referencing the IP address. Got rid of all but that one, and now the bound form snaps open as quickly as the Access db did. I think what was going was the the form was trying the first which just plain didn't work, and timed out on that before moving on to the next one etc. Now that I only have one, and it references the IP, all if good in my world. Much still to learn but at least I can connect a bound (small recordset) list form directly to a list table and the form "snaps open" from the Arby's restaurant. -- John W. Colby www.ColbyConsulting.com From shamil at smsconsulting.spb.ru Sat Jan 22 15:17:22 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sun, 23 Jan 2011 00:17:22 +0300 Subject: [dba-VB] Edit the source for a dataset In-Reply-To: <4D3B34EC.3030309@colbyconsulting.com> References: <4D3B34EC.3030309@colbyconsulting.com> Message-ID: <2A89BEDE599A4493B5385FEA784C8FEA@nant> Hi John -- Connection information is stored in app.config file, which gets named by VS as {ApplicationExecutableFileExtName}.config for deployment, e.g. MyTestApplication.exe.config When the app is deployed you can edit this XML text file's manually before you start your app. While within VS you can edit connection string value via: Select VS project in Solution Explorer -> Right-Click -> Properties -> Settings Thank you. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: 22 ?????? 2011 ?. 22:50 To: VBA Subject: [dba-VB] Edit the source for a dataset I created a dataset using the wizard, to connect to a SQL Server instance. When I did so I told it to connect to the Hamachi IP address rather than the Virtual Machine name. When I clicked OK it translated the Hamachi IP to the VM name. Very helpful (not). I have to go back out for another "Arby's test" but if I were to want to specify the name of the server, how do I do so? I am not finding a connection property or anything like it. Where is that stuff? -- John W. Colby www.ColbyConsulting.com From jwcolby at colbyconsulting.com Mon Jan 24 09:50:25 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 24 Jan 2011 10:50:25 -0500 Subject: [dba-VB] Report wizard / viewer Message-ID: <4D3D9FC1.60607@colbyconsulting.com> I am building databases in C# now and am reaching the point where I have to think about reports. I see the report wizard and report viewer object. Are you guys using this? Is this crystal reports in a wrapper or something? Easy, hard? Things I need to know as I start using this thing? TIA, -- John W. Colby www.ColbyConsulting.com From df.waters at comcast.net Mon Jan 24 09:55:04 2011 From: df.waters at comcast.net (Dan Waters) Date: Mon, 24 Jan 2011 09:55:04 -0600 Subject: [dba-VB] Report wizard / viewer In-Reply-To: <4D3D9FC1.60607@colbyconsulting.com> References: <4D3D9FC1.60607@colbyconsulting.com> Message-ID: <9681DFA1BEA7427DBE22EA027CBBC6B1@DanWaters> I looked at reports for a while and decided to use Report Server in SQL Server 2008 R2. They have more features than in SQL Server 2008, and are free. So you don't have to deal with Crystal Reports licensing questions or issues. I don't have experience with this yet, nor have I used Crystal Reports. You install Report Server when you install SQL Server, or you can install Report Server at some point later. Dan -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Monday, January 24, 2011 9:50 AM To: VBA Subject: [dba-VB] Report wizard / viewer I am building databases in C# now and am reaching the point where I have to think about reports. I see the report wizard and report viewer object. Are you guys using this? Is this crystal reports in a wrapper or something? Easy, hard? Things I need to know as I start using this thing? TIA, -- John W. Colby www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Mon Jan 24 10:19:09 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 24 Jan 2011 11:19:09 -0500 Subject: [dba-VB] Report wizard / viewer In-Reply-To: <9681DFA1BEA7427DBE22EA027CBBC6B1@DanWaters> References: <4D3D9FC1.60607@colbyconsulting.com> <9681DFA1BEA7427DBE22EA027CBBC6B1@DanWaters> Message-ID: <4D3DA67D.9020203@colbyconsulting.com> This is a "canned" application that will run on a user's machine out in the world somewhere. As such whatever it does it needs to be part of the C# / .Net run-time package for the application. John W. Colby www.ColbyConsulting.com On 1/24/2011 10:55 AM, Dan Waters wrote: > I looked at reports for a while and decided to use Report Server in SQL > Server 2008 R2. They have more features than in SQL Server 2008, and are > free. So you don't have to deal with Crystal Reports licensing questions or > issues. I don't have experience with this yet, nor have I used Crystal > Reports. > > You install Report Server when you install SQL Server, or you can install > Report Server at some point later. > > Dan > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Monday, January 24, 2011 9:50 AM > To: VBA > Subject: [dba-VB] Report wizard / viewer > > I am building databases in C# now and am reaching the point where I have to > think about reports. I > see the report wizard and report viewer object. Are you guys using this? > Is this crystal reports > in a wrapper or something? Easy, hard? Things I need to know as I start > using this thing? > > TIA, > From shamil at smsconsulting.spb.ru Mon Jan 24 10:55:35 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Mon, 24 Jan 2011 19:55:35 +0300 Subject: [dba-VB] Report wizard / viewer In-Reply-To: <4D3D9FC1.60607@colbyconsulting.com> References: <4D3D9FC1.60607@colbyconsulting.com> Message-ID: Hi John -- You can use MS ReportViewer Control. It's free. But it has to be isntalled additionally to .NET Framework on client's systems. Installation takes a few seconds. Be prepared to spend some time to understand its reporting design/process - it's different from MS Access, or Crystal Reports, ... - but it's quite powerful when you'll get used to use it. To make it easy this first time your can try to make your reports' queries as powerful as possible to leave MS ReportViewer Control only rendering/totalling tasks... MS ReportViewer Control info http://gotreportviewer.com/ MS ReportViewer Control - samples http://northwind.codeplex.com/releases/view/26600 http://northwind.codeplex.com/releases/view/26600#DownloadId=192044 MS ReportViewer Control - samples - in action http://shamils-19.hosting.parking.ru/nw4/ Report Builder 3.0 info (I haven't used it yet ...) http://msdn.microsoft.com/en-us/library/dd207008.aspx Thank you. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: 24 ?????? 2011 ?. 18:50 To: VBA Subject: [dba-VB] Report wizard / viewer I am building databases in C# now and am reaching the point where I have to think about reports. I see the report wizard and report viewer object. Are you guys using this? Is this crystal reports in a wrapper or something? Easy, hard? Things I need to know as I start using this thing? TIA, -- 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 bill_patten at embarqmail.com Mon Jan 24 11:50:48 2011 From: bill_patten at embarqmail.com (Bill Patten) Date: Mon, 24 Jan 2011 09:50:48 -0800 Subject: [dba-VB] Report wizard / viewer In-Reply-To: <4D3DA67D.9020203@colbyconsulting.com> References: <4D3D9FC1.60607@colbyconsulting.com><9681DFA1BEA7427DBE22EA027CBBC6B1@DanWaters> <4D3DA67D.9020203@colbyconsulting.com> Message-ID: ?John, This site has lots of information about VS.2010 Report Viewer, I'm sure much of it applies to 2008 if that is what you are using. As Shamil, say's it is certainly different than Access but the price is right. HTH Bill -------------------------------------------------- From: "jwcolby" Sent: Monday, January 24, 2011 8:19 AM To: ; "Discussion concerning Visual Basic and related programming issues." Subject: Re: [dba-VB] Report wizard / viewer This is a "canned" application that will run on a user's machine out in the world somewhere. As such whatever it does it needs to be part of the C# / .Net run-time package for the application. John W. Colby www.ColbyConsulting.com On 1/24/2011 10:55 AM, Dan Waters wrote: > I looked at reports for a while and decided to use Report Server in SQL > Server 2008 R2. They have more features than in SQL Server 2008, and are > free. So you don't have to deal with Crystal Reports licensing questions > or > issues. I don't have experience with this yet, nor have I used Crystal > Reports. > > You install Report Server when you install SQL Server, or you can install > Report Server at some point later. > > Dan > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Monday, January 24, 2011 9:50 AM > To: VBA > Subject: [dba-VB] Report wizard / viewer > > I am building databases in C# now and am reaching the point where I have > to > think about reports. I > see the report wizard and report viewer object. Are you guys using this? > Is this crystal reports > in a wrapper or something? Easy, hard? Things I need to know as I start > using this thing? > > TIA, > _______________________________________________ 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 Tue Jan 25 10:33:14 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Tue, 25 Jan 2011 19:33:14 +0300 Subject: [dba-VB] Non-blocking loading of a DataGridview using source MS Access table with 120, 000+ rows.... Message-ID: Hi All -- I have a .NET WinForm app with a DataGridView bound to an ADO.NET dataset getting data from MS Access/JET backend table. And I'd like to have my WinForm beeing *non-blocked* while loading that DataGridView with 120,000+ rows from an MS Access backend table. I do fire DataGridView data loading via TimerControl Tick event then run it via BackgroundWorker, I do use SuspendLayout etc. still as far as I see WinForm gets blocked for several seconds: - first when dataset's rows are retrieved, - second when DataGridView gets bound to retrieved dataset. Do you know about/have you seen somewhere any tricks how to make such a large data set loading non-blocking WinForm? It's not a big issue after all - I just wanted to make it working even more smoothly than it does work now - somehow like MS Access datasheets when they load data asynchronously... Of course using 120,000+ rows for a DataGridView is a questionable solution but that's a customer requirement: that much records they get in an year (then they archive/clear backend table and start from scratch) - and filtering that 120,000+ rows when they are loading happens almost instantly - so the only issue is initial loading/refreshing - the latter doesn't happen often... Thank you. -- Shamil From Gustav at cactus.dk Wed Jan 26 04:03:24 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 26 Jan 2011 11:03:24 +0100 Subject: [dba-VB] Non-blocking loading of a DataGridview using source MS Access table with 120, 000+ rows.... Message-ID: Hi Shamil If "several seconds" is the time it takes to read the data from the Access database, it has to happen. And you do so in the background in a separate thread when you open the form and expect the form to be "live" while that happens. However, the form is dimmed or non-responsive until data has been loaded. Couldn't you try - when you open the form - to fill the DataGridView with one or few dummy records and then - when data is loaded - to switch to the real source? However, if this function is used only rarely and the retrieval only lasts for some seconds, I think I would just pop a message box: Please wait ... /gustav >>> shamil at smsconsulting.spb.ru 25-01-2011 17:33 >>> Hi All -- I have a .NET WinForm app with a DataGridView bound to an ADO.NET dataset getting data from MS Access/JET backend table. And I'd like to have my WinForm beeing *non-blocked* while loading that DataGridView with 120,000+ rows from an MS Access backend table. I do fire DataGridView data loading via TimerControl Tick event then run it via BackgroundWorker, I do use SuspendLayout etc. still as far as I see WinForm gets blocked for several seconds: - first when dataset's rows are retrieved, - second when DataGridView gets bound to retrieved dataset. Do you know about/have you seen somewhere any tricks how to make such a large data set loading non-blocking WinForm? It's not a big issue after all - I just wanted to make it working even more smoothly than it does work now - somehow like MS Access datasheets when they load data asynchronously... Of course using 120,000+ rows for a DataGridView is a questionable solution but that's a customer requirement: that much records they get in an year (then they archive/clear backend table and start from scratch) - and filtering that 120,000+ rows when they are loading happens almost instantly - so the only issue is initial loading/refreshing - the latter doesn't happen often... Thank you. -- Shamil From shamil at smsconsulting.spb.ru Wed Jan 26 05:50:23 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Wed, 26 Jan 2011 14:50:23 +0300 Subject: [dba-VB] Non-blocking loading of a DataGridview using source MSAccess table with 120, 000+ rows.... In-Reply-To: References: Message-ID: Hi Gustav -- <<< Couldn't you try - when you open the form - to fill the DataGridView with one or few dummy records and then - when data is loaded - to switch to the real source? >>> Yes, this is what I'm doing: - 1) when a tab with datagridview is activated a user sees a message: "Loading grid's data rows..."; - 2) background(Worker) thread is started, which fills (via dataAdapter) a dataset which is not yet bound to the datagridview; - 3) when thread finished asynchnously it binds datagridview to the filled dataset using boundDataSource; Note: all the time while loading happens DataGridView is invisible and it only set to visible + ResumeLayout(false) + PerformLayout() when the data gets bound. Form becomes non-responsive for a while both on step 2 and step 3. I'm not that surprised about (3) but why loading large dataset in background worker thread should block form for a while - that's unclear here... <<< However, if this function is used only rarely and the retrieval only lasts for some seconds, I think I would just pop a message box: Please wait ... >>> Yes, that what happens now - but I wanted to make it more smooth in the future if possible... 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: 26 ?????? 2011 ?. 13:03 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Non-blocking loading of a DataGridview using source MSAccess table with 120, 000+ rows.... Hi Shamil If "several seconds" is the time it takes to read the data from the Access database, it has to happen. And you do so in the background in a separate thread when you open the form and expect the form to be "live" while that happens. However, the form is dimmed or non-responsive until data has been loaded. Couldn't you try - when you open the form - to fill the DataGridView with one or few dummy records and then - when data is loaded - to switch to the real source? However, if this function is used only rarely and the retrieval only lasts for some seconds, I think I would just pop a message box: Please wait ... /gustav >>> shamil at smsconsulting.spb.ru 25-01-2011 17:33 >>> Hi All -- I have a .NET WinForm app with a DataGridView bound to an ADO.NET dataset getting data from MS Access/JET backend table. And I'd like to have my WinForm beeing *non-blocked* while loading that DataGridView with 120,000+ rows from an MS Access backend table. I do fire DataGridView data loading via TimerControl Tick event then run it via BackgroundWorker, I do use SuspendLayout etc. still as far as I see WinForm gets blocked for several seconds: - first when dataset's rows are retrieved, - second when DataGridView gets bound to retrieved dataset. Do you know about/have you seen somewhere any tricks how to make such a large data set loading non-blocking WinForm? It's not a big issue after all - I just wanted to make it working even more smoothly than it does work now - somehow like MS Access datasheets when they load data asynchronously... Of course using 120,000+ rows for a DataGridView is a questionable solution but that's a customer requirement: that much records they get in an year (then they archive/clear backend table and start from scratch) - and filtering that 120,000+ rows when they are loading happens almost instantly - so the only issue is initial loading/refreshing - the latter doesn't happen often... 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 Wed Jan 26 06:32:43 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 26 Jan 2011 13:32:43 +0100 Subject: [dba-VB] Non-blocking loading of a DataGridview using source MSAccess table with 120, 000+ rows. Message-ID: Hi Shamil As you describe it, it is exactly what I would do and expect. I have no explanation for why step 2 should set the DataGridView on hold ... /gustav >>> shamil at smsconsulting.spb.ru 26-01-2011 12:50 >>> Hi Gustav -- <<< Couldn't you try - when you open the form - to fill the DataGridView with one or few dummy records and then - when data is loaded - to switch to the real source? >>> Yes, this is what I'm doing: - 1) when a tab with datagridview is activated a user sees a message: "Loading grid's data rows..."; - 2) background(Worker) thread is started, which fills (via dataAdapter) a dataset which is not yet bound to the datagridview; - 3) when thread finished asynchnously it binds datagridview to the filled dataset using boundDataSource; Note: all the time while loading happens DataGridView is invisible and it only set to visible + ResumeLayout(false) + PerformLayout() when the data gets bound. Form becomes non-responsive for a while both on step 2 and step 3. I'm not that surprised about (3) but why loading large dataset in background worker thread should block form for a while - that's unclear here... <<< However, if this function is used only rarely and the retrieval only lasts for some seconds, I think I would just pop a message box: Please wait ... >>> Yes, that what happens now - but I wanted to make it more smooth in the future if possible... 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: 26 ?????? 2011 ?. 13:03 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Non-blocking loading of a DataGridview using source MSAccess table with 120, 000+ rows.... Hi Shamil If "several seconds" is the time it takes to read the data from the Access database, it has to happen. And you do so in the background in a separate thread when you open the form and expect the form to be "live" while that happens. However, the form is dimmed or non-responsive until data has been loaded. Couldn't you try - when you open the form - to fill the DataGridView with one or few dummy records and then - when data is loaded - to switch to the real source? However, if this function is used only rarely and the retrieval only lasts for some seconds, I think I would just pop a message box: Please wait ... /gustav >>> shamil at smsconsulting.spb.ru 25-01-2011 17:33 >>> Hi All -- I have a .NET WinForm app with a DataGridView bound to an ADO.NET dataset getting data from MS Access/JET backend table. And I'd like to have my WinForm beeing *non-blocked* while loading that DataGridView with 120,000+ rows from an MS Access backend table. I do fire DataGridView data loading via TimerControl Tick event then run it via BackgroundWorker, I do use SuspendLayout etc. still as far as I see WinForm gets blocked for several seconds: - first when dataset's rows are retrieved, - second when DataGridView gets bound to retrieved dataset. Do you know about/have you seen somewhere any tricks how to make such a large data set loading non-blocking WinForm? It's not a big issue after all - I just wanted to make it working even more smoothly than it does work now - somehow like MS Access datasheets when they load data asynchronously... Of course using 120,000+ rows for a DataGridView is a questionable solution but that's a customer requirement: that much records they get in an year (then they archive/clear backend table and start from scratch) - and filtering that 120,000+ rows when they are loading happens almost instantly - so the only issue is initial loading/refreshing - the latter doesn't happen often... Thank you. -- Shamil From michael at ddisolutions.com.au Wed Jan 26 19:39:00 2011 From: michael at ddisolutions.com.au (Michael Maddison) Date: Thu, 27 Jan 2011 12:39:00 +1100 Subject: [dba-VB] WebMatrix Anyone? Message-ID: <99266C61B516644D9727F983FAFAB4650468EE@remote.ddisolutions.com.au> This looks useful to me. What do those who do a lot of web dev think? I don't do much myself... http://www.microsoft.com/web/enter/?WT.mc_id=aff-f-us-wag-WM-Audience cheers Michael M From ebarro at roadrunner.com Wed Jan 26 20:34:06 2011 From: ebarro at roadrunner.com (Eric Barro) Date: Wed, 26 Jan 2011 18:34:06 -0800 Subject: [dba-VB] WebMatrix Anyone? In-Reply-To: <99266C61B516644D9727F983FAFAB4650468EE@remote.ddisolutions.com.au> References: <99266C61B516644D9727F983FAFAB4650468EE@remote.ddisolutions.com.au> Message-ID: <054701cbbdca$abd6b6d0$03842470$@com> This is a rehash of their original WebMatrix version 1.0 back in the .NET 1.0 days. It was the pre-cursor to VS.NET. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Michael Maddison Sent: Wednesday, January 26, 2011 5:39 PM To: Discussion concerning Visual Basic and related programming issues. Subject: [dba-VB] WebMatrix Anyone? This looks useful to me. What do those who do a lot of web dev think? I don't do much myself... http://www.microsoft.com/web/enter/?WT.mc_id=aff-f-us-wag-WM-Audience cheers Michael M _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From michael at ddisolutions.com.au Wed Jan 26 20:48:15 2011 From: michael at ddisolutions.com.au (Michael Maddison) Date: Thu, 27 Jan 2011 13:48:15 +1100 Subject: [dba-VB] WebMatrix Anyone? References: <99266C61B516644D9727F983FAFAB4650468EE@remote.ddisolutions.com.au> <054701cbbdca$abd6b6d0$03842470$@com> Message-ID: <99266C61B516644D9727F983FAFAB4650468EF@remote.ddisolutions.com.au> Yeah, I kinda remember. This is new though (I think?). It's aimed at the scripting level rather than ASP.Net I think. Has links to 41 open source CMS and other app's built in. Includes IDE support for PHP, DNN, Joomla, PayPal etc. Anyone tried Razor yet? Cheers Michael M From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Thursday, 27 January 2011 1:34 PM To: 'Discussion concerning Visual Basic and related programming issues.' Subject: Re: [dba-VB] WebMatrix Anyone? This is a rehash of their original WebMatrix version 1.0 back in the .NET 1.0 days. It was the pre-cursor to VS.NET. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Michael Maddison Sent: Wednesday, January 26, 2011 5:39 PM To: Discussion concerning Visual Basic and related programming issues. Subject: [dba-VB] WebMatrix Anyone? This looks useful to me. What do those who do a lot of web dev think? I don't do much myself... http://www.microsoft.com/web/enter/?WT.mc_id=aff-f-us-wag-WM-Audience cheers Michael M _______________________________________________ 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 ________________________________ No virus found in this message. Checked by AVG - www.avg.com Version: 10.0.1204 / Virus Database: 1435/3404 - Release Date: 01/26/11 From accessd at shaw.ca Wed Jan 26 21:03:12 2011 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 26 Jan 2011 19:03:12 -0800 Subject: [dba-VB] WebMatrix Anyone? In-Reply-To: <99266C61B516644D9727F983FAFAB4650468EE@remote.ddisolutions.com.au> References: <99266C61B516644D9727F983FAFAB4650468EE@remote.ddisolutions.com.au> Message-ID: Gasp, another program of worthy note...some more to learn. It has a 1.5 hour presentation just to introduce the app. You first. ;-) Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Michael Maddison Sent: Wednesday, January 26, 2011 5:39 PM To: Discussion concerning Visual Basic and related programming issues. Subject: [dba-VB] WebMatrix Anyone? This looks useful to me. What do those who do a lot of web dev think? I don't do much myself... http://www.microsoft.com/web/enter/?WT.mc_id=aff-f-us-wag-WM-Audience cheers Michael M _______________________________________________ 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 Thu Jan 27 06:27:35 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Thu, 27 Jan 2011 15:27:35 +0300 Subject: [dba-VB] Working on an Internet Shop - what is the usual official way to get good pictures of customers' goods for such a shop? Message-ID: <4EC4D1458C794247BAECEF4A1E93CB2D@nant> Hi All -- It's a bit off-topic but it's about ASP.NET driven Internet shop I'm working here on now. The customer is a small company, and it's its first attempt to start selling customers' goods on Internet. The current issue is to make customers' goods photos for this shop - to make them by themselves here or hire good photogrpahs - that's not possible not because of financial issues but because of the way this company sells the goods - many of them are never kept on the stores so it's not possible to make good pictures of that goods right now. And the current intention is to make this shop released ASAP: we use good "out-of-the-box" Internet shop ASP.NET solution. What is the usual official way to get that pictures? I guess that most of the well known brands (that shop is for tennis shoes, clothes, equipment...) do currently have ready to use pics for their customer goods. How to get that pictures officially? What is the usual cost for such a customers good pictures' set for one year models, for, say, Babolat, Nike, Head, ...? Thank you. -- Shamil From Gustav at cactus.dk Thu Jan 27 09:09:54 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 27 Jan 2011 16:09:54 +0100 Subject: [dba-VB] Working on an Internet Shop - what is the usual official way to get good pictures of custom Message-ID: Hi Shamil Pictures typically origin from the supplier/manufacturer as a part of his marketing support. /gustav >>> shamil at smsconsulting.spb.ru 27-01-2011 13:27 >>> Hi All -- It's a bit off-topic but it's about ASP.NET driven Internet shop I'm working here on now. The customer is a small company, and it's its first attempt to start selling customers' goods on Internet. The current issue is to make customers' goods photos for this shop - to make them by themselves here or hire good photogrpahs - that's not possible not because of financial issues but because of the way this company sells the goods - many of them are never kept on the stores so it's not possible to make good pictures of that goods right now. And the current intention is to make this shop released ASAP: we use good "out-of-the-box" Internet shop ASP.NET solution. What is the usual official way to get that pictures? I guess that most of the well known brands (that shop is for tennis shoes, clothes, equipment...) do currently have ready to use pics for their customer goods. How to get that pictures officially? What is the usual cost for such a customers good pictures' set for one year models, for, say, Babolat, Nike, Head, ...? Thank you. -- Shamil From shamil at smsconsulting.spb.ru Thu Jan 27 09:22:27 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Thu, 27 Jan 2011 18:22:27 +0300 Subject: [dba-VB] Working on an Internet Shop - what is theusual official way to get good pictures of custom In-Reply-To: References: Message-ID: <921D7A17F10347559FFF4A9F04F42B62@nant> Hi Gustav -- Thank you for your reply. When you write typically - do you mean your own experience or experience of the other developers you're contacting with there? I'm also thinking that pictures should come from supplier/manufacturer especially for official dealers - they should for the new/additional options/opportunities to get their stuff sold/distributed. But my customer doesn't have such pictures - they just have .pdf or .ppt(x) (MS PowerPoint) catalogs. These are high quality catalogs with very good pics - so the supplier/manufacturer does have all the needed for an Internet shop stuff, and that shop will sell their (supplier/manufacturer) consumer goods... Not sure how to query them to get that catalogs' source pics to use them on Internet shop... I have written a short "enquire for pics" message to Babolat international offices through their site already - we will see will they react at all.. 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: 27 ?????? 2011 ?. 18:10 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Working on an Internet Shop - what is theusual official way to get good pictures of custom Hi Shamil Pictures typically origin from the supplier/manufacturer as a part of his marketing support. /gustav >>> shamil at smsconsulting.spb.ru 27-01-2011 13:27 >>> Hi All -- It's a bit off-topic but it's about ASP.NET driven Internet shop I'm working here on now. The customer is a small company, and it's its first attempt to start selling customers' goods on Internet. The current issue is to make customers' goods photos for this shop - to make them by themselves here or hire good photogrpahs - that's not possible not because of financial issues but because of the way this company sells the goods - many of them are never kept on the stores so it's not possible to make good pictures of that goods right now. And the current intention is to make this shop released ASAP: we use good "out-of-the-box" Internet shop ASP.NET solution. What is the usual official way to get that pictures? I guess that most of the well known brands (that shop is for tennis shoes, clothes, equipment...) do currently have ready to use pics for their customer goods. How to get that pictures officially? What is the usual cost for such a customers good pictures' set for one year models, for, say, Babolat, Nike, Head, ...? 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 Thu Jan 27 09:56:31 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 27 Jan 2011 16:56:31 +0100 Subject: [dba-VB] Working on an Internet Shop - what is the usual official way to get good pictures Message-ID: Hi Shamil No detailed experience - it is just how it works. If you wish to promote a physical product you will need pack shots and/or product shots to pass out for free to any dealer interested - previously to be used in catalogues and brochures, these days for web sites. If you lack such sources, one method is to google/bing on _Pictures_ using the part number or other unique description. Quite often you succeed. /gustav >>> shamil at smsconsulting.spb.ru 27-01-2011 16:22 >>> Hi Gustav -- Thank you for your reply. When you write typically - do you mean your own experience or experience of the other developers you're contacting with there? I'm also thinking that pictures should come from supplier/manufacturer especially for official dealers - they should for the new/additional options/opportunities to get their stuff sold/distributed. But my customer doesn't have such pictures - they just have .pdf or .ppt(x) (MS PowerPoint) catalogs. These are high quality catalogs with very good pics - so the supplier/manufacturer does have all the needed for an Internet shop stuff, and that shop will sell their (supplier/manufacturer) consumer goods... Not sure how to query them to get that catalogs' source pics to use them on Internet shop... I have written a short "enquire for pics" message to Babolat international offices through their site already - we will see will they react at all.. 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: 27 ?????? 2011 ?. 18:10 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Working on an Internet Shop - what is theusual official way to get good pictures of custom Hi Shamil Pictures typically origin from the supplier/manufacturer as a part of his marketing support. /gustav >>> shamil at smsconsulting.spb.ru 27-01-2011 13:27 >>> Hi All -- It's a bit off-topic but it's about ASP.NET driven Internet shop I'm working here on now. The customer is a small company, and it's its first attempt to start selling customers' goods on Internet. The current issue is to make customers' goods photos for this shop - to make them by themselves here or hire good photogrpahs - that's not possible not because of financial issues but because of the way this company sells the goods - many of them are never kept on the stores so it's not possible to make good pictures of that goods right now. And the current intention is to make this shop released ASAP: we use good "out-of-the-box" Internet shop ASP.NET solution. What is the usual official way to get that pictures? I guess that most of the well known brands (that shop is for tennis shoes, clothes, equipment...) do currently have ready to use pics for their customer goods. How to get that pictures officially? What is the usual cost for such a customers good pictures' set for one year models, for, say, Babolat, Nike, Head, ...? Thank you. -- Shamil From shamil at smsconsulting.spb.ru Thu Jan 27 10:14:09 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Thu, 27 Jan 2011 19:14:09 +0300 Subject: [dba-VB] Working on an Internet Shop - what is theusual official way to get good pictures In-Reply-To: References: Message-ID: Hi Gustav -- Thank you for your additional notes. Searching on bing/google - yes, it's possible but - it's very time consuming - there are 1000+ phisical products positions and - (which is more important) I'm not sure that "grabbing" pics on Internet to reuse them in a custom Internet shop is a legal practice. <<< No detailed experience - it is just how it works >>> OK. We will see how my enquire for Babolat will work... I will also ask my customer to request their dealers for the physical products pics... 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: 27 ?????? 2011 ?. 18:57 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Working on an Internet Shop - what is theusual official way to get good pictures Hi Shamil No detailed experience - it is just how it works. If you wish to promote a physical product you will need pack shots and/or product shots to pass out for free to any dealer interested - previously to be used in catalogues and brochures, these days for web sites. If you lack such sources, one method is to google/bing on _Pictures_ using the part number or other unique description. Quite often you succeed. /gustav >>> shamil at smsconsulting.spb.ru 27-01-2011 16:22 >>> Hi Gustav -- Thank you for your reply. When you write typically - do you mean your own experience or experience of the other developers you're contacting with there? I'm also thinking that pictures should come from supplier/manufacturer especially for official dealers - they should for the new/additional options/opportunities to get their stuff sold/distributed. But my customer doesn't have such pictures - they just have .pdf or .ppt(x) (MS PowerPoint) catalogs. These are high quality catalogs with very good pics - so the supplier/manufacturer does have all the needed for an Internet shop stuff, and that shop will sell their (supplier/manufacturer) consumer goods... Not sure how to query them to get that catalogs' source pics to use them on Internet shop... I have written a short "enquire for pics" message to Babolat international offices through their site already - we will see will they react at all.. 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: 27 ?????? 2011 ?. 18:10 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Working on an Internet Shop - what is theusual official way to get good pictures of custom Hi Shamil Pictures typically origin from the supplier/manufacturer as a part of his marketing support. /gustav >>> shamil at smsconsulting.spb.ru 27-01-2011 13:27 >>> Hi All -- It's a bit off-topic but it's about ASP.NET driven Internet shop I'm working here on now. The customer is a small company, and it's its first attempt to start selling customers' goods on Internet. The current issue is to make customers' goods photos for this shop - to make them by themselves here or hire good photogrpahs - that's not possible not because of financial issues but because of the way this company sells the goods - many of them are never kept on the stores so it's not possible to make good pictures of that goods right now. And the current intention is to make this shop released ASAP: we use good "out-of-the-box" Internet shop ASP.NET solution. What is the usual official way to get that pictures? I guess that most of the well known brands (that shop is for tennis shoes, clothes, equipment...) do currently have ready to use pics for their customer goods. How to get that pictures officially? What is the usual cost for such a customers good pictures' set for one year models, for, say, Babolat, Nike, Head, ...? Thank you. -- Shamil _______________________________________________ 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 Thu Jan 27 16:30:15 2011 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 27 Jan 2011 14:30:15 -0800 Subject: [dba-VB] Working on an Internet Shop - what is the usual official way to get good pictures of customers' goods for such a shop? In-Reply-To: <4EC4D1458C794247BAECEF4A1E93CB2D@nant> References: <4EC4D1458C794247BAECEF4A1E93CB2D@nant> Message-ID: <809ABB7E718A4876AEA74C8D8C8B1FED@creativesystemdesigns.com> Hi Shamil: The customers I have, I put them incharge of supplying the pictures...and therefore any copyrights issues are their concerns. I will do picture hunting but the time will cost. Also any picture retouching, of which I do a lot of, is also billable time. One client atually had me go around his store and photograph everything...I brought in a photo backdrop and the lights and the camera and it took almost a week to do 150 products... It would have been cheaper to get in a professional, but they were concerned with copyright issues and as I were putting the items on their new web site anyways, it was a lot easier for them. I think there is no issues with pulling product pictures off a manufacture's web site as after all you are selling their products and as long as they are given appropriate credit there should not be any issues. When downloading pictures from Microsoft's sites, for the DBA web site, their official stance was that they were copyrighted but unofficially they said help yourself as long as you are using the picture to advertise our products and are given us the appropriate credit. If you are using Professional Photographers pictures, that have been put up for sale and are generally tagged with copyright, that is a whole different set of negotiations and costing...one that the company will have to incurr. Note: An artist's (photographer as well) right of ownership to their art can never be removed. For example: A company may buy pictures for a particular web site or advertising campaign but no matter what their contract says the photographer still retains the ultimate rights to any further usage. HTH Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Thursday, January 27, 2011 4:28 AM To: 'Discussion concerning Visual Basic and related programming issues.' Subject: [dba-VB] Working on an Internet Shop - what is the usual official way to get good pictures of customers' goods for such a shop? Hi All -- It's a bit off-topic but it's about ASP.NET driven Internet shop I'm working here on now. The customer is a small company, and it's its first attempt to start selling customers' goods on Internet. The current issue is to make customers' goods photos for this shop - to make them by themselves here or hire good photogrpahs - that's not possible not because of financial issues but because of the way this company sells the goods - many of them are never kept on the stores so it's not possible to make good pictures of that goods right now. And the current intention is to make this shop released ASAP: we use good "out-of-the-box" Internet shop ASP.NET solution. What is the usual official way to get that pictures? I guess that most of the well known brands (that shop is for tennis shoes, clothes, equipment...) do currently have ready to use pics for their customer goods. How to get that pictures officially? What is the usual cost for such a customers good pictures' set for one year models, for, say, Babolat, Nike, Head, ...? Thank you. -- Shamil _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From shamil at smsconsulting.spb.ru Thu Jan 27 18:37:51 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Fri, 28 Jan 2011 03:37:51 +0300 Subject: [dba-VB] Working on an Internet Shop - what is the usualofficial way to get good pictures of customers' goods forsuch a shop? In-Reply-To: <809ABB7E718A4876AEA74C8D8C8B1FED@creativesystemdesigns.com> References: <4EC4D1458C794247BAECEF4A1E93CB2D@nant> <809ABB7E718A4876AEA74C8D8C8B1FED@creativesystemdesigns.com> Message-ID: Hi Jim -- Thank you for your feedback. <<< The customers I have, I put them in charge of supplying the pictures...and therefore any copyrights issues are their concerns. >>> Yes, this is what I've tried to do first of all but it takes "ages" for the customer to get that pictures ready (not yet) - so I have started to look for "workaround" quicker alternatives... Thank you. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: 28 ?????? 2011 ?. 1:30 To: 'Discussion concerning Visual Basic and related programming issues.' Subject: Re: [dba-VB] Working on an Internet Shop - what is the usualofficial way to get good pictures of customers' goods forsuch a shop? Hi Shamil: The customers I have, I put them incharge of supplying the pictures...and therefore any copyrights issues are their concerns. I will do picture hunting but the time will cost. Also any picture retouching, of which I do a lot of, is also billable time. One client atually had me go around his store and photograph everything...I brought in a photo backdrop and the lights and the camera and it took almost a week to do 150 products... It would have been cheaper to get in a professional, but they were concerned with copyright issues and as I were putting the items on their new web site anyways, it was a lot easier for them. I think there is no issues with pulling product pictures off a manufacture's web site as after all you are selling their products and as long as they are given appropriate credit there should not be any issues. When downloading pictures from Microsoft's sites, for the DBA web site, their official stance was that they were copyrighted but unofficially they said help yourself as long as you are using the picture to advertise our products and are given us the appropriate credit. If you are using Professional Photographers pictures, that have been put up for sale and are generally tagged with copyright, that is a whole different set of negotiations and costing...one that the company will have to incurr. Note: An artist's (photographer as well) right of ownership to their art can never be removed. For example: A company may buy pictures for a particular web site or advertising campaign but no matter what their contract says the photographer still retains the ultimate rights to any further usage. HTH Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Thursday, January 27, 2011 4:28 AM To: 'Discussion concerning Visual Basic and related programming issues.' Subject: [dba-VB] Working on an Internet Shop - what is the usual official way to get good pictures of customers' goods for such a shop? Hi All -- It's a bit off-topic but it's about ASP.NET driven Internet shop I'm working here on now. The customer is a small company, and it's its first attempt to start selling customers' goods on Internet. The current issue is to make customers' goods photos for this shop - to make them by themselves here or hire good photogrpahs - that's not possible not because of financial issues but because of the way this company sells the goods - many of them are never kept on the stores so it's not possible to make good pictures of that goods right now. And the current intention is to make this shop released ASAP: we use good "out-of-the-box" Internet shop ASP.NET solution. What is the usual official way to get that pictures? I guess that most of the well known brands (that shop is for tennis shoes, clothes, equipment...) do currently have ready to use pics for their customer goods. How to get that pictures officially? What is the usual cost for such a customers good pictures' set for one year models, for, say, Babolat, Nike, Head, ...? 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 marklbreen at gmail.com Fri Jan 28 03:41:09 2011 From: marklbreen at gmail.com (Mark Breen) Date: Fri, 28 Jan 2011 09:41:09 +0000 Subject: [dba-VB] Working on an Internet Shop - what is the usual official way to get good pictures of customers' goods for such a shop? In-Reply-To: <4EC4D1458C794247BAECEF4A1E93CB2D@nant> References: <4EC4D1458C794247BAECEF4A1E93CB2D@nant> Message-ID: Hello Shamil, It might not be useful, but for free photo's take a look at http://sxc.hu/ I was just told about it yesterday thanks Mark On 27 January 2011 12:27, Shamil Salakhetdinov wrote: > Hi All -- > > It's a bit off-topic but it's about ASP.NET driven Internet shop I'm > working > here on now. > The customer is a small company, and it's its first attempt to start > selling > customers' goods on Internet. > The current issue is to make customers' goods photos for this shop - to > make > them by themselves here or hire good photogrpahs - that's not possible not > because of financial issues but because of the way this company sells the > goods - many of them are never kept on the stores so it's not possible to > make good pictures of that goods right now. And the current intention is to > make this shop released ASAP: we use good "out-of-the-box" Internet shop > ASP.NET solution. > > What is the usual official way to get that pictures? > I guess that most of the well known brands (that shop is for tennis shoes, > clothes, equipment...) do currently have ready to use pics for their > customer goods. > How to get that pictures officially? > What is the usual cost for such a customers good pictures' set for one year > models, for, say, Babolat, Nike, Head, ...? > > 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 Sun Jan 30 09:59:50 2011 From: gustav at cactus.dk (Gustav Brock) Date: Sun, 30 Jan 2011 16:59:50 +0100 Subject: [dba-VB] Localizing Silverlight Business Application Message-ID: Hi all I had a lot of trouble adding dynamic culture selection to a Silverlight Business Application. But by combining info from these links I finally succeeded: http://johnlivingstontech.blogspot.com/2010/02/localizing-resources-in-silverlight.html http://msdn.microsoft.com/en-us/library/dd941931(v=vs.95).aspx http://blogs.msdn.com/b/brada/archive/2010/03/22/silverlight-4-ria-services-ready-for-business-localizing-business-application.aspx The missing task which left the login labels untouched, was to add the localized resx files from the web project "as link" to the Web\Resources folder of the main project. This way all text for labels, error messages, tool tips, etc. are kept in separate resx files. Further, select a language in the combobox and the language changes instantaneously. Great! /gustav From jwcolby at colbyconsulting.com Sun Jan 30 15:53:36 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sun, 30 Jan 2011 16:53:36 -0500 Subject: [dba-VB] Hamachi VPN information Message-ID: <4D45DDE0.3060409@colbyconsulting.com> I use Hamachi a lot. I am trying to set up Hamachi VPNs specific to client groups, IOW a VPN for Lenoir Prison Ministry, a VPN for Forgiven Ministry, a group for FSN Hope, a group for C2DbInternal etc. What I did not really understand is that there are actually three types of networks. I am going to cut and paste the definitions from Hamachi's page just so that you can see what they have to say. http://help.logmein.com/SelfServiceSearchResults?kw=hub+and+spoke&product=lmihamachi2&sr=0 http://help.logmein.com/SelfServiceKnowledgeRenderer?type=Documentation&id=kA130000000Lu1YCAS&search=1&kw=hub%20and%20spoke * Gateway virtual networking: Provide remote users with secure access to your private network/LAN, including the resources on it, from a centralized LogMeIn Hamachi? gateway, without modifying firewalls or network routers. * Hub-and-spoke virtual networking: Provide remote users with secure access to specific resources on your network, from any location, without modifying firewalls or network routers. * Mesh networking: Connect all of your network clients to each other. Quickly and easily create a simple, virtual, mesh network that allows remote machines to directly connect to each other, thereby giving users basic network access to all the network resources they need. So, I wanted a private network for each client. I wanted a hub and spoke for each client because both of the other types (mesh and gateway) allow all computers to see each other. In most cases, these clients are a group of people who really don't want each other to see their shares etc. If you create a network from a client (as I did) instead of from the Hamachi Web page, then you automatically create a mesh network. Once you create a network from a client, I have never found a way to "connect" or subscribe that network into your online network management page. Bad news. So think carefully about the future and consider doing all of your network management from the web page. Essentially you create an Hamachi account which you can log in to. Once you do that you can create networks from that page, then send emails to people with invitations to join your networks. You get to "approve" the subscriptions. Because I had created all of my networks from the client on my laptop, they were all "mesh" networks, and everyone could see everyone. Even worse the visibility extended out of the network to other networks. Even worse than that, I started getting echos between the networks. IOW, because mu computer belonged to each of the mesg networks I would ping computers and get many different ping echos. If you are ever going to do a single network then fine (maybe) build it from one of the Hamachi clients. However if you ever anticipate doing multiple networks as I am doing, do yourself a favor and start from the Web page and always create your networks from there. -- John W. Colby www.ColbyConsulting.com From shamil at smsconsulting.spb.ru Sun Jan 30 18:23:45 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Mon, 31 Jan 2011 03:23:45 +0300 Subject: [dba-VB] Mercurial vs. SVN Message-ID: Hi All -- Does SVN support "ignore list" as Mercurial does? (I wanted to exclude binaries and some other files from add/commit batch without going through all of added/updated items manually every time on commit). I do use Tortoise SVN v.1.4.5, and I do not see "ignore list feature" - does Tortoise SVN 1.4.7 support this feature? Or can I define ignore list somehow else when working with SVN? Thank you. -- Shamil From shamil at smsconsulting.spb.ru Sun Jan 30 19:22:12 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Mon, 31 Jan 2011 04:22:12 +0300 Subject: [dba-VB] Localizing Silverlight Business Application In-Reply-To: References: Message-ID: <2C3D300F73144E6AA37430916F1F20EB@nant> Hi Gustav -- Thank you for your note. I'm not sure I will use SIlverLight in the development real soon but who knows... Do you use SilverLight "hard way" or via LightSwitch? 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: 30 ?????? 2011 ?. 19:00 To: dba-vb at databaseadvisors.com Subject: [dba-VB] Localizing Silverlight Business Application Hi all I had a lot of trouble adding dynamic culture selection to a Silverlight Business Application. But by combining info from these links I finally succeeded: http://johnlivingstontech.blogspot.com/2010/02/localizing-resources-in-silve rlight.html http://msdn.microsoft.com/en-us/library/dd941931(v=vs.95).aspx http://blogs.msdn.com/b/brada/archive/2010/03/22/silverlight-4-ria-services- ready-for-business-localizing-business-application.aspx The missing task which left the login labels untouched, was to add the localized resx files from the web project "as link" to the Web\Resources folder of the main project. This way all text for labels, error messages, tool tips, etc. are kept in separate resx files. Further, select a language in the combobox and the language changes instantaneously. Great! /gustav _______________________________________________ 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 Mon Jan 31 02:43:27 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 31 Jan 2011 09:43:27 +0100 Subject: [dba-VB] Mercurial vs. SVN Message-ID: Hi Shamil That's a very old version, current version is 1.6.something. The trick is the Shift key. From the help file: Hold the Shift key to get the extended context menu and select TortoiseSVN and Delete (keep local) to mark the file/folder for deletion from the repository without losing the local copy. /gustav >>> shamil at smsconsulting.spb.ru 31-01-2011 01:23 >>> Hi All -- Does SVN support "ignore list" as Mercurial does? (I wanted to exclude binaries and some other files from add/commit batch without going through all of added/updated items manually every time on commit). I do use Tortoise SVN v.1.4.5, and I do not see "ignore list feature" - does Tortoise SVN 1.4.7 support this feature? Or can I define ignore list somehow else when working with SVN? Thank you. -- Shamil From Gustav at cactus.dk Mon Jan 31 02:59:52 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 31 Jan 2011 09:59:52 +0100 Subject: [dba-VB] Localizing Silverlight Business Application Message-ID: Hi Shamil Yes, I have a small project where I would use Silverlight straight, also to gain some knowledge for programming to Windows Phone 7 - we just got our Samsung Omnia 7 last week to replace the seven year old Sony-Ericsson T610 which have served extremely well. I located a book: Pro Business Applications with Silverlight 4 by Chris Anderson http://apress.com/book/view/9781430272076 to obtain some support. /gustav >>> shamil at smsconsulting.spb.ru 31-01-2011 02:22 >>> Hi Gustav -- Thank you for your note. I'm not sure I will use SIlverLight in the development real soon but who knows... Do you use SilverLight "hard way" or via LightSwitch? 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: 30 ?????? 2011 ?. 19:00 To: dba-vb at databaseadvisors.com Subject: [dba-VB] Localizing Silverlight Business Application Hi all I had a lot of trouble adding dynamic culture selection to a Silverlight Business Application. But by combining info from these links I finally succeeded: http://johnlivingstontech.blogspot.com/2010/02/localizing-resources-in-silverlight.html http://msdn.microsoft.com/en-us/library/dd941931(v=vs.95).aspx http://blogs.msdn.com/b/brada/archive/2010/03/22/silverlight-4-ria-services-ready-for-business-localizing-business-application.aspx The missing task which left the login labels untouched, was to add the localized resx files from the web project "as link" to the Web\Resources folder of the main project. This way all text for labels, error messages, tool tips, etc. are kept in separate resx files. Further, select a language in the combobox and the language changes instantaneously. Great! /gustav From shamil at smsconsulting.spb.ru Mon Jan 31 05:33:29 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Mon, 31 Jan 2011 14:33:29 +0300 Subject: [dba-VB] Localizing Silverlight Business Application In-Reply-To: References: Message-ID: <438E214CF58F4A2492FD6F7C26AA8E19@nant> Hi Gustav -- Thank you for your additional notes on Silverlight and Windiows Phone 7. BTW, I have checked Samsung Omnia 7 seems to be available here to - it costs USD700: 1) it doesn't have EMS - no problem; 2) it doesn't support memory cards - shoudln't be an issue - it has 8GB of memory installed; -- Does Windows Phone 7 support MS SQL Server CE? What software is additionally needed to develop for Silverlight 4 using VS2010? Do you expect that Windows Phone 7 may become one of the main parts of your custom software development business in the near future? Not easy question I know, you can skip it :) 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: 31 ?????? 2011 ?. 12:00 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Localizing Silverlight Business Application Hi Shamil Yes, I have a small project where I would use Silverlight straight, also to gain some knowledge for programming to Windows Phone 7 - we just got our Samsung Omnia 7 last week to replace the seven year old Sony-Ericsson T610 which have served extremely well. I located a book: Pro Business Applications with Silverlight 4 by Chris Anderson http://apress.com/book/view/9781430272076 to obtain some support. /gustav >>> shamil at smsconsulting.spb.ru 31-01-2011 02:22 >>> Hi Gustav -- Thank you for your note. I'm not sure I will use SIlverLight in the development real soon but who knows... Do you use SilverLight "hard way" or via LightSwitch? 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: 30 ?????? 2011 ?. 19:00 To: dba-vb at databaseadvisors.com Subject: [dba-VB] Localizing Silverlight Business Application Hi all I had a lot of trouble adding dynamic culture selection to a Silverlight Business Application. But by combining info from these links I finally succeeded: http://johnlivingstontech.blogspot.com/2010/02/localizing-resources-in-silve rlight.html http://msdn.microsoft.com/en-us/library/dd941931(v=vs.95).aspx http://blogs.msdn.com/b/brada/archive/2010/03/22/silverlight-4-ria-services- ready-for-business-localizing-business-application.aspx The missing task which left the login labels untouched, was to add the localized resx files from the web project "as link" to the Web\Resources folder of the main project. This way all text for labels, error messages, tool tips, etc. are kept in separate resx files. Further, select a language in the combobox and the language changes instantaneously. Great! /gustav _______________________________________________ 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 Mon Jan 31 05:48:22 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Mon, 31 Jan 2011 14:48:22 +0300 Subject: [dba-VB] Mercurial vs. SVN In-Reply-To: References: Message-ID: Hi Gustav -- Thank you for your note. I should probably install newer version. But the one I have does support the feature of ignoring/making local individual files (filenames patterns) and *whole* folders. That is useful but that's not what I'm looking for/what exists in Mercurial it has more powerful feature to keep ignore list. BTW, SVN does inform that it added file/folder to the ignore list - is it possible to edit that list manually? If yes, where it's located? - I can find it - maybe you just know it from memory/used it: in Mercurial I usually just have a generic ignore list, which I'm putting in every new repository I create and then I'm adding specific files/filenames templates to that ignore list. Gustav, it's not a big issue - I can find my way using SVN via command lines - mainly wondering if I can skip making a batch which will use command line interface of SVN to "clean-up" local repository from some files/folders before committing it... BTW, https://bitbucket.org/ has an option of free unlimited code repositories up to 5 users... I haven't used it yet but I do plan to put all my important source code mirrored there in private code repository... 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: 31 ?????? 2011 ?. 11:43 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Mercurial vs. SVN Hi Shamil That's a very old version, current version is 1.6.something. The trick is the Shift key. From the help file: Hold the Shift key to get the extended context menu and select TortoiseSVN and Delete (keep local) to mark the file/folder for deletion from the repository without losing the local copy. /gustav >>> shamil at smsconsulting.spb.ru 31-01-2011 01:23 >>> Hi All -- Does SVN support "ignore list" as Mercurial does? (I wanted to exclude binaries and some other files from add/commit batch without going through all of added/updated items manually every time on commit). I do use Tortoise SVN v.1.4.5, and I do not see "ignore list feature" - does Tortoise SVN 1.4.7 support this feature? Or can I define ignore list somehow else when working with SVN? 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 Mon Jan 31 08:47:37 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 31 Jan 2011 15:47:37 +0100 Subject: [dba-VB] Mercurial vs. SVN Message-ID: Hi Shamil I don't know about these details of TortoiseSVN - I just used it for the Northwind project and never had any trouble - and stayed off the command line. Thanks for the tip (for Mercurial hosting) at bitbucket. However, I think I stay with TortoiseSVN and/or VisualSVN as they have worked fine for me. /gustav >>> shamil at smsconsulting.spb.ru 31-01-2011 12:48 >>> Hi Gustav -- Thank you for your note. I should probably install newer version. But the one I have does support the feature of ignoring/making local individual files (filenames patterns) and *whole* folders. That is useful but that's not what I'm looking for/what exists in Mercurial it has more powerful feature to keep ignore list. BTW, SVN does inform that it added file/folder to the ignore list - is it possible to edit that list manually? If yes, where it's located? - I can find it - maybe you just know it from memory/used it: in Mercurial I usually just have a generic ignore list, which I'm putting in every new repository I create and then I'm adding specific files/filenames templates to that ignore list. Gustav, it's not a big issue - I can find my way using SVN via command lines - mainly wondering if I can skip making a batch which will use command line interface of SVN to "clean-up" local repository from some files/folders before committing it... BTW, https://bitbucket.org/ has an option of free unlimited code repositories up to 5 users... I haven't used it yet but I do plan to put all my important source code mirrored there in private code repository... 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: 31 ?????? 2011 ?. 11:43 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Mercurial vs. SVN Hi Shamil That's a very old version, current version is 1.6.something. The trick is the Shift key. From the help file: Hold the Shift key to get the extended context menu and select TortoiseSVN and Delete (keep local) to mark the file/folder for deletion from the repository without losing the local copy. /gustav >>> shamil at smsconsulting.spb.ru 31-01-2011 01:23 >>> Hi All -- Does SVN support "ignore list" as Mercurial does? (I wanted to exclude binaries and some other files from add/commit batch without going through all of added/updated items manually every time on commit). I do use Tortoise SVN v.1.4.5, and I do not see "ignore list feature" - does Tortoise SVN 1.4.7 support this feature? Or can I define ignore list somehow else when working with SVN? Thank you. -- Shamil From Gustav at cactus.dk Mon Jan 31 09:07:30 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 31 Jan 2011 16:07:30 +0100 Subject: [dba-VB] Localizing Silverlight Business Application Message-ID: Hi Shamil No, WP7 does not support databases - you set up a service for data communication. That's one of the things I wish to check out. As for development software, start here: Getting Started with Windows Phone Development http://msdn.microsoft.com/en-us/library/ff402529(v=vs.92).aspx and visit the download page: Installing Windows Phone Developer Tools http://msdn.microsoft.com/en-us/library/ff402530(v=vs.92).aspx Code Samples for Windows Phone http://msdn.microsoft.com/en-us/library/ff431744(v=vs.92).aspx Windows Phone 7 Design Guidelines * Cheat Sheet http://blogs.msdn.com/b/silverlight_sdk/archive/2011/01/07/windows-phone-7-design-guidelines-cheat-sheet.aspx Also: How to Use the Windows Phone Connect Tool http://msdn.microsoft.com/en-us/library/gg180729(v=VS.92).aspx /gustav >>> shamil at smsconsulting.spb.ru 31-01-2011 12:33 >>> Hi Gustav -- Thank you for your additional notes on Silverlight and Windiows Phone 7. BTW, I have checked Samsung Omnia 7 seems to be available here to - it costs USD700: 1) it doesn't have EMS - no problem; 2) it doesn't support memory cards - shoudln't be an issue - it has 8GB of memory installed; -- Does Windows Phone 7 support MS SQL Server CE? What software is additionally needed to develop for Silverlight 4 using VS2010? Do you expect that Windows Phone 7 may become one of the main parts of your custom software development business in the near future? Not easy question I know, you can skip it :) Thank you. -- Shamil From shamil at smsconsulting.spb.ru Mon Jan 31 12:00:41 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Mon, 31 Jan 2011 21:00:41 +0300 Subject: [dba-VB] Localizing Silverlight Business Application In-Reply-To: References: Message-ID: <546CF087491E4AF89EC2591F8E693CA6@nant> Hi Gustav -- Thank you for the additional information and the links you have provided - I will use them for Windows Phone 7 "must have" set of links first place. And I guess Windows Phone 7 Developer Tools do have Windows Phone 7 Device simulator running under VS2010 when debugging/testing? 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: 31 ?????? 2011 ?. 18:08 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Localizing Silverlight Business Application Hi Shamil No, WP7 does not support databases - you set up a service for data communication. That's one of the things I wish to check out. As for development software, start here: Getting Started with Windows Phone Development http://msdn.microsoft.com/en-us/library/ff402529(v=vs.92).aspx and visit the download page: Installing Windows Phone Developer Tools http://msdn.microsoft.com/en-us/library/ff402530(v=vs.92).aspx Code Samples for Windows Phone http://msdn.microsoft.com/en-us/library/ff431744(v=vs.92).aspx Windows Phone 7 Design Guidelines * Cheat Sheet http://blogs.msdn.com/b/silverlight_sdk/archive/2011/01/07/windows-phone-7-d esign-guidelines-cheat-sheet.aspx Also: How to Use the Windows Phone Connect Tool http://msdn.microsoft.com/en-us/library/gg180729(v=VS.92).aspx /gustav >>> shamil at smsconsulting.spb.ru 31-01-2011 12:33 >>> Hi Gustav -- Thank you for your additional notes on Silverlight and Windiows Phone 7. BTW, I have checked Samsung Omnia 7 seems to be available here to - it costs USD700: 1) it doesn't have EMS - no problem; 2) it doesn't support memory cards - shoudln't be an issue - it has 8GB of memory installed; -- Does Windows Phone 7 support MS SQL Server CE? What software is additionally needed to develop for Silverlight 4 using VS2010? Do you expect that Windows Phone 7 may become one of the main parts of your custom software development business in the near future? Not easy question I know, you can skip 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 Mon Jan 31 12:19:52 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 31 Jan 2011 19:19:52 +0100 Subject: [dba-VB] Localizing Silverlight Business Application Message-ID: Hi Shamil Well, to some degree and probably for you and me. However, for media applications you may need the Windows Phone Connect Tool and a physical phone as I understand it (not tested by me). /gustav >>> shamil at smsconsulting.spb.ru 31-01-2011 19:00 >>> Hi Gustav -- Thank you for the additional information and the links you have provided - I will use them for Windows Phone 7 "must have" set of links first place. And I guess Windows Phone 7 Developer Tools do have Windows Phone 7 Device simulator running under VS2010 when debugging/testing? 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: 31 ?????? 2011 ?. 18:08 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Localizing Silverlight Business Application Hi Shamil No, WP7 does not support databases - you set up a service for data communication. That's one of the things I wish to check out. As for development software, start here: Getting Started with Windows Phone Development http://msdn.microsoft.com/en-us/library/ff402529(v=vs.92).aspx and visit the download page: Installing Windows Phone Developer Tools http://msdn.microsoft.com/en-us/library/ff402530(v=vs.92).aspx Code Samples for Windows Phone http://msdn.microsoft.com/en-us/library/ff431744(v=vs.92).aspx Windows Phone 7 Design Guidelines * Cheat Sheet http://blogs.msdn.com/b/silverlight_sdk/archive/2011/01/07/windows-phone-7-d esign-guidelines-cheat-sheet.aspx Also: How to Use the Windows Phone Connect Tool http://msdn.microsoft.com/en-us/library/gg180729(v=VS.92).aspx /gustav From shamil at smsconsulting.spb.ru Mon Jan 31 12:26:09 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Mon, 31 Jan 2011 21:26:09 +0300 Subject: [dba-VB] Localizing Silverlight Business Application In-Reply-To: References: Message-ID: <85D74A02917E458C862D28B12BD21AF6@nant> Hi Gustav -- Do Silverlight 4 applications need to use Windows Phone Connect Tool or Silverlight applications can be run locally in debug mode (with database backend used via a Web Service as you noted). Does Windows Phone support WinForms at all? Or all Windows Phone 7 apps run within Silverlight "shell"? (<- Sorry that question may sound silly...) BTW, here is ScottGu's link blog entry on Windows Phone 7 Developers tools: http://weblogs.asp.net/scottgu/archive/2010/09/16/windows-phone-7-developer- tools-released.aspx 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: 31 ?????? 2011 ?. 21:20 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Localizing Silverlight Business Application Hi Shamil Well, to some degree and probably for you and me. However, for media applications you may need the Windows Phone Connect Tool and a physical phone as I understand it (not tested by me). /gustav >>> shamil at smsconsulting.spb.ru 31-01-2011 19:00 >>> Hi Gustav -- Thank you for the additional information and the links you have provided - I will use them for Windows Phone 7 "must have" set of links first place. And I guess Windows Phone 7 Developer Tools do have Windows Phone 7 Device simulator running under VS2010 when debugging/testing? 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: 31 ?????? 2011 ?. 18:08 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Localizing Silverlight Business Application Hi Shamil No, WP7 does not support databases - you set up a service for data communication. That's one of the things I wish to check out. As for development software, start here: Getting Started with Windows Phone Development http://msdn.microsoft.com/en-us/library/ff402529(v=vs.92).aspx and visit the download page: Installing Windows Phone Developer Tools http://msdn.microsoft.com/en-us/library/ff402530(v=vs.92).aspx Code Samples for Windows Phone http://msdn.microsoft.com/en-us/library/ff431744(v=vs.92).aspx Windows Phone 7 Design Guidelines * Cheat Sheet http://blogs.msdn.com/b/silverlight_sdk/archive/2011/01/07/windows-phone-7-d esign-guidelines-cheat-sheet.aspx Also: How to Use the Windows Phone Connect Tool http://msdn.microsoft.com/en-us/library/gg180729(v=VS.92).aspx /gustav _______________________________________________ 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 Mon Jan 31 12:31:54 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Mon, 31 Jan 2011 21:31:54 +0300 Subject: [dba-VB] Mercurial vs. SVN In-Reply-To: References: Message-ID: <9931D85A29A94CD39BBB795EFA3DB088@nant> Hi Gustav -- OK. tryig to use this info here http://stackoverflow.com/questions/85353/best-general-svn-ignore-pattern still not sure how to make it working properly - tried via SVN->[Properties] but it somehow didn't work well... As for SVN and Mercurial and Northwind.CodePlex.com - I'm going to "cross" them: - I do use Mercurial locally but - in the next release on codeplex I do plan to commit Mercuarial repository entries within source code, so the one who uses SVN - will use it, then one who use Mercurial - will use it. That's a plan. I do not see why it can break. I could be missing something. I do plan to make a new "crossed" release on Northwind.codeplex.com this week. 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: 31 ?????? 2011 ?. 17:48 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Mercurial vs. SVN Hi Shamil I don't know about these details of TortoiseSVN - I just used it for the Northwind project and never had any trouble - and stayed off the command line. Thanks for the tip (for Mercurial hosting) at bitbucket. However, I think I stay with TortoiseSVN and/or VisualSVN as they have worked fine for me. /gustav >>> shamil at smsconsulting.spb.ru 31-01-2011 12:48 >>> Hi Gustav -- Thank you for your note. I should probably install newer version. But the one I have does support the feature of ignoring/making local individual files (filenames patterns) and *whole* folders. That is useful but that's not what I'm looking for/what exists in Mercurial it has more powerful feature to keep ignore list. BTW, SVN does inform that it added file/folder to the ignore list - is it possible to edit that list manually? If yes, where it's located? - I can find it - maybe you just know it from memory/used it: in Mercurial I usually just have a generic ignore list, which I'm putting in every new repository I create and then I'm adding specific files/filenames templates to that ignore list. Gustav, it's not a big issue - I can find my way using SVN via command lines - mainly wondering if I can skip making a batch which will use command line interface of SVN to "clean-up" local repository from some files/folders before committing it... BTW, https://bitbucket.org/ has an option of free unlimited code repositories up to 5 users... I haven't used it yet but I do plan to put all my important source code mirrored there in private code repository... 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: 31 ?????? 2011 ?. 11:43 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Mercurial vs. SVN Hi Shamil That's a very old version, current version is 1.6.something. The trick is the Shift key. From the help file: Hold the Shift key to get the extended context menu and select TortoiseSVN and Delete (keep local) to mark the file/folder for deletion from the repository without losing the local copy. /gustav >>> shamil at smsconsulting.spb.ru 31-01-2011 01:23 >>> Hi All -- Does SVN support "ignore list" as Mercurial does? (I wanted to exclude binaries and some other files from add/commit batch without going through all of added/updated items manually every time on commit). I do use Tortoise SVN v.1.4.5, and I do not see "ignore list feature" - does Tortoise SVN 1.4.7 support this feature? Or can I define ignore list somehow else when working with SVN? 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 Mon Jan 31 14:55:34 2011 From: gustav at cactus.dk (Gustav Brock) Date: Mon, 31 Jan 2011 21:55:34 +0100 Subject: [dba-VB] Localizing Silverlight Business Application Message-ID: Hi Shamil The Phone Connect is only needed for running apps that stream video and the like. I have no specifics, sorry. WP7 apps are Silverlight only for "normal" apps or XNA for games and highly graphic apps. No WinForms. Thanks for the link. That seems relevant to study. Scott Gu is a good presenter. /gustav >>> shamil at smsconsulting.spb.ru 31-01-2011 19:26 >>> Hi Gustav -- Do Silverlight 4 applications need to use Windows Phone Connect Tool or Silverlight applications can be run locally in debug mode (with database backend used via a Web Service as you noted). Does Windows Phone support WinForms at all? Or all Windows Phone 7 apps run within Silverlight "shell"? (<- Sorry that question may sound silly...) BTW, here is ScottGu's link blog entry on Windows Phone 7 Developers tools: http://weblogs.asp.net/scottgu/archive/2010/09/16/windows-phone-7-developer-tools-released.aspx 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: 31 ?????? 2011 ?. 21:20 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Localizing Silverlight Business Application Hi Shamil Well, to some degree and probably for you and me. However, for media applications you may need the Windows Phone Connect Tool and a physical phone as I understand it (not tested by me). /gustav >>> shamil at smsconsulting.spb.ru 31-01-2011 19:00 >>> Hi Gustav -- Thank you for the additional information and the links you have provided - I will use them for Windows Phone 7 "must have" set of links first place. And I guess Windows Phone 7 Developer Tools do have Windows Phone 7 Device simulator running under VS2010 when debugging/testing? 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: 31 ?????? 2011 ?. 18:08 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Localizing Silverlight Business Application Hi Shamil No, WP7 does not support databases - you set up a service for data communication. That's one of the things I wish to check out. As for development software, start here: Getting Started with Windows Phone Development http://msdn.microsoft.com/en-us/library/ff402529(v=vs.92).aspx and visit the download page: Installing Windows Phone Developer Tools http://msdn.microsoft.com/en-us/library/ff402530(v=vs.92).aspx Code Samples for Windows Phone http://msdn.microsoft.com/en-us/library/ff431744(v=vs.92).aspx Windows Phone 7 Design Guidelines * Cheat Sheet http://blogs.msdn.com/b/silverlight_sdk/archive/2011/01/07/windows-phone-7-design-guidelines-cheat-sheet.aspx Also: How to Use the Windows Phone Connect Tool http://msdn.microsoft.com/en-us/library/gg180729(v=VS.92).aspx /gustav From gustav at cactus.dk Mon Jan 31 15:05:02 2011 From: gustav at cactus.dk (Gustav Brock) Date: Mon, 31 Jan 2011 22:05:02 +0100 Subject: [dba-VB] Mercurial vs. SVN Message-ID: Hi Shamil That's beyond my experience. I only have had to exclude a few files (after they were created) and that worked fine. The patterns, I think, try to exclude files before creation. /gustav >>> shamil at smsconsulting.spb.ru 31-01-2011 19:31 >>> Hi Gustav -- OK. tryig to use this info here http://stackoverflow.com/questions/85353/best-general-svn-ignore-pattern still not sure how to make it working properly - tried via SVN->[Properties] but it somehow didn't work well... As for SVN and Mercurial and Northwind.CodePlex.com - I'm going to "cross" them: - I do use Mercurial locally but - in the next release on codeplex I do plan to commit Mercuarial repository entries within source code, so the one who uses SVN - will use it, then one who use Mercurial - will use it. That's a plan. I do not see why it can break. I could be missing something. I do plan to make a new "crossed" release on Northwind.codeplex.com this week. 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: 31 ?????? 2011 ?. 17:48 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Mercurial vs. SVN Hi Shamil I don't know about these details of TortoiseSVN - I just used it for the Northwind project and never had any trouble - and stayed off the command line. Thanks for the tip (for Mercurial hosting) at bitbucket. However, I think I stay with TortoiseSVN and/or VisualSVN as they have worked fine for me. /gustav >>> shamil at smsconsulting.spb.ru 31-01-2011 12:48 >>> Hi Gustav -- Thank you for your note. I should probably install newer version. But the one I have does support the feature of ignoring/making local individual files (filenames patterns) and *whole* folders. That is useful but that's not what I'm looking for/what exists in Mercurial it has more powerful feature to keep ignore list. BTW, SVN does inform that it added file/folder to the ignore list - is it possible to edit that list manually? If yes, where it's located? - I can find it - maybe you just know it from memory/used it: in Mercurial I usually just have a generic ignore list, which I'm putting in every new repository I create and then I'm adding specific files/filenames templates to that ignore list. Gustav, it's not a big issue - I can find my way using SVN via command lines - mainly wondering if I can skip making a batch which will use command line interface of SVN to "clean-up" local repository from some files/folders before committing it... BTW, https://bitbucket.org/ has an option of free unlimited code repositories up to 5 users... I haven't used it yet but I do plan to put all my important source code mirrored there in private code repository... 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: 31 ?????? 2011 ?. 11:43 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Mercurial vs. SVN Hi Shamil That's a very old version, current version is 1.6.something. The trick is the Shift key. From the help file: Hold the Shift key to get the extended context menu and select TortoiseSVN and Delete (keep local) to mark the file/folder for deletion from the repository without losing the local copy. /gustav >>> shamil at smsconsulting.spb.ru 31-01-2011 01:23 >>> Hi All -- Does SVN support "ignore list" as Mercurial does? (I wanted to exclude binaries and some other files from add/commit batch without going through all of added/updated items manually every time on commit). I do use Tortoise SVN v.1.4.5, and I do not see "ignore list feature" - does Tortoise SVN 1.4.7 support this feature? Or can I define ignore list somehow else when working with SVN? Thank you. -- Shamil From shamil at smsconsulting.spb.ru Mon Jan 31 18:08:44 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Tue, 1 Feb 2011 03:08:44 +0300 Subject: [dba-VB] Localizing Silverlight Business Application In-Reply-To: References: Message-ID: <9DD1A698D5A34EE5A52E0B9F7B01B992@nant> Hi Gustav -- I'm looking here for Windows Phone 7 OS features (it's not your device - just because I have found interesting review for Win Phone 7 OS and apps on this page) http://www.amazon.com/HTC-hd7-t-mobile-htc-locked/product-reviews/B004B3KANO /ref=dp_top_cm_cr_acr_txt?ie=UTF8&showViewpoints=1 Here is one excerpt: "The built in applications like Office let you view/edit word documents, view/edit excel documents, view powerpoint presentations, view/edit onenote, outlook - view your email from multiple providers - hotmail, google, yahoo, any email provider - very intuitive and easy to use interface. Internet Explorer - optimized and is a really good browser now; pinch to zoom and scrolling in internet explorer works perfectly, loading pages is excellent and fast - no real faults at all with the new internet explorer. Music/Videos player is basically the zune interface - beautiful; manages all your videos and music here and if you have a zune pass you can listen to your music from right here - this works in the background too and you can play games and surf the web using this application in the background. " Sounds useful. But this is what I'm not sure I'm understanding properly: "- No multitasking for third party apps - we need the ability to multi-task and choose what we want running in the background. Some apps really do need multitasking. " What third party apps are they talking about? SIlverlight custom apps do come loaded from Internet - right? If so - once loaded they block all the other apps? Sounds strange. Or do they mean custom XNA apps? Thank you. -- Shamil 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: 31 ?????? 2011 ?. 23:56 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Localizing Silverlight Business Application Hi Shamil The Phone Connect is only needed for running apps that stream video and the like. I have no specifics, sorry. WP7 apps are Silverlight only for "normal" apps or XNA for games and highly graphic apps. No WinForms. Thanks for the link. That seems relevant to study. Scott Gu is a good presenter. /gustav >>> shamil at smsconsulting.spb.ru 31-01-2011 19:26 >>> Hi Gustav -- Do Silverlight 4 applications need to use Windows Phone Connect Tool or Silverlight applications can be run locally in debug mode (with database backend used via a Web Service as you noted). Does Windows Phone support WinForms at all? Or all Windows Phone 7 apps run within Silverlight "shell"? (<- Sorry that question may sound silly...) BTW, here is ScottGu's link blog entry on Windows Phone 7 Developers tools: http://weblogs.asp.net/scottgu/archive/2010/09/16/windows-phone-7-developer- tools-released.aspx 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: 31 ?????? 2011 ?. 21:20 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Localizing Silverlight Business Application Hi Shamil Well, to some degree and probably for you and me. However, for media applications you may need the Windows Phone Connect Tool and a physical phone as I understand it (not tested by me). /gustav >>> shamil at smsconsulting.spb.ru 31-01-2011 19:00 >>> Hi Gustav -- Thank you for the additional information and the links you have provided - I will use them for Windows Phone 7 "must have" set of links first place. And I guess Windows Phone 7 Developer Tools do have Windows Phone 7 Device simulator running under VS2010 when debugging/testing? 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: 31 ?????? 2011 ?. 18:08 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Localizing Silverlight Business Application Hi Shamil No, WP7 does not support databases - you set up a service for data communication. That's one of the things I wish to check out. As for development software, start here: Getting Started with Windows Phone Development http://msdn.microsoft.com/en-us/library/ff402529(v=vs.92).aspx and visit the download page: Installing Windows Phone Developer Tools http://msdn.microsoft.com/en-us/library/ff402530(v=vs.92).aspx Code Samples for Windows Phone http://msdn.microsoft.com/en-us/library/ff431744(v=vs.92).aspx Windows Phone 7 Design Guidelines * Cheat Sheet http://blogs.msdn.com/b/silverlight_sdk/archive/2011/01/07/windows-phone-7-d esign-guidelines-cheat-sheet.aspx Also: How to Use the Windows Phone Connect Tool http://msdn.microsoft.com/en-us/library/gg180729(v=VS.92).aspx /gustav _______________________________________________ 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 Mon Jan 31 18:56:27 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Tue, 1 Feb 2011 03:56:27 +0300 Subject: [dba-VB] ASP.NET app's web design Message-ID: <062E05BFD6C84E1AA345CFA7955C369C@nant> Hi All -- I wanted to ask three questions to the list members who has made some graphics/knows well (at least in theory) what tools and principles are involved in that graphics design process: - 1) Is there any inexpensive graphic design tools, which allow to create designs as the following? (assumption that graphics designer is able to imagine and make such design is given by default and is not the subject of my questions) http://shamils-23.hosting.parking.ru/Prototype/ (Must have for such a tool should be a feature to make layered design built from several graphical components as well as the feature of setting transparent background for given color, drawing gradients but there is no need in that many fancy and cute features one can find in ADOBE Photoshop - just a set of feature to support development of simple and elegant Web 2.0 designs - that is required...) - 2) When such design is created is it completely manual work to convert it into a (set of) .css + graphics + .html? - 3) Do you see a lot of graphics will go into .css + graphics + .html from such a design or most of it can be presented by just .css + .html4 (maybe .html5)? (I do assume here that photos of the consumer good products are not the part of the design, as well as shadows, which can be ignore while porting graphic design from .psd into .css + .html if they are not part of photos)... - 4) Do you suppose that the referred above design can be made without HTML tables - by using
+ .css + as little as possible graphics? Thank you. -- Shamil From jwcolby at colbyconsulting.com Sun Jan 2 14:06:39 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sun, 02 Jan 2011 15:06:39 -0500 Subject: [dba-VB] A Sneaky, Subtle Price Increase | Overclockers Message-ID: <4D20DACF.1010107@colbyconsulting.com> http://www.overclockers.com/a-sneaky-subtle-price-increase/ -- John W. Colby www.ColbyConsulting.com From jwcolby at colbyconsulting.com Sun Jan 2 14:58:23 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sun, 02 Jan 2011 15:58:23 -0500 Subject: [dba-VB] A Sneaky, Subtle Price Increase | Overclockers In-Reply-To: <4D20DACF.1010107@colbyconsulting.com> References: <4D20DACF.1010107@colbyconsulting.com> Message-ID: <4D20E6EF.1020800@colbyconsulting.com> So sneaky they are still warning us 6 years later... 8( John W. Colby www.ColbyConsulting.com On 1/2/2011 3:06 PM, jwcolby wrote: > http://www.overclockers.com/a-sneaky-subtle-price-increase/ > > From shamil at smsconsulting.spb.ru Wed Jan 5 07:15:15 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Wed, 5 Jan 2011 16:15:15 +0300 Subject: [dba-VB] FYI: EF Code First CTP5 Message-ID: <9DC97BD82AA542F297C26482B27D669F@nant> Hi All -- FYI: EF Code First CTP5 http://www.infoq.com/news/2010/12/ef-ctp5 http://weblogs.asp.net/manavi/default.aspx Thank you. -- Shamil From Gustav at cactus.dk Wed Jan 5 08:41:30 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 05 Jan 2011 15:41:30 +0100 Subject: [dba-VB] Moving to .Net, ASP.NET web applications, and the Entity Framework Message-ID: Hi all A step-by-step intro for everyone, and this may be a bit optimistic but still: Build a Data-Driven Enterprise Web Site in 5 Minutes http://msdn.microsoft.com/da-dk/magazine/gg535665(en-us).aspx If this should interest you, please subscribe to our dba-VB list. /gustav From jwcolby at colbyconsulting.com Wed Jan 5 12:00:15 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 05 Jan 2011 13:00:15 -0500 Subject: [dba-VB] SQL Server security Message-ID: <4D24B1AF.3090800@colbyconsulting.com> I am having performance issues in a largish Access application, a Disability Insurance Claim call center app. I have one particular table which is not huge in terms of field count but it does have a lot of records and most of the fields are indexed, and it has about 800K records in it. This table holds "contact" info, as in phone calls that the users have. They document every "contact" with every one, claimants, doctors, lawyers, etc. into a memo field and also date of call, ClaimID FK, employee id FK, contact type id FK etc. Kind of a mini center of the universe for this application. The result is that people are storing new records in this table constantly throughout the day and we are getting a lot of "record locked..." issues caused by (AFAICT) the time it takes Jet to store the records and update all of the indexes, and probably the memo storage area of the mdb. Just to give a picture, this one table has been moved out to it's own mdb and that mdb is about 700 megabytes after a compact. Most of the rest of the database (150 tables) is in another mdb and after compact that database is 800 megabytes, so this one table is close to as big as the rest of the db. I do not have experience in a transactional database using SQL Server, but I am thinking that SQL Server express 2005 will not have an issue keeping up with this kind of usage - 25 users adding records to this table all day without causing locking issues like I am seeing now. My issue at this point is that they use a network logon and force the users to change their password every 30 days. Is SQL Server going to use that same network username / password database or does it use a list of usernames / passwords physically on the server itself? IOW will Windows authentication work or will I need to go to SQL Server username / password? -- John W. Colby www.ColbyConsulting.com From davidmcafee at gmail.com Wed Jan 5 12:21:15 2011 From: davidmcafee at gmail.com (David McAfee) Date: Wed, 5 Jan 2011 10:21:15 -0800 Subject: [dba-VB] SQL Server security In-Reply-To: <4D24B1AF.3090800@colbyconsulting.com> References: <4D24B1AF.3090800@colbyconsulting.com> Message-ID: You can choose either path. I tend to use SQL Server security myself. A better question is maybe looking at the design of the table for the contact info. I tend to design all data changes as insertions. Vary rarely to I allow a table to be edited. I display the contact information on just about every screen, but only give to choice to edit (if they have rights) when it is indeed needed. I never have locking issues in Access or SQL. D On Wed, Jan 5, 2011 at 10:00 AM, jwcolby wrote: > I am having performance issues in a largish Access application, a > Disability Insurance Claim call center app. > > I have one particular table which is not huge in terms of field count but > it does have a lot of records and most of the fields are indexed, and it has > about 800K records in it. This table holds "contact" info, as in phone > calls that the users have. They document every "contact" with every one, > claimants, doctors, lawyers, etc. into a memo field and also date of call, > ClaimID FK, employee id FK, contact type id FK etc. Kind of a mini center > of the universe for this application. > > The result is that people are storing new records in this table constantly > throughout the day and we are getting a lot of "record locked..." issues > caused by (AFAICT) the time it takes Jet to store the records and update all > of the indexes, and probably the memo storage area of the mdb. > > Just to give a picture, this one table has been moved out to it's own mdb > and that mdb is about 700 megabytes after a compact. Most of the rest of > the database (150 tables) is in another mdb and after compact that database > is 800 megabytes, so this one table is close to as big as the rest of the > db. > > I do not have experience in a transactional database using SQL Server, but > I am thinking that SQL Server express 2005 will not have an issue keeping up > with this kind of usage - 25 users adding records to this table all day > without causing locking issues like I am seeing now. > > My issue at this point is that they use a network logon and force the users > to change their password every 30 days. Is SQL Server going to use that > same network username / password database or does it use a list of usernames > / passwords physically on the server itself? IOW will Windows > authentication work or will I need to go to SQL Server username / password? > > -- > John W. Colby > www.ColbyConsulting.com > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From jwcolby at colbyconsulting.com Wed Jan 5 12:45:01 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 05 Jan 2011 13:45:01 -0500 Subject: [dba-VB] SQL Server security In-Reply-To: References: <4D24B1AF.3090800@colbyconsulting.com> Message-ID: <4D24BC2D.2050907@colbyconsulting.com> This is not contact info as in Name / address / phone, it is a place to enter information about telephone (mostly) contacts with everyone that the call center people talk to. It is primarily a memo field (because they often write pages of notes) with a hand full of FKs and a few date fields. These are primarily new records (inserts) but there are edits of existing records. There are about 800 THOUSAND of these records and hundreds a day added. John W. Colby www.ColbyConsulting.com On 1/5/2011 1:21 PM, David McAfee wrote: > You can choose either path. I tend to use SQL Server security myself. > > A better question is maybe looking at the design of the table for the > contact info. > > I tend to design all data changes as insertions. Vary rarely to I allow a > table to be edited. > > I display the contact information on just about every screen, but only give > to choice to edit (if they have rights) when it is indeed needed. > > I never have locking issues in Access or SQL. > > D > > On Wed, Jan 5, 2011 at 10:00 AM, jwcolbywrote: > >> I am having performance issues in a largish Access application, a >> Disability Insurance Claim call center app. >> >> I have one particular table which is not huge in terms of field count but >> it does have a lot of records and most of the fields are indexed, and it has >> about 800K records in it. This table holds "contact" info, as in phone >> calls that the users have. They document every "contact" with every one, >> claimants, doctors, lawyers, etc. into a memo field and also date of call, >> ClaimID FK, employee id FK, contact type id FK etc. Kind of a mini center >> of the universe for this application. >> >> The result is that people are storing new records in this table constantly >> throughout the day and we are getting a lot of "record locked..." issues >> caused by (AFAICT) the time it takes Jet to store the records and update all >> of the indexes, and probably the memo storage area of the mdb. >> >> Just to give a picture, this one table has been moved out to it's own mdb >> and that mdb is about 700 megabytes after a compact. Most of the rest of >> the database (150 tables) is in another mdb and after compact that database >> is 800 megabytes, so this one table is close to as big as the rest of the >> db. >> >> I do not have experience in a transactional database using SQL Server, but >> I am thinking that SQL Server express 2005 will not have an issue keeping up >> with this kind of usage - 25 users adding records to this table all day >> without causing locking issues like I am seeing now. >> >> My issue at this point is that they use a network logon and force the users >> to change their password every 30 days. Is SQL Server going to use that >> same network username / password database or does it use a list of usernames >> / passwords physically on the server itself? IOW will Windows >> authentication work or will I need to go to SQL Server username / password? >> >> -- >> 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 fhtapia at gmail.com Wed Jan 5 13:41:23 2011 From: fhtapia at gmail.com (Francisco Tapia) Date: Wed, 5 Jan 2011 11:41:23 -0800 Subject: [dba-VB] SQL Server security In-Reply-To: <4D24B1AF.3090800@colbyconsulting.com> References: <4D24B1AF.3090800@colbyconsulting.com> Message-ID: -Francisco http://bit.ly/sqlthis | Tsql and More... On Wed, Jan 5, 2011 at 10:00 AM, jwcolby wrote: > > I do not have experience in a transactional database using SQL Server, but > I am thinking that SQL Server express 2005 will not have an issue keeping up > with this kind of usage - 25 users adding records to this table all day > without causing locking issues like I am seeing now. > It's been a while since I did a conversion, I don't remember if you need to make all your fields varchar or nvarchar, but that's the gist. I remember also going unbound to simplify the data entry process, but ymmv with that piece of advise. We have SQL Server running in the backend for many of our transactional systems and we have > than 25 users all w/o locking problems. My issue at this point is that they use a network logon and force the users > to change their password every 30 days. Is SQL Server going to use that > same network username / password database or does it use a list of usernames > / passwords physically on the server itself? IOW will Windows > authentication work or will I need to go to SQL Server username / password? Windows Authentication will work just fine. To simplify the user to server problem, you'd want the network admin to add your users who have access to the application to a specific domain group... then just give access to the domain group. You can even put security around who has access to what based on domain group, works a treat. If you have too much difficulty with that you can always fall back to sql authentication, but I always prefer windows authentication except for the web apps we have... From michael at mattysconsulting.com Wed Jan 5 13:53:38 2011 From: michael at mattysconsulting.com (Michael Mattys) Date: Wed, 5 Jan 2011 14:53:38 -0500 Subject: [dba-VB] Moving to .Net, ASP.NET web applications, and the Entity Framework In-Reply-To: References: Message-ID: Hi Gustav / All I made the site, but found that, even after I made sure that I was running in .Net Framework 4, the Display(Name ...) mechanism doesn't work. Did you try this? Michael R Mattys Business Process Developers www.mattysconsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, January 05, 2011 9:42 AM To: accessd at databaseadvisors.com; dba-vb at databaseadvisors.com Subject: [dba-VB] Moving to .Net, ASP.NET web applications,and the Entity Framework Hi all A step-by-step intro for everyone, and this may be a bit optimistic but still: Build a Data-Driven Enterprise Web Site in 5 Minutes http://msdn.microsoft.com/da-dk/magazine/gg535665(en-us).aspx If this should interest you, please subscribe to our dba-VB list. /gustav _______________________________________________ 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 Jan 5 15:01:19 2011 From: gustav at cactus.dk (Gustav Brock) Date: Wed, 05 Jan 2011 22:01:19 +0100 Subject: [dba-VB] Moving to .Net, ASP.NET web applications, and the Entity Framework Message-ID: Hi Michael No I haven't tried to build the site. Maybe I can have a look in the weekend. /gustav >>> "Michael Mattys" 05-01-2011 20:53 >>> Hi Gustav / All I made the site, but found that, even after I made sure that I was running in .Net Framework 4, the Display(Name ...) mechanism doesn't work. Did you try this? Michael R Mattys Business Process Developers www.mattysconsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, January 05, 2011 9:42 AM To: accessd at databaseadvisors.com; dba-vb at databaseadvisors.com Subject: [dba-VB] Moving to .Net, ASP.NET web applications,and the Entity Framework Hi all A step-by-step intro for everyone, and this may be a bit optimistic but still: Build a Data-Driven Enterprise Web Site in 5 Minutes http://msdn.microsoft.com/da-dk/magazine/gg535665(en-us).aspx If this should interest you, please subscribe to our dba-VB list. /gustav From shamil at smsconsulting.spb.ru Wed Jan 5 15:47:44 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Thu, 6 Jan 2011 00:47:44 +0300 Subject: [dba-VB] Moving to .Net, ASP.NET web applications, and the Entity Framework In-Reply-To: References: Message-ID: Hi Michael -- [Display(Name = ....] gives CS0592: Attribute 'Display' is not valid on this declaration type. It is only valid on 'method, property, indexer, field, param' declarations. [DisplayName(....] works well. Thank you. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Michael Mattys Sent: 5 ?????? 2011 ?. 22:54 To: 'Discussion concerning Visual Basic and related programming issues.' Subject: Re: [dba-VB] Moving to .Net, ASP.NET web applications,and the Entity Framework Hi Gustav / All I made the site, but found that, even after I made sure that I was running in .Net Framework 4, the Display(Name ...) mechanism doesn't work. Did you try this? Michael R Mattys Business Process Developers www.mattysconsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, January 05, 2011 9:42 AM To: accessd at databaseadvisors.com; dba-vb at databaseadvisors.com Subject: [dba-VB] Moving to .Net, ASP.NET web applications,and the Entity Framework Hi all A step-by-step intro for everyone, and this may be a bit optimistic but still: Build a Data-Driven Enterprise Web Site in 5 Minutes http://msdn.microsoft.com/da-dk/magazine/gg535665(en-us).aspx If this should interest you, please subscribe to our dba-VB list. /gustav From michael at mattysconsulting.com Wed Jan 5 20:55:51 2011 From: michael at mattysconsulting.com (Michael Mattys) Date: Wed, 5 Jan 2011 21:55:51 -0500 Subject: [dba-VB] Moving to .Net, ASP.NET web applications, and the Entity Framework In-Reply-To: References: Message-ID: <0FFE4C308D6D4A30BEE3C5635FDB7E65@Gateway> Thanks, Shamil! Michael R Mattys Business Process Developers www.mattysconsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Wednesday, January 05, 2011 4:48 PM To: 'Discussion concerning Visual Basic and related programming issues.' Subject: Re: [dba-VB] Moving to .Net, ASP.NET web applications,and the Entity Framework Hi Michael -- [Display(Name = ....] gives CS0592: Attribute 'Display' is not valid on this declaration type. It is only valid on 'method, property, indexer, field, param' declarations. [DisplayName(....] works well. Thank you. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Michael Mattys Sent: 5 ?????? 2011 ?. 22:54 To: 'Discussion concerning Visual Basic and related programming issues.' Subject: Re: [dba-VB] Moving to .Net, ASP.NET web applications,and the Entity Framework Hi Gustav / All I made the site, but found that, even after I made sure that I was running in .Net Framework 4, the Display(Name ...) mechanism doesn't work. Did you try this? Michael R Mattys Business Process Developers www.mattysconsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, January 05, 2011 9:42 AM To: accessd at databaseadvisors.com; dba-vb at databaseadvisors.com Subject: [dba-VB] Moving to .Net, ASP.NET web applications,and the Entity Framework Hi all A step-by-step intro for everyone, and this may be a bit optimistic but still: Build a Data-Driven Enterprise Web Site in 5 Minutes http://msdn.microsoft.com/da-dk/magazine/gg535665(en-us).aspx If this should interest you, please subscribe to our dba-VB list. /gustav _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From paul.hartland at googlemail.com Wed Jan 5 23:15:51 2011 From: paul.hartland at googlemail.com (Paul Hartland) Date: Thu, 6 Jan 2011 05:15:51 +0000 Subject: [dba-VB] SQL Server security In-Reply-To: <4D24B1AF.3090800@colbyconsulting.com> References: <4D24B1AF.3090800@colbyconsulting.com> Message-ID: John, I remember we had a similar problem at my old company many years back, especially with one table. Our simple solution (which surprised me that it worked) was to add two fields to the table a TimeStamp field and a UniqueIdentifier field (think those are the names of the datatypes in SQL). You could try that first. Paul On 5 January 2011 18:00, jwcolby wrote: > I am having performance issues in a largish Access application, a > Disability Insurance Claim call center app. > > I have one particular table which is not huge in terms of field count but > it does have a lot of records and most of the fields are indexed, and it has > about 800K records in it. This table holds "contact" info, as in phone > calls that the users have. They document every "contact" with every one, > claimants, doctors, lawyers, etc. into a memo field and also date of call, > ClaimID FK, employee id FK, contact type id FK etc. Kind of a mini center > of the universe for this application. > > The result is that people are storing new records in this table constantly > throughout the day and we are getting a lot of "record locked..." issues > caused by (AFAICT) the time it takes Jet to store the records and update all > of the indexes, and probably the memo storage area of the mdb. > > Just to give a picture, this one table has been moved out to it's own mdb > and that mdb is about 700 megabytes after a compact. Most of the rest of > the database (150 tables) is in another mdb and after compact that database > is 800 megabytes, so this one table is close to as big as the rest of the > db. > > I do not have experience in a transactional database using SQL Server, but > I am thinking that SQL Server express 2005 will not have an issue keeping up > with this kind of usage - 25 users adding records to this table all day > without causing locking issues like I am seeing now. > > My issue at this point is that they use a network logon and force the users > to change their password every 30 days. Is SQL Server going to use that > same network username / password database or does it use a list of usernames > / passwords physically on the server itself? IOW will Windows > authentication work or will I need to go to SQL Server username / password? > > -- > 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 > > -- Paul Hartland paul.hartland at googlemail.com From marklbreen at gmail.com Thu Jan 6 03:10:37 2011 From: marklbreen at gmail.com (Mark Breen) Date: Thu, 6 Jan 2011 09:10:37 +0000 Subject: [dba-VB] SQL Server security In-Reply-To: <4D24B1AF.3090800@colbyconsulting.com> References: <4D24B1AF.3090800@colbyconsulting.com> Message-ID: Hello John, I had an almost exact issue about three months ago. It was a call centre with about 25 - 40 agents on the phone with an Access App. When they upgraded to Access 2007, the whole application ground to a halt. I did some basic checking but could find no single issue, so I downgraded them again to Access 2000 FE and BE and immediately all was ok again. Any help? thanks Mark On 5 January 2011 18:00, jwcolby wrote: > I am having performance issues in a largish Access application, a > Disability Insurance Claim call center app. > > I have one particular table which is not huge in terms of field count but > it does have a lot of records and most of the fields are indexed, and it has > about 800K records in it. This table holds "contact" info, as in phone > calls that the users have. They document every "contact" with every one, > claimants, doctors, lawyers, etc. into a memo field and also date of call, > ClaimID FK, employee id FK, contact type id FK etc. Kind of a mini center > of the universe for this application. > > The result is that people are storing new records in this table constantly > throughout the day and we are getting a lot of "record locked..." issues > caused by (AFAICT) the time it takes Jet to store the records and update all > of the indexes, and probably the memo storage area of the mdb. > > Just to give a picture, this one table has been moved out to it's own mdb > and that mdb is about 700 megabytes after a compact. Most of the rest of > the database (150 tables) is in another mdb and after compact that database > is 800 megabytes, so this one table is close to as big as the rest of the > db. > > I do not have experience in a transactional database using SQL Server, but > I am thinking that SQL Server express 2005 will not have an issue keeping up > with this kind of usage - 25 users adding records to this table all day > without causing locking issues like I am seeing now. > > My issue at this point is that they use a network logon and force the users > to change their password every 30 days. Is SQL Server going to use that > same network username / password database or does it use a list of usernames > / passwords physically on the server itself? IOW will Windows > authentication work or will I need to go to SQL Server username / password? > > -- > John W. Colby > www.ColbyConsulting.com > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From jwcolby at colbyconsulting.com Thu Jan 6 05:14:49 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 06 Jan 2011 06:14:49 -0500 Subject: [dba-VB] SQL Server security In-Reply-To: References: <4D24B1AF.3090800@colbyconsulting.com> Message-ID: <4D25A429.5030609@colbyconsulting.com> This app has been in use since I developed the initial iteration many years ago. It is still at Access 2000. John W. Colby www.ColbyConsulting.com On 1/6/2011 4:10 AM, Mark Breen wrote: > Hello John, > > I had an almost exact issue about three months ago. It was a call centre > with about 25 - 40 agents on the phone with an Access App. > > When they upgraded to Access 2007, the whole application ground to a halt. > > I did some basic checking but could find no single issue, so I downgraded > them again to Access 2000 FE and BE and immediately all was ok again. > > Any help? > > thanks > > Mark > > > > On 5 January 2011 18:00, jwcolby wrote: > >> I am having performance issues in a largish Access application, a >> Disability Insurance Claim call center app. >> >> I have one particular table which is not huge in terms of field count but >> it does have a lot of records and most of the fields are indexed, and it has >> about 800K records in it. This table holds "contact" info, as in phone >> calls that the users have. They document every "contact" with every one, >> claimants, doctors, lawyers, etc. into a memo field and also date of call, >> ClaimID FK, employee id FK, contact type id FK etc. Kind of a mini center >> of the universe for this application. >> >> The result is that people are storing new records in this table constantly >> throughout the day and we are getting a lot of "record locked..." issues >> caused by (AFAICT) the time it takes Jet to store the records and update all >> of the indexes, and probably the memo storage area of the mdb. >> >> Just to give a picture, this one table has been moved out to it's own mdb >> and that mdb is about 700 megabytes after a compact. Most of the rest of >> the database (150 tables) is in another mdb and after compact that database >> is 800 megabytes, so this one table is close to as big as the rest of the >> db. >> >> I do not have experience in a transactional database using SQL Server, but >> I am thinking that SQL Server express 2005 will not have an issue keeping up >> with this kind of usage - 25 users adding records to this table all day >> without causing locking issues like I am seeing now. >> >> My issue at this point is that they use a network logon and force the users >> to change their password every 30 days. Is SQL Server going to use that >> same network username / password database or does it use a list of usernames >> / passwords physically on the server itself? IOW will Windows >> authentication work or will I need to go to SQL Server username / password? >> >> -- >> 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 Fri Jan 7 23:01:31 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 08 Jan 2011 00:01:31 -0500 Subject: [dba-VB] Access - link to SQL database -Database not showing Message-ID: <4D27EFAB.5040200@colbyconsulting.com> I have installed SQL Server 2005 on a (remote) Windows 2000 server machine at the client. From my workstation at the client I then open SQL Server MSExpress 2005 and I can see that SQL Server Express instance and two databases that I created on that SQL Server Express instance. From Access I try to link to a table in one of those databases. When I get to the wizard page where I am allowed to change the default database, I cannot see either of the two databases that I need to get at, only the master, msdb and tempdb. I was having a problem where I could not connect and had to open the surface configuration and allow remote connections. I selected TCP AND named pipes. That allowed MSE to see that server as well as Access to see that server, but it does not yet allow me to see the actual database of interest. Any clue why? I have done this before here at my office and I could always see the databases. TIA, -- John W. Colby www.ColbyConsulting.com From jwcolby at colbyconsulting.com Fri Jan 7 23:06:11 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 08 Jan 2011 00:06:11 -0500 Subject: [dba-VB] Further to "can's see SQL Server database... Message-ID: <4D27F0C3.2030206@colbyconsulting.com> I went back in with MSE and looked at that server. While I can see the databases of interest, if I click on them and try to see the tables inside, I get an error "the database DISCO is not available" and the plus symbol in front of the database disappears. So I can see that the db exists but not actually access it (from my workstation). I can see and open the database from MSE on the server itself. Is this an ownership / rights kind of issue? I am not getting an actual error number from my workstation, just an "not available" generic kind of message. If it is ownership / rights, how do I go about discovering how to fix it? -- John W. Colby www.ColbyConsulting.com From marklbreen at gmail.com Sat Jan 8 09:34:58 2011 From: marklbreen at gmail.com (Mark Breen) Date: Sat, 8 Jan 2011 15:34:58 +0000 Subject: [dba-VB] Further to "can's see SQL Server database... In-Reply-To: <4D27F0C3.2030206@colbyconsulting.com> References: <4D27F0C3.2030206@colbyconsulting.com> Message-ID: Hello John, In this case, I would like to know whether there is a database corruption issue or a connectivity. What about quickly creating a new db names testconn and see if you can connect to that. If it works and disco does not, then quickly check the db mappings from the properties dialog box. If you are mapped and you think that you should be able to see it, then maybe the db is corrupt. A few things to do are, stop and start the server, then refresh the branch and check again. Detach and re-attach the db and see if it helps Start thinking about a restore is that any help? I have seen ghost db's hang around but usually the three-step dance of stop start services, reboot, delete again etc will remove it. HTH Mark On 8 January 2011 05:06, jwcolby wrote: > I went back in with MSE and looked at that server. While I can see the > databases of interest, if I click on them and try to see the tables inside, > I get an error "the database DISCO is not available" and the plus symbol in > front of the database disappears. > > So I can see that the db exists but not actually access it (from my > workstation). > > I can see and open the database from MSE on the server itself. > > Is this an ownership / rights kind of issue? I am not getting an actual > error number from my workstation, just an "not available" generic kind of > message. > > If it is ownership / rights, how do I go about discovering how to fix it? > > -- > John W. Colby > www.ColbyConsulting.com > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From jwcolby at colbyconsulting.com Sat Jan 8 10:49:13 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 08 Jan 2011 11:49:13 -0500 Subject: [dba-VB] Further to "can's see SQL Server database... In-Reply-To: References: <4D27F0C3.2030206@colbyconsulting.com> Message-ID: <4D289589.2020503@colbyconsulting.com> Thanks for the response Mark. The server is called DiscoSvr and is a Windows 2000 x32 server, with 4G ram. It has Office (and Access) 2000 installed. It resides on a network at my client where they have between 40 and 50 workstations on the network, about 25 of which use the Access database. The network consists of two segments physically located in two immediately adjacent wings of a small office building They have a switch in one building and everyone in that building (two floors) ties into that switch, with a single gb line running over to the second wing and into the server room. The second wing has it's own switch and a wire that ties into the same switch as the gb line from the first building, from there into the server. *Probably* none of that is relevant but that is the layout. The client runs about 25 workstations scattered throughout the two wings of the building into DiscoSvr which acts as the file server for the DISCO database. Everyone (including my workstation) is able to get into DISCO running on DiscoSvr so physical access is not the issue, and physical file access rights are not the issue. I have a handful of FEs linked to about 5 different Access BEs. One of these BEs is the one of interest here and has a single tblClaimContact with a memo field to hold details of any kind of contact, mostly phone. The user types into this memo field paragraphs or even pages of details of phone conversations with every single person they have a phone conversation with. This table has just under 800K records and the Access BE that holds this table is about 700Megs after a compact. It is this one table that I am trying to create a SQL Server Express 2005 database for and a table in that database. SQL Server 2008 will not install on a Windows 2000 OS so I installed SQL Server 2005 Express on the system, using the Admin user of DISCO Server. As that Admin user and SSMS Express 2005 I can see the server, and create databases etc. Once I was able to do all of this with the Admin directly on the server I switched to my workstation and started trying from there. I installed SMSS 2005 Express on my workstation and could then see the database. Originally I could not even see the new server. I had to go back to DiscoSvr as an admin, run the surface config wizard and allow remote access using named pipes (not sure if I even need that) and TCP. I did stop and restart the SQLServer Express service, though I did not reboot the server. Back at my workstation I can now see the new server and browse the databases and can see and physically open the admin databases, see the tables etc, all from my workstation. I tried but I was unable to use the Access upsize wizard because it did not want to see the SQL Server 2005 express instance, from Access 2000 running right on DiscoSvr. I assumed that the issue was Access 2000 not understanding SQL Server 2005 or something. Given that the upsize wizard was giving me the ever helpful one word error message, I stopped that avenue. So I went into SSMS Express and I created a database locally basically using the import data tool from inside of sql server, telling it the source was an Access database. It created the table but failed to import the data. Since both of those failed, I then zipped the BE and moved it to my office server where I happened to have SQL Server Express 2005 installed as well as Office (and Access) 2003. Once I did that I was able to use Access 2003 upsize wizard to create a database and a table and upsize the data. I backed up the database, zipped the backup, uploaded that back to DISCOSvr and uses SSMS Express there to restore the database. SSMSE can see the database, can open the table etc. DIRECTLY FROM DiscoSvr as the admin user. Now that I have the table in a SQL Server database I am trying to link the FE to that table using the link table wizard in Access - from my workstation. That wizard can see the SQL Server and it can see the admin databases but it cannot even see the net database(s) that I created using the Admin user directly on DiscoSvr. When I open SSMSE from my workstation, it can see and manipulate the built in Admin databases and it can *see* but cannot even expand the two databases that I manually created on SQL Server. John W. Colby www.ColbyConsulting.com On 1/8/2011 10:34 AM, Mark Breen wrote: > Hello John, > > In this case, I would like to know whether there is a database corruption > issue or a connectivity. > > What about quickly creating a new db names testconn and see if you can > connect to that. > > If it works and disco does not, then quickly check the db mappings from the > properties dialog box. > > If you are mapped and you think that you should be able to see it, then > maybe the db is corrupt. > > A few things to do are, stop and start the server, then refresh the branch > and check again. > > Detach and re-attach the db and see if it helps > > Start thinking about a restore > > is that any help? > > I have seen ghost db's hang around but usually the three-step dance of stop > start services, reboot, delete again etc will remove it. > > HTH > > Mark > > > On 8 January 2011 05:06, jwcolby wrote: > >> I went back in with MSE and looked at that server. While I can see the >> databases of interest, if I click on them and try to see the tables inside, >> I get an error "the database DISCO is not available" and the plus symbol in >> front of the database disappears. >> >> So I can see that the db exists but not actually access it (from my >> workstation). >> >> I can see and open the database from MSE on the server itself. >> >> Is this an ownership / rights kind of issue? I am not getting an actual >> error number from my workstation, just an "not available" generic kind of >> message. >> >> If it is ownership / rights, how do I go about discovering how to fix it? >> >> -- >> 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 Sat Jan 8 16:19:42 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 08 Jan 2011 17:19:42 -0500 Subject: [dba-VB] How can it be Message-ID: <4D28E2FE.1020207@colbyconsulting.com> I have noticed that when I create a VM on my Windows 2008 server with HyperV, the virtual machine's cpu can be pegged in Task Manager Performance, and yet none of the 8 cores even raises an eyebrow in task manager inside of Windows 2008 itself. In Windows 2003 using VMWare, I would see one (or more) of the cores in the server software start chugging when the VMWare VM started working hard. Is it because Hyper V assignes the core outside of Windows itself? IOW Hyper V installs before the Windows software itself does. Is it actually assigning CPU cycles for one or more cores "outside of" Windows. If so is there a utility to see the actual core usage in Hyper V itself? -- John W. Colby www.ColbyConsulting.com From accessd at shaw.ca Sat Jan 8 20:37:46 2011 From: accessd at shaw.ca (Jim Lawrence) Date: Sat, 8 Jan 2011 18:37:46 -0800 Subject: [dba-VB] How can it be In-Reply-To: <4D28E2FE.1020207@colbyconsulting.com> References: <4D28E2FE.1020207@colbyconsulting.com> Message-ID: I am really not sure but a fellow tech said look at the number of copies of svchost.exe processes running... why their process is not reflected in the CPU is another question. Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Saturday, January 08, 2011 2:20 PM To: Access Developers discussion and problem solving; VBA Subject: [dba-VB] How can it be I have noticed that when I create a VM on my Windows 2008 server with HyperV, the virtual machine's cpu can be pegged in Task Manager Performance, and yet none of the 8 cores even raises an eyebrow in task manager inside of Windows 2008 itself. In Windows 2003 using VMWare, I would see one (or more) of the cores in the server software start chugging when the VMWare VM started working hard. Is it because Hyper V assignes the core outside of Windows itself? IOW Hyper V installs before the Windows software itself does. Is it actually assigning CPU cycles for one or more cores "outside of" Windows. If so is there a utility to see the actual core usage in Hyper V itself? -- 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 gustav at cactus.dk Sun Jan 9 08:12:08 2011 From: gustav at cactus.dk (Gustav Brock) Date: Sun, 09 Jan 2011 15:12:08 +0100 Subject: [dba-VB] LINQ Compiled Query Message-ID: Hi all Has anyone tested this technique out: http://www.blog.ingenuitynow.net/15+Minutes+On+LINQ+Compiled+Queries.aspx It looks quite simple to implement. /gustav From shamil at smsconsulting.spb.ru Sun Jan 9 08:20:21 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sun, 9 Jan 2011 17:20:21 +0300 Subject: [dba-VB] LINQ Compiled Query In-Reply-To: References: Message-ID: <28118F262BBF49899D453DE9CCBF3D11@nant> Hi Gustav -- No, I didn't. One of comments says: "I feel this compiled query approach is cumbersome. Image your application has 100 linq queries, you have to create 100 helper classes, and another 100 static functions. I wish Microsoft provides an easily way, maybe some syntax sugar, or some more magics in DataContent, to make programmer life easier. " 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: 9 ?????? 2011 ?. 17:12 To: dba-vb at databaseadvisors.com Subject: [dba-VB] LINQ Compiled Query Hi all Has anyone tested this technique out: http://www.blog.ingenuitynow.net/15+Minutes+On+LINQ+Compiled+Queries.aspx It looks quite simple to implement. /gustav From gustav at cactus.dk Sun Jan 9 09:00:22 2011 From: gustav at cactus.dk (Gustav Brock) Date: Sun, 09 Jan 2011 16:00:22 +0100 Subject: [dba-VB] LINQ Compiled Query Message-ID: Hi Shamil Yes, I noticed that comment and think it is valid. However, if you have a crucial query in, say, a loop it could be worth the efforts. /gustav >>> shamil at smsconsulting.spb.ru 09-01-2011 15:20 >>> Hi Gustav -- No, I didn't. One of comments says: "I feel this compiled query approach is cumbersome. Image your application has 100 linq queries, you have to create 100 helper classes, and another 100 static functions. I wish Microsoft provides an easily way, maybe some syntax sugar, or some more magics in DataContent, to make programmer life easier. " 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: 9 ?????? 2011 ?. 17:12 To: dba-vb at databaseadvisors.com Subject: [dba-VB] LINQ Compiled Query Hi all Has anyone tested this technique out: http://www.blog.ingenuitynow.net/15+Minutes+On+LINQ+Compiled+Queries.aspx It looks quite simple to implement. /gustav From shamil at smsconsulting.spb.ru Sun Jan 9 09:55:07 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sun, 9 Jan 2011 18:55:07 +0300 Subject: [dba-VB] LINQ Compiled Query In-Reply-To: References: Message-ID: Hi Gustav -- <<< However, if you have a crucial query in, say, a loop it could be worth the efforts. >>> Shouldn't LINQ be "smart enough" to not rebuild dynamic queries when that used in a loop? (of course if LINQ expression is not forcibly destroyed (by developer) at the end of every cycle iteration). I'd guess even if they get forcibly destoryed LINQ coudl somehow keep parsed&compiled LINQ expression cached... It's a very smart technology... (nothing new - all the principles used in (P)LINQ are known for years but that's the first time such a technology released to the business applications developers?) 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: 9 ?????? 2011 ?. 18:00 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] LINQ Compiled Query Hi Shamil Yes, I noticed that comment and think it is valid. However, if you have a crucial query in, say, a loop it could be worth the efforts. /gustav >>> shamil at smsconsulting.spb.ru 09-01-2011 15:20 >>> Hi Gustav -- No, I didn't. One of comments says: "I feel this compiled query approach is cumbersome. Image your application has 100 linq queries, you have to create 100 helper classes, and another 100 static functions. I wish Microsoft provides an easily way, maybe some syntax sugar, or some more magics in DataContent, to make programmer life easier. " 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: 9 ?????? 2011 ?. 17:12 To: dba-vb at databaseadvisors.com Subject: [dba-VB] LINQ Compiled Query Hi all Has anyone tested this technique out: http://www.blog.ingenuitynow.net/15+Minutes+On+LINQ+Compiled+Queries.aspx It looks quite simple to implement. /gustav _______________________________________________ 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 Jan 9 11:30:04 2011 From: gustav at cactus.dk (Gustav Brock) Date: Sun, 09 Jan 2011 18:30:04 +0100 Subject: [dba-VB] LINQ Compiled Query Message-ID: Hi Shamil I have no idea - and things may have evolved from 2008 to 2010. Perhaps the only "trick" is to wrap the LINQ query in a static class? But no ... I browsed a little and found this from a year ago: EF 4.0 & compiled queries & performance http://social.msdn.microsoft.com/Forums/en/adonetefx/thread/0c07e1d6-7db6-4348-b106-e576d3153b70 which demonstrates a dramatic speed increase for repeated runs of a compiled query. It also provides this link which seems to explain what is going on: Precompiling LINQ Queries by Julie Lerman http://msdn.microsoft.com/en-gb/magazine/ee336024.aspx /gustav PS: All MSDN Magazines can be browsed from here: http://msdn.microsoft.com/en-gb/magazine/ee310108.aspx >>> shamil at smsconsulting.spb.ru 09-01-2011 16:55 >>> Hi Gustav -- <<< However, if you have a crucial query in, say, a loop it could be worth the efforts. >>> Shouldn't LINQ be "smart enough" to not rebuild dynamic queries when that used in a loop? (of course if LINQ expression is not forcibly destroyed (by developer) at the end of every cycle iteration). I'd guess even if they get forcibly destoryed LINQ coudl somehow keep parsed&compiled LINQ expression cached... It's a very smart technology... (nothing new - all the principles used in (P)LINQ are known for years but that's the first time such a technology released to the business applications developers?) 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: 9 ?????? 2011 ?. 18:00 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] LINQ Compiled Query Hi Shamil Yes, I noticed that comment and think it is valid. However, if you have a crucial query in, say, a loop it could be worth the efforts. /gustav >>> shamil at smsconsulting.spb.ru 09-01-2011 15:20 >>> Hi Gustav -- No, I didn't. One of comments says: "I feel this compiled query approach is cumbersome. Image your application has 100 linq queries, you have to create 100 helper classes, and another 100 static functions. I wish Microsoft provides an easily way, maybe some syntax sugar, or some more magics in DataContent, to make programmer life easier. " 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: 9 ?????? 2011 ?. 17:12 To: dba-vb at databaseadvisors.com Subject: [dba-VB] LINQ Compiled Query Hi all Has anyone tested this technique out: http://www.blog.ingenuitynow.net/15+Minutes+On+LINQ+Compiled+Queries.aspx It looks quite simple to implement. /gustav From shamil at smsconsulting.spb.ru Sun Jan 9 17:08:03 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Mon, 10 Jan 2011 02:08:03 +0300 Subject: [dba-VB] LINQ Compiled Query In-Reply-To: References: Message-ID: Hi Gustav -- <<< Precompiling LINQ Queries by Julie Lerman http://msdn.microsoft.com/en-gb/magazine/ee336024.aspx >>> Yes, that's a very good article, thank you. Is it interesting what will happen when two or more threads (on ASP.NET app/service, WCF service, ....) will try to use the same static compiled LINQ query (with different parameters)? Will the first thread block the others till query execution finishes? (I'm copying here refererred article's code sample) static Func _custByID; public static Customer GetCustomer( int ID) { //test for an existing instance of the compiled query if (_custByID == null) { _custByID = CompiledQuery.Compile ((ctx, id) => ctx.Customers.Where(c => c.CustomerID == id).Single()); } return _custByID.Invoke(_context, ID); } 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: 9 ?????? 2011 ?. 20:30 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] LINQ Compiled Query Hi Shamil I have no idea - and things may have evolved from 2008 to 2010. Perhaps the only "trick" is to wrap the LINQ query in a static class? But no ... I browsed a little and found this from a year ago: EF 4.0 & compiled queries & performance http://social.msdn.microsoft.com/Forums/en/adonetefx/thread/0c07e1d6-7db6-43 48-b106-e576d3153b70 which demonstrates a dramatic speed increase for repeated runs of a compiled query. It also provides this link which seems to explain what is going on: Precompiling LINQ Queries by Julie Lerman http://msdn.microsoft.com/en-gb/magazine/ee336024.aspx /gustav PS: All MSDN Magazines can be browsed from here: http://msdn.microsoft.com/en-gb/magazine/ee310108.aspx >>> shamil at smsconsulting.spb.ru 09-01-2011 16:55 >>> Hi Gustav -- <<< However, if you have a crucial query in, say, a loop it could be worth the efforts. >>> Shouldn't LINQ be "smart enough" to not rebuild dynamic queries when that used in a loop? (of course if LINQ expression is not forcibly destroyed (by developer) at the end of every cycle iteration). I'd guess even if they get forcibly destoryed LINQ coudl somehow keep parsed&compiled LINQ expression cached... It's a very smart technology... (nothing new - all the principles used in (P)LINQ are known for years but that's the first time such a technology released to the business applications developers?) 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: 9 ?????? 2011 ?. 18:00 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] LINQ Compiled Query Hi Shamil Yes, I noticed that comment and think it is valid. However, if you have a crucial query in, say, a loop it could be worth the efforts. /gustav >>> shamil at smsconsulting.spb.ru 09-01-2011 15:20 >>> Hi Gustav -- No, I didn't. One of comments says: "I feel this compiled query approach is cumbersome. Image your application has 100 linq queries, you have to create 100 helper classes, and another 100 static functions. I wish Microsoft provides an easily way, maybe some syntax sugar, or some more magics in DataContent, to make programmer life easier. " 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: 9 ?????? 2011 ?. 17:12 To: dba-vb at databaseadvisors.com Subject: [dba-VB] LINQ Compiled Query Hi all Has anyone tested this technique out: http://www.blog.ingenuitynow.net/15+Minutes+On+LINQ+Compiled+Queries.aspx It looks quite simple to implement. /gustav From Gustav at cactus.dk Mon Jan 10 05:44:57 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 10 Jan 2011 12:44:57 +0100 Subject: [dba-VB] LINQ Compiled Query Message-ID: Hi Shamil Good question, and I don't know, but I would guess that at least each thread will run at the same speed as if the query was not compiled. In fact I have some trouble understanding what really is "complied" using this technique? Perhaps it is only some clever caching behind the scene that is taken place. /gustav >>> shamil at smsconsulting.spb.ru 10-01-2011 00:08 >>> Hi Gustav -- <<< Precompiling LINQ Queries by Julie Lerman http://msdn.microsoft.com/en-gb/magazine/ee336024.aspx >>> Yes, that's a very good article, thank you. Is it interesting what will happen when two or more threads (on ASP.NET app/service, WCF service, ....) will try to use the same static compiled LINQ query (with different parameters)? Will the first thread block the others till query execution finishes? (I'm copying here refererred article's code sample) static Func _custByID; public static Customer GetCustomer( int ID) { //test for an existing instance of the compiled query if (_custByID == null) { _custByID = CompiledQuery.Compile ((ctx, id) => ctx.Customers.Where(c => c.CustomerID == id).Single()); } return _custByID.Invoke(_context, ID); } 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: 9 ?????? 2011 ?. 20:30 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] LINQ Compiled Query Hi Shamil I have no idea - and things may have evolved from 2008 to 2010. Perhaps the only "trick" is to wrap the LINQ query in a static class? But no ... I browsed a little and found this from a year ago: EF 4.0 & compiled queries & performance http://social.msdn.microsoft.com/Forums/en/adonetefx/thread/0c07e1d6-7db6-4348-b106-e576d3153b70 which demonstrates a dramatic speed increase for repeated runs of a compiled query. It also provides this link which seems to explain what is going on: Precompiling LINQ Queries by Julie Lerman http://msdn.microsoft.com/en-gb/magazine/ee336024.aspx /gustav PS: All MSDN Magazines can be browsed from here: http://msdn.microsoft.com/en-gb/magazine/ee310108.aspx >>> shamil at smsconsulting.spb.ru 09-01-2011 16:55 >>> Hi Gustav -- <<< However, if you have a crucial query in, say, a loop it could be worth the efforts. >>> Shouldn't LINQ be "smart enough" to not rebuild dynamic queries when that used in a loop? (of course if LINQ expression is not forcibly destroyed (by developer) at the end of every cycle iteration). I'd guess even if they get forcibly destoryed LINQ coudl somehow keep parsed&compiled LINQ expression cached... It's a very smart technology... (nothing new - all the principles used in (P)LINQ are known for years but that's the first time such a technology released to the business applications developers?) Thank you. -- Shamil From shamil at smsconsulting.spb.ru Tue Jan 11 04:18:42 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Tue, 11 Jan 2011 13:18:42 +0300 Subject: [dba-VB] LINQ Compiled Query In-Reply-To: References: Message-ID: <2E19D8A804ED4FBD88648DD26DAFA32E@nant> Hi Gustav -- I suppose that "compiled" means that query execution plan is built - building query execution plan needs querying EDM (using .NET Reflection) , and that ready to use compiled execution plan is cached. For queries returning a few db records (and that should constitute most of well designed web app queries) saving query compilation time should give significant preformance gains... I will try to test compiled EDM LINQ qeries vs. dynamic ones in the coming days, and I will post the results here... 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: 10 ?????? 2011 ?. 14:45 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] LINQ Compiled Query Hi Shamil Good question, and I don't know, but I would guess that at least each thread will run at the same speed as if the query was not compiled. In fact I have some trouble understanding what really is "complied" using this technique? Perhaps it is only some clever caching behind the scene that is taken place. /gustav >>> shamil at smsconsulting.spb.ru 10-01-2011 00:08 >>> Hi Gustav -- <<< Precompiling LINQ Queries by Julie Lerman http://msdn.microsoft.com/en-gb/magazine/ee336024.aspx >>> Yes, that's a very good article, thank you. Is it interesting what will happen when two or more threads (on ASP.NET app/service, WCF service, ....) will try to use the same static compiled LINQ query (with different parameters)? Will the first thread block the others till query execution finishes? (I'm copying here refererred article's code sample) static Func _custByID; public static Customer GetCustomer( int ID) { //test for an existing instance of the compiled query if (_custByID == null) { _custByID = CompiledQuery.Compile ((ctx, id) => ctx.Customers.Where(c => c.CustomerID == id).Single()); } return _custByID.Invoke(_context, ID); } 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: 9 ?????? 2011 ?. 20:30 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] LINQ Compiled Query Hi Shamil I have no idea - and things may have evolved from 2008 to 2010. Perhaps the only "trick" is to wrap the LINQ query in a static class? But no ... I browsed a little and found this from a year ago: EF 4.0 & compiled queries & performance http://social.msdn.microsoft.com/Forums/en/adonetefx/thread/0c07e1d6-7db6-43 48-b106-e576d3153b70 which demonstrates a dramatic speed increase for repeated runs of a compiled query. It also provides this link which seems to explain what is going on: Precompiling LINQ Queries by Julie Lerman http://msdn.microsoft.com/en-gb/magazine/ee336024.aspx /gustav PS: All MSDN Magazines can be browsed from here: http://msdn.microsoft.com/en-gb/magazine/ee310108.aspx >>> shamil at smsconsulting.spb.ru 09-01-2011 16:55 >>> Hi Gustav -- <<< However, if you have a crucial query in, say, a loop it could be worth the efforts. >>> Shouldn't LINQ be "smart enough" to not rebuild dynamic queries when that used in a loop? (of course if LINQ expression is not forcibly destroyed (by developer) at the end of every cycle iteration). I'd guess even if they get forcibly destoryed LINQ coudl somehow keep parsed&compiled LINQ expression cached... It's a very smart technology... (nothing new - all the principles used in (P)LINQ are known for years but that's the first time such a technology released to the business applications developers?) Thank you. -- Shamil _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue Jan 11 09:58:51 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 11 Jan 2011 10:58:51 -0500 Subject: [dba-VB] C# Databases without borders Message-ID: <4D2C7E3B.3060008@colbyconsulting.com> I want to build a little application where I have a very simple zip code table of about 40 thousand zip codes, with things like household count, population count, lat and long. My application would take lists of zip codes and sum the population and household counts, count the zips etc and put a count on the screen in a table format. I already do this using SQL Server to hold the zip code table. I get the zip lists into csv files, then create a table inside of SQL Server, join on the zip code and sum the population and household counts. Now I want to build an application to do this but SQL Server is way overkill. Can I use a csv or even xml to hold the zip table, create an xml table to hold the zip lists entered by the user and so forth. IOW I need a low impact alternative to SQL Server. Even express is just way overkill for this. Somewhere in the back of my mind I am thinking that ADO.net knows how to load tables, create relationships between tables, enforce the join etc. IOW do the store entirely in XML and just use ADO to do the rest. Is this possible? Would the speed be acceptable for a join between tblZipMaster and tblZipUserXyz on Zip count(zip) sum(household) etc. directly in memory. -- John W. Colby www.ColbyConsulting.com From Gustav at cactus.dk Tue Jan 11 10:42:56 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 11 Jan 2011 17:42:56 +0100 Subject: [dba-VB] C# Databases without borders Message-ID: Hi John First, I don't think SQL Server (Express) is overkill as you - as I understand - have several engines running, so one tiny database more a less wouldn't make noticeable difference. Then, you could for a single user app use the SQL Server Compact (file based as Access/JET) or even an mdb file. Or, you could use the built-in XML storage which is simple and fun. Just remember that it writes _all_ tables of the dataset in one go when you call WriteXml() as shown below - if you attempt to write one table only (which can be done), only this table will be held in the XML file, all other tables will get lost. This we discussed 2009-09-02: For example, read one XML file with one dataset containing several tables: private void InitializeDataSet() { _dataBaseFile = Path.Combine(_execPath, _dataFileName); this.DlDataSet.ReadXml(_dataBaseFile); } Write the (modified) dataset to one XML file: private void SaveData() { this.DlDataSet.WriteXml(_dataBaseFile); } Resulting XML for one table with one record: 0 smtp.webpartner.dk cactus at cactus.dk gustav at cactus.dk /gustav >>> jwcolby at colbyconsulting.com 11-01-2011 16:58 >>> I want to build a little application where I have a very simple zip code table of about 40 thousand zip codes, with things like household count, population count, lat and long. My application would take lists of zip codes and sum the population and household counts, count the zips etc and put a count on the screen in a table format. I already do this using SQL Server to hold the zip code table. I get the zip lists into csv files, then create a table inside of SQL Server, join on the zip code and sum the population and household counts. Now I want to build an application to do this but SQL Server is way overkill. Can I use a csv or even xml to hold the zip table, create an xml table to hold the zip lists entered by the user and so forth. IOW I need a low impact alternative to SQL Server. Even express is just way overkill for this. Somewhere in the back of my mind I am thinking that ADO.net knows how to load tables, create relationships between tables, enforce the join etc. IOW do the store entirely in XML and just use ADO to do the rest. Is this possible? Would the speed be acceptable for a join between tblZipMaster and tblZipUserXyz on Zip count(zip) sum(household) etc. directly in memory. -- John W. Colby www.ColbyConsulting.com From jwcolby at colbyconsulting.com Tue Jan 11 10:37:10 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 11 Jan 2011 11:37:10 -0500 Subject: [dba-VB] C# Databases without borders In-Reply-To: References: Message-ID: <4D2C8736.2050507@colbyconsulting.com> Gustav, This is going to be a C# applet that anyone can install on their system. John W. Colby www.ColbyConsulting.com On 1/11/2011 11:42 AM, Gustav Brock wrote: > Hi John > > First, I don't think SQL Server (Express) is overkill as you - as I understand - have several engines running, so one tiny database more a less wouldn't make noticeable difference. > > Then, you could for a single user app use the SQL Server Compact (file based as Access/JET) or even an mdb file. > Or, you could use the built-in XML storage which is simple and fun. Just remember that it writes _all_ tables of the dataset in one go when you call WriteXml() as shown below - if you attempt to write one table only (which can be done), only this table will be held in the XML file, all other tables will get lost. > > This we discussed 2009-09-02: > > For example, read one XML file with one dataset containing several tables: > > private void InitializeDataSet() > { > _dataBaseFile = Path.Combine(_execPath, _dataFileName); > this.DlDataSet.ReadXml(_dataBaseFile); > } > > Write the (modified) dataset to one XML file: > > private void SaveData() > { > this.DlDataSet.WriteXml(_dataBaseFile); > } > > Resulting XML for one table with one record: > > > > > 0 > smtp.webpartner.dk > > > cactus at cactus.dk > gustav at cactus.dk > > > > /gustav > > > >>>> jwcolby at colbyconsulting.com 11-01-2011 16:58>>> > I want to build a little application where I have a very simple zip code table of about 40 thousand > zip codes, with things like household count, population count, lat and long. My application would > take lists of zip codes and sum the population and household counts, count the zips etc and put a > count on the screen in a table format. > > I already do this using SQL Server to hold the zip code table. I get the zip lists into csv files, > then create a table inside of SQL Server, join on the zip code and sum the population and household > counts. > > Now I want to build an application to do this but SQL Server is way overkill. > > Can I use a csv or even xml to hold the zip table, create an xml table to hold the zip lists entered > by the user and so forth. IOW I need a low impact alternative to SQL Server. Even express is just > way overkill for this. > > Somewhere in the back of my mind I am thinking that ADO.net knows how to load tables, create > relationships between tables, enforce the join etc. IOW do the store entirely in XML and just use > ADO to do the rest. > > Is this possible? Would the speed be acceptable for a join between tblZipMaster and tblZipUserXyz > on Zip count(zip) sum(household) etc. directly in memory. From Gustav at cactus.dk Tue Jan 11 10:57:44 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 11 Jan 2011 17:57:44 +0100 Subject: [dba-VB] C# Databases without borders Message-ID: Hi John Oh, I missed that. That rules out the SQL Server engine and leaves you with the file based options. You can freely include and deploy SQL Server Compact Edition. /gustav >>> jwcolby at colbyconsulting.com 11-01-2011 17:37 >>> Gustav, This is going to be a C# applet that anyone can install on their system. John W. Colby www.ColbyConsulting.com On 1/11/2011 11:42 AM, Gustav Brock wrote: > Hi John > > First, I don't think SQL Server (Express) is overkill as you - as I understand - have several engines running, so one tiny database more a less wouldn't make noticeable difference. > > Then, you could for a single user app use the SQL Server Compact (file based as Access/JET) or even an mdb file. > Or, you could use the built-in XML storage which is simple and fun. Just remember that it writes _all_ tables of the dataset in one go when you call WriteXml() as shown below - if you attempt to write one table only (which can be done), only this table will be held in the XML file, all other tables will get lost. > > This we discussed 2009-09-02: > > For example, read one XML file with one dataset containing several tables: > > private void InitializeDataSet() > { > _dataBaseFile = Path.Combine(_execPath, _dataFileName); > this.DlDataSet.ReadXml(_dataBaseFile); > } > > Write the (modified) dataset to one XML file: > > private void SaveData() > { > this.DlDataSet.WriteXml(_dataBaseFile); > } > > Resulting XML for one table with one record: > > > > > 0 > smtp.webpartner.dk > > > cactus at cactus.dk > gustav at cactus.dk > > > > /gustav > > > >>>> jwcolby at colbyconsulting.com 11-01-2011 16:58>>> > I want to build a little application where I have a very simple zip code table of about 40 thousand > zip codes, with things like household count, population count, lat and long. My application would > take lists of zip codes and sum the population and household counts, count the zips etc and put a > count on the screen in a table format. > > I already do this using SQL Server to hold the zip code table. I get the zip lists into csv files, > then create a table inside of SQL Server, join on the zip code and sum the population and household > counts. > > Now I want to build an application to do this but SQL Server is way overkill. > > Can I use a csv or even xml to hold the zip table, create an xml table to hold the zip lists entered > by the user and so forth. IOW I need a low impact alternative to SQL Server. Even express is just > way overkill for this. > > Somewhere in the back of my mind I am thinking that ADO.net knows how to load tables, create > relationships between tables, enforce the join etc. IOW do the store entirely in XML and just use > ADO to do the rest. > > Is this possible? Would the speed be acceptable for a join between tblZipMaster and tblZipUserXyz > on Zip count(zip) sum(household) etc. directly in memory. From dw-murphy at cox.net Tue Jan 11 10:58:34 2011 From: dw-murphy at cox.net (Doug Murphy) Date: Tue, 11 Jan 2011 08:58:34 -0800 Subject: [dba-VB] C# Databases without borders In-Reply-To: References: Message-ID: Why not an mdb file? ADO.NET works fine. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, January 11, 2011 8:58 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] C# Databases without borders Hi John Oh, I missed that. That rules out the SQL Server engine and leaves you with the file based options. You can freely include and deploy SQL Server Compact Edition. /gustav >>> jwcolby at colbyconsulting.com 11-01-2011 17:37 >>> Gustav, This is going to be a C# applet that anyone can install on their system. John W. Colby www.ColbyConsulting.com On 1/11/2011 11:42 AM, Gustav Brock wrote: > Hi John > > First, I don't think SQL Server (Express) is overkill as you - as I understand - have several engines running, so one tiny database more a less wouldn't make noticeable difference. > > Then, you could for a single user app use the SQL Server Compact (file based as Access/JET) or even an mdb file. > Or, you could use the built-in XML storage which is simple and fun. Just remember that it writes _all_ tables of the dataset in one go when you call WriteXml() as shown below - if you attempt to write one table only (which can be done), only this table will be held in the XML file, all other tables will get lost. > > This we discussed 2009-09-02: > > For example, read one XML file with one dataset containing several tables: > > private void InitializeDataSet() > { > _dataBaseFile = Path.Combine(_execPath, _dataFileName); > this.DlDataSet.ReadXml(_dataBaseFile); > } > > Write the (modified) dataset to one XML file: > > private void SaveData() > { > this.DlDataSet.WriteXml(_dataBaseFile); > } > > Resulting XML for one table with one record: > > xmlns="http://tempuri.org/DataSetDL.xsd"> > > 0 > smtp.webpartner.dk > > > cactus at cactus.dk > gustav at cactus.dk > > > > /gustav > > > >>>> jwcolby at colbyconsulting.com 11-01-2011 16:58>>> > I want to build a little application where I have a very simple zip > code table of about 40 thousand zip codes, with things like household > count, population count, lat and long. My application would take > lists of zip codes and sum the population and household counts, count the zips etc and put a count on the screen in a table format. > > I already do this using SQL Server to hold the zip code table. I get > the zip lists into csv files, then create a table inside of SQL > Server, join on the zip code and sum the population and household counts. > > Now I want to build an application to do this but SQL Server is way overkill. > > Can I use a csv or even xml to hold the zip table, create an xml table > to hold the zip lists entered by the user and so forth. IOW I need a > low impact alternative to SQL Server. Even express is just way overkill for this. > > Somewhere in the back of my mind I am thinking that ADO.net knows how > to load tables, create relationships between tables, enforce the join > etc. IOW do the store entirely in XML and just use ADO to do the rest. > > Is this possible? Would the speed be acceptable for a join between > tblZipMaster and tblZipUserXyz on Zip count(zip) sum(household) etc. directly in memory. _______________________________________________ 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 Tue Jan 11 11:20:46 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 11 Jan 2011 18:20:46 +0100 Subject: [dba-VB] C# Databases without borders Message-ID: Hi Doug Right, except for some potential 64-bit issues? I think the driver issue was solved, but I haven't worked with it myself. And Visual Studio just loooves SQL Server Compact Edition! /gustav >>> dw-murphy at cox.net 11-01-2011 17:58 >>> Why not an mdb file? ADO.NET works fine. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, January 11, 2011 8:58 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] C# Databases without borders Hi John Oh, I missed that. That rules out the SQL Server engine and leaves you with the file based options. You can freely include and deploy SQL Server Compact Edition. /gustav >>> jwcolby at colbyconsulting.com 11-01-2011 17:37 >>> Gustav, This is going to be a C# applet that anyone can install on their system. From Gustav at cactus.dk Tue Jan 11 11:48:05 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 11 Jan 2011 18:48:05 +0100 Subject: [dba-VB] Free ebook: Programming Windows Phone 7, by Charles Petzold Message-ID: Hi all If you are serious about Windows Phone 7, this 1000+ page monster book from Microsoft is only a 13 MB download + 5 MB for code samples: http://blogs.msdn.com/b/microsoft_press/archive/2010/10/28/free-ebook-programming-windows-phone-7-by-charles-petzold.aspx Note this: To use this book properly you'll need to download and install the Windows Phone Developer Tools, which includes Visual Studio 2010 Express for Windows Phone, XNA Game Studio 4.0, and an on-screen Windows Phone Emulator to test your programs in the absence of an actual device. Get the latest information and downloads at http://developer.windowsphone.com. You can install these tools on top of Visual Studio 2010, in effect enhancing Visual Studio 2010 for phone development. That's the configuration I used. Although you can do quite a bit with the phone emulator, at some point you'll want to deploy your programs to an actual Windows Phone 7 device. You can register as a phone developer at http://developer.windowsphone.com and then have the ability to unlock your phone so you can deploy your programs from Visual Studio. /gustav From stuart at lexacorp.com.pg Tue Jan 11 14:12:22 2011 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 12 Jan 2011 06:12:22 +1000 Subject: [dba-VB] C# Databases without borders In-Reply-To: <4D2C7E3B.3060008@colbyconsulting.com> References: <4D2C7E3B.3060008@colbyconsulting.com> Message-ID: <4D2CB9A6.30399.8ADA003@stuart.lexacorp.com.pg> Three ways: Binary array stored in the application as a resource and do that analysis yourself on the array elements. SQLite - http://www.sqlite.org/ Access mdb The first way is probably the optimum, but will require a bit more coding to do the analysus. With only 40,000 rows stored as a collection or array, the in-memory scanning and summation should be near instant ( at least it would be if I did it in Powerbasic ) -- Stuart On 11 Jan 2011 at 10:58, jwcolby wrote: > I want to build a little application where I have a very simple zip > code table of about 40 thousand zip codes, with things like household > count, population count, lat and long. My application would take > lists of zip codes and sum the population and household counts, count > the zips etc and put a count on the screen in a table format. > > I already do this using SQL Server to hold the zip code table. I get > the zip lists into csv files, then create a table inside of SQL > Server, join on the zip code and sum the population and household > counts. > > Now I want to build an application to do this but SQL Server is way > overkill. > > Can I use a csv or even xml to hold the zip table, create an xml table > to hold the zip lists entered by the user and so forth. IOW I need a > low impact alternative to SQL Server. Even express is just way > overkill for this. > > Somewhere in the back of my mind I am thinking that ADO.net knows how > to load tables, create relationships between tables, enforce the join > etc. IOW do the store entirely in XML and just use ADO to do the > rest. > > Is this possible? Would the speed be acceptable for a join between > tblZipMaster and tblZipUserXyz on Zip count(zip) sum(household) etc. > directly in memory. -- 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 dw-murphy at cox.net Tue Jan 11 14:21:38 2011 From: dw-murphy at cox.net (Doug Murphy) Date: Tue, 11 Jan 2011 12:21:38 -0800 Subject: [dba-VB] C# Databases without borders In-Reply-To: References: Message-ID: <396C8A3D6CDA4DEA8E21964189F12919@murphy3234aaf1> Good point about 64 bit. Have no experience installing apps there. Then I'd go with exporting and importing dataset to xml file. That is even more native I think. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, January 11, 2011 9:21 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] C# Databases without borders Hi Doug Right, except for some potential 64-bit issues? I think the driver issue was solved, but I haven't worked with it myself. And Visual Studio just loooves SQL Server Compact Edition! /gustav >>> dw-murphy at cox.net 11-01-2011 17:58 >>> Why not an mdb file? ADO.NET works fine. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, January 11, 2011 8:58 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] C# Databases without borders Hi John Oh, I missed that. That rules out the SQL Server engine and leaves you with the file based options. You can freely include and deploy SQL Server Compact Edition. /gustav >>> jwcolby at colbyconsulting.com 11-01-2011 17:37 >>> Gustav, This is going to be a C# applet that anyone can install on their system. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From davidmcafee at gmail.com Tue Jan 11 14:22:33 2011 From: davidmcafee at gmail.com (David McAfee) Date: Tue, 11 Jan 2011 12:22:33 -0800 Subject: [dba-VB] C# Databases without borders In-Reply-To: <4D2CB9A6.30399.8ADA003@stuart.lexacorp.com.pg> References: <4D2C7E3B.3060008@colbyconsulting.com> <4D2CB9A6.30399.8ADA003@stuart.lexacorp.com.pg> Message-ID: If the app is a single user app, you can also use C# and SQLCE. You can pass the datasets to and from the user via a web service. D On Tue, Jan 11, 2011 at 12:12 PM, Stuart McLachlan wrote: > Three ways: > > Binary array stored in the application as a resource and do that analysis > yourself on the array > elements. > > SQLite - http://www.sqlite.org/ > > Access mdb > > The first way is probably the optimum, but will require a bit more coding > to do the analysus. > > With only 40,000 rows stored as a collection or array, the in-memory > scanning and > summation should be near instant ( at least it would be if I did it in > Powerbasic ) > > -- > Stuart > > > On 11 Jan 2011 at 10:58, jwcolby wrote: > > > I want to build a little application where I have a very simple zip > > code table of about 40 thousand zip codes, with things like household > > count, population count, lat and long. My application would take > > lists of zip codes and sum the population and household counts, count > > the zips etc and put a count on the screen in a table format. > > > > I already do this using SQL Server to hold the zip code table. I get > > the zip lists into csv files, then create a table inside of SQL > > Server, join on the zip code and sum the population and household > > counts. > > > > Now I want to build an application to do this but SQL Server is way > > overkill. > > > > Can I use a csv or even xml to hold the zip table, create an xml table > > to hold the zip lists entered by the user and so forth. IOW I need a > > low impact alternative to SQL Server. Even express is just way > > overkill for this. > > > > Somewhere in the back of my mind I am thinking that ADO.net knows how > > to load tables, create relationships between tables, enforce the join > > etc. IOW do the store entirely in XML and just use ADO to do the > > rest. > > > > Is this possible? Would the speed be acceptable for a join between > > tblZipMaster and tblZipUserXyz on Zip count(zip) sum(household) etc. > > directly in memory. -- 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 shamil at smsconsulting.spb.ru Thu Jan 13 15:47:42 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Fri, 14 Jan 2011 00:47:42 +0300 Subject: [dba-VB] (Free) C#/VB.NET equivalents of Excel.Application.WorksheetFunction.NormSDist(Arg1 As Double) As Double? Message-ID: <7211AB6BCA524E3F8F3664993D3D3F47@nant> Hi All -- Do you know about any (free) equivalents of Exel.Application.WorksheetFunction.NormSDist(Arg1 As Double) As Double ? I have got googled the following link: http://bytes.com/topic/c-sharp/answers/240995-normal-distribution but I'm not sure/have no time now to check will that simple solution be equivalent to the Excel.Application.WorksheetFunction.NormSDist(...)? I have to get developed an independent from MS Excel solution. Thank you. -- Shamil From df.waters at comcast.net Thu Jan 13 16:37:23 2011 From: df.waters at comcast.net (Dan Waters) Date: Thu, 13 Jan 2011 16:37:23 -0600 Subject: [dba-VB] (Free) C#/VB.NET equivalents ofExcel.Application.WorksheetFunction.NormSDist(Arg1 As Double)As Double? In-Reply-To: <7211AB6BCA524E3F8F3664993D3D3F47@nant> References: <7211AB6BCA524E3F8F3664993D3D3F47@nant> Message-ID: Hi Shamil, I was a Quality Engineer in a former life and occasionally had to use this formula. I found this: http://en.wikipedia.org/wiki/Normal_distribution. It looks to me like the equation is similar, but I don't know what Math.Pow is. Good Luck! Dan -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Thursday, January 13, 2011 3:48 PM To: 'Discussion concerning Visual Basic and related programming issues.' Subject: [dba-VB] (Free) C#/VB.NET equivalents ofExcel.Application.WorksheetFunction.NormSDist(Arg1 As Double)As Double? Hi All -- Do you know about any (free) equivalents of Exel.Application.WorksheetFunction.NormSDist(Arg1 As Double) As Double ? I have got googled the following link: http://bytes.com/topic/c-sharp/answers/240995-normal-distribution but I'm not sure/have no time now to check will that simple solution be equivalent to the Excel.Application.WorksheetFunction.NormSDist(...)? I have to get developed an independent from MS Excel solution. Thank you. -- Shamil _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From shamil at smsconsulting.spb.ru Fri Jan 14 07:52:33 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Fri, 14 Jan 2011 16:52:33 +0300 Subject: [dba-VB] (Free) C#/VB.NET equivalentsofExcel.Application.WorksheetFunction.NormSDist(Arg1 AsDouble)As Double? In-Reply-To: References: <7211AB6BCA524E3F8F3664993D3D3F47@nant> Message-ID: <1F66E8F19E01484284E7277621C5BFA2@nant> Thank you, Dan, Math.Pow is a power math operation. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: 14 ?????? 2011 ?. 1:37 To: 'Discussion concerning Visual Basic and related programming issues.' Subject: Re: [dba-VB] (Free) C#/VB.NET equivalentsofExcel.Application.WorksheetFunction.NormSDist(Arg1 AsDouble)As Double? Hi Shamil, I was a Quality Engineer in a former life and occasionally had to use this formula. I found this: http://en.wikipedia.org/wiki/Normal_distribution. It looks to me like the equation is similar, but I don't know what Math.Pow is. Good Luck! Dan -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Thursday, January 13, 2011 3:48 PM To: 'Discussion concerning Visual Basic and related programming issues.' Subject: [dba-VB] (Free) C#/VB.NET equivalents ofExcel.Application.WorksheetFunction.NormSDist(Arg1 As Double)As Double? Hi All -- Do you know about any (free) equivalents of Exel.Application.WorksheetFunction.NormSDist(Arg1 As Double) As Double ? I have got googled the following link: http://bytes.com/topic/c-sharp/answers/240995-normal-distribution but I'm not sure/have no time now to check will that simple solution be equivalent to the Excel.Application.WorksheetFunction.NormSDist(...)? I have to get developed an independent from MS Excel solution. Thank you. -- Shamil _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From shamil at smsconsulting.spb.ru Fri Jan 14 10:51:49 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Fri, 14 Jan 2011 19:51:49 +0300 Subject: [dba-VB] How to specify a relative path to an MS Access db in app.config? Message-ID: <554BE140BB7F41ABA5636DC762C245F7@nant> Hi All -- That should be simple(?) but google somehow doesn't give any useful feedback (or I'm missing it). I wanted to have the following connection string from app.config to use relative path to MS Access db - relative to the folder where app.config (its assembly) will be installed on target system: If I write: Data Source=.\Database\TestData.mdb it works on start-up and when I work with main form, but as soon as I use, e.g., OpenFile fialog, which changes default folder main form's update which is bound do a dataset which uses the above connection string fails to update db as it gets now improper fullpath for db... Isn't there something like Data Source=~\Database\TestData.mdb or Data Source={Application}\Database\TestData.mdb or ... way to specify "stable" relative path to the MS Access db - relative to the app.config's assembly location? I do not want to use DSN... Thank you. -- Shamil From gustav at cactus.dk Fri Jan 14 15:29:02 2011 From: gustav at cactus.dk (Gustav Brock) Date: Fri, 14 Jan 2011 22:29:02 +0100 Subject: [dba-VB] How to specify a relative path to an MS Access db in app.config? Message-ID: Hi Shamil This guy seems to have found a method to specify a relative path as a parameter - which is little different from your connection string: http://www.eggheadcafe.com/community/aspnet/2/10213449/set-relative-path-in-windows-application.aspx However, you later should be able to easily modify your connection string using the SqlConnectionStringBuilder: private SqlConnection ConnectionApplyPassword(string connectionString) { // Apply password to connectionString. SqlConnectionStringBuilder sqlConnectionStringBuilder = new SqlConnectionStringBuilder(); sqlConnectionStringBuilder.ConnectionString = connectionString; sqlConnectionStringBuilder.Password = _connectionDbPassword; return new SqlConnection(sqlConnectionStringBuilder.ToString()); } like this: someDataTableAdapter.Connection = ConnectionApplyPassword(someDataTableAdapter.Connection.ConnectionString); /gustav >>> shamil at smsconsulting.spb.ru 14-01-2011 17:51 >>> Hi All -- That should be simple(?) but google somehow doesn't give any useful feedback (or I'm missing it). I wanted to have the following connection string from app.config to use relative path to MS Access db - relative to the folder where app.config (its assembly) will be installed on target system: If I write: Data Source=.\Database\TestData.mdb it works on start-up and when I work with main form, but as soon as I use, e.g., OpenFile fialog, which changes default folder main form's update which is bound do a dataset which uses the above connection string fails to update db as it gets now improper fullpath for db... Isn't there something like Data Source=~\Database\TestData.mdb or Data Source={Application}\Database\TestData.mdb or ... way to specify "stable" relative path to the MS Access db - relative to the app.config's assembly location? I do not want to use DSN... Thank you. -- Shamil From shamil at smsconsulting.spb.ru Fri Jan 14 16:09:27 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sat, 15 Jan 2011 01:09:27 +0300 Subject: [dba-VB] How to specify a relative path to an MS Access db inapp.config? In-Reply-To: References: Message-ID: <7F371F119A344A17A24F2AF9BF5D540A@nant> Thank you, Gustav, First of all I do use MS Access backend for that my simple application. Yes, I can write a couple of code lines to customize connection creation on runtime but I wanted to avoid doing that additional coding. The following static solution works well I just need to keep watching to have current directory within that application to be always equal to the app.config's assembly directory... 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: 15 ?????? 2011 ?. 0:29 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] How to specify a relative path to an MS Access db inapp.config? Hi Shamil This guy seems to have found a method to specify a relative path as a parameter - which is little different from your connection string: http://www.eggheadcafe.com/community/aspnet/2/10213449/set-relative-path-in- windows-application.aspx However, you later should be able to easily modify your connection string using the SqlConnectionStringBuilder: private SqlConnection ConnectionApplyPassword(string connectionString) { // Apply password to connectionString. SqlConnectionStringBuilder sqlConnectionStringBuilder = new SqlConnectionStringBuilder(); sqlConnectionStringBuilder.ConnectionString = connectionString; sqlConnectionStringBuilder.Password = _connectionDbPassword; return new SqlConnection(sqlConnectionStringBuilder.ToString()); } like this: someDataTableAdapter.Connection = ConnectionApplyPassword(someDataTableAdapter.Connection.ConnectionString); /gustav >>> shamil at smsconsulting.spb.ru 14-01-2011 17:51 >>> Hi All -- That should be simple(?) but google somehow doesn't give any useful feedback (or I'm missing it). I wanted to have the following connection string from app.config to use relative path to MS Access db - relative to the folder where app.config (its assembly) will be installed on target system: If I write: Data Source=.\Database\TestData.mdb it works on start-up and when I work with main form, but as soon as I use, e.g., OpenFile fialog, which changes default folder main form's update which is bound do a dataset which uses the above connection string fails to update db as it gets now improper fullpath for db... Isn't there something like Data Source=~\Database\TestData.mdb or Data Source={Application}\Database\TestData.mdb or ... way to specify "stable" relative path to the MS Access db - relative to the app.config's assembly location? I do not want to use DSN... Thank you. -- Shamil _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Sat Jan 15 17:37:00 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 15 Jan 2011 18:37:00 -0500 Subject: [dba-VB] SQL Server over Hamachi: First test not hopeful Message-ID: <4D322F9C.8090405@colbyconsulting.com> I developed a SQL Server database, with perhaps 10-15 tables, populated a few with just a handful of records, created an Access database and built a few forms. My strategy is to do Access because I can do it quickly, but link it to SQL Server, the run the FE on a remote computer over Hamachi. Tonight I went to a local Arby's to test the speed of the system. The local Arby's has an open wifi, which using Speedtest.net tested 5 mbit down, 1 mbit up - typical low end cable in my area. So I tried to use the system and... well... it took an extremely long time to connect, if it connected at all. Access mostly timed out trying to log on. SQL Server Management System would log on sometimes. Sometimes not. Trying to hit it at the actual Hamachi IP address worked but took awhile. 15 - 30 seconds to connect (I did not time it). To be honest I am puzzled. Google finds plenty of folks trying this, some succeeding, most pretty slow. Remote desktop is plenty fast. From inside of my office, out across the internet via Hamachi I have done things like file transfers etc (in the past). Remote desktop has always been very speedy, but there isn't much needed for RD. I had really expected faster connections / operation. I really expected SSMS to just work, pretty much at speed. It didn't. Sigh, back to the drawing boards. -- John W. Colby www.ColbyConsulting.com From marklbreen at gmail.com Sun Jan 16 04:39:00 2011 From: marklbreen at gmail.com (Mark Breen) Date: Sun, 16 Jan 2011 10:39:00 +0000 Subject: [dba-VB] SQL Server over Hamachi: First test not hopeful In-Reply-To: <4D322F9C.8090405@colbyconsulting.com> References: <4D322F9C.8090405@colbyconsulting.com> Message-ID: Hello John, I am using Hamachi - since you mentioned it here a few years ago - and Access and SQL server since Jan 2008 and it works the same as a VLan over Cisco hardware. No performance difference between Hamachi and CISCO, Thanks for the info on Hamachi in 2007/8 BTW :) HTH Mark On 15 January 2011 23:37, jwcolby wrote: > I developed a SQL Server database, with perhaps 10-15 tables, populated a > few with just a handful of records, created an Access database and built a > few forms. My strategy is to do Access because I can do it quickly, but > link it to SQL Server, the run the FE on a remote computer over Hamachi. > > Tonight I went to a local Arby's to test the speed of the system. The > local Arby's has an open wifi, which using Speedtest.net tested 5 mbit down, > 1 mbit up - typical low end cable in my area. > > So I tried to use the system and... well... it took an extremely long time > to connect, if it connected at all. Access mostly timed out trying to log > on. SQL Server Management System would log on sometimes. Sometimes not. > Trying to hit it at the actual Hamachi IP address worked but took awhile. > 15 - 30 seconds to connect (I did not time it). > > To be honest I am puzzled. Google finds plenty of folks trying this, some > succeeding, most pretty slow. Remote desktop is plenty fast. > > From inside of my office, out across the internet via Hamachi I have done > things like file transfers etc (in the past). Remote desktop has always > been very speedy, but there isn't much needed for RD. > > I had really expected faster connections / operation. I really expected > SSMS to just work, pretty much at speed. It didn't. > > Sigh, back to the drawing boards. > -- > John W. Colby > www.ColbyConsulting.com > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From jwcolby at colbyconsulting.com Sun Jan 16 07:40:56 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sun, 16 Jan 2011 08:40:56 -0500 Subject: [dba-VB] SQL Server over Hamachi: First test not hopeful In-Reply-To: References: <4D322F9C.8090405@colbyconsulting.com> Message-ID: <4D32F568.6050406@colbyconsulting.com> Are you running this over the internet I assume - over Hamachi wold imply that. What are your connection speeds at either end using speedtest.net? John W. Colby www.ColbyConsulting.com On 1/16/2011 5:39 AM, Mark Breen wrote: > Hello John, > > I am using Hamachi - since you mentioned it here a few years ago - and > Access and SQL server since Jan 2008 and it works the same as a VLan over > Cisco hardware. No performance difference between Hamachi and CISCO, > > Thanks for the info on Hamachi in 2007/8 BTW :) > > HTH > > Mark > > On 15 January 2011 23:37, jwcolby wrote: > >> I developed a SQL Server database, with perhaps 10-15 tables, populated a >> few with just a handful of records, created an Access database and built a >> few forms. My strategy is to do Access because I can do it quickly, but >> link it to SQL Server, the run the FE on a remote computer over Hamachi. >> >> Tonight I went to a local Arby's to test the speed of the system. The >> local Arby's has an open wifi, which using Speedtest.net tested 5 mbit down, >> 1 mbit up - typical low end cable in my area. >> >> So I tried to use the system and... well... it took an extremely long time >> to connect, if it connected at all. Access mostly timed out trying to log >> on. SQL Server Management System would log on sometimes. Sometimes not. >> Trying to hit it at the actual Hamachi IP address worked but took awhile. >> 15 - 30 seconds to connect (I did not time it). >> >> To be honest I am puzzled. Google finds plenty of folks trying this, some >> succeeding, most pretty slow. Remote desktop is plenty fast. >> >> From inside of my office, out across the internet via Hamachi I have done >> things like file transfers etc (in the past). Remote desktop has always >> been very speedy, but there isn't much needed for RD. >> >> I had really expected faster connections / operation. I really expected >> SSMS to just work, pretty much at speed. It didn't. >> >> Sigh, back to the drawing boards. >> -- >> 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 Sun Jan 16 21:21:26 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sun, 16 Jan 2011 22:21:26 -0500 Subject: [dba-VB] Access to SQL Server over Hamachi - it WORKS Message-ID: <4D33B5B6.1050102@colbyconsulting.com> Today I stepped back and set it all up internal to my network. Yesterday I had moved the Fe to my laptop. Today I deleted all of my linked tables, then I relinked all of the tables. In doing so I created a new DSN where I hit the SQL Server directly at the Hamachi IP address. Relinked using this new DSN and voila, she's a wurkin, and lightning fast over my internal network but forcing the traffic through Hamachi. So I tested a bit, then went back out to the local Arby's where I was pretty much unable to do anything last night (other than browse the internet). Got right on the connection, opened the Access FE and voila, she's a wurkin, and lightning fast. You wouldn't know you weren't directly on my LAN. Access on my laptop over Hamachi, over a public network, in to my network, directly into a Virtual Machine over Hamachi, running SQL Server 2008 Express. I am so jazzed! that leaves me with one technical barrier now, getting an Access 2007 run-time to host an Access 2003 FE. Now I need to set up a VM to run on my laptop so that I can have an environment without Office installed. Install the Access 2007 run-time and drop the Access 2003 Fe in place. Set up Hamachi on that VM and then get it all playing nice. This will allow me to take my laptop on the road to demo the system. We shall see. And yes Jim, I understand I still need to cause SQL Server to do the heavy lifting. To this point I have never really used SQL Server as the BE for Access. My biggest client uses Access 2K and it doesn't really play nice with ADO. Since I can now develop these new databases in 2003, I can do things like bind the form to an ADO recordset and still have it read/write. I will need to learn how to use a stored procedure were I can pass in a PK and have the SP return a table of data already selected and sorted. I.e. SQL Server doing the lifting. The nice thing is that these are small databases so I can do things like leave the list tables just linked, at least for awhile while I learn all the stuff I have never had to do. Next up, 2007 run-time. -- John W. Colby www.ColbyConsulting.com From jwcolby at colbyconsulting.com Sun Jan 16 21:51:01 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sun, 16 Jan 2011 22:51:01 -0500 Subject: [dba-VB] SQL Server over Hamachi: First test not hopeful In-Reply-To: References: <4D322F9C.8090405@colbyconsulting.com> Message-ID: <4D33BCA5.3020906@colbyconsulting.com> Mark, I got it working today! 8) John W. Colby www.ColbyConsulting.com On 1/16/2011 5:39 AM, Mark Breen wrote: > Hello John, > > I am using Hamachi - since you mentioned it here a few years ago - and > Access and SQL server since Jan 2008 and it works the same as a VLan over > Cisco hardware. No performance difference between Hamachi and CISCO, > > Thanks for the info on Hamachi in 2007/8 BTW :) > > HTH > > Mark From marklbreen at gmail.com Mon Jan 17 04:38:19 2011 From: marklbreen at gmail.com (Mark Breen) Date: Mon, 17 Jan 2011 10:38:19 +0000 Subject: [dba-VB] SQL Server over Hamachi: First test not hopeful In-Reply-To: <4D33BCA5.3020906@colbyconsulting.com> References: <4D322F9C.8090405@colbyconsulting.com> <4D33BCA5.3020906@colbyconsulting.com> Message-ID: Hi John, I saw your other post, congrats, I guess you do feel jazzed. I tried speedtest.net and it told me I had 5 MB and .5 down and up. What I was curious about was that what you wanted me to check. Was there another check you wanted me to do? thanks Mark On 17 January 2011 03:51, jwcolby wrote: > Mark, > > I got it working today! 8) > > > John W. Colby > www.ColbyConsulting.com > > On 1/16/2011 5:39 AM, Mark Breen wrote: > >> Hello John, >> >> I am using Hamachi - since you mentioned it here a few years ago - and >> Access and SQL server since Jan 2008 and it works the same as a VLan over >> Cisco hardware. No performance difference between Hamachi and CISCO, >> >> Thanks for the info on Hamachi in 2007/8 BTW :) >> >> HTH >> >> Mark >> > _______________________________________________ > 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 Mon Jan 17 06:54:22 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Mon, 17 Jan 2011 15:54:22 +0300 Subject: [dba-VB] .NET 4.0 + MS ReportViewer 10.0 + MS Access backend sample: Re: Ded Moroz sends you links on sample projects... :) Message-ID: Hi All, FYI: I have temporarily put subject sample running here: http://shamils-19.hosting.parking.ru/nw4/Default.aspx It's from this release http://shamils-19.hosting.parking.ru/nw4/Default.aspx (http://northwind.codeplex.com/releases/view/26600#DownloadId=192044) announced here on New 2011 Year Eve. That release has got 150+ downloads by now but almost zero feedback. Any feedback is welcome. Thank you. -- Shamil -----Original Message----- From: Shamil Salakhetdinov [mailto:shamil at smsconsulting.spb.ru] Sent: 31 ??????? 2010 ?. 15:14 To: 'Discussion concerning Visual Basic and related programming issues.'; 'Access Developers discussion and problem solving' Subject: Ded Moroz sends you links on sample projects... :) Hi All -- New Year Eve is approaching here, and I wanted to send you some gifts from Ded Moroz - here they are: This is a set of projects I have got developed a few days ago during 40+ hours R&D coding marathon. The task was to finish all the work in about 40 hours. So a few bugs left in there as release deadline wasn't possible to move. They (the bugs) are described in readme. But in general all the sample apps work rather well as my tests here show. I'd be interested to hear any comments - in what direction that sample should be better developed. Please write them here, or on http://northwind.codeplex.com . Please do not "judge severely" as as I noted that was very intensive R&D work with little time to think through while coding :) But feel free to comment it as you like. *Do not try* to be politcorrect. Please. I wish all of your Very Happy and Prosperous New Year! Thank you. -- Shamil P.S. Short description of published projects (the sources get downloaded 19 times already and I have got informed privately a couple of days ago just three people): NorthwindNET_4_0_Sources.zip (~24MB) http://northwind.codeplex.com/releases/view/26600#DownloadId=192044 NorthwindNET_4_0_SampleApps_Setup.zip (~5MB) http://northwind.codeplex.com/releases/view/26600#DownloadId=192043 Northwind.NET.VS2010.sln ======================== 1. Northwind.NET.EDM.FE - WinForms Front-End (just start-up class and app.config); 2. Northwind.NET.EDM.WinForms.Controls - UI UserControls; 3. Northwind.NET.EDM.Reports - MS ReportViewer 10.0 Reports; 4. Northwind.NET.BLL - Business Layer Library (ADO.NET EDM LINQ Reports' data sources); 5. Northwind.NET.Model - ADO.NET EDM; 6. Northwind.NET.Settings - application settings (wrappers); 7. Northwind.NET.Resources - application resource file; 8. Northwind.NET.Utilities - utility class library; 9. Northwind.NET.Testing.Console - some test functions - it's not true TDD - just a rough approximation; Northwind.NET.MSAccess.sln ========================== I. WinForms FE with MS Access backend Northwind.NET.FE.1.1 - Northwind.NET FE with MS Access backend Northwind.NET.Utilities - Utilities project II. ASP.NET sample application with MS Access backend E:/Projects/SMS/Northwind/Northwind.ASP.NET.MSAccess.Reporting/ - ASP.NET project III. Just a test ASP.NET app - can be removed E:\Projects\SMS\Northwind\Northwind.ASP.NET.MSAccess.Reporting.RDLC.10.0.0.0 Northwind.NET.zzz_OLD.sln ========================= 1. Northwind.NET.FE - WinForms Front-End with MS SQL backend using "plain old" ADO.NET data sets - the project we did last year's April. 2. All the other projects from as in Northwind.NET.VS2010.sln ----------- From jwcolby at colbyconsulting.com Mon Jan 17 07:30:46 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 17 Jan 2011 08:30:46 -0500 Subject: [dba-VB] SQL Server over Hamachi: First test not hopeful In-Reply-To: References: <4D322F9C.8090405@colbyconsulting.com> <4D33BCA5.3020906@colbyconsulting.com> Message-ID: <4D344486.1030307@colbyconsulting.com> Thanks for the reply Mark. Are you doing completely unbound forms? Mixed? All bound forms? Systems that don't really use data entry forms? This is my first foray into Access to SQL over Hamachi so I am just looking for someone with previous experience to tell us about it. As Jim pointed out, I do only have a few minutes of working from a public wifi back into my office but the second test was flawless, and literally so fast you would not know you weren't directly on my network. John W. Colby www.ColbyConsulting.com On 1/17/2011 5:38 AM, Mark Breen wrote: > Hi John, > > I saw your other post, congrats, I guess you do feel jazzed. > > I tried speedtest.net and it told me I had 5 MB and .5 down and up. > > What I was curious about was that what you wanted me to check. Was there > another check you wanted me to do? > > thanks > > Mark From shamil at smsconsulting.spb.ru Wed Jan 19 00:53:51 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Wed, 19 Jan 2011 09:53:51 +0300 Subject: [dba-VB] FYI: Agile: Mik Kersten - I think we are ready for another revolt... Message-ID: Hi All, FYI: http://www.infoq.com/interviews/kersten-tasktop Summary: "Mik Kersten discusses the role of Mylyn and Tasktop in Agile development and how these tools return control to developers. Also: how Mylyn streamlines development in Eclipse. ... The Agile movement, or the Agile community kind of was founded by programmers, and again going back the XP in specific, who were just tired of being treated the low end of the management chain. So as the programmers revolt and a lot of people have thought that the Agile community has been taken over by Scrum and by management and they are dumping on programmers just as much as before and it got to the point that the software craftsmanship movement was again the programmers revolting. I think we are ready for another revolt. That is a really interesting observation." Thank you. -- Shamil From jwcolby at colbyconsulting.com Thu Jan 20 11:52:25 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 20 Jan 2011 12:52:25 -0500 Subject: [dba-VB] C# Grid: effectively and efficiently handle dirty Message-ID: <4D387659.5010005@colbyconsulting.com> I am doing C# forms, bound to SQL Server. I dragged and dropped the table out onto the form and C# "installed" the grid as well as a record navigation toolbar. Now I am trying to make sure that data is saved. I have discovered for example that if you edit something and just close the form... no save. Basically no save unless the save button is pressed. Being the anal guy I am, this ain't good enough. I don't want to save after every cell edit, but I do want to save after every row edit or when the form closes. Even this is non-trivial. After browsing the internet and seeing what others are doing (lots of pain expressed), my strategy is to have a RowDirty set by the CellContentsModified but to be honest, things just aren't working as expected. The row leave isn't fired if I sink the CellModified (or something). All I can see for sure is that, while one would expect the row leave to fire if a row is left (makes sense to me) that isn't true and so now I am left with trying to figure out what zany rules exist. So here I am, hat in hand, asking the list "how do you do this"? -- John W. Colby www.ColbyConsulting.com From shamil at smsconsulting.spb.ru Thu Jan 20 14:01:51 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Thu, 20 Jan 2011 23:01:51 +0300 Subject: [dba-VB] C# Grid: effectively and efficiently handle dirty In-Reply-To: <4D387659.5010005@colbyconsulting.com> References: <4D387659.5010005@colbyconsulting.com> Message-ID: <4C68C4DCE29E417AA4B54C60AB4E4316@nant> Hi John -- So you use VS2008 (at least) and you have a "datasheet form" - a bound DataGridView with BindingNavigator bound to ADO.NET dataset etc.? If yes - BindingNavigator has CurrentChanged event, which if fired as soon as you move to the other grid's row. When form is closing FormClosing event is fired: private void shipperBindingSource_CurrentChanged(object sender, EventArgs e) { saveEdits(); } private void saveEdits() { this.Validate(); this.shipperBindingSource.EndEdit(); this.tableAdapterManager.UpdateAll(this.northwindNETDataSet1); } private void Form2_FormClosing(object sender, FormClosingEventArgs e) { DataRowView row = shipperBindingSource.Current as DataRowView; if (row.Row.RowState == DataRowState.Modified) saveEdits(); } Thank you. -- Shamil P.S. I must note I rarely work with bound forms and ADO.NET datasets - just my preference but they should be OK in your context of small "quick&dirty" (first version) apps... -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: 20 ?????? 2011 ?. 20:52 To: VBA Subject: [dba-VB] C# Grid: effectively and efficiently handle dirty I am doing C# forms, bound to SQL Server. I dragged and dropped the table out onto the form and C# "installed" the grid as well as a record navigation toolbar. Now I am trying to make sure that data is saved. I have discovered for example that if you edit something and just close the form... no save. Basically no save unless the save button is pressed. Being the anal guy I am, this ain't good enough. I don't want to save after every cell edit, but I do want to save after every row edit or when the form closes. Even this is non-trivial. After browsing the internet and seeing what others are doing (lots of pain expressed), my strategy is to have a RowDirty set by the CellContentsModified but to be honest, things just aren't working as expected. The row leave isn't fired if I sink the CellModified (or something). All I can see for sure is that, while one would expect the row leave to fire if a row is left (makes sense to me) that isn't true and so now I am left with trying to figure out what zany rules exist. So here I am, hat in hand, asking the list "how do you do this"? -- John W. Colby www.ColbyConsulting.com From jwcolby at colbyconsulting.com Thu Jan 20 14:27:14 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 20 Jan 2011 15:27:14 -0500 Subject: [dba-VB] C# Grid: effectively and efficiently handle dirty In-Reply-To: <4C68C4DCE29E417AA4B54C60AB4E4316@nant> References: <4D387659.5010005@colbyconsulting.com> <4C68C4DCE29E417AA4B54C60AB4E4316@nant> Message-ID: <4D389AA2.6050408@colbyconsulting.com> So this saveEdits doesn't do anything if there is no change, but if there is an add, delete or edit then it will correctly store? Works for me. I'll be a testing. Thanks, John W. Colby www.ColbyConsulting.com On 1/20/2011 3:01 PM, Shamil Salakhetdinov wrote: > Hi John -- > > So you use VS2008 (at least) and you have a "datasheet form" - a bound > DataGridView with BindingNavigator bound to ADO.NET dataset etc.? > If yes - BindingNavigator has CurrentChanged event, which if fired as soon > as you move to the other grid's row. > When form is closing FormClosing event is fired: > > private void shipperBindingSource_CurrentChanged(object sender, EventArgs e) > { > saveEdits(); > } > > private void saveEdits() > { > this.Validate(); > this.shipperBindingSource.EndEdit(); > this.tableAdapterManager.UpdateAll(this.northwindNETDataSet1); > } > > private void Form2_FormClosing(object sender, FormClosingEventArgs e) > { > DataRowView row = shipperBindingSource.Current as DataRowView; > if (row.Row.RowState == DataRowState.Modified) saveEdits(); > } > > Thank you. > > -- > Shamil > > P.S. I must note I rarely work with bound forms and ADO.NET datasets - just > my preference but they should be OK in your context of small "quick&dirty" > (first version) apps... > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: 20 ?????? 2011 ?. 20:52 > To: VBA > Subject: [dba-VB] C# Grid: effectively and efficiently handle dirty > > I am doing C# forms, bound to SQL Server. I dragged and dropped the table > out onto the form and C# "installed" the grid as well as a record navigation > toolbar. > > Now I am trying to make sure that data is saved. I have discovered for > example that if you edit something and just close the form... no save. > Basically no save unless the save button is pressed. > > Being the anal guy I am, this ain't good enough. I don't want to save after > every cell edit, but I do want to save after every row edit or when the form > closes. Even this is non-trivial. > > After browsing the internet and seeing what others are doing (lots of pain > expressed), my strategy is to have a RowDirty set by the > CellContentsModified but to be honest, things just aren't working as > expected. The row leave isn't fired if I sink the CellModified (or > something). All I can see for sure is that, while one would expect the row > leave to fire if a row is left (makes sense to me) that isn't true and so > now I am left with trying to figure out what zany rules exist. > > So here I am, hat in hand, asking the list "how do you do this"? > > -- > John W. Colby > www.ColbyConsulting.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From jwcolby at colbyconsulting.com Thu Jan 20 14:29:25 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 20 Jan 2011 15:29:25 -0500 Subject: [dba-VB] C# Grid: effectively and efficiently handle dirty In-Reply-To: <4C68C4DCE29E417AA4B54C60AB4E4316@nant> References: <4D387659.5010005@colbyconsulting.com> <4C68C4DCE29E417AA4B54C60AB4E4316@nant> Message-ID: <4D389B25.4070906@colbyconsulting.com> What does virtual mode do for me? John W. Colby www.ColbyConsulting.com On 1/20/2011 3:01 PM, Shamil Salakhetdinov wrote: > Hi John -- > > So you use VS2008 (at least) and you have a "datasheet form" - a bound > DataGridView with BindingNavigator bound to ADO.NET dataset etc.? > If yes - BindingNavigator has CurrentChanged event, which if fired as soon > as you move to the other grid's row. > When form is closing FormClosing event is fired: > > private void shipperBindingSource_CurrentChanged(object sender, EventArgs e) > { > saveEdits(); > } > > private void saveEdits() > { > this.Validate(); > this.shipperBindingSource.EndEdit(); > this.tableAdapterManager.UpdateAll(this.northwindNETDataSet1); > } > > private void Form2_FormClosing(object sender, FormClosingEventArgs e) > { > DataRowView row = shipperBindingSource.Current as DataRowView; > if (row.Row.RowState == DataRowState.Modified) saveEdits(); > } > > Thank you. > > -- > Shamil > > P.S. I must note I rarely work with bound forms and ADO.NET datasets - just > my preference but they should be OK in your context of small "quick&dirty" > (first version) apps... > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: 20 ?????? 2011 ?. 20:52 > To: VBA > Subject: [dba-VB] C# Grid: effectively and efficiently handle dirty > > I am doing C# forms, bound to SQL Server. I dragged and dropped the table > out onto the form and C# "installed" the grid as well as a record navigation > toolbar. > > Now I am trying to make sure that data is saved. I have discovered for > example that if you edit something and just close the form... no save. > Basically no save unless the save button is pressed. > > Being the anal guy I am, this ain't good enough. I don't want to save after > every cell edit, but I do want to save after every row edit or when the form > closes. Even this is non-trivial. > > After browsing the internet and seeing what others are doing (lots of pain > expressed), my strategy is to have a RowDirty set by the > CellContentsModified but to be honest, things just aren't working as > expected. The row leave isn't fired if I sink the CellModified (or > something). All I can see for sure is that, while one would expect the row > leave to fire if a row is left (makes sense to me) that isn't true and so > now I am left with trying to figure out what zany rules exist. > > So here I am, hat in hand, asking the list "how do you do this"? > > -- > John W. Colby > www.ColbyConsulting.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From jwcolby at colbyconsulting.com Thu Jan 20 14:38:58 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 20 Jan 2011 15:38:58 -0500 Subject: [dba-VB] C# Grid: effectively and efficiently handle dirty In-Reply-To: <4C68C4DCE29E417AA4B54C60AB4E4316@nant> References: <4D387659.5010005@colbyconsulting.com> <4C68C4DCE29E417AA4B54C60AB4E4316@nant> Message-ID: <4D389D62.2090704@colbyconsulting.com> Interesting (and sticky) the form closing does not fire if the main application is closed. I added a saveEdits in the formclosing event (as you indicate) which works if the user clicks the check box in the form that the edit is happening in. IOW edit something then instead of moving to another line, they just close the form. In that case the closing event fires. However that closing event does not fire if the user closes the entire application. Is there a form lostfocus? John W. Colby www.ColbyConsulting.com On 1/20/2011 3:01 PM, Shamil Salakhetdinov wrote: > Hi John -- > > So you use VS2008 (at least) and you have a "datasheet form" - a bound > DataGridView with BindingNavigator bound to ADO.NET dataset etc.? > If yes - BindingNavigator has CurrentChanged event, which if fired as soon > as you move to the other grid's row. > When form is closing FormClosing event is fired: > > private void shipperBindingSource_CurrentChanged(object sender, EventArgs e) > { > saveEdits(); > } > > private void saveEdits() > { > this.Validate(); > this.shipperBindingSource.EndEdit(); > this.tableAdapterManager.UpdateAll(this.northwindNETDataSet1); > } > > private void Form2_FormClosing(object sender, FormClosingEventArgs e) > { > DataRowView row = shipperBindingSource.Current as DataRowView; > if (row.Row.RowState == DataRowState.Modified) saveEdits(); > } > > Thank you. > > -- > Shamil > > P.S. I must note I rarely work with bound forms and ADO.NET datasets - just > my preference but they should be OK in your context of small "quick&dirty" > (first version) apps... > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: 20 ?????? 2011 ?. 20:52 > To: VBA > Subject: [dba-VB] C# Grid: effectively and efficiently handle dirty > > I am doing C# forms, bound to SQL Server. I dragged and dropped the table > out onto the form and C# "installed" the grid as well as a record navigation > toolbar. > > Now I am trying to make sure that data is saved. I have discovered for > example that if you edit something and just close the form... no save. > Basically no save unless the save button is pressed. > > Being the anal guy I am, this ain't good enough. I don't want to save after > every cell edit, but I do want to save after every row edit or when the form > closes. Even this is non-trivial. > > After browsing the internet and seeing what others are doing (lots of pain > expressed), my strategy is to have a RowDirty set by the > CellContentsModified but to be honest, things just aren't working as > expected. The row leave isn't fired if I sink the CellModified (or > something). All I can see for sure is that, while one would expect the row > leave to fire if a row is left (makes sense to me) that isn't true and so > now I am left with trying to figure out what zany rules exist. > > So here I am, hat in hand, asking the list "how do you do this"? > > -- > 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 shamil at smsconsulting.spb.ru Thu Jan 20 15:24:45 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Fri, 21 Jan 2011 00:24:45 +0300 Subject: [dba-VB] C# Grid: effectively and efficiently handle dirty In-Reply-To: <4D389D62.2090704@colbyconsulting.com> References: <4D387659.5010005@colbyconsulting.com><4C68C4DCE29E417AA4B54C60AB4E4316@nant> <4D389D62.2090704@colbyconsulting.com> Message-ID: <1609C9C0463040199A65681DE2B7F675@nant> Hi John, There is a Deactivate event for Form object. Actually a System.Windows.Forms.Form has "more event types one can imagine" - at least many of them are so weird for me - I have never used probably 95% of .NET WinForms and controls events... :) Try to KISS it now John. At least on first pass. What you have to do now is to create the main "meat" part of your app - all forms. You'd better generalize/make all the tricks later - it's so easy to make (if needed) a generic form class inheriting from System.Windows.Forms.Form class etc. and then use that class for all the relevant custom forms... And you can't do it right this first time - it's more important to "get your hands wet" with that stuff - the more you'll do mechanically now - the better (IMO) - the easier and the quicker you'll get all that stuff refactored later... But as you're a seasoned professional with DB modeliing etc. - try to make that part 99% right now.. - that will help a lot on the subsequent refactoring steps... <<< > After browsing the internet and seeing what others are doing (lots of pain expressed), >>> That are beginners very probably - there shouldn't be that much pain when doing .NET System.Windows.Forms development. But when one is a beginner with WinForms - everything looks so complicated because of the volume of information to get through, and because of the project deadline stress... Thank you. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: 20 ?????? 2011 ?. 23:39 To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] C# Grid: effectively and efficiently handle dirty Interesting (and sticky) the form closing does not fire if the main application is closed. I added a saveEdits in the formclosing event (as you indicate) which works if the user clicks the check box in the form that the edit is happening in. IOW edit something then instead of moving to another line, they just close the form. In that case the closing event fires. However that closing event does not fire if the user closes the entire application. Is there a form lostfocus? John W. Colby www.ColbyConsulting.com On 1/20/2011 3:01 PM, Shamil Salakhetdinov wrote: > Hi John -- > > So you use VS2008 (at least) and you have a "datasheet form" - a bound > DataGridView with BindingNavigator bound to ADO.NET dataset etc.? > If yes - BindingNavigator has CurrentChanged event, which if fired as > soon as you move to the other grid's row. > When form is closing FormClosing event is fired: > > private void shipperBindingSource_CurrentChanged(object sender, > EventArgs e) { > saveEdits(); > } > > private void saveEdits() > { > this.Validate(); > this.shipperBindingSource.EndEdit(); > this.tableAdapterManager.UpdateAll(this.northwindNETDataSet1); > } > > private void Form2_FormClosing(object sender, FormClosingEventArgs e) > { > DataRowView row = shipperBindingSource.Current as DataRowView; > if (row.Row.RowState == DataRowState.Modified) saveEdits(); } > > Thank you. > > -- > Shamil > > P.S. I must note I rarely work with bound forms and ADO.NET datasets - > just my preference but they should be OK in your context of small "quick&dirty" > (first version) apps... > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: 20 ?????? 2011 ?. 20:52 > To: VBA > Subject: [dba-VB] C# Grid: effectively and efficiently handle dirty > > I am doing C# forms, bound to SQL Server. I dragged and dropped the > table out onto the form and C# "installed" the grid as well as a > record navigation toolbar. > > Now I am trying to make sure that data is saved. I have discovered > for example that if you edit something and just close the form... no save. > Basically no save unless the save button is pressed. > > Being the anal guy I am, this ain't good enough. I don't want to save > after every cell edit, but I do want to save after every row edit or > when the form closes. Even this is non-trivial. > > After browsing the internet and seeing what others are doing (lots of > pain expressed), my strategy is to have a RowDirty set by the > CellContentsModified but to be honest, things just aren't working as > expected. The row leave isn't fired if I sink the CellModified (or > something). All I can see for sure is that, while one would expect > the row leave to fire if a row is left (makes sense to me) that isn't > true and so now I am left with trying to figure out what zany rules exist. > > So here I am, hat in hand, asking the list "how do you do this"? > From shamil at smsconsulting.spb.ru Fri Jan 21 10:33:50 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Fri, 21 Jan 2011 19:33:50 +0300 Subject: [dba-VB] "Smart" fulltext search on large documents (data)base... Message-ID: <54C40F764B3B4CBB812589E1808149DD@nant> Hi All -- I have a task to implement a system providing "smart" fulltext search over a large base of text documents. My current plan is to use Google Docs. I plan to get in the future 80 GB ($20.00 USD per year) hosted space on GoogleDocs, put all the subject docs there, and then use Google API to search via my documents base. That seems to be it? It should be even possible to create a simple (free?) Google Web Site as front-end to that GoogleDocs documents base? That GoogleDocs base/site is planned to be used by non-profit organization. Am I missing something? Additional overhead costs to keep that solution's stuff on Google site? And why I'm writing about that solution here in dba-VBA? - because I plan to implement a front-end to that application system as an WinForms application coomunicating with Windows API... Thank you. -- Shamil From jwcolby at colbyconsulting.com Sat Jan 22 10:16:02 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 22 Jan 2011 11:16:02 -0500 Subject: [dba-VB] How do I troubleshoot SQL Server Security Message-ID: <4D3B02C2.1010909@colbyconsulting.com> What I want to do: Create an instance of SQL Server running on a specific server, and somehow magically allow a specific set of users logged in to the "system" (not necessarily that server) to access the server. AFAIK Users log in to Active Directory. I do not use Active Directory on my home / business network and do not really understand how it works. In any event it appears that I am going to have to use Active Directory in the SQL Server login? What I tried to do: On the server (windows 2000) I: 1) Created a windows security group DISUsers 2) Added most of the normal users of the computer, all of which will use the SQL Server 2005 Express database, including my user. 3) In SQL Server 2005 Express SSMS at the server level I clicked security login 4) I created a login DiscoServer and I assigned that to the group DiscoSvr\DiscoUsers 5) I checked that the login had the public server role (and only that role) 6) I went into the DISCO database and clickde SDecurity / Users 7) I created a DiscoUsers user assigned to the DiscoSvr\DiscoUsers object (group) 7) I checked the Role members db_DataReader and db_DataWriter I saved all of the above. I then go to my workstation, log in, open ssms and select DiscoSvr\SQLExpress. I can see the database object and I can see a + symbol but if I try to expand the database to see the objects I get a very generic error message "DispecLLC\jcolby is not able to access the database "Disco" under the current Security Context: SQL Server Error 916" I do not understand network security, but AFAICT what is happening is that I am logging in to a network (Active Directory) login (which all users do) but I have just set up SQL Server on that server to use a group / users specific to that server. So is it possible to use a similar method to manipulate SQL Server with active directory groups / users? How is that done. -- John W. Colby www.ColbyConsulting.com From dw-murphy at cox.net Sat Jan 22 11:56:20 2011 From: dw-murphy at cox.net (Doug Murphy) Date: Sat, 22 Jan 2011 09:56:20 -0800 Subject: [dba-VB] "Smart" fulltext search on large documents (data)base... In-Reply-To: <54C40F764B3B4CBB812589E1808149DD@nant> References: <54C40F764B3B4CBB812589E1808149DD@nant> Message-ID: <8FA20A84C52943F49C1F87D8D6AD549B@murphy3234aaf1> Shamil, Very innovative approach. Good use of the low cost and high power offered by the "Cloud" services. I'll be interested in how this comes out. Doug -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Friday, January 21, 2011 8:34 AM To: 'Discussion concerning Visual Basic and related programming issues.' Subject: [dba-VB] "Smart" fulltext search on large documents (data)base... Hi All -- I have a task to implement a system providing "smart" fulltext search over a large base of text documents. My current plan is to use Google Docs. I plan to get in the future 80 GB ($20.00 USD per year) hosted space on GoogleDocs, put all the subject docs there, and then use Google API to search via my documents base. That seems to be it? It should be even possible to create a simple (free?) Google Web Site as front-end to that GoogleDocs documents base? That GoogleDocs base/site is planned to be used by non-profit organization. Am I missing something? Additional overhead costs to keep that solution's stuff on Google site? And why I'm writing about that solution here in dba-VBA? - because I plan to implement a front-end to that application system as an WinForms application coomunicating with Windows API... Thank you. -- Shamil _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Sat Jan 22 13:50:04 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 22 Jan 2011 14:50:04 -0500 Subject: [dba-VB] Edit the source for a dataset Message-ID: <4D3B34EC.3030309@colbyconsulting.com> I created a dataset using the wizard, to connect to a SQL Server instance. When I did so I told it to connect to the Hamachi IP address rather than the Virtual Machine name. When I clicked OK it translated the Hamachi IP to the VM name. Very helpful (not). I have to go back out for another "Arby's test" but if I were to want to specify the name of the server, how do I do so? I am not finding a connection property or anything like it. Where is that stuff? -- John W. Colby www.ColbyConsulting.com From shamil at smsconsulting.spb.ru Sat Jan 22 14:52:34 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sat, 22 Jan 2011 23:52:34 +0300 Subject: [dba-VB] "Smart" fulltext search on large documents(data)base... In-Reply-To: <8FA20A84C52943F49C1F87D8D6AD549B@murphy3234aaf1> References: <54C40F764B3B4CBB812589E1808149DD@nant> <8FA20A84C52943F49C1F87D8D6AD549B@murphy3234aaf1> Message-ID: <31B0AA2D51EB42149AEDF4396BDFF406@nant> Hi Doug -- Thank you for your feedback/interest. I plan to implement a simple WinForms client next week using Google API + Google Docs. I have got already loaded 1000+ docs on my free GoogleDocs account and I have checked how full-text search is working with that stuff when used from within browser. It works well although when a document is found the words are not highlighted - I thought about making not only Google API/Google Docs + WinForms Client but also a Browser control embedded into a WinForm to simplify browsing of found results. Because of the lack of automatic highlighting of the search target words that solution looks a bit problematic now - I will probably have to implement also custom highlighting within browsing control - some DOM programming will be needed probably.. Thank you. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Doug Murphy Sent: 22 ?????? 2011 ?. 20:56 To: 'Discussion concerning Visual Basic and related programming issues.' Subject: Re: [dba-VB] "Smart" fulltext search on large documents(data)base... Shamil, Very innovative approach. Good use of the low cost and high power offered by the "Cloud" services. I'll be interested in how this comes out. Doug -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Friday, January 21, 2011 8:34 AM To: 'Discussion concerning Visual Basic and related programming issues.' Subject: [dba-VB] "Smart" fulltext search on large documents (data)base... Hi All -- I have a task to implement a system providing "smart" fulltext search over a large base of text documents. My current plan is to use Google Docs. I plan to get in the future 80 GB ($20.00 USD per year) hosted space on GoogleDocs, put all the subject docs there, and then use Google API to search via my documents base. That seems to be it? It should be even possible to create a simple (free?) Google Web Site as front-end to that GoogleDocs documents base? That GoogleDocs base/site is planned to be used by non-profit organization. Am I missing something? Additional overhead costs to keep that solution's stuff on Google site? And why I'm writing about that solution here in dba-VBA? - because I plan to implement a front-end to that application system as an WinForms application coomunicating with Windows API... 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 jwcolby at colbyconsulting.com Sat Jan 22 15:01:34 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 22 Jan 2011 16:01:34 -0500 Subject: [dba-VB] C# Connecting to the database (or not as the case may be) Message-ID: <4D3B45AE.3070302@colbyconsulting.com> I am sitting in the local Arby's doing more connection tests back into my home/office vmDev / PrisonMinistries database. Access 2003 connects *instantly*. Admittedly small tables snap open, edits save *instantly*. SSMS connects but not quickly. I can view the database, see tables and all that. Opening the tables takes 6 seconds. C# times out after 15 seconds when just trying to "preview" the data directly in the dataset in the left hand pane. Trying to open a form bound to the table times out after approximately 45 seconds. As I mentioned earlier, when setting up the Access database I found somewhere that I needed to use the Hamachi IP address when making the dsn which I did. SSMS is connecting in to that same Hamachi name. The C# (2008) project "translated" the ip address to the name "vmDev", and I am not finding where the connection information is stored for that dataset. I created a brand new dataset with the connection set back to the Hamachi IP and voila, the dataset can see the data. Found where the connection is kept (properties of the project) and discovered that yep, it had *three* connect strings now, the last of which was directly referencing the IP address. Got rid of all but that one, and now the bound form snaps open as quickly as the Access db did. I think what was going was the the form was trying the first which just plain didn't work, and timed out on that before moving on to the next one etc. Now that I only have one, and it references the IP, all if good in my world. Much still to learn but at least I can connect a bound (small recordset) list form directly to a list table and the form "snaps open" from the Arby's restaurant. -- John W. Colby www.ColbyConsulting.com From shamil at smsconsulting.spb.ru Sat Jan 22 15:17:22 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sun, 23 Jan 2011 00:17:22 +0300 Subject: [dba-VB] Edit the source for a dataset In-Reply-To: <4D3B34EC.3030309@colbyconsulting.com> References: <4D3B34EC.3030309@colbyconsulting.com> Message-ID: <2A89BEDE599A4493B5385FEA784C8FEA@nant> Hi John -- Connection information is stored in app.config file, which gets named by VS as {ApplicationExecutableFileExtName}.config for deployment, e.g. MyTestApplication.exe.config When the app is deployed you can edit this XML text file's manually before you start your app. While within VS you can edit connection string value via: Select VS project in Solution Explorer -> Right-Click -> Properties -> Settings Thank you. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: 22 ?????? 2011 ?. 22:50 To: VBA Subject: [dba-VB] Edit the source for a dataset I created a dataset using the wizard, to connect to a SQL Server instance. When I did so I told it to connect to the Hamachi IP address rather than the Virtual Machine name. When I clicked OK it translated the Hamachi IP to the VM name. Very helpful (not). I have to go back out for another "Arby's test" but if I were to want to specify the name of the server, how do I do so? I am not finding a connection property or anything like it. Where is that stuff? -- John W. Colby www.ColbyConsulting.com From jwcolby at colbyconsulting.com Mon Jan 24 09:50:25 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 24 Jan 2011 10:50:25 -0500 Subject: [dba-VB] Report wizard / viewer Message-ID: <4D3D9FC1.60607@colbyconsulting.com> I am building databases in C# now and am reaching the point where I have to think about reports. I see the report wizard and report viewer object. Are you guys using this? Is this crystal reports in a wrapper or something? Easy, hard? Things I need to know as I start using this thing? TIA, -- John W. Colby www.ColbyConsulting.com From df.waters at comcast.net Mon Jan 24 09:55:04 2011 From: df.waters at comcast.net (Dan Waters) Date: Mon, 24 Jan 2011 09:55:04 -0600 Subject: [dba-VB] Report wizard / viewer In-Reply-To: <4D3D9FC1.60607@colbyconsulting.com> References: <4D3D9FC1.60607@colbyconsulting.com> Message-ID: <9681DFA1BEA7427DBE22EA027CBBC6B1@DanWaters> I looked at reports for a while and decided to use Report Server in SQL Server 2008 R2. They have more features than in SQL Server 2008, and are free. So you don't have to deal with Crystal Reports licensing questions or issues. I don't have experience with this yet, nor have I used Crystal Reports. You install Report Server when you install SQL Server, or you can install Report Server at some point later. Dan -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Monday, January 24, 2011 9:50 AM To: VBA Subject: [dba-VB] Report wizard / viewer I am building databases in C# now and am reaching the point where I have to think about reports. I see the report wizard and report viewer object. Are you guys using this? Is this crystal reports in a wrapper or something? Easy, hard? Things I need to know as I start using this thing? TIA, -- John W. Colby www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Mon Jan 24 10:19:09 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 24 Jan 2011 11:19:09 -0500 Subject: [dba-VB] Report wizard / viewer In-Reply-To: <9681DFA1BEA7427DBE22EA027CBBC6B1@DanWaters> References: <4D3D9FC1.60607@colbyconsulting.com> <9681DFA1BEA7427DBE22EA027CBBC6B1@DanWaters> Message-ID: <4D3DA67D.9020203@colbyconsulting.com> This is a "canned" application that will run on a user's machine out in the world somewhere. As such whatever it does it needs to be part of the C# / .Net run-time package for the application. John W. Colby www.ColbyConsulting.com On 1/24/2011 10:55 AM, Dan Waters wrote: > I looked at reports for a while and decided to use Report Server in SQL > Server 2008 R2. They have more features than in SQL Server 2008, and are > free. So you don't have to deal with Crystal Reports licensing questions or > issues. I don't have experience with this yet, nor have I used Crystal > Reports. > > You install Report Server when you install SQL Server, or you can install > Report Server at some point later. > > Dan > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Monday, January 24, 2011 9:50 AM > To: VBA > Subject: [dba-VB] Report wizard / viewer > > I am building databases in C# now and am reaching the point where I have to > think about reports. I > see the report wizard and report viewer object. Are you guys using this? > Is this crystal reports > in a wrapper or something? Easy, hard? Things I need to know as I start > using this thing? > > TIA, > From shamil at smsconsulting.spb.ru Mon Jan 24 10:55:35 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Mon, 24 Jan 2011 19:55:35 +0300 Subject: [dba-VB] Report wizard / viewer In-Reply-To: <4D3D9FC1.60607@colbyconsulting.com> References: <4D3D9FC1.60607@colbyconsulting.com> Message-ID: Hi John -- You can use MS ReportViewer Control. It's free. But it has to be isntalled additionally to .NET Framework on client's systems. Installation takes a few seconds. Be prepared to spend some time to understand its reporting design/process - it's different from MS Access, or Crystal Reports, ... - but it's quite powerful when you'll get used to use it. To make it easy this first time your can try to make your reports' queries as powerful as possible to leave MS ReportViewer Control only rendering/totalling tasks... MS ReportViewer Control info http://gotreportviewer.com/ MS ReportViewer Control - samples http://northwind.codeplex.com/releases/view/26600 http://northwind.codeplex.com/releases/view/26600#DownloadId=192044 MS ReportViewer Control - samples - in action http://shamils-19.hosting.parking.ru/nw4/ Report Builder 3.0 info (I haven't used it yet ...) http://msdn.microsoft.com/en-us/library/dd207008.aspx Thank you. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: 24 ?????? 2011 ?. 18:50 To: VBA Subject: [dba-VB] Report wizard / viewer I am building databases in C# now and am reaching the point where I have to think about reports. I see the report wizard and report viewer object. Are you guys using this? Is this crystal reports in a wrapper or something? Easy, hard? Things I need to know as I start using this thing? TIA, -- 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 bill_patten at embarqmail.com Mon Jan 24 11:50:48 2011 From: bill_patten at embarqmail.com (Bill Patten) Date: Mon, 24 Jan 2011 09:50:48 -0800 Subject: [dba-VB] Report wizard / viewer In-Reply-To: <4D3DA67D.9020203@colbyconsulting.com> References: <4D3D9FC1.60607@colbyconsulting.com><9681DFA1BEA7427DBE22EA027CBBC6B1@DanWaters> <4D3DA67D.9020203@colbyconsulting.com> Message-ID: ?John, This site has lots of information about VS.2010 Report Viewer, I'm sure much of it applies to 2008 if that is what you are using. As Shamil, say's it is certainly different than Access but the price is right. HTH Bill -------------------------------------------------- From: "jwcolby" Sent: Monday, January 24, 2011 8:19 AM To: ; "Discussion concerning Visual Basic and related programming issues." Subject: Re: [dba-VB] Report wizard / viewer This is a "canned" application that will run on a user's machine out in the world somewhere. As such whatever it does it needs to be part of the C# / .Net run-time package for the application. John W. Colby www.ColbyConsulting.com On 1/24/2011 10:55 AM, Dan Waters wrote: > I looked at reports for a while and decided to use Report Server in SQL > Server 2008 R2. They have more features than in SQL Server 2008, and are > free. So you don't have to deal with Crystal Reports licensing questions > or > issues. I don't have experience with this yet, nor have I used Crystal > Reports. > > You install Report Server when you install SQL Server, or you can install > Report Server at some point later. > > Dan > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Monday, January 24, 2011 9:50 AM > To: VBA > Subject: [dba-VB] Report wizard / viewer > > I am building databases in C# now and am reaching the point where I have > to > think about reports. I > see the report wizard and report viewer object. Are you guys using this? > Is this crystal reports > in a wrapper or something? Easy, hard? Things I need to know as I start > using this thing? > > TIA, > _______________________________________________ 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 Tue Jan 25 10:33:14 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Tue, 25 Jan 2011 19:33:14 +0300 Subject: [dba-VB] Non-blocking loading of a DataGridview using source MS Access table with 120, 000+ rows.... Message-ID: Hi All -- I have a .NET WinForm app with a DataGridView bound to an ADO.NET dataset getting data from MS Access/JET backend table. And I'd like to have my WinForm beeing *non-blocked* while loading that DataGridView with 120,000+ rows from an MS Access backend table. I do fire DataGridView data loading via TimerControl Tick event then run it via BackgroundWorker, I do use SuspendLayout etc. still as far as I see WinForm gets blocked for several seconds: - first when dataset's rows are retrieved, - second when DataGridView gets bound to retrieved dataset. Do you know about/have you seen somewhere any tricks how to make such a large data set loading non-blocking WinForm? It's not a big issue after all - I just wanted to make it working even more smoothly than it does work now - somehow like MS Access datasheets when they load data asynchronously... Of course using 120,000+ rows for a DataGridView is a questionable solution but that's a customer requirement: that much records they get in an year (then they archive/clear backend table and start from scratch) - and filtering that 120,000+ rows when they are loading happens almost instantly - so the only issue is initial loading/refreshing - the latter doesn't happen often... Thank you. -- Shamil From Gustav at cactus.dk Wed Jan 26 04:03:24 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 26 Jan 2011 11:03:24 +0100 Subject: [dba-VB] Non-blocking loading of a DataGridview using source MS Access table with 120, 000+ rows.... Message-ID: Hi Shamil If "several seconds" is the time it takes to read the data from the Access database, it has to happen. And you do so in the background in a separate thread when you open the form and expect the form to be "live" while that happens. However, the form is dimmed or non-responsive until data has been loaded. Couldn't you try - when you open the form - to fill the DataGridView with one or few dummy records and then - when data is loaded - to switch to the real source? However, if this function is used only rarely and the retrieval only lasts for some seconds, I think I would just pop a message box: Please wait ... /gustav >>> shamil at smsconsulting.spb.ru 25-01-2011 17:33 >>> Hi All -- I have a .NET WinForm app with a DataGridView bound to an ADO.NET dataset getting data from MS Access/JET backend table. And I'd like to have my WinForm beeing *non-blocked* while loading that DataGridView with 120,000+ rows from an MS Access backend table. I do fire DataGridView data loading via TimerControl Tick event then run it via BackgroundWorker, I do use SuspendLayout etc. still as far as I see WinForm gets blocked for several seconds: - first when dataset's rows are retrieved, - second when DataGridView gets bound to retrieved dataset. Do you know about/have you seen somewhere any tricks how to make such a large data set loading non-blocking WinForm? It's not a big issue after all - I just wanted to make it working even more smoothly than it does work now - somehow like MS Access datasheets when they load data asynchronously... Of course using 120,000+ rows for a DataGridView is a questionable solution but that's a customer requirement: that much records they get in an year (then they archive/clear backend table and start from scratch) - and filtering that 120,000+ rows when they are loading happens almost instantly - so the only issue is initial loading/refreshing - the latter doesn't happen often... Thank you. -- Shamil From shamil at smsconsulting.spb.ru Wed Jan 26 05:50:23 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Wed, 26 Jan 2011 14:50:23 +0300 Subject: [dba-VB] Non-blocking loading of a DataGridview using source MSAccess table with 120, 000+ rows.... In-Reply-To: References: Message-ID: Hi Gustav -- <<< Couldn't you try - when you open the form - to fill the DataGridView with one or few dummy records and then - when data is loaded - to switch to the real source? >>> Yes, this is what I'm doing: - 1) when a tab with datagridview is activated a user sees a message: "Loading grid's data rows..."; - 2) background(Worker) thread is started, which fills (via dataAdapter) a dataset which is not yet bound to the datagridview; - 3) when thread finished asynchnously it binds datagridview to the filled dataset using boundDataSource; Note: all the time while loading happens DataGridView is invisible and it only set to visible + ResumeLayout(false) + PerformLayout() when the data gets bound. Form becomes non-responsive for a while both on step 2 and step 3. I'm not that surprised about (3) but why loading large dataset in background worker thread should block form for a while - that's unclear here... <<< However, if this function is used only rarely and the retrieval only lasts for some seconds, I think I would just pop a message box: Please wait ... >>> Yes, that what happens now - but I wanted to make it more smooth in the future if possible... 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: 26 ?????? 2011 ?. 13:03 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Non-blocking loading of a DataGridview using source MSAccess table with 120, 000+ rows.... Hi Shamil If "several seconds" is the time it takes to read the data from the Access database, it has to happen. And you do so in the background in a separate thread when you open the form and expect the form to be "live" while that happens. However, the form is dimmed or non-responsive until data has been loaded. Couldn't you try - when you open the form - to fill the DataGridView with one or few dummy records and then - when data is loaded - to switch to the real source? However, if this function is used only rarely and the retrieval only lasts for some seconds, I think I would just pop a message box: Please wait ... /gustav >>> shamil at smsconsulting.spb.ru 25-01-2011 17:33 >>> Hi All -- I have a .NET WinForm app with a DataGridView bound to an ADO.NET dataset getting data from MS Access/JET backend table. And I'd like to have my WinForm beeing *non-blocked* while loading that DataGridView with 120,000+ rows from an MS Access backend table. I do fire DataGridView data loading via TimerControl Tick event then run it via BackgroundWorker, I do use SuspendLayout etc. still as far as I see WinForm gets blocked for several seconds: - first when dataset's rows are retrieved, - second when DataGridView gets bound to retrieved dataset. Do you know about/have you seen somewhere any tricks how to make such a large data set loading non-blocking WinForm? It's not a big issue after all - I just wanted to make it working even more smoothly than it does work now - somehow like MS Access datasheets when they load data asynchronously... Of course using 120,000+ rows for a DataGridView is a questionable solution but that's a customer requirement: that much records they get in an year (then they archive/clear backend table and start from scratch) - and filtering that 120,000+ rows when they are loading happens almost instantly - so the only issue is initial loading/refreshing - the latter doesn't happen often... 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 Wed Jan 26 06:32:43 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 26 Jan 2011 13:32:43 +0100 Subject: [dba-VB] Non-blocking loading of a DataGridview using source MSAccess table with 120, 000+ rows. Message-ID: Hi Shamil As you describe it, it is exactly what I would do and expect. I have no explanation for why step 2 should set the DataGridView on hold ... /gustav >>> shamil at smsconsulting.spb.ru 26-01-2011 12:50 >>> Hi Gustav -- <<< Couldn't you try - when you open the form - to fill the DataGridView with one or few dummy records and then - when data is loaded - to switch to the real source? >>> Yes, this is what I'm doing: - 1) when a tab with datagridview is activated a user sees a message: "Loading grid's data rows..."; - 2) background(Worker) thread is started, which fills (via dataAdapter) a dataset which is not yet bound to the datagridview; - 3) when thread finished asynchnously it binds datagridview to the filled dataset using boundDataSource; Note: all the time while loading happens DataGridView is invisible and it only set to visible + ResumeLayout(false) + PerformLayout() when the data gets bound. Form becomes non-responsive for a while both on step 2 and step 3. I'm not that surprised about (3) but why loading large dataset in background worker thread should block form for a while - that's unclear here... <<< However, if this function is used only rarely and the retrieval only lasts for some seconds, I think I would just pop a message box: Please wait ... >>> Yes, that what happens now - but I wanted to make it more smooth in the future if possible... 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: 26 ?????? 2011 ?. 13:03 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Non-blocking loading of a DataGridview using source MSAccess table with 120, 000+ rows.... Hi Shamil If "several seconds" is the time it takes to read the data from the Access database, it has to happen. And you do so in the background in a separate thread when you open the form and expect the form to be "live" while that happens. However, the form is dimmed or non-responsive until data has been loaded. Couldn't you try - when you open the form - to fill the DataGridView with one or few dummy records and then - when data is loaded - to switch to the real source? However, if this function is used only rarely and the retrieval only lasts for some seconds, I think I would just pop a message box: Please wait ... /gustav >>> shamil at smsconsulting.spb.ru 25-01-2011 17:33 >>> Hi All -- I have a .NET WinForm app with a DataGridView bound to an ADO.NET dataset getting data from MS Access/JET backend table. And I'd like to have my WinForm beeing *non-blocked* while loading that DataGridView with 120,000+ rows from an MS Access backend table. I do fire DataGridView data loading via TimerControl Tick event then run it via BackgroundWorker, I do use SuspendLayout etc. still as far as I see WinForm gets blocked for several seconds: - first when dataset's rows are retrieved, - second when DataGridView gets bound to retrieved dataset. Do you know about/have you seen somewhere any tricks how to make such a large data set loading non-blocking WinForm? It's not a big issue after all - I just wanted to make it working even more smoothly than it does work now - somehow like MS Access datasheets when they load data asynchronously... Of course using 120,000+ rows for a DataGridView is a questionable solution but that's a customer requirement: that much records they get in an year (then they archive/clear backend table and start from scratch) - and filtering that 120,000+ rows when they are loading happens almost instantly - so the only issue is initial loading/refreshing - the latter doesn't happen often... Thank you. -- Shamil From michael at ddisolutions.com.au Wed Jan 26 19:39:00 2011 From: michael at ddisolutions.com.au (Michael Maddison) Date: Thu, 27 Jan 2011 12:39:00 +1100 Subject: [dba-VB] WebMatrix Anyone? Message-ID: <99266C61B516644D9727F983FAFAB4650468EE@remote.ddisolutions.com.au> This looks useful to me. What do those who do a lot of web dev think? I don't do much myself... http://www.microsoft.com/web/enter/?WT.mc_id=aff-f-us-wag-WM-Audience cheers Michael M From ebarro at roadrunner.com Wed Jan 26 20:34:06 2011 From: ebarro at roadrunner.com (Eric Barro) Date: Wed, 26 Jan 2011 18:34:06 -0800 Subject: [dba-VB] WebMatrix Anyone? In-Reply-To: <99266C61B516644D9727F983FAFAB4650468EE@remote.ddisolutions.com.au> References: <99266C61B516644D9727F983FAFAB4650468EE@remote.ddisolutions.com.au> Message-ID: <054701cbbdca$abd6b6d0$03842470$@com> This is a rehash of their original WebMatrix version 1.0 back in the .NET 1.0 days. It was the pre-cursor to VS.NET. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Michael Maddison Sent: Wednesday, January 26, 2011 5:39 PM To: Discussion concerning Visual Basic and related programming issues. Subject: [dba-VB] WebMatrix Anyone? This looks useful to me. What do those who do a lot of web dev think? I don't do much myself... http://www.microsoft.com/web/enter/?WT.mc_id=aff-f-us-wag-WM-Audience cheers Michael M _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From michael at ddisolutions.com.au Wed Jan 26 20:48:15 2011 From: michael at ddisolutions.com.au (Michael Maddison) Date: Thu, 27 Jan 2011 13:48:15 +1100 Subject: [dba-VB] WebMatrix Anyone? References: <99266C61B516644D9727F983FAFAB4650468EE@remote.ddisolutions.com.au> <054701cbbdca$abd6b6d0$03842470$@com> Message-ID: <99266C61B516644D9727F983FAFAB4650468EF@remote.ddisolutions.com.au> Yeah, I kinda remember. This is new though (I think?). It's aimed at the scripting level rather than ASP.Net I think. Has links to 41 open source CMS and other app's built in. Includes IDE support for PHP, DNN, Joomla, PayPal etc. Anyone tried Razor yet? Cheers Michael M From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Thursday, 27 January 2011 1:34 PM To: 'Discussion concerning Visual Basic and related programming issues.' Subject: Re: [dba-VB] WebMatrix Anyone? This is a rehash of their original WebMatrix version 1.0 back in the .NET 1.0 days. It was the pre-cursor to VS.NET. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Michael Maddison Sent: Wednesday, January 26, 2011 5:39 PM To: Discussion concerning Visual Basic and related programming issues. Subject: [dba-VB] WebMatrix Anyone? This looks useful to me. What do those who do a lot of web dev think? I don't do much myself... http://www.microsoft.com/web/enter/?WT.mc_id=aff-f-us-wag-WM-Audience cheers Michael M _______________________________________________ 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 ________________________________ No virus found in this message. Checked by AVG - www.avg.com Version: 10.0.1204 / Virus Database: 1435/3404 - Release Date: 01/26/11 From accessd at shaw.ca Wed Jan 26 21:03:12 2011 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 26 Jan 2011 19:03:12 -0800 Subject: [dba-VB] WebMatrix Anyone? In-Reply-To: <99266C61B516644D9727F983FAFAB4650468EE@remote.ddisolutions.com.au> References: <99266C61B516644D9727F983FAFAB4650468EE@remote.ddisolutions.com.au> Message-ID: Gasp, another program of worthy note...some more to learn. It has a 1.5 hour presentation just to introduce the app. You first. ;-) Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Michael Maddison Sent: Wednesday, January 26, 2011 5:39 PM To: Discussion concerning Visual Basic and related programming issues. Subject: [dba-VB] WebMatrix Anyone? This looks useful to me. What do those who do a lot of web dev think? I don't do much myself... http://www.microsoft.com/web/enter/?WT.mc_id=aff-f-us-wag-WM-Audience cheers Michael M _______________________________________________ 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 Thu Jan 27 06:27:35 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Thu, 27 Jan 2011 15:27:35 +0300 Subject: [dba-VB] Working on an Internet Shop - what is the usual official way to get good pictures of customers' goods for such a shop? Message-ID: <4EC4D1458C794247BAECEF4A1E93CB2D@nant> Hi All -- It's a bit off-topic but it's about ASP.NET driven Internet shop I'm working here on now. The customer is a small company, and it's its first attempt to start selling customers' goods on Internet. The current issue is to make customers' goods photos for this shop - to make them by themselves here or hire good photogrpahs - that's not possible not because of financial issues but because of the way this company sells the goods - many of them are never kept on the stores so it's not possible to make good pictures of that goods right now. And the current intention is to make this shop released ASAP: we use good "out-of-the-box" Internet shop ASP.NET solution. What is the usual official way to get that pictures? I guess that most of the well known brands (that shop is for tennis shoes, clothes, equipment...) do currently have ready to use pics for their customer goods. How to get that pictures officially? What is the usual cost for such a customers good pictures' set for one year models, for, say, Babolat, Nike, Head, ...? Thank you. -- Shamil From Gustav at cactus.dk Thu Jan 27 09:09:54 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 27 Jan 2011 16:09:54 +0100 Subject: [dba-VB] Working on an Internet Shop - what is the usual official way to get good pictures of custom Message-ID: Hi Shamil Pictures typically origin from the supplier/manufacturer as a part of his marketing support. /gustav >>> shamil at smsconsulting.spb.ru 27-01-2011 13:27 >>> Hi All -- It's a bit off-topic but it's about ASP.NET driven Internet shop I'm working here on now. The customer is a small company, and it's its first attempt to start selling customers' goods on Internet. The current issue is to make customers' goods photos for this shop - to make them by themselves here or hire good photogrpahs - that's not possible not because of financial issues but because of the way this company sells the goods - many of them are never kept on the stores so it's not possible to make good pictures of that goods right now. And the current intention is to make this shop released ASAP: we use good "out-of-the-box" Internet shop ASP.NET solution. What is the usual official way to get that pictures? I guess that most of the well known brands (that shop is for tennis shoes, clothes, equipment...) do currently have ready to use pics for their customer goods. How to get that pictures officially? What is the usual cost for such a customers good pictures' set for one year models, for, say, Babolat, Nike, Head, ...? Thank you. -- Shamil From shamil at smsconsulting.spb.ru Thu Jan 27 09:22:27 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Thu, 27 Jan 2011 18:22:27 +0300 Subject: [dba-VB] Working on an Internet Shop - what is theusual official way to get good pictures of custom In-Reply-To: References: Message-ID: <921D7A17F10347559FFF4A9F04F42B62@nant> Hi Gustav -- Thank you for your reply. When you write typically - do you mean your own experience or experience of the other developers you're contacting with there? I'm also thinking that pictures should come from supplier/manufacturer especially for official dealers - they should for the new/additional options/opportunities to get their stuff sold/distributed. But my customer doesn't have such pictures - they just have .pdf or .ppt(x) (MS PowerPoint) catalogs. These are high quality catalogs with very good pics - so the supplier/manufacturer does have all the needed for an Internet shop stuff, and that shop will sell their (supplier/manufacturer) consumer goods... Not sure how to query them to get that catalogs' source pics to use them on Internet shop... I have written a short "enquire for pics" message to Babolat international offices through their site already - we will see will they react at all.. 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: 27 ?????? 2011 ?. 18:10 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Working on an Internet Shop - what is theusual official way to get good pictures of custom Hi Shamil Pictures typically origin from the supplier/manufacturer as a part of his marketing support. /gustav >>> shamil at smsconsulting.spb.ru 27-01-2011 13:27 >>> Hi All -- It's a bit off-topic but it's about ASP.NET driven Internet shop I'm working here on now. The customer is a small company, and it's its first attempt to start selling customers' goods on Internet. The current issue is to make customers' goods photos for this shop - to make them by themselves here or hire good photogrpahs - that's not possible not because of financial issues but because of the way this company sells the goods - many of them are never kept on the stores so it's not possible to make good pictures of that goods right now. And the current intention is to make this shop released ASAP: we use good "out-of-the-box" Internet shop ASP.NET solution. What is the usual official way to get that pictures? I guess that most of the well known brands (that shop is for tennis shoes, clothes, equipment...) do currently have ready to use pics for their customer goods. How to get that pictures officially? What is the usual cost for such a customers good pictures' set for one year models, for, say, Babolat, Nike, Head, ...? 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 Thu Jan 27 09:56:31 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 27 Jan 2011 16:56:31 +0100 Subject: [dba-VB] Working on an Internet Shop - what is the usual official way to get good pictures Message-ID: Hi Shamil No detailed experience - it is just how it works. If you wish to promote a physical product you will need pack shots and/or product shots to pass out for free to any dealer interested - previously to be used in catalogues and brochures, these days for web sites. If you lack such sources, one method is to google/bing on _Pictures_ using the part number or other unique description. Quite often you succeed. /gustav >>> shamil at smsconsulting.spb.ru 27-01-2011 16:22 >>> Hi Gustav -- Thank you for your reply. When you write typically - do you mean your own experience or experience of the other developers you're contacting with there? I'm also thinking that pictures should come from supplier/manufacturer especially for official dealers - they should for the new/additional options/opportunities to get their stuff sold/distributed. But my customer doesn't have such pictures - they just have .pdf or .ppt(x) (MS PowerPoint) catalogs. These are high quality catalogs with very good pics - so the supplier/manufacturer does have all the needed for an Internet shop stuff, and that shop will sell their (supplier/manufacturer) consumer goods... Not sure how to query them to get that catalogs' source pics to use them on Internet shop... I have written a short "enquire for pics" message to Babolat international offices through their site already - we will see will they react at all.. 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: 27 ?????? 2011 ?. 18:10 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Working on an Internet Shop - what is theusual official way to get good pictures of custom Hi Shamil Pictures typically origin from the supplier/manufacturer as a part of his marketing support. /gustav >>> shamil at smsconsulting.spb.ru 27-01-2011 13:27 >>> Hi All -- It's a bit off-topic but it's about ASP.NET driven Internet shop I'm working here on now. The customer is a small company, and it's its first attempt to start selling customers' goods on Internet. The current issue is to make customers' goods photos for this shop - to make them by themselves here or hire good photogrpahs - that's not possible not because of financial issues but because of the way this company sells the goods - many of them are never kept on the stores so it's not possible to make good pictures of that goods right now. And the current intention is to make this shop released ASAP: we use good "out-of-the-box" Internet shop ASP.NET solution. What is the usual official way to get that pictures? I guess that most of the well known brands (that shop is for tennis shoes, clothes, equipment...) do currently have ready to use pics for their customer goods. How to get that pictures officially? What is the usual cost for such a customers good pictures' set for one year models, for, say, Babolat, Nike, Head, ...? Thank you. -- Shamil From shamil at smsconsulting.spb.ru Thu Jan 27 10:14:09 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Thu, 27 Jan 2011 19:14:09 +0300 Subject: [dba-VB] Working on an Internet Shop - what is theusual official way to get good pictures In-Reply-To: References: Message-ID: Hi Gustav -- Thank you for your additional notes. Searching on bing/google - yes, it's possible but - it's very time consuming - there are 1000+ phisical products positions and - (which is more important) I'm not sure that "grabbing" pics on Internet to reuse them in a custom Internet shop is a legal practice. <<< No detailed experience - it is just how it works >>> OK. We will see how my enquire for Babolat will work... I will also ask my customer to request their dealers for the physical products pics... 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: 27 ?????? 2011 ?. 18:57 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Working on an Internet Shop - what is theusual official way to get good pictures Hi Shamil No detailed experience - it is just how it works. If you wish to promote a physical product you will need pack shots and/or product shots to pass out for free to any dealer interested - previously to be used in catalogues and brochures, these days for web sites. If you lack such sources, one method is to google/bing on _Pictures_ using the part number or other unique description. Quite often you succeed. /gustav >>> shamil at smsconsulting.spb.ru 27-01-2011 16:22 >>> Hi Gustav -- Thank you for your reply. When you write typically - do you mean your own experience or experience of the other developers you're contacting with there? I'm also thinking that pictures should come from supplier/manufacturer especially for official dealers - they should for the new/additional options/opportunities to get their stuff sold/distributed. But my customer doesn't have such pictures - they just have .pdf or .ppt(x) (MS PowerPoint) catalogs. These are high quality catalogs with very good pics - so the supplier/manufacturer does have all the needed for an Internet shop stuff, and that shop will sell their (supplier/manufacturer) consumer goods... Not sure how to query them to get that catalogs' source pics to use them on Internet shop... I have written a short "enquire for pics" message to Babolat international offices through their site already - we will see will they react at all.. 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: 27 ?????? 2011 ?. 18:10 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Working on an Internet Shop - what is theusual official way to get good pictures of custom Hi Shamil Pictures typically origin from the supplier/manufacturer as a part of his marketing support. /gustav >>> shamil at smsconsulting.spb.ru 27-01-2011 13:27 >>> Hi All -- It's a bit off-topic but it's about ASP.NET driven Internet shop I'm working here on now. The customer is a small company, and it's its first attempt to start selling customers' goods on Internet. The current issue is to make customers' goods photos for this shop - to make them by themselves here or hire good photogrpahs - that's not possible not because of financial issues but because of the way this company sells the goods - many of them are never kept on the stores so it's not possible to make good pictures of that goods right now. And the current intention is to make this shop released ASAP: we use good "out-of-the-box" Internet shop ASP.NET solution. What is the usual official way to get that pictures? I guess that most of the well known brands (that shop is for tennis shoes, clothes, equipment...) do currently have ready to use pics for their customer goods. How to get that pictures officially? What is the usual cost for such a customers good pictures' set for one year models, for, say, Babolat, Nike, Head, ...? Thank you. -- Shamil _______________________________________________ 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 Thu Jan 27 16:30:15 2011 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 27 Jan 2011 14:30:15 -0800 Subject: [dba-VB] Working on an Internet Shop - what is the usual official way to get good pictures of customers' goods for such a shop? In-Reply-To: <4EC4D1458C794247BAECEF4A1E93CB2D@nant> References: <4EC4D1458C794247BAECEF4A1E93CB2D@nant> Message-ID: <809ABB7E718A4876AEA74C8D8C8B1FED@creativesystemdesigns.com> Hi Shamil: The customers I have, I put them incharge of supplying the pictures...and therefore any copyrights issues are their concerns. I will do picture hunting but the time will cost. Also any picture retouching, of which I do a lot of, is also billable time. One client atually had me go around his store and photograph everything...I brought in a photo backdrop and the lights and the camera and it took almost a week to do 150 products... It would have been cheaper to get in a professional, but they were concerned with copyright issues and as I were putting the items on their new web site anyways, it was a lot easier for them. I think there is no issues with pulling product pictures off a manufacture's web site as after all you are selling their products and as long as they are given appropriate credit there should not be any issues. When downloading pictures from Microsoft's sites, for the DBA web site, their official stance was that they were copyrighted but unofficially they said help yourself as long as you are using the picture to advertise our products and are given us the appropriate credit. If you are using Professional Photographers pictures, that have been put up for sale and are generally tagged with copyright, that is a whole different set of negotiations and costing...one that the company will have to incurr. Note: An artist's (photographer as well) right of ownership to their art can never be removed. For example: A company may buy pictures for a particular web site or advertising campaign but no matter what their contract says the photographer still retains the ultimate rights to any further usage. HTH Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Thursday, January 27, 2011 4:28 AM To: 'Discussion concerning Visual Basic and related programming issues.' Subject: [dba-VB] Working on an Internet Shop - what is the usual official way to get good pictures of customers' goods for such a shop? Hi All -- It's a bit off-topic but it's about ASP.NET driven Internet shop I'm working here on now. The customer is a small company, and it's its first attempt to start selling customers' goods on Internet. The current issue is to make customers' goods photos for this shop - to make them by themselves here or hire good photogrpahs - that's not possible not because of financial issues but because of the way this company sells the goods - many of them are never kept on the stores so it's not possible to make good pictures of that goods right now. And the current intention is to make this shop released ASAP: we use good "out-of-the-box" Internet shop ASP.NET solution. What is the usual official way to get that pictures? I guess that most of the well known brands (that shop is for tennis shoes, clothes, equipment...) do currently have ready to use pics for their customer goods. How to get that pictures officially? What is the usual cost for such a customers good pictures' set for one year models, for, say, Babolat, Nike, Head, ...? Thank you. -- Shamil _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From shamil at smsconsulting.spb.ru Thu Jan 27 18:37:51 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Fri, 28 Jan 2011 03:37:51 +0300 Subject: [dba-VB] Working on an Internet Shop - what is the usualofficial way to get good pictures of customers' goods forsuch a shop? In-Reply-To: <809ABB7E718A4876AEA74C8D8C8B1FED@creativesystemdesigns.com> References: <4EC4D1458C794247BAECEF4A1E93CB2D@nant> <809ABB7E718A4876AEA74C8D8C8B1FED@creativesystemdesigns.com> Message-ID: Hi Jim -- Thank you for your feedback. <<< The customers I have, I put them in charge of supplying the pictures...and therefore any copyrights issues are their concerns. >>> Yes, this is what I've tried to do first of all but it takes "ages" for the customer to get that pictures ready (not yet) - so I have started to look for "workaround" quicker alternatives... Thank you. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: 28 ?????? 2011 ?. 1:30 To: 'Discussion concerning Visual Basic and related programming issues.' Subject: Re: [dba-VB] Working on an Internet Shop - what is the usualofficial way to get good pictures of customers' goods forsuch a shop? Hi Shamil: The customers I have, I put them incharge of supplying the pictures...and therefore any copyrights issues are their concerns. I will do picture hunting but the time will cost. Also any picture retouching, of which I do a lot of, is also billable time. One client atually had me go around his store and photograph everything...I brought in a photo backdrop and the lights and the camera and it took almost a week to do 150 products... It would have been cheaper to get in a professional, but they were concerned with copyright issues and as I were putting the items on their new web site anyways, it was a lot easier for them. I think there is no issues with pulling product pictures off a manufacture's web site as after all you are selling their products and as long as they are given appropriate credit there should not be any issues. When downloading pictures from Microsoft's sites, for the DBA web site, their official stance was that they were copyrighted but unofficially they said help yourself as long as you are using the picture to advertise our products and are given us the appropriate credit. If you are using Professional Photographers pictures, that have been put up for sale and are generally tagged with copyright, that is a whole different set of negotiations and costing...one that the company will have to incurr. Note: An artist's (photographer as well) right of ownership to their art can never be removed. For example: A company may buy pictures for a particular web site or advertising campaign but no matter what their contract says the photographer still retains the ultimate rights to any further usage. HTH Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Thursday, January 27, 2011 4:28 AM To: 'Discussion concerning Visual Basic and related programming issues.' Subject: [dba-VB] Working on an Internet Shop - what is the usual official way to get good pictures of customers' goods for such a shop? Hi All -- It's a bit off-topic but it's about ASP.NET driven Internet shop I'm working here on now. The customer is a small company, and it's its first attempt to start selling customers' goods on Internet. The current issue is to make customers' goods photos for this shop - to make them by themselves here or hire good photogrpahs - that's not possible not because of financial issues but because of the way this company sells the goods - many of them are never kept on the stores so it's not possible to make good pictures of that goods right now. And the current intention is to make this shop released ASAP: we use good "out-of-the-box" Internet shop ASP.NET solution. What is the usual official way to get that pictures? I guess that most of the well known brands (that shop is for tennis shoes, clothes, equipment...) do currently have ready to use pics for their customer goods. How to get that pictures officially? What is the usual cost for such a customers good pictures' set for one year models, for, say, Babolat, Nike, Head, ...? 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 marklbreen at gmail.com Fri Jan 28 03:41:09 2011 From: marklbreen at gmail.com (Mark Breen) Date: Fri, 28 Jan 2011 09:41:09 +0000 Subject: [dba-VB] Working on an Internet Shop - what is the usual official way to get good pictures of customers' goods for such a shop? In-Reply-To: <4EC4D1458C794247BAECEF4A1E93CB2D@nant> References: <4EC4D1458C794247BAECEF4A1E93CB2D@nant> Message-ID: Hello Shamil, It might not be useful, but for free photo's take a look at http://sxc.hu/ I was just told about it yesterday thanks Mark On 27 January 2011 12:27, Shamil Salakhetdinov wrote: > Hi All -- > > It's a bit off-topic but it's about ASP.NET driven Internet shop I'm > working > here on now. > The customer is a small company, and it's its first attempt to start > selling > customers' goods on Internet. > The current issue is to make customers' goods photos for this shop - to > make > them by themselves here or hire good photogrpahs - that's not possible not > because of financial issues but because of the way this company sells the > goods - many of them are never kept on the stores so it's not possible to > make good pictures of that goods right now. And the current intention is to > make this shop released ASAP: we use good "out-of-the-box" Internet shop > ASP.NET solution. > > What is the usual official way to get that pictures? > I guess that most of the well known brands (that shop is for tennis shoes, > clothes, equipment...) do currently have ready to use pics for their > customer goods. > How to get that pictures officially? > What is the usual cost for such a customers good pictures' set for one year > models, for, say, Babolat, Nike, Head, ...? > > 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 Sun Jan 30 09:59:50 2011 From: gustav at cactus.dk (Gustav Brock) Date: Sun, 30 Jan 2011 16:59:50 +0100 Subject: [dba-VB] Localizing Silverlight Business Application Message-ID: Hi all I had a lot of trouble adding dynamic culture selection to a Silverlight Business Application. But by combining info from these links I finally succeeded: http://johnlivingstontech.blogspot.com/2010/02/localizing-resources-in-silverlight.html http://msdn.microsoft.com/en-us/library/dd941931(v=vs.95).aspx http://blogs.msdn.com/b/brada/archive/2010/03/22/silverlight-4-ria-services-ready-for-business-localizing-business-application.aspx The missing task which left the login labels untouched, was to add the localized resx files from the web project "as link" to the Web\Resources folder of the main project. This way all text for labels, error messages, tool tips, etc. are kept in separate resx files. Further, select a language in the combobox and the language changes instantaneously. Great! /gustav From jwcolby at colbyconsulting.com Sun Jan 30 15:53:36 2011 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sun, 30 Jan 2011 16:53:36 -0500 Subject: [dba-VB] Hamachi VPN information Message-ID: <4D45DDE0.3060409@colbyconsulting.com> I use Hamachi a lot. I am trying to set up Hamachi VPNs specific to client groups, IOW a VPN for Lenoir Prison Ministry, a VPN for Forgiven Ministry, a group for FSN Hope, a group for C2DbInternal etc. What I did not really understand is that there are actually three types of networks. I am going to cut and paste the definitions from Hamachi's page just so that you can see what they have to say. http://help.logmein.com/SelfServiceSearchResults?kw=hub+and+spoke&product=lmihamachi2&sr=0 http://help.logmein.com/SelfServiceKnowledgeRenderer?type=Documentation&id=kA130000000Lu1YCAS&search=1&kw=hub%20and%20spoke * Gateway virtual networking: Provide remote users with secure access to your private network/LAN, including the resources on it, from a centralized LogMeIn Hamachi? gateway, without modifying firewalls or network routers. * Hub-and-spoke virtual networking: Provide remote users with secure access to specific resources on your network, from any location, without modifying firewalls or network routers. * Mesh networking: Connect all of your network clients to each other. Quickly and easily create a simple, virtual, mesh network that allows remote machines to directly connect to each other, thereby giving users basic network access to all the network resources they need. So, I wanted a private network for each client. I wanted a hub and spoke for each client because both of the other types (mesh and gateway) allow all computers to see each other. In most cases, these clients are a group of people who really don't want each other to see their shares etc. If you create a network from a client (as I did) instead of from the Hamachi Web page, then you automatically create a mesh network. Once you create a network from a client, I have never found a way to "connect" or subscribe that network into your online network management page. Bad news. So think carefully about the future and consider doing all of your network management from the web page. Essentially you create an Hamachi account which you can log in to. Once you do that you can create networks from that page, then send emails to people with invitations to join your networks. You get to "approve" the subscriptions. Because I had created all of my networks from the client on my laptop, they were all "mesh" networks, and everyone could see everyone. Even worse the visibility extended out of the network to other networks. Even worse than that, I started getting echos between the networks. IOW, because mu computer belonged to each of the mesg networks I would ping computers and get many different ping echos. If you are ever going to do a single network then fine (maybe) build it from one of the Hamachi clients. However if you ever anticipate doing multiple networks as I am doing, do yourself a favor and start from the Web page and always create your networks from there. -- John W. Colby www.ColbyConsulting.com From shamil at smsconsulting.spb.ru Sun Jan 30 18:23:45 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Mon, 31 Jan 2011 03:23:45 +0300 Subject: [dba-VB] Mercurial vs. SVN Message-ID: Hi All -- Does SVN support "ignore list" as Mercurial does? (I wanted to exclude binaries and some other files from add/commit batch without going through all of added/updated items manually every time on commit). I do use Tortoise SVN v.1.4.5, and I do not see "ignore list feature" - does Tortoise SVN 1.4.7 support this feature? Or can I define ignore list somehow else when working with SVN? Thank you. -- Shamil From shamil at smsconsulting.spb.ru Sun Jan 30 19:22:12 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Mon, 31 Jan 2011 04:22:12 +0300 Subject: [dba-VB] Localizing Silverlight Business Application In-Reply-To: References: Message-ID: <2C3D300F73144E6AA37430916F1F20EB@nant> Hi Gustav -- Thank you for your note. I'm not sure I will use SIlverLight in the development real soon but who knows... Do you use SilverLight "hard way" or via LightSwitch? 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: 30 ?????? 2011 ?. 19:00 To: dba-vb at databaseadvisors.com Subject: [dba-VB] Localizing Silverlight Business Application Hi all I had a lot of trouble adding dynamic culture selection to a Silverlight Business Application. But by combining info from these links I finally succeeded: http://johnlivingstontech.blogspot.com/2010/02/localizing-resources-in-silve rlight.html http://msdn.microsoft.com/en-us/library/dd941931(v=vs.95).aspx http://blogs.msdn.com/b/brada/archive/2010/03/22/silverlight-4-ria-services- ready-for-business-localizing-business-application.aspx The missing task which left the login labels untouched, was to add the localized resx files from the web project "as link" to the Web\Resources folder of the main project. This way all text for labels, error messages, tool tips, etc. are kept in separate resx files. Further, select a language in the combobox and the language changes instantaneously. Great! /gustav _______________________________________________ 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 Mon Jan 31 02:43:27 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 31 Jan 2011 09:43:27 +0100 Subject: [dba-VB] Mercurial vs. SVN Message-ID: Hi Shamil That's a very old version, current version is 1.6.something. The trick is the Shift key. From the help file: Hold the Shift key to get the extended context menu and select TortoiseSVN and Delete (keep local) to mark the file/folder for deletion from the repository without losing the local copy. /gustav >>> shamil at smsconsulting.spb.ru 31-01-2011 01:23 >>> Hi All -- Does SVN support "ignore list" as Mercurial does? (I wanted to exclude binaries and some other files from add/commit batch without going through all of added/updated items manually every time on commit). I do use Tortoise SVN v.1.4.5, and I do not see "ignore list feature" - does Tortoise SVN 1.4.7 support this feature? Or can I define ignore list somehow else when working with SVN? Thank you. -- Shamil From Gustav at cactus.dk Mon Jan 31 02:59:52 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 31 Jan 2011 09:59:52 +0100 Subject: [dba-VB] Localizing Silverlight Business Application Message-ID: Hi Shamil Yes, I have a small project where I would use Silverlight straight, also to gain some knowledge for programming to Windows Phone 7 - we just got our Samsung Omnia 7 last week to replace the seven year old Sony-Ericsson T610 which have served extremely well. I located a book: Pro Business Applications with Silverlight 4 by Chris Anderson http://apress.com/book/view/9781430272076 to obtain some support. /gustav >>> shamil at smsconsulting.spb.ru 31-01-2011 02:22 >>> Hi Gustav -- Thank you for your note. I'm not sure I will use SIlverLight in the development real soon but who knows... Do you use SilverLight "hard way" or via LightSwitch? 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: 30 ?????? 2011 ?. 19:00 To: dba-vb at databaseadvisors.com Subject: [dba-VB] Localizing Silverlight Business Application Hi all I had a lot of trouble adding dynamic culture selection to a Silverlight Business Application. But by combining info from these links I finally succeeded: http://johnlivingstontech.blogspot.com/2010/02/localizing-resources-in-silverlight.html http://msdn.microsoft.com/en-us/library/dd941931(v=vs.95).aspx http://blogs.msdn.com/b/brada/archive/2010/03/22/silverlight-4-ria-services-ready-for-business-localizing-business-application.aspx The missing task which left the login labels untouched, was to add the localized resx files from the web project "as link" to the Web\Resources folder of the main project. This way all text for labels, error messages, tool tips, etc. are kept in separate resx files. Further, select a language in the combobox and the language changes instantaneously. Great! /gustav From shamil at smsconsulting.spb.ru Mon Jan 31 05:33:29 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Mon, 31 Jan 2011 14:33:29 +0300 Subject: [dba-VB] Localizing Silverlight Business Application In-Reply-To: References: Message-ID: <438E214CF58F4A2492FD6F7C26AA8E19@nant> Hi Gustav -- Thank you for your additional notes on Silverlight and Windiows Phone 7. BTW, I have checked Samsung Omnia 7 seems to be available here to - it costs USD700: 1) it doesn't have EMS - no problem; 2) it doesn't support memory cards - shoudln't be an issue - it has 8GB of memory installed; -- Does Windows Phone 7 support MS SQL Server CE? What software is additionally needed to develop for Silverlight 4 using VS2010? Do you expect that Windows Phone 7 may become one of the main parts of your custom software development business in the near future? Not easy question I know, you can skip it :) 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: 31 ?????? 2011 ?. 12:00 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Localizing Silverlight Business Application Hi Shamil Yes, I have a small project where I would use Silverlight straight, also to gain some knowledge for programming to Windows Phone 7 - we just got our Samsung Omnia 7 last week to replace the seven year old Sony-Ericsson T610 which have served extremely well. I located a book: Pro Business Applications with Silverlight 4 by Chris Anderson http://apress.com/book/view/9781430272076 to obtain some support. /gustav >>> shamil at smsconsulting.spb.ru 31-01-2011 02:22 >>> Hi Gustav -- Thank you for your note. I'm not sure I will use SIlverLight in the development real soon but who knows... Do you use SilverLight "hard way" or via LightSwitch? 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: 30 ?????? 2011 ?. 19:00 To: dba-vb at databaseadvisors.com Subject: [dba-VB] Localizing Silverlight Business Application Hi all I had a lot of trouble adding dynamic culture selection to a Silverlight Business Application. But by combining info from these links I finally succeeded: http://johnlivingstontech.blogspot.com/2010/02/localizing-resources-in-silve rlight.html http://msdn.microsoft.com/en-us/library/dd941931(v=vs.95).aspx http://blogs.msdn.com/b/brada/archive/2010/03/22/silverlight-4-ria-services- ready-for-business-localizing-business-application.aspx The missing task which left the login labels untouched, was to add the localized resx files from the web project "as link" to the Web\Resources folder of the main project. This way all text for labels, error messages, tool tips, etc. are kept in separate resx files. Further, select a language in the combobox and the language changes instantaneously. Great! /gustav _______________________________________________ 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 Mon Jan 31 05:48:22 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Mon, 31 Jan 2011 14:48:22 +0300 Subject: [dba-VB] Mercurial vs. SVN In-Reply-To: References: Message-ID: Hi Gustav -- Thank you for your note. I should probably install newer version. But the one I have does support the feature of ignoring/making local individual files (filenames patterns) and *whole* folders. That is useful but that's not what I'm looking for/what exists in Mercurial it has more powerful feature to keep ignore list. BTW, SVN does inform that it added file/folder to the ignore list - is it possible to edit that list manually? If yes, where it's located? - I can find it - maybe you just know it from memory/used it: in Mercurial I usually just have a generic ignore list, which I'm putting in every new repository I create and then I'm adding specific files/filenames templates to that ignore list. Gustav, it's not a big issue - I can find my way using SVN via command lines - mainly wondering if I can skip making a batch which will use command line interface of SVN to "clean-up" local repository from some files/folders before committing it... BTW, https://bitbucket.org/ has an option of free unlimited code repositories up to 5 users... I haven't used it yet but I do plan to put all my important source code mirrored there in private code repository... 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: 31 ?????? 2011 ?. 11:43 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Mercurial vs. SVN Hi Shamil That's a very old version, current version is 1.6.something. The trick is the Shift key. From the help file: Hold the Shift key to get the extended context menu and select TortoiseSVN and Delete (keep local) to mark the file/folder for deletion from the repository without losing the local copy. /gustav >>> shamil at smsconsulting.spb.ru 31-01-2011 01:23 >>> Hi All -- Does SVN support "ignore list" as Mercurial does? (I wanted to exclude binaries and some other files from add/commit batch without going through all of added/updated items manually every time on commit). I do use Tortoise SVN v.1.4.5, and I do not see "ignore list feature" - does Tortoise SVN 1.4.7 support this feature? Or can I define ignore list somehow else when working with SVN? 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 Mon Jan 31 08:47:37 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 31 Jan 2011 15:47:37 +0100 Subject: [dba-VB] Mercurial vs. SVN Message-ID: Hi Shamil I don't know about these details of TortoiseSVN - I just used it for the Northwind project and never had any trouble - and stayed off the command line. Thanks for the tip (for Mercurial hosting) at bitbucket. However, I think I stay with TortoiseSVN and/or VisualSVN as they have worked fine for me. /gustav >>> shamil at smsconsulting.spb.ru 31-01-2011 12:48 >>> Hi Gustav -- Thank you for your note. I should probably install newer version. But the one I have does support the feature of ignoring/making local individual files (filenames patterns) and *whole* folders. That is useful but that's not what I'm looking for/what exists in Mercurial it has more powerful feature to keep ignore list. BTW, SVN does inform that it added file/folder to the ignore list - is it possible to edit that list manually? If yes, where it's located? - I can find it - maybe you just know it from memory/used it: in Mercurial I usually just have a generic ignore list, which I'm putting in every new repository I create and then I'm adding specific files/filenames templates to that ignore list. Gustav, it's not a big issue - I can find my way using SVN via command lines - mainly wondering if I can skip making a batch which will use command line interface of SVN to "clean-up" local repository from some files/folders before committing it... BTW, https://bitbucket.org/ has an option of free unlimited code repositories up to 5 users... I haven't used it yet but I do plan to put all my important source code mirrored there in private code repository... 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: 31 ?????? 2011 ?. 11:43 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Mercurial vs. SVN Hi Shamil That's a very old version, current version is 1.6.something. The trick is the Shift key. From the help file: Hold the Shift key to get the extended context menu and select TortoiseSVN and Delete (keep local) to mark the file/folder for deletion from the repository without losing the local copy. /gustav >>> shamil at smsconsulting.spb.ru 31-01-2011 01:23 >>> Hi All -- Does SVN support "ignore list" as Mercurial does? (I wanted to exclude binaries and some other files from add/commit batch without going through all of added/updated items manually every time on commit). I do use Tortoise SVN v.1.4.5, and I do not see "ignore list feature" - does Tortoise SVN 1.4.7 support this feature? Or can I define ignore list somehow else when working with SVN? Thank you. -- Shamil From Gustav at cactus.dk Mon Jan 31 09:07:30 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 31 Jan 2011 16:07:30 +0100 Subject: [dba-VB] Localizing Silverlight Business Application Message-ID: Hi Shamil No, WP7 does not support databases - you set up a service for data communication. That's one of the things I wish to check out. As for development software, start here: Getting Started with Windows Phone Development http://msdn.microsoft.com/en-us/library/ff402529(v=vs.92).aspx and visit the download page: Installing Windows Phone Developer Tools http://msdn.microsoft.com/en-us/library/ff402530(v=vs.92).aspx Code Samples for Windows Phone http://msdn.microsoft.com/en-us/library/ff431744(v=vs.92).aspx Windows Phone 7 Design Guidelines * Cheat Sheet http://blogs.msdn.com/b/silverlight_sdk/archive/2011/01/07/windows-phone-7-design-guidelines-cheat-sheet.aspx Also: How to Use the Windows Phone Connect Tool http://msdn.microsoft.com/en-us/library/gg180729(v=VS.92).aspx /gustav >>> shamil at smsconsulting.spb.ru 31-01-2011 12:33 >>> Hi Gustav -- Thank you for your additional notes on Silverlight and Windiows Phone 7. BTW, I have checked Samsung Omnia 7 seems to be available here to - it costs USD700: 1) it doesn't have EMS - no problem; 2) it doesn't support memory cards - shoudln't be an issue - it has 8GB of memory installed; -- Does Windows Phone 7 support MS SQL Server CE? What software is additionally needed to develop for Silverlight 4 using VS2010? Do you expect that Windows Phone 7 may become one of the main parts of your custom software development business in the near future? Not easy question I know, you can skip it :) Thank you. -- Shamil From shamil at smsconsulting.spb.ru Mon Jan 31 12:00:41 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Mon, 31 Jan 2011 21:00:41 +0300 Subject: [dba-VB] Localizing Silverlight Business Application In-Reply-To: References: Message-ID: <546CF087491E4AF89EC2591F8E693CA6@nant> Hi Gustav -- Thank you for the additional information and the links you have provided - I will use them for Windows Phone 7 "must have" set of links first place. And I guess Windows Phone 7 Developer Tools do have Windows Phone 7 Device simulator running under VS2010 when debugging/testing? 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: 31 ?????? 2011 ?. 18:08 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Localizing Silverlight Business Application Hi Shamil No, WP7 does not support databases - you set up a service for data communication. That's one of the things I wish to check out. As for development software, start here: Getting Started with Windows Phone Development http://msdn.microsoft.com/en-us/library/ff402529(v=vs.92).aspx and visit the download page: Installing Windows Phone Developer Tools http://msdn.microsoft.com/en-us/library/ff402530(v=vs.92).aspx Code Samples for Windows Phone http://msdn.microsoft.com/en-us/library/ff431744(v=vs.92).aspx Windows Phone 7 Design Guidelines * Cheat Sheet http://blogs.msdn.com/b/silverlight_sdk/archive/2011/01/07/windows-phone-7-d esign-guidelines-cheat-sheet.aspx Also: How to Use the Windows Phone Connect Tool http://msdn.microsoft.com/en-us/library/gg180729(v=VS.92).aspx /gustav >>> shamil at smsconsulting.spb.ru 31-01-2011 12:33 >>> Hi Gustav -- Thank you for your additional notes on Silverlight and Windiows Phone 7. BTW, I have checked Samsung Omnia 7 seems to be available here to - it costs USD700: 1) it doesn't have EMS - no problem; 2) it doesn't support memory cards - shoudln't be an issue - it has 8GB of memory installed; -- Does Windows Phone 7 support MS SQL Server CE? What software is additionally needed to develop for Silverlight 4 using VS2010? Do you expect that Windows Phone 7 may become one of the main parts of your custom software development business in the near future? Not easy question I know, you can skip 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 Mon Jan 31 12:19:52 2011 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 31 Jan 2011 19:19:52 +0100 Subject: [dba-VB] Localizing Silverlight Business Application Message-ID: Hi Shamil Well, to some degree and probably for you and me. However, for media applications you may need the Windows Phone Connect Tool and a physical phone as I understand it (not tested by me). /gustav >>> shamil at smsconsulting.spb.ru 31-01-2011 19:00 >>> Hi Gustav -- Thank you for the additional information and the links you have provided - I will use them for Windows Phone 7 "must have" set of links first place. And I guess Windows Phone 7 Developer Tools do have Windows Phone 7 Device simulator running under VS2010 when debugging/testing? 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: 31 ?????? 2011 ?. 18:08 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Localizing Silverlight Business Application Hi Shamil No, WP7 does not support databases - you set up a service for data communication. That's one of the things I wish to check out. As for development software, start here: Getting Started with Windows Phone Development http://msdn.microsoft.com/en-us/library/ff402529(v=vs.92).aspx and visit the download page: Installing Windows Phone Developer Tools http://msdn.microsoft.com/en-us/library/ff402530(v=vs.92).aspx Code Samples for Windows Phone http://msdn.microsoft.com/en-us/library/ff431744(v=vs.92).aspx Windows Phone 7 Design Guidelines * Cheat Sheet http://blogs.msdn.com/b/silverlight_sdk/archive/2011/01/07/windows-phone-7-d esign-guidelines-cheat-sheet.aspx Also: How to Use the Windows Phone Connect Tool http://msdn.microsoft.com/en-us/library/gg180729(v=VS.92).aspx /gustav From shamil at smsconsulting.spb.ru Mon Jan 31 12:26:09 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Mon, 31 Jan 2011 21:26:09 +0300 Subject: [dba-VB] Localizing Silverlight Business Application In-Reply-To: References: Message-ID: <85D74A02917E458C862D28B12BD21AF6@nant> Hi Gustav -- Do Silverlight 4 applications need to use Windows Phone Connect Tool or Silverlight applications can be run locally in debug mode (with database backend used via a Web Service as you noted). Does Windows Phone support WinForms at all? Or all Windows Phone 7 apps run within Silverlight "shell"? (<- Sorry that question may sound silly...) BTW, here is ScottGu's link blog entry on Windows Phone 7 Developers tools: http://weblogs.asp.net/scottgu/archive/2010/09/16/windows-phone-7-developer- tools-released.aspx 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: 31 ?????? 2011 ?. 21:20 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Localizing Silverlight Business Application Hi Shamil Well, to some degree and probably for you and me. However, for media applications you may need the Windows Phone Connect Tool and a physical phone as I understand it (not tested by me). /gustav >>> shamil at smsconsulting.spb.ru 31-01-2011 19:00 >>> Hi Gustav -- Thank you for the additional information and the links you have provided - I will use them for Windows Phone 7 "must have" set of links first place. And I guess Windows Phone 7 Developer Tools do have Windows Phone 7 Device simulator running under VS2010 when debugging/testing? 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: 31 ?????? 2011 ?. 18:08 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Localizing Silverlight Business Application Hi Shamil No, WP7 does not support databases - you set up a service for data communication. That's one of the things I wish to check out. As for development software, start here: Getting Started with Windows Phone Development http://msdn.microsoft.com/en-us/library/ff402529(v=vs.92).aspx and visit the download page: Installing Windows Phone Developer Tools http://msdn.microsoft.com/en-us/library/ff402530(v=vs.92).aspx Code Samples for Windows Phone http://msdn.microsoft.com/en-us/library/ff431744(v=vs.92).aspx Windows Phone 7 Design Guidelines * Cheat Sheet http://blogs.msdn.com/b/silverlight_sdk/archive/2011/01/07/windows-phone-7-d esign-guidelines-cheat-sheet.aspx Also: How to Use the Windows Phone Connect Tool http://msdn.microsoft.com/en-us/library/gg180729(v=VS.92).aspx /gustav _______________________________________________ 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 Mon Jan 31 12:31:54 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Mon, 31 Jan 2011 21:31:54 +0300 Subject: [dba-VB] Mercurial vs. SVN In-Reply-To: References: Message-ID: <9931D85A29A94CD39BBB795EFA3DB088@nant> Hi Gustav -- OK. tryig to use this info here http://stackoverflow.com/questions/85353/best-general-svn-ignore-pattern still not sure how to make it working properly - tried via SVN->[Properties] but it somehow didn't work well... As for SVN and Mercurial and Northwind.CodePlex.com - I'm going to "cross" them: - I do use Mercurial locally but - in the next release on codeplex I do plan to commit Mercuarial repository entries within source code, so the one who uses SVN - will use it, then one who use Mercurial - will use it. That's a plan. I do not see why it can break. I could be missing something. I do plan to make a new "crossed" release on Northwind.codeplex.com this week. 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: 31 ?????? 2011 ?. 17:48 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Mercurial vs. SVN Hi Shamil I don't know about these details of TortoiseSVN - I just used it for the Northwind project and never had any trouble - and stayed off the command line. Thanks for the tip (for Mercurial hosting) at bitbucket. However, I think I stay with TortoiseSVN and/or VisualSVN as they have worked fine for me. /gustav >>> shamil at smsconsulting.spb.ru 31-01-2011 12:48 >>> Hi Gustav -- Thank you for your note. I should probably install newer version. But the one I have does support the feature of ignoring/making local individual files (filenames patterns) and *whole* folders. That is useful but that's not what I'm looking for/what exists in Mercurial it has more powerful feature to keep ignore list. BTW, SVN does inform that it added file/folder to the ignore list - is it possible to edit that list manually? If yes, where it's located? - I can find it - maybe you just know it from memory/used it: in Mercurial I usually just have a generic ignore list, which I'm putting in every new repository I create and then I'm adding specific files/filenames templates to that ignore list. Gustav, it's not a big issue - I can find my way using SVN via command lines - mainly wondering if I can skip making a batch which will use command line interface of SVN to "clean-up" local repository from some files/folders before committing it... BTW, https://bitbucket.org/ has an option of free unlimited code repositories up to 5 users... I haven't used it yet but I do plan to put all my important source code mirrored there in private code repository... 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: 31 ?????? 2011 ?. 11:43 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Mercurial vs. SVN Hi Shamil That's a very old version, current version is 1.6.something. The trick is the Shift key. From the help file: Hold the Shift key to get the extended context menu and select TortoiseSVN and Delete (keep local) to mark the file/folder for deletion from the repository without losing the local copy. /gustav >>> shamil at smsconsulting.spb.ru 31-01-2011 01:23 >>> Hi All -- Does SVN support "ignore list" as Mercurial does? (I wanted to exclude binaries and some other files from add/commit batch without going through all of added/updated items manually every time on commit). I do use Tortoise SVN v.1.4.5, and I do not see "ignore list feature" - does Tortoise SVN 1.4.7 support this feature? Or can I define ignore list somehow else when working with SVN? 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 Mon Jan 31 14:55:34 2011 From: gustav at cactus.dk (Gustav Brock) Date: Mon, 31 Jan 2011 21:55:34 +0100 Subject: [dba-VB] Localizing Silverlight Business Application Message-ID: Hi Shamil The Phone Connect is only needed for running apps that stream video and the like. I have no specifics, sorry. WP7 apps are Silverlight only for "normal" apps or XNA for games and highly graphic apps. No WinForms. Thanks for the link. That seems relevant to study. Scott Gu is a good presenter. /gustav >>> shamil at smsconsulting.spb.ru 31-01-2011 19:26 >>> Hi Gustav -- Do Silverlight 4 applications need to use Windows Phone Connect Tool or Silverlight applications can be run locally in debug mode (with database backend used via a Web Service as you noted). Does Windows Phone support WinForms at all? Or all Windows Phone 7 apps run within Silverlight "shell"? (<- Sorry that question may sound silly...) BTW, here is ScottGu's link blog entry on Windows Phone 7 Developers tools: http://weblogs.asp.net/scottgu/archive/2010/09/16/windows-phone-7-developer-tools-released.aspx 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: 31 ?????? 2011 ?. 21:20 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Localizing Silverlight Business Application Hi Shamil Well, to some degree and probably for you and me. However, for media applications you may need the Windows Phone Connect Tool and a physical phone as I understand it (not tested by me). /gustav >>> shamil at smsconsulting.spb.ru 31-01-2011 19:00 >>> Hi Gustav -- Thank you for the additional information and the links you have provided - I will use them for Windows Phone 7 "must have" set of links first place. And I guess Windows Phone 7 Developer Tools do have Windows Phone 7 Device simulator running under VS2010 when debugging/testing? 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: 31 ?????? 2011 ?. 18:08 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Localizing Silverlight Business Application Hi Shamil No, WP7 does not support databases - you set up a service for data communication. That's one of the things I wish to check out. As for development software, start here: Getting Started with Windows Phone Development http://msdn.microsoft.com/en-us/library/ff402529(v=vs.92).aspx and visit the download page: Installing Windows Phone Developer Tools http://msdn.microsoft.com/en-us/library/ff402530(v=vs.92).aspx Code Samples for Windows Phone http://msdn.microsoft.com/en-us/library/ff431744(v=vs.92).aspx Windows Phone 7 Design Guidelines * Cheat Sheet http://blogs.msdn.com/b/silverlight_sdk/archive/2011/01/07/windows-phone-7-design-guidelines-cheat-sheet.aspx Also: How to Use the Windows Phone Connect Tool http://msdn.microsoft.com/en-us/library/gg180729(v=VS.92).aspx /gustav From gustav at cactus.dk Mon Jan 31 15:05:02 2011 From: gustav at cactus.dk (Gustav Brock) Date: Mon, 31 Jan 2011 22:05:02 +0100 Subject: [dba-VB] Mercurial vs. SVN Message-ID: Hi Shamil That's beyond my experience. I only have had to exclude a few files (after they were created) and that worked fine. The patterns, I think, try to exclude files before creation. /gustav >>> shamil at smsconsulting.spb.ru 31-01-2011 19:31 >>> Hi Gustav -- OK. tryig to use this info here http://stackoverflow.com/questions/85353/best-general-svn-ignore-pattern still not sure how to make it working properly - tried via SVN->[Properties] but it somehow didn't work well... As for SVN and Mercurial and Northwind.CodePlex.com - I'm going to "cross" them: - I do use Mercurial locally but - in the next release on codeplex I do plan to commit Mercuarial repository entries within source code, so the one who uses SVN - will use it, then one who use Mercurial - will use it. That's a plan. I do not see why it can break. I could be missing something. I do plan to make a new "crossed" release on Northwind.codeplex.com this week. 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: 31 ?????? 2011 ?. 17:48 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Mercurial vs. SVN Hi Shamil I don't know about these details of TortoiseSVN - I just used it for the Northwind project and never had any trouble - and stayed off the command line. Thanks for the tip (for Mercurial hosting) at bitbucket. However, I think I stay with TortoiseSVN and/or VisualSVN as they have worked fine for me. /gustav >>> shamil at smsconsulting.spb.ru 31-01-2011 12:48 >>> Hi Gustav -- Thank you for your note. I should probably install newer version. But the one I have does support the feature of ignoring/making local individual files (filenames patterns) and *whole* folders. That is useful but that's not what I'm looking for/what exists in Mercurial it has more powerful feature to keep ignore list. BTW, SVN does inform that it added file/folder to the ignore list - is it possible to edit that list manually? If yes, where it's located? - I can find it - maybe you just know it from memory/used it: in Mercurial I usually just have a generic ignore list, which I'm putting in every new repository I create and then I'm adding specific files/filenames templates to that ignore list. Gustav, it's not a big issue - I can find my way using SVN via command lines - mainly wondering if I can skip making a batch which will use command line interface of SVN to "clean-up" local repository from some files/folders before committing it... BTW, https://bitbucket.org/ has an option of free unlimited code repositories up to 5 users... I haven't used it yet but I do plan to put all my important source code mirrored there in private code repository... 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: 31 ?????? 2011 ?. 11:43 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Mercurial vs. SVN Hi Shamil That's a very old version, current version is 1.6.something. The trick is the Shift key. From the help file: Hold the Shift key to get the extended context menu and select TortoiseSVN and Delete (keep local) to mark the file/folder for deletion from the repository without losing the local copy. /gustav >>> shamil at smsconsulting.spb.ru 31-01-2011 01:23 >>> Hi All -- Does SVN support "ignore list" as Mercurial does? (I wanted to exclude binaries and some other files from add/commit batch without going through all of added/updated items manually every time on commit). I do use Tortoise SVN v.1.4.5, and I do not see "ignore list feature" - does Tortoise SVN 1.4.7 support this feature? Or can I define ignore list somehow else when working with SVN? Thank you. -- Shamil From shamil at smsconsulting.spb.ru Mon Jan 31 18:08:44 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Tue, 1 Feb 2011 03:08:44 +0300 Subject: [dba-VB] Localizing Silverlight Business Application In-Reply-To: References: Message-ID: <9DD1A698D5A34EE5A52E0B9F7B01B992@nant> Hi Gustav -- I'm looking here for Windows Phone 7 OS features (it's not your device - just because I have found interesting review for Win Phone 7 OS and apps on this page) http://www.amazon.com/HTC-hd7-t-mobile-htc-locked/product-reviews/B004B3KANO /ref=dp_top_cm_cr_acr_txt?ie=UTF8&showViewpoints=1 Here is one excerpt: "The built in applications like Office let you view/edit word documents, view/edit excel documents, view powerpoint presentations, view/edit onenote, outlook - view your email from multiple providers - hotmail, google, yahoo, any email provider - very intuitive and easy to use interface. Internet Explorer - optimized and is a really good browser now; pinch to zoom and scrolling in internet explorer works perfectly, loading pages is excellent and fast - no real faults at all with the new internet explorer. Music/Videos player is basically the zune interface - beautiful; manages all your videos and music here and if you have a zune pass you can listen to your music from right here - this works in the background too and you can play games and surf the web using this application in the background. " Sounds useful. But this is what I'm not sure I'm understanding properly: "- No multitasking for third party apps - we need the ability to multi-task and choose what we want running in the background. Some apps really do need multitasking. " What third party apps are they talking about? SIlverlight custom apps do come loaded from Internet - right? If so - once loaded they block all the other apps? Sounds strange. Or do they mean custom XNA apps? Thank you. -- Shamil 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: 31 ?????? 2011 ?. 23:56 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Localizing Silverlight Business Application Hi Shamil The Phone Connect is only needed for running apps that stream video and the like. I have no specifics, sorry. WP7 apps are Silverlight only for "normal" apps or XNA for games and highly graphic apps. No WinForms. Thanks for the link. That seems relevant to study. Scott Gu is a good presenter. /gustav >>> shamil at smsconsulting.spb.ru 31-01-2011 19:26 >>> Hi Gustav -- Do Silverlight 4 applications need to use Windows Phone Connect Tool or Silverlight applications can be run locally in debug mode (with database backend used via a Web Service as you noted). Does Windows Phone support WinForms at all? Or all Windows Phone 7 apps run within Silverlight "shell"? (<- Sorry that question may sound silly...) BTW, here is ScottGu's link blog entry on Windows Phone 7 Developers tools: http://weblogs.asp.net/scottgu/archive/2010/09/16/windows-phone-7-developer- tools-released.aspx 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: 31 ?????? 2011 ?. 21:20 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Localizing Silverlight Business Application Hi Shamil Well, to some degree and probably for you and me. However, for media applications you may need the Windows Phone Connect Tool and a physical phone as I understand it (not tested by me). /gustav >>> shamil at smsconsulting.spb.ru 31-01-2011 19:00 >>> Hi Gustav -- Thank you for the additional information and the links you have provided - I will use them for Windows Phone 7 "must have" set of links first place. And I guess Windows Phone 7 Developer Tools do have Windows Phone 7 Device simulator running under VS2010 when debugging/testing? 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: 31 ?????? 2011 ?. 18:08 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Localizing Silverlight Business Application Hi Shamil No, WP7 does not support databases - you set up a service for data communication. That's one of the things I wish to check out. As for development software, start here: Getting Started with Windows Phone Development http://msdn.microsoft.com/en-us/library/ff402529(v=vs.92).aspx and visit the download page: Installing Windows Phone Developer Tools http://msdn.microsoft.com/en-us/library/ff402530(v=vs.92).aspx Code Samples for Windows Phone http://msdn.microsoft.com/en-us/library/ff431744(v=vs.92).aspx Windows Phone 7 Design Guidelines * Cheat Sheet http://blogs.msdn.com/b/silverlight_sdk/archive/2011/01/07/windows-phone-7-d esign-guidelines-cheat-sheet.aspx Also: How to Use the Windows Phone Connect Tool http://msdn.microsoft.com/en-us/library/gg180729(v=VS.92).aspx /gustav _______________________________________________ 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 Mon Jan 31 18:56:27 2011 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Tue, 1 Feb 2011 03:56:27 +0300 Subject: [dba-VB] ASP.NET app's web design Message-ID: <062E05BFD6C84E1AA345CFA7955C369C@nant> Hi All -- I wanted to ask three questions to the list members who has made some graphics/knows well (at least in theory) what tools and principles are involved in that graphics design process: - 1) Is there any inexpensive graphic design tools, which allow to create designs as the following? (assumption that graphics designer is able to imagine and make such design is given by default and is not the subject of my questions) http://shamils-23.hosting.parking.ru/Prototype/ (Must have for such a tool should be a feature to make layered design built from several graphical components as well as the feature of setting transparent background for given color, drawing gradients but there is no need in that many fancy and cute features one can find in ADOBE Photoshop - just a set of feature to support development of simple and elegant Web 2.0 designs - that is required...) - 2) When such design is created is it completely manual work to convert it into a (set of) .css + graphics + .html? - 3) Do you see a lot of graphics will go into .css + graphics + .html from such a design or most of it can be presented by just .css + .html4 (maybe .html5)? (I do assume here that photos of the consumer good products are not the part of the design, as well as shadows, which can be ignore while porting graphic design from .psd into .css + .html if they are not part of photos)... - 4) Do you suppose that the referred above design can be made without HTML tables - by using
+ .css + as little as possible graphics? Thank you. -- Shamil