From Gustav at cactus.dk Mon Jun 1 08:16:57 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 01 Jun 2009 15:16:57 +0200 Subject: [dba-VB] SCRUM/WPF - Buttons Styling Exerc izes Message-ID: Hi Shamil Have you tried using the deplay wizard of VS? /gustav >>> Salakhetdinov Shamil 01-06-2009 00:25 >>> Hi Robert at All, I have made sample SilverLight application and I have got it installed (by XCOPY) here: http://shamils-4.hosting.parking.ru/sl It works well when running locally in debug mode under VS2008 SP1 but it does not show anything in SilverLight when running from the above link. What could be wrong? Thank you. -- Shamil P.S. Here is the main code of the above sample application: http://shamils-4.hosting.parking.ru/sl Page1.xaml ======== User Name: Password: Page1.xaml.cs ========== using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Windows; using System.Windows.Controls; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Shapes; namespace SLA1 { public partial class Page : UserControl { public Page() { InitializeComponent(); } private void Button_Click(object sender, RoutedEventArgs e) { if (txtUserName.Text != "guest" || txtPassword.Text != "test") MessageBox.Show("Invalid UserName or Password"); else MessageBox.Show("Hello, World!"); } } } -----Original Message----- From: Robert Stewart To: dba-vb at databaseadvisors.com Date: Sun, 31 May 2009 12:56:07 -0500 Subject: Re: [dba-VB] SCRUM/WPF - Buttons Styling Exercizes > I will be starting to work on a Silverlight application at the end of June. > I am currently working on converting an Access application into WPF > using the entity framework. > > I just created a VM with WIndows 7 RC and VS 2010 Beta 1. I will > be using them to do some presentations at the user group that I teach. > Database and GUI Design. > > There are currently 3 of us working in WPF. One is developing a pipe > yard inventory and shipping application in WPF. The other has developed > oil well information programs in WPF and is working another one now. > I am working a an application that manages social service agencies > that supply people with food, clothes, and other services. From mcp2004 at mail.ru Mon Jun 1 09:22:34 2009 From: mcp2004 at mail.ru (Salakhetdinov Shamil) Date: Mon, 01 Jun 2009 18:22:34 +0400 Subject: [dba-VB] =?koi8-r?b?U0NSVU0vV1BGIC0gQnV0dG9ucyBTdHlsaW5nIEV4ZXJj?= =?koi8-r?b?IGl6ZXM=?= In-Reply-To: References: Message-ID: Hi Gustav, No, I didn't try to use deploy wizard - I assumed that SilverLight apps deployment should be as easy as ASP.NET apps - using XCOPY to copy files on prepared ASP.NET app folder - SilverLight app AFAIS is an ASP.NET app starting SilverLight control and feeding it with .xap file's location. I could be wrong with my assumption that SilverLight apps can be deployed using XCOPY. Maybe there should be some special processing of SilverLight app's .xap file on server side, which is currently missing on my ISP site? I will try to consult with SilverLight docs/my ISP or we can find solutions here together? Robert, did you try to deploy SilverLight applications manually? Thank you. -- Shamil -----Original Message----- From: "Gustav Brock" To: Date: Mon, 01 Jun 2009 15:16:57 +0200 Subject: Re: [dba-VB] SCRUM/WPF - Buttons Styling Exerc izes > Hi Shamil > > Have you tried using the deplay wizard of VS? > > /gustav > > > >>> Salakhetdinov Shamil 01-06-2009 00:25 >>> > Hi Robert at All, > > I have made sample SilverLight application and I have got it installed (by XCOPY) here: > > http://shamils-4.hosting.parking.ru/sl > > It works well when running locally in debug mode under VS2008 SP1 but it does not show anything in SilverLight when running from the above link. > > What could be wrong? > > Thank you. > > -- > Shamil > > P.S. Here is the main code of the above sample application: > > http://shamils-4.hosting.parking.ru/sl > > Page1.xaml > ======== > > xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" > xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" > Width="400" Height="300"> > > > > > > > > > > > > > > User Name: > > Password: > > > > > > > > Page1.xaml.cs > ========== > using System; > using System.Collections.Generic; > using System.Linq; > using System.Net; > using System.Windows; > using System.Windows.Controls; > using System.Windows.Documents; > using System.Windows.Input; > using System.Windows.Media; > using System.Windows.Media.Animation; > using System.Windows.Shapes; > > namespace SLA1 > { > public partial class Page : UserControl > { > public Page() > { > InitializeComponent(); > } > > private void Button_Click(object sender, RoutedEventArgs e) > { > if (txtUserName.Text != "guest" || txtPassword.Text != "test") > MessageBox.Show("Invalid UserName or Password"); > else > MessageBox.Show("Hello, World!"); > } > } > } > > > -----Original Message----- > From: Robert Stewart > To: dba-vb at databaseadvisors.com > Date: Sun, 31 May 2009 12:56:07 -0500 > Subject: Re: [dba-VB] SCRUM/WPF - Buttons Styling Exercizes > > > I will be starting to work on a Silverlight application at the end of June. > > I am currently working on converting an Access application into WPF > > using the entity framework. > > > > I just created a VM with WIndows 7 RC and VS 2010 Beta 1. I will > > be using them to do some presentations at the user group that I teach. > > Database and GUI Design. > > > > There are currently 3 of us working in WPF. One is developing a pipe > > yard inventory and shipping application in WPF. The other has developed > > oil well information programs in WPF and is working another one now. > > I am working a an application that manages social service agencies > > that supply people with food, clothes, and other services. > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From mcp2004 at mail.ru Mon Jun 1 17:17:49 2009 From: mcp2004 at mail.ru (Salakhetdinov Shamil) Date: Tue, 02 Jun 2009 02:17:49 +0400 Subject: [dba-VB] SCRUM/WPF Data Binding Message-ID: Hi All, I planned here is the first sample of WPF data bidining: http://shamils-4.hosting.parking.ru/xaml/WpfBrowserApplication2.xbap As you can find it promise to be rather time consuming to implement binding to ADO.NET datasets, which isn't supported natively in .NET 3.5. The following sample just implements bindind to an object instance. Robert, you have experience with VS2010 - does it have advanced data binding controls as e.g. WinForms' BidingSource and BindingNavigator? Thank you. -- Shamil P.S. Here is the code of the referenced above sample page: Shippers.xaml ============= Shippers.xaml.cs ================ using System.Windows.Controls; using System.ComponentModel; namespace WpfBrowserApplication1 { public partial class ShippersPage : Page { public ShippersPage() { InitializeComponent(); // Set the DataContext // to a Shipper object this.DataContext = new Shipper() { Id = 1, Name = "Speedy Express", Phone = "(503) 555-9831" }; } } public class Shipper : INotifyPropertyChanged { private int _id; public int Id { get { return _id; } set { if (_id != value) { _id = value; OnPropertyChanged("Id"); } } } private string _name; public string Name { get { return _name; } set { _name = value; if (_name != value) { _phone = value; OnPropertyChanged("Name"); } } } private string _phone; public string Phone { get { return _phone; } set { _phone = value; if (_phone != value) { _phone = value; OnPropertyChanged("Phone"); } } } #region INotifyPropertyChanged Members /// Implement INotifyPropertyChanged to notify the binding /// targets when the values of properties change. public event PropertyChangedEventHandler PropertyChanged; private void OnPropertyChanged(string propertyName) { if (this.PropertyChanged != null) { // Raise the PropertyChanged event this.PropertyChanged( this, new PropertyChangedEventArgs( propertyName)); } } #endregion } } From marklbreen at gmail.com Mon Jun 1 17:51:51 2009 From: marklbreen at gmail.com (Mark Breen) Date: Mon, 1 Jun 2009 23:51:51 +0100 Subject: [dba-VB] FYI: SCRUM/Agile - Born To Cycle In-Reply-To: References: Message-ID: Hello Shamil, I am trying to get some advice from the SVN forums on how to properly manage a private / public server environment which is what we have. When I start to get some results on it, I will offer to attempt to help here. However, before we start that, does the team still want to maintain the private / public source control servers. If so, I will try to get scripts written to automate a release from private to public, but if you are considering switching back to a codeplex only store, then I do not need to write such scripts. It is up to you all to let me know what is best for the team, Shamil, do I get it right that the main problem with the codeplex only environment is that codeplex does not allow certain users to lock files? And do I have it right that you wish to lock the proj files to avoid people messing them up with the have earlier builds? In that case I guess that you must have been maintaining the latest / most correct proj file for the team? Is that right? Actually as I write this email, I realise that I am attempting to assist in solving a problem, but I am not 100% sure I know what the problem really is. I recall it was related to the proj and sln files, but would you like to remind me what the problem was and what you did to over come the problem. I will then try to help, if that help is needed. thanks Mark 2009/5/29 Salakhetdinov Shamil > Hello Mark, > > No, I didn't try to use export feature of TortoiseSVN: to publish on > CodePlex we have to get all the source files from latest copy of you server > sources, copy/replace them into local SVN folder of CodePlex (it will have > different files' versions numbers), add all new files to the .svn > descriptors and then submit that new version to CodePlex. AFAIU that should > be doable using SVN commands/scripts/batches but I'm not sure how to make it > 100% safe to add new files' types using such scripts - I mean we have to > list all the file types used as source files and those files types do change > - their set is getting extended - IOW still manual testing/fixing scripts > will be needed I think. > > I haven't time to automate that work - we can make it automated here all > together by writing batches and/or simple C# utitlity controlling such > automated update - whatever would be less time consuming. > > It might happen I'm missing more straightforward way of doing such > synchronbization between your server and CodePlex assumed your server is a > master but CodePlex files have difference version numbers controlled by > CodePlex server. > > Thank you. > > -- > Shamil > > From mcp2004 at mail.ru Tue Jun 2 15:51:20 2009 From: mcp2004 at mail.ru (Salakhetdinov Shamil) Date: Wed, 03 Jun 2009 00:51:20 +0400 Subject: [dba-VB] =?koi8-r?b?RllJOiBTQ1JVTS9BZ2lsZSAtIEJvcm4gVG8gQ3ljbGU=?= In-Reply-To: References: Message-ID: Hello Mark, Yes, I do hope we will have our team "getting in active mode" sometime in the near future and therefore using your server would be preferrable. Yes, the main issue is to get locked solution and project files while changing them as well as form design code files as well as dataset definition files and if we will use ado.net entity framework then model files etc. - codeplex doesn't allow to lock files at all and therefore manual coordination is needed, which in our case looks time consuming... Yes, if you can get advice from SVN forum how to automate the task that could help us: - Basically what is needed is to use your server's local copy repositoty as the source (that will always be on developers' PCs). and copy all the folders and files from it into the target directory (local copy of codeplex repositoty), which will be used to submit changes to codeplex. All source folders can be copied but only the files with given extension from those folders should be copied. After such a copy new folders and files should be included into local svn repository, and the files missing in the source folders but presented in the target folders should be deleted from local codeplex svn repository. And then local codeplex svn repository can be submitted to codeplex SVN server. I think the above procedure can be programmed/automated using C# custom coding calling SVN utlities but it might happen there is somewhere something like that done already... Thank you. -- Shamil -----Original Message----- From: Mark Breen To: "Discussion concerning Visual Basic and related programming issues." Date: Mon, 1 Jun 2009 23:51:51 +0100 Subject: [dba-VB] FYI: SCRUM/Agile - Born To Cycle > Hello Shamil, > I am trying to get some advice from the SVN forums on how to properly manage > a private / public server environment which is what we have. > > When I start to get some results on it, I will offer to attempt to help > here. > > However, before we start that, does the team still want to maintain the > private / public source control servers. If so, I will try to get scripts > written to automate a release from private to public, but if you are > considering switching back to a codeplex only store, then I do not need to > write such scripts. > > It is up to you all to let me know what is best for the team, > > Shamil, do I get it right that the main problem with the codeplex only > environment is that codeplex does not allow certain users to lock files? > And do I have it right that you wish to lock the proj files to avoid people > messing them up with the have earlier builds? In that case I guess that you > must have been maintaining the latest / most correct proj file for the team? > Is that right? Actually as I write this email, I realise that I am > attempting to assist in solving a problem, but I am not 100% sure I know > what the problem really is. I recall it was related to the proj and sln > files, but would you like to remind me what the problem was and what you > did to over come the problem. I will then try to help, if that help is > needed. > > thanks > > Mark > > > 2009/5/29 Salakhetdinov Shamil > > > > Hello Mark, > > > > No, I didn't try to use export feature of TortoiseSVN: to publish on > > CodePlex we have to get all the source files from latest copy of you server > > sources, copy/replace them into local SVN folder of CodePlex (it will have > > different files' versions numbers), add all new files to the .svn > > descriptors and then submit that new version to CodePlex. AFAIU that should > > be doable using SVN commands/scripts/batches but I'm not sure how to make it > > 100% safe to add new files' types using such scripts - I mean we have to > > list all the file types used as source files and those files types do change > > - their set is getting extended - IOW still manual testing/fixing scripts > > will be needed I think. > > > > I haven't time to automate that work - we can make it automated here all > > together by writing batches and/or simple C# utitlity controlling such > > automated update - whatever would be less time consuming. > > > > It might happen I'm missing more straightforward way of doing such > > synchronbization between your server and CodePlex assumed your server is a > > master but CodePlex files have difference version numbers controlled by > > CodePlex server. > > > > Thank you. > > > > -- > > Shamil > > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From mcp2004 at mail.ru Tue Jun 2 19:03:11 2009 From: mcp2004 at mail.ru (Salakhetdinov Shamil) Date: Wed, 03 Jun 2009 04:03:11 +0400 Subject: [dba-VB] =?koi8-r?b?U0NSVU0vV1BGIERhdGEgQmluZGluZw==?= In-Reply-To: References: Message-ID: Hi All, Here is the next sampple on WPD databinding - now with a combobxo to navigate between three object instances. You can also edit fields values via wpf form and you can find they are saved in form's local memory: Here is the link to the live sample: http://shamils-4.hosting.parking.ru/xaml/WpfBrowserApplication2.xbap and in P.S. you can fiund code. Basically that's all main information on databinding I wanted to tell here, and in the following samples I plan to implement step by step navigation and data manipulation set of buttons. Thank you. -- Shamil Shippers.xaml ============= Shippers.xaml.cs ================ using System.Collections.Generic; using System.Windows.Controls; using System.Windows.Documents; using System.ComponentModel; namespace WpfBrowserApplication1 { public partial class ShippersPage : Page { private List _shippers; private Shipper _currentShipper; public ShippersPage() { InitializeComponent(); _loadInProgress = true; _shippers = Shipper.GetAll(); // Set the DataContext // to a Shipper object this.DataContext = _shippers[0]; foreach (Shipper shipper in _shippers) cboShippers.Items.Add(shipper); _currentShipper = _shippers[0]; cboShippers.SelectedItem = _currentShipper; _loadInProgress = false; } private bool _loadInProgress; private void cboShippers_SelectionChanged( object sender, SelectionChangedEventArgs e) { if (_loadInProgress) return; ComboBox cbo = (ComboBox)sender; _currentShipper = (Shipper)cbo.SelectedItem; this.DataContext = cbo.SelectedItem; e.Handled = true; } } public class Shipper : INotifyPropertyChanged { public static List GetAll() { List list = new List(); list.Add( new Shipper() { Id = 1, Name = "Speedy Express", Phone = "(503) 555-9831" }); list.Add( new Shipper() { Id = 2, Name = "United Package", Phone = "(503) 555-3199" }); list.Add( new Shipper() { Id = 3, Name = "Federal Shipping", Phone = "(503) 555-9931" }); return list; } private int _id; public int Id { get { return _id; } set { if (_id != value) { _id = value; OnPropertyChanged("Id"); } } } private string _name; public string Name { get { return _name; } set { _name = value; if (_name != value) { _phone = value; OnPropertyChanged("Name"); } } } private string _phone; public string Phone { get { return _phone; } set { _phone = value; if (_phone != value) { _phone = value; OnPropertyChanged("Phone"); } } } #region INotifyPropertyChanged Members /// Implement INotifyPropertyChanged to notify the binding /// targets when the values of properties change. public event PropertyChangedEventHandler PropertyChanged; private void OnPropertyChanged(string propertyName) { if (this.PropertyChanged != null) { // Raise the PropertyChanged event this.PropertyChanged( this, new PropertyChangedEventArgs( propertyName)); } } #endregion } } -----Original Message----- From: Salakhetdinov Shamil To: dba-VB Date: Tue, 02 Jun 2009 02:17:49 +0400 Subject: [dba-VB] SCRUM/WPF Data Binding > Hi All, > > I planned here is the first sample of WPF data bidining: > > http://shamils-4.hosting.parking.ru/xaml/WpfBrowserApplication2.xbap > <<< snip>>> From mcp2004 at mail.ru Tue Jun 2 19:33:26 2009 From: mcp2004 at mail.ru (Salakhetdinov Shamil) Date: Wed, 03 Jun 2009 04:33:26 +0400 Subject: [dba-VB] SCRUM/SilverLight 2.0 Message-ID: Hi All, I have got setup simple SilverLight application here http://shamils-4.hosting.parking.ru/sl now using publish feature but it still doesn't work there when started from Internet and it works well locally. Do you know should there be any special tuning done of server side for SilverLight applications to run properly? (ASP.NET 2.0/3.5 run from that site just fine.) Thank you. -- Shamil From dwaters at usinternet.com Wed Jun 3 12:52:45 2009 From: dwaters at usinternet.com (Dan Waters) Date: Wed, 3 Jun 2009 12:52:45 -0500 Subject: [dba-VB] Which .Net Framework Should I Use? Message-ID: <1130A6EB0C9A443582981461A331769D@danwaters> I am just starting to learn VB.Net using VS 2008. All things being equal, I'd like to always select the latest version of the .Net framework (currently 3.5 SP1). My goal is to convert my Access system to VB.Net for any new and potentially for existing customers. Is there any reason not to use the latest version? Like for some reason customers don't want it? Any thoughts on this? Thanks! Dan From mcp2004 at mail.ru Wed Jun 3 13:59:33 2009 From: mcp2004 at mail.ru (Salakhetdinov Shamil) Date: Wed, 03 Jun 2009 22:59:33 +0400 Subject: [dba-VB] =?koi8-r?b?V2hpY2ggLk5ldCBGcmFtZXdvcmsgU2hvdWxkIEkgVXNl?= =?koi8-r?b?Pw==?= In-Reply-To: <1130A6EB0C9A443582981461A331769D@danwaters> References: <1130A6EB0C9A443582981461A331769D@danwaters> Message-ID: Hi Dan, I suppose that it's better to have the latest version of .NET Framework release, which is currently 3.5 SP1 as you noted. I have just happened to bootstrap .NET Framework 3.5 SP1 setup on my sister's notebook running XP by browsing to this link on my test site: http://shamils-4.hosting.parking.ru/xaml/WpfBrowserApplication2.xbap That bootstrap downloaded ~66MB of .NET Framework setup and then run it rather smoothly with one exception that it didn't want to continue with IE instance, which forced bootstrap, window opened - and the only option to close IE window was to "kill" it via Task Manager but then .NET 3.5 SP1 setup proceeded and finished OK, and my sample XBAP application did show-up OK on my sister's PC... I'd also note that if you only starting .NET development then maybe consider using C# instead of VB.NET - the reasons of using C# was many times repeated here and on AccessD - one of then is that for C# there are much more that for VB.NET ready to use code snippets all over the Internet, another one is that C# results in more readable code etc. Thank you. -- Shamil -----Original Message----- From: "Dan Waters" To: "'Discussion concerning Visual Basic and related programming issues.'" Date: Wed, 3 Jun 2009 12:52:45 -0500 Subject: [dba-VB] Which .Net Framework Should I Use? > I am just starting to learn VB.Net using VS 2008. All things being equal, > I'd like to always select the latest version of the .Net framework > (currently 3.5 SP1). My goal is to convert my Access system to VB.Net for > any new and potentially for existing customers. > > Is there any reason not to use the latest version? Like for some reason > customers don't want it? > > Any thoughts on this? > > Thanks! > Dan > > > > > _______________________________________________ > 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 Jun 3 16:37:19 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 03 Jun 2009 23:37:19 +0200 Subject: [dba-VB] Which .Net Framework Should I Use? Message-ID: Hi Dan Yes, 3.5 won't run on Win 2000 (as far as I know). /gustav >>> "Dan Waters" 03-06-2009 19:52 >>> I am just starting to learn VB.Net using VS 2008. All things being equal, I'd like to always select the latest version of the .Net framework (currently 3.5 SP1). My goal is to convert my Access system to VB.Net for any new and potentially for existing customers. Is there any reason not to use the latest version? Like for some reason customers don't want it? Any thoughts on this? Thanks! Dan From bheid at sc.rr.com Wed Jun 3 21:29:26 2009 From: bheid at sc.rr.com (Bobby Heid) Date: Wed, 3 Jun 2009 22:29:26 -0400 Subject: [dba-VB] Which .Net Framework Should I Use? In-Reply-To: References: <1130A6EB0C9A443582981461A331769D@danwaters> Message-ID: <000301c9e4bc$48185ab0$d8491010$@rr.com> >> one is that C# results in more readable code etc. I disagree with this statement. The quality of the code (performance and readability) is proportional to the quality of the developer. I use both C# and VB.Net. For the most part, you can write the same code in both languages and get very readable code. People can make just about any language's code poorly readable. This is not a post against C#, I actually prefer C#, although I use VB.Net at work. One thing I noticed while looking for a job a few years ago is that some regions have more C# jobs and others have more VB.Net jobs. I would personally target the latest framework. I think the .Net framework 4.0 is not too far in the future. Bobby -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Salakhetdinov Shamil Sent: Wednesday, June 03, 2009 3:00 PM To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Which .Net Framework Should I Use? Hi Dan, I suppose that it's better to have the latest version of .NET Framework release, which is currently 3.5 SP1 as you noted. I have just happened to bootstrap .NET Framework 3.5 SP1 setup on my sister's notebook running XP by browsing to this link on my test site: http://shamils-4.hosting.parking.ru/xaml/WpfBrowserApplication2.xbap That bootstrap downloaded ~66MB of .NET Framework setup and then run it rather smoothly with one exception that it didn't want to continue with IE instance, which forced bootstrap, window opened - and the only option to close IE window was to "kill" it via Task Manager but then .NET 3.5 SP1 setup proceeded and finished OK, and my sample XBAP application did show-up OK on my sister's PC... I'd also note that if you only starting .NET development then maybe consider using C# instead of VB.NET - the reasons of using C# was many times repeated here and on AccessD - one of then is that for C# there are much more that for VB.NET ready to use code snippets all over the Internet, another one is that C# results in more readable code etc. Thank you. -- Shamil From mcp2004 at mail.ru Thu Jun 4 10:06:49 2009 From: mcp2004 at mail.ru (Salakhetdinov Shamil) Date: Thu, 04 Jun 2009 19:06:49 +0400 Subject: [dba-VB] Problem while publishing ADO.NET Data Service... Message-ID: Hi All, I'm trying to implement and to publish ADO.NET Data Service as described here: http://msdn.microsoft.com/en-us/library/cc907912.aspx and I'm getting the following error: Server Error in '/NorthwindNetDataService' Application. -------------------------------------------------------------------------------- This collection already contains an address with scheme http. There can be at most one address per scheme in this collection. Parameter name: item ... Googling and trying to apply different advices from googled samples to not help. Data Service is currently published here: http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NorthwinNetService.svc When usinhg it locally as e.g: http://localhost:53154/NorthwinNetService.svc or http://localhost:53154/NorthwinNetService.svc/Shipper it works OK - for the latter URL I'm getting the following response (truncated here): http://localhost:53154/NorthwinNetService.svc/Shipper - Shipper http://localhost:53154/NorthwinNetService.svc/Shipper 2009-06-04T14:58:28Z - http://localhost:53154/NorthwinNetService.svc/Shipper(1) <updated>2009-06-04T14:58:28Z</updated> - <author> <name /> </author> <link rel="edit" title="Shipper" href="Shipper(1)" /> <link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Order" type="application/atom+xml;type=feed" title="Order" href="Shipper(1)/Order" /> <category term="NorthwindNetModel.Shipper" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme" /> - <content type="application/xml"> - <m:properties> <d:ID m:type="Edm.Int32">1</d:ID> <d:Name>Speedy Express</d:Name> <d:Phone>(503) 555-9831</d:Phone> <d:RowTimeStamp m:type="Edm.Binary">AAAAAAAAB/Q=</d:RowTimeStamp> </m:properties> </content> </entry> ....... If you get through such an issues already and you have solved it could you please post your solution here? Thank you. -- Shamil From mcp2004 at mail.ru Thu Jun 4 10:10:09 2009 From: mcp2004 at mail.ru (Salakhetdinov Shamil) Date: Thu, 04 Jun 2009 19:10:09 +0400 Subject: [dba-VB] =?koi8-r?b?V2hpY2ggLk5ldCBGcmFtZXdvcmsgU2hvdWxkIEkgVXNl?= =?koi8-r?b?Pw==?= In-Reply-To: <000301c9e4bc$48185ab0$d8491010$@rr.com> References: <000301c9e4bc$48185ab0$d8491010$@rr.com> Message-ID: <E1MCEa1-00052h-00.mcp2004-mail-ru@f161.mail.ru> Hi Bobby, That's fine. Thank you. -- Shamil -----Original Message----- From: "Bobby Heid" <bheid at sc.rr.com> To: "'Salakhetdinov Shamil'" <mcp2004 at mail.ru>,"'Discussion concerning Visual Basic and related programming issues.'" <dba-vb at databaseadvisors.com> Date: Wed, 3 Jun 2009 22:29:26 -0400 Subject: RE: [dba-VB] Which .Net Framework Should I Use? > >> one is that C# results in more readable code etc. > > I disagree with this statement. The quality of the code (performance and > readability) is proportional to the quality of the developer. I use both C# > and VB.Net. For the most part, you can write the same code in both > languages and get very readable code. People can make just about any > language's code poorly readable. > > This is not a post against C#, I actually prefer C#, although I use VB.Net > at work. > > One thing I noticed while looking for a job a few years ago is that some > regions have more C# jobs and others have more VB.Net jobs. > > I would personally target the latest framework. I think the .Net framework > 4.0 is not too far in the future. > > Bobby > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Salakhetdinov > Shamil > Sent: Wednesday, June 03, 2009 3:00 PM > To: Discussion concerning Visual Basic and related programming issues. > Subject: Re: [dba-VB] Which .Net Framework Should I Use? > > Hi Dan, > > I suppose that it's better to have the latest version of .NET Framework > release, which is currently 3.5 SP1 as you noted. > > I have just happened to bootstrap .NET Framework 3.5 SP1 setup on my > sister's notebook running XP by browsing to this link on my test site: > > http://shamils-4.hosting.parking.ru/xaml/WpfBrowserApplication2.xbap > > That bootstrap downloaded ~66MB of .NET Framework setup and then run it > rather smoothly with one exception that it didn't want to continue with IE > instance, which forced bootstrap, window opened - and the only option to > close IE window was to "kill" it via Task Manager but then .NET 3.5 SP1 > setup proceeded and finished OK, and my sample XBAP application did show-up > OK on my sister's PC... > > I'd also note that if you only starting .NET development then maybe consider > using C# instead of VB.NET - the reasons of using C# was many times repeated > here and on AccessD - one of then is that for C# there are much more that > for VB.NET ready to use code snippets all over the Internet, another one is > that C# results in more readable code etc. > > Thank you. > > -- > Shamil > > <snip> > > > From mcp2004 at mail.ru Thu Jun 4 13:04:53 2009 From: mcp2004 at mail.ru (Salakhetdinov Shamil) Date: Thu, 04 Jun 2009 22:04:53 +0400 Subject: [dba-VB] =?koi8-r?b?UHJvYmxlbSB3aGlsZSBwdWJsaXNoaW5nIEFETy5ORVQg?= =?koi8-r?b?RGF0YSBTZXJ2aWNlLi4u?= In-Reply-To: <E1MCEWn-0007aZ-00.mcp2004-mail-ru@f200.mail.ru> References: <E1MCEWn-0007aZ-00.mcp2004-mail-ru@f200.mail.ru> Message-ID: <E1MCHJ7-0000b4-00.mcp2004-mail-ru@f73.mail.ru> Hi All, I'm still "fighting" with the below issue - it woudl be great if you can help to find a quick fix as I wanted to use this data service data source for sample WPF/XBAP/SilverLight forms/pages... Meanwhile I have got occasionally created what is called: Dynamic Data Entities Web Application and it worked almost out-of-the-box http://shamils-4.hosting.parking.ru/NorthwindNetDynamicDataWebSite just some small corrections in Global.asax.cs were needed - uncommenting two code lines and typing in ADO.NET Entity Model name: model.RegisterContext(typeof(NorthwindNETEntities), new ContextConfiguration() { ScaffoldAllTables = true }); I must say I wasn't aware of this technology, which needs some more studying to see where it leads... Thank you. -- Shamil -----Original Message----- From: Salakhetdinov Shamil <mcp2004 at mail.ru> To: dba-VB <dba-vb at databaseadvisors.com> Date: Thu, 04 Jun 2009 19:06:49 +0400 Subject: [dba-VB] Problem while publishing ADO.NET Data Service... > Hi All, > > I'm trying to implement and to publish ADO.NET Data Service as described here: > > http://msdn.microsoft.com/en-us/library/cc907912.aspx > > and I'm getting the following error: > > Server Error in '/NorthwindNetDataService' Application. > -------------------------------------------------------------------------------- > > This collection already contains an address with scheme http. There can be at most one address per scheme in this collection. > Parameter name: item > ... > > Googling and trying to apply different advices from googled samples to not help. > > Data Service is currently published here: > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NorthwinNetService.svc > > When usinhg it locally as e.g: > > http://localhost:53154/NorthwinNetService.svc > > or > > http://localhost:53154/NorthwinNetService.svc/Shipper > > it works OK - for the latter URL I'm getting the following response (truncated here): > > http://localhost:53154/NorthwinNetService.svc/Shipper > > <?xml version="1.0" encoding="utf-8" standalone="yes" ?> > - <feed xml:base="http://localhost:53154/NorthwinNetService.svc/" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns="http://www.w3.org/2005/Atom"> > <title type="text">Shipper > http://localhost:53154/NorthwinNetService.svc/Shipper > 2009-06-04T14:58:28Z > > - > http://localhost:53154/NorthwinNetService.svc/Shipper(1) > > <updated>2009-06-04T14:58:28Z</updated> > - <author> > <name /> > </author> > <link rel="edit" title="Shipper" href="Shipper(1)" /> > <link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Order" type="application/atom+xml;type=feed" title="Order" href="Shipper(1)/Order" /> > <category term="NorthwindNetModel.Shipper" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme" /> > - <content type="application/xml"> > - <m:properties> > <d:ID m:type="Edm.Int32">1</d:ID> > <d:Name>Speedy Express</d:Name> > <d:Phone>(503) 555-9831</d:Phone> > <d:RowTimeStamp m:type="Edm.Binary">AAAAAAAAB/Q=</d:RowTimeStamp> > </m:properties> > </content> > </entry> > ....... > > > If you get through such an issues already and you have solved it could you please post your solution here? > > Thank you. > > -- > Shamil > > > > > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From mcp2004 at mail.ru Thu Jun 4 14:06:18 2009 From: mcp2004 at mail.ru (Salakhetdinov Shamil) Date: Thu, 04 Jun 2009 23:06:18 +0400 Subject: [dba-VB] =?koi8-r?b?UHJvYmxlbSB3aGlsZSBwdWJsaXNoaW5nIEFETy5ORVQg?= =?koi8-r?b?RGF0YSBTZXJ2aWNlLi4u?= In-Reply-To: <E1MCHJ7-0000b4-00.mcp2004-mail-ru@f73.mail.ru> References: <E1MCHJ7-0000b4-00.mcp2004-mail-ru@f73.mail.ru> Message-ID: <E1MCIGY-0006z3-00.mcp2004-mail-ru@f59.mail.ru> Hi All, I have changed location of NorthwindNety Data Service to: http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc still no solution for This collection already contains an address with scheme http. There can be at most one address per scheme in this collection. Parameter name: item :( -- Shamil -----Original Message----- From: Salakhetdinov Shamil <mcp2004 at mail.ru> To: "Discussion concerning Visual Basic and related programming issues."<dba-vb at databaseadvisors.com> Date: Thu, 04 Jun 2009 22:04:53 +0400 Subject: Re: [dba-VB] Problem while publishing ADO.NET Data Service... > Hi All, > > I'm still "fighting" with the below issue - it woudl be great if you can help to find a quick fix as I wanted to use this data service data source for sample WPF/XBAP/SilverLight forms/pages... > > Meanwhile I have got occasionally created what is called: > > Dynamic Data Entities Web Application > > and it worked almost out-of-the-box > > http://shamils-4.hosting.parking.ru/NorthwindNetDynamicDataWebSite > > just some small corrections in Global.asax.cs were needed - uncommenting two code lines and typing in ADO.NET Entity Model name: > > model.RegisterContext(typeof(NorthwindNETEntities), > new ContextConfiguration() { ScaffoldAllTables = true }); > > I must say I wasn't aware of this technology, which needs some more studying to see where it leads... > > Thank you. > > -- > Shamil > > > -----Original Message----- > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > To: dba-VB <dba-vb at databaseadvisors.com> > Date: Thu, 04 Jun 2009 19:06:49 +0400 > Subject: [dba-VB] Problem while publishing ADO.NET Data Service... > > > Hi All, > > > > I'm trying to implement and to publish ADO.NET Data Service as described here: > > > > http://msdn.microsoft.com/en-us/library/cc907912.aspx > > > > and I'm getting the following error: > > > > Server Error in '/NorthwindNetDataService' Application. > > -------------------------------------------------------------------------------- > > > > This collection already contains an address with scheme http. There can be at most one address per scheme in this collection. > > Parameter name: item > > ... > > > > Googling and trying to apply different advices from googled samples to not help. > > > > Data Service is currently published here: > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NorthwinNetService.svc > > > > When usinhg it locally as e.g: > > > > http://localhost:53154/NorthwinNetService.svc > > > > or > > > > http://localhost:53154/NorthwinNetService.svc/Shipper > > > > it works OK - for the latter URL I'm getting the following response (truncated here): > > > > http://localhost:53154/NorthwinNetService.svc/Shipper > > > > <?xml version="1.0" encoding="utf-8" standalone="yes" ?> > > - <feed xml:base="http://localhost:53154/NorthwinNetService.svc/" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns="http://www.w3.org/2005/Atom"> > > <title type="text">Shipper > > http://localhost:53154/NorthwinNetService.svc/Shipper > > 2009-06-04T14:58:28Z > > > > - > > http://localhost:53154/NorthwinNetService.svc/Shipper(1) > > > > <updated>2009-06-04T14:58:28Z</updated> > > - <author> > > <name /> > > </author> > > <link rel="edit" title="Shipper" href="Shipper(1)" /> > > <link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Order" type="application/atom+xml;type=feed" title="Order" href="Shipper(1)/Order" /> > > <category term="NorthwindNetModel.Shipper" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme" /> > > - <content type="application/xml"> > > - <m:properties> > > <d:ID m:type="Edm.Int32">1</d:ID> > > <d:Name>Speedy Express</d:Name> > > <d:Phone>(503) 555-9831</d:Phone> > > <d:RowTimeStamp m:type="Edm.Binary">AAAAAAAAB/Q=</d:RowTimeStamp> > > </m:properties> > > </content> > > </entry> > > ....... > > > > > > If you get through such an issues already and you have solved it could you please post your solution here? > > > > 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 mcp2004 at mail.ru Thu Jun 4 17:48:38 2009 From: mcp2004 at mail.ru (Salakhetdinov Shamil) Date: Fri, 05 Jun 2009 02:48:38 +0400 Subject: [dba-VB] =?koi8-r?b?UHJvYmxlbSB3aGlsZSBwdWJsaXNoaW5nIEFETy5ORVQg?= =?koi8-r?b?RGF0YSBTZXJ2aWNlLi4u?= In-Reply-To: <E1MCIGY-0006z3-00.mcp2004-mail-ru@f59.mail.ru> References: <E1MCIGY-0006z3-00.mcp2004-mail-ru@f59.mail.ru> Message-ID: <E1MCLji-0004uR-00.mcp2004-mail-ru@f251.mail.ru> Hi All, I have got found one solution for the subject issue: Hosted ADO.NET Data Services & Silverlight http://dvanderboom.wordpress.com/2009/01/07/hosted-adonet-data-services-silverlight/ But it doesn't look satisfactory for general case, and it doesn't work yet for my site (waiting for ISP support with IIS server restart - maybe that helps as web site restarting doesn't work) - I have got stuck here: http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc with a message: <<< IIS specified authentication schemes 'Basic, Anonymous', but the binding only supports specification of exactly one authentication scheme. Valid authentication schemes are Digest, Negotiate, NTLM, Basic, or Anonymous. Change the IIS settings so that only a single authentication scheme is used. >>> and as you can see SOAP and WCF sample services do work OK here: http://shamils-4.hosting.parking.ru/NorthwindNetDataService/SOAPService.asmx http://shamils-4.hosting.parking.ru/NorthwindNetDataService/WCFService.svc If you know general solution for subject issue that woudl be very helpful. Thank you. -- Shamil -----Original Message----- From: Salakhetdinov Shamil <mcp2004 at mail.ru> To: "Discussion concerning Visual Basic and related programming issues."<dba-vb at databaseadvisors.com> Date: Thu, 04 Jun 2009 23:06:18 +0400 Subject: Re: [dba-VB] Problem while publishing ADO.NET Data Service... > Hi All, > > I have changed location of NorthwindNety Data Service to: > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > still no solution for > > This collection already contains an address with scheme http. There can be at most one address per scheme in this collection. > Parameter name: item > > :( > > -- > Shamil > ><<< aaa >>> From mcp2004 at mail.ru Thu Jun 4 18:30:38 2009 From: mcp2004 at mail.ru (Salakhetdinov Shamil) Date: Fri, 05 Jun 2009 03:30:38 +0400 Subject: [dba-VB] =?koi8-r?b?UHJvYmxlbSB3aGlsZSBwdWJsaXNoaW5nIEFETy5ORVQg?= =?koi8-r?b?RGF0YSBTZXJ2aWNlLi4u?= In-Reply-To: <E1MCLji-0004uR-00.mcp2004-mail-ru@f251.mail.ru> References: <E1MCLji-0004uR-00.mcp2004-mail-ru@f251.mail.ru> Message-ID: <E1MCMOM-0006dT-00.mcp2004-mail-ru@f182.mail.ru> Hi All, Just wanted to ask one more question on subject issue: I do not understand why IIS should be restarted to have one of its Web Site's getting a new setting activated? I mean why it's not enough to stop and start this web site/web application? What am I missing? You can see by goodling how many developers got confused by this "simple"(?) issue - and even stackoverflow doesn't have a clear answer, or am I missing it? Thank you. -- Shamil -----Original Message----- From: Salakhetdinov Shamil <mcp2004 at mail.ru> To: "Discussion concerning Visual Basic and related programming issues."<dba-vb at databaseadvisors.com> Date: Fri, 05 Jun 2009 02:48:38 +0400 Subject: Re: [dba-VB] Problem while publishing ADO.NET Data Service... > Hi All, > > I have got found one solution for the subject issue: > > Hosted ADO.NET Data Services & Silverlight > http://dvanderboom.wordpress.com/2009/01/07/hosted-adonet-data-services-silverlight/ > > But it doesn't look satisfactory for general case, and it doesn't work yet for my site (waiting for ISP support with IIS server restart - maybe that helps as web site restarting doesn't work) - I have got stuck here: > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > with a message: > <<< > IIS specified authentication schemes 'Basic, Anonymous', but the binding only supports specification of exactly one authentication scheme. Valid authentication schemes are Digest, Negotiate, NTLM, Basic, or Anonymous. Change the IIS settings so that only a single authentication scheme is used. > >>> > > and as you can see SOAP and WCF sample services do work OK here: > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/SOAPService.asmx > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/WCFService.svc > > If you know general solution for subject issue that woudl be very helpful. > > Thank you. > > -- > Shamil > > -----Original Message----- > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > To: "Discussion concerning Visual Basic and related programming issues."<dba-vb at databaseadvisors.com> > Date: Thu, 04 Jun 2009 23:06:18 +0400 > Subject: Re: [dba-VB] > Problem while publishing ADO.NET Data Service... > > > Hi All, > > > > I have changed location of NorthwindNety Data Service to: > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > > > still no solution for > > > > This collection already contains an address with scheme http. There can be at most one address per scheme in this collection. > > Parameter name: item > > > > :( > > > > -- > > Shamil > > > ><<< aaa >>> > _______________________________________________ > 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 Jun 5 03:10:10 2009 From: marklbreen at gmail.com (Mark Breen) Date: Fri, 5 Jun 2009 09:10:10 +0100 Subject: [dba-VB] Problem while publishing ADO.NET Data Service... In-Reply-To: <E1MCMOM-0006dT-00.mcp2004-mail-ru@f182.mail.ru> References: <E1MCLji-0004uR-00.mcp2004-mail-ru@f251.mail.ru> <E1MCMOM-0006dT-00.mcp2004-mail-ru@f182.mail.ru> Message-ID: <c7fd28d00906050110t4683d3a4s12edd90831dde420@mail.gmail.com> Hello Shamil, as you know, I have two servers here in Ireland, would you like to do your diagnosis / development of future development work on one of my servers ? If so, that would be no problem. I am trying to keep up and read some of the link you posted int he last few days regarding ADO.NET Data Service. I am not clear yet about differences between Webservices and ADO.NET Data Service , but I expect if I spend some time to google and read, I can become clear. However, I have one question, do you think that this archetectire is without doubt the way we will all connect to our data sources in the future? How about performance, will it perform as good as current connections such as ado and odbc over SQL Server Port? thanks Mark 2009/6/5 Salakhetdinov Shamil <mcp2004 at mail.ru> > > Hi All, > > Just wanted to ask one more question on subject issue: I do not understand > why IIS should be restarted to have one of its Web Site's getting a new > setting activated? I mean why it's not enough to stop and start this web > site/web application? What am I missing? > > You can see by goodling how many developers got confused by this > "simple"(?) issue - and even stackoverflow doesn't have a clear answer, or > am I missing it? > > Thank you. > > -- > Shamil > > -----Original Message----- > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > To: "Discussion concerning Visual Basic and related programming issues."< > dba-vb at databaseadvisors.com> > Date: Fri, 05 Jun 2009 02:48:38 +0400 > Subject: Re: [dba-VB] > Problem while publishing ADO.NET Data Service... > > > Hi All, > > > > I have got found one solution for the subject issue: > > > > Hosted ADO.NET Data Services & Silverlight > > > http://dvanderboom.wordpress.com/2009/01/07/hosted-adonet-data-services-silverlight/ > > > > But it doesn't look satisfactory for general case, and it doesn't work > yet for my site (waiting for ISP support with IIS server restart - maybe > that helps as web site restarting doesn't work) - I have got stuck here: > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > > > with a message: > > <<< > > IIS specified authentication schemes 'Basic, Anonymous', but the binding > only supports specification of exactly one authentication scheme. Valid > authentication schemes are Digest, Negotiate, NTLM, Basic, or Anonymous. > Change the IIS settings so that only a single authentication scheme is used. > > >>> > > > > and as you can see SOAP and WCF sample services do work OK here: > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/SOAPService.asmx > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/WCFService.svc > > > > If you know general solution for subject issue that woudl be very > helpful. > > > > Thank you. > > > > -- > > Shamil > > > > -----Original Message----- > > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > > To: "Discussion concerning Visual Basic and related programming issues."< > dba-vb at databaseadvisors.com> > > Date: Thu, 04 Jun 2009 23:06:18 +0400 > > Subject: Re: [dba-VB] > > Problem while publishing ADO.NET Data Service... > > > > > Hi All, > > > > > > I have changed location of NorthwindNety Data Service to: > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > > > > > still no solution for > > > > > > This collection already contains an address with scheme http. There > can be at most one address per scheme in this collection. > > > Parameter name: item > > > > > > :( > > > > > > -- > > > Shamil > > > > > ><<< aaa >>> > > _______________________________________________ > > 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 mcp2004 at mail.ru Fri Jun 5 05:59:21 2009 From: mcp2004 at mail.ru (Salakhetdinov Shamil) Date: Fri, 05 Jun 2009 14:59:21 +0400 Subject: [dba-VB] =?koi8-r?b?UHJvYmxlbSB3aGlsZSBwdWJsaXNoaW5nIEFETy5ORVQg?= =?koi8-r?b?RGF0YSBTZXJ2aWNlLi4u?= In-Reply-To: <c7fd28d00906050110t4683d3a4s12edd90831dde420@mail.gmail.com> References: <c7fd28d00906050110t4683d3a4s12edd90831dde420@mail.gmail.com> Message-ID: <E1MCX8r-00011L-00.mcp2004-mail-ru@f183.mail.ru> Hello Mark, Thank you for your proposal. Yes, it would be useful to test using your servers in the case my hosting site would not be able to "keep the pressure" of coming data requests, and in the scenarious when several servers would need to communicate - something like distributed workflow (using WF). BTW, my sample site works OK now: Here is a "query" to retrieve Shippers. http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc/Shipper and this one for Categories http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc/Category Note: those queries return ATOM feed therefore ATOM feed interpretation should be switched off in your browser. Such queries can be used to do all the data manipulation including CRUD operations AFAIU. I haven't yet checked/read how to make such quieries secure but I assume that this feature is implemented already, and I need just to switch it on. The returned data can be of different structure ATOM feed, JSON etc. - and they can be consumed by many types of clients including AJAX (KavaScript) etc. In other words once you get ADO.NET data Service published (no any programming was needed in my simple sample case) you can immediatley start developing custom applications/clients. As for performance - it should be good enough I expect - at least for business areas and the applications we develop. AFAIU ADO.NET Data Services internals can be fine tuned for special case to increase response time. We can test performance - we can write test clients and run them on our PCs querying the above sample service or the one you can install on your server - to compare response time from public ASP.NET hosting site I use or dedicated servers you have - I plan to publish this sample service on our CodePlex Northwind project area... Is ADO.NET Data Services the future? - that's is the question to MS - I do not have a Crystal Ball :) For sure it's very useful and promising technology. Thank you. -- Shamil -----Original Message----- From: Mark Breen <marklbreen at gmail.com> To: Salakhetdinov Shamil <mcp2004 at mail.ru>, "Discussion concerning Visual Basic and related programming issues." <dba-vb at databaseadvisors.com> Date: Fri, 5 Jun 2009 09:10:10 +0100 Subject: Re: [dba-VB] Problem while publishing ADO.NET Data Service... > Hello Shamil, > as you know, I have two servers here in Ireland, would you like to do your > diagnosis / development of future development work on one of my servers ? > If so, that would be no problem. > > I am trying to keep up and read some of the link you posted int he last few > days regarding ADO.NET Data Service. > > I am not clear yet about differences between Webservices and ADO.NET Data > Service , but I expect if I spend some time to google and read, I can become > clear. > > However, I have one question, do you think that this archetectire is > without doubt the way we will all connect to our data sources in the future? > How about performance, will it perform as good as current connections such > as ado and odbc over SQL Server Port? > > thanks > > Mark > > > > 2009/6/5 Salakhetdinov Shamil <mcp2004 at mail.ru> > > > > > Hi All, > > > > Just wanted to ask one more question on subject issue: I do not understand > > why IIS should be restarted to have one of its Web Site's getting a new > > setting activated? I mean why it's not enough to stop and start this web > > site/web application? What am I missing? > > > > You can see by goodling how many developers got confused by this > > "simple"(?) issue - and even stackoverflow doesn't have a clear answer, or > > am I missing it? > > > > Thank you. > > > > -- > > Shamil > > > > -----Original Message----- > > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > > To: "Discussion concerning Visual Basic and related programming issues."< > > dba-vb at databaseadvisors.com> > > Date: Fri, 05 Jun 2009 02:48:38 +0400 > > Subject: Re: [dba-VB] > > Problem while publishing ADO.NET Data Service... > > > > > Hi All, > > > > > > I have got found one solution for the subject issue: > > > > > > Hosted ADO.NET Data Services & Silverlight > > > > > http://dvanderboom.wordpress.com/2009/01/07/hosted-adonet-data-services-silverlight/ > > > > > > But it doesn't look satisfactory for general case, and it doesn't work > > yet for my site (waiting for ISP support with IIS server restart - maybe > > that helps as web site restarting doesn't work) - I have got stuck here: > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > > > > > with a message: > > > <<< > > > IIS specified authentication schemes 'Basic, Anonymous', but the binding > > only supports specification of exactly one authentication scheme. Valid > > authentication schemes are Digest, Negotiate, NTLM, Basic, or Anonymous. > > Change the IIS settings so that only a single authentication scheme is used. > > > >>> > > > > > > and as you can see SOAP and WCF sample services do work OK here: > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/SOAPService.asmx > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/WCFService.svc > > > > > > If you know general solution for subject issue that woudl be very > > helpful. > > > > > > Thank you. > > > > > > -- > > > Shamil > > > > > > -----Original Message----- > > > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > > > To: "Discussion concerning Visual Basic and related programming issues."< > > dba-vb at databaseadvisors.com> > > > Date: Thu, 04 Jun 2009 23:06:18 +0400 > > > Subject: Re: [dba-VB] > > > Problem while publishing ADO.NET Data Service... > > > > > > > Hi All, > > > > > > > > I have changed location of NorthwindNety Data Service to: > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > > > > > > > still no solution for > > > > > > > > This collection already contains an address with scheme http. There > > can be at most one address per scheme in this collection. > > > > Parameter name: item > > > > > > > > :( > > > > > > > > -- > > > > Shamil > > > > > > > ><<< aaa >>> > > > _______________________________________________ > > > dba-VB mailing list > > > dba-VB at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > > http://www.databaseadvisors.com > > > > > > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > > > > > From Gustav at cactus.dk Fri Jun 5 06:00:59 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 05 Jun 2009 13:00:59 +0200 Subject: [dba-VB] Problem while publishing ADO.NET Data Service... Message-ID: <sa291725.093@cactus.dk> Hi Mark I think it is. MS is pushing it for VS2010 and a CTP v1.5 is already out. How to get these to interact is described here (haven't tried this myself though): http://blogs.msdn.com/astoriateam/archive/2009/05/22/using-ado-net-data-services-v1-5-ctp1-with-visual-studio-2010-beta-1.aspx I have seen nothing about performance differences. /gustav >>> marklbreen at gmail.com 05-06-2009 10:10 >>> I am not clear yet about differences between Webservices and ADO.NET Data Service , but I expect if I spend some time to google and read, I can become clear. However, I have one question, do you think that this archetectire is without doubt the way we will all connect to our data sources in the future? How about performance, will it perform as good as current connections such as ado and odbc over SQL Server Port? thanks Mark From mcp2004 at mail.ru Fri Jun 5 06:15:27 2009 From: mcp2004 at mail.ru (Salakhetdinov Shamil) Date: Fri, 05 Jun 2009 15:15:27 +0400 Subject: [dba-VB] =?koi8-r?b?UHJvYmxlbSB3aGlsZSBwdWJsaXNoaW5nIEFETy5ORVQg?= =?koi8-r?b?RGF0YSBTZXJ2aWNlLi4u?= In-Reply-To: <sa291725.093@cactus.dk> References: <sa291725.093@cactus.dk> Message-ID: <E1MCXOR-0003XH-00.mcp2004-mail-ru@f79.mail.ru> Hi Gustav and Mark, ADO.NET Data Services works with .NET 3.5 SP1 - it was used for my recent samples. Here is a good link http://astoria.mslivelabs.com/ and I used this one http://msdn.microsoft.com/en-us/library/cc907912.aspx to make the live sample here http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc and this Dynamic Data Web Site I have made by just clicking some menu options and buttons in VS2008 SP1: http://shamils-4.hosting.parking.ru/NorthwindNetDynamicDataWebSite As you can find performance is rather good (but db is small of course) - such site can be further augmented with custom web forms AFAIU (I haven't read how to so that yet), as you can see this site uses ASP.NET/AJAX, I guess it may also use ASP.NET MVC Framework etc. And it can be used "out-of-the-box" to at least enter/edit lookup tables' data - what it can do at most - the latter have to be investigated... Thank you. -- Shamil -----Original Message----- From: "Gustav Brock" <Gustav at cactus.dk> To: <dba-vb at databaseadvisors.com> Date: Fri, 05 Jun 2009 13:00:59 +0200 Subject: Re: [dba-VB] Problem while publishing ADO.NET Data Service... > Hi Mark > > I think it is. MS is pushing it for VS2010 and a CTP v1.5 is already out. > How to get these to interact is described here (haven't tried this myself though): > > http://blogs.msdn.com/astoriateam/archive/2009/05/22/using-ado-net-data-services-v1-5-ctp1-with-visual-studio-2010-beta-1.aspx > > I have seen nothing about performance differences. > > /gustav > > > >>> marklbreen at gmail.com 05-06-2009 10:10 >>> > > I am not clear yet about differences between Webservices and ADO.NET Data > Service , but I expect if I spend some time to google and read, I can become > clear. > > However, I have one question, do you think that this archetectire is > without doubt the way we will all connect to our data sources in the future? > How about performance, will it perform as good as current connections such > as ado and odbc over SQL Server Port? > > thanks > > Mark > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From mcp2004 at mail.ru Fri Jun 5 06:26:41 2009 From: mcp2004 at mail.ru (Salakhetdinov Shamil) Date: Fri, 05 Jun 2009 15:26:41 +0400 Subject: [dba-VB] =?koi8-r?b?UHJvYmxlbSB3aGlsZSBwdWJsaXNoaW5nIEFETy5ORVQg?= =?koi8-r?b?RGF0YSBTZXJ2aWNlLi4u?= In-Reply-To: <c7fd28d00906050110t4683d3a4s12edd90831dde420@mail.gmail.com> References: <c7fd28d00906050110t4683d3a4s12edd90831dde420@mail.gmail.com> Message-ID: <E1MCXZJ-0005yB-00.mcp2004-mail-ru@f163.mail.ru> Hi Mark, I'd add/outline additionally to my previous answer on your posting that ADO.NET Data Services can be used in heavily distributed workflow scenarious, with support of distributed transactions etc.etc. Workflows are designed and programmed for such applications using Windows Workflow Foundation (WF). "Not data" services are developed using Windows Communication Foundation (WCF) (and ADO.NET data services are also driven by WCF services AFAIU)... -- Shamil -----Original Message----- From: Mark Breen <marklbreen at gmail.com> To: Salakhetdinov Shamil <mcp2004 at mail.ru>, "Discussion concerning Visual Basic and related programming issues." <dba-vb at databaseadvisors.com> Date: Fri, 5 Jun 2009 09:10:10 +0100 Subject: Re: [dba-VB] Problem while publishing ADO.NET Data Service... > Hello Shamil, > as you know, I have two servers here in Ireland, would you like to do your > diagnosis / development of future development work on one of my servers ? > If so, that would be no problem. > > I am trying to keep up and read some of the link you posted int he last few > days regarding ADO.NET Data Service. > > I am not clear yet about differences between Webservices and ADO.NET Data > Service , but I expect if I spend some time to google and read, I can become > clear. > > However, I have one question, do you think that this archetectire is > without doubt the way we will all connect to our data sources in the future? > How about performance, will it perform as good as current connections such > as ado and odbc over SQL Server Port? > > thanks > > Mark > > > > 2009/6/5 Salakhetdinov Shamil <mcp2004 at mail.ru> > > > > > Hi All, > > > > Just wanted to ask one more question on subject issue: I do not understand > > why IIS should be restarted to have one of its Web Site's getting a new > > setting activated? I mean why it's not enough to stop and start this web > > site/web application? What am I missing? > > > > You can see by goodling how many developers got confused by this > > "simple"(?) issue - and even stackoverflow doesn't have a clear answer, or > > am I missing it? > > > > Thank you. > > > > -- > > Shamil > > > > -----Original Message----- > > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > > To: "Discussion concerning Visual Basic and related programming issues."< > > dba-vb at databaseadvisors.com> > > Date: Fri, 05 Jun 2009 02:48:38 +0400 > > Subject: Re: [dba-VB] > > Problem while publishing ADO.NET Data Service... > > > > > Hi All, > > > > > > I have got found one solution for the subject issue: > > > > > > Hosted ADO.NET Data Services & Silverlight > > > > > http://dvanderboom.wordpress.com/2009/01/07/hosted-adonet-data-services-silverlight/ > > > > > > But it doesn't look satisfactory for general case, and it doesn't work > > yet for my site (waiting for ISP support with IIS server restart - maybe > > that helps as web site restarting doesn't work) - I have got stuck here: > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > > > > > with a message: > > > <<< > > > IIS specified authentication schemes 'Basic, Anonymous', but the binding > > only supports specification of exactly one authentication scheme. Valid > > authentication schemes are Digest, Negotiate, NTLM, Basic, or Anonymous. > > Change the IIS settings so that only a single authentication scheme is used. > > > >>> > > > > > > and as you can see SOAP and WCF sample services do work OK here: > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/SOAPService.asmx > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/WCFService.svc > > > > > > If you know general solution for subject issue that woudl be very > > helpful. > > > > > > Thank you. > > > > > > -- > > > Shamil > > > > > > -----Original Message----- > > > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > > > To: "Discussion concerning Visual Basic and related programming issues."< > > dba-vb at databaseadvisors.com> > > > Date: Thu, 04 Jun 2009 23:06:18 +0400 > > > Subject: Re: [dba-VB] > > > Problem while publishing ADO.NET Data Service... > > > > > > > Hi All, > > > > > > > > I have changed location of NorthwindNety Data Service to: > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > > > > > > > still no solution for > > > > > > > > This collection already contains an address with scheme http. There > > can be at most one address per scheme in this collection. > > > > Parameter name: item > > > > > > > > :( > > > > > > > > -- > > > > Shamil > > > > > > > ><<< aaa >>> > > > _______________________________________________ > > > 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 mcp2004 at mail.ru Fri Jun 5 17:27:22 2009 From: mcp2004 at mail.ru (Salakhetdinov Shamil) Date: Sat, 06 Jun 2009 02:27:22 +0400 Subject: [dba-VB] =?koi8-r?b?UHJvYmxlbSB3aGlsZSBwdWJsaXNoaW5nIEFETy5ORVQg?= =?koi8-r?b?RGF0YSBTZXJ2aWNlLi4u?= In-Reply-To: <E1MCXZJ-0005yB-00.mcp2004-mail-ru@f163.mail.ru> References: <E1MCXZJ-0005yB-00.mcp2004-mail-ru@f163.mail.ru> Message-ID: <E1MChsg-0001pr-00.mcp2004-mail-ru@f147.mail.ru> Hi All, I have got my SilverLight sample working: http://shamils-4.hosting.parking.ru/sl/NWNetSilverlight.aspx it uses hardcoded Shipper sample table's data. Then I tried to "feed" my Silverlight sample form by using the following ADO.NET Data Service: http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc with code like that (which works well in C# console app): using System; using System.Collections.Generic; using System.Data.Services.Client; using System.ComponentModel; namespace ResearchAndDevelopment.Console { public class Shippers { public class Shipper { public int ID { get; set; } public string Name { get; set; } public string Phone { get; set; } public byte[] RowTimeStamp { get; set; } } private static Uri dataServiceURI = new Uri(@"http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc"); public static void ListShippers() { DataServiceContext ctx = new DataServiceContext(dataServiceURI); IEnumerable<Shipper> shippers = ctx.Execute<Shipper>( new Uri("Shipper?$orderby=ID", UriKind.Relative)); foreach (Shipper s in shippers) { System.Console.WriteLine("{0}. {1}", s.ID, s.Name); } } } } But I have found that SilverLight 2.0 doesn't support ADO.NET Data Services "out-of-the-box" as straightforward as the above sample code. This sample code doesn't even compile for SilverLight projects because those projects can't be used with .NET Framework 3.5. Therefore I'm currently stuck in feeding my SilverLight 2.0 sample with ADO.NET Data Services (.NET 3.5 SP1) ATOM feed. Do you have any samples' references explaining how to get ADO.NET Data Services Data into SilverLight 2.0 - the most straightforward way? Thank you. -- Shamil -----Original Message----- From: Salakhetdinov Shamil <mcp2004 at mail.ru> To: Mark Breen <marklbreen at gmail.com> Date: Fri, 05 Jun 2009 15:26:41 +0400 Subject: Re: [dba-VB] Problem while publishing ADO.NET Data Service... > Hi Mark, > > I'd add/outline additionally to my previous answer on your posting that ADO.NET Data Services can be used in heavily distributed workflow scenarious, with support of distributed transactions etc.etc. Workflows are designed and programmed for such applications using Windows Workflow Foundation (WF). "Not data" services are developed using Windows Communication Foundation (WCF) (and ADO.NET data services are also driven by WCF services AFAIU)... > > -- > Shamil > > -----Original Message----- > From: Mark Breen <marklbreen at gmail.com> > To: Salakhetdinov Shamil <mcp2004 at mail.ru>, "Discussion concerning Visual Basic and related programming issues." <dba-vb at databaseadvisors.com> > Date: Fri, 5 Jun 2009 09:10:10 +0100 > Subject: Re: [dba-VB] Problem while publishing ADO.NET Data Service... > > > Hello Shamil, > > as you know, I have two servers here in Ireland, would you like to do your > > diagnosis / development of future development work on one of my servers ? > > If so, that would be no problem. > > > > I am trying to keep up and read some of the link you posted int he last few > > days regarding ADO.NET Data Service. > > > > I am not clear yet about differences between Webservices and ADO.NET Data > > Service , but I expect if I spend some time to google and read, I can become > > clear. > > > > However, I have one question, do you think that this archetectire is > > without doubt the way we will all connect to our data sources in the future? > > How about performance, will it perform as good as current connections such > > as ado and odbc over SQL Server Port? > > > > thanks > > > > Mark > > > > > > > > 2009/6/5 Salakhetdinov Shamil <mcp2004 at mail.ru> > > > > > > > > Hi All, > > > > > > Just wanted to ask one more question on subject issue: I do not understand > > > why IIS should be restarted to have one of its Web Site's getting a new > > > setting activated? I mean why it's not enough to stop and start this web > > > site/web application? What am I missing? > > > > > > You can see by goodling how many developers got confused by this > > > "simple"(?) issue - and even stackoverflow doesn't have a clear answer, or > > > am I missing it? > > > > > > Thank you. > > > > > > -- > > > Shamil > > > > > > -----Original Message----- > > > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > > > To: "Discussion concerning Visual Basic and related programming issues."< > > > dba-vb at databaseadvisors.com> > > > Date: Fri, 05 Jun 2009 02:48:38 +0400 > > > Subject: Re: [dba-VB] > > > Problem while publishing ADO.NET Data Service... > > > > > > > Hi All, > > > > > > > > I have got found one solution for the subject issue: > > > > > > > > Hosted ADO.NET Data Services & Silverlight > > > > > > > http://dvanderboom.wordpress.com/2009/01/07/hosted-adonet-data-services-silverlight/ > > > > > > > > But it doesn't look satisfactory for general case, and it doesn't work > > > yet for my site (waiting for ISP support with IIS server restart - maybe > > > that helps as web site restarting doesn't work) - I have got stuck here: > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > > > > > > > with a message: > > > > <<< > > > > IIS specified authentication schemes 'Basic, Anonymous', but the binding > > > only supports specification of exactly one authentication scheme. Valid > > > authentication schemes are Digest, Negotiate, NTLM, Basic, or Anonymous. > > > Change the IIS settings so that only a single authentication scheme is used. > > > > >>> > > > > > > > > and as you can see SOAP and WCF sample services do work OK here: > > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/SOAPService.asmx > > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/WCFService.svc > > > > > > > > If you know general solution for subject issue that woudl be very > > > helpful. > > > > > > > > Thank you. > > > > > > > > -- > > > > Shamil > > > > > > > > -----Original Message----- > > > > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > > > > To: "Discussion concerning Visual Basic and related programming issues."< > > > dba-vb at databaseadvisors.com> > > > > Date: Thu, 04 Jun 2009 23:06:18 +0400 > > > > Subject: Re: [dba-VB] > > > > Problem while publishing ADO.NET Data Service... > > > > > > > > > Hi All, > > > > > > > > > > I have changed location of NorthwindNety Data Service to: > > > > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > > > > > > > > > still no solution for > > > > > > > > > > This collection already contains an address with scheme http. There > > > can be at most one address per scheme in this collection. > > > > > Parameter name: item > > > > > > > > > > :( > > > > > > > > > > -- > > > > > Shamil > > > > > > > > > ><<< aaa >>> > > > > _______________________________________________ > > > > dba-VB mailing list > > > > dba-VB at databaseadvisors.com > > > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > > > http://www.databaseadvisors.com > > > > > > > > > > _______________________________________________ > > > dba-VB mailing list > > > dba-VB at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > > http://www.databaseadvisors.com > > > > > > > > > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From mcp2004 at mail.ru Fri Jun 5 17:53:23 2009 From: mcp2004 at mail.ru (Salakhetdinov Shamil) Date: Sat, 06 Jun 2009 02:53:23 +0400 Subject: [dba-VB] =?koi8-r?b?UHJvYmxlbSB3aGlsZSBwdWJsaXNoaW5nIEFETy5ORVQg?= =?koi8-r?b?RGF0YSBTZXJ2aWNlLi4u?= In-Reply-To: <E1MChsg-0001pr-00.mcp2004-mail-ru@f147.mail.ru> References: <E1MChsg-0001pr-00.mcp2004-mail-ru@f147.mail.ru> Message-ID: <E1MCiHr-0000nr-00.mcp2004-mail-ru@f233.mail.ru> Hi All, I have found a good sample to consume ADO.NET Data Services using SIlverLight 2.0 - here it's: Using Silverlight 2 With ADO.NET Data Services http://msdn.microsoft.com/en-us/magazine/dd569758.aspx I will try to make something like that live tomorrow - time to sleep here. Thank you. -- Shamil -----Original Message----- From: Salakhetdinov Shamil <mcp2004 at mail.ru> To: "Discussion concerning Visual Basic and related programming issues."<dba-vb at databaseadvisors.com> Date: Sat, 06 Jun 2009 02:27:22 +0400 Subject: Re: [dba-VB] Problem while publishing ADO.NET Data Service... > Hi All, > > I have got my SilverLight sample working: > > http://shamils-4.hosting.parking.ru/sl/NWNetSilverlight.aspx > > it uses hardcoded Shipper sample table's data. > > Then I tried to "feed" my Silverlight sample form by using the following ADO.NET Data Service: > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > with code like that (which works well in C# console app): > > using System; > using System.Collections.Generic; > > using System.Data.Services.Client; > using System.ComponentModel; > > namespace ResearchAndDevelopment.Console > { > public class Shippers > { > public class Shipper > { > public int ID { get; set; } > public string Name { get; set; } > public string Phone { get; set; } > public byte[] RowTimeStamp { get; set; } > } > > private static Uri dataServiceURI = > new Uri(@"http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc"); > public static void ListShippers() > { > DataServiceContext ctx = > new DataServiceContext(dataServiceURI); > IEnumerable<Shipper> shippers = ctx.Execute<Shipper>( > new Uri("Shipper?$orderby=ID", UriKind.Relative)); > foreach (Shipper s in shippers) > { > System.Console.WriteLine("{0}. {1}", s.ID, s.Name); > } > } > } > } > > But I have found that SilverLight 2.0 doesn't support ADO.NET Data Services "out-of-the-box" as straightforward as the above sample code. This sample code doesn't even compile for SilverLight projects because those projects can't be used with .NET Framework 3.5. > > Therefore I'm currently stuck in feeding my SilverLight 2.0 sample with ADO.NET Data Services (.NET 3.5 SP1) ATOM feed. > > Do you have any samples' references explaining how to get ADO.NET Data Services Data into SilverLight 2.0 - the most straightforward way? > > Thank you. > > -- > Shamil > > > > -----Original Message----- > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > To: Mark Breen <marklbreen at gmail.com> > Date: Fri, 05 Jun 2009 15:26:41 +0400 > Subject: Re: [dba-VB] > Problem while publishing ADO.NET Data Service... > > > Hi Mark, > > > > I'd add/outline additionally to my previous answer on your posting that ADO.NET Data Services can be used in heavily distributed workflow scenarious, with support of distributed transactions etc.etc. Workflows are designed and programmed for such applications using Windows Workflow Foundation (WF). "Not data" services are developed using Windows Communication Foundation (WCF) (and ADO.NET data services are also driven by WCF services AFAIU)... > > > > -- > > Shamil > > > > -----Original Message----- > > From: Mark Breen <marklbreen at gmail.com> > > To: Salakhetdinov Shamil <mcp2004 at mail.ru>, "Discussion concerning Visual Basic and related programming issues." <dba-vb at databaseadvisors.com> > > Date: Fri, 5 Jun 2009 09:10:10 +0100 > > Subject: Re: [dba-VB] Problem while publishing ADO.NET Data Service... > > > > > Hello Shamil, > > > as you know, I have two servers here in Ireland, would you like to do your > > > diagnosis / development of future development work on one of my servers ? > > > If so, that would be no problem. > > > > > > I am trying to keep up and read some of the link you posted int he last few > > > days regarding ADO.NET Data Service. > > > > > > I am not clear yet about differences between Webservices and ADO.NET Data > > > Service , but I expect if I spend some time to google and read, I can become > > > clear. > > > > > > However, I have one question, do you think that this archetectire is > > > without doubt the way we will all connect to our data sources in the future? > > > How about performance, will it perform as good as current connections such > > > as ado and odbc over SQL Server Port? > > > > > > thanks > > > > > > Mark > > > > > > > > > > > > 2009/6/5 Salakhetdinov Shamil <mcp2004 at mail.ru> > > > > > > > > > > > Hi All, > > > > > > > > Just wanted to ask one more question on subject issue: I do not understand > > > > why IIS should be restarted to have one of its Web Site's getting a new > > > > setting activated? I mean why it's not enough to stop and start this web > > > > site/web application? What am I missing? > > > > > > > > You can see by goodling how many developers got confused by this > > > > "simple"(?) issue - and even stackoverflow doesn't have a clear answer, or > > > > am I missing it? > > > > > > > > Thank you. > > > > > > > > -- > > > > Shamil > > > > > > > > -----Original Message----- > > > > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > > > > To: "Discussion concerning Visual Basic and related programming issues."< > > > > dba-vb at databaseadvisors.com> > > > > Date: Fri, 05 Jun 2009 02:48:38 +0400 > > > > Subject: Re: [dba-VB] > > > > Problem while publishing ADO.NET Data Service... > > > > > > > > > Hi All, > > > > > > > > > > I have got found one solution for the subject issue: > > > > > > > > > > Hosted ADO.NET Data Services & Silverlight > > > > > > > > > http://dvanderboom.wordpress.com/2009/01/07/hosted-adonet-data-services-silverlight/ > > > > > > > > > > But it doesn't look satisfactory for general case, and it doesn't work > > > > yet for my site (waiting for ISP support with IIS server restart - maybe > > > > that helps as web site restarting doesn't work) - I have got stuck here: > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > > > > > > > > > with a message: > > > > > <<< > > > > > IIS specified authentication schemes 'Basic, Anonymous', but the binding > > > > only supports specification of exactly one authentication scheme. Valid > > > > authentication schemes are Digest, Negotiate, NTLM, Basic, or Anonymous. > > > > Change the IIS settings so that only a single authentication scheme is used. > > > > > >>> > > > > > > > > > > and as you can see SOAP and WCF sample services do work OK here: > > > > > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/SOAPService.asmx > > > > > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/WCFService.svc > > > > > > > > > > If you know general solution for subject issue that woudl be very > > > > helpful. > > > > > > > > > > Thank you. > > > > > > > > > > -- > > > > > Shamil > > > > > > > > > > -----Original Message----- > > > > > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > > > > > To: "Discussion concerning Visual Basic and related programming issues."< > > > > dba-vb at databaseadvisors.com> > > > > > Date: Thu, 04 Jun 2009 23:06:18 +0400 > > > > > Subject: Re: [dba-VB] > > > > > Problem while publishing ADO.NET Data Service... > > > > > > > > > > > Hi All, > > > > > > > > > > > > I have changed location of NorthwindNety Data Service to: > > > > > > > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > > > > > > > > > > > still no solution for > > > > > > > > > > > > This collection already contains an address with scheme http. There > > > > can be at most one address per scheme in this collection. > > > > > > Parameter name: item > > > > > > > > > > > > :( > > > > > > > > > > > > -- > > > > > > Shamil > > > > > > > > > > > ><<< aaa >>> > > > > > _______________________________________________ > > > > > dba-VB mailing list > > > > > dba-VB at databaseadvisors.com > > > > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > > > > http://www.databaseadvisors.com > > > > > > > > > > > > > _______________________________________________ > > > > dba-VB mailing list > > > > dba-VB at databaseadvisors.com > > > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > > > http://www.databaseadvisors.com > > > > > > > > > > > > > > > > > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From ssharkins at gmail.com Fri Jun 5 19:42:30 2009 From: ssharkins at gmail.com (Susan Harkins) Date: Fri, 5 Jun 2009 20:42:30 -0400 Subject: [dba-VB] New article from Charlotte and myself Message-ID: <8A3DB7DEC94740D797DD5597B4CEC864@SusanOne> <http://www.devx.com/dbzone/Article/41994> The .NET Newbie's Guide to Customizing the DataGridView Control These articles are aimed at helping people take the plunge. Susan H. From mcp2004 at mail.ru Sat Jun 6 11:41:34 2009 From: mcp2004 at mail.ru (Salakhetdinov Shamil) Date: Sat, 06 Jun 2009 20:41:34 +0400 Subject: [dba-VB] =?koi8-r?b?U0NSVU0vU2lsdmVyTGlnaHQgMi4w?= In-Reply-To: <E1MBeQ2-00082Q-00.mcp2004-mail-ru@f190.mail.ru> References: <E1MBeQ2-00082Q-00.mcp2004-mail-ru@f190.mail.ru> Message-ID: <E1MCyxa-0000uE-00.mcp2004-mail-ru@f230.mail.ru> Hi All, I have got SilverLight 2.0 working with sample ADO.NET Data Service - have a look: http://shamils-4.hosting.parking.ru/sl/NWNetSLAppTestPage.aspx - SilverLight sample form http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc - ADO.NET Data Service I have used this article to make some corrections to my previous code: Using Silverlight 2 With ADO.NET Data Services http://msdn.microsoft.com/en-us/magazine/dd569758.aspx Please take special attention to this note from article: <<< Cross-Domain Communications ADO.NET Data Services does not currently support cross-domain communications. Cross-domain communications are supported with standard REST and SOAP services, but not with ADO.NET Data Services. (As a note: the data services team is exploring the space and will post their progress to the Astoria team blog as they go.) This means that a Silverlight 2 client cannot talk to services exposed through ADO.NET Data Services if those services are hosted on a different domain than the domain that hosts the Silverlight client application >>> I first missed it and tried to make my SilverLight application working in debug mode on my PC while trying to get data from the above ADO.NET Data Service - it didn't work and resulted in obscure runtime error message box popping up in IE 7: A Runtime Error has occurred. Do you wish to debiug? Line: 0 Error: Access is denied When the application was put on the same server then it started to work OK. This sample application is just getting some data and exposing them in a Silverlight window/form - nothing special but in fact this is a core to grow "meat stuff" around. In the coming days (after lonng weekend break till next Tuesday) I plan to add some more features to this sample application as inserting/updating/deleting records and also simple navigation control. Please note that SilverLight applications are a kind of limited XBAP application which in turn are a kind of limited WPF applications: knowing how to develop one kind of them will simplify to master development of the others. What about making Northwind.Net.Silverlight application in a SCRUM team? Thank you. -- Shamil -----Original Message----- From: Salakhetdinov Shamil <mcp2004 at mail.ru> To: dba-VB <dba-vb at databaseadvisors.com> Date: Wed, 03 Jun 2009 04:33:26 +0400 Subject: [dba-VB] SCRUM/SilverLight 2.0 > Hi All, > > I have got setup simple SilverLight application here > > http://shamils-4.hosting.parking.ru/sl > > now using publish feature but it still doesn't work there when started from Internet and it works well locally. > > Do you know should there be any special tuning done of server side for SilverLight applications to run properly? (ASP.NET 2.0/3.5 run from that site just fine.) > > Thank you. > > -- > Shamil > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From mcp2004 at mail.ru Sat Jun 6 11:49:44 2009 From: mcp2004 at mail.ru (Salakhetdinov Shamil) Date: Sat, 06 Jun 2009 20:49:44 +0400 Subject: [dba-VB] =?koi8-r?b?TmV3IGFydGljbGUgZnJvbSBDaGFybG90dGUgYW5kIG15?= =?koi8-r?b?c2VsZg==?= In-Reply-To: <8A3DB7DEC94740D797DD5597B4CEC864@SusanOne> References: <8A3DB7DEC94740D797DD5597B4CEC864@SusanOne> Message-ID: <E1MCz5U-0000VQ-00.mcp2004-mail-ru@f251.mail.ru> Hi Susan, Thank you for the link. That's a good article. I'd note one of your outstanding abilities - an ability to "cultivate the developed ground" yielding very useful output... -- Shamil -----Original Message----- From: "Susan Harkins" <ssharkins at gmail.com> To: "VBLIst" <dba-vb at databaseadvisors.com> Date: Fri, 5 Jun 2009 20:42:30 -0400 Subject: [dba-VB] New article from Charlotte and myself > <http://www.devx.com/dbzone/Article/41994> > > The .NET Newbie's Guide to Customizing the DataGridView Control > > These articles are aimed at helping people take the plunge. > > Susan H. > _______________________________________________ > 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 Sat Jun 6 12:39:55 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Sat, 06 Jun 2009 19:39:55 +0200 Subject: [dba-VB] SCRUM/SilverLight 2.0 Message-ID: <sa2ac628.001@cactus.dk> Hi Shamil Thanks for the demo, and yes, that's a very inspiring article and I read it with great interest. Also note in that article the not so exposed link to this article: http://msdn.microsoft.com/magazine/cc794260 which is a bit more basic and explains the "mechanics" of data bound Silverlight pages quite well including in detail what's the Cross-Domain Communications issue is about, why it makes sense, and how to deal with it. Given that Northwind is a not a very complicated application, I think it could be well suited for a transfer to Silverlight. However, one big question is unanswered to me: Reporting in Silverlight. No ReportViewer is available. So how to deal with that? Link to a special reporting server running ASP.NET? Not a bad idea but, of course, but a little more complicated. Here is (no) more info on the subject: http://csharp-snippets.blogspot.com/2009/04/report-viewer-for-Silverlight-2.html <quote> Currently as I see there is only one way of doing these reports. Create your reports definition files in Sql 2005 or 2008 and then use an aspx page to load them. A short reference for the code snippet. It is better to place this in the page_load event of the aspx page. </quote> The Perpetuum component mentioned carries a cost of $750 (not exactly what I am looking for): http://www.perpetuumsoft.com/Product.aspx?lang=en&pid=102 /gustav >>> Salakhetdinov Shamil <mcp2004 at mail.ru> 06-06-2009 18:41 >>> Hi All, I have got SilverLight 2.0 working with sample ADO.NET Data Service - have a look: http://shamils-4.hosting.parking.ru/sl/NWNetSLAppTestPage.aspx - SilverLight sample form http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc - ADO.NET Data Service I have used this article to make some corrections to my previous code: Using Silverlight 2 With ADO.NET Data Services http://msdn.microsoft.com/en-us/magazine/dd569758.aspx Please take special attention to this note from article: <<< Cross-Domain Communications ADO.NET Data Services does not currently support cross-domain communications. Cross-domain communications are supported with standard REST and SOAP services, but not with ADO.NET Data Services. (As a note: the data services team is exploring the space and will post their progress to the Astoria team blog as they go.) This means that a Silverlight 2 client cannot talk to services exposed through ADO.NET Data Services if those services are hosted on a different domain than the domain that hosts the Silverlight client application >>> I first missed it and tried to make my SilverLight application working in debug mode on my PC while trying to get data from the above ADO.NET Data Service - it didn't work and resulted in obscure runtime error message box popping up in IE 7: A Runtime Error has occurred. Do you wish to debiug? Line: 0 Error: Access is denied When the application was put on the same server then it started to work OK. This sample application is just getting some data and exposing them in a Silverlight window/form - nothing special but in fact this is a core to grow "meat stuff" around. In the coming days (after lonng weekend break till next Tuesday) I plan to add some more features to this sample application as inserting/updating/deleting records and also simple navigation control. Please note that SilverLight applications are a kind of limited XBAP application which in turn are a kind of limited WPF applications: knowing how to develop one kind of them will simplify to master development of the others. What about making Northwind.Net.Silverlight application in a SCRUM team? Thank you. -- Shamil -----Original Message----- From: Salakhetdinov Shamil <mcp2004 at mail.ru> To: dba-VB <dba-vb at databaseadvisors.com> Date: Wed, 03 Jun 2009 04:33:26 +0400 Subject: [dba-VB] SCRUM/SilverLight 2.0 > Hi All, > > I have got setup simple SilverLight application here > > http://shamils-4.hosting.parking.ru/sl > > now using publish feature but it still doesn't work there when started from Internet and it works well locally. > > Do you know should there be any special tuning done of server side for SilverLight applications to run properly? (ASP.NET 2.0/3.5 run from that site just fine.) > > Thank you. > > -- > Shamil From mcp2004 at mail.ru Sat Jun 6 13:30:46 2009 From: mcp2004 at mail.ru (Salakhetdinov Shamil) Date: Sat, 06 Jun 2009 22:30:46 +0400 Subject: [dba-VB] =?koi8-r?b?U0NSVU0vU2lsdmVyTGlnaHQgMi4w?= In-Reply-To: <sa2ac628.001@cactus.dk> References: <sa2ac628.001@cactus.dk> Message-ID: <E1MD0fG-0001WJ-00.mcp2004-mail-ru@f144.mail.ru> Hi Gustav, Thank you for your feedback. I will put your articles' refs in my "immediate read list" (leaving tomorrow for Finland for a short two days holidays). Yes, that would be interesting to "cook" a SilverLight sample project in a (SCRUM) team. I have just published the results of my first SilverLight and ADO.NET Data Services exercize here on CodePlex - http://northwind.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=26600 As for reporting - I haven't checked yet the references you posted here and I have to leave now: - what about the idea of delivering reports using special service? (we talked about that a few times already) MS ReportViewer Control Reports's PDF can be generated on-the-fly directly in code and in memory and that memory stream can be broadcasted anywhere/consumed from anywhere AFAIK... But how to consume that memory stream in SilverLight is an open question here - AFAIK (am I wrong?) SilverLight can communicate with its hosting browser (.aspx) page - so I guess it (SilverLight) can somehow "command" its hosting browser web page to "talk to web server" to generate MS ReportViewer Report with certain params and then get this generated report presented outside of SilverLight area on the web page (and SilverLight will shrink while report is presented) - something like that? Sounds too complicated? Maybe SilverLight 3.0 will have new controls supporting MS ReporViewer Reports' presentation etc.? Maybe we'd better wait for that reporting features as SilverLight 3.0 is in beta now, and we still have quite some stuff to learn with SilverLight 2.0? I mean we can just make the part of sample project having forms and neglect reports until SilverLight 3.0 will be released? Thank you. -- Shamil -----Original Message----- From: "Gustav Brock" <Gustav at cactus.dk> To: <dba-vb at databaseadvisors.com> Date: Sat, 06 Jun 2009 19:39:55 +0200 Subject: Re: [dba-VB] SCRUM/SilverLight 2.0 > Hi Shamil > > Thanks for the demo, and yes, that's a very inspiring article and I read it with great interest. > Also note in that article the not so exposed link to this article: > > http://msdn.microsoft.com/magazine/cc794260 > > which is a bit more basic and explains the "mechanics" of data bound Silverlight pages quite well including in detail what's the Cross-Domain Communications issue is about, why it makes sense, and how to deal with it. > > Given that Northwind is a not a very complicated application, I think it could be well suited for a transfer to Silverlight. However, one big question is unanswered to me: Reporting in Silverlight. No ReportViewer is available. So how to deal with that? Link to a special reporting server running ASP.NET? > Not a bad idea but, of course, but a little more complicated. Here is (no) more info on the subject: > > http://csharp-snippets.blogspot.com/2009/04/report-viewer-for-Silverlight-2.html > > <quote> > Currently as I see there is only one way of doing these reports. Create your reports definition files in Sql 2005 or 2008 and then use an aspx page to load them. A short reference for the code snippet. It is better to place this in the page_load event of the aspx page. > </quote> > > The Perpetuum component mentioned carries a cost of $750 (not exactly what I am looking for): > > http://www.perpetuumsoft.com/Product.aspx?lang=en&pid=102 > > /gustav > > > >>> Salakhetdinov Shamil <mcp2004 at mail.ru> 06-06-2009 18:41 >>> > > Hi All, > > I have got SilverLight 2.0 working with sample ADO.NET Data Service - have a look: > > http://shamils-4.hosting.parking.ru/sl/NWNetSLAppTestPage.aspx - SilverLight sample form > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc - ADO.NET Data Service > > I have used this article to make some corrections to my previous code: > > Using Silverlight 2 With ADO.NET Data Services > http://msdn.microsoft.com/en-us/magazine/dd569758.aspx > > Please take special attention to this note from article: > > <<< > Cross-Domain Communications > ADO.NET Data Services does not currently support cross-domain communications. Cross-domain communications are supported with standard REST and SOAP services, but not with ADO.NET Data Services. (As a note: the data services team is exploring the space and will post their progress to the Astoria team blog as they go.) This means that a Silverlight 2 client cannot talk to services exposed through ADO.NET Data Services if those services are hosted on a different domain than the domain that hosts the Silverlight client application > >>> > > I first missed it and tried to make my SilverLight application working in debug mode on my PC while trying to get data from the above ADO.NET Data Service - it didn't work and resulted in obscure runtime error message box popping up in IE 7: > > A Runtime Error has occurred. > Do you wish to debiug? > > Line: 0 > Error: Access is denied > > When the application was put on the same server then it started to work OK. > > This sample application is just getting some data and exposing them in a Silverlight window/form - nothing special but in fact this is a core to grow "meat stuff" around. > > In the coming days (after lonng weekend break till next Tuesday) I plan to add some more features to this sample application as inserting/updating/deleting records and also simple navigation control. > > Please note that SilverLight applications are a kind of limited XBAP application which in turn are a kind of limited WPF applications: knowing how to develop one kind of them will simplify to master development of the others. > > What about making Northwind.Net.Silverlight application in a SCRUM team? > > Thank you. > > -- > Shamil > > > -----Original Message----- > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > To: dba-VB <dba-vb at databaseadvisors.com> > Date: Wed, 03 Jun 2009 04:33:26 +0400 > Subject: [dba-VB] SCRUM/SilverLight 2.0 > > > Hi All, > > > > I have got setup simple SilverLight application here > > > > http://shamils-4.hosting.parking.ru/sl > > > > now using publish feature but it still doesn't work there when started from Internet and it works well locally. > > > > Do you know should there be any special tuning done of server side for SilverLight applications to run properly? (ASP.NET 2.0/3.5 run from that site just fine.) > > > > 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 Sat Jun 6 13:46:19 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Sat, 06 Jun 2009 20:46:19 +0200 Subject: [dba-VB] SCRUM/SilverLight 2.0 Message-ID: <sa2ad5bf.003@cactus.dk> Hi Shamil et al Well, sadly report(ing) is not mentioned with a single word in the news about Silverlight 3 beta: http://silverlight.net/getstarted/silverlight3/default.aspx#whatsnew so some other method must be worked out. Streaming is an interesting idea but that will disable one of the true strengths of the ReportViewer: Interaction. /gustav >>> Salakhetdinov Shamil <mcp2004 at mail.ru> 06-06-2009 20:30 >>> Hi Gustav, Thank you for your feedback. I will put your articles' refs in my "immediate read list" (leaving tomorrow for Finland for a short two days holidays). Yes, that would be interesting to "cook" a SilverLight sample project in a (SCRUM) team. I have just published the results of my first SilverLight and ADO.NET Data Services exercize here on CodePlex - http://northwind.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=26600 As for reporting - I haven't checked yet the references you posted here and I have to leave now: - what about the idea of delivering reports using special service? (we talked about that a few times already) MS ReportViewer Control Reports's PDF can be generated on-the-fly directly in code and in memory and that memory stream can be broadcasted anywhere/consumed from anywhere AFAIK... But how to consume that memory stream in SilverLight is an open question here - AFAIK (am I wrong?) SilverLight can communicate with its hosting browser (.aspx) page - so I guess it (SilverLight) can somehow "command" its hosting browser web page to "talk to web server" to generate MS ReportViewer Report with certain params and then get this generated report presented outside of SilverLight area on the web page (and SilverLight will shrink while report is presented) - something like that? Sounds too complicated? Maybe SilverLight 3.0 will have new controls supporting MS ReporViewer Reports' presentation etc.? Maybe we'd better wait for that reporting features as SilverLight 3.0 is in beta now, and we still have quite some stuff to learn with SilverLight 2.0? I mean we can just make the part of sample project having forms and neglect reports until SilverLight 3.0 will be released? Thank you. -- Shamil -----Original Message----- From: "Gustav Brock" <Gustav at cactus.dk> To: <dba-vb at databaseadvisors.com> Date: Sat, 06 Jun 2009 19:39:55 +0200 Subject: Re: [dba-VB] SCRUM/SilverLight 2.0 > Hi Shamil > > Thanks for the demo, and yes, that's a very inspiring article and I read it with great interest. > Also note in that article the not so exposed link to this article: > > http://msdn.microsoft.com/magazine/cc794260 > > which is a bit more basic and explains the "mechanics" of data bound Silverlight pages quite well including in detail what's the Cross-Domain Communications issue is about, why it makes sense, and how to deal with it. > > Given that Northwind is a not a very complicated application, I think it could be well suited for a transfer to Silverlight. However, one big question is unanswered to me: Reporting in Silverlight. No ReportViewer is available. So how to deal with that? Link to a special reporting server running ASP.NET? > Not a bad idea but, of course, but a little more complicated. Here is (no) more info on the subject: > > http://csharp-snippets.blogspot.com/2009/04/report-viewer-for-Silverlight-2.html > > <quote> > Currently as I see there is only one way of doing these reports. Create your reports definition files in Sql 2005 or 2008 and then use an aspx page to load them. A short reference for the code snippet. It is better to place this in the page_load event of the aspx page. > </quote> > > The Perpetuum component mentioned carries a cost of $750 (not exactly what I am looking for): > > http://www.perpetuumsoft.com/Product.aspx?lang=en&pid=102 > > /gustav > > > >>> Salakhetdinov Shamil <mcp2004 at mail.ru> 06-06-2009 18:41 >>> > > Hi All, > > I have got SilverLight 2.0 working with sample ADO.NET Data Service - have a look: > > http://shamils-4.hosting.parking.ru/sl/NWNetSLAppTestPage.aspx - SilverLight sample form > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc - ADO.NET Data Service > > I have used this article to make some corrections to my previous code: > > Using Silverlight 2 With ADO.NET Data Services > http://msdn.microsoft.com/en-us/magazine/dd569758.aspx > > Please take special attention to this note from article: > > <<< > Cross-Domain Communications > ADO.NET Data Services does not currently support cross-domain communications. Cross-domain communications are supported with standard REST and SOAP services, but not with ADO.NET Data Services. (As a note: the data services team is exploring the space and will post their progress to the Astoria team blog as they go.) This means that a Silverlight 2 client cannot talk to services exposed through ADO.NET Data Services if those services are hosted on a different domain than the domain that hosts the Silverlight client application > >>> > > I first missed it and tried to make my SilverLight application working in debug mode on my PC while trying to get data from the above ADO.NET Data Service - it didn't work and resulted in obscure runtime error message box popping up in IE 7: > > A Runtime Error has occurred. > Do you wish to debiug? > > Line: 0 > Error: Access is denied > > When the application was put on the same server then it started to work OK. > > This sample application is just getting some data and exposing them in a Silverlight window/form - nothing special but in fact this is a core to grow "meat stuff" around. > > In the coming days (after lonng weekend break till next Tuesday) I plan to add some more features to this sample application as inserting/updating/deleting records and also simple navigation control. > > Please note that SilverLight applications are a kind of limited XBAP application which in turn are a kind of limited WPF applications: knowing how to develop one kind of them will simplify to master development of the others. > > What about making Northwind.Net.Silverlight application in a SCRUM team? > > Thank you. > > -- > Shamil > > > -----Original Message----- > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > To: dba-VB <dba-vb at databaseadvisors.com> > Date: Wed, 03 Jun 2009 04:33:26 +0400 > Subject: [dba-VB] SCRUM/SilverLight 2.0 > > > Hi All, > > > > I have got setup simple SilverLight application here > > > > http://shamils-4.hosting.parking.ru/sl > > > > now using publish feature but it still doesn't work there when started from Internet and it works well locally. > > > > Do you know should there be any special tuning done of server side for SilverLight applications to run properly? (ASP.NET 2.0/3.5 run from that site just fine.) > > > > Thank you. > > > > -- > > Shamil From mcp2004 at mail.ru Sat Jun 6 17:03:31 2009 From: mcp2004 at mail.ru (Salakhetdinov Shamil) Date: Sun, 07 Jun 2009 02:03:31 +0400 Subject: [dba-VB] =?koi8-r?b?U0NSVU0vU2lsdmVyTGlnaHQgMi4w?= In-Reply-To: <sa2ad5bf.003@cactus.dk> References: <sa2ad5bf.003@cactus.dk> Message-ID: <E1MD3z9-0000GL-00.mcp2004-mail-ru@f202.mail.ru> Hi Gustav at all, OK, so we have to find a way how to present reports another way - as far as I can see Perpetuum your referred currently "just" returns the image of report - all pages at once. As for .pdf, .xls etc. exports they generate them on service side and return to the browser in popup window: http://www.perpetuumsoft.com/Demo/slviewer/DemoReportsService.svc/Rest/Export?id=ReportsList&format=pdf http://www.perpetuumsoft.com/Demo/slviewer/DemoReportsService.svc/Rest/Export?id=ReportsList&format=excel http://www.perpetuumsoft.com/Demo/slviewer/DemoReportsService.svc/Rest/Export?id=ReportsList&format=rtf http://www.perpetuumsoft.com/Demo/slviewer/DemoReportsService.svc/Rest/Export?id=ReportsList&format=html The new features for SilverLight 3.0 show that this technology is targeted first of all for dynamic media content than for (relatively static) reports - therefore let's try to use "right tools for the right job"? - and if developing Northwind.NET.Silverlight sample then use SilverLight features to present interactive forms, and to display reports - use something as Perpetuum does - in popup window - generated on server side .PDF... OK? Thank you. -- Shamil -----Original Message----- From: "Gustav Brock" <Gustav at cactus.dk> To: <dba-vb at databaseadvisors.com> Date: Sat, 06 Jun 2009 20:46:19 +0200 Subject: Re: [dba-VB] SCRUM/SilverLight 2.0 > Hi Shamil et al > > Well, sadly report(ing) is not mentioned with a single word in the news about Silverlight 3 beta: > > http://silverlight.net/getstarted/silverlight3/default.aspx#whatsnew > > so some other method must be worked out. > Streaming is an interesting idea but that will disable one of the true strengths of the ReportViewer: Interaction. > > /gustav > > > >>> Salakhetdinov Shamil <mcp2004 at mail.ru> 06-06-2009 20:30 >>> > Hi Gustav, > > Thank you for your feedback. I will put your articles' refs in my "immediate read list" (leaving tomorrow for Finland for a short two days holidays). Yes, that would be interesting to "cook" a SilverLight sample project in a (SCRUM) team. > > I have just published the results of my first SilverLight and ADO.NET Data Services exercize here on CodePlex - http://northwind.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=26600 > > As for reporting - I haven't checked yet the references you posted here and I have to leave now: > > - what about the idea of delivering reports using special service? (we talked about that a few times already) MS ReportViewer Control Reports's PDF can be generated on-the-fly directly in code and in memory and that memory stream can be broadcasted anywhere/consumed from anywhere AFAIK... > > But how to consume that memory stream in SilverLight is an open question here - AFAIK (am I wrong?) SilverLight can communicate with its hosting browser (.aspx) page - so I guess it (SilverLight) can somehow "command" its hosting browser web page to "talk to web server" to generate MS ReportViewer Report with certain params and then get this generated report presented outside of SilverLight area on the web page (and SilverLight will shrink while report is presented) - something like that? Sounds too complicated? Maybe SilverLight 3.0 will have new controls supporting MS ReporViewer Reports' presentation etc.? Maybe we'd better wait for that reporting features as SilverLight 3.0 is in beta now, and we still have quite some stuff to learn with SilverLight 2.0? I mean we can just make the part of sample project having forms and neglect reports until SilverLight 3.0 will be released? > > Thank you. > > -- > Shamil > > > -----Original Message----- > From: "Gustav Brock" <Gustav at cactus.dk> > To: <dba-vb at databaseadvisors.com> > Date: Sat, 06 Jun 2009 19:39:55 +0200 > Subject: Re: [dba-VB] SCRUM/SilverLight 2.0 > > > Hi Shamil > > > > Thanks for the demo, and yes, that's a very inspiring article and I read it with great interest. > > Also note in that article the not so exposed link to this article: > > > > http://msdn.microsoft.com/magazine/cc794260 > > > > which is a bit more basic and explains the "mechanics" of data bound Silverlight pages quite well including in detail what's the Cross-Domain Communications issue is about, why it makes sense, and how to deal with it. > > > > Given that Northwind is a not a very complicated application, I think it could be well suited for a transfer to Silverlight. However, one big question is unanswered to me: Reporting in Silverlight. No ReportViewer is available. So how to deal with that? Link to a special reporting server running ASP.NET? > > Not a bad idea but, of course, but a little more complicated. Here is (no) more info on the subject: > > > > http://csharp-snippets.blogspot.com/2009/04/report-viewer-for-Silverlight-2.html > > > > <quote> > > Currently as I see there is only one way of doing these reports. Create your reports definition files in Sql 2005 or 2008 and then use an aspx page to load them. A short reference for the code snippet. It is better to place this in the page_load event of the aspx page. > > </quote> > > > > The Perpetuum component mentioned carries a cost of $750 (not exactly what I am looking for): > > > > http://www.perpetuumsoft.com/Product.aspx?lang=en&pid=102 > > > > /gustav > > > > > > >>> Salakhetdinov Shamil <mcp2004 at mail.ru> 06-06-2009 18:41 >>> > > > > Hi All, > > > > I have got SilverLight 2.0 working with sample ADO.NET Data Service - have a look: > > > > http://shamils-4.hosting.parking.ru/sl/NWNetSLAppTestPage.aspx - SilverLight sample form > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc - ADO.NET Data Service > > > > I have used this article to make some corrections to my previous code: > > > > Using Silverlight 2 With ADO.NET Data Services > > http://msdn.microsoft.com/en-us/magazine/dd569758.aspx > > > > Please take special attention to this note from article: > > > > <<< > > Cross-Domain Communications > > ADO.NET Data Services does not currently support cross-domain communications. Cross-domain communications are supported with standard REST and SOAP services, but not with ADO.NET Data Services. (As a note: the data services team is exploring the space and will post their progress to the Astoria team blog as they go.) This means that a Silverlight 2 client cannot talk to services exposed through ADO.NET Data Services if those services are hosted on a different domain than the domain that hosts the Silverlight client application > > >>> > > > > I first missed it and tried to make my SilverLight application working in debug mode on my PC while trying to get data from the above ADO.NET Data Service - it didn't work and resulted in obscure runtime error message box popping up in IE 7: > > > > A Runtime Error has occurred. > > Do you wish to debiug? > > > > Line: 0 > > Error: Access is denied > > > > When the application was put on the same server then it started to work OK. > > > > This sample application is just getting some data and exposing them in a Silverlight window/form - nothing special but in fact this is a core to grow "meat stuff" around. > > > > In the coming days (after lonng weekend break till next Tuesday) I plan to add some more features to this sample application as inserting/updating/deleting records and also simple navigation control. > > > > Please note that SilverLight applications are a kind of limited XBAP application which in turn are a kind of limited WPF applications: knowing how to develop one kind of them will simplify to master development of the others. > > > > What about making Northwind.Net.Silverlight application in a SCRUM team? > > > > Thank you. > > > > -- > > Shamil > > > > > > -----Original Message----- > > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > > To: dba-VB <dba-vb at databaseadvisors.com> > > Date: Wed, 03 Jun 2009 04:33:26 +0400 > > Subject: [dba-VB] SCRUM/SilverLight 2.0 > > > > > Hi All, > > > > > > I have got setup simple SilverLight application here > > > > > > http://shamils-4.hosting.parking.ru/sl > > > > > > now using publish feature but it still doesn't work there when started from Internet and it works well locally. > > > > > > Do you know should there be any special tuning done of server side for SilverLight applications to run properly? (ASP.NET 2.0/3.5 run from that site just fine.) > > > > > > Thank you. > > > > > > -- > > > Shamil > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From ssharkins at gmail.com Sat Jun 6 17:11:08 2009 From: ssharkins at gmail.com (Susan Harkins) Date: Sat, 6 Jun 2009 18:11:08 -0400 Subject: [dba-VB] New article from Charlotte and myself References: <8A3DB7DEC94740D797DD5597B4CEC864@SusanOne> <E1MCz5U-0000VQ-00.mcp2004-mail-ru@f251.mail.ru> Message-ID: <2FF08D3F779A45A1AF16322D6BEE0EAD@SusanOne> Thank you Shamil -- I'm glad you liked it! Charlotte is teaching me .NET -- best way for me to learn I think is to just plunge in and let an expert say, "No, no, no..." ;) Susan H. > Hi Susan, > > Thank you for the link. > That's a good article. > I'd note one of your outstanding abilities - an ability to "cultivate the > developed ground" yielding very useful output... From Gustav at cactus.dk Sat Jun 6 18:00:21 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Sun, 07 Jun 2009 01:00:21 +0200 Subject: [dba-VB] SCRUM/SilverLight 2.0 Message-ID: <sa2b114c.004@cactus.dk> Hi Shamil OK for me. /gustav >>> Salakhetdinov Shamil <mcp2004 at mail.ru> 07-06-2009 00:03 >>> Hi Gustav at all, OK, so we have to find a way how to present reports another way - as far as I can see Perpetuum your referred currently "just" returns the image of report - all pages at once. As for .pdf, .xls etc. exports they generate them on service side and return to the browser in popup window: http://www.perpetuumsoft.com/Demo/slviewer/DemoReportsService.svc/Rest/Export?id=ReportsList&format=pdf http://www.perpetuumsoft.com/Demo/slviewer/DemoReportsService.svc/Rest/Export?id=ReportsList&format=excel http://www.perpetuumsoft.com/Demo/slviewer/DemoReportsService.svc/Rest/Export?id=ReportsList&format=rtf http://www.perpetuumsoft.com/Demo/slviewer/DemoReportsService.svc/Rest/Export?id=ReportsList&format=html The new features for SilverLight 3.0 show that this technology is targeted first of all for dynamic media content than for (relatively static) reports - therefore let's try to use "right tools for the right job"? - and if developing Northwind.NET.Silverlight sample then use SilverLight features to present interactive forms, and to display reports - use something as Perpetuum does - in popup window - generated on server side .PDF... OK? Thank you. -- Shamil -----Original Message----- From: "Gustav Brock" <Gustav at cactus.dk> To: <dba-vb at databaseadvisors.com> Date: Sat, 06 Jun 2009 20:46:19 +0200 Subject: Re: [dba-VB] SCRUM/SilverLight 2.0 > Hi Shamil et al > > Well, sadly report(ing) is not mentioned with a single word in the news about Silverlight 3 beta: > > http://silverlight.net/getstarted/silverlight3/default.aspx#whatsnew > > so some other method must be worked out. > Streaming is an interesting idea but that will disable one of the true strengths of the ReportViewer: Interaction. > > /gustav > > > >>> Salakhetdinov Shamil <mcp2004 at mail.ru> 06-06-2009 20:30 >>> > Hi Gustav, > > Thank you for your feedback. I will put your articles' refs in my "immediate read list" (leaving tomorrow for Finland for a short two days holidays). Yes, that would be interesting to "cook" a SilverLight sample project in a (SCRUM) team. > > I have just published the results of my first SilverLight and ADO.NET Data Services exercize here on CodePlex - http://northwind.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=26600 > > As for reporting - I haven't checked yet the references you posted here and I have to leave now: > > - what about the idea of delivering reports using special service? (we talked about that a few times already) MS ReportViewer Control Reports's PDF can be generated on-the-fly directly in code and in memory and that memory stream can be broadcasted anywhere/consumed from anywhere AFAIK... > > But how to consume that memory stream in SilverLight is an open question here - AFAIK (am I wrong?) SilverLight can communicate with its hosting browser (.aspx) page - so I guess it (SilverLight) can somehow "command" its hosting browser web page to "talk to web server" to generate MS ReportViewer Report with certain params and then get this generated report presented outside of SilverLight area on the web page (and SilverLight will shrink while report is presented) - something like that? Sounds too complicated? Maybe SilverLight 3.0 will have new controls supporting MS ReporViewer Reports' presentation etc.? Maybe we'd better wait for that reporting features as SilverLight 3.0 is in beta now, and we still have quite some stuff to learn with SilverLight 2.0? I mean we can just make the part of sample project having forms and neglect reports until SilverLight 3.0 will be released? > > Thank you. > > -- > Shamil > > > -----Original Message----- > From: "Gustav Brock" <Gustav at cactus.dk> > To: <dba-vb at databaseadvisors.com> > Date: Sat, 06 Jun 2009 19:39:55 +0200 > Subject: Re: [dba-VB] SCRUM/SilverLight 2.0 > > > Hi Shamil > > > > Thanks for the demo, and yes, that's a very inspiring article and I read it with great interest. > > Also note in that article the not so exposed link to this article: > > > > http://msdn.microsoft.com/magazine/cc794260 > > > > which is a bit more basic and explains the "mechanics" of data bound Silverlight pages quite well including in detail what's the Cross-Domain Communications issue is about, why it makes sense, and how to deal with it. > > > > Given that Northwind is a not a very complicated application, I think it could be well suited for a transfer to Silverlight. However, one big question is unanswered to me: Reporting in Silverlight. No ReportViewer is available. So how to deal with that? Link to a special reporting server running ASP.NET? > > Not a bad idea but, of course, but a little more complicated. Here is (no) more info on the subject: > > > > http://csharp-snippets.blogspot.com/2009/04/report-viewer-for-Silverlight-2.html > > > > <quote> > > Currently as I see there is only one way of doing these reports. Create your reports definition files in Sql 2005 or 2008 and then use an aspx page to load them. A short reference for the code snippet. It is better to place this in the page_load event of the aspx page. > > </quote> > > > > The Perpetuum component mentioned carries a cost of $750 (not exactly what I am looking for): > > > > http://www.perpetuumsoft.com/Product.aspx?lang=en&pid=102 > > > > /gustav From accessd at shaw.ca Sun Jun 7 11:54:42 2009 From: accessd at shaw.ca (Jim Lawrence) Date: Sun, 7 Jun 2009 09:54:42 -0700 Subject: [dba-VB] Problem while publishing ADO.NET Data Service... In-Reply-To: <E1MCiHr-0000nr-00.mcp2004-mail-ru@f233.mail.ru> References: <E1MChsg-0001pr-00.mcp2004-mail-ru@f147.mail.ru> <E1MCiHr-0000nr-00.mcp2004-mail-ru@f233.mail.ru> Message-ID: <24FBF921E25D4277BCB79042D579EE6C@creativesystemdesigns.com> Hi Shamil: I have been watching this thread for a bit and was wondering, if proceeding along this direction is in fact tying the designers and users to a very proprietary desktop and set of BE services? Just to get much of the apps running requires the very latest patches and specific downloads, products that are not integrated into the default Windows OS. Only the most carefully managed office location would be able to even run this technology. >From my point of view the following is the reality: 1. On most sites I am just the contractor and not as the head IT guy. 2. Clients want to hire me not marry me. 3. Many sites using 'mixed' desktops (Windows/Mac/Linux). 4. The trend is towards 'portability' on cross-platform environments. On the other hand, this is all great fun technology and I have been very much enjoying this thread. Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Salakhetdinov Shamil Sent: Friday, June 05, 2009 3:53 PM To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Problem while publishing ADO.NET Data Service... Hi All, I have found a good sample to consume ADO.NET Data Services using SIlverLight 2.0 - here it's: Using Silverlight 2 With ADO.NET Data Services http://msdn.microsoft.com/en-us/magazine/dd569758.aspx I will try to make something like that live tomorrow - time to sleep here. Thank you. -- Shamil -----Original Message----- From: Salakhetdinov Shamil <mcp2004 at mail.ru> To: "Discussion concerning Visual Basic and related programming issues."<dba-vb at databaseadvisors.com> Date: Sat, 06 Jun 2009 02:27:22 +0400 Subject: Re: [dba-VB] Problem while publishing ADO.NET Data Service... > Hi All, > > I have got my SilverLight sample working: > > http://shamils-4.hosting.parking.ru/sl/NWNetSilverlight.aspx > > it uses hardcoded Shipper sample table's data. > > Then I tried to "feed" my Silverlight sample form by using the following ADO.NET Data Service: > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > with code like that (which works well in C# console app): > > using System; > using System.Collections.Generic; > > using System.Data.Services.Client; > using System.ComponentModel; > > namespace ResearchAndDevelopment.Console > { > public class Shippers > { > public class Shipper > { > public int ID { get; set; } > public string Name { get; set; } > public string Phone { get; set; } > public byte[] RowTimeStamp { get; set; } > } > > private static Uri dataServiceURI = > new Uri(@"http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.sv c"); > public static void ListShippers() > { > DataServiceContext ctx = > new DataServiceContext(dataServiceURI); > IEnumerable<Shipper> shippers = ctx.Execute<Shipper>( > new Uri("Shipper?$orderby=ID", UriKind.Relative)); > foreach (Shipper s in shippers) > { > System.Console.WriteLine("{0}. {1}", s.ID, s.Name); > } > } > } > } > > But I have found that SilverLight 2.0 doesn't support ADO.NET Data Services "out-of-the-box" as straightforward as the above sample code. This sample code doesn't even compile for SilverLight projects because those projects can't be used with .NET Framework 3.5. > > Therefore I'm currently stuck in feeding my SilverLight 2.0 sample with ADO.NET Data Services (.NET 3.5 SP1) ATOM feed. > > Do you have any samples' references explaining how to get ADO.NET Data Services Data into SilverLight 2.0 - the most straightforward way? > > Thank you. > > -- > Shamil > > > > -----Original Message----- > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > To: Mark Breen <marklbreen at gmail.com> > Date: Fri, 05 Jun 2009 15:26:41 +0400 > Subject: Re: [dba-VB] > Problem while publishing ADO.NET Data Service... > > > Hi Mark, > > > > I'd add/outline additionally to my previous answer on your posting that ADO.NET Data Services can be used in heavily distributed workflow scenarious, with support of distributed transactions etc.etc. Workflows are designed and programmed for such applications using Windows Workflow Foundation (WF). "Not data" services are developed using Windows Communication Foundation (WCF) (and ADO.NET data services are also driven by WCF services AFAIU)... > > > > -- > > Shamil > > > > -----Original Message----- > > From: Mark Breen <marklbreen at gmail.com> > > To: Salakhetdinov Shamil <mcp2004 at mail.ru>, "Discussion concerning Visual Basic and related programming issues." <dba-vb at databaseadvisors.com> > > Date: Fri, 5 Jun 2009 09:10:10 +0100 > > Subject: Re: [dba-VB] Problem while publishing ADO.NET Data Service... > > > > > Hello Shamil, > > > as you know, I have two servers here in Ireland, would you like to do your > > > diagnosis / development of future development work on one of my servers ? > > > If so, that would be no problem. > > > > > > I am trying to keep up and read some of the link you posted int he last few > > > days regarding ADO.NET Data Service. > > > > > > I am not clear yet about differences between Webservices and ADO.NET Data > > > Service , but I expect if I spend some time to google and read, I can become > > > clear. > > > > > > However, I have one question, do you think that this archetectire is > > > without doubt the way we will all connect to our data sources in the future? > > > How about performance, will it perform as good as current connections such > > > as ado and odbc over SQL Server Port? > > > > > > thanks > > > > > > Mark > > > > > > > > > > > > 2009/6/5 Salakhetdinov Shamil <mcp2004 at mail.ru> > > > > > > > > > > > Hi All, > > > > > > > > Just wanted to ask one more question on subject issue: I do not understand > > > > why IIS should be restarted to have one of its Web Site's getting a new > > > > setting activated? I mean why it's not enough to stop and start this web > > > > site/web application? What am I missing? > > > > > > > > You can see by goodling how many developers got confused by this > > > > "simple"(?) issue - and even stackoverflow doesn't have a clear answer, or > > > > am I missing it? > > > > > > > > Thank you. > > > > > > > > -- > > > > Shamil > > > > > > > > -----Original Message----- > > > > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > > > > To: "Discussion concerning Visual Basic and related programming issues."< > > > > dba-vb at databaseadvisors.com> > > > > Date: Fri, 05 Jun 2009 02:48:38 +0400 > > > > Subject: Re: [dba-VB] > > > > Problem while publishing ADO.NET Data Service... > > > > > > > > > Hi All, > > > > > > > > > > I have got found one solution for the subject issue: > > > > > > > > > > Hosted ADO.NET Data Services & Silverlight > > > > > > > > > http://dvanderboom.wordpress.com/2009/01/07/hosted-adonet-data-services-silv erlight/ > > > > > > > > > > But it doesn't look satisfactory for general case, and it doesn't work > > > > yet for my site (waiting for ISP support with IIS server restart - maybe > > > > that helps as web site restarting doesn't work) - I have got stuck here: > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > > > > > > > > > with a message: > > > > > <<< > > > > > IIS specified authentication schemes 'Basic, Anonymous', but the binding > > > > only supports specification of exactly one authentication scheme. Valid > > > > authentication schemes are Digest, Negotiate, NTLM, Basic, or Anonymous. > > > > Change the IIS settings so that only a single authentication scheme is used. > > > > > >>> > > > > > > > > > > and as you can see SOAP and WCF sample services do work OK here: > > > > > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/SOAPService.asmx > > > > > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/WCFService.svc > > > > > > > > > > If you know general solution for subject issue that woudl be very > > > > helpful. > > > > > > > > > > Thank you. > > > > > > > > > > -- > > > > > Shamil > > > > > > > > > > -----Original Message----- > > > > > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > > > > > To: "Discussion concerning Visual Basic and related programming issues."< > > > > dba-vb at databaseadvisors.com> > > > > > Date: Thu, 04 Jun 2009 23:06:18 +0400 > > > > > Subject: Re: [dba-VB] > > > > > Problem while publishing ADO.NET Data Service... > > > > > > > > > > > Hi All, > > > > > > > > > > > > I have changed location of NorthwindNety Data Service to: > > > > > > > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > > > > > > > > > > > still no solution for > > > > > > > > > > > > This collection already contains an address with scheme http. There > > > > can be at most one address per scheme in this collection. > > > > > > Parameter name: item > > > > > > > > > > > > :( > > > > > > > > > > > > -- > > > > > > Shamil > > > > > > > > > > > ><<< aaa >>> > > > > > _______________________________________________ > > > > > dba-VB mailing list > > > > > dba-VB at databaseadvisors.com > > > > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > > > > http://www.databaseadvisors.com > > > > > > > > > > > > > _______________________________________________ > > > > dba-VB mailing list > > > > dba-VB at databaseadvisors.com > > > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > > > http://www.databaseadvisors.com > > > > > > > > > > > > > > > > > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > > > _______________________________________________ > 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 raibeart at gmail.com Mon Jun 8 10:26:03 2009 From: raibeart at gmail.com (Robert Stewart) Date: Mon, 08 Jun 2009 10:26:03 -0500 Subject: [dba-VB] Problem while publishing ADO.NET Data Service... Message-ID: <4a2d2dad.02c3f10a.7bf4.1acb@mx.google.com> To butt in here... A Silverlight program requires the Silverlight add in. There is one to run under Linux also and one being developed for Mac. Having said that, I have NEVER seen a "mixed environment" in any corporate office in my life as an IT person. ALL of the companies that I have dealt with are in Windows OS. And, isn't Silverlight trying to do the same thing that Flash has done, go across platforms? To be blunt, I have made my living using Microsoft software. If it was not good, then the Open source world would be dominate. They are not. I think you get what you pay for with open source. Although, some people feel that you do not get what you pay for with MS. Personally, if someone wants something to run on Linux, I send them looking for someone else to do it. I might consider doing it if Silverlight will do the cross-platform thing. Otherwise, I am an MS kind of guy. Remember that we are working with Beta software in Silverlight 3.0. And, here at home, I am also working with Windows 7 and VS 2010. One of which is RC and the other beta. And, I am running them on a VM. So, I really do not care what they need to run. It can be wiped out and done over in a hour or so. The point is that I am getting ahead of the learning curve on all of the changes that are in the next release. And at the same time, creating a piece of software that I will be "renting" under a software as a service plan. My mantra is do it right the first time, customize it to the clients requirements and leave them to it. I had one customer that went 8 years before calling me to change their MS Access program because of the way I did it the first time. They only called because they need to add new functionality. That is the way it should always be. At 12:00 PM 6/7/2009, you wrote: >Date: Sun, 7 Jun 2009 09:54:42 -0700 >From: "Jim Lawrence" <accessd at shaw.ca> >Subject: Re: [dba-VB] Problem while publishing ADO.NET Data Service... >To: "'Salakhetdinov Shamil'" <mcp2004 at mail.ru>, "'Discussion > concerning Visual Basic and related programming issues.'" > <dba-vb at databaseadvisors.com> >Message-ID: > <24FBF921E25D4277BCB79042D579EE6C at creativesystemdesigns.com> >Content-Type: text/plain; charset="us-ascii" > >Hi Shamil: > >I have been watching this thread for a bit and was wondering, if proceeding >along this direction is in fact tying the designers and users to a very >proprietary desktop and set of BE services? > >Just to get much of the apps running requires the very latest patches and >specific downloads, products that are not integrated into the default >Windows OS. Only the most carefully managed office location would be able to >even run this technology. > > >From my point of view the following is the reality: >1. On most sites I am just the contractor and not as the head IT guy. >2. Clients want to hire me not marry me. >3. Many sites using 'mixed' desktops (Windows/Mac/Linux). >4. The trend is towards 'portability' on cross-platform environments. > >On the other hand, this is all great fun technology and I have been very >much enjoying this thread. > >Jim From cfoust at infostatsystems.com Mon Jun 8 10:28:15 2009 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 8 Jun 2009 08:28:15 -0700 Subject: [dba-VB] New article from Charlotte and myself In-Reply-To: <2FF08D3F779A45A1AF16322D6BEE0EAD@SusanOne> References: <8A3DB7DEC94740D797DD5597B4CEC864@SusanOne><E1MCz5U-0000VQ-00.mcp2004-mail-ru@f251.mail.ru> <2FF08D3F779A45A1AF16322D6BEE0EAD@SusanOne> Message-ID: <F55048AF7E974F429BB24597D7355EEAB87775@INFOSERVER04.infostat.local> Just who are you calling an expert, Susan?? I make it up as I go along! LOL Seriously, I work in an environment where we use VS Pro and 3rd party controls that we then customize to the look and behavior we want as standard. Working directly with the vanilla controls is a good exercise for me and a challenge as well. These aren't paint by numbers articles, they're more inducements to try it out by suggesting stuff that is somewhat familiar to an Access developer. Charlotte -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Saturday, June 06, 2009 3:11 PM To: Salakhetdinov Shamil; Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] New article from Charlotte and myself Thank you Shamil -- I'm glad you liked it! Charlotte is teaching me .NET -- best way for me to learn I think is to just plunge in and let an expert say, "No, no, no..." ;) Susan H. > Hi Susan, > > Thank you for the link. > That's a good article. > I'd note one of your outstanding abilities - an ability to "cultivate > the developed ground" yielding very useful output... _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From ssharkins at gmail.com Mon Jun 8 10:41:43 2009 From: ssharkins at gmail.com (Susan Harkins) Date: Mon, 8 Jun 2009 11:41:43 -0400 Subject: [dba-VB] New article from Charlotte and myself References: <8A3DB7DEC94740D797DD5597B4CEC864@SusanOne><E1MCz5U-0000VQ-00.mcp2004-mail-ru@f251.mail.ru><2FF08D3F779A45A1AF16322D6BEE0EAD@SusanOne> <F55048AF7E974F429BB24597D7355EEAB87775@INFOSERVER04.infostat.local> Message-ID: <8EFA58891A294160839C910AF71A9118@SusanOne> Um... folks, Charlotte's modesty is becoming and something I've learned to expect from Charlotte, but don't let her kid you -- I pride myself on learning the nitty gritty of "using" new technologies, and I really would be struggling without her. Stayed tuned for our next article on typed datasets! I'm so excited... and I feel like dancing... um... Okay, I'm a liar... I'm clueless. Susan H. > Just who are you calling an expert, Susan?? I make it up as I go along! > LOL > > Seriously, I work in an environment where we use VS Pro and 3rd party > controls that we then customize to the look and behavior we want as > standard. Working directly with the vanilla controls is a good exercise > for me and a challenge as well. These aren't paint by numbers articles, > they're more inducements to try it out by suggesting stuff that is > somewhat familiar to an Access developer. From accessd at shaw.ca Mon Jun 8 12:33:59 2009 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 8 Jun 2009 10:33:59 -0700 Subject: [dba-VB] Problem while publishing ADO.NET Data Service... In-Reply-To: <4a2d2dad.02c3f10a.7bf4.1acb@mx.google.com> References: <4a2d2dad.02c3f10a.7bf4.1acb@mx.google.com> Message-ID: <EF8B0B115A2E46E489C38B5D9FF81CE4@creativesystemdesigns.com> Hi Robert: You have not been around much. ;-) I work with some of the largest franchisees (McDonalds, Sony, Staples, Wal-Mart etc) and with virtually all the local banks (BNS, CIBC, RBC, BMO, HSBC etc). Desktops may be all Windows but step away from the front counters for a moment and there could be any type of OSs in the back office and at corporate head-quarters. Managers also like their perks and in some case that mean they have Macs. When it comes to BE servers the mix is 30-70. These servers are not cheap as they are top end. (Dell, HP and IBM) Even MS uses(d) Linux networks. Three years ago even Microsoft was using a large Linux site in San Francisco to host their Hot-mail. I worked for years with our local provincial government and all their big databases were in Oracle and other miscellaneous DBs on Linux... In fact most big systems were Linux based. I worked for Maps-BC through a number of departments and their desktop systems were mostly Linux running Arc-Info and InterGraph mapping software... 5 floors of computers. I supported one of the very few MS SQL systems (and wrote all the software for the system) but just could not penetrate the system culture and get more similar systems adopted... believe me, I tried. Most websites, I have run across are hosted on Linux boxes... even our own DBA mail. I have been slowly seeing desktops with various versions of Linux popping up (after all this is a university town) but it is not a flood. I will be honest with you in that I do not care which systems I work with. All I am interested in is consistency, reliability and hopefully cross-platform support... Your experiences are obviously different than mine. Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Robert Stewart Sent: Monday, June 08, 2009 8:26 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Problem while publishing ADO.NET Data Service... To butt in here... A Silverlight program requires the Silverlight add in. There is one to run under Linux also and one being developed for Mac. Having said that, I have NEVER seen a "mixed environment" in any corporate office in my life as an IT person. ALL of the companies that I have dealt with are in Windows OS. And, isn't Silverlight trying to do the same thing that Flash has done, go across platforms? To be blunt, I have made my living using Microsoft software. If it was not good, then the Open source world would be dominate. They are not. I think you get what you pay for with open source. Although, some people feel that you do not get what you pay for with MS. Personally, if someone wants something to run on Linux, I send them looking for someone else to do it. I might consider doing it if Silverlight will do the cross-platform thing. Otherwise, I am an MS kind of guy. Remember that we are working with Beta software in Silverlight 3.0. And, here at home, I am also working with Windows 7 and VS 2010. One of which is RC and the other beta. And, I am running them on a VM. So, I really do not care what they need to run. It can be wiped out and done over in a hour or so. The point is that I am getting ahead of the learning curve on all of the changes that are in the next release. And at the same time, creating a piece of software that I will be "renting" under a software as a service plan. My mantra is do it right the first time, customize it to the clients requirements and leave them to it. I had one customer that went 8 years before calling me to change their MS Access program because of the way I did it the first time. They only called because they need to add new functionality. That is the way it should always be. At 12:00 PM 6/7/2009, you wrote: >Date: Sun, 7 Jun 2009 09:54:42 -0700 >From: "Jim Lawrence" <accessd at shaw.ca> >Subject: Re: [dba-VB] Problem while publishing ADO.NET Data Service... >To: "'Salakhetdinov Shamil'" <mcp2004 at mail.ru>, "'Discussion > concerning Visual Basic and related programming issues.'" > <dba-vb at databaseadvisors.com> >Message-ID: > <24FBF921E25D4277BCB79042D579EE6C at creativesystemdesigns.com> >Content-Type: text/plain; charset="us-ascii" > >Hi Shamil: > >I have been watching this thread for a bit and was wondering, if proceeding >along this direction is in fact tying the designers and users to a very >proprietary desktop and set of BE services? > >Just to get much of the apps running requires the very latest patches and >specific downloads, products that are not integrated into the default >Windows OS. Only the most carefully managed office location would be able to >even run this technology. > > >From my point of view the following is the reality: >1. On most sites I am just the contractor and not as the head IT guy. >2. Clients want to hire me not marry me. >3. Many sites using 'mixed' desktops (Windows/Mac/Linux). >4. The trend is towards 'portability' on cross-platform environments. > >On the other hand, this is all great fun technology and I have been very >much enjoying this thread. > >Jim _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From fuller.artful at gmail.com Mon Jun 8 13:58:31 2009 From: fuller.artful at gmail.com (Arthur Fuller) Date: Mon, 8 Jun 2009 14:58:31 -0400 Subject: [dba-VB] New article from Charlotte and myself In-Reply-To: <8EFA58891A294160839C910AF71A9118@SusanOne> References: <8A3DB7DEC94740D797DD5597B4CEC864@SusanOne> <E1MCz5U-0000VQ-00.mcp2004-mail-ru@f251.mail.ru> <2FF08D3F779A45A1AF16322D6BEE0EAD@SusanOne> <F55048AF7E974F429BB24597D7355EEAB87775@INFOSERVER04.infostat.local> <8EFA58891A294160839C910AF71A9118@SusanOne> Message-ID: <29f585dd0906081158l3a923be6t9cf19ddd655bd65f@mail.gmail.com> No Susan, you're clueful, and very willing to jump new hurdles as they occur to you. A. On Mon, Jun 8, 2009 at 11:41 AM, Susan Harkins <ssharkins at gmail.com> wrote: > Um... folks, Charlotte's modesty is becoming and something I've learned to > expect from Charlotte, but don't let her kid you -- I pride myself on > learning the nitty gritty of "using" new technologies, and I really would > be > struggling without her. > > Stayed tuned for our next article on typed datasets! I'm so excited... and > I > feel like dancing... um... Okay, I'm a liar... I'm clueless. > > Susan H. > From ssharkins at gmail.com Mon Jun 8 15:51:31 2009 From: ssharkins at gmail.com (Susan Harkins) Date: Mon, 8 Jun 2009 16:51:31 -0400 Subject: [dba-VB] New article from Charlotte and myself References: <8A3DB7DEC94740D797DD5597B4CEC864@SusanOne><E1MCz5U-0000VQ-00.mcp2004-mail-ru@f251.mail.ru><2FF08D3F779A45A1AF16322D6BEE0EAD@SusanOne><F55048AF7E974F429BB24597D7355EEAB87775@INFOSERVER04.infostat.local><8EFA58891A294160839C910AF71A9118@SusanOne> <29f585dd0906081158l3a923be6t9cf19ddd655bd65f@mail.gmail.com> Message-ID: <997AAFF0A8F848B5973ADAAF1488B7C5@SusanOne> > No Susan, you're clueful, and very willing to jump new hurdles as they > occur > to you. =====Usually, but not with .NET -- I really resisted, hoping I'd be doing something else by now. That hasn't happened so .NET is impossible to avoid. Susan H. From Gustav at cactus.dk Mon Jun 8 16:05:14 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 08 Jun 2009 23:05:14 +0200 Subject: [dba-VB] New article from Charlotte and myself Message-ID: <sa2d993e.027@cactus.dk> Hi Susan Don't worry - .Net will keep you young! /gustav >>> ssharkins at gmail.com 08-06-2009 22:51 >>> > No Susan, you're clueful, and very willing to jump new hurdles as they occur to you. =====Usually, but not with .NET -- I really resisted, hoping I'd be doing something else by now. That hasn't happened so .NET is impossible to avoid. Susan H. From ssharkins at gmail.com Mon Jun 8 16:09:58 2009 From: ssharkins at gmail.com (Susan Harkins) Date: Mon, 8 Jun 2009 17:09:58 -0400 Subject: [dba-VB] New article from Charlotte and myself References: <sa2d993e.027@cactus.dk> Message-ID: <57C2E3CFC3C04846BF466668E76F54DB@SusanOne> I need something -- yesterday I was trying to work out a knitting pattern, and I swear, I was near tears because everytime I was two stitches off... I finally found it, simple subtraction error that I made over and over. It was terribly frustrating -- I understand now how first graders must feel. :( Susan H. > > Don't worry - .Net will keep you young! > > /gustav From max.wanadoo at gmail.com Mon Jun 8 16:10:56 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 8 Jun 2009 22:10:56 +0100 Subject: [dba-VB] New article from Charlotte and myself In-Reply-To: <sa2d993e.027@cactus.dk> References: <sa2d993e.027@cactus.dk> Message-ID: <4a2d7e62.0a1ad00a.6306.43d2@mx.google.com> Sign me up.....sign me up...how young?? Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 08 June 2009 22:05 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] New article from Charlotte and myself Hi Susan Don't worry - .Net will keep you young! /gustav >>> ssharkins at gmail.com 08-06-2009 22:51 >>> > No Susan, you're clueful, and very willing to jump new hurdles as they occur to you. =====Usually, but not with .NET -- I really resisted, hoping I'd be doing something else by now. That hasn't happened so .NET is impossible to avoid. Susan H. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From max.wanadoo at gmail.com Mon Jun 8 16:12:59 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 8 Jun 2009 22:12:59 +0100 Subject: [dba-VB] New article from Charlotte and myself In-Reply-To: <57C2E3CFC3C04846BF466668E76F54DB@SusanOne> References: <sa2d993e.027@cactus.dk> <57C2E3CFC3C04846BF466668E76F54DB@SusanOne> Message-ID: <4a2d7ede.0a04d00a.1acb.1c87@mx.google.com> Been there...know exactly what you mean. Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: 08 June 2009 22:10 To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] New article from Charlotte and myself I need something -- yesterday I was trying to work out a knitting pattern, and I swear, I was near tears because everytime I was two stitches off... I finally found it, simple subtraction error that I made over and over. It was terribly frustrating -- I understand now how first graders must feel. :( Susan H. > > Don't worry - .Net will keep you young! > > /gustav _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From Johncliviger at aol.com Tue Jun 9 03:27:37 2009 From: Johncliviger at aol.com (Johncliviger at aol.com) Date: Tue, 9 Jun 2009 04:27:37 EDT Subject: [dba-VB] New article from Charlotte and myself Message-ID: <d60.4e558c6e.375f76f9@aol.com> Steady on Max Not that young! johnc From max.wanadoo at gmail.com Tue Jun 9 05:31:28 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Tue, 9 Jun 2009 11:31:28 +0100 Subject: [dba-VB] New article from Charlotte and myself In-Reply-To: <d60.4e558c6e.375f76f9@aol.com> References: <d60.4e558c6e.375f76f9@aol.com> Message-ID: <cda8f54e0906090331k444ee1ceh37b737dd2cb94bda@mail.gmail.com> You misunderstand John, I was referring to dropped stitches. I will have you know that I have knitted a 4-needle cable stitch jumper for myself. There! Better that if you can.... max On 6/9/09, Johncliviger at aol.com <Johncliviger at aol.com> wrote: > > Steady on Max Not that young! > > johnc > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From ssharkins at gmail.com Tue Jun 9 07:51:57 2009 From: ssharkins at gmail.com (Susan Harkins) Date: Tue, 9 Jun 2009 08:51:57 -0400 Subject: [dba-VB] New article from Charlotte and myself References: <d60.4e558c6e.375f76f9@aol.com> <cda8f54e0906090331k444ee1ceh37b737dd2cb94bda@mail.gmail.com> Message-ID: <C0835D11779A4A0DBF69760BB4913274@SusanOne> > You misunderstand John, I was referring to dropped stitches. I will have > you > know that I have knitted a 4-needle cable stitch jumper for myself. =========You're a better woman than me Max! ;) Susan H. From max.wanadoo at gmail.com Tue Jun 9 14:08:31 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Tue, 9 Jun 2009 20:08:31 +0100 Subject: [dba-VB] New article from Charlotte and myself In-Reply-To: <C0835D11779A4A0DBF69760BB4913274@SusanOne> References: <d60.4e558c6e.375f76f9@aol.com> <cda8f54e0906090331k444ee1ceh37b737dd2cb94bda@mail.gmail.com> <C0835D11779A4A0DBF69760BB4913274@SusanOne> Message-ID: <4a2eb332.1c07d00a.3ca9.0892@mx.google.com> Ha ha! And I bet you won't believe me when I said I was in my early 20s, sitting on a bed in the Army billet with all the other guys jeering and poking fun. When it started to take shape they stopped jeering and towards the end I had another 3 guys knitting as well. True... Max Ps. I am a better man than you will ever be.... -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: 09 June 2009 13:52 To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] New article from Charlotte and myself > You misunderstand John, I was referring to dropped stitches. I will have > you > know that I have knitted a 4-needle cable stitch jumper for myself. =========You're a better woman than me Max! ;) Susan H. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From mcp2004 at mail.ru Tue Jun 9 15:42:58 2009 From: mcp2004 at mail.ru (Salakhetdinov Shamil) Date: Wed, 10 Jun 2009 00:42:58 +0400 Subject: [dba-VB] =?koi8-r?b?UHJvYmxlbSB3aGlsZSBwdWJsaXNoaW5nIEFETy5ORVQg?= =?koi8-r?b?RGF0YSBTZXJ2aWNlLi4u?= In-Reply-To: <24FBF921E25D4277BCB79042D579EE6C@creativesystemdesigns.com> References: <24FBF921E25D4277BCB79042D579EE6C@creativesystemdesigns.com> Message-ID: <E1ME89q-0007ZJ-00.mcp2004-mail-ru@f222.mail.ru> Hi Jim, I'm working for money here - the main purpose for me to learn new MS technologies is to get a competetive advantage, not fun... As far as I see ADO.NET Entity Framework and ADO.NET Data Services are becoming a kind of "ODBC for 2010ies" - this is an emerging technology but it's getting all the main database technology players embraced already: http://msdn.microsoft.com/en-us/data/dd363565.aspx And Silverlight is targeted not only for Windows but for Mac and Linux also... And I'm not going "to marry my customers to me" because of using MS technologies - the fact is that there are a lot of competing providers in my area of software development... As for Oracle, PHP, Linux - I have never had opportunity to work using them as it wasn't requested by my customers but a couple of times I have had opportunity to directly compete with other companies who used Oracle for the same customer - both times they were "beaten" by my and my colleagues services, and our "forces" were usually several times less - one time it was 2 developers/consultants against a company having stuff of 100+ developers/consultants... MS tools are becoming really mature these days, and if properly applied they allow to "make wonders" even on moderate hardware... > 4. The trend is towards 'portability' on cross-platform environments. In my opinion, nowadays customers first of all need working software ASAP - and MS development tools help to satisfy those needs/market demands. And I'm not trying to embrace the whole software development market - I mean custom software development - business applicationx for small-/middle-size businesses - here MS tools fit very well IMO - just IMO... Thank you. -- Shamil -----Original Message----- From: "Jim Lawrence" <accessd at shaw.ca> To: "'Salakhetdinov Shamil'" <mcp2004 at mail.ru>,"'Discussion concerning Visual Basic and related programming issues.'" <dba-vb at databaseadvisors.com> Date: Sun, 7 Jun 2009 09:54:42 -0700 Subject: RE: [dba-VB] Problem while publishing ADO.NET Data Service... > Hi Shamil: > > I have been watching this thread for a bit and was wondering, if proceeding > along this direction is in fact tying the designers and users to a very > proprietary desktop and set of BE services? > > Just to get much of the apps running requires the very latest patches and > specific downloads, products that are not integrated into the default > Windows OS. Only the most carefully managed office location would be able to > even run this technology. > > From my point of view the following is the reality: > 1. On most sites I am just the contractor and not as the head IT guy. > 2. Clients want to hire me not marry me. > 3. Many sites using 'mixed' desktops (Windows/Mac/Linux). > 4. The trend is towards 'portability' on cross-platform environments. > > On the other hand, this is all great fun technology and I have been very > much enjoying this thread. > > Jim > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Salakhetdinov > Shamil > Sent: Friday, June 05, 2009 3:53 PM > To: Discussion concerning Visual Basic and related programming issues. > Subject: Re: [dba-VB] Problem while publishing ADO.NET Data Service... > > Hi All, > > I have found a good sample to consume ADO.NET Data Services using > SIlverLight 2.0 - here it's: > > Using Silverlight 2 With ADO.NET Data Services > > http://msdn.microsoft.com/en-us/magazine/dd569758.aspx > > I will try to make something like that live tomorrow - time to sleep here. > > Thank you. > > -- > Shamil > > -----Original Message----- > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > To: "Discussion concerning Visual Basic and related programming > issues."<dba-vb at databaseadvisors.com> > Date: Sat, 06 Jun 2009 02:27:22 +0400 > Subject: Re: [dba-VB] > Problem while publishing ADO.NET Data Service... > > > Hi All, > > > > I have got my SilverLight sample working: > > > > http://shamils-4.hosting.parking.ru/sl/NWNetSilverlight.aspx > > > > it uses hardcoded Shipper sample table's data. > > > > Then I tried to "feed" my Silverlight sample form by using the following > ADO.NET Data Service: > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > > > with code like that (which works well in C# console app): > > > > using System; > > using System.Collections.Generic; > > > > using System.Data.Services.Client; > > using System.ComponentModel; > > > > namespace ResearchAndDevelopment.Console > > { > > public class Shippers > > { > > public class Shipper > > { > > public int ID { get; set; } > > public string Name { get; set; } > > public string Phone { get; set; } > > public byte[] RowTimeStamp { get; set; } > > } > > > > private static Uri dataServiceURI = > > new > Uri(@"http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.sv > c"); > > public static void ListShippers() > > { > > DataServiceContext ctx = > > new DataServiceContext(dataServiceURI); > > IEnumerable<Shipper> shippers = ctx.Execute<Shipper>( > > new Uri("Shipper?$orderby=ID", UriKind.Relative)); > > foreach (Shipper s in shippers) > > { > > System.Console.WriteLine("{0}. {1}", s.ID, s.Name); > > } > > } > > } > > } > > > > But I have found that SilverLight 2.0 doesn't support ADO.NET Data > Services "out-of-the-box" as straightforward as the above sample code. This > sample code doesn't even compile for SilverLight projects because those > projects can't be used with .NET Framework 3.5. > > > > Therefore I'm currently stuck in feeding my SilverLight 2.0 sample with > ADO.NET Data Services (.NET 3.5 SP1) ATOM feed. > > > > Do you have any samples' references explaining how to get ADO.NET Data > Services Data into SilverLight 2.0 - the most straightforward way? > > > > Thank you. > > > > -- > > Shamil > > > > > > > > -----Original Message----- > > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > > To: Mark Breen <marklbreen at gmail.com> > > Date: Fri, 05 Jun 2009 15:26:41 +0400 > > Subject: Re: [dba-VB] > > Problem while publishing ADO.NET Data Service... > > > > > Hi Mark, > > > > > > I'd add/outline additionally to my previous answer on your posting that > ADO.NET Data Services can be used in heavily distributed workflow > scenarious, with support of distributed transactions etc.etc. Workflows are > designed and programmed for such applications using Windows Workflow > Foundation (WF). "Not data" services are developed using Windows > Communication Foundation (WCF) (and ADO.NET data services are also driven by > WCF services AFAIU)... > > > > > > -- > > > Shamil > > > > > > -----Original Message----- > > > From: Mark Breen <marklbreen at gmail.com> > > > To: Salakhetdinov Shamil <mcp2004 at mail.ru>, "Discussion concerning > Visual Basic and related programming issues." <dba-vb at databaseadvisors.com> > > > Date: Fri, 5 Jun 2009 09:10:10 +0100 > > > Subject: Re: [dba-VB] Problem while publishing ADO.NET Data Service... > > > > > > > Hello Shamil, > > > > as you know, I have two servers here in Ireland, would you like to do > your > > > > diagnosis / development of future development work on one of my > servers ? > > > > If so, that would be no problem. > > > > > > > > I am trying to keep up and read some of the link you posted int he > last few > > > > days regarding ADO.NET Data Service. > > > > > > > > I am not clear yet about differences between Webservices and ADO.NET > Data > > > > Service , but I expect if I spend some time to google and read, I can > become > > > > clear. > > > > > > > > However, I have one question, do you think that this archetectire is > > > > without doubt the way we will all connect to our data sources in the > future? > > > > How about performance, will it perform as good as current connections > such > > > > as ado and odbc over SQL Server Port? > > > > > > > > thanks > > > > > > > > Mark > > > > > > > > > > > > > > > > 2009/6/5 Salakhetdinov Shamil <mcp2004 at mail.ru> > > > > > > > > > > > > > > Hi All, > > > > > > > > > > Just wanted to ask one more question on subject issue: I do not > understand > > > > > why IIS should be restarted to have one of its Web Site's getting a > new > > > > > setting activated? I mean why it's not enough to stop and start this > web > > > > > site/web application? What am I missing? > > > > > > > > > > You can see by goodling how many developers got confused by this > > > > > "simple"(?) issue - and even stackoverflow doesn't have a clear > answer, or > > > > > am I missing it? > > > > > > > > > > Thank you. > > > > > > > > > > -- > > > > > Shamil > > > > > > > > > > -----Original Message----- > > > > > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > > > > > To: "Discussion concerning Visual Basic and related programming > issues."< > > > > > dba-vb at databaseadvisors.com> > > > > > Date: Fri, 05 Jun 2009 02:48:38 +0400 > > > > > Subject: Re: [dba-VB] > > > > > Problem while publishing ADO.NET Data Service... > > > > > > > > > > > Hi All, > > > > > > > > > > > > I have got found one solution for the subject issue: > > > > > > > > > > > > Hosted ADO.NET Data Services & Silverlight > > > > > > > > > > > > http://dvanderboom.wordpress.com/2009/01/07/hosted-adonet-data-services-silv > erlight/ > > > > > > > > > > > > But it doesn't look satisfactory for general case, and it doesn't > work > > > > > yet for my site (waiting for ISP support with IIS server restart - > maybe > > > > > that helps as web site restarting doesn't work) - I have got stuck > here: > > > > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > > > > > > > > > > > with a message: > > > > > > <<< > > > > > > IIS specified authentication schemes 'Basic, Anonymous', but the > binding > > > > > only supports specification of exactly one authentication scheme. > Valid > > > > > authentication schemes are Digest, Negotiate, NTLM, Basic, or > Anonymous. > > > > > Change the IIS settings so that only a single authentication scheme > is used. > > > > > > >>> > > > > > > > > > > > > and as you can see SOAP and WCF sample services do work OK here: > > > > > > > > > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/SOAPService.asmx > > > > > > > > > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/WCFService.svc > > > > > > > > > > > > If you know general solution for subject issue that woudl be very > > > > > helpful. > > > > > > > > > > > > Thank you. > > > > > > > > > > > > -- > > > > > > Shamil > > > > > > > > > > > > -----Original Message----- > > > > > > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > > > > > > To: "Discussion concerning Visual Basic and related programming > issues."< > > > > > dba-vb at databaseadvisors.com> > > > > > > Date: Thu, 04 Jun 2009 23:06:18 +0400 > > > > > > Subject: Re: [dba-VB] > > > > > > Problem while publishing ADO.NET Data Service... > > > > > > > > > > > > > Hi All, > > > > > > > > > > > > > > I have changed location of NorthwindNety Data Service to: > > > > > > > > > > > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > > > > > > > > > > > > > still no solution for > > > > > > > > > > > > > > This collection already contains an address with scheme http. > There > > > > > can be at most one address per scheme in this collection. > > > > > > > Parameter name: item > > > > > > > > > > > > > > :( > > > > > > > > > > > > > > -- > > > > > > > Shamil > > > > > > > > > > > > > ><<< aaa >>> > > > > > > _______________________________________________ > > > > > > dba-VB mailing list > > > > > > dba-VB at databaseadvisors.com > > > > > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > > > > > http://www.databaseadvisors.com > > > > > > > > > > > > > > > > _______________________________________________ > > > > > dba-VB mailing list > > > > > dba-VB at databaseadvisors.com > > > > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > > > > http://www.databaseadvisors.com > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > dba-VB mailing list > > > dba-VB at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > > http://www.databaseadvisors.com > > > > > > > _______________________________________________ > > 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 Johncliviger at aol.com Wed Jun 10 03:11:41 2009 From: Johncliviger at aol.com (Johncliviger at aol.com) Date: Wed, 10 Jun 2009 04:11:41 EDT Subject: [dba-VB] New article from Charlotte and myself Message-ID: <bde.48755e95.3760c4bd@aol.com> I must have lost the point somewhere Max. I didn't realise that Charlotte & Sue's new article was on knitting! You could develop a whole new nomenclature eg Imports System.Wool.Needles.Knitting or System.Needles.Haystack.Lost have fun johnc From max.wanadoo at gmail.com Wed Jun 10 10:14:57 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Wed, 10 Jun 2009 16:14:57 +0100 Subject: [dba-VB] New article from Charlotte and myself In-Reply-To: <bde.48755e95.3760c4bd@aol.com> References: <bde.48755e95.3760c4bd@aol.com> Message-ID: <4a2fcdf6.0506d00a.4f5a.648f@mx.google.com> Ha! very good. Needed a smile today. It was definitely a "stitch in time". Thank you Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Johncliviger at aol.com Sent: 10 June 2009 09:12 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] New article from Charlotte and myself I must have lost the point somewhere Max. I didn't realise that Charlotte & Sue's new article was on knitting! You could develop a whole new nomenclature eg Imports System.Wool.Needles.Knitting or System.Needles.Haystack.Lost have fun johnc _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From mcp2004 at mail.ru Wed Jun 10 10:59:58 2009 From: mcp2004 at mail.ru (Salakhetdinov Shamil) Date: Wed, 10 Jun 2009 19:59:58 +0400 Subject: [dba-VB] =?koi8-r?b?RllJOiBSZWNvbW1lbmRlZCB3YXRjaGluZw==?= Message-ID: <E1MEQDW-0001zZ-00.mcp2004-mail-ru@f141.mail.ru> Hi All, Here are a few good presentations I liked to watch and I wanted to share with you: <<< Responsive design "Purpose and intent are just as important as skill in effective software development. Skill allows you to deliver value in difficult technical circumstances. Clear purpose and positive intent allow you to deliver value in difficult social and business circumstances. Kent Beck shares his design technique which involves both intent and a small set of strategies he uses when designing. " http://www.infoq.com/presentations/responsive-design >>> <<< Eric Nelson on VS 2010 and .NET 4.0 In this interview Eric Nelson talks about what's coming in VS 2010, the C# - VB.NET convergence, the introduction of Parallel as a library, and Azure cloud computing. http://www.infoq.com/interviews/VS2010-Eric-Nelson >>> <<< AtomServer: The Power of Publishing for Data Distribution In this session recorded at QCon SF 2008, Chris Berry & Bryon Jacob presented the Atom Syndication Format, the Atom Publishing Protocol, the Atom Categories, the Atom Stores, the AtomServer and how they can be used by giving a concrete example. http://www.infoq.com/presentations/Atom-Server-Berry-Jacob >>> Thank you. -- Shamil From accessd at shaw.ca Wed Jun 10 13:10:29 2009 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 10 Jun 2009 11:10:29 -0700 Subject: [dba-VB] Problem while publishing ADO.NET Data Service... In-Reply-To: <E1ME89q-0007ZJ-00.mcp2004-mail-ru@f222.mail.ru> References: <24FBF921E25D4277BCB79042D579EE6C@creativesystemdesigns.com> <E1ME89q-0007ZJ-00.mcp2004-mail-ru@f222.mail.ru> Message-ID: <C2C3BDA2B6534781AC4663676123D509@creativesystemdesigns.com> Hi Shamil: I have never had an issue with ADO.Net technology... but it will be a while before I can claim professional competence in the product but I believe it is going the right way... that is browser based. My only apprehension is not being able to deliver a web-based service because a client or completely unknown customer is either using the 'wrong' OS, browser to deliver/receive services or is simply not patch up enough. I am starting to see a number of web sites that have been 'blocked' because they are not using the right version of browser IE7 and not IE8 or FF or Chrome etc... or do not have the appropriate technology installed on their desktop. I have been unable to get some of the Silver-light based code running on some of my systems even though I have the latest version of Framework and Silver installed. XP and Vista and even Window7 seem be fine but Server2003 and Server2008 are another matter... and of course Linux/Mac even running FF are toast. I have starting to see the marrying of browser and desktop and personally I feel we should be going in the other direction. More loose binding. I agree with you completely about the MS tools and most clients are using MS desktops. In this area, the government and well as the military and local university/colleges are Oracle/Java. My experiences with project bids have been quite different. After spending a month developing proof of concept, proving that MS SQL was a superior product, easier to deploy and at 50% of the cost of Oracle... the bid was lost on only one point... it wasn't standard. Maybe these tight times will encourage IT managers to take another look at MS SQL. Sorry for going on but some comments seem to need a response. Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Salakhetdinov Shamil Sent: Tuesday, June 09, 2009 1:43 PM To: dba-VB Subject: Re: [dba-VB] Problem while publishing ADO.NET Data Service... Hi Jim, I'm working for money here - the main purpose for me to learn new MS technologies is to get a competetive advantage, not fun... As far as I see ADO.NET Entity Framework and ADO.NET Data Services are becoming a kind of "ODBC for 2010ies" - this is an emerging technology but it's getting all the main database technology players embraced already: http://msdn.microsoft.com/en-us/data/dd363565.aspx And Silverlight is targeted not only for Windows but for Mac and Linux also... And I'm not going "to marry my customers to me" because of using MS technologies - the fact is that there are a lot of competing providers in my area of software development... As for Oracle, PHP, Linux - I have never had opportunity to work using them as it wasn't requested by my customers but a couple of times I have had opportunity to directly compete with other companies who used Oracle for the same customer - both times they were "beaten" by my and my colleagues services, and our "forces" were usually several times less - one time it was 2 developers/consultants against a company having stuff of 100+ developers/consultants... MS tools are becoming really mature these days, and if properly applied they allow to "make wonders" even on moderate hardware... > 4. The trend is towards 'portability' on cross-platform environments. In my opinion, nowadays customers first of all need working software ASAP - and MS development tools help to satisfy those needs/market demands. And I'm not trying to embrace the whole software development market - I mean custom software development - business applicationx for small-/middle-size businesses - here MS tools fit very well IMO - just IMO... Thank you. -- Shamil -----Original Message----- From: "Jim Lawrence" <accessd at shaw.ca> To: "'Salakhetdinov Shamil'" <mcp2004 at mail.ru>,"'Discussion concerning Visual Basic and related programming issues.'" <dba-vb at databaseadvisors.com> Date: Sun, 7 Jun 2009 09:54:42 -0700 Subject: RE: [dba-VB] Problem while publishing ADO.NET Data Service... > Hi Shamil: > > I have been watching this thread for a bit and was wondering, if proceeding > along this direction is in fact tying the designers and users to a very > proprietary desktop and set of BE services? > > Just to get much of the apps running requires the very latest patches and > specific downloads, products that are not integrated into the default > Windows OS. Only the most carefully managed office location would be able to > even run this technology. > > From my point of view the following is the reality: > 1. On most sites I am just the contractor and not as the head IT guy. > 2. Clients want to hire me not marry me. > 3. Many sites using 'mixed' desktops (Windows/Mac/Linux). > 4. The trend is towards 'portability' on cross-platform environments. > > On the other hand, this is all great fun technology and I have been very > much enjoying this thread. > > Jim > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Salakhetdinov > Shamil > Sent: Friday, June 05, 2009 3:53 PM > To: Discussion concerning Visual Basic and related programming issues. > Subject: Re: [dba-VB] Problem while publishing ADO.NET Data Service... > > Hi All, > > I have found a good sample to consume ADO.NET Data Services using > SIlverLight 2.0 - here it's: > > Using Silverlight 2 With ADO.NET Data Services > > http://msdn.microsoft.com/en-us/magazine/dd569758.aspx > > I will try to make something like that live tomorrow - time to sleep here. > > Thank you. > > -- > Shamil > > -----Original Message----- > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > To: "Discussion concerning Visual Basic and related programming > issues."<dba-vb at databaseadvisors.com> > Date: Sat, 06 Jun 2009 02:27:22 +0400 > Subject: Re: [dba-VB] > Problem while publishing ADO.NET Data Service... > > > Hi All, > > > > I have got my SilverLight sample working: > > > > http://shamils-4.hosting.parking.ru/sl/NWNetSilverlight.aspx > > > > it uses hardcoded Shipper sample table's data. > > > > Then I tried to "feed" my Silverlight sample form by using the following > ADO.NET Data Service: > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > > > with code like that (which works well in C# console app): > > > > using System; > > using System.Collections.Generic; > > > > using System.Data.Services.Client; > > using System.ComponentModel; > > > > namespace ResearchAndDevelopment.Console > > { > > public class Shippers > > { > > public class Shipper > > { > > public int ID { get; set; } > > public string Name { get; set; } > > public string Phone { get; set; } > > public byte[] RowTimeStamp { get; set; } > > } > > > > private static Uri dataServiceURI = > > new > Uri(@"http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.sv > c"); > > public static void ListShippers() > > { > > DataServiceContext ctx = > > new DataServiceContext(dataServiceURI); > > IEnumerable<Shipper> shippers = ctx.Execute<Shipper>( > > new Uri("Shipper?$orderby=ID", UriKind.Relative)); > > foreach (Shipper s in shippers) > > { > > System.Console.WriteLine("{0}. {1}", s.ID, s.Name); > > } > > } > > } > > } > > > > But I have found that SilverLight 2.0 doesn't support ADO.NET Data > Services "out-of-the-box" as straightforward as the above sample code. This > sample code doesn't even compile for SilverLight projects because those > projects can't be used with .NET Framework 3.5. > > > > Therefore I'm currently stuck in feeding my SilverLight 2.0 sample with > ADO.NET Data Services (.NET 3.5 SP1) ATOM feed. > > > > Do you have any samples' references explaining how to get ADO.NET Data > Services Data into SilverLight 2.0 - the most straightforward way? > > > > Thank you. > > > > -- > > Shamil > > > > > > > > -----Original Message----- > > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > > To: Mark Breen <marklbreen at gmail.com> > > Date: Fri, 05 Jun 2009 15:26:41 +0400 > > Subject: Re: [dba-VB] > > Problem while publishing ADO.NET Data Service... > > > > > Hi Mark, > > > > > > I'd add/outline additionally to my previous answer on your posting that > ADO.NET Data Services can be used in heavily distributed workflow > scenarious, with support of distributed transactions etc.etc. Workflows are > designed and programmed for such applications using Windows Workflow > Foundation (WF). "Not data" services are developed using Windows > Communication Foundation (WCF) (and ADO.NET data services are also driven by > WCF services AFAIU)... > > > > > > -- > > > Shamil > > > > > > -----Original Message----- > > > From: Mark Breen <marklbreen at gmail.com> > > > To: Salakhetdinov Shamil <mcp2004 at mail.ru>, "Discussion concerning > Visual Basic and related programming issues." <dba-vb at databaseadvisors.com> > > > Date: Fri, 5 Jun 2009 09:10:10 +0100 > > > Subject: Re: [dba-VB] Problem while publishing ADO.NET Data Service... > > > > > > > Hello Shamil, > > > > as you know, I have two servers here in Ireland, would you like to do > your > > > > diagnosis / development of future development work on one of my > servers ? > > > > If so, that would be no problem. > > > > > > > > I am trying to keep up and read some of the link you posted int he > last few > > > > days regarding ADO.NET Data Service. > > > > > > > > I am not clear yet about differences between Webservices and ADO.NET > Data > > > > Service , but I expect if I spend some time to google and read, I can > become > > > > clear. > > > > > > > > However, I have one question, do you think that this archetectire is > > > > without doubt the way we will all connect to our data sources in the > future? > > > > How about performance, will it perform as good as current connections > such > > > > as ado and odbc over SQL Server Port? > > > > > > > > thanks > > > > > > > > Mark > > > > > > > > > > > > > > > > 2009/6/5 Salakhetdinov Shamil <mcp2004 at mail.ru> > > > > > > > > > > > > > > Hi All, > > > > > > > > > > Just wanted to ask one more question on subject issue: I do not > understand > > > > > why IIS should be restarted to have one of its Web Site's getting a > new > > > > > setting activated? I mean why it's not enough to stop and start this > web > > > > > site/web application? What am I missing? > > > > > > > > > > You can see by goodling how many developers got confused by this > > > > > "simple"(?) issue - and even stackoverflow doesn't have a clear > answer, or > > > > > am I missing it? > > > > > > > > > > Thank you. > > > > > > > > > > -- > > > > > Shamil > > > > > > > > > > -----Original Message----- > > > > > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > > > > > To: "Discussion concerning Visual Basic and related programming > issues."< > > > > > dba-vb at databaseadvisors.com> > > > > > Date: Fri, 05 Jun 2009 02:48:38 +0400 > > > > > Subject: Re: [dba-VB] > > > > > Problem while publishing ADO.NET Data Service... > > > > > > > > > > > Hi All, > > > > > > > > > > > > I have got found one solution for the subject issue: > > > > > > > > > > > > Hosted ADO.NET Data Services & Silverlight > > > > > > > > > > > > http://dvanderboom.wordpress.com/2009/01/07/hosted-adonet-data-services-silv > erlight/ > > > > > > > > > > > > But it doesn't look satisfactory for general case, and it doesn't > work > > > > > yet for my site (waiting for ISP support with IIS server restart - > maybe > > > > > that helps as web site restarting doesn't work) - I have got stuck > here: > > > > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > > > > > > > > > > > with a message: > > > > > > <<< > > > > > > IIS specified authentication schemes 'Basic, Anonymous', but the > binding > > > > > only supports specification of exactly one authentication scheme. > Valid > > > > > authentication schemes are Digest, Negotiate, NTLM, Basic, or > Anonymous. > > > > > Change the IIS settings so that only a single authentication scheme > is used. > > > > > > >>> > > > > > > > > > > > > and as you can see SOAP and WCF sample services do work OK here: > > > > > > > > > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/SOAPService.asmx > > > > > > > > > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/WCFService.svc > > > > > > > > > > > > If you know general solution for subject issue that woudl be very > > > > > helpful. > > > > > > > > > > > > Thank you. > > > > > > > > > > > > -- > > > > > > Shamil > > > > > > > > > > > > -----Original Message----- > > > > > > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > > > > > > To: "Discussion concerning Visual Basic and related programming > issues."< > > > > > dba-vb at databaseadvisors.com> > > > > > > Date: Thu, 04 Jun 2009 23:06:18 +0400 > > > > > > Subject: Re: [dba-VB] > > > > > > Problem while publishing ADO.NET Data Service... > > > > > > > > > > > > > Hi All, > > > > > > > > > > > > > > I have changed location of NorthwindNety Data Service to: > > > > > > > > > > > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > > > > > > > > > > > > > still no solution for > > > > > > > > > > > > > > This collection already contains an address with scheme http. > There > > > > > can be at most one address per scheme in this collection. > > > > > > > Parameter name: item > > > > > > > > > > > > > > :( > > > > > > > > > > > > > > -- > > > > > > > Shamil > > > > > > > > > > > > > ><<< aaa >>> > > > > > > _______________________________________________ > > > > > > dba-VB mailing list > > > > > > dba-VB at databaseadvisors.com > > > > > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > > > > > http://www.databaseadvisors.com > > > > > > > > > > > > > > > > _______________________________________________ > > > > > dba-VB mailing list > > > > > dba-VB at databaseadvisors.com > > > > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > > > > http://www.databaseadvisors.com > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > dba-VB mailing list > > > dba-VB at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > > http://www.databaseadvisors.com > > > > > > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From mcp2004 at mail.ru Wed Jun 10 17:35:34 2009 From: mcp2004 at mail.ru (Salakhetdinov Shamil) Date: Thu, 11 Jun 2009 02:35:34 +0400 Subject: [dba-VB] =?koi8-r?b?UHJvYmxlbSB3aGlsZSBwdWJsaXNoaW5nIEFETy5ORVQg?= =?koi8-r?b?RGF0YSBTZXJ2aWNlLi4u?= In-Reply-To: <C2C3BDA2B6534781AC4663676123D509@creativesystemdesigns.com> References: <C2C3BDA2B6534781AC4663676123D509@creativesystemdesigns.com> Message-ID: <E1MEWOM-0007cx-00.mcp2004-mail-ru@f135.mail.ru> Hi Jim, Thank you for your reply. I'm writing here not to argue with you but to share my experience - and I'm working as freelancer for worldwide customers for many years now. Apparently we have quite different customers, and quite different experiences working with them. That's fine. ASP.NET 2.0/3.5 client webforms run just fine on all the most commonly used browsers - 90% I guess. Aiming at 100% would be tremendous waste of resources. Yes, Silverlight currently works on IE7/8 and FF 3.x but I believe it will soon run well on all the other most commonly used browsers running under MS Windows as well as on browsers runnning on Mac and Linux. ADO.NET Entity Framework - is a "corner-stone" emerging technology to process distributed data coming/collected in many different formats from all kinds of data publishers/producers... <<< ...marrying of browser and desktop... >>> Do you mean "armouring" browsers with (often browser specififc) "heavy-weigth" AJAX libraries or do you mean virtualization? I personally do not like/use the former - I believe/expect the latter - virtualization - will soon become a common affordable infrastructure for me and for my customers, and I'm starting to plan moving all my development into a virtual PC/PCs running on my ISP site... <<< I feel we should be going in the other direction. More loose binding. >>> What do you mean here? I know a "loose coupling" term from OOP. What do you mean by "loose binding" here? <<< > Maybe these tight times will encourage IT managers > to take another look at MS SQL. >>> You may find me cynical and completely wrong - I suppose IT managers need "fat contracts" to keep their "fat companies" with "bloated staff" afloat, and to have good bonuses for themselves. I think that situation can't be changed even in these tight times because changing that would mean a kind of revolution, and a few people wants a revolution these days as revolutions very often result in much more and very severe issues than they try to solve... Thank you. -- Shamil -----Original Message----- From: "Jim Lawrence" <accessd at shaw.ca> To: "'Salakhetdinov Shamil'" <mcp2004 at mail.ru>,"'Discussion concerning Visual Basic and related programming issues.'" <dba-vb at databaseadvisors.com> Date: Wed, 10 Jun 2009 11:10:29 -0700 Subject: RE: [dba-VB] Problem while publishing ADO.NET Data Service... > Hi Shamil: > > I have never had an issue with ADO.Net technology... but it will be a while > before I can claim professional competence in the product but I believe it > is going the right way... that is browser based. > > My only apprehension is not being able to deliver a web-based service > because a client or completely unknown customer is either using the 'wrong' > OS, browser to deliver/receive services or is simply not patch up enough. > es > I am starting to see a number of web sites that have been 'blocked' because > they are not using the right version of browser IE7 and not IE8 or FF or > Chrome etc... or do not have the appropriate technology installed on their > desktop. > > I have been unable to get some of the Silver-light based code running on > some of my systems even though I have the latest version of Framework and > Silver installed. XP and Vista and even Window7 seem be fine but Server2003 > and Server2008 are another matter... and of course Linux/Mac even running FF > are toast. > > I have starting to see the marrying of browser and desktop and personally I > feel we should be going in the other direction. More loose binding. > > I agree with you completely about the MS tools and most clients are using MS > desktops. In this area, the government and well as the military and local > university/colleges are Oracle/Java. My experiences with project bids have > been quite different. After spending a month developing proof of concept, > proving that MS SQL was a superior product, easier to deploy and at 50% of > the cost of Oracle... the bid was lost on only one point... it wasn't > standard. > > Maybe these tight times will encourage IT managers to take another look at > MS SQL. > > Sorry for going on but some comments seem to need a response. > > Jim > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Salakhetdinov > Shamil > Sent: Tuesday, June 09, 2009 1:43 PM > To: dba-VB > Subject: Re: [dba-VB] Problem while publishing ADO.NET Data Service... > > Hi Jim, > > I'm working for money here - the main purpose for me to learn new MS > technologies is to get a competetive advantage, not fun... > > As far as I see ADO.NET Entity Framework and ADO.NET Data Services are > becoming a kind of "ODBC for 2010ies" - this is an emerging technology but > it's getting all the main database technology players embraced already: > > http://msdn.microsoft.com/en-us/data/dd363565.aspx > > And Silverlight is targeted not only for Windows but for Mac and Linux > also... > > And I'm not going "to marry my customers to me" because of using MS > technologies - the fact is that there are a lot of competing providers in my > area of software development... > > As for Oracle, PHP, Linux - I have never had opportunity to work using them > as it wasn't requested by my customers but a couple of times I have had > opportunity to directly compete with other companies who used Oracle for the > same customer - both times they were "beaten" by my and my colleagues > services, and our "forces" were usually several times less - one time it was > 2 developers/consultants against a company having stuff of 100+ > developers/consultants... > > MS tools are becoming really mature these days, and if properly applied they > allow to "make wonders" even on moderate hardware... > > > 4. The trend is towards 'portability' on cross-platform environments. > In my opinion, nowadays customers first of all need working software ASAP - > and MS development tools help to satisfy those needs/market demands. And I'm > not trying to embrace the whole software development market - I mean custom > software development - business applicationx for small-/middle-size > businesses - here MS tools fit very well IMO - just IMO... > > Thank you. > > -- > Shamil > > > -----Original Message----- > From: "Jim Lawrence" <accessd at shaw.ca> > To: "'Salakhetdinov Shamil'" <mcp2004 at mail.ru>,"'Discussion concerning > Visual Basic and related programming issues.'" <dba-vb at databaseadvisors.com> > Date: Sun, 7 Jun 2009 09:54:42 -0700 > Subject: RE: [dba-VB] Problem while publishing ADO.NET Data Service... > > > Hi Shamil: > > > > I have been watching this thread for a bit and was wondering, if > proceeding > > along this direction is in fact tying the designers and users to a very > > proprietary desktop and set of BE services? > > > > Just to get much of the apps running requires the very latest patches and > > specific downloads, products that are not integrated into the default > > Windows OS. Only the most carefully managed office location would be able > to > > even run this technology. > > > > From my point of view the following is the reality: > > 1. On most sites I am just the contractor and not as the head IT guy. > > 2. Clients want to hire me not marry me. > > 3. Many sites using 'mixed' desktops (Windows/Mac/Linux). > > 4. The trend is towards 'portability' on cross-platform environments. > > > > On the other hand, this is all great fun technology and I have been very > > much enjoying this thread. > > > > Jim > > > > -----Original Message----- > > From: dba-vb-bounces at databaseadvisors.com > > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Salakhetdinov > > Shamil > > Sent: Friday, June 05, 2009 3:53 PM > > To: Discussion concerning Visual Basic and related programming issues. > > Subject: Re: [dba-VB] Problem while publishing ADO.NET Data Service... > > > > Hi All, > > > > I have found a good sample to consume ADO.NET Data Services using > > SIlverLight 2.0 - here it's: > > > > Using Silverlight 2 With ADO.NET Data Services > > > > http://msdn.microsoft.com/en-us/magazine/dd569758.aspx > > > > I will try to make something like that live tomorrow - time to sleep here. > > > > Thank you. > > > > -- > > Shamil > > > > -----Original Message----- > > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > > To: "Discussion concerning Visual Basic and related programming > > issues."<dba-vb at databaseadvisors.com> > > Date: Sat, 06 Jun 2009 02:27:22 +0400 > > Subject: Re: [dba-VB] > > Problem while publishing ADO.NET Data Service... > > > > > Hi All, > > > > > > I have got my SilverLight sample working: > > > > > > http://shamils-4.hosting.parking.ru/sl/NWNetSilverlight.aspx > > > > > > it uses hardcoded Shipper sample table's data. > > > > > > Then I tried to "feed" my Silverlight sample form by using the following > > ADO.NET Data Service: > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > > > > > with code like that (which works well in C# console app): > > > > > > using System; > > > using System.Collections.Generic; > > > > > > using System.Data.Services.Client; > > > using System.ComponentModel; > > > > > > namespace ResearchAndDevelopment.Console > > > { > > > public class Shippers > > > { > > > public class Shipper > > > { > > > public int ID { get; set; } > > > public string Name { get; set; } > > > public string Phone { get; set; } > > > public byte[] RowTimeStamp { get; set; } > > > } > > > > > > private static Uri dataServiceURI = > > > new > > > Uri(@"http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.sv > > c"); > > > public static void ListShippers() > > > { > > > DataServiceContext ctx = > > > new DataServiceContext(dataServiceURI); > > > IEnumerable<Shipper> shippers = ctx.Execute<Shipper>( > > > new Uri("Shipper?$orderby=ID", UriKind.Relative)); > > > foreach (Shipper s in shippers) > > > { > > > System.Console.WriteLine("{0}. {1}", s.ID, s.Name); > > > } > > > } > > > } > > > } > > > > > > But I have found that SilverLight 2.0 doesn't support ADO.NET Data > > Services "out-of-the-box" as straightforward as the above sample code. > This > > sample code doesn't even compile for SilverLight projects because those > > projects can't be used with .NET Framework 3.5. > > > > > > Therefore I'm currently stuck in feeding my SilverLight 2.0 sample with > > ADO.NET Data Services (.NET 3.5 SP1) ATOM feed. > > > > > > Do you have any samples' references explaining how to get ADO.NET Data > > Services Data into SilverLight 2.0 - the most straightforward way? > > > > > > Thank you. > > > > > > -- > > > Shamil > > > > > > > > > > > > -----Original Message----- > > > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > > > To: Mark Breen <marklbreen at gmail.com> > > > Date: Fri, 05 Jun 2009 15:26:41 +0400 > > > Subject: Re: [dba-VB] > > > Problem while publishing ADO.NET Data Service... > > > > > > > Hi Mark, > > > > > > > > I'd add/outline additionally to my previous answer on your posting > that > > ADO.NET Data Services can be used in heavily distributed workflow > > scenarious, with support of distributed transactions etc.etc. Workflows > are > > designed and programmed for such applications using Windows Workflow > > Foundation (WF). "Not data" services are developed using Windows > > Communication Foundation (WCF) (and ADO.NET data services are also driven > by > > WCF services AFAIU)... > > > > > > > > -- > > > > Shamil > > > > > > > > -----Original Message----- > > > > From: Mark Breen <marklbreen at gmail.com> > > > > To: Salakhetdinov Shamil <mcp2004 at mail.ru>, "Discussion concerning > > Visual Basic and related programming issues." > <dba-vb at databaseadvisors.com> > > > > Date: Fri, 5 Jun 2009 09:10:10 +0100 > > > > Subject: Re: [dba-VB] Problem while publishing ADO.NET Data Service... > > > > > > > > > Hello Shamil, > > > > > as you know, I have two servers here in Ireland, would you like to > do > > your > > > > > diagnosis / development of future development work on one of my > > servers ? > > > > > If so, that would be no problem. > > > > > > > > > > I am trying to keep up and read some of the link you posted int he > > last few > > > > > days regarding ADO.NET Data Service. > > > > > > > > > > I am not clear yet about differences between Webservices and > ADO.NET > > Data > > > > > Service , but I expect if I spend some time to google and read, I > can > > become > > > > > clear. > > > > > > > > > > However, I have one question, do you think that this archetectire > is > > > > > without doubt the way we will all connect to our data sources in the > > future? > > > > > How about performance, will it perform as good as current > connections > > such > > > > > as ado and odbc over SQL Server Port? > > > > > > > > > > thanks > > > > > > > > > > Mark > > > > > > > > > > > > > > > > > > > > 2009/6/5 Salakhetdinov Shamil <mcp2004 at mail.ru> > > > > > > > > > > > > > > > > > Hi All, > > > > > > > > > > > > Just wanted to ask one more question on subject issue: I do not > > understand > > > > > > why IIS should be restarted to have one of its Web Site's getting > a > > new > > > > > > setting activated? I mean why it's not enough to stop and start > this > > web > > > > > > site/web application? What am I missing? > > > > > > > > > > > > You can see by goodling how many developers got confused by this > > > > > > "simple"(?) issue - and even stackoverflow doesn't have a clear > > answer, or > > > > > > am I missing it? > > > > > > > > > > > > Thank you. > > > > > > > > > > > > -- > > > > > > Shamil > > > > > > > > > > > > -----Original Message----- > > > > > > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > > > > > > To: "Discussion concerning Visual Basic and related programming > > issues."< > > > > > > dba-vb at databaseadvisors.com> > > > > > > Date: Fri, 05 Jun 2009 02:48:38 +0400 > > > > > > Subject: Re: [dba-VB] > > > > > > Problem while publishing ADO.NET Data Service... > > > > > > > > > > > > > Hi All, > > > > > > > > > > > > > > I have got found one solution for the subject issue: > > > > > > > > > > > > > > Hosted ADO.NET Data Services & Silverlight > > > > > > > > > > > > > > > > http://dvanderboom.wordpress.com/2009/01/07/hosted-adonet-data-services-silv > > erlight/ > > > > > > > > > > > > > > But it doesn't look satisfactory for general case, and it > doesn't > > work > > > > > > yet for my site (waiting for ISP support with IIS server restart - > > maybe > > > > > > that helps as web site restarting doesn't work) - I have got stuck > > here: > > > > > > > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > > > > > > > > > > > > > with a message: > > > > > > > <<< > > > > > > > IIS specified authentication schemes 'Basic, Anonymous', but the > > binding > > > > > > only supports specification of exactly one authentication scheme. > > Valid > > > > > > authentication schemes are Digest, Negotiate, NTLM, Basic, or > > Anonymous. > > > > > > Change the IIS settings so that only a single authentication > scheme > > is used. > > > > > > > >>> > > > > > > > > > > > > > > and as you can see SOAP and WCF sample services do work OK here: > > > > > > > > > > > > > > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/SOAPService.asmx > > > > > > > > > > > > > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/WCFService.svc > > > > > > > > > > > > > > If you know general solution for subject issue that woudl be > very > > > > > > helpful. > > > > > > > > > > > > > > Thank you. > > > > > > > > > > > > > > -- > > > > > > > Shamil > > > > > > > > > > > > > > -----Original Message----- > > > > > > > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > > > > > > > To: "Discussion concerning Visual Basic and related programming > > issues."< > > > > > > dba-vb at databaseadvisors.com> > > > > > > > Date: Thu, 04 Jun 2009 23:06:18 +0400 > > > > > > > Subject: Re: [dba-VB] > > > > > > > Problem while publishing ADO.NET Data Service... > > > > > > > > > > > > > > > Hi All, > > > > > > > > > > > > > > > > I have changed location of NorthwindNety Data Service to: > > > > > > > > > > > > > > > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > > > > > > > > > > > > > > > still no solution for > > > > > > > > > > > > > > > > This collection already contains an address with scheme http. > > There > > > > > > can be at most one address per scheme in this collection. > > > > > > > > Parameter name: item > > > > > > > > > > > > > > > > :( > > > > > > > > > > > > > > > > -- > > > > > > > > Shamil > > > > > > > > > > > > > > > ><<< aaa >>> > > > > > > > _______________________________________________ > > > > > > > dba-VB mailing list > > > > > > > dba-VB at databaseadvisors.com > > > > > > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > > > > > > http://www.databaseadvisors.com > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > > dba-VB mailing list > > > > > > dba-VB at databaseadvisors.com > > > > > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > > > > > http://www.databaseadvisors.com > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > dba-VB mailing list > > > > dba-VB at databaseadvisors.com > > > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > > > http://www.databaseadvisors.com > > > > > > > > > > _______________________________________________ > > > dba-VB mailing list > > > dba-VB at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > > http://www.databaseadvisors.com > > > > > > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From listmaster at databaseadvisors.com Tue Jun 16 12:10:00 2009 From: listmaster at databaseadvisors.com (Bryan Carbonnell) Date: Tue, 16 Jun 2009 13:10:00 -0400 Subject: [dba-VB] Administrivia - Dickford Cohn Donation Fund In-Reply-To: <05bf01c9ee8b$3f2935e0$bd7ba1a0$@net> References: <05bf01c9ee8b$3f2935e0$bd7ba1a0$@net> Message-ID: <e04a6c920906161010t5c4f67a0h5d37b3c158c1fcb9@mail.gmail.com> "We're a family." Members often share that sentiment in their posts. The Database Advisor group is a family. It's obvious in our responses and brief explosions of humor that we care about one another. Dickford Cohn, a member of our family has suffered a great loss. Due to a fire, this member has lost his home and all of his belongings. He recently spent a number of weeks in the hospital, recovering from serious burns. You can read more about his horrific encounter with death in the online article, Hawker dragged from trailer fire. Keys News The DBA Board of Directors recently voted to accept donations from members on Dickford's behalf. The DBA organization will keep nothing for administrative purposes -- we will forward every cent donated to Dickford. >From the time of this message until July 31, 2009, every donation received will go to Dickford Cohn. Make your donation via our existing PayPal account link. If you prefer snail mail, please send donation to the following address: Database Advisors, Inc. 814 Peppard Drive Bel Air, MD 21014 Please make your check or money order payable to Database Advisors, Inc. As always, donations of any kind are not mandatory for membership. John R. Bartow President Database Advisors, Inc. Email: president at databaseadvisors.com From listmaster at databaseadvisors.com Tue Jun 16 12:23:45 2009 From: listmaster at databaseadvisors.com (Bryan Carbonnell) Date: Tue, 16 Jun 2009 13:23:45 -0400 Subject: [dba-VB] Administrivia - Dickford Cohn Donation Fund In-Reply-To: <e04a6c920906161020v40933088q9d2a7c178c776078@mail.gmail.com> References: <05bf01c9ee8b$3f2935e0$bd7ba1a0$@net> <e04a6c920906161020v40933088q9d2a7c178c776078@mail.gmail.com> Message-ID: <e04a6c920906161023t4b81844di73e66629aadb7d6b@mail.gmail.com> RESEND with Links this time. Bryan "We're a family." Members often share that sentiment in their posts. The Database Advisor group is a family. It's obvious in our responses and brief explosions of humor that we care about one another. Dickford Cohn, a member of our family has suffered a great loss. Due to a fire, this member has lost his home and all of his belongings. He recently spent a number of weeks in the hospital, recovering from serious burns. You can read more about his horrific encounter with death in the online article, Hawker dragged from trailer fire. Keys News ( http://keysnews.com/node/13470 ) The DBA Board of Directors recently voted to accept donations from members on Dickford's behalf. The DBA organization will keep nothing for administrative purposes -- we will forward every cent donated to Dickford. >From the time of this message until July 31, 2009, every donation received will go to Dickford Cohn. Make your donation via our existing PayPal account link ( http://www.databaseadvisors.com/donations/dickford.asp ). If you prefer snail mail, please send donation to the following address: Database Advisors, Inc. 814 Peppard Drive Bel Air, MD 21014 Please make your check or money order payable to Database Advisors, Inc. As always, donations of any kind are not mandatory for membership. John R. Bartow President Database Advisors, Inc. Email: president at databaseadvisors.com From ssharkins at gmail.com Fri Jun 19 17:06:09 2009 From: ssharkins at gmail.com (Susan Harkins) Date: Fri, 19 Jun 2009 18:06:09 -0400 Subject: [dba-VB] Updating Toolbox in VB Express Message-ID: <FFC703A9A7AC4064A62B1297439EA475@SusanOne> I've been learning how to create typed datasets and the process itself isn't particularly difficult, but often, I couldn't get VB Express to update like I think it should. For instance, after adding a reference between a form project and a class library project that contained a typed dataset, I couldn't get the dataset to show up in the Add Dataset dialog box -- Under Typed Dataset, the Name control displayed Referenced Datasets. When I clicked that, I got nothing -- an empty list. Today, after adding the typed dataset to a form, I couldn't find the project components in the Toolbox. Running Imports statements in the form forced the issue, but that shouldn't be necessary, should it? Maybe that's the way it's supposed to work, and if so, I just don't get it yet. I looked all over for some kind of Refresh, but didn't find anything. If you have no idea what I'm talking about, just ignore me -- I am most likely using the wrong terminology. Susan H. From Gustav at cactus.dk Sat Jun 20 02:25:37 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Sat, 20 Jun 2009 09:25:37 +0200 Subject: [dba-VB] Updating Toolbox in VB Express Message-ID: <sa3cab1e.005@cactus.dk> Hi Susan Now, I don't what you and Charlotte are up to, but I hope you create some DataSet.xsd files and use the designer to create your datatables. Also, have the box with Data Sources on display; this will contain your datasets, and you can easily drag and drop full tables or single/selected fields to your form. /gustav >>> ssharkins at gmail.com 20-06-2009 00:06:09 >>> I've been learning how to create typed datasets and the process itself isn't particularly difficult, but often, I couldn't get VB Express to update like I think it should. For instance, after adding a reference between a form project and a class library project that contained a typed dataset, I couldn't get the dataset to show up in the Add Dataset dialog box -- Under Typed Dataset, the Name control displayed Referenced Datasets. When I clicked that, I got nothing -- an empty list. Today, after adding the typed dataset to a form, I couldn't find the project components in the Toolbox. Running Imports statements in the form forced the issue, but that shouldn't be necessary, should it? Maybe that's the way it's supposed to work, and if so, I just don't get it yet. I looked all over for some kind of Refresh, but didn't find anything. If you have no idea what I'm talking about, just ignore me -- I am most likely using the wrong terminology. Susan H. From ssharkins at gmail.com Sat Jun 20 08:26:38 2009 From: ssharkins at gmail.com (Susan Harkins) Date: Sat, 20 Jun 2009 09:26:38 -0400 Subject: [dba-VB] Updating Toolbox in VB Express References: <sa3cab1e.005@cactus.dk> Message-ID: <0B2EA9DA4131427CA56A0F66E6249BA3@SusanOne> > Now, I don't what you and Charlotte are up to, but I hope you create some > DataSet.xsd files and use the designer to create your datatables. ========That's exactly what I'm doing. The instructions are simple enough, but VB Express doesn't always behave as I think it should -- so either VB Express is cranky, or... well... we already know about me. :) The Toolbox would not update accordingly. And, I created a reference in one project to the project with the dataset, but the dataset didn't show up in the Add Dataset Typed Dataset list. So, I'm wondering if there's a secret to getting the Toolbox (and other dialogs) to update once you create a dataset -- if they're supposed to be available in the Toolbox, because they weren't until I ran Imports statements explicitly added those objects to the form. I was unable to drag the dataset from the Toolbox, because it wasn't listed. I ran the code, the Toolbox listed it. Now, that's peculair to me. > Also, have the box with Data Sources on display; this will contain your > datasets, and you can easily drag and drop full tables or single/selected > fields to your form. ==========You mean the Solutions Explorer or the Database Explorer? I'm working with both. Susan H. From Gustav at cactus.dk Sat Jun 20 08:53:00 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Sat, 20 Jun 2009 15:53:00 +0200 Subject: [dba-VB] Updating Toolbox in VB Express Message-ID: <sa3d05f7.009@cactus.dk> Hi Susan I haven't worked with a project using a dataset of this kind in another project so I can't tell. No, I mean Data Sources. Usually it is boxed together with Toolbox and Server Explorer as the other tabs. You can click it forward from menu Data. /gustav >>> ssharkins at gmail.com 20-06-2009 15:26:38 >>> > Now, I don't what you and Charlotte are up to, but I hope you create some > DataSet.xsd files and use the designer to create your datatables. ========That's exactly what I'm doing. The instructions are simple enough, but VB Express doesn't always behave as I think it should -- so either VB Express is cranky, or... well... we already know about me. :) The Toolbox would not update accordingly. And, I created a reference in one project to the project with the dataset, but the dataset didn't show up in the Add Dataset Typed Dataset list. So, I'm wondering if there's a secret to getting the Toolbox (and other dialogs) to update once you create a dataset -- if they're supposed to be available in the Toolbox, because they weren't until I ran Imports statements explicitly added those objects to the form. I was unable to drag the dataset from the Toolbox, because it wasn't listed. I ran the code, the Toolbox listed it. Now, that's peculair to me. > Also, have the box with Data Sources on display; this will contain your > datasets, and you can easily drag and drop full tables or single/selected > fields to your form. ==========You mean the Solutions Explorer or the Database Explorer? I'm working with both. Susan H. From ssharkins at gmail.com Sat Jun 20 09:06:41 2009 From: ssharkins at gmail.com (Susan Harkins) Date: Sat, 20 Jun 2009 10:06:41 -0400 Subject: [dba-VB] Updating Toolbox in VB Express References: <sa3d05f7.009@cactus.dk> Message-ID: <65F35549A3C44BE98D76EE725D78B7DC@SusanOne> > No, I mean Data Sources. Usually it is boxed together with Toolbox and > Server Explorer as the other tabs. You can click it forward from menu > Data. ====Yes, I'm familiar with Data Sources too. Thanks Gustav! Susan H. From ssharkins at gmail.com Mon Jun 22 09:03:52 2009 From: ssharkins at gmail.com (Susan Harkins) Date: Mon, 22 Jun 2009 10:03:52 -0400 Subject: [dba-VB] Looking for SAP - HR Payroll Analyst Message-ID: <C7288DAF510B40E499DB1349F6554BDB@SusanOne> If you have the skills to fill this position or know someone who does, please send me a resume. Susan H. From shamil at smsconsulting.spb.ru Fri Jun 26 15:10:55 2009 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sat, 27 Jun 2009 00:10:55 +0400 Subject: [dba-VB] ASP.NET MVC Framework Message-ID: <004101c9f69a$37a115b0$a6e34110$@spb.ru> Hi All, I'm watching through ASP.NET MVC Framework web casts now "ASP.NET MVC Talks" http://www.asp.net/learn/mvc-videos/#MVCStorefrontStarterKit This technology looks interesting. I will probably try to use it in one small application for my new customer. Have anybody here used ASP.NET MVC Framework in application/sample development? Thank you. -- Shamil From Gustav at cactus.dk Fri Jun 26 16:49:06 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 26 Jun 2009 23:49:06 +0200 Subject: [dba-VB] ASP.NET MVC Framework Message-ID: <sa455e89.029@cactus.dk> Hi Shamil Not me, but I have studied it a bit because the separation of the design in the Model, View and Control parts seems so logical. The fascinating aspect is if it is possible or feasible to transfer it from web design to Windows form design. Now, the Northwind.NET project doesn't contain much "model" work, but it could be an option to convert it to follow MVC design ... /gustav >>> shamil at smsconsulting.spb.ru 26-06-2009 22:10 >>> Hi All, I'm watching through ASP.NET MVC Framework web casts now "ASP.NET MVC Talks" http://www.asp.net/learn/mvc-videos/#MVCStorefrontStarterKit This technology looks interesting. I will probably try to use it in one small application for my new customer. Have anybody here used ASP.NET MVC Framework in application/sample development? Thank you. -- Shamil From shamil at smsconsulting.spb.ru Fri Jun 26 18:15:49 2009 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sat, 27 Jun 2009 03:15:49 +0400 Subject: [dba-VB] ASP.NET MVC Framework In-Reply-To: <sa455e89.029@cactus.dk> References: <sa455e89.029@cactus.dk> Message-ID: <004e01c9f6b4$0be716d0$23b54470$@spb.ru> <<< Now, the Northwind.NET project doesn't contain much "model" work, but it could be an option to convert it to follow MVC design ... >>> Yes, I thought we could try to do that - let's try to gather a team here? SilverLight project didn't get good feedback - it could happen that ASP.NET MVC based project would be more interesting 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: Saturday, June 27, 2009 1:49 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] ASP.NET MVC Framework Hi Shamil Not me, but I have studied it a bit because the separation of the design in the Model, View and Control parts seems so logical. The fascinating aspect is if it is possible or feasible to transfer it from web design to Windows form design. Now, the Northwind.NET project doesn't contain much "model" work, but it could be an option to convert it to follow MVC design ... /gustav >>> shamil at smsconsulting.spb.ru 26-06-2009 22:10 >>> Hi All, I'm watching through ASP.NET MVC Framework web casts now "ASP.NET MVC Talks" http://www.asp.net/learn/mvc-videos/#MVCStorefrontStarterKit This technology looks interesting. I will probably try to use it in one small application for my new customer. Have anybody here used ASP.NET MVC Framework in application/sample development? Thank you. -- Shamil _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com __________ Information from ESET NOD32 Antivirus, version of virus signature database 4193 (20090626) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru __________ Information from ESET NOD32 Antivirus, version of virus signature database 4193 (20090626) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru From shamil at smsconsulting.spb.ru Sat Jun 27 05:56:58 2009 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sat, 27 Jun 2009 14:56:58 +0400 Subject: [dba-VB] ASP.NET MVC Framework In-Reply-To: <sa455e89.029@cactus.dk> References: <sa455e89.029@cactus.dk> Message-ID: <000601c9f715$ff3d9690$fdb8c3b0$@spb.ru> Hi Gustav, I have made sample MVC project - just generated from standard template in VS2008 SP1. It works well locally. I have put it here on Internet: http://shamils-4.hosting.parking.ru/myMvcApplication1/ As you can find it starts OK but links do not work - my guess there is something wrong with those SEO links routing to actual .aspx page - haven't you seen anywhere where should I look in my MVC sample project to fix the issue? (it may also happen that some special settings should be done on ASP.Net server site for that SEO links routing to work properly. All in all MVC programming promise to be rather advanced activity (there are no prebuilt server side controls as when one uses ASP.NET WebForms etc.) but it should be worth the learning curve efforts? - it should become something like "Ruby On Rails" in the (near?) future releases? 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: Saturday, June 27, 2009 1:49 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] ASP.NET MVC Framework Hi Shamil Not me, but I have studied it a bit because the separation of the design in the Model, View and Control parts seems so logical. The fascinating aspect is if it is possible or feasible to transfer it from web design to Windows form design. Now, the Northwind.NET project doesn't contain much "model" work, but it could be an option to convert it to follow MVC design ... /gustav >>> shamil at smsconsulting.spb.ru 26-06-2009 22:10 >>> Hi All, I'm watching through ASP.NET MVC Framework web casts now "ASP.NET MVC Talks" http://www.asp.net/learn/mvc-videos/#MVCStorefrontStarterKit This technology looks interesting. I will probably try to use it in one small application for my new customer. Have anybody here used ASP.NET MVC Framework in application/sample development? Thank you. -- Shamil _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com __________ Information from ESET NOD32 Antivirus, version of virus signature database 4193 (20090626) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru __________ Information from ESET NOD32 Antivirus, version of virus signature database 4193 (20090626) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru From Gustav at cactus.dk Sat Jun 27 16:27:50 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Sat, 27 Jun 2009 23:27:50 +0200 Subject: [dba-VB] ASP.NET MVC Framework Message-ID: <sa46aafe.033@cactus.dk> Hi Shamil Great! But as you, I can open the first page, that's all. Some MVC deployment guide must exist somewhere ... this weekend I'm busy with construction work at our house so I don't have much time looking into this before Monday or Tuesday. /gustav >>> shamil at smsconsulting.spb.ru 27-06-2009 12:56 >>> Hi Gustav, I have made sample MVC project - just generated from standard template in VS2008 SP1. It works well locally. I have put it here on Internet: http://shamils-4.hosting.parking.ru/myMvcApplication1/ As you can find it starts OK but links do not work - my guess there is something wrong with those SEO links routing to actual .aspx page - haven't you seen anywhere where should I look in my MVC sample project to fix the issue? (it may also happen that some special settings should be done on ASP.Net server site for that SEO links routing to work properly. All in all MVC programming promise to be rather advanced activity (there are no prebuilt server side controls as when one uses ASP.NET WebForms etc.) but it should be worth the learning curve efforts? - it should become something like "Ruby On Rails" in the (near?) future releases? 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: Saturday, June 27, 2009 1:49 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] ASP.NET MVC Framework Hi Shamil Not me, but I have studied it a bit because the separation of the design in the Model, View and Control parts seems so logical. The fascinating aspect is if it is possible or feasible to transfer it from web design to Windows form design. Now, the Northwind.NET project doesn't contain much "model" work, but it could be an option to convert it to follow MVC design ... /gustav >>> shamil at smsconsulting.spb.ru 26-06-2009 22:10 >>> Hi All, I'm watching through ASP.NET MVC Framework web casts now "ASP.NET MVC Talks" http://www.asp.net/learn/mvc-videos/#MVCStorefrontStarterKit This technology looks interesting. I will probably try to use it in one small application for my new customer. Have anybody here used ASP.NET MVC Framework in application/sample development? Thank you. -- Shamil From shamil at smsconsulting.spb.ru Mon Jun 29 05:44:25 2009 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Mon, 29 Jun 2009 14:44:25 +0400 Subject: [dba-VB] ASP.NET MVC Framework In-Reply-To: <sa46aafe.033@cactus.dk> References: <sa46aafe.033@cactus.dk> Message-ID: <000b01c9f8a6$93715ef0$ba541cd0$@spb.ru> Hi Gustav and all, I have got read "ASP.NET MVC 1.0 Quickly" By Maarten Balliauw over weekend. Good book for starters with ASP.NET MVC 1.0 as I'm. As for ASP.NET MVC 1.0 - after reading the above book I decided to wait what will come in ASP.NET MVC 2.0: ASP.NET MVC 1.0 is built on top of ASP.NET and I'm now under impression now that it's more a "marketing tool"/R&D project than a robust framework for application development - at least developing web pages to present and edit parent/detail relationships/data promise to be a real PITA with ASP.NET MVC 1.0. ASP.NET MVC 1.0 is good for simple sites as http://stackoverflow.com/ is. One can mix ASP.NET WebForms with ASP.NET MVC 1.0 within one web application but I must say I do not see strong reasons to do that if one has good working knowledge of ASP.NET 3.5. ... I can be missing something... What are your opinions? Thank you. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Sunday, June 28, 2009 1:28 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] ASP.NET MVC Framework Hi Shamil Great! But as you, I can open the first page, that's all. Some MVC deployment guide must exist somewhere ... this weekend I'm busy with construction work at our house so I don't have much time looking into this before Monday or Tuesday. /gustav >>> shamil at smsconsulting.spb.ru 27-06-2009 12:56 >>> Hi Gustav, I have made sample MVC project - just generated from standard template in VS2008 SP1. It works well locally. I have put it here on Internet: http://shamils-4.hosting.parking.ru/myMvcApplication1/ As you can find it starts OK but links do not work - my guess there is something wrong with those SEO links routing to actual .aspx page - haven't you seen anywhere where should I look in my MVC sample project to fix the issue? (it may also happen that some special settings should be done on ASP.Net server site for that SEO links routing to work properly. All in all MVC programming promise to be rather advanced activity (there are no prebuilt server side controls as when one uses ASP.NET WebForms etc.) but it should be worth the learning curve efforts? - it should become something like "Ruby On Rails" in the (near?) future releases? 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: Saturday, June 27, 2009 1:49 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] ASP.NET MVC Framework Hi Shamil Not me, but I have studied it a bit because the separation of the design in the Model, View and Control parts seems so logical. The fascinating aspect is if it is possible or feasible to transfer it from web design to Windows form design. Now, the Northwind.NET project doesn't contain much "model" work, but it could be an option to convert it to follow MVC design ... /gustav >>> shamil at smsconsulting.spb.ru 26-06-2009 22:10 >>> Hi All, I'm watching through ASP.NET MVC Framework web casts now "ASP.NET MVC Talks" http://www.asp.net/learn/mvc-videos/#MVCStorefrontStarterKit This technology looks interesting. I will probably try to use it in one small application for my new customer. Have anybody here used ASP.NET MVC Framework in application/sample development? Thank you. -- Shamil _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com __________ Information from ESET NOD32 Antivirus, version of virus signature database 4194 (20090628) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru __________ Information from ESET NOD32 Antivirus, version of virus signature database 4195 (20090629) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru From ssharkins at gmail.com Mon Jun 29 09:26:36 2009 From: ssharkins at gmail.com (Susan Harkins) Date: Mon, 29 Jun 2009 10:26:36 -0400 Subject: [dba-VB] Article from Gustav Message-ID: <4BB427CF4F6549BD96A293618675E1FE@SusanOne> <http://www.devx.com:80/vb/Article/42242/0/page/1> I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so proud... yet another ones passes safely to single author status. :) Susan H. From max.wanadoo at gmail.com Mon Jun 29 10:38:50 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 29 Jun 2009 16:38:50 +0100 Subject: [dba-VB] Article from Gustav In-Reply-To: <4BB427CF4F6549BD96A293618675E1FE@SusanOne> References: <4BB427CF4F6549BD96A293618675E1FE@SusanOne> Message-ID: <4a48e00e.0707d00a.5973.0ded@mx.google.com> Hmmmm, might be worth a download in that case... Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: 29 June 2009 15:27 To: VBLIst Subject: [dba-VB] Article from Gustav <http://www.devx.com:80/vb/Article/42242/0/page/1> I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so proud... yet another ones passes safely to single author status. :) Susan H. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From ssharkins at gmail.com Mon Jun 29 10:47:13 2009 From: ssharkins at gmail.com (Susan Harkins) Date: Mon, 29 Jun 2009 11:47:13 -0400 Subject: [dba-VB] Article from Gustav References: <4BB427CF4F6549BD96A293618675E1FE@SusanOne> <4a48e00e.0707d00a.5973.0ded@mx.google.com> Message-ID: <4019EE1CA03549269167437E82A3E175@SusanOne> You know, I can create a rule and ignore you. ;) Susan H. > Hmmmm, might be worth a download in that case... > > <http://www.devx.com:80/vb/Article/42242/0/page/1> > > I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so > proud... yet another ones passes safely to single author status. :) From max.wanadoo at gmail.com Mon Jun 29 10:49:28 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 29 Jun 2009 16:49:28 +0100 Subject: [dba-VB] Article from Gustav In-Reply-To: <4019EE1CA03549269167437E82A3E175@SusanOne> References: <4BB427CF4F6549BD96A293618675E1FE@SusanOne> <4a48e00e.0707d00a.5973.0ded@mx.google.com> <4019EE1CA03549269167437E82A3E175@SusanOne> Message-ID: <4a48e28e.0506d00a.3751.0cd0@mx.google.com> You love me too much.... Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: 29 June 2009 16:47 To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Article from Gustav You know, I can create a rule and ignore you. ;) Susan H. > Hmmmm, might be worth a download in that case... > > <http://www.devx.com:80/vb/Article/42242/0/page/1> > > I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so > proud... yet another ones passes safely to single author status. :) _______________________________________________ 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 Jun 29 10:52:39 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 29 Jun 2009 11:52:39 -0400 Subject: [dba-VB] Syslogs In-Reply-To: <4BB427CF4F6549BD96A293618675E1FE@SusanOne> References: <4BB427CF4F6549BD96A293618675E1FE@SusanOne> Message-ID: <4A48E347.9090908@colbyconsulting.com> Hmm... Looks quite cool. My mind is a raging torrent, flooded with rivulets of thought cascading into a waterfall of creative alternatives. Now... how do we determine the IP address of every machine using an Access application on the local LAN? John W. Colby www.ColbyConsulting.com Susan Harkins wrote: > <http://www.devx.com:80/vb/Article/42242/0/page/1> > > I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so > proud... yet another ones passes safely to single author status. :) > > Susan H. > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From Gustav at cactus.dk Mon Jun 29 10:55:15 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 29 Jun 2009 17:55:15 +0200 Subject: [dba-VB] ASP.NET MVC Framework Message-ID: <sa490025.061@cactus.dk> Hi Shamil Thanks for the review. Very useful. No, I don't think you have missed anything. It is my impression that using MVC requires a lot and if you can top that with some real challenges for data handling, I think I'll allocate my limited resources elsewhere. /gustav >>> shamil at smsconsulting.spb.ru 29-06-2009 12:44 >>> Hi Gustav and all, I have got read "ASP.NET MVC 1.0 Quickly" By Maarten Balliauw over weekend. Good book for starters with ASP.NET MVC 1.0 as I'm. As for ASP.NET MVC 1.0 - after reading the above book I decided to wait what will come in ASP.NET MVC 2.0: ASP.NET MVC 1.0 is built on top of ASP.NET and I'm now under impression now that it's more a "marketing tool"/R&D project than a robust framework for application development - at least developing web pages to present and edit parent/detail relationships/data promise to be a real PITA with ASP.NET MVC 1.0. ASP.NET MVC 1.0 is good for simple sites as http://stackoverflow.com/ is. One can mix ASP.NET WebForms with ASP.NET MVC 1.0 within one web application but I must say I do not see strong reasons to do that if one has good working knowledge of ASP.NET 3.5. ... I can be missing something... What are your opinions? Thank you. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Sunday, June 28, 2009 1:28 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] ASP.NET MVC Framework Hi Shamil Great! But as you, I can open the first page, that's all. Some MVC deployment guide must exist somewhere ... this weekend I'm busy with construction work at our house so I don't have much time looking into this before Monday or Tuesday. /gustav >>> shamil at smsconsulting.spb.ru 27-06-2009 12:56 >>> Hi Gustav, I have made sample MVC project - just generated from standard template in VS2008 SP1. It works well locally. I have put it here on Internet: http://shamils-4.hosting.parking.ru/myMvcApplication1/ As you can find it starts OK but links do not work - my guess there is something wrong with those SEO links routing to actual .aspx page - haven't you seen anywhere where should I look in my MVC sample project to fix the issue? (it may also happen that some special settings should be done on ASP.Net server site for that SEO links routing to work properly. All in all MVC programming promise to be rather advanced activity (there are no prebuilt server side controls as when one uses ASP.NET WebForms etc.) but it should be worth the learning curve efforts? - it should become something like "Ruby On Rails" in the (near?) future releases? 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: Saturday, June 27, 2009 1:49 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] ASP.NET MVC Framework Hi Shamil Not me, but I have studied it a bit because the separation of the design in the Model, View and Control parts seems so logical. The fascinating aspect is if it is possible or feasible to transfer it from web design to Windows form design. Now, the Northwind.NET project doesn't contain much "model" work, but it could be an option to convert it to follow MVC design ... /gustav >>> shamil at smsconsulting.spb.ru 26-06-2009 22:10 >>> Hi All, I'm watching through ASP.NET MVC Framework web casts now "ASP.NET MVC Talks" http://www.asp.net/learn/mvc-videos/#MVCStorefrontStarterKit This technology looks interesting. I will probably try to use it in one small application for my new customer. Have anybody here used ASP.NET MVC Framework in application/sample development? Thank you. -- Shamil From ssharkins at gmail.com Mon Jun 29 10:57:31 2009 From: ssharkins at gmail.com (Susan Harkins) Date: Mon, 29 Jun 2009 11:57:31 -0400 Subject: [dba-VB] Syslogs References: <4BB427CF4F6549BD96A293618675E1FE@SusanOne> <4A48E347.9090908@colbyconsulting.com> Message-ID: <239A59C13E2B49DB9B1CC36B2D3FC947@SusanOne> > My mind is a raging torrent, flooded with rivulets of thought cascading > into a waterfall of creative > alternatives. =======That does explain quite a lot. ;) Susan H. From max.wanadoo at gmail.com Mon Jun 29 11:00:08 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 29 Jun 2009 17:00:08 +0100 Subject: [dba-VB] Syslogs In-Reply-To: <239A59C13E2B49DB9B1CC36B2D3FC947@SusanOne> References: <4BB427CF4F6549BD96A293618675E1FE@SusanOne> <4A48E347.9090908@colbyconsulting.com> <239A59C13E2B49DB9B1CC36B2D3FC947@SusanOne> Message-ID: <4a48e50d.1c05d00a.5a17.6c08@mx.google.com> It tells me that he has got Fortune Cookies switch on.... Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: 29 June 2009 16:58 To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Syslogs > My mind is a raging torrent, flooded with rivulets of thought cascading > into a waterfall of creative > alternatives. =======That does explain quite a lot. ;) Susan H. _______________________________________________ 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 Jun 29 11:08:21 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 29 Jun 2009 12:08:21 -0400 Subject: [dba-VB] Syslogs In-Reply-To: <4a48e50d.1c05d00a.5a17.6c08@mx.google.com> References: <4BB427CF4F6549BD96A293618675E1FE@SusanOne> <4A48E347.9090908@colbyconsulting.com> <239A59C13E2B49DB9B1CC36B2D3FC947@SusanOne> <4a48e50d.1c05d00a.5a17.6c08@mx.google.com> Message-ID: <4A48E6F5.8090000@colbyconsulting.com> A few too many passes through Blazing Saddles. ;) John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > It tells me that he has got Fortune Cookies switch on.... > > Max > > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Susan Harkins > Sent: 29 June 2009 16:58 > To: Discussion concerning Visual Basic and related programming issues. > Subject: Re: [dba-VB] Syslogs > >> My mind is a raging torrent, flooded with rivulets of thought cascading >> into a waterfall of creative >> alternatives. > > =======That does explain quite a lot. ;) > > Susan H. > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From max.wanadoo at gmail.com Mon Jun 29 11:12:01 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 29 Jun 2009 17:12:01 +0100 Subject: [dba-VB] Syslogs In-Reply-To: <4A48E6F5.8090000@colbyconsulting.com> References: <4BB427CF4F6549BD96A293618675E1FE@SusanOne> <4A48E347.9090908@colbyconsulting.com> <239A59C13E2B49DB9B1CC36B2D3FC947@SusanOne> <4a48e50d.1c05d00a.5a17.6c08@mx.google.com> <4A48E6F5.8090000@colbyconsulting.com> Message-ID: <4a48e7d6.0707d00a.5973.188c@mx.google.com> Try vodka...same effect...less typing ability... Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: 29 June 2009 17:08 To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Syslogs A few too many passes through Blazing Saddles. ;) John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > It tells me that he has got Fortune Cookies switch on.... > > Max > > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Susan Harkins > Sent: 29 June 2009 16:58 > To: Discussion concerning Visual Basic and related programming issues. > Subject: Re: [dba-VB] Syslogs > >> My mind is a raging torrent, flooded with rivulets of thought cascading >> into a waterfall of creative >> alternatives. > > =======That does explain quite a lot. ;) > > Susan H. > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From max.wanadoo at gmail.com Mon Jun 29 11:14:30 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 29 Jun 2009 17:14:30 +0100 Subject: [dba-VB] Syslogs In-Reply-To: <4A48E347.9090908@colbyconsulting.com> References: <4BB427CF4F6549BD96A293618675E1FE@SusanOne> <4A48E347.9090908@colbyconsulting.com> Message-ID: <4a48e86a.1c05d00a.538f.13fb@mx.google.com> Gustav, does this work under Access VBA? Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: 29 June 2009 16:53 To: Discussion concerning Visual Basic and related programming issues. Subject: [dba-VB] Syslogs Hmm... Looks quite cool. My mind is a raging torrent, flooded with rivulets of thought cascading into a waterfall of creative alternatives. Now... how do we determine the IP address of every machine using an Access application on the local LAN? John W. Colby www.ColbyConsulting.com Susan Harkins wrote: > <http://www.devx.com:80/vb/Article/42242/0/page/1> > > I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so > proud... yet another ones passes safely to single author status. :) > > Susan H. > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From max.wanadoo at gmail.com Mon Jun 29 11:19:08 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 29 Jun 2009 17:19:08 +0100 Subject: [dba-VB] Syslogs In-Reply-To: <4A48E347.9090908@colbyconsulting.com> References: <4BB427CF4F6549BD96A293618675E1FE@SusanOne> <4A48E347.9090908@colbyconsulting.com> Message-ID: <4a48e982.1701d00a.388e.0b31@mx.google.com> Do you mean IP address without having to go to the other workstation. If you just want to know what the IP address is, use VNC or RealVNC then you can just hover the mouse over the system tray icon and it will tell you the ip address. Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: 29 June 2009 16:53 To: Discussion concerning Visual Basic and related programming issues. Subject: [dba-VB] Syslogs Hmm... Looks quite cool. My mind is a raging torrent, flooded with rivulets of thought cascading into a waterfall of creative alternatives. Now... how do we determine the IP address of every machine using an Access application on the local LAN? John W. Colby www.ColbyConsulting.com Susan Harkins wrote: > <http://www.devx.com:80/vb/Article/42242/0/page/1> > > I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so > proud... yet another ones passes safely to single author status. :) > > Susan H. > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ 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 Jun 29 11:24:47 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 29 Jun 2009 18:24:47 +0200 Subject: [dba-VB] Article from Gustav Message-ID: <sa4906f9.063@cactus.dk> Hi Susan So you are counting us? I just thought you were lazy and this stuff was too nerded. So I was in trouble ... until I figured out I could take one of our previous articles and use as a skeleton. It worked out. Thanks! /gustav >>> ssharkins at gmail.com 29-06-2009 16:26 >>> <http://www.devx.com:80/vb/Article/42242/0/page/1> I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so proud... yet another ones passes safely to single author status. :) Susan H. From Gustav at cactus.dk Mon Jun 29 11:25:37 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 29 Jun 2009 18:25:37 +0200 Subject: [dba-VB] Syslogs Message-ID: <sa490735.064@cactus.dk> Hi John Ask the application to send you a syslog message! Then you can read the sender address or hostname. /gustav >>> jwcolby at colbyconsulting.com 29-06-2009 17:52 >>> Hmm... Looks quite cool. My mind is a raging torrent, flooded with rivulets of thought cascading into a waterfall of creative alternatives. Now... how do we determine the IP address of every machine using an Access application on the local LAN? John W. Colby www.ColbyConsulting.com Susan Harkins wrote: > <http://www.devx.com:80/vb/Article/42242/0/page/1> > > I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so > proud... yet another ones passes safely to single author status. :) > > Susan H. From jwcolby at colbyconsulting.com Mon Jun 29 11:27:55 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 29 Jun 2009 12:27:55 -0400 Subject: [dba-VB] Syslogs In-Reply-To: <4a48e982.1701d00a.388e.0b31@mx.google.com> References: <4BB427CF4F6549BD96A293618675E1FE@SusanOne> <4A48E347.9090908@colbyconsulting.com> <4a48e982.1701d00a.388e.0b31@mx.google.com> Message-ID: <4A48EB8B.7090901@colbyconsulting.com> No, I want the Access workstations to log their IP address in a table as Access opens so that I can read who is available to send messages to. The limitation of this kind of code is that you have to know an IP address. John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > Do you mean IP address without having to go to the other workstation. > > If you just want to know what the IP address is, use VNC or RealVNC then you > can just hover the mouse over the system tray icon and it will tell you the > ip address. > > Max > > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: 29 June 2009 16:53 > To: Discussion concerning Visual Basic and related programming issues. > Subject: [dba-VB] Syslogs > > Hmm... > > Looks quite cool. > > My mind is a raging torrent, flooded with rivulets of thought cascading into > a waterfall of creative > alternatives. > > Now... how do we determine the IP address of every machine using an Access > application on the local LAN? > > John W. Colby > www.ColbyConsulting.com > > > Susan Harkins wrote: >> <http://www.devx.com:80/vb/Article/42242/0/page/1> >> >> I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so >> proud... yet another ones passes safely to single author status. :) >> >> Susan H. >> >> _______________________________________________ >> dba-VB mailing list >> dba-VB at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/dba-vb >> http://www.databaseadvisors.com >> >> > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From max.wanadoo at gmail.com Mon Jun 29 11:29:19 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 29 Jun 2009 17:29:19 +0100 Subject: [dba-VB] Article from Gustav In-Reply-To: <sa4906f9.063@cactus.dk> References: <sa4906f9.063@cactus.dk> Message-ID: <4a48ebe4.0a04d00a.07b4.1a0b@mx.google.com> See Susan....Give children fish and they will be fed for the day...teach the children how to fish and they will be fed for ever.. Ps. And you were going to Rule-Me! Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 29 June 2009 17:25 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Article from Gustav Hi Susan So you are counting us? I just thought you were lazy and this stuff was too nerded. So I was in trouble ... until I figured out I could take one of our previous articles and use as a skeleton. It worked out. Thanks! /gustav >>> ssharkins at gmail.com 29-06-2009 16:26 >>> <http://www.devx.com:80/vb/Article/42242/0/page/1> I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so proud... yet another ones passes safely to single author status. :) Susan H. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From ssharkins at gmail.com Mon Jun 29 11:30:37 2009 From: ssharkins at gmail.com (Susan Harkins) Date: Mon, 29 Jun 2009 12:30:37 -0400 Subject: [dba-VB] Article from Gustav References: <sa4906f9.063@cactus.dk> Message-ID: <8291425A3CE9489A95F93FA6E0A2416E@SusanOne> > > So you are counting us? I just thought you were lazy and this stuff was > too nerded. ==========Counting us? Did I lose something in the translation? :) > So I was in trouble ... until I figured out I could take one of our > previous articles and use as a skeleton. > It worked out. Thanks! ==========That's all I do! ;) Susan H. From max.wanadoo at gmail.com Mon Jun 29 11:35:20 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 29 Jun 2009 17:35:20 +0100 Subject: [dba-VB] Syslogs In-Reply-To: <4A48EB8B.7090901@colbyconsulting.com> References: <4BB427CF4F6549BD96A293618675E1FE@SusanOne> <4A48E347.9090908@colbyconsulting.com> <4a48e982.1701d00a.388e.0b31@mx.google.com> <4A48EB8B.7090901@colbyconsulting.com> Message-ID: <4a48ed4e.0702d00a.3f5a.5e39@mx.google.com> Hmmm, ok I will think about that...but when you say "..so that I can..." do you mean your application or you as an individual? What I am getting at is, why not just send it to everyone? Why cherry-pick individuals? EG; on one of my apps, I have, oh, all sorts of messages flying around, but on each FE there is a timer running on the main menu and periodically it will go to see if there are any messages in the table which handles this sorta stuff. IF so, the user has a pop up with the option to Sleep for x mins (default to 15) before it reminds again. It will never go away until the user has read it, unless you (the originator) says it can time out. Sorta stuff...if you can get my drift. Don't need to send system messages. It is handled with the app. Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: 29 June 2009 17:28 To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Syslogs No, I want the Access workstations to log their IP address in a table as Access opens so that I can read who is available to send messages to. The limitation of this kind of code is that you have to know an IP address. John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > Do you mean IP address without having to go to the other workstation. > > If you just want to know what the IP address is, use VNC or RealVNC then you > can just hover the mouse over the system tray icon and it will tell you the > ip address. > > Max > > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: 29 June 2009 16:53 > To: Discussion concerning Visual Basic and related programming issues. > Subject: [dba-VB] Syslogs > > Hmm... > > Looks quite cool. > > My mind is a raging torrent, flooded with rivulets of thought cascading into > a waterfall of creative > alternatives. > > Now... how do we determine the IP address of every machine using an Access > application on the local LAN? > > John W. Colby > www.ColbyConsulting.com > > > Susan Harkins wrote: >> <http://www.devx.com:80/vb/Article/42242/0/page/1> >> >> I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so >> proud... yet another ones passes safely to single author status. :) >> >> Susan H. >> >> _______________________________________________ >> dba-VB mailing list >> dba-VB at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/dba-vb >> http://www.databaseadvisors.com >> >> > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Mon Jun 29 11:37:31 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 29 Jun 2009 12:37:31 -0400 Subject: [dba-VB] Syslogs In-Reply-To: <sa490735.064@cactus.dk> References: <sa490735.064@cactus.dk> Message-ID: <4A48EDCB.50706@colbyconsulting.com> LOL, but you still have to know your own IP address. We got into this one time, with Hamachi, VMs, multiple NICS etc. it is difficult to determine what my own IP address is. John W. Colby www.ColbyConsulting.com Gustav Brock wrote: > Hi John > > Ask the application to send you a syslog message! > Then you can read the sender address or hostname. > > /gustav > > >>>> jwcolby at colbyconsulting.com 29-06-2009 17:52 >>> > Hmm... > > Looks quite cool. > > My mind is a raging torrent, flooded with rivulets of thought cascading into a waterfall of creative > alternatives. > > Now... how do we determine the IP address of every machine using an Access application on the local LAN? > > John W. Colby > www.ColbyConsulting.com > > > Susan Harkins wrote: >> <http://www.devx.com:80/vb/Article/42242/0/page/1> >> >> I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so >> proud... yet another ones passes safely to single author status. :) >> >> Susan H. > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From Gustav at cactus.dk Mon Jun 29 11:37:29 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 29 Jun 2009 18:37:29 +0200 Subject: [dba-VB] Syslogs Message-ID: <sa490a08.065@cactus.dk> Hi Susan, Max et al This article: Create a Syslog Sender/Receiver Using the MS Winsock Control <quote> With the Microsoft WinSock Control and a few coding tricks, you can use Access as a high-performance syslog sender, receiver, and logger. </quote> _is_ in VBA! I have no idea why it was put in the VB section. In fact, given the current "discussion" on Access 2007, it is just about the only project I have made in Access 2007. I started out with this several years ago with Access 97 for fun, but when I recently got the chance to write and polish it up, I felt it had to be finished in A2007. If Steve is looking for "fans of the ribbon", don't count me in - I really looked for features or benefits of the ribbon but found none, sorry. /gustav >>> max.wanadoo at gmail.com 29-06-2009 18:14 >>> Gustav, does this work under Access VBA? Max -----Original Message----- Susan Harkins wrote: > <http://www.devx.com:80/vb/Article/42242/0/page/1> > > I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so > proud... yet another ones passes safely to single author status. :) > > Susan H. From andy at minstersystems.co.uk Mon Jun 29 11:40:56 2009 From: andy at minstersystems.co.uk (Andy Lacey) Date: Mon, 29 Jun 2009 17:40:56 +0100 Subject: [dba-VB] Article from Gustav In-Reply-To: <4BB427CF4F6549BD96A293618675E1FE@SusanOne> Message-ID: <B9B899E33A7F4B1285F004349D8FBF34@MINSTER> Congratulations....to both of you. andy -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: 29 June 2009 15:27 To: VBLIst Subject: [dba-VB] Article from Gustav <http://www.devx.com:80/vb/Article/42242/0/page/1> I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so proud... yet another ones passes safely to single author status. :) Susan H. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From max.wanadoo at gmail.com Mon Jun 29 11:51:50 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 29 Jun 2009 17:51:50 +0100 Subject: [dba-VB] Syslogs In-Reply-To: <sa490a08.065@cactus.dk> References: <sa490a08.065@cactus.dk> Message-ID: <4a48f12c.1818d00a.6a44.1a3d@mx.google.com> Run it in A2007K and opened the Demo form to get this error: .Protocol = sckUDPProtocol Run time error 438 Object doesn't support this property or method. Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 29 June 2009 17:37 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Syslogs Hi Susan, Max et al This article: Create a Syslog Sender/Receiver Using the MS Winsock Control <quote> With the Microsoft WinSock Control and a few coding tricks, you can use Access as a high-performance syslog sender, receiver, and logger. </quote> _is_ in VBA! I have no idea why it was put in the VB section. In fact, given the current "discussion" on Access 2007, it is just about the only project I have made in Access 2007. I started out with this several years ago with Access 97 for fun, but when I recently got the chance to write and polish it up, I felt it had to be finished in A2007. If Steve is looking for "fans of the ribbon", don't count me in - I really looked for features or benefits of the ribbon but found none, sorry. /gustav >>> max.wanadoo at gmail.com 29-06-2009 18:14 >>> Gustav, does this work under Access VBA? Max -----Original Message----- Susan Harkins wrote: > <http://www.devx.com:80/vb/Article/42242/0/page/1> > > I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so > proud... yet another ones passes safely to single author status. :) > > Susan H. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Mon Jun 29 11:55:54 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 29 Jun 2009 12:55:54 -0400 Subject: [dba-VB] Syslogs In-Reply-To: <4a48ed4e.0702d00a.3f5a.5e39@mx.google.com> References: <4BB427CF4F6549BD96A293618675E1FE@SusanOne> <4A48E347.9090908@colbyconsulting.com> <4a48e982.1701d00a.388e.0b31@mx.google.com> <4A48EB8B.7090901@colbyconsulting.com> <4a48ed4e.0702d00a.3f5a.5e39@mx.google.com> Message-ID: <4A48F21A.2090608@colbyconsulting.com> > What I am getting at is, why not just send it to everyone? Why cherry-pick individuals? This is an attempt to avoid the timer. I hate timers, though I use them in a server application. In a user application they cause screen blinking and also cause compile errors for the developer if the timer tries to execute code while you are typing in code. John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > Hmmm, ok I will think about that...but when you say "..so that I can..." do > you mean your application or you as an individual? > > What I am getting at is, why not just send it to everyone? Why cherry-pick > individuals? > > EG; on one of my apps, I have, oh, all sorts of messages flying around, but > on each FE there is a timer running on the main menu and periodically it > will go to see if there are any messages in the table which handles this > sorta stuff. IF so, the user has a pop up with the option to Sleep for x > mins (default to 15) before it reminds again. It will never go away until > the user has read it, unless you (the originator) says it can time out. > > Sorta stuff...if you can get my drift. Don't need to send system messages. > It is handled with the app. > > Max > > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: 29 June 2009 17:28 > To: Discussion concerning Visual Basic and related programming issues. > Subject: Re: [dba-VB] Syslogs > > No, I want the Access workstations to log their IP address in a table as > Access opens so that I can > read who is available to send messages to. > > The limitation of this kind of code is that you have to know an IP address. > > John W. Colby > www.ColbyConsulting.com > > > Max Wanadoo wrote: >> Do you mean IP address without having to go to the other workstation. >> >> If you just want to know what the IP address is, use VNC or RealVNC then > you >> can just hover the mouse over the system tray icon and it will tell you > the >> ip address. >> >> Max >> >> >> >> -----Original Message----- >> From: dba-vb-bounces at databaseadvisors.com >> [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby >> Sent: 29 June 2009 16:53 >> To: Discussion concerning Visual Basic and related programming issues. >> Subject: [dba-VB] Syslogs >> >> Hmm... >> >> Looks quite cool. >> >> My mind is a raging torrent, flooded with rivulets of thought cascading > into >> a waterfall of creative >> alternatives. >> >> Now... how do we determine the IP address of every machine using an Access >> application on the local LAN? >> >> John W. Colby >> www.ColbyConsulting.com >> >> >> Susan Harkins wrote: >>> <http://www.devx.com:80/vb/Article/42242/0/page/1> >>> >>> I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so > >>> proud... yet another ones passes safely to single author status. :) >>> >>> Susan H. >>> >>> _______________________________________________ >>> dba-VB mailing list >>> dba-VB at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/dba-vb >>> http://www.databaseadvisors.com >>> >>> >> _______________________________________________ >> dba-VB mailing list >> dba-VB at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/dba-vb >> http://www.databaseadvisors.com >> >> _______________________________________________ >> dba-VB mailing list >> dba-VB at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/dba-vb >> http://www.databaseadvisors.com >> >> > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ > 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 Jun 29 11:56:50 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 29 Jun 2009 18:56:50 +0200 Subject: [dba-VB] Syslogs Message-ID: <sa490e7e.066@cactus.dk> Hi John Well, you have to decide. If you wish to communicate, either the sender or the receiver has to identify itself. That drives anything on the Internet. And syslog is not broadcasting. If you wish to listen to any address on your local network or transmit to any address on the local network, you have to determine the address of your machine and the subnet mask and you can calculate all possible addresses. Note that network admins hate broadcasting applications as these are considered noisy. If you wish to communicate in or out of your local network, again you must know "something" about the machine(s) out there and your router will take care of the rest (if it and the firewall allows). The reason Hamachi and the like works is because they initially use port 80 (which can be considered open on any office network) and an external proxy to establish communication - so sender and receiver can identify each other. Nothing black magic here. syslog is fun because it is so primitive. This makes it an universal tool with heavy limitations but with nearly zero use of resources. What has been missing is prebuilt methods to read and write the messages from/to a database - to make it useful for people like us. This is what and how the article describes. /gustav >>> jwcolby at colbyconsulting.com 29-06-2009 18:37 >>> LOL, but you still have to know your own IP address. We got into this one time, with Hamachi, VMs, multiple NICS etc. it is difficult to determine what my own IP address is. John W. Colby www.ColbyConsulting.com Gustav Brock wrote: > Hi John > > Ask the application to send you a syslog message! > Then you can read the sender address or hostname. > > /gustav > > >>>> jwcolby at colbyconsulting.com 29-06-2009 17:52 >>> > Hmm... > > Looks quite cool. > > My mind is a raging torrent, flooded with rivulets of thought cascading into a waterfall of creative > alternatives. > > Now... how do we determine the IP address of every machine using an Access application on the local LAN? > > John W. Colby > www.ColbyConsulting.com > > > Susan Harkins wrote: >> <http://www.devx.com:80/vb/Article/42242/0/page/1> >> >> I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so >> proud... yet another ones passes safely to single author status. :) >> >> Susan H. From jwcolby at colbyconsulting.com Mon Jun 29 11:57:45 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 29 Jun 2009 12:57:45 -0400 Subject: [dba-VB] Syslogs In-Reply-To: <4a48ed4e.0702d00a.3f5a.5e39@mx.google.com> References: <4BB427CF4F6549BD96A293618675E1FE@SusanOne> <4A48E347.9090908@colbyconsulting.com> <4a48e982.1701d00a.388e.0b31@mx.google.com> <4A48EB8B.7090901@colbyconsulting.com> <4a48ed4e.0702d00a.3f5a.5e39@mx.google.com> Message-ID: <4A48F289.3040908@colbyconsulting.com> > What I am getting at is, why not just send it to everyone? Why cherry-pick individuals? This is an attempt to avoid the timer. I hate timers, though I use them in a server application. In a user application they cause screen blinking and also cause compile errors for the developer if the timer tries to execute code while you are typing in code. If I know the IP address of every PC that has an application running, I can send a message to just those PCs. But I have to know their IP addresses. If you are going to communicate through a table then this kind of code is unnecessary, but then a timer has to poll for messages in the table. YUK. John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > Hmmm, ok I will think about that...but when you say "..so that I can..." do > you mean your application or you as an individual? > > What I am getting at is, why not just send it to everyone? Why cherry-pick > individuals? > > EG; on one of my apps, I have, oh, all sorts of messages flying around, but > on each FE there is a timer running on the main menu and periodically it > will go to see if there are any messages in the table which handles this > sorta stuff. IF so, the user has a pop up with the option to Sleep for x > mins (default to 15) before it reminds again. It will never go away until > the user has read it, unless you (the originator) says it can time out. > > Sorta stuff...if you can get my drift. Don't need to send system messages. > It is handled with the app. > > Max > > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: 29 June 2009 17:28 > To: Discussion concerning Visual Basic and related programming issues. > Subject: Re: [dba-VB] Syslogs > > No, I want the Access workstations to log their IP address in a table as > Access opens so that I can > read who is available to send messages to. > > The limitation of this kind of code is that you have to know an IP address. > > John W. Colby > www.ColbyConsulting.com > > > Max Wanadoo wrote: >> Do you mean IP address without having to go to the other workstation. >> >> If you just want to know what the IP address is, use VNC or RealVNC then > you >> can just hover the mouse over the system tray icon and it will tell you > the >> ip address. >> >> Max >> >> >> >> -----Original Message----- >> From: dba-vb-bounces at databaseadvisors.com >> [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby >> Sent: 29 June 2009 16:53 >> To: Discussion concerning Visual Basic and related programming issues. >> Subject: [dba-VB] Syslogs >> >> Hmm... >> >> Looks quite cool. >> >> My mind is a raging torrent, flooded with rivulets of thought cascading > into >> a waterfall of creative >> alternatives. >> >> Now... how do we determine the IP address of every machine using an Access >> application on the local LAN? >> >> John W. Colby >> www.ColbyConsulting.com >> >> >> Susan Harkins wrote: >>> <http://www.devx.com:80/vb/Article/42242/0/page/1> >>> >>> I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so > >>> proud... yet another ones passes safely to single author status. :) >>> >>> Susan H. >>> >>> _______________________________________________ >>> dba-VB mailing list >>> dba-VB at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/dba-vb >>> http://www.databaseadvisors.com >>> >>> >> _______________________________________________ >> dba-VB mailing list >> dba-VB at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/dba-vb >> http://www.databaseadvisors.com >> >> _______________________________________________ >> dba-VB mailing list >> dba-VB at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/dba-vb >> http://www.databaseadvisors.com >> >> > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ > 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 Jun 29 12:07:59 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 29 Jun 2009 19:07:59 +0200 Subject: [dba-VB] Syslogs Message-ID: <sa491131.067@cactus.dk> Hi Max The paragraph on page 1, "The WinSock Control", is for you. You need both the license and the "compatibility". Thank you to MS and IE and the "Compatibility" flag. /gustav >>> max.wanadoo at gmail.com 29-06-2009 18:51 >>> Run it in A2007K and opened the Demo form to get this error: .Protocol = sckUDPProtocol Run time error 438 Object doesn't support this property or method. Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 29 June 2009 17:37 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Syslogs Hi Susan, Max et al This article: Create a Syslog Sender/Receiver Using the MS Winsock Control <quote> With the Microsoft WinSock Control and a few coding tricks, you can use Access as a high-performance syslog sender, receiver, and logger. </quote> _is_ in VBA! I have no idea why it was put in the VB section. In fact, given the current "discussion" on Access 2007, it is just about the only project I have made in Access 2007. I started out with this several years ago with Access 97 for fun, but when I recently got the chance to write and polish it up, I felt it had to be finished in A2007. If Steve is looking for "fans of the ribbon", don't count me in - I really looked for features or benefits of the ribbon but found none, sorry. /gustav >>> max.wanadoo at gmail.com 29-06-2009 18:14 >>> Gustav, does this work under Access VBA? Max -----Original Message----- Susan Harkins wrote: > <http://www.devx.com:80/vb/Article/42242/0/page/1> > > I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so > proud... yet another ones passes safely to single author status. :) > > Susan H. From max.wanadoo at gmail.com Mon Jun 29 12:09:38 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 29 Jun 2009 18:09:38 +0100 Subject: [dba-VB] Syslogs In-Reply-To: <4A48F289.3040908@colbyconsulting.com> References: <4BB427CF4F6549BD96A293618675E1FE@SusanOne> <4A48E347.9090908@colbyconsulting.com> <4a48e982.1701d00a.388e.0b31@mx.google.com> <4A48EB8B.7090901@colbyconsulting.com> <4a48ed4e.0702d00a.3f5a.5e39@mx.google.com> <4A48F289.3040908@colbyconsulting.com> Message-ID: <4a48f557.0707d00a.73ff.1dd1@mx.google.com> Yes, you are correct. But your options are (assuming you are going with the access table method) is: a. you can identity 1 or more individuals via the user table and/or see who is logged in, or ALL. b. you can determine the timer frequency to avoid the problems you describe. c. you can change the timer frequency programmatically if you need to send a FLASH message and then turn it back to "normal speed" after. d. you don't need to know any IP addresses or indeed any LAN info at all. e. It all happens within Access under your program control. f. User can respond, forward, take action etc. g. you can check your Outline Emails. h. you can call up any Office (or other) app, Word, excel etc (you know all this anyway) z. oh, and anything else that Access is capable of...the world (access world, that is) is your oyster (or lobster, if you follow Alan's youtube) Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: 29 June 2009 17:58 To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Syslogs > What I am getting at is, why not just send it to everyone? Why cherry-pick individuals? This is an attempt to avoid the timer. I hate timers, though I use them in a server application. In a user application they cause screen blinking and also cause compile errors for the developer if the timer tries to execute code while you are typing in code. If I know the IP address of every PC that has an application running, I can send a message to just those PCs. But I have to know their IP addresses. If you are going to communicate through a table then this kind of code is unnecessary, but then a timer has to poll for messages in the table. YUK. John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > Hmmm, ok I will think about that...but when you say "..so that I can..." do > you mean your application or you as an individual? > > What I am getting at is, why not just send it to everyone? Why cherry-pick > individuals? > > EG; on one of my apps, I have, oh, all sorts of messages flying around, but > on each FE there is a timer running on the main menu and periodically it > will go to see if there are any messages in the table which handles this > sorta stuff. IF so, the user has a pop up with the option to Sleep for x > mins (default to 15) before it reminds again. It will never go away until > the user has read it, unless you (the originator) says it can time out. > > Sorta stuff...if you can get my drift. Don't need to send system messages. > It is handled with the app. > > Max > > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: 29 June 2009 17:28 > To: Discussion concerning Visual Basic and related programming issues. > Subject: Re: [dba-VB] Syslogs > > No, I want the Access workstations to log their IP address in a table as > Access opens so that I can > read who is available to send messages to. > > The limitation of this kind of code is that you have to know an IP address. > > John W. Colby > www.ColbyConsulting.com > > > Max Wanadoo wrote: >> Do you mean IP address without having to go to the other workstation. >> >> If you just want to know what the IP address is, use VNC or RealVNC then > you >> can just hover the mouse over the system tray icon and it will tell you > the >> ip address. >> >> Max >> >> >> >> -----Original Message----- >> From: dba-vb-bounces at databaseadvisors.com >> [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby >> Sent: 29 June 2009 16:53 >> To: Discussion concerning Visual Basic and related programming issues. >> Subject: [dba-VB] Syslogs >> >> Hmm... >> >> Looks quite cool. >> >> My mind is a raging torrent, flooded with rivulets of thought cascading > into >> a waterfall of creative >> alternatives. >> >> Now... how do we determine the IP address of every machine using an Access >> application on the local LAN? >> >> John W. Colby >> www.ColbyConsulting.com >> >> >> Susan Harkins wrote: >>> <http://www.devx.com:80/vb/Article/42242/0/page/1> >>> >>> I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so > >>> proud... yet another ones passes safely to single author status. :) >>> >>> Susan H. >>> >>> _______________________________________________ >>> dba-VB mailing list >>> dba-VB at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/dba-vb >>> http://www.databaseadvisors.com >>> >>> >> _______________________________________________ >> dba-VB mailing list >> dba-VB at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/dba-vb >> http://www.databaseadvisors.com >> >> _______________________________________________ >> dba-VB mailing list >> dba-VB at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/dba-vb >> http://www.databaseadvisors.com >> >> > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From max.wanadoo at gmail.com Mon Jun 29 12:30:26 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 29 Jun 2009 18:30:26 +0100 Subject: [dba-VB] Syslogs In-Reply-To: <sa491131.067@cactus.dk> References: <sa491131.067@cactus.dk> Message-ID: <4a48fa36.0a1ad00a.270f.343d@mx.google.com> Yes that cured it. I used the one included with the download. The demo form seems to work, but I don't receive any msg at localhost Get back to you on the others. Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 29 June 2009 18:08 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Syslogs Hi Max The paragraph on page 1, "The WinSock Control", is for you. You need both the license and the "compatibility". Thank you to MS and IE and the "Compatibility" flag. /gustav >>> max.wanadoo at gmail.com 29-06-2009 18:51 >>> Run it in A2007K and opened the Demo form to get this error: .Protocol = sckUDPProtocol Run time error 438 Object doesn't support this property or method. Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 29 June 2009 17:37 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Syslogs Hi Susan, Max et al This article: Create a Syslog Sender/Receiver Using the MS Winsock Control <quote> With the Microsoft WinSock Control and a few coding tricks, you can use Access as a high-performance syslog sender, receiver, and logger. </quote> _is_ in VBA! I have no idea why it was put in the VB section. In fact, given the current "discussion" on Access 2007, it is just about the only project I have made in Access 2007. I started out with this several years ago with Access 97 for fun, but when I recently got the chance to write and polish it up, I felt it had to be finished in A2007. If Steve is looking for "fans of the ribbon", don't count me in - I really looked for features or benefits of the ribbon but found none, sorry. /gustav >>> max.wanadoo at gmail.com 29-06-2009 18:14 >>> Gustav, does this work under Access VBA? Max -----Original Message----- Susan Harkins wrote: > <http://www.devx.com:80/vb/Article/42242/0/page/1> > > I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so > proud... yet another ones passes safely to single author status. :) > > Susan H. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Mon Jun 29 12:35:55 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 29 Jun 2009 13:35:55 -0400 Subject: [dba-VB] SPAM-LOW: Re: Syslogs In-Reply-To: <4a48f557.0707d00a.73ff.1dd1@mx.google.com> References: <4BB427CF4F6549BD96A293618675E1FE@SusanOne> <4A48E347.9090908@colbyconsulting.com> <4a48e982.1701d00a.388e.0b31@mx.google.com> <4A48EB8B.7090901@colbyconsulting.com> <4a48ed4e.0702d00a.3f5a.5e39@mx.google.com> <4A48F289.3040908@colbyconsulting.com> <4a48f557.0707d00a.73ff.1dd1@mx.google.com> Message-ID: <4A48FB7B.8030604@colbyconsulting.com> Max, I know all this. I write classes, and those classes can raise events. Events are much like this thing of Gustavs, a message is sent and if someone gets it fine. That is often useful As an example, I cache frequently used data in class instances, one per record from the table. It would be nice to have a message that is sent to everyone in the database if anyone modifies the data in the cached table. But I don't want to have to continuously poll a table looking for a message. If a message is sent saying that the cached data changes, then I rebuild the cache. That is the kind of thing that this code could possibly add to an application, HOWEVER... everyone has to know the IP address of everyone else that is in the database. I have been looking for this kind of messaging thing for YEARS. John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > Yes, you are correct. > > But your options are (assuming you are going with the access table method) > is: > > a. you can identity 1 or more individuals via the user table and/or see who > is logged in, or ALL. > b. you can determine the timer frequency to avoid the problems you describe. > c. you can change the timer frequency programmatically if you need to send a > FLASH message and then turn it back to "normal speed" after. > d. you don't need to know any IP addresses or indeed any LAN info at all. > e. It all happens within Access under your program control. > f. User can respond, forward, take action etc. > g. you can check your Outline Emails. > h. you can call up any Office (or other) app, Word, excel etc (you know all > this anyway) > z. oh, and anything else that Access is capable of...the world (access > world, that is) is your oyster (or lobster, if you follow Alan's youtube) > > > > Max > > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: 29 June 2009 17:58 > To: Discussion concerning Visual Basic and related programming issues. > Subject: Re: [dba-VB] Syslogs > > > What I am getting at is, why not just send it to everyone? Why > cherry-pick individuals? > > This is an attempt to avoid the timer. I hate timers, though I use them in > a server application. > In a user application they cause screen blinking and also cause compile > errors for the developer if > the timer tries to execute code while you are typing in code. > > If I know the IP address of every PC that has an application running, I can > send a message to just > those PCs. But I have to know their IP addresses. > > If you are going to communicate through a table then this kind of code is > unnecessary, but then a > timer has to poll for messages in the table. YUK. > > John W. Colby > www.ColbyConsulting.com > > > Max Wanadoo wrote: >> Hmmm, ok I will think about that...but when you say "..so that I can..." > do >> you mean your application or you as an individual? >> >> What I am getting at is, why not just send it to everyone? Why > cherry-pick >> individuals? >> >> EG; on one of my apps, I have, oh, all sorts of messages flying around, > but >> on each FE there is a timer running on the main menu and periodically it >> will go to see if there are any messages in the table which handles this >> sorta stuff. IF so, the user has a pop up with the option to Sleep for x >> mins (default to 15) before it reminds again. It will never go away until >> the user has read it, unless you (the originator) says it can time out. >> >> Sorta stuff...if you can get my drift. Don't need to send system > messages. >> It is handled with the app. >> >> Max >> >> >> >> -----Original Message----- >> From: dba-vb-bounces at databaseadvisors.com >> [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby >> Sent: 29 June 2009 17:28 >> To: Discussion concerning Visual Basic and related programming issues. >> Subject: Re: [dba-VB] Syslogs >> >> No, I want the Access workstations to log their IP address in a table as >> Access opens so that I can >> read who is available to send messages to. >> >> The limitation of this kind of code is that you have to know an IP > address. >> John W. Colby >> www.ColbyConsulting.com >> >> >> Max Wanadoo wrote: >>> Do you mean IP address without having to go to the other workstation. >>> >>> If you just want to know what the IP address is, use VNC or RealVNC then >> you >>> can just hover the mouse over the system tray icon and it will tell you >> the >>> ip address. >>> >>> Max >>> >>> >>> >>> -----Original Message----- >>> From: dba-vb-bounces at databaseadvisors.com >>> [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby >>> Sent: 29 June 2009 16:53 >>> To: Discussion concerning Visual Basic and related programming issues. >>> Subject: [dba-VB] Syslogs >>> >>> Hmm... >>> >>> Looks quite cool. >>> >>> My mind is a raging torrent, flooded with rivulets of thought cascading >> into >>> a waterfall of creative >>> alternatives. >>> >>> Now... how do we determine the IP address of every machine using an > Access >>> application on the local LAN? >>> >>> John W. Colby >>> www.ColbyConsulting.com >>> >>> >>> Susan Harkins wrote: >>>> <http://www.devx.com:80/vb/Article/42242/0/page/1> >>>> >>>> I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm > so >>>> proud... yet another ones passes safely to single author status. :) >>>> >>>> Susan H. >>>> >>>> _______________________________________________ >>>> dba-VB mailing list >>>> dba-VB at databaseadvisors.com >>>> http://databaseadvisors.com/mailman/listinfo/dba-vb >>>> http://www.databaseadvisors.com >>>> >>>> >>> _______________________________________________ >>> dba-VB mailing list >>> dba-VB at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/dba-vb >>> http://www.databaseadvisors.com >>> >>> _______________________________________________ >>> dba-VB mailing list >>> dba-VB at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/dba-vb >>> http://www.databaseadvisors.com >>> >>> >> _______________________________________________ >> dba-VB mailing list >> dba-VB at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/dba-vb >> http://www.databaseadvisors.com >> >> _______________________________________________ >> dba-VB mailing list >> dba-VB at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/dba-vb >> http://www.databaseadvisors.com >> >> > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From max.wanadoo at gmail.com Mon Jun 29 12:44:20 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 29 Jun 2009 18:44:20 +0100 Subject: [dba-VB] SPAM-LOW: Re: Syslogs In-Reply-To: <4A48FB7B.8030604@colbyconsulting.com> References: <4BB427CF4F6549BD96A293618675E1FE@SusanOne> <4A48E347.9090908@colbyconsulting.com> <4a48e982.1701d00a.388e.0b31@mx.google.com> <4A48EB8B.7090901@colbyconsulting.com> <4a48ed4e.0702d00a.3f5a.5e39@mx.google.com> <4A48F289.3040908@colbyconsulting.com> <4a48f557.0707d00a.73ff.1dd1@mx.google.com> <4A48FB7B.8030604@colbyconsulting.com> Message-ID: <4a48fd78.0508d00a.0641.ffff8f62@mx.google.com> Well, if you change your mind on the TIMER then you can take this route. I have been using it for 8 years now without any problem. I agree that it can be aggravating when typing code to have it "interrupt" but that is avoidable if you wanted. I will see what i can find out re identifying IP addresses. Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: 29 June 2009 18:36 To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] SPAM-LOW: Re: Syslogs Max, I know all this. I write classes, and those classes can raise events. Events are much like this thing of Gustavs, a message is sent and if someone gets it fine. That is often useful As an example, I cache frequently used data in class instances, one per record from the table. It would be nice to have a message that is sent to everyone in the database if anyone modifies the data in the cached table. But I don't want to have to continuously poll a table looking for a message. If a message is sent saying that the cached data changes, then I rebuild the cache. That is the kind of thing that this code could possibly add to an application, HOWEVER... everyone has to know the IP address of everyone else that is in the database. I have been looking for this kind of messaging thing for YEARS. John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > Yes, you are correct. > > But your options are (assuming you are going with the access table method) > is: > > a. you can identity 1 or more individuals via the user table and/or see who > is logged in, or ALL. > b. you can determine the timer frequency to avoid the problems you describe. > c. you can change the timer frequency programmatically if you need to send a > FLASH message and then turn it back to "normal speed" after. > d. you don't need to know any IP addresses or indeed any LAN info at all. > e. It all happens within Access under your program control. > f. User can respond, forward, take action etc. > g. you can check your Outline Emails. > h. you can call up any Office (or other) app, Word, excel etc (you know all > this anyway) > z. oh, and anything else that Access is capable of...the world (access > world, that is) is your oyster (or lobster, if you follow Alan's youtube) > > > > Max > > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: 29 June 2009 17:58 > To: Discussion concerning Visual Basic and related programming issues. > Subject: Re: [dba-VB] Syslogs > > > What I am getting at is, why not just send it to everyone? Why > cherry-pick individuals? > > This is an attempt to avoid the timer. I hate timers, though I use them in > a server application. > In a user application they cause screen blinking and also cause compile > errors for the developer if > the timer tries to execute code while you are typing in code. > > If I know the IP address of every PC that has an application running, I can > send a message to just > those PCs. But I have to know their IP addresses. > > If you are going to communicate through a table then this kind of code is > unnecessary, but then a > timer has to poll for messages in the table. YUK. > > John W. Colby > www.ColbyConsulting.com > > > Max Wanadoo wrote: >> Hmmm, ok I will think about that...but when you say "..so that I can..." > do >> you mean your application or you as an individual? >> >> What I am getting at is, why not just send it to everyone? Why > cherry-pick >> individuals? >> >> EG; on one of my apps, I have, oh, all sorts of messages flying around, > but >> on each FE there is a timer running on the main menu and periodically it >> will go to see if there are any messages in the table which handles this >> sorta stuff. IF so, the user has a pop up with the option to Sleep for x >> mins (default to 15) before it reminds again. It will never go away until >> the user has read it, unless you (the originator) says it can time out. >> >> Sorta stuff...if you can get my drift. Don't need to send system > messages. >> It is handled with the app. >> >> Max >> >> >> >> -----Original Message----- >> From: dba-vb-bounces at databaseadvisors.com >> [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby >> Sent: 29 June 2009 17:28 >> To: Discussion concerning Visual Basic and related programming issues. >> Subject: Re: [dba-VB] Syslogs >> >> No, I want the Access workstations to log their IP address in a table as >> Access opens so that I can >> read who is available to send messages to. >> >> The limitation of this kind of code is that you have to know an IP > address. >> John W. Colby >> www.ColbyConsulting.com >> >> >> Max Wanadoo wrote: >>> Do you mean IP address without having to go to the other workstation. >>> >>> If you just want to know what the IP address is, use VNC or RealVNC then >> you >>> can just hover the mouse over the system tray icon and it will tell you >> the >>> ip address. >>> >>> Max >>> >>> >>> >>> -----Original Message----- >>> From: dba-vb-bounces at databaseadvisors.com >>> [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby >>> Sent: 29 June 2009 16:53 >>> To: Discussion concerning Visual Basic and related programming issues. >>> Subject: [dba-VB] Syslogs >>> >>> Hmm... >>> >>> Looks quite cool. >>> >>> My mind is a raging torrent, flooded with rivulets of thought cascading >> into >>> a waterfall of creative >>> alternatives. >>> >>> Now... how do we determine the IP address of every machine using an > Access >>> application on the local LAN? >>> >>> John W. Colby >>> www.ColbyConsulting.com >>> >>> >>> Susan Harkins wrote: >>>> <http://www.devx.com:80/vb/Article/42242/0/page/1> >>>> >>>> I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm > so >>>> proud... yet another ones passes safely to single author status. :) >>>> >>>> Susan H. >>>> >>>> _______________________________________________ >>>> dba-VB mailing list >>>> dba-VB at databaseadvisors.com >>>> http://databaseadvisors.com/mailman/listinfo/dba-vb >>>> http://www.databaseadvisors.com >>>> >>>> >>> _______________________________________________ >>> dba-VB mailing list >>> dba-VB at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/dba-vb >>> http://www.databaseadvisors.com >>> >>> _______________________________________________ >>> dba-VB mailing list >>> dba-VB at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/dba-vb >>> http://www.databaseadvisors.com >>> >>> >> _______________________________________________ >> dba-VB mailing list >> dba-VB at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/dba-vb >> http://www.databaseadvisors.com >> >> _______________________________________________ >> dba-VB mailing list >> dba-VB at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/dba-vb >> http://www.databaseadvisors.com >> >> > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ 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 Jun 29 13:05:46 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 29 Jun 2009 14:05:46 -0400 Subject: [dba-VB] SPAM-LOW: Re: Syslogs In-Reply-To: <sa490e7e.066@cactus.dk> References: <sa490e7e.066@cactus.dk> Message-ID: <4A49027A.5000604@colbyconsulting.com> Gustav, As I mentioned, I have been looking for something like this for years, however everyone has to have a list of IPs that can be used with it to make it useful. I suppose I could kind of bootstrap this thing. The server address could be found by manual observation, then logged in a table along with the machine name. Each application FE instance looks and sends a message that it is logged in. The RECEIVER grabs the IP address and looks it up in the table. If not there it stores the IP in the table. Of course then the machine name has to be included in the message. I suppose that I could develop a message library, such that every time an application it fires a LOGIN message to everyone already in the table. The login message has a machine name as the data and apparently this widget automatically gets the IP address. My clients rarely have more than 25 or so workstations running the application so this shouldn't cause too much grief. Thus anyone listening logs the new person's data into the table if it isn't already there. Kind of crude but that allows any single running application (that you can manually get the IP for) to bootstrap the system and build the list of IPs and machine names. John W. Colby www.ColbyConsulting.com Gustav Brock wrote: > Hi John > > Well, you have to decide. If you wish to communicate, either the sender or the receiver has to identify itself. That drives anything on the Internet. > > And syslog is not broadcasting. If you wish to listen to any address on your local network or transmit to any address on the local network, you have to determine the address of your machine and the subnet mask and you can calculate all possible addresses. Note that network admins hate broadcasting applications as these are considered noisy. > If you wish to communicate in or out of your local network, again you must know "something" about the machine(s) out there and your router will take care of the rest (if it and the firewall allows). > > The reason Hamachi and the like works is because they initially use port 80 (which can be considered open on any office network) and an external proxy to establish communication - so sender and receiver can identify each other. Nothing black magic here. > > syslog is fun because it is so primitive. This makes it an universal tool with heavy limitations but with nearly zero use of resources. What has been missing is prebuilt methods to read and write the messages from/to a database - to make it useful for people like us. This is what and how the article describes. > > /gustav From jwcolby at colbyconsulting.com Mon Jun 29 13:11:06 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 29 Jun 2009 14:11:06 -0400 Subject: [dba-VB] Syslogs In-Reply-To: <4a48fa36.0a1ad00a.270f.343d@mx.google.com> References: <sa491131.067@cactus.dk> <4a48fa36.0a1ad00a.270f.343d@mx.google.com> Message-ID: <4A4903BA.3080406@colbyconsulting.com> Does this imply that the winsock control is not native to Access? John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > Yes that cured it. I used the one included with the download. > > The demo form seems to work, but I don't receive any msg at localhost > > Get back to you on the others. > > Max > > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: 29 June 2009 18:08 > To: dba-vb at databaseadvisors.com > Subject: Re: [dba-VB] Syslogs > > Hi Max > > The paragraph on page 1, "The WinSock Control", is for you. > You need both the license and the "compatibility". > > Thank you to MS and IE and the "Compatibility" flag. > > /gustav > > >>>> max.wanadoo at gmail.com 29-06-2009 18:51 >>> > Run it in A2007K and opened the Demo form to get this error: > > .Protocol = sckUDPProtocol > Run time error 438 > Object doesn't support this property or method. > > Max > > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: 29 June 2009 17:37 > To: dba-vb at databaseadvisors.com > Subject: Re: [dba-VB] Syslogs > > Hi Susan, Max et al > > This article: > > Create a Syslog Sender/Receiver Using the MS Winsock Control > > <quote> > With the Microsoft WinSock Control and a few coding tricks, you can use > Access as a high-performance syslog sender, receiver, and logger. > </quote> > > _is_ in VBA! I have no idea why it was put in the VB section. > > In fact, given the current "discussion" on Access 2007, it is just about the > only project I have made in Access 2007. > I started out with this several years ago with Access 97 for fun, but when I > recently got the chance to write and polish it up, I felt it had to be > finished in A2007. If Steve is looking for "fans of the ribbon", don't count > me in - I really looked for features or benefits of the ribbon but found > none, sorry. > > /gustav > > >>>> max.wanadoo at gmail.com 29-06-2009 18:14 >>> > Gustav, does this work under Access VBA? > > Max > > > -----Original Message----- > > Susan Harkins wrote: >> <http://www.devx.com:80/vb/Article/42242/0/page/1> >> >> I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so >> proud... yet another ones passes safely to single author status. :) >> >> Susan H. > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From max.wanadoo at gmail.com Mon Jun 29 13:16:51 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 29 Jun 2009 19:16:51 +0100 Subject: [dba-VB] Syslogs In-Reply-To: <4A4903BA.3080406@colbyconsulting.com> References: <sa491131.067@cactus.dk> <4a48fa36.0a1ad00a.270f.343d@mx.google.com> <4A4903BA.3080406@colbyconsulting.com> Message-ID: <4a490517.0506d00a.64c6.2364@mx.google.com> Hmmm, don't know..Gustav? It certainly required registering on my laptop with A2007K Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: 29 June 2009 19:11 To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Syslogs Does this imply that the winsock control is not native to Access? John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > Yes that cured it. I used the one included with the download. > > The demo form seems to work, but I don't receive any msg at localhost > > Get back to you on the others. > > Max > > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: 29 June 2009 18:08 > To: dba-vb at databaseadvisors.com > Subject: Re: [dba-VB] Syslogs > > Hi Max > > The paragraph on page 1, "The WinSock Control", is for you. > You need both the license and the "compatibility". > > Thank you to MS and IE and the "Compatibility" flag. > > /gustav > > >>>> max.wanadoo at gmail.com 29-06-2009 18:51 >>> > Run it in A2007K and opened the Demo form to get this error: > > .Protocol = sckUDPProtocol > Run time error 438 > Object doesn't support this property or method. > > Max > > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: 29 June 2009 17:37 > To: dba-vb at databaseadvisors.com > Subject: Re: [dba-VB] Syslogs > > Hi Susan, Max et al > > This article: > > Create a Syslog Sender/Receiver Using the MS Winsock Control > > <quote> > With the Microsoft WinSock Control and a few coding tricks, you can use > Access as a high-performance syslog sender, receiver, and logger. > </quote> > > _is_ in VBA! I have no idea why it was put in the VB section. > > In fact, given the current "discussion" on Access 2007, it is just about the > only project I have made in Access 2007. > I started out with this several years ago with Access 97 for fun, but when I > recently got the chance to write and polish it up, I felt it had to be > finished in A2007. If Steve is looking for "fans of the ribbon", don't count > me in - I really looked for features or benefits of the ribbon but found > none, sorry. > > /gustav > > >>>> max.wanadoo at gmail.com 29-06-2009 18:14 >>> > Gustav, does this work under Access VBA? > > Max > > > -----Original Message----- > > Susan Harkins wrote: >> <http://www.devx.com:80/vb/Article/42242/0/page/1> >> >> I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so >> proud... yet another ones passes safely to single author status. :) >> >> Susan H. > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From Gustav at cactus.dk Mon Jun 29 13:21:36 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 29 Jun 2009 20:21:36 +0200 Subject: [dba-VB] Syslogs Message-ID: <sa492274.073@cactus.dk> Hi John Join Max and read the article ... same paragraph. http://www.devx.com:80/vb/Article/42242/0/page/1 <quote> The actual transmission of syslog messages between your application and Windows is left to the WinSock Control, which came with Visual Basic 6 and some old versions of the Access Developer Tools. Further, you can download the control from several places, which include tools to correct a corrupted install. </quote> /gustav >>> jwcolby at colbyconsulting.com 29-06-2009 20:11 >>> Does this imply that the winsock control is not native to Access? John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > Yes that cured it. I used the one included with the download. > > The demo form seems to work, but I don't receive any msg at localhost > > Get back to you on the others. > > Max > > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: 29 June 2009 18:08 > To: dba-vb at databaseadvisors.com > Subject: Re: [dba-VB] Syslogs > > Hi Max > > The paragraph on page 1, "The WinSock Control", is for you. > You need both the license and the "compatibility". > > Thank you to MS and IE and the "Compatibility" flag. > > /gustav From shamil at smsconsulting.spb.ru Mon Jun 29 13:24:34 2009 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Mon, 29 Jun 2009 22:24:34 +0400 Subject: [dba-VB] SPAM-LOW: Re: Syslogs In-Reply-To: <4A49027A.5000604@colbyconsulting.com> References: <sa490e7e.066@cactus.dk> <4A49027A.5000604@colbyconsulting.com> Message-ID: <001001c9f8e6$dbc4e3d0$934eab70$@spb.ru> Hi John, What about Peer-To-Peer Networked Apps http://msdn.microsoft.com/en-us/magazine/cc301833.aspx ? Could that technology help to solve your task? - it doesn't need IP addresses known in advance... -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Monday, June 29, 2009 10:06 PM To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] SPAM-LOW: Re: Syslogs Gustav, As I mentioned, I have been looking for something like this for years, however everyone has to have a list of IPs that can be used with it to make it useful. I suppose I could kind of bootstrap this thing. The server address could be found by manual observation, then logged in a table along with the machine name. Each application FE instance looks and sends a message that it is logged in. The RECEIVER grabs the IP address and looks it up in the table. If not there it stores the IP in the table. Of course then the machine name has to be included in the message. I suppose that I could develop a message library, such that every time an application it fires a LOGIN message to everyone already in the table. The login message has a machine name as the data and apparently this widget automatically gets the IP address. My clients rarely have more than 25 or so workstations running the application so this shouldn't cause too much grief. Thus anyone listening logs the new person's data into the table if it isn't already there. Kind of crude but that allows any single running application (that you can manually get the IP for) to bootstrap the system and build the list of IPs and machine names. John W. Colby www.ColbyConsulting.com Gustav Brock wrote: > Hi John > > Well, you have to decide. If you wish to communicate, either the sender or the receiver has to identify itself. That drives anything on the Internet. > > And syslog is not broadcasting. If you wish to listen to any address on your local network or transmit to any address on the local network, you have to determine the address of your machine and the subnet mask and you can calculate all possible addresses. Note that network admins hate broadcasting applications as these are considered noisy. > If you wish to communicate in or out of your local network, again you must know "something" about the machine(s) out there and your router will take care of the rest (if it and the firewall allows). > > The reason Hamachi and the like works is because they initially use port 80 (which can be considered open on any office network) and an external proxy to establish communication - so sender and receiver can identify each other. Nothing black magic here. > > syslog is fun because it is so primitive. This makes it an universal tool with heavy limitations but with nearly zero use of resources. What has been missing is prebuilt methods to read and write the messages from/to a database - to make it useful for people like us. This is what and how the article describes. > > /gustav _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com __________ Information from ESET NOD32 Antivirus, version of virus signature database 4197 (20090629) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru __________ Information from ESET NOD32 Antivirus, version of virus signature database 4197 (20090629) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru From max.wanadoo at gmail.com Mon Jun 29 13:28:41 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 29 Jun 2009 19:28:41 +0100 Subject: [dba-VB] Syslogs In-Reply-To: <sa492274.073@cactus.dk> References: <sa492274.073@cactus.dk> Message-ID: <4a4907dc.1c07d00a.2f2c.1e5d@mx.google.com> So, John's question appears to have the answer "No, not to Access and not to Vista" It needs to be registered..am I correct? Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 29 June 2009 19:22 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Syslogs Hi John Join Max and read the article ... same paragraph. http://www.devx.com:80/vb/Article/42242/0/page/1 <quote> The actual transmission of syslog messages between your application and Windows is left to the WinSock Control, which came with Visual Basic 6 and some old versions of the Access Developer Tools. Further, you can download the control from several places, which include tools to correct a corrupted install. </quote> /gustav >>> jwcolby at colbyconsulting.com 29-06-2009 20:11 >>> Does this imply that the winsock control is not native to Access? John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > Yes that cured it. I used the one included with the download. > > The demo form seems to work, but I don't receive any msg at localhost > > Get back to you on the others. > > Max > > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: 29 June 2009 18:08 > To: dba-vb at databaseadvisors.com > Subject: Re: [dba-VB] Syslogs > > Hi Max > > The paragraph on page 1, "The WinSock Control", is for you. > You need both the license and the "compatibility". > > Thank you to MS and IE and the "Compatibility" flag. > > /gustav _______________________________________________ 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 Jun 29 13:34:34 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 29 Jun 2009 20:34:34 +0200 Subject: [dba-VB] Syslogs Message-ID: <sa492567.076@cactus.dk> Hi John As explained in the article on how to create a kind of confirmation system, you could set up a simple two-way system with a single syslog app broadcasting at low frequency "Here I am, and if you are an app from JC, record my address and report back". Your app, when running at the user, would pick up that message and send back a message for the syslog app to collect the addresses of currently running application copies. When a user signs off, after a time-out the syslog app realizes that this copy is off and removes it from the list. Thus, a current list of active applications can be maintained and they can communicate for whatever reason you decide. Note that communication between machines can really be done in many ways, it is just that syslog is an established standard for simple text messages of about 1K, and if that fits, why reinvent the wheel? /gustav >>> jwcolby at colbyconsulting.com 29-06-2009 20:05 >>> Gustav, As I mentioned, I have been looking for something like this for years, however everyone has to have a list of IPs that can be used with it to make it useful. I suppose I could kind of bootstrap this thing. The server address could be found by manual observation, then logged in a table along with the machine name. Each application FE instance looks and sends a message that it is logged in. The RECEIVER grabs the IP address and looks it up in the table. If not there it stores the IP in the table. Of course then the machine name has to be included in the message. I suppose that I could develop a message library, such that every time an application it fires a LOGIN message to everyone already in the table. The login message has a machine name as the data and apparently this widget automatically gets the IP address. My clients rarely have more than 25 or so workstations running the application so this shouldn't cause too much grief. Thus anyone listening logs the new person's data into the table if it isn't already there. Kind of crude but that allows any single running application (that you can manually get the IP for) to bootstrap the system and build the list of IPs and machine names. John W. Colby www.ColbyConsulting.com Gustav Brock wrote: > Hi John > > Well, you have to decide. If you wish to communicate, either the sender or the receiver has to identify itself. That drives anything on the Internet. > > And syslog is not broadcasting. If you wish to listen to any address on your local network or transmit to any address on the local network, you have to determine the address of your machine and the subnet mask and you can calculate all possible addresses. Note that network admins hate broadcasting applications as these are considered noisy. > If you wish to communicate in or out of your local network, again you must know "something" about the machine(s) out there and your router will take care of the rest (if it and the firewall allows). > > The reason Hamachi and the like works is because they initially use port 80 (which can be considered open on any office network) and an external proxy to establish communication - so sender and receiver can identify each other. Nothing black magic here. > > syslog is fun because it is so primitive. This makes it an universal tool with heavy limitations but with nearly zero use of resources. What has been missing is prebuilt methods to read and write the messages from/to a database - to make it useful for people like us. This is what and how the article describes. > > /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 Jun 29 13:41:03 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 29 Jun 2009 20:41:03 +0200 Subject: [dba-VB] Syslogs Message-ID: <sa4926ed.077@cactus.dk> Hi Max It is not native to Access as obtained in an Office suite, but as a developer having VB6 or the developer tools for Access (can't recall which version) you can distribute it freely with your application. If so, you will of course need some kind of installation routine as for any other OCX you wish to deploy. As mentioned, it is so widely spread that should you miss both VB6 or the developer tools for Access you can locate it for download several places. /gustav >>> max.wanadoo at gmail.com 29-06-2009 20:28 >>> So, John's question appears to have the answer "No, not to Access and not to Vista" It needs to be registered..am I correct? Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 29 June 2009 19:22 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Syslogs Hi John Join Max and read the article ... same paragraph. http://www.devx.com:80/vb/Article/42242/0/page/1 <quote> The actual transmission of syslog messages between your application and Windows is left to the WinSock Control, which came with Visual Basic 6 and some old versions of the Access Developer Tools. Further, you can download the control from several places, which include tools to correct a corrupted install. </quote> /gustav >>> jwcolby at colbyconsulting.com 29-06-2009 20:11 >>> Does this imply that the winsock control is not native to Access? John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > Yes that cured it. I used the one included with the download. > > The demo form seems to work, but I don't receive any msg at localhost > > Get back to you on the others. > > Max > > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: 29 June 2009 18:08 > To: dba-vb at databaseadvisors.com > Subject: Re: [dba-VB] Syslogs > > Hi Max > > The paragraph on page 1, "The WinSock Control", is for you. > You need both the license and the "compatibility". > > Thank you to MS and IE and the "Compatibility" flag. > > /gustav From max.wanadoo at gmail.com Mon Jun 29 13:45:00 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 29 Jun 2009 19:45:00 +0100 Subject: [dba-VB] Syslogs In-Reply-To: <sa4926ed.077@cactus.dk> References: <sa4926ed.077@cactus.dk> Message-ID: <4a490baf.1818d00a.3c7d.0281@mx.google.com> Thank you Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 29 June 2009 19:41 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Syslogs Hi Max It is not native to Access as obtained in an Office suite, but as a developer having VB6 or the developer tools for Access (can't recall which version) you can distribute it freely with your application. If so, you will of course need some kind of installation routine as for any other OCX you wish to deploy. As mentioned, it is so widely spread that should you miss both VB6 or the developer tools for Access you can locate it for download several places. /gustav >>> max.wanadoo at gmail.com 29-06-2009 20:28 >>> So, John's question appears to have the answer "No, not to Access and not to Vista" It needs to be registered..am I correct? Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 29 June 2009 19:22 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Syslogs Hi John Join Max and read the article ... same paragraph. http://www.devx.com:80/vb/Article/42242/0/page/1 <quote> The actual transmission of syslog messages between your application and Windows is left to the WinSock Control, which came with Visual Basic 6 and some old versions of the Access Developer Tools. Further, you can download the control from several places, which include tools to correct a corrupted install. </quote> /gustav >>> jwcolby at colbyconsulting.com 29-06-2009 20:11 >>> Does this imply that the winsock control is not native to Access? John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > Yes that cured it. I used the one included with the download. > > The demo form seems to work, but I don't receive any msg at localhost > > Get back to you on the others. > > Max > > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: 29 June 2009 18:08 > To: dba-vb at databaseadvisors.com > Subject: Re: [dba-VB] Syslogs > > Hi Max > > The paragraph on page 1, "The WinSock Control", is for you. > You need both the license and the "compatibility". > > Thank you to MS and IE and the "Compatibility" flag. > > /gustav _______________________________________________ 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 Jun 29 14:28:55 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 29 Jun 2009 15:28:55 -0400 Subject: [dba-VB] Syslogs In-Reply-To: <sa492274.073@cactus.dk> References: <sa492274.073@cactus.dk> Message-ID: <4A4915F7.8070202@colbyconsulting.com> Ahhhh.... John W. Colby www.ColbyConsulting.com Gustav Brock wrote: > Hi John > > Join Max and read the article ... same paragraph. > > http://www.devx.com:80/vb/Article/42242/0/page/1 > > <quote> > The actual transmission of syslog messages between your application and Windows is left to the WinSock Control, which came with Visual Basic 6 and some old versions of the Access Developer Tools. Further, you can download the control from several places, which include tools to correct a corrupted install. > </quote> > > /gustav > > >>>> jwcolby at colbyconsulting.com 29-06-2009 20:11 >>> > Does this imply that the winsock control is not native to Access? > > John W. Colby > www.ColbyConsulting.com > > > Max Wanadoo wrote: >> Yes that cured it. I used the one included with the download. >> >> The demo form seems to work, but I don't receive any msg at localhost >> >> Get back to you on the others. >> >> Max >> >> >> >> -----Original Message----- >> From: dba-vb-bounces at databaseadvisors.com >> [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock >> Sent: 29 June 2009 18:08 >> To: dba-vb at databaseadvisors.com >> Subject: Re: [dba-VB] Syslogs >> >> Hi Max >> >> The paragraph on page 1, "The WinSock Control", is for you. >> You need both the license and the "compatibility". >> >> Thank you to MS and IE and the "Compatibility" flag. >> >> /gustav > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From max.wanadoo at gmail.com Mon Jun 29 16:43:07 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 29 Jun 2009 22:43:07 +0100 Subject: [dba-VB] Ping IP In-Reply-To: <4A49027A.5000604@colbyconsulting.com> References: <sa490e7e.066@cactus.dk> <4A49027A.5000604@colbyconsulting.com> Message-ID: <4a49356f.1701d00a.11d7.2ecc@mx.google.com> John: Does this description sound what you need? Ping a range of IP numbers to find out what numbers are in use, or what numbers answer within the set time. Use it to find out what parts of your network are slower then others and maybe you even need to take a closer look at them. Adjustable time out, bytes to send, start and end node. Save the results of the sweep as csv and import them into a database. If so, go to http://www.freedownloadscenter.com/Network_and_Internet/Misc__Networking_Too ls/Ping_War.html Free as far as I can tell. Haven't used it. Max From stuart at lexacorp.com.pg Mon Jun 29 16:58:54 2009 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 30 Jun 2009 07:58:54 +1000 Subject: [dba-VB] Syslogs In-Reply-To: <4A48EDCB.50706@colbyconsulting.com> References: <sa490735.064@cactus.dk>, <4A48EDCB.50706@colbyconsulting.com> Message-ID: <4A49391E.21194.1853145A@stuart.lexacorp.com.pg> Here's a little VB/VBA class to handle Hostnames and IP Addresses. It works fine in Access (watch for line wrapping) clsResolve: Option Compare Database Option Explicit '// define constants Private Const IP_SUCCESS As Long = 0 Private Const SOCKET_ERROR As Long = -1 Private Const MAX_WSADescription As Long = 256 Private Const MAX_WSASYSStatus As Long = 128 Private Const MIN_SOCKETS_REQD As Long = 1 Private Const WS_VERSION_REQD As Long = &H101 Private Const WS_VERSION_MAJOR As Long = WS_VERSION_REQD \ &H100 And &HFF& Private Const WS_VERSION_MINOR As Long = WS_VERSION_REQD And &HFF& Private Const WSADescription_Len As Long = 256 Private Const WSASYS_Status_Len As Long = 128 Private Const AF_INET As Long = 2 '// structures Private Type HOSTENT hName As Long hAliases As Long hAddrType As Integer hLength As Integer hAddrList As Long End Type Private Type WSADATA wVersion As Integer wHighVersion As Integer szDescription(0 To MAX_WSADescription) As Byte szSystemStatus(0 To MAX_WSASYSStatus) As Byte wMaxSockets As Long wMaxUDPDG As Long dwVendorInfo As Long End Type '// api 'kernel32 Private Declare Sub apiCopyMemory Lib "kernel32" Alias "RtlMoveMemory" (xDest As Any, xSource As Any, ByVal nBytes As Long) Private Declare Function apiStrLen Lib "kernel32" Alias "lstrlenA" (lpString As Any) As Long 'wsock32 Private Declare Function apiGetHostByName Lib "wsock32.dll" Alias "gethostbyname" (ByVal hostname As String) As Long Private Declare Function apiWSAStartup Lib "wsock32.dll" Alias "WSAStartup" (ByVal wVersionRequired As Long, lpWSADATA As WSADATA) As Long Private Declare Function apiWSACleanup Lib "wsock32.dll" Alias "WSACleanup" () As Long Private Declare Function apiInetAddr Lib "wsock32.dll" Alias "inet_addr" (ByVal s As String) As Long Private Declare Function apiGetHostByAddr Lib "wsock32.dll" Alias "gethostbyaddr" (haddr As Long, ByVal hnlen As Long, ByVal addrtype As Long) As Long Private Declare Function apiGetHostName Lib "wsock32.dll" Alias "gethostname" (ByVal hostname$, ByVal HostLen As Integer) As Long '// private functions Private Function InitializeSocket() As Boolean Dim WSAD As WSADATA 'attempt to initialize the socket InitializeSocket = apiWSAStartup(WS_VERSION_REQD, WSAD) = IP_SUCCESS End Function Private Sub CloseSocket() 'try to close the socket If apiWSACleanup() <> 0 Then MsgBox "Error calling apiWSACleanup.", vbCritical End If End Sub Public Function GetIPFromHostName(ByVal sHostName As String) As String 'converts a host name to an IP address. Dim nBytes As Long Dim ptrHosent As Long Dim hstHost As HOSTENT Dim ptrName As Long Dim ptrAddress As Long Dim ptrIPAddress As Long Dim sAddress As String 'declare this as Dim sAddress(1) As String if you want 2 ip addresses returned 'try to initalize the socket If InitializeSocket() = True Then 'try to get the IP ptrHosent = apiGetHostByName(sHostName & vbNullChar) If ptrHosent <> 0 Then 'get the IP address apiCopyMemory hstHost, ByVal ptrHosent, LenB(hstHost) apiCopyMemory ptrIPAddress, ByVal hstHost.hAddrList, 4 'fill buffer sAddress = Space$(4) 'if you want multiple domains returned, 'fill all items in sAddress array with 4 spaces apiCopyMemory ByVal sAddress, ByVal ptrIPAddress, hstHost.hLength 'change this to 'CopyMemory ByVal sAddress(0), ByVal ptrIPAddress, hstHost.hLength 'if you want an array of ip addresses returned '(some domains have more than one ip address associated with it) 'get the IP address GetIPFromHostName = IPToText(sAddress) 'if you are using multiple addresses, you need IPToText(sAddress(0)) & "," & IPToText(sAddress(1)) 'etc End If Else MsgBox "Failed to open Socket." End If End Function Private Function IPToText(ByVal IPAddress As String) As String 'converts characters to numbers IPToText = CStr(Asc(IPAddress)) & "." & _ CStr(Asc(Mid$(IPAddress, 2, 1))) & "." & _ CStr(Asc(Mid$(IPAddress, 3, 1))) & "." & _ CStr(Asc(Mid$(IPAddress, 4, 1))) End Function Public Function GetHostNameFromIP(ByVal sIPAddress As String) As String Dim ptrHosent As Long Dim hAddress As Long Dim sHost As String Dim nBytes As Long 'try to open the socket If InitializeSocket() = True Then 'convert string address to long datatype hAddress = apiInetAddr(sIPAddress) 'check if an error ocucred If hAddress <> SOCKET_ERROR Then 'obtain a pointer to the HOSTENT structure 'that contains the name and address 'corresponding to the given network address. ptrHosent = apiGetHostByAddr(hAddress, 4, AF_INET) If ptrHosent <> 0 Then 'convert address and 'get resolved hostname apiCopyMemory ptrHosent, ByVal ptrHosent, 4 nBytes = apiStrLen(ByVal ptrHosent) If nBytes > 0 Then 'fill the IP address buffer sHost = Space$(nBytes) apiCopyMemory ByVal sHost, ByVal ptrHosent, nBytes GetHostNameFromIP = sHost End If Else MsgBox "Call to gethostbyaddr failed." End If 'close the socket CloseSocket Else MsgBox "Invalid IP address" End If Else MsgBox "Failed to open Socket" End If End Function Public Function GetMyHostName() As String 'Finds local HostName Dim strHostname As String Dim lngHostLen As Long 'try to initalize the socket If InitializeSocket() = True Then lngHostLen = 256 strHostname = Space$(lngHostLen) If apiGetHostName(strHostname, lngHostLen) = SOCKET_ERROR Then MsgBox "Windows Sockets error getting Host Name" Else strHostname = Trim$(strHostname) strHostname = Left$(strHostname, Len(strHostname) - 1) End If Else MsgBox "Failed to open Socket." End If GetMyHostName = strHostname End Function Public Function GetMyIPAddress() As String GetMyIPAddress = GetIPFromHostName(GetMyHostName) End Function Cheers, Stuart On 29 Jun 2009 at 12:37, jwcolby wrote: > LOL, but you still have to know your own IP address. We got into this one time, with Hamachi, VMs, > multiple NICS etc. it is difficult to determine what my own IP address is. > > John W. Colby > www.ColbyConsulting.com > > > Gustav Brock wrote: > > Hi John > > > > Ask the application to send you a syslog message! > > Then you can read the sender address or hostname. > > > > /gustav > > > > > >>>> jwcolby at colbyconsulting.com 29-06-2009 17:52 >>> > > Hmm... > > > > Looks quite cool. > > > > My mind is a raging torrent, flooded with rivulets of thought cascading into a waterfall of creative > > alternatives. > > > > Now... how do we determine the IP address of every machine using an Access application on the local LAN? > > > > John W. Colby > > www.ColbyConsulting.com > > > > > > Susan Harkins wrote: > >> <http://www.devx.com:80/vb/Article/42242/0/page/1> > >> > >> I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so > >> proud... yet another ones passes safely to single author status. :) > >> > >> Susan H. > > > > > > > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From stuart at lexacorp.com.pg Mon Jun 29 17:03:15 2009 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 30 Jun 2009 08:03:15 +1000 Subject: [dba-VB] Syslogs In-Reply-To: <4a4907dc.1c07d00a.2f2c.1e5d@mx.google.com> References: <sa492274.073@cactus.dk>, <4a4907dc.1c07d00a.2f2c.1e5d@mx.google.com> Message-ID: <4A493A23.19773.18570D48@stuart.lexacorp.com.pg> The Winsock control is a ActiveX interface to the system Winsock.dll and needs to be installed/registered on each machiine. That's why I never use the Winsock control, I use API calls instead - that way it just works without needing to instal anything. See the Class I've just posted for example. -- Stuart On 29 Jun 2009 at 19:28, Max Wanadoo wrote: > So, John's question appears to have the answer "No, not to Access and not to > Vista" > > It needs to be registered..am I correct? > > Max > > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: 29 June 2009 19:22 > To: dba-vb at databaseadvisors.com > Subject: Re: [dba-VB] Syslogs > > Hi John > > Join Max and read the article ... same paragraph. > > http://www.devx.com:80/vb/Article/42242/0/page/1 > > <quote> > The actual transmission of syslog messages between your application and > Windows is left to the WinSock Control, which came with Visual Basic 6 and > some old versions of the Access Developer Tools. Further, you can download > the control from several places, which include tools to correct a corrupted > install. > </quote> > > /gustav > > > >>> jwcolby at colbyconsulting.com 29-06-2009 20:11 >>> > Does this imply that the winsock control is not native to Access? > > John W. Colby > www.ColbyConsulting.com > > > Max Wanadoo wrote: > > Yes that cured it. I used the one included with the download. > > > > The demo form seems to work, but I don't receive any msg at localhost > > > > Get back to you on the others. > > > > Max > > > > > > > > -----Original Message----- > > From: dba-vb-bounces at databaseadvisors.com > > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > > Sent: 29 June 2009 18:08 > > To: dba-vb at databaseadvisors.com > > Subject: Re: [dba-VB] Syslogs > > > > Hi Max > > > > The paragraph on page 1, "The WinSock Control", is for you. > > You need both the license and the "compatibility". > > > > Thank you to MS and IE and the "Compatibility" flag. > > > > /gustav > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From max.wanadoo at gmail.com Tue Jun 30 03:36:28 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Tue, 30 Jun 2009 09:36:28 +0100 Subject: [dba-VB] Syslogs In-Reply-To: <cda8f54e0906300130p4a19b7f0gc99adb2cffc9e84d@mail.gmail.com> References: <sa490735.064@cactus.dk> <4A48EDCB.50706@colbyconsulting.com> <4A49391E.21194.1853145A@stuart.lexacorp.com.pg> <cda8f54e0906300130p4a19b7f0gc99adb2cffc9e84d@mail.gmail.com> Message-ID: <cda8f54e0906300136m7d729aaave8e5e09ae501a0a@mail.gmail.com> On Tue, Jun 30, 2009 at 9:30 AM, Max Wanadoo <max.wanadoo at gmail.com> wrote: > Stuart, > That works brilliantly on my system. > Thanks > Max > ps reposted because the previous reply bombed out with regard to size. > > > On Mon, Jun 29, 2009 at 10:58 PM, Stuart McLachlan <stuart at lexacorp.com.pg > > wrote: > >> Here's a little VB/VBA class to handle Hostnames and IP Addresses. >> It works fine in Access >> > From Gustav at cactus.dk Tue Jun 30 06:50:55 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 30 Jun 2009 13:50:55 +0200 Subject: [dba-VB] Syslogs Message-ID: <sa4a1857.085@cactus.dk> Hi John (and Max) If you download the code, a whole module is for resolving IP address and hostname. Nothing rocket science but refined for the purpose. It even features a static collection inspired by your sales talk on collections. The key function is this: <code> Private Function GetIPFromHostName( _ ByVal strHostname As String) _ As String ' Converts a host name to its IP address. ' ' If strHostname ' - is zero length, local IP address is returned. ' - is "localhost", IP address 127.0.0.1 is returned. ' - cannot be resolved, unknown IP address 0.0.0.0 is returned. Const clngAddressNone As Long = 0 ' The Address is offset 12 bytes from the ' start of the HOSENT structure. Const clngAddressOffset As Long = 12 ' Size of address part. Const clngAddressChunk As Long = 4 ' Address to return if none found. Const cstrAddressZero As String = "0.0.0.0" ' Address of HOSENT structure. Dim ptrHosent As Long ' Address of name pointer. Dim ptrName As Long ' Address of address pointer. Dim ptrAddress As Long Dim ptrIPAddress As Long Dim ptrIPAddress2 As Long Dim stzHostName As String Dim strAddress As String stzHostName = strHostname & vbNullChar ptrHosent = GetHostByName(stzHostName) If ptrHosent = clngAddressNone Then ' Return address zero. strAddress = cstrAddressZero Else ' Assign pointer addresses and offset Null-terminated list ' of addresses for the host. ' Note: ' We are retrieving only the first address returned. ' To return more than one, define strAddress as a string array ' and loop through the 4-byte ptrIPAddress members returned. ' The last item is a terminating null. ' All addresses are returned in network byte order. ptrAddress = ptrHosent + clngAddressOffset ' Get the IP address. CopyMemory ptrAddress, ByVal ptrAddress, clngAddressChunk CopyMemory ptrIPAddress, ByVal ptrAddress, clngAddressChunk CopyMemory ptrIPAddress2, ByVal ptrIPAddress, clngAddressChunk strAddress = GetInetStrFromPtr(ptrIPAddress2) End If GetIPFromHostName = strAddress End Function </code> Problem is that you may have more than one adapter. As stated, this function lists only one which typically is the NIC for your LAN. Another function reads this out: <code> Public Function MachineHostAddress( _ Optional ByVal strHostname As String) _ As String ' Retrieves IP address of the machine with the host name ' strHostname. ' If a zero length host name or no host name is passed, the ' address of this machine is returned. ' If host name localhost is passed, 127.0.0.1 is returned. ' If the host name cannot be resolved, 0.0.0.0 is returned. ' ' The host addresses are preserved in a static collection to ' reduce look up time for repeated calls. ' If strHostname is an empty string, the local host address ' will be looked up. ' However, an empty string cannot be a key in a collection. ' Use this key to store the local host address. Const cstrKeyThisHost As String = " " Static colAddress As New Collection Dim strIpAddress As String ' Ignore error when looking up a key in collection ' colAddress that does not exist. On Error Resume Next If Len(strHostname) = 0 Then strHostname = cstrKeyThisHost End If strIpAddress = colAddress.Item(strHostname) ' If strHostname is not found, an error is raised. If Err.Number <> 0 Then ' This host name has not been looked up previously. If WinSocketsStart() = True Then ' Obtain the host address. ' Trim strHostname to pass a zero length string when ' looking up the address of the local host. strIpAddress = GetIPFromHostName(Trim(strHostname)) ' Store the host address. colAddress.Add strIpAddress, strHostname Call WinSocketsClean End If End If MachineHostAddress = strIpAddress End Function </code> For the helper functions, download the full code. However, no function is included to reveal the subnet mask. The only "human" method I can locate for this purpose is to look up the registry: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces Browse these for the key DhcpIPAddress - or, if this is not found, IPAddress - to locate the interface that matches the IP address you retrieved. When matched, look up the key DhcpSubnetMask - or SubnetMask - to obtain the current subnet mask. Armed with this - your IP address and subnet mask - you can easily calculate the list of possible IP address on the current LAN. /gustav >>> Gustav at cactus.dk 29-06-2009 20:34 >>> Hi John As explained in the article on how to create a kind of confirmation system, you could set up a simple two-way system with a single syslog app broadcasting at low frequency "Here I am, and if you are an app from JC, record my address and report back". Your app, when running at the user, would pick up that message and send back a message for the syslog app to collect the addresses of currently running application copies. When a user signs off, after a time-out the syslog app realizes that this copy is off and removes it from the list. Thus, a current list of active applications can be maintained and they can communicate for whatever reason you decide. Note that communication between machines can really be done in many ways, it is just that syslog is an established standard for simple text messages of about 1K, and if that fits, why reinvent the wheel? /gustav >>> jwcolby at colbyconsulting.com 29-06-2009 20:05 >>> Gustav, As I mentioned, I have been looking for something like this for years, however everyone has to have a list of IPs that can be used with it to make it useful. I suppose I could kind of bootstrap this thing. The server address could be found by manual observation, then logged in a table along with the machine name. Each application FE instance looks and sends a message that it is logged in. The RECEIVER grabs the IP address and looks it up in the table. If not there it stores the IP in the table. Of course then the machine name has to be included in the message. I suppose that I could develop a message library, such that every time an application it fires a LOGIN message to everyone already in the table. The login message has a machine name as the data and apparently this widget automatically gets the IP address. My clients rarely have more than 25 or so workstations running the application so this shouldn't cause too much grief. Thus anyone listening logs the new person's data into the table if it isn't already there. Kind of crude but that allows any single running application (that you can manually get the IP for) to bootstrap the system and build the list of IPs and machine names. John W. Colby www.ColbyConsulting.com From jwcolby at colbyconsulting.com Tue Jun 30 06:59:11 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 30 Jun 2009 07:59:11 -0400 Subject: [dba-VB] SPAM-LOW: Re: Syslogs In-Reply-To: <sa4a1857.085@cactus.dk> References: <sa4a1857.085@cactus.dk> Message-ID: <4A49FE0F.9060806@colbyconsulting.com> ROTFL. Me? SALES? Bite your tongue you scalliwag. John W. Colby www.ColbyConsulting.com Gustav Brock wrote: > Hi John (and Max) > > If you download the code, a whole module is for resolving IP address and hostname. Nothing rocket science but refined for the purpose. > It even features a static collection inspired by your sales talk on collections. > > The key function is this: > > <code> > Private Function GetIPFromHostName( _ > ByVal strHostname As String) _ > As String > > ' Converts a host name to its IP address. > ' > ' If strHostname > ' - is zero length, local IP address is returned. > ' - is "localhost", IP address 127.0.0.1 is returned. > ' - cannot be resolved, unknown IP address 0.0.0.0 is returned. > > Const clngAddressNone As Long = 0 > ' The Address is offset 12 bytes from the > ' start of the HOSENT structure. > Const clngAddressOffset As Long = 12 > ' Size of address part. > Const clngAddressChunk As Long = 4 > ' Address to return if none found. > Const cstrAddressZero As String = "0.0.0.0" > > ' Address of HOSENT structure. > Dim ptrHosent As Long > ' Address of name pointer. > Dim ptrName As Long > ' Address of address pointer. > Dim ptrAddress As Long > Dim ptrIPAddress As Long > Dim ptrIPAddress2 As Long > Dim stzHostName As String > Dim strAddress As String > > stzHostName = strHostname & vbNullChar > ptrHosent = GetHostByName(stzHostName) > > If ptrHosent = clngAddressNone Then > ' Return address zero. > strAddress = cstrAddressZero > Else > ' Assign pointer addresses and offset Null-terminated list > ' of addresses for the host. > ' Note: > ' We are retrieving only the first address returned. > ' To return more than one, define strAddress as a string array > ' and loop through the 4-byte ptrIPAddress members returned. > ' The last item is a terminating null. > ' All addresses are returned in network byte order. > ptrAddress = ptrHosent + clngAddressOffset > > ' Get the IP address. > CopyMemory ptrAddress, ByVal ptrAddress, clngAddressChunk > CopyMemory ptrIPAddress, ByVal ptrAddress, clngAddressChunk > CopyMemory ptrIPAddress2, ByVal ptrIPAddress, clngAddressChunk > > strAddress = GetInetStrFromPtr(ptrIPAddress2) > End If > > GetIPFromHostName = strAddress > > End Function > </code> > > Problem is that you may have more than one adapter. As stated, this function lists only one which typically is the NIC for your LAN. > Another function reads this out: > > <code> > Public Function MachineHostAddress( _ > Optional ByVal strHostname As String) _ > As String > > ' Retrieves IP address of the machine with the host name > ' strHostname. > ' If a zero length host name or no host name is passed, the > ' address of this machine is returned. > ' If host name localhost is passed, 127.0.0.1 is returned. > ' If the host name cannot be resolved, 0.0.0.0 is returned. > ' > ' The host addresses are preserved in a static collection to > ' reduce look up time for repeated calls. > > ' If strHostname is an empty string, the local host address > ' will be looked up. > ' However, an empty string cannot be a key in a collection. > ' Use this key to store the local host address. > Const cstrKeyThisHost As String = " " > > Static colAddress As New Collection > > Dim strIpAddress As String > > ' Ignore error when looking up a key in collection > ' colAddress that does not exist. > On Error Resume Next > > If Len(strHostname) = 0 Then > strHostname = cstrKeyThisHost > End If > strIpAddress = colAddress.Item(strHostname) > ' If strHostname is not found, an error is raised. > If Err.Number <> 0 Then > ' This host name has not been looked up previously. > If WinSocketsStart() = True Then > ' Obtain the host address. > ' Trim strHostname to pass a zero length string when > ' looking up the address of the local host. > strIpAddress = GetIPFromHostName(Trim(strHostname)) > ' Store the host address. > colAddress.Add strIpAddress, strHostname > > Call WinSocketsClean > End If > End If > > MachineHostAddress = strIpAddress > > End Function > </code> > > For the helper functions, download the full code. > > However, no function is included to reveal the subnet mask. The only "human" method I can locate for this purpose is to look up the registry: > > HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces > > Browse these for the key DhcpIPAddress - or, if this is not found, IPAddress - to locate the interface that matches the IP address you retrieved. > When matched, look up the key DhcpSubnetMask - or SubnetMask - to obtain the current subnet mask. > > Armed with this - your IP address and subnet mask - you can easily calculate the list of possible IP address on the current LAN. > > /gustav > > >>>> Gustav at cactus.dk 29-06-2009 20:34 >>> > Hi John > > As explained in the article on how to create a kind of confirmation system, you could set up a simple two-way system with a single syslog app broadcasting at low frequency "Here I am, and if you are an app from JC, record my address and report back". Your app, when running at the user, would pick up that message and send back a message for the syslog app to collect the addresses of currently running application copies. When a user signs off, after a time-out the syslog app realizes that this copy is off and removes it from the list. Thus, a current list of active applications can be maintained and they can communicate for whatever reason you decide. > > Note that communication between machines can really be done in many ways, it is just that syslog is an established standard for simple text messages of about 1K, and if that fits, why reinvent the wheel? > > /gustav > > >>>> jwcolby at colbyconsulting.com 29-06-2009 20:05 >>> > Gustav, > > As I mentioned, I have been looking for something like this for years, however everyone has to have > a list of IPs that can be used with it to make it useful. > > I suppose I could kind of bootstrap this thing. The server address could be found by manual > observation, then logged in a table along with the machine name. Each application FE instance looks > and sends a message that it is logged in. The RECEIVER grabs the IP address and looks it up in the > table. If not there it stores the IP in the table. Of course then the machine name has to be > included in the message. > > I suppose that I could develop a message library, such that every time an application it fires a > LOGIN message to everyone already in the table. The login message has a machine name as the data > and apparently this widget automatically gets the IP address. My clients rarely have more than 25 > or so workstations running the application so this shouldn't cause too much grief. Thus anyone > listening logs the new person's data into the table if it isn't already there. > > Kind of crude but that allows any single running application (that you can manually get the IP for) > to bootstrap the system and build the list of IPs and machine names. > > John W. Colby > www.ColbyConsulting.com > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From stuart at lexacorp.com.pg Tue Jun 30 08:02:07 2009 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 30 Jun 2009 23:02:07 +1000 Subject: [dba-VB] Syslogs In-Reply-To: <sa4a1857.085@cactus.dk> References: <sa4a1857.085@cactus.dk> Message-ID: <4A4A0CCF.5521.1B8DFD71@stuart.lexacorp.com.pg> On 30 Jun 2009 at 13:50, Gustav Brock wrote: > However, no function is included to reveal the subnet mask. The only "human" method I >can locate for this purpose is to look up the registry: I just found another API call which returns more info including the SubNet mask(s) so I've modified clsResolve to include GetMyIPMask: Option Compare Database Option Explicit '// define constants Private Const IP_SUCCESS As Long = 0 Private Const SOCKET_ERROR As Long = -1 Private Const MAX_WSADescription As Long = 256 Private Const MAX_WSASYSStatus As Long = 128 Private Const MIN_SOCKETS_REQD As Long = 1 Private Const WS_VERSION_REQD As Long = &H101 Private Const WS_VERSION_MAJOR As Long = WS_VERSION_REQD \ &H100 And &HFF& Private Const WS_VERSION_MINOR As Long = WS_VERSION_REQD And &HFF& Private Const WSADescription_Len As Long = 256 Private Const WSASYS_Status_Len As Long = 128 Private Const AF_INET As Long = 2 '// structures Private Type HOSTENT hName As Long hAliases As Long hAddrType As Integer hLength As Integer hAddrList As Long End Type Private Type WSADATA wVersion As Integer wHighVersion As Integer szDescription(0 To MAX_WSADescription) As Byte szSystemStatus(0 To MAX_WSASYSStatus) As Byte wMaxSockets As Long wMaxUDPDG As Long dwVendorInfo As Long End Type Private Type IPINFO dwAddr As Long ' IP address dwIndex As Long ' interface index dwMask As Long ' subnet mask dwBCastAddr As Long ' broadcast address dwReasmSize As Long ' assembly size unused1 As Integer ' not currently used unused2 As Integer '; not currently used End Type Private Type MIB_IPADDRTABLE dEntrys As Long 'number of entries in the table mIPInfo(5) As IPINFO 'array of IP address entries assumes maximum of 5 Interfaces End Type Private Type IP_Array mBuffer As MIB_IPADDRTABLE BufferLen As Long End Type '// api 'kernel32 Private Declare Sub apiCopyMemory Lib "kernel32" Alias "RtlMoveMemory" (xDest As Any, xSource As Any, ByVal nBytes As Long) Private Declare Function apiStrLen Lib "kernel32" Alias "lstrlenA" (lpString As Any) As Long 'wsock32 Private Declare Function apiGetHostByName Lib "wsock32.dll" Alias "gethostbyname" (ByVal hostname As String) As Long Private Declare Function apiWSAStartup Lib "wsock32.dll" Alias "WSAStartup" (ByVal wVersionRequired As Long, lpWSADATA As WSADATA) As Long Private Declare Function apiWSACleanup Lib "wsock32.dll" Alias "WSACleanup" () As Long Private Declare Function apiInetAddr Lib "wsock32.dll" Alias "inet_addr" (ByVal s As String) As Long Private Declare Function apiGetHostByAddr Lib "wsock32.dll" Alias "gethostbyaddr" (haddr As Long, ByVal hnlen As Long, ByVal addrtype As Long) As Long Private Declare Function apiGetHostName Lib "wsock32.dll" Alias "gethostname" (ByVal hostname$, ByVal HostLen As Integer) As Long 'IPHlpAPI Private Declare Function GetIpAddrTable Lib "IPHlpApi" (pIPAdrTable As Byte, pdwSize As Long, ByVal Sort As Long) As Long '// private functions Private Function InitializeSocket() As Boolean Dim WSAD As WSADATA 'attempt to initialize the socket InitializeSocket = apiWSAStartup(WS_VERSION_REQD, WSAD) = IP_SUCCESS End Function Private Sub CloseSocket() 'try to close the socket If apiWSACleanup() <> 0 Then MsgBox "Error calling apiWSACleanup.", vbCritical End If End Sub Public Function GetIPFromHostName(ByVal sHostName As String) As String 'converts a host name to an IP address. Dim nBytes As Long Dim ptrHosent As Long Dim hstHost As HOSTENT Dim ptrName As Long Dim ptrAddress As Long Dim ptrIPAddress As Long Dim sAddress As String 'declare this as Dim sAddress(1) As String if you want 2 ip addresses returned 'try to initalize the socket If InitializeSocket() = True Then 'try to get the IP ptrHosent = apiGetHostByName(sHostName & vbNullChar) If ptrHosent <> 0 Then 'get the IP address apiCopyMemory hstHost, ByVal ptrHosent, LenB(hstHost) apiCopyMemory ptrIPAddress, ByVal hstHost.hAddrList, 4 'fill buffer sAddress = Space$(4) 'if you want multiple domains returned, 'fill all items in sAddress array with 4 spaces apiCopyMemory ByVal sAddress, ByVal ptrIPAddress, hstHost.hLength 'change this to 'CopyMemory ByVal sAddress(0), ByVal ptrIPAddress, hstHost.hLength 'if you want an array of ip addresses returned '(some domains have more than one ip address associated with it) 'get the IP address GetIPFromHostName = IPToText(sAddress) 'if you are using multiple addresses, you need IPToText(sAddress(0)) & "," & IPToText(sAddress(1)) 'etc End If Else MsgBox "Failed to open Socket." End If End Function Private Function IPToText(ByVal IPAddress As String) As String 'converts characters to numbers IPToText = CStr(Asc(IPAddress)) & "." & _ CStr(Asc(Mid$(IPAddress, 2, 1))) & "." & _ CStr(Asc(Mid$(IPAddress, 3, 1))) & "." & _ CStr(Asc(Mid$(IPAddress, 4, 1))) End Function Private Function ConvertAddressToString(longAddr As Long) As String Dim myByte(3) As Byte Dim Cnt As Long CopyMemory myByte(0), longAddr, 4 For Cnt = 0 To 3 ConvertAddressToString = ConvertAddressToString + CStr(myByte(Cnt)) + "." Next Cnt ConvertAddressToString = Left$(ConvertAddressToString, Len(ConvertAddressToString) - 1) End Function Public Function GetHostNameFromIP(ByVal sIPAddress As String) As String Dim ptrHosent As Long Dim hAddress As Long Dim sHost As String Dim nBytes As Long 'try to open the socket If InitializeSocket() = True Then 'convert string address to long datatype hAddress = apiInetAddr(sIPAddress) 'check if an error ocucred If hAddress <> SOCKET_ERROR Then 'obtain a pointer to the HOSTENT structure 'that contains the name and address 'corresponding to the given network address. ptrHosent = apiGetHostByAddr(hAddress, 4, AF_INET) If ptrHosent <> 0 Then 'convert address and 'get resolved hostname apiCopyMemory ptrHosent, ByVal ptrHosent, 4 nBytes = apiStrLen(ByVal ptrHosent) If nBytes > 0 Then 'fill the IP address buffer sHost = Space$(nBytes) apiCopyMemory ByVal sHost, ByVal ptrHosent, nBytes GetHostNameFromIP = sHost End If Else MsgBox "Call to gethostbyaddr failed." End If 'close the socket CloseSocket Else MsgBox "Invalid IP address" End If Else MsgBox "Failed to open Socket" End If End Function Public Function GetMyHostName() As String 'Finds local HostName Dim strHostname As String Dim lngHostLen As Long 'try to initalize the socket If InitializeSocket() = True Then lngHostLen = 256 strHostname = Space$(lngHostLen) If apiGetHostName(strHostname, lngHostLen) = SOCKET_ERROR Then MsgBox "Windows Sockets error getting Host Name" Else strHostname = Trim$(strHostname) strHostname = Left$(strHostname, Len(strHostname) - 1) End If Else MsgBox "Failed to open Socket." End If GetMyHostName = strHostname End Function Public Function GetMyIPAddress() As String GetMyIPAddress = GetIPFromHostName(GetMyHostName) End Function Public Function GetMyIPMask() Dim Ret As Long Dim bBytes() As Byte Dim tel As Long Dim Listing As MIB_IPADDRTABLE On Error GoTo END1 GetIpAddrTable ByVal 0&, Ret, True If Ret <= 0 Then Exit Function ReDim bBytes(0 To Ret - 1) As Byte 'retrieve the data GetIpAddrTable bBytes(0), Ret, False 'Get the first 4 bytes to get the entry's.. ip installed CopyMemory Listing.dEntrys, bBytes(0), 4 'Copy whole structure to Listing and return for Adapter 1 (Adapter 0 = Loopback) CopyMemory Listing.mIPInfo(1), bBytes(4 + (Len(Listing.mIPInfo(0)))), Len(Listing.mIPInfo(1)) GetIPMask = ConvertAddressToString(Listing.mIPInfo(1).dwMask) Exit Function END1: MsgBox "Error Resolving Subnet Mask" End Function From DWUTKA at Marlow.com Tue Jun 30 11:28:48 2009 From: DWUTKA at Marlow.com (Drew Wutka) Date: Tue, 30 Jun 2009 11:28:48 -0500 Subject: [dba-VB] Syslogs In-Reply-To: <4A48EDCB.50706@colbyconsulting.com> References: <sa490735.064@cactus.dk> <4A48EDCB.50706@colbyconsulting.com> Message-ID: <A5615CBECEC42E4791D7A7C724E1E9B2024478C6@MIEXCH.Marlow.ii-vi.net> There are several ways to get your IP address. Two I've used is to use a Winsock control, and look at the local host IP. Another relatively easy way is to dump the results of IPCONFIG to a text file. Create a .bat file (call it iptest.bat) and put the following line in it: Ipconfig >C:\ip.txt Then using ShellWait (http://mvps.org/access/api/api0004.htm) Use this function: Function IPAddresses() As String Dim f As Long Dim strTemp As String Dim strArray() As String If Dir("C:\ip.txt") <> "" Then Kill "C:\ip.txt" ShellWait "C:\iptest.bat" f = FreeFile Open "C:\ip.txt" For Binary Access Read As f strTemp = Space(LOF(f)) Get f, , strTemp Close f strArray = Split(strTemp, vbCrLf) strTemp = "" For f = 0 To UBound(strArray) If InStr(1, strArray(f), "IPv4", vbTextCompare) > 0 Or InStr(1, strArray(f), " IP Address", vbTextCompare) > 0 Then strTemp = strTemp & Trim(Mid(strArray(f), InStr(1, strArray(f), ":", vbBinaryCompare) + 1)) & ";" End If Next f If Len(strTemp) > 0 Then strTemp = Left(strTemp, Len(strTemp) - 1) IPAddresses = strTemp End Function Whalla, IPAddresses will return as a semicolon delimited string. (Obviously you could return an array or create a collection too...either way....) Drew -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Monday, June 29, 2009 11:38 AM To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Syslogs LOL, but you still have to know your own IP address. We got into this one time, with Hamachi, VMs, multiple NICS etc. it is difficult to determine what my own IP address is. John W. Colby www.ColbyConsulting.com Gustav Brock wrote: > Hi John > > Ask the application to send you a syslog message! > Then you can read the sender address or hostname. > > /gustav > > >>>> jwcolby at colbyconsulting.com 29-06-2009 17:52 >>> > Hmm... > > Looks quite cool. > > My mind is a raging torrent, flooded with rivulets of thought cascading into a waterfall of creative > alternatives. > > Now... how do we determine the IP address of every machine using an Access application on the local LAN? > > John W. Colby > www.ColbyConsulting.com > > > Susan Harkins wrote: >> <http://www.devx.com:80/vb/Article/42242/0/page/1> >> >> I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so >> proud... yet another ones passes safely to single author status. :) >> >> Susan H. > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From jwcolby at colbyconsulting.com Tue Jun 30 11:43:40 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 30 Jun 2009 12:43:40 -0400 Subject: [dba-VB] Syslogs In-Reply-To: <A5615CBECEC42E4791D7A7C724E1E9B2024478C6@MIEXCH.Marlow.ii-vi.net> References: <sa490735.064@cactus.dk> <4A48EDCB.50706@colbyconsulting.com> <A5615CBECEC42E4791D7A7C724E1E9B2024478C6@MIEXCH.Marlow.ii-vi.net> Message-ID: <4A4A40BC.6060905@colbyconsulting.com> Yes, but then you have to do more. IPConfig shows several IP addresses on my work laptop. One is the wireless, which only works when in range of a wireless network, one is a physical NIC, and one is a Hamachi IP. There could be even more. On my server I have two physical NICS and in theory each could have asked for an IP address. So would the REAL IP address please stand up. John W. Colby www.ColbyConsulting.com Drew Wutka wrote: > There are several ways to get your IP address. Two I've used is to use > a Winsock control, and look at the local host IP. > > Another relatively easy way is to dump the results of IPCONFIG to a text > file. > > Create a .bat file (call it iptest.bat) and put the following line in > it: > > Ipconfig >C:\ip.txt > > Then using ShellWait (http://mvps.org/access/api/api0004.htm) > > Use this function: > > Function IPAddresses() As String > Dim f As Long > Dim strTemp As String > Dim strArray() As String > If Dir("C:\ip.txt") <> "" Then Kill "C:\ip.txt" > ShellWait "C:\iptest.bat" > f = FreeFile > Open "C:\ip.txt" For Binary Access Read As f > strTemp = Space(LOF(f)) > Get f, , strTemp > Close f > strArray = Split(strTemp, vbCrLf) > strTemp = "" > For f = 0 To UBound(strArray) > If InStr(1, strArray(f), "IPv4", vbTextCompare) > 0 Or InStr(1, > strArray(f), " IP Address", vbTextCompare) > 0 Then > strTemp = strTemp & Trim(Mid(strArray(f), InStr(1, strArray(f), > ":", vbBinaryCompare) + 1)) & ";" > End If > Next f > If Len(strTemp) > 0 Then strTemp = Left(strTemp, Len(strTemp) - 1) > IPAddresses = strTemp > End Function > > Whalla, IPAddresses will return as a semicolon delimited string. > (Obviously you could return an array or create a collection too...either > way....) > > Drew From DWUTKA at Marlow.com Tue Jun 30 11:44:05 2009 From: DWUTKA at Marlow.com (Drew Wutka) Date: Tue, 30 Jun 2009 11:44:05 -0500 Subject: [dba-VB] Messaging For JWC WAS: Syslogs In-Reply-To: <4A49027A.5000604@colbyconsulting.com> References: <sa490e7e.066@cactus.dk> <4A49027A.5000604@colbyconsulting.com> Message-ID: <A5615CBECEC42E4791D7A7C724E1E9B2024478C9@MIEXCH.Marlow.ii-vi.net> Is this something you really want? It would be pretty simple to create an OCX that you could have on a hidden form, that would 'see' all running instances of your application, and be able to 'communicate' to them. There is one quirk. It'll work on a standard network. However, if your network is subnetted, it would only 'see' what's in the local subnet (because the best way to do this is to send out a broadcast 'hello' and 'goodbye' message). To work with a subnetted network, you'd have to come up with a 'server/client' scenario, so the server would see all the connected users (sort of like a custom DNS server). If you aren't worried about a subnetted network, let me know, I am pretty sure I can whip up an OCX to do what you want. Drew -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Monday, June 29, 2009 1:06 PM To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] SPAM-LOW: Re: Syslogs Gustav, As I mentioned, I have been looking for something like this for years, however everyone has to have a list of IPs that can be used with it to make it useful. I suppose I could kind of bootstrap this thing. The server address could be found by manual observation, then logged in a table along with the machine name. Each application FE instance looks and sends a message that it is logged in. The RECEIVER grabs the IP address and looks it up in the table. If not there it stores the IP in the table. Of course then the machine name has to be included in the message. I suppose that I could develop a message library, such that every time an application it fires a LOGIN message to everyone already in the table. The login message has a machine name as the data and apparently this widget automatically gets the IP address. My clients rarely have more than 25 or so workstations running the application so this shouldn't cause too much grief. Thus anyone listening logs the new person's data into the table if it isn't already there. Kind of crude but that allows any single running application (that you can manually get the IP for) to bootstrap the system and build the list of IPs and machine names. John W. Colby www.ColbyConsulting.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From DWUTKA at Marlow.com Tue Jun 30 11:49:15 2009 From: DWUTKA at Marlow.com (Drew Wutka) Date: Tue, 30 Jun 2009 11:49:15 -0500 Subject: [dba-VB] Syslogs In-Reply-To: <4A4A40BC.6060905@colbyconsulting.com> References: <sa490735.064@cactus.dk> <4A48EDCB.50706@colbyconsulting.com><A5615CBECEC42E4791D7A7C724E1E9B2024478C6@MIEXCH.Marlow.ii-vi.net> <4A4A40BC.6060905@colbyconsulting.com> Message-ID: <A5615CBECEC42E4791D7A7C724E1E9B2024478CA@MIEXCH.Marlow.ii-vi.net> Actually, if you have an IP address, it is real. It then gets into what it is used for. For example, with your wireless, if it's not connected, it won't have an IP address. If a standard NIC is not connected, it will show no address. If it IS connected, but not receiving an IP address, it will default to a (I think) 169 something, which is a hard coded address, which means nothing. You can also have internal addresses such as 127.0.0.1, which is a loopback to your local machine. (so if you are running a website, putting in http://127.0.0.1 on the server will give you the local website). Drew -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, June 30, 2009 11:44 AM To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Syslogs Yes, but then you have to do more. IPConfig shows several IP addresses on my work laptop. One is the wireless, which only works when in range of a wireless network, one is a physical NIC, and one is a Hamachi IP. There could be even more. On my server I have two physical NICS and in theory each could have asked for an IP address. So would the REAL IP address please stand up. John W. Colby www.ColbyConsulting.com Drew Wutka wrote: > There are several ways to get your IP address. Two I've used is to use > a Winsock control, and look at the local host IP. > > Another relatively easy way is to dump the results of IPCONFIG to a text > file. > > Create a .bat file (call it iptest.bat) and put the following line in > it: > > Ipconfig >C:\ip.txt > > Then using ShellWait (http://mvps.org/access/api/api0004.htm) > > Use this function: > > Function IPAddresses() As String > Dim f As Long > Dim strTemp As String > Dim strArray() As String > If Dir("C:\ip.txt") <> "" Then Kill "C:\ip.txt" > ShellWait "C:\iptest.bat" > f = FreeFile > Open "C:\ip.txt" For Binary Access Read As f > strTemp = Space(LOF(f)) > Get f, , strTemp > Close f > strArray = Split(strTemp, vbCrLf) > strTemp = "" > For f = 0 To UBound(strArray) > If InStr(1, strArray(f), "IPv4", vbTextCompare) > 0 Or InStr(1, > strArray(f), " IP Address", vbTextCompare) > 0 Then > strTemp = strTemp & Trim(Mid(strArray(f), InStr(1, strArray(f), > ":", vbBinaryCompare) + 1)) & ";" > End If > Next f > If Len(strTemp) > 0 Then strTemp = Left(strTemp, Len(strTemp) - 1) > IPAddresses = strTemp > End Function > > Whalla, IPAddresses will return as a semicolon delimited string. > (Obviously you could return an array or create a collection too...either > way....) > > Drew _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From Gustav at cactus.dk Tue Jun 30 11:49:08 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 30 Jun 2009 18:49:08 +0200 Subject: [dba-VB] Syslogs Message-ID: <sa4a5e36.093@cactus.dk> Hi John But ... didn't you read the article or at least download the code? It's all in there - in the module: basWinAPI_Hostname /gustav >>> jwcolby at colbyconsulting.com 30-06-2009 18:43 >>> Yes, but then you have to do more. IPConfig shows several IP addresses on my work laptop. One is the wireless, which only works when in range of a wireless network, one is a physical NIC, and one is a Hamachi IP. There could be even more. On my server I have two physical NICS and in theory each could have asked for an IP address. So would the REAL IP address please stand up. John W. Colby www.ColbyConsulting.com From max.wanadoo at gmail.com Tue Jun 30 11:54:23 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Tue, 30 Jun 2009 17:54:23 +0100 Subject: [dba-VB] Syslogs In-Reply-To: <4A4A40BC.6060905@colbyconsulting.com> References: <sa490735.064@cactus.dk> <4A48EDCB.50706@colbyconsulting.com> <A5615CBECEC42E4791D7A7C724E1E9B2024478C6@MIEXCH.Marlow.ii-vi.net> <4A4A40BC.6060905@colbyconsulting.com> Message-ID: <4a4a4344.1c05d00a.0f8b.4804@mx.google.com> John, going with what Stuart posted earlier. I integrated it into my work FE and it works great. What I have to do now is to get each FE to run the code on startup, post the resultant IP and Host into my Login Table and BINGO. When they log off, i just remove the entries from the LoginTable if I want to. If I then wanted to (as you do) to send a message I will know who is logged on. You could shell out to NET SEND USER MESSAGE to send the message, for example Where USER is the returning Hostname from the routine and MESSAGE is the text you want to send. Ie, Net Send Manager Hi'ya georgeous. Ps - I am the manager. Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: 30 June 2009 17:44 To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Syslogs Yes, but then you have to do more. IPConfig shows several IP addresses on my work laptop. One is the wireless, which only works when in range of a wireless network, one is a physical NIC, and one is a Hamachi IP. There could be even more. On my server I have two physical NICS and in theory each could have asked for an IP address. So would the REAL IP address please stand up. John W. Colby www.ColbyConsulting.com Drew Wutka wrote: > There are several ways to get your IP address. Two I've used is to use > a Winsock control, and look at the local host IP. > > Another relatively easy way is to dump the results of IPCONFIG to a text > file. > > Create a .bat file (call it iptest.bat) and put the following line in > it: > > Ipconfig >C:\ip.txt > > Then using ShellWait (http://mvps.org/access/api/api0004.htm) > > Use this function: > > Function IPAddresses() As String > Dim f As Long > Dim strTemp As String > Dim strArray() As String > If Dir("C:\ip.txt") <> "" Then Kill "C:\ip.txt" > ShellWait "C:\iptest.bat" > f = FreeFile > Open "C:\ip.txt" For Binary Access Read As f > strTemp = Space(LOF(f)) > Get f, , strTemp > Close f > strArray = Split(strTemp, vbCrLf) > strTemp = "" > For f = 0 To UBound(strArray) > If InStr(1, strArray(f), "IPv4", vbTextCompare) > 0 Or InStr(1, > strArray(f), " IP Address", vbTextCompare) > 0 Then > strTemp = strTemp & Trim(Mid(strArray(f), InStr(1, strArray(f), > ":", vbBinaryCompare) + 1)) & ";" > End If > Next f > If Len(strTemp) > 0 Then strTemp = Left(strTemp, Len(strTemp) - 1) > IPAddresses = strTemp > End Function > > Whalla, IPAddresses will return as a semicolon delimited string. > (Obviously you could return an array or create a collection too...either > way....) > > Drew _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From Gustav at cactus.dk Tue Jun 30 12:06:25 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 30 Jun 2009 19:06:25 +0200 Subject: [dba-VB] favicon (was: Syslogs) Message-ID: <sa4a6252.094@cactus.dk> Hi Drew That gives me an idea regarding favicon. I've found that it is sometimes difficult to get IE to understand that a favicon is present and should be displayed. Some common methods are: <!-- Favicon for IE browsers --> <link rel="shortcut icon" href="favicon.ico" /> <!-- Favicon for other browsers --> <link rel="icon" href="favicon.ico" /> This typically doesn't work. These may: <link rel="shortcut icon" href="/favicon.ico" /> mtaulty.com/CommunityServer: <link rel="shortcut icon" type="image/ico" href="/CommunityServer/favicon.ico" /> <link rel="shortcut icon" href="http://www.examplesite.com/favicon.ico" type="image/x-icon" /> The most reliable method I've found is the last - to use the full URL - but it is not nice to have hardcoded strings like these. So how about using your method: <link rel="shortcut icon" href="http://127.0.0.1/favicon.ico" type="image/x-icon" /> or localhost: <link rel="shortcut icon" href="http://localhost/favicon.ico" type="image/x-icon" /> Anyone having experience with this? /gustav >>> DWUTKA at marlow.com 30-06-2009 18:49 >>> Actually, if you have an IP address, it is real. It then gets into what it is used for. For example, with your wireless, if it's not connected, it won't have an IP address. If a standard NIC is not connected, it will show no address. If it IS connected, but not receiving an IP address, it will default to a (I think) 169 something, which is a hard coded address, which means nothing. You can also have internal addresses such as 127.0.0.1, which is a loopback to your local machine. (so if you are running a website, putting in http://127.0.0.1 on the server will give you the local website). Drew From max.wanadoo at gmail.com Tue Jun 30 12:27:46 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Tue, 30 Jun 2009 18:27:46 +0100 Subject: [dba-VB] Syslogs In-Reply-To: <4A4A0CCF.5521.1B8DFD71@stuart.lexacorp.com.pg> References: <sa4a1857.085@cactus.dk> <4A4A0CCF.5521.1B8DFD71@stuart.lexacorp.com.pg> Message-ID: <4a4a4b16.1c05d00a.735a.08ee@mx.google.com> Stuart, this is good stuff. Why would I need to know the subnet mask in the context of finding the IP and Hostname? Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: 30 June 2009 14:02 To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Syslogs On 30 Jun 2009 at 13:50, Gustav Brock wrote: > However, no function is included to reveal the subnet mask. The only "human" method I >can locate for this purpose is to look up the registry: I just found another API call which returns more info including the SubNet mask(s) so I've modified clsResolve to include GetMyIPMask: Option Compare Database Option Explicit '// define constants Private Const IP_SUCCESS As Long = 0 Private Const SOCKET_ERROR As Long = -1 Private Const MAX_WSADescription As Long = 256 Private Const MAX_WSASYSStatus As Long = 128 Private Const MIN_SOCKETS_REQD As Long = 1 Private Const WS_VERSION_REQD As Long = &H101 Private Const WS_VERSION_MAJOR As Long = WS_VERSION_REQD \ &H100 And &HFF& Private Const WS_VERSION_MINOR As Long = WS_VERSION_REQD And &HFF& Private Const WSADescription_Len As Long = 256 Private Const WSASYS_Status_Len As Long = 128 Private Const AF_INET As Long = 2 '// structures Private Type HOSTENT hName As Long hAliases As Long hAddrType As Integer hLength As Integer hAddrList As Long End Type Private Type WSADATA wVersion As Integer wHighVersion As Integer szDescription(0 To MAX_WSADescription) As Byte szSystemStatus(0 To MAX_WSASYSStatus) As Byte wMaxSockets As Long wMaxUDPDG As Long dwVendorInfo As Long End Type Private Type IPINFO dwAddr As Long ' IP address dwIndex As Long ' interface index dwMask As Long ' subnet mask dwBCastAddr As Long ' broadcast address dwReasmSize As Long ' assembly size unused1 As Integer ' not currently used unused2 As Integer '; not currently used End Type Private Type MIB_IPADDRTABLE dEntrys As Long 'number of entries in the table mIPInfo(5) As IPINFO 'array of IP address entries assumes maximum of 5 Interfaces End Type Private Type IP_Array mBuffer As MIB_IPADDRTABLE BufferLen As Long End Type '// api 'kernel32 Private Declare Sub apiCopyMemory Lib "kernel32" Alias "RtlMoveMemory" (xDest As Any, xSource As Any, ByVal nBytes As Long) Private Declare Function apiStrLen Lib "kernel32" Alias "lstrlenA" (lpString As Any) As Long 'wsock32 Private Declare Function apiGetHostByName Lib "wsock32.dll" Alias "gethostbyname" (ByVal hostname As String) As Long Private Declare Function apiWSAStartup Lib "wsock32.dll" Alias "WSAStartup" (ByVal wVersionRequired As Long, lpWSADATA As WSADATA) As Long Private Declare Function apiWSACleanup Lib "wsock32.dll" Alias "WSACleanup" () As Long Private Declare Function apiInetAddr Lib "wsock32.dll" Alias "inet_addr" (ByVal s As String) As Long Private Declare Function apiGetHostByAddr Lib "wsock32.dll" Alias "gethostbyaddr" (haddr As Long, ByVal hnlen As Long, ByVal addrtype As Long) As Long Private Declare Function apiGetHostName Lib "wsock32.dll" Alias "gethostname" (ByVal hostname$, ByVal HostLen As Integer) As Long 'IPHlpAPI Private Declare Function GetIpAddrTable Lib "IPHlpApi" (pIPAdrTable As Byte, pdwSize As Long, ByVal Sort As Long) As Long '// private functions Private Function InitializeSocket() As Boolean Dim WSAD As WSADATA 'attempt to initialize the socket InitializeSocket = apiWSAStartup(WS_VERSION_REQD, WSAD) = IP_SUCCESS End Function Private Sub CloseSocket() 'try to close the socket If apiWSACleanup() <> 0 Then MsgBox "Error calling apiWSACleanup.", vbCritical End If End Sub Public Function GetIPFromHostName(ByVal sHostName As String) As String 'converts a host name to an IP address. Dim nBytes As Long Dim ptrHosent As Long Dim hstHost As HOSTENT Dim ptrName As Long Dim ptrAddress As Long Dim ptrIPAddress As Long Dim sAddress As String 'declare this as Dim sAddress(1) As String if you want 2 ip addresses returned 'try to initalize the socket If InitializeSocket() = True Then 'try to get the IP ptrHosent = apiGetHostByName(sHostName & vbNullChar) If ptrHosent <> 0 Then 'get the IP address apiCopyMemory hstHost, ByVal ptrHosent, LenB(hstHost) apiCopyMemory ptrIPAddress, ByVal hstHost.hAddrList, 4 'fill buffer sAddress = Space$(4) 'if you want multiple domains returned, 'fill all items in sAddress array with 4 spaces apiCopyMemory ByVal sAddress, ByVal ptrIPAddress, hstHost.hLength 'change this to 'CopyMemory ByVal sAddress(0), ByVal ptrIPAddress, hstHost.hLength 'if you want an array of ip addresses returned '(some domains have more than one ip address associated with it) 'get the IP address GetIPFromHostName = IPToText(sAddress) 'if you are using multiple addresses, you need IPToText(sAddress(0)) & "," & IPToText(sAddress(1)) 'etc End If Else MsgBox "Failed to open Socket." End If End Function Private Function IPToText(ByVal IPAddress As String) As String 'converts characters to numbers IPToText = CStr(Asc(IPAddress)) & "." & _ CStr(Asc(Mid$(IPAddress, 2, 1))) & "." & _ CStr(Asc(Mid$(IPAddress, 3, 1))) & "." & _ CStr(Asc(Mid$(IPAddress, 4, 1))) End Function Private Function ConvertAddressToString(longAddr As Long) As String Dim myByte(3) As Byte Dim Cnt As Long CopyMemory myByte(0), longAddr, 4 For Cnt = 0 To 3 ConvertAddressToString = ConvertAddressToString + CStr(myByte(Cnt)) + "." Next Cnt ConvertAddressToString = Left$(ConvertAddressToString, Len(ConvertAddressToString) - 1) End Function Public Function GetHostNameFromIP(ByVal sIPAddress As String) As String Dim ptrHosent As Long Dim hAddress As Long Dim sHost As String Dim nBytes As Long 'try to open the socket If InitializeSocket() = True Then 'convert string address to long datatype hAddress = apiInetAddr(sIPAddress) 'check if an error ocucred If hAddress <> SOCKET_ERROR Then 'obtain a pointer to the HOSTENT structure 'that contains the name and address 'corresponding to the given network address. ptrHosent = apiGetHostByAddr(hAddress, 4, AF_INET) If ptrHosent <> 0 Then 'convert address and 'get resolved hostname apiCopyMemory ptrHosent, ByVal ptrHosent, 4 nBytes = apiStrLen(ByVal ptrHosent) If nBytes > 0 Then 'fill the IP address buffer sHost = Space$(nBytes) apiCopyMemory ByVal sHost, ByVal ptrHosent, nBytes GetHostNameFromIP = sHost End If Else MsgBox "Call to gethostbyaddr failed." End If 'close the socket CloseSocket Else MsgBox "Invalid IP address" End If Else MsgBox "Failed to open Socket" End If End Function Public Function GetMyHostName() As String 'Finds local HostName Dim strHostname As String Dim lngHostLen As Long 'try to initalize the socket If InitializeSocket() = True Then lngHostLen = 256 strHostname = Space$(lngHostLen) If apiGetHostName(strHostname, lngHostLen) = SOCKET_ERROR Then MsgBox "Windows Sockets error getting Host Name" Else strHostname = Trim$(strHostname) strHostname = Left$(strHostname, Len(strHostname) - 1) End If Else MsgBox "Failed to open Socket." End If GetMyHostName = strHostname End Function Public Function GetMyIPAddress() As String GetMyIPAddress = GetIPFromHostName(GetMyHostName) End Function Public Function GetMyIPMask() Dim Ret As Long Dim bBytes() As Byte Dim tel As Long Dim Listing As MIB_IPADDRTABLE On Error GoTo END1 GetIpAddrTable ByVal 0&, Ret, True If Ret <= 0 Then Exit Function ReDim bBytes(0 To Ret - 1) As Byte 'retrieve the data GetIpAddrTable bBytes(0), Ret, False 'Get the first 4 bytes to get the entry's.. ip installed CopyMemory Listing.dEntrys, bBytes(0), 4 'Copy whole structure to Listing and return for Adapter 1 (Adapter 0 = Loopback) CopyMemory Listing.mIPInfo(1), bBytes(4 + (Len(Listing.mIPInfo(0)))), Len(Listing.mIPInfo(1)) GetIPMask = ConvertAddressToString(Listing.mIPInfo(1).dwMask) Exit Function END1: MsgBox "Error Resolving Subnet Mask" End Function _______________________________________________ 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 Jun 30 12:41:36 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 30 Jun 2009 19:41:36 +0200 Subject: [dba-VB] Syslogs Message-ID: <sa4a6a88.095@cactus.dk> Hi Stuart and John Nice Stuart. With your code I was able to browse a little further and found this: http://www.everythingaccess.com/tutorials.asp?ID=Get-all-IP-Addresses-of-your-machine which also uses the API: Public Declare Function GetIpAddrTable Lib "Iphlpapi" (pIPAdrTable As Byte, pdwSize As Long, ByVal Sort As Long) As Long to retrieve a list of the IP addresses of the machine. It has an option to filter out 127.0.0.1 but for some reason not 0.0.0.0 which is an inactive adapter. However, the interesting part is the second reserved or unused part of the IP INFO type. If you include that in your loop, you will see that inactive or unused adapters return an integer value of 35 while the active adapter returns 39. I have no idea of what these numbers mean, but it should be a simple matter to include a filter on value 39 to extract just the active adapter - for John and anyone else. So a revision 1.2 of your class is on its way? /gustav >>> "Stuart McLachlan" <stuart at lexacorp.com.pg> 30-06-2009 15:02 >>> On 30 Jun 2009 at 13:50, Gustav Brock wrote: > However, no function is included to reveal the subnet mask. The only "human" method I >can locate for this purpose is to look up the registry: I just found another API call which returns more info including the SubNet mask(s) so I've modified clsResolve to include GetMyIPMask: Option Compare Database Option Explicit '// define constants Private Const IP_SUCCESS As Long = 0 Private Const SOCKET_ERROR As Long = -1 Private Const MAX_WSADescription As Long = 256 Private Const MAX_WSASYSStatus As Long = 128 Private Const MIN_SOCKETS_REQD As Long = 1 Private Const WS_VERSION_REQD As Long = &H101 Private Const WS_VERSION_MAJOR As Long = WS_VERSION_REQD \ &H100 And &HFF& Private Const WS_VERSION_MINOR As Long = WS_VERSION_REQD And &HFF& Private Const WSADescription_Len As Long = 256 Private Const WSASYS_Status_Len As Long = 128 Private Const AF_INET As Long = 2 '// structures Private Type HOSTENT hName As Long hAliases As Long hAddrType As Integer hLength As Integer hAddrList As Long End Type Private Type WSADATA wVersion As Integer wHighVersion As Integer szDescription(0 To MAX_WSADescription) As Byte szSystemStatus(0 To MAX_WSASYSStatus) As Byte wMaxSockets As Long wMaxUDPDG As Long dwVendorInfo As Long End Type Private Type IPINFO dwAddr As Long ' IP address dwIndex As Long ' interface index dwMask As Long ' subnet mask dwBCastAddr As Long ' broadcast address dwReasmSize As Long ' assembly size unused1 As Integer ' not currently used unused2 As Integer '; not currently used End Type Private Type MIB_IPADDRTABLE dEntrys As Long 'number of entries in the table mIPInfo(5) As IPINFO 'array of IP address entries assumes maximum of 5 Interfaces End Type Private Type IP_Array mBuffer As MIB_IPADDRTABLE BufferLen As Long End Type '// api 'kernel32 Private Declare Sub apiCopyMemory Lib "kernel32" Alias "RtlMoveMemory" (xDest As Any, xSource As Any, ByVal nBytes As Long) Private Declare Function apiStrLen Lib "kernel32" Alias "lstrlenA" (lpString As Any) As Long 'wsock32 Private Declare Function apiGetHostByName Lib "wsock32.dll" Alias "gethostbyname" (ByVal hostname As String) As Long Private Declare Function apiWSAStartup Lib "wsock32.dll" Alias "WSAStartup" (ByVal wVersionRequired As Long, lpWSADATA As WSADATA) As Long Private Declare Function apiWSACleanup Lib "wsock32.dll" Alias "WSACleanup" () As Long Private Declare Function apiInetAddr Lib "wsock32.dll" Alias "inet_addr" (ByVal s As String) As Long Private Declare Function apiGetHostByAddr Lib "wsock32.dll" Alias "gethostbyaddr" (haddr As Long, ByVal hnlen As Long, ByVal addrtype As Long) As Long Private Declare Function apiGetHostName Lib "wsock32.dll" Alias "gethostname" (ByVal hostname$, ByVal HostLen As Integer) As Long 'IPHlpAPI Private Declare Function GetIpAddrTable Lib "IPHlpApi" (pIPAdrTable As Byte, pdwSize As Long, ByVal Sort As Long) As Long '// private functions Private Function InitializeSocket() As Boolean Dim WSAD As WSADATA 'attempt to initialize the socket InitializeSocket = apiWSAStartup(WS_VERSION_REQD, WSAD) = IP_SUCCESS End Function Private Sub CloseSocket() 'try to close the socket If apiWSACleanup() <> 0 Then MsgBox "Error calling apiWSACleanup.", vbCritical End If End Sub Public Function GetIPFromHostName(ByVal sHostName As String) As String 'converts a host name to an IP address. Dim nBytes As Long Dim ptrHosent As Long Dim hstHost As HOSTENT Dim ptrName As Long Dim ptrAddress As Long Dim ptrIPAddress As Long Dim sAddress As String 'declare this as Dim sAddress(1) As String if you want 2 ip addresses returned 'try to initalize the socket If InitializeSocket() = True Then 'try to get the IP ptrHosent = apiGetHostByName(sHostName & vbNullChar) If ptrHosent <> 0 Then 'get the IP address apiCopyMemory hstHost, ByVal ptrHosent, LenB(hstHost) apiCopyMemory ptrIPAddress, ByVal hstHost.hAddrList, 4 'fill buffer sAddress = Space$(4) 'if you want multiple domains returned, 'fill all items in sAddress array with 4 spaces apiCopyMemory ByVal sAddress, ByVal ptrIPAddress, hstHost.hLength 'change this to 'CopyMemory ByVal sAddress(0), ByVal ptrIPAddress, hstHost.hLength 'if you want an array of ip addresses returned '(some domains have more than one ip address associated with it) 'get the IP address GetIPFromHostName = IPToText(sAddress) 'if you are using multiple addresses, you need IPToText(sAddress(0)) & "," & IPToText(sAddress(1)) 'etc End If Else MsgBox "Failed to open Socket." End If End Function Private Function IPToText(ByVal IPAddress As String) As String 'converts characters to numbers IPToText = CStr(Asc(IPAddress)) & "." & _ CStr(Asc(Mid$(IPAddress, 2, 1))) & "." & _ CStr(Asc(Mid$(IPAddress, 3, 1))) & "." & _ CStr(Asc(Mid$(IPAddress, 4, 1))) End Function Private Function ConvertAddressToString(longAddr As Long) As String Dim myByte(3) As Byte Dim Cnt As Long CopyMemory myByte(0), longAddr, 4 For Cnt = 0 To 3 ConvertAddressToString = ConvertAddressToString + CStr(myByte(Cnt)) + "." Next Cnt ConvertAddressToString = Left$(ConvertAddressToString, Len(ConvertAddressToString) - 1) End Function Public Function GetHostNameFromIP(ByVal sIPAddress As String) As String Dim ptrHosent As Long Dim hAddress As Long Dim sHost As String Dim nBytes As Long 'try to open the socket If InitializeSocket() = True Then 'convert string address to long datatype hAddress = apiInetAddr(sIPAddress) 'check if an error ocucred If hAddress <> SOCKET_ERROR Then 'obtain a pointer to the HOSTENT structure 'that contains the name and address 'corresponding to the given network address. ptrHosent = apiGetHostByAddr(hAddress, 4, AF_INET) If ptrHosent <> 0 Then 'convert address and 'get resolved hostname apiCopyMemory ptrHosent, ByVal ptrHosent, 4 nBytes = apiStrLen(ByVal ptrHosent) If nBytes > 0 Then 'fill the IP address buffer sHost = Space$(nBytes) apiCopyMemory ByVal sHost, ByVal ptrHosent, nBytes GetHostNameFromIP = sHost End If Else MsgBox "Call to gethostbyaddr failed." End If 'close the socket CloseSocket Else MsgBox "Invalid IP address" End If Else MsgBox "Failed to open Socket" End If End Function Public Function GetMyHostName() As String 'Finds local HostName Dim strHostname As String Dim lngHostLen As Long 'try to initalize the socket If InitializeSocket() = True Then lngHostLen = 256 strHostname = Space$(lngHostLen) If apiGetHostName(strHostname, lngHostLen) = SOCKET_ERROR Then MsgBox "Windows Sockets error getting Host Name" Else strHostname = Trim$(strHostname) strHostname = Left$(strHostname, Len(strHostname) - 1) End If Else MsgBox "Failed to open Socket." End If GetMyHostName = strHostname End Function Public Function GetMyIPAddress() As String GetMyIPAddress = GetIPFromHostName(GetMyHostName) End Function Public Function GetMyIPMask() Dim Ret As Long Dim bBytes() As Byte Dim tel As Long Dim Listing As MIB_IPADDRTABLE On Error GoTo END1 GetIpAddrTable ByVal 0&, Ret, True If Ret <= 0 Then Exit Function ReDim bBytes(0 To Ret - 1) As Byte 'retrieve the data GetIpAddrTable bBytes(0), Ret, False 'Get the first 4 bytes to get the entry's.. ip installed CopyMemory Listing.dEntrys, bBytes(0), 4 'Copy whole structure to Listing and return for Adapter 1 (Adapter 0 = Loopback) CopyMemory Listing.mIPInfo(1), bBytes(4 + (Len(Listing.mIPInfo(0)))), Len(Listing.mIPInfo(1)) GetIPMask = ConvertAddressToString(Listing.mIPInfo(1).dwMask) Exit Function END1: MsgBox "Error Resolving Subnet Mask" End Function From jwcolby at colbyconsulting.com Tue Jun 30 12:42:38 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 30 Jun 2009 13:42:38 -0400 Subject: [dba-VB] Syslogs In-Reply-To: <sa4a5e36.093@cactus.dk> References: <sa4a5e36.093@cactus.dk> Message-ID: <4A4A4E8E.5060107@colbyconsulting.com> Gustav, Nope, and nope. Once I discovered that I had to get an OCX and register it the bloom kind of left the rose so to speak. I am looking for something that just works and is native to VBA. This is something that I want to incorporate into my framework, but I can't go installing stuff on workstations, it is for use at my clients and I am not there. There is good reason why I have never done this... the easy solutions always have a gotcha. John W. Colby www.ColbyConsulting.com Gustav Brock wrote: > Hi John > > But ... didn't you read the article or at least download the code? It's all in there - in the module: > > basWinAPI_Hostname > > /gustav > > >>>> jwcolby at colbyconsulting.com 30-06-2009 18:43 >>> > Yes, but then you have to do more. IPConfig shows several IP addresses on my work laptop. One is > the wireless, which only works when in range of a wireless network, one is a physical NIC, and one > is a Hamachi IP. There could be even more. On my server I have two physical NICS and in theory > each could have asked for an IP address. > > So would the REAL IP address please stand up. > > 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 Tue Jun 30 12:45:11 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 30 Jun 2009 13:45:11 -0400 Subject: [dba-VB] Messaging For JWC WAS: Syslogs In-Reply-To: <A5615CBECEC42E4791D7A7C724E1E9B2024478C9@MIEXCH.Marlow.ii-vi.net> References: <sa490e7e.066@cactus.dk> <4A49027A.5000604@colbyconsulting.com> <A5615CBECEC42E4791D7A7C724E1E9B2024478C9@MIEXCH.Marlow.ii-vi.net> Message-ID: <4A4A4F27.6010606@colbyconsulting.com> Drew, I really want this but it has to be vba native, no OCXs. I am familiar with OCXs that are part of Access, and that is OK. This would be used with my framework and I cannot guarantee that i can register anything. It has to just work. John W. Colby www.ColbyConsulting.com Drew Wutka wrote: > Is this something you really want? > > It would be pretty simple to create an OCX that you could have on a > hidden form, that would 'see' all running instances of your application, > and be able to 'communicate' to them. > > There is one quirk. It'll work on a standard network. However, if your > network is subnetted, it would only 'see' what's in the local subnet > (because the best way to do this is to send out a broadcast 'hello' and > 'goodbye' message). To work with a subnetted network, you'd have to > come up with a 'server/client' scenario, so the server would see all the > connected users (sort of like a custom DNS server). > > If you aren't worried about a subnetted network, let me know, I am > pretty sure I can whip up an OCX to do what you want. > > Drew From jwcolby at colbyconsulting.com Tue Jun 30 12:45:48 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 30 Jun 2009 13:45:48 -0400 Subject: [dba-VB] SPAM-LOW: Re: Syslogs In-Reply-To: <4a4a4344.1c05d00a.0f8b.4804@mx.google.com> References: <sa490735.064@cactus.dk> <4A48EDCB.50706@colbyconsulting.com> <A5615CBECEC42E4791D7A7C724E1E9B2024478C6@MIEXCH.Marlow.ii-vi.net> <4A4A40BC.6060905@colbyconsulting.com> <4a4a4344.1c05d00a.0f8b.4804@mx.google.com> Message-ID: <4A4A4F4C.3070806@colbyconsulting.com> I will be looking at Stuart's code. John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > John, going with what Stuart posted earlier. I integrated it into my work FE > and it works great. What I have to do now is to get each FE to run the code > on startup, post the resultant IP and Host into my Login Table and BINGO. > When they log off, i just remove the entries from the LoginTable if I want > to. > > If I then wanted to (as you do) to send a message I will know who is logged > on. You could shell out to NET SEND USER MESSAGE to send the message, for > example Where USER is the returning Hostname from the routine and MESSAGE is > the text you want to send. > > Ie, > Net Send Manager Hi'ya georgeous. > > Ps - I am the manager. > > Max > > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: 30 June 2009 17:44 > To: Discussion concerning Visual Basic and related programming issues. > Subject: Re: [dba-VB] Syslogs > > Yes, but then you have to do more. IPConfig shows several IP addresses on > my work laptop. One is > the wireless, which only works when in range of a wireless network, one is a > physical NIC, and one > is a Hamachi IP. There could be even more. On my server I have two > physical NICS and in theory > each could have asked for an IP address. > > So would the REAL IP address please stand up. > > John W. Colby > www.ColbyConsulting.com > > > Drew Wutka wrote: >> There are several ways to get your IP address. Two I've used is to use >> a Winsock control, and look at the local host IP. >> >> Another relatively easy way is to dump the results of IPCONFIG to a text >> file. >> >> Create a .bat file (call it iptest.bat) and put the following line in >> it: >> >> Ipconfig >C:\ip.txt >> >> Then using ShellWait (http://mvps.org/access/api/api0004.htm) >> >> Use this function: >> >> Function IPAddresses() As String >> Dim f As Long >> Dim strTemp As String >> Dim strArray() As String >> If Dir("C:\ip.txt") <> "" Then Kill "C:\ip.txt" >> ShellWait "C:\iptest.bat" >> f = FreeFile >> Open "C:\ip.txt" For Binary Access Read As f >> strTemp = Space(LOF(f)) >> Get f, , strTemp >> Close f >> strArray = Split(strTemp, vbCrLf) >> strTemp = "" >> For f = 0 To UBound(strArray) >> If InStr(1, strArray(f), "IPv4", vbTextCompare) > 0 Or InStr(1, >> strArray(f), " IP Address", vbTextCompare) > 0 Then >> strTemp = strTemp & Trim(Mid(strArray(f), InStr(1, strArray(f), >> ":", vbBinaryCompare) + 1)) & ";" >> End If >> Next f >> If Len(strTemp) > 0 Then strTemp = Left(strTemp, Len(strTemp) - 1) >> IPAddresses = strTemp >> End Function >> >> Whalla, IPAddresses will return as a semicolon delimited string. >> (Obviously you could return an array or create a collection too...either >> way....) >> >> Drew > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From Gustav at cactus.dk Tue Jun 30 12:48:25 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 30 Jun 2009 19:48:25 +0200 Subject: [dba-VB] Syslogs Message-ID: <sa4a6c2d.096@cactus.dk> Hi John I see - that of course makes sense. But that module is pure API. /gustav >>> jwcolby at colbyconsulting.com 30-06-2009 19:42 >>> Gustav, Nope, and nope. Once I discovered that I had to get an OCX and register it the bloom kind of left the rose so to speak. I am looking for something that just works and is native to VBA. This is something that I want to incorporate into my framework, but I can't go installing stuff on workstations, it is for use at my clients and I am not there. There is good reason why I have never done this... the easy solutions always have a gotcha. John W. Colby www.ColbyConsulting.com Gustav Brock wrote: > Hi John > > But ... didn't you read the article or at least download the code? It's all in there - in the module: > > basWinAPI_Hostname > > /gustav > > >>>> jwcolby at colbyconsulting.com 30-06-2009 18:43 >>> > Yes, but then you have to do more. IPConfig shows several IP addresses on my work laptop. One is > the wireless, which only works when in range of a wireless network, one is a physical NIC, and one > is a Hamachi IP. There could be even more. On my server I have two physical NICS and in theory > each could have asked for an IP address. > > So would the REAL IP address please stand up. > > John W. Colby > www.ColbyConsulting.com From Gustav at cactus.dk Tue Jun 30 12:49:54 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 30 Jun 2009 19:49:54 +0200 Subject: [dba-VB] Syslogs Message-ID: <sa4a6c6a.097@cactus.dk> Hi Max To calculate the possible IP addresses (of workstations) of the network: http://www.networkclue.com/routing/tcpip/calculating-masks.aspx /gustav >>> max.wanadoo at gmail.com 30-06-2009 19:27 >>> Stuart, this is good stuff. Why would I need to know the subnet mask in the context of finding the IP and Hostname? Max From max.wanadoo at gmail.com Tue Jun 30 13:54:26 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Tue, 30 Jun 2009 19:54:26 +0100 Subject: [dba-VB] Syslogs In-Reply-To: <sa4a6c6a.097@cactus.dk> References: <sa4a6c6a.097@cactus.dk> Message-ID: <4a4a5f66.1701d00a.7694.1d19@mx.google.com> Ha! Very good Gustav....I got half way down the page and thought...why am I reading this...it is going in one eye and out the other... Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 30 June 2009 18:50 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Syslogs Hi Max To calculate the possible IP addresses (of workstations) of the network: http://www.networkclue.com/routing/tcpip/calculating-masks.aspx /gustav >>> max.wanadoo at gmail.com 30-06-2009 19:27 >>> Stuart, this is good stuff. Why would I need to know the subnet mask in the context of finding the IP and Hostname? Max _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From DWUTKA at Marlow.com Tue Jun 30 13:42:16 2009 From: DWUTKA at Marlow.com (Drew Wutka) Date: Tue, 30 Jun 2009 13:42:16 -0500 Subject: [dba-VB] favicon (was: Syslogs) In-Reply-To: <sa4a6252.094@cactus.dk> References: <sa4a6252.094@cactus.dk> Message-ID: <A5615CBECEC42E4791D7A7C724E1E9B2024478CB@MIEXCH.Marlow.ii-vi.net> The reason those href's might not work is going to be dependant upon whether or not IIS is running. If you have a webserver, then a URL can be 'soft', or based on the root of the webserver. No webserver, everything must include a full URL (or 'hard' URL). Drew -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, June 30, 2009 12:06 PM To: dba-vb at databaseadvisors.com Subject: [dba-VB] favicon (was: Syslogs) Hi Drew That gives me an idea regarding favicon. I've found that it is sometimes difficult to get IE to understand that a favicon is present and should be displayed. Some common methods are: <!-- Favicon for IE browsers --> <link rel="shortcut icon" href="favicon.ico" /> <!-- Favicon for other browsers --> <link rel="icon" href="favicon.ico" /> This typically doesn't work. These may: <link rel="shortcut icon" href="/favicon.ico" /> mtaulty.com/CommunityServer: <link rel="shortcut icon" type="image/ico" href="/CommunityServer/favicon.ico" /> <link rel="shortcut icon" href="http://www.examplesite.com/favicon.ico" type="image/x-icon" /> The most reliable method I've found is the last - to use the full URL - but it is not nice to have hardcoded strings like these. So how about using your method: <link rel="shortcut icon" href="http://127.0.0.1/favicon.ico" type="image/x-icon" /> or localhost: <link rel="shortcut icon" href="http://localhost/favicon.ico" type="image/x-icon" /> Anyone having experience with this? /gustav >>> DWUTKA at marlow.com 30-06-2009 18:49 >>> Actually, if you have an IP address, it is real. It then gets into what it is used for. For example, with your wireless, if it's not connected, it won't have an IP address. If a standard NIC is not connected, it will show no address. If it IS connected, but not receiving an IP address, it will default to a (I think) 169 something, which is a hard coded address, which means nothing. You can also have internal addresses such as 127.0.0.1, which is a loopback to your local machine. (so if you are running a website, putting in http://127.0.0.1 on the server will give you the local website). Drew _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From DWUTKA at Marlow.com Tue Jun 30 13:46:19 2009 From: DWUTKA at Marlow.com (Drew Wutka) Date: Tue, 30 Jun 2009 13:46:19 -0500 Subject: [dba-VB] Messaging For JWC WAS: Syslogs In-Reply-To: <4A4A4F27.6010606@colbyconsulting.com> References: <sa490e7e.066@cactus.dk> <4A49027A.5000604@colbyconsulting.com><A5615CBECEC42E4791D7A7C724E1E9B2024478C9@MIEXCH.Marlow.ii-vi.net> <4A4A4F27.6010606@colbyconsulting.com> Message-ID: <A5615CBECEC42E4791D7A7C724E1E9B2024478CC@MIEXCH.Marlow.ii-vi.net> Native does put a crimp in things. TCP/IP communications is pretty easy with a Winsock control. It can be done with API's but it's a pain, and you need to deal with callback functions, which have issues in and of themselves in Access 2000 and on. If you were ok with an .ocx, I could whip that up, if you need something native, that would require callbacks, and a lot more coding. If you want to play around with it, what you need to do is use UDP to 'broadcast' a hello and goodbye message, to alert everything on the subnet. (And you have to filter that message on the broadcasting machine, cause it'll pick up it's own message). In that hello/goodbye message, you can include all the info you want (username, computername, IP,etc). Then it's just a matter of using TCP for direct comms between two machines. Drew -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, June 30, 2009 12:45 PM To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Messaging For JWC WAS: Syslogs Drew, I really want this but it has to be vba native, no OCXs. I am familiar with OCXs that are part of Access, and that is OK. This would be used with my framework and I cannot guarantee that i can register anything. It has to just work. John W. Colby www.ColbyConsulting.com Drew Wutka wrote: > Is this something you really want? > > It would be pretty simple to create an OCX that you could have on a > hidden form, that would 'see' all running instances of your application, > and be able to 'communicate' to them. > > There is one quirk. It'll work on a standard network. However, if your > network is subnetted, it would only 'see' what's in the local subnet > (because the best way to do this is to send out a broadcast 'hello' and > 'goodbye' message). To work with a subnetted network, you'd have to > come up with a 'server/client' scenario, so the server would see all the > connected users (sort of like a custom DNS server). > > If you aren't worried about a subnetted network, let me know, I am > pretty sure I can whip up an OCX to do what you want. > > Drew _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From max.wanadoo at gmail.com Tue Jun 30 14:00:23 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Tue, 30 Jun 2009 20:00:23 +0100 Subject: [dba-VB] Messaging For JWC WAS: Syslogs In-Reply-To: <A5615CBECEC42E4791D7A7C724E1E9B2024478CC@MIEXCH.Marlow.ii-vi.net> References: <sa490e7e.066@cactus.dk> <4A49027A.5000604@colbyconsulting.com><A5615CBECEC42E4791D7A7C724E1E9B2024478C9@MIEXCH.Marlow.ii-vi.net> <4A4A4F27.6010606@colbyconsulting.com> <A5615CBECEC42E4791D7A7C724E1E9B2024478CC@MIEXCH.Marlow.ii-vi.net> Message-ID: <4a4a60ca.0a1ad00a.63e4.2ae9@mx.google.com> Drew, have you looked at Stuart's posting. It is all API and works fine. Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: 30 June 2009 19:46 To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Messaging For JWC WAS: Syslogs Native does put a crimp in things. TCP/IP communications is pretty easy with a Winsock control. It can be done with API's but it's a pain, and you need to deal with callback functions, which have issues in and of themselves in Access 2000 and on. If you were ok with an .ocx, I could whip that up, if you need something native, that would require callbacks, and a lot more coding. If you want to play around with it, what you need to do is use UDP to 'broadcast' a hello and goodbye message, to alert everything on the subnet. (And you have to filter that message on the broadcasting machine, cause it'll pick up it's own message). In that hello/goodbye message, you can include all the info you want (username, computername, IP,etc). Then it's just a matter of using TCP for direct comms between two machines. Drew -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, June 30, 2009 12:45 PM To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Messaging For JWC WAS: Syslogs Drew, I really want this but it has to be vba native, no OCXs. I am familiar with OCXs that are part of Access, and that is OK. This would be used with my framework and I cannot guarantee that i can register anything. It has to just work. John W. Colby www.ColbyConsulting.com Drew Wutka wrote: > Is this something you really want? > > It would be pretty simple to create an OCX that you could have on a > hidden form, that would 'see' all running instances of your application, > and be able to 'communicate' to them. > > There is one quirk. It'll work on a standard network. However, if your > network is subnetted, it would only 'see' what's in the local subnet > (because the best way to do this is to send out a broadcast 'hello' and > 'goodbye' message). To work with a subnetted network, you'd have to > come up with a 'server/client' scenario, so the server would see all the > connected users (sort of like a custom DNS server). > > If you aren't worried about a subnetted network, let me know, I am > pretty sure I can whip up an OCX to do what you want. > > Drew _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From DWUTKA at Marlow.com Tue Jun 30 14:10:13 2009 From: DWUTKA at Marlow.com (Drew Wutka) Date: Tue, 30 Jun 2009 14:10:13 -0500 Subject: [dba-VB] Messaging For JWC WAS: Syslogs In-Reply-To: <4a4a60ca.0a1ad00a.63e4.2ae9@mx.google.com> References: <sa490e7e.066@cactus.dk> <4A49027A.5000604@colbyconsulting.com><A5615CBECEC42E4791D7A7C724E1E9B2024478C9@MIEXCH.Marlow.ii-vi.net> <4A4A4F27.6010606@colbyconsulting.com><A5615CBECEC42E4791D7A7C724E1E9B2024478CC@MIEXCH.Marlow.ii-vi.net> <4a4a60ca.0a1ad00a.63e4.2ae9@mx.google.com> Message-ID: <A5615CBECEC42E4791D7A7C724E1E9B2024478CF@MIEXCH.Marlow.ii-vi.net> Yes, but it's returning IP information, not performing TCP/IP comms. The basics are there, but to 'return' comms, using strictly API's, you have to have a Callback function, because an incoming connection has to alert your code to something happening. Callback functions in VBA worked great in Access 97 (with a custom 'AddressOf' function), but suck in 2000 and on, because if they are 'active' and you go into debug mode, it will wreak havoc with Access. Drew -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Tuesday, June 30, 2009 2:00 PM To: 'Discussion concerning Visual Basic and related programming issues.' Subject: Re: [dba-VB] Messaging For JWC WAS: Syslogs Drew, have you looked at Stuart's posting. It is all API and works fine. Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: 30 June 2009 19:46 To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Messaging For JWC WAS: Syslogs Native does put a crimp in things. TCP/IP communications is pretty easy with a Winsock control. It can be done with API's but it's a pain, and you need to deal with callback functions, which have issues in and of themselves in Access 2000 and on. If you were ok with an .ocx, I could whip that up, if you need something native, that would require callbacks, and a lot more coding. If you want to play around with it, what you need to do is use UDP to 'broadcast' a hello and goodbye message, to alert everything on the subnet. (And you have to filter that message on the broadcasting machine, cause it'll pick up it's own message). In that hello/goodbye message, you can include all the info you want (username, computername, IP,etc). Then it's just a matter of using TCP for direct comms between two machines. Drew -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, June 30, 2009 12:45 PM To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Messaging For JWC WAS: Syslogs Drew, I really want this but it has to be vba native, no OCXs. I am familiar with OCXs that are part of Access, and that is OK. This would be used with my framework and I cannot guarantee that i can register anything. It has to just work. John W. Colby www.ColbyConsulting.com Drew Wutka wrote: > Is this something you really want? > > It would be pretty simple to create an OCX that you could have on a > hidden form, that would 'see' all running instances of your application, > and be able to 'communicate' to them. > > There is one quirk. It'll work on a standard network. However, if your > network is subnetted, it would only 'see' what's in the local subnet > (because the best way to do this is to send out a broadcast 'hello' and > 'goodbye' message). To work with a subnetted network, you'd have to > come up with a 'server/client' scenario, so the server would see all the > connected users (sort of like a custom DNS server). > > If you aren't worried about a subnetted network, let me know, I am > pretty sure I can whip up an OCX to do what you want. > > Drew _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From max.wanadoo at gmail.com Tue Jun 30 14:15:34 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Tue, 30 Jun 2009 20:15:34 +0100 Subject: [dba-VB] Messaging For JWC WAS: Syslogs In-Reply-To: <A5615CBECEC42E4791D7A7C724E1E9B2024478CF@MIEXCH.Marlow.ii-vi.net> References: <sa490e7e.066@cactus.dk> <4A49027A.5000604@colbyconsulting.com><A5615CBECEC42E4791D7A7C724E1E9B2024478C9@MIEXCH.Marlow.ii-vi.net> <4A4A4F27.6010606@colbyconsulting.com><A5615CBECEC42E4791D7A7C724E1E9B2024478CC@MIEXCH.Marlow.ii-vi.net> <4a4a60ca.0a1ad00a.63e4.2ae9@mx.google.com> <A5615CBECEC42E4791D7A7C724E1E9B2024478CF@MIEXCH.Marlow.ii-vi.net> Message-ID: <4a4a645a.0707d00a.4823.0b6a@mx.google.com> Ok, thanks. Forgive my ignorance as I am out of my depth here, but can I ask if the use of WithEvents would solve this situation? Also, why did it work in '97 and not thereafter. Did they remove "bits" or change them or what? Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: 30 June 2009 20:10 To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Messaging For JWC WAS: Syslogs Yes, but it's returning IP information, not performing TCP/IP comms. The basics are there, but to 'return' comms, using strictly API's, you have to have a Callback function, because an incoming connection has to alert your code to something happening. Callback functions in VBA worked great in Access 97 (with a custom 'AddressOf' function), but suck in 2000 and on, because if they are 'active' and you go into debug mode, it will wreak havoc with Access. Drew -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Tuesday, June 30, 2009 2:00 PM To: 'Discussion concerning Visual Basic and related programming issues.' Subject: Re: [dba-VB] Messaging For JWC WAS: Syslogs Drew, have you looked at Stuart's posting. It is all API and works fine. Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: 30 June 2009 19:46 To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Messaging For JWC WAS: Syslogs Native does put a crimp in things. TCP/IP communications is pretty easy with a Winsock control. It can be done with API's but it's a pain, and you need to deal with callback functions, which have issues in and of themselves in Access 2000 and on. If you were ok with an .ocx, I could whip that up, if you need something native, that would require callbacks, and a lot more coding. If you want to play around with it, what you need to do is use UDP to 'broadcast' a hello and goodbye message, to alert everything on the subnet. (And you have to filter that message on the broadcasting machine, cause it'll pick up it's own message). In that hello/goodbye message, you can include all the info you want (username, computername, IP,etc). Then it's just a matter of using TCP for direct comms between two machines. Drew -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, June 30, 2009 12:45 PM To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Messaging For JWC WAS: Syslogs Drew, I really want this but it has to be vba native, no OCXs. I am familiar with OCXs that are part of Access, and that is OK. This would be used with my framework and I cannot guarantee that i can register anything. It has to just work. John W. Colby www.ColbyConsulting.com Drew Wutka wrote: > Is this something you really want? > > It would be pretty simple to create an OCX that you could have on a > hidden form, that would 'see' all running instances of your application, > and be able to 'communicate' to them. > > There is one quirk. It'll work on a standard network. However, if your > network is subnetted, it would only 'see' what's in the local subnet > (because the best way to do this is to send out a broadcast 'hello' and > 'goodbye' message). To work with a subnetted network, you'd have to > come up with a 'server/client' scenario, so the server would see all the > connected users (sort of like a custom DNS server). > > If you aren't worried about a subnetted network, let me know, I am > pretty sure I can whip up an OCX to do what you want. > > Drew _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. _______________________________________________ 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 Jun 30 14:21:09 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 30 Jun 2009 15:21:09 -0400 Subject: [dba-VB] Messaging For JWC WAS: Syslogs In-Reply-To: <A5615CBECEC42E4791D7A7C724E1E9B2024478CF@MIEXCH.Marlow.ii-vi.net> References: <sa490e7e.066@cactus.dk> <4A49027A.5000604@colbyconsulting.com><A5615CBECEC42E4791D7A7C724E1E9B2024478C9@MIEXCH.Marlow.ii-vi.net> <4A4A4F27.6010606@colbyconsulting.com><A5615CBECEC42E4791D7A7C724E1E9B2024478CC@MIEXCH.Marlow.ii-vi.net> <4a4a60ca.0a1ad00a.63e4.2ae9@mx.google.com> <A5615CBECEC42E4791D7A7C724E1E9B2024478CF@MIEXCH.Marlow.ii-vi.net> Message-ID: <4A4A65A5.8080101@colbyconsulting.com> Drew, >If you want to play around with it, what you need to do is use UDP to 'broadcast' a hello and goodbye message, to alert everything on the subnet. (And you have to filter that message on the broadcasting machine, cause it'll pick up it's own message). In that hello/goodbye message, you can include all the info you want (username, computername, IP,etc). Then it's just a matter of using TCP for direct comms between two machines. In fact I don't want direct comms between machines, I want precisely "broadcast" messages. "Hey everybody, I added a new record in tblX". Any machine receiving that message promptly refreshes the cache for that table. "Hey everybody, we are shutting down the BE in 10 minutes, get out". Any machine receiving the message pops up a message to the user telling them to finish up and get out of the database. That kind of message. I really don't care about sending to a specific machine, I care about sending to ALL machines. John W. Colby www.ColbyConsulting.com > > Native does put a crimp in things. TCP/IP communications is pretty easy > with a Winsock control. It can be done with API's but it's a pain, and > you need to deal with callback functions, which have issues in and of > themselves in Access 2000 and on. > > If you were ok with an .ocx, I could whip that up, if you need something > native, that would require callbacks, and a lot more coding. If you > want to play around with it, what you need to do is use UDP to > 'broadcast' a hello and goodbye message, to alert everything on the > subnet. (And you have to filter that message on the broadcasting > machine, cause it'll pick up it's own message). In that hello/goodbye > message, you can include all the info you want (username, computername, > IP,etc). Then it's just a matter of using TCP for direct comms between > two machines. > > Drew > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Tuesday, June 30, 2009 12:45 PM > To: Discussion concerning Visual Basic and related programming issues. > Subject: Re: [dba-VB] Messaging For JWC WAS: Syslogs > > Drew, > > I really want this but it has to be vba native, no OCXs. I am familiar > with OCXs that are part of > Access, and that is OK. > > This would be used with my framework and I cannot guarantee that i can > register anything. It has to > just work. > > John W. Colby > www.ColbyConsulting.com > > > Drew Wutka wrote: >> Is this something you really want? >> >> It would be pretty simple to create an OCX that you could have on a >> hidden form, that would 'see' all running instances of your > application, >> and be able to 'communicate' to them. >> >> There is one quirk. It'll work on a standard network. However, if > your >> network is subnetted, it would only 'see' what's in the local subnet >> (because the best way to do this is to send out a broadcast 'hello' > and >> 'goodbye' message). To work with a subnetted network, you'd have to >> come up with a 'server/client' scenario, so the server would see all > the >> connected users (sort of like a custom DNS server). >> >> If you aren't worried about a subnetted network, let me know, I am >> pretty sure I can whip up an OCX to do what you want. >> >> Drew > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > The information contained in this transmission is intended only for the > person or entity > to which it is addressed and may contain II-VI Proprietary and/or II-VI > Business > Sensitive material. If you are not the intended recipient, please > contact > the sender > immediately and destroy the material in its entirety, whether electronic > or > hard copy. > You are notified that any review, retransmission, copying, disclosure, > dissemination, > or other use of, or taking of any action in reliance upon this > information > by persons > or entities other than the intended recipient is prohibited. > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > The information contained in this transmission is intended only for the person or entity > to which it is addressed and may contain II-VI Proprietary and/or II-VI Business > Sensitive material. If you are not the intended recipient, please contact the sender > immediately and destroy the material in its entirety, whether electronic or hard copy. > You are notified that any review, retransmission, copying, disclosure, dissemination, > or other use of, or taking of any action in reliance upon this information by persons > or entities other than the intended recipient is prohibited. > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From max.wanadoo at gmail.com Tue Jun 30 14:29:09 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Tue, 30 Jun 2009 20:29:09 +0100 Subject: [dba-VB] Messaging For JWC WAS: Syslogs In-Reply-To: <4A4A65A5.8080101@colbyconsulting.com> References: <sa490e7e.066@cactus.dk> <4A49027A.5000604@colbyconsulting.com><A5615CBECEC42E4791D7A7C724E1E9B2024478C9@MIEXCH.Marlow.ii-vi.net> <4A4A4F27.6010606@colbyconsulting.com><A5615CBECEC42E4791D7A7C724E1E9B2024478CC@MIEXCH.Marlow.ii-vi.net> <4a4a60ca.0a1ad00a.63e4.2ae9@mx.google.com> <A5615CBECEC42E4791D7A7C724E1E9B2024478CF@MIEXCH.Marlow.ii-vi.net> <4A4A65A5.8080101@colbyconsulting.com> Message-ID: <4a4a6788.1c05d00a.13ad.7ae6@mx.google.com> So, why not use NET SEND? Using Stuart's code you have the machine names on the net if you want to pick one. If you want to broadcast to all send to * Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: 30 June 2009 20:21 To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Messaging For JWC WAS: Syslogs Drew, >If you want to play around with it, what you need to do is use UDP to 'broadcast' a hello and goodbye message, to alert everything on the subnet. (And you have to filter that message on the broadcasting machine, cause it'll pick up it's own message). In that hello/goodbye message, you can include all the info you want (username, computername, IP,etc). Then it's just a matter of using TCP for direct comms between two machines. In fact I don't want direct comms between machines, I want precisely "broadcast" messages. "Hey everybody, I added a new record in tblX". Any machine receiving that message promptly refreshes the cache for that table. "Hey everybody, we are shutting down the BE in 10 minutes, get out". Any machine receiving the message pops up a message to the user telling them to finish up and get out of the database. That kind of message. I really don't care about sending to a specific machine, I care about sending to ALL machines. John W. Colby www.ColbyConsulting.com > > Native does put a crimp in things. TCP/IP communications is pretty easy > with a Winsock control. It can be done with API's but it's a pain, and > you need to deal with callback functions, which have issues in and of > themselves in Access 2000 and on. > > If you were ok with an .ocx, I could whip that up, if you need something > native, that would require callbacks, and a lot more coding. If you > want to play around with it, what you need to do is use UDP to > 'broadcast' a hello and goodbye message, to alert everything on the > subnet. (And you have to filter that message on the broadcasting > machine, cause it'll pick up it's own message). In that hello/goodbye > message, you can include all the info you want (username, computername, > IP,etc). Then it's just a matter of using TCP for direct comms between > two machines. > > Drew > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Tuesday, June 30, 2009 12:45 PM > To: Discussion concerning Visual Basic and related programming issues. > Subject: Re: [dba-VB] Messaging For JWC WAS: Syslogs > > Drew, > > I really want this but it has to be vba native, no OCXs. I am familiar > with OCXs that are part of > Access, and that is OK. > > This would be used with my framework and I cannot guarantee that i can > register anything. It has to > just work. > > John W. Colby > www.ColbyConsulting.com > > > Drew Wutka wrote: >> Is this something you really want? >> >> It would be pretty simple to create an OCX that you could have on a >> hidden form, that would 'see' all running instances of your > application, >> and be able to 'communicate' to them. >> >> There is one quirk. It'll work on a standard network. However, if > your >> network is subnetted, it would only 'see' what's in the local subnet >> (because the best way to do this is to send out a broadcast 'hello' > and >> 'goodbye' message). To work with a subnetted network, you'd have to >> come up with a 'server/client' scenario, so the server would see all > the >> connected users (sort of like a custom DNS server). >> >> If you aren't worried about a subnetted network, let me know, I am >> pretty sure I can whip up an OCX to do what you want. >> >> Drew > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > The information contained in this transmission is intended only for the > person or entity > to which it is addressed and may contain II-VI Proprietary and/or II-VI > Business > Sensitive material. If you are not the intended recipient, please > contact > the sender > immediately and destroy the material in its entirety, whether electronic > or > hard copy. > You are notified that any review, retransmission, copying, disclosure, > dissemination, > or other use of, or taking of any action in reliance upon this > information > by persons > or entities other than the intended recipient is prohibited. > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > The information contained in this transmission is intended only for the person or entity > to which it is addressed and may contain II-VI Proprietary and/or II-VI Business > Sensitive material. If you are not the intended recipient, please contact the sender > immediately and destroy the material in its entirety, whether electronic or hard copy. > You are notified that any review, retransmission, copying, disclosure, dissemination, > or other use of, or taking of any action in reliance upon this information by persons > or entities other than the intended recipient is prohibited. > > > _______________________________________________ > 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 Tue Jun 30 14:40:41 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 30 Jun 2009 15:40:41 -0400 Subject: [dba-VB] Messaging For JWC WAS: Syslogs In-Reply-To: <4a4a6788.1c05d00a.13ad.7ae6@mx.google.com> References: <sa490e7e.066@cactus.dk> <4A49027A.5000604@colbyconsulting.com><A5615CBECEC42E4791D7A7C724E1E9B2024478C9@MIEXCH.Marlow.ii-vi.net> <4A4A4F27.6010606@colbyconsulting.com><A5615CBECEC42E4791D7A7C724E1E9B2024478CC@MIEXCH.Marlow.ii-vi.net> <4a4a60ca.0a1ad00a.63e4.2ae9@mx.google.com> <A5615CBECEC42E4791D7A7C724E1E9B2024478CF@MIEXCH.Marlow.ii-vi.net> <4A4A65A5.8080101@colbyconsulting.com> <4a4a6788.1c05d00a.13ad.7ae6@mx.google.com> Message-ID: <4A4A6A39.9000503@colbyconsulting.com> As I said, I will be looking at this stuff. I too am out of my league here. John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > So, why not use NET SEND? > > Using Stuart's code you have the machine names on the net if you want to > pick one. If you want to broadcast to all send to * > > > Max > > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: 30 June 2009 20:21 > To: Discussion concerning Visual Basic and related programming issues. > Subject: Re: [dba-VB] Messaging For JWC WAS: Syslogs > > Drew, > > >If you want to play around with it, what you need to do is use UDP to > 'broadcast' a hello and > goodbye message, to alert everything on the subnet. (And you have to filter > that message on the > broadcasting machine, cause it'll pick up it's own message). In that > hello/goodbye message, you can > include all the info you want (username, computername, IP,etc). Then it's > just a matter of using > TCP for direct comms between two machines. > > In fact I don't want direct comms between machines, I want precisely > "broadcast" messages. "Hey > everybody, I added a new record in tblX". Any machine receiving that > message promptly refreshes the > cache for that table. > > "Hey everybody, we are shutting down the BE in 10 minutes, get out". Any > machine receiving the > message pops up a message to the user telling them to finish up and get out > of the database. > > That kind of message. I really don't care about sending to a specific > machine, I care about sending > to ALL machines. > > John W. Colby > www.ColbyConsulting.com > > >> Native does put a crimp in things. TCP/IP communications is pretty easy >> with a Winsock control. It can be done with API's but it's a pain, and >> you need to deal with callback functions, which have issues in and of >> themselves in Access 2000 and on. >> >> If you were ok with an .ocx, I could whip that up, if you need something >> native, that would require callbacks, and a lot more coding. If you >> want to play around with it, what you need to do is use UDP to >> 'broadcast' a hello and goodbye message, to alert everything on the >> subnet. (And you have to filter that message on the broadcasting >> machine, cause it'll pick up it's own message). In that hello/goodbye >> message, you can include all the info you want (username, computername, >> IP,etc). Then it's just a matter of using TCP for direct comms between >> two machines. >> >> Drew >> >> -----Original Message----- >> From: dba-vb-bounces at databaseadvisors.com >> [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby >> Sent: Tuesday, June 30, 2009 12:45 PM >> To: Discussion concerning Visual Basic and related programming issues. >> Subject: Re: [dba-VB] Messaging For JWC WAS: Syslogs >> >> Drew, >> >> I really want this but it has to be vba native, no OCXs. I am familiar >> with OCXs that are part of >> Access, and that is OK. >> >> This would be used with my framework and I cannot guarantee that i can >> register anything. It has to >> just work. >> >> John W. Colby >> www.ColbyConsulting.com >> >> >> Drew Wutka wrote: >>> Is this something you really want? >>> >>> It would be pretty simple to create an OCX that you could have on a >>> hidden form, that would 'see' all running instances of your >> application, >>> and be able to 'communicate' to them. >>> >>> There is one quirk. It'll work on a standard network. However, if >> your >>> network is subnetted, it would only 'see' what's in the local subnet >>> (because the best way to do this is to send out a broadcast 'hello' >> and >>> 'goodbye' message). To work with a subnetted network, you'd have to >>> come up with a 'server/client' scenario, so the server would see all >> the >>> connected users (sort of like a custom DNS server). >>> >>> If you aren't worried about a subnetted network, let me know, I am >>> pretty sure I can whip up an OCX to do what you want. >>> >>> Drew >> _______________________________________________ >> dba-VB mailing list >> dba-VB at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/dba-vb >> http://www.databaseadvisors.com >> >> The information contained in this transmission is intended only for the >> person or entity >> to which it is addressed and may contain II-VI Proprietary and/or II-VI >> Business >> Sensitive material. If you are not the intended recipient, please >> contact >> the sender >> immediately and destroy the material in its entirety, whether electronic >> or >> hard copy. >> You are notified that any review, retransmission, copying, disclosure, >> dissemination, >> or other use of, or taking of any action in reliance upon this >> information >> by persons >> or entities other than the intended recipient is prohibited. >> >> >> _______________________________________________ >> dba-VB mailing list >> dba-VB at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/dba-vb >> http://www.databaseadvisors.com >> >> _______________________________________________ >> dba-VB mailing list >> dba-VB at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/dba-vb >> http://www.databaseadvisors.com >> >> The information contained in this transmission is intended only for the > person or entity >> to which it is addressed and may contain II-VI Proprietary and/or II-VI > Business >> Sensitive material. If you are not the intended recipient, please contact > the sender >> immediately and destroy the material in its entirety, whether electronic > or hard copy. >> You are notified that any review, retransmission, copying, disclosure, > dissemination, >> or other use of, or taking of any action in reliance upon this information > by persons >> or entities other than the intended recipient is prohibited. >> >> >> _______________________________________________ >> dba-VB mailing list >> dba-VB at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/dba-vb >> http://www.databaseadvisors.com >> >> > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From Gustav at cactus.dk Tue Jun 30 16:02:21 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 30 Jun 2009 23:02:21 +0200 Subject: [dba-VB] favicon (was: Syslogs) Message-ID: <sa4a9990.001@cactus.dk> Hi Drew All tests have been done on a hosted IIS7. /gustav >>> DWUTKA at marlow.com 30-06-2009 20:42 >>> The reason those href's might not work is going to be dependant upon whether or not IIS is running. If you have a webserver, then a URL can be 'soft', or based on the root of the webserver. No webserver, everything must include a full URL (or 'hard' URL). Drew -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, June 30, 2009 12:06 PM To: dba-vb at databaseadvisors.com Subject: [dba-VB] favicon (was: Syslogs) Hi Drew That gives me an idea regarding favicon. I've found that it is sometimes difficult to get IE to understand that a favicon is present and should be displayed. Some common methods are: <!-- Favicon for IE browsers --> <link rel="shortcut icon" href="favicon.ico" /> <!-- Favicon for other browsers --> <link rel="icon" href="favicon.ico" /> This typically doesn't work. These may: <link rel="shortcut icon" href="/favicon.ico" /> mtaulty.com/CommunityServer: <link rel="shortcut icon" type="image/ico" href="/CommunityServer/favicon.ico" /> <link rel="shortcut icon" href="http://www.examplesite.com/favicon.ico" type="image/x-icon" /> The most reliable method I've found is the last - to use the full URL - but it is not nice to have hardcoded strings like these. So how about using your method: <link rel="shortcut icon" href="http://127.0.0.1/favicon.ico" type="image/x-icon" /> or localhost: <link rel="shortcut icon" href="http://localhost/favicon.ico" type="image/x-icon" /> Anyone having experience with this? /gustav >>> DWUTKA at marlow.com 30-06-2009 18:49 >>> Actually, if you have an IP address, it is real. It then gets into what it is used for. For example, with your wireless, if it's not connected, it won't have an IP address. If a standard NIC is not connected, it will show no address. If it IS connected, but not receiving an IP address, it will default to a (I think) 169 something, which is a hard coded address, which means nothing. You can also have internal addresses such as 127.0.0.1, which is a loopback to your local machine. (so if you are running a website, putting in http://127.0.0.1 on the server will give you the local website). Drew From stuart at lexacorp.com.pg Tue Jun 30 16:40:26 2009 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 01 Jul 2009 07:40:26 +1000 Subject: [dba-VB] Syslogs In-Reply-To: <4a4a4b16.1c05d00a.735a.08ee@mx.google.com> References: <sa4a1857.085@cactus.dk>, <4A4A0CCF.5521.1B8DFD71@stuart.lexacorp.com.pg>, <4a4a4b16.1c05d00a.735a.08ee@mx.google.com> Message-ID: <4A4A864A.25927.1D68884C@stuart.lexacorp.com.pg> I dunno, I've never needed to find it, but John, Gustav & co were talking about needing to know he Subnet mask so I decided it would be a good idea to include it in the Class. On 30 Jun 2009 at 18:27, Max Wanadoo wrote: > Stuart, this is good stuff. > Why would I need to know the subnet mask in the context of finding the IP > and Hostname? > > Max > > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan > Sent: 30 June 2009 14:02 > To: Discussion concerning Visual Basic and related programming issues. > Subject: Re: [dba-VB] Syslogs > > On 30 Jun 2009 at 13:50, Gustav Brock wrote: > > > However, no function is included to reveal the subnet mask. The only > "human" method I > >can locate for this purpose is to look up the registry: > > I just found another API call which returns more info including the SubNet > mask(s) so I've > modified clsResolve to include GetMyIPMask: > > Option Compare Database > Option Explicit > > '// define constants > Private Const IP_SUCCESS As Long = 0 > Private Const SOCKET_ERROR As Long = -1 > > Private Const MAX_WSADescription As Long = 256 > Private Const MAX_WSASYSStatus As Long = 128 > Private Const MIN_SOCKETS_REQD As Long = 1 > > Private Const WS_VERSION_REQD As Long = &H101 > Private Const WS_VERSION_MAJOR As Long = WS_VERSION_REQD \ &H100 And > &HFF& > Private Const WS_VERSION_MINOR As Long = WS_VERSION_REQD And &HFF& > > Private Const WSADescription_Len As Long = 256 > Private Const WSASYS_Status_Len As Long = 128 > Private Const AF_INET As Long = 2 > > '// structures > > Private Type HOSTENT > hName As Long > hAliases As Long > hAddrType As Integer > hLength As Integer > hAddrList As Long > End Type > > > Private Type WSADATA > wVersion As Integer > wHighVersion As Integer > szDescription(0 To MAX_WSADescription) As Byte > szSystemStatus(0 To MAX_WSASYSStatus) As Byte > wMaxSockets As Long > wMaxUDPDG As Long > dwVendorInfo As Long > End Type > > Private Type IPINFO > dwAddr As Long ' IP address > dwIndex As Long ' interface index > dwMask As Long ' subnet mask > dwBCastAddr As Long ' broadcast address > dwReasmSize As Long ' assembly size > unused1 As Integer ' not currently used > unused2 As Integer '; not currently used > End Type > > Private Type MIB_IPADDRTABLE > dEntrys As Long 'number of entries in the table > mIPInfo(5) As IPINFO 'array of IP address entries assumes maximum of 5 > Interfaces > End Type > > Private Type IP_Array > mBuffer As MIB_IPADDRTABLE > BufferLen As Long > End Type > > > '// api > 'kernel32 > Private Declare Sub apiCopyMemory Lib "kernel32" Alias "RtlMoveMemory" > (xDest As Any, > xSource As Any, ByVal nBytes As Long) > Private Declare Function apiStrLen Lib "kernel32" Alias "lstrlenA" (lpString > As Any) As Long > 'wsock32 > Private Declare Function apiGetHostByName Lib "wsock32.dll" Alias > "gethostbyname" > (ByVal hostname As String) As Long > Private Declare Function apiWSAStartup Lib "wsock32.dll" Alias "WSAStartup" > (ByVal > wVersionRequired As Long, lpWSADATA As WSADATA) As Long > Private Declare Function apiWSACleanup Lib "wsock32.dll" Alias "WSACleanup" > () As Long > Private Declare Function apiInetAddr Lib "wsock32.dll" Alias "inet_addr" > (ByVal s As String) > As Long > Private Declare Function apiGetHostByAddr Lib "wsock32.dll" Alias > "gethostbyaddr" (haddr > As Long, ByVal hnlen As Long, ByVal addrtype As Long) As Long > Private Declare Function apiGetHostName Lib "wsock32.dll" Alias > "gethostname" (ByVal > hostname$, ByVal HostLen As Integer) As Long > 'IPHlpAPI > Private Declare Function GetIpAddrTable Lib "IPHlpApi" (pIPAdrTable As Byte, > pdwSize As > Long, ByVal Sort As Long) As Long > > '// private functions > Private Function InitializeSocket() As Boolean > Dim WSAD As WSADATA > > 'attempt to initialize the socket > InitializeSocket = apiWSAStartup(WS_VERSION_REQD, WSAD) = IP_SUCCESS > End Function > > Private Sub CloseSocket() > 'try to close the socket > If apiWSACleanup() <> 0 Then > MsgBox "Error calling apiWSACleanup.", vbCritical > End If > > End Sub > > Public Function GetIPFromHostName(ByVal sHostName As String) As String > 'converts a host name to an IP address. > > Dim nBytes As Long > Dim ptrHosent As Long > Dim hstHost As HOSTENT > Dim ptrName As Long > Dim ptrAddress As Long > Dim ptrIPAddress As Long > Dim sAddress As String 'declare this as Dim sAddress(1) As String if you > want 2 ip > addresses returned > > 'try to initalize the socket > If InitializeSocket() = True Then > > 'try to get the IP > ptrHosent = apiGetHostByName(sHostName & vbNullChar) > > If ptrHosent <> 0 Then > > 'get the IP address > apiCopyMemory hstHost, ByVal ptrHosent, LenB(hstHost) > apiCopyMemory ptrIPAddress, ByVal hstHost.hAddrList, 4 > > 'fill buffer > sAddress = Space$(4) > 'if you want multiple domains returned, > 'fill all items in sAddress array with 4 spaces > > apiCopyMemory ByVal sAddress, ByVal ptrIPAddress, > hstHost.hLength > > 'change this to > 'CopyMemory ByVal sAddress(0), ByVal ptrIPAddress, > hstHost.hLength > 'if you want an array of ip addresses returned > '(some domains have more than one ip address associated with it) > > 'get the IP address > GetIPFromHostName = IPToText(sAddress) > 'if you are using multiple addresses, you need > IPToText(sAddress(0)) & "," & > IPToText(sAddress(1)) > 'etc > End If > Else > MsgBox "Failed to open Socket." > End If > End Function > > Private Function IPToText(ByVal IPAddress As String) As String > 'converts characters to numbers > IPToText = CStr(Asc(IPAddress)) & "." & _ > CStr(Asc(Mid$(IPAddress, 2, 1))) & "." & _ > CStr(Asc(Mid$(IPAddress, 3, 1))) & "." & _ > CStr(Asc(Mid$(IPAddress, 4, 1))) > End Function > > Private Function ConvertAddressToString(longAddr As Long) As String > Dim myByte(3) As Byte > Dim Cnt As Long > CopyMemory myByte(0), longAddr, 4 > For Cnt = 0 To 3 > ConvertAddressToString = ConvertAddressToString + CStr(myByte(Cnt)) > + "." > Next Cnt > ConvertAddressToString = Left$(ConvertAddressToString, > Len(ConvertAddressToString) > - 1) > End Function > > > Public Function GetHostNameFromIP(ByVal sIPAddress As String) As String > Dim ptrHosent As Long > Dim hAddress As Long > Dim sHost As String > Dim nBytes As Long > > 'try to open the socket > If InitializeSocket() = True Then > > 'convert string address to long datatype > hAddress = apiInetAddr(sIPAddress) > > 'check if an error ocucred > If hAddress <> SOCKET_ERROR Then > > 'obtain a pointer to the HOSTENT structure > 'that contains the name and address > 'corresponding to the given network address. > ptrHosent = apiGetHostByAddr(hAddress, 4, AF_INET) > > If ptrHosent <> 0 Then > > 'convert address and > 'get resolved hostname > > apiCopyMemory ptrHosent, ByVal ptrHosent, 4 > > nBytes = apiStrLen(ByVal ptrHosent) > > If nBytes > 0 Then > 'fill the IP address buffer > sHost = Space$(nBytes) > > apiCopyMemory ByVal sHost, ByVal ptrHosent, nBytes > GetHostNameFromIP = sHost > End If > Else > MsgBox "Call to gethostbyaddr failed." > End If > 'close the socket > CloseSocket > Else > MsgBox "Invalid IP address" > End If > Else > MsgBox "Failed to open Socket" > End If > End Function > > > Public Function GetMyHostName() As String > 'Finds local HostName > Dim strHostname As String > Dim lngHostLen As Long > 'try to initalize the socket > If InitializeSocket() = True Then > lngHostLen = 256 > strHostname = Space$(lngHostLen) > If apiGetHostName(strHostname, lngHostLen) = SOCKET_ERROR Then > MsgBox "Windows Sockets error getting Host Name" > Else > strHostname = Trim$(strHostname) > strHostname = Left$(strHostname, Len(strHostname) - 1) > End If > Else > MsgBox "Failed to open Socket." > End If > GetMyHostName = strHostname > End Function > > Public Function GetMyIPAddress() As String > GetMyIPAddress = GetIPFromHostName(GetMyHostName) > End Function > > Public Function GetMyIPMask() > Dim Ret As Long > Dim bBytes() As Byte > Dim tel As Long > Dim Listing As MIB_IPADDRTABLE > On Error GoTo END1 > GetIpAddrTable ByVal 0&, Ret, True > If Ret <= 0 Then Exit Function > ReDim bBytes(0 To Ret - 1) As Byte > 'retrieve the data > GetIpAddrTable bBytes(0), Ret, False > 'Get the first 4 bytes to get the entry's.. ip installed > CopyMemory Listing.dEntrys, bBytes(0), 4 > 'Copy whole structure to Listing and return for Adapter 1 (Adapter 0 > = Loopback) > CopyMemory Listing.mIPInfo(1), bBytes(4 + > (Len(Listing.mIPInfo(0)))), > Len(Listing.mIPInfo(1)) > GetIPMask = ConvertAddressToString(Listing.mIPInfo(1).dwMask) > Exit Function > END1: > MsgBox "Error Resolving Subnet Mask" > End Function > > > > > > > _______________________________________________ > 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 stuart at lexacorp.com.pg Tue Jun 30 17:13:21 2009 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 01 Jul 2009 08:13:21 +1000 Subject: [dba-VB] Syslogs In-Reply-To: <4A4A40BC.6060905@colbyconsulting.com> References: <sa490735.064@cactus.dk>, <A5615CBECEC42E4791D7A7C724E1E9B2024478C6@MIEXCH.Marlow.ii-vi.net>, <4A4A40BC.6060905@colbyconsulting.com> Message-ID: <4A4A8E01.28725.1D86AB27@stuart.lexacorp.com.pg> clResolve currently returns a string for Adapter 1. It can be easily modified to return arrays of Addresses and Masks for each adapter. (read the comments) -- Stuart On 30 Jun 2009 at 12:43, jwcolby wrote: > Yes, but then you have to do more. IPConfig shows several IP addresses on my work laptop. One is > the wireless, which only works when in range of a wireless network, one is a physical NIC, and one > is a Hamachi IP. There could be even more. On my server I have two physical NICS and in theory > each could have asked for an IP address. > > So would the REAL IP address please stand up. > > John W. Colby > www.ColbyConsulting.com > > > Drew Wutka wrote: > > There are several ways to get your IP address. Two I've used is to use > > a Winsock control, and look at the local host IP. > > > > Another relatively easy way is to dump the results of IPCONFIG to a text > > file. > > > > Create a .bat file (call it iptest.bat) and put the following line in > > it: > > > > Ipconfig >C:\ip.txt > > > > Then using ShellWait (http://mvps.org/access/api/api0004.htm) > > > > Use this function: > > > > Function IPAddresses() As String > > Dim f As Long > > Dim strTemp As String > > Dim strArray() As String > > If Dir("C:\ip.txt") <> "" Then Kill "C:\ip.txt" > > ShellWait "C:\iptest.bat" > > f = FreeFile > > Open "C:\ip.txt" For Binary Access Read As f > > strTemp = Space(LOF(f)) > > Get f, , strTemp > > Close f > > strArray = Split(strTemp, vbCrLf) > > strTemp = "" > > For f = 0 To UBound(strArray) > > If InStr(1, strArray(f), "IPv4", vbTextCompare) > 0 Or InStr(1, > > strArray(f), " IP Address", vbTextCompare) > 0 Then > > strTemp = strTemp & Trim(Mid(strArray(f), InStr(1, strArray(f), > > ":", vbBinaryCompare) + 1)) & ";" > > End If > > Next f > > If Len(strTemp) > 0 Then strTemp = Left(strTemp, Len(strTemp) - 1) > > IPAddresses = strTemp > > End Function > > > > Whalla, IPAddresses will return as a semicolon delimited string. > > (Obviously you could return an array or create a collection too...either > > way....) > > > > Drew > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From Gustav at cactus.dk Mon Jun 1 08:16:57 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 01 Jun 2009 15:16:57 +0200 Subject: [dba-VB] SCRUM/WPF - Buttons Styling Exerc izes Message-ID: <sa23f10a.013@cactus.dk> Hi Shamil Have you tried using the deplay wizard of VS? /gustav >>> Salakhetdinov Shamil <mcp2004 at mail.ru> 01-06-2009 00:25 >>> Hi Robert at All, I have made sample SilverLight application and I have got it installed (by XCOPY) here: http://shamils-4.hosting.parking.ru/sl It works well when running locally in debug mode under VS2008 SP1 but it does not show anything in SilverLight when running from the above link. What could be wrong? Thank you. -- Shamil P.S. Here is the main code of the above sample application: http://shamils-4.hosting.parking.ru/sl Page1.xaml ======== <UserControl x:Class="SLA1.Page" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Width="400" Height="300"> <Grid x:Name="LayoutRoot" Background="White"> <Grid.RowDefinitions> <RowDefinition Height="50"></RowDefinition> <RowDefinition Height="50"></RowDefinition> <RowDefinition Height="50"></RowDefinition> <RowDefinition Height="50"></RowDefinition> <RowDefinition Height="50*"></RowDefinition> </Grid.RowDefinitions> <Grid.ColumnDefinitions> <ColumnDefinition Width="200"></ColumnDefinition> <ColumnDefinition Width="60*"></ColumnDefinition> </Grid.ColumnDefinitions> <TextBlock Margin="10" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="0">User Name:</TextBlock> <TextBox x:Name="txtUserName" Height="30" Width="100" HorizontalAlignment="Left" Grid.Row="1" Grid.Column="1" Text="guest"></TextBox> <TextBlock Margin="10" HorizontalAlignment="Right" VerticalAlignment="Center" Grid.Row="2" Grid.Column="0">Password:</TextBlock> <TextBox x:Name="txtPassword" Height="30" Width="100" HorizontalAlignment="Left" Grid.Row="2" Grid.Column="1" Text="test"></TextBox> <Button Click="Button_Click" Content="OK" Height="30" Width="100" HorizontalAlignment="Left" Grid.Row="3" Grid.Column="1"></Button> </Grid> </UserControl> Page1.xaml.cs ========== using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Windows; using System.Windows.Controls; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Shapes; namespace SLA1 { public partial class Page : UserControl { public Page() { InitializeComponent(); } private void Button_Click(object sender, RoutedEventArgs e) { if (txtUserName.Text != "guest" || txtPassword.Text != "test") MessageBox.Show("Invalid UserName or Password"); else MessageBox.Show("Hello, World!"); } } } -----Original Message----- From: Robert Stewart <robert at webedb.com> To: dba-vb at databaseadvisors.com Date: Sun, 31 May 2009 12:56:07 -0500 Subject: Re: [dba-VB] SCRUM/WPF - Buttons Styling Exercizes > I will be starting to work on a Silverlight application at the end of June. > I am currently working on converting an Access application into WPF > using the entity framework. > > I just created a VM with WIndows 7 RC and VS 2010 Beta 1. I will > be using them to do some presentations at the user group that I teach. > Database and GUI Design. > > There are currently 3 of us working in WPF. One is developing a pipe > yard inventory and shipping application in WPF. The other has developed > oil well information programs in WPF and is working another one now. > I am working a an application that manages social service agencies > that supply people with food, clothes, and other services. From mcp2004 at mail.ru Mon Jun 1 09:22:34 2009 From: mcp2004 at mail.ru (Salakhetdinov Shamil) Date: Mon, 01 Jun 2009 18:22:34 +0400 Subject: [dba-VB] =?koi8-r?b?U0NSVU0vV1BGIC0gQnV0dG9ucyBTdHlsaW5nIEV4ZXJj?= =?koi8-r?b?IGl6ZXM=?= In-Reply-To: <sa23f10a.013@cactus.dk> References: <sa23f10a.013@cactus.dk> Message-ID: <E1MB8PK-0003ib-00.mcp2004-mail-ru@f156.mail.ru> Hi Gustav, No, I didn't try to use deploy wizard - I assumed that SilverLight apps deployment should be as easy as ASP.NET apps - using XCOPY to copy files on prepared ASP.NET app folder - SilverLight app AFAIS is an ASP.NET app starting SilverLight control and feeding it with .xap file's location. I could be wrong with my assumption that SilverLight apps can be deployed using XCOPY. Maybe there should be some special processing of SilverLight app's .xap file on server side, which is currently missing on my ISP site? I will try to consult with SilverLight docs/my ISP or we can find solutions here together? Robert, did you try to deploy SilverLight applications manually? Thank you. -- Shamil -----Original Message----- From: "Gustav Brock" <Gustav at cactus.dk> To: <dba-vb at databaseadvisors.com> Date: Mon, 01 Jun 2009 15:16:57 +0200 Subject: Re: [dba-VB] SCRUM/WPF - Buttons Styling Exerc izes > Hi Shamil > > Have you tried using the deplay wizard of VS? > > /gustav > > > >>> Salakhetdinov Shamil <mcp2004 at mail.ru> 01-06-2009 00:25 >>> > Hi Robert at All, > > I have made sample SilverLight application and I have got it installed (by XCOPY) here: > > http://shamils-4.hosting.parking.ru/sl > > It works well when running locally in debug mode under VS2008 SP1 but it does not show anything in SilverLight when running from the above link. > > What could be wrong? > > Thank you. > > -- > Shamil > > P.S. Here is the main code of the above sample application: > > http://shamils-4.hosting.parking.ru/sl > > Page1.xaml > ======== > > <UserControl x:Class="SLA1.Page" > xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" > xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" > Width="400" Height="300"> > <Grid x:Name="LayoutRoot" Background="White"> > <Grid.RowDefinitions> > <RowDefinition Height="50"></RowDefinition> > <RowDefinition Height="50"></RowDefinition> > <RowDefinition Height="50"></RowDefinition> > <RowDefinition Height="50"></RowDefinition> > <RowDefinition Height="50*"></RowDefinition> > </Grid.RowDefinitions> > <Grid.ColumnDefinitions> > <ColumnDefinition Width="200"></ColumnDefinition> > <ColumnDefinition Width="60*"></ColumnDefinition> > </Grid.ColumnDefinitions> > > <TextBlock Margin="10" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="0">User Name:</TextBlock> > <TextBox x:Name="txtUserName" Height="30" Width="100" HorizontalAlignment="Left" Grid.Row="1" Grid.Column="1" Text="guest"></TextBox> > <TextBlock Margin="10" HorizontalAlignment="Right" VerticalAlignment="Center" Grid.Row="2" Grid.Column="0">Password:</TextBlock> > <TextBox x:Name="txtPassword" Height="30" Width="100" HorizontalAlignment="Left" Grid.Row="2" Grid.Column="1" Text="test"></TextBox> > <Button Click="Button_Click" Content="OK" Height="30" Width="100" HorizontalAlignment="Left" Grid.Row="3" Grid.Column="1"></Button> > > </Grid> > </UserControl> > > > Page1.xaml.cs > ========== > using System; > using System.Collections.Generic; > using System.Linq; > using System.Net; > using System.Windows; > using System.Windows.Controls; > using System.Windows.Documents; > using System.Windows.Input; > using System.Windows.Media; > using System.Windows.Media.Animation; > using System.Windows.Shapes; > > namespace SLA1 > { > public partial class Page : UserControl > { > public Page() > { > InitializeComponent(); > } > > private void Button_Click(object sender, RoutedEventArgs e) > { > if (txtUserName.Text != "guest" || txtPassword.Text != "test") > MessageBox.Show("Invalid UserName or Password"); > else > MessageBox.Show("Hello, World!"); > } > } > } > > > -----Original Message----- > From: Robert Stewart <robert at webedb.com> > To: dba-vb at databaseadvisors.com > Date: Sun, 31 May 2009 12:56:07 -0500 > Subject: Re: [dba-VB] SCRUM/WPF - Buttons Styling Exercizes > > > I will be starting to work on a Silverlight application at the end of June. > > I am currently working on converting an Access application into WPF > > using the entity framework. > > > > I just created a VM with WIndows 7 RC and VS 2010 Beta 1. I will > > be using them to do some presentations at the user group that I teach. > > Database and GUI Design. > > > > There are currently 3 of us working in WPF. One is developing a pipe > > yard inventory and shipping application in WPF. The other has developed > > oil well information programs in WPF and is working another one now. > > I am working a an application that manages social service agencies > > that supply people with food, clothes, and other services. > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From mcp2004 at mail.ru Mon Jun 1 17:17:49 2009 From: mcp2004 at mail.ru (Salakhetdinov Shamil) Date: Tue, 02 Jun 2009 02:17:49 +0400 Subject: [dba-VB] SCRUM/WPF Data Binding Message-ID: <E1MBFpF-0001Nn-00.mcp2004-mail-ru@f254.mail.ru> Hi All, I planned here is the first sample of WPF data bidining: http://shamils-4.hosting.parking.ru/xaml/WpfBrowserApplication2.xbap As you can find it promise to be rather time consuming to implement binding to ADO.NET datasets, which isn't supported natively in .NET 3.5. The following sample just implements bindind to an object instance. Robert, you have experience with VS2010 - does it have advanced data binding controls as e.g. WinForms' BidingSource and BindingNavigator? Thank you. -- Shamil P.S. Here is the code of the referenced above sample page: Shippers.xaml ============= <Page x:Class="WpfBrowserApplication1.ShippersPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="Shippers" Height="180" Width="260"> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="74"/> <ColumnDefinition Width="*"/> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition Height="30"/> <RowDefinition Height="30"/> <RowDefinition Height="30"/> </Grid.RowDefinitions> <TextBlock Margin="4" Text="Id" VerticalAlignment= "Center"/> <TextBox Text="{Binding Path=Id, Mode=TwoWay}" Margin="4" Grid.Column="1"/> <TextBlock Margin="4" Text="Name" Grid.Row="1" VerticalAlignment="Center"/> <TextBox Margin="4" Text="{Binding Path=Name, Mode=TwoWay}" Grid.Column="1" Grid.Row="1"/> <TextBlock Margin="4" Text="Phone" Grid.Row="2" VerticalAlignment="Center"/> <TextBox Margin="4" Text="{Binding Path=Phone, Mode=TwoWay}" Grid.Column="1" Grid.Row="2"/> </Grid> </Page> Shippers.xaml.cs ================ using System.Windows.Controls; using System.ComponentModel; namespace WpfBrowserApplication1 { public partial class ShippersPage : Page { public ShippersPage() { InitializeComponent(); // Set the DataContext // to a Shipper object this.DataContext = new Shipper() { Id = 1, Name = "Speedy Express", Phone = "(503) 555-9831" }; } } public class Shipper : INotifyPropertyChanged { private int _id; public int Id { get { return _id; } set { if (_id != value) { _id = value; OnPropertyChanged("Id"); } } } private string _name; public string Name { get { return _name; } set { _name = value; if (_name != value) { _phone = value; OnPropertyChanged("Name"); } } } private string _phone; public string Phone { get { return _phone; } set { _phone = value; if (_phone != value) { _phone = value; OnPropertyChanged("Phone"); } } } #region INotifyPropertyChanged Members /// Implement INotifyPropertyChanged to notify the binding /// targets when the values of properties change. public event PropertyChangedEventHandler PropertyChanged; private void OnPropertyChanged(string propertyName) { if (this.PropertyChanged != null) { // Raise the PropertyChanged event this.PropertyChanged( this, new PropertyChangedEventArgs( propertyName)); } } #endregion } } From marklbreen at gmail.com Mon Jun 1 17:51:51 2009 From: marklbreen at gmail.com (Mark Breen) Date: Mon, 1 Jun 2009 23:51:51 +0100 Subject: [dba-VB] FYI: SCRUM/Agile - Born To Cycle In-Reply-To: <c7fd28d00906011540s7daea7a0pa556c3082ce413e0@mail.gmail.com> References: <c7fd28d00905281457y4047eb9ya305276299bc2b3d@mail.gmail.com> <E1MA58A-0004XL-00.mcp2004-mail-ru@f229.mail.ru> <c7fd28d00906011540s7daea7a0pa556c3082ce413e0@mail.gmail.com> Message-ID: <c7fd28d00906011551x4b3eb129t71d9d2c635010419@mail.gmail.com> Hello Shamil, I am trying to get some advice from the SVN forums on how to properly manage a private / public server environment which is what we have. When I start to get some results on it, I will offer to attempt to help here. However, before we start that, does the team still want to maintain the private / public source control servers. If so, I will try to get scripts written to automate a release from private to public, but if you are considering switching back to a codeplex only store, then I do not need to write such scripts. It is up to you all to let me know what is best for the team, Shamil, do I get it right that the main problem with the codeplex only environment is that codeplex does not allow certain users to lock files? And do I have it right that you wish to lock the proj files to avoid people messing them up with the have earlier builds? In that case I guess that you must have been maintaining the latest / most correct proj file for the team? Is that right? Actually as I write this email, I realise that I am attempting to assist in solving a problem, but I am not 100% sure I know what the problem really is. I recall it was related to the proj and sln files, but would you like to remind me what the problem was and what you did to over come the problem. I will then try to help, if that help is needed. thanks Mark 2009/5/29 Salakhetdinov Shamil <mcp2004 at mail.ru> > Hello Mark, > > No, I didn't try to use export feature of TortoiseSVN: to publish on > CodePlex we have to get all the source files from latest copy of you server > sources, copy/replace them into local SVN folder of CodePlex (it will have > different files' versions numbers), add all new files to the .svn > descriptors and then submit that new version to CodePlex. AFAIU that should > be doable using SVN commands/scripts/batches but I'm not sure how to make it > 100% safe to add new files' types using such scripts - I mean we have to > list all the file types used as source files and those files types do change > - their set is getting extended - IOW still manual testing/fixing scripts > will be needed I think. > > I haven't time to automate that work - we can make it automated here all > together by writing batches and/or simple C# utitlity controlling such > automated update - whatever would be less time consuming. > > It might happen I'm missing more straightforward way of doing such > synchronbization between your server and CodePlex assumed your server is a > master but CodePlex files have difference version numbers controlled by > CodePlex server. > > Thank you. > > -- > Shamil > > From mcp2004 at mail.ru Tue Jun 2 15:51:20 2009 From: mcp2004 at mail.ru (Salakhetdinov Shamil) Date: Wed, 03 Jun 2009 00:51:20 +0400 Subject: [dba-VB] =?koi8-r?b?RllJOiBTQ1JVTS9BZ2lsZSAtIEJvcm4gVG8gQ3ljbGU=?= In-Reply-To: <c7fd28d00906011551x4b3eb129t71d9d2c635010419@mail.gmail.com> References: <c7fd28d00906011551x4b3eb129t71d9d2c635010419@mail.gmail.com> Message-ID: <E1MBax6-00016U-00.mcp2004-mail-ru@f220.mail.ru> Hello Mark, Yes, I do hope we will have our team "getting in active mode" sometime in the near future and therefore using your server would be preferrable. Yes, the main issue is to get locked solution and project files while changing them as well as form design code files as well as dataset definition files and if we will use ado.net entity framework then model files etc. - codeplex doesn't allow to lock files at all and therefore manual coordination is needed, which in our case looks time consuming... Yes, if you can get advice from SVN forum how to automate the task that could help us: - Basically what is needed is to use your server's local copy repositoty as the source (that will always be on developers' PCs). and copy all the folders and files from it into the target directory (local copy of codeplex repositoty), which will be used to submit changes to codeplex. All source folders can be copied but only the files with given extension from those folders should be copied. After such a copy new folders and files should be included into local svn repository, and the files missing in the source folders but presented in the target folders should be deleted from local codeplex svn repository. And then local codeplex svn repository can be submitted to codeplex SVN server. I think the above procedure can be programmed/automated using C# custom coding calling SVN utlities but it might happen there is somewhere something like that done already... Thank you. -- Shamil -----Original Message----- From: Mark Breen <marklbreen at gmail.com> To: "Discussion concerning Visual Basic and related programming issues."<dba-vb at databaseadvisors.com> Date: Mon, 1 Jun 2009 23:51:51 +0100 Subject: [dba-VB] FYI: SCRUM/Agile - Born To Cycle > Hello Shamil, > I am trying to get some advice from the SVN forums on how to properly manage > a private / public server environment which is what we have. > > When I start to get some results on it, I will offer to attempt to help > here. > > However, before we start that, does the team still want to maintain the > private / public source control servers. If so, I will try to get scripts > written to automate a release from private to public, but if you are > considering switching back to a codeplex only store, then I do not need to > write such scripts. > > It is up to you all to let me know what is best for the team, > > Shamil, do I get it right that the main problem with the codeplex only > environment is that codeplex does not allow certain users to lock files? > And do I have it right that you wish to lock the proj files to avoid people > messing them up with the have earlier builds? In that case I guess that you > must have been maintaining the latest / most correct proj file for the team? > Is that right? Actually as I write this email, I realise that I am > attempting to assist in solving a problem, but I am not 100% sure I know > what the problem really is. I recall it was related to the proj and sln > files, but would you like to remind me what the problem was and what you > did to over come the problem. I will then try to help, if that help is > needed. > > thanks > > Mark > > > 2009/5/29 Salakhetdinov Shamil <mcp2004 at mail.ru> > > > > Hello Mark, > > > > No, I didn't try to use export feature of TortoiseSVN: to publish on > > CodePlex we have to get all the source files from latest copy of you server > > sources, copy/replace them into local SVN folder of CodePlex (it will have > > different files' versions numbers), add all new files to the .svn > > descriptors and then submit that new version to CodePlex. AFAIU that should > > be doable using SVN commands/scripts/batches but I'm not sure how to make it > > 100% safe to add new files' types using such scripts - I mean we have to > > list all the file types used as source files and those files types do change > > - their set is getting extended - IOW still manual testing/fixing scripts > > will be needed I think. > > > > I haven't time to automate that work - we can make it automated here all > > together by writing batches and/or simple C# utitlity controlling such > > automated update - whatever would be less time consuming. > > > > It might happen I'm missing more straightforward way of doing such > > synchronbization between your server and CodePlex assumed your server is a > > master but CodePlex files have difference version numbers controlled by > > CodePlex server. > > > > Thank you. > > > > -- > > Shamil > > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From mcp2004 at mail.ru Tue Jun 2 19:03:11 2009 From: mcp2004 at mail.ru (Salakhetdinov Shamil) Date: Wed, 03 Jun 2009 04:03:11 +0400 Subject: [dba-VB] =?koi8-r?b?U0NSVU0vV1BGIERhdGEgQmluZGluZw==?= In-Reply-To: <E1MBFpF-0001Nn-00.mcp2004-mail-ru@f254.mail.ru> References: <E1MBFpF-0001Nn-00.mcp2004-mail-ru@f254.mail.ru> Message-ID: <E1MBdwl-0007tL-00.mcp2004-mail-ru@f255.mail.ru> Hi All, Here is the next sampple on WPD databinding - now with a combobxo to navigate between three object instances. You can also edit fields values via wpf form and you can find they are saved in form's local memory: Here is the link to the live sample: http://shamils-4.hosting.parking.ru/xaml/WpfBrowserApplication2.xbap and in P.S. you can fiund code. Basically that's all main information on databinding I wanted to tell here, and in the following samples I plan to implement step by step navigation and data manipulation set of buttons. Thank you. -- Shamil Shippers.xaml ============= <Page x:Class="WpfBrowserApplication1.ShippersPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="Shippers" Height="180" Width="260"> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="74"/> <ColumnDefinition Width="*"/> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition Height="30"/> <RowDefinition Height="10"/> <RowDefinition Height="30"/> <RowDefinition Height="30"/> <RowDefinition Height="30"/> </Grid.RowDefinitions> <TextBlock Margin="4" Text="Shippers:" Grid.Row="0" Grid.Column="0" VerticalAlignment= "Center"/> <ComboBox x:Name="cboShippers" Margin="4" Grid.Row="0" Grid.Column="1" SelectedValuePath="Id" DisplayMemberPath="Name" SelectionChanged="cboShippers_SelectionChanged" /> <TextBlock Margin="4" Text="Id" Grid.Row="2" Grid.Column="0" VerticalAlignment= "Center"/> <TextBlock Text="{Binding Path=Id, Mode=OneWay}" Margin="4" Grid.Row="2" Grid.Column="1"/> <TextBlock Margin="4" Text="Name" Grid.Row="3" Grid.Column="0" VerticalAlignment="Center"/> <TextBox Margin="4" Text="{Binding Path=Name, Mode=TwoWay}" Grid.Row="3" Grid.Column="1"/> <TextBlock Margin="4" Text="Phone" Grid.Row="4" Grid.Column="0" VerticalAlignment="Center"/> <TextBox Margin="4" Text="{Binding Path=Phone, Mode=TwoWay}" Grid.Row="4" Grid.Column="1" /> </Grid> </Page> Shippers.xaml.cs ================ using System.Collections.Generic; using System.Windows.Controls; using System.Windows.Documents; using System.ComponentModel; namespace WpfBrowserApplication1 { public partial class ShippersPage : Page { private List<Shipper> _shippers; private Shipper _currentShipper; public ShippersPage() { InitializeComponent(); _loadInProgress = true; _shippers = Shipper.GetAll(); // Set the DataContext // to a Shipper object this.DataContext = _shippers[0]; foreach (Shipper shipper in _shippers) cboShippers.Items.Add(shipper); _currentShipper = _shippers[0]; cboShippers.SelectedItem = _currentShipper; _loadInProgress = false; } private bool _loadInProgress; private void cboShippers_SelectionChanged( object sender, SelectionChangedEventArgs e) { if (_loadInProgress) return; ComboBox cbo = (ComboBox)sender; _currentShipper = (Shipper)cbo.SelectedItem; this.DataContext = cbo.SelectedItem; e.Handled = true; } } public class Shipper : INotifyPropertyChanged { public static List<Shipper> GetAll() { List<Shipper> list = new List<Shipper>(); list.Add( new Shipper() { Id = 1, Name = "Speedy Express", Phone = "(503) 555-9831" }); list.Add( new Shipper() { Id = 2, Name = "United Package", Phone = "(503) 555-3199" }); list.Add( new Shipper() { Id = 3, Name = "Federal Shipping", Phone = "(503) 555-9931" }); return list; } private int _id; public int Id { get { return _id; } set { if (_id != value) { _id = value; OnPropertyChanged("Id"); } } } private string _name; public string Name { get { return _name; } set { _name = value; if (_name != value) { _phone = value; OnPropertyChanged("Name"); } } } private string _phone; public string Phone { get { return _phone; } set { _phone = value; if (_phone != value) { _phone = value; OnPropertyChanged("Phone"); } } } #region INotifyPropertyChanged Members /// Implement INotifyPropertyChanged to notify the binding /// targets when the values of properties change. public event PropertyChangedEventHandler PropertyChanged; private void OnPropertyChanged(string propertyName) { if (this.PropertyChanged != null) { // Raise the PropertyChanged event this.PropertyChanged( this, new PropertyChangedEventArgs( propertyName)); } } #endregion } } -----Original Message----- From: Salakhetdinov Shamil <mcp2004 at mail.ru> To: dba-VB <dba-vb at databaseadvisors.com> Date: Tue, 02 Jun 2009 02:17:49 +0400 Subject: [dba-VB] SCRUM/WPF Data Binding > Hi All, > > I planned here is the first sample of WPF data bidining: > > http://shamils-4.hosting.parking.ru/xaml/WpfBrowserApplication2.xbap > <<< snip>>> From mcp2004 at mail.ru Tue Jun 2 19:33:26 2009 From: mcp2004 at mail.ru (Salakhetdinov Shamil) Date: Wed, 03 Jun 2009 04:33:26 +0400 Subject: [dba-VB] SCRUM/SilverLight 2.0 Message-ID: <E1MBeQ2-00082Q-00.mcp2004-mail-ru@f190.mail.ru> Hi All, I have got setup simple SilverLight application here http://shamils-4.hosting.parking.ru/sl now using publish feature but it still doesn't work there when started from Internet and it works well locally. Do you know should there be any special tuning done of server side for SilverLight applications to run properly? (ASP.NET 2.0/3.5 run from that site just fine.) Thank you. -- Shamil From dwaters at usinternet.com Wed Jun 3 12:52:45 2009 From: dwaters at usinternet.com (Dan Waters) Date: Wed, 3 Jun 2009 12:52:45 -0500 Subject: [dba-VB] Which .Net Framework Should I Use? Message-ID: <1130A6EB0C9A443582981461A331769D@danwaters> I am just starting to learn VB.Net using VS 2008. All things being equal, I'd like to always select the latest version of the .Net framework (currently 3.5 SP1). My goal is to convert my Access system to VB.Net for any new and potentially for existing customers. Is there any reason not to use the latest version? Like for some reason customers don't want it? Any thoughts on this? Thanks! Dan From mcp2004 at mail.ru Wed Jun 3 13:59:33 2009 From: mcp2004 at mail.ru (Salakhetdinov Shamil) Date: Wed, 03 Jun 2009 22:59:33 +0400 Subject: [dba-VB] =?koi8-r?b?V2hpY2ggLk5ldCBGcmFtZXdvcmsgU2hvdWxkIEkgVXNl?= =?koi8-r?b?Pw==?= In-Reply-To: <1130A6EB0C9A443582981461A331769D@danwaters> References: <1130A6EB0C9A443582981461A331769D@danwaters> Message-ID: <E1MBvgT-0004Pm-00.mcp2004-mail-ru@f247.mail.ru> Hi Dan, I suppose that it's better to have the latest version of .NET Framework release, which is currently 3.5 SP1 as you noted. I have just happened to bootstrap .NET Framework 3.5 SP1 setup on my sister's notebook running XP by browsing to this link on my test site: http://shamils-4.hosting.parking.ru/xaml/WpfBrowserApplication2.xbap That bootstrap downloaded ~66MB of .NET Framework setup and then run it rather smoothly with one exception that it didn't want to continue with IE instance, which forced bootstrap, window opened - and the only option to close IE window was to "kill" it via Task Manager but then .NET 3.5 SP1 setup proceeded and finished OK, and my sample XBAP application did show-up OK on my sister's PC... I'd also note that if you only starting .NET development then maybe consider using C# instead of VB.NET - the reasons of using C# was many times repeated here and on AccessD - one of then is that for C# there are much more that for VB.NET ready to use code snippets all over the Internet, another one is that C# results in more readable code etc. Thank you. -- Shamil -----Original Message----- From: "Dan Waters" <dwaters at usinternet.com> To: "'Discussion concerning Visual Basic and related programming issues.'"<dba-vb at databaseadvisors.com> Date: Wed, 3 Jun 2009 12:52:45 -0500 Subject: [dba-VB] Which .Net Framework Should I Use? > I am just starting to learn VB.Net using VS 2008. All things being equal, > I'd like to always select the latest version of the .Net framework > (currently 3.5 SP1). My goal is to convert my Access system to VB.Net for > any new and potentially for existing customers. > > Is there any reason not to use the latest version? Like for some reason > customers don't want it? > > Any thoughts on this? > > Thanks! > Dan > > > > > _______________________________________________ > 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 Jun 3 16:37:19 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 03 Jun 2009 23:37:19 +0200 Subject: [dba-VB] Which .Net Framework Should I Use? Message-ID: <sa270943.059@cactus.dk> Hi Dan Yes, 3.5 won't run on Win 2000 (as far as I know). /gustav >>> "Dan Waters" <dwaters at usinternet.com> 03-06-2009 19:52 >>> I am just starting to learn VB.Net using VS 2008. All things being equal, I'd like to always select the latest version of the .Net framework (currently 3.5 SP1). My goal is to convert my Access system to VB.Net for any new and potentially for existing customers. Is there any reason not to use the latest version? Like for some reason customers don't want it? Any thoughts on this? Thanks! Dan From bheid at sc.rr.com Wed Jun 3 21:29:26 2009 From: bheid at sc.rr.com (Bobby Heid) Date: Wed, 3 Jun 2009 22:29:26 -0400 Subject: [dba-VB] Which .Net Framework Should I Use? In-Reply-To: <E1MBvgT-0004Pm-00.mcp2004-mail-ru@f247.mail.ru> References: <1130A6EB0C9A443582981461A331769D@danwaters> <E1MBvgT-0004Pm-00.mcp2004-mail-ru@f247.mail.ru> Message-ID: <000301c9e4bc$48185ab0$d8491010$@rr.com> >> one is that C# results in more readable code etc. I disagree with this statement. The quality of the code (performance and readability) is proportional to the quality of the developer. I use both C# and VB.Net. For the most part, you can write the same code in both languages and get very readable code. People can make just about any language's code poorly readable. This is not a post against C#, I actually prefer C#, although I use VB.Net at work. One thing I noticed while looking for a job a few years ago is that some regions have more C# jobs and others have more VB.Net jobs. I would personally target the latest framework. I think the .Net framework 4.0 is not too far in the future. Bobby -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Salakhetdinov Shamil Sent: Wednesday, June 03, 2009 3:00 PM To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Which .Net Framework Should I Use? Hi Dan, I suppose that it's better to have the latest version of .NET Framework release, which is currently 3.5 SP1 as you noted. I have just happened to bootstrap .NET Framework 3.5 SP1 setup on my sister's notebook running XP by browsing to this link on my test site: http://shamils-4.hosting.parking.ru/xaml/WpfBrowserApplication2.xbap That bootstrap downloaded ~66MB of .NET Framework setup and then run it rather smoothly with one exception that it didn't want to continue with IE instance, which forced bootstrap, window opened - and the only option to close IE window was to "kill" it via Task Manager but then .NET 3.5 SP1 setup proceeded and finished OK, and my sample XBAP application did show-up OK on my sister's PC... I'd also note that if you only starting .NET development then maybe consider using C# instead of VB.NET - the reasons of using C# was many times repeated here and on AccessD - one of then is that for C# there are much more that for VB.NET ready to use code snippets all over the Internet, another one is that C# results in more readable code etc. Thank you. -- Shamil <snip> From mcp2004 at mail.ru Thu Jun 4 10:06:49 2009 From: mcp2004 at mail.ru (Salakhetdinov Shamil) Date: Thu, 04 Jun 2009 19:06:49 +0400 Subject: [dba-VB] Problem while publishing ADO.NET Data Service... Message-ID: <E1MCEWn-0007aZ-00.mcp2004-mail-ru@f200.mail.ru> Hi All, I'm trying to implement and to publish ADO.NET Data Service as described here: http://msdn.microsoft.com/en-us/library/cc907912.aspx and I'm getting the following error: Server Error in '/NorthwindNetDataService' Application. -------------------------------------------------------------------------------- This collection already contains an address with scheme http. There can be at most one address per scheme in this collection. Parameter name: item ... Googling and trying to apply different advices from googled samples to not help. Data Service is currently published here: http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NorthwinNetService.svc When usinhg it locally as e.g: http://localhost:53154/NorthwinNetService.svc or http://localhost:53154/NorthwinNetService.svc/Shipper it works OK - for the latter URL I'm getting the following response (truncated here): http://localhost:53154/NorthwinNetService.svc/Shipper <?xml version="1.0" encoding="utf-8" standalone="yes" ?> - <feed xml:base="http://localhost:53154/NorthwinNetService.svc/" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns="http://www.w3.org/2005/Atom"> <title type="text">Shipper http://localhost:53154/NorthwinNetService.svc/Shipper 2009-06-04T14:58:28Z - http://localhost:53154/NorthwinNetService.svc/Shipper(1) <updated>2009-06-04T14:58:28Z</updated> - <author> <name /> </author> <link rel="edit" title="Shipper" href="Shipper(1)" /> <link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Order" type="application/atom+xml;type=feed" title="Order" href="Shipper(1)/Order" /> <category term="NorthwindNetModel.Shipper" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme" /> - <content type="application/xml"> - <m:properties> <d:ID m:type="Edm.Int32">1</d:ID> <d:Name>Speedy Express</d:Name> <d:Phone>(503) 555-9831</d:Phone> <d:RowTimeStamp m:type="Edm.Binary">AAAAAAAAB/Q=</d:RowTimeStamp> </m:properties> </content> </entry> ....... If you get through such an issues already and you have solved it could you please post your solution here? Thank you. -- Shamil From mcp2004 at mail.ru Thu Jun 4 10:10:09 2009 From: mcp2004 at mail.ru (Salakhetdinov Shamil) Date: Thu, 04 Jun 2009 19:10:09 +0400 Subject: [dba-VB] =?koi8-r?b?V2hpY2ggLk5ldCBGcmFtZXdvcmsgU2hvdWxkIEkgVXNl?= =?koi8-r?b?Pw==?= In-Reply-To: <000301c9e4bc$48185ab0$d8491010$@rr.com> References: <000301c9e4bc$48185ab0$d8491010$@rr.com> Message-ID: <E1MCEa1-00052h-00.mcp2004-mail-ru@f161.mail.ru> Hi Bobby, That's fine. Thank you. -- Shamil -----Original Message----- From: "Bobby Heid" <bheid at sc.rr.com> To: "'Salakhetdinov Shamil'" <mcp2004 at mail.ru>,"'Discussion concerning Visual Basic and related programming issues.'" <dba-vb at databaseadvisors.com> Date: Wed, 3 Jun 2009 22:29:26 -0400 Subject: RE: [dba-VB] Which .Net Framework Should I Use? > >> one is that C# results in more readable code etc. > > I disagree with this statement. The quality of the code (performance and > readability) is proportional to the quality of the developer. I use both C# > and VB.Net. For the most part, you can write the same code in both > languages and get very readable code. People can make just about any > language's code poorly readable. > > This is not a post against C#, I actually prefer C#, although I use VB.Net > at work. > > One thing I noticed while looking for a job a few years ago is that some > regions have more C# jobs and others have more VB.Net jobs. > > I would personally target the latest framework. I think the .Net framework > 4.0 is not too far in the future. > > Bobby > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Salakhetdinov > Shamil > Sent: Wednesday, June 03, 2009 3:00 PM > To: Discussion concerning Visual Basic and related programming issues. > Subject: Re: [dba-VB] Which .Net Framework Should I Use? > > Hi Dan, > > I suppose that it's better to have the latest version of .NET Framework > release, which is currently 3.5 SP1 as you noted. > > I have just happened to bootstrap .NET Framework 3.5 SP1 setup on my > sister's notebook running XP by browsing to this link on my test site: > > http://shamils-4.hosting.parking.ru/xaml/WpfBrowserApplication2.xbap > > That bootstrap downloaded ~66MB of .NET Framework setup and then run it > rather smoothly with one exception that it didn't want to continue with IE > instance, which forced bootstrap, window opened - and the only option to > close IE window was to "kill" it via Task Manager but then .NET 3.5 SP1 > setup proceeded and finished OK, and my sample XBAP application did show-up > OK on my sister's PC... > > I'd also note that if you only starting .NET development then maybe consider > using C# instead of VB.NET - the reasons of using C# was many times repeated > here and on AccessD - one of then is that for C# there are much more that > for VB.NET ready to use code snippets all over the Internet, another one is > that C# results in more readable code etc. > > Thank you. > > -- > Shamil > > <snip> > > > From mcp2004 at mail.ru Thu Jun 4 13:04:53 2009 From: mcp2004 at mail.ru (Salakhetdinov Shamil) Date: Thu, 04 Jun 2009 22:04:53 +0400 Subject: [dba-VB] =?koi8-r?b?UHJvYmxlbSB3aGlsZSBwdWJsaXNoaW5nIEFETy5ORVQg?= =?koi8-r?b?RGF0YSBTZXJ2aWNlLi4u?= In-Reply-To: <E1MCEWn-0007aZ-00.mcp2004-mail-ru@f200.mail.ru> References: <E1MCEWn-0007aZ-00.mcp2004-mail-ru@f200.mail.ru> Message-ID: <E1MCHJ7-0000b4-00.mcp2004-mail-ru@f73.mail.ru> Hi All, I'm still "fighting" with the below issue - it woudl be great if you can help to find a quick fix as I wanted to use this data service data source for sample WPF/XBAP/SilverLight forms/pages... Meanwhile I have got occasionally created what is called: Dynamic Data Entities Web Application and it worked almost out-of-the-box http://shamils-4.hosting.parking.ru/NorthwindNetDynamicDataWebSite just some small corrections in Global.asax.cs were needed - uncommenting two code lines and typing in ADO.NET Entity Model name: model.RegisterContext(typeof(NorthwindNETEntities), new ContextConfiguration() { ScaffoldAllTables = true }); I must say I wasn't aware of this technology, which needs some more studying to see where it leads... Thank you. -- Shamil -----Original Message----- From: Salakhetdinov Shamil <mcp2004 at mail.ru> To: dba-VB <dba-vb at databaseadvisors.com> Date: Thu, 04 Jun 2009 19:06:49 +0400 Subject: [dba-VB] Problem while publishing ADO.NET Data Service... > Hi All, > > I'm trying to implement and to publish ADO.NET Data Service as described here: > > http://msdn.microsoft.com/en-us/library/cc907912.aspx > > and I'm getting the following error: > > Server Error in '/NorthwindNetDataService' Application. > -------------------------------------------------------------------------------- > > This collection already contains an address with scheme http. There can be at most one address per scheme in this collection. > Parameter name: item > ... > > Googling and trying to apply different advices from googled samples to not help. > > Data Service is currently published here: > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NorthwinNetService.svc > > When usinhg it locally as e.g: > > http://localhost:53154/NorthwinNetService.svc > > or > > http://localhost:53154/NorthwinNetService.svc/Shipper > > it works OK - for the latter URL I'm getting the following response (truncated here): > > http://localhost:53154/NorthwinNetService.svc/Shipper > > <?xml version="1.0" encoding="utf-8" standalone="yes" ?> > - <feed xml:base="http://localhost:53154/NorthwinNetService.svc/" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns="http://www.w3.org/2005/Atom"> > <title type="text">Shipper > http://localhost:53154/NorthwinNetService.svc/Shipper > 2009-06-04T14:58:28Z > > - > http://localhost:53154/NorthwinNetService.svc/Shipper(1) > > <updated>2009-06-04T14:58:28Z</updated> > - <author> > <name /> > </author> > <link rel="edit" title="Shipper" href="Shipper(1)" /> > <link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Order" type="application/atom+xml;type=feed" title="Order" href="Shipper(1)/Order" /> > <category term="NorthwindNetModel.Shipper" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme" /> > - <content type="application/xml"> > - <m:properties> > <d:ID m:type="Edm.Int32">1</d:ID> > <d:Name>Speedy Express</d:Name> > <d:Phone>(503) 555-9831</d:Phone> > <d:RowTimeStamp m:type="Edm.Binary">AAAAAAAAB/Q=</d:RowTimeStamp> > </m:properties> > </content> > </entry> > ....... > > > If you get through such an issues already and you have solved it could you please post your solution here? > > Thank you. > > -- > Shamil > > > > > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From mcp2004 at mail.ru Thu Jun 4 14:06:18 2009 From: mcp2004 at mail.ru (Salakhetdinov Shamil) Date: Thu, 04 Jun 2009 23:06:18 +0400 Subject: [dba-VB] =?koi8-r?b?UHJvYmxlbSB3aGlsZSBwdWJsaXNoaW5nIEFETy5ORVQg?= =?koi8-r?b?RGF0YSBTZXJ2aWNlLi4u?= In-Reply-To: <E1MCHJ7-0000b4-00.mcp2004-mail-ru@f73.mail.ru> References: <E1MCHJ7-0000b4-00.mcp2004-mail-ru@f73.mail.ru> Message-ID: <E1MCIGY-0006z3-00.mcp2004-mail-ru@f59.mail.ru> Hi All, I have changed location of NorthwindNety Data Service to: http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc still no solution for This collection already contains an address with scheme http. There can be at most one address per scheme in this collection. Parameter name: item :( -- Shamil -----Original Message----- From: Salakhetdinov Shamil <mcp2004 at mail.ru> To: "Discussion concerning Visual Basic and related programming issues."<dba-vb at databaseadvisors.com> Date: Thu, 04 Jun 2009 22:04:53 +0400 Subject: Re: [dba-VB] Problem while publishing ADO.NET Data Service... > Hi All, > > I'm still "fighting" with the below issue - it woudl be great if you can help to find a quick fix as I wanted to use this data service data source for sample WPF/XBAP/SilverLight forms/pages... > > Meanwhile I have got occasionally created what is called: > > Dynamic Data Entities Web Application > > and it worked almost out-of-the-box > > http://shamils-4.hosting.parking.ru/NorthwindNetDynamicDataWebSite > > just some small corrections in Global.asax.cs were needed - uncommenting two code lines and typing in ADO.NET Entity Model name: > > model.RegisterContext(typeof(NorthwindNETEntities), > new ContextConfiguration() { ScaffoldAllTables = true }); > > I must say I wasn't aware of this technology, which needs some more studying to see where it leads... > > Thank you. > > -- > Shamil > > > -----Original Message----- > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > To: dba-VB <dba-vb at databaseadvisors.com> > Date: Thu, 04 Jun 2009 19:06:49 +0400 > Subject: [dba-VB] Problem while publishing ADO.NET Data Service... > > > Hi All, > > > > I'm trying to implement and to publish ADO.NET Data Service as described here: > > > > http://msdn.microsoft.com/en-us/library/cc907912.aspx > > > > and I'm getting the following error: > > > > Server Error in '/NorthwindNetDataService' Application. > > -------------------------------------------------------------------------------- > > > > This collection already contains an address with scheme http. There can be at most one address per scheme in this collection. > > Parameter name: item > > ... > > > > Googling and trying to apply different advices from googled samples to not help. > > > > Data Service is currently published here: > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NorthwinNetService.svc > > > > When usinhg it locally as e.g: > > > > http://localhost:53154/NorthwinNetService.svc > > > > or > > > > http://localhost:53154/NorthwinNetService.svc/Shipper > > > > it works OK - for the latter URL I'm getting the following response (truncated here): > > > > http://localhost:53154/NorthwinNetService.svc/Shipper > > > > <?xml version="1.0" encoding="utf-8" standalone="yes" ?> > > - <feed xml:base="http://localhost:53154/NorthwinNetService.svc/" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns="http://www.w3.org/2005/Atom"> > > <title type="text">Shipper > > http://localhost:53154/NorthwinNetService.svc/Shipper > > 2009-06-04T14:58:28Z > > > > - > > http://localhost:53154/NorthwinNetService.svc/Shipper(1) > > > > <updated>2009-06-04T14:58:28Z</updated> > > - <author> > > <name /> > > </author> > > <link rel="edit" title="Shipper" href="Shipper(1)" /> > > <link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Order" type="application/atom+xml;type=feed" title="Order" href="Shipper(1)/Order" /> > > <category term="NorthwindNetModel.Shipper" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme" /> > > - <content type="application/xml"> > > - <m:properties> > > <d:ID m:type="Edm.Int32">1</d:ID> > > <d:Name>Speedy Express</d:Name> > > <d:Phone>(503) 555-9831</d:Phone> > > <d:RowTimeStamp m:type="Edm.Binary">AAAAAAAAB/Q=</d:RowTimeStamp> > > </m:properties> > > </content> > > </entry> > > ....... > > > > > > If you get through such an issues already and you have solved it could you please post your solution here? > > > > 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 mcp2004 at mail.ru Thu Jun 4 17:48:38 2009 From: mcp2004 at mail.ru (Salakhetdinov Shamil) Date: Fri, 05 Jun 2009 02:48:38 +0400 Subject: [dba-VB] =?koi8-r?b?UHJvYmxlbSB3aGlsZSBwdWJsaXNoaW5nIEFETy5ORVQg?= =?koi8-r?b?RGF0YSBTZXJ2aWNlLi4u?= In-Reply-To: <E1MCIGY-0006z3-00.mcp2004-mail-ru@f59.mail.ru> References: <E1MCIGY-0006z3-00.mcp2004-mail-ru@f59.mail.ru> Message-ID: <E1MCLji-0004uR-00.mcp2004-mail-ru@f251.mail.ru> Hi All, I have got found one solution for the subject issue: Hosted ADO.NET Data Services & Silverlight http://dvanderboom.wordpress.com/2009/01/07/hosted-adonet-data-services-silverlight/ But it doesn't look satisfactory for general case, and it doesn't work yet for my site (waiting for ISP support with IIS server restart - maybe that helps as web site restarting doesn't work) - I have got stuck here: http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc with a message: <<< IIS specified authentication schemes 'Basic, Anonymous', but the binding only supports specification of exactly one authentication scheme. Valid authentication schemes are Digest, Negotiate, NTLM, Basic, or Anonymous. Change the IIS settings so that only a single authentication scheme is used. >>> and as you can see SOAP and WCF sample services do work OK here: http://shamils-4.hosting.parking.ru/NorthwindNetDataService/SOAPService.asmx http://shamils-4.hosting.parking.ru/NorthwindNetDataService/WCFService.svc If you know general solution for subject issue that woudl be very helpful. Thank you. -- Shamil -----Original Message----- From: Salakhetdinov Shamil <mcp2004 at mail.ru> To: "Discussion concerning Visual Basic and related programming issues."<dba-vb at databaseadvisors.com> Date: Thu, 04 Jun 2009 23:06:18 +0400 Subject: Re: [dba-VB] Problem while publishing ADO.NET Data Service... > Hi All, > > I have changed location of NorthwindNety Data Service to: > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > still no solution for > > This collection already contains an address with scheme http. There can be at most one address per scheme in this collection. > Parameter name: item > > :( > > -- > Shamil > ><<< aaa >>> From mcp2004 at mail.ru Thu Jun 4 18:30:38 2009 From: mcp2004 at mail.ru (Salakhetdinov Shamil) Date: Fri, 05 Jun 2009 03:30:38 +0400 Subject: [dba-VB] =?koi8-r?b?UHJvYmxlbSB3aGlsZSBwdWJsaXNoaW5nIEFETy5ORVQg?= =?koi8-r?b?RGF0YSBTZXJ2aWNlLi4u?= In-Reply-To: <E1MCLji-0004uR-00.mcp2004-mail-ru@f251.mail.ru> References: <E1MCLji-0004uR-00.mcp2004-mail-ru@f251.mail.ru> Message-ID: <E1MCMOM-0006dT-00.mcp2004-mail-ru@f182.mail.ru> Hi All, Just wanted to ask one more question on subject issue: I do not understand why IIS should be restarted to have one of its Web Site's getting a new setting activated? I mean why it's not enough to stop and start this web site/web application? What am I missing? You can see by goodling how many developers got confused by this "simple"(?) issue - and even stackoverflow doesn't have a clear answer, or am I missing it? Thank you. -- Shamil -----Original Message----- From: Salakhetdinov Shamil <mcp2004 at mail.ru> To: "Discussion concerning Visual Basic and related programming issues."<dba-vb at databaseadvisors.com> Date: Fri, 05 Jun 2009 02:48:38 +0400 Subject: Re: [dba-VB] Problem while publishing ADO.NET Data Service... > Hi All, > > I have got found one solution for the subject issue: > > Hosted ADO.NET Data Services & Silverlight > http://dvanderboom.wordpress.com/2009/01/07/hosted-adonet-data-services-silverlight/ > > But it doesn't look satisfactory for general case, and it doesn't work yet for my site (waiting for ISP support with IIS server restart - maybe that helps as web site restarting doesn't work) - I have got stuck here: > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > with a message: > <<< > IIS specified authentication schemes 'Basic, Anonymous', but the binding only supports specification of exactly one authentication scheme. Valid authentication schemes are Digest, Negotiate, NTLM, Basic, or Anonymous. Change the IIS settings so that only a single authentication scheme is used. > >>> > > and as you can see SOAP and WCF sample services do work OK here: > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/SOAPService.asmx > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/WCFService.svc > > If you know general solution for subject issue that woudl be very helpful. > > Thank you. > > -- > Shamil > > -----Original Message----- > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > To: "Discussion concerning Visual Basic and related programming issues."<dba-vb at databaseadvisors.com> > Date: Thu, 04 Jun 2009 23:06:18 +0400 > Subject: Re: [dba-VB] > Problem while publishing ADO.NET Data Service... > > > Hi All, > > > > I have changed location of NorthwindNety Data Service to: > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > > > still no solution for > > > > This collection already contains an address with scheme http. There can be at most one address per scheme in this collection. > > Parameter name: item > > > > :( > > > > -- > > Shamil > > > ><<< aaa >>> > _______________________________________________ > 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 Jun 5 03:10:10 2009 From: marklbreen at gmail.com (Mark Breen) Date: Fri, 5 Jun 2009 09:10:10 +0100 Subject: [dba-VB] Problem while publishing ADO.NET Data Service... In-Reply-To: <E1MCMOM-0006dT-00.mcp2004-mail-ru@f182.mail.ru> References: <E1MCLji-0004uR-00.mcp2004-mail-ru@f251.mail.ru> <E1MCMOM-0006dT-00.mcp2004-mail-ru@f182.mail.ru> Message-ID: <c7fd28d00906050110t4683d3a4s12edd90831dde420@mail.gmail.com> Hello Shamil, as you know, I have two servers here in Ireland, would you like to do your diagnosis / development of future development work on one of my servers ? If so, that would be no problem. I am trying to keep up and read some of the link you posted int he last few days regarding ADO.NET Data Service. I am not clear yet about differences between Webservices and ADO.NET Data Service , but I expect if I spend some time to google and read, I can become clear. However, I have one question, do you think that this archetectire is without doubt the way we will all connect to our data sources in the future? How about performance, will it perform as good as current connections such as ado and odbc over SQL Server Port? thanks Mark 2009/6/5 Salakhetdinov Shamil <mcp2004 at mail.ru> > > Hi All, > > Just wanted to ask one more question on subject issue: I do not understand > why IIS should be restarted to have one of its Web Site's getting a new > setting activated? I mean why it's not enough to stop and start this web > site/web application? What am I missing? > > You can see by goodling how many developers got confused by this > "simple"(?) issue - and even stackoverflow doesn't have a clear answer, or > am I missing it? > > Thank you. > > -- > Shamil > > -----Original Message----- > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > To: "Discussion concerning Visual Basic and related programming issues."< > dba-vb at databaseadvisors.com> > Date: Fri, 05 Jun 2009 02:48:38 +0400 > Subject: Re: [dba-VB] > Problem while publishing ADO.NET Data Service... > > > Hi All, > > > > I have got found one solution for the subject issue: > > > > Hosted ADO.NET Data Services & Silverlight > > > http://dvanderboom.wordpress.com/2009/01/07/hosted-adonet-data-services-silverlight/ > > > > But it doesn't look satisfactory for general case, and it doesn't work > yet for my site (waiting for ISP support with IIS server restart - maybe > that helps as web site restarting doesn't work) - I have got stuck here: > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > > > with a message: > > <<< > > IIS specified authentication schemes 'Basic, Anonymous', but the binding > only supports specification of exactly one authentication scheme. Valid > authentication schemes are Digest, Negotiate, NTLM, Basic, or Anonymous. > Change the IIS settings so that only a single authentication scheme is used. > > >>> > > > > and as you can see SOAP and WCF sample services do work OK here: > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/SOAPService.asmx > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/WCFService.svc > > > > If you know general solution for subject issue that woudl be very > helpful. > > > > Thank you. > > > > -- > > Shamil > > > > -----Original Message----- > > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > > To: "Discussion concerning Visual Basic and related programming issues."< > dba-vb at databaseadvisors.com> > > Date: Thu, 04 Jun 2009 23:06:18 +0400 > > Subject: Re: [dba-VB] > > Problem while publishing ADO.NET Data Service... > > > > > Hi All, > > > > > > I have changed location of NorthwindNety Data Service to: > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > > > > > still no solution for > > > > > > This collection already contains an address with scheme http. There > can be at most one address per scheme in this collection. > > > Parameter name: item > > > > > > :( > > > > > > -- > > > Shamil > > > > > ><<< aaa >>> > > _______________________________________________ > > 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 mcp2004 at mail.ru Fri Jun 5 05:59:21 2009 From: mcp2004 at mail.ru (Salakhetdinov Shamil) Date: Fri, 05 Jun 2009 14:59:21 +0400 Subject: [dba-VB] =?koi8-r?b?UHJvYmxlbSB3aGlsZSBwdWJsaXNoaW5nIEFETy5ORVQg?= =?koi8-r?b?RGF0YSBTZXJ2aWNlLi4u?= In-Reply-To: <c7fd28d00906050110t4683d3a4s12edd90831dde420@mail.gmail.com> References: <c7fd28d00906050110t4683d3a4s12edd90831dde420@mail.gmail.com> Message-ID: <E1MCX8r-00011L-00.mcp2004-mail-ru@f183.mail.ru> Hello Mark, Thank you for your proposal. Yes, it would be useful to test using your servers in the case my hosting site would not be able to "keep the pressure" of coming data requests, and in the scenarious when several servers would need to communicate - something like distributed workflow (using WF). BTW, my sample site works OK now: Here is a "query" to retrieve Shippers. http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc/Shipper and this one for Categories http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc/Category Note: those queries return ATOM feed therefore ATOM feed interpretation should be switched off in your browser. Such queries can be used to do all the data manipulation including CRUD operations AFAIU. I haven't yet checked/read how to make such quieries secure but I assume that this feature is implemented already, and I need just to switch it on. The returned data can be of different structure ATOM feed, JSON etc. - and they can be consumed by many types of clients including AJAX (KavaScript) etc. In other words once you get ADO.NET data Service published (no any programming was needed in my simple sample case) you can immediatley start developing custom applications/clients. As for performance - it should be good enough I expect - at least for business areas and the applications we develop. AFAIU ADO.NET Data Services internals can be fine tuned for special case to increase response time. We can test performance - we can write test clients and run them on our PCs querying the above sample service or the one you can install on your server - to compare response time from public ASP.NET hosting site I use or dedicated servers you have - I plan to publish this sample service on our CodePlex Northwind project area... Is ADO.NET Data Services the future? - that's is the question to MS - I do not have a Crystal Ball :) For sure it's very useful and promising technology. Thank you. -- Shamil -----Original Message----- From: Mark Breen <marklbreen at gmail.com> To: Salakhetdinov Shamil <mcp2004 at mail.ru>, "Discussion concerning Visual Basic and related programming issues." <dba-vb at databaseadvisors.com> Date: Fri, 5 Jun 2009 09:10:10 +0100 Subject: Re: [dba-VB] Problem while publishing ADO.NET Data Service... > Hello Shamil, > as you know, I have two servers here in Ireland, would you like to do your > diagnosis / development of future development work on one of my servers ? > If so, that would be no problem. > > I am trying to keep up and read some of the link you posted int he last few > days regarding ADO.NET Data Service. > > I am not clear yet about differences between Webservices and ADO.NET Data > Service , but I expect if I spend some time to google and read, I can become > clear. > > However, I have one question, do you think that this archetectire is > without doubt the way we will all connect to our data sources in the future? > How about performance, will it perform as good as current connections such > as ado and odbc over SQL Server Port? > > thanks > > Mark > > > > 2009/6/5 Salakhetdinov Shamil <mcp2004 at mail.ru> > > > > > Hi All, > > > > Just wanted to ask one more question on subject issue: I do not understand > > why IIS should be restarted to have one of its Web Site's getting a new > > setting activated? I mean why it's not enough to stop and start this web > > site/web application? What am I missing? > > > > You can see by goodling how many developers got confused by this > > "simple"(?) issue - and even stackoverflow doesn't have a clear answer, or > > am I missing it? > > > > Thank you. > > > > -- > > Shamil > > > > -----Original Message----- > > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > > To: "Discussion concerning Visual Basic and related programming issues."< > > dba-vb at databaseadvisors.com> > > Date: Fri, 05 Jun 2009 02:48:38 +0400 > > Subject: Re: [dba-VB] > > Problem while publishing ADO.NET Data Service... > > > > > Hi All, > > > > > > I have got found one solution for the subject issue: > > > > > > Hosted ADO.NET Data Services & Silverlight > > > > > http://dvanderboom.wordpress.com/2009/01/07/hosted-adonet-data-services-silverlight/ > > > > > > But it doesn't look satisfactory for general case, and it doesn't work > > yet for my site (waiting for ISP support with IIS server restart - maybe > > that helps as web site restarting doesn't work) - I have got stuck here: > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > > > > > with a message: > > > <<< > > > IIS specified authentication schemes 'Basic, Anonymous', but the binding > > only supports specification of exactly one authentication scheme. Valid > > authentication schemes are Digest, Negotiate, NTLM, Basic, or Anonymous. > > Change the IIS settings so that only a single authentication scheme is used. > > > >>> > > > > > > and as you can see SOAP and WCF sample services do work OK here: > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/SOAPService.asmx > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/WCFService.svc > > > > > > If you know general solution for subject issue that woudl be very > > helpful. > > > > > > Thank you. > > > > > > -- > > > Shamil > > > > > > -----Original Message----- > > > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > > > To: "Discussion concerning Visual Basic and related programming issues."< > > dba-vb at databaseadvisors.com> > > > Date: Thu, 04 Jun 2009 23:06:18 +0400 > > > Subject: Re: [dba-VB] > > > Problem while publishing ADO.NET Data Service... > > > > > > > Hi All, > > > > > > > > I have changed location of NorthwindNety Data Service to: > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > > > > > > > still no solution for > > > > > > > > This collection already contains an address with scheme http. There > > can be at most one address per scheme in this collection. > > > > Parameter name: item > > > > > > > > :( > > > > > > > > -- > > > > Shamil > > > > > > > ><<< aaa >>> > > > _______________________________________________ > > > dba-VB mailing list > > > dba-VB at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > > http://www.databaseadvisors.com > > > > > > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > > > > > From Gustav at cactus.dk Fri Jun 5 06:00:59 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 05 Jun 2009 13:00:59 +0200 Subject: [dba-VB] Problem while publishing ADO.NET Data Service... Message-ID: <sa291725.093@cactus.dk> Hi Mark I think it is. MS is pushing it for VS2010 and a CTP v1.5 is already out. How to get these to interact is described here (haven't tried this myself though): http://blogs.msdn.com/astoriateam/archive/2009/05/22/using-ado-net-data-services-v1-5-ctp1-with-visual-studio-2010-beta-1.aspx I have seen nothing about performance differences. /gustav >>> marklbreen at gmail.com 05-06-2009 10:10 >>> I am not clear yet about differences between Webservices and ADO.NET Data Service , but I expect if I spend some time to google and read, I can become clear. However, I have one question, do you think that this archetectire is without doubt the way we will all connect to our data sources in the future? How about performance, will it perform as good as current connections such as ado and odbc over SQL Server Port? thanks Mark From mcp2004 at mail.ru Fri Jun 5 06:15:27 2009 From: mcp2004 at mail.ru (Salakhetdinov Shamil) Date: Fri, 05 Jun 2009 15:15:27 +0400 Subject: [dba-VB] =?koi8-r?b?UHJvYmxlbSB3aGlsZSBwdWJsaXNoaW5nIEFETy5ORVQg?= =?koi8-r?b?RGF0YSBTZXJ2aWNlLi4u?= In-Reply-To: <sa291725.093@cactus.dk> References: <sa291725.093@cactus.dk> Message-ID: <E1MCXOR-0003XH-00.mcp2004-mail-ru@f79.mail.ru> Hi Gustav and Mark, ADO.NET Data Services works with .NET 3.5 SP1 - it was used for my recent samples. Here is a good link http://astoria.mslivelabs.com/ and I used this one http://msdn.microsoft.com/en-us/library/cc907912.aspx to make the live sample here http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc and this Dynamic Data Web Site I have made by just clicking some menu options and buttons in VS2008 SP1: http://shamils-4.hosting.parking.ru/NorthwindNetDynamicDataWebSite As you can find performance is rather good (but db is small of course) - such site can be further augmented with custom web forms AFAIU (I haven't read how to so that yet), as you can see this site uses ASP.NET/AJAX, I guess it may also use ASP.NET MVC Framework etc. And it can be used "out-of-the-box" to at least enter/edit lookup tables' data - what it can do at most - the latter have to be investigated... Thank you. -- Shamil -----Original Message----- From: "Gustav Brock" <Gustav at cactus.dk> To: <dba-vb at databaseadvisors.com> Date: Fri, 05 Jun 2009 13:00:59 +0200 Subject: Re: [dba-VB] Problem while publishing ADO.NET Data Service... > Hi Mark > > I think it is. MS is pushing it for VS2010 and a CTP v1.5 is already out. > How to get these to interact is described here (haven't tried this myself though): > > http://blogs.msdn.com/astoriateam/archive/2009/05/22/using-ado-net-data-services-v1-5-ctp1-with-visual-studio-2010-beta-1.aspx > > I have seen nothing about performance differences. > > /gustav > > > >>> marklbreen at gmail.com 05-06-2009 10:10 >>> > > I am not clear yet about differences between Webservices and ADO.NET Data > Service , but I expect if I spend some time to google and read, I can become > clear. > > However, I have one question, do you think that this archetectire is > without doubt the way we will all connect to our data sources in the future? > How about performance, will it perform as good as current connections such > as ado and odbc over SQL Server Port? > > thanks > > Mark > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From mcp2004 at mail.ru Fri Jun 5 06:26:41 2009 From: mcp2004 at mail.ru (Salakhetdinov Shamil) Date: Fri, 05 Jun 2009 15:26:41 +0400 Subject: [dba-VB] =?koi8-r?b?UHJvYmxlbSB3aGlsZSBwdWJsaXNoaW5nIEFETy5ORVQg?= =?koi8-r?b?RGF0YSBTZXJ2aWNlLi4u?= In-Reply-To: <c7fd28d00906050110t4683d3a4s12edd90831dde420@mail.gmail.com> References: <c7fd28d00906050110t4683d3a4s12edd90831dde420@mail.gmail.com> Message-ID: <E1MCXZJ-0005yB-00.mcp2004-mail-ru@f163.mail.ru> Hi Mark, I'd add/outline additionally to my previous answer on your posting that ADO.NET Data Services can be used in heavily distributed workflow scenarious, with support of distributed transactions etc.etc. Workflows are designed and programmed for such applications using Windows Workflow Foundation (WF). "Not data" services are developed using Windows Communication Foundation (WCF) (and ADO.NET data services are also driven by WCF services AFAIU)... -- Shamil -----Original Message----- From: Mark Breen <marklbreen at gmail.com> To: Salakhetdinov Shamil <mcp2004 at mail.ru>, "Discussion concerning Visual Basic and related programming issues." <dba-vb at databaseadvisors.com> Date: Fri, 5 Jun 2009 09:10:10 +0100 Subject: Re: [dba-VB] Problem while publishing ADO.NET Data Service... > Hello Shamil, > as you know, I have two servers here in Ireland, would you like to do your > diagnosis / development of future development work on one of my servers ? > If so, that would be no problem. > > I am trying to keep up and read some of the link you posted int he last few > days regarding ADO.NET Data Service. > > I am not clear yet about differences between Webservices and ADO.NET Data > Service , but I expect if I spend some time to google and read, I can become > clear. > > However, I have one question, do you think that this archetectire is > without doubt the way we will all connect to our data sources in the future? > How about performance, will it perform as good as current connections such > as ado and odbc over SQL Server Port? > > thanks > > Mark > > > > 2009/6/5 Salakhetdinov Shamil <mcp2004 at mail.ru> > > > > > Hi All, > > > > Just wanted to ask one more question on subject issue: I do not understand > > why IIS should be restarted to have one of its Web Site's getting a new > > setting activated? I mean why it's not enough to stop and start this web > > site/web application? What am I missing? > > > > You can see by goodling how many developers got confused by this > > "simple"(?) issue - and even stackoverflow doesn't have a clear answer, or > > am I missing it? > > > > Thank you. > > > > -- > > Shamil > > > > -----Original Message----- > > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > > To: "Discussion concerning Visual Basic and related programming issues."< > > dba-vb at databaseadvisors.com> > > Date: Fri, 05 Jun 2009 02:48:38 +0400 > > Subject: Re: [dba-VB] > > Problem while publishing ADO.NET Data Service... > > > > > Hi All, > > > > > > I have got found one solution for the subject issue: > > > > > > Hosted ADO.NET Data Services & Silverlight > > > > > http://dvanderboom.wordpress.com/2009/01/07/hosted-adonet-data-services-silverlight/ > > > > > > But it doesn't look satisfactory for general case, and it doesn't work > > yet for my site (waiting for ISP support with IIS server restart - maybe > > that helps as web site restarting doesn't work) - I have got stuck here: > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > > > > > with a message: > > > <<< > > > IIS specified authentication schemes 'Basic, Anonymous', but the binding > > only supports specification of exactly one authentication scheme. Valid > > authentication schemes are Digest, Negotiate, NTLM, Basic, or Anonymous. > > Change the IIS settings so that only a single authentication scheme is used. > > > >>> > > > > > > and as you can see SOAP and WCF sample services do work OK here: > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/SOAPService.asmx > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/WCFService.svc > > > > > > If you know general solution for subject issue that woudl be very > > helpful. > > > > > > Thank you. > > > > > > -- > > > Shamil > > > > > > -----Original Message----- > > > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > > > To: "Discussion concerning Visual Basic and related programming issues."< > > dba-vb at databaseadvisors.com> > > > Date: Thu, 04 Jun 2009 23:06:18 +0400 > > > Subject: Re: [dba-VB] > > > Problem while publishing ADO.NET Data Service... > > > > > > > Hi All, > > > > > > > > I have changed location of NorthwindNety Data Service to: > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > > > > > > > still no solution for > > > > > > > > This collection already contains an address with scheme http. There > > can be at most one address per scheme in this collection. > > > > Parameter name: item > > > > > > > > :( > > > > > > > > -- > > > > Shamil > > > > > > > ><<< aaa >>> > > > _______________________________________________ > > > 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 mcp2004 at mail.ru Fri Jun 5 17:27:22 2009 From: mcp2004 at mail.ru (Salakhetdinov Shamil) Date: Sat, 06 Jun 2009 02:27:22 +0400 Subject: [dba-VB] =?koi8-r?b?UHJvYmxlbSB3aGlsZSBwdWJsaXNoaW5nIEFETy5ORVQg?= =?koi8-r?b?RGF0YSBTZXJ2aWNlLi4u?= In-Reply-To: <E1MCXZJ-0005yB-00.mcp2004-mail-ru@f163.mail.ru> References: <E1MCXZJ-0005yB-00.mcp2004-mail-ru@f163.mail.ru> Message-ID: <E1MChsg-0001pr-00.mcp2004-mail-ru@f147.mail.ru> Hi All, I have got my SilverLight sample working: http://shamils-4.hosting.parking.ru/sl/NWNetSilverlight.aspx it uses hardcoded Shipper sample table's data. Then I tried to "feed" my Silverlight sample form by using the following ADO.NET Data Service: http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc with code like that (which works well in C# console app): using System; using System.Collections.Generic; using System.Data.Services.Client; using System.ComponentModel; namespace ResearchAndDevelopment.Console { public class Shippers { public class Shipper { public int ID { get; set; } public string Name { get; set; } public string Phone { get; set; } public byte[] RowTimeStamp { get; set; } } private static Uri dataServiceURI = new Uri(@"http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc"); public static void ListShippers() { DataServiceContext ctx = new DataServiceContext(dataServiceURI); IEnumerable<Shipper> shippers = ctx.Execute<Shipper>( new Uri("Shipper?$orderby=ID", UriKind.Relative)); foreach (Shipper s in shippers) { System.Console.WriteLine("{0}. {1}", s.ID, s.Name); } } } } But I have found that SilverLight 2.0 doesn't support ADO.NET Data Services "out-of-the-box" as straightforward as the above sample code. This sample code doesn't even compile for SilverLight projects because those projects can't be used with .NET Framework 3.5. Therefore I'm currently stuck in feeding my SilverLight 2.0 sample with ADO.NET Data Services (.NET 3.5 SP1) ATOM feed. Do you have any samples' references explaining how to get ADO.NET Data Services Data into SilverLight 2.0 - the most straightforward way? Thank you. -- Shamil -----Original Message----- From: Salakhetdinov Shamil <mcp2004 at mail.ru> To: Mark Breen <marklbreen at gmail.com> Date: Fri, 05 Jun 2009 15:26:41 +0400 Subject: Re: [dba-VB] Problem while publishing ADO.NET Data Service... > Hi Mark, > > I'd add/outline additionally to my previous answer on your posting that ADO.NET Data Services can be used in heavily distributed workflow scenarious, with support of distributed transactions etc.etc. Workflows are designed and programmed for such applications using Windows Workflow Foundation (WF). "Not data" services are developed using Windows Communication Foundation (WCF) (and ADO.NET data services are also driven by WCF services AFAIU)... > > -- > Shamil > > -----Original Message----- > From: Mark Breen <marklbreen at gmail.com> > To: Salakhetdinov Shamil <mcp2004 at mail.ru>, "Discussion concerning Visual Basic and related programming issues." <dba-vb at databaseadvisors.com> > Date: Fri, 5 Jun 2009 09:10:10 +0100 > Subject: Re: [dba-VB] Problem while publishing ADO.NET Data Service... > > > Hello Shamil, > > as you know, I have two servers here in Ireland, would you like to do your > > diagnosis / development of future development work on one of my servers ? > > If so, that would be no problem. > > > > I am trying to keep up and read some of the link you posted int he last few > > days regarding ADO.NET Data Service. > > > > I am not clear yet about differences between Webservices and ADO.NET Data > > Service , but I expect if I spend some time to google and read, I can become > > clear. > > > > However, I have one question, do you think that this archetectire is > > without doubt the way we will all connect to our data sources in the future? > > How about performance, will it perform as good as current connections such > > as ado and odbc over SQL Server Port? > > > > thanks > > > > Mark > > > > > > > > 2009/6/5 Salakhetdinov Shamil <mcp2004 at mail.ru> > > > > > > > > Hi All, > > > > > > Just wanted to ask one more question on subject issue: I do not understand > > > why IIS should be restarted to have one of its Web Site's getting a new > > > setting activated? I mean why it's not enough to stop and start this web > > > site/web application? What am I missing? > > > > > > You can see by goodling how many developers got confused by this > > > "simple"(?) issue - and even stackoverflow doesn't have a clear answer, or > > > am I missing it? > > > > > > Thank you. > > > > > > -- > > > Shamil > > > > > > -----Original Message----- > > > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > > > To: "Discussion concerning Visual Basic and related programming issues."< > > > dba-vb at databaseadvisors.com> > > > Date: Fri, 05 Jun 2009 02:48:38 +0400 > > > Subject: Re: [dba-VB] > > > Problem while publishing ADO.NET Data Service... > > > > > > > Hi All, > > > > > > > > I have got found one solution for the subject issue: > > > > > > > > Hosted ADO.NET Data Services & Silverlight > > > > > > > http://dvanderboom.wordpress.com/2009/01/07/hosted-adonet-data-services-silverlight/ > > > > > > > > But it doesn't look satisfactory for general case, and it doesn't work > > > yet for my site (waiting for ISP support with IIS server restart - maybe > > > that helps as web site restarting doesn't work) - I have got stuck here: > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > > > > > > > with a message: > > > > <<< > > > > IIS specified authentication schemes 'Basic, Anonymous', but the binding > > > only supports specification of exactly one authentication scheme. Valid > > > authentication schemes are Digest, Negotiate, NTLM, Basic, or Anonymous. > > > Change the IIS settings so that only a single authentication scheme is used. > > > > >>> > > > > > > > > and as you can see SOAP and WCF sample services do work OK here: > > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/SOAPService.asmx > > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/WCFService.svc > > > > > > > > If you know general solution for subject issue that woudl be very > > > helpful. > > > > > > > > Thank you. > > > > > > > > -- > > > > Shamil > > > > > > > > -----Original Message----- > > > > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > > > > To: "Discussion concerning Visual Basic and related programming issues."< > > > dba-vb at databaseadvisors.com> > > > > Date: Thu, 04 Jun 2009 23:06:18 +0400 > > > > Subject: Re: [dba-VB] > > > > Problem while publishing ADO.NET Data Service... > > > > > > > > > Hi All, > > > > > > > > > > I have changed location of NorthwindNety Data Service to: > > > > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > > > > > > > > > still no solution for > > > > > > > > > > This collection already contains an address with scheme http. There > > > can be at most one address per scheme in this collection. > > > > > Parameter name: item > > > > > > > > > > :( > > > > > > > > > > -- > > > > > Shamil > > > > > > > > > ><<< aaa >>> > > > > _______________________________________________ > > > > dba-VB mailing list > > > > dba-VB at databaseadvisors.com > > > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > > > http://www.databaseadvisors.com > > > > > > > > > > _______________________________________________ > > > dba-VB mailing list > > > dba-VB at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > > http://www.databaseadvisors.com > > > > > > > > > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From mcp2004 at mail.ru Fri Jun 5 17:53:23 2009 From: mcp2004 at mail.ru (Salakhetdinov Shamil) Date: Sat, 06 Jun 2009 02:53:23 +0400 Subject: [dba-VB] =?koi8-r?b?UHJvYmxlbSB3aGlsZSBwdWJsaXNoaW5nIEFETy5ORVQg?= =?koi8-r?b?RGF0YSBTZXJ2aWNlLi4u?= In-Reply-To: <E1MChsg-0001pr-00.mcp2004-mail-ru@f147.mail.ru> References: <E1MChsg-0001pr-00.mcp2004-mail-ru@f147.mail.ru> Message-ID: <E1MCiHr-0000nr-00.mcp2004-mail-ru@f233.mail.ru> Hi All, I have found a good sample to consume ADO.NET Data Services using SIlverLight 2.0 - here it's: Using Silverlight 2 With ADO.NET Data Services http://msdn.microsoft.com/en-us/magazine/dd569758.aspx I will try to make something like that live tomorrow - time to sleep here. Thank you. -- Shamil -----Original Message----- From: Salakhetdinov Shamil <mcp2004 at mail.ru> To: "Discussion concerning Visual Basic and related programming issues."<dba-vb at databaseadvisors.com> Date: Sat, 06 Jun 2009 02:27:22 +0400 Subject: Re: [dba-VB] Problem while publishing ADO.NET Data Service... > Hi All, > > I have got my SilverLight sample working: > > http://shamils-4.hosting.parking.ru/sl/NWNetSilverlight.aspx > > it uses hardcoded Shipper sample table's data. > > Then I tried to "feed" my Silverlight sample form by using the following ADO.NET Data Service: > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > with code like that (which works well in C# console app): > > using System; > using System.Collections.Generic; > > using System.Data.Services.Client; > using System.ComponentModel; > > namespace ResearchAndDevelopment.Console > { > public class Shippers > { > public class Shipper > { > public int ID { get; set; } > public string Name { get; set; } > public string Phone { get; set; } > public byte[] RowTimeStamp { get; set; } > } > > private static Uri dataServiceURI = > new Uri(@"http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc"); > public static void ListShippers() > { > DataServiceContext ctx = > new DataServiceContext(dataServiceURI); > IEnumerable<Shipper> shippers = ctx.Execute<Shipper>( > new Uri("Shipper?$orderby=ID", UriKind.Relative)); > foreach (Shipper s in shippers) > { > System.Console.WriteLine("{0}. {1}", s.ID, s.Name); > } > } > } > } > > But I have found that SilverLight 2.0 doesn't support ADO.NET Data Services "out-of-the-box" as straightforward as the above sample code. This sample code doesn't even compile for SilverLight projects because those projects can't be used with .NET Framework 3.5. > > Therefore I'm currently stuck in feeding my SilverLight 2.0 sample with ADO.NET Data Services (.NET 3.5 SP1) ATOM feed. > > Do you have any samples' references explaining how to get ADO.NET Data Services Data into SilverLight 2.0 - the most straightforward way? > > Thank you. > > -- > Shamil > > > > -----Original Message----- > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > To: Mark Breen <marklbreen at gmail.com> > Date: Fri, 05 Jun 2009 15:26:41 +0400 > Subject: Re: [dba-VB] > Problem while publishing ADO.NET Data Service... > > > Hi Mark, > > > > I'd add/outline additionally to my previous answer on your posting that ADO.NET Data Services can be used in heavily distributed workflow scenarious, with support of distributed transactions etc.etc. Workflows are designed and programmed for such applications using Windows Workflow Foundation (WF). "Not data" services are developed using Windows Communication Foundation (WCF) (and ADO.NET data services are also driven by WCF services AFAIU)... > > > > -- > > Shamil > > > > -----Original Message----- > > From: Mark Breen <marklbreen at gmail.com> > > To: Salakhetdinov Shamil <mcp2004 at mail.ru>, "Discussion concerning Visual Basic and related programming issues." <dba-vb at databaseadvisors.com> > > Date: Fri, 5 Jun 2009 09:10:10 +0100 > > Subject: Re: [dba-VB] Problem while publishing ADO.NET Data Service... > > > > > Hello Shamil, > > > as you know, I have two servers here in Ireland, would you like to do your > > > diagnosis / development of future development work on one of my servers ? > > > If so, that would be no problem. > > > > > > I am trying to keep up and read some of the link you posted int he last few > > > days regarding ADO.NET Data Service. > > > > > > I am not clear yet about differences between Webservices and ADO.NET Data > > > Service , but I expect if I spend some time to google and read, I can become > > > clear. > > > > > > However, I have one question, do you think that this archetectire is > > > without doubt the way we will all connect to our data sources in the future? > > > How about performance, will it perform as good as current connections such > > > as ado and odbc over SQL Server Port? > > > > > > thanks > > > > > > Mark > > > > > > > > > > > > 2009/6/5 Salakhetdinov Shamil <mcp2004 at mail.ru> > > > > > > > > > > > Hi All, > > > > > > > > Just wanted to ask one more question on subject issue: I do not understand > > > > why IIS should be restarted to have one of its Web Site's getting a new > > > > setting activated? I mean why it's not enough to stop and start this web > > > > site/web application? What am I missing? > > > > > > > > You can see by goodling how many developers got confused by this > > > > "simple"(?) issue - and even stackoverflow doesn't have a clear answer, or > > > > am I missing it? > > > > > > > > Thank you. > > > > > > > > -- > > > > Shamil > > > > > > > > -----Original Message----- > > > > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > > > > To: "Discussion concerning Visual Basic and related programming issues."< > > > > dba-vb at databaseadvisors.com> > > > > Date: Fri, 05 Jun 2009 02:48:38 +0400 > > > > Subject: Re: [dba-VB] > > > > Problem while publishing ADO.NET Data Service... > > > > > > > > > Hi All, > > > > > > > > > > I have got found one solution for the subject issue: > > > > > > > > > > Hosted ADO.NET Data Services & Silverlight > > > > > > > > > http://dvanderboom.wordpress.com/2009/01/07/hosted-adonet-data-services-silverlight/ > > > > > > > > > > But it doesn't look satisfactory for general case, and it doesn't work > > > > yet for my site (waiting for ISP support with IIS server restart - maybe > > > > that helps as web site restarting doesn't work) - I have got stuck here: > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > > > > > > > > > with a message: > > > > > <<< > > > > > IIS specified authentication schemes 'Basic, Anonymous', but the binding > > > > only supports specification of exactly one authentication scheme. Valid > > > > authentication schemes are Digest, Negotiate, NTLM, Basic, or Anonymous. > > > > Change the IIS settings so that only a single authentication scheme is used. > > > > > >>> > > > > > > > > > > and as you can see SOAP and WCF sample services do work OK here: > > > > > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/SOAPService.asmx > > > > > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/WCFService.svc > > > > > > > > > > If you know general solution for subject issue that woudl be very > > > > helpful. > > > > > > > > > > Thank you. > > > > > > > > > > -- > > > > > Shamil > > > > > > > > > > -----Original Message----- > > > > > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > > > > > To: "Discussion concerning Visual Basic and related programming issues."< > > > > dba-vb at databaseadvisors.com> > > > > > Date: Thu, 04 Jun 2009 23:06:18 +0400 > > > > > Subject: Re: [dba-VB] > > > > > Problem while publishing ADO.NET Data Service... > > > > > > > > > > > Hi All, > > > > > > > > > > > > I have changed location of NorthwindNety Data Service to: > > > > > > > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > > > > > > > > > > > still no solution for > > > > > > > > > > > > This collection already contains an address with scheme http. There > > > > can be at most one address per scheme in this collection. > > > > > > Parameter name: item > > > > > > > > > > > > :( > > > > > > > > > > > > -- > > > > > > Shamil > > > > > > > > > > > ><<< aaa >>> > > > > > _______________________________________________ > > > > > dba-VB mailing list > > > > > dba-VB at databaseadvisors.com > > > > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > > > > http://www.databaseadvisors.com > > > > > > > > > > > > > _______________________________________________ > > > > dba-VB mailing list > > > > dba-VB at databaseadvisors.com > > > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > > > http://www.databaseadvisors.com > > > > > > > > > > > > > > > > > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From ssharkins at gmail.com Fri Jun 5 19:42:30 2009 From: ssharkins at gmail.com (Susan Harkins) Date: Fri, 5 Jun 2009 20:42:30 -0400 Subject: [dba-VB] New article from Charlotte and myself Message-ID: <8A3DB7DEC94740D797DD5597B4CEC864@SusanOne> <http://www.devx.com/dbzone/Article/41994> The .NET Newbie's Guide to Customizing the DataGridView Control These articles are aimed at helping people take the plunge. Susan H. From mcp2004 at mail.ru Sat Jun 6 11:41:34 2009 From: mcp2004 at mail.ru (Salakhetdinov Shamil) Date: Sat, 06 Jun 2009 20:41:34 +0400 Subject: [dba-VB] =?koi8-r?b?U0NSVU0vU2lsdmVyTGlnaHQgMi4w?= In-Reply-To: <E1MBeQ2-00082Q-00.mcp2004-mail-ru@f190.mail.ru> References: <E1MBeQ2-00082Q-00.mcp2004-mail-ru@f190.mail.ru> Message-ID: <E1MCyxa-0000uE-00.mcp2004-mail-ru@f230.mail.ru> Hi All, I have got SilverLight 2.0 working with sample ADO.NET Data Service - have a look: http://shamils-4.hosting.parking.ru/sl/NWNetSLAppTestPage.aspx - SilverLight sample form http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc - ADO.NET Data Service I have used this article to make some corrections to my previous code: Using Silverlight 2 With ADO.NET Data Services http://msdn.microsoft.com/en-us/magazine/dd569758.aspx Please take special attention to this note from article: <<< Cross-Domain Communications ADO.NET Data Services does not currently support cross-domain communications. Cross-domain communications are supported with standard REST and SOAP services, but not with ADO.NET Data Services. (As a note: the data services team is exploring the space and will post their progress to the Astoria team blog as they go.) This means that a Silverlight 2 client cannot talk to services exposed through ADO.NET Data Services if those services are hosted on a different domain than the domain that hosts the Silverlight client application >>> I first missed it and tried to make my SilverLight application working in debug mode on my PC while trying to get data from the above ADO.NET Data Service - it didn't work and resulted in obscure runtime error message box popping up in IE 7: A Runtime Error has occurred. Do you wish to debiug? Line: 0 Error: Access is denied When the application was put on the same server then it started to work OK. This sample application is just getting some data and exposing them in a Silverlight window/form - nothing special but in fact this is a core to grow "meat stuff" around. In the coming days (after lonng weekend break till next Tuesday) I plan to add some more features to this sample application as inserting/updating/deleting records and also simple navigation control. Please note that SilverLight applications are a kind of limited XBAP application which in turn are a kind of limited WPF applications: knowing how to develop one kind of them will simplify to master development of the others. What about making Northwind.Net.Silverlight application in a SCRUM team? Thank you. -- Shamil -----Original Message----- From: Salakhetdinov Shamil <mcp2004 at mail.ru> To: dba-VB <dba-vb at databaseadvisors.com> Date: Wed, 03 Jun 2009 04:33:26 +0400 Subject: [dba-VB] SCRUM/SilverLight 2.0 > Hi All, > > I have got setup simple SilverLight application here > > http://shamils-4.hosting.parking.ru/sl > > now using publish feature but it still doesn't work there when started from Internet and it works well locally. > > Do you know should there be any special tuning done of server side for SilverLight applications to run properly? (ASP.NET 2.0/3.5 run from that site just fine.) > > Thank you. > > -- > Shamil > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From mcp2004 at mail.ru Sat Jun 6 11:49:44 2009 From: mcp2004 at mail.ru (Salakhetdinov Shamil) Date: Sat, 06 Jun 2009 20:49:44 +0400 Subject: [dba-VB] =?koi8-r?b?TmV3IGFydGljbGUgZnJvbSBDaGFybG90dGUgYW5kIG15?= =?koi8-r?b?c2VsZg==?= In-Reply-To: <8A3DB7DEC94740D797DD5597B4CEC864@SusanOne> References: <8A3DB7DEC94740D797DD5597B4CEC864@SusanOne> Message-ID: <E1MCz5U-0000VQ-00.mcp2004-mail-ru@f251.mail.ru> Hi Susan, Thank you for the link. That's a good article. I'd note one of your outstanding abilities - an ability to "cultivate the developed ground" yielding very useful output... -- Shamil -----Original Message----- From: "Susan Harkins" <ssharkins at gmail.com> To: "VBLIst" <dba-vb at databaseadvisors.com> Date: Fri, 5 Jun 2009 20:42:30 -0400 Subject: [dba-VB] New article from Charlotte and myself > <http://www.devx.com/dbzone/Article/41994> > > The .NET Newbie's Guide to Customizing the DataGridView Control > > These articles are aimed at helping people take the plunge. > > Susan H. > _______________________________________________ > 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 Sat Jun 6 12:39:55 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Sat, 06 Jun 2009 19:39:55 +0200 Subject: [dba-VB] SCRUM/SilverLight 2.0 Message-ID: <sa2ac628.001@cactus.dk> Hi Shamil Thanks for the demo, and yes, that's a very inspiring article and I read it with great interest. Also note in that article the not so exposed link to this article: http://msdn.microsoft.com/magazine/cc794260 which is a bit more basic and explains the "mechanics" of data bound Silverlight pages quite well including in detail what's the Cross-Domain Communications issue is about, why it makes sense, and how to deal with it. Given that Northwind is a not a very complicated application, I think it could be well suited for a transfer to Silverlight. However, one big question is unanswered to me: Reporting in Silverlight. No ReportViewer is available. So how to deal with that? Link to a special reporting server running ASP.NET? Not a bad idea but, of course, but a little more complicated. Here is (no) more info on the subject: http://csharp-snippets.blogspot.com/2009/04/report-viewer-for-Silverlight-2.html <quote> Currently as I see there is only one way of doing these reports. Create your reports definition files in Sql 2005 or 2008 and then use an aspx page to load them. A short reference for the code snippet. It is better to place this in the page_load event of the aspx page. </quote> The Perpetuum component mentioned carries a cost of $750 (not exactly what I am looking for): http://www.perpetuumsoft.com/Product.aspx?lang=en&pid=102 /gustav >>> Salakhetdinov Shamil <mcp2004 at mail.ru> 06-06-2009 18:41 >>> Hi All, I have got SilverLight 2.0 working with sample ADO.NET Data Service - have a look: http://shamils-4.hosting.parking.ru/sl/NWNetSLAppTestPage.aspx - SilverLight sample form http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc - ADO.NET Data Service I have used this article to make some corrections to my previous code: Using Silverlight 2 With ADO.NET Data Services http://msdn.microsoft.com/en-us/magazine/dd569758.aspx Please take special attention to this note from article: <<< Cross-Domain Communications ADO.NET Data Services does not currently support cross-domain communications. Cross-domain communications are supported with standard REST and SOAP services, but not with ADO.NET Data Services. (As a note: the data services team is exploring the space and will post their progress to the Astoria team blog as they go.) This means that a Silverlight 2 client cannot talk to services exposed through ADO.NET Data Services if those services are hosted on a different domain than the domain that hosts the Silverlight client application >>> I first missed it and tried to make my SilverLight application working in debug mode on my PC while trying to get data from the above ADO.NET Data Service - it didn't work and resulted in obscure runtime error message box popping up in IE 7: A Runtime Error has occurred. Do you wish to debiug? Line: 0 Error: Access is denied When the application was put on the same server then it started to work OK. This sample application is just getting some data and exposing them in a Silverlight window/form - nothing special but in fact this is a core to grow "meat stuff" around. In the coming days (after lonng weekend break till next Tuesday) I plan to add some more features to this sample application as inserting/updating/deleting records and also simple navigation control. Please note that SilverLight applications are a kind of limited XBAP application which in turn are a kind of limited WPF applications: knowing how to develop one kind of them will simplify to master development of the others. What about making Northwind.Net.Silverlight application in a SCRUM team? Thank you. -- Shamil -----Original Message----- From: Salakhetdinov Shamil <mcp2004 at mail.ru> To: dba-VB <dba-vb at databaseadvisors.com> Date: Wed, 03 Jun 2009 04:33:26 +0400 Subject: [dba-VB] SCRUM/SilverLight 2.0 > Hi All, > > I have got setup simple SilverLight application here > > http://shamils-4.hosting.parking.ru/sl > > now using publish feature but it still doesn't work there when started from Internet and it works well locally. > > Do you know should there be any special tuning done of server side for SilverLight applications to run properly? (ASP.NET 2.0/3.5 run from that site just fine.) > > Thank you. > > -- > Shamil From mcp2004 at mail.ru Sat Jun 6 13:30:46 2009 From: mcp2004 at mail.ru (Salakhetdinov Shamil) Date: Sat, 06 Jun 2009 22:30:46 +0400 Subject: [dba-VB] =?koi8-r?b?U0NSVU0vU2lsdmVyTGlnaHQgMi4w?= In-Reply-To: <sa2ac628.001@cactus.dk> References: <sa2ac628.001@cactus.dk> Message-ID: <E1MD0fG-0001WJ-00.mcp2004-mail-ru@f144.mail.ru> Hi Gustav, Thank you for your feedback. I will put your articles' refs in my "immediate read list" (leaving tomorrow for Finland for a short two days holidays). Yes, that would be interesting to "cook" a SilverLight sample project in a (SCRUM) team. I have just published the results of my first SilverLight and ADO.NET Data Services exercize here on CodePlex - http://northwind.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=26600 As for reporting - I haven't checked yet the references you posted here and I have to leave now: - what about the idea of delivering reports using special service? (we talked about that a few times already) MS ReportViewer Control Reports's PDF can be generated on-the-fly directly in code and in memory and that memory stream can be broadcasted anywhere/consumed from anywhere AFAIK... But how to consume that memory stream in SilverLight is an open question here - AFAIK (am I wrong?) SilverLight can communicate with its hosting browser (.aspx) page - so I guess it (SilverLight) can somehow "command" its hosting browser web page to "talk to web server" to generate MS ReportViewer Report with certain params and then get this generated report presented outside of SilverLight area on the web page (and SilverLight will shrink while report is presented) - something like that? Sounds too complicated? Maybe SilverLight 3.0 will have new controls supporting MS ReporViewer Reports' presentation etc.? Maybe we'd better wait for that reporting features as SilverLight 3.0 is in beta now, and we still have quite some stuff to learn with SilverLight 2.0? I mean we can just make the part of sample project having forms and neglect reports until SilverLight 3.0 will be released? Thank you. -- Shamil -----Original Message----- From: "Gustav Brock" <Gustav at cactus.dk> To: <dba-vb at databaseadvisors.com> Date: Sat, 06 Jun 2009 19:39:55 +0200 Subject: Re: [dba-VB] SCRUM/SilverLight 2.0 > Hi Shamil > > Thanks for the demo, and yes, that's a very inspiring article and I read it with great interest. > Also note in that article the not so exposed link to this article: > > http://msdn.microsoft.com/magazine/cc794260 > > which is a bit more basic and explains the "mechanics" of data bound Silverlight pages quite well including in detail what's the Cross-Domain Communications issue is about, why it makes sense, and how to deal with it. > > Given that Northwind is a not a very complicated application, I think it could be well suited for a transfer to Silverlight. However, one big question is unanswered to me: Reporting in Silverlight. No ReportViewer is available. So how to deal with that? Link to a special reporting server running ASP.NET? > Not a bad idea but, of course, but a little more complicated. Here is (no) more info on the subject: > > http://csharp-snippets.blogspot.com/2009/04/report-viewer-for-Silverlight-2.html > > <quote> > Currently as I see there is only one way of doing these reports. Create your reports definition files in Sql 2005 or 2008 and then use an aspx page to load them. A short reference for the code snippet. It is better to place this in the page_load event of the aspx page. > </quote> > > The Perpetuum component mentioned carries a cost of $750 (not exactly what I am looking for): > > http://www.perpetuumsoft.com/Product.aspx?lang=en&pid=102 > > /gustav > > > >>> Salakhetdinov Shamil <mcp2004 at mail.ru> 06-06-2009 18:41 >>> > > Hi All, > > I have got SilverLight 2.0 working with sample ADO.NET Data Service - have a look: > > http://shamils-4.hosting.parking.ru/sl/NWNetSLAppTestPage.aspx - SilverLight sample form > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc - ADO.NET Data Service > > I have used this article to make some corrections to my previous code: > > Using Silverlight 2 With ADO.NET Data Services > http://msdn.microsoft.com/en-us/magazine/dd569758.aspx > > Please take special attention to this note from article: > > <<< > Cross-Domain Communications > ADO.NET Data Services does not currently support cross-domain communications. Cross-domain communications are supported with standard REST and SOAP services, but not with ADO.NET Data Services. (As a note: the data services team is exploring the space and will post their progress to the Astoria team blog as they go.) This means that a Silverlight 2 client cannot talk to services exposed through ADO.NET Data Services if those services are hosted on a different domain than the domain that hosts the Silverlight client application > >>> > > I first missed it and tried to make my SilverLight application working in debug mode on my PC while trying to get data from the above ADO.NET Data Service - it didn't work and resulted in obscure runtime error message box popping up in IE 7: > > A Runtime Error has occurred. > Do you wish to debiug? > > Line: 0 > Error: Access is denied > > When the application was put on the same server then it started to work OK. > > This sample application is just getting some data and exposing them in a Silverlight window/form - nothing special but in fact this is a core to grow "meat stuff" around. > > In the coming days (after lonng weekend break till next Tuesday) I plan to add some more features to this sample application as inserting/updating/deleting records and also simple navigation control. > > Please note that SilverLight applications are a kind of limited XBAP application which in turn are a kind of limited WPF applications: knowing how to develop one kind of them will simplify to master development of the others. > > What about making Northwind.Net.Silverlight application in a SCRUM team? > > Thank you. > > -- > Shamil > > > -----Original Message----- > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > To: dba-VB <dba-vb at databaseadvisors.com> > Date: Wed, 03 Jun 2009 04:33:26 +0400 > Subject: [dba-VB] SCRUM/SilverLight 2.0 > > > Hi All, > > > > I have got setup simple SilverLight application here > > > > http://shamils-4.hosting.parking.ru/sl > > > > now using publish feature but it still doesn't work there when started from Internet and it works well locally. > > > > Do you know should there be any special tuning done of server side for SilverLight applications to run properly? (ASP.NET 2.0/3.5 run from that site just fine.) > > > > 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 Sat Jun 6 13:46:19 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Sat, 06 Jun 2009 20:46:19 +0200 Subject: [dba-VB] SCRUM/SilverLight 2.0 Message-ID: <sa2ad5bf.003@cactus.dk> Hi Shamil et al Well, sadly report(ing) is not mentioned with a single word in the news about Silverlight 3 beta: http://silverlight.net/getstarted/silverlight3/default.aspx#whatsnew so some other method must be worked out. Streaming is an interesting idea but that will disable one of the true strengths of the ReportViewer: Interaction. /gustav >>> Salakhetdinov Shamil <mcp2004 at mail.ru> 06-06-2009 20:30 >>> Hi Gustav, Thank you for your feedback. I will put your articles' refs in my "immediate read list" (leaving tomorrow for Finland for a short two days holidays). Yes, that would be interesting to "cook" a SilverLight sample project in a (SCRUM) team. I have just published the results of my first SilverLight and ADO.NET Data Services exercize here on CodePlex - http://northwind.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=26600 As for reporting - I haven't checked yet the references you posted here and I have to leave now: - what about the idea of delivering reports using special service? (we talked about that a few times already) MS ReportViewer Control Reports's PDF can be generated on-the-fly directly in code and in memory and that memory stream can be broadcasted anywhere/consumed from anywhere AFAIK... But how to consume that memory stream in SilverLight is an open question here - AFAIK (am I wrong?) SilverLight can communicate with its hosting browser (.aspx) page - so I guess it (SilverLight) can somehow "command" its hosting browser web page to "talk to web server" to generate MS ReportViewer Report with certain params and then get this generated report presented outside of SilverLight area on the web page (and SilverLight will shrink while report is presented) - something like that? Sounds too complicated? Maybe SilverLight 3.0 will have new controls supporting MS ReporViewer Reports' presentation etc.? Maybe we'd better wait for that reporting features as SilverLight 3.0 is in beta now, and we still have quite some stuff to learn with SilverLight 2.0? I mean we can just make the part of sample project having forms and neglect reports until SilverLight 3.0 will be released? Thank you. -- Shamil -----Original Message----- From: "Gustav Brock" <Gustav at cactus.dk> To: <dba-vb at databaseadvisors.com> Date: Sat, 06 Jun 2009 19:39:55 +0200 Subject: Re: [dba-VB] SCRUM/SilverLight 2.0 > Hi Shamil > > Thanks for the demo, and yes, that's a very inspiring article and I read it with great interest. > Also note in that article the not so exposed link to this article: > > http://msdn.microsoft.com/magazine/cc794260 > > which is a bit more basic and explains the "mechanics" of data bound Silverlight pages quite well including in detail what's the Cross-Domain Communications issue is about, why it makes sense, and how to deal with it. > > Given that Northwind is a not a very complicated application, I think it could be well suited for a transfer to Silverlight. However, one big question is unanswered to me: Reporting in Silverlight. No ReportViewer is available. So how to deal with that? Link to a special reporting server running ASP.NET? > Not a bad idea but, of course, but a little more complicated. Here is (no) more info on the subject: > > http://csharp-snippets.blogspot.com/2009/04/report-viewer-for-Silverlight-2.html > > <quote> > Currently as I see there is only one way of doing these reports. Create your reports definition files in Sql 2005 or 2008 and then use an aspx page to load them. A short reference for the code snippet. It is better to place this in the page_load event of the aspx page. > </quote> > > The Perpetuum component mentioned carries a cost of $750 (not exactly what I am looking for): > > http://www.perpetuumsoft.com/Product.aspx?lang=en&pid=102 > > /gustav > > > >>> Salakhetdinov Shamil <mcp2004 at mail.ru> 06-06-2009 18:41 >>> > > Hi All, > > I have got SilverLight 2.0 working with sample ADO.NET Data Service - have a look: > > http://shamils-4.hosting.parking.ru/sl/NWNetSLAppTestPage.aspx - SilverLight sample form > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc - ADO.NET Data Service > > I have used this article to make some corrections to my previous code: > > Using Silverlight 2 With ADO.NET Data Services > http://msdn.microsoft.com/en-us/magazine/dd569758.aspx > > Please take special attention to this note from article: > > <<< > Cross-Domain Communications > ADO.NET Data Services does not currently support cross-domain communications. Cross-domain communications are supported with standard REST and SOAP services, but not with ADO.NET Data Services. (As a note: the data services team is exploring the space and will post their progress to the Astoria team blog as they go.) This means that a Silverlight 2 client cannot talk to services exposed through ADO.NET Data Services if those services are hosted on a different domain than the domain that hosts the Silverlight client application > >>> > > I first missed it and tried to make my SilverLight application working in debug mode on my PC while trying to get data from the above ADO.NET Data Service - it didn't work and resulted in obscure runtime error message box popping up in IE 7: > > A Runtime Error has occurred. > Do you wish to debiug? > > Line: 0 > Error: Access is denied > > When the application was put on the same server then it started to work OK. > > This sample application is just getting some data and exposing them in a Silverlight window/form - nothing special but in fact this is a core to grow "meat stuff" around. > > In the coming days (after lonng weekend break till next Tuesday) I plan to add some more features to this sample application as inserting/updating/deleting records and also simple navigation control. > > Please note that SilverLight applications are a kind of limited XBAP application which in turn are a kind of limited WPF applications: knowing how to develop one kind of them will simplify to master development of the others. > > What about making Northwind.Net.Silverlight application in a SCRUM team? > > Thank you. > > -- > Shamil > > > -----Original Message----- > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > To: dba-VB <dba-vb at databaseadvisors.com> > Date: Wed, 03 Jun 2009 04:33:26 +0400 > Subject: [dba-VB] SCRUM/SilverLight 2.0 > > > Hi All, > > > > I have got setup simple SilverLight application here > > > > http://shamils-4.hosting.parking.ru/sl > > > > now using publish feature but it still doesn't work there when started from Internet and it works well locally. > > > > Do you know should there be any special tuning done of server side for SilverLight applications to run properly? (ASP.NET 2.0/3.5 run from that site just fine.) > > > > Thank you. > > > > -- > > Shamil From mcp2004 at mail.ru Sat Jun 6 17:03:31 2009 From: mcp2004 at mail.ru (Salakhetdinov Shamil) Date: Sun, 07 Jun 2009 02:03:31 +0400 Subject: [dba-VB] =?koi8-r?b?U0NSVU0vU2lsdmVyTGlnaHQgMi4w?= In-Reply-To: <sa2ad5bf.003@cactus.dk> References: <sa2ad5bf.003@cactus.dk> Message-ID: <E1MD3z9-0000GL-00.mcp2004-mail-ru@f202.mail.ru> Hi Gustav at all, OK, so we have to find a way how to present reports another way - as far as I can see Perpetuum your referred currently "just" returns the image of report - all pages at once. As for .pdf, .xls etc. exports they generate them on service side and return to the browser in popup window: http://www.perpetuumsoft.com/Demo/slviewer/DemoReportsService.svc/Rest/Export?id=ReportsList&format=pdf http://www.perpetuumsoft.com/Demo/slviewer/DemoReportsService.svc/Rest/Export?id=ReportsList&format=excel http://www.perpetuumsoft.com/Demo/slviewer/DemoReportsService.svc/Rest/Export?id=ReportsList&format=rtf http://www.perpetuumsoft.com/Demo/slviewer/DemoReportsService.svc/Rest/Export?id=ReportsList&format=html The new features for SilverLight 3.0 show that this technology is targeted first of all for dynamic media content than for (relatively static) reports - therefore let's try to use "right tools for the right job"? - and if developing Northwind.NET.Silverlight sample then use SilverLight features to present interactive forms, and to display reports - use something as Perpetuum does - in popup window - generated on server side .PDF... OK? Thank you. -- Shamil -----Original Message----- From: "Gustav Brock" <Gustav at cactus.dk> To: <dba-vb at databaseadvisors.com> Date: Sat, 06 Jun 2009 20:46:19 +0200 Subject: Re: [dba-VB] SCRUM/SilverLight 2.0 > Hi Shamil et al > > Well, sadly report(ing) is not mentioned with a single word in the news about Silverlight 3 beta: > > http://silverlight.net/getstarted/silverlight3/default.aspx#whatsnew > > so some other method must be worked out. > Streaming is an interesting idea but that will disable one of the true strengths of the ReportViewer: Interaction. > > /gustav > > > >>> Salakhetdinov Shamil <mcp2004 at mail.ru> 06-06-2009 20:30 >>> > Hi Gustav, > > Thank you for your feedback. I will put your articles' refs in my "immediate read list" (leaving tomorrow for Finland for a short two days holidays). Yes, that would be interesting to "cook" a SilverLight sample project in a (SCRUM) team. > > I have just published the results of my first SilverLight and ADO.NET Data Services exercize here on CodePlex - http://northwind.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=26600 > > As for reporting - I haven't checked yet the references you posted here and I have to leave now: > > - what about the idea of delivering reports using special service? (we talked about that a few times already) MS ReportViewer Control Reports's PDF can be generated on-the-fly directly in code and in memory and that memory stream can be broadcasted anywhere/consumed from anywhere AFAIK... > > But how to consume that memory stream in SilverLight is an open question here - AFAIK (am I wrong?) SilverLight can communicate with its hosting browser (.aspx) page - so I guess it (SilverLight) can somehow "command" its hosting browser web page to "talk to web server" to generate MS ReportViewer Report with certain params and then get this generated report presented outside of SilverLight area on the web page (and SilverLight will shrink while report is presented) - something like that? Sounds too complicated? Maybe SilverLight 3.0 will have new controls supporting MS ReporViewer Reports' presentation etc.? Maybe we'd better wait for that reporting features as SilverLight 3.0 is in beta now, and we still have quite some stuff to learn with SilverLight 2.0? I mean we can just make the part of sample project having forms and neglect reports until SilverLight 3.0 will be released? > > Thank you. > > -- > Shamil > > > -----Original Message----- > From: "Gustav Brock" <Gustav at cactus.dk> > To: <dba-vb at databaseadvisors.com> > Date: Sat, 06 Jun 2009 19:39:55 +0200 > Subject: Re: [dba-VB] SCRUM/SilverLight 2.0 > > > Hi Shamil > > > > Thanks for the demo, and yes, that's a very inspiring article and I read it with great interest. > > Also note in that article the not so exposed link to this article: > > > > http://msdn.microsoft.com/magazine/cc794260 > > > > which is a bit more basic and explains the "mechanics" of data bound Silverlight pages quite well including in detail what's the Cross-Domain Communications issue is about, why it makes sense, and how to deal with it. > > > > Given that Northwind is a not a very complicated application, I think it could be well suited for a transfer to Silverlight. However, one big question is unanswered to me: Reporting in Silverlight. No ReportViewer is available. So how to deal with that? Link to a special reporting server running ASP.NET? > > Not a bad idea but, of course, but a little more complicated. Here is (no) more info on the subject: > > > > http://csharp-snippets.blogspot.com/2009/04/report-viewer-for-Silverlight-2.html > > > > <quote> > > Currently as I see there is only one way of doing these reports. Create your reports definition files in Sql 2005 or 2008 and then use an aspx page to load them. A short reference for the code snippet. It is better to place this in the page_load event of the aspx page. > > </quote> > > > > The Perpetuum component mentioned carries a cost of $750 (not exactly what I am looking for): > > > > http://www.perpetuumsoft.com/Product.aspx?lang=en&pid=102 > > > > /gustav > > > > > > >>> Salakhetdinov Shamil <mcp2004 at mail.ru> 06-06-2009 18:41 >>> > > > > Hi All, > > > > I have got SilverLight 2.0 working with sample ADO.NET Data Service - have a look: > > > > http://shamils-4.hosting.parking.ru/sl/NWNetSLAppTestPage.aspx - SilverLight sample form > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc - ADO.NET Data Service > > > > I have used this article to make some corrections to my previous code: > > > > Using Silverlight 2 With ADO.NET Data Services > > http://msdn.microsoft.com/en-us/magazine/dd569758.aspx > > > > Please take special attention to this note from article: > > > > <<< > > Cross-Domain Communications > > ADO.NET Data Services does not currently support cross-domain communications. Cross-domain communications are supported with standard REST and SOAP services, but not with ADO.NET Data Services. (As a note: the data services team is exploring the space and will post their progress to the Astoria team blog as they go.) This means that a Silverlight 2 client cannot talk to services exposed through ADO.NET Data Services if those services are hosted on a different domain than the domain that hosts the Silverlight client application > > >>> > > > > I first missed it and tried to make my SilverLight application working in debug mode on my PC while trying to get data from the above ADO.NET Data Service - it didn't work and resulted in obscure runtime error message box popping up in IE 7: > > > > A Runtime Error has occurred. > > Do you wish to debiug? > > > > Line: 0 > > Error: Access is denied > > > > When the application was put on the same server then it started to work OK. > > > > This sample application is just getting some data and exposing them in a Silverlight window/form - nothing special but in fact this is a core to grow "meat stuff" around. > > > > In the coming days (after lonng weekend break till next Tuesday) I plan to add some more features to this sample application as inserting/updating/deleting records and also simple navigation control. > > > > Please note that SilverLight applications are a kind of limited XBAP application which in turn are a kind of limited WPF applications: knowing how to develop one kind of them will simplify to master development of the others. > > > > What about making Northwind.Net.Silverlight application in a SCRUM team? > > > > Thank you. > > > > -- > > Shamil > > > > > > -----Original Message----- > > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > > To: dba-VB <dba-vb at databaseadvisors.com> > > Date: Wed, 03 Jun 2009 04:33:26 +0400 > > Subject: [dba-VB] SCRUM/SilverLight 2.0 > > > > > Hi All, > > > > > > I have got setup simple SilverLight application here > > > > > > http://shamils-4.hosting.parking.ru/sl > > > > > > now using publish feature but it still doesn't work there when started from Internet and it works well locally. > > > > > > Do you know should there be any special tuning done of server side for SilverLight applications to run properly? (ASP.NET 2.0/3.5 run from that site just fine.) > > > > > > Thank you. > > > > > > -- > > > Shamil > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From ssharkins at gmail.com Sat Jun 6 17:11:08 2009 From: ssharkins at gmail.com (Susan Harkins) Date: Sat, 6 Jun 2009 18:11:08 -0400 Subject: [dba-VB] New article from Charlotte and myself References: <8A3DB7DEC94740D797DD5597B4CEC864@SusanOne> <E1MCz5U-0000VQ-00.mcp2004-mail-ru@f251.mail.ru> Message-ID: <2FF08D3F779A45A1AF16322D6BEE0EAD@SusanOne> Thank you Shamil -- I'm glad you liked it! Charlotte is teaching me .NET -- best way for me to learn I think is to just plunge in and let an expert say, "No, no, no..." ;) Susan H. > Hi Susan, > > Thank you for the link. > That's a good article. > I'd note one of your outstanding abilities - an ability to "cultivate the > developed ground" yielding very useful output... From Gustav at cactus.dk Sat Jun 6 18:00:21 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Sun, 07 Jun 2009 01:00:21 +0200 Subject: [dba-VB] SCRUM/SilverLight 2.0 Message-ID: <sa2b114c.004@cactus.dk> Hi Shamil OK for me. /gustav >>> Salakhetdinov Shamil <mcp2004 at mail.ru> 07-06-2009 00:03 >>> Hi Gustav at all, OK, so we have to find a way how to present reports another way - as far as I can see Perpetuum your referred currently "just" returns the image of report - all pages at once. As for .pdf, .xls etc. exports they generate them on service side and return to the browser in popup window: http://www.perpetuumsoft.com/Demo/slviewer/DemoReportsService.svc/Rest/Export?id=ReportsList&format=pdf http://www.perpetuumsoft.com/Demo/slviewer/DemoReportsService.svc/Rest/Export?id=ReportsList&format=excel http://www.perpetuumsoft.com/Demo/slviewer/DemoReportsService.svc/Rest/Export?id=ReportsList&format=rtf http://www.perpetuumsoft.com/Demo/slviewer/DemoReportsService.svc/Rest/Export?id=ReportsList&format=html The new features for SilverLight 3.0 show that this technology is targeted first of all for dynamic media content than for (relatively static) reports - therefore let's try to use "right tools for the right job"? - and if developing Northwind.NET.Silverlight sample then use SilverLight features to present interactive forms, and to display reports - use something as Perpetuum does - in popup window - generated on server side .PDF... OK? Thank you. -- Shamil -----Original Message----- From: "Gustav Brock" <Gustav at cactus.dk> To: <dba-vb at databaseadvisors.com> Date: Sat, 06 Jun 2009 20:46:19 +0200 Subject: Re: [dba-VB] SCRUM/SilverLight 2.0 > Hi Shamil et al > > Well, sadly report(ing) is not mentioned with a single word in the news about Silverlight 3 beta: > > http://silverlight.net/getstarted/silverlight3/default.aspx#whatsnew > > so some other method must be worked out. > Streaming is an interesting idea but that will disable one of the true strengths of the ReportViewer: Interaction. > > /gustav > > > >>> Salakhetdinov Shamil <mcp2004 at mail.ru> 06-06-2009 20:30 >>> > Hi Gustav, > > Thank you for your feedback. I will put your articles' refs in my "immediate read list" (leaving tomorrow for Finland for a short two days holidays). Yes, that would be interesting to "cook" a SilverLight sample project in a (SCRUM) team. > > I have just published the results of my first SilverLight and ADO.NET Data Services exercize here on CodePlex - http://northwind.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=26600 > > As for reporting - I haven't checked yet the references you posted here and I have to leave now: > > - what about the idea of delivering reports using special service? (we talked about that a few times already) MS ReportViewer Control Reports's PDF can be generated on-the-fly directly in code and in memory and that memory stream can be broadcasted anywhere/consumed from anywhere AFAIK... > > But how to consume that memory stream in SilverLight is an open question here - AFAIK (am I wrong?) SilverLight can communicate with its hosting browser (.aspx) page - so I guess it (SilverLight) can somehow "command" its hosting browser web page to "talk to web server" to generate MS ReportViewer Report with certain params and then get this generated report presented outside of SilverLight area on the web page (and SilverLight will shrink while report is presented) - something like that? Sounds too complicated? Maybe SilverLight 3.0 will have new controls supporting MS ReporViewer Reports' presentation etc.? Maybe we'd better wait for that reporting features as SilverLight 3.0 is in beta now, and we still have quite some stuff to learn with SilverLight 2.0? I mean we can just make the part of sample project having forms and neglect reports until SilverLight 3.0 will be released? > > Thank you. > > -- > Shamil > > > -----Original Message----- > From: "Gustav Brock" <Gustav at cactus.dk> > To: <dba-vb at databaseadvisors.com> > Date: Sat, 06 Jun 2009 19:39:55 +0200 > Subject: Re: [dba-VB] SCRUM/SilverLight 2.0 > > > Hi Shamil > > > > Thanks for the demo, and yes, that's a very inspiring article and I read it with great interest. > > Also note in that article the not so exposed link to this article: > > > > http://msdn.microsoft.com/magazine/cc794260 > > > > which is a bit more basic and explains the "mechanics" of data bound Silverlight pages quite well including in detail what's the Cross-Domain Communications issue is about, why it makes sense, and how to deal with it. > > > > Given that Northwind is a not a very complicated application, I think it could be well suited for a transfer to Silverlight. However, one big question is unanswered to me: Reporting in Silverlight. No ReportViewer is available. So how to deal with that? Link to a special reporting server running ASP.NET? > > Not a bad idea but, of course, but a little more complicated. Here is (no) more info on the subject: > > > > http://csharp-snippets.blogspot.com/2009/04/report-viewer-for-Silverlight-2.html > > > > <quote> > > Currently as I see there is only one way of doing these reports. Create your reports definition files in Sql 2005 or 2008 and then use an aspx page to load them. A short reference for the code snippet. It is better to place this in the page_load event of the aspx page. > > </quote> > > > > The Perpetuum component mentioned carries a cost of $750 (not exactly what I am looking for): > > > > http://www.perpetuumsoft.com/Product.aspx?lang=en&pid=102 > > > > /gustav From accessd at shaw.ca Sun Jun 7 11:54:42 2009 From: accessd at shaw.ca (Jim Lawrence) Date: Sun, 7 Jun 2009 09:54:42 -0700 Subject: [dba-VB] Problem while publishing ADO.NET Data Service... In-Reply-To: <E1MCiHr-0000nr-00.mcp2004-mail-ru@f233.mail.ru> References: <E1MChsg-0001pr-00.mcp2004-mail-ru@f147.mail.ru> <E1MCiHr-0000nr-00.mcp2004-mail-ru@f233.mail.ru> Message-ID: <24FBF921E25D4277BCB79042D579EE6C@creativesystemdesigns.com> Hi Shamil: I have been watching this thread for a bit and was wondering, if proceeding along this direction is in fact tying the designers and users to a very proprietary desktop and set of BE services? Just to get much of the apps running requires the very latest patches and specific downloads, products that are not integrated into the default Windows OS. Only the most carefully managed office location would be able to even run this technology. >From my point of view the following is the reality: 1. On most sites I am just the contractor and not as the head IT guy. 2. Clients want to hire me not marry me. 3. Many sites using 'mixed' desktops (Windows/Mac/Linux). 4. The trend is towards 'portability' on cross-platform environments. On the other hand, this is all great fun technology and I have been very much enjoying this thread. Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Salakhetdinov Shamil Sent: Friday, June 05, 2009 3:53 PM To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Problem while publishing ADO.NET Data Service... Hi All, I have found a good sample to consume ADO.NET Data Services using SIlverLight 2.0 - here it's: Using Silverlight 2 With ADO.NET Data Services http://msdn.microsoft.com/en-us/magazine/dd569758.aspx I will try to make something like that live tomorrow - time to sleep here. Thank you. -- Shamil -----Original Message----- From: Salakhetdinov Shamil <mcp2004 at mail.ru> To: "Discussion concerning Visual Basic and related programming issues."<dba-vb at databaseadvisors.com> Date: Sat, 06 Jun 2009 02:27:22 +0400 Subject: Re: [dba-VB] Problem while publishing ADO.NET Data Service... > Hi All, > > I have got my SilverLight sample working: > > http://shamils-4.hosting.parking.ru/sl/NWNetSilverlight.aspx > > it uses hardcoded Shipper sample table's data. > > Then I tried to "feed" my Silverlight sample form by using the following ADO.NET Data Service: > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > with code like that (which works well in C# console app): > > using System; > using System.Collections.Generic; > > using System.Data.Services.Client; > using System.ComponentModel; > > namespace ResearchAndDevelopment.Console > { > public class Shippers > { > public class Shipper > { > public int ID { get; set; } > public string Name { get; set; } > public string Phone { get; set; } > public byte[] RowTimeStamp { get; set; } > } > > private static Uri dataServiceURI = > new Uri(@"http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.sv c"); > public static void ListShippers() > { > DataServiceContext ctx = > new DataServiceContext(dataServiceURI); > IEnumerable<Shipper> shippers = ctx.Execute<Shipper>( > new Uri("Shipper?$orderby=ID", UriKind.Relative)); > foreach (Shipper s in shippers) > { > System.Console.WriteLine("{0}. {1}", s.ID, s.Name); > } > } > } > } > > But I have found that SilverLight 2.0 doesn't support ADO.NET Data Services "out-of-the-box" as straightforward as the above sample code. This sample code doesn't even compile for SilverLight projects because those projects can't be used with .NET Framework 3.5. > > Therefore I'm currently stuck in feeding my SilverLight 2.0 sample with ADO.NET Data Services (.NET 3.5 SP1) ATOM feed. > > Do you have any samples' references explaining how to get ADO.NET Data Services Data into SilverLight 2.0 - the most straightforward way? > > Thank you. > > -- > Shamil > > > > -----Original Message----- > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > To: Mark Breen <marklbreen at gmail.com> > Date: Fri, 05 Jun 2009 15:26:41 +0400 > Subject: Re: [dba-VB] > Problem while publishing ADO.NET Data Service... > > > Hi Mark, > > > > I'd add/outline additionally to my previous answer on your posting that ADO.NET Data Services can be used in heavily distributed workflow scenarious, with support of distributed transactions etc.etc. Workflows are designed and programmed for such applications using Windows Workflow Foundation (WF). "Not data" services are developed using Windows Communication Foundation (WCF) (and ADO.NET data services are also driven by WCF services AFAIU)... > > > > -- > > Shamil > > > > -----Original Message----- > > From: Mark Breen <marklbreen at gmail.com> > > To: Salakhetdinov Shamil <mcp2004 at mail.ru>, "Discussion concerning Visual Basic and related programming issues." <dba-vb at databaseadvisors.com> > > Date: Fri, 5 Jun 2009 09:10:10 +0100 > > Subject: Re: [dba-VB] Problem while publishing ADO.NET Data Service... > > > > > Hello Shamil, > > > as you know, I have two servers here in Ireland, would you like to do your > > > diagnosis / development of future development work on one of my servers ? > > > If so, that would be no problem. > > > > > > I am trying to keep up and read some of the link you posted int he last few > > > days regarding ADO.NET Data Service. > > > > > > I am not clear yet about differences between Webservices and ADO.NET Data > > > Service , but I expect if I spend some time to google and read, I can become > > > clear. > > > > > > However, I have one question, do you think that this archetectire is > > > without doubt the way we will all connect to our data sources in the future? > > > How about performance, will it perform as good as current connections such > > > as ado and odbc over SQL Server Port? > > > > > > thanks > > > > > > Mark > > > > > > > > > > > > 2009/6/5 Salakhetdinov Shamil <mcp2004 at mail.ru> > > > > > > > > > > > Hi All, > > > > > > > > Just wanted to ask one more question on subject issue: I do not understand > > > > why IIS should be restarted to have one of its Web Site's getting a new > > > > setting activated? I mean why it's not enough to stop and start this web > > > > site/web application? What am I missing? > > > > > > > > You can see by goodling how many developers got confused by this > > > > "simple"(?) issue - and even stackoverflow doesn't have a clear answer, or > > > > am I missing it? > > > > > > > > Thank you. > > > > > > > > -- > > > > Shamil > > > > > > > > -----Original Message----- > > > > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > > > > To: "Discussion concerning Visual Basic and related programming issues."< > > > > dba-vb at databaseadvisors.com> > > > > Date: Fri, 05 Jun 2009 02:48:38 +0400 > > > > Subject: Re: [dba-VB] > > > > Problem while publishing ADO.NET Data Service... > > > > > > > > > Hi All, > > > > > > > > > > I have got found one solution for the subject issue: > > > > > > > > > > Hosted ADO.NET Data Services & Silverlight > > > > > > > > > http://dvanderboom.wordpress.com/2009/01/07/hosted-adonet-data-services-silv erlight/ > > > > > > > > > > But it doesn't look satisfactory for general case, and it doesn't work > > > > yet for my site (waiting for ISP support with IIS server restart - maybe > > > > that helps as web site restarting doesn't work) - I have got stuck here: > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > > > > > > > > > with a message: > > > > > <<< > > > > > IIS specified authentication schemes 'Basic, Anonymous', but the binding > > > > only supports specification of exactly one authentication scheme. Valid > > > > authentication schemes are Digest, Negotiate, NTLM, Basic, or Anonymous. > > > > Change the IIS settings so that only a single authentication scheme is used. > > > > > >>> > > > > > > > > > > and as you can see SOAP and WCF sample services do work OK here: > > > > > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/SOAPService.asmx > > > > > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/WCFService.svc > > > > > > > > > > If you know general solution for subject issue that woudl be very > > > > helpful. > > > > > > > > > > Thank you. > > > > > > > > > > -- > > > > > Shamil > > > > > > > > > > -----Original Message----- > > > > > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > > > > > To: "Discussion concerning Visual Basic and related programming issues."< > > > > dba-vb at databaseadvisors.com> > > > > > Date: Thu, 04 Jun 2009 23:06:18 +0400 > > > > > Subject: Re: [dba-VB] > > > > > Problem while publishing ADO.NET Data Service... > > > > > > > > > > > Hi All, > > > > > > > > > > > > I have changed location of NorthwindNety Data Service to: > > > > > > > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > > > > > > > > > > > still no solution for > > > > > > > > > > > > This collection already contains an address with scheme http. There > > > > can be at most one address per scheme in this collection. > > > > > > Parameter name: item > > > > > > > > > > > > :( > > > > > > > > > > > > -- > > > > > > Shamil > > > > > > > > > > > ><<< aaa >>> > > > > > _______________________________________________ > > > > > dba-VB mailing list > > > > > dba-VB at databaseadvisors.com > > > > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > > > > http://www.databaseadvisors.com > > > > > > > > > > > > > _______________________________________________ > > > > dba-VB mailing list > > > > dba-VB at databaseadvisors.com > > > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > > > http://www.databaseadvisors.com > > > > > > > > > > > > > > > > > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > > > _______________________________________________ > 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 raibeart at gmail.com Mon Jun 8 10:26:03 2009 From: raibeart at gmail.com (Robert Stewart) Date: Mon, 08 Jun 2009 10:26:03 -0500 Subject: [dba-VB] Problem while publishing ADO.NET Data Service... Message-ID: <4a2d2dad.02c3f10a.7bf4.1acb@mx.google.com> To butt in here... A Silverlight program requires the Silverlight add in. There is one to run under Linux also and one being developed for Mac. Having said that, I have NEVER seen a "mixed environment" in any corporate office in my life as an IT person. ALL of the companies that I have dealt with are in Windows OS. And, isn't Silverlight trying to do the same thing that Flash has done, go across platforms? To be blunt, I have made my living using Microsoft software. If it was not good, then the Open source world would be dominate. They are not. I think you get what you pay for with open source. Although, some people feel that you do not get what you pay for with MS. Personally, if someone wants something to run on Linux, I send them looking for someone else to do it. I might consider doing it if Silverlight will do the cross-platform thing. Otherwise, I am an MS kind of guy. Remember that we are working with Beta software in Silverlight 3.0. And, here at home, I am also working with Windows 7 and VS 2010. One of which is RC and the other beta. And, I am running them on a VM. So, I really do not care what they need to run. It can be wiped out and done over in a hour or so. The point is that I am getting ahead of the learning curve on all of the changes that are in the next release. And at the same time, creating a piece of software that I will be "renting" under a software as a service plan. My mantra is do it right the first time, customize it to the clients requirements and leave them to it. I had one customer that went 8 years before calling me to change their MS Access program because of the way I did it the first time. They only called because they need to add new functionality. That is the way it should always be. At 12:00 PM 6/7/2009, you wrote: >Date: Sun, 7 Jun 2009 09:54:42 -0700 >From: "Jim Lawrence" <accessd at shaw.ca> >Subject: Re: [dba-VB] Problem while publishing ADO.NET Data Service... >To: "'Salakhetdinov Shamil'" <mcp2004 at mail.ru>, "'Discussion > concerning Visual Basic and related programming issues.'" > <dba-vb at databaseadvisors.com> >Message-ID: > <24FBF921E25D4277BCB79042D579EE6C at creativesystemdesigns.com> >Content-Type: text/plain; charset="us-ascii" > >Hi Shamil: > >I have been watching this thread for a bit and was wondering, if proceeding >along this direction is in fact tying the designers and users to a very >proprietary desktop and set of BE services? > >Just to get much of the apps running requires the very latest patches and >specific downloads, products that are not integrated into the default >Windows OS. Only the most carefully managed office location would be able to >even run this technology. > > >From my point of view the following is the reality: >1. On most sites I am just the contractor and not as the head IT guy. >2. Clients want to hire me not marry me. >3. Many sites using 'mixed' desktops (Windows/Mac/Linux). >4. The trend is towards 'portability' on cross-platform environments. > >On the other hand, this is all great fun technology and I have been very >much enjoying this thread. > >Jim From cfoust at infostatsystems.com Mon Jun 8 10:28:15 2009 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 8 Jun 2009 08:28:15 -0700 Subject: [dba-VB] New article from Charlotte and myself In-Reply-To: <2FF08D3F779A45A1AF16322D6BEE0EAD@SusanOne> References: <8A3DB7DEC94740D797DD5597B4CEC864@SusanOne><E1MCz5U-0000VQ-00.mcp2004-mail-ru@f251.mail.ru> <2FF08D3F779A45A1AF16322D6BEE0EAD@SusanOne> Message-ID: <F55048AF7E974F429BB24597D7355EEAB87775@INFOSERVER04.infostat.local> Just who are you calling an expert, Susan?? I make it up as I go along! LOL Seriously, I work in an environment where we use VS Pro and 3rd party controls that we then customize to the look and behavior we want as standard. Working directly with the vanilla controls is a good exercise for me and a challenge as well. These aren't paint by numbers articles, they're more inducements to try it out by suggesting stuff that is somewhat familiar to an Access developer. Charlotte -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Saturday, June 06, 2009 3:11 PM To: Salakhetdinov Shamil; Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] New article from Charlotte and myself Thank you Shamil -- I'm glad you liked it! Charlotte is teaching me .NET -- best way for me to learn I think is to just plunge in and let an expert say, "No, no, no..." ;) Susan H. > Hi Susan, > > Thank you for the link. > That's a good article. > I'd note one of your outstanding abilities - an ability to "cultivate > the developed ground" yielding very useful output... _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From ssharkins at gmail.com Mon Jun 8 10:41:43 2009 From: ssharkins at gmail.com (Susan Harkins) Date: Mon, 8 Jun 2009 11:41:43 -0400 Subject: [dba-VB] New article from Charlotte and myself References: <8A3DB7DEC94740D797DD5597B4CEC864@SusanOne><E1MCz5U-0000VQ-00.mcp2004-mail-ru@f251.mail.ru><2FF08D3F779A45A1AF16322D6BEE0EAD@SusanOne> <F55048AF7E974F429BB24597D7355EEAB87775@INFOSERVER04.infostat.local> Message-ID: <8EFA58891A294160839C910AF71A9118@SusanOne> Um... folks, Charlotte's modesty is becoming and something I've learned to expect from Charlotte, but don't let her kid you -- I pride myself on learning the nitty gritty of "using" new technologies, and I really would be struggling without her. Stayed tuned for our next article on typed datasets! I'm so excited... and I feel like dancing... um... Okay, I'm a liar... I'm clueless. Susan H. > Just who are you calling an expert, Susan?? I make it up as I go along! > LOL > > Seriously, I work in an environment where we use VS Pro and 3rd party > controls that we then customize to the look and behavior we want as > standard. Working directly with the vanilla controls is a good exercise > for me and a challenge as well. These aren't paint by numbers articles, > they're more inducements to try it out by suggesting stuff that is > somewhat familiar to an Access developer. From accessd at shaw.ca Mon Jun 8 12:33:59 2009 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 8 Jun 2009 10:33:59 -0700 Subject: [dba-VB] Problem while publishing ADO.NET Data Service... In-Reply-To: <4a2d2dad.02c3f10a.7bf4.1acb@mx.google.com> References: <4a2d2dad.02c3f10a.7bf4.1acb@mx.google.com> Message-ID: <EF8B0B115A2E46E489C38B5D9FF81CE4@creativesystemdesigns.com> Hi Robert: You have not been around much. ;-) I work with some of the largest franchisees (McDonalds, Sony, Staples, Wal-Mart etc) and with virtually all the local banks (BNS, CIBC, RBC, BMO, HSBC etc). Desktops may be all Windows but step away from the front counters for a moment and there could be any type of OSs in the back office and at corporate head-quarters. Managers also like their perks and in some case that mean they have Macs. When it comes to BE servers the mix is 30-70. These servers are not cheap as they are top end. (Dell, HP and IBM) Even MS uses(d) Linux networks. Three years ago even Microsoft was using a large Linux site in San Francisco to host their Hot-mail. I worked for years with our local provincial government and all their big databases were in Oracle and other miscellaneous DBs on Linux... In fact most big systems were Linux based. I worked for Maps-BC through a number of departments and their desktop systems were mostly Linux running Arc-Info and InterGraph mapping software... 5 floors of computers. I supported one of the very few MS SQL systems (and wrote all the software for the system) but just could not penetrate the system culture and get more similar systems adopted... believe me, I tried. Most websites, I have run across are hosted on Linux boxes... even our own DBA mail. I have been slowly seeing desktops with various versions of Linux popping up (after all this is a university town) but it is not a flood. I will be honest with you in that I do not care which systems I work with. All I am interested in is consistency, reliability and hopefully cross-platform support... Your experiences are obviously different than mine. Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Robert Stewart Sent: Monday, June 08, 2009 8:26 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Problem while publishing ADO.NET Data Service... To butt in here... A Silverlight program requires the Silverlight add in. There is one to run under Linux also and one being developed for Mac. Having said that, I have NEVER seen a "mixed environment" in any corporate office in my life as an IT person. ALL of the companies that I have dealt with are in Windows OS. And, isn't Silverlight trying to do the same thing that Flash has done, go across platforms? To be blunt, I have made my living using Microsoft software. If it was not good, then the Open source world would be dominate. They are not. I think you get what you pay for with open source. Although, some people feel that you do not get what you pay for with MS. Personally, if someone wants something to run on Linux, I send them looking for someone else to do it. I might consider doing it if Silverlight will do the cross-platform thing. Otherwise, I am an MS kind of guy. Remember that we are working with Beta software in Silverlight 3.0. And, here at home, I am also working with Windows 7 and VS 2010. One of which is RC and the other beta. And, I am running them on a VM. So, I really do not care what they need to run. It can be wiped out and done over in a hour or so. The point is that I am getting ahead of the learning curve on all of the changes that are in the next release. And at the same time, creating a piece of software that I will be "renting" under a software as a service plan. My mantra is do it right the first time, customize it to the clients requirements and leave them to it. I had one customer that went 8 years before calling me to change their MS Access program because of the way I did it the first time. They only called because they need to add new functionality. That is the way it should always be. At 12:00 PM 6/7/2009, you wrote: >Date: Sun, 7 Jun 2009 09:54:42 -0700 >From: "Jim Lawrence" <accessd at shaw.ca> >Subject: Re: [dba-VB] Problem while publishing ADO.NET Data Service... >To: "'Salakhetdinov Shamil'" <mcp2004 at mail.ru>, "'Discussion > concerning Visual Basic and related programming issues.'" > <dba-vb at databaseadvisors.com> >Message-ID: > <24FBF921E25D4277BCB79042D579EE6C at creativesystemdesigns.com> >Content-Type: text/plain; charset="us-ascii" > >Hi Shamil: > >I have been watching this thread for a bit and was wondering, if proceeding >along this direction is in fact tying the designers and users to a very >proprietary desktop and set of BE services? > >Just to get much of the apps running requires the very latest patches and >specific downloads, products that are not integrated into the default >Windows OS. Only the most carefully managed office location would be able to >even run this technology. > > >From my point of view the following is the reality: >1. On most sites I am just the contractor and not as the head IT guy. >2. Clients want to hire me not marry me. >3. Many sites using 'mixed' desktops (Windows/Mac/Linux). >4. The trend is towards 'portability' on cross-platform environments. > >On the other hand, this is all great fun technology and I have been very >much enjoying this thread. > >Jim _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From fuller.artful at gmail.com Mon Jun 8 13:58:31 2009 From: fuller.artful at gmail.com (Arthur Fuller) Date: Mon, 8 Jun 2009 14:58:31 -0400 Subject: [dba-VB] New article from Charlotte and myself In-Reply-To: <8EFA58891A294160839C910AF71A9118@SusanOne> References: <8A3DB7DEC94740D797DD5597B4CEC864@SusanOne> <E1MCz5U-0000VQ-00.mcp2004-mail-ru@f251.mail.ru> <2FF08D3F779A45A1AF16322D6BEE0EAD@SusanOne> <F55048AF7E974F429BB24597D7355EEAB87775@INFOSERVER04.infostat.local> <8EFA58891A294160839C910AF71A9118@SusanOne> Message-ID: <29f585dd0906081158l3a923be6t9cf19ddd655bd65f@mail.gmail.com> No Susan, you're clueful, and very willing to jump new hurdles as they occur to you. A. On Mon, Jun 8, 2009 at 11:41 AM, Susan Harkins <ssharkins at gmail.com> wrote: > Um... folks, Charlotte's modesty is becoming and something I've learned to > expect from Charlotte, but don't let her kid you -- I pride myself on > learning the nitty gritty of "using" new technologies, and I really would > be > struggling without her. > > Stayed tuned for our next article on typed datasets! I'm so excited... and > I > feel like dancing... um... Okay, I'm a liar... I'm clueless. > > Susan H. > From ssharkins at gmail.com Mon Jun 8 15:51:31 2009 From: ssharkins at gmail.com (Susan Harkins) Date: Mon, 8 Jun 2009 16:51:31 -0400 Subject: [dba-VB] New article from Charlotte and myself References: <8A3DB7DEC94740D797DD5597B4CEC864@SusanOne><E1MCz5U-0000VQ-00.mcp2004-mail-ru@f251.mail.ru><2FF08D3F779A45A1AF16322D6BEE0EAD@SusanOne><F55048AF7E974F429BB24597D7355EEAB87775@INFOSERVER04.infostat.local><8EFA58891A294160839C910AF71A9118@SusanOne> <29f585dd0906081158l3a923be6t9cf19ddd655bd65f@mail.gmail.com> Message-ID: <997AAFF0A8F848B5973ADAAF1488B7C5@SusanOne> > No Susan, you're clueful, and very willing to jump new hurdles as they > occur > to you. =====Usually, but not with .NET -- I really resisted, hoping I'd be doing something else by now. That hasn't happened so .NET is impossible to avoid. Susan H. From Gustav at cactus.dk Mon Jun 8 16:05:14 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 08 Jun 2009 23:05:14 +0200 Subject: [dba-VB] New article from Charlotte and myself Message-ID: <sa2d993e.027@cactus.dk> Hi Susan Don't worry - .Net will keep you young! /gustav >>> ssharkins at gmail.com 08-06-2009 22:51 >>> > No Susan, you're clueful, and very willing to jump new hurdles as they occur to you. =====Usually, but not with .NET -- I really resisted, hoping I'd be doing something else by now. That hasn't happened so .NET is impossible to avoid. Susan H. From ssharkins at gmail.com Mon Jun 8 16:09:58 2009 From: ssharkins at gmail.com (Susan Harkins) Date: Mon, 8 Jun 2009 17:09:58 -0400 Subject: [dba-VB] New article from Charlotte and myself References: <sa2d993e.027@cactus.dk> Message-ID: <57C2E3CFC3C04846BF466668E76F54DB@SusanOne> I need something -- yesterday I was trying to work out a knitting pattern, and I swear, I was near tears because everytime I was two stitches off... I finally found it, simple subtraction error that I made over and over. It was terribly frustrating -- I understand now how first graders must feel. :( Susan H. > > Don't worry - .Net will keep you young! > > /gustav From max.wanadoo at gmail.com Mon Jun 8 16:10:56 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 8 Jun 2009 22:10:56 +0100 Subject: [dba-VB] New article from Charlotte and myself In-Reply-To: <sa2d993e.027@cactus.dk> References: <sa2d993e.027@cactus.dk> Message-ID: <4a2d7e62.0a1ad00a.6306.43d2@mx.google.com> Sign me up.....sign me up...how young?? Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 08 June 2009 22:05 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] New article from Charlotte and myself Hi Susan Don't worry - .Net will keep you young! /gustav >>> ssharkins at gmail.com 08-06-2009 22:51 >>> > No Susan, you're clueful, and very willing to jump new hurdles as they occur to you. =====Usually, but not with .NET -- I really resisted, hoping I'd be doing something else by now. That hasn't happened so .NET is impossible to avoid. Susan H. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From max.wanadoo at gmail.com Mon Jun 8 16:12:59 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 8 Jun 2009 22:12:59 +0100 Subject: [dba-VB] New article from Charlotte and myself In-Reply-To: <57C2E3CFC3C04846BF466668E76F54DB@SusanOne> References: <sa2d993e.027@cactus.dk> <57C2E3CFC3C04846BF466668E76F54DB@SusanOne> Message-ID: <4a2d7ede.0a04d00a.1acb.1c87@mx.google.com> Been there...know exactly what you mean. Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: 08 June 2009 22:10 To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] New article from Charlotte and myself I need something -- yesterday I was trying to work out a knitting pattern, and I swear, I was near tears because everytime I was two stitches off... I finally found it, simple subtraction error that I made over and over. It was terribly frustrating -- I understand now how first graders must feel. :( Susan H. > > Don't worry - .Net will keep you young! > > /gustav _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From Johncliviger at aol.com Tue Jun 9 03:27:37 2009 From: Johncliviger at aol.com (Johncliviger at aol.com) Date: Tue, 9 Jun 2009 04:27:37 EDT Subject: [dba-VB] New article from Charlotte and myself Message-ID: <d60.4e558c6e.375f76f9@aol.com> Steady on Max Not that young! johnc From max.wanadoo at gmail.com Tue Jun 9 05:31:28 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Tue, 9 Jun 2009 11:31:28 +0100 Subject: [dba-VB] New article from Charlotte and myself In-Reply-To: <d60.4e558c6e.375f76f9@aol.com> References: <d60.4e558c6e.375f76f9@aol.com> Message-ID: <cda8f54e0906090331k444ee1ceh37b737dd2cb94bda@mail.gmail.com> You misunderstand John, I was referring to dropped stitches. I will have you know that I have knitted a 4-needle cable stitch jumper for myself. There! Better that if you can.... max On 6/9/09, Johncliviger at aol.com <Johncliviger at aol.com> wrote: > > Steady on Max Not that young! > > johnc > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From ssharkins at gmail.com Tue Jun 9 07:51:57 2009 From: ssharkins at gmail.com (Susan Harkins) Date: Tue, 9 Jun 2009 08:51:57 -0400 Subject: [dba-VB] New article from Charlotte and myself References: <d60.4e558c6e.375f76f9@aol.com> <cda8f54e0906090331k444ee1ceh37b737dd2cb94bda@mail.gmail.com> Message-ID: <C0835D11779A4A0DBF69760BB4913274@SusanOne> > You misunderstand John, I was referring to dropped stitches. I will have > you > know that I have knitted a 4-needle cable stitch jumper for myself. =========You're a better woman than me Max! ;) Susan H. From max.wanadoo at gmail.com Tue Jun 9 14:08:31 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Tue, 9 Jun 2009 20:08:31 +0100 Subject: [dba-VB] New article from Charlotte and myself In-Reply-To: <C0835D11779A4A0DBF69760BB4913274@SusanOne> References: <d60.4e558c6e.375f76f9@aol.com> <cda8f54e0906090331k444ee1ceh37b737dd2cb94bda@mail.gmail.com> <C0835D11779A4A0DBF69760BB4913274@SusanOne> Message-ID: <4a2eb332.1c07d00a.3ca9.0892@mx.google.com> Ha ha! And I bet you won't believe me when I said I was in my early 20s, sitting on a bed in the Army billet with all the other guys jeering and poking fun. When it started to take shape they stopped jeering and towards the end I had another 3 guys knitting as well. True... Max Ps. I am a better man than you will ever be.... -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: 09 June 2009 13:52 To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] New article from Charlotte and myself > You misunderstand John, I was referring to dropped stitches. I will have > you > know that I have knitted a 4-needle cable stitch jumper for myself. =========You're a better woman than me Max! ;) Susan H. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From mcp2004 at mail.ru Tue Jun 9 15:42:58 2009 From: mcp2004 at mail.ru (Salakhetdinov Shamil) Date: Wed, 10 Jun 2009 00:42:58 +0400 Subject: [dba-VB] =?koi8-r?b?UHJvYmxlbSB3aGlsZSBwdWJsaXNoaW5nIEFETy5ORVQg?= =?koi8-r?b?RGF0YSBTZXJ2aWNlLi4u?= In-Reply-To: <24FBF921E25D4277BCB79042D579EE6C@creativesystemdesigns.com> References: <24FBF921E25D4277BCB79042D579EE6C@creativesystemdesigns.com> Message-ID: <E1ME89q-0007ZJ-00.mcp2004-mail-ru@f222.mail.ru> Hi Jim, I'm working for money here - the main purpose for me to learn new MS technologies is to get a competetive advantage, not fun... As far as I see ADO.NET Entity Framework and ADO.NET Data Services are becoming a kind of "ODBC for 2010ies" - this is an emerging technology but it's getting all the main database technology players embraced already: http://msdn.microsoft.com/en-us/data/dd363565.aspx And Silverlight is targeted not only for Windows but for Mac and Linux also... And I'm not going "to marry my customers to me" because of using MS technologies - the fact is that there are a lot of competing providers in my area of software development... As for Oracle, PHP, Linux - I have never had opportunity to work using them as it wasn't requested by my customers but a couple of times I have had opportunity to directly compete with other companies who used Oracle for the same customer - both times they were "beaten" by my and my colleagues services, and our "forces" were usually several times less - one time it was 2 developers/consultants against a company having stuff of 100+ developers/consultants... MS tools are becoming really mature these days, and if properly applied they allow to "make wonders" even on moderate hardware... > 4. The trend is towards 'portability' on cross-platform environments. In my opinion, nowadays customers first of all need working software ASAP - and MS development tools help to satisfy those needs/market demands. And I'm not trying to embrace the whole software development market - I mean custom software development - business applicationx for small-/middle-size businesses - here MS tools fit very well IMO - just IMO... Thank you. -- Shamil -----Original Message----- From: "Jim Lawrence" <accessd at shaw.ca> To: "'Salakhetdinov Shamil'" <mcp2004 at mail.ru>,"'Discussion concerning Visual Basic and related programming issues.'" <dba-vb at databaseadvisors.com> Date: Sun, 7 Jun 2009 09:54:42 -0700 Subject: RE: [dba-VB] Problem while publishing ADO.NET Data Service... > Hi Shamil: > > I have been watching this thread for a bit and was wondering, if proceeding > along this direction is in fact tying the designers and users to a very > proprietary desktop and set of BE services? > > Just to get much of the apps running requires the very latest patches and > specific downloads, products that are not integrated into the default > Windows OS. Only the most carefully managed office location would be able to > even run this technology. > > From my point of view the following is the reality: > 1. On most sites I am just the contractor and not as the head IT guy. > 2. Clients want to hire me not marry me. > 3. Many sites using 'mixed' desktops (Windows/Mac/Linux). > 4. The trend is towards 'portability' on cross-platform environments. > > On the other hand, this is all great fun technology and I have been very > much enjoying this thread. > > Jim > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Salakhetdinov > Shamil > Sent: Friday, June 05, 2009 3:53 PM > To: Discussion concerning Visual Basic and related programming issues. > Subject: Re: [dba-VB] Problem while publishing ADO.NET Data Service... > > Hi All, > > I have found a good sample to consume ADO.NET Data Services using > SIlverLight 2.0 - here it's: > > Using Silverlight 2 With ADO.NET Data Services > > http://msdn.microsoft.com/en-us/magazine/dd569758.aspx > > I will try to make something like that live tomorrow - time to sleep here. > > Thank you. > > -- > Shamil > > -----Original Message----- > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > To: "Discussion concerning Visual Basic and related programming > issues."<dba-vb at databaseadvisors.com> > Date: Sat, 06 Jun 2009 02:27:22 +0400 > Subject: Re: [dba-VB] > Problem while publishing ADO.NET Data Service... > > > Hi All, > > > > I have got my SilverLight sample working: > > > > http://shamils-4.hosting.parking.ru/sl/NWNetSilverlight.aspx > > > > it uses hardcoded Shipper sample table's data. > > > > Then I tried to "feed" my Silverlight sample form by using the following > ADO.NET Data Service: > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > > > with code like that (which works well in C# console app): > > > > using System; > > using System.Collections.Generic; > > > > using System.Data.Services.Client; > > using System.ComponentModel; > > > > namespace ResearchAndDevelopment.Console > > { > > public class Shippers > > { > > public class Shipper > > { > > public int ID { get; set; } > > public string Name { get; set; } > > public string Phone { get; set; } > > public byte[] RowTimeStamp { get; set; } > > } > > > > private static Uri dataServiceURI = > > new > Uri(@"http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.sv > c"); > > public static void ListShippers() > > { > > DataServiceContext ctx = > > new DataServiceContext(dataServiceURI); > > IEnumerable<Shipper> shippers = ctx.Execute<Shipper>( > > new Uri("Shipper?$orderby=ID", UriKind.Relative)); > > foreach (Shipper s in shippers) > > { > > System.Console.WriteLine("{0}. {1}", s.ID, s.Name); > > } > > } > > } > > } > > > > But I have found that SilverLight 2.0 doesn't support ADO.NET Data > Services "out-of-the-box" as straightforward as the above sample code. This > sample code doesn't even compile for SilverLight projects because those > projects can't be used with .NET Framework 3.5. > > > > Therefore I'm currently stuck in feeding my SilverLight 2.0 sample with > ADO.NET Data Services (.NET 3.5 SP1) ATOM feed. > > > > Do you have any samples' references explaining how to get ADO.NET Data > Services Data into SilverLight 2.0 - the most straightforward way? > > > > Thank you. > > > > -- > > Shamil > > > > > > > > -----Original Message----- > > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > > To: Mark Breen <marklbreen at gmail.com> > > Date: Fri, 05 Jun 2009 15:26:41 +0400 > > Subject: Re: [dba-VB] > > Problem while publishing ADO.NET Data Service... > > > > > Hi Mark, > > > > > > I'd add/outline additionally to my previous answer on your posting that > ADO.NET Data Services can be used in heavily distributed workflow > scenarious, with support of distributed transactions etc.etc. Workflows are > designed and programmed for such applications using Windows Workflow > Foundation (WF). "Not data" services are developed using Windows > Communication Foundation (WCF) (and ADO.NET data services are also driven by > WCF services AFAIU)... > > > > > > -- > > > Shamil > > > > > > -----Original Message----- > > > From: Mark Breen <marklbreen at gmail.com> > > > To: Salakhetdinov Shamil <mcp2004 at mail.ru>, "Discussion concerning > Visual Basic and related programming issues." <dba-vb at databaseadvisors.com> > > > Date: Fri, 5 Jun 2009 09:10:10 +0100 > > > Subject: Re: [dba-VB] Problem while publishing ADO.NET Data Service... > > > > > > > Hello Shamil, > > > > as you know, I have two servers here in Ireland, would you like to do > your > > > > diagnosis / development of future development work on one of my > servers ? > > > > If so, that would be no problem. > > > > > > > > I am trying to keep up and read some of the link you posted int he > last few > > > > days regarding ADO.NET Data Service. > > > > > > > > I am not clear yet about differences between Webservices and ADO.NET > Data > > > > Service , but I expect if I spend some time to google and read, I can > become > > > > clear. > > > > > > > > However, I have one question, do you think that this archetectire is > > > > without doubt the way we will all connect to our data sources in the > future? > > > > How about performance, will it perform as good as current connections > such > > > > as ado and odbc over SQL Server Port? > > > > > > > > thanks > > > > > > > > Mark > > > > > > > > > > > > > > > > 2009/6/5 Salakhetdinov Shamil <mcp2004 at mail.ru> > > > > > > > > > > > > > > Hi All, > > > > > > > > > > Just wanted to ask one more question on subject issue: I do not > understand > > > > > why IIS should be restarted to have one of its Web Site's getting a > new > > > > > setting activated? I mean why it's not enough to stop and start this > web > > > > > site/web application? What am I missing? > > > > > > > > > > You can see by goodling how many developers got confused by this > > > > > "simple"(?) issue - and even stackoverflow doesn't have a clear > answer, or > > > > > am I missing it? > > > > > > > > > > Thank you. > > > > > > > > > > -- > > > > > Shamil > > > > > > > > > > -----Original Message----- > > > > > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > > > > > To: "Discussion concerning Visual Basic and related programming > issues."< > > > > > dba-vb at databaseadvisors.com> > > > > > Date: Fri, 05 Jun 2009 02:48:38 +0400 > > > > > Subject: Re: [dba-VB] > > > > > Problem while publishing ADO.NET Data Service... > > > > > > > > > > > Hi All, > > > > > > > > > > > > I have got found one solution for the subject issue: > > > > > > > > > > > > Hosted ADO.NET Data Services & Silverlight > > > > > > > > > > > > http://dvanderboom.wordpress.com/2009/01/07/hosted-adonet-data-services-silv > erlight/ > > > > > > > > > > > > But it doesn't look satisfactory for general case, and it doesn't > work > > > > > yet for my site (waiting for ISP support with IIS server restart - > maybe > > > > > that helps as web site restarting doesn't work) - I have got stuck > here: > > > > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > > > > > > > > > > > with a message: > > > > > > <<< > > > > > > IIS specified authentication schemes 'Basic, Anonymous', but the > binding > > > > > only supports specification of exactly one authentication scheme. > Valid > > > > > authentication schemes are Digest, Negotiate, NTLM, Basic, or > Anonymous. > > > > > Change the IIS settings so that only a single authentication scheme > is used. > > > > > > >>> > > > > > > > > > > > > and as you can see SOAP and WCF sample services do work OK here: > > > > > > > > > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/SOAPService.asmx > > > > > > > > > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/WCFService.svc > > > > > > > > > > > > If you know general solution for subject issue that woudl be very > > > > > helpful. > > > > > > > > > > > > Thank you. > > > > > > > > > > > > -- > > > > > > Shamil > > > > > > > > > > > > -----Original Message----- > > > > > > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > > > > > > To: "Discussion concerning Visual Basic and related programming > issues."< > > > > > dba-vb at databaseadvisors.com> > > > > > > Date: Thu, 04 Jun 2009 23:06:18 +0400 > > > > > > Subject: Re: [dba-VB] > > > > > > Problem while publishing ADO.NET Data Service... > > > > > > > > > > > > > Hi All, > > > > > > > > > > > > > > I have changed location of NorthwindNety Data Service to: > > > > > > > > > > > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > > > > > > > > > > > > > still no solution for > > > > > > > > > > > > > > This collection already contains an address with scheme http. > There > > > > > can be at most one address per scheme in this collection. > > > > > > > Parameter name: item > > > > > > > > > > > > > > :( > > > > > > > > > > > > > > -- > > > > > > > Shamil > > > > > > > > > > > > > ><<< aaa >>> > > > > > > _______________________________________________ > > > > > > dba-VB mailing list > > > > > > dba-VB at databaseadvisors.com > > > > > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > > > > > http://www.databaseadvisors.com > > > > > > > > > > > > > > > > _______________________________________________ > > > > > dba-VB mailing list > > > > > dba-VB at databaseadvisors.com > > > > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > > > > http://www.databaseadvisors.com > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > dba-VB mailing list > > > dba-VB at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > > http://www.databaseadvisors.com > > > > > > > _______________________________________________ > > 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 Johncliviger at aol.com Wed Jun 10 03:11:41 2009 From: Johncliviger at aol.com (Johncliviger at aol.com) Date: Wed, 10 Jun 2009 04:11:41 EDT Subject: [dba-VB] New article from Charlotte and myself Message-ID: <bde.48755e95.3760c4bd@aol.com> I must have lost the point somewhere Max. I didn't realise that Charlotte & Sue's new article was on knitting! You could develop a whole new nomenclature eg Imports System.Wool.Needles.Knitting or System.Needles.Haystack.Lost have fun johnc From max.wanadoo at gmail.com Wed Jun 10 10:14:57 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Wed, 10 Jun 2009 16:14:57 +0100 Subject: [dba-VB] New article from Charlotte and myself In-Reply-To: <bde.48755e95.3760c4bd@aol.com> References: <bde.48755e95.3760c4bd@aol.com> Message-ID: <4a2fcdf6.0506d00a.4f5a.648f@mx.google.com> Ha! very good. Needed a smile today. It was definitely a "stitch in time". Thank you Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Johncliviger at aol.com Sent: 10 June 2009 09:12 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] New article from Charlotte and myself I must have lost the point somewhere Max. I didn't realise that Charlotte & Sue's new article was on knitting! You could develop a whole new nomenclature eg Imports System.Wool.Needles.Knitting or System.Needles.Haystack.Lost have fun johnc _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From mcp2004 at mail.ru Wed Jun 10 10:59:58 2009 From: mcp2004 at mail.ru (Salakhetdinov Shamil) Date: Wed, 10 Jun 2009 19:59:58 +0400 Subject: [dba-VB] =?koi8-r?b?RllJOiBSZWNvbW1lbmRlZCB3YXRjaGluZw==?= Message-ID: <E1MEQDW-0001zZ-00.mcp2004-mail-ru@f141.mail.ru> Hi All, Here are a few good presentations I liked to watch and I wanted to share with you: <<< Responsive design "Purpose and intent are just as important as skill in effective software development. Skill allows you to deliver value in difficult technical circumstances. Clear purpose and positive intent allow you to deliver value in difficult social and business circumstances. Kent Beck shares his design technique which involves both intent and a small set of strategies he uses when designing. " http://www.infoq.com/presentations/responsive-design >>> <<< Eric Nelson on VS 2010 and .NET 4.0 In this interview Eric Nelson talks about what's coming in VS 2010, the C# - VB.NET convergence, the introduction of Parallel as a library, and Azure cloud computing. http://www.infoq.com/interviews/VS2010-Eric-Nelson >>> <<< AtomServer: The Power of Publishing for Data Distribution In this session recorded at QCon SF 2008, Chris Berry & Bryon Jacob presented the Atom Syndication Format, the Atom Publishing Protocol, the Atom Categories, the Atom Stores, the AtomServer and how they can be used by giving a concrete example. http://www.infoq.com/presentations/Atom-Server-Berry-Jacob >>> Thank you. -- Shamil From accessd at shaw.ca Wed Jun 10 13:10:29 2009 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 10 Jun 2009 11:10:29 -0700 Subject: [dba-VB] Problem while publishing ADO.NET Data Service... In-Reply-To: <E1ME89q-0007ZJ-00.mcp2004-mail-ru@f222.mail.ru> References: <24FBF921E25D4277BCB79042D579EE6C@creativesystemdesigns.com> <E1ME89q-0007ZJ-00.mcp2004-mail-ru@f222.mail.ru> Message-ID: <C2C3BDA2B6534781AC4663676123D509@creativesystemdesigns.com> Hi Shamil: I have never had an issue with ADO.Net technology... but it will be a while before I can claim professional competence in the product but I believe it is going the right way... that is browser based. My only apprehension is not being able to deliver a web-based service because a client or completely unknown customer is either using the 'wrong' OS, browser to deliver/receive services or is simply not patch up enough. I am starting to see a number of web sites that have been 'blocked' because they are not using the right version of browser IE7 and not IE8 or FF or Chrome etc... or do not have the appropriate technology installed on their desktop. I have been unable to get some of the Silver-light based code running on some of my systems even though I have the latest version of Framework and Silver installed. XP and Vista and even Window7 seem be fine but Server2003 and Server2008 are another matter... and of course Linux/Mac even running FF are toast. I have starting to see the marrying of browser and desktop and personally I feel we should be going in the other direction. More loose binding. I agree with you completely about the MS tools and most clients are using MS desktops. In this area, the government and well as the military and local university/colleges are Oracle/Java. My experiences with project bids have been quite different. After spending a month developing proof of concept, proving that MS SQL was a superior product, easier to deploy and at 50% of the cost of Oracle... the bid was lost on only one point... it wasn't standard. Maybe these tight times will encourage IT managers to take another look at MS SQL. Sorry for going on but some comments seem to need a response. Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Salakhetdinov Shamil Sent: Tuesday, June 09, 2009 1:43 PM To: dba-VB Subject: Re: [dba-VB] Problem while publishing ADO.NET Data Service... Hi Jim, I'm working for money here - the main purpose for me to learn new MS technologies is to get a competetive advantage, not fun... As far as I see ADO.NET Entity Framework and ADO.NET Data Services are becoming a kind of "ODBC for 2010ies" - this is an emerging technology but it's getting all the main database technology players embraced already: http://msdn.microsoft.com/en-us/data/dd363565.aspx And Silverlight is targeted not only for Windows but for Mac and Linux also... And I'm not going "to marry my customers to me" because of using MS technologies - the fact is that there are a lot of competing providers in my area of software development... As for Oracle, PHP, Linux - I have never had opportunity to work using them as it wasn't requested by my customers but a couple of times I have had opportunity to directly compete with other companies who used Oracle for the same customer - both times they were "beaten" by my and my colleagues services, and our "forces" were usually several times less - one time it was 2 developers/consultants against a company having stuff of 100+ developers/consultants... MS tools are becoming really mature these days, and if properly applied they allow to "make wonders" even on moderate hardware... > 4. The trend is towards 'portability' on cross-platform environments. In my opinion, nowadays customers first of all need working software ASAP - and MS development tools help to satisfy those needs/market demands. And I'm not trying to embrace the whole software development market - I mean custom software development - business applicationx for small-/middle-size businesses - here MS tools fit very well IMO - just IMO... Thank you. -- Shamil -----Original Message----- From: "Jim Lawrence" <accessd at shaw.ca> To: "'Salakhetdinov Shamil'" <mcp2004 at mail.ru>,"'Discussion concerning Visual Basic and related programming issues.'" <dba-vb at databaseadvisors.com> Date: Sun, 7 Jun 2009 09:54:42 -0700 Subject: RE: [dba-VB] Problem while publishing ADO.NET Data Service... > Hi Shamil: > > I have been watching this thread for a bit and was wondering, if proceeding > along this direction is in fact tying the designers and users to a very > proprietary desktop and set of BE services? > > Just to get much of the apps running requires the very latest patches and > specific downloads, products that are not integrated into the default > Windows OS. Only the most carefully managed office location would be able to > even run this technology. > > From my point of view the following is the reality: > 1. On most sites I am just the contractor and not as the head IT guy. > 2. Clients want to hire me not marry me. > 3. Many sites using 'mixed' desktops (Windows/Mac/Linux). > 4. The trend is towards 'portability' on cross-platform environments. > > On the other hand, this is all great fun technology and I have been very > much enjoying this thread. > > Jim > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Salakhetdinov > Shamil > Sent: Friday, June 05, 2009 3:53 PM > To: Discussion concerning Visual Basic and related programming issues. > Subject: Re: [dba-VB] Problem while publishing ADO.NET Data Service... > > Hi All, > > I have found a good sample to consume ADO.NET Data Services using > SIlverLight 2.0 - here it's: > > Using Silverlight 2 With ADO.NET Data Services > > http://msdn.microsoft.com/en-us/magazine/dd569758.aspx > > I will try to make something like that live tomorrow - time to sleep here. > > Thank you. > > -- > Shamil > > -----Original Message----- > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > To: "Discussion concerning Visual Basic and related programming > issues."<dba-vb at databaseadvisors.com> > Date: Sat, 06 Jun 2009 02:27:22 +0400 > Subject: Re: [dba-VB] > Problem while publishing ADO.NET Data Service... > > > Hi All, > > > > I have got my SilverLight sample working: > > > > http://shamils-4.hosting.parking.ru/sl/NWNetSilverlight.aspx > > > > it uses hardcoded Shipper sample table's data. > > > > Then I tried to "feed" my Silverlight sample form by using the following > ADO.NET Data Service: > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > > > with code like that (which works well in C# console app): > > > > using System; > > using System.Collections.Generic; > > > > using System.Data.Services.Client; > > using System.ComponentModel; > > > > namespace ResearchAndDevelopment.Console > > { > > public class Shippers > > { > > public class Shipper > > { > > public int ID { get; set; } > > public string Name { get; set; } > > public string Phone { get; set; } > > public byte[] RowTimeStamp { get; set; } > > } > > > > private static Uri dataServiceURI = > > new > Uri(@"http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.sv > c"); > > public static void ListShippers() > > { > > DataServiceContext ctx = > > new DataServiceContext(dataServiceURI); > > IEnumerable<Shipper> shippers = ctx.Execute<Shipper>( > > new Uri("Shipper?$orderby=ID", UriKind.Relative)); > > foreach (Shipper s in shippers) > > { > > System.Console.WriteLine("{0}. {1}", s.ID, s.Name); > > } > > } > > } > > } > > > > But I have found that SilverLight 2.0 doesn't support ADO.NET Data > Services "out-of-the-box" as straightforward as the above sample code. This > sample code doesn't even compile for SilverLight projects because those > projects can't be used with .NET Framework 3.5. > > > > Therefore I'm currently stuck in feeding my SilverLight 2.0 sample with > ADO.NET Data Services (.NET 3.5 SP1) ATOM feed. > > > > Do you have any samples' references explaining how to get ADO.NET Data > Services Data into SilverLight 2.0 - the most straightforward way? > > > > Thank you. > > > > -- > > Shamil > > > > > > > > -----Original Message----- > > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > > To: Mark Breen <marklbreen at gmail.com> > > Date: Fri, 05 Jun 2009 15:26:41 +0400 > > Subject: Re: [dba-VB] > > Problem while publishing ADO.NET Data Service... > > > > > Hi Mark, > > > > > > I'd add/outline additionally to my previous answer on your posting that > ADO.NET Data Services can be used in heavily distributed workflow > scenarious, with support of distributed transactions etc.etc. Workflows are > designed and programmed for such applications using Windows Workflow > Foundation (WF). "Not data" services are developed using Windows > Communication Foundation (WCF) (and ADO.NET data services are also driven by > WCF services AFAIU)... > > > > > > -- > > > Shamil > > > > > > -----Original Message----- > > > From: Mark Breen <marklbreen at gmail.com> > > > To: Salakhetdinov Shamil <mcp2004 at mail.ru>, "Discussion concerning > Visual Basic and related programming issues." <dba-vb at databaseadvisors.com> > > > Date: Fri, 5 Jun 2009 09:10:10 +0100 > > > Subject: Re: [dba-VB] Problem while publishing ADO.NET Data Service... > > > > > > > Hello Shamil, > > > > as you know, I have two servers here in Ireland, would you like to do > your > > > > diagnosis / development of future development work on one of my > servers ? > > > > If so, that would be no problem. > > > > > > > > I am trying to keep up and read some of the link you posted int he > last few > > > > days regarding ADO.NET Data Service. > > > > > > > > I am not clear yet about differences between Webservices and ADO.NET > Data > > > > Service , but I expect if I spend some time to google and read, I can > become > > > > clear. > > > > > > > > However, I have one question, do you think that this archetectire is > > > > without doubt the way we will all connect to our data sources in the > future? > > > > How about performance, will it perform as good as current connections > such > > > > as ado and odbc over SQL Server Port? > > > > > > > > thanks > > > > > > > > Mark > > > > > > > > > > > > > > > > 2009/6/5 Salakhetdinov Shamil <mcp2004 at mail.ru> > > > > > > > > > > > > > > Hi All, > > > > > > > > > > Just wanted to ask one more question on subject issue: I do not > understand > > > > > why IIS should be restarted to have one of its Web Site's getting a > new > > > > > setting activated? I mean why it's not enough to stop and start this > web > > > > > site/web application? What am I missing? > > > > > > > > > > You can see by goodling how many developers got confused by this > > > > > "simple"(?) issue - and even stackoverflow doesn't have a clear > answer, or > > > > > am I missing it? > > > > > > > > > > Thank you. > > > > > > > > > > -- > > > > > Shamil > > > > > > > > > > -----Original Message----- > > > > > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > > > > > To: "Discussion concerning Visual Basic and related programming > issues."< > > > > > dba-vb at databaseadvisors.com> > > > > > Date: Fri, 05 Jun 2009 02:48:38 +0400 > > > > > Subject: Re: [dba-VB] > > > > > Problem while publishing ADO.NET Data Service... > > > > > > > > > > > Hi All, > > > > > > > > > > > > I have got found one solution for the subject issue: > > > > > > > > > > > > Hosted ADO.NET Data Services & Silverlight > > > > > > > > > > > > http://dvanderboom.wordpress.com/2009/01/07/hosted-adonet-data-services-silv > erlight/ > > > > > > > > > > > > But it doesn't look satisfactory for general case, and it doesn't > work > > > > > yet for my site (waiting for ISP support with IIS server restart - > maybe > > > > > that helps as web site restarting doesn't work) - I have got stuck > here: > > > > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > > > > > > > > > > > with a message: > > > > > > <<< > > > > > > IIS specified authentication schemes 'Basic, Anonymous', but the > binding > > > > > only supports specification of exactly one authentication scheme. > Valid > > > > > authentication schemes are Digest, Negotiate, NTLM, Basic, or > Anonymous. > > > > > Change the IIS settings so that only a single authentication scheme > is used. > > > > > > >>> > > > > > > > > > > > > and as you can see SOAP and WCF sample services do work OK here: > > > > > > > > > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/SOAPService.asmx > > > > > > > > > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/WCFService.svc > > > > > > > > > > > > If you know general solution for subject issue that woudl be very > > > > > helpful. > > > > > > > > > > > > Thank you. > > > > > > > > > > > > -- > > > > > > Shamil > > > > > > > > > > > > -----Original Message----- > > > > > > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > > > > > > To: "Discussion concerning Visual Basic and related programming > issues."< > > > > > dba-vb at databaseadvisors.com> > > > > > > Date: Thu, 04 Jun 2009 23:06:18 +0400 > > > > > > Subject: Re: [dba-VB] > > > > > > Problem while publishing ADO.NET Data Service... > > > > > > > > > > > > > Hi All, > > > > > > > > > > > > > > I have changed location of NorthwindNety Data Service to: > > > > > > > > > > > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > > > > > > > > > > > > > still no solution for > > > > > > > > > > > > > > This collection already contains an address with scheme http. > There > > > > > can be at most one address per scheme in this collection. > > > > > > > Parameter name: item > > > > > > > > > > > > > > :( > > > > > > > > > > > > > > -- > > > > > > > Shamil > > > > > > > > > > > > > ><<< aaa >>> > > > > > > _______________________________________________ > > > > > > dba-VB mailing list > > > > > > dba-VB at databaseadvisors.com > > > > > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > > > > > http://www.databaseadvisors.com > > > > > > > > > > > > > > > > _______________________________________________ > > > > > dba-VB mailing list > > > > > dba-VB at databaseadvisors.com > > > > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > > > > http://www.databaseadvisors.com > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > dba-VB mailing list > > > dba-VB at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > > http://www.databaseadvisors.com > > > > > > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From mcp2004 at mail.ru Wed Jun 10 17:35:34 2009 From: mcp2004 at mail.ru (Salakhetdinov Shamil) Date: Thu, 11 Jun 2009 02:35:34 +0400 Subject: [dba-VB] =?koi8-r?b?UHJvYmxlbSB3aGlsZSBwdWJsaXNoaW5nIEFETy5ORVQg?= =?koi8-r?b?RGF0YSBTZXJ2aWNlLi4u?= In-Reply-To: <C2C3BDA2B6534781AC4663676123D509@creativesystemdesigns.com> References: <C2C3BDA2B6534781AC4663676123D509@creativesystemdesigns.com> Message-ID: <E1MEWOM-0007cx-00.mcp2004-mail-ru@f135.mail.ru> Hi Jim, Thank you for your reply. I'm writing here not to argue with you but to share my experience - and I'm working as freelancer for worldwide customers for many years now. Apparently we have quite different customers, and quite different experiences working with them. That's fine. ASP.NET 2.0/3.5 client webforms run just fine on all the most commonly used browsers - 90% I guess. Aiming at 100% would be tremendous waste of resources. Yes, Silverlight currently works on IE7/8 and FF 3.x but I believe it will soon run well on all the other most commonly used browsers running under MS Windows as well as on browsers runnning on Mac and Linux. ADO.NET Entity Framework - is a "corner-stone" emerging technology to process distributed data coming/collected in many different formats from all kinds of data publishers/producers... <<< ...marrying of browser and desktop... >>> Do you mean "armouring" browsers with (often browser specififc) "heavy-weigth" AJAX libraries or do you mean virtualization? I personally do not like/use the former - I believe/expect the latter - virtualization - will soon become a common affordable infrastructure for me and for my customers, and I'm starting to plan moving all my development into a virtual PC/PCs running on my ISP site... <<< I feel we should be going in the other direction. More loose binding. >>> What do you mean here? I know a "loose coupling" term from OOP. What do you mean by "loose binding" here? <<< > Maybe these tight times will encourage IT managers > to take another look at MS SQL. >>> You may find me cynical and completely wrong - I suppose IT managers need "fat contracts" to keep their "fat companies" with "bloated staff" afloat, and to have good bonuses for themselves. I think that situation can't be changed even in these tight times because changing that would mean a kind of revolution, and a few people wants a revolution these days as revolutions very often result in much more and very severe issues than they try to solve... Thank you. -- Shamil -----Original Message----- From: "Jim Lawrence" <accessd at shaw.ca> To: "'Salakhetdinov Shamil'" <mcp2004 at mail.ru>,"'Discussion concerning Visual Basic and related programming issues.'" <dba-vb at databaseadvisors.com> Date: Wed, 10 Jun 2009 11:10:29 -0700 Subject: RE: [dba-VB] Problem while publishing ADO.NET Data Service... > Hi Shamil: > > I have never had an issue with ADO.Net technology... but it will be a while > before I can claim professional competence in the product but I believe it > is going the right way... that is browser based. > > My only apprehension is not being able to deliver a web-based service > because a client or completely unknown customer is either using the 'wrong' > OS, browser to deliver/receive services or is simply not patch up enough. > es > I am starting to see a number of web sites that have been 'blocked' because > they are not using the right version of browser IE7 and not IE8 or FF or > Chrome etc... or do not have the appropriate technology installed on their > desktop. > > I have been unable to get some of the Silver-light based code running on > some of my systems even though I have the latest version of Framework and > Silver installed. XP and Vista and even Window7 seem be fine but Server2003 > and Server2008 are another matter... and of course Linux/Mac even running FF > are toast. > > I have starting to see the marrying of browser and desktop and personally I > feel we should be going in the other direction. More loose binding. > > I agree with you completely about the MS tools and most clients are using MS > desktops. In this area, the government and well as the military and local > university/colleges are Oracle/Java. My experiences with project bids have > been quite different. After spending a month developing proof of concept, > proving that MS SQL was a superior product, easier to deploy and at 50% of > the cost of Oracle... the bid was lost on only one point... it wasn't > standard. > > Maybe these tight times will encourage IT managers to take another look at > MS SQL. > > Sorry for going on but some comments seem to need a response. > > Jim > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Salakhetdinov > Shamil > Sent: Tuesday, June 09, 2009 1:43 PM > To: dba-VB > Subject: Re: [dba-VB] Problem while publishing ADO.NET Data Service... > > Hi Jim, > > I'm working for money here - the main purpose for me to learn new MS > technologies is to get a competetive advantage, not fun... > > As far as I see ADO.NET Entity Framework and ADO.NET Data Services are > becoming a kind of "ODBC for 2010ies" - this is an emerging technology but > it's getting all the main database technology players embraced already: > > http://msdn.microsoft.com/en-us/data/dd363565.aspx > > And Silverlight is targeted not only for Windows but for Mac and Linux > also... > > And I'm not going "to marry my customers to me" because of using MS > technologies - the fact is that there are a lot of competing providers in my > area of software development... > > As for Oracle, PHP, Linux - I have never had opportunity to work using them > as it wasn't requested by my customers but a couple of times I have had > opportunity to directly compete with other companies who used Oracle for the > same customer - both times they were "beaten" by my and my colleagues > services, and our "forces" were usually several times less - one time it was > 2 developers/consultants against a company having stuff of 100+ > developers/consultants... > > MS tools are becoming really mature these days, and if properly applied they > allow to "make wonders" even on moderate hardware... > > > 4. The trend is towards 'portability' on cross-platform environments. > In my opinion, nowadays customers first of all need working software ASAP - > and MS development tools help to satisfy those needs/market demands. And I'm > not trying to embrace the whole software development market - I mean custom > software development - business applicationx for small-/middle-size > businesses - here MS tools fit very well IMO - just IMO... > > Thank you. > > -- > Shamil > > > -----Original Message----- > From: "Jim Lawrence" <accessd at shaw.ca> > To: "'Salakhetdinov Shamil'" <mcp2004 at mail.ru>,"'Discussion concerning > Visual Basic and related programming issues.'" <dba-vb at databaseadvisors.com> > Date: Sun, 7 Jun 2009 09:54:42 -0700 > Subject: RE: [dba-VB] Problem while publishing ADO.NET Data Service... > > > Hi Shamil: > > > > I have been watching this thread for a bit and was wondering, if > proceeding > > along this direction is in fact tying the designers and users to a very > > proprietary desktop and set of BE services? > > > > Just to get much of the apps running requires the very latest patches and > > specific downloads, products that are not integrated into the default > > Windows OS. Only the most carefully managed office location would be able > to > > even run this technology. > > > > From my point of view the following is the reality: > > 1. On most sites I am just the contractor and not as the head IT guy. > > 2. Clients want to hire me not marry me. > > 3. Many sites using 'mixed' desktops (Windows/Mac/Linux). > > 4. The trend is towards 'portability' on cross-platform environments. > > > > On the other hand, this is all great fun technology and I have been very > > much enjoying this thread. > > > > Jim > > > > -----Original Message----- > > From: dba-vb-bounces at databaseadvisors.com > > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Salakhetdinov > > Shamil > > Sent: Friday, June 05, 2009 3:53 PM > > To: Discussion concerning Visual Basic and related programming issues. > > Subject: Re: [dba-VB] Problem while publishing ADO.NET Data Service... > > > > Hi All, > > > > I have found a good sample to consume ADO.NET Data Services using > > SIlverLight 2.0 - here it's: > > > > Using Silverlight 2 With ADO.NET Data Services > > > > http://msdn.microsoft.com/en-us/magazine/dd569758.aspx > > > > I will try to make something like that live tomorrow - time to sleep here. > > > > Thank you. > > > > -- > > Shamil > > > > -----Original Message----- > > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > > To: "Discussion concerning Visual Basic and related programming > > issues."<dba-vb at databaseadvisors.com> > > Date: Sat, 06 Jun 2009 02:27:22 +0400 > > Subject: Re: [dba-VB] > > Problem while publishing ADO.NET Data Service... > > > > > Hi All, > > > > > > I have got my SilverLight sample working: > > > > > > http://shamils-4.hosting.parking.ru/sl/NWNetSilverlight.aspx > > > > > > it uses hardcoded Shipper sample table's data. > > > > > > Then I tried to "feed" my Silverlight sample form by using the following > > ADO.NET Data Service: > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > > > > > with code like that (which works well in C# console app): > > > > > > using System; > > > using System.Collections.Generic; > > > > > > using System.Data.Services.Client; > > > using System.ComponentModel; > > > > > > namespace ResearchAndDevelopment.Console > > > { > > > public class Shippers > > > { > > > public class Shipper > > > { > > > public int ID { get; set; } > > > public string Name { get; set; } > > > public string Phone { get; set; } > > > public byte[] RowTimeStamp { get; set; } > > > } > > > > > > private static Uri dataServiceURI = > > > new > > > Uri(@"http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.sv > > c"); > > > public static void ListShippers() > > > { > > > DataServiceContext ctx = > > > new DataServiceContext(dataServiceURI); > > > IEnumerable<Shipper> shippers = ctx.Execute<Shipper>( > > > new Uri("Shipper?$orderby=ID", UriKind.Relative)); > > > foreach (Shipper s in shippers) > > > { > > > System.Console.WriteLine("{0}. {1}", s.ID, s.Name); > > > } > > > } > > > } > > > } > > > > > > But I have found that SilverLight 2.0 doesn't support ADO.NET Data > > Services "out-of-the-box" as straightforward as the above sample code. > This > > sample code doesn't even compile for SilverLight projects because those > > projects can't be used with .NET Framework 3.5. > > > > > > Therefore I'm currently stuck in feeding my SilverLight 2.0 sample with > > ADO.NET Data Services (.NET 3.5 SP1) ATOM feed. > > > > > > Do you have any samples' references explaining how to get ADO.NET Data > > Services Data into SilverLight 2.0 - the most straightforward way? > > > > > > Thank you. > > > > > > -- > > > Shamil > > > > > > > > > > > > -----Original Message----- > > > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > > > To: Mark Breen <marklbreen at gmail.com> > > > Date: Fri, 05 Jun 2009 15:26:41 +0400 > > > Subject: Re: [dba-VB] > > > Problem while publishing ADO.NET Data Service... > > > > > > > Hi Mark, > > > > > > > > I'd add/outline additionally to my previous answer on your posting > that > > ADO.NET Data Services can be used in heavily distributed workflow > > scenarious, with support of distributed transactions etc.etc. Workflows > are > > designed and programmed for such applications using Windows Workflow > > Foundation (WF). "Not data" services are developed using Windows > > Communication Foundation (WCF) (and ADO.NET data services are also driven > by > > WCF services AFAIU)... > > > > > > > > -- > > > > Shamil > > > > > > > > -----Original Message----- > > > > From: Mark Breen <marklbreen at gmail.com> > > > > To: Salakhetdinov Shamil <mcp2004 at mail.ru>, "Discussion concerning > > Visual Basic and related programming issues." > <dba-vb at databaseadvisors.com> > > > > Date: Fri, 5 Jun 2009 09:10:10 +0100 > > > > Subject: Re: [dba-VB] Problem while publishing ADO.NET Data Service... > > > > > > > > > Hello Shamil, > > > > > as you know, I have two servers here in Ireland, would you like to > do > > your > > > > > diagnosis / development of future development work on one of my > > servers ? > > > > > If so, that would be no problem. > > > > > > > > > > I am trying to keep up and read some of the link you posted int he > > last few > > > > > days regarding ADO.NET Data Service. > > > > > > > > > > I am not clear yet about differences between Webservices and > ADO.NET > > Data > > > > > Service , but I expect if I spend some time to google and read, I > can > > become > > > > > clear. > > > > > > > > > > However, I have one question, do you think that this archetectire > is > > > > > without doubt the way we will all connect to our data sources in the > > future? > > > > > How about performance, will it perform as good as current > connections > > such > > > > > as ado and odbc over SQL Server Port? > > > > > > > > > > thanks > > > > > > > > > > Mark > > > > > > > > > > > > > > > > > > > > 2009/6/5 Salakhetdinov Shamil <mcp2004 at mail.ru> > > > > > > > > > > > > > > > > > Hi All, > > > > > > > > > > > > Just wanted to ask one more question on subject issue: I do not > > understand > > > > > > why IIS should be restarted to have one of its Web Site's getting > a > > new > > > > > > setting activated? I mean why it's not enough to stop and start > this > > web > > > > > > site/web application? What am I missing? > > > > > > > > > > > > You can see by goodling how many developers got confused by this > > > > > > "simple"(?) issue - and even stackoverflow doesn't have a clear > > answer, or > > > > > > am I missing it? > > > > > > > > > > > > Thank you. > > > > > > > > > > > > -- > > > > > > Shamil > > > > > > > > > > > > -----Original Message----- > > > > > > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > > > > > > To: "Discussion concerning Visual Basic and related programming > > issues."< > > > > > > dba-vb at databaseadvisors.com> > > > > > > Date: Fri, 05 Jun 2009 02:48:38 +0400 > > > > > > Subject: Re: [dba-VB] > > > > > > Problem while publishing ADO.NET Data Service... > > > > > > > > > > > > > Hi All, > > > > > > > > > > > > > > I have got found one solution for the subject issue: > > > > > > > > > > > > > > Hosted ADO.NET Data Services & Silverlight > > > > > > > > > > > > > > > > http://dvanderboom.wordpress.com/2009/01/07/hosted-adonet-data-services-silv > > erlight/ > > > > > > > > > > > > > > But it doesn't look satisfactory for general case, and it > doesn't > > work > > > > > > yet for my site (waiting for ISP support with IIS server restart - > > maybe > > > > > > that helps as web site restarting doesn't work) - I have got stuck > > here: > > > > > > > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > > > > > > > > > > > > > with a message: > > > > > > > <<< > > > > > > > IIS specified authentication schemes 'Basic, Anonymous', but the > > binding > > > > > > only supports specification of exactly one authentication scheme. > > Valid > > > > > > authentication schemes are Digest, Negotiate, NTLM, Basic, or > > Anonymous. > > > > > > Change the IIS settings so that only a single authentication > scheme > > is used. > > > > > > > >>> > > > > > > > > > > > > > > and as you can see SOAP and WCF sample services do work OK here: > > > > > > > > > > > > > > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/SOAPService.asmx > > > > > > > > > > > > > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/WCFService.svc > > > > > > > > > > > > > > If you know general solution for subject issue that woudl be > very > > > > > > helpful. > > > > > > > > > > > > > > Thank you. > > > > > > > > > > > > > > -- > > > > > > > Shamil > > > > > > > > > > > > > > -----Original Message----- > > > > > > > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > > > > > > > To: "Discussion concerning Visual Basic and related programming > > issues."< > > > > > > dba-vb at databaseadvisors.com> > > > > > > > Date: Thu, 04 Jun 2009 23:06:18 +0400 > > > > > > > Subject: Re: [dba-VB] > > > > > > > Problem while publishing ADO.NET Data Service... > > > > > > > > > > > > > > > Hi All, > > > > > > > > > > > > > > > > I have changed location of NorthwindNety Data Service to: > > > > > > > > > > > > > > > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > > > > > > > > > > > > > > > still no solution for > > > > > > > > > > > > > > > > This collection already contains an address with scheme http. > > There > > > > > > can be at most one address per scheme in this collection. > > > > > > > > Parameter name: item > > > > > > > > > > > > > > > > :( > > > > > > > > > > > > > > > > -- > > > > > > > > Shamil > > > > > > > > > > > > > > > ><<< aaa >>> > > > > > > > _______________________________________________ > > > > > > > dba-VB mailing list > > > > > > > dba-VB at databaseadvisors.com > > > > > > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > > > > > > http://www.databaseadvisors.com > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > > dba-VB mailing list > > > > > > dba-VB at databaseadvisors.com > > > > > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > > > > > http://www.databaseadvisors.com > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > dba-VB mailing list > > > > dba-VB at databaseadvisors.com > > > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > > > http://www.databaseadvisors.com > > > > > > > > > > _______________________________________________ > > > dba-VB mailing list > > > dba-VB at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > > http://www.databaseadvisors.com > > > > > > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From listmaster at databaseadvisors.com Tue Jun 16 12:10:00 2009 From: listmaster at databaseadvisors.com (Bryan Carbonnell) Date: Tue, 16 Jun 2009 13:10:00 -0400 Subject: [dba-VB] Administrivia - Dickford Cohn Donation Fund In-Reply-To: <05bf01c9ee8b$3f2935e0$bd7ba1a0$@net> References: <05bf01c9ee8b$3f2935e0$bd7ba1a0$@net> Message-ID: <e04a6c920906161010t5c4f67a0h5d37b3c158c1fcb9@mail.gmail.com> "We're a family." Members often share that sentiment in their posts. The Database Advisor group is a family. It's obvious in our responses and brief explosions of humor that we care about one another. Dickford Cohn, a member of our family has suffered a great loss. Due to a fire, this member has lost his home and all of his belongings. He recently spent a number of weeks in the hospital, recovering from serious burns. You can read more about his horrific encounter with death in the online article, Hawker dragged from trailer fire. Keys News The DBA Board of Directors recently voted to accept donations from members on Dickford's behalf. The DBA organization will keep nothing for administrative purposes -- we will forward every cent donated to Dickford. >From the time of this message until July 31, 2009, every donation received will go to Dickford Cohn. Make your donation via our existing PayPal account link. If you prefer snail mail, please send donation to the following address: Database Advisors, Inc. 814 Peppard Drive Bel Air, MD 21014 Please make your check or money order payable to Database Advisors, Inc. As always, donations of any kind are not mandatory for membership. John R. Bartow President Database Advisors, Inc. Email: president at databaseadvisors.com From listmaster at databaseadvisors.com Tue Jun 16 12:23:45 2009 From: listmaster at databaseadvisors.com (Bryan Carbonnell) Date: Tue, 16 Jun 2009 13:23:45 -0400 Subject: [dba-VB] Administrivia - Dickford Cohn Donation Fund In-Reply-To: <e04a6c920906161020v40933088q9d2a7c178c776078@mail.gmail.com> References: <05bf01c9ee8b$3f2935e0$bd7ba1a0$@net> <e04a6c920906161020v40933088q9d2a7c178c776078@mail.gmail.com> Message-ID: <e04a6c920906161023t4b81844di73e66629aadb7d6b@mail.gmail.com> RESEND with Links this time. Bryan "We're a family." Members often share that sentiment in their posts. The Database Advisor group is a family. It's obvious in our responses and brief explosions of humor that we care about one another. Dickford Cohn, a member of our family has suffered a great loss. Due to a fire, this member has lost his home and all of his belongings. He recently spent a number of weeks in the hospital, recovering from serious burns. You can read more about his horrific encounter with death in the online article, Hawker dragged from trailer fire. Keys News ( http://keysnews.com/node/13470 ) The DBA Board of Directors recently voted to accept donations from members on Dickford's behalf. The DBA organization will keep nothing for administrative purposes -- we will forward every cent donated to Dickford. >From the time of this message until July 31, 2009, every donation received will go to Dickford Cohn. Make your donation via our existing PayPal account link ( http://www.databaseadvisors.com/donations/dickford.asp ). If you prefer snail mail, please send donation to the following address: Database Advisors, Inc. 814 Peppard Drive Bel Air, MD 21014 Please make your check or money order payable to Database Advisors, Inc. As always, donations of any kind are not mandatory for membership. John R. Bartow President Database Advisors, Inc. Email: president at databaseadvisors.com From ssharkins at gmail.com Fri Jun 19 17:06:09 2009 From: ssharkins at gmail.com (Susan Harkins) Date: Fri, 19 Jun 2009 18:06:09 -0400 Subject: [dba-VB] Updating Toolbox in VB Express Message-ID: <FFC703A9A7AC4064A62B1297439EA475@SusanOne> I've been learning how to create typed datasets and the process itself isn't particularly difficult, but often, I couldn't get VB Express to update like I think it should. For instance, after adding a reference between a form project and a class library project that contained a typed dataset, I couldn't get the dataset to show up in the Add Dataset dialog box -- Under Typed Dataset, the Name control displayed Referenced Datasets. When I clicked that, I got nothing -- an empty list. Today, after adding the typed dataset to a form, I couldn't find the project components in the Toolbox. Running Imports statements in the form forced the issue, but that shouldn't be necessary, should it? Maybe that's the way it's supposed to work, and if so, I just don't get it yet. I looked all over for some kind of Refresh, but didn't find anything. If you have no idea what I'm talking about, just ignore me -- I am most likely using the wrong terminology. Susan H. From Gustav at cactus.dk Sat Jun 20 02:25:37 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Sat, 20 Jun 2009 09:25:37 +0200 Subject: [dba-VB] Updating Toolbox in VB Express Message-ID: <sa3cab1e.005@cactus.dk> Hi Susan Now, I don't what you and Charlotte are up to, but I hope you create some DataSet.xsd files and use the designer to create your datatables. Also, have the box with Data Sources on display; this will contain your datasets, and you can easily drag and drop full tables or single/selected fields to your form. /gustav >>> ssharkins at gmail.com 20-06-2009 00:06:09 >>> I've been learning how to create typed datasets and the process itself isn't particularly difficult, but often, I couldn't get VB Express to update like I think it should. For instance, after adding a reference between a form project and a class library project that contained a typed dataset, I couldn't get the dataset to show up in the Add Dataset dialog box -- Under Typed Dataset, the Name control displayed Referenced Datasets. When I clicked that, I got nothing -- an empty list. Today, after adding the typed dataset to a form, I couldn't find the project components in the Toolbox. Running Imports statements in the form forced the issue, but that shouldn't be necessary, should it? Maybe that's the way it's supposed to work, and if so, I just don't get it yet. I looked all over for some kind of Refresh, but didn't find anything. If you have no idea what I'm talking about, just ignore me -- I am most likely using the wrong terminology. Susan H. From ssharkins at gmail.com Sat Jun 20 08:26:38 2009 From: ssharkins at gmail.com (Susan Harkins) Date: Sat, 20 Jun 2009 09:26:38 -0400 Subject: [dba-VB] Updating Toolbox in VB Express References: <sa3cab1e.005@cactus.dk> Message-ID: <0B2EA9DA4131427CA56A0F66E6249BA3@SusanOne> > Now, I don't what you and Charlotte are up to, but I hope you create some > DataSet.xsd files and use the designer to create your datatables. ========That's exactly what I'm doing. The instructions are simple enough, but VB Express doesn't always behave as I think it should -- so either VB Express is cranky, or... well... we already know about me. :) The Toolbox would not update accordingly. And, I created a reference in one project to the project with the dataset, but the dataset didn't show up in the Add Dataset Typed Dataset list. So, I'm wondering if there's a secret to getting the Toolbox (and other dialogs) to update once you create a dataset -- if they're supposed to be available in the Toolbox, because they weren't until I ran Imports statements explicitly added those objects to the form. I was unable to drag the dataset from the Toolbox, because it wasn't listed. I ran the code, the Toolbox listed it. Now, that's peculair to me. > Also, have the box with Data Sources on display; this will contain your > datasets, and you can easily drag and drop full tables or single/selected > fields to your form. ==========You mean the Solutions Explorer or the Database Explorer? I'm working with both. Susan H. From Gustav at cactus.dk Sat Jun 20 08:53:00 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Sat, 20 Jun 2009 15:53:00 +0200 Subject: [dba-VB] Updating Toolbox in VB Express Message-ID: <sa3d05f7.009@cactus.dk> Hi Susan I haven't worked with a project using a dataset of this kind in another project so I can't tell. No, I mean Data Sources. Usually it is boxed together with Toolbox and Server Explorer as the other tabs. You can click it forward from menu Data. /gustav >>> ssharkins at gmail.com 20-06-2009 15:26:38 >>> > Now, I don't what you and Charlotte are up to, but I hope you create some > DataSet.xsd files and use the designer to create your datatables. ========That's exactly what I'm doing. The instructions are simple enough, but VB Express doesn't always behave as I think it should -- so either VB Express is cranky, or... well... we already know about me. :) The Toolbox would not update accordingly. And, I created a reference in one project to the project with the dataset, but the dataset didn't show up in the Add Dataset Typed Dataset list. So, I'm wondering if there's a secret to getting the Toolbox (and other dialogs) to update once you create a dataset -- if they're supposed to be available in the Toolbox, because they weren't until I ran Imports statements explicitly added those objects to the form. I was unable to drag the dataset from the Toolbox, because it wasn't listed. I ran the code, the Toolbox listed it. Now, that's peculair to me. > Also, have the box with Data Sources on display; this will contain your > datasets, and you can easily drag and drop full tables or single/selected > fields to your form. ==========You mean the Solutions Explorer or the Database Explorer? I'm working with both. Susan H. From ssharkins at gmail.com Sat Jun 20 09:06:41 2009 From: ssharkins at gmail.com (Susan Harkins) Date: Sat, 20 Jun 2009 10:06:41 -0400 Subject: [dba-VB] Updating Toolbox in VB Express References: <sa3d05f7.009@cactus.dk> Message-ID: <65F35549A3C44BE98D76EE725D78B7DC@SusanOne> > No, I mean Data Sources. Usually it is boxed together with Toolbox and > Server Explorer as the other tabs. You can click it forward from menu > Data. ====Yes, I'm familiar with Data Sources too. Thanks Gustav! Susan H. From ssharkins at gmail.com Mon Jun 22 09:03:52 2009 From: ssharkins at gmail.com (Susan Harkins) Date: Mon, 22 Jun 2009 10:03:52 -0400 Subject: [dba-VB] Looking for SAP - HR Payroll Analyst Message-ID: <C7288DAF510B40E499DB1349F6554BDB@SusanOne> If you have the skills to fill this position or know someone who does, please send me a resume. Susan H. From shamil at smsconsulting.spb.ru Fri Jun 26 15:10:55 2009 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sat, 27 Jun 2009 00:10:55 +0400 Subject: [dba-VB] ASP.NET MVC Framework Message-ID: <004101c9f69a$37a115b0$a6e34110$@spb.ru> Hi All, I'm watching through ASP.NET MVC Framework web casts now "ASP.NET MVC Talks" http://www.asp.net/learn/mvc-videos/#MVCStorefrontStarterKit This technology looks interesting. I will probably try to use it in one small application for my new customer. Have anybody here used ASP.NET MVC Framework in application/sample development? Thank you. -- Shamil From Gustav at cactus.dk Fri Jun 26 16:49:06 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 26 Jun 2009 23:49:06 +0200 Subject: [dba-VB] ASP.NET MVC Framework Message-ID: <sa455e89.029@cactus.dk> Hi Shamil Not me, but I have studied it a bit because the separation of the design in the Model, View and Control parts seems so logical. The fascinating aspect is if it is possible or feasible to transfer it from web design to Windows form design. Now, the Northwind.NET project doesn't contain much "model" work, but it could be an option to convert it to follow MVC design ... /gustav >>> shamil at smsconsulting.spb.ru 26-06-2009 22:10 >>> Hi All, I'm watching through ASP.NET MVC Framework web casts now "ASP.NET MVC Talks" http://www.asp.net/learn/mvc-videos/#MVCStorefrontStarterKit This technology looks interesting. I will probably try to use it in one small application for my new customer. Have anybody here used ASP.NET MVC Framework in application/sample development? Thank you. -- Shamil From shamil at smsconsulting.spb.ru Fri Jun 26 18:15:49 2009 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sat, 27 Jun 2009 03:15:49 +0400 Subject: [dba-VB] ASP.NET MVC Framework In-Reply-To: <sa455e89.029@cactus.dk> References: <sa455e89.029@cactus.dk> Message-ID: <004e01c9f6b4$0be716d0$23b54470$@spb.ru> <<< Now, the Northwind.NET project doesn't contain much "model" work, but it could be an option to convert it to follow MVC design ... >>> Yes, I thought we could try to do that - let's try to gather a team here? SilverLight project didn't get good feedback - it could happen that ASP.NET MVC based project would be more interesting 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: Saturday, June 27, 2009 1:49 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] ASP.NET MVC Framework Hi Shamil Not me, but I have studied it a bit because the separation of the design in the Model, View and Control parts seems so logical. The fascinating aspect is if it is possible or feasible to transfer it from web design to Windows form design. Now, the Northwind.NET project doesn't contain much "model" work, but it could be an option to convert it to follow MVC design ... /gustav >>> shamil at smsconsulting.spb.ru 26-06-2009 22:10 >>> Hi All, I'm watching through ASP.NET MVC Framework web casts now "ASP.NET MVC Talks" http://www.asp.net/learn/mvc-videos/#MVCStorefrontStarterKit This technology looks interesting. I will probably try to use it in one small application for my new customer. Have anybody here used ASP.NET MVC Framework in application/sample development? Thank you. -- Shamil _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com __________ Information from ESET NOD32 Antivirus, version of virus signature database 4193 (20090626) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru __________ Information from ESET NOD32 Antivirus, version of virus signature database 4193 (20090626) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru From shamil at smsconsulting.spb.ru Sat Jun 27 05:56:58 2009 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sat, 27 Jun 2009 14:56:58 +0400 Subject: [dba-VB] ASP.NET MVC Framework In-Reply-To: <sa455e89.029@cactus.dk> References: <sa455e89.029@cactus.dk> Message-ID: <000601c9f715$ff3d9690$fdb8c3b0$@spb.ru> Hi Gustav, I have made sample MVC project - just generated from standard template in VS2008 SP1. It works well locally. I have put it here on Internet: http://shamils-4.hosting.parking.ru/myMvcApplication1/ As you can find it starts OK but links do not work - my guess there is something wrong with those SEO links routing to actual .aspx page - haven't you seen anywhere where should I look in my MVC sample project to fix the issue? (it may also happen that some special settings should be done on ASP.Net server site for that SEO links routing to work properly. All in all MVC programming promise to be rather advanced activity (there are no prebuilt server side controls as when one uses ASP.NET WebForms etc.) but it should be worth the learning curve efforts? - it should become something like "Ruby On Rails" in the (near?) future releases? 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: Saturday, June 27, 2009 1:49 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] ASP.NET MVC Framework Hi Shamil Not me, but I have studied it a bit because the separation of the design in the Model, View and Control parts seems so logical. The fascinating aspect is if it is possible or feasible to transfer it from web design to Windows form design. Now, the Northwind.NET project doesn't contain much "model" work, but it could be an option to convert it to follow MVC design ... /gustav >>> shamil at smsconsulting.spb.ru 26-06-2009 22:10 >>> Hi All, I'm watching through ASP.NET MVC Framework web casts now "ASP.NET MVC Talks" http://www.asp.net/learn/mvc-videos/#MVCStorefrontStarterKit This technology looks interesting. I will probably try to use it in one small application for my new customer. Have anybody here used ASP.NET MVC Framework in application/sample development? Thank you. -- Shamil _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com __________ Information from ESET NOD32 Antivirus, version of virus signature database 4193 (20090626) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru __________ Information from ESET NOD32 Antivirus, version of virus signature database 4193 (20090626) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru From Gustav at cactus.dk Sat Jun 27 16:27:50 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Sat, 27 Jun 2009 23:27:50 +0200 Subject: [dba-VB] ASP.NET MVC Framework Message-ID: <sa46aafe.033@cactus.dk> Hi Shamil Great! But as you, I can open the first page, that's all. Some MVC deployment guide must exist somewhere ... this weekend I'm busy with construction work at our house so I don't have much time looking into this before Monday or Tuesday. /gustav >>> shamil at smsconsulting.spb.ru 27-06-2009 12:56 >>> Hi Gustav, I have made sample MVC project - just generated from standard template in VS2008 SP1. It works well locally. I have put it here on Internet: http://shamils-4.hosting.parking.ru/myMvcApplication1/ As you can find it starts OK but links do not work - my guess there is something wrong with those SEO links routing to actual .aspx page - haven't you seen anywhere where should I look in my MVC sample project to fix the issue? (it may also happen that some special settings should be done on ASP.Net server site for that SEO links routing to work properly. All in all MVC programming promise to be rather advanced activity (there are no prebuilt server side controls as when one uses ASP.NET WebForms etc.) but it should be worth the learning curve efforts? - it should become something like "Ruby On Rails" in the (near?) future releases? 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: Saturday, June 27, 2009 1:49 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] ASP.NET MVC Framework Hi Shamil Not me, but I have studied it a bit because the separation of the design in the Model, View and Control parts seems so logical. The fascinating aspect is if it is possible or feasible to transfer it from web design to Windows form design. Now, the Northwind.NET project doesn't contain much "model" work, but it could be an option to convert it to follow MVC design ... /gustav >>> shamil at smsconsulting.spb.ru 26-06-2009 22:10 >>> Hi All, I'm watching through ASP.NET MVC Framework web casts now "ASP.NET MVC Talks" http://www.asp.net/learn/mvc-videos/#MVCStorefrontStarterKit This technology looks interesting. I will probably try to use it in one small application for my new customer. Have anybody here used ASP.NET MVC Framework in application/sample development? Thank you. -- Shamil From shamil at smsconsulting.spb.ru Mon Jun 29 05:44:25 2009 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Mon, 29 Jun 2009 14:44:25 +0400 Subject: [dba-VB] ASP.NET MVC Framework In-Reply-To: <sa46aafe.033@cactus.dk> References: <sa46aafe.033@cactus.dk> Message-ID: <000b01c9f8a6$93715ef0$ba541cd0$@spb.ru> Hi Gustav and all, I have got read "ASP.NET MVC 1.0 Quickly" By Maarten Balliauw over weekend. Good book for starters with ASP.NET MVC 1.0 as I'm. As for ASP.NET MVC 1.0 - after reading the above book I decided to wait what will come in ASP.NET MVC 2.0: ASP.NET MVC 1.0 is built on top of ASP.NET and I'm now under impression now that it's more a "marketing tool"/R&D project than a robust framework for application development - at least developing web pages to present and edit parent/detail relationships/data promise to be a real PITA with ASP.NET MVC 1.0. ASP.NET MVC 1.0 is good for simple sites as http://stackoverflow.com/ is. One can mix ASP.NET WebForms with ASP.NET MVC 1.0 within one web application but I must say I do not see strong reasons to do that if one has good working knowledge of ASP.NET 3.5. ... I can be missing something... What are your opinions? Thank you. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Sunday, June 28, 2009 1:28 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] ASP.NET MVC Framework Hi Shamil Great! But as you, I can open the first page, that's all. Some MVC deployment guide must exist somewhere ... this weekend I'm busy with construction work at our house so I don't have much time looking into this before Monday or Tuesday. /gustav >>> shamil at smsconsulting.spb.ru 27-06-2009 12:56 >>> Hi Gustav, I have made sample MVC project - just generated from standard template in VS2008 SP1. It works well locally. I have put it here on Internet: http://shamils-4.hosting.parking.ru/myMvcApplication1/ As you can find it starts OK but links do not work - my guess there is something wrong with those SEO links routing to actual .aspx page - haven't you seen anywhere where should I look in my MVC sample project to fix the issue? (it may also happen that some special settings should be done on ASP.Net server site for that SEO links routing to work properly. All in all MVC programming promise to be rather advanced activity (there are no prebuilt server side controls as when one uses ASP.NET WebForms etc.) but it should be worth the learning curve efforts? - it should become something like "Ruby On Rails" in the (near?) future releases? 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: Saturday, June 27, 2009 1:49 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] ASP.NET MVC Framework Hi Shamil Not me, but I have studied it a bit because the separation of the design in the Model, View and Control parts seems so logical. The fascinating aspect is if it is possible or feasible to transfer it from web design to Windows form design. Now, the Northwind.NET project doesn't contain much "model" work, but it could be an option to convert it to follow MVC design ... /gustav >>> shamil at smsconsulting.spb.ru 26-06-2009 22:10 >>> Hi All, I'm watching through ASP.NET MVC Framework web casts now "ASP.NET MVC Talks" http://www.asp.net/learn/mvc-videos/#MVCStorefrontStarterKit This technology looks interesting. I will probably try to use it in one small application for my new customer. Have anybody here used ASP.NET MVC Framework in application/sample development? Thank you. -- Shamil _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com __________ Information from ESET NOD32 Antivirus, version of virus signature database 4194 (20090628) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru __________ Information from ESET NOD32 Antivirus, version of virus signature database 4195 (20090629) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru From ssharkins at gmail.com Mon Jun 29 09:26:36 2009 From: ssharkins at gmail.com (Susan Harkins) Date: Mon, 29 Jun 2009 10:26:36 -0400 Subject: [dba-VB] Article from Gustav Message-ID: <4BB427CF4F6549BD96A293618675E1FE@SusanOne> <http://www.devx.com:80/vb/Article/42242/0/page/1> I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so proud... yet another ones passes safely to single author status. :) Susan H. From max.wanadoo at gmail.com Mon Jun 29 10:38:50 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 29 Jun 2009 16:38:50 +0100 Subject: [dba-VB] Article from Gustav In-Reply-To: <4BB427CF4F6549BD96A293618675E1FE@SusanOne> References: <4BB427CF4F6549BD96A293618675E1FE@SusanOne> Message-ID: <4a48e00e.0707d00a.5973.0ded@mx.google.com> Hmmmm, might be worth a download in that case... Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: 29 June 2009 15:27 To: VBLIst Subject: [dba-VB] Article from Gustav <http://www.devx.com:80/vb/Article/42242/0/page/1> I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so proud... yet another ones passes safely to single author status. :) Susan H. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From ssharkins at gmail.com Mon Jun 29 10:47:13 2009 From: ssharkins at gmail.com (Susan Harkins) Date: Mon, 29 Jun 2009 11:47:13 -0400 Subject: [dba-VB] Article from Gustav References: <4BB427CF4F6549BD96A293618675E1FE@SusanOne> <4a48e00e.0707d00a.5973.0ded@mx.google.com> Message-ID: <4019EE1CA03549269167437E82A3E175@SusanOne> You know, I can create a rule and ignore you. ;) Susan H. > Hmmmm, might be worth a download in that case... > > <http://www.devx.com:80/vb/Article/42242/0/page/1> > > I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so > proud... yet another ones passes safely to single author status. :) From max.wanadoo at gmail.com Mon Jun 29 10:49:28 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 29 Jun 2009 16:49:28 +0100 Subject: [dba-VB] Article from Gustav In-Reply-To: <4019EE1CA03549269167437E82A3E175@SusanOne> References: <4BB427CF4F6549BD96A293618675E1FE@SusanOne> <4a48e00e.0707d00a.5973.0ded@mx.google.com> <4019EE1CA03549269167437E82A3E175@SusanOne> Message-ID: <4a48e28e.0506d00a.3751.0cd0@mx.google.com> You love me too much.... Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: 29 June 2009 16:47 To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Article from Gustav You know, I can create a rule and ignore you. ;) Susan H. > Hmmmm, might be worth a download in that case... > > <http://www.devx.com:80/vb/Article/42242/0/page/1> > > I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so > proud... yet another ones passes safely to single author status. :) _______________________________________________ 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 Jun 29 10:52:39 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 29 Jun 2009 11:52:39 -0400 Subject: [dba-VB] Syslogs In-Reply-To: <4BB427CF4F6549BD96A293618675E1FE@SusanOne> References: <4BB427CF4F6549BD96A293618675E1FE@SusanOne> Message-ID: <4A48E347.9090908@colbyconsulting.com> Hmm... Looks quite cool. My mind is a raging torrent, flooded with rivulets of thought cascading into a waterfall of creative alternatives. Now... how do we determine the IP address of every machine using an Access application on the local LAN? John W. Colby www.ColbyConsulting.com Susan Harkins wrote: > <http://www.devx.com:80/vb/Article/42242/0/page/1> > > I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so > proud... yet another ones passes safely to single author status. :) > > Susan H. > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From Gustav at cactus.dk Mon Jun 29 10:55:15 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 29 Jun 2009 17:55:15 +0200 Subject: [dba-VB] ASP.NET MVC Framework Message-ID: <sa490025.061@cactus.dk> Hi Shamil Thanks for the review. Very useful. No, I don't think you have missed anything. It is my impression that using MVC requires a lot and if you can top that with some real challenges for data handling, I think I'll allocate my limited resources elsewhere. /gustav >>> shamil at smsconsulting.spb.ru 29-06-2009 12:44 >>> Hi Gustav and all, I have got read "ASP.NET MVC 1.0 Quickly" By Maarten Balliauw over weekend. Good book for starters with ASP.NET MVC 1.0 as I'm. As for ASP.NET MVC 1.0 - after reading the above book I decided to wait what will come in ASP.NET MVC 2.0: ASP.NET MVC 1.0 is built on top of ASP.NET and I'm now under impression now that it's more a "marketing tool"/R&D project than a robust framework for application development - at least developing web pages to present and edit parent/detail relationships/data promise to be a real PITA with ASP.NET MVC 1.0. ASP.NET MVC 1.0 is good for simple sites as http://stackoverflow.com/ is. One can mix ASP.NET WebForms with ASP.NET MVC 1.0 within one web application but I must say I do not see strong reasons to do that if one has good working knowledge of ASP.NET 3.5. ... I can be missing something... What are your opinions? Thank you. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Sunday, June 28, 2009 1:28 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] ASP.NET MVC Framework Hi Shamil Great! But as you, I can open the first page, that's all. Some MVC deployment guide must exist somewhere ... this weekend I'm busy with construction work at our house so I don't have much time looking into this before Monday or Tuesday. /gustav >>> shamil at smsconsulting.spb.ru 27-06-2009 12:56 >>> Hi Gustav, I have made sample MVC project - just generated from standard template in VS2008 SP1. It works well locally. I have put it here on Internet: http://shamils-4.hosting.parking.ru/myMvcApplication1/ As you can find it starts OK but links do not work - my guess there is something wrong with those SEO links routing to actual .aspx page - haven't you seen anywhere where should I look in my MVC sample project to fix the issue? (it may also happen that some special settings should be done on ASP.Net server site for that SEO links routing to work properly. All in all MVC programming promise to be rather advanced activity (there are no prebuilt server side controls as when one uses ASP.NET WebForms etc.) but it should be worth the learning curve efforts? - it should become something like "Ruby On Rails" in the (near?) future releases? 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: Saturday, June 27, 2009 1:49 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] ASP.NET MVC Framework Hi Shamil Not me, but I have studied it a bit because the separation of the design in the Model, View and Control parts seems so logical. The fascinating aspect is if it is possible or feasible to transfer it from web design to Windows form design. Now, the Northwind.NET project doesn't contain much "model" work, but it could be an option to convert it to follow MVC design ... /gustav >>> shamil at smsconsulting.spb.ru 26-06-2009 22:10 >>> Hi All, I'm watching through ASP.NET MVC Framework web casts now "ASP.NET MVC Talks" http://www.asp.net/learn/mvc-videos/#MVCStorefrontStarterKit This technology looks interesting. I will probably try to use it in one small application for my new customer. Have anybody here used ASP.NET MVC Framework in application/sample development? Thank you. -- Shamil From ssharkins at gmail.com Mon Jun 29 10:57:31 2009 From: ssharkins at gmail.com (Susan Harkins) Date: Mon, 29 Jun 2009 11:57:31 -0400 Subject: [dba-VB] Syslogs References: <4BB427CF4F6549BD96A293618675E1FE@SusanOne> <4A48E347.9090908@colbyconsulting.com> Message-ID: <239A59C13E2B49DB9B1CC36B2D3FC947@SusanOne> > My mind is a raging torrent, flooded with rivulets of thought cascading > into a waterfall of creative > alternatives. =======That does explain quite a lot. ;) Susan H. From max.wanadoo at gmail.com Mon Jun 29 11:00:08 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 29 Jun 2009 17:00:08 +0100 Subject: [dba-VB] Syslogs In-Reply-To: <239A59C13E2B49DB9B1CC36B2D3FC947@SusanOne> References: <4BB427CF4F6549BD96A293618675E1FE@SusanOne> <4A48E347.9090908@colbyconsulting.com> <239A59C13E2B49DB9B1CC36B2D3FC947@SusanOne> Message-ID: <4a48e50d.1c05d00a.5a17.6c08@mx.google.com> It tells me that he has got Fortune Cookies switch on.... Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: 29 June 2009 16:58 To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Syslogs > My mind is a raging torrent, flooded with rivulets of thought cascading > into a waterfall of creative > alternatives. =======That does explain quite a lot. ;) Susan H. _______________________________________________ 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 Jun 29 11:08:21 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 29 Jun 2009 12:08:21 -0400 Subject: [dba-VB] Syslogs In-Reply-To: <4a48e50d.1c05d00a.5a17.6c08@mx.google.com> References: <4BB427CF4F6549BD96A293618675E1FE@SusanOne> <4A48E347.9090908@colbyconsulting.com> <239A59C13E2B49DB9B1CC36B2D3FC947@SusanOne> <4a48e50d.1c05d00a.5a17.6c08@mx.google.com> Message-ID: <4A48E6F5.8090000@colbyconsulting.com> A few too many passes through Blazing Saddles. ;) John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > It tells me that he has got Fortune Cookies switch on.... > > Max > > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Susan Harkins > Sent: 29 June 2009 16:58 > To: Discussion concerning Visual Basic and related programming issues. > Subject: Re: [dba-VB] Syslogs > >> My mind is a raging torrent, flooded with rivulets of thought cascading >> into a waterfall of creative >> alternatives. > > =======That does explain quite a lot. ;) > > Susan H. > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From max.wanadoo at gmail.com Mon Jun 29 11:12:01 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 29 Jun 2009 17:12:01 +0100 Subject: [dba-VB] Syslogs In-Reply-To: <4A48E6F5.8090000@colbyconsulting.com> References: <4BB427CF4F6549BD96A293618675E1FE@SusanOne> <4A48E347.9090908@colbyconsulting.com> <239A59C13E2B49DB9B1CC36B2D3FC947@SusanOne> <4a48e50d.1c05d00a.5a17.6c08@mx.google.com> <4A48E6F5.8090000@colbyconsulting.com> Message-ID: <4a48e7d6.0707d00a.5973.188c@mx.google.com> Try vodka...same effect...less typing ability... Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: 29 June 2009 17:08 To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Syslogs A few too many passes through Blazing Saddles. ;) John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > It tells me that he has got Fortune Cookies switch on.... > > Max > > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Susan Harkins > Sent: 29 June 2009 16:58 > To: Discussion concerning Visual Basic and related programming issues. > Subject: Re: [dba-VB] Syslogs > >> My mind is a raging torrent, flooded with rivulets of thought cascading >> into a waterfall of creative >> alternatives. > > =======That does explain quite a lot. ;) > > Susan H. > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From max.wanadoo at gmail.com Mon Jun 29 11:14:30 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 29 Jun 2009 17:14:30 +0100 Subject: [dba-VB] Syslogs In-Reply-To: <4A48E347.9090908@colbyconsulting.com> References: <4BB427CF4F6549BD96A293618675E1FE@SusanOne> <4A48E347.9090908@colbyconsulting.com> Message-ID: <4a48e86a.1c05d00a.538f.13fb@mx.google.com> Gustav, does this work under Access VBA? Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: 29 June 2009 16:53 To: Discussion concerning Visual Basic and related programming issues. Subject: [dba-VB] Syslogs Hmm... Looks quite cool. My mind is a raging torrent, flooded with rivulets of thought cascading into a waterfall of creative alternatives. Now... how do we determine the IP address of every machine using an Access application on the local LAN? John W. Colby www.ColbyConsulting.com Susan Harkins wrote: > <http://www.devx.com:80/vb/Article/42242/0/page/1> > > I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so > proud... yet another ones passes safely to single author status. :) > > Susan H. > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From max.wanadoo at gmail.com Mon Jun 29 11:19:08 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 29 Jun 2009 17:19:08 +0100 Subject: [dba-VB] Syslogs In-Reply-To: <4A48E347.9090908@colbyconsulting.com> References: <4BB427CF4F6549BD96A293618675E1FE@SusanOne> <4A48E347.9090908@colbyconsulting.com> Message-ID: <4a48e982.1701d00a.388e.0b31@mx.google.com> Do you mean IP address without having to go to the other workstation. If you just want to know what the IP address is, use VNC or RealVNC then you can just hover the mouse over the system tray icon and it will tell you the ip address. Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: 29 June 2009 16:53 To: Discussion concerning Visual Basic and related programming issues. Subject: [dba-VB] Syslogs Hmm... Looks quite cool. My mind is a raging torrent, flooded with rivulets of thought cascading into a waterfall of creative alternatives. Now... how do we determine the IP address of every machine using an Access application on the local LAN? John W. Colby www.ColbyConsulting.com Susan Harkins wrote: > <http://www.devx.com:80/vb/Article/42242/0/page/1> > > I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so > proud... yet another ones passes safely to single author status. :) > > Susan H. > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ 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 Jun 29 11:24:47 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 29 Jun 2009 18:24:47 +0200 Subject: [dba-VB] Article from Gustav Message-ID: <sa4906f9.063@cactus.dk> Hi Susan So you are counting us? I just thought you were lazy and this stuff was too nerded. So I was in trouble ... until I figured out I could take one of our previous articles and use as a skeleton. It worked out. Thanks! /gustav >>> ssharkins at gmail.com 29-06-2009 16:26 >>> <http://www.devx.com:80/vb/Article/42242/0/page/1> I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so proud... yet another ones passes safely to single author status. :) Susan H. From Gustav at cactus.dk Mon Jun 29 11:25:37 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 29 Jun 2009 18:25:37 +0200 Subject: [dba-VB] Syslogs Message-ID: <sa490735.064@cactus.dk> Hi John Ask the application to send you a syslog message! Then you can read the sender address or hostname. /gustav >>> jwcolby at colbyconsulting.com 29-06-2009 17:52 >>> Hmm... Looks quite cool. My mind is a raging torrent, flooded with rivulets of thought cascading into a waterfall of creative alternatives. Now... how do we determine the IP address of every machine using an Access application on the local LAN? John W. Colby www.ColbyConsulting.com Susan Harkins wrote: > <http://www.devx.com:80/vb/Article/42242/0/page/1> > > I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so > proud... yet another ones passes safely to single author status. :) > > Susan H. From jwcolby at colbyconsulting.com Mon Jun 29 11:27:55 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 29 Jun 2009 12:27:55 -0400 Subject: [dba-VB] Syslogs In-Reply-To: <4a48e982.1701d00a.388e.0b31@mx.google.com> References: <4BB427CF4F6549BD96A293618675E1FE@SusanOne> <4A48E347.9090908@colbyconsulting.com> <4a48e982.1701d00a.388e.0b31@mx.google.com> Message-ID: <4A48EB8B.7090901@colbyconsulting.com> No, I want the Access workstations to log their IP address in a table as Access opens so that I can read who is available to send messages to. The limitation of this kind of code is that you have to know an IP address. John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > Do you mean IP address without having to go to the other workstation. > > If you just want to know what the IP address is, use VNC or RealVNC then you > can just hover the mouse over the system tray icon and it will tell you the > ip address. > > Max > > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: 29 June 2009 16:53 > To: Discussion concerning Visual Basic and related programming issues. > Subject: [dba-VB] Syslogs > > Hmm... > > Looks quite cool. > > My mind is a raging torrent, flooded with rivulets of thought cascading into > a waterfall of creative > alternatives. > > Now... how do we determine the IP address of every machine using an Access > application on the local LAN? > > John W. Colby > www.ColbyConsulting.com > > > Susan Harkins wrote: >> <http://www.devx.com:80/vb/Article/42242/0/page/1> >> >> I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so >> proud... yet another ones passes safely to single author status. :) >> >> Susan H. >> >> _______________________________________________ >> dba-VB mailing list >> dba-VB at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/dba-vb >> http://www.databaseadvisors.com >> >> > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From max.wanadoo at gmail.com Mon Jun 29 11:29:19 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 29 Jun 2009 17:29:19 +0100 Subject: [dba-VB] Article from Gustav In-Reply-To: <sa4906f9.063@cactus.dk> References: <sa4906f9.063@cactus.dk> Message-ID: <4a48ebe4.0a04d00a.07b4.1a0b@mx.google.com> See Susan....Give children fish and they will be fed for the day...teach the children how to fish and they will be fed for ever.. Ps. And you were going to Rule-Me! Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 29 June 2009 17:25 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Article from Gustav Hi Susan So you are counting us? I just thought you were lazy and this stuff was too nerded. So I was in trouble ... until I figured out I could take one of our previous articles and use as a skeleton. It worked out. Thanks! /gustav >>> ssharkins at gmail.com 29-06-2009 16:26 >>> <http://www.devx.com:80/vb/Article/42242/0/page/1> I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so proud... yet another ones passes safely to single author status. :) Susan H. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From ssharkins at gmail.com Mon Jun 29 11:30:37 2009 From: ssharkins at gmail.com (Susan Harkins) Date: Mon, 29 Jun 2009 12:30:37 -0400 Subject: [dba-VB] Article from Gustav References: <sa4906f9.063@cactus.dk> Message-ID: <8291425A3CE9489A95F93FA6E0A2416E@SusanOne> > > So you are counting us? I just thought you were lazy and this stuff was > too nerded. ==========Counting us? Did I lose something in the translation? :) > So I was in trouble ... until I figured out I could take one of our > previous articles and use as a skeleton. > It worked out. Thanks! ==========That's all I do! ;) Susan H. From max.wanadoo at gmail.com Mon Jun 29 11:35:20 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 29 Jun 2009 17:35:20 +0100 Subject: [dba-VB] Syslogs In-Reply-To: <4A48EB8B.7090901@colbyconsulting.com> References: <4BB427CF4F6549BD96A293618675E1FE@SusanOne> <4A48E347.9090908@colbyconsulting.com> <4a48e982.1701d00a.388e.0b31@mx.google.com> <4A48EB8B.7090901@colbyconsulting.com> Message-ID: <4a48ed4e.0702d00a.3f5a.5e39@mx.google.com> Hmmm, ok I will think about that...but when you say "..so that I can..." do you mean your application or you as an individual? What I am getting at is, why not just send it to everyone? Why cherry-pick individuals? EG; on one of my apps, I have, oh, all sorts of messages flying around, but on each FE there is a timer running on the main menu and periodically it will go to see if there are any messages in the table which handles this sorta stuff. IF so, the user has a pop up with the option to Sleep for x mins (default to 15) before it reminds again. It will never go away until the user has read it, unless you (the originator) says it can time out. Sorta stuff...if you can get my drift. Don't need to send system messages. It is handled with the app. Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: 29 June 2009 17:28 To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Syslogs No, I want the Access workstations to log their IP address in a table as Access opens so that I can read who is available to send messages to. The limitation of this kind of code is that you have to know an IP address. John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > Do you mean IP address without having to go to the other workstation. > > If you just want to know what the IP address is, use VNC or RealVNC then you > can just hover the mouse over the system tray icon and it will tell you the > ip address. > > Max > > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: 29 June 2009 16:53 > To: Discussion concerning Visual Basic and related programming issues. > Subject: [dba-VB] Syslogs > > Hmm... > > Looks quite cool. > > My mind is a raging torrent, flooded with rivulets of thought cascading into > a waterfall of creative > alternatives. > > Now... how do we determine the IP address of every machine using an Access > application on the local LAN? > > John W. Colby > www.ColbyConsulting.com > > > Susan Harkins wrote: >> <http://www.devx.com:80/vb/Article/42242/0/page/1> >> >> I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so >> proud... yet another ones passes safely to single author status. :) >> >> Susan H. >> >> _______________________________________________ >> dba-VB mailing list >> dba-VB at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/dba-vb >> http://www.databaseadvisors.com >> >> > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Mon Jun 29 11:37:31 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 29 Jun 2009 12:37:31 -0400 Subject: [dba-VB] Syslogs In-Reply-To: <sa490735.064@cactus.dk> References: <sa490735.064@cactus.dk> Message-ID: <4A48EDCB.50706@colbyconsulting.com> LOL, but you still have to know your own IP address. We got into this one time, with Hamachi, VMs, multiple NICS etc. it is difficult to determine what my own IP address is. John W. Colby www.ColbyConsulting.com Gustav Brock wrote: > Hi John > > Ask the application to send you a syslog message! > Then you can read the sender address or hostname. > > /gustav > > >>>> jwcolby at colbyconsulting.com 29-06-2009 17:52 >>> > Hmm... > > Looks quite cool. > > My mind is a raging torrent, flooded with rivulets of thought cascading into a waterfall of creative > alternatives. > > Now... how do we determine the IP address of every machine using an Access application on the local LAN? > > John W. Colby > www.ColbyConsulting.com > > > Susan Harkins wrote: >> <http://www.devx.com:80/vb/Article/42242/0/page/1> >> >> I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so >> proud... yet another ones passes safely to single author status. :) >> >> Susan H. > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From Gustav at cactus.dk Mon Jun 29 11:37:29 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 29 Jun 2009 18:37:29 +0200 Subject: [dba-VB] Syslogs Message-ID: <sa490a08.065@cactus.dk> Hi Susan, Max et al This article: Create a Syslog Sender/Receiver Using the MS Winsock Control <quote> With the Microsoft WinSock Control and a few coding tricks, you can use Access as a high-performance syslog sender, receiver, and logger. </quote> _is_ in VBA! I have no idea why it was put in the VB section. In fact, given the current "discussion" on Access 2007, it is just about the only project I have made in Access 2007. I started out with this several years ago with Access 97 for fun, but when I recently got the chance to write and polish it up, I felt it had to be finished in A2007. If Steve is looking for "fans of the ribbon", don't count me in - I really looked for features or benefits of the ribbon but found none, sorry. /gustav >>> max.wanadoo at gmail.com 29-06-2009 18:14 >>> Gustav, does this work under Access VBA? Max -----Original Message----- Susan Harkins wrote: > <http://www.devx.com:80/vb/Article/42242/0/page/1> > > I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so > proud... yet another ones passes safely to single author status. :) > > Susan H. From andy at minstersystems.co.uk Mon Jun 29 11:40:56 2009 From: andy at minstersystems.co.uk (Andy Lacey) Date: Mon, 29 Jun 2009 17:40:56 +0100 Subject: [dba-VB] Article from Gustav In-Reply-To: <4BB427CF4F6549BD96A293618675E1FE@SusanOne> Message-ID: <B9B899E33A7F4B1285F004349D8FBF34@MINSTER> Congratulations....to both of you. andy -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: 29 June 2009 15:27 To: VBLIst Subject: [dba-VB] Article from Gustav <http://www.devx.com:80/vb/Article/42242/0/page/1> I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so proud... yet another ones passes safely to single author status. :) Susan H. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From max.wanadoo at gmail.com Mon Jun 29 11:51:50 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 29 Jun 2009 17:51:50 +0100 Subject: [dba-VB] Syslogs In-Reply-To: <sa490a08.065@cactus.dk> References: <sa490a08.065@cactus.dk> Message-ID: <4a48f12c.1818d00a.6a44.1a3d@mx.google.com> Run it in A2007K and opened the Demo form to get this error: .Protocol = sckUDPProtocol Run time error 438 Object doesn't support this property or method. Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 29 June 2009 17:37 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Syslogs Hi Susan, Max et al This article: Create a Syslog Sender/Receiver Using the MS Winsock Control <quote> With the Microsoft WinSock Control and a few coding tricks, you can use Access as a high-performance syslog sender, receiver, and logger. </quote> _is_ in VBA! I have no idea why it was put in the VB section. In fact, given the current "discussion" on Access 2007, it is just about the only project I have made in Access 2007. I started out with this several years ago with Access 97 for fun, but when I recently got the chance to write and polish it up, I felt it had to be finished in A2007. If Steve is looking for "fans of the ribbon", don't count me in - I really looked for features or benefits of the ribbon but found none, sorry. /gustav >>> max.wanadoo at gmail.com 29-06-2009 18:14 >>> Gustav, does this work under Access VBA? Max -----Original Message----- Susan Harkins wrote: > <http://www.devx.com:80/vb/Article/42242/0/page/1> > > I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so > proud... yet another ones passes safely to single author status. :) > > Susan H. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Mon Jun 29 11:55:54 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 29 Jun 2009 12:55:54 -0400 Subject: [dba-VB] Syslogs In-Reply-To: <4a48ed4e.0702d00a.3f5a.5e39@mx.google.com> References: <4BB427CF4F6549BD96A293618675E1FE@SusanOne> <4A48E347.9090908@colbyconsulting.com> <4a48e982.1701d00a.388e.0b31@mx.google.com> <4A48EB8B.7090901@colbyconsulting.com> <4a48ed4e.0702d00a.3f5a.5e39@mx.google.com> Message-ID: <4A48F21A.2090608@colbyconsulting.com> > What I am getting at is, why not just send it to everyone? Why cherry-pick individuals? This is an attempt to avoid the timer. I hate timers, though I use them in a server application. In a user application they cause screen blinking and also cause compile errors for the developer if the timer tries to execute code while you are typing in code. John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > Hmmm, ok I will think about that...but when you say "..so that I can..." do > you mean your application or you as an individual? > > What I am getting at is, why not just send it to everyone? Why cherry-pick > individuals? > > EG; on one of my apps, I have, oh, all sorts of messages flying around, but > on each FE there is a timer running on the main menu and periodically it > will go to see if there are any messages in the table which handles this > sorta stuff. IF so, the user has a pop up with the option to Sleep for x > mins (default to 15) before it reminds again. It will never go away until > the user has read it, unless you (the originator) says it can time out. > > Sorta stuff...if you can get my drift. Don't need to send system messages. > It is handled with the app. > > Max > > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: 29 June 2009 17:28 > To: Discussion concerning Visual Basic and related programming issues. > Subject: Re: [dba-VB] Syslogs > > No, I want the Access workstations to log their IP address in a table as > Access opens so that I can > read who is available to send messages to. > > The limitation of this kind of code is that you have to know an IP address. > > John W. Colby > www.ColbyConsulting.com > > > Max Wanadoo wrote: >> Do you mean IP address without having to go to the other workstation. >> >> If you just want to know what the IP address is, use VNC or RealVNC then > you >> can just hover the mouse over the system tray icon and it will tell you > the >> ip address. >> >> Max >> >> >> >> -----Original Message----- >> From: dba-vb-bounces at databaseadvisors.com >> [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby >> Sent: 29 June 2009 16:53 >> To: Discussion concerning Visual Basic and related programming issues. >> Subject: [dba-VB] Syslogs >> >> Hmm... >> >> Looks quite cool. >> >> My mind is a raging torrent, flooded with rivulets of thought cascading > into >> a waterfall of creative >> alternatives. >> >> Now... how do we determine the IP address of every machine using an Access >> application on the local LAN? >> >> John W. Colby >> www.ColbyConsulting.com >> >> >> Susan Harkins wrote: >>> <http://www.devx.com:80/vb/Article/42242/0/page/1> >>> >>> I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so > >>> proud... yet another ones passes safely to single author status. :) >>> >>> Susan H. >>> >>> _______________________________________________ >>> dba-VB mailing list >>> dba-VB at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/dba-vb >>> http://www.databaseadvisors.com >>> >>> >> _______________________________________________ >> dba-VB mailing list >> dba-VB at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/dba-vb >> http://www.databaseadvisors.com >> >> _______________________________________________ >> dba-VB mailing list >> dba-VB at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/dba-vb >> http://www.databaseadvisors.com >> >> > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ > 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 Jun 29 11:56:50 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 29 Jun 2009 18:56:50 +0200 Subject: [dba-VB] Syslogs Message-ID: <sa490e7e.066@cactus.dk> Hi John Well, you have to decide. If you wish to communicate, either the sender or the receiver has to identify itself. That drives anything on the Internet. And syslog is not broadcasting. If you wish to listen to any address on your local network or transmit to any address on the local network, you have to determine the address of your machine and the subnet mask and you can calculate all possible addresses. Note that network admins hate broadcasting applications as these are considered noisy. If you wish to communicate in or out of your local network, again you must know "something" about the machine(s) out there and your router will take care of the rest (if it and the firewall allows). The reason Hamachi and the like works is because they initially use port 80 (which can be considered open on any office network) and an external proxy to establish communication - so sender and receiver can identify each other. Nothing black magic here. syslog is fun because it is so primitive. This makes it an universal tool with heavy limitations but with nearly zero use of resources. What has been missing is prebuilt methods to read and write the messages from/to a database - to make it useful for people like us. This is what and how the article describes. /gustav >>> jwcolby at colbyconsulting.com 29-06-2009 18:37 >>> LOL, but you still have to know your own IP address. We got into this one time, with Hamachi, VMs, multiple NICS etc. it is difficult to determine what my own IP address is. John W. Colby www.ColbyConsulting.com Gustav Brock wrote: > Hi John > > Ask the application to send you a syslog message! > Then you can read the sender address or hostname. > > /gustav > > >>>> jwcolby at colbyconsulting.com 29-06-2009 17:52 >>> > Hmm... > > Looks quite cool. > > My mind is a raging torrent, flooded with rivulets of thought cascading into a waterfall of creative > alternatives. > > Now... how do we determine the IP address of every machine using an Access application on the local LAN? > > John W. Colby > www.ColbyConsulting.com > > > Susan Harkins wrote: >> <http://www.devx.com:80/vb/Article/42242/0/page/1> >> >> I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so >> proud... yet another ones passes safely to single author status. :) >> >> Susan H. From jwcolby at colbyconsulting.com Mon Jun 29 11:57:45 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 29 Jun 2009 12:57:45 -0400 Subject: [dba-VB] Syslogs In-Reply-To: <4a48ed4e.0702d00a.3f5a.5e39@mx.google.com> References: <4BB427CF4F6549BD96A293618675E1FE@SusanOne> <4A48E347.9090908@colbyconsulting.com> <4a48e982.1701d00a.388e.0b31@mx.google.com> <4A48EB8B.7090901@colbyconsulting.com> <4a48ed4e.0702d00a.3f5a.5e39@mx.google.com> Message-ID: <4A48F289.3040908@colbyconsulting.com> > What I am getting at is, why not just send it to everyone? Why cherry-pick individuals? This is an attempt to avoid the timer. I hate timers, though I use them in a server application. In a user application they cause screen blinking and also cause compile errors for the developer if the timer tries to execute code while you are typing in code. If I know the IP address of every PC that has an application running, I can send a message to just those PCs. But I have to know their IP addresses. If you are going to communicate through a table then this kind of code is unnecessary, but then a timer has to poll for messages in the table. YUK. John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > Hmmm, ok I will think about that...but when you say "..so that I can..." do > you mean your application or you as an individual? > > What I am getting at is, why not just send it to everyone? Why cherry-pick > individuals? > > EG; on one of my apps, I have, oh, all sorts of messages flying around, but > on each FE there is a timer running on the main menu and periodically it > will go to see if there are any messages in the table which handles this > sorta stuff. IF so, the user has a pop up with the option to Sleep for x > mins (default to 15) before it reminds again. It will never go away until > the user has read it, unless you (the originator) says it can time out. > > Sorta stuff...if you can get my drift. Don't need to send system messages. > It is handled with the app. > > Max > > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: 29 June 2009 17:28 > To: Discussion concerning Visual Basic and related programming issues. > Subject: Re: [dba-VB] Syslogs > > No, I want the Access workstations to log their IP address in a table as > Access opens so that I can > read who is available to send messages to. > > The limitation of this kind of code is that you have to know an IP address. > > John W. Colby > www.ColbyConsulting.com > > > Max Wanadoo wrote: >> Do you mean IP address without having to go to the other workstation. >> >> If you just want to know what the IP address is, use VNC or RealVNC then > you >> can just hover the mouse over the system tray icon and it will tell you > the >> ip address. >> >> Max >> >> >> >> -----Original Message----- >> From: dba-vb-bounces at databaseadvisors.com >> [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby >> Sent: 29 June 2009 16:53 >> To: Discussion concerning Visual Basic and related programming issues. >> Subject: [dba-VB] Syslogs >> >> Hmm... >> >> Looks quite cool. >> >> My mind is a raging torrent, flooded with rivulets of thought cascading > into >> a waterfall of creative >> alternatives. >> >> Now... how do we determine the IP address of every machine using an Access >> application on the local LAN? >> >> John W. Colby >> www.ColbyConsulting.com >> >> >> Susan Harkins wrote: >>> <http://www.devx.com:80/vb/Article/42242/0/page/1> >>> >>> I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so > >>> proud... yet another ones passes safely to single author status. :) >>> >>> Susan H. >>> >>> _______________________________________________ >>> dba-VB mailing list >>> dba-VB at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/dba-vb >>> http://www.databaseadvisors.com >>> >>> >> _______________________________________________ >> dba-VB mailing list >> dba-VB at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/dba-vb >> http://www.databaseadvisors.com >> >> _______________________________________________ >> dba-VB mailing list >> dba-VB at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/dba-vb >> http://www.databaseadvisors.com >> >> > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ > 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 Jun 29 12:07:59 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 29 Jun 2009 19:07:59 +0200 Subject: [dba-VB] Syslogs Message-ID: <sa491131.067@cactus.dk> Hi Max The paragraph on page 1, "The WinSock Control", is for you. You need both the license and the "compatibility". Thank you to MS and IE and the "Compatibility" flag. /gustav >>> max.wanadoo at gmail.com 29-06-2009 18:51 >>> Run it in A2007K and opened the Demo form to get this error: .Protocol = sckUDPProtocol Run time error 438 Object doesn't support this property or method. Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 29 June 2009 17:37 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Syslogs Hi Susan, Max et al This article: Create a Syslog Sender/Receiver Using the MS Winsock Control <quote> With the Microsoft WinSock Control and a few coding tricks, you can use Access as a high-performance syslog sender, receiver, and logger. </quote> _is_ in VBA! I have no idea why it was put in the VB section. In fact, given the current "discussion" on Access 2007, it is just about the only project I have made in Access 2007. I started out with this several years ago with Access 97 for fun, but when I recently got the chance to write and polish it up, I felt it had to be finished in A2007. If Steve is looking for "fans of the ribbon", don't count me in - I really looked for features or benefits of the ribbon but found none, sorry. /gustav >>> max.wanadoo at gmail.com 29-06-2009 18:14 >>> Gustav, does this work under Access VBA? Max -----Original Message----- Susan Harkins wrote: > <http://www.devx.com:80/vb/Article/42242/0/page/1> > > I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so > proud... yet another ones passes safely to single author status. :) > > Susan H. From max.wanadoo at gmail.com Mon Jun 29 12:09:38 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 29 Jun 2009 18:09:38 +0100 Subject: [dba-VB] Syslogs In-Reply-To: <4A48F289.3040908@colbyconsulting.com> References: <4BB427CF4F6549BD96A293618675E1FE@SusanOne> <4A48E347.9090908@colbyconsulting.com> <4a48e982.1701d00a.388e.0b31@mx.google.com> <4A48EB8B.7090901@colbyconsulting.com> <4a48ed4e.0702d00a.3f5a.5e39@mx.google.com> <4A48F289.3040908@colbyconsulting.com> Message-ID: <4a48f557.0707d00a.73ff.1dd1@mx.google.com> Yes, you are correct. But your options are (assuming you are going with the access table method) is: a. you can identity 1 or more individuals via the user table and/or see who is logged in, or ALL. b. you can determine the timer frequency to avoid the problems you describe. c. you can change the timer frequency programmatically if you need to send a FLASH message and then turn it back to "normal speed" after. d. you don't need to know any IP addresses or indeed any LAN info at all. e. It all happens within Access under your program control. f. User can respond, forward, take action etc. g. you can check your Outline Emails. h. you can call up any Office (or other) app, Word, excel etc (you know all this anyway) z. oh, and anything else that Access is capable of...the world (access world, that is) is your oyster (or lobster, if you follow Alan's youtube) Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: 29 June 2009 17:58 To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Syslogs > What I am getting at is, why not just send it to everyone? Why cherry-pick individuals? This is an attempt to avoid the timer. I hate timers, though I use them in a server application. In a user application they cause screen blinking and also cause compile errors for the developer if the timer tries to execute code while you are typing in code. If I know the IP address of every PC that has an application running, I can send a message to just those PCs. But I have to know their IP addresses. If you are going to communicate through a table then this kind of code is unnecessary, but then a timer has to poll for messages in the table. YUK. John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > Hmmm, ok I will think about that...but when you say "..so that I can..." do > you mean your application or you as an individual? > > What I am getting at is, why not just send it to everyone? Why cherry-pick > individuals? > > EG; on one of my apps, I have, oh, all sorts of messages flying around, but > on each FE there is a timer running on the main menu and periodically it > will go to see if there are any messages in the table which handles this > sorta stuff. IF so, the user has a pop up with the option to Sleep for x > mins (default to 15) before it reminds again. It will never go away until > the user has read it, unless you (the originator) says it can time out. > > Sorta stuff...if you can get my drift. Don't need to send system messages. > It is handled with the app. > > Max > > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: 29 June 2009 17:28 > To: Discussion concerning Visual Basic and related programming issues. > Subject: Re: [dba-VB] Syslogs > > No, I want the Access workstations to log their IP address in a table as > Access opens so that I can > read who is available to send messages to. > > The limitation of this kind of code is that you have to know an IP address. > > John W. Colby > www.ColbyConsulting.com > > > Max Wanadoo wrote: >> Do you mean IP address without having to go to the other workstation. >> >> If you just want to know what the IP address is, use VNC or RealVNC then > you >> can just hover the mouse over the system tray icon and it will tell you > the >> ip address. >> >> Max >> >> >> >> -----Original Message----- >> From: dba-vb-bounces at databaseadvisors.com >> [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby >> Sent: 29 June 2009 16:53 >> To: Discussion concerning Visual Basic and related programming issues. >> Subject: [dba-VB] Syslogs >> >> Hmm... >> >> Looks quite cool. >> >> My mind is a raging torrent, flooded with rivulets of thought cascading > into >> a waterfall of creative >> alternatives. >> >> Now... how do we determine the IP address of every machine using an Access >> application on the local LAN? >> >> John W. Colby >> www.ColbyConsulting.com >> >> >> Susan Harkins wrote: >>> <http://www.devx.com:80/vb/Article/42242/0/page/1> >>> >>> I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so > >>> proud... yet another ones passes safely to single author status. :) >>> >>> Susan H. >>> >>> _______________________________________________ >>> dba-VB mailing list >>> dba-VB at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/dba-vb >>> http://www.databaseadvisors.com >>> >>> >> _______________________________________________ >> dba-VB mailing list >> dba-VB at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/dba-vb >> http://www.databaseadvisors.com >> >> _______________________________________________ >> dba-VB mailing list >> dba-VB at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/dba-vb >> http://www.databaseadvisors.com >> >> > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From max.wanadoo at gmail.com Mon Jun 29 12:30:26 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 29 Jun 2009 18:30:26 +0100 Subject: [dba-VB] Syslogs In-Reply-To: <sa491131.067@cactus.dk> References: <sa491131.067@cactus.dk> Message-ID: <4a48fa36.0a1ad00a.270f.343d@mx.google.com> Yes that cured it. I used the one included with the download. The demo form seems to work, but I don't receive any msg at localhost Get back to you on the others. Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 29 June 2009 18:08 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Syslogs Hi Max The paragraph on page 1, "The WinSock Control", is for you. You need both the license and the "compatibility". Thank you to MS and IE and the "Compatibility" flag. /gustav >>> max.wanadoo at gmail.com 29-06-2009 18:51 >>> Run it in A2007K and opened the Demo form to get this error: .Protocol = sckUDPProtocol Run time error 438 Object doesn't support this property or method. Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 29 June 2009 17:37 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Syslogs Hi Susan, Max et al This article: Create a Syslog Sender/Receiver Using the MS Winsock Control <quote> With the Microsoft WinSock Control and a few coding tricks, you can use Access as a high-performance syslog sender, receiver, and logger. </quote> _is_ in VBA! I have no idea why it was put in the VB section. In fact, given the current "discussion" on Access 2007, it is just about the only project I have made in Access 2007. I started out with this several years ago with Access 97 for fun, but when I recently got the chance to write and polish it up, I felt it had to be finished in A2007. If Steve is looking for "fans of the ribbon", don't count me in - I really looked for features or benefits of the ribbon but found none, sorry. /gustav >>> max.wanadoo at gmail.com 29-06-2009 18:14 >>> Gustav, does this work under Access VBA? Max -----Original Message----- Susan Harkins wrote: > <http://www.devx.com:80/vb/Article/42242/0/page/1> > > I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so > proud... yet another ones passes safely to single author status. :) > > Susan H. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Mon Jun 29 12:35:55 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 29 Jun 2009 13:35:55 -0400 Subject: [dba-VB] SPAM-LOW: Re: Syslogs In-Reply-To: <4a48f557.0707d00a.73ff.1dd1@mx.google.com> References: <4BB427CF4F6549BD96A293618675E1FE@SusanOne> <4A48E347.9090908@colbyconsulting.com> <4a48e982.1701d00a.388e.0b31@mx.google.com> <4A48EB8B.7090901@colbyconsulting.com> <4a48ed4e.0702d00a.3f5a.5e39@mx.google.com> <4A48F289.3040908@colbyconsulting.com> <4a48f557.0707d00a.73ff.1dd1@mx.google.com> Message-ID: <4A48FB7B.8030604@colbyconsulting.com> Max, I know all this. I write classes, and those classes can raise events. Events are much like this thing of Gustavs, a message is sent and if someone gets it fine. That is often useful As an example, I cache frequently used data in class instances, one per record from the table. It would be nice to have a message that is sent to everyone in the database if anyone modifies the data in the cached table. But I don't want to have to continuously poll a table looking for a message. If a message is sent saying that the cached data changes, then I rebuild the cache. That is the kind of thing that this code could possibly add to an application, HOWEVER... everyone has to know the IP address of everyone else that is in the database. I have been looking for this kind of messaging thing for YEARS. John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > Yes, you are correct. > > But your options are (assuming you are going with the access table method) > is: > > a. you can identity 1 or more individuals via the user table and/or see who > is logged in, or ALL. > b. you can determine the timer frequency to avoid the problems you describe. > c. you can change the timer frequency programmatically if you need to send a > FLASH message and then turn it back to "normal speed" after. > d. you don't need to know any IP addresses or indeed any LAN info at all. > e. It all happens within Access under your program control. > f. User can respond, forward, take action etc. > g. you can check your Outline Emails. > h. you can call up any Office (or other) app, Word, excel etc (you know all > this anyway) > z. oh, and anything else that Access is capable of...the world (access > world, that is) is your oyster (or lobster, if you follow Alan's youtube) > > > > Max > > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: 29 June 2009 17:58 > To: Discussion concerning Visual Basic and related programming issues. > Subject: Re: [dba-VB] Syslogs > > > What I am getting at is, why not just send it to everyone? Why > cherry-pick individuals? > > This is an attempt to avoid the timer. I hate timers, though I use them in > a server application. > In a user application they cause screen blinking and also cause compile > errors for the developer if > the timer tries to execute code while you are typing in code. > > If I know the IP address of every PC that has an application running, I can > send a message to just > those PCs. But I have to know their IP addresses. > > If you are going to communicate through a table then this kind of code is > unnecessary, but then a > timer has to poll for messages in the table. YUK. > > John W. Colby > www.ColbyConsulting.com > > > Max Wanadoo wrote: >> Hmmm, ok I will think about that...but when you say "..so that I can..." > do >> you mean your application or you as an individual? >> >> What I am getting at is, why not just send it to everyone? Why > cherry-pick >> individuals? >> >> EG; on one of my apps, I have, oh, all sorts of messages flying around, > but >> on each FE there is a timer running on the main menu and periodically it >> will go to see if there are any messages in the table which handles this >> sorta stuff. IF so, the user has a pop up with the option to Sleep for x >> mins (default to 15) before it reminds again. It will never go away until >> the user has read it, unless you (the originator) says it can time out. >> >> Sorta stuff...if you can get my drift. Don't need to send system > messages. >> It is handled with the app. >> >> Max >> >> >> >> -----Original Message----- >> From: dba-vb-bounces at databaseadvisors.com >> [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby >> Sent: 29 June 2009 17:28 >> To: Discussion concerning Visual Basic and related programming issues. >> Subject: Re: [dba-VB] Syslogs >> >> No, I want the Access workstations to log their IP address in a table as >> Access opens so that I can >> read who is available to send messages to. >> >> The limitation of this kind of code is that you have to know an IP > address. >> John W. Colby >> www.ColbyConsulting.com >> >> >> Max Wanadoo wrote: >>> Do you mean IP address without having to go to the other workstation. >>> >>> If you just want to know what the IP address is, use VNC or RealVNC then >> you >>> can just hover the mouse over the system tray icon and it will tell you >> the >>> ip address. >>> >>> Max >>> >>> >>> >>> -----Original Message----- >>> From: dba-vb-bounces at databaseadvisors.com >>> [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby >>> Sent: 29 June 2009 16:53 >>> To: Discussion concerning Visual Basic and related programming issues. >>> Subject: [dba-VB] Syslogs >>> >>> Hmm... >>> >>> Looks quite cool. >>> >>> My mind is a raging torrent, flooded with rivulets of thought cascading >> into >>> a waterfall of creative >>> alternatives. >>> >>> Now... how do we determine the IP address of every machine using an > Access >>> application on the local LAN? >>> >>> John W. Colby >>> www.ColbyConsulting.com >>> >>> >>> Susan Harkins wrote: >>>> <http://www.devx.com:80/vb/Article/42242/0/page/1> >>>> >>>> I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm > so >>>> proud... yet another ones passes safely to single author status. :) >>>> >>>> Susan H. >>>> >>>> _______________________________________________ >>>> dba-VB mailing list >>>> dba-VB at databaseadvisors.com >>>> http://databaseadvisors.com/mailman/listinfo/dba-vb >>>> http://www.databaseadvisors.com >>>> >>>> >>> _______________________________________________ >>> dba-VB mailing list >>> dba-VB at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/dba-vb >>> http://www.databaseadvisors.com >>> >>> _______________________________________________ >>> dba-VB mailing list >>> dba-VB at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/dba-vb >>> http://www.databaseadvisors.com >>> >>> >> _______________________________________________ >> dba-VB mailing list >> dba-VB at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/dba-vb >> http://www.databaseadvisors.com >> >> _______________________________________________ >> dba-VB mailing list >> dba-VB at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/dba-vb >> http://www.databaseadvisors.com >> >> > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From max.wanadoo at gmail.com Mon Jun 29 12:44:20 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 29 Jun 2009 18:44:20 +0100 Subject: [dba-VB] SPAM-LOW: Re: Syslogs In-Reply-To: <4A48FB7B.8030604@colbyconsulting.com> References: <4BB427CF4F6549BD96A293618675E1FE@SusanOne> <4A48E347.9090908@colbyconsulting.com> <4a48e982.1701d00a.388e.0b31@mx.google.com> <4A48EB8B.7090901@colbyconsulting.com> <4a48ed4e.0702d00a.3f5a.5e39@mx.google.com> <4A48F289.3040908@colbyconsulting.com> <4a48f557.0707d00a.73ff.1dd1@mx.google.com> <4A48FB7B.8030604@colbyconsulting.com> Message-ID: <4a48fd78.0508d00a.0641.ffff8f62@mx.google.com> Well, if you change your mind on the TIMER then you can take this route. I have been using it for 8 years now without any problem. I agree that it can be aggravating when typing code to have it "interrupt" but that is avoidable if you wanted. I will see what i can find out re identifying IP addresses. Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: 29 June 2009 18:36 To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] SPAM-LOW: Re: Syslogs Max, I know all this. I write classes, and those classes can raise events. Events are much like this thing of Gustavs, a message is sent and if someone gets it fine. That is often useful As an example, I cache frequently used data in class instances, one per record from the table. It would be nice to have a message that is sent to everyone in the database if anyone modifies the data in the cached table. But I don't want to have to continuously poll a table looking for a message. If a message is sent saying that the cached data changes, then I rebuild the cache. That is the kind of thing that this code could possibly add to an application, HOWEVER... everyone has to know the IP address of everyone else that is in the database. I have been looking for this kind of messaging thing for YEARS. John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > Yes, you are correct. > > But your options are (assuming you are going with the access table method) > is: > > a. you can identity 1 or more individuals via the user table and/or see who > is logged in, or ALL. > b. you can determine the timer frequency to avoid the problems you describe. > c. you can change the timer frequency programmatically if you need to send a > FLASH message and then turn it back to "normal speed" after. > d. you don't need to know any IP addresses or indeed any LAN info at all. > e. It all happens within Access under your program control. > f. User can respond, forward, take action etc. > g. you can check your Outline Emails. > h. you can call up any Office (or other) app, Word, excel etc (you know all > this anyway) > z. oh, and anything else that Access is capable of...the world (access > world, that is) is your oyster (or lobster, if you follow Alan's youtube) > > > > Max > > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: 29 June 2009 17:58 > To: Discussion concerning Visual Basic and related programming issues. > Subject: Re: [dba-VB] Syslogs > > > What I am getting at is, why not just send it to everyone? Why > cherry-pick individuals? > > This is an attempt to avoid the timer. I hate timers, though I use them in > a server application. > In a user application they cause screen blinking and also cause compile > errors for the developer if > the timer tries to execute code while you are typing in code. > > If I know the IP address of every PC that has an application running, I can > send a message to just > those PCs. But I have to know their IP addresses. > > If you are going to communicate through a table then this kind of code is > unnecessary, but then a > timer has to poll for messages in the table. YUK. > > John W. Colby > www.ColbyConsulting.com > > > Max Wanadoo wrote: >> Hmmm, ok I will think about that...but when you say "..so that I can..." > do >> you mean your application or you as an individual? >> >> What I am getting at is, why not just send it to everyone? Why > cherry-pick >> individuals? >> >> EG; on one of my apps, I have, oh, all sorts of messages flying around, > but >> on each FE there is a timer running on the main menu and periodically it >> will go to see if there are any messages in the table which handles this >> sorta stuff. IF so, the user has a pop up with the option to Sleep for x >> mins (default to 15) before it reminds again. It will never go away until >> the user has read it, unless you (the originator) says it can time out. >> >> Sorta stuff...if you can get my drift. Don't need to send system > messages. >> It is handled with the app. >> >> Max >> >> >> >> -----Original Message----- >> From: dba-vb-bounces at databaseadvisors.com >> [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby >> Sent: 29 June 2009 17:28 >> To: Discussion concerning Visual Basic and related programming issues. >> Subject: Re: [dba-VB] Syslogs >> >> No, I want the Access workstations to log their IP address in a table as >> Access opens so that I can >> read who is available to send messages to. >> >> The limitation of this kind of code is that you have to know an IP > address. >> John W. Colby >> www.ColbyConsulting.com >> >> >> Max Wanadoo wrote: >>> Do you mean IP address without having to go to the other workstation. >>> >>> If you just want to know what the IP address is, use VNC or RealVNC then >> you >>> can just hover the mouse over the system tray icon and it will tell you >> the >>> ip address. >>> >>> Max >>> >>> >>> >>> -----Original Message----- >>> From: dba-vb-bounces at databaseadvisors.com >>> [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby >>> Sent: 29 June 2009 16:53 >>> To: Discussion concerning Visual Basic and related programming issues. >>> Subject: [dba-VB] Syslogs >>> >>> Hmm... >>> >>> Looks quite cool. >>> >>> My mind is a raging torrent, flooded with rivulets of thought cascading >> into >>> a waterfall of creative >>> alternatives. >>> >>> Now... how do we determine the IP address of every machine using an > Access >>> application on the local LAN? >>> >>> John W. Colby >>> www.ColbyConsulting.com >>> >>> >>> Susan Harkins wrote: >>>> <http://www.devx.com:80/vb/Article/42242/0/page/1> >>>> >>>> I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm > so >>>> proud... yet another ones passes safely to single author status. :) >>>> >>>> Susan H. >>>> >>>> _______________________________________________ >>>> dba-VB mailing list >>>> dba-VB at databaseadvisors.com >>>> http://databaseadvisors.com/mailman/listinfo/dba-vb >>>> http://www.databaseadvisors.com >>>> >>>> >>> _______________________________________________ >>> dba-VB mailing list >>> dba-VB at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/dba-vb >>> http://www.databaseadvisors.com >>> >>> _______________________________________________ >>> dba-VB mailing list >>> dba-VB at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/dba-vb >>> http://www.databaseadvisors.com >>> >>> >> _______________________________________________ >> dba-VB mailing list >> dba-VB at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/dba-vb >> http://www.databaseadvisors.com >> >> _______________________________________________ >> dba-VB mailing list >> dba-VB at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/dba-vb >> http://www.databaseadvisors.com >> >> > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ 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 Jun 29 13:05:46 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 29 Jun 2009 14:05:46 -0400 Subject: [dba-VB] SPAM-LOW: Re: Syslogs In-Reply-To: <sa490e7e.066@cactus.dk> References: <sa490e7e.066@cactus.dk> Message-ID: <4A49027A.5000604@colbyconsulting.com> Gustav, As I mentioned, I have been looking for something like this for years, however everyone has to have a list of IPs that can be used with it to make it useful. I suppose I could kind of bootstrap this thing. The server address could be found by manual observation, then logged in a table along with the machine name. Each application FE instance looks and sends a message that it is logged in. The RECEIVER grabs the IP address and looks it up in the table. If not there it stores the IP in the table. Of course then the machine name has to be included in the message. I suppose that I could develop a message library, such that every time an application it fires a LOGIN message to everyone already in the table. The login message has a machine name as the data and apparently this widget automatically gets the IP address. My clients rarely have more than 25 or so workstations running the application so this shouldn't cause too much grief. Thus anyone listening logs the new person's data into the table if it isn't already there. Kind of crude but that allows any single running application (that you can manually get the IP for) to bootstrap the system and build the list of IPs and machine names. John W. Colby www.ColbyConsulting.com Gustav Brock wrote: > Hi John > > Well, you have to decide. If you wish to communicate, either the sender or the receiver has to identify itself. That drives anything on the Internet. > > And syslog is not broadcasting. If you wish to listen to any address on your local network or transmit to any address on the local network, you have to determine the address of your machine and the subnet mask and you can calculate all possible addresses. Note that network admins hate broadcasting applications as these are considered noisy. > If you wish to communicate in or out of your local network, again you must know "something" about the machine(s) out there and your router will take care of the rest (if it and the firewall allows). > > The reason Hamachi and the like works is because they initially use port 80 (which can be considered open on any office network) and an external proxy to establish communication - so sender and receiver can identify each other. Nothing black magic here. > > syslog is fun because it is so primitive. This makes it an universal tool with heavy limitations but with nearly zero use of resources. What has been missing is prebuilt methods to read and write the messages from/to a database - to make it useful for people like us. This is what and how the article describes. > > /gustav From jwcolby at colbyconsulting.com Mon Jun 29 13:11:06 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 29 Jun 2009 14:11:06 -0400 Subject: [dba-VB] Syslogs In-Reply-To: <4a48fa36.0a1ad00a.270f.343d@mx.google.com> References: <sa491131.067@cactus.dk> <4a48fa36.0a1ad00a.270f.343d@mx.google.com> Message-ID: <4A4903BA.3080406@colbyconsulting.com> Does this imply that the winsock control is not native to Access? John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > Yes that cured it. I used the one included with the download. > > The demo form seems to work, but I don't receive any msg at localhost > > Get back to you on the others. > > Max > > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: 29 June 2009 18:08 > To: dba-vb at databaseadvisors.com > Subject: Re: [dba-VB] Syslogs > > Hi Max > > The paragraph on page 1, "The WinSock Control", is for you. > You need both the license and the "compatibility". > > Thank you to MS and IE and the "Compatibility" flag. > > /gustav > > >>>> max.wanadoo at gmail.com 29-06-2009 18:51 >>> > Run it in A2007K and opened the Demo form to get this error: > > .Protocol = sckUDPProtocol > Run time error 438 > Object doesn't support this property or method. > > Max > > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: 29 June 2009 17:37 > To: dba-vb at databaseadvisors.com > Subject: Re: [dba-VB] Syslogs > > Hi Susan, Max et al > > This article: > > Create a Syslog Sender/Receiver Using the MS Winsock Control > > <quote> > With the Microsoft WinSock Control and a few coding tricks, you can use > Access as a high-performance syslog sender, receiver, and logger. > </quote> > > _is_ in VBA! I have no idea why it was put in the VB section. > > In fact, given the current "discussion" on Access 2007, it is just about the > only project I have made in Access 2007. > I started out with this several years ago with Access 97 for fun, but when I > recently got the chance to write and polish it up, I felt it had to be > finished in A2007. If Steve is looking for "fans of the ribbon", don't count > me in - I really looked for features or benefits of the ribbon but found > none, sorry. > > /gustav > > >>>> max.wanadoo at gmail.com 29-06-2009 18:14 >>> > Gustav, does this work under Access VBA? > > Max > > > -----Original Message----- > > Susan Harkins wrote: >> <http://www.devx.com:80/vb/Article/42242/0/page/1> >> >> I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so >> proud... yet another ones passes safely to single author status. :) >> >> Susan H. > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From max.wanadoo at gmail.com Mon Jun 29 13:16:51 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 29 Jun 2009 19:16:51 +0100 Subject: [dba-VB] Syslogs In-Reply-To: <4A4903BA.3080406@colbyconsulting.com> References: <sa491131.067@cactus.dk> <4a48fa36.0a1ad00a.270f.343d@mx.google.com> <4A4903BA.3080406@colbyconsulting.com> Message-ID: <4a490517.0506d00a.64c6.2364@mx.google.com> Hmmm, don't know..Gustav? It certainly required registering on my laptop with A2007K Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: 29 June 2009 19:11 To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Syslogs Does this imply that the winsock control is not native to Access? John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > Yes that cured it. I used the one included with the download. > > The demo form seems to work, but I don't receive any msg at localhost > > Get back to you on the others. > > Max > > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: 29 June 2009 18:08 > To: dba-vb at databaseadvisors.com > Subject: Re: [dba-VB] Syslogs > > Hi Max > > The paragraph on page 1, "The WinSock Control", is for you. > You need both the license and the "compatibility". > > Thank you to MS and IE and the "Compatibility" flag. > > /gustav > > >>>> max.wanadoo at gmail.com 29-06-2009 18:51 >>> > Run it in A2007K and opened the Demo form to get this error: > > .Protocol = sckUDPProtocol > Run time error 438 > Object doesn't support this property or method. > > Max > > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: 29 June 2009 17:37 > To: dba-vb at databaseadvisors.com > Subject: Re: [dba-VB] Syslogs > > Hi Susan, Max et al > > This article: > > Create a Syslog Sender/Receiver Using the MS Winsock Control > > <quote> > With the Microsoft WinSock Control and a few coding tricks, you can use > Access as a high-performance syslog sender, receiver, and logger. > </quote> > > _is_ in VBA! I have no idea why it was put in the VB section. > > In fact, given the current "discussion" on Access 2007, it is just about the > only project I have made in Access 2007. > I started out with this several years ago with Access 97 for fun, but when I > recently got the chance to write and polish it up, I felt it had to be > finished in A2007. If Steve is looking for "fans of the ribbon", don't count > me in - I really looked for features or benefits of the ribbon but found > none, sorry. > > /gustav > > >>>> max.wanadoo at gmail.com 29-06-2009 18:14 >>> > Gustav, does this work under Access VBA? > > Max > > > -----Original Message----- > > Susan Harkins wrote: >> <http://www.devx.com:80/vb/Article/42242/0/page/1> >> >> I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so >> proud... yet another ones passes safely to single author status. :) >> >> Susan H. > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From Gustav at cactus.dk Mon Jun 29 13:21:36 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 29 Jun 2009 20:21:36 +0200 Subject: [dba-VB] Syslogs Message-ID: <sa492274.073@cactus.dk> Hi John Join Max and read the article ... same paragraph. http://www.devx.com:80/vb/Article/42242/0/page/1 <quote> The actual transmission of syslog messages between your application and Windows is left to the WinSock Control, which came with Visual Basic 6 and some old versions of the Access Developer Tools. Further, you can download the control from several places, which include tools to correct a corrupted install. </quote> /gustav >>> jwcolby at colbyconsulting.com 29-06-2009 20:11 >>> Does this imply that the winsock control is not native to Access? John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > Yes that cured it. I used the one included with the download. > > The demo form seems to work, but I don't receive any msg at localhost > > Get back to you on the others. > > Max > > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: 29 June 2009 18:08 > To: dba-vb at databaseadvisors.com > Subject: Re: [dba-VB] Syslogs > > Hi Max > > The paragraph on page 1, "The WinSock Control", is for you. > You need both the license and the "compatibility". > > Thank you to MS and IE and the "Compatibility" flag. > > /gustav From shamil at smsconsulting.spb.ru Mon Jun 29 13:24:34 2009 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Mon, 29 Jun 2009 22:24:34 +0400 Subject: [dba-VB] SPAM-LOW: Re: Syslogs In-Reply-To: <4A49027A.5000604@colbyconsulting.com> References: <sa490e7e.066@cactus.dk> <4A49027A.5000604@colbyconsulting.com> Message-ID: <001001c9f8e6$dbc4e3d0$934eab70$@spb.ru> Hi John, What about Peer-To-Peer Networked Apps http://msdn.microsoft.com/en-us/magazine/cc301833.aspx ? Could that technology help to solve your task? - it doesn't need IP addresses known in advance... -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Monday, June 29, 2009 10:06 PM To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] SPAM-LOW: Re: Syslogs Gustav, As I mentioned, I have been looking for something like this for years, however everyone has to have a list of IPs that can be used with it to make it useful. I suppose I could kind of bootstrap this thing. The server address could be found by manual observation, then logged in a table along with the machine name. Each application FE instance looks and sends a message that it is logged in. The RECEIVER grabs the IP address and looks it up in the table. If not there it stores the IP in the table. Of course then the machine name has to be included in the message. I suppose that I could develop a message library, such that every time an application it fires a LOGIN message to everyone already in the table. The login message has a machine name as the data and apparently this widget automatically gets the IP address. My clients rarely have more than 25 or so workstations running the application so this shouldn't cause too much grief. Thus anyone listening logs the new person's data into the table if it isn't already there. Kind of crude but that allows any single running application (that you can manually get the IP for) to bootstrap the system and build the list of IPs and machine names. John W. Colby www.ColbyConsulting.com Gustav Brock wrote: > Hi John > > Well, you have to decide. If you wish to communicate, either the sender or the receiver has to identify itself. That drives anything on the Internet. > > And syslog is not broadcasting. If you wish to listen to any address on your local network or transmit to any address on the local network, you have to determine the address of your machine and the subnet mask and you can calculate all possible addresses. Note that network admins hate broadcasting applications as these are considered noisy. > If you wish to communicate in or out of your local network, again you must know "something" about the machine(s) out there and your router will take care of the rest (if it and the firewall allows). > > The reason Hamachi and the like works is because they initially use port 80 (which can be considered open on any office network) and an external proxy to establish communication - so sender and receiver can identify each other. Nothing black magic here. > > syslog is fun because it is so primitive. This makes it an universal tool with heavy limitations but with nearly zero use of resources. What has been missing is prebuilt methods to read and write the messages from/to a database - to make it useful for people like us. This is what and how the article describes. > > /gustav _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com __________ Information from ESET NOD32 Antivirus, version of virus signature database 4197 (20090629) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru __________ Information from ESET NOD32 Antivirus, version of virus signature database 4197 (20090629) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru From max.wanadoo at gmail.com Mon Jun 29 13:28:41 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 29 Jun 2009 19:28:41 +0100 Subject: [dba-VB] Syslogs In-Reply-To: <sa492274.073@cactus.dk> References: <sa492274.073@cactus.dk> Message-ID: <4a4907dc.1c07d00a.2f2c.1e5d@mx.google.com> So, John's question appears to have the answer "No, not to Access and not to Vista" It needs to be registered..am I correct? Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 29 June 2009 19:22 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Syslogs Hi John Join Max and read the article ... same paragraph. http://www.devx.com:80/vb/Article/42242/0/page/1 <quote> The actual transmission of syslog messages between your application and Windows is left to the WinSock Control, which came with Visual Basic 6 and some old versions of the Access Developer Tools. Further, you can download the control from several places, which include tools to correct a corrupted install. </quote> /gustav >>> jwcolby at colbyconsulting.com 29-06-2009 20:11 >>> Does this imply that the winsock control is not native to Access? John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > Yes that cured it. I used the one included with the download. > > The demo form seems to work, but I don't receive any msg at localhost > > Get back to you on the others. > > Max > > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: 29 June 2009 18:08 > To: dba-vb at databaseadvisors.com > Subject: Re: [dba-VB] Syslogs > > Hi Max > > The paragraph on page 1, "The WinSock Control", is for you. > You need both the license and the "compatibility". > > Thank you to MS and IE and the "Compatibility" flag. > > /gustav _______________________________________________ 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 Jun 29 13:34:34 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 29 Jun 2009 20:34:34 +0200 Subject: [dba-VB] Syslogs Message-ID: <sa492567.076@cactus.dk> Hi John As explained in the article on how to create a kind of confirmation system, you could set up a simple two-way system with a single syslog app broadcasting at low frequency "Here I am, and if you are an app from JC, record my address and report back". Your app, when running at the user, would pick up that message and send back a message for the syslog app to collect the addresses of currently running application copies. When a user signs off, after a time-out the syslog app realizes that this copy is off and removes it from the list. Thus, a current list of active applications can be maintained and they can communicate for whatever reason you decide. Note that communication between machines can really be done in many ways, it is just that syslog is an established standard for simple text messages of about 1K, and if that fits, why reinvent the wheel? /gustav >>> jwcolby at colbyconsulting.com 29-06-2009 20:05 >>> Gustav, As I mentioned, I have been looking for something like this for years, however everyone has to have a list of IPs that can be used with it to make it useful. I suppose I could kind of bootstrap this thing. The server address could be found by manual observation, then logged in a table along with the machine name. Each application FE instance looks and sends a message that it is logged in. The RECEIVER grabs the IP address and looks it up in the table. If not there it stores the IP in the table. Of course then the machine name has to be included in the message. I suppose that I could develop a message library, such that every time an application it fires a LOGIN message to everyone already in the table. The login message has a machine name as the data and apparently this widget automatically gets the IP address. My clients rarely have more than 25 or so workstations running the application so this shouldn't cause too much grief. Thus anyone listening logs the new person's data into the table if it isn't already there. Kind of crude but that allows any single running application (that you can manually get the IP for) to bootstrap the system and build the list of IPs and machine names. John W. Colby www.ColbyConsulting.com Gustav Brock wrote: > Hi John > > Well, you have to decide. If you wish to communicate, either the sender or the receiver has to identify itself. That drives anything on the Internet. > > And syslog is not broadcasting. If you wish to listen to any address on your local network or transmit to any address on the local network, you have to determine the address of your machine and the subnet mask and you can calculate all possible addresses. Note that network admins hate broadcasting applications as these are considered noisy. > If you wish to communicate in or out of your local network, again you must know "something" about the machine(s) out there and your router will take care of the rest (if it and the firewall allows). > > The reason Hamachi and the like works is because they initially use port 80 (which can be considered open on any office network) and an external proxy to establish communication - so sender and receiver can identify each other. Nothing black magic here. > > syslog is fun because it is so primitive. This makes it an universal tool with heavy limitations but with nearly zero use of resources. What has been missing is prebuilt methods to read and write the messages from/to a database - to make it useful for people like us. This is what and how the article describes. > > /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 Jun 29 13:41:03 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 29 Jun 2009 20:41:03 +0200 Subject: [dba-VB] Syslogs Message-ID: <sa4926ed.077@cactus.dk> Hi Max It is not native to Access as obtained in an Office suite, but as a developer having VB6 or the developer tools for Access (can't recall which version) you can distribute it freely with your application. If so, you will of course need some kind of installation routine as for any other OCX you wish to deploy. As mentioned, it is so widely spread that should you miss both VB6 or the developer tools for Access you can locate it for download several places. /gustav >>> max.wanadoo at gmail.com 29-06-2009 20:28 >>> So, John's question appears to have the answer "No, not to Access and not to Vista" It needs to be registered..am I correct? Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 29 June 2009 19:22 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Syslogs Hi John Join Max and read the article ... same paragraph. http://www.devx.com:80/vb/Article/42242/0/page/1 <quote> The actual transmission of syslog messages between your application and Windows is left to the WinSock Control, which came with Visual Basic 6 and some old versions of the Access Developer Tools. Further, you can download the control from several places, which include tools to correct a corrupted install. </quote> /gustav >>> jwcolby at colbyconsulting.com 29-06-2009 20:11 >>> Does this imply that the winsock control is not native to Access? John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > Yes that cured it. I used the one included with the download. > > The demo form seems to work, but I don't receive any msg at localhost > > Get back to you on the others. > > Max > > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: 29 June 2009 18:08 > To: dba-vb at databaseadvisors.com > Subject: Re: [dba-VB] Syslogs > > Hi Max > > The paragraph on page 1, "The WinSock Control", is for you. > You need both the license and the "compatibility". > > Thank you to MS and IE and the "Compatibility" flag. > > /gustav From max.wanadoo at gmail.com Mon Jun 29 13:45:00 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 29 Jun 2009 19:45:00 +0100 Subject: [dba-VB] Syslogs In-Reply-To: <sa4926ed.077@cactus.dk> References: <sa4926ed.077@cactus.dk> Message-ID: <4a490baf.1818d00a.3c7d.0281@mx.google.com> Thank you Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 29 June 2009 19:41 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Syslogs Hi Max It is not native to Access as obtained in an Office suite, but as a developer having VB6 or the developer tools for Access (can't recall which version) you can distribute it freely with your application. If so, you will of course need some kind of installation routine as for any other OCX you wish to deploy. As mentioned, it is so widely spread that should you miss both VB6 or the developer tools for Access you can locate it for download several places. /gustav >>> max.wanadoo at gmail.com 29-06-2009 20:28 >>> So, John's question appears to have the answer "No, not to Access and not to Vista" It needs to be registered..am I correct? Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 29 June 2009 19:22 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Syslogs Hi John Join Max and read the article ... same paragraph. http://www.devx.com:80/vb/Article/42242/0/page/1 <quote> The actual transmission of syslog messages between your application and Windows is left to the WinSock Control, which came with Visual Basic 6 and some old versions of the Access Developer Tools. Further, you can download the control from several places, which include tools to correct a corrupted install. </quote> /gustav >>> jwcolby at colbyconsulting.com 29-06-2009 20:11 >>> Does this imply that the winsock control is not native to Access? John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > Yes that cured it. I used the one included with the download. > > The demo form seems to work, but I don't receive any msg at localhost > > Get back to you on the others. > > Max > > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: 29 June 2009 18:08 > To: dba-vb at databaseadvisors.com > Subject: Re: [dba-VB] Syslogs > > Hi Max > > The paragraph on page 1, "The WinSock Control", is for you. > You need both the license and the "compatibility". > > Thank you to MS and IE and the "Compatibility" flag. > > /gustav _______________________________________________ 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 Jun 29 14:28:55 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 29 Jun 2009 15:28:55 -0400 Subject: [dba-VB] Syslogs In-Reply-To: <sa492274.073@cactus.dk> References: <sa492274.073@cactus.dk> Message-ID: <4A4915F7.8070202@colbyconsulting.com> Ahhhh.... John W. Colby www.ColbyConsulting.com Gustav Brock wrote: > Hi John > > Join Max and read the article ... same paragraph. > > http://www.devx.com:80/vb/Article/42242/0/page/1 > > <quote> > The actual transmission of syslog messages between your application and Windows is left to the WinSock Control, which came with Visual Basic 6 and some old versions of the Access Developer Tools. Further, you can download the control from several places, which include tools to correct a corrupted install. > </quote> > > /gustav > > >>>> jwcolby at colbyconsulting.com 29-06-2009 20:11 >>> > Does this imply that the winsock control is not native to Access? > > John W. Colby > www.ColbyConsulting.com > > > Max Wanadoo wrote: >> Yes that cured it. I used the one included with the download. >> >> The demo form seems to work, but I don't receive any msg at localhost >> >> Get back to you on the others. >> >> Max >> >> >> >> -----Original Message----- >> From: dba-vb-bounces at databaseadvisors.com >> [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock >> Sent: 29 June 2009 18:08 >> To: dba-vb at databaseadvisors.com >> Subject: Re: [dba-VB] Syslogs >> >> Hi Max >> >> The paragraph on page 1, "The WinSock Control", is for you. >> You need both the license and the "compatibility". >> >> Thank you to MS and IE and the "Compatibility" flag. >> >> /gustav > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From max.wanadoo at gmail.com Mon Jun 29 16:43:07 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 29 Jun 2009 22:43:07 +0100 Subject: [dba-VB] Ping IP In-Reply-To: <4A49027A.5000604@colbyconsulting.com> References: <sa490e7e.066@cactus.dk> <4A49027A.5000604@colbyconsulting.com> Message-ID: <4a49356f.1701d00a.11d7.2ecc@mx.google.com> John: Does this description sound what you need? Ping a range of IP numbers to find out what numbers are in use, or what numbers answer within the set time. Use it to find out what parts of your network are slower then others and maybe you even need to take a closer look at them. Adjustable time out, bytes to send, start and end node. Save the results of the sweep as csv and import them into a database. If so, go to http://www.freedownloadscenter.com/Network_and_Internet/Misc__Networking_Too ls/Ping_War.html Free as far as I can tell. Haven't used it. Max From stuart at lexacorp.com.pg Mon Jun 29 16:58:54 2009 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 30 Jun 2009 07:58:54 +1000 Subject: [dba-VB] Syslogs In-Reply-To: <4A48EDCB.50706@colbyconsulting.com> References: <sa490735.064@cactus.dk>, <4A48EDCB.50706@colbyconsulting.com> Message-ID: <4A49391E.21194.1853145A@stuart.lexacorp.com.pg> Here's a little VB/VBA class to handle Hostnames and IP Addresses. It works fine in Access (watch for line wrapping) clsResolve: Option Compare Database Option Explicit '// define constants Private Const IP_SUCCESS As Long = 0 Private Const SOCKET_ERROR As Long = -1 Private Const MAX_WSADescription As Long = 256 Private Const MAX_WSASYSStatus As Long = 128 Private Const MIN_SOCKETS_REQD As Long = 1 Private Const WS_VERSION_REQD As Long = &H101 Private Const WS_VERSION_MAJOR As Long = WS_VERSION_REQD \ &H100 And &HFF& Private Const WS_VERSION_MINOR As Long = WS_VERSION_REQD And &HFF& Private Const WSADescription_Len As Long = 256 Private Const WSASYS_Status_Len As Long = 128 Private Const AF_INET As Long = 2 '// structures Private Type HOSTENT hName As Long hAliases As Long hAddrType As Integer hLength As Integer hAddrList As Long End Type Private Type WSADATA wVersion As Integer wHighVersion As Integer szDescription(0 To MAX_WSADescription) As Byte szSystemStatus(0 To MAX_WSASYSStatus) As Byte wMaxSockets As Long wMaxUDPDG As Long dwVendorInfo As Long End Type '// api 'kernel32 Private Declare Sub apiCopyMemory Lib "kernel32" Alias "RtlMoveMemory" (xDest As Any, xSource As Any, ByVal nBytes As Long) Private Declare Function apiStrLen Lib "kernel32" Alias "lstrlenA" (lpString As Any) As Long 'wsock32 Private Declare Function apiGetHostByName Lib "wsock32.dll" Alias "gethostbyname" (ByVal hostname As String) As Long Private Declare Function apiWSAStartup Lib "wsock32.dll" Alias "WSAStartup" (ByVal wVersionRequired As Long, lpWSADATA As WSADATA) As Long Private Declare Function apiWSACleanup Lib "wsock32.dll" Alias "WSACleanup" () As Long Private Declare Function apiInetAddr Lib "wsock32.dll" Alias "inet_addr" (ByVal s As String) As Long Private Declare Function apiGetHostByAddr Lib "wsock32.dll" Alias "gethostbyaddr" (haddr As Long, ByVal hnlen As Long, ByVal addrtype As Long) As Long Private Declare Function apiGetHostName Lib "wsock32.dll" Alias "gethostname" (ByVal hostname$, ByVal HostLen As Integer) As Long '// private functions Private Function InitializeSocket() As Boolean Dim WSAD As WSADATA 'attempt to initialize the socket InitializeSocket = apiWSAStartup(WS_VERSION_REQD, WSAD) = IP_SUCCESS End Function Private Sub CloseSocket() 'try to close the socket If apiWSACleanup() <> 0 Then MsgBox "Error calling apiWSACleanup.", vbCritical End If End Sub Public Function GetIPFromHostName(ByVal sHostName As String) As String 'converts a host name to an IP address. Dim nBytes As Long Dim ptrHosent As Long Dim hstHost As HOSTENT Dim ptrName As Long Dim ptrAddress As Long Dim ptrIPAddress As Long Dim sAddress As String 'declare this as Dim sAddress(1) As String if you want 2 ip addresses returned 'try to initalize the socket If InitializeSocket() = True Then 'try to get the IP ptrHosent = apiGetHostByName(sHostName & vbNullChar) If ptrHosent <> 0 Then 'get the IP address apiCopyMemory hstHost, ByVal ptrHosent, LenB(hstHost) apiCopyMemory ptrIPAddress, ByVal hstHost.hAddrList, 4 'fill buffer sAddress = Space$(4) 'if you want multiple domains returned, 'fill all items in sAddress array with 4 spaces apiCopyMemory ByVal sAddress, ByVal ptrIPAddress, hstHost.hLength 'change this to 'CopyMemory ByVal sAddress(0), ByVal ptrIPAddress, hstHost.hLength 'if you want an array of ip addresses returned '(some domains have more than one ip address associated with it) 'get the IP address GetIPFromHostName = IPToText(sAddress) 'if you are using multiple addresses, you need IPToText(sAddress(0)) & "," & IPToText(sAddress(1)) 'etc End If Else MsgBox "Failed to open Socket." End If End Function Private Function IPToText(ByVal IPAddress As String) As String 'converts characters to numbers IPToText = CStr(Asc(IPAddress)) & "." & _ CStr(Asc(Mid$(IPAddress, 2, 1))) & "." & _ CStr(Asc(Mid$(IPAddress, 3, 1))) & "." & _ CStr(Asc(Mid$(IPAddress, 4, 1))) End Function Public Function GetHostNameFromIP(ByVal sIPAddress As String) As String Dim ptrHosent As Long Dim hAddress As Long Dim sHost As String Dim nBytes As Long 'try to open the socket If InitializeSocket() = True Then 'convert string address to long datatype hAddress = apiInetAddr(sIPAddress) 'check if an error ocucred If hAddress <> SOCKET_ERROR Then 'obtain a pointer to the HOSTENT structure 'that contains the name and address 'corresponding to the given network address. ptrHosent = apiGetHostByAddr(hAddress, 4, AF_INET) If ptrHosent <> 0 Then 'convert address and 'get resolved hostname apiCopyMemory ptrHosent, ByVal ptrHosent, 4 nBytes = apiStrLen(ByVal ptrHosent) If nBytes > 0 Then 'fill the IP address buffer sHost = Space$(nBytes) apiCopyMemory ByVal sHost, ByVal ptrHosent, nBytes GetHostNameFromIP = sHost End If Else MsgBox "Call to gethostbyaddr failed." End If 'close the socket CloseSocket Else MsgBox "Invalid IP address" End If Else MsgBox "Failed to open Socket" End If End Function Public Function GetMyHostName() As String 'Finds local HostName Dim strHostname As String Dim lngHostLen As Long 'try to initalize the socket If InitializeSocket() = True Then lngHostLen = 256 strHostname = Space$(lngHostLen) If apiGetHostName(strHostname, lngHostLen) = SOCKET_ERROR Then MsgBox "Windows Sockets error getting Host Name" Else strHostname = Trim$(strHostname) strHostname = Left$(strHostname, Len(strHostname) - 1) End If Else MsgBox "Failed to open Socket." End If GetMyHostName = strHostname End Function Public Function GetMyIPAddress() As String GetMyIPAddress = GetIPFromHostName(GetMyHostName) End Function Cheers, Stuart On 29 Jun 2009 at 12:37, jwcolby wrote: > LOL, but you still have to know your own IP address. We got into this one time, with Hamachi, VMs, > multiple NICS etc. it is difficult to determine what my own IP address is. > > John W. Colby > www.ColbyConsulting.com > > > Gustav Brock wrote: > > Hi John > > > > Ask the application to send you a syslog message! > > Then you can read the sender address or hostname. > > > > /gustav > > > > > >>>> jwcolby at colbyconsulting.com 29-06-2009 17:52 >>> > > Hmm... > > > > Looks quite cool. > > > > My mind is a raging torrent, flooded with rivulets of thought cascading into a waterfall of creative > > alternatives. > > > > Now... how do we determine the IP address of every machine using an Access application on the local LAN? > > > > John W. Colby > > www.ColbyConsulting.com > > > > > > Susan Harkins wrote: > >> <http://www.devx.com:80/vb/Article/42242/0/page/1> > >> > >> I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so > >> proud... yet another ones passes safely to single author status. :) > >> > >> Susan H. > > > > > > > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From stuart at lexacorp.com.pg Mon Jun 29 17:03:15 2009 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 30 Jun 2009 08:03:15 +1000 Subject: [dba-VB] Syslogs In-Reply-To: <4a4907dc.1c07d00a.2f2c.1e5d@mx.google.com> References: <sa492274.073@cactus.dk>, <4a4907dc.1c07d00a.2f2c.1e5d@mx.google.com> Message-ID: <4A493A23.19773.18570D48@stuart.lexacorp.com.pg> The Winsock control is a ActiveX interface to the system Winsock.dll and needs to be installed/registered on each machiine. That's why I never use the Winsock control, I use API calls instead - that way it just works without needing to instal anything. See the Class I've just posted for example. -- Stuart On 29 Jun 2009 at 19:28, Max Wanadoo wrote: > So, John's question appears to have the answer "No, not to Access and not to > Vista" > > It needs to be registered..am I correct? > > Max > > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: 29 June 2009 19:22 > To: dba-vb at databaseadvisors.com > Subject: Re: [dba-VB] Syslogs > > Hi John > > Join Max and read the article ... same paragraph. > > http://www.devx.com:80/vb/Article/42242/0/page/1 > > <quote> > The actual transmission of syslog messages between your application and > Windows is left to the WinSock Control, which came with Visual Basic 6 and > some old versions of the Access Developer Tools. Further, you can download > the control from several places, which include tools to correct a corrupted > install. > </quote> > > /gustav > > > >>> jwcolby at colbyconsulting.com 29-06-2009 20:11 >>> > Does this imply that the winsock control is not native to Access? > > John W. Colby > www.ColbyConsulting.com > > > Max Wanadoo wrote: > > Yes that cured it. I used the one included with the download. > > > > The demo form seems to work, but I don't receive any msg at localhost > > > > Get back to you on the others. > > > > Max > > > > > > > > -----Original Message----- > > From: dba-vb-bounces at databaseadvisors.com > > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > > Sent: 29 June 2009 18:08 > > To: dba-vb at databaseadvisors.com > > Subject: Re: [dba-VB] Syslogs > > > > Hi Max > > > > The paragraph on page 1, "The WinSock Control", is for you. > > You need both the license and the "compatibility". > > > > Thank you to MS and IE and the "Compatibility" flag. > > > > /gustav > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From max.wanadoo at gmail.com Tue Jun 30 03:36:28 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Tue, 30 Jun 2009 09:36:28 +0100 Subject: [dba-VB] Syslogs In-Reply-To: <cda8f54e0906300130p4a19b7f0gc99adb2cffc9e84d@mail.gmail.com> References: <sa490735.064@cactus.dk> <4A48EDCB.50706@colbyconsulting.com> <4A49391E.21194.1853145A@stuart.lexacorp.com.pg> <cda8f54e0906300130p4a19b7f0gc99adb2cffc9e84d@mail.gmail.com> Message-ID: <cda8f54e0906300136m7d729aaave8e5e09ae501a0a@mail.gmail.com> On Tue, Jun 30, 2009 at 9:30 AM, Max Wanadoo <max.wanadoo at gmail.com> wrote: > Stuart, > That works brilliantly on my system. > Thanks > Max > ps reposted because the previous reply bombed out with regard to size. > > > On Mon, Jun 29, 2009 at 10:58 PM, Stuart McLachlan <stuart at lexacorp.com.pg > > wrote: > >> Here's a little VB/VBA class to handle Hostnames and IP Addresses. >> It works fine in Access >> > From Gustav at cactus.dk Tue Jun 30 06:50:55 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 30 Jun 2009 13:50:55 +0200 Subject: [dba-VB] Syslogs Message-ID: <sa4a1857.085@cactus.dk> Hi John (and Max) If you download the code, a whole module is for resolving IP address and hostname. Nothing rocket science but refined for the purpose. It even features a static collection inspired by your sales talk on collections. The key function is this: <code> Private Function GetIPFromHostName( _ ByVal strHostname As String) _ As String ' Converts a host name to its IP address. ' ' If strHostname ' - is zero length, local IP address is returned. ' - is "localhost", IP address 127.0.0.1 is returned. ' - cannot be resolved, unknown IP address 0.0.0.0 is returned. Const clngAddressNone As Long = 0 ' The Address is offset 12 bytes from the ' start of the HOSENT structure. Const clngAddressOffset As Long = 12 ' Size of address part. Const clngAddressChunk As Long = 4 ' Address to return if none found. Const cstrAddressZero As String = "0.0.0.0" ' Address of HOSENT structure. Dim ptrHosent As Long ' Address of name pointer. Dim ptrName As Long ' Address of address pointer. Dim ptrAddress As Long Dim ptrIPAddress As Long Dim ptrIPAddress2 As Long Dim stzHostName As String Dim strAddress As String stzHostName = strHostname & vbNullChar ptrHosent = GetHostByName(stzHostName) If ptrHosent = clngAddressNone Then ' Return address zero. strAddress = cstrAddressZero Else ' Assign pointer addresses and offset Null-terminated list ' of addresses for the host. ' Note: ' We are retrieving only the first address returned. ' To return more than one, define strAddress as a string array ' and loop through the 4-byte ptrIPAddress members returned. ' The last item is a terminating null. ' All addresses are returned in network byte order. ptrAddress = ptrHosent + clngAddressOffset ' Get the IP address. CopyMemory ptrAddress, ByVal ptrAddress, clngAddressChunk CopyMemory ptrIPAddress, ByVal ptrAddress, clngAddressChunk CopyMemory ptrIPAddress2, ByVal ptrIPAddress, clngAddressChunk strAddress = GetInetStrFromPtr(ptrIPAddress2) End If GetIPFromHostName = strAddress End Function </code> Problem is that you may have more than one adapter. As stated, this function lists only one which typically is the NIC for your LAN. Another function reads this out: <code> Public Function MachineHostAddress( _ Optional ByVal strHostname As String) _ As String ' Retrieves IP address of the machine with the host name ' strHostname. ' If a zero length host name or no host name is passed, the ' address of this machine is returned. ' If host name localhost is passed, 127.0.0.1 is returned. ' If the host name cannot be resolved, 0.0.0.0 is returned. ' ' The host addresses are preserved in a static collection to ' reduce look up time for repeated calls. ' If strHostname is an empty string, the local host address ' will be looked up. ' However, an empty string cannot be a key in a collection. ' Use this key to store the local host address. Const cstrKeyThisHost As String = " " Static colAddress As New Collection Dim strIpAddress As String ' Ignore error when looking up a key in collection ' colAddress that does not exist. On Error Resume Next If Len(strHostname) = 0 Then strHostname = cstrKeyThisHost End If strIpAddress = colAddress.Item(strHostname) ' If strHostname is not found, an error is raised. If Err.Number <> 0 Then ' This host name has not been looked up previously. If WinSocketsStart() = True Then ' Obtain the host address. ' Trim strHostname to pass a zero length string when ' looking up the address of the local host. strIpAddress = GetIPFromHostName(Trim(strHostname)) ' Store the host address. colAddress.Add strIpAddress, strHostname Call WinSocketsClean End If End If MachineHostAddress = strIpAddress End Function </code> For the helper functions, download the full code. However, no function is included to reveal the subnet mask. The only "human" method I can locate for this purpose is to look up the registry: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces Browse these for the key DhcpIPAddress - or, if this is not found, IPAddress - to locate the interface that matches the IP address you retrieved. When matched, look up the key DhcpSubnetMask - or SubnetMask - to obtain the current subnet mask. Armed with this - your IP address and subnet mask - you can easily calculate the list of possible IP address on the current LAN. /gustav >>> Gustav at cactus.dk 29-06-2009 20:34 >>> Hi John As explained in the article on how to create a kind of confirmation system, you could set up a simple two-way system with a single syslog app broadcasting at low frequency "Here I am, and if you are an app from JC, record my address and report back". Your app, when running at the user, would pick up that message and send back a message for the syslog app to collect the addresses of currently running application copies. When a user signs off, after a time-out the syslog app realizes that this copy is off and removes it from the list. Thus, a current list of active applications can be maintained and they can communicate for whatever reason you decide. Note that communication between machines can really be done in many ways, it is just that syslog is an established standard for simple text messages of about 1K, and if that fits, why reinvent the wheel? /gustav >>> jwcolby at colbyconsulting.com 29-06-2009 20:05 >>> Gustav, As I mentioned, I have been looking for something like this for years, however everyone has to have a list of IPs that can be used with it to make it useful. I suppose I could kind of bootstrap this thing. The server address could be found by manual observation, then logged in a table along with the machine name. Each application FE instance looks and sends a message that it is logged in. The RECEIVER grabs the IP address and looks it up in the table. If not there it stores the IP in the table. Of course then the machine name has to be included in the message. I suppose that I could develop a message library, such that every time an application it fires a LOGIN message to everyone already in the table. The login message has a machine name as the data and apparently this widget automatically gets the IP address. My clients rarely have more than 25 or so workstations running the application so this shouldn't cause too much grief. Thus anyone listening logs the new person's data into the table if it isn't already there. Kind of crude but that allows any single running application (that you can manually get the IP for) to bootstrap the system and build the list of IPs and machine names. John W. Colby www.ColbyConsulting.com From jwcolby at colbyconsulting.com Tue Jun 30 06:59:11 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 30 Jun 2009 07:59:11 -0400 Subject: [dba-VB] SPAM-LOW: Re: Syslogs In-Reply-To: <sa4a1857.085@cactus.dk> References: <sa4a1857.085@cactus.dk> Message-ID: <4A49FE0F.9060806@colbyconsulting.com> ROTFL. Me? SALES? Bite your tongue you scalliwag. John W. Colby www.ColbyConsulting.com Gustav Brock wrote: > Hi John (and Max) > > If you download the code, a whole module is for resolving IP address and hostname. Nothing rocket science but refined for the purpose. > It even features a static collection inspired by your sales talk on collections. > > The key function is this: > > <code> > Private Function GetIPFromHostName( _ > ByVal strHostname As String) _ > As String > > ' Converts a host name to its IP address. > ' > ' If strHostname > ' - is zero length, local IP address is returned. > ' - is "localhost", IP address 127.0.0.1 is returned. > ' - cannot be resolved, unknown IP address 0.0.0.0 is returned. > > Const clngAddressNone As Long = 0 > ' The Address is offset 12 bytes from the > ' start of the HOSENT structure. > Const clngAddressOffset As Long = 12 > ' Size of address part. > Const clngAddressChunk As Long = 4 > ' Address to return if none found. > Const cstrAddressZero As String = "0.0.0.0" > > ' Address of HOSENT structure. > Dim ptrHosent As Long > ' Address of name pointer. > Dim ptrName As Long > ' Address of address pointer. > Dim ptrAddress As Long > Dim ptrIPAddress As Long > Dim ptrIPAddress2 As Long > Dim stzHostName As String > Dim strAddress As String > > stzHostName = strHostname & vbNullChar > ptrHosent = GetHostByName(stzHostName) > > If ptrHosent = clngAddressNone Then > ' Return address zero. > strAddress = cstrAddressZero > Else > ' Assign pointer addresses and offset Null-terminated list > ' of addresses for the host. > ' Note: > ' We are retrieving only the first address returned. > ' To return more than one, define strAddress as a string array > ' and loop through the 4-byte ptrIPAddress members returned. > ' The last item is a terminating null. > ' All addresses are returned in network byte order. > ptrAddress = ptrHosent + clngAddressOffset > > ' Get the IP address. > CopyMemory ptrAddress, ByVal ptrAddress, clngAddressChunk > CopyMemory ptrIPAddress, ByVal ptrAddress, clngAddressChunk > CopyMemory ptrIPAddress2, ByVal ptrIPAddress, clngAddressChunk > > strAddress = GetInetStrFromPtr(ptrIPAddress2) > End If > > GetIPFromHostName = strAddress > > End Function > </code> > > Problem is that you may have more than one adapter. As stated, this function lists only one which typically is the NIC for your LAN. > Another function reads this out: > > <code> > Public Function MachineHostAddress( _ > Optional ByVal strHostname As String) _ > As String > > ' Retrieves IP address of the machine with the host name > ' strHostname. > ' If a zero length host name or no host name is passed, the > ' address of this machine is returned. > ' If host name localhost is passed, 127.0.0.1 is returned. > ' If the host name cannot be resolved, 0.0.0.0 is returned. > ' > ' The host addresses are preserved in a static collection to > ' reduce look up time for repeated calls. > > ' If strHostname is an empty string, the local host address > ' will be looked up. > ' However, an empty string cannot be a key in a collection. > ' Use this key to store the local host address. > Const cstrKeyThisHost As String = " " > > Static colAddress As New Collection > > Dim strIpAddress As String > > ' Ignore error when looking up a key in collection > ' colAddress that does not exist. > On Error Resume Next > > If Len(strHostname) = 0 Then > strHostname = cstrKeyThisHost > End If > strIpAddress = colAddress.Item(strHostname) > ' If strHostname is not found, an error is raised. > If Err.Number <> 0 Then > ' This host name has not been looked up previously. > If WinSocketsStart() = True Then > ' Obtain the host address. > ' Trim strHostname to pass a zero length string when > ' looking up the address of the local host. > strIpAddress = GetIPFromHostName(Trim(strHostname)) > ' Store the host address. > colAddress.Add strIpAddress, strHostname > > Call WinSocketsClean > End If > End If > > MachineHostAddress = strIpAddress > > End Function > </code> > > For the helper functions, download the full code. > > However, no function is included to reveal the subnet mask. The only "human" method I can locate for this purpose is to look up the registry: > > HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces > > Browse these for the key DhcpIPAddress - or, if this is not found, IPAddress - to locate the interface that matches the IP address you retrieved. > When matched, look up the key DhcpSubnetMask - or SubnetMask - to obtain the current subnet mask. > > Armed with this - your IP address and subnet mask - you can easily calculate the list of possible IP address on the current LAN. > > /gustav > > >>>> Gustav at cactus.dk 29-06-2009 20:34 >>> > Hi John > > As explained in the article on how to create a kind of confirmation system, you could set up a simple two-way system with a single syslog app broadcasting at low frequency "Here I am, and if you are an app from JC, record my address and report back". Your app, when running at the user, would pick up that message and send back a message for the syslog app to collect the addresses of currently running application copies. When a user signs off, after a time-out the syslog app realizes that this copy is off and removes it from the list. Thus, a current list of active applications can be maintained and they can communicate for whatever reason you decide. > > Note that communication between machines can really be done in many ways, it is just that syslog is an established standard for simple text messages of about 1K, and if that fits, why reinvent the wheel? > > /gustav > > >>>> jwcolby at colbyconsulting.com 29-06-2009 20:05 >>> > Gustav, > > As I mentioned, I have been looking for something like this for years, however everyone has to have > a list of IPs that can be used with it to make it useful. > > I suppose I could kind of bootstrap this thing. The server address could be found by manual > observation, then logged in a table along with the machine name. Each application FE instance looks > and sends a message that it is logged in. The RECEIVER grabs the IP address and looks it up in the > table. If not there it stores the IP in the table. Of course then the machine name has to be > included in the message. > > I suppose that I could develop a message library, such that every time an application it fires a > LOGIN message to everyone already in the table. The login message has a machine name as the data > and apparently this widget automatically gets the IP address. My clients rarely have more than 25 > or so workstations running the application so this shouldn't cause too much grief. Thus anyone > listening logs the new person's data into the table if it isn't already there. > > Kind of crude but that allows any single running application (that you can manually get the IP for) > to bootstrap the system and build the list of IPs and machine names. > > John W. Colby > www.ColbyConsulting.com > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From stuart at lexacorp.com.pg Tue Jun 30 08:02:07 2009 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 30 Jun 2009 23:02:07 +1000 Subject: [dba-VB] Syslogs In-Reply-To: <sa4a1857.085@cactus.dk> References: <sa4a1857.085@cactus.dk> Message-ID: <4A4A0CCF.5521.1B8DFD71@stuart.lexacorp.com.pg> On 30 Jun 2009 at 13:50, Gustav Brock wrote: > However, no function is included to reveal the subnet mask. The only "human" method I >can locate for this purpose is to look up the registry: I just found another API call which returns more info including the SubNet mask(s) so I've modified clsResolve to include GetMyIPMask: Option Compare Database Option Explicit '// define constants Private Const IP_SUCCESS As Long = 0 Private Const SOCKET_ERROR As Long = -1 Private Const MAX_WSADescription As Long = 256 Private Const MAX_WSASYSStatus As Long = 128 Private Const MIN_SOCKETS_REQD As Long = 1 Private Const WS_VERSION_REQD As Long = &H101 Private Const WS_VERSION_MAJOR As Long = WS_VERSION_REQD \ &H100 And &HFF& Private Const WS_VERSION_MINOR As Long = WS_VERSION_REQD And &HFF& Private Const WSADescription_Len As Long = 256 Private Const WSASYS_Status_Len As Long = 128 Private Const AF_INET As Long = 2 '// structures Private Type HOSTENT hName As Long hAliases As Long hAddrType As Integer hLength As Integer hAddrList As Long End Type Private Type WSADATA wVersion As Integer wHighVersion As Integer szDescription(0 To MAX_WSADescription) As Byte szSystemStatus(0 To MAX_WSASYSStatus) As Byte wMaxSockets As Long wMaxUDPDG As Long dwVendorInfo As Long End Type Private Type IPINFO dwAddr As Long ' IP address dwIndex As Long ' interface index dwMask As Long ' subnet mask dwBCastAddr As Long ' broadcast address dwReasmSize As Long ' assembly size unused1 As Integer ' not currently used unused2 As Integer '; not currently used End Type Private Type MIB_IPADDRTABLE dEntrys As Long 'number of entries in the table mIPInfo(5) As IPINFO 'array of IP address entries assumes maximum of 5 Interfaces End Type Private Type IP_Array mBuffer As MIB_IPADDRTABLE BufferLen As Long End Type '// api 'kernel32 Private Declare Sub apiCopyMemory Lib "kernel32" Alias "RtlMoveMemory" (xDest As Any, xSource As Any, ByVal nBytes As Long) Private Declare Function apiStrLen Lib "kernel32" Alias "lstrlenA" (lpString As Any) As Long 'wsock32 Private Declare Function apiGetHostByName Lib "wsock32.dll" Alias "gethostbyname" (ByVal hostname As String) As Long Private Declare Function apiWSAStartup Lib "wsock32.dll" Alias "WSAStartup" (ByVal wVersionRequired As Long, lpWSADATA As WSADATA) As Long Private Declare Function apiWSACleanup Lib "wsock32.dll" Alias "WSACleanup" () As Long Private Declare Function apiInetAddr Lib "wsock32.dll" Alias "inet_addr" (ByVal s As String) As Long Private Declare Function apiGetHostByAddr Lib "wsock32.dll" Alias "gethostbyaddr" (haddr As Long, ByVal hnlen As Long, ByVal addrtype As Long) As Long Private Declare Function apiGetHostName Lib "wsock32.dll" Alias "gethostname" (ByVal hostname$, ByVal HostLen As Integer) As Long 'IPHlpAPI Private Declare Function GetIpAddrTable Lib "IPHlpApi" (pIPAdrTable As Byte, pdwSize As Long, ByVal Sort As Long) As Long '// private functions Private Function InitializeSocket() As Boolean Dim WSAD As WSADATA 'attempt to initialize the socket InitializeSocket = apiWSAStartup(WS_VERSION_REQD, WSAD) = IP_SUCCESS End Function Private Sub CloseSocket() 'try to close the socket If apiWSACleanup() <> 0 Then MsgBox "Error calling apiWSACleanup.", vbCritical End If End Sub Public Function GetIPFromHostName(ByVal sHostName As String) As String 'converts a host name to an IP address. Dim nBytes As Long Dim ptrHosent As Long Dim hstHost As HOSTENT Dim ptrName As Long Dim ptrAddress As Long Dim ptrIPAddress As Long Dim sAddress As String 'declare this as Dim sAddress(1) As String if you want 2 ip addresses returned 'try to initalize the socket If InitializeSocket() = True Then 'try to get the IP ptrHosent = apiGetHostByName(sHostName & vbNullChar) If ptrHosent <> 0 Then 'get the IP address apiCopyMemory hstHost, ByVal ptrHosent, LenB(hstHost) apiCopyMemory ptrIPAddress, ByVal hstHost.hAddrList, 4 'fill buffer sAddress = Space$(4) 'if you want multiple domains returned, 'fill all items in sAddress array with 4 spaces apiCopyMemory ByVal sAddress, ByVal ptrIPAddress, hstHost.hLength 'change this to 'CopyMemory ByVal sAddress(0), ByVal ptrIPAddress, hstHost.hLength 'if you want an array of ip addresses returned '(some domains have more than one ip address associated with it) 'get the IP address GetIPFromHostName = IPToText(sAddress) 'if you are using multiple addresses, you need IPToText(sAddress(0)) & "," & IPToText(sAddress(1)) 'etc End If Else MsgBox "Failed to open Socket." End If End Function Private Function IPToText(ByVal IPAddress As String) As String 'converts characters to numbers IPToText = CStr(Asc(IPAddress)) & "." & _ CStr(Asc(Mid$(IPAddress, 2, 1))) & "." & _ CStr(Asc(Mid$(IPAddress, 3, 1))) & "." & _ CStr(Asc(Mid$(IPAddress, 4, 1))) End Function Private Function ConvertAddressToString(longAddr As Long) As String Dim myByte(3) As Byte Dim Cnt As Long CopyMemory myByte(0), longAddr, 4 For Cnt = 0 To 3 ConvertAddressToString = ConvertAddressToString + CStr(myByte(Cnt)) + "." Next Cnt ConvertAddressToString = Left$(ConvertAddressToString, Len(ConvertAddressToString) - 1) End Function Public Function GetHostNameFromIP(ByVal sIPAddress As String) As String Dim ptrHosent As Long Dim hAddress As Long Dim sHost As String Dim nBytes As Long 'try to open the socket If InitializeSocket() = True Then 'convert string address to long datatype hAddress = apiInetAddr(sIPAddress) 'check if an error ocucred If hAddress <> SOCKET_ERROR Then 'obtain a pointer to the HOSTENT structure 'that contains the name and address 'corresponding to the given network address. ptrHosent = apiGetHostByAddr(hAddress, 4, AF_INET) If ptrHosent <> 0 Then 'convert address and 'get resolved hostname apiCopyMemory ptrHosent, ByVal ptrHosent, 4 nBytes = apiStrLen(ByVal ptrHosent) If nBytes > 0 Then 'fill the IP address buffer sHost = Space$(nBytes) apiCopyMemory ByVal sHost, ByVal ptrHosent, nBytes GetHostNameFromIP = sHost End If Else MsgBox "Call to gethostbyaddr failed." End If 'close the socket CloseSocket Else MsgBox "Invalid IP address" End If Else MsgBox "Failed to open Socket" End If End Function Public Function GetMyHostName() As String 'Finds local HostName Dim strHostname As String Dim lngHostLen As Long 'try to initalize the socket If InitializeSocket() = True Then lngHostLen = 256 strHostname = Space$(lngHostLen) If apiGetHostName(strHostname, lngHostLen) = SOCKET_ERROR Then MsgBox "Windows Sockets error getting Host Name" Else strHostname = Trim$(strHostname) strHostname = Left$(strHostname, Len(strHostname) - 1) End If Else MsgBox "Failed to open Socket." End If GetMyHostName = strHostname End Function Public Function GetMyIPAddress() As String GetMyIPAddress = GetIPFromHostName(GetMyHostName) End Function Public Function GetMyIPMask() Dim Ret As Long Dim bBytes() As Byte Dim tel As Long Dim Listing As MIB_IPADDRTABLE On Error GoTo END1 GetIpAddrTable ByVal 0&, Ret, True If Ret <= 0 Then Exit Function ReDim bBytes(0 To Ret - 1) As Byte 'retrieve the data GetIpAddrTable bBytes(0), Ret, False 'Get the first 4 bytes to get the entry's.. ip installed CopyMemory Listing.dEntrys, bBytes(0), 4 'Copy whole structure to Listing and return for Adapter 1 (Adapter 0 = Loopback) CopyMemory Listing.mIPInfo(1), bBytes(4 + (Len(Listing.mIPInfo(0)))), Len(Listing.mIPInfo(1)) GetIPMask = ConvertAddressToString(Listing.mIPInfo(1).dwMask) Exit Function END1: MsgBox "Error Resolving Subnet Mask" End Function From DWUTKA at Marlow.com Tue Jun 30 11:28:48 2009 From: DWUTKA at Marlow.com (Drew Wutka) Date: Tue, 30 Jun 2009 11:28:48 -0500 Subject: [dba-VB] Syslogs In-Reply-To: <4A48EDCB.50706@colbyconsulting.com> References: <sa490735.064@cactus.dk> <4A48EDCB.50706@colbyconsulting.com> Message-ID: <A5615CBECEC42E4791D7A7C724E1E9B2024478C6@MIEXCH.Marlow.ii-vi.net> There are several ways to get your IP address. Two I've used is to use a Winsock control, and look at the local host IP. Another relatively easy way is to dump the results of IPCONFIG to a text file. Create a .bat file (call it iptest.bat) and put the following line in it: Ipconfig >C:\ip.txt Then using ShellWait (http://mvps.org/access/api/api0004.htm) Use this function: Function IPAddresses() As String Dim f As Long Dim strTemp As String Dim strArray() As String If Dir("C:\ip.txt") <> "" Then Kill "C:\ip.txt" ShellWait "C:\iptest.bat" f = FreeFile Open "C:\ip.txt" For Binary Access Read As f strTemp = Space(LOF(f)) Get f, , strTemp Close f strArray = Split(strTemp, vbCrLf) strTemp = "" For f = 0 To UBound(strArray) If InStr(1, strArray(f), "IPv4", vbTextCompare) > 0 Or InStr(1, strArray(f), " IP Address", vbTextCompare) > 0 Then strTemp = strTemp & Trim(Mid(strArray(f), InStr(1, strArray(f), ":", vbBinaryCompare) + 1)) & ";" End If Next f If Len(strTemp) > 0 Then strTemp = Left(strTemp, Len(strTemp) - 1) IPAddresses = strTemp End Function Whalla, IPAddresses will return as a semicolon delimited string. (Obviously you could return an array or create a collection too...either way....) Drew -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Monday, June 29, 2009 11:38 AM To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Syslogs LOL, but you still have to know your own IP address. We got into this one time, with Hamachi, VMs, multiple NICS etc. it is difficult to determine what my own IP address is. John W. Colby www.ColbyConsulting.com Gustav Brock wrote: > Hi John > > Ask the application to send you a syslog message! > Then you can read the sender address or hostname. > > /gustav > > >>>> jwcolby at colbyconsulting.com 29-06-2009 17:52 >>> > Hmm... > > Looks quite cool. > > My mind is a raging torrent, flooded with rivulets of thought cascading into a waterfall of creative > alternatives. > > Now... how do we determine the IP address of every machine using an Access application on the local LAN? > > John W. Colby > www.ColbyConsulting.com > > > Susan Harkins wrote: >> <http://www.devx.com:80/vb/Article/42242/0/page/1> >> >> I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so >> proud... yet another ones passes safely to single author status. :) >> >> Susan H. > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From jwcolby at colbyconsulting.com Tue Jun 30 11:43:40 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 30 Jun 2009 12:43:40 -0400 Subject: [dba-VB] Syslogs In-Reply-To: <A5615CBECEC42E4791D7A7C724E1E9B2024478C6@MIEXCH.Marlow.ii-vi.net> References: <sa490735.064@cactus.dk> <4A48EDCB.50706@colbyconsulting.com> <A5615CBECEC42E4791D7A7C724E1E9B2024478C6@MIEXCH.Marlow.ii-vi.net> Message-ID: <4A4A40BC.6060905@colbyconsulting.com> Yes, but then you have to do more. IPConfig shows several IP addresses on my work laptop. One is the wireless, which only works when in range of a wireless network, one is a physical NIC, and one is a Hamachi IP. There could be even more. On my server I have two physical NICS and in theory each could have asked for an IP address. So would the REAL IP address please stand up. John W. Colby www.ColbyConsulting.com Drew Wutka wrote: > There are several ways to get your IP address. Two I've used is to use > a Winsock control, and look at the local host IP. > > Another relatively easy way is to dump the results of IPCONFIG to a text > file. > > Create a .bat file (call it iptest.bat) and put the following line in > it: > > Ipconfig >C:\ip.txt > > Then using ShellWait (http://mvps.org/access/api/api0004.htm) > > Use this function: > > Function IPAddresses() As String > Dim f As Long > Dim strTemp As String > Dim strArray() As String > If Dir("C:\ip.txt") <> "" Then Kill "C:\ip.txt" > ShellWait "C:\iptest.bat" > f = FreeFile > Open "C:\ip.txt" For Binary Access Read As f > strTemp = Space(LOF(f)) > Get f, , strTemp > Close f > strArray = Split(strTemp, vbCrLf) > strTemp = "" > For f = 0 To UBound(strArray) > If InStr(1, strArray(f), "IPv4", vbTextCompare) > 0 Or InStr(1, > strArray(f), " IP Address", vbTextCompare) > 0 Then > strTemp = strTemp & Trim(Mid(strArray(f), InStr(1, strArray(f), > ":", vbBinaryCompare) + 1)) & ";" > End If > Next f > If Len(strTemp) > 0 Then strTemp = Left(strTemp, Len(strTemp) - 1) > IPAddresses = strTemp > End Function > > Whalla, IPAddresses will return as a semicolon delimited string. > (Obviously you could return an array or create a collection too...either > way....) > > Drew From DWUTKA at Marlow.com Tue Jun 30 11:44:05 2009 From: DWUTKA at Marlow.com (Drew Wutka) Date: Tue, 30 Jun 2009 11:44:05 -0500 Subject: [dba-VB] Messaging For JWC WAS: Syslogs In-Reply-To: <4A49027A.5000604@colbyconsulting.com> References: <sa490e7e.066@cactus.dk> <4A49027A.5000604@colbyconsulting.com> Message-ID: <A5615CBECEC42E4791D7A7C724E1E9B2024478C9@MIEXCH.Marlow.ii-vi.net> Is this something you really want? It would be pretty simple to create an OCX that you could have on a hidden form, that would 'see' all running instances of your application, and be able to 'communicate' to them. There is one quirk. It'll work on a standard network. However, if your network is subnetted, it would only 'see' what's in the local subnet (because the best way to do this is to send out a broadcast 'hello' and 'goodbye' message). To work with a subnetted network, you'd have to come up with a 'server/client' scenario, so the server would see all the connected users (sort of like a custom DNS server). If you aren't worried about a subnetted network, let me know, I am pretty sure I can whip up an OCX to do what you want. Drew -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Monday, June 29, 2009 1:06 PM To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] SPAM-LOW: Re: Syslogs Gustav, As I mentioned, I have been looking for something like this for years, however everyone has to have a list of IPs that can be used with it to make it useful. I suppose I could kind of bootstrap this thing. The server address could be found by manual observation, then logged in a table along with the machine name. Each application FE instance looks and sends a message that it is logged in. The RECEIVER grabs the IP address and looks it up in the table. If not there it stores the IP in the table. Of course then the machine name has to be included in the message. I suppose that I could develop a message library, such that every time an application it fires a LOGIN message to everyone already in the table. The login message has a machine name as the data and apparently this widget automatically gets the IP address. My clients rarely have more than 25 or so workstations running the application so this shouldn't cause too much grief. Thus anyone listening logs the new person's data into the table if it isn't already there. Kind of crude but that allows any single running application (that you can manually get the IP for) to bootstrap the system and build the list of IPs and machine names. John W. Colby www.ColbyConsulting.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From DWUTKA at Marlow.com Tue Jun 30 11:49:15 2009 From: DWUTKA at Marlow.com (Drew Wutka) Date: Tue, 30 Jun 2009 11:49:15 -0500 Subject: [dba-VB] Syslogs In-Reply-To: <4A4A40BC.6060905@colbyconsulting.com> References: <sa490735.064@cactus.dk> <4A48EDCB.50706@colbyconsulting.com><A5615CBECEC42E4791D7A7C724E1E9B2024478C6@MIEXCH.Marlow.ii-vi.net> <4A4A40BC.6060905@colbyconsulting.com> Message-ID: <A5615CBECEC42E4791D7A7C724E1E9B2024478CA@MIEXCH.Marlow.ii-vi.net> Actually, if you have an IP address, it is real. It then gets into what it is used for. For example, with your wireless, if it's not connected, it won't have an IP address. If a standard NIC is not connected, it will show no address. If it IS connected, but not receiving an IP address, it will default to a (I think) 169 something, which is a hard coded address, which means nothing. You can also have internal addresses such as 127.0.0.1, which is a loopback to your local machine. (so if you are running a website, putting in http://127.0.0.1 on the server will give you the local website). Drew -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, June 30, 2009 11:44 AM To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Syslogs Yes, but then you have to do more. IPConfig shows several IP addresses on my work laptop. One is the wireless, which only works when in range of a wireless network, one is a physical NIC, and one is a Hamachi IP. There could be even more. On my server I have two physical NICS and in theory each could have asked for an IP address. So would the REAL IP address please stand up. John W. Colby www.ColbyConsulting.com Drew Wutka wrote: > There are several ways to get your IP address. Two I've used is to use > a Winsock control, and look at the local host IP. > > Another relatively easy way is to dump the results of IPCONFIG to a text > file. > > Create a .bat file (call it iptest.bat) and put the following line in > it: > > Ipconfig >C:\ip.txt > > Then using ShellWait (http://mvps.org/access/api/api0004.htm) > > Use this function: > > Function IPAddresses() As String > Dim f As Long > Dim strTemp As String > Dim strArray() As String > If Dir("C:\ip.txt") <> "" Then Kill "C:\ip.txt" > ShellWait "C:\iptest.bat" > f = FreeFile > Open "C:\ip.txt" For Binary Access Read As f > strTemp = Space(LOF(f)) > Get f, , strTemp > Close f > strArray = Split(strTemp, vbCrLf) > strTemp = "" > For f = 0 To UBound(strArray) > If InStr(1, strArray(f), "IPv4", vbTextCompare) > 0 Or InStr(1, > strArray(f), " IP Address", vbTextCompare) > 0 Then > strTemp = strTemp & Trim(Mid(strArray(f), InStr(1, strArray(f), > ":", vbBinaryCompare) + 1)) & ";" > End If > Next f > If Len(strTemp) > 0 Then strTemp = Left(strTemp, Len(strTemp) - 1) > IPAddresses = strTemp > End Function > > Whalla, IPAddresses will return as a semicolon delimited string. > (Obviously you could return an array or create a collection too...either > way....) > > Drew _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From Gustav at cactus.dk Tue Jun 30 11:49:08 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 30 Jun 2009 18:49:08 +0200 Subject: [dba-VB] Syslogs Message-ID: <sa4a5e36.093@cactus.dk> Hi John But ... didn't you read the article or at least download the code? It's all in there - in the module: basWinAPI_Hostname /gustav >>> jwcolby at colbyconsulting.com 30-06-2009 18:43 >>> Yes, but then you have to do more. IPConfig shows several IP addresses on my work laptop. One is the wireless, which only works when in range of a wireless network, one is a physical NIC, and one is a Hamachi IP. There could be even more. On my server I have two physical NICS and in theory each could have asked for an IP address. So would the REAL IP address please stand up. John W. Colby www.ColbyConsulting.com From max.wanadoo at gmail.com Tue Jun 30 11:54:23 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Tue, 30 Jun 2009 17:54:23 +0100 Subject: [dba-VB] Syslogs In-Reply-To: <4A4A40BC.6060905@colbyconsulting.com> References: <sa490735.064@cactus.dk> <4A48EDCB.50706@colbyconsulting.com> <A5615CBECEC42E4791D7A7C724E1E9B2024478C6@MIEXCH.Marlow.ii-vi.net> <4A4A40BC.6060905@colbyconsulting.com> Message-ID: <4a4a4344.1c05d00a.0f8b.4804@mx.google.com> John, going with what Stuart posted earlier. I integrated it into my work FE and it works great. What I have to do now is to get each FE to run the code on startup, post the resultant IP and Host into my Login Table and BINGO. When they log off, i just remove the entries from the LoginTable if I want to. If I then wanted to (as you do) to send a message I will know who is logged on. You could shell out to NET SEND USER MESSAGE to send the message, for example Where USER is the returning Hostname from the routine and MESSAGE is the text you want to send. Ie, Net Send Manager Hi'ya georgeous. Ps - I am the manager. Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: 30 June 2009 17:44 To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Syslogs Yes, but then you have to do more. IPConfig shows several IP addresses on my work laptop. One is the wireless, which only works when in range of a wireless network, one is a physical NIC, and one is a Hamachi IP. There could be even more. On my server I have two physical NICS and in theory each could have asked for an IP address. So would the REAL IP address please stand up. John W. Colby www.ColbyConsulting.com Drew Wutka wrote: > There are several ways to get your IP address. Two I've used is to use > a Winsock control, and look at the local host IP. > > Another relatively easy way is to dump the results of IPCONFIG to a text > file. > > Create a .bat file (call it iptest.bat) and put the following line in > it: > > Ipconfig >C:\ip.txt > > Then using ShellWait (http://mvps.org/access/api/api0004.htm) > > Use this function: > > Function IPAddresses() As String > Dim f As Long > Dim strTemp As String > Dim strArray() As String > If Dir("C:\ip.txt") <> "" Then Kill "C:\ip.txt" > ShellWait "C:\iptest.bat" > f = FreeFile > Open "C:\ip.txt" For Binary Access Read As f > strTemp = Space(LOF(f)) > Get f, , strTemp > Close f > strArray = Split(strTemp, vbCrLf) > strTemp = "" > For f = 0 To UBound(strArray) > If InStr(1, strArray(f), "IPv4", vbTextCompare) > 0 Or InStr(1, > strArray(f), " IP Address", vbTextCompare) > 0 Then > strTemp = strTemp & Trim(Mid(strArray(f), InStr(1, strArray(f), > ":", vbBinaryCompare) + 1)) & ";" > End If > Next f > If Len(strTemp) > 0 Then strTemp = Left(strTemp, Len(strTemp) - 1) > IPAddresses = strTemp > End Function > > Whalla, IPAddresses will return as a semicolon delimited string. > (Obviously you could return an array or create a collection too...either > way....) > > Drew _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From Gustav at cactus.dk Tue Jun 30 12:06:25 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 30 Jun 2009 19:06:25 +0200 Subject: [dba-VB] favicon (was: Syslogs) Message-ID: <sa4a6252.094@cactus.dk> Hi Drew That gives me an idea regarding favicon. I've found that it is sometimes difficult to get IE to understand that a favicon is present and should be displayed. Some common methods are: <!-- Favicon for IE browsers --> <link rel="shortcut icon" href="favicon.ico" /> <!-- Favicon for other browsers --> <link rel="icon" href="favicon.ico" /> This typically doesn't work. These may: <link rel="shortcut icon" href="/favicon.ico" /> mtaulty.com/CommunityServer: <link rel="shortcut icon" type="image/ico" href="/CommunityServer/favicon.ico" /> <link rel="shortcut icon" href="http://www.examplesite.com/favicon.ico" type="image/x-icon" /> The most reliable method I've found is the last - to use the full URL - but it is not nice to have hardcoded strings like these. So how about using your method: <link rel="shortcut icon" href="http://127.0.0.1/favicon.ico" type="image/x-icon" /> or localhost: <link rel="shortcut icon" href="http://localhost/favicon.ico" type="image/x-icon" /> Anyone having experience with this? /gustav >>> DWUTKA at marlow.com 30-06-2009 18:49 >>> Actually, if you have an IP address, it is real. It then gets into what it is used for. For example, with your wireless, if it's not connected, it won't have an IP address. If a standard NIC is not connected, it will show no address. If it IS connected, but not receiving an IP address, it will default to a (I think) 169 something, which is a hard coded address, which means nothing. You can also have internal addresses such as 127.0.0.1, which is a loopback to your local machine. (so if you are running a website, putting in http://127.0.0.1 on the server will give you the local website). Drew From max.wanadoo at gmail.com Tue Jun 30 12:27:46 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Tue, 30 Jun 2009 18:27:46 +0100 Subject: [dba-VB] Syslogs In-Reply-To: <4A4A0CCF.5521.1B8DFD71@stuart.lexacorp.com.pg> References: <sa4a1857.085@cactus.dk> <4A4A0CCF.5521.1B8DFD71@stuart.lexacorp.com.pg> Message-ID: <4a4a4b16.1c05d00a.735a.08ee@mx.google.com> Stuart, this is good stuff. Why would I need to know the subnet mask in the context of finding the IP and Hostname? Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: 30 June 2009 14:02 To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Syslogs On 30 Jun 2009 at 13:50, Gustav Brock wrote: > However, no function is included to reveal the subnet mask. The only "human" method I >can locate for this purpose is to look up the registry: I just found another API call which returns more info including the SubNet mask(s) so I've modified clsResolve to include GetMyIPMask: Option Compare Database Option Explicit '// define constants Private Const IP_SUCCESS As Long = 0 Private Const SOCKET_ERROR As Long = -1 Private Const MAX_WSADescription As Long = 256 Private Const MAX_WSASYSStatus As Long = 128 Private Const MIN_SOCKETS_REQD As Long = 1 Private Const WS_VERSION_REQD As Long = &H101 Private Const WS_VERSION_MAJOR As Long = WS_VERSION_REQD \ &H100 And &HFF& Private Const WS_VERSION_MINOR As Long = WS_VERSION_REQD And &HFF& Private Const WSADescription_Len As Long = 256 Private Const WSASYS_Status_Len As Long = 128 Private Const AF_INET As Long = 2 '// structures Private Type HOSTENT hName As Long hAliases As Long hAddrType As Integer hLength As Integer hAddrList As Long End Type Private Type WSADATA wVersion As Integer wHighVersion As Integer szDescription(0 To MAX_WSADescription) As Byte szSystemStatus(0 To MAX_WSASYSStatus) As Byte wMaxSockets As Long wMaxUDPDG As Long dwVendorInfo As Long End Type Private Type IPINFO dwAddr As Long ' IP address dwIndex As Long ' interface index dwMask As Long ' subnet mask dwBCastAddr As Long ' broadcast address dwReasmSize As Long ' assembly size unused1 As Integer ' not currently used unused2 As Integer '; not currently used End Type Private Type MIB_IPADDRTABLE dEntrys As Long 'number of entries in the table mIPInfo(5) As IPINFO 'array of IP address entries assumes maximum of 5 Interfaces End Type Private Type IP_Array mBuffer As MIB_IPADDRTABLE BufferLen As Long End Type '// api 'kernel32 Private Declare Sub apiCopyMemory Lib "kernel32" Alias "RtlMoveMemory" (xDest As Any, xSource As Any, ByVal nBytes As Long) Private Declare Function apiStrLen Lib "kernel32" Alias "lstrlenA" (lpString As Any) As Long 'wsock32 Private Declare Function apiGetHostByName Lib "wsock32.dll" Alias "gethostbyname" (ByVal hostname As String) As Long Private Declare Function apiWSAStartup Lib "wsock32.dll" Alias "WSAStartup" (ByVal wVersionRequired As Long, lpWSADATA As WSADATA) As Long Private Declare Function apiWSACleanup Lib "wsock32.dll" Alias "WSACleanup" () As Long Private Declare Function apiInetAddr Lib "wsock32.dll" Alias "inet_addr" (ByVal s As String) As Long Private Declare Function apiGetHostByAddr Lib "wsock32.dll" Alias "gethostbyaddr" (haddr As Long, ByVal hnlen As Long, ByVal addrtype As Long) As Long Private Declare Function apiGetHostName Lib "wsock32.dll" Alias "gethostname" (ByVal hostname$, ByVal HostLen As Integer) As Long 'IPHlpAPI Private Declare Function GetIpAddrTable Lib "IPHlpApi" (pIPAdrTable As Byte, pdwSize As Long, ByVal Sort As Long) As Long '// private functions Private Function InitializeSocket() As Boolean Dim WSAD As WSADATA 'attempt to initialize the socket InitializeSocket = apiWSAStartup(WS_VERSION_REQD, WSAD) = IP_SUCCESS End Function Private Sub CloseSocket() 'try to close the socket If apiWSACleanup() <> 0 Then MsgBox "Error calling apiWSACleanup.", vbCritical End If End Sub Public Function GetIPFromHostName(ByVal sHostName As String) As String 'converts a host name to an IP address. Dim nBytes As Long Dim ptrHosent As Long Dim hstHost As HOSTENT Dim ptrName As Long Dim ptrAddress As Long Dim ptrIPAddress As Long Dim sAddress As String 'declare this as Dim sAddress(1) As String if you want 2 ip addresses returned 'try to initalize the socket If InitializeSocket() = True Then 'try to get the IP ptrHosent = apiGetHostByName(sHostName & vbNullChar) If ptrHosent <> 0 Then 'get the IP address apiCopyMemory hstHost, ByVal ptrHosent, LenB(hstHost) apiCopyMemory ptrIPAddress, ByVal hstHost.hAddrList, 4 'fill buffer sAddress = Space$(4) 'if you want multiple domains returned, 'fill all items in sAddress array with 4 spaces apiCopyMemory ByVal sAddress, ByVal ptrIPAddress, hstHost.hLength 'change this to 'CopyMemory ByVal sAddress(0), ByVal ptrIPAddress, hstHost.hLength 'if you want an array of ip addresses returned '(some domains have more than one ip address associated with it) 'get the IP address GetIPFromHostName = IPToText(sAddress) 'if you are using multiple addresses, you need IPToText(sAddress(0)) & "," & IPToText(sAddress(1)) 'etc End If Else MsgBox "Failed to open Socket." End If End Function Private Function IPToText(ByVal IPAddress As String) As String 'converts characters to numbers IPToText = CStr(Asc(IPAddress)) & "." & _ CStr(Asc(Mid$(IPAddress, 2, 1))) & "." & _ CStr(Asc(Mid$(IPAddress, 3, 1))) & "." & _ CStr(Asc(Mid$(IPAddress, 4, 1))) End Function Private Function ConvertAddressToString(longAddr As Long) As String Dim myByte(3) As Byte Dim Cnt As Long CopyMemory myByte(0), longAddr, 4 For Cnt = 0 To 3 ConvertAddressToString = ConvertAddressToString + CStr(myByte(Cnt)) + "." Next Cnt ConvertAddressToString = Left$(ConvertAddressToString, Len(ConvertAddressToString) - 1) End Function Public Function GetHostNameFromIP(ByVal sIPAddress As String) As String Dim ptrHosent As Long Dim hAddress As Long Dim sHost As String Dim nBytes As Long 'try to open the socket If InitializeSocket() = True Then 'convert string address to long datatype hAddress = apiInetAddr(sIPAddress) 'check if an error ocucred If hAddress <> SOCKET_ERROR Then 'obtain a pointer to the HOSTENT structure 'that contains the name and address 'corresponding to the given network address. ptrHosent = apiGetHostByAddr(hAddress, 4, AF_INET) If ptrHosent <> 0 Then 'convert address and 'get resolved hostname apiCopyMemory ptrHosent, ByVal ptrHosent, 4 nBytes = apiStrLen(ByVal ptrHosent) If nBytes > 0 Then 'fill the IP address buffer sHost = Space$(nBytes) apiCopyMemory ByVal sHost, ByVal ptrHosent, nBytes GetHostNameFromIP = sHost End If Else MsgBox "Call to gethostbyaddr failed." End If 'close the socket CloseSocket Else MsgBox "Invalid IP address" End If Else MsgBox "Failed to open Socket" End If End Function Public Function GetMyHostName() As String 'Finds local HostName Dim strHostname As String Dim lngHostLen As Long 'try to initalize the socket If InitializeSocket() = True Then lngHostLen = 256 strHostname = Space$(lngHostLen) If apiGetHostName(strHostname, lngHostLen) = SOCKET_ERROR Then MsgBox "Windows Sockets error getting Host Name" Else strHostname = Trim$(strHostname) strHostname = Left$(strHostname, Len(strHostname) - 1) End If Else MsgBox "Failed to open Socket." End If GetMyHostName = strHostname End Function Public Function GetMyIPAddress() As String GetMyIPAddress = GetIPFromHostName(GetMyHostName) End Function Public Function GetMyIPMask() Dim Ret As Long Dim bBytes() As Byte Dim tel As Long Dim Listing As MIB_IPADDRTABLE On Error GoTo END1 GetIpAddrTable ByVal 0&, Ret, True If Ret <= 0 Then Exit Function ReDim bBytes(0 To Ret - 1) As Byte 'retrieve the data GetIpAddrTable bBytes(0), Ret, False 'Get the first 4 bytes to get the entry's.. ip installed CopyMemory Listing.dEntrys, bBytes(0), 4 'Copy whole structure to Listing and return for Adapter 1 (Adapter 0 = Loopback) CopyMemory Listing.mIPInfo(1), bBytes(4 + (Len(Listing.mIPInfo(0)))), Len(Listing.mIPInfo(1)) GetIPMask = ConvertAddressToString(Listing.mIPInfo(1).dwMask) Exit Function END1: MsgBox "Error Resolving Subnet Mask" End Function _______________________________________________ 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 Jun 30 12:41:36 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 30 Jun 2009 19:41:36 +0200 Subject: [dba-VB] Syslogs Message-ID: <sa4a6a88.095@cactus.dk> Hi Stuart and John Nice Stuart. With your code I was able to browse a little further and found this: http://www.everythingaccess.com/tutorials.asp?ID=Get-all-IP-Addresses-of-your-machine which also uses the API: Public Declare Function GetIpAddrTable Lib "Iphlpapi" (pIPAdrTable As Byte, pdwSize As Long, ByVal Sort As Long) As Long to retrieve a list of the IP addresses of the machine. It has an option to filter out 127.0.0.1 but for some reason not 0.0.0.0 which is an inactive adapter. However, the interesting part is the second reserved or unused part of the IP INFO type. If you include that in your loop, you will see that inactive or unused adapters return an integer value of 35 while the active adapter returns 39. I have no idea of what these numbers mean, but it should be a simple matter to include a filter on value 39 to extract just the active adapter - for John and anyone else. So a revision 1.2 of your class is on its way? /gustav >>> "Stuart McLachlan" <stuart at lexacorp.com.pg> 30-06-2009 15:02 >>> On 30 Jun 2009 at 13:50, Gustav Brock wrote: > However, no function is included to reveal the subnet mask. The only "human" method I >can locate for this purpose is to look up the registry: I just found another API call which returns more info including the SubNet mask(s) so I've modified clsResolve to include GetMyIPMask: Option Compare Database Option Explicit '// define constants Private Const IP_SUCCESS As Long = 0 Private Const SOCKET_ERROR As Long = -1 Private Const MAX_WSADescription As Long = 256 Private Const MAX_WSASYSStatus As Long = 128 Private Const MIN_SOCKETS_REQD As Long = 1 Private Const WS_VERSION_REQD As Long = &H101 Private Const WS_VERSION_MAJOR As Long = WS_VERSION_REQD \ &H100 And &HFF& Private Const WS_VERSION_MINOR As Long = WS_VERSION_REQD And &HFF& Private Const WSADescription_Len As Long = 256 Private Const WSASYS_Status_Len As Long = 128 Private Const AF_INET As Long = 2 '// structures Private Type HOSTENT hName As Long hAliases As Long hAddrType As Integer hLength As Integer hAddrList As Long End Type Private Type WSADATA wVersion As Integer wHighVersion As Integer szDescription(0 To MAX_WSADescription) As Byte szSystemStatus(0 To MAX_WSASYSStatus) As Byte wMaxSockets As Long wMaxUDPDG As Long dwVendorInfo As Long End Type Private Type IPINFO dwAddr As Long ' IP address dwIndex As Long ' interface index dwMask As Long ' subnet mask dwBCastAddr As Long ' broadcast address dwReasmSize As Long ' assembly size unused1 As Integer ' not currently used unused2 As Integer '; not currently used End Type Private Type MIB_IPADDRTABLE dEntrys As Long 'number of entries in the table mIPInfo(5) As IPINFO 'array of IP address entries assumes maximum of 5 Interfaces End Type Private Type IP_Array mBuffer As MIB_IPADDRTABLE BufferLen As Long End Type '// api 'kernel32 Private Declare Sub apiCopyMemory Lib "kernel32" Alias "RtlMoveMemory" (xDest As Any, xSource As Any, ByVal nBytes As Long) Private Declare Function apiStrLen Lib "kernel32" Alias "lstrlenA" (lpString As Any) As Long 'wsock32 Private Declare Function apiGetHostByName Lib "wsock32.dll" Alias "gethostbyname" (ByVal hostname As String) As Long Private Declare Function apiWSAStartup Lib "wsock32.dll" Alias "WSAStartup" (ByVal wVersionRequired As Long, lpWSADATA As WSADATA) As Long Private Declare Function apiWSACleanup Lib "wsock32.dll" Alias "WSACleanup" () As Long Private Declare Function apiInetAddr Lib "wsock32.dll" Alias "inet_addr" (ByVal s As String) As Long Private Declare Function apiGetHostByAddr Lib "wsock32.dll" Alias "gethostbyaddr" (haddr As Long, ByVal hnlen As Long, ByVal addrtype As Long) As Long Private Declare Function apiGetHostName Lib "wsock32.dll" Alias "gethostname" (ByVal hostname$, ByVal HostLen As Integer) As Long 'IPHlpAPI Private Declare Function GetIpAddrTable Lib "IPHlpApi" (pIPAdrTable As Byte, pdwSize As Long, ByVal Sort As Long) As Long '// private functions Private Function InitializeSocket() As Boolean Dim WSAD As WSADATA 'attempt to initialize the socket InitializeSocket = apiWSAStartup(WS_VERSION_REQD, WSAD) = IP_SUCCESS End Function Private Sub CloseSocket() 'try to close the socket If apiWSACleanup() <> 0 Then MsgBox "Error calling apiWSACleanup.", vbCritical End If End Sub Public Function GetIPFromHostName(ByVal sHostName As String) As String 'converts a host name to an IP address. Dim nBytes As Long Dim ptrHosent As Long Dim hstHost As HOSTENT Dim ptrName As Long Dim ptrAddress As Long Dim ptrIPAddress As Long Dim sAddress As String 'declare this as Dim sAddress(1) As String if you want 2 ip addresses returned 'try to initalize the socket If InitializeSocket() = True Then 'try to get the IP ptrHosent = apiGetHostByName(sHostName & vbNullChar) If ptrHosent <> 0 Then 'get the IP address apiCopyMemory hstHost, ByVal ptrHosent, LenB(hstHost) apiCopyMemory ptrIPAddress, ByVal hstHost.hAddrList, 4 'fill buffer sAddress = Space$(4) 'if you want multiple domains returned, 'fill all items in sAddress array with 4 spaces apiCopyMemory ByVal sAddress, ByVal ptrIPAddress, hstHost.hLength 'change this to 'CopyMemory ByVal sAddress(0), ByVal ptrIPAddress, hstHost.hLength 'if you want an array of ip addresses returned '(some domains have more than one ip address associated with it) 'get the IP address GetIPFromHostName = IPToText(sAddress) 'if you are using multiple addresses, you need IPToText(sAddress(0)) & "," & IPToText(sAddress(1)) 'etc End If Else MsgBox "Failed to open Socket." End If End Function Private Function IPToText(ByVal IPAddress As String) As String 'converts characters to numbers IPToText = CStr(Asc(IPAddress)) & "." & _ CStr(Asc(Mid$(IPAddress, 2, 1))) & "." & _ CStr(Asc(Mid$(IPAddress, 3, 1))) & "." & _ CStr(Asc(Mid$(IPAddress, 4, 1))) End Function Private Function ConvertAddressToString(longAddr As Long) As String Dim myByte(3) As Byte Dim Cnt As Long CopyMemory myByte(0), longAddr, 4 For Cnt = 0 To 3 ConvertAddressToString = ConvertAddressToString + CStr(myByte(Cnt)) + "." Next Cnt ConvertAddressToString = Left$(ConvertAddressToString, Len(ConvertAddressToString) - 1) End Function Public Function GetHostNameFromIP(ByVal sIPAddress As String) As String Dim ptrHosent As Long Dim hAddress As Long Dim sHost As String Dim nBytes As Long 'try to open the socket If InitializeSocket() = True Then 'convert string address to long datatype hAddress = apiInetAddr(sIPAddress) 'check if an error ocucred If hAddress <> SOCKET_ERROR Then 'obtain a pointer to the HOSTENT structure 'that contains the name and address 'corresponding to the given network address. ptrHosent = apiGetHostByAddr(hAddress, 4, AF_INET) If ptrHosent <> 0 Then 'convert address and 'get resolved hostname apiCopyMemory ptrHosent, ByVal ptrHosent, 4 nBytes = apiStrLen(ByVal ptrHosent) If nBytes > 0 Then 'fill the IP address buffer sHost = Space$(nBytes) apiCopyMemory ByVal sHost, ByVal ptrHosent, nBytes GetHostNameFromIP = sHost End If Else MsgBox "Call to gethostbyaddr failed." End If 'close the socket CloseSocket Else MsgBox "Invalid IP address" End If Else MsgBox "Failed to open Socket" End If End Function Public Function GetMyHostName() As String 'Finds local HostName Dim strHostname As String Dim lngHostLen As Long 'try to initalize the socket If InitializeSocket() = True Then lngHostLen = 256 strHostname = Space$(lngHostLen) If apiGetHostName(strHostname, lngHostLen) = SOCKET_ERROR Then MsgBox "Windows Sockets error getting Host Name" Else strHostname = Trim$(strHostname) strHostname = Left$(strHostname, Len(strHostname) - 1) End If Else MsgBox "Failed to open Socket." End If GetMyHostName = strHostname End Function Public Function GetMyIPAddress() As String GetMyIPAddress = GetIPFromHostName(GetMyHostName) End Function Public Function GetMyIPMask() Dim Ret As Long Dim bBytes() As Byte Dim tel As Long Dim Listing As MIB_IPADDRTABLE On Error GoTo END1 GetIpAddrTable ByVal 0&, Ret, True If Ret <= 0 Then Exit Function ReDim bBytes(0 To Ret - 1) As Byte 'retrieve the data GetIpAddrTable bBytes(0), Ret, False 'Get the first 4 bytes to get the entry's.. ip installed CopyMemory Listing.dEntrys, bBytes(0), 4 'Copy whole structure to Listing and return for Adapter 1 (Adapter 0 = Loopback) CopyMemory Listing.mIPInfo(1), bBytes(4 + (Len(Listing.mIPInfo(0)))), Len(Listing.mIPInfo(1)) GetIPMask = ConvertAddressToString(Listing.mIPInfo(1).dwMask) Exit Function END1: MsgBox "Error Resolving Subnet Mask" End Function From jwcolby at colbyconsulting.com Tue Jun 30 12:42:38 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 30 Jun 2009 13:42:38 -0400 Subject: [dba-VB] Syslogs In-Reply-To: <sa4a5e36.093@cactus.dk> References: <sa4a5e36.093@cactus.dk> Message-ID: <4A4A4E8E.5060107@colbyconsulting.com> Gustav, Nope, and nope. Once I discovered that I had to get an OCX and register it the bloom kind of left the rose so to speak. I am looking for something that just works and is native to VBA. This is something that I want to incorporate into my framework, but I can't go installing stuff on workstations, it is for use at my clients and I am not there. There is good reason why I have never done this... the easy solutions always have a gotcha. John W. Colby www.ColbyConsulting.com Gustav Brock wrote: > Hi John > > But ... didn't you read the article or at least download the code? It's all in there - in the module: > > basWinAPI_Hostname > > /gustav > > >>>> jwcolby at colbyconsulting.com 30-06-2009 18:43 >>> > Yes, but then you have to do more. IPConfig shows several IP addresses on my work laptop. One is > the wireless, which only works when in range of a wireless network, one is a physical NIC, and one > is a Hamachi IP. There could be even more. On my server I have two physical NICS and in theory > each could have asked for an IP address. > > So would the REAL IP address please stand up. > > 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 Tue Jun 30 12:45:11 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 30 Jun 2009 13:45:11 -0400 Subject: [dba-VB] Messaging For JWC WAS: Syslogs In-Reply-To: <A5615CBECEC42E4791D7A7C724E1E9B2024478C9@MIEXCH.Marlow.ii-vi.net> References: <sa490e7e.066@cactus.dk> <4A49027A.5000604@colbyconsulting.com> <A5615CBECEC42E4791D7A7C724E1E9B2024478C9@MIEXCH.Marlow.ii-vi.net> Message-ID: <4A4A4F27.6010606@colbyconsulting.com> Drew, I really want this but it has to be vba native, no OCXs. I am familiar with OCXs that are part of Access, and that is OK. This would be used with my framework and I cannot guarantee that i can register anything. It has to just work. John W. Colby www.ColbyConsulting.com Drew Wutka wrote: > Is this something you really want? > > It would be pretty simple to create an OCX that you could have on a > hidden form, that would 'see' all running instances of your application, > and be able to 'communicate' to them. > > There is one quirk. It'll work on a standard network. However, if your > network is subnetted, it would only 'see' what's in the local subnet > (because the best way to do this is to send out a broadcast 'hello' and > 'goodbye' message). To work with a subnetted network, you'd have to > come up with a 'server/client' scenario, so the server would see all the > connected users (sort of like a custom DNS server). > > If you aren't worried about a subnetted network, let me know, I am > pretty sure I can whip up an OCX to do what you want. > > Drew From jwcolby at colbyconsulting.com Tue Jun 30 12:45:48 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 30 Jun 2009 13:45:48 -0400 Subject: [dba-VB] SPAM-LOW: Re: Syslogs In-Reply-To: <4a4a4344.1c05d00a.0f8b.4804@mx.google.com> References: <sa490735.064@cactus.dk> <4A48EDCB.50706@colbyconsulting.com> <A5615CBECEC42E4791D7A7C724E1E9B2024478C6@MIEXCH.Marlow.ii-vi.net> <4A4A40BC.6060905@colbyconsulting.com> <4a4a4344.1c05d00a.0f8b.4804@mx.google.com> Message-ID: <4A4A4F4C.3070806@colbyconsulting.com> I will be looking at Stuart's code. John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > John, going with what Stuart posted earlier. I integrated it into my work FE > and it works great. What I have to do now is to get each FE to run the code > on startup, post the resultant IP and Host into my Login Table and BINGO. > When they log off, i just remove the entries from the LoginTable if I want > to. > > If I then wanted to (as you do) to send a message I will know who is logged > on. You could shell out to NET SEND USER MESSAGE to send the message, for > example Where USER is the returning Hostname from the routine and MESSAGE is > the text you want to send. > > Ie, > Net Send Manager Hi'ya georgeous. > > Ps - I am the manager. > > Max > > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: 30 June 2009 17:44 > To: Discussion concerning Visual Basic and related programming issues. > Subject: Re: [dba-VB] Syslogs > > Yes, but then you have to do more. IPConfig shows several IP addresses on > my work laptop. One is > the wireless, which only works when in range of a wireless network, one is a > physical NIC, and one > is a Hamachi IP. There could be even more. On my server I have two > physical NICS and in theory > each could have asked for an IP address. > > So would the REAL IP address please stand up. > > John W. Colby > www.ColbyConsulting.com > > > Drew Wutka wrote: >> There are several ways to get your IP address. Two I've used is to use >> a Winsock control, and look at the local host IP. >> >> Another relatively easy way is to dump the results of IPCONFIG to a text >> file. >> >> Create a .bat file (call it iptest.bat) and put the following line in >> it: >> >> Ipconfig >C:\ip.txt >> >> Then using ShellWait (http://mvps.org/access/api/api0004.htm) >> >> Use this function: >> >> Function IPAddresses() As String >> Dim f As Long >> Dim strTemp As String >> Dim strArray() As String >> If Dir("C:\ip.txt") <> "" Then Kill "C:\ip.txt" >> ShellWait "C:\iptest.bat" >> f = FreeFile >> Open "C:\ip.txt" For Binary Access Read As f >> strTemp = Space(LOF(f)) >> Get f, , strTemp >> Close f >> strArray = Split(strTemp, vbCrLf) >> strTemp = "" >> For f = 0 To UBound(strArray) >> If InStr(1, strArray(f), "IPv4", vbTextCompare) > 0 Or InStr(1, >> strArray(f), " IP Address", vbTextCompare) > 0 Then >> strTemp = strTemp & Trim(Mid(strArray(f), InStr(1, strArray(f), >> ":", vbBinaryCompare) + 1)) & ";" >> End If >> Next f >> If Len(strTemp) > 0 Then strTemp = Left(strTemp, Len(strTemp) - 1) >> IPAddresses = strTemp >> End Function >> >> Whalla, IPAddresses will return as a semicolon delimited string. >> (Obviously you could return an array or create a collection too...either >> way....) >> >> Drew > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From Gustav at cactus.dk Tue Jun 30 12:48:25 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 30 Jun 2009 19:48:25 +0200 Subject: [dba-VB] Syslogs Message-ID: <sa4a6c2d.096@cactus.dk> Hi John I see - that of course makes sense. But that module is pure API. /gustav >>> jwcolby at colbyconsulting.com 30-06-2009 19:42 >>> Gustav, Nope, and nope. Once I discovered that I had to get an OCX and register it the bloom kind of left the rose so to speak. I am looking for something that just works and is native to VBA. This is something that I want to incorporate into my framework, but I can't go installing stuff on workstations, it is for use at my clients and I am not there. There is good reason why I have never done this... the easy solutions always have a gotcha. John W. Colby www.ColbyConsulting.com Gustav Brock wrote: > Hi John > > But ... didn't you read the article or at least download the code? It's all in there - in the module: > > basWinAPI_Hostname > > /gustav > > >>>> jwcolby at colbyconsulting.com 30-06-2009 18:43 >>> > Yes, but then you have to do more. IPConfig shows several IP addresses on my work laptop. One is > the wireless, which only works when in range of a wireless network, one is a physical NIC, and one > is a Hamachi IP. There could be even more. On my server I have two physical NICS and in theory > each could have asked for an IP address. > > So would the REAL IP address please stand up. > > John W. Colby > www.ColbyConsulting.com From Gustav at cactus.dk Tue Jun 30 12:49:54 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 30 Jun 2009 19:49:54 +0200 Subject: [dba-VB] Syslogs Message-ID: <sa4a6c6a.097@cactus.dk> Hi Max To calculate the possible IP addresses (of workstations) of the network: http://www.networkclue.com/routing/tcpip/calculating-masks.aspx /gustav >>> max.wanadoo at gmail.com 30-06-2009 19:27 >>> Stuart, this is good stuff. Why would I need to know the subnet mask in the context of finding the IP and Hostname? Max From max.wanadoo at gmail.com Tue Jun 30 13:54:26 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Tue, 30 Jun 2009 19:54:26 +0100 Subject: [dba-VB] Syslogs In-Reply-To: <sa4a6c6a.097@cactus.dk> References: <sa4a6c6a.097@cactus.dk> Message-ID: <4a4a5f66.1701d00a.7694.1d19@mx.google.com> Ha! Very good Gustav....I got half way down the page and thought...why am I reading this...it is going in one eye and out the other... Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 30 June 2009 18:50 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Syslogs Hi Max To calculate the possible IP addresses (of workstations) of the network: http://www.networkclue.com/routing/tcpip/calculating-masks.aspx /gustav >>> max.wanadoo at gmail.com 30-06-2009 19:27 >>> Stuart, this is good stuff. Why would I need to know the subnet mask in the context of finding the IP and Hostname? Max _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From DWUTKA at Marlow.com Tue Jun 30 13:42:16 2009 From: DWUTKA at Marlow.com (Drew Wutka) Date: Tue, 30 Jun 2009 13:42:16 -0500 Subject: [dba-VB] favicon (was: Syslogs) In-Reply-To: <sa4a6252.094@cactus.dk> References: <sa4a6252.094@cactus.dk> Message-ID: <A5615CBECEC42E4791D7A7C724E1E9B2024478CB@MIEXCH.Marlow.ii-vi.net> The reason those href's might not work is going to be dependant upon whether or not IIS is running. If you have a webserver, then a URL can be 'soft', or based on the root of the webserver. No webserver, everything must include a full URL (or 'hard' URL). Drew -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, June 30, 2009 12:06 PM To: dba-vb at databaseadvisors.com Subject: [dba-VB] favicon (was: Syslogs) Hi Drew That gives me an idea regarding favicon. I've found that it is sometimes difficult to get IE to understand that a favicon is present and should be displayed. Some common methods are: <!-- Favicon for IE browsers --> <link rel="shortcut icon" href="favicon.ico" /> <!-- Favicon for other browsers --> <link rel="icon" href="favicon.ico" /> This typically doesn't work. These may: <link rel="shortcut icon" href="/favicon.ico" /> mtaulty.com/CommunityServer: <link rel="shortcut icon" type="image/ico" href="/CommunityServer/favicon.ico" /> <link rel="shortcut icon" href="http://www.examplesite.com/favicon.ico" type="image/x-icon" /> The most reliable method I've found is the last - to use the full URL - but it is not nice to have hardcoded strings like these. So how about using your method: <link rel="shortcut icon" href="http://127.0.0.1/favicon.ico" type="image/x-icon" /> or localhost: <link rel="shortcut icon" href="http://localhost/favicon.ico" type="image/x-icon" /> Anyone having experience with this? /gustav >>> DWUTKA at marlow.com 30-06-2009 18:49 >>> Actually, if you have an IP address, it is real. It then gets into what it is used for. For example, with your wireless, if it's not connected, it won't have an IP address. If a standard NIC is not connected, it will show no address. If it IS connected, but not receiving an IP address, it will default to a (I think) 169 something, which is a hard coded address, which means nothing. You can also have internal addresses such as 127.0.0.1, which is a loopback to your local machine. (so if you are running a website, putting in http://127.0.0.1 on the server will give you the local website). Drew _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From DWUTKA at Marlow.com Tue Jun 30 13:46:19 2009 From: DWUTKA at Marlow.com (Drew Wutka) Date: Tue, 30 Jun 2009 13:46:19 -0500 Subject: [dba-VB] Messaging For JWC WAS: Syslogs In-Reply-To: <4A4A4F27.6010606@colbyconsulting.com> References: <sa490e7e.066@cactus.dk> <4A49027A.5000604@colbyconsulting.com><A5615CBECEC42E4791D7A7C724E1E9B2024478C9@MIEXCH.Marlow.ii-vi.net> <4A4A4F27.6010606@colbyconsulting.com> Message-ID: <A5615CBECEC42E4791D7A7C724E1E9B2024478CC@MIEXCH.Marlow.ii-vi.net> Native does put a crimp in things. TCP/IP communications is pretty easy with a Winsock control. It can be done with API's but it's a pain, and you need to deal with callback functions, which have issues in and of themselves in Access 2000 and on. If you were ok with an .ocx, I could whip that up, if you need something native, that would require callbacks, and a lot more coding. If you want to play around with it, what you need to do is use UDP to 'broadcast' a hello and goodbye message, to alert everything on the subnet. (And you have to filter that message on the broadcasting machine, cause it'll pick up it's own message). In that hello/goodbye message, you can include all the info you want (username, computername, IP,etc). Then it's just a matter of using TCP for direct comms between two machines. Drew -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, June 30, 2009 12:45 PM To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Messaging For JWC WAS: Syslogs Drew, I really want this but it has to be vba native, no OCXs. I am familiar with OCXs that are part of Access, and that is OK. This would be used with my framework and I cannot guarantee that i can register anything. It has to just work. John W. Colby www.ColbyConsulting.com Drew Wutka wrote: > Is this something you really want? > > It would be pretty simple to create an OCX that you could have on a > hidden form, that would 'see' all running instances of your application, > and be able to 'communicate' to them. > > There is one quirk. It'll work on a standard network. However, if your > network is subnetted, it would only 'see' what's in the local subnet > (because the best way to do this is to send out a broadcast 'hello' and > 'goodbye' message). To work with a subnetted network, you'd have to > come up with a 'server/client' scenario, so the server would see all the > connected users (sort of like a custom DNS server). > > If you aren't worried about a subnetted network, let me know, I am > pretty sure I can whip up an OCX to do what you want. > > Drew _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From max.wanadoo at gmail.com Tue Jun 30 14:00:23 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Tue, 30 Jun 2009 20:00:23 +0100 Subject: [dba-VB] Messaging For JWC WAS: Syslogs In-Reply-To: <A5615CBECEC42E4791D7A7C724E1E9B2024478CC@MIEXCH.Marlow.ii-vi.net> References: <sa490e7e.066@cactus.dk> <4A49027A.5000604@colbyconsulting.com><A5615CBECEC42E4791D7A7C724E1E9B2024478C9@MIEXCH.Marlow.ii-vi.net> <4A4A4F27.6010606@colbyconsulting.com> <A5615CBECEC42E4791D7A7C724E1E9B2024478CC@MIEXCH.Marlow.ii-vi.net> Message-ID: <4a4a60ca.0a1ad00a.63e4.2ae9@mx.google.com> Drew, have you looked at Stuart's posting. It is all API and works fine. Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: 30 June 2009 19:46 To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Messaging For JWC WAS: Syslogs Native does put a crimp in things. TCP/IP communications is pretty easy with a Winsock control. It can be done with API's but it's a pain, and you need to deal with callback functions, which have issues in and of themselves in Access 2000 and on. If you were ok with an .ocx, I could whip that up, if you need something native, that would require callbacks, and a lot more coding. If you want to play around with it, what you need to do is use UDP to 'broadcast' a hello and goodbye message, to alert everything on the subnet. (And you have to filter that message on the broadcasting machine, cause it'll pick up it's own message). In that hello/goodbye message, you can include all the info you want (username, computername, IP,etc). Then it's just a matter of using TCP for direct comms between two machines. Drew -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, June 30, 2009 12:45 PM To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Messaging For JWC WAS: Syslogs Drew, I really want this but it has to be vba native, no OCXs. I am familiar with OCXs that are part of Access, and that is OK. This would be used with my framework and I cannot guarantee that i can register anything. It has to just work. John W. Colby www.ColbyConsulting.com Drew Wutka wrote: > Is this something you really want? > > It would be pretty simple to create an OCX that you could have on a > hidden form, that would 'see' all running instances of your application, > and be able to 'communicate' to them. > > There is one quirk. It'll work on a standard network. However, if your > network is subnetted, it would only 'see' what's in the local subnet > (because the best way to do this is to send out a broadcast 'hello' and > 'goodbye' message). To work with a subnetted network, you'd have to > come up with a 'server/client' scenario, so the server would see all the > connected users (sort of like a custom DNS server). > > If you aren't worried about a subnetted network, let me know, I am > pretty sure I can whip up an OCX to do what you want. > > Drew _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From DWUTKA at Marlow.com Tue Jun 30 14:10:13 2009 From: DWUTKA at Marlow.com (Drew Wutka) Date: Tue, 30 Jun 2009 14:10:13 -0500 Subject: [dba-VB] Messaging For JWC WAS: Syslogs In-Reply-To: <4a4a60ca.0a1ad00a.63e4.2ae9@mx.google.com> References: <sa490e7e.066@cactus.dk> <4A49027A.5000604@colbyconsulting.com><A5615CBECEC42E4791D7A7C724E1E9B2024478C9@MIEXCH.Marlow.ii-vi.net> <4A4A4F27.6010606@colbyconsulting.com><A5615CBECEC42E4791D7A7C724E1E9B2024478CC@MIEXCH.Marlow.ii-vi.net> <4a4a60ca.0a1ad00a.63e4.2ae9@mx.google.com> Message-ID: <A5615CBECEC42E4791D7A7C724E1E9B2024478CF@MIEXCH.Marlow.ii-vi.net> Yes, but it's returning IP information, not performing TCP/IP comms. The basics are there, but to 'return' comms, using strictly API's, you have to have a Callback function, because an incoming connection has to alert your code to something happening. Callback functions in VBA worked great in Access 97 (with a custom 'AddressOf' function), but suck in 2000 and on, because if they are 'active' and you go into debug mode, it will wreak havoc with Access. Drew -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Tuesday, June 30, 2009 2:00 PM To: 'Discussion concerning Visual Basic and related programming issues.' Subject: Re: [dba-VB] Messaging For JWC WAS: Syslogs Drew, have you looked at Stuart's posting. It is all API and works fine. Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: 30 June 2009 19:46 To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Messaging For JWC WAS: Syslogs Native does put a crimp in things. TCP/IP communications is pretty easy with a Winsock control. It can be done with API's but it's a pain, and you need to deal with callback functions, which have issues in and of themselves in Access 2000 and on. If you were ok with an .ocx, I could whip that up, if you need something native, that would require callbacks, and a lot more coding. If you want to play around with it, what you need to do is use UDP to 'broadcast' a hello and goodbye message, to alert everything on the subnet. (And you have to filter that message on the broadcasting machine, cause it'll pick up it's own message). In that hello/goodbye message, you can include all the info you want (username, computername, IP,etc). Then it's just a matter of using TCP for direct comms between two machines. Drew -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, June 30, 2009 12:45 PM To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Messaging For JWC WAS: Syslogs Drew, I really want this but it has to be vba native, no OCXs. I am familiar with OCXs that are part of Access, and that is OK. This would be used with my framework and I cannot guarantee that i can register anything. It has to just work. John W. Colby www.ColbyConsulting.com Drew Wutka wrote: > Is this something you really want? > > It would be pretty simple to create an OCX that you could have on a > hidden form, that would 'see' all running instances of your application, > and be able to 'communicate' to them. > > There is one quirk. It'll work on a standard network. However, if your > network is subnetted, it would only 'see' what's in the local subnet > (because the best way to do this is to send out a broadcast 'hello' and > 'goodbye' message). To work with a subnetted network, you'd have to > come up with a 'server/client' scenario, so the server would see all the > connected users (sort of like a custom DNS server). > > If you aren't worried about a subnetted network, let me know, I am > pretty sure I can whip up an OCX to do what you want. > > Drew _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From max.wanadoo at gmail.com Tue Jun 30 14:15:34 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Tue, 30 Jun 2009 20:15:34 +0100 Subject: [dba-VB] Messaging For JWC WAS: Syslogs In-Reply-To: <A5615CBECEC42E4791D7A7C724E1E9B2024478CF@MIEXCH.Marlow.ii-vi.net> References: <sa490e7e.066@cactus.dk> <4A49027A.5000604@colbyconsulting.com><A5615CBECEC42E4791D7A7C724E1E9B2024478C9@MIEXCH.Marlow.ii-vi.net> <4A4A4F27.6010606@colbyconsulting.com><A5615CBECEC42E4791D7A7C724E1E9B2024478CC@MIEXCH.Marlow.ii-vi.net> <4a4a60ca.0a1ad00a.63e4.2ae9@mx.google.com> <A5615CBECEC42E4791D7A7C724E1E9B2024478CF@MIEXCH.Marlow.ii-vi.net> Message-ID: <4a4a645a.0707d00a.4823.0b6a@mx.google.com> Ok, thanks. Forgive my ignorance as I am out of my depth here, but can I ask if the use of WithEvents would solve this situation? Also, why did it work in '97 and not thereafter. Did they remove "bits" or change them or what? Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: 30 June 2009 20:10 To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Messaging For JWC WAS: Syslogs Yes, but it's returning IP information, not performing TCP/IP comms. The basics are there, but to 'return' comms, using strictly API's, you have to have a Callback function, because an incoming connection has to alert your code to something happening. Callback functions in VBA worked great in Access 97 (with a custom 'AddressOf' function), but suck in 2000 and on, because if they are 'active' and you go into debug mode, it will wreak havoc with Access. Drew -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Tuesday, June 30, 2009 2:00 PM To: 'Discussion concerning Visual Basic and related programming issues.' Subject: Re: [dba-VB] Messaging For JWC WAS: Syslogs Drew, have you looked at Stuart's posting. It is all API and works fine. Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: 30 June 2009 19:46 To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Messaging For JWC WAS: Syslogs Native does put a crimp in things. TCP/IP communications is pretty easy with a Winsock control. It can be done with API's but it's a pain, and you need to deal with callback functions, which have issues in and of themselves in Access 2000 and on. If you were ok with an .ocx, I could whip that up, if you need something native, that would require callbacks, and a lot more coding. If you want to play around with it, what you need to do is use UDP to 'broadcast' a hello and goodbye message, to alert everything on the subnet. (And you have to filter that message on the broadcasting machine, cause it'll pick up it's own message). In that hello/goodbye message, you can include all the info you want (username, computername, IP,etc). Then it's just a matter of using TCP for direct comms between two machines. Drew -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, June 30, 2009 12:45 PM To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Messaging For JWC WAS: Syslogs Drew, I really want this but it has to be vba native, no OCXs. I am familiar with OCXs that are part of Access, and that is OK. This would be used with my framework and I cannot guarantee that i can register anything. It has to just work. John W. Colby www.ColbyConsulting.com Drew Wutka wrote: > Is this something you really want? > > It would be pretty simple to create an OCX that you could have on a > hidden form, that would 'see' all running instances of your application, > and be able to 'communicate' to them. > > There is one quirk. It'll work on a standard network. However, if your > network is subnetted, it would only 'see' what's in the local subnet > (because the best way to do this is to send out a broadcast 'hello' and > 'goodbye' message). To work with a subnetted network, you'd have to > come up with a 'server/client' scenario, so the server would see all the > connected users (sort of like a custom DNS server). > > If you aren't worried about a subnetted network, let me know, I am > pretty sure I can whip up an OCX to do what you want. > > Drew _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. _______________________________________________ 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 Jun 30 14:21:09 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 30 Jun 2009 15:21:09 -0400 Subject: [dba-VB] Messaging For JWC WAS: Syslogs In-Reply-To: <A5615CBECEC42E4791D7A7C724E1E9B2024478CF@MIEXCH.Marlow.ii-vi.net> References: <sa490e7e.066@cactus.dk> <4A49027A.5000604@colbyconsulting.com><A5615CBECEC42E4791D7A7C724E1E9B2024478C9@MIEXCH.Marlow.ii-vi.net> <4A4A4F27.6010606@colbyconsulting.com><A5615CBECEC42E4791D7A7C724E1E9B2024478CC@MIEXCH.Marlow.ii-vi.net> <4a4a60ca.0a1ad00a.63e4.2ae9@mx.google.com> <A5615CBECEC42E4791D7A7C724E1E9B2024478CF@MIEXCH.Marlow.ii-vi.net> Message-ID: <4A4A65A5.8080101@colbyconsulting.com> Drew, >If you want to play around with it, what you need to do is use UDP to 'broadcast' a hello and goodbye message, to alert everything on the subnet. (And you have to filter that message on the broadcasting machine, cause it'll pick up it's own message). In that hello/goodbye message, you can include all the info you want (username, computername, IP,etc). Then it's just a matter of using TCP for direct comms between two machines. In fact I don't want direct comms between machines, I want precisely "broadcast" messages. "Hey everybody, I added a new record in tblX". Any machine receiving that message promptly refreshes the cache for that table. "Hey everybody, we are shutting down the BE in 10 minutes, get out". Any machine receiving the message pops up a message to the user telling them to finish up and get out of the database. That kind of message. I really don't care about sending to a specific machine, I care about sending to ALL machines. John W. Colby www.ColbyConsulting.com > > Native does put a crimp in things. TCP/IP communications is pretty easy > with a Winsock control. It can be done with API's but it's a pain, and > you need to deal with callback functions, which have issues in and of > themselves in Access 2000 and on. > > If you were ok with an .ocx, I could whip that up, if you need something > native, that would require callbacks, and a lot more coding. If you > want to play around with it, what you need to do is use UDP to > 'broadcast' a hello and goodbye message, to alert everything on the > subnet. (And you have to filter that message on the broadcasting > machine, cause it'll pick up it's own message). In that hello/goodbye > message, you can include all the info you want (username, computername, > IP,etc). Then it's just a matter of using TCP for direct comms between > two machines. > > Drew > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Tuesday, June 30, 2009 12:45 PM > To: Discussion concerning Visual Basic and related programming issues. > Subject: Re: [dba-VB] Messaging For JWC WAS: Syslogs > > Drew, > > I really want this but it has to be vba native, no OCXs. I am familiar > with OCXs that are part of > Access, and that is OK. > > This would be used with my framework and I cannot guarantee that i can > register anything. It has to > just work. > > John W. Colby > www.ColbyConsulting.com > > > Drew Wutka wrote: >> Is this something you really want? >> >> It would be pretty simple to create an OCX that you could have on a >> hidden form, that would 'see' all running instances of your > application, >> and be able to 'communicate' to them. >> >> There is one quirk. It'll work on a standard network. However, if > your >> network is subnetted, it would only 'see' what's in the local subnet >> (because the best way to do this is to send out a broadcast 'hello' > and >> 'goodbye' message). To work with a subnetted network, you'd have to >> come up with a 'server/client' scenario, so the server would see all > the >> connected users (sort of like a custom DNS server). >> >> If you aren't worried about a subnetted network, let me know, I am >> pretty sure I can whip up an OCX to do what you want. >> >> Drew > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > The information contained in this transmission is intended only for the > person or entity > to which it is addressed and may contain II-VI Proprietary and/or II-VI > Business > Sensitive material. If you are not the intended recipient, please > contact > the sender > immediately and destroy the material in its entirety, whether electronic > or > hard copy. > You are notified that any review, retransmission, copying, disclosure, > dissemination, > or other use of, or taking of any action in reliance upon this > information > by persons > or entities other than the intended recipient is prohibited. > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > The information contained in this transmission is intended only for the person or entity > to which it is addressed and may contain II-VI Proprietary and/or II-VI Business > Sensitive material. If you are not the intended recipient, please contact the sender > immediately and destroy the material in its entirety, whether electronic or hard copy. > You are notified that any review, retransmission, copying, disclosure, dissemination, > or other use of, or taking of any action in reliance upon this information by persons > or entities other than the intended recipient is prohibited. > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From max.wanadoo at gmail.com Tue Jun 30 14:29:09 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Tue, 30 Jun 2009 20:29:09 +0100 Subject: [dba-VB] Messaging For JWC WAS: Syslogs In-Reply-To: <4A4A65A5.8080101@colbyconsulting.com> References: <sa490e7e.066@cactus.dk> <4A49027A.5000604@colbyconsulting.com><A5615CBECEC42E4791D7A7C724E1E9B2024478C9@MIEXCH.Marlow.ii-vi.net> <4A4A4F27.6010606@colbyconsulting.com><A5615CBECEC42E4791D7A7C724E1E9B2024478CC@MIEXCH.Marlow.ii-vi.net> <4a4a60ca.0a1ad00a.63e4.2ae9@mx.google.com> <A5615CBECEC42E4791D7A7C724E1E9B2024478CF@MIEXCH.Marlow.ii-vi.net> <4A4A65A5.8080101@colbyconsulting.com> Message-ID: <4a4a6788.1c05d00a.13ad.7ae6@mx.google.com> So, why not use NET SEND? Using Stuart's code you have the machine names on the net if you want to pick one. If you want to broadcast to all send to * Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: 30 June 2009 20:21 To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Messaging For JWC WAS: Syslogs Drew, >If you want to play around with it, what you need to do is use UDP to 'broadcast' a hello and goodbye message, to alert everything on the subnet. (And you have to filter that message on the broadcasting machine, cause it'll pick up it's own message). In that hello/goodbye message, you can include all the info you want (username, computername, IP,etc). Then it's just a matter of using TCP for direct comms between two machines. In fact I don't want direct comms between machines, I want precisely "broadcast" messages. "Hey everybody, I added a new record in tblX". Any machine receiving that message promptly refreshes the cache for that table. "Hey everybody, we are shutting down the BE in 10 minutes, get out". Any machine receiving the message pops up a message to the user telling them to finish up and get out of the database. That kind of message. I really don't care about sending to a specific machine, I care about sending to ALL machines. John W. Colby www.ColbyConsulting.com > > Native does put a crimp in things. TCP/IP communications is pretty easy > with a Winsock control. It can be done with API's but it's a pain, and > you need to deal with callback functions, which have issues in and of > themselves in Access 2000 and on. > > If you were ok with an .ocx, I could whip that up, if you need something > native, that would require callbacks, and a lot more coding. If you > want to play around with it, what you need to do is use UDP to > 'broadcast' a hello and goodbye message, to alert everything on the > subnet. (And you have to filter that message on the broadcasting > machine, cause it'll pick up it's own message). In that hello/goodbye > message, you can include all the info you want (username, computername, > IP,etc). Then it's just a matter of using TCP for direct comms between > two machines. > > Drew > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Tuesday, June 30, 2009 12:45 PM > To: Discussion concerning Visual Basic and related programming issues. > Subject: Re: [dba-VB] Messaging For JWC WAS: Syslogs > > Drew, > > I really want this but it has to be vba native, no OCXs. I am familiar > with OCXs that are part of > Access, and that is OK. > > This would be used with my framework and I cannot guarantee that i can > register anything. It has to > just work. > > John W. Colby > www.ColbyConsulting.com > > > Drew Wutka wrote: >> Is this something you really want? >> >> It would be pretty simple to create an OCX that you could have on a >> hidden form, that would 'see' all running instances of your > application, >> and be able to 'communicate' to them. >> >> There is one quirk. It'll work on a standard network. However, if > your >> network is subnetted, it would only 'see' what's in the local subnet >> (because the best way to do this is to send out a broadcast 'hello' > and >> 'goodbye' message). To work with a subnetted network, you'd have to >> come up with a 'server/client' scenario, so the server would see all > the >> connected users (sort of like a custom DNS server). >> >> If you aren't worried about a subnetted network, let me know, I am >> pretty sure I can whip up an OCX to do what you want. >> >> Drew > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > The information contained in this transmission is intended only for the > person or entity > to which it is addressed and may contain II-VI Proprietary and/or II-VI > Business > Sensitive material. If you are not the intended recipient, please > contact > the sender > immediately and destroy the material in its entirety, whether electronic > or > hard copy. > You are notified that any review, retransmission, copying, disclosure, > dissemination, > or other use of, or taking of any action in reliance upon this > information > by persons > or entities other than the intended recipient is prohibited. > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > The information contained in this transmission is intended only for the person or entity > to which it is addressed and may contain II-VI Proprietary and/or II-VI Business > Sensitive material. If you are not the intended recipient, please contact the sender > immediately and destroy the material in its entirety, whether electronic or hard copy. > You are notified that any review, retransmission, copying, disclosure, dissemination, > or other use of, or taking of any action in reliance upon this information by persons > or entities other than the intended recipient is prohibited. > > > _______________________________________________ > 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 Tue Jun 30 14:40:41 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 30 Jun 2009 15:40:41 -0400 Subject: [dba-VB] Messaging For JWC WAS: Syslogs In-Reply-To: <4a4a6788.1c05d00a.13ad.7ae6@mx.google.com> References: <sa490e7e.066@cactus.dk> <4A49027A.5000604@colbyconsulting.com><A5615CBECEC42E4791D7A7C724E1E9B2024478C9@MIEXCH.Marlow.ii-vi.net> <4A4A4F27.6010606@colbyconsulting.com><A5615CBECEC42E4791D7A7C724E1E9B2024478CC@MIEXCH.Marlow.ii-vi.net> <4a4a60ca.0a1ad00a.63e4.2ae9@mx.google.com> <A5615CBECEC42E4791D7A7C724E1E9B2024478CF@MIEXCH.Marlow.ii-vi.net> <4A4A65A5.8080101@colbyconsulting.com> <4a4a6788.1c05d00a.13ad.7ae6@mx.google.com> Message-ID: <4A4A6A39.9000503@colbyconsulting.com> As I said, I will be looking at this stuff. I too am out of my league here. John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > So, why not use NET SEND? > > Using Stuart's code you have the machine names on the net if you want to > pick one. If you want to broadcast to all send to * > > > Max > > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: 30 June 2009 20:21 > To: Discussion concerning Visual Basic and related programming issues. > Subject: Re: [dba-VB] Messaging For JWC WAS: Syslogs > > Drew, > > >If you want to play around with it, what you need to do is use UDP to > 'broadcast' a hello and > goodbye message, to alert everything on the subnet. (And you have to filter > that message on the > broadcasting machine, cause it'll pick up it's own message). In that > hello/goodbye message, you can > include all the info you want (username, computername, IP,etc). Then it's > just a matter of using > TCP for direct comms between two machines. > > In fact I don't want direct comms between machines, I want precisely > "broadcast" messages. "Hey > everybody, I added a new record in tblX". Any machine receiving that > message promptly refreshes the > cache for that table. > > "Hey everybody, we are shutting down the BE in 10 minutes, get out". Any > machine receiving the > message pops up a message to the user telling them to finish up and get out > of the database. > > That kind of message. I really don't care about sending to a specific > machine, I care about sending > to ALL machines. > > John W. Colby > www.ColbyConsulting.com > > >> Native does put a crimp in things. TCP/IP communications is pretty easy >> with a Winsock control. It can be done with API's but it's a pain, and >> you need to deal with callback functions, which have issues in and of >> themselves in Access 2000 and on. >> >> If you were ok with an .ocx, I could whip that up, if you need something >> native, that would require callbacks, and a lot more coding. If you >> want to play around with it, what you need to do is use UDP to >> 'broadcast' a hello and goodbye message, to alert everything on the >> subnet. (And you have to filter that message on the broadcasting >> machine, cause it'll pick up it's own message). In that hello/goodbye >> message, you can include all the info you want (username, computername, >> IP,etc). Then it's just a matter of using TCP for direct comms between >> two machines. >> >> Drew >> >> -----Original Message----- >> From: dba-vb-bounces at databaseadvisors.com >> [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby >> Sent: Tuesday, June 30, 2009 12:45 PM >> To: Discussion concerning Visual Basic and related programming issues. >> Subject: Re: [dba-VB] Messaging For JWC WAS: Syslogs >> >> Drew, >> >> I really want this but it has to be vba native, no OCXs. I am familiar >> with OCXs that are part of >> Access, and that is OK. >> >> This would be used with my framework and I cannot guarantee that i can >> register anything. It has to >> just work. >> >> John W. Colby >> www.ColbyConsulting.com >> >> >> Drew Wutka wrote: >>> Is this something you really want? >>> >>> It would be pretty simple to create an OCX that you could have on a >>> hidden form, that would 'see' all running instances of your >> application, >>> and be able to 'communicate' to them. >>> >>> There is one quirk. It'll work on a standard network. However, if >> your >>> network is subnetted, it would only 'see' what's in the local subnet >>> (because the best way to do this is to send out a broadcast 'hello' >> and >>> 'goodbye' message). To work with a subnetted network, you'd have to >>> come up with a 'server/client' scenario, so the server would see all >> the >>> connected users (sort of like a custom DNS server). >>> >>> If you aren't worried about a subnetted network, let me know, I am >>> pretty sure I can whip up an OCX to do what you want. >>> >>> Drew >> _______________________________________________ >> dba-VB mailing list >> dba-VB at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/dba-vb >> http://www.databaseadvisors.com >> >> The information contained in this transmission is intended only for the >> person or entity >> to which it is addressed and may contain II-VI Proprietary and/or II-VI >> Business >> Sensitive material. If you are not the intended recipient, please >> contact >> the sender >> immediately and destroy the material in its entirety, whether electronic >> or >> hard copy. >> You are notified that any review, retransmission, copying, disclosure, >> dissemination, >> or other use of, or taking of any action in reliance upon this >> information >> by persons >> or entities other than the intended recipient is prohibited. >> >> >> _______________________________________________ >> dba-VB mailing list >> dba-VB at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/dba-vb >> http://www.databaseadvisors.com >> >> _______________________________________________ >> dba-VB mailing list >> dba-VB at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/dba-vb >> http://www.databaseadvisors.com >> >> The information contained in this transmission is intended only for the > person or entity >> to which it is addressed and may contain II-VI Proprietary and/or II-VI > Business >> Sensitive material. If you are not the intended recipient, please contact > the sender >> immediately and destroy the material in its entirety, whether electronic > or hard copy. >> You are notified that any review, retransmission, copying, disclosure, > dissemination, >> or other use of, or taking of any action in reliance upon this information > by persons >> or entities other than the intended recipient is prohibited. >> >> >> _______________________________________________ >> dba-VB mailing list >> dba-VB at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/dba-vb >> http://www.databaseadvisors.com >> >> > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From Gustav at cactus.dk Tue Jun 30 16:02:21 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 30 Jun 2009 23:02:21 +0200 Subject: [dba-VB] favicon (was: Syslogs) Message-ID: <sa4a9990.001@cactus.dk> Hi Drew All tests have been done on a hosted IIS7. /gustav >>> DWUTKA at marlow.com 30-06-2009 20:42 >>> The reason those href's might not work is going to be dependant upon whether or not IIS is running. If you have a webserver, then a URL can be 'soft', or based on the root of the webserver. No webserver, everything must include a full URL (or 'hard' URL). Drew -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, June 30, 2009 12:06 PM To: dba-vb at databaseadvisors.com Subject: [dba-VB] favicon (was: Syslogs) Hi Drew That gives me an idea regarding favicon. I've found that it is sometimes difficult to get IE to understand that a favicon is present and should be displayed. Some common methods are: <!-- Favicon for IE browsers --> <link rel="shortcut icon" href="favicon.ico" /> <!-- Favicon for other browsers --> <link rel="icon" href="favicon.ico" /> This typically doesn't work. These may: <link rel="shortcut icon" href="/favicon.ico" /> mtaulty.com/CommunityServer: <link rel="shortcut icon" type="image/ico" href="/CommunityServer/favicon.ico" /> <link rel="shortcut icon" href="http://www.examplesite.com/favicon.ico" type="image/x-icon" /> The most reliable method I've found is the last - to use the full URL - but it is not nice to have hardcoded strings like these. So how about using your method: <link rel="shortcut icon" href="http://127.0.0.1/favicon.ico" type="image/x-icon" /> or localhost: <link rel="shortcut icon" href="http://localhost/favicon.ico" type="image/x-icon" /> Anyone having experience with this? /gustav >>> DWUTKA at marlow.com 30-06-2009 18:49 >>> Actually, if you have an IP address, it is real. It then gets into what it is used for. For example, with your wireless, if it's not connected, it won't have an IP address. If a standard NIC is not connected, it will show no address. If it IS connected, but not receiving an IP address, it will default to a (I think) 169 something, which is a hard coded address, which means nothing. You can also have internal addresses such as 127.0.0.1, which is a loopback to your local machine. (so if you are running a website, putting in http://127.0.0.1 on the server will give you the local website). Drew From stuart at lexacorp.com.pg Tue Jun 30 16:40:26 2009 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 01 Jul 2009 07:40:26 +1000 Subject: [dba-VB] Syslogs In-Reply-To: <4a4a4b16.1c05d00a.735a.08ee@mx.google.com> References: <sa4a1857.085@cactus.dk>, <4A4A0CCF.5521.1B8DFD71@stuart.lexacorp.com.pg>, <4a4a4b16.1c05d00a.735a.08ee@mx.google.com> Message-ID: <4A4A864A.25927.1D68884C@stuart.lexacorp.com.pg> I dunno, I've never needed to find it, but John, Gustav & co were talking about needing to know he Subnet mask so I decided it would be a good idea to include it in the Class. On 30 Jun 2009 at 18:27, Max Wanadoo wrote: > Stuart, this is good stuff. > Why would I need to know the subnet mask in the context of finding the IP > and Hostname? > > Max > > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan > Sent: 30 June 2009 14:02 > To: Discussion concerning Visual Basic and related programming issues. > Subject: Re: [dba-VB] Syslogs > > On 30 Jun 2009 at 13:50, Gustav Brock wrote: > > > However, no function is included to reveal the subnet mask. The only > "human" method I > >can locate for this purpose is to look up the registry: > > I just found another API call which returns more info including the SubNet > mask(s) so I've > modified clsResolve to include GetMyIPMask: > > Option Compare Database > Option Explicit > > '// define constants > Private Const IP_SUCCESS As Long = 0 > Private Const SOCKET_ERROR As Long = -1 > > Private Const MAX_WSADescription As Long = 256 > Private Const MAX_WSASYSStatus As Long = 128 > Private Const MIN_SOCKETS_REQD As Long = 1 > > Private Const WS_VERSION_REQD As Long = &H101 > Private Const WS_VERSION_MAJOR As Long = WS_VERSION_REQD \ &H100 And > &HFF& > Private Const WS_VERSION_MINOR As Long = WS_VERSION_REQD And &HFF& > > Private Const WSADescription_Len As Long = 256 > Private Const WSASYS_Status_Len As Long = 128 > Private Const AF_INET As Long = 2 > > '// structures > > Private Type HOSTENT > hName As Long > hAliases As Long > hAddrType As Integer > hLength As Integer > hAddrList As Long > End Type > > > Private Type WSADATA > wVersion As Integer > wHighVersion As Integer > szDescription(0 To MAX_WSADescription) As Byte > szSystemStatus(0 To MAX_WSASYSStatus) As Byte > wMaxSockets As Long > wMaxUDPDG As Long > dwVendorInfo As Long > End Type > > Private Type IPINFO > dwAddr As Long ' IP address > dwIndex As Long ' interface index > dwMask As Long ' subnet mask > dwBCastAddr As Long ' broadcast address > dwReasmSize As Long ' assembly size > unused1 As Integer ' not currently used > unused2 As Integer '; not currently used > End Type > > Private Type MIB_IPADDRTABLE > dEntrys As Long 'number of entries in the table > mIPInfo(5) As IPINFO 'array of IP address entries assumes maximum of 5 > Interfaces > End Type > > Private Type IP_Array > mBuffer As MIB_IPADDRTABLE > BufferLen As Long > End Type > > > '// api > 'kernel32 > Private Declare Sub apiCopyMemory Lib "kernel32" Alias "RtlMoveMemory" > (xDest As Any, > xSource As Any, ByVal nBytes As Long) > Private Declare Function apiStrLen Lib "kernel32" Alias "lstrlenA" (lpString > As Any) As Long > 'wsock32 > Private Declare Function apiGetHostByName Lib "wsock32.dll" Alias > "gethostbyname" > (ByVal hostname As String) As Long > Private Declare Function apiWSAStartup Lib "wsock32.dll" Alias "WSAStartup" > (ByVal > wVersionRequired As Long, lpWSADATA As WSADATA) As Long > Private Declare Function apiWSACleanup Lib "wsock32.dll" Alias "WSACleanup" > () As Long > Private Declare Function apiInetAddr Lib "wsock32.dll" Alias "inet_addr" > (ByVal s As String) > As Long > Private Declare Function apiGetHostByAddr Lib "wsock32.dll" Alias > "gethostbyaddr" (haddr > As Long, ByVal hnlen As Long, ByVal addrtype As Long) As Long > Private Declare Function apiGetHostName Lib "wsock32.dll" Alias > "gethostname" (ByVal > hostname$, ByVal HostLen As Integer) As Long > 'IPHlpAPI > Private Declare Function GetIpAddrTable Lib "IPHlpApi" (pIPAdrTable As Byte, > pdwSize As > Long, ByVal Sort As Long) As Long > > '// private functions > Private Function InitializeSocket() As Boolean > Dim WSAD As WSADATA > > 'attempt to initialize the socket > InitializeSocket = apiWSAStartup(WS_VERSION_REQD, WSAD) = IP_SUCCESS > End Function > > Private Sub CloseSocket() > 'try to close the socket > If apiWSACleanup() <> 0 Then > MsgBox "Error calling apiWSACleanup.", vbCritical > End If > > End Sub > > Public Function GetIPFromHostName(ByVal sHostName As String) As String > 'converts a host name to an IP address. > > Dim nBytes As Long > Dim ptrHosent As Long > Dim hstHost As HOSTENT > Dim ptrName As Long > Dim ptrAddress As Long > Dim ptrIPAddress As Long > Dim sAddress As String 'declare this as Dim sAddress(1) As String if you > want 2 ip > addresses returned > > 'try to initalize the socket > If InitializeSocket() = True Then > > 'try to get the IP > ptrHosent = apiGetHostByName(sHostName & vbNullChar) > > If ptrHosent <> 0 Then > > 'get the IP address > apiCopyMemory hstHost, ByVal ptrHosent, LenB(hstHost) > apiCopyMemory ptrIPAddress, ByVal hstHost.hAddrList, 4 > > 'fill buffer > sAddress = Space$(4) > 'if you want multiple domains returned, > 'fill all items in sAddress array with 4 spaces > > apiCopyMemory ByVal sAddress, ByVal ptrIPAddress, > hstHost.hLength > > 'change this to > 'CopyMemory ByVal sAddress(0), ByVal ptrIPAddress, > hstHost.hLength > 'if you want an array of ip addresses returned > '(some domains have more than one ip address associated with it) > > 'get the IP address > GetIPFromHostName = IPToText(sAddress) > 'if you are using multiple addresses, you need > IPToText(sAddress(0)) & "," & > IPToText(sAddress(1)) > 'etc > End If > Else > MsgBox "Failed to open Socket." > End If > End Function > > Private Function IPToText(ByVal IPAddress As String) As String > 'converts characters to numbers > IPToText = CStr(Asc(IPAddress)) & "." & _ > CStr(Asc(Mid$(IPAddress, 2, 1))) & "." & _ > CStr(Asc(Mid$(IPAddress, 3, 1))) & "." & _ > CStr(Asc(Mid$(IPAddress, 4, 1))) > End Function > > Private Function ConvertAddressToString(longAddr As Long) As String > Dim myByte(3) As Byte > Dim Cnt As Long > CopyMemory myByte(0), longAddr, 4 > For Cnt = 0 To 3 > ConvertAddressToString = ConvertAddressToString + CStr(myByte(Cnt)) > + "." > Next Cnt > ConvertAddressToString = Left$(ConvertAddressToString, > Len(ConvertAddressToString) > - 1) > End Function > > > Public Function GetHostNameFromIP(ByVal sIPAddress As String) As String > Dim ptrHosent As Long > Dim hAddress As Long > Dim sHost As String > Dim nBytes As Long > > 'try to open the socket > If InitializeSocket() = True Then > > 'convert string address to long datatype > hAddress = apiInetAddr(sIPAddress) > > 'check if an error ocucred > If hAddress <> SOCKET_ERROR Then > > 'obtain a pointer to the HOSTENT structure > 'that contains the name and address > 'corresponding to the given network address. > ptrHosent = apiGetHostByAddr(hAddress, 4, AF_INET) > > If ptrHosent <> 0 Then > > 'convert address and > 'get resolved hostname > > apiCopyMemory ptrHosent, ByVal ptrHosent, 4 > > nBytes = apiStrLen(ByVal ptrHosent) > > If nBytes > 0 Then > 'fill the IP address buffer > sHost = Space$(nBytes) > > apiCopyMemory ByVal sHost, ByVal ptrHosent, nBytes > GetHostNameFromIP = sHost > End If > Else > MsgBox "Call to gethostbyaddr failed." > End If > 'close the socket > CloseSocket > Else > MsgBox "Invalid IP address" > End If > Else > MsgBox "Failed to open Socket" > End If > End Function > > > Public Function GetMyHostName() As String > 'Finds local HostName > Dim strHostname As String > Dim lngHostLen As Long > 'try to initalize the socket > If InitializeSocket() = True Then > lngHostLen = 256 > strHostname = Space$(lngHostLen) > If apiGetHostName(strHostname, lngHostLen) = SOCKET_ERROR Then > MsgBox "Windows Sockets error getting Host Name" > Else > strHostname = Trim$(strHostname) > strHostname = Left$(strHostname, Len(strHostname) - 1) > End If > Else > MsgBox "Failed to open Socket." > End If > GetMyHostName = strHostname > End Function > > Public Function GetMyIPAddress() As String > GetMyIPAddress = GetIPFromHostName(GetMyHostName) > End Function > > Public Function GetMyIPMask() > Dim Ret As Long > Dim bBytes() As Byte > Dim tel As Long > Dim Listing As MIB_IPADDRTABLE > On Error GoTo END1 > GetIpAddrTable ByVal 0&, Ret, True > If Ret <= 0 Then Exit Function > ReDim bBytes(0 To Ret - 1) As Byte > 'retrieve the data > GetIpAddrTable bBytes(0), Ret, False > 'Get the first 4 bytes to get the entry's.. ip installed > CopyMemory Listing.dEntrys, bBytes(0), 4 > 'Copy whole structure to Listing and return for Adapter 1 (Adapter 0 > = Loopback) > CopyMemory Listing.mIPInfo(1), bBytes(4 + > (Len(Listing.mIPInfo(0)))), > Len(Listing.mIPInfo(1)) > GetIPMask = ConvertAddressToString(Listing.mIPInfo(1).dwMask) > Exit Function > END1: > MsgBox "Error Resolving Subnet Mask" > End Function > > > > > > > _______________________________________________ > 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 stuart at lexacorp.com.pg Tue Jun 30 17:13:21 2009 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 01 Jul 2009 08:13:21 +1000 Subject: [dba-VB] Syslogs In-Reply-To: <4A4A40BC.6060905@colbyconsulting.com> References: <sa490735.064@cactus.dk>, <A5615CBECEC42E4791D7A7C724E1E9B2024478C6@MIEXCH.Marlow.ii-vi.net>, <4A4A40BC.6060905@colbyconsulting.com> Message-ID: <4A4A8E01.28725.1D86AB27@stuart.lexacorp.com.pg> clResolve currently returns a string for Adapter 1. It can be easily modified to return arrays of Addresses and Masks for each adapter. (read the comments) -- Stuart On 30 Jun 2009 at 12:43, jwcolby wrote: > Yes, but then you have to do more. IPConfig shows several IP addresses on my work laptop. One is > the wireless, which only works when in range of a wireless network, one is a physical NIC, and one > is a Hamachi IP. There could be even more. On my server I have two physical NICS and in theory > each could have asked for an IP address. > > So would the REAL IP address please stand up. > > John W. Colby > www.ColbyConsulting.com > > > Drew Wutka wrote: > > There are several ways to get your IP address. Two I've used is to use > > a Winsock control, and look at the local host IP. > > > > Another relatively easy way is to dump the results of IPCONFIG to a text > > file. > > > > Create a .bat file (call it iptest.bat) and put the following line in > > it: > > > > Ipconfig >C:\ip.txt > > > > Then using ShellWait (http://mvps.org/access/api/api0004.htm) > > > > Use this function: > > > > Function IPAddresses() As String > > Dim f As Long > > Dim strTemp As String > > Dim strArray() As String > > If Dir("C:\ip.txt") <> "" Then Kill "C:\ip.txt" > > ShellWait "C:\iptest.bat" > > f = FreeFile > > Open "C:\ip.txt" For Binary Access Read As f > > strTemp = Space(LOF(f)) > > Get f, , strTemp > > Close f > > strArray = Split(strTemp, vbCrLf) > > strTemp = "" > > For f = 0 To UBound(strArray) > > If InStr(1, strArray(f), "IPv4", vbTextCompare) > 0 Or InStr(1, > > strArray(f), " IP Address", vbTextCompare) > 0 Then > > strTemp = strTemp & Trim(Mid(strArray(f), InStr(1, strArray(f), > > ":", vbBinaryCompare) + 1)) & ";" > > End If > > Next f > > If Len(strTemp) > 0 Then strTemp = Left(strTemp, Len(strTemp) - 1) > > IPAddresses = strTemp > > End Function > > > > Whalla, IPAddresses will return as a semicolon delimited string. > > (Obviously you could return an array or create a collection too...either > > way....) > > > > Drew > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From Gustav at cactus.dk Mon Jun 1 08:16:57 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 01 Jun 2009 15:16:57 +0200 Subject: [dba-VB] SCRUM/WPF - Buttons Styling Exerc izes Message-ID: <sa23f10a.013@cactus.dk> Hi Shamil Have you tried using the deplay wizard of VS? /gustav >>> Salakhetdinov Shamil <mcp2004 at mail.ru> 01-06-2009 00:25 >>> Hi Robert at All, I have made sample SilverLight application and I have got it installed (by XCOPY) here: http://shamils-4.hosting.parking.ru/sl It works well when running locally in debug mode under VS2008 SP1 but it does not show anything in SilverLight when running from the above link. What could be wrong? Thank you. -- Shamil P.S. Here is the main code of the above sample application: http://shamils-4.hosting.parking.ru/sl Page1.xaml ======== <UserControl x:Class="SLA1.Page" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Width="400" Height="300"> <Grid x:Name="LayoutRoot" Background="White"> <Grid.RowDefinitions> <RowDefinition Height="50"></RowDefinition> <RowDefinition Height="50"></RowDefinition> <RowDefinition Height="50"></RowDefinition> <RowDefinition Height="50"></RowDefinition> <RowDefinition Height="50*"></RowDefinition> </Grid.RowDefinitions> <Grid.ColumnDefinitions> <ColumnDefinition Width="200"></ColumnDefinition> <ColumnDefinition Width="60*"></ColumnDefinition> </Grid.ColumnDefinitions> <TextBlock Margin="10" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="0">User Name:</TextBlock> <TextBox x:Name="txtUserName" Height="30" Width="100" HorizontalAlignment="Left" Grid.Row="1" Grid.Column="1" Text="guest"></TextBox> <TextBlock Margin="10" HorizontalAlignment="Right" VerticalAlignment="Center" Grid.Row="2" Grid.Column="0">Password:</TextBlock> <TextBox x:Name="txtPassword" Height="30" Width="100" HorizontalAlignment="Left" Grid.Row="2" Grid.Column="1" Text="test"></TextBox> <Button Click="Button_Click" Content="OK" Height="30" Width="100" HorizontalAlignment="Left" Grid.Row="3" Grid.Column="1"></Button> </Grid> </UserControl> Page1.xaml.cs ========== using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Windows; using System.Windows.Controls; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Shapes; namespace SLA1 { public partial class Page : UserControl { public Page() { InitializeComponent(); } private void Button_Click(object sender, RoutedEventArgs e) { if (txtUserName.Text != "guest" || txtPassword.Text != "test") MessageBox.Show("Invalid UserName or Password"); else MessageBox.Show("Hello, World!"); } } } -----Original Message----- From: Robert Stewart <robert at webedb.com> To: dba-vb at databaseadvisors.com Date: Sun, 31 May 2009 12:56:07 -0500 Subject: Re: [dba-VB] SCRUM/WPF - Buttons Styling Exercizes > I will be starting to work on a Silverlight application at the end of June. > I am currently working on converting an Access application into WPF > using the entity framework. > > I just created a VM with WIndows 7 RC and VS 2010 Beta 1. I will > be using them to do some presentations at the user group that I teach. > Database and GUI Design. > > There are currently 3 of us working in WPF. One is developing a pipe > yard inventory and shipping application in WPF. The other has developed > oil well information programs in WPF and is working another one now. > I am working a an application that manages social service agencies > that supply people with food, clothes, and other services. From mcp2004 at mail.ru Mon Jun 1 09:22:34 2009 From: mcp2004 at mail.ru (Salakhetdinov Shamil) Date: Mon, 01 Jun 2009 18:22:34 +0400 Subject: [dba-VB] =?koi8-r?b?U0NSVU0vV1BGIC0gQnV0dG9ucyBTdHlsaW5nIEV4ZXJj?= =?koi8-r?b?IGl6ZXM=?= In-Reply-To: <sa23f10a.013@cactus.dk> References: <sa23f10a.013@cactus.dk> Message-ID: <E1MB8PK-0003ib-00.mcp2004-mail-ru@f156.mail.ru> Hi Gustav, No, I didn't try to use deploy wizard - I assumed that SilverLight apps deployment should be as easy as ASP.NET apps - using XCOPY to copy files on prepared ASP.NET app folder - SilverLight app AFAIS is an ASP.NET app starting SilverLight control and feeding it with .xap file's location. I could be wrong with my assumption that SilverLight apps can be deployed using XCOPY. Maybe there should be some special processing of SilverLight app's .xap file on server side, which is currently missing on my ISP site? I will try to consult with SilverLight docs/my ISP or we can find solutions here together? Robert, did you try to deploy SilverLight applications manually? Thank you. -- Shamil -----Original Message----- From: "Gustav Brock" <Gustav at cactus.dk> To: <dba-vb at databaseadvisors.com> Date: Mon, 01 Jun 2009 15:16:57 +0200 Subject: Re: [dba-VB] SCRUM/WPF - Buttons Styling Exerc izes > Hi Shamil > > Have you tried using the deplay wizard of VS? > > /gustav > > > >>> Salakhetdinov Shamil <mcp2004 at mail.ru> 01-06-2009 00:25 >>> > Hi Robert at All, > > I have made sample SilverLight application and I have got it installed (by XCOPY) here: > > http://shamils-4.hosting.parking.ru/sl > > It works well when running locally in debug mode under VS2008 SP1 but it does not show anything in SilverLight when running from the above link. > > What could be wrong? > > Thank you. > > -- > Shamil > > P.S. Here is the main code of the above sample application: > > http://shamils-4.hosting.parking.ru/sl > > Page1.xaml > ======== > > <UserControl x:Class="SLA1.Page" > xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" > xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" > Width="400" Height="300"> > <Grid x:Name="LayoutRoot" Background="White"> > <Grid.RowDefinitions> > <RowDefinition Height="50"></RowDefinition> > <RowDefinition Height="50"></RowDefinition> > <RowDefinition Height="50"></RowDefinition> > <RowDefinition Height="50"></RowDefinition> > <RowDefinition Height="50*"></RowDefinition> > </Grid.RowDefinitions> > <Grid.ColumnDefinitions> > <ColumnDefinition Width="200"></ColumnDefinition> > <ColumnDefinition Width="60*"></ColumnDefinition> > </Grid.ColumnDefinitions> > > <TextBlock Margin="10" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="0">User Name:</TextBlock> > <TextBox x:Name="txtUserName" Height="30" Width="100" HorizontalAlignment="Left" Grid.Row="1" Grid.Column="1" Text="guest"></TextBox> > <TextBlock Margin="10" HorizontalAlignment="Right" VerticalAlignment="Center" Grid.Row="2" Grid.Column="0">Password:</TextBlock> > <TextBox x:Name="txtPassword" Height="30" Width="100" HorizontalAlignment="Left" Grid.Row="2" Grid.Column="1" Text="test"></TextBox> > <Button Click="Button_Click" Content="OK" Height="30" Width="100" HorizontalAlignment="Left" Grid.Row="3" Grid.Column="1"></Button> > > </Grid> > </UserControl> > > > Page1.xaml.cs > ========== > using System; > using System.Collections.Generic; > using System.Linq; > using System.Net; > using System.Windows; > using System.Windows.Controls; > using System.Windows.Documents; > using System.Windows.Input; > using System.Windows.Media; > using System.Windows.Media.Animation; > using System.Windows.Shapes; > > namespace SLA1 > { > public partial class Page : UserControl > { > public Page() > { > InitializeComponent(); > } > > private void Button_Click(object sender, RoutedEventArgs e) > { > if (txtUserName.Text != "guest" || txtPassword.Text != "test") > MessageBox.Show("Invalid UserName or Password"); > else > MessageBox.Show("Hello, World!"); > } > } > } > > > -----Original Message----- > From: Robert Stewart <robert at webedb.com> > To: dba-vb at databaseadvisors.com > Date: Sun, 31 May 2009 12:56:07 -0500 > Subject: Re: [dba-VB] SCRUM/WPF - Buttons Styling Exercizes > > > I will be starting to work on a Silverlight application at the end of June. > > I am currently working on converting an Access application into WPF > > using the entity framework. > > > > I just created a VM with WIndows 7 RC and VS 2010 Beta 1. I will > > be using them to do some presentations at the user group that I teach. > > Database and GUI Design. > > > > There are currently 3 of us working in WPF. One is developing a pipe > > yard inventory and shipping application in WPF. The other has developed > > oil well information programs in WPF and is working another one now. > > I am working a an application that manages social service agencies > > that supply people with food, clothes, and other services. > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From mcp2004 at mail.ru Mon Jun 1 17:17:49 2009 From: mcp2004 at mail.ru (Salakhetdinov Shamil) Date: Tue, 02 Jun 2009 02:17:49 +0400 Subject: [dba-VB] SCRUM/WPF Data Binding Message-ID: <E1MBFpF-0001Nn-00.mcp2004-mail-ru@f254.mail.ru> Hi All, I planned here is the first sample of WPF data bidining: http://shamils-4.hosting.parking.ru/xaml/WpfBrowserApplication2.xbap As you can find it promise to be rather time consuming to implement binding to ADO.NET datasets, which isn't supported natively in .NET 3.5. The following sample just implements bindind to an object instance. Robert, you have experience with VS2010 - does it have advanced data binding controls as e.g. WinForms' BidingSource and BindingNavigator? Thank you. -- Shamil P.S. Here is the code of the referenced above sample page: Shippers.xaml ============= <Page x:Class="WpfBrowserApplication1.ShippersPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="Shippers" Height="180" Width="260"> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="74"/> <ColumnDefinition Width="*"/> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition Height="30"/> <RowDefinition Height="30"/> <RowDefinition Height="30"/> </Grid.RowDefinitions> <TextBlock Margin="4" Text="Id" VerticalAlignment= "Center"/> <TextBox Text="{Binding Path=Id, Mode=TwoWay}" Margin="4" Grid.Column="1"/> <TextBlock Margin="4" Text="Name" Grid.Row="1" VerticalAlignment="Center"/> <TextBox Margin="4" Text="{Binding Path=Name, Mode=TwoWay}" Grid.Column="1" Grid.Row="1"/> <TextBlock Margin="4" Text="Phone" Grid.Row="2" VerticalAlignment="Center"/> <TextBox Margin="4" Text="{Binding Path=Phone, Mode=TwoWay}" Grid.Column="1" Grid.Row="2"/> </Grid> </Page> Shippers.xaml.cs ================ using System.Windows.Controls; using System.ComponentModel; namespace WpfBrowserApplication1 { public partial class ShippersPage : Page { public ShippersPage() { InitializeComponent(); // Set the DataContext // to a Shipper object this.DataContext = new Shipper() { Id = 1, Name = "Speedy Express", Phone = "(503) 555-9831" }; } } public class Shipper : INotifyPropertyChanged { private int _id; public int Id { get { return _id; } set { if (_id != value) { _id = value; OnPropertyChanged("Id"); } } } private string _name; public string Name { get { return _name; } set { _name = value; if (_name != value) { _phone = value; OnPropertyChanged("Name"); } } } private string _phone; public string Phone { get { return _phone; } set { _phone = value; if (_phone != value) { _phone = value; OnPropertyChanged("Phone"); } } } #region INotifyPropertyChanged Members /// Implement INotifyPropertyChanged to notify the binding /// targets when the values of properties change. public event PropertyChangedEventHandler PropertyChanged; private void OnPropertyChanged(string propertyName) { if (this.PropertyChanged != null) { // Raise the PropertyChanged event this.PropertyChanged( this, new PropertyChangedEventArgs( propertyName)); } } #endregion } } From marklbreen at gmail.com Mon Jun 1 17:51:51 2009 From: marklbreen at gmail.com (Mark Breen) Date: Mon, 1 Jun 2009 23:51:51 +0100 Subject: [dba-VB] FYI: SCRUM/Agile - Born To Cycle In-Reply-To: <c7fd28d00906011540s7daea7a0pa556c3082ce413e0@mail.gmail.com> References: <c7fd28d00905281457y4047eb9ya305276299bc2b3d@mail.gmail.com> <E1MA58A-0004XL-00.mcp2004-mail-ru@f229.mail.ru> <c7fd28d00906011540s7daea7a0pa556c3082ce413e0@mail.gmail.com> Message-ID: <c7fd28d00906011551x4b3eb129t71d9d2c635010419@mail.gmail.com> Hello Shamil, I am trying to get some advice from the SVN forums on how to properly manage a private / public server environment which is what we have. When I start to get some results on it, I will offer to attempt to help here. However, before we start that, does the team still want to maintain the private / public source control servers. If so, I will try to get scripts written to automate a release from private to public, but if you are considering switching back to a codeplex only store, then I do not need to write such scripts. It is up to you all to let me know what is best for the team, Shamil, do I get it right that the main problem with the codeplex only environment is that codeplex does not allow certain users to lock files? And do I have it right that you wish to lock the proj files to avoid people messing them up with the have earlier builds? In that case I guess that you must have been maintaining the latest / most correct proj file for the team? Is that right? Actually as I write this email, I realise that I am attempting to assist in solving a problem, but I am not 100% sure I know what the problem really is. I recall it was related to the proj and sln files, but would you like to remind me what the problem was and what you did to over come the problem. I will then try to help, if that help is needed. thanks Mark 2009/5/29 Salakhetdinov Shamil <mcp2004 at mail.ru> > Hello Mark, > > No, I didn't try to use export feature of TortoiseSVN: to publish on > CodePlex we have to get all the source files from latest copy of you server > sources, copy/replace them into local SVN folder of CodePlex (it will have > different files' versions numbers), add all new files to the .svn > descriptors and then submit that new version to CodePlex. AFAIU that should > be doable using SVN commands/scripts/batches but I'm not sure how to make it > 100% safe to add new files' types using such scripts - I mean we have to > list all the file types used as source files and those files types do change > - their set is getting extended - IOW still manual testing/fixing scripts > will be needed I think. > > I haven't time to automate that work - we can make it automated here all > together by writing batches and/or simple C# utitlity controlling such > automated update - whatever would be less time consuming. > > It might happen I'm missing more straightforward way of doing such > synchronbization between your server and CodePlex assumed your server is a > master but CodePlex files have difference version numbers controlled by > CodePlex server. > > Thank you. > > -- > Shamil > > From mcp2004 at mail.ru Tue Jun 2 15:51:20 2009 From: mcp2004 at mail.ru (Salakhetdinov Shamil) Date: Wed, 03 Jun 2009 00:51:20 +0400 Subject: [dba-VB] =?koi8-r?b?RllJOiBTQ1JVTS9BZ2lsZSAtIEJvcm4gVG8gQ3ljbGU=?= In-Reply-To: <c7fd28d00906011551x4b3eb129t71d9d2c635010419@mail.gmail.com> References: <c7fd28d00906011551x4b3eb129t71d9d2c635010419@mail.gmail.com> Message-ID: <E1MBax6-00016U-00.mcp2004-mail-ru@f220.mail.ru> Hello Mark, Yes, I do hope we will have our team "getting in active mode" sometime in the near future and therefore using your server would be preferrable. Yes, the main issue is to get locked solution and project files while changing them as well as form design code files as well as dataset definition files and if we will use ado.net entity framework then model files etc. - codeplex doesn't allow to lock files at all and therefore manual coordination is needed, which in our case looks time consuming... Yes, if you can get advice from SVN forum how to automate the task that could help us: - Basically what is needed is to use your server's local copy repositoty as the source (that will always be on developers' PCs). and copy all the folders and files from it into the target directory (local copy of codeplex repositoty), which will be used to submit changes to codeplex. All source folders can be copied but only the files with given extension from those folders should be copied. After such a copy new folders and files should be included into local svn repository, and the files missing in the source folders but presented in the target folders should be deleted from local codeplex svn repository. And then local codeplex svn repository can be submitted to codeplex SVN server. I think the above procedure can be programmed/automated using C# custom coding calling SVN utlities but it might happen there is somewhere something like that done already... Thank you. -- Shamil -----Original Message----- From: Mark Breen <marklbreen at gmail.com> To: "Discussion concerning Visual Basic and related programming issues."<dba-vb at databaseadvisors.com> Date: Mon, 1 Jun 2009 23:51:51 +0100 Subject: [dba-VB] FYI: SCRUM/Agile - Born To Cycle > Hello Shamil, > I am trying to get some advice from the SVN forums on how to properly manage > a private / public server environment which is what we have. > > When I start to get some results on it, I will offer to attempt to help > here. > > However, before we start that, does the team still want to maintain the > private / public source control servers. If so, I will try to get scripts > written to automate a release from private to public, but if you are > considering switching back to a codeplex only store, then I do not need to > write such scripts. > > It is up to you all to let me know what is best for the team, > > Shamil, do I get it right that the main problem with the codeplex only > environment is that codeplex does not allow certain users to lock files? > And do I have it right that you wish to lock the proj files to avoid people > messing them up with the have earlier builds? In that case I guess that you > must have been maintaining the latest / most correct proj file for the team? > Is that right? Actually as I write this email, I realise that I am > attempting to assist in solving a problem, but I am not 100% sure I know > what the problem really is. I recall it was related to the proj and sln > files, but would you like to remind me what the problem was and what you > did to over come the problem. I will then try to help, if that help is > needed. > > thanks > > Mark > > > 2009/5/29 Salakhetdinov Shamil <mcp2004 at mail.ru> > > > > Hello Mark, > > > > No, I didn't try to use export feature of TortoiseSVN: to publish on > > CodePlex we have to get all the source files from latest copy of you server > > sources, copy/replace them into local SVN folder of CodePlex (it will have > > different files' versions numbers), add all new files to the .svn > > descriptors and then submit that new version to CodePlex. AFAIU that should > > be doable using SVN commands/scripts/batches but I'm not sure how to make it > > 100% safe to add new files' types using such scripts - I mean we have to > > list all the file types used as source files and those files types do change > > - their set is getting extended - IOW still manual testing/fixing scripts > > will be needed I think. > > > > I haven't time to automate that work - we can make it automated here all > > together by writing batches and/or simple C# utitlity controlling such > > automated update - whatever would be less time consuming. > > > > It might happen I'm missing more straightforward way of doing such > > synchronbization between your server and CodePlex assumed your server is a > > master but CodePlex files have difference version numbers controlled by > > CodePlex server. > > > > Thank you. > > > > -- > > Shamil > > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From mcp2004 at mail.ru Tue Jun 2 19:03:11 2009 From: mcp2004 at mail.ru (Salakhetdinov Shamil) Date: Wed, 03 Jun 2009 04:03:11 +0400 Subject: [dba-VB] =?koi8-r?b?U0NSVU0vV1BGIERhdGEgQmluZGluZw==?= In-Reply-To: <E1MBFpF-0001Nn-00.mcp2004-mail-ru@f254.mail.ru> References: <E1MBFpF-0001Nn-00.mcp2004-mail-ru@f254.mail.ru> Message-ID: <E1MBdwl-0007tL-00.mcp2004-mail-ru@f255.mail.ru> Hi All, Here is the next sampple on WPD databinding - now with a combobxo to navigate between three object instances. You can also edit fields values via wpf form and you can find they are saved in form's local memory: Here is the link to the live sample: http://shamils-4.hosting.parking.ru/xaml/WpfBrowserApplication2.xbap and in P.S. you can fiund code. Basically that's all main information on databinding I wanted to tell here, and in the following samples I plan to implement step by step navigation and data manipulation set of buttons. Thank you. -- Shamil Shippers.xaml ============= <Page x:Class="WpfBrowserApplication1.ShippersPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="Shippers" Height="180" Width="260"> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="74"/> <ColumnDefinition Width="*"/> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition Height="30"/> <RowDefinition Height="10"/> <RowDefinition Height="30"/> <RowDefinition Height="30"/> <RowDefinition Height="30"/> </Grid.RowDefinitions> <TextBlock Margin="4" Text="Shippers:" Grid.Row="0" Grid.Column="0" VerticalAlignment= "Center"/> <ComboBox x:Name="cboShippers" Margin="4" Grid.Row="0" Grid.Column="1" SelectedValuePath="Id" DisplayMemberPath="Name" SelectionChanged="cboShippers_SelectionChanged" /> <TextBlock Margin="4" Text="Id" Grid.Row="2" Grid.Column="0" VerticalAlignment= "Center"/> <TextBlock Text="{Binding Path=Id, Mode=OneWay}" Margin="4" Grid.Row="2" Grid.Column="1"/> <TextBlock Margin="4" Text="Name" Grid.Row="3" Grid.Column="0" VerticalAlignment="Center"/> <TextBox Margin="4" Text="{Binding Path=Name, Mode=TwoWay}" Grid.Row="3" Grid.Column="1"/> <TextBlock Margin="4" Text="Phone" Grid.Row="4" Grid.Column="0" VerticalAlignment="Center"/> <TextBox Margin="4" Text="{Binding Path=Phone, Mode=TwoWay}" Grid.Row="4" Grid.Column="1" /> </Grid> </Page> Shippers.xaml.cs ================ using System.Collections.Generic; using System.Windows.Controls; using System.Windows.Documents; using System.ComponentModel; namespace WpfBrowserApplication1 { public partial class ShippersPage : Page { private List<Shipper> _shippers; private Shipper _currentShipper; public ShippersPage() { InitializeComponent(); _loadInProgress = true; _shippers = Shipper.GetAll(); // Set the DataContext // to a Shipper object this.DataContext = _shippers[0]; foreach (Shipper shipper in _shippers) cboShippers.Items.Add(shipper); _currentShipper = _shippers[0]; cboShippers.SelectedItem = _currentShipper; _loadInProgress = false; } private bool _loadInProgress; private void cboShippers_SelectionChanged( object sender, SelectionChangedEventArgs e) { if (_loadInProgress) return; ComboBox cbo = (ComboBox)sender; _currentShipper = (Shipper)cbo.SelectedItem; this.DataContext = cbo.SelectedItem; e.Handled = true; } } public class Shipper : INotifyPropertyChanged { public static List<Shipper> GetAll() { List<Shipper> list = new List<Shipper>(); list.Add( new Shipper() { Id = 1, Name = "Speedy Express", Phone = "(503) 555-9831" }); list.Add( new Shipper() { Id = 2, Name = "United Package", Phone = "(503) 555-3199" }); list.Add( new Shipper() { Id = 3, Name = "Federal Shipping", Phone = "(503) 555-9931" }); return list; } private int _id; public int Id { get { return _id; } set { if (_id != value) { _id = value; OnPropertyChanged("Id"); } } } private string _name; public string Name { get { return _name; } set { _name = value; if (_name != value) { _phone = value; OnPropertyChanged("Name"); } } } private string _phone; public string Phone { get { return _phone; } set { _phone = value; if (_phone != value) { _phone = value; OnPropertyChanged("Phone"); } } } #region INotifyPropertyChanged Members /// Implement INotifyPropertyChanged to notify the binding /// targets when the values of properties change. public event PropertyChangedEventHandler PropertyChanged; private void OnPropertyChanged(string propertyName) { if (this.PropertyChanged != null) { // Raise the PropertyChanged event this.PropertyChanged( this, new PropertyChangedEventArgs( propertyName)); } } #endregion } } -----Original Message----- From: Salakhetdinov Shamil <mcp2004 at mail.ru> To: dba-VB <dba-vb at databaseadvisors.com> Date: Tue, 02 Jun 2009 02:17:49 +0400 Subject: [dba-VB] SCRUM/WPF Data Binding > Hi All, > > I planned here is the first sample of WPF data bidining: > > http://shamils-4.hosting.parking.ru/xaml/WpfBrowserApplication2.xbap > <<< snip>>> From mcp2004 at mail.ru Tue Jun 2 19:33:26 2009 From: mcp2004 at mail.ru (Salakhetdinov Shamil) Date: Wed, 03 Jun 2009 04:33:26 +0400 Subject: [dba-VB] SCRUM/SilverLight 2.0 Message-ID: <E1MBeQ2-00082Q-00.mcp2004-mail-ru@f190.mail.ru> Hi All, I have got setup simple SilverLight application here http://shamils-4.hosting.parking.ru/sl now using publish feature but it still doesn't work there when started from Internet and it works well locally. Do you know should there be any special tuning done of server side for SilverLight applications to run properly? (ASP.NET 2.0/3.5 run from that site just fine.) Thank you. -- Shamil From dwaters at usinternet.com Wed Jun 3 12:52:45 2009 From: dwaters at usinternet.com (Dan Waters) Date: Wed, 3 Jun 2009 12:52:45 -0500 Subject: [dba-VB] Which .Net Framework Should I Use? Message-ID: <1130A6EB0C9A443582981461A331769D@danwaters> I am just starting to learn VB.Net using VS 2008. All things being equal, I'd like to always select the latest version of the .Net framework (currently 3.5 SP1). My goal is to convert my Access system to VB.Net for any new and potentially for existing customers. Is there any reason not to use the latest version? Like for some reason customers don't want it? Any thoughts on this? Thanks! Dan From mcp2004 at mail.ru Wed Jun 3 13:59:33 2009 From: mcp2004 at mail.ru (Salakhetdinov Shamil) Date: Wed, 03 Jun 2009 22:59:33 +0400 Subject: [dba-VB] =?koi8-r?b?V2hpY2ggLk5ldCBGcmFtZXdvcmsgU2hvdWxkIEkgVXNl?= =?koi8-r?b?Pw==?= In-Reply-To: <1130A6EB0C9A443582981461A331769D@danwaters> References: <1130A6EB0C9A443582981461A331769D@danwaters> Message-ID: <E1MBvgT-0004Pm-00.mcp2004-mail-ru@f247.mail.ru> Hi Dan, I suppose that it's better to have the latest version of .NET Framework release, which is currently 3.5 SP1 as you noted. I have just happened to bootstrap .NET Framework 3.5 SP1 setup on my sister's notebook running XP by browsing to this link on my test site: http://shamils-4.hosting.parking.ru/xaml/WpfBrowserApplication2.xbap That bootstrap downloaded ~66MB of .NET Framework setup and then run it rather smoothly with one exception that it didn't want to continue with IE instance, which forced bootstrap, window opened - and the only option to close IE window was to "kill" it via Task Manager but then .NET 3.5 SP1 setup proceeded and finished OK, and my sample XBAP application did show-up OK on my sister's PC... I'd also note that if you only starting .NET development then maybe consider using C# instead of VB.NET - the reasons of using C# was many times repeated here and on AccessD - one of then is that for C# there are much more that for VB.NET ready to use code snippets all over the Internet, another one is that C# results in more readable code etc. Thank you. -- Shamil -----Original Message----- From: "Dan Waters" <dwaters at usinternet.com> To: "'Discussion concerning Visual Basic and related programming issues.'"<dba-vb at databaseadvisors.com> Date: Wed, 3 Jun 2009 12:52:45 -0500 Subject: [dba-VB] Which .Net Framework Should I Use? > I am just starting to learn VB.Net using VS 2008. All things being equal, > I'd like to always select the latest version of the .Net framework > (currently 3.5 SP1). My goal is to convert my Access system to VB.Net for > any new and potentially for existing customers. > > Is there any reason not to use the latest version? Like for some reason > customers don't want it? > > Any thoughts on this? > > Thanks! > Dan > > > > > _______________________________________________ > 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 Jun 3 16:37:19 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 03 Jun 2009 23:37:19 +0200 Subject: [dba-VB] Which .Net Framework Should I Use? Message-ID: <sa270943.059@cactus.dk> Hi Dan Yes, 3.5 won't run on Win 2000 (as far as I know). /gustav >>> "Dan Waters" <dwaters at usinternet.com> 03-06-2009 19:52 >>> I am just starting to learn VB.Net using VS 2008. All things being equal, I'd like to always select the latest version of the .Net framework (currently 3.5 SP1). My goal is to convert my Access system to VB.Net for any new and potentially for existing customers. Is there any reason not to use the latest version? Like for some reason customers don't want it? Any thoughts on this? Thanks! Dan From bheid at sc.rr.com Wed Jun 3 21:29:26 2009 From: bheid at sc.rr.com (Bobby Heid) Date: Wed, 3 Jun 2009 22:29:26 -0400 Subject: [dba-VB] Which .Net Framework Should I Use? In-Reply-To: <E1MBvgT-0004Pm-00.mcp2004-mail-ru@f247.mail.ru> References: <1130A6EB0C9A443582981461A331769D@danwaters> <E1MBvgT-0004Pm-00.mcp2004-mail-ru@f247.mail.ru> Message-ID: <000301c9e4bc$48185ab0$d8491010$@rr.com> >> one is that C# results in more readable code etc. I disagree with this statement. The quality of the code (performance and readability) is proportional to the quality of the developer. I use both C# and VB.Net. For the most part, you can write the same code in both languages and get very readable code. People can make just about any language's code poorly readable. This is not a post against C#, I actually prefer C#, although I use VB.Net at work. One thing I noticed while looking for a job a few years ago is that some regions have more C# jobs and others have more VB.Net jobs. I would personally target the latest framework. I think the .Net framework 4.0 is not too far in the future. Bobby -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Salakhetdinov Shamil Sent: Wednesday, June 03, 2009 3:00 PM To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Which .Net Framework Should I Use? Hi Dan, I suppose that it's better to have the latest version of .NET Framework release, which is currently 3.5 SP1 as you noted. I have just happened to bootstrap .NET Framework 3.5 SP1 setup on my sister's notebook running XP by browsing to this link on my test site: http://shamils-4.hosting.parking.ru/xaml/WpfBrowserApplication2.xbap That bootstrap downloaded ~66MB of .NET Framework setup and then run it rather smoothly with one exception that it didn't want to continue with IE instance, which forced bootstrap, window opened - and the only option to close IE window was to "kill" it via Task Manager but then .NET 3.5 SP1 setup proceeded and finished OK, and my sample XBAP application did show-up OK on my sister's PC... I'd also note that if you only starting .NET development then maybe consider using C# instead of VB.NET - the reasons of using C# was many times repeated here and on AccessD - one of then is that for C# there are much more that for VB.NET ready to use code snippets all over the Internet, another one is that C# results in more readable code etc. Thank you. -- Shamil <snip> From mcp2004 at mail.ru Thu Jun 4 10:06:49 2009 From: mcp2004 at mail.ru (Salakhetdinov Shamil) Date: Thu, 04 Jun 2009 19:06:49 +0400 Subject: [dba-VB] Problem while publishing ADO.NET Data Service... Message-ID: <E1MCEWn-0007aZ-00.mcp2004-mail-ru@f200.mail.ru> Hi All, I'm trying to implement and to publish ADO.NET Data Service as described here: http://msdn.microsoft.com/en-us/library/cc907912.aspx and I'm getting the following error: Server Error in '/NorthwindNetDataService' Application. -------------------------------------------------------------------------------- This collection already contains an address with scheme http. There can be at most one address per scheme in this collection. Parameter name: item ... Googling and trying to apply different advices from googled samples to not help. Data Service is currently published here: http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NorthwinNetService.svc When usinhg it locally as e.g: http://localhost:53154/NorthwinNetService.svc or http://localhost:53154/NorthwinNetService.svc/Shipper it works OK - for the latter URL I'm getting the following response (truncated here): http://localhost:53154/NorthwinNetService.svc/Shipper <?xml version="1.0" encoding="utf-8" standalone="yes" ?> - <feed xml:base="http://localhost:53154/NorthwinNetService.svc/" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns="http://www.w3.org/2005/Atom"> <title type="text">Shipper http://localhost:53154/NorthwinNetService.svc/Shipper 2009-06-04T14:58:28Z - http://localhost:53154/NorthwinNetService.svc/Shipper(1) <updated>2009-06-04T14:58:28Z</updated> - <author> <name /> </author> <link rel="edit" title="Shipper" href="Shipper(1)" /> <link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Order" type="application/atom+xml;type=feed" title="Order" href="Shipper(1)/Order" /> <category term="NorthwindNetModel.Shipper" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme" /> - <content type="application/xml"> - <m:properties> <d:ID m:type="Edm.Int32">1</d:ID> <d:Name>Speedy Express</d:Name> <d:Phone>(503) 555-9831</d:Phone> <d:RowTimeStamp m:type="Edm.Binary">AAAAAAAAB/Q=</d:RowTimeStamp> </m:properties> </content> </entry> ....... If you get through such an issues already and you have solved it could you please post your solution here? Thank you. -- Shamil From mcp2004 at mail.ru Thu Jun 4 10:10:09 2009 From: mcp2004 at mail.ru (Salakhetdinov Shamil) Date: Thu, 04 Jun 2009 19:10:09 +0400 Subject: [dba-VB] =?koi8-r?b?V2hpY2ggLk5ldCBGcmFtZXdvcmsgU2hvdWxkIEkgVXNl?= =?koi8-r?b?Pw==?= In-Reply-To: <000301c9e4bc$48185ab0$d8491010$@rr.com> References: <000301c9e4bc$48185ab0$d8491010$@rr.com> Message-ID: <E1MCEa1-00052h-00.mcp2004-mail-ru@f161.mail.ru> Hi Bobby, That's fine. Thank you. -- Shamil -----Original Message----- From: "Bobby Heid" <bheid at sc.rr.com> To: "'Salakhetdinov Shamil'" <mcp2004 at mail.ru>,"'Discussion concerning Visual Basic and related programming issues.'" <dba-vb at databaseadvisors.com> Date: Wed, 3 Jun 2009 22:29:26 -0400 Subject: RE: [dba-VB] Which .Net Framework Should I Use? > >> one is that C# results in more readable code etc. > > I disagree with this statement. The quality of the code (performance and > readability) is proportional to the quality of the developer. I use both C# > and VB.Net. For the most part, you can write the same code in both > languages and get very readable code. People can make just about any > language's code poorly readable. > > This is not a post against C#, I actually prefer C#, although I use VB.Net > at work. > > One thing I noticed while looking for a job a few years ago is that some > regions have more C# jobs and others have more VB.Net jobs. > > I would personally target the latest framework. I think the .Net framework > 4.0 is not too far in the future. > > Bobby > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Salakhetdinov > Shamil > Sent: Wednesday, June 03, 2009 3:00 PM > To: Discussion concerning Visual Basic and related programming issues. > Subject: Re: [dba-VB] Which .Net Framework Should I Use? > > Hi Dan, > > I suppose that it's better to have the latest version of .NET Framework > release, which is currently 3.5 SP1 as you noted. > > I have just happened to bootstrap .NET Framework 3.5 SP1 setup on my > sister's notebook running XP by browsing to this link on my test site: > > http://shamils-4.hosting.parking.ru/xaml/WpfBrowserApplication2.xbap > > That bootstrap downloaded ~66MB of .NET Framework setup and then run it > rather smoothly with one exception that it didn't want to continue with IE > instance, which forced bootstrap, window opened - and the only option to > close IE window was to "kill" it via Task Manager but then .NET 3.5 SP1 > setup proceeded and finished OK, and my sample XBAP application did show-up > OK on my sister's PC... > > I'd also note that if you only starting .NET development then maybe consider > using C# instead of VB.NET - the reasons of using C# was many times repeated > here and on AccessD - one of then is that for C# there are much more that > for VB.NET ready to use code snippets all over the Internet, another one is > that C# results in more readable code etc. > > Thank you. > > -- > Shamil > > <snip> > > > From mcp2004 at mail.ru Thu Jun 4 13:04:53 2009 From: mcp2004 at mail.ru (Salakhetdinov Shamil) Date: Thu, 04 Jun 2009 22:04:53 +0400 Subject: [dba-VB] =?koi8-r?b?UHJvYmxlbSB3aGlsZSBwdWJsaXNoaW5nIEFETy5ORVQg?= =?koi8-r?b?RGF0YSBTZXJ2aWNlLi4u?= In-Reply-To: <E1MCEWn-0007aZ-00.mcp2004-mail-ru@f200.mail.ru> References: <E1MCEWn-0007aZ-00.mcp2004-mail-ru@f200.mail.ru> Message-ID: <E1MCHJ7-0000b4-00.mcp2004-mail-ru@f73.mail.ru> Hi All, I'm still "fighting" with the below issue - it woudl be great if you can help to find a quick fix as I wanted to use this data service data source for sample WPF/XBAP/SilverLight forms/pages... Meanwhile I have got occasionally created what is called: Dynamic Data Entities Web Application and it worked almost out-of-the-box http://shamils-4.hosting.parking.ru/NorthwindNetDynamicDataWebSite just some small corrections in Global.asax.cs were needed - uncommenting two code lines and typing in ADO.NET Entity Model name: model.RegisterContext(typeof(NorthwindNETEntities), new ContextConfiguration() { ScaffoldAllTables = true }); I must say I wasn't aware of this technology, which needs some more studying to see where it leads... Thank you. -- Shamil -----Original Message----- From: Salakhetdinov Shamil <mcp2004 at mail.ru> To: dba-VB <dba-vb at databaseadvisors.com> Date: Thu, 04 Jun 2009 19:06:49 +0400 Subject: [dba-VB] Problem while publishing ADO.NET Data Service... > Hi All, > > I'm trying to implement and to publish ADO.NET Data Service as described here: > > http://msdn.microsoft.com/en-us/library/cc907912.aspx > > and I'm getting the following error: > > Server Error in '/NorthwindNetDataService' Application. > -------------------------------------------------------------------------------- > > This collection already contains an address with scheme http. There can be at most one address per scheme in this collection. > Parameter name: item > ... > > Googling and trying to apply different advices from googled samples to not help. > > Data Service is currently published here: > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NorthwinNetService.svc > > When usinhg it locally as e.g: > > http://localhost:53154/NorthwinNetService.svc > > or > > http://localhost:53154/NorthwinNetService.svc/Shipper > > it works OK - for the latter URL I'm getting the following response (truncated here): > > http://localhost:53154/NorthwinNetService.svc/Shipper > > <?xml version="1.0" encoding="utf-8" standalone="yes" ?> > - <feed xml:base="http://localhost:53154/NorthwinNetService.svc/" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns="http://www.w3.org/2005/Atom"> > <title type="text">Shipper > http://localhost:53154/NorthwinNetService.svc/Shipper > 2009-06-04T14:58:28Z > > - > http://localhost:53154/NorthwinNetService.svc/Shipper(1) > > <updated>2009-06-04T14:58:28Z</updated> > - <author> > <name /> > </author> > <link rel="edit" title="Shipper" href="Shipper(1)" /> > <link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Order" type="application/atom+xml;type=feed" title="Order" href="Shipper(1)/Order" /> > <category term="NorthwindNetModel.Shipper" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme" /> > - <content type="application/xml"> > - <m:properties> > <d:ID m:type="Edm.Int32">1</d:ID> > <d:Name>Speedy Express</d:Name> > <d:Phone>(503) 555-9831</d:Phone> > <d:RowTimeStamp m:type="Edm.Binary">AAAAAAAAB/Q=</d:RowTimeStamp> > </m:properties> > </content> > </entry> > ....... > > > If you get through such an issues already and you have solved it could you please post your solution here? > > Thank you. > > -- > Shamil > > > > > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From mcp2004 at mail.ru Thu Jun 4 14:06:18 2009 From: mcp2004 at mail.ru (Salakhetdinov Shamil) Date: Thu, 04 Jun 2009 23:06:18 +0400 Subject: [dba-VB] =?koi8-r?b?UHJvYmxlbSB3aGlsZSBwdWJsaXNoaW5nIEFETy5ORVQg?= =?koi8-r?b?RGF0YSBTZXJ2aWNlLi4u?= In-Reply-To: <E1MCHJ7-0000b4-00.mcp2004-mail-ru@f73.mail.ru> References: <E1MCHJ7-0000b4-00.mcp2004-mail-ru@f73.mail.ru> Message-ID: <E1MCIGY-0006z3-00.mcp2004-mail-ru@f59.mail.ru> Hi All, I have changed location of NorthwindNety Data Service to: http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc still no solution for This collection already contains an address with scheme http. There can be at most one address per scheme in this collection. Parameter name: item :( -- Shamil -----Original Message----- From: Salakhetdinov Shamil <mcp2004 at mail.ru> To: "Discussion concerning Visual Basic and related programming issues."<dba-vb at databaseadvisors.com> Date: Thu, 04 Jun 2009 22:04:53 +0400 Subject: Re: [dba-VB] Problem while publishing ADO.NET Data Service... > Hi All, > > I'm still "fighting" with the below issue - it woudl be great if you can help to find a quick fix as I wanted to use this data service data source for sample WPF/XBAP/SilverLight forms/pages... > > Meanwhile I have got occasionally created what is called: > > Dynamic Data Entities Web Application > > and it worked almost out-of-the-box > > http://shamils-4.hosting.parking.ru/NorthwindNetDynamicDataWebSite > > just some small corrections in Global.asax.cs were needed - uncommenting two code lines and typing in ADO.NET Entity Model name: > > model.RegisterContext(typeof(NorthwindNETEntities), > new ContextConfiguration() { ScaffoldAllTables = true }); > > I must say I wasn't aware of this technology, which needs some more studying to see where it leads... > > Thank you. > > -- > Shamil > > > -----Original Message----- > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > To: dba-VB <dba-vb at databaseadvisors.com> > Date: Thu, 04 Jun 2009 19:06:49 +0400 > Subject: [dba-VB] Problem while publishing ADO.NET Data Service... > > > Hi All, > > > > I'm trying to implement and to publish ADO.NET Data Service as described here: > > > > http://msdn.microsoft.com/en-us/library/cc907912.aspx > > > > and I'm getting the following error: > > > > Server Error in '/NorthwindNetDataService' Application. > > -------------------------------------------------------------------------------- > > > > This collection already contains an address with scheme http. There can be at most one address per scheme in this collection. > > Parameter name: item > > ... > > > > Googling and trying to apply different advices from googled samples to not help. > > > > Data Service is currently published here: > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NorthwinNetService.svc > > > > When usinhg it locally as e.g: > > > > http://localhost:53154/NorthwinNetService.svc > > > > or > > > > http://localhost:53154/NorthwinNetService.svc/Shipper > > > > it works OK - for the latter URL I'm getting the following response (truncated here): > > > > http://localhost:53154/NorthwinNetService.svc/Shipper > > > > <?xml version="1.0" encoding="utf-8" standalone="yes" ?> > > - <feed xml:base="http://localhost:53154/NorthwinNetService.svc/" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns="http://www.w3.org/2005/Atom"> > > <title type="text">Shipper > > http://localhost:53154/NorthwinNetService.svc/Shipper > > 2009-06-04T14:58:28Z > > > > - > > http://localhost:53154/NorthwinNetService.svc/Shipper(1) > > > > <updated>2009-06-04T14:58:28Z</updated> > > - <author> > > <name /> > > </author> > > <link rel="edit" title="Shipper" href="Shipper(1)" /> > > <link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Order" type="application/atom+xml;type=feed" title="Order" href="Shipper(1)/Order" /> > > <category term="NorthwindNetModel.Shipper" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme" /> > > - <content type="application/xml"> > > - <m:properties> > > <d:ID m:type="Edm.Int32">1</d:ID> > > <d:Name>Speedy Express</d:Name> > > <d:Phone>(503) 555-9831</d:Phone> > > <d:RowTimeStamp m:type="Edm.Binary">AAAAAAAAB/Q=</d:RowTimeStamp> > > </m:properties> > > </content> > > </entry> > > ....... > > > > > > If you get through such an issues already and you have solved it could you please post your solution here? > > > > 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 mcp2004 at mail.ru Thu Jun 4 17:48:38 2009 From: mcp2004 at mail.ru (Salakhetdinov Shamil) Date: Fri, 05 Jun 2009 02:48:38 +0400 Subject: [dba-VB] =?koi8-r?b?UHJvYmxlbSB3aGlsZSBwdWJsaXNoaW5nIEFETy5ORVQg?= =?koi8-r?b?RGF0YSBTZXJ2aWNlLi4u?= In-Reply-To: <E1MCIGY-0006z3-00.mcp2004-mail-ru@f59.mail.ru> References: <E1MCIGY-0006z3-00.mcp2004-mail-ru@f59.mail.ru> Message-ID: <E1MCLji-0004uR-00.mcp2004-mail-ru@f251.mail.ru> Hi All, I have got found one solution for the subject issue: Hosted ADO.NET Data Services & Silverlight http://dvanderboom.wordpress.com/2009/01/07/hosted-adonet-data-services-silverlight/ But it doesn't look satisfactory for general case, and it doesn't work yet for my site (waiting for ISP support with IIS server restart - maybe that helps as web site restarting doesn't work) - I have got stuck here: http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc with a message: <<< IIS specified authentication schemes 'Basic, Anonymous', but the binding only supports specification of exactly one authentication scheme. Valid authentication schemes are Digest, Negotiate, NTLM, Basic, or Anonymous. Change the IIS settings so that only a single authentication scheme is used. >>> and as you can see SOAP and WCF sample services do work OK here: http://shamils-4.hosting.parking.ru/NorthwindNetDataService/SOAPService.asmx http://shamils-4.hosting.parking.ru/NorthwindNetDataService/WCFService.svc If you know general solution for subject issue that woudl be very helpful. Thank you. -- Shamil -----Original Message----- From: Salakhetdinov Shamil <mcp2004 at mail.ru> To: "Discussion concerning Visual Basic and related programming issues."<dba-vb at databaseadvisors.com> Date: Thu, 04 Jun 2009 23:06:18 +0400 Subject: Re: [dba-VB] Problem while publishing ADO.NET Data Service... > Hi All, > > I have changed location of NorthwindNety Data Service to: > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > still no solution for > > This collection already contains an address with scheme http. There can be at most one address per scheme in this collection. > Parameter name: item > > :( > > -- > Shamil > ><<< aaa >>> From mcp2004 at mail.ru Thu Jun 4 18:30:38 2009 From: mcp2004 at mail.ru (Salakhetdinov Shamil) Date: Fri, 05 Jun 2009 03:30:38 +0400 Subject: [dba-VB] =?koi8-r?b?UHJvYmxlbSB3aGlsZSBwdWJsaXNoaW5nIEFETy5ORVQg?= =?koi8-r?b?RGF0YSBTZXJ2aWNlLi4u?= In-Reply-To: <E1MCLji-0004uR-00.mcp2004-mail-ru@f251.mail.ru> References: <E1MCLji-0004uR-00.mcp2004-mail-ru@f251.mail.ru> Message-ID: <E1MCMOM-0006dT-00.mcp2004-mail-ru@f182.mail.ru> Hi All, Just wanted to ask one more question on subject issue: I do not understand why IIS should be restarted to have one of its Web Site's getting a new setting activated? I mean why it's not enough to stop and start this web site/web application? What am I missing? You can see by goodling how many developers got confused by this "simple"(?) issue - and even stackoverflow doesn't have a clear answer, or am I missing it? Thank you. -- Shamil -----Original Message----- From: Salakhetdinov Shamil <mcp2004 at mail.ru> To: "Discussion concerning Visual Basic and related programming issues."<dba-vb at databaseadvisors.com> Date: Fri, 05 Jun 2009 02:48:38 +0400 Subject: Re: [dba-VB] Problem while publishing ADO.NET Data Service... > Hi All, > > I have got found one solution for the subject issue: > > Hosted ADO.NET Data Services & Silverlight > http://dvanderboom.wordpress.com/2009/01/07/hosted-adonet-data-services-silverlight/ > > But it doesn't look satisfactory for general case, and it doesn't work yet for my site (waiting for ISP support with IIS server restart - maybe that helps as web site restarting doesn't work) - I have got stuck here: > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > with a message: > <<< > IIS specified authentication schemes 'Basic, Anonymous', but the binding only supports specification of exactly one authentication scheme. Valid authentication schemes are Digest, Negotiate, NTLM, Basic, or Anonymous. Change the IIS settings so that only a single authentication scheme is used. > >>> > > and as you can see SOAP and WCF sample services do work OK here: > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/SOAPService.asmx > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/WCFService.svc > > If you know general solution for subject issue that woudl be very helpful. > > Thank you. > > -- > Shamil > > -----Original Message----- > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > To: "Discussion concerning Visual Basic and related programming issues."<dba-vb at databaseadvisors.com> > Date: Thu, 04 Jun 2009 23:06:18 +0400 > Subject: Re: [dba-VB] > Problem while publishing ADO.NET Data Service... > > > Hi All, > > > > I have changed location of NorthwindNety Data Service to: > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > > > still no solution for > > > > This collection already contains an address with scheme http. There can be at most one address per scheme in this collection. > > Parameter name: item > > > > :( > > > > -- > > Shamil > > > ><<< aaa >>> > _______________________________________________ > 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 Jun 5 03:10:10 2009 From: marklbreen at gmail.com (Mark Breen) Date: Fri, 5 Jun 2009 09:10:10 +0100 Subject: [dba-VB] Problem while publishing ADO.NET Data Service... In-Reply-To: <E1MCMOM-0006dT-00.mcp2004-mail-ru@f182.mail.ru> References: <E1MCLji-0004uR-00.mcp2004-mail-ru@f251.mail.ru> <E1MCMOM-0006dT-00.mcp2004-mail-ru@f182.mail.ru> Message-ID: <c7fd28d00906050110t4683d3a4s12edd90831dde420@mail.gmail.com> Hello Shamil, as you know, I have two servers here in Ireland, would you like to do your diagnosis / development of future development work on one of my servers ? If so, that would be no problem. I am trying to keep up and read some of the link you posted int he last few days regarding ADO.NET Data Service. I am not clear yet about differences between Webservices and ADO.NET Data Service , but I expect if I spend some time to google and read, I can become clear. However, I have one question, do you think that this archetectire is without doubt the way we will all connect to our data sources in the future? How about performance, will it perform as good as current connections such as ado and odbc over SQL Server Port? thanks Mark 2009/6/5 Salakhetdinov Shamil <mcp2004 at mail.ru> > > Hi All, > > Just wanted to ask one more question on subject issue: I do not understand > why IIS should be restarted to have one of its Web Site's getting a new > setting activated? I mean why it's not enough to stop and start this web > site/web application? What am I missing? > > You can see by goodling how many developers got confused by this > "simple"(?) issue - and even stackoverflow doesn't have a clear answer, or > am I missing it? > > Thank you. > > -- > Shamil > > -----Original Message----- > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > To: "Discussion concerning Visual Basic and related programming issues."< > dba-vb at databaseadvisors.com> > Date: Fri, 05 Jun 2009 02:48:38 +0400 > Subject: Re: [dba-VB] > Problem while publishing ADO.NET Data Service... > > > Hi All, > > > > I have got found one solution for the subject issue: > > > > Hosted ADO.NET Data Services & Silverlight > > > http://dvanderboom.wordpress.com/2009/01/07/hosted-adonet-data-services-silverlight/ > > > > But it doesn't look satisfactory for general case, and it doesn't work > yet for my site (waiting for ISP support with IIS server restart - maybe > that helps as web site restarting doesn't work) - I have got stuck here: > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > > > with a message: > > <<< > > IIS specified authentication schemes 'Basic, Anonymous', but the binding > only supports specification of exactly one authentication scheme. Valid > authentication schemes are Digest, Negotiate, NTLM, Basic, or Anonymous. > Change the IIS settings so that only a single authentication scheme is used. > > >>> > > > > and as you can see SOAP and WCF sample services do work OK here: > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/SOAPService.asmx > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/WCFService.svc > > > > If you know general solution for subject issue that woudl be very > helpful. > > > > Thank you. > > > > -- > > Shamil > > > > -----Original Message----- > > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > > To: "Discussion concerning Visual Basic and related programming issues."< > dba-vb at databaseadvisors.com> > > Date: Thu, 04 Jun 2009 23:06:18 +0400 > > Subject: Re: [dba-VB] > > Problem while publishing ADO.NET Data Service... > > > > > Hi All, > > > > > > I have changed location of NorthwindNety Data Service to: > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > > > > > still no solution for > > > > > > This collection already contains an address with scheme http. There > can be at most one address per scheme in this collection. > > > Parameter name: item > > > > > > :( > > > > > > -- > > > Shamil > > > > > ><<< aaa >>> > > _______________________________________________ > > 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 mcp2004 at mail.ru Fri Jun 5 05:59:21 2009 From: mcp2004 at mail.ru (Salakhetdinov Shamil) Date: Fri, 05 Jun 2009 14:59:21 +0400 Subject: [dba-VB] =?koi8-r?b?UHJvYmxlbSB3aGlsZSBwdWJsaXNoaW5nIEFETy5ORVQg?= =?koi8-r?b?RGF0YSBTZXJ2aWNlLi4u?= In-Reply-To: <c7fd28d00906050110t4683d3a4s12edd90831dde420@mail.gmail.com> References: <c7fd28d00906050110t4683d3a4s12edd90831dde420@mail.gmail.com> Message-ID: <E1MCX8r-00011L-00.mcp2004-mail-ru@f183.mail.ru> Hello Mark, Thank you for your proposal. Yes, it would be useful to test using your servers in the case my hosting site would not be able to "keep the pressure" of coming data requests, and in the scenarious when several servers would need to communicate - something like distributed workflow (using WF). BTW, my sample site works OK now: Here is a "query" to retrieve Shippers. http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc/Shipper and this one for Categories http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc/Category Note: those queries return ATOM feed therefore ATOM feed interpretation should be switched off in your browser. Such queries can be used to do all the data manipulation including CRUD operations AFAIU. I haven't yet checked/read how to make such quieries secure but I assume that this feature is implemented already, and I need just to switch it on. The returned data can be of different structure ATOM feed, JSON etc. - and they can be consumed by many types of clients including AJAX (KavaScript) etc. In other words once you get ADO.NET data Service published (no any programming was needed in my simple sample case) you can immediatley start developing custom applications/clients. As for performance - it should be good enough I expect - at least for business areas and the applications we develop. AFAIU ADO.NET Data Services internals can be fine tuned for special case to increase response time. We can test performance - we can write test clients and run them on our PCs querying the above sample service or the one you can install on your server - to compare response time from public ASP.NET hosting site I use or dedicated servers you have - I plan to publish this sample service on our CodePlex Northwind project area... Is ADO.NET Data Services the future? - that's is the question to MS - I do not have a Crystal Ball :) For sure it's very useful and promising technology. Thank you. -- Shamil -----Original Message----- From: Mark Breen <marklbreen at gmail.com> To: Salakhetdinov Shamil <mcp2004 at mail.ru>, "Discussion concerning Visual Basic and related programming issues." <dba-vb at databaseadvisors.com> Date: Fri, 5 Jun 2009 09:10:10 +0100 Subject: Re: [dba-VB] Problem while publishing ADO.NET Data Service... > Hello Shamil, > as you know, I have two servers here in Ireland, would you like to do your > diagnosis / development of future development work on one of my servers ? > If so, that would be no problem. > > I am trying to keep up and read some of the link you posted int he last few > days regarding ADO.NET Data Service. > > I am not clear yet about differences between Webservices and ADO.NET Data > Service , but I expect if I spend some time to google and read, I can become > clear. > > However, I have one question, do you think that this archetectire is > without doubt the way we will all connect to our data sources in the future? > How about performance, will it perform as good as current connections such > as ado and odbc over SQL Server Port? > > thanks > > Mark > > > > 2009/6/5 Salakhetdinov Shamil <mcp2004 at mail.ru> > > > > > Hi All, > > > > Just wanted to ask one more question on subject issue: I do not understand > > why IIS should be restarted to have one of its Web Site's getting a new > > setting activated? I mean why it's not enough to stop and start this web > > site/web application? What am I missing? > > > > You can see by goodling how many developers got confused by this > > "simple"(?) issue - and even stackoverflow doesn't have a clear answer, or > > am I missing it? > > > > Thank you. > > > > -- > > Shamil > > > > -----Original Message----- > > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > > To: "Discussion concerning Visual Basic and related programming issues."< > > dba-vb at databaseadvisors.com> > > Date: Fri, 05 Jun 2009 02:48:38 +0400 > > Subject: Re: [dba-VB] > > Problem while publishing ADO.NET Data Service... > > > > > Hi All, > > > > > > I have got found one solution for the subject issue: > > > > > > Hosted ADO.NET Data Services & Silverlight > > > > > http://dvanderboom.wordpress.com/2009/01/07/hosted-adonet-data-services-silverlight/ > > > > > > But it doesn't look satisfactory for general case, and it doesn't work > > yet for my site (waiting for ISP support with IIS server restart - maybe > > that helps as web site restarting doesn't work) - I have got stuck here: > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > > > > > with a message: > > > <<< > > > IIS specified authentication schemes 'Basic, Anonymous', but the binding > > only supports specification of exactly one authentication scheme. Valid > > authentication schemes are Digest, Negotiate, NTLM, Basic, or Anonymous. > > Change the IIS settings so that only a single authentication scheme is used. > > > >>> > > > > > > and as you can see SOAP and WCF sample services do work OK here: > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/SOAPService.asmx > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/WCFService.svc > > > > > > If you know general solution for subject issue that woudl be very > > helpful. > > > > > > Thank you. > > > > > > -- > > > Shamil > > > > > > -----Original Message----- > > > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > > > To: "Discussion concerning Visual Basic and related programming issues."< > > dba-vb at databaseadvisors.com> > > > Date: Thu, 04 Jun 2009 23:06:18 +0400 > > > Subject: Re: [dba-VB] > > > Problem while publishing ADO.NET Data Service... > > > > > > > Hi All, > > > > > > > > I have changed location of NorthwindNety Data Service to: > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > > > > > > > still no solution for > > > > > > > > This collection already contains an address with scheme http. There > > can be at most one address per scheme in this collection. > > > > Parameter name: item > > > > > > > > :( > > > > > > > > -- > > > > Shamil > > > > > > > ><<< aaa >>> > > > _______________________________________________ > > > dba-VB mailing list > > > dba-VB at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > > http://www.databaseadvisors.com > > > > > > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > > > > > From Gustav at cactus.dk Fri Jun 5 06:00:59 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 05 Jun 2009 13:00:59 +0200 Subject: [dba-VB] Problem while publishing ADO.NET Data Service... Message-ID: <sa291725.093@cactus.dk> Hi Mark I think it is. MS is pushing it for VS2010 and a CTP v1.5 is already out. How to get these to interact is described here (haven't tried this myself though): http://blogs.msdn.com/astoriateam/archive/2009/05/22/using-ado-net-data-services-v1-5-ctp1-with-visual-studio-2010-beta-1.aspx I have seen nothing about performance differences. /gustav >>> marklbreen at gmail.com 05-06-2009 10:10 >>> I am not clear yet about differences between Webservices and ADO.NET Data Service , but I expect if I spend some time to google and read, I can become clear. However, I have one question, do you think that this archetectire is without doubt the way we will all connect to our data sources in the future? How about performance, will it perform as good as current connections such as ado and odbc over SQL Server Port? thanks Mark From mcp2004 at mail.ru Fri Jun 5 06:15:27 2009 From: mcp2004 at mail.ru (Salakhetdinov Shamil) Date: Fri, 05 Jun 2009 15:15:27 +0400 Subject: [dba-VB] =?koi8-r?b?UHJvYmxlbSB3aGlsZSBwdWJsaXNoaW5nIEFETy5ORVQg?= =?koi8-r?b?RGF0YSBTZXJ2aWNlLi4u?= In-Reply-To: <sa291725.093@cactus.dk> References: <sa291725.093@cactus.dk> Message-ID: <E1MCXOR-0003XH-00.mcp2004-mail-ru@f79.mail.ru> Hi Gustav and Mark, ADO.NET Data Services works with .NET 3.5 SP1 - it was used for my recent samples. Here is a good link http://astoria.mslivelabs.com/ and I used this one http://msdn.microsoft.com/en-us/library/cc907912.aspx to make the live sample here http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc and this Dynamic Data Web Site I have made by just clicking some menu options and buttons in VS2008 SP1: http://shamils-4.hosting.parking.ru/NorthwindNetDynamicDataWebSite As you can find performance is rather good (but db is small of course) - such site can be further augmented with custom web forms AFAIU (I haven't read how to so that yet), as you can see this site uses ASP.NET/AJAX, I guess it may also use ASP.NET MVC Framework etc. And it can be used "out-of-the-box" to at least enter/edit lookup tables' data - what it can do at most - the latter have to be investigated... Thank you. -- Shamil -----Original Message----- From: "Gustav Brock" <Gustav at cactus.dk> To: <dba-vb at databaseadvisors.com> Date: Fri, 05 Jun 2009 13:00:59 +0200 Subject: Re: [dba-VB] Problem while publishing ADO.NET Data Service... > Hi Mark > > I think it is. MS is pushing it for VS2010 and a CTP v1.5 is already out. > How to get these to interact is described here (haven't tried this myself though): > > http://blogs.msdn.com/astoriateam/archive/2009/05/22/using-ado-net-data-services-v1-5-ctp1-with-visual-studio-2010-beta-1.aspx > > I have seen nothing about performance differences. > > /gustav > > > >>> marklbreen at gmail.com 05-06-2009 10:10 >>> > > I am not clear yet about differences between Webservices and ADO.NET Data > Service , but I expect if I spend some time to google and read, I can become > clear. > > However, I have one question, do you think that this archetectire is > without doubt the way we will all connect to our data sources in the future? > How about performance, will it perform as good as current connections such > as ado and odbc over SQL Server Port? > > thanks > > Mark > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From mcp2004 at mail.ru Fri Jun 5 06:26:41 2009 From: mcp2004 at mail.ru (Salakhetdinov Shamil) Date: Fri, 05 Jun 2009 15:26:41 +0400 Subject: [dba-VB] =?koi8-r?b?UHJvYmxlbSB3aGlsZSBwdWJsaXNoaW5nIEFETy5ORVQg?= =?koi8-r?b?RGF0YSBTZXJ2aWNlLi4u?= In-Reply-To: <c7fd28d00906050110t4683d3a4s12edd90831dde420@mail.gmail.com> References: <c7fd28d00906050110t4683d3a4s12edd90831dde420@mail.gmail.com> Message-ID: <E1MCXZJ-0005yB-00.mcp2004-mail-ru@f163.mail.ru> Hi Mark, I'd add/outline additionally to my previous answer on your posting that ADO.NET Data Services can be used in heavily distributed workflow scenarious, with support of distributed transactions etc.etc. Workflows are designed and programmed for such applications using Windows Workflow Foundation (WF). "Not data" services are developed using Windows Communication Foundation (WCF) (and ADO.NET data services are also driven by WCF services AFAIU)... -- Shamil -----Original Message----- From: Mark Breen <marklbreen at gmail.com> To: Salakhetdinov Shamil <mcp2004 at mail.ru>, "Discussion concerning Visual Basic and related programming issues." <dba-vb at databaseadvisors.com> Date: Fri, 5 Jun 2009 09:10:10 +0100 Subject: Re: [dba-VB] Problem while publishing ADO.NET Data Service... > Hello Shamil, > as you know, I have two servers here in Ireland, would you like to do your > diagnosis / development of future development work on one of my servers ? > If so, that would be no problem. > > I am trying to keep up and read some of the link you posted int he last few > days regarding ADO.NET Data Service. > > I am not clear yet about differences between Webservices and ADO.NET Data > Service , but I expect if I spend some time to google and read, I can become > clear. > > However, I have one question, do you think that this archetectire is > without doubt the way we will all connect to our data sources in the future? > How about performance, will it perform as good as current connections such > as ado and odbc over SQL Server Port? > > thanks > > Mark > > > > 2009/6/5 Salakhetdinov Shamil <mcp2004 at mail.ru> > > > > > Hi All, > > > > Just wanted to ask one more question on subject issue: I do not understand > > why IIS should be restarted to have one of its Web Site's getting a new > > setting activated? I mean why it's not enough to stop and start this web > > site/web application? What am I missing? > > > > You can see by goodling how many developers got confused by this > > "simple"(?) issue - and even stackoverflow doesn't have a clear answer, or > > am I missing it? > > > > Thank you. > > > > -- > > Shamil > > > > -----Original Message----- > > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > > To: "Discussion concerning Visual Basic and related programming issues."< > > dba-vb at databaseadvisors.com> > > Date: Fri, 05 Jun 2009 02:48:38 +0400 > > Subject: Re: [dba-VB] > > Problem while publishing ADO.NET Data Service... > > > > > Hi All, > > > > > > I have got found one solution for the subject issue: > > > > > > Hosted ADO.NET Data Services & Silverlight > > > > > http://dvanderboom.wordpress.com/2009/01/07/hosted-adonet-data-services-silverlight/ > > > > > > But it doesn't look satisfactory for general case, and it doesn't work > > yet for my site (waiting for ISP support with IIS server restart - maybe > > that helps as web site restarting doesn't work) - I have got stuck here: > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > > > > > with a message: > > > <<< > > > IIS specified authentication schemes 'Basic, Anonymous', but the binding > > only supports specification of exactly one authentication scheme. Valid > > authentication schemes are Digest, Negotiate, NTLM, Basic, or Anonymous. > > Change the IIS settings so that only a single authentication scheme is used. > > > >>> > > > > > > and as you can see SOAP and WCF sample services do work OK here: > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/SOAPService.asmx > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/WCFService.svc > > > > > > If you know general solution for subject issue that woudl be very > > helpful. > > > > > > Thank you. > > > > > > -- > > > Shamil > > > > > > -----Original Message----- > > > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > > > To: "Discussion concerning Visual Basic and related programming issues."< > > dba-vb at databaseadvisors.com> > > > Date: Thu, 04 Jun 2009 23:06:18 +0400 > > > Subject: Re: [dba-VB] > > > Problem while publishing ADO.NET Data Service... > > > > > > > Hi All, > > > > > > > > I have changed location of NorthwindNety Data Service to: > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > > > > > > > still no solution for > > > > > > > > This collection already contains an address with scheme http. There > > can be at most one address per scheme in this collection. > > > > Parameter name: item > > > > > > > > :( > > > > > > > > -- > > > > Shamil > > > > > > > ><<< aaa >>> > > > _______________________________________________ > > > 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 mcp2004 at mail.ru Fri Jun 5 17:27:22 2009 From: mcp2004 at mail.ru (Salakhetdinov Shamil) Date: Sat, 06 Jun 2009 02:27:22 +0400 Subject: [dba-VB] =?koi8-r?b?UHJvYmxlbSB3aGlsZSBwdWJsaXNoaW5nIEFETy5ORVQg?= =?koi8-r?b?RGF0YSBTZXJ2aWNlLi4u?= In-Reply-To: <E1MCXZJ-0005yB-00.mcp2004-mail-ru@f163.mail.ru> References: <E1MCXZJ-0005yB-00.mcp2004-mail-ru@f163.mail.ru> Message-ID: <E1MChsg-0001pr-00.mcp2004-mail-ru@f147.mail.ru> Hi All, I have got my SilverLight sample working: http://shamils-4.hosting.parking.ru/sl/NWNetSilverlight.aspx it uses hardcoded Shipper sample table's data. Then I tried to "feed" my Silverlight sample form by using the following ADO.NET Data Service: http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc with code like that (which works well in C# console app): using System; using System.Collections.Generic; using System.Data.Services.Client; using System.ComponentModel; namespace ResearchAndDevelopment.Console { public class Shippers { public class Shipper { public int ID { get; set; } public string Name { get; set; } public string Phone { get; set; } public byte[] RowTimeStamp { get; set; } } private static Uri dataServiceURI = new Uri(@"http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc"); public static void ListShippers() { DataServiceContext ctx = new DataServiceContext(dataServiceURI); IEnumerable<Shipper> shippers = ctx.Execute<Shipper>( new Uri("Shipper?$orderby=ID", UriKind.Relative)); foreach (Shipper s in shippers) { System.Console.WriteLine("{0}. {1}", s.ID, s.Name); } } } } But I have found that SilverLight 2.0 doesn't support ADO.NET Data Services "out-of-the-box" as straightforward as the above sample code. This sample code doesn't even compile for SilverLight projects because those projects can't be used with .NET Framework 3.5. Therefore I'm currently stuck in feeding my SilverLight 2.0 sample with ADO.NET Data Services (.NET 3.5 SP1) ATOM feed. Do you have any samples' references explaining how to get ADO.NET Data Services Data into SilverLight 2.0 - the most straightforward way? Thank you. -- Shamil -----Original Message----- From: Salakhetdinov Shamil <mcp2004 at mail.ru> To: Mark Breen <marklbreen at gmail.com> Date: Fri, 05 Jun 2009 15:26:41 +0400 Subject: Re: [dba-VB] Problem while publishing ADO.NET Data Service... > Hi Mark, > > I'd add/outline additionally to my previous answer on your posting that ADO.NET Data Services can be used in heavily distributed workflow scenarious, with support of distributed transactions etc.etc. Workflows are designed and programmed for such applications using Windows Workflow Foundation (WF). "Not data" services are developed using Windows Communication Foundation (WCF) (and ADO.NET data services are also driven by WCF services AFAIU)... > > -- > Shamil > > -----Original Message----- > From: Mark Breen <marklbreen at gmail.com> > To: Salakhetdinov Shamil <mcp2004 at mail.ru>, "Discussion concerning Visual Basic and related programming issues." <dba-vb at databaseadvisors.com> > Date: Fri, 5 Jun 2009 09:10:10 +0100 > Subject: Re: [dba-VB] Problem while publishing ADO.NET Data Service... > > > Hello Shamil, > > as you know, I have two servers here in Ireland, would you like to do your > > diagnosis / development of future development work on one of my servers ? > > If so, that would be no problem. > > > > I am trying to keep up and read some of the link you posted int he last few > > days regarding ADO.NET Data Service. > > > > I am not clear yet about differences between Webservices and ADO.NET Data > > Service , but I expect if I spend some time to google and read, I can become > > clear. > > > > However, I have one question, do you think that this archetectire is > > without doubt the way we will all connect to our data sources in the future? > > How about performance, will it perform as good as current connections such > > as ado and odbc over SQL Server Port? > > > > thanks > > > > Mark > > > > > > > > 2009/6/5 Salakhetdinov Shamil <mcp2004 at mail.ru> > > > > > > > > Hi All, > > > > > > Just wanted to ask one more question on subject issue: I do not understand > > > why IIS should be restarted to have one of its Web Site's getting a new > > > setting activated? I mean why it's not enough to stop and start this web > > > site/web application? What am I missing? > > > > > > You can see by goodling how many developers got confused by this > > > "simple"(?) issue - and even stackoverflow doesn't have a clear answer, or > > > am I missing it? > > > > > > Thank you. > > > > > > -- > > > Shamil > > > > > > -----Original Message----- > > > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > > > To: "Discussion concerning Visual Basic and related programming issues."< > > > dba-vb at databaseadvisors.com> > > > Date: Fri, 05 Jun 2009 02:48:38 +0400 > > > Subject: Re: [dba-VB] > > > Problem while publishing ADO.NET Data Service... > > > > > > > Hi All, > > > > > > > > I have got found one solution for the subject issue: > > > > > > > > Hosted ADO.NET Data Services & Silverlight > > > > > > > http://dvanderboom.wordpress.com/2009/01/07/hosted-adonet-data-services-silverlight/ > > > > > > > > But it doesn't look satisfactory for general case, and it doesn't work > > > yet for my site (waiting for ISP support with IIS server restart - maybe > > > that helps as web site restarting doesn't work) - I have got stuck here: > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > > > > > > > with a message: > > > > <<< > > > > IIS specified authentication schemes 'Basic, Anonymous', but the binding > > > only supports specification of exactly one authentication scheme. Valid > > > authentication schemes are Digest, Negotiate, NTLM, Basic, or Anonymous. > > > Change the IIS settings so that only a single authentication scheme is used. > > > > >>> > > > > > > > > and as you can see SOAP and WCF sample services do work OK here: > > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/SOAPService.asmx > > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/WCFService.svc > > > > > > > > If you know general solution for subject issue that woudl be very > > > helpful. > > > > > > > > Thank you. > > > > > > > > -- > > > > Shamil > > > > > > > > -----Original Message----- > > > > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > > > > To: "Discussion concerning Visual Basic and related programming issues."< > > > dba-vb at databaseadvisors.com> > > > > Date: Thu, 04 Jun 2009 23:06:18 +0400 > > > > Subject: Re: [dba-VB] > > > > Problem while publishing ADO.NET Data Service... > > > > > > > > > Hi All, > > > > > > > > > > I have changed location of NorthwindNety Data Service to: > > > > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > > > > > > > > > still no solution for > > > > > > > > > > This collection already contains an address with scheme http. There > > > can be at most one address per scheme in this collection. > > > > > Parameter name: item > > > > > > > > > > :( > > > > > > > > > > -- > > > > > Shamil > > > > > > > > > ><<< aaa >>> > > > > _______________________________________________ > > > > dba-VB mailing list > > > > dba-VB at databaseadvisors.com > > > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > > > http://www.databaseadvisors.com > > > > > > > > > > _______________________________________________ > > > dba-VB mailing list > > > dba-VB at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > > http://www.databaseadvisors.com > > > > > > > > > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From mcp2004 at mail.ru Fri Jun 5 17:53:23 2009 From: mcp2004 at mail.ru (Salakhetdinov Shamil) Date: Sat, 06 Jun 2009 02:53:23 +0400 Subject: [dba-VB] =?koi8-r?b?UHJvYmxlbSB3aGlsZSBwdWJsaXNoaW5nIEFETy5ORVQg?= =?koi8-r?b?RGF0YSBTZXJ2aWNlLi4u?= In-Reply-To: <E1MChsg-0001pr-00.mcp2004-mail-ru@f147.mail.ru> References: <E1MChsg-0001pr-00.mcp2004-mail-ru@f147.mail.ru> Message-ID: <E1MCiHr-0000nr-00.mcp2004-mail-ru@f233.mail.ru> Hi All, I have found a good sample to consume ADO.NET Data Services using SIlverLight 2.0 - here it's: Using Silverlight 2 With ADO.NET Data Services http://msdn.microsoft.com/en-us/magazine/dd569758.aspx I will try to make something like that live tomorrow - time to sleep here. Thank you. -- Shamil -----Original Message----- From: Salakhetdinov Shamil <mcp2004 at mail.ru> To: "Discussion concerning Visual Basic and related programming issues."<dba-vb at databaseadvisors.com> Date: Sat, 06 Jun 2009 02:27:22 +0400 Subject: Re: [dba-VB] Problem while publishing ADO.NET Data Service... > Hi All, > > I have got my SilverLight sample working: > > http://shamils-4.hosting.parking.ru/sl/NWNetSilverlight.aspx > > it uses hardcoded Shipper sample table's data. > > Then I tried to "feed" my Silverlight sample form by using the following ADO.NET Data Service: > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > with code like that (which works well in C# console app): > > using System; > using System.Collections.Generic; > > using System.Data.Services.Client; > using System.ComponentModel; > > namespace ResearchAndDevelopment.Console > { > public class Shippers > { > public class Shipper > { > public int ID { get; set; } > public string Name { get; set; } > public string Phone { get; set; } > public byte[] RowTimeStamp { get; set; } > } > > private static Uri dataServiceURI = > new Uri(@"http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc"); > public static void ListShippers() > { > DataServiceContext ctx = > new DataServiceContext(dataServiceURI); > IEnumerable<Shipper> shippers = ctx.Execute<Shipper>( > new Uri("Shipper?$orderby=ID", UriKind.Relative)); > foreach (Shipper s in shippers) > { > System.Console.WriteLine("{0}. {1}", s.ID, s.Name); > } > } > } > } > > But I have found that SilverLight 2.0 doesn't support ADO.NET Data Services "out-of-the-box" as straightforward as the above sample code. This sample code doesn't even compile for SilverLight projects because those projects can't be used with .NET Framework 3.5. > > Therefore I'm currently stuck in feeding my SilverLight 2.0 sample with ADO.NET Data Services (.NET 3.5 SP1) ATOM feed. > > Do you have any samples' references explaining how to get ADO.NET Data Services Data into SilverLight 2.0 - the most straightforward way? > > Thank you. > > -- > Shamil > > > > -----Original Message----- > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > To: Mark Breen <marklbreen at gmail.com> > Date: Fri, 05 Jun 2009 15:26:41 +0400 > Subject: Re: [dba-VB] > Problem while publishing ADO.NET Data Service... > > > Hi Mark, > > > > I'd add/outline additionally to my previous answer on your posting that ADO.NET Data Services can be used in heavily distributed workflow scenarious, with support of distributed transactions etc.etc. Workflows are designed and programmed for such applications using Windows Workflow Foundation (WF). "Not data" services are developed using Windows Communication Foundation (WCF) (and ADO.NET data services are also driven by WCF services AFAIU)... > > > > -- > > Shamil > > > > -----Original Message----- > > From: Mark Breen <marklbreen at gmail.com> > > To: Salakhetdinov Shamil <mcp2004 at mail.ru>, "Discussion concerning Visual Basic and related programming issues." <dba-vb at databaseadvisors.com> > > Date: Fri, 5 Jun 2009 09:10:10 +0100 > > Subject: Re: [dba-VB] Problem while publishing ADO.NET Data Service... > > > > > Hello Shamil, > > > as you know, I have two servers here in Ireland, would you like to do your > > > diagnosis / development of future development work on one of my servers ? > > > If so, that would be no problem. > > > > > > I am trying to keep up and read some of the link you posted int he last few > > > days regarding ADO.NET Data Service. > > > > > > I am not clear yet about differences between Webservices and ADO.NET Data > > > Service , but I expect if I spend some time to google and read, I can become > > > clear. > > > > > > However, I have one question, do you think that this archetectire is > > > without doubt the way we will all connect to our data sources in the future? > > > How about performance, will it perform as good as current connections such > > > as ado and odbc over SQL Server Port? > > > > > > thanks > > > > > > Mark > > > > > > > > > > > > 2009/6/5 Salakhetdinov Shamil <mcp2004 at mail.ru> > > > > > > > > > > > Hi All, > > > > > > > > Just wanted to ask one more question on subject issue: I do not understand > > > > why IIS should be restarted to have one of its Web Site's getting a new > > > > setting activated? I mean why it's not enough to stop and start this web > > > > site/web application? What am I missing? > > > > > > > > You can see by goodling how many developers got confused by this > > > > "simple"(?) issue - and even stackoverflow doesn't have a clear answer, or > > > > am I missing it? > > > > > > > > Thank you. > > > > > > > > -- > > > > Shamil > > > > > > > > -----Original Message----- > > > > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > > > > To: "Discussion concerning Visual Basic and related programming issues."< > > > > dba-vb at databaseadvisors.com> > > > > Date: Fri, 05 Jun 2009 02:48:38 +0400 > > > > Subject: Re: [dba-VB] > > > > Problem while publishing ADO.NET Data Service... > > > > > > > > > Hi All, > > > > > > > > > > I have got found one solution for the subject issue: > > > > > > > > > > Hosted ADO.NET Data Services & Silverlight > > > > > > > > > http://dvanderboom.wordpress.com/2009/01/07/hosted-adonet-data-services-silverlight/ > > > > > > > > > > But it doesn't look satisfactory for general case, and it doesn't work > > > > yet for my site (waiting for ISP support with IIS server restart - maybe > > > > that helps as web site restarting doesn't work) - I have got stuck here: > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > > > > > > > > > with a message: > > > > > <<< > > > > > IIS specified authentication schemes 'Basic, Anonymous', but the binding > > > > only supports specification of exactly one authentication scheme. Valid > > > > authentication schemes are Digest, Negotiate, NTLM, Basic, or Anonymous. > > > > Change the IIS settings so that only a single authentication scheme is used. > > > > > >>> > > > > > > > > > > and as you can see SOAP and WCF sample services do work OK here: > > > > > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/SOAPService.asmx > > > > > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/WCFService.svc > > > > > > > > > > If you know general solution for subject issue that woudl be very > > > > helpful. > > > > > > > > > > Thank you. > > > > > > > > > > -- > > > > > Shamil > > > > > > > > > > -----Original Message----- > > > > > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > > > > > To: "Discussion concerning Visual Basic and related programming issues."< > > > > dba-vb at databaseadvisors.com> > > > > > Date: Thu, 04 Jun 2009 23:06:18 +0400 > > > > > Subject: Re: [dba-VB] > > > > > Problem while publishing ADO.NET Data Service... > > > > > > > > > > > Hi All, > > > > > > > > > > > > I have changed location of NorthwindNety Data Service to: > > > > > > > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > > > > > > > > > > > still no solution for > > > > > > > > > > > > This collection already contains an address with scheme http. There > > > > can be at most one address per scheme in this collection. > > > > > > Parameter name: item > > > > > > > > > > > > :( > > > > > > > > > > > > -- > > > > > > Shamil > > > > > > > > > > > ><<< aaa >>> > > > > > _______________________________________________ > > > > > dba-VB mailing list > > > > > dba-VB at databaseadvisors.com > > > > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > > > > http://www.databaseadvisors.com > > > > > > > > > > > > > _______________________________________________ > > > > dba-VB mailing list > > > > dba-VB at databaseadvisors.com > > > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > > > http://www.databaseadvisors.com > > > > > > > > > > > > > > > > > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From ssharkins at gmail.com Fri Jun 5 19:42:30 2009 From: ssharkins at gmail.com (Susan Harkins) Date: Fri, 5 Jun 2009 20:42:30 -0400 Subject: [dba-VB] New article from Charlotte and myself Message-ID: <8A3DB7DEC94740D797DD5597B4CEC864@SusanOne> <http://www.devx.com/dbzone/Article/41994> The .NET Newbie's Guide to Customizing the DataGridView Control These articles are aimed at helping people take the plunge. Susan H. From mcp2004 at mail.ru Sat Jun 6 11:41:34 2009 From: mcp2004 at mail.ru (Salakhetdinov Shamil) Date: Sat, 06 Jun 2009 20:41:34 +0400 Subject: [dba-VB] =?koi8-r?b?U0NSVU0vU2lsdmVyTGlnaHQgMi4w?= In-Reply-To: <E1MBeQ2-00082Q-00.mcp2004-mail-ru@f190.mail.ru> References: <E1MBeQ2-00082Q-00.mcp2004-mail-ru@f190.mail.ru> Message-ID: <E1MCyxa-0000uE-00.mcp2004-mail-ru@f230.mail.ru> Hi All, I have got SilverLight 2.0 working with sample ADO.NET Data Service - have a look: http://shamils-4.hosting.parking.ru/sl/NWNetSLAppTestPage.aspx - SilverLight sample form http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc - ADO.NET Data Service I have used this article to make some corrections to my previous code: Using Silverlight 2 With ADO.NET Data Services http://msdn.microsoft.com/en-us/magazine/dd569758.aspx Please take special attention to this note from article: <<< Cross-Domain Communications ADO.NET Data Services does not currently support cross-domain communications. Cross-domain communications are supported with standard REST and SOAP services, but not with ADO.NET Data Services. (As a note: the data services team is exploring the space and will post their progress to the Astoria team blog as they go.) This means that a Silverlight 2 client cannot talk to services exposed through ADO.NET Data Services if those services are hosted on a different domain than the domain that hosts the Silverlight client application >>> I first missed it and tried to make my SilverLight application working in debug mode on my PC while trying to get data from the above ADO.NET Data Service - it didn't work and resulted in obscure runtime error message box popping up in IE 7: A Runtime Error has occurred. Do you wish to debiug? Line: 0 Error: Access is denied When the application was put on the same server then it started to work OK. This sample application is just getting some data and exposing them in a Silverlight window/form - nothing special but in fact this is a core to grow "meat stuff" around. In the coming days (after lonng weekend break till next Tuesday) I plan to add some more features to this sample application as inserting/updating/deleting records and also simple navigation control. Please note that SilverLight applications are a kind of limited XBAP application which in turn are a kind of limited WPF applications: knowing how to develop one kind of them will simplify to master development of the others. What about making Northwind.Net.Silverlight application in a SCRUM team? Thank you. -- Shamil -----Original Message----- From: Salakhetdinov Shamil <mcp2004 at mail.ru> To: dba-VB <dba-vb at databaseadvisors.com> Date: Wed, 03 Jun 2009 04:33:26 +0400 Subject: [dba-VB] SCRUM/SilverLight 2.0 > Hi All, > > I have got setup simple SilverLight application here > > http://shamils-4.hosting.parking.ru/sl > > now using publish feature but it still doesn't work there when started from Internet and it works well locally. > > Do you know should there be any special tuning done of server side for SilverLight applications to run properly? (ASP.NET 2.0/3.5 run from that site just fine.) > > Thank you. > > -- > Shamil > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From mcp2004 at mail.ru Sat Jun 6 11:49:44 2009 From: mcp2004 at mail.ru (Salakhetdinov Shamil) Date: Sat, 06 Jun 2009 20:49:44 +0400 Subject: [dba-VB] =?koi8-r?b?TmV3IGFydGljbGUgZnJvbSBDaGFybG90dGUgYW5kIG15?= =?koi8-r?b?c2VsZg==?= In-Reply-To: <8A3DB7DEC94740D797DD5597B4CEC864@SusanOne> References: <8A3DB7DEC94740D797DD5597B4CEC864@SusanOne> Message-ID: <E1MCz5U-0000VQ-00.mcp2004-mail-ru@f251.mail.ru> Hi Susan, Thank you for the link. That's a good article. I'd note one of your outstanding abilities - an ability to "cultivate the developed ground" yielding very useful output... -- Shamil -----Original Message----- From: "Susan Harkins" <ssharkins at gmail.com> To: "VBLIst" <dba-vb at databaseadvisors.com> Date: Fri, 5 Jun 2009 20:42:30 -0400 Subject: [dba-VB] New article from Charlotte and myself > <http://www.devx.com/dbzone/Article/41994> > > The .NET Newbie's Guide to Customizing the DataGridView Control > > These articles are aimed at helping people take the plunge. > > Susan H. > _______________________________________________ > 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 Sat Jun 6 12:39:55 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Sat, 06 Jun 2009 19:39:55 +0200 Subject: [dba-VB] SCRUM/SilverLight 2.0 Message-ID: <sa2ac628.001@cactus.dk> Hi Shamil Thanks for the demo, and yes, that's a very inspiring article and I read it with great interest. Also note in that article the not so exposed link to this article: http://msdn.microsoft.com/magazine/cc794260 which is a bit more basic and explains the "mechanics" of data bound Silverlight pages quite well including in detail what's the Cross-Domain Communications issue is about, why it makes sense, and how to deal with it. Given that Northwind is a not a very complicated application, I think it could be well suited for a transfer to Silverlight. However, one big question is unanswered to me: Reporting in Silverlight. No ReportViewer is available. So how to deal with that? Link to a special reporting server running ASP.NET? Not a bad idea but, of course, but a little more complicated. Here is (no) more info on the subject: http://csharp-snippets.blogspot.com/2009/04/report-viewer-for-Silverlight-2.html <quote> Currently as I see there is only one way of doing these reports. Create your reports definition files in Sql 2005 or 2008 and then use an aspx page to load them. A short reference for the code snippet. It is better to place this in the page_load event of the aspx page. </quote> The Perpetuum component mentioned carries a cost of $750 (not exactly what I am looking for): http://www.perpetuumsoft.com/Product.aspx?lang=en&pid=102 /gustav >>> Salakhetdinov Shamil <mcp2004 at mail.ru> 06-06-2009 18:41 >>> Hi All, I have got SilverLight 2.0 working with sample ADO.NET Data Service - have a look: http://shamils-4.hosting.parking.ru/sl/NWNetSLAppTestPage.aspx - SilverLight sample form http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc - ADO.NET Data Service I have used this article to make some corrections to my previous code: Using Silverlight 2 With ADO.NET Data Services http://msdn.microsoft.com/en-us/magazine/dd569758.aspx Please take special attention to this note from article: <<< Cross-Domain Communications ADO.NET Data Services does not currently support cross-domain communications. Cross-domain communications are supported with standard REST and SOAP services, but not with ADO.NET Data Services. (As a note: the data services team is exploring the space and will post their progress to the Astoria team blog as they go.) This means that a Silverlight 2 client cannot talk to services exposed through ADO.NET Data Services if those services are hosted on a different domain than the domain that hosts the Silverlight client application >>> I first missed it and tried to make my SilverLight application working in debug mode on my PC while trying to get data from the above ADO.NET Data Service - it didn't work and resulted in obscure runtime error message box popping up in IE 7: A Runtime Error has occurred. Do you wish to debiug? Line: 0 Error: Access is denied When the application was put on the same server then it started to work OK. This sample application is just getting some data and exposing them in a Silverlight window/form - nothing special but in fact this is a core to grow "meat stuff" around. In the coming days (after lonng weekend break till next Tuesday) I plan to add some more features to this sample application as inserting/updating/deleting records and also simple navigation control. Please note that SilverLight applications are a kind of limited XBAP application which in turn are a kind of limited WPF applications: knowing how to develop one kind of them will simplify to master development of the others. What about making Northwind.Net.Silverlight application in a SCRUM team? Thank you. -- Shamil -----Original Message----- From: Salakhetdinov Shamil <mcp2004 at mail.ru> To: dba-VB <dba-vb at databaseadvisors.com> Date: Wed, 03 Jun 2009 04:33:26 +0400 Subject: [dba-VB] SCRUM/SilverLight 2.0 > Hi All, > > I have got setup simple SilverLight application here > > http://shamils-4.hosting.parking.ru/sl > > now using publish feature but it still doesn't work there when started from Internet and it works well locally. > > Do you know should there be any special tuning done of server side for SilverLight applications to run properly? (ASP.NET 2.0/3.5 run from that site just fine.) > > Thank you. > > -- > Shamil From mcp2004 at mail.ru Sat Jun 6 13:30:46 2009 From: mcp2004 at mail.ru (Salakhetdinov Shamil) Date: Sat, 06 Jun 2009 22:30:46 +0400 Subject: [dba-VB] =?koi8-r?b?U0NSVU0vU2lsdmVyTGlnaHQgMi4w?= In-Reply-To: <sa2ac628.001@cactus.dk> References: <sa2ac628.001@cactus.dk> Message-ID: <E1MD0fG-0001WJ-00.mcp2004-mail-ru@f144.mail.ru> Hi Gustav, Thank you for your feedback. I will put your articles' refs in my "immediate read list" (leaving tomorrow for Finland for a short two days holidays). Yes, that would be interesting to "cook" a SilverLight sample project in a (SCRUM) team. I have just published the results of my first SilverLight and ADO.NET Data Services exercize here on CodePlex - http://northwind.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=26600 As for reporting - I haven't checked yet the references you posted here and I have to leave now: - what about the idea of delivering reports using special service? (we talked about that a few times already) MS ReportViewer Control Reports's PDF can be generated on-the-fly directly in code and in memory and that memory stream can be broadcasted anywhere/consumed from anywhere AFAIK... But how to consume that memory stream in SilverLight is an open question here - AFAIK (am I wrong?) SilverLight can communicate with its hosting browser (.aspx) page - so I guess it (SilverLight) can somehow "command" its hosting browser web page to "talk to web server" to generate MS ReportViewer Report with certain params and then get this generated report presented outside of SilverLight area on the web page (and SilverLight will shrink while report is presented) - something like that? Sounds too complicated? Maybe SilverLight 3.0 will have new controls supporting MS ReporViewer Reports' presentation etc.? Maybe we'd better wait for that reporting features as SilverLight 3.0 is in beta now, and we still have quite some stuff to learn with SilverLight 2.0? I mean we can just make the part of sample project having forms and neglect reports until SilverLight 3.0 will be released? Thank you. -- Shamil -----Original Message----- From: "Gustav Brock" <Gustav at cactus.dk> To: <dba-vb at databaseadvisors.com> Date: Sat, 06 Jun 2009 19:39:55 +0200 Subject: Re: [dba-VB] SCRUM/SilverLight 2.0 > Hi Shamil > > Thanks for the demo, and yes, that's a very inspiring article and I read it with great interest. > Also note in that article the not so exposed link to this article: > > http://msdn.microsoft.com/magazine/cc794260 > > which is a bit more basic and explains the "mechanics" of data bound Silverlight pages quite well including in detail what's the Cross-Domain Communications issue is about, why it makes sense, and how to deal with it. > > Given that Northwind is a not a very complicated application, I think it could be well suited for a transfer to Silverlight. However, one big question is unanswered to me: Reporting in Silverlight. No ReportViewer is available. So how to deal with that? Link to a special reporting server running ASP.NET? > Not a bad idea but, of course, but a little more complicated. Here is (no) more info on the subject: > > http://csharp-snippets.blogspot.com/2009/04/report-viewer-for-Silverlight-2.html > > <quote> > Currently as I see there is only one way of doing these reports. Create your reports definition files in Sql 2005 or 2008 and then use an aspx page to load them. A short reference for the code snippet. It is better to place this in the page_load event of the aspx page. > </quote> > > The Perpetuum component mentioned carries a cost of $750 (not exactly what I am looking for): > > http://www.perpetuumsoft.com/Product.aspx?lang=en&pid=102 > > /gustav > > > >>> Salakhetdinov Shamil <mcp2004 at mail.ru> 06-06-2009 18:41 >>> > > Hi All, > > I have got SilverLight 2.0 working with sample ADO.NET Data Service - have a look: > > http://shamils-4.hosting.parking.ru/sl/NWNetSLAppTestPage.aspx - SilverLight sample form > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc - ADO.NET Data Service > > I have used this article to make some corrections to my previous code: > > Using Silverlight 2 With ADO.NET Data Services > http://msdn.microsoft.com/en-us/magazine/dd569758.aspx > > Please take special attention to this note from article: > > <<< > Cross-Domain Communications > ADO.NET Data Services does not currently support cross-domain communications. Cross-domain communications are supported with standard REST and SOAP services, but not with ADO.NET Data Services. (As a note: the data services team is exploring the space and will post their progress to the Astoria team blog as they go.) This means that a Silverlight 2 client cannot talk to services exposed through ADO.NET Data Services if those services are hosted on a different domain than the domain that hosts the Silverlight client application > >>> > > I first missed it and tried to make my SilverLight application working in debug mode on my PC while trying to get data from the above ADO.NET Data Service - it didn't work and resulted in obscure runtime error message box popping up in IE 7: > > A Runtime Error has occurred. > Do you wish to debiug? > > Line: 0 > Error: Access is denied > > When the application was put on the same server then it started to work OK. > > This sample application is just getting some data and exposing them in a Silverlight window/form - nothing special but in fact this is a core to grow "meat stuff" around. > > In the coming days (after lonng weekend break till next Tuesday) I plan to add some more features to this sample application as inserting/updating/deleting records and also simple navigation control. > > Please note that SilverLight applications are a kind of limited XBAP application which in turn are a kind of limited WPF applications: knowing how to develop one kind of them will simplify to master development of the others. > > What about making Northwind.Net.Silverlight application in a SCRUM team? > > Thank you. > > -- > Shamil > > > -----Original Message----- > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > To: dba-VB <dba-vb at databaseadvisors.com> > Date: Wed, 03 Jun 2009 04:33:26 +0400 > Subject: [dba-VB] SCRUM/SilverLight 2.0 > > > Hi All, > > > > I have got setup simple SilverLight application here > > > > http://shamils-4.hosting.parking.ru/sl > > > > now using publish feature but it still doesn't work there when started from Internet and it works well locally. > > > > Do you know should there be any special tuning done of server side for SilverLight applications to run properly? (ASP.NET 2.0/3.5 run from that site just fine.) > > > > 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 Sat Jun 6 13:46:19 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Sat, 06 Jun 2009 20:46:19 +0200 Subject: [dba-VB] SCRUM/SilverLight 2.0 Message-ID: <sa2ad5bf.003@cactus.dk> Hi Shamil et al Well, sadly report(ing) is not mentioned with a single word in the news about Silverlight 3 beta: http://silverlight.net/getstarted/silverlight3/default.aspx#whatsnew so some other method must be worked out. Streaming is an interesting idea but that will disable one of the true strengths of the ReportViewer: Interaction. /gustav >>> Salakhetdinov Shamil <mcp2004 at mail.ru> 06-06-2009 20:30 >>> Hi Gustav, Thank you for your feedback. I will put your articles' refs in my "immediate read list" (leaving tomorrow for Finland for a short two days holidays). Yes, that would be interesting to "cook" a SilverLight sample project in a (SCRUM) team. I have just published the results of my first SilverLight and ADO.NET Data Services exercize here on CodePlex - http://northwind.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=26600 As for reporting - I haven't checked yet the references you posted here and I have to leave now: - what about the idea of delivering reports using special service? (we talked about that a few times already) MS ReportViewer Control Reports's PDF can be generated on-the-fly directly in code and in memory and that memory stream can be broadcasted anywhere/consumed from anywhere AFAIK... But how to consume that memory stream in SilverLight is an open question here - AFAIK (am I wrong?) SilverLight can communicate with its hosting browser (.aspx) page - so I guess it (SilverLight) can somehow "command" its hosting browser web page to "talk to web server" to generate MS ReportViewer Report with certain params and then get this generated report presented outside of SilverLight area on the web page (and SilverLight will shrink while report is presented) - something like that? Sounds too complicated? Maybe SilverLight 3.0 will have new controls supporting MS ReporViewer Reports' presentation etc.? Maybe we'd better wait for that reporting features as SilverLight 3.0 is in beta now, and we still have quite some stuff to learn with SilverLight 2.0? I mean we can just make the part of sample project having forms and neglect reports until SilverLight 3.0 will be released? Thank you. -- Shamil -----Original Message----- From: "Gustav Brock" <Gustav at cactus.dk> To: <dba-vb at databaseadvisors.com> Date: Sat, 06 Jun 2009 19:39:55 +0200 Subject: Re: [dba-VB] SCRUM/SilverLight 2.0 > Hi Shamil > > Thanks for the demo, and yes, that's a very inspiring article and I read it with great interest. > Also note in that article the not so exposed link to this article: > > http://msdn.microsoft.com/magazine/cc794260 > > which is a bit more basic and explains the "mechanics" of data bound Silverlight pages quite well including in detail what's the Cross-Domain Communications issue is about, why it makes sense, and how to deal with it. > > Given that Northwind is a not a very complicated application, I think it could be well suited for a transfer to Silverlight. However, one big question is unanswered to me: Reporting in Silverlight. No ReportViewer is available. So how to deal with that? Link to a special reporting server running ASP.NET? > Not a bad idea but, of course, but a little more complicated. Here is (no) more info on the subject: > > http://csharp-snippets.blogspot.com/2009/04/report-viewer-for-Silverlight-2.html > > <quote> > Currently as I see there is only one way of doing these reports. Create your reports definition files in Sql 2005 or 2008 and then use an aspx page to load them. A short reference for the code snippet. It is better to place this in the page_load event of the aspx page. > </quote> > > The Perpetuum component mentioned carries a cost of $750 (not exactly what I am looking for): > > http://www.perpetuumsoft.com/Product.aspx?lang=en&pid=102 > > /gustav > > > >>> Salakhetdinov Shamil <mcp2004 at mail.ru> 06-06-2009 18:41 >>> > > Hi All, > > I have got SilverLight 2.0 working with sample ADO.NET Data Service - have a look: > > http://shamils-4.hosting.parking.ru/sl/NWNetSLAppTestPage.aspx - SilverLight sample form > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc - ADO.NET Data Service > > I have used this article to make some corrections to my previous code: > > Using Silverlight 2 With ADO.NET Data Services > http://msdn.microsoft.com/en-us/magazine/dd569758.aspx > > Please take special attention to this note from article: > > <<< > Cross-Domain Communications > ADO.NET Data Services does not currently support cross-domain communications. Cross-domain communications are supported with standard REST and SOAP services, but not with ADO.NET Data Services. (As a note: the data services team is exploring the space and will post their progress to the Astoria team blog as they go.) This means that a Silverlight 2 client cannot talk to services exposed through ADO.NET Data Services if those services are hosted on a different domain than the domain that hosts the Silverlight client application > >>> > > I first missed it and tried to make my SilverLight application working in debug mode on my PC while trying to get data from the above ADO.NET Data Service - it didn't work and resulted in obscure runtime error message box popping up in IE 7: > > A Runtime Error has occurred. > Do you wish to debiug? > > Line: 0 > Error: Access is denied > > When the application was put on the same server then it started to work OK. > > This sample application is just getting some data and exposing them in a Silverlight window/form - nothing special but in fact this is a core to grow "meat stuff" around. > > In the coming days (after lonng weekend break till next Tuesday) I plan to add some more features to this sample application as inserting/updating/deleting records and also simple navigation control. > > Please note that SilverLight applications are a kind of limited XBAP application which in turn are a kind of limited WPF applications: knowing how to develop one kind of them will simplify to master development of the others. > > What about making Northwind.Net.Silverlight application in a SCRUM team? > > Thank you. > > -- > Shamil > > > -----Original Message----- > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > To: dba-VB <dba-vb at databaseadvisors.com> > Date: Wed, 03 Jun 2009 04:33:26 +0400 > Subject: [dba-VB] SCRUM/SilverLight 2.0 > > > Hi All, > > > > I have got setup simple SilverLight application here > > > > http://shamils-4.hosting.parking.ru/sl > > > > now using publish feature but it still doesn't work there when started from Internet and it works well locally. > > > > Do you know should there be any special tuning done of server side for SilverLight applications to run properly? (ASP.NET 2.0/3.5 run from that site just fine.) > > > > Thank you. > > > > -- > > Shamil From mcp2004 at mail.ru Sat Jun 6 17:03:31 2009 From: mcp2004 at mail.ru (Salakhetdinov Shamil) Date: Sun, 07 Jun 2009 02:03:31 +0400 Subject: [dba-VB] =?koi8-r?b?U0NSVU0vU2lsdmVyTGlnaHQgMi4w?= In-Reply-To: <sa2ad5bf.003@cactus.dk> References: <sa2ad5bf.003@cactus.dk> Message-ID: <E1MD3z9-0000GL-00.mcp2004-mail-ru@f202.mail.ru> Hi Gustav at all, OK, so we have to find a way how to present reports another way - as far as I can see Perpetuum your referred currently "just" returns the image of report - all pages at once. As for .pdf, .xls etc. exports they generate them on service side and return to the browser in popup window: http://www.perpetuumsoft.com/Demo/slviewer/DemoReportsService.svc/Rest/Export?id=ReportsList&format=pdf http://www.perpetuumsoft.com/Demo/slviewer/DemoReportsService.svc/Rest/Export?id=ReportsList&format=excel http://www.perpetuumsoft.com/Demo/slviewer/DemoReportsService.svc/Rest/Export?id=ReportsList&format=rtf http://www.perpetuumsoft.com/Demo/slviewer/DemoReportsService.svc/Rest/Export?id=ReportsList&format=html The new features for SilverLight 3.0 show that this technology is targeted first of all for dynamic media content than for (relatively static) reports - therefore let's try to use "right tools for the right job"? - and if developing Northwind.NET.Silverlight sample then use SilverLight features to present interactive forms, and to display reports - use something as Perpetuum does - in popup window - generated on server side .PDF... OK? Thank you. -- Shamil -----Original Message----- From: "Gustav Brock" <Gustav at cactus.dk> To: <dba-vb at databaseadvisors.com> Date: Sat, 06 Jun 2009 20:46:19 +0200 Subject: Re: [dba-VB] SCRUM/SilverLight 2.0 > Hi Shamil et al > > Well, sadly report(ing) is not mentioned with a single word in the news about Silverlight 3 beta: > > http://silverlight.net/getstarted/silverlight3/default.aspx#whatsnew > > so some other method must be worked out. > Streaming is an interesting idea but that will disable one of the true strengths of the ReportViewer: Interaction. > > /gustav > > > >>> Salakhetdinov Shamil <mcp2004 at mail.ru> 06-06-2009 20:30 >>> > Hi Gustav, > > Thank you for your feedback. I will put your articles' refs in my "immediate read list" (leaving tomorrow for Finland for a short two days holidays). Yes, that would be interesting to "cook" a SilverLight sample project in a (SCRUM) team. > > I have just published the results of my first SilverLight and ADO.NET Data Services exercize here on CodePlex - http://northwind.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=26600 > > As for reporting - I haven't checked yet the references you posted here and I have to leave now: > > - what about the idea of delivering reports using special service? (we talked about that a few times already) MS ReportViewer Control Reports's PDF can be generated on-the-fly directly in code and in memory and that memory stream can be broadcasted anywhere/consumed from anywhere AFAIK... > > But how to consume that memory stream in SilverLight is an open question here - AFAIK (am I wrong?) SilverLight can communicate with its hosting browser (.aspx) page - so I guess it (SilverLight) can somehow "command" its hosting browser web page to "talk to web server" to generate MS ReportViewer Report with certain params and then get this generated report presented outside of SilverLight area on the web page (and SilverLight will shrink while report is presented) - something like that? Sounds too complicated? Maybe SilverLight 3.0 will have new controls supporting MS ReporViewer Reports' presentation etc.? Maybe we'd better wait for that reporting features as SilverLight 3.0 is in beta now, and we still have quite some stuff to learn with SilverLight 2.0? I mean we can just make the part of sample project having forms and neglect reports until SilverLight 3.0 will be released? > > Thank you. > > -- > Shamil > > > -----Original Message----- > From: "Gustav Brock" <Gustav at cactus.dk> > To: <dba-vb at databaseadvisors.com> > Date: Sat, 06 Jun 2009 19:39:55 +0200 > Subject: Re: [dba-VB] SCRUM/SilverLight 2.0 > > > Hi Shamil > > > > Thanks for the demo, and yes, that's a very inspiring article and I read it with great interest. > > Also note in that article the not so exposed link to this article: > > > > http://msdn.microsoft.com/magazine/cc794260 > > > > which is a bit more basic and explains the "mechanics" of data bound Silverlight pages quite well including in detail what's the Cross-Domain Communications issue is about, why it makes sense, and how to deal with it. > > > > Given that Northwind is a not a very complicated application, I think it could be well suited for a transfer to Silverlight. However, one big question is unanswered to me: Reporting in Silverlight. No ReportViewer is available. So how to deal with that? Link to a special reporting server running ASP.NET? > > Not a bad idea but, of course, but a little more complicated. Here is (no) more info on the subject: > > > > http://csharp-snippets.blogspot.com/2009/04/report-viewer-for-Silverlight-2.html > > > > <quote> > > Currently as I see there is only one way of doing these reports. Create your reports definition files in Sql 2005 or 2008 and then use an aspx page to load them. A short reference for the code snippet. It is better to place this in the page_load event of the aspx page. > > </quote> > > > > The Perpetuum component mentioned carries a cost of $750 (not exactly what I am looking for): > > > > http://www.perpetuumsoft.com/Product.aspx?lang=en&pid=102 > > > > /gustav > > > > > > >>> Salakhetdinov Shamil <mcp2004 at mail.ru> 06-06-2009 18:41 >>> > > > > Hi All, > > > > I have got SilverLight 2.0 working with sample ADO.NET Data Service - have a look: > > > > http://shamils-4.hosting.parking.ru/sl/NWNetSLAppTestPage.aspx - SilverLight sample form > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc - ADO.NET Data Service > > > > I have used this article to make some corrections to my previous code: > > > > Using Silverlight 2 With ADO.NET Data Services > > http://msdn.microsoft.com/en-us/magazine/dd569758.aspx > > > > Please take special attention to this note from article: > > > > <<< > > Cross-Domain Communications > > ADO.NET Data Services does not currently support cross-domain communications. Cross-domain communications are supported with standard REST and SOAP services, but not with ADO.NET Data Services. (As a note: the data services team is exploring the space and will post their progress to the Astoria team blog as they go.) This means that a Silverlight 2 client cannot talk to services exposed through ADO.NET Data Services if those services are hosted on a different domain than the domain that hosts the Silverlight client application > > >>> > > > > I first missed it and tried to make my SilverLight application working in debug mode on my PC while trying to get data from the above ADO.NET Data Service - it didn't work and resulted in obscure runtime error message box popping up in IE 7: > > > > A Runtime Error has occurred. > > Do you wish to debiug? > > > > Line: 0 > > Error: Access is denied > > > > When the application was put on the same server then it started to work OK. > > > > This sample application is just getting some data and exposing them in a Silverlight window/form - nothing special but in fact this is a core to grow "meat stuff" around. > > > > In the coming days (after lonng weekend break till next Tuesday) I plan to add some more features to this sample application as inserting/updating/deleting records and also simple navigation control. > > > > Please note that SilverLight applications are a kind of limited XBAP application which in turn are a kind of limited WPF applications: knowing how to develop one kind of them will simplify to master development of the others. > > > > What about making Northwind.Net.Silverlight application in a SCRUM team? > > > > Thank you. > > > > -- > > Shamil > > > > > > -----Original Message----- > > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > > To: dba-VB <dba-vb at databaseadvisors.com> > > Date: Wed, 03 Jun 2009 04:33:26 +0400 > > Subject: [dba-VB] SCRUM/SilverLight 2.0 > > > > > Hi All, > > > > > > I have got setup simple SilverLight application here > > > > > > http://shamils-4.hosting.parking.ru/sl > > > > > > now using publish feature but it still doesn't work there when started from Internet and it works well locally. > > > > > > Do you know should there be any special tuning done of server side for SilverLight applications to run properly? (ASP.NET 2.0/3.5 run from that site just fine.) > > > > > > Thank you. > > > > > > -- > > > Shamil > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From ssharkins at gmail.com Sat Jun 6 17:11:08 2009 From: ssharkins at gmail.com (Susan Harkins) Date: Sat, 6 Jun 2009 18:11:08 -0400 Subject: [dba-VB] New article from Charlotte and myself References: <8A3DB7DEC94740D797DD5597B4CEC864@SusanOne> <E1MCz5U-0000VQ-00.mcp2004-mail-ru@f251.mail.ru> Message-ID: <2FF08D3F779A45A1AF16322D6BEE0EAD@SusanOne> Thank you Shamil -- I'm glad you liked it! Charlotte is teaching me .NET -- best way for me to learn I think is to just plunge in and let an expert say, "No, no, no..." ;) Susan H. > Hi Susan, > > Thank you for the link. > That's a good article. > I'd note one of your outstanding abilities - an ability to "cultivate the > developed ground" yielding very useful output... From Gustav at cactus.dk Sat Jun 6 18:00:21 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Sun, 07 Jun 2009 01:00:21 +0200 Subject: [dba-VB] SCRUM/SilverLight 2.0 Message-ID: <sa2b114c.004@cactus.dk> Hi Shamil OK for me. /gustav >>> Salakhetdinov Shamil <mcp2004 at mail.ru> 07-06-2009 00:03 >>> Hi Gustav at all, OK, so we have to find a way how to present reports another way - as far as I can see Perpetuum your referred currently "just" returns the image of report - all pages at once. As for .pdf, .xls etc. exports they generate them on service side and return to the browser in popup window: http://www.perpetuumsoft.com/Demo/slviewer/DemoReportsService.svc/Rest/Export?id=ReportsList&format=pdf http://www.perpetuumsoft.com/Demo/slviewer/DemoReportsService.svc/Rest/Export?id=ReportsList&format=excel http://www.perpetuumsoft.com/Demo/slviewer/DemoReportsService.svc/Rest/Export?id=ReportsList&format=rtf http://www.perpetuumsoft.com/Demo/slviewer/DemoReportsService.svc/Rest/Export?id=ReportsList&format=html The new features for SilverLight 3.0 show that this technology is targeted first of all for dynamic media content than for (relatively static) reports - therefore let's try to use "right tools for the right job"? - and if developing Northwind.NET.Silverlight sample then use SilverLight features to present interactive forms, and to display reports - use something as Perpetuum does - in popup window - generated on server side .PDF... OK? Thank you. -- Shamil -----Original Message----- From: "Gustav Brock" <Gustav at cactus.dk> To: <dba-vb at databaseadvisors.com> Date: Sat, 06 Jun 2009 20:46:19 +0200 Subject: Re: [dba-VB] SCRUM/SilverLight 2.0 > Hi Shamil et al > > Well, sadly report(ing) is not mentioned with a single word in the news about Silverlight 3 beta: > > http://silverlight.net/getstarted/silverlight3/default.aspx#whatsnew > > so some other method must be worked out. > Streaming is an interesting idea but that will disable one of the true strengths of the ReportViewer: Interaction. > > /gustav > > > >>> Salakhetdinov Shamil <mcp2004 at mail.ru> 06-06-2009 20:30 >>> > Hi Gustav, > > Thank you for your feedback. I will put your articles' refs in my "immediate read list" (leaving tomorrow for Finland for a short two days holidays). Yes, that would be interesting to "cook" a SilverLight sample project in a (SCRUM) team. > > I have just published the results of my first SilverLight and ADO.NET Data Services exercize here on CodePlex - http://northwind.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=26600 > > As for reporting - I haven't checked yet the references you posted here and I have to leave now: > > - what about the idea of delivering reports using special service? (we talked about that a few times already) MS ReportViewer Control Reports's PDF can be generated on-the-fly directly in code and in memory and that memory stream can be broadcasted anywhere/consumed from anywhere AFAIK... > > But how to consume that memory stream in SilverLight is an open question here - AFAIK (am I wrong?) SilverLight can communicate with its hosting browser (.aspx) page - so I guess it (SilverLight) can somehow "command" its hosting browser web page to "talk to web server" to generate MS ReportViewer Report with certain params and then get this generated report presented outside of SilverLight area on the web page (and SilverLight will shrink while report is presented) - something like that? Sounds too complicated? Maybe SilverLight 3.0 will have new controls supporting MS ReporViewer Reports' presentation etc.? Maybe we'd better wait for that reporting features as SilverLight 3.0 is in beta now, and we still have quite some stuff to learn with SilverLight 2.0? I mean we can just make the part of sample project having forms and neglect reports until SilverLight 3.0 will be released? > > Thank you. > > -- > Shamil > > > -----Original Message----- > From: "Gustav Brock" <Gustav at cactus.dk> > To: <dba-vb at databaseadvisors.com> > Date: Sat, 06 Jun 2009 19:39:55 +0200 > Subject: Re: [dba-VB] SCRUM/SilverLight 2.0 > > > Hi Shamil > > > > Thanks for the demo, and yes, that's a very inspiring article and I read it with great interest. > > Also note in that article the not so exposed link to this article: > > > > http://msdn.microsoft.com/magazine/cc794260 > > > > which is a bit more basic and explains the "mechanics" of data bound Silverlight pages quite well including in detail what's the Cross-Domain Communications issue is about, why it makes sense, and how to deal with it. > > > > Given that Northwind is a not a very complicated application, I think it could be well suited for a transfer to Silverlight. However, one big question is unanswered to me: Reporting in Silverlight. No ReportViewer is available. So how to deal with that? Link to a special reporting server running ASP.NET? > > Not a bad idea but, of course, but a little more complicated. Here is (no) more info on the subject: > > > > http://csharp-snippets.blogspot.com/2009/04/report-viewer-for-Silverlight-2.html > > > > <quote> > > Currently as I see there is only one way of doing these reports. Create your reports definition files in Sql 2005 or 2008 and then use an aspx page to load them. A short reference for the code snippet. It is better to place this in the page_load event of the aspx page. > > </quote> > > > > The Perpetuum component mentioned carries a cost of $750 (not exactly what I am looking for): > > > > http://www.perpetuumsoft.com/Product.aspx?lang=en&pid=102 > > > > /gustav From accessd at shaw.ca Sun Jun 7 11:54:42 2009 From: accessd at shaw.ca (Jim Lawrence) Date: Sun, 7 Jun 2009 09:54:42 -0700 Subject: [dba-VB] Problem while publishing ADO.NET Data Service... In-Reply-To: <E1MCiHr-0000nr-00.mcp2004-mail-ru@f233.mail.ru> References: <E1MChsg-0001pr-00.mcp2004-mail-ru@f147.mail.ru> <E1MCiHr-0000nr-00.mcp2004-mail-ru@f233.mail.ru> Message-ID: <24FBF921E25D4277BCB79042D579EE6C@creativesystemdesigns.com> Hi Shamil: I have been watching this thread for a bit and was wondering, if proceeding along this direction is in fact tying the designers and users to a very proprietary desktop and set of BE services? Just to get much of the apps running requires the very latest patches and specific downloads, products that are not integrated into the default Windows OS. Only the most carefully managed office location would be able to even run this technology. >From my point of view the following is the reality: 1. On most sites I am just the contractor and not as the head IT guy. 2. Clients want to hire me not marry me. 3. Many sites using 'mixed' desktops (Windows/Mac/Linux). 4. The trend is towards 'portability' on cross-platform environments. On the other hand, this is all great fun technology and I have been very much enjoying this thread. Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Salakhetdinov Shamil Sent: Friday, June 05, 2009 3:53 PM To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Problem while publishing ADO.NET Data Service... Hi All, I have found a good sample to consume ADO.NET Data Services using SIlverLight 2.0 - here it's: Using Silverlight 2 With ADO.NET Data Services http://msdn.microsoft.com/en-us/magazine/dd569758.aspx I will try to make something like that live tomorrow - time to sleep here. Thank you. -- Shamil -----Original Message----- From: Salakhetdinov Shamil <mcp2004 at mail.ru> To: "Discussion concerning Visual Basic and related programming issues."<dba-vb at databaseadvisors.com> Date: Sat, 06 Jun 2009 02:27:22 +0400 Subject: Re: [dba-VB] Problem while publishing ADO.NET Data Service... > Hi All, > > I have got my SilverLight sample working: > > http://shamils-4.hosting.parking.ru/sl/NWNetSilverlight.aspx > > it uses hardcoded Shipper sample table's data. > > Then I tried to "feed" my Silverlight sample form by using the following ADO.NET Data Service: > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > with code like that (which works well in C# console app): > > using System; > using System.Collections.Generic; > > using System.Data.Services.Client; > using System.ComponentModel; > > namespace ResearchAndDevelopment.Console > { > public class Shippers > { > public class Shipper > { > public int ID { get; set; } > public string Name { get; set; } > public string Phone { get; set; } > public byte[] RowTimeStamp { get; set; } > } > > private static Uri dataServiceURI = > new Uri(@"http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.sv c"); > public static void ListShippers() > { > DataServiceContext ctx = > new DataServiceContext(dataServiceURI); > IEnumerable<Shipper> shippers = ctx.Execute<Shipper>( > new Uri("Shipper?$orderby=ID", UriKind.Relative)); > foreach (Shipper s in shippers) > { > System.Console.WriteLine("{0}. {1}", s.ID, s.Name); > } > } > } > } > > But I have found that SilverLight 2.0 doesn't support ADO.NET Data Services "out-of-the-box" as straightforward as the above sample code. This sample code doesn't even compile for SilverLight projects because those projects can't be used with .NET Framework 3.5. > > Therefore I'm currently stuck in feeding my SilverLight 2.0 sample with ADO.NET Data Services (.NET 3.5 SP1) ATOM feed. > > Do you have any samples' references explaining how to get ADO.NET Data Services Data into SilverLight 2.0 - the most straightforward way? > > Thank you. > > -- > Shamil > > > > -----Original Message----- > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > To: Mark Breen <marklbreen at gmail.com> > Date: Fri, 05 Jun 2009 15:26:41 +0400 > Subject: Re: [dba-VB] > Problem while publishing ADO.NET Data Service... > > > Hi Mark, > > > > I'd add/outline additionally to my previous answer on your posting that ADO.NET Data Services can be used in heavily distributed workflow scenarious, with support of distributed transactions etc.etc. Workflows are designed and programmed for such applications using Windows Workflow Foundation (WF). "Not data" services are developed using Windows Communication Foundation (WCF) (and ADO.NET data services are also driven by WCF services AFAIU)... > > > > -- > > Shamil > > > > -----Original Message----- > > From: Mark Breen <marklbreen at gmail.com> > > To: Salakhetdinov Shamil <mcp2004 at mail.ru>, "Discussion concerning Visual Basic and related programming issues." <dba-vb at databaseadvisors.com> > > Date: Fri, 5 Jun 2009 09:10:10 +0100 > > Subject: Re: [dba-VB] Problem while publishing ADO.NET Data Service... > > > > > Hello Shamil, > > > as you know, I have two servers here in Ireland, would you like to do your > > > diagnosis / development of future development work on one of my servers ? > > > If so, that would be no problem. > > > > > > I am trying to keep up and read some of the link you posted int he last few > > > days regarding ADO.NET Data Service. > > > > > > I am not clear yet about differences between Webservices and ADO.NET Data > > > Service , but I expect if I spend some time to google and read, I can become > > > clear. > > > > > > However, I have one question, do you think that this archetectire is > > > without doubt the way we will all connect to our data sources in the future? > > > How about performance, will it perform as good as current connections such > > > as ado and odbc over SQL Server Port? > > > > > > thanks > > > > > > Mark > > > > > > > > > > > > 2009/6/5 Salakhetdinov Shamil <mcp2004 at mail.ru> > > > > > > > > > > > Hi All, > > > > > > > > Just wanted to ask one more question on subject issue: I do not understand > > > > why IIS should be restarted to have one of its Web Site's getting a new > > > > setting activated? I mean why it's not enough to stop and start this web > > > > site/web application? What am I missing? > > > > > > > > You can see by goodling how many developers got confused by this > > > > "simple"(?) issue - and even stackoverflow doesn't have a clear answer, or > > > > am I missing it? > > > > > > > > Thank you. > > > > > > > > -- > > > > Shamil > > > > > > > > -----Original Message----- > > > > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > > > > To: "Discussion concerning Visual Basic and related programming issues."< > > > > dba-vb at databaseadvisors.com> > > > > Date: Fri, 05 Jun 2009 02:48:38 +0400 > > > > Subject: Re: [dba-VB] > > > > Problem while publishing ADO.NET Data Service... > > > > > > > > > Hi All, > > > > > > > > > > I have got found one solution for the subject issue: > > > > > > > > > > Hosted ADO.NET Data Services & Silverlight > > > > > > > > > http://dvanderboom.wordpress.com/2009/01/07/hosted-adonet-data-services-silv erlight/ > > > > > > > > > > But it doesn't look satisfactory for general case, and it doesn't work > > > > yet for my site (waiting for ISP support with IIS server restart - maybe > > > > that helps as web site restarting doesn't work) - I have got stuck here: > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > > > > > > > > > with a message: > > > > > <<< > > > > > IIS specified authentication schemes 'Basic, Anonymous', but the binding > > > > only supports specification of exactly one authentication scheme. Valid > > > > authentication schemes are Digest, Negotiate, NTLM, Basic, or Anonymous. > > > > Change the IIS settings so that only a single authentication scheme is used. > > > > > >>> > > > > > > > > > > and as you can see SOAP and WCF sample services do work OK here: > > > > > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/SOAPService.asmx > > > > > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/WCFService.svc > > > > > > > > > > If you know general solution for subject issue that woudl be very > > > > helpful. > > > > > > > > > > Thank you. > > > > > > > > > > -- > > > > > Shamil > > > > > > > > > > -----Original Message----- > > > > > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > > > > > To: "Discussion concerning Visual Basic and related programming issues."< > > > > dba-vb at databaseadvisors.com> > > > > > Date: Thu, 04 Jun 2009 23:06:18 +0400 > > > > > Subject: Re: [dba-VB] > > > > > Problem while publishing ADO.NET Data Service... > > > > > > > > > > > Hi All, > > > > > > > > > > > > I have changed location of NorthwindNety Data Service to: > > > > > > > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > > > > > > > > > > > still no solution for > > > > > > > > > > > > This collection already contains an address with scheme http. There > > > > can be at most one address per scheme in this collection. > > > > > > Parameter name: item > > > > > > > > > > > > :( > > > > > > > > > > > > -- > > > > > > Shamil > > > > > > > > > > > ><<< aaa >>> > > > > > _______________________________________________ > > > > > dba-VB mailing list > > > > > dba-VB at databaseadvisors.com > > > > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > > > > http://www.databaseadvisors.com > > > > > > > > > > > > > _______________________________________________ > > > > dba-VB mailing list > > > > dba-VB at databaseadvisors.com > > > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > > > http://www.databaseadvisors.com > > > > > > > > > > > > > > > > > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > > > _______________________________________________ > 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 raibeart at gmail.com Mon Jun 8 10:26:03 2009 From: raibeart at gmail.com (Robert Stewart) Date: Mon, 08 Jun 2009 10:26:03 -0500 Subject: [dba-VB] Problem while publishing ADO.NET Data Service... Message-ID: <4a2d2dad.02c3f10a.7bf4.1acb@mx.google.com> To butt in here... A Silverlight program requires the Silverlight add in. There is one to run under Linux also and one being developed for Mac. Having said that, I have NEVER seen a "mixed environment" in any corporate office in my life as an IT person. ALL of the companies that I have dealt with are in Windows OS. And, isn't Silverlight trying to do the same thing that Flash has done, go across platforms? To be blunt, I have made my living using Microsoft software. If it was not good, then the Open source world would be dominate. They are not. I think you get what you pay for with open source. Although, some people feel that you do not get what you pay for with MS. Personally, if someone wants something to run on Linux, I send them looking for someone else to do it. I might consider doing it if Silverlight will do the cross-platform thing. Otherwise, I am an MS kind of guy. Remember that we are working with Beta software in Silverlight 3.0. And, here at home, I am also working with Windows 7 and VS 2010. One of which is RC and the other beta. And, I am running them on a VM. So, I really do not care what they need to run. It can be wiped out and done over in a hour or so. The point is that I am getting ahead of the learning curve on all of the changes that are in the next release. And at the same time, creating a piece of software that I will be "renting" under a software as a service plan. My mantra is do it right the first time, customize it to the clients requirements and leave them to it. I had one customer that went 8 years before calling me to change their MS Access program because of the way I did it the first time. They only called because they need to add new functionality. That is the way it should always be. At 12:00 PM 6/7/2009, you wrote: >Date: Sun, 7 Jun 2009 09:54:42 -0700 >From: "Jim Lawrence" <accessd at shaw.ca> >Subject: Re: [dba-VB] Problem while publishing ADO.NET Data Service... >To: "'Salakhetdinov Shamil'" <mcp2004 at mail.ru>, "'Discussion > concerning Visual Basic and related programming issues.'" > <dba-vb at databaseadvisors.com> >Message-ID: > <24FBF921E25D4277BCB79042D579EE6C at creativesystemdesigns.com> >Content-Type: text/plain; charset="us-ascii" > >Hi Shamil: > >I have been watching this thread for a bit and was wondering, if proceeding >along this direction is in fact tying the designers and users to a very >proprietary desktop and set of BE services? > >Just to get much of the apps running requires the very latest patches and >specific downloads, products that are not integrated into the default >Windows OS. Only the most carefully managed office location would be able to >even run this technology. > > >From my point of view the following is the reality: >1. On most sites I am just the contractor and not as the head IT guy. >2. Clients want to hire me not marry me. >3. Many sites using 'mixed' desktops (Windows/Mac/Linux). >4. The trend is towards 'portability' on cross-platform environments. > >On the other hand, this is all great fun technology and I have been very >much enjoying this thread. > >Jim From cfoust at infostatsystems.com Mon Jun 8 10:28:15 2009 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 8 Jun 2009 08:28:15 -0700 Subject: [dba-VB] New article from Charlotte and myself In-Reply-To: <2FF08D3F779A45A1AF16322D6BEE0EAD@SusanOne> References: <8A3DB7DEC94740D797DD5597B4CEC864@SusanOne><E1MCz5U-0000VQ-00.mcp2004-mail-ru@f251.mail.ru> <2FF08D3F779A45A1AF16322D6BEE0EAD@SusanOne> Message-ID: <F55048AF7E974F429BB24597D7355EEAB87775@INFOSERVER04.infostat.local> Just who are you calling an expert, Susan?? I make it up as I go along! LOL Seriously, I work in an environment where we use VS Pro and 3rd party controls that we then customize to the look and behavior we want as standard. Working directly with the vanilla controls is a good exercise for me and a challenge as well. These aren't paint by numbers articles, they're more inducements to try it out by suggesting stuff that is somewhat familiar to an Access developer. Charlotte -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Saturday, June 06, 2009 3:11 PM To: Salakhetdinov Shamil; Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] New article from Charlotte and myself Thank you Shamil -- I'm glad you liked it! Charlotte is teaching me .NET -- best way for me to learn I think is to just plunge in and let an expert say, "No, no, no..." ;) Susan H. > Hi Susan, > > Thank you for the link. > That's a good article. > I'd note one of your outstanding abilities - an ability to "cultivate > the developed ground" yielding very useful output... _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From ssharkins at gmail.com Mon Jun 8 10:41:43 2009 From: ssharkins at gmail.com (Susan Harkins) Date: Mon, 8 Jun 2009 11:41:43 -0400 Subject: [dba-VB] New article from Charlotte and myself References: <8A3DB7DEC94740D797DD5597B4CEC864@SusanOne><E1MCz5U-0000VQ-00.mcp2004-mail-ru@f251.mail.ru><2FF08D3F779A45A1AF16322D6BEE0EAD@SusanOne> <F55048AF7E974F429BB24597D7355EEAB87775@INFOSERVER04.infostat.local> Message-ID: <8EFA58891A294160839C910AF71A9118@SusanOne> Um... folks, Charlotte's modesty is becoming and something I've learned to expect from Charlotte, but don't let her kid you -- I pride myself on learning the nitty gritty of "using" new technologies, and I really would be struggling without her. Stayed tuned for our next article on typed datasets! I'm so excited... and I feel like dancing... um... Okay, I'm a liar... I'm clueless. Susan H. > Just who are you calling an expert, Susan?? I make it up as I go along! > LOL > > Seriously, I work in an environment where we use VS Pro and 3rd party > controls that we then customize to the look and behavior we want as > standard. Working directly with the vanilla controls is a good exercise > for me and a challenge as well. These aren't paint by numbers articles, > they're more inducements to try it out by suggesting stuff that is > somewhat familiar to an Access developer. From accessd at shaw.ca Mon Jun 8 12:33:59 2009 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 8 Jun 2009 10:33:59 -0700 Subject: [dba-VB] Problem while publishing ADO.NET Data Service... In-Reply-To: <4a2d2dad.02c3f10a.7bf4.1acb@mx.google.com> References: <4a2d2dad.02c3f10a.7bf4.1acb@mx.google.com> Message-ID: <EF8B0B115A2E46E489C38B5D9FF81CE4@creativesystemdesigns.com> Hi Robert: You have not been around much. ;-) I work with some of the largest franchisees (McDonalds, Sony, Staples, Wal-Mart etc) and with virtually all the local banks (BNS, CIBC, RBC, BMO, HSBC etc). Desktops may be all Windows but step away from the front counters for a moment and there could be any type of OSs in the back office and at corporate head-quarters. Managers also like their perks and in some case that mean they have Macs. When it comes to BE servers the mix is 30-70. These servers are not cheap as they are top end. (Dell, HP and IBM) Even MS uses(d) Linux networks. Three years ago even Microsoft was using a large Linux site in San Francisco to host their Hot-mail. I worked for years with our local provincial government and all their big databases were in Oracle and other miscellaneous DBs on Linux... In fact most big systems were Linux based. I worked for Maps-BC through a number of departments and their desktop systems were mostly Linux running Arc-Info and InterGraph mapping software... 5 floors of computers. I supported one of the very few MS SQL systems (and wrote all the software for the system) but just could not penetrate the system culture and get more similar systems adopted... believe me, I tried. Most websites, I have run across are hosted on Linux boxes... even our own DBA mail. I have been slowly seeing desktops with various versions of Linux popping up (after all this is a university town) but it is not a flood. I will be honest with you in that I do not care which systems I work with. All I am interested in is consistency, reliability and hopefully cross-platform support... Your experiences are obviously different than mine. Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Robert Stewart Sent: Monday, June 08, 2009 8:26 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Problem while publishing ADO.NET Data Service... To butt in here... A Silverlight program requires the Silverlight add in. There is one to run under Linux also and one being developed for Mac. Having said that, I have NEVER seen a "mixed environment" in any corporate office in my life as an IT person. ALL of the companies that I have dealt with are in Windows OS. And, isn't Silverlight trying to do the same thing that Flash has done, go across platforms? To be blunt, I have made my living using Microsoft software. If it was not good, then the Open source world would be dominate. They are not. I think you get what you pay for with open source. Although, some people feel that you do not get what you pay for with MS. Personally, if someone wants something to run on Linux, I send them looking for someone else to do it. I might consider doing it if Silverlight will do the cross-platform thing. Otherwise, I am an MS kind of guy. Remember that we are working with Beta software in Silverlight 3.0. And, here at home, I am also working with Windows 7 and VS 2010. One of which is RC and the other beta. And, I am running them on a VM. So, I really do not care what they need to run. It can be wiped out and done over in a hour or so. The point is that I am getting ahead of the learning curve on all of the changes that are in the next release. And at the same time, creating a piece of software that I will be "renting" under a software as a service plan. My mantra is do it right the first time, customize it to the clients requirements and leave them to it. I had one customer that went 8 years before calling me to change their MS Access program because of the way I did it the first time. They only called because they need to add new functionality. That is the way it should always be. At 12:00 PM 6/7/2009, you wrote: >Date: Sun, 7 Jun 2009 09:54:42 -0700 >From: "Jim Lawrence" <accessd at shaw.ca> >Subject: Re: [dba-VB] Problem while publishing ADO.NET Data Service... >To: "'Salakhetdinov Shamil'" <mcp2004 at mail.ru>, "'Discussion > concerning Visual Basic and related programming issues.'" > <dba-vb at databaseadvisors.com> >Message-ID: > <24FBF921E25D4277BCB79042D579EE6C at creativesystemdesigns.com> >Content-Type: text/plain; charset="us-ascii" > >Hi Shamil: > >I have been watching this thread for a bit and was wondering, if proceeding >along this direction is in fact tying the designers and users to a very >proprietary desktop and set of BE services? > >Just to get much of the apps running requires the very latest patches and >specific downloads, products that are not integrated into the default >Windows OS. Only the most carefully managed office location would be able to >even run this technology. > > >From my point of view the following is the reality: >1. On most sites I am just the contractor and not as the head IT guy. >2. Clients want to hire me not marry me. >3. Many sites using 'mixed' desktops (Windows/Mac/Linux). >4. The trend is towards 'portability' on cross-platform environments. > >On the other hand, this is all great fun technology and I have been very >much enjoying this thread. > >Jim _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From fuller.artful at gmail.com Mon Jun 8 13:58:31 2009 From: fuller.artful at gmail.com (Arthur Fuller) Date: Mon, 8 Jun 2009 14:58:31 -0400 Subject: [dba-VB] New article from Charlotte and myself In-Reply-To: <8EFA58891A294160839C910AF71A9118@SusanOne> References: <8A3DB7DEC94740D797DD5597B4CEC864@SusanOne> <E1MCz5U-0000VQ-00.mcp2004-mail-ru@f251.mail.ru> <2FF08D3F779A45A1AF16322D6BEE0EAD@SusanOne> <F55048AF7E974F429BB24597D7355EEAB87775@INFOSERVER04.infostat.local> <8EFA58891A294160839C910AF71A9118@SusanOne> Message-ID: <29f585dd0906081158l3a923be6t9cf19ddd655bd65f@mail.gmail.com> No Susan, you're clueful, and very willing to jump new hurdles as they occur to you. A. On Mon, Jun 8, 2009 at 11:41 AM, Susan Harkins <ssharkins at gmail.com> wrote: > Um... folks, Charlotte's modesty is becoming and something I've learned to > expect from Charlotte, but don't let her kid you -- I pride myself on > learning the nitty gritty of "using" new technologies, and I really would > be > struggling without her. > > Stayed tuned for our next article on typed datasets! I'm so excited... and > I > feel like dancing... um... Okay, I'm a liar... I'm clueless. > > Susan H. > From ssharkins at gmail.com Mon Jun 8 15:51:31 2009 From: ssharkins at gmail.com (Susan Harkins) Date: Mon, 8 Jun 2009 16:51:31 -0400 Subject: [dba-VB] New article from Charlotte and myself References: <8A3DB7DEC94740D797DD5597B4CEC864@SusanOne><E1MCz5U-0000VQ-00.mcp2004-mail-ru@f251.mail.ru><2FF08D3F779A45A1AF16322D6BEE0EAD@SusanOne><F55048AF7E974F429BB24597D7355EEAB87775@INFOSERVER04.infostat.local><8EFA58891A294160839C910AF71A9118@SusanOne> <29f585dd0906081158l3a923be6t9cf19ddd655bd65f@mail.gmail.com> Message-ID: <997AAFF0A8F848B5973ADAAF1488B7C5@SusanOne> > No Susan, you're clueful, and very willing to jump new hurdles as they > occur > to you. =====Usually, but not with .NET -- I really resisted, hoping I'd be doing something else by now. That hasn't happened so .NET is impossible to avoid. Susan H. From Gustav at cactus.dk Mon Jun 8 16:05:14 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 08 Jun 2009 23:05:14 +0200 Subject: [dba-VB] New article from Charlotte and myself Message-ID: <sa2d993e.027@cactus.dk> Hi Susan Don't worry - .Net will keep you young! /gustav >>> ssharkins at gmail.com 08-06-2009 22:51 >>> > No Susan, you're clueful, and very willing to jump new hurdles as they occur to you. =====Usually, but not with .NET -- I really resisted, hoping I'd be doing something else by now. That hasn't happened so .NET is impossible to avoid. Susan H. From ssharkins at gmail.com Mon Jun 8 16:09:58 2009 From: ssharkins at gmail.com (Susan Harkins) Date: Mon, 8 Jun 2009 17:09:58 -0400 Subject: [dba-VB] New article from Charlotte and myself References: <sa2d993e.027@cactus.dk> Message-ID: <57C2E3CFC3C04846BF466668E76F54DB@SusanOne> I need something -- yesterday I was trying to work out a knitting pattern, and I swear, I was near tears because everytime I was two stitches off... I finally found it, simple subtraction error that I made over and over. It was terribly frustrating -- I understand now how first graders must feel. :( Susan H. > > Don't worry - .Net will keep you young! > > /gustav From max.wanadoo at gmail.com Mon Jun 8 16:10:56 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 8 Jun 2009 22:10:56 +0100 Subject: [dba-VB] New article from Charlotte and myself In-Reply-To: <sa2d993e.027@cactus.dk> References: <sa2d993e.027@cactus.dk> Message-ID: <4a2d7e62.0a1ad00a.6306.43d2@mx.google.com> Sign me up.....sign me up...how young?? Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 08 June 2009 22:05 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] New article from Charlotte and myself Hi Susan Don't worry - .Net will keep you young! /gustav >>> ssharkins at gmail.com 08-06-2009 22:51 >>> > No Susan, you're clueful, and very willing to jump new hurdles as they occur to you. =====Usually, but not with .NET -- I really resisted, hoping I'd be doing something else by now. That hasn't happened so .NET is impossible to avoid. Susan H. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From max.wanadoo at gmail.com Mon Jun 8 16:12:59 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 8 Jun 2009 22:12:59 +0100 Subject: [dba-VB] New article from Charlotte and myself In-Reply-To: <57C2E3CFC3C04846BF466668E76F54DB@SusanOne> References: <sa2d993e.027@cactus.dk> <57C2E3CFC3C04846BF466668E76F54DB@SusanOne> Message-ID: <4a2d7ede.0a04d00a.1acb.1c87@mx.google.com> Been there...know exactly what you mean. Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: 08 June 2009 22:10 To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] New article from Charlotte and myself I need something -- yesterday I was trying to work out a knitting pattern, and I swear, I was near tears because everytime I was two stitches off... I finally found it, simple subtraction error that I made over and over. It was terribly frustrating -- I understand now how first graders must feel. :( Susan H. > > Don't worry - .Net will keep you young! > > /gustav _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From Johncliviger at aol.com Tue Jun 9 03:27:37 2009 From: Johncliviger at aol.com (Johncliviger at aol.com) Date: Tue, 9 Jun 2009 04:27:37 EDT Subject: [dba-VB] New article from Charlotte and myself Message-ID: <d60.4e558c6e.375f76f9@aol.com> Steady on Max Not that young! johnc From max.wanadoo at gmail.com Tue Jun 9 05:31:28 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Tue, 9 Jun 2009 11:31:28 +0100 Subject: [dba-VB] New article from Charlotte and myself In-Reply-To: <d60.4e558c6e.375f76f9@aol.com> References: <d60.4e558c6e.375f76f9@aol.com> Message-ID: <cda8f54e0906090331k444ee1ceh37b737dd2cb94bda@mail.gmail.com> You misunderstand John, I was referring to dropped stitches. I will have you know that I have knitted a 4-needle cable stitch jumper for myself. There! Better that if you can.... max On 6/9/09, Johncliviger at aol.com <Johncliviger at aol.com> wrote: > > Steady on Max Not that young! > > johnc > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From ssharkins at gmail.com Tue Jun 9 07:51:57 2009 From: ssharkins at gmail.com (Susan Harkins) Date: Tue, 9 Jun 2009 08:51:57 -0400 Subject: [dba-VB] New article from Charlotte and myself References: <d60.4e558c6e.375f76f9@aol.com> <cda8f54e0906090331k444ee1ceh37b737dd2cb94bda@mail.gmail.com> Message-ID: <C0835D11779A4A0DBF69760BB4913274@SusanOne> > You misunderstand John, I was referring to dropped stitches. I will have > you > know that I have knitted a 4-needle cable stitch jumper for myself. =========You're a better woman than me Max! ;) Susan H. From max.wanadoo at gmail.com Tue Jun 9 14:08:31 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Tue, 9 Jun 2009 20:08:31 +0100 Subject: [dba-VB] New article from Charlotte and myself In-Reply-To: <C0835D11779A4A0DBF69760BB4913274@SusanOne> References: <d60.4e558c6e.375f76f9@aol.com> <cda8f54e0906090331k444ee1ceh37b737dd2cb94bda@mail.gmail.com> <C0835D11779A4A0DBF69760BB4913274@SusanOne> Message-ID: <4a2eb332.1c07d00a.3ca9.0892@mx.google.com> Ha ha! And I bet you won't believe me when I said I was in my early 20s, sitting on a bed in the Army billet with all the other guys jeering and poking fun. When it started to take shape they stopped jeering and towards the end I had another 3 guys knitting as well. True... Max Ps. I am a better man than you will ever be.... -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: 09 June 2009 13:52 To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] New article from Charlotte and myself > You misunderstand John, I was referring to dropped stitches. I will have > you > know that I have knitted a 4-needle cable stitch jumper for myself. =========You're a better woman than me Max! ;) Susan H. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From mcp2004 at mail.ru Tue Jun 9 15:42:58 2009 From: mcp2004 at mail.ru (Salakhetdinov Shamil) Date: Wed, 10 Jun 2009 00:42:58 +0400 Subject: [dba-VB] =?koi8-r?b?UHJvYmxlbSB3aGlsZSBwdWJsaXNoaW5nIEFETy5ORVQg?= =?koi8-r?b?RGF0YSBTZXJ2aWNlLi4u?= In-Reply-To: <24FBF921E25D4277BCB79042D579EE6C@creativesystemdesigns.com> References: <24FBF921E25D4277BCB79042D579EE6C@creativesystemdesigns.com> Message-ID: <E1ME89q-0007ZJ-00.mcp2004-mail-ru@f222.mail.ru> Hi Jim, I'm working for money here - the main purpose for me to learn new MS technologies is to get a competetive advantage, not fun... As far as I see ADO.NET Entity Framework and ADO.NET Data Services are becoming a kind of "ODBC for 2010ies" - this is an emerging technology but it's getting all the main database technology players embraced already: http://msdn.microsoft.com/en-us/data/dd363565.aspx And Silverlight is targeted not only for Windows but for Mac and Linux also... And I'm not going "to marry my customers to me" because of using MS technologies - the fact is that there are a lot of competing providers in my area of software development... As for Oracle, PHP, Linux - I have never had opportunity to work using them as it wasn't requested by my customers but a couple of times I have had opportunity to directly compete with other companies who used Oracle for the same customer - both times they were "beaten" by my and my colleagues services, and our "forces" were usually several times less - one time it was 2 developers/consultants against a company having stuff of 100+ developers/consultants... MS tools are becoming really mature these days, and if properly applied they allow to "make wonders" even on moderate hardware... > 4. The trend is towards 'portability' on cross-platform environments. In my opinion, nowadays customers first of all need working software ASAP - and MS development tools help to satisfy those needs/market demands. And I'm not trying to embrace the whole software development market - I mean custom software development - business applicationx for small-/middle-size businesses - here MS tools fit very well IMO - just IMO... Thank you. -- Shamil -----Original Message----- From: "Jim Lawrence" <accessd at shaw.ca> To: "'Salakhetdinov Shamil'" <mcp2004 at mail.ru>,"'Discussion concerning Visual Basic and related programming issues.'" <dba-vb at databaseadvisors.com> Date: Sun, 7 Jun 2009 09:54:42 -0700 Subject: RE: [dba-VB] Problem while publishing ADO.NET Data Service... > Hi Shamil: > > I have been watching this thread for a bit and was wondering, if proceeding > along this direction is in fact tying the designers and users to a very > proprietary desktop and set of BE services? > > Just to get much of the apps running requires the very latest patches and > specific downloads, products that are not integrated into the default > Windows OS. Only the most carefully managed office location would be able to > even run this technology. > > From my point of view the following is the reality: > 1. On most sites I am just the contractor and not as the head IT guy. > 2. Clients want to hire me not marry me. > 3. Many sites using 'mixed' desktops (Windows/Mac/Linux). > 4. The trend is towards 'portability' on cross-platform environments. > > On the other hand, this is all great fun technology and I have been very > much enjoying this thread. > > Jim > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Salakhetdinov > Shamil > Sent: Friday, June 05, 2009 3:53 PM > To: Discussion concerning Visual Basic and related programming issues. > Subject: Re: [dba-VB] Problem while publishing ADO.NET Data Service... > > Hi All, > > I have found a good sample to consume ADO.NET Data Services using > SIlverLight 2.0 - here it's: > > Using Silverlight 2 With ADO.NET Data Services > > http://msdn.microsoft.com/en-us/magazine/dd569758.aspx > > I will try to make something like that live tomorrow - time to sleep here. > > Thank you. > > -- > Shamil > > -----Original Message----- > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > To: "Discussion concerning Visual Basic and related programming > issues."<dba-vb at databaseadvisors.com> > Date: Sat, 06 Jun 2009 02:27:22 +0400 > Subject: Re: [dba-VB] > Problem while publishing ADO.NET Data Service... > > > Hi All, > > > > I have got my SilverLight sample working: > > > > http://shamils-4.hosting.parking.ru/sl/NWNetSilverlight.aspx > > > > it uses hardcoded Shipper sample table's data. > > > > Then I tried to "feed" my Silverlight sample form by using the following > ADO.NET Data Service: > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > > > with code like that (which works well in C# console app): > > > > using System; > > using System.Collections.Generic; > > > > using System.Data.Services.Client; > > using System.ComponentModel; > > > > namespace ResearchAndDevelopment.Console > > { > > public class Shippers > > { > > public class Shipper > > { > > public int ID { get; set; } > > public string Name { get; set; } > > public string Phone { get; set; } > > public byte[] RowTimeStamp { get; set; } > > } > > > > private static Uri dataServiceURI = > > new > Uri(@"http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.sv > c"); > > public static void ListShippers() > > { > > DataServiceContext ctx = > > new DataServiceContext(dataServiceURI); > > IEnumerable<Shipper> shippers = ctx.Execute<Shipper>( > > new Uri("Shipper?$orderby=ID", UriKind.Relative)); > > foreach (Shipper s in shippers) > > { > > System.Console.WriteLine("{0}. {1}", s.ID, s.Name); > > } > > } > > } > > } > > > > But I have found that SilverLight 2.0 doesn't support ADO.NET Data > Services "out-of-the-box" as straightforward as the above sample code. This > sample code doesn't even compile for SilverLight projects because those > projects can't be used with .NET Framework 3.5. > > > > Therefore I'm currently stuck in feeding my SilverLight 2.0 sample with > ADO.NET Data Services (.NET 3.5 SP1) ATOM feed. > > > > Do you have any samples' references explaining how to get ADO.NET Data > Services Data into SilverLight 2.0 - the most straightforward way? > > > > Thank you. > > > > -- > > Shamil > > > > > > > > -----Original Message----- > > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > > To: Mark Breen <marklbreen at gmail.com> > > Date: Fri, 05 Jun 2009 15:26:41 +0400 > > Subject: Re: [dba-VB] > > Problem while publishing ADO.NET Data Service... > > > > > Hi Mark, > > > > > > I'd add/outline additionally to my previous answer on your posting that > ADO.NET Data Services can be used in heavily distributed workflow > scenarious, with support of distributed transactions etc.etc. Workflows are > designed and programmed for such applications using Windows Workflow > Foundation (WF). "Not data" services are developed using Windows > Communication Foundation (WCF) (and ADO.NET data services are also driven by > WCF services AFAIU)... > > > > > > -- > > > Shamil > > > > > > -----Original Message----- > > > From: Mark Breen <marklbreen at gmail.com> > > > To: Salakhetdinov Shamil <mcp2004 at mail.ru>, "Discussion concerning > Visual Basic and related programming issues." <dba-vb at databaseadvisors.com> > > > Date: Fri, 5 Jun 2009 09:10:10 +0100 > > > Subject: Re: [dba-VB] Problem while publishing ADO.NET Data Service... > > > > > > > Hello Shamil, > > > > as you know, I have two servers here in Ireland, would you like to do > your > > > > diagnosis / development of future development work on one of my > servers ? > > > > If so, that would be no problem. > > > > > > > > I am trying to keep up and read some of the link you posted int he > last few > > > > days regarding ADO.NET Data Service. > > > > > > > > I am not clear yet about differences between Webservices and ADO.NET > Data > > > > Service , but I expect if I spend some time to google and read, I can > become > > > > clear. > > > > > > > > However, I have one question, do you think that this archetectire is > > > > without doubt the way we will all connect to our data sources in the > future? > > > > How about performance, will it perform as good as current connections > such > > > > as ado and odbc over SQL Server Port? > > > > > > > > thanks > > > > > > > > Mark > > > > > > > > > > > > > > > > 2009/6/5 Salakhetdinov Shamil <mcp2004 at mail.ru> > > > > > > > > > > > > > > Hi All, > > > > > > > > > > Just wanted to ask one more question on subject issue: I do not > understand > > > > > why IIS should be restarted to have one of its Web Site's getting a > new > > > > > setting activated? I mean why it's not enough to stop and start this > web > > > > > site/web application? What am I missing? > > > > > > > > > > You can see by goodling how many developers got confused by this > > > > > "simple"(?) issue - and even stackoverflow doesn't have a clear > answer, or > > > > > am I missing it? > > > > > > > > > > Thank you. > > > > > > > > > > -- > > > > > Shamil > > > > > > > > > > -----Original Message----- > > > > > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > > > > > To: "Discussion concerning Visual Basic and related programming > issues."< > > > > > dba-vb at databaseadvisors.com> > > > > > Date: Fri, 05 Jun 2009 02:48:38 +0400 > > > > > Subject: Re: [dba-VB] > > > > > Problem while publishing ADO.NET Data Service... > > > > > > > > > > > Hi All, > > > > > > > > > > > > I have got found one solution for the subject issue: > > > > > > > > > > > > Hosted ADO.NET Data Services & Silverlight > > > > > > > > > > > > http://dvanderboom.wordpress.com/2009/01/07/hosted-adonet-data-services-silv > erlight/ > > > > > > > > > > > > But it doesn't look satisfactory for general case, and it doesn't > work > > > > > yet for my site (waiting for ISP support with IIS server restart - > maybe > > > > > that helps as web site restarting doesn't work) - I have got stuck > here: > > > > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > > > > > > > > > > > with a message: > > > > > > <<< > > > > > > IIS specified authentication schemes 'Basic, Anonymous', but the > binding > > > > > only supports specification of exactly one authentication scheme. > Valid > > > > > authentication schemes are Digest, Negotiate, NTLM, Basic, or > Anonymous. > > > > > Change the IIS settings so that only a single authentication scheme > is used. > > > > > > >>> > > > > > > > > > > > > and as you can see SOAP and WCF sample services do work OK here: > > > > > > > > > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/SOAPService.asmx > > > > > > > > > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/WCFService.svc > > > > > > > > > > > > If you know general solution for subject issue that woudl be very > > > > > helpful. > > > > > > > > > > > > Thank you. > > > > > > > > > > > > -- > > > > > > Shamil > > > > > > > > > > > > -----Original Message----- > > > > > > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > > > > > > To: "Discussion concerning Visual Basic and related programming > issues."< > > > > > dba-vb at databaseadvisors.com> > > > > > > Date: Thu, 04 Jun 2009 23:06:18 +0400 > > > > > > Subject: Re: [dba-VB] > > > > > > Problem while publishing ADO.NET Data Service... > > > > > > > > > > > > > Hi All, > > > > > > > > > > > > > > I have changed location of NorthwindNety Data Service to: > > > > > > > > > > > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > > > > > > > > > > > > > still no solution for > > > > > > > > > > > > > > This collection already contains an address with scheme http. > There > > > > > can be at most one address per scheme in this collection. > > > > > > > Parameter name: item > > > > > > > > > > > > > > :( > > > > > > > > > > > > > > -- > > > > > > > Shamil > > > > > > > > > > > > > ><<< aaa >>> > > > > > > _______________________________________________ > > > > > > dba-VB mailing list > > > > > > dba-VB at databaseadvisors.com > > > > > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > > > > > http://www.databaseadvisors.com > > > > > > > > > > > > > > > > _______________________________________________ > > > > > dba-VB mailing list > > > > > dba-VB at databaseadvisors.com > > > > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > > > > http://www.databaseadvisors.com > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > dba-VB mailing list > > > dba-VB at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > > http://www.databaseadvisors.com > > > > > > > _______________________________________________ > > 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 Johncliviger at aol.com Wed Jun 10 03:11:41 2009 From: Johncliviger at aol.com (Johncliviger at aol.com) Date: Wed, 10 Jun 2009 04:11:41 EDT Subject: [dba-VB] New article from Charlotte and myself Message-ID: <bde.48755e95.3760c4bd@aol.com> I must have lost the point somewhere Max. I didn't realise that Charlotte & Sue's new article was on knitting! You could develop a whole new nomenclature eg Imports System.Wool.Needles.Knitting or System.Needles.Haystack.Lost have fun johnc From max.wanadoo at gmail.com Wed Jun 10 10:14:57 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Wed, 10 Jun 2009 16:14:57 +0100 Subject: [dba-VB] New article from Charlotte and myself In-Reply-To: <bde.48755e95.3760c4bd@aol.com> References: <bde.48755e95.3760c4bd@aol.com> Message-ID: <4a2fcdf6.0506d00a.4f5a.648f@mx.google.com> Ha! very good. Needed a smile today. It was definitely a "stitch in time". Thank you Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Johncliviger at aol.com Sent: 10 June 2009 09:12 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] New article from Charlotte and myself I must have lost the point somewhere Max. I didn't realise that Charlotte & Sue's new article was on knitting! You could develop a whole new nomenclature eg Imports System.Wool.Needles.Knitting or System.Needles.Haystack.Lost have fun johnc _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From mcp2004 at mail.ru Wed Jun 10 10:59:58 2009 From: mcp2004 at mail.ru (Salakhetdinov Shamil) Date: Wed, 10 Jun 2009 19:59:58 +0400 Subject: [dba-VB] =?koi8-r?b?RllJOiBSZWNvbW1lbmRlZCB3YXRjaGluZw==?= Message-ID: <E1MEQDW-0001zZ-00.mcp2004-mail-ru@f141.mail.ru> Hi All, Here are a few good presentations I liked to watch and I wanted to share with you: <<< Responsive design "Purpose and intent are just as important as skill in effective software development. Skill allows you to deliver value in difficult technical circumstances. Clear purpose and positive intent allow you to deliver value in difficult social and business circumstances. Kent Beck shares his design technique which involves both intent and a small set of strategies he uses when designing. " http://www.infoq.com/presentations/responsive-design >>> <<< Eric Nelson on VS 2010 and .NET 4.0 In this interview Eric Nelson talks about what's coming in VS 2010, the C# - VB.NET convergence, the introduction of Parallel as a library, and Azure cloud computing. http://www.infoq.com/interviews/VS2010-Eric-Nelson >>> <<< AtomServer: The Power of Publishing for Data Distribution In this session recorded at QCon SF 2008, Chris Berry & Bryon Jacob presented the Atom Syndication Format, the Atom Publishing Protocol, the Atom Categories, the Atom Stores, the AtomServer and how they can be used by giving a concrete example. http://www.infoq.com/presentations/Atom-Server-Berry-Jacob >>> Thank you. -- Shamil From accessd at shaw.ca Wed Jun 10 13:10:29 2009 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 10 Jun 2009 11:10:29 -0700 Subject: [dba-VB] Problem while publishing ADO.NET Data Service... In-Reply-To: <E1ME89q-0007ZJ-00.mcp2004-mail-ru@f222.mail.ru> References: <24FBF921E25D4277BCB79042D579EE6C@creativesystemdesigns.com> <E1ME89q-0007ZJ-00.mcp2004-mail-ru@f222.mail.ru> Message-ID: <C2C3BDA2B6534781AC4663676123D509@creativesystemdesigns.com> Hi Shamil: I have never had an issue with ADO.Net technology... but it will be a while before I can claim professional competence in the product but I believe it is going the right way... that is browser based. My only apprehension is not being able to deliver a web-based service because a client or completely unknown customer is either using the 'wrong' OS, browser to deliver/receive services or is simply not patch up enough. I am starting to see a number of web sites that have been 'blocked' because they are not using the right version of browser IE7 and not IE8 or FF or Chrome etc... or do not have the appropriate technology installed on their desktop. I have been unable to get some of the Silver-light based code running on some of my systems even though I have the latest version of Framework and Silver installed. XP and Vista and even Window7 seem be fine but Server2003 and Server2008 are another matter... and of course Linux/Mac even running FF are toast. I have starting to see the marrying of browser and desktop and personally I feel we should be going in the other direction. More loose binding. I agree with you completely about the MS tools and most clients are using MS desktops. In this area, the government and well as the military and local university/colleges are Oracle/Java. My experiences with project bids have been quite different. After spending a month developing proof of concept, proving that MS SQL was a superior product, easier to deploy and at 50% of the cost of Oracle... the bid was lost on only one point... it wasn't standard. Maybe these tight times will encourage IT managers to take another look at MS SQL. Sorry for going on but some comments seem to need a response. Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Salakhetdinov Shamil Sent: Tuesday, June 09, 2009 1:43 PM To: dba-VB Subject: Re: [dba-VB] Problem while publishing ADO.NET Data Service... Hi Jim, I'm working for money here - the main purpose for me to learn new MS technologies is to get a competetive advantage, not fun... As far as I see ADO.NET Entity Framework and ADO.NET Data Services are becoming a kind of "ODBC for 2010ies" - this is an emerging technology but it's getting all the main database technology players embraced already: http://msdn.microsoft.com/en-us/data/dd363565.aspx And Silverlight is targeted not only for Windows but for Mac and Linux also... And I'm not going "to marry my customers to me" because of using MS technologies - the fact is that there are a lot of competing providers in my area of software development... As for Oracle, PHP, Linux - I have never had opportunity to work using them as it wasn't requested by my customers but a couple of times I have had opportunity to directly compete with other companies who used Oracle for the same customer - both times they were "beaten" by my and my colleagues services, and our "forces" were usually several times less - one time it was 2 developers/consultants against a company having stuff of 100+ developers/consultants... MS tools are becoming really mature these days, and if properly applied they allow to "make wonders" even on moderate hardware... > 4. The trend is towards 'portability' on cross-platform environments. In my opinion, nowadays customers first of all need working software ASAP - and MS development tools help to satisfy those needs/market demands. And I'm not trying to embrace the whole software development market - I mean custom software development - business applicationx for small-/middle-size businesses - here MS tools fit very well IMO - just IMO... Thank you. -- Shamil -----Original Message----- From: "Jim Lawrence" <accessd at shaw.ca> To: "'Salakhetdinov Shamil'" <mcp2004 at mail.ru>,"'Discussion concerning Visual Basic and related programming issues.'" <dba-vb at databaseadvisors.com> Date: Sun, 7 Jun 2009 09:54:42 -0700 Subject: RE: [dba-VB] Problem while publishing ADO.NET Data Service... > Hi Shamil: > > I have been watching this thread for a bit and was wondering, if proceeding > along this direction is in fact tying the designers and users to a very > proprietary desktop and set of BE services? > > Just to get much of the apps running requires the very latest patches and > specific downloads, products that are not integrated into the default > Windows OS. Only the most carefully managed office location would be able to > even run this technology. > > From my point of view the following is the reality: > 1. On most sites I am just the contractor and not as the head IT guy. > 2. Clients want to hire me not marry me. > 3. Many sites using 'mixed' desktops (Windows/Mac/Linux). > 4. The trend is towards 'portability' on cross-platform environments. > > On the other hand, this is all great fun technology and I have been very > much enjoying this thread. > > Jim > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Salakhetdinov > Shamil > Sent: Friday, June 05, 2009 3:53 PM > To: Discussion concerning Visual Basic and related programming issues. > Subject: Re: [dba-VB] Problem while publishing ADO.NET Data Service... > > Hi All, > > I have found a good sample to consume ADO.NET Data Services using > SIlverLight 2.0 - here it's: > > Using Silverlight 2 With ADO.NET Data Services > > http://msdn.microsoft.com/en-us/magazine/dd569758.aspx > > I will try to make something like that live tomorrow - time to sleep here. > > Thank you. > > -- > Shamil > > -----Original Message----- > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > To: "Discussion concerning Visual Basic and related programming > issues."<dba-vb at databaseadvisors.com> > Date: Sat, 06 Jun 2009 02:27:22 +0400 > Subject: Re: [dba-VB] > Problem while publishing ADO.NET Data Service... > > > Hi All, > > > > I have got my SilverLight sample working: > > > > http://shamils-4.hosting.parking.ru/sl/NWNetSilverlight.aspx > > > > it uses hardcoded Shipper sample table's data. > > > > Then I tried to "feed" my Silverlight sample form by using the following > ADO.NET Data Service: > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > > > with code like that (which works well in C# console app): > > > > using System; > > using System.Collections.Generic; > > > > using System.Data.Services.Client; > > using System.ComponentModel; > > > > namespace ResearchAndDevelopment.Console > > { > > public class Shippers > > { > > public class Shipper > > { > > public int ID { get; set; } > > public string Name { get; set; } > > public string Phone { get; set; } > > public byte[] RowTimeStamp { get; set; } > > } > > > > private static Uri dataServiceURI = > > new > Uri(@"http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.sv > c"); > > public static void ListShippers() > > { > > DataServiceContext ctx = > > new DataServiceContext(dataServiceURI); > > IEnumerable<Shipper> shippers = ctx.Execute<Shipper>( > > new Uri("Shipper?$orderby=ID", UriKind.Relative)); > > foreach (Shipper s in shippers) > > { > > System.Console.WriteLine("{0}. {1}", s.ID, s.Name); > > } > > } > > } > > } > > > > But I have found that SilverLight 2.0 doesn't support ADO.NET Data > Services "out-of-the-box" as straightforward as the above sample code. This > sample code doesn't even compile for SilverLight projects because those > projects can't be used with .NET Framework 3.5. > > > > Therefore I'm currently stuck in feeding my SilverLight 2.0 sample with > ADO.NET Data Services (.NET 3.5 SP1) ATOM feed. > > > > Do you have any samples' references explaining how to get ADO.NET Data > Services Data into SilverLight 2.0 - the most straightforward way? > > > > Thank you. > > > > -- > > Shamil > > > > > > > > -----Original Message----- > > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > > To: Mark Breen <marklbreen at gmail.com> > > Date: Fri, 05 Jun 2009 15:26:41 +0400 > > Subject: Re: [dba-VB] > > Problem while publishing ADO.NET Data Service... > > > > > Hi Mark, > > > > > > I'd add/outline additionally to my previous answer on your posting that > ADO.NET Data Services can be used in heavily distributed workflow > scenarious, with support of distributed transactions etc.etc. Workflows are > designed and programmed for such applications using Windows Workflow > Foundation (WF). "Not data" services are developed using Windows > Communication Foundation (WCF) (and ADO.NET data services are also driven by > WCF services AFAIU)... > > > > > > -- > > > Shamil > > > > > > -----Original Message----- > > > From: Mark Breen <marklbreen at gmail.com> > > > To: Salakhetdinov Shamil <mcp2004 at mail.ru>, "Discussion concerning > Visual Basic and related programming issues." <dba-vb at databaseadvisors.com> > > > Date: Fri, 5 Jun 2009 09:10:10 +0100 > > > Subject: Re: [dba-VB] Problem while publishing ADO.NET Data Service... > > > > > > > Hello Shamil, > > > > as you know, I have two servers here in Ireland, would you like to do > your > > > > diagnosis / development of future development work on one of my > servers ? > > > > If so, that would be no problem. > > > > > > > > I am trying to keep up and read some of the link you posted int he > last few > > > > days regarding ADO.NET Data Service. > > > > > > > > I am not clear yet about differences between Webservices and ADO.NET > Data > > > > Service , but I expect if I spend some time to google and read, I can > become > > > > clear. > > > > > > > > However, I have one question, do you think that this archetectire is > > > > without doubt the way we will all connect to our data sources in the > future? > > > > How about performance, will it perform as good as current connections > such > > > > as ado and odbc over SQL Server Port? > > > > > > > > thanks > > > > > > > > Mark > > > > > > > > > > > > > > > > 2009/6/5 Salakhetdinov Shamil <mcp2004 at mail.ru> > > > > > > > > > > > > > > Hi All, > > > > > > > > > > Just wanted to ask one more question on subject issue: I do not > understand > > > > > why IIS should be restarted to have one of its Web Site's getting a > new > > > > > setting activated? I mean why it's not enough to stop and start this > web > > > > > site/web application? What am I missing? > > > > > > > > > > You can see by goodling how many developers got confused by this > > > > > "simple"(?) issue - and even stackoverflow doesn't have a clear > answer, or > > > > > am I missing it? > > > > > > > > > > Thank you. > > > > > > > > > > -- > > > > > Shamil > > > > > > > > > > -----Original Message----- > > > > > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > > > > > To: "Discussion concerning Visual Basic and related programming > issues."< > > > > > dba-vb at databaseadvisors.com> > > > > > Date: Fri, 05 Jun 2009 02:48:38 +0400 > > > > > Subject: Re: [dba-VB] > > > > > Problem while publishing ADO.NET Data Service... > > > > > > > > > > > Hi All, > > > > > > > > > > > > I have got found one solution for the subject issue: > > > > > > > > > > > > Hosted ADO.NET Data Services & Silverlight > > > > > > > > > > > > http://dvanderboom.wordpress.com/2009/01/07/hosted-adonet-data-services-silv > erlight/ > > > > > > > > > > > > But it doesn't look satisfactory for general case, and it doesn't > work > > > > > yet for my site (waiting for ISP support with IIS server restart - > maybe > > > > > that helps as web site restarting doesn't work) - I have got stuck > here: > > > > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > > > > > > > > > > > with a message: > > > > > > <<< > > > > > > IIS specified authentication schemes 'Basic, Anonymous', but the > binding > > > > > only supports specification of exactly one authentication scheme. > Valid > > > > > authentication schemes are Digest, Negotiate, NTLM, Basic, or > Anonymous. > > > > > Change the IIS settings so that only a single authentication scheme > is used. > > > > > > >>> > > > > > > > > > > > > and as you can see SOAP and WCF sample services do work OK here: > > > > > > > > > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/SOAPService.asmx > > > > > > > > > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/WCFService.svc > > > > > > > > > > > > If you know general solution for subject issue that woudl be very > > > > > helpful. > > > > > > > > > > > > Thank you. > > > > > > > > > > > > -- > > > > > > Shamil > > > > > > > > > > > > -----Original Message----- > > > > > > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > > > > > > To: "Discussion concerning Visual Basic and related programming > issues."< > > > > > dba-vb at databaseadvisors.com> > > > > > > Date: Thu, 04 Jun 2009 23:06:18 +0400 > > > > > > Subject: Re: [dba-VB] > > > > > > Problem while publishing ADO.NET Data Service... > > > > > > > > > > > > > Hi All, > > > > > > > > > > > > > > I have changed location of NorthwindNety Data Service to: > > > > > > > > > > > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > > > > > > > > > > > > > still no solution for > > > > > > > > > > > > > > This collection already contains an address with scheme http. > There > > > > > can be at most one address per scheme in this collection. > > > > > > > Parameter name: item > > > > > > > > > > > > > > :( > > > > > > > > > > > > > > -- > > > > > > > Shamil > > > > > > > > > > > > > ><<< aaa >>> > > > > > > _______________________________________________ > > > > > > dba-VB mailing list > > > > > > dba-VB at databaseadvisors.com > > > > > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > > > > > http://www.databaseadvisors.com > > > > > > > > > > > > > > > > _______________________________________________ > > > > > dba-VB mailing list > > > > > dba-VB at databaseadvisors.com > > > > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > > > > http://www.databaseadvisors.com > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > dba-VB mailing list > > > dba-VB at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > > http://www.databaseadvisors.com > > > > > > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From mcp2004 at mail.ru Wed Jun 10 17:35:34 2009 From: mcp2004 at mail.ru (Salakhetdinov Shamil) Date: Thu, 11 Jun 2009 02:35:34 +0400 Subject: [dba-VB] =?koi8-r?b?UHJvYmxlbSB3aGlsZSBwdWJsaXNoaW5nIEFETy5ORVQg?= =?koi8-r?b?RGF0YSBTZXJ2aWNlLi4u?= In-Reply-To: <C2C3BDA2B6534781AC4663676123D509@creativesystemdesigns.com> References: <C2C3BDA2B6534781AC4663676123D509@creativesystemdesigns.com> Message-ID: <E1MEWOM-0007cx-00.mcp2004-mail-ru@f135.mail.ru> Hi Jim, Thank you for your reply. I'm writing here not to argue with you but to share my experience - and I'm working as freelancer for worldwide customers for many years now. Apparently we have quite different customers, and quite different experiences working with them. That's fine. ASP.NET 2.0/3.5 client webforms run just fine on all the most commonly used browsers - 90% I guess. Aiming at 100% would be tremendous waste of resources. Yes, Silverlight currently works on IE7/8 and FF 3.x but I believe it will soon run well on all the other most commonly used browsers running under MS Windows as well as on browsers runnning on Mac and Linux. ADO.NET Entity Framework - is a "corner-stone" emerging technology to process distributed data coming/collected in many different formats from all kinds of data publishers/producers... <<< ...marrying of browser and desktop... >>> Do you mean "armouring" browsers with (often browser specififc) "heavy-weigth" AJAX libraries or do you mean virtualization? I personally do not like/use the former - I believe/expect the latter - virtualization - will soon become a common affordable infrastructure for me and for my customers, and I'm starting to plan moving all my development into a virtual PC/PCs running on my ISP site... <<< I feel we should be going in the other direction. More loose binding. >>> What do you mean here? I know a "loose coupling" term from OOP. What do you mean by "loose binding" here? <<< > Maybe these tight times will encourage IT managers > to take another look at MS SQL. >>> You may find me cynical and completely wrong - I suppose IT managers need "fat contracts" to keep their "fat companies" with "bloated staff" afloat, and to have good bonuses for themselves. I think that situation can't be changed even in these tight times because changing that would mean a kind of revolution, and a few people wants a revolution these days as revolutions very often result in much more and very severe issues than they try to solve... Thank you. -- Shamil -----Original Message----- From: "Jim Lawrence" <accessd at shaw.ca> To: "'Salakhetdinov Shamil'" <mcp2004 at mail.ru>,"'Discussion concerning Visual Basic and related programming issues.'" <dba-vb at databaseadvisors.com> Date: Wed, 10 Jun 2009 11:10:29 -0700 Subject: RE: [dba-VB] Problem while publishing ADO.NET Data Service... > Hi Shamil: > > I have never had an issue with ADO.Net technology... but it will be a while > before I can claim professional competence in the product but I believe it > is going the right way... that is browser based. > > My only apprehension is not being able to deliver a web-based service > because a client or completely unknown customer is either using the 'wrong' > OS, browser to deliver/receive services or is simply not patch up enough. > es > I am starting to see a number of web sites that have been 'blocked' because > they are not using the right version of browser IE7 and not IE8 or FF or > Chrome etc... or do not have the appropriate technology installed on their > desktop. > > I have been unable to get some of the Silver-light based code running on > some of my systems even though I have the latest version of Framework and > Silver installed. XP and Vista and even Window7 seem be fine but Server2003 > and Server2008 are another matter... and of course Linux/Mac even running FF > are toast. > > I have starting to see the marrying of browser and desktop and personally I > feel we should be going in the other direction. More loose binding. > > I agree with you completely about the MS tools and most clients are using MS > desktops. In this area, the government and well as the military and local > university/colleges are Oracle/Java. My experiences with project bids have > been quite different. After spending a month developing proof of concept, > proving that MS SQL was a superior product, easier to deploy and at 50% of > the cost of Oracle... the bid was lost on only one point... it wasn't > standard. > > Maybe these tight times will encourage IT managers to take another look at > MS SQL. > > Sorry for going on but some comments seem to need a response. > > Jim > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Salakhetdinov > Shamil > Sent: Tuesday, June 09, 2009 1:43 PM > To: dba-VB > Subject: Re: [dba-VB] Problem while publishing ADO.NET Data Service... > > Hi Jim, > > I'm working for money here - the main purpose for me to learn new MS > technologies is to get a competetive advantage, not fun... > > As far as I see ADO.NET Entity Framework and ADO.NET Data Services are > becoming a kind of "ODBC for 2010ies" - this is an emerging technology but > it's getting all the main database technology players embraced already: > > http://msdn.microsoft.com/en-us/data/dd363565.aspx > > And Silverlight is targeted not only for Windows but for Mac and Linux > also... > > And I'm not going "to marry my customers to me" because of using MS > technologies - the fact is that there are a lot of competing providers in my > area of software development... > > As for Oracle, PHP, Linux - I have never had opportunity to work using them > as it wasn't requested by my customers but a couple of times I have had > opportunity to directly compete with other companies who used Oracle for the > same customer - both times they were "beaten" by my and my colleagues > services, and our "forces" were usually several times less - one time it was > 2 developers/consultants against a company having stuff of 100+ > developers/consultants... > > MS tools are becoming really mature these days, and if properly applied they > allow to "make wonders" even on moderate hardware... > > > 4. The trend is towards 'portability' on cross-platform environments. > In my opinion, nowadays customers first of all need working software ASAP - > and MS development tools help to satisfy those needs/market demands. And I'm > not trying to embrace the whole software development market - I mean custom > software development - business applicationx for small-/middle-size > businesses - here MS tools fit very well IMO - just IMO... > > Thank you. > > -- > Shamil > > > -----Original Message----- > From: "Jim Lawrence" <accessd at shaw.ca> > To: "'Salakhetdinov Shamil'" <mcp2004 at mail.ru>,"'Discussion concerning > Visual Basic and related programming issues.'" <dba-vb at databaseadvisors.com> > Date: Sun, 7 Jun 2009 09:54:42 -0700 > Subject: RE: [dba-VB] Problem while publishing ADO.NET Data Service... > > > Hi Shamil: > > > > I have been watching this thread for a bit and was wondering, if > proceeding > > along this direction is in fact tying the designers and users to a very > > proprietary desktop and set of BE services? > > > > Just to get much of the apps running requires the very latest patches and > > specific downloads, products that are not integrated into the default > > Windows OS. Only the most carefully managed office location would be able > to > > even run this technology. > > > > From my point of view the following is the reality: > > 1. On most sites I am just the contractor and not as the head IT guy. > > 2. Clients want to hire me not marry me. > > 3. Many sites using 'mixed' desktops (Windows/Mac/Linux). > > 4. The trend is towards 'portability' on cross-platform environments. > > > > On the other hand, this is all great fun technology and I have been very > > much enjoying this thread. > > > > Jim > > > > -----Original Message----- > > From: dba-vb-bounces at databaseadvisors.com > > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Salakhetdinov > > Shamil > > Sent: Friday, June 05, 2009 3:53 PM > > To: Discussion concerning Visual Basic and related programming issues. > > Subject: Re: [dba-VB] Problem while publishing ADO.NET Data Service... > > > > Hi All, > > > > I have found a good sample to consume ADO.NET Data Services using > > SIlverLight 2.0 - here it's: > > > > Using Silverlight 2 With ADO.NET Data Services > > > > http://msdn.microsoft.com/en-us/magazine/dd569758.aspx > > > > I will try to make something like that live tomorrow - time to sleep here. > > > > Thank you. > > > > -- > > Shamil > > > > -----Original Message----- > > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > > To: "Discussion concerning Visual Basic and related programming > > issues."<dba-vb at databaseadvisors.com> > > Date: Sat, 06 Jun 2009 02:27:22 +0400 > > Subject: Re: [dba-VB] > > Problem while publishing ADO.NET Data Service... > > > > > Hi All, > > > > > > I have got my SilverLight sample working: > > > > > > http://shamils-4.hosting.parking.ru/sl/NWNetSilverlight.aspx > > > > > > it uses hardcoded Shipper sample table's data. > > > > > > Then I tried to "feed" my Silverlight sample form by using the following > > ADO.NET Data Service: > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > > > > > with code like that (which works well in C# console app): > > > > > > using System; > > > using System.Collections.Generic; > > > > > > using System.Data.Services.Client; > > > using System.ComponentModel; > > > > > > namespace ResearchAndDevelopment.Console > > > { > > > public class Shippers > > > { > > > public class Shipper > > > { > > > public int ID { get; set; } > > > public string Name { get; set; } > > > public string Phone { get; set; } > > > public byte[] RowTimeStamp { get; set; } > > > } > > > > > > private static Uri dataServiceURI = > > > new > > > Uri(@"http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.sv > > c"); > > > public static void ListShippers() > > > { > > > DataServiceContext ctx = > > > new DataServiceContext(dataServiceURI); > > > IEnumerable<Shipper> shippers = ctx.Execute<Shipper>( > > > new Uri("Shipper?$orderby=ID", UriKind.Relative)); > > > foreach (Shipper s in shippers) > > > { > > > System.Console.WriteLine("{0}. {1}", s.ID, s.Name); > > > } > > > } > > > } > > > } > > > > > > But I have found that SilverLight 2.0 doesn't support ADO.NET Data > > Services "out-of-the-box" as straightforward as the above sample code. > This > > sample code doesn't even compile for SilverLight projects because those > > projects can't be used with .NET Framework 3.5. > > > > > > Therefore I'm currently stuck in feeding my SilverLight 2.0 sample with > > ADO.NET Data Services (.NET 3.5 SP1) ATOM feed. > > > > > > Do you have any samples' references explaining how to get ADO.NET Data > > Services Data into SilverLight 2.0 - the most straightforward way? > > > > > > Thank you. > > > > > > -- > > > Shamil > > > > > > > > > > > > -----Original Message----- > > > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > > > To: Mark Breen <marklbreen at gmail.com> > > > Date: Fri, 05 Jun 2009 15:26:41 +0400 > > > Subject: Re: [dba-VB] > > > Problem while publishing ADO.NET Data Service... > > > > > > > Hi Mark, > > > > > > > > I'd add/outline additionally to my previous answer on your posting > that > > ADO.NET Data Services can be used in heavily distributed workflow > > scenarious, with support of distributed transactions etc.etc. Workflows > are > > designed and programmed for such applications using Windows Workflow > > Foundation (WF). "Not data" services are developed using Windows > > Communication Foundation (WCF) (and ADO.NET data services are also driven > by > > WCF services AFAIU)... > > > > > > > > -- > > > > Shamil > > > > > > > > -----Original Message----- > > > > From: Mark Breen <marklbreen at gmail.com> > > > > To: Salakhetdinov Shamil <mcp2004 at mail.ru>, "Discussion concerning > > Visual Basic and related programming issues." > <dba-vb at databaseadvisors.com> > > > > Date: Fri, 5 Jun 2009 09:10:10 +0100 > > > > Subject: Re: [dba-VB] Problem while publishing ADO.NET Data Service... > > > > > > > > > Hello Shamil, > > > > > as you know, I have two servers here in Ireland, would you like to > do > > your > > > > > diagnosis / development of future development work on one of my > > servers ? > > > > > If so, that would be no problem. > > > > > > > > > > I am trying to keep up and read some of the link you posted int he > > last few > > > > > days regarding ADO.NET Data Service. > > > > > > > > > > I am not clear yet about differences between Webservices and > ADO.NET > > Data > > > > > Service , but I expect if I spend some time to google and read, I > can > > become > > > > > clear. > > > > > > > > > > However, I have one question, do you think that this archetectire > is > > > > > without doubt the way we will all connect to our data sources in the > > future? > > > > > How about performance, will it perform as good as current > connections > > such > > > > > as ado and odbc over SQL Server Port? > > > > > > > > > > thanks > > > > > > > > > > Mark > > > > > > > > > > > > > > > > > > > > 2009/6/5 Salakhetdinov Shamil <mcp2004 at mail.ru> > > > > > > > > > > > > > > > > > Hi All, > > > > > > > > > > > > Just wanted to ask one more question on subject issue: I do not > > understand > > > > > > why IIS should be restarted to have one of its Web Site's getting > a > > new > > > > > > setting activated? I mean why it's not enough to stop and start > this > > web > > > > > > site/web application? What am I missing? > > > > > > > > > > > > You can see by goodling how many developers got confused by this > > > > > > "simple"(?) issue - and even stackoverflow doesn't have a clear > > answer, or > > > > > > am I missing it? > > > > > > > > > > > > Thank you. > > > > > > > > > > > > -- > > > > > > Shamil > > > > > > > > > > > > -----Original Message----- > > > > > > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > > > > > > To: "Discussion concerning Visual Basic and related programming > > issues."< > > > > > > dba-vb at databaseadvisors.com> > > > > > > Date: Fri, 05 Jun 2009 02:48:38 +0400 > > > > > > Subject: Re: [dba-VB] > > > > > > Problem while publishing ADO.NET Data Service... > > > > > > > > > > > > > Hi All, > > > > > > > > > > > > > > I have got found one solution for the subject issue: > > > > > > > > > > > > > > Hosted ADO.NET Data Services & Silverlight > > > > > > > > > > > > > > > > http://dvanderboom.wordpress.com/2009/01/07/hosted-adonet-data-services-silv > > erlight/ > > > > > > > > > > > > > > But it doesn't look satisfactory for general case, and it > doesn't > > work > > > > > > yet for my site (waiting for ISP support with IIS server restart - > > maybe > > > > > > that helps as web site restarting doesn't work) - I have got stuck > > here: > > > > > > > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > > > > > > > > > > > > > with a message: > > > > > > > <<< > > > > > > > IIS specified authentication schemes 'Basic, Anonymous', but the > > binding > > > > > > only supports specification of exactly one authentication scheme. > > Valid > > > > > > authentication schemes are Digest, Negotiate, NTLM, Basic, or > > Anonymous. > > > > > > Change the IIS settings so that only a single authentication > scheme > > is used. > > > > > > > >>> > > > > > > > > > > > > > > and as you can see SOAP and WCF sample services do work OK here: > > > > > > > > > > > > > > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/SOAPService.asmx > > > > > > > > > > > > > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/WCFService.svc > > > > > > > > > > > > > > If you know general solution for subject issue that woudl be > very > > > > > > helpful. > > > > > > > > > > > > > > Thank you. > > > > > > > > > > > > > > -- > > > > > > > Shamil > > > > > > > > > > > > > > -----Original Message----- > > > > > > > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > > > > > > > To: "Discussion concerning Visual Basic and related programming > > issues."< > > > > > > dba-vb at databaseadvisors.com> > > > > > > > Date: Thu, 04 Jun 2009 23:06:18 +0400 > > > > > > > Subject: Re: [dba-VB] > > > > > > > Problem while publishing ADO.NET Data Service... > > > > > > > > > > > > > > > Hi All, > > > > > > > > > > > > > > > > I have changed location of NorthwindNety Data Service to: > > > > > > > > > > > > > > > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > > > > > > > > > > > > > > > still no solution for > > > > > > > > > > > > > > > > This collection already contains an address with scheme http. > > There > > > > > > can be at most one address per scheme in this collection. > > > > > > > > Parameter name: item > > > > > > > > > > > > > > > > :( > > > > > > > > > > > > > > > > -- > > > > > > > > Shamil > > > > > > > > > > > > > > > ><<< aaa >>> > > > > > > > _______________________________________________ > > > > > > > dba-VB mailing list > > > > > > > dba-VB at databaseadvisors.com > > > > > > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > > > > > > http://www.databaseadvisors.com > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > > dba-VB mailing list > > > > > > dba-VB at databaseadvisors.com > > > > > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > > > > > http://www.databaseadvisors.com > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > dba-VB mailing list > > > > dba-VB at databaseadvisors.com > > > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > > > http://www.databaseadvisors.com > > > > > > > > > > _______________________________________________ > > > dba-VB mailing list > > > dba-VB at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > > http://www.databaseadvisors.com > > > > > > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From listmaster at databaseadvisors.com Tue Jun 16 12:10:00 2009 From: listmaster at databaseadvisors.com (Bryan Carbonnell) Date: Tue, 16 Jun 2009 13:10:00 -0400 Subject: [dba-VB] Administrivia - Dickford Cohn Donation Fund In-Reply-To: <05bf01c9ee8b$3f2935e0$bd7ba1a0$@net> References: <05bf01c9ee8b$3f2935e0$bd7ba1a0$@net> Message-ID: <e04a6c920906161010t5c4f67a0h5d37b3c158c1fcb9@mail.gmail.com> "We're a family." Members often share that sentiment in their posts. The Database Advisor group is a family. It's obvious in our responses and brief explosions of humor that we care about one another. Dickford Cohn, a member of our family has suffered a great loss. Due to a fire, this member has lost his home and all of his belongings. He recently spent a number of weeks in the hospital, recovering from serious burns. You can read more about his horrific encounter with death in the online article, Hawker dragged from trailer fire. Keys News The DBA Board of Directors recently voted to accept donations from members on Dickford's behalf. The DBA organization will keep nothing for administrative purposes -- we will forward every cent donated to Dickford. >From the time of this message until July 31, 2009, every donation received will go to Dickford Cohn. Make your donation via our existing PayPal account link. If you prefer snail mail, please send donation to the following address: Database Advisors, Inc. 814 Peppard Drive Bel Air, MD 21014 Please make your check or money order payable to Database Advisors, Inc. As always, donations of any kind are not mandatory for membership. John R. Bartow President Database Advisors, Inc. Email: president at databaseadvisors.com From listmaster at databaseadvisors.com Tue Jun 16 12:23:45 2009 From: listmaster at databaseadvisors.com (Bryan Carbonnell) Date: Tue, 16 Jun 2009 13:23:45 -0400 Subject: [dba-VB] Administrivia - Dickford Cohn Donation Fund In-Reply-To: <e04a6c920906161020v40933088q9d2a7c178c776078@mail.gmail.com> References: <05bf01c9ee8b$3f2935e0$bd7ba1a0$@net> <e04a6c920906161020v40933088q9d2a7c178c776078@mail.gmail.com> Message-ID: <e04a6c920906161023t4b81844di73e66629aadb7d6b@mail.gmail.com> RESEND with Links this time. Bryan "We're a family." Members often share that sentiment in their posts. The Database Advisor group is a family. It's obvious in our responses and brief explosions of humor that we care about one another. Dickford Cohn, a member of our family has suffered a great loss. Due to a fire, this member has lost his home and all of his belongings. He recently spent a number of weeks in the hospital, recovering from serious burns. You can read more about his horrific encounter with death in the online article, Hawker dragged from trailer fire. Keys News ( http://keysnews.com/node/13470 ) The DBA Board of Directors recently voted to accept donations from members on Dickford's behalf. The DBA organization will keep nothing for administrative purposes -- we will forward every cent donated to Dickford. >From the time of this message until July 31, 2009, every donation received will go to Dickford Cohn. Make your donation via our existing PayPal account link ( http://www.databaseadvisors.com/donations/dickford.asp ). If you prefer snail mail, please send donation to the following address: Database Advisors, Inc. 814 Peppard Drive Bel Air, MD 21014 Please make your check or money order payable to Database Advisors, Inc. As always, donations of any kind are not mandatory for membership. John R. Bartow President Database Advisors, Inc. Email: president at databaseadvisors.com From ssharkins at gmail.com Fri Jun 19 17:06:09 2009 From: ssharkins at gmail.com (Susan Harkins) Date: Fri, 19 Jun 2009 18:06:09 -0400 Subject: [dba-VB] Updating Toolbox in VB Express Message-ID: <FFC703A9A7AC4064A62B1297439EA475@SusanOne> I've been learning how to create typed datasets and the process itself isn't particularly difficult, but often, I couldn't get VB Express to update like I think it should. For instance, after adding a reference between a form project and a class library project that contained a typed dataset, I couldn't get the dataset to show up in the Add Dataset dialog box -- Under Typed Dataset, the Name control displayed Referenced Datasets. When I clicked that, I got nothing -- an empty list. Today, after adding the typed dataset to a form, I couldn't find the project components in the Toolbox. Running Imports statements in the form forced the issue, but that shouldn't be necessary, should it? Maybe that's the way it's supposed to work, and if so, I just don't get it yet. I looked all over for some kind of Refresh, but didn't find anything. If you have no idea what I'm talking about, just ignore me -- I am most likely using the wrong terminology. Susan H. From Gustav at cactus.dk Sat Jun 20 02:25:37 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Sat, 20 Jun 2009 09:25:37 +0200 Subject: [dba-VB] Updating Toolbox in VB Express Message-ID: <sa3cab1e.005@cactus.dk> Hi Susan Now, I don't what you and Charlotte are up to, but I hope you create some DataSet.xsd files and use the designer to create your datatables. Also, have the box with Data Sources on display; this will contain your datasets, and you can easily drag and drop full tables or single/selected fields to your form. /gustav >>> ssharkins at gmail.com 20-06-2009 00:06:09 >>> I've been learning how to create typed datasets and the process itself isn't particularly difficult, but often, I couldn't get VB Express to update like I think it should. For instance, after adding a reference between a form project and a class library project that contained a typed dataset, I couldn't get the dataset to show up in the Add Dataset dialog box -- Under Typed Dataset, the Name control displayed Referenced Datasets. When I clicked that, I got nothing -- an empty list. Today, after adding the typed dataset to a form, I couldn't find the project components in the Toolbox. Running Imports statements in the form forced the issue, but that shouldn't be necessary, should it? Maybe that's the way it's supposed to work, and if so, I just don't get it yet. I looked all over for some kind of Refresh, but didn't find anything. If you have no idea what I'm talking about, just ignore me -- I am most likely using the wrong terminology. Susan H. From ssharkins at gmail.com Sat Jun 20 08:26:38 2009 From: ssharkins at gmail.com (Susan Harkins) Date: Sat, 20 Jun 2009 09:26:38 -0400 Subject: [dba-VB] Updating Toolbox in VB Express References: <sa3cab1e.005@cactus.dk> Message-ID: <0B2EA9DA4131427CA56A0F66E6249BA3@SusanOne> > Now, I don't what you and Charlotte are up to, but I hope you create some > DataSet.xsd files and use the designer to create your datatables. ========That's exactly what I'm doing. The instructions are simple enough, but VB Express doesn't always behave as I think it should -- so either VB Express is cranky, or... well... we already know about me. :) The Toolbox would not update accordingly. And, I created a reference in one project to the project with the dataset, but the dataset didn't show up in the Add Dataset Typed Dataset list. So, I'm wondering if there's a secret to getting the Toolbox (and other dialogs) to update once you create a dataset -- if they're supposed to be available in the Toolbox, because they weren't until I ran Imports statements explicitly added those objects to the form. I was unable to drag the dataset from the Toolbox, because it wasn't listed. I ran the code, the Toolbox listed it. Now, that's peculair to me. > Also, have the box with Data Sources on display; this will contain your > datasets, and you can easily drag and drop full tables or single/selected > fields to your form. ==========You mean the Solutions Explorer or the Database Explorer? I'm working with both. Susan H. From Gustav at cactus.dk Sat Jun 20 08:53:00 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Sat, 20 Jun 2009 15:53:00 +0200 Subject: [dba-VB] Updating Toolbox in VB Express Message-ID: <sa3d05f7.009@cactus.dk> Hi Susan I haven't worked with a project using a dataset of this kind in another project so I can't tell. No, I mean Data Sources. Usually it is boxed together with Toolbox and Server Explorer as the other tabs. You can click it forward from menu Data. /gustav >>> ssharkins at gmail.com 20-06-2009 15:26:38 >>> > Now, I don't what you and Charlotte are up to, but I hope you create some > DataSet.xsd files and use the designer to create your datatables. ========That's exactly what I'm doing. The instructions are simple enough, but VB Express doesn't always behave as I think it should -- so either VB Express is cranky, or... well... we already know about me. :) The Toolbox would not update accordingly. And, I created a reference in one project to the project with the dataset, but the dataset didn't show up in the Add Dataset Typed Dataset list. So, I'm wondering if there's a secret to getting the Toolbox (and other dialogs) to update once you create a dataset -- if they're supposed to be available in the Toolbox, because they weren't until I ran Imports statements explicitly added those objects to the form. I was unable to drag the dataset from the Toolbox, because it wasn't listed. I ran the code, the Toolbox listed it. Now, that's peculair to me. > Also, have the box with Data Sources on display; this will contain your > datasets, and you can easily drag and drop full tables or single/selected > fields to your form. ==========You mean the Solutions Explorer or the Database Explorer? I'm working with both. Susan H. From ssharkins at gmail.com Sat Jun 20 09:06:41 2009 From: ssharkins at gmail.com (Susan Harkins) Date: Sat, 20 Jun 2009 10:06:41 -0400 Subject: [dba-VB] Updating Toolbox in VB Express References: <sa3d05f7.009@cactus.dk> Message-ID: <65F35549A3C44BE98D76EE725D78B7DC@SusanOne> > No, I mean Data Sources. Usually it is boxed together with Toolbox and > Server Explorer as the other tabs. You can click it forward from menu > Data. ====Yes, I'm familiar with Data Sources too. Thanks Gustav! Susan H. From ssharkins at gmail.com Mon Jun 22 09:03:52 2009 From: ssharkins at gmail.com (Susan Harkins) Date: Mon, 22 Jun 2009 10:03:52 -0400 Subject: [dba-VB] Looking for SAP - HR Payroll Analyst Message-ID: <C7288DAF510B40E499DB1349F6554BDB@SusanOne> If you have the skills to fill this position or know someone who does, please send me a resume. Susan H. From shamil at smsconsulting.spb.ru Fri Jun 26 15:10:55 2009 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sat, 27 Jun 2009 00:10:55 +0400 Subject: [dba-VB] ASP.NET MVC Framework Message-ID: <004101c9f69a$37a115b0$a6e34110$@spb.ru> Hi All, I'm watching through ASP.NET MVC Framework web casts now "ASP.NET MVC Talks" http://www.asp.net/learn/mvc-videos/#MVCStorefrontStarterKit This technology looks interesting. I will probably try to use it in one small application for my new customer. Have anybody here used ASP.NET MVC Framework in application/sample development? Thank you. -- Shamil From Gustav at cactus.dk Fri Jun 26 16:49:06 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 26 Jun 2009 23:49:06 +0200 Subject: [dba-VB] ASP.NET MVC Framework Message-ID: <sa455e89.029@cactus.dk> Hi Shamil Not me, but I have studied it a bit because the separation of the design in the Model, View and Control parts seems so logical. The fascinating aspect is if it is possible or feasible to transfer it from web design to Windows form design. Now, the Northwind.NET project doesn't contain much "model" work, but it could be an option to convert it to follow MVC design ... /gustav >>> shamil at smsconsulting.spb.ru 26-06-2009 22:10 >>> Hi All, I'm watching through ASP.NET MVC Framework web casts now "ASP.NET MVC Talks" http://www.asp.net/learn/mvc-videos/#MVCStorefrontStarterKit This technology looks interesting. I will probably try to use it in one small application for my new customer. Have anybody here used ASP.NET MVC Framework in application/sample development? Thank you. -- Shamil From shamil at smsconsulting.spb.ru Fri Jun 26 18:15:49 2009 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sat, 27 Jun 2009 03:15:49 +0400 Subject: [dba-VB] ASP.NET MVC Framework In-Reply-To: <sa455e89.029@cactus.dk> References: <sa455e89.029@cactus.dk> Message-ID: <004e01c9f6b4$0be716d0$23b54470$@spb.ru> <<< Now, the Northwind.NET project doesn't contain much "model" work, but it could be an option to convert it to follow MVC design ... >>> Yes, I thought we could try to do that - let's try to gather a team here? SilverLight project didn't get good feedback - it could happen that ASP.NET MVC based project would be more interesting 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: Saturday, June 27, 2009 1:49 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] ASP.NET MVC Framework Hi Shamil Not me, but I have studied it a bit because the separation of the design in the Model, View and Control parts seems so logical. The fascinating aspect is if it is possible or feasible to transfer it from web design to Windows form design. Now, the Northwind.NET project doesn't contain much "model" work, but it could be an option to convert it to follow MVC design ... /gustav >>> shamil at smsconsulting.spb.ru 26-06-2009 22:10 >>> Hi All, I'm watching through ASP.NET MVC Framework web casts now "ASP.NET MVC Talks" http://www.asp.net/learn/mvc-videos/#MVCStorefrontStarterKit This technology looks interesting. I will probably try to use it in one small application for my new customer. Have anybody here used ASP.NET MVC Framework in application/sample development? Thank you. -- Shamil _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com __________ Information from ESET NOD32 Antivirus, version of virus signature database 4193 (20090626) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru __________ Information from ESET NOD32 Antivirus, version of virus signature database 4193 (20090626) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru From shamil at smsconsulting.spb.ru Sat Jun 27 05:56:58 2009 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sat, 27 Jun 2009 14:56:58 +0400 Subject: [dba-VB] ASP.NET MVC Framework In-Reply-To: <sa455e89.029@cactus.dk> References: <sa455e89.029@cactus.dk> Message-ID: <000601c9f715$ff3d9690$fdb8c3b0$@spb.ru> Hi Gustav, I have made sample MVC project - just generated from standard template in VS2008 SP1. It works well locally. I have put it here on Internet: http://shamils-4.hosting.parking.ru/myMvcApplication1/ As you can find it starts OK but links do not work - my guess there is something wrong with those SEO links routing to actual .aspx page - haven't you seen anywhere where should I look in my MVC sample project to fix the issue? (it may also happen that some special settings should be done on ASP.Net server site for that SEO links routing to work properly. All in all MVC programming promise to be rather advanced activity (there are no prebuilt server side controls as when one uses ASP.NET WebForms etc.) but it should be worth the learning curve efforts? - it should become something like "Ruby On Rails" in the (near?) future releases? 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: Saturday, June 27, 2009 1:49 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] ASP.NET MVC Framework Hi Shamil Not me, but I have studied it a bit because the separation of the design in the Model, View and Control parts seems so logical. The fascinating aspect is if it is possible or feasible to transfer it from web design to Windows form design. Now, the Northwind.NET project doesn't contain much "model" work, but it could be an option to convert it to follow MVC design ... /gustav >>> shamil at smsconsulting.spb.ru 26-06-2009 22:10 >>> Hi All, I'm watching through ASP.NET MVC Framework web casts now "ASP.NET MVC Talks" http://www.asp.net/learn/mvc-videos/#MVCStorefrontStarterKit This technology looks interesting. I will probably try to use it in one small application for my new customer. Have anybody here used ASP.NET MVC Framework in application/sample development? Thank you. -- Shamil _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com __________ Information from ESET NOD32 Antivirus, version of virus signature database 4193 (20090626) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru __________ Information from ESET NOD32 Antivirus, version of virus signature database 4193 (20090626) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru From Gustav at cactus.dk Sat Jun 27 16:27:50 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Sat, 27 Jun 2009 23:27:50 +0200 Subject: [dba-VB] ASP.NET MVC Framework Message-ID: <sa46aafe.033@cactus.dk> Hi Shamil Great! But as you, I can open the first page, that's all. Some MVC deployment guide must exist somewhere ... this weekend I'm busy with construction work at our house so I don't have much time looking into this before Monday or Tuesday. /gustav >>> shamil at smsconsulting.spb.ru 27-06-2009 12:56 >>> Hi Gustav, I have made sample MVC project - just generated from standard template in VS2008 SP1. It works well locally. I have put it here on Internet: http://shamils-4.hosting.parking.ru/myMvcApplication1/ As you can find it starts OK but links do not work - my guess there is something wrong with those SEO links routing to actual .aspx page - haven't you seen anywhere where should I look in my MVC sample project to fix the issue? (it may also happen that some special settings should be done on ASP.Net server site for that SEO links routing to work properly. All in all MVC programming promise to be rather advanced activity (there are no prebuilt server side controls as when one uses ASP.NET WebForms etc.) but it should be worth the learning curve efforts? - it should become something like "Ruby On Rails" in the (near?) future releases? 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: Saturday, June 27, 2009 1:49 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] ASP.NET MVC Framework Hi Shamil Not me, but I have studied it a bit because the separation of the design in the Model, View and Control parts seems so logical. The fascinating aspect is if it is possible or feasible to transfer it from web design to Windows form design. Now, the Northwind.NET project doesn't contain much "model" work, but it could be an option to convert it to follow MVC design ... /gustav >>> shamil at smsconsulting.spb.ru 26-06-2009 22:10 >>> Hi All, I'm watching through ASP.NET MVC Framework web casts now "ASP.NET MVC Talks" http://www.asp.net/learn/mvc-videos/#MVCStorefrontStarterKit This technology looks interesting. I will probably try to use it in one small application for my new customer. Have anybody here used ASP.NET MVC Framework in application/sample development? Thank you. -- Shamil From shamil at smsconsulting.spb.ru Mon Jun 29 05:44:25 2009 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Mon, 29 Jun 2009 14:44:25 +0400 Subject: [dba-VB] ASP.NET MVC Framework In-Reply-To: <sa46aafe.033@cactus.dk> References: <sa46aafe.033@cactus.dk> Message-ID: <000b01c9f8a6$93715ef0$ba541cd0$@spb.ru> Hi Gustav and all, I have got read "ASP.NET MVC 1.0 Quickly" By Maarten Balliauw over weekend. Good book for starters with ASP.NET MVC 1.0 as I'm. As for ASP.NET MVC 1.0 - after reading the above book I decided to wait what will come in ASP.NET MVC 2.0: ASP.NET MVC 1.0 is built on top of ASP.NET and I'm now under impression now that it's more a "marketing tool"/R&D project than a robust framework for application development - at least developing web pages to present and edit parent/detail relationships/data promise to be a real PITA with ASP.NET MVC 1.0. ASP.NET MVC 1.0 is good for simple sites as http://stackoverflow.com/ is. One can mix ASP.NET WebForms with ASP.NET MVC 1.0 within one web application but I must say I do not see strong reasons to do that if one has good working knowledge of ASP.NET 3.5. ... I can be missing something... What are your opinions? Thank you. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Sunday, June 28, 2009 1:28 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] ASP.NET MVC Framework Hi Shamil Great! But as you, I can open the first page, that's all. Some MVC deployment guide must exist somewhere ... this weekend I'm busy with construction work at our house so I don't have much time looking into this before Monday or Tuesday. /gustav >>> shamil at smsconsulting.spb.ru 27-06-2009 12:56 >>> Hi Gustav, I have made sample MVC project - just generated from standard template in VS2008 SP1. It works well locally. I have put it here on Internet: http://shamils-4.hosting.parking.ru/myMvcApplication1/ As you can find it starts OK but links do not work - my guess there is something wrong with those SEO links routing to actual .aspx page - haven't you seen anywhere where should I look in my MVC sample project to fix the issue? (it may also happen that some special settings should be done on ASP.Net server site for that SEO links routing to work properly. All in all MVC programming promise to be rather advanced activity (there are no prebuilt server side controls as when one uses ASP.NET WebForms etc.) but it should be worth the learning curve efforts? - it should become something like "Ruby On Rails" in the (near?) future releases? 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: Saturday, June 27, 2009 1:49 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] ASP.NET MVC Framework Hi Shamil Not me, but I have studied it a bit because the separation of the design in the Model, View and Control parts seems so logical. The fascinating aspect is if it is possible or feasible to transfer it from web design to Windows form design. Now, the Northwind.NET project doesn't contain much "model" work, but it could be an option to convert it to follow MVC design ... /gustav >>> shamil at smsconsulting.spb.ru 26-06-2009 22:10 >>> Hi All, I'm watching through ASP.NET MVC Framework web casts now "ASP.NET MVC Talks" http://www.asp.net/learn/mvc-videos/#MVCStorefrontStarterKit This technology looks interesting. I will probably try to use it in one small application for my new customer. Have anybody here used ASP.NET MVC Framework in application/sample development? Thank you. -- Shamil _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com __________ Information from ESET NOD32 Antivirus, version of virus signature database 4194 (20090628) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru __________ Information from ESET NOD32 Antivirus, version of virus signature database 4195 (20090629) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru From ssharkins at gmail.com Mon Jun 29 09:26:36 2009 From: ssharkins at gmail.com (Susan Harkins) Date: Mon, 29 Jun 2009 10:26:36 -0400 Subject: [dba-VB] Article from Gustav Message-ID: <4BB427CF4F6549BD96A293618675E1FE@SusanOne> <http://www.devx.com:80/vb/Article/42242/0/page/1> I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so proud... yet another ones passes safely to single author status. :) Susan H. From max.wanadoo at gmail.com Mon Jun 29 10:38:50 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 29 Jun 2009 16:38:50 +0100 Subject: [dba-VB] Article from Gustav In-Reply-To: <4BB427CF4F6549BD96A293618675E1FE@SusanOne> References: <4BB427CF4F6549BD96A293618675E1FE@SusanOne> Message-ID: <4a48e00e.0707d00a.5973.0ded@mx.google.com> Hmmmm, might be worth a download in that case... Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: 29 June 2009 15:27 To: VBLIst Subject: [dba-VB] Article from Gustav <http://www.devx.com:80/vb/Article/42242/0/page/1> I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so proud... yet another ones passes safely to single author status. :) Susan H. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From ssharkins at gmail.com Mon Jun 29 10:47:13 2009 From: ssharkins at gmail.com (Susan Harkins) Date: Mon, 29 Jun 2009 11:47:13 -0400 Subject: [dba-VB] Article from Gustav References: <4BB427CF4F6549BD96A293618675E1FE@SusanOne> <4a48e00e.0707d00a.5973.0ded@mx.google.com> Message-ID: <4019EE1CA03549269167437E82A3E175@SusanOne> You know, I can create a rule and ignore you. ;) Susan H. > Hmmmm, might be worth a download in that case... > > <http://www.devx.com:80/vb/Article/42242/0/page/1> > > I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so > proud... yet another ones passes safely to single author status. :) From max.wanadoo at gmail.com Mon Jun 29 10:49:28 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 29 Jun 2009 16:49:28 +0100 Subject: [dba-VB] Article from Gustav In-Reply-To: <4019EE1CA03549269167437E82A3E175@SusanOne> References: <4BB427CF4F6549BD96A293618675E1FE@SusanOne> <4a48e00e.0707d00a.5973.0ded@mx.google.com> <4019EE1CA03549269167437E82A3E175@SusanOne> Message-ID: <4a48e28e.0506d00a.3751.0cd0@mx.google.com> You love me too much.... Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: 29 June 2009 16:47 To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Article from Gustav You know, I can create a rule and ignore you. ;) Susan H. > Hmmmm, might be worth a download in that case... > > <http://www.devx.com:80/vb/Article/42242/0/page/1> > > I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so > proud... yet another ones passes safely to single author status. :) _______________________________________________ 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 Jun 29 10:52:39 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 29 Jun 2009 11:52:39 -0400 Subject: [dba-VB] Syslogs In-Reply-To: <4BB427CF4F6549BD96A293618675E1FE@SusanOne> References: <4BB427CF4F6549BD96A293618675E1FE@SusanOne> Message-ID: <4A48E347.9090908@colbyconsulting.com> Hmm... Looks quite cool. My mind is a raging torrent, flooded with rivulets of thought cascading into a waterfall of creative alternatives. Now... how do we determine the IP address of every machine using an Access application on the local LAN? John W. Colby www.ColbyConsulting.com Susan Harkins wrote: > <http://www.devx.com:80/vb/Article/42242/0/page/1> > > I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so > proud... yet another ones passes safely to single author status. :) > > Susan H. > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From Gustav at cactus.dk Mon Jun 29 10:55:15 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 29 Jun 2009 17:55:15 +0200 Subject: [dba-VB] ASP.NET MVC Framework Message-ID: <sa490025.061@cactus.dk> Hi Shamil Thanks for the review. Very useful. No, I don't think you have missed anything. It is my impression that using MVC requires a lot and if you can top that with some real challenges for data handling, I think I'll allocate my limited resources elsewhere. /gustav >>> shamil at smsconsulting.spb.ru 29-06-2009 12:44 >>> Hi Gustav and all, I have got read "ASP.NET MVC 1.0 Quickly" By Maarten Balliauw over weekend. Good book for starters with ASP.NET MVC 1.0 as I'm. As for ASP.NET MVC 1.0 - after reading the above book I decided to wait what will come in ASP.NET MVC 2.0: ASP.NET MVC 1.0 is built on top of ASP.NET and I'm now under impression now that it's more a "marketing tool"/R&D project than a robust framework for application development - at least developing web pages to present and edit parent/detail relationships/data promise to be a real PITA with ASP.NET MVC 1.0. ASP.NET MVC 1.0 is good for simple sites as http://stackoverflow.com/ is. One can mix ASP.NET WebForms with ASP.NET MVC 1.0 within one web application but I must say I do not see strong reasons to do that if one has good working knowledge of ASP.NET 3.5. ... I can be missing something... What are your opinions? Thank you. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Sunday, June 28, 2009 1:28 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] ASP.NET MVC Framework Hi Shamil Great! But as you, I can open the first page, that's all. Some MVC deployment guide must exist somewhere ... this weekend I'm busy with construction work at our house so I don't have much time looking into this before Monday or Tuesday. /gustav >>> shamil at smsconsulting.spb.ru 27-06-2009 12:56 >>> Hi Gustav, I have made sample MVC project - just generated from standard template in VS2008 SP1. It works well locally. I have put it here on Internet: http://shamils-4.hosting.parking.ru/myMvcApplication1/ As you can find it starts OK but links do not work - my guess there is something wrong with those SEO links routing to actual .aspx page - haven't you seen anywhere where should I look in my MVC sample project to fix the issue? (it may also happen that some special settings should be done on ASP.Net server site for that SEO links routing to work properly. All in all MVC programming promise to be rather advanced activity (there are no prebuilt server side controls as when one uses ASP.NET WebForms etc.) but it should be worth the learning curve efforts? - it should become something like "Ruby On Rails" in the (near?) future releases? 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: Saturday, June 27, 2009 1:49 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] ASP.NET MVC Framework Hi Shamil Not me, but I have studied it a bit because the separation of the design in the Model, View and Control parts seems so logical. The fascinating aspect is if it is possible or feasible to transfer it from web design to Windows form design. Now, the Northwind.NET project doesn't contain much "model" work, but it could be an option to convert it to follow MVC design ... /gustav >>> shamil at smsconsulting.spb.ru 26-06-2009 22:10 >>> Hi All, I'm watching through ASP.NET MVC Framework web casts now "ASP.NET MVC Talks" http://www.asp.net/learn/mvc-videos/#MVCStorefrontStarterKit This technology looks interesting. I will probably try to use it in one small application for my new customer. Have anybody here used ASP.NET MVC Framework in application/sample development? Thank you. -- Shamil From ssharkins at gmail.com Mon Jun 29 10:57:31 2009 From: ssharkins at gmail.com (Susan Harkins) Date: Mon, 29 Jun 2009 11:57:31 -0400 Subject: [dba-VB] Syslogs References: <4BB427CF4F6549BD96A293618675E1FE@SusanOne> <4A48E347.9090908@colbyconsulting.com> Message-ID: <239A59C13E2B49DB9B1CC36B2D3FC947@SusanOne> > My mind is a raging torrent, flooded with rivulets of thought cascading > into a waterfall of creative > alternatives. =======That does explain quite a lot. ;) Susan H. From max.wanadoo at gmail.com Mon Jun 29 11:00:08 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 29 Jun 2009 17:00:08 +0100 Subject: [dba-VB] Syslogs In-Reply-To: <239A59C13E2B49DB9B1CC36B2D3FC947@SusanOne> References: <4BB427CF4F6549BD96A293618675E1FE@SusanOne> <4A48E347.9090908@colbyconsulting.com> <239A59C13E2B49DB9B1CC36B2D3FC947@SusanOne> Message-ID: <4a48e50d.1c05d00a.5a17.6c08@mx.google.com> It tells me that he has got Fortune Cookies switch on.... Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: 29 June 2009 16:58 To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Syslogs > My mind is a raging torrent, flooded with rivulets of thought cascading > into a waterfall of creative > alternatives. =======That does explain quite a lot. ;) Susan H. _______________________________________________ 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 Jun 29 11:08:21 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 29 Jun 2009 12:08:21 -0400 Subject: [dba-VB] Syslogs In-Reply-To: <4a48e50d.1c05d00a.5a17.6c08@mx.google.com> References: <4BB427CF4F6549BD96A293618675E1FE@SusanOne> <4A48E347.9090908@colbyconsulting.com> <239A59C13E2B49DB9B1CC36B2D3FC947@SusanOne> <4a48e50d.1c05d00a.5a17.6c08@mx.google.com> Message-ID: <4A48E6F5.8090000@colbyconsulting.com> A few too many passes through Blazing Saddles. ;) John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > It tells me that he has got Fortune Cookies switch on.... > > Max > > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Susan Harkins > Sent: 29 June 2009 16:58 > To: Discussion concerning Visual Basic and related programming issues. > Subject: Re: [dba-VB] Syslogs > >> My mind is a raging torrent, flooded with rivulets of thought cascading >> into a waterfall of creative >> alternatives. > > =======That does explain quite a lot. ;) > > Susan H. > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From max.wanadoo at gmail.com Mon Jun 29 11:12:01 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 29 Jun 2009 17:12:01 +0100 Subject: [dba-VB] Syslogs In-Reply-To: <4A48E6F5.8090000@colbyconsulting.com> References: <4BB427CF4F6549BD96A293618675E1FE@SusanOne> <4A48E347.9090908@colbyconsulting.com> <239A59C13E2B49DB9B1CC36B2D3FC947@SusanOne> <4a48e50d.1c05d00a.5a17.6c08@mx.google.com> <4A48E6F5.8090000@colbyconsulting.com> Message-ID: <4a48e7d6.0707d00a.5973.188c@mx.google.com> Try vodka...same effect...less typing ability... Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: 29 June 2009 17:08 To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Syslogs A few too many passes through Blazing Saddles. ;) John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > It tells me that he has got Fortune Cookies switch on.... > > Max > > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Susan Harkins > Sent: 29 June 2009 16:58 > To: Discussion concerning Visual Basic and related programming issues. > Subject: Re: [dba-VB] Syslogs > >> My mind is a raging torrent, flooded with rivulets of thought cascading >> into a waterfall of creative >> alternatives. > > =======That does explain quite a lot. ;) > > Susan H. > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From max.wanadoo at gmail.com Mon Jun 29 11:14:30 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 29 Jun 2009 17:14:30 +0100 Subject: [dba-VB] Syslogs In-Reply-To: <4A48E347.9090908@colbyconsulting.com> References: <4BB427CF4F6549BD96A293618675E1FE@SusanOne> <4A48E347.9090908@colbyconsulting.com> Message-ID: <4a48e86a.1c05d00a.538f.13fb@mx.google.com> Gustav, does this work under Access VBA? Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: 29 June 2009 16:53 To: Discussion concerning Visual Basic and related programming issues. Subject: [dba-VB] Syslogs Hmm... Looks quite cool. My mind is a raging torrent, flooded with rivulets of thought cascading into a waterfall of creative alternatives. Now... how do we determine the IP address of every machine using an Access application on the local LAN? John W. Colby www.ColbyConsulting.com Susan Harkins wrote: > <http://www.devx.com:80/vb/Article/42242/0/page/1> > > I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so > proud... yet another ones passes safely to single author status. :) > > Susan H. > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From max.wanadoo at gmail.com Mon Jun 29 11:19:08 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 29 Jun 2009 17:19:08 +0100 Subject: [dba-VB] Syslogs In-Reply-To: <4A48E347.9090908@colbyconsulting.com> References: <4BB427CF4F6549BD96A293618675E1FE@SusanOne> <4A48E347.9090908@colbyconsulting.com> Message-ID: <4a48e982.1701d00a.388e.0b31@mx.google.com> Do you mean IP address without having to go to the other workstation. If you just want to know what the IP address is, use VNC or RealVNC then you can just hover the mouse over the system tray icon and it will tell you the ip address. Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: 29 June 2009 16:53 To: Discussion concerning Visual Basic and related programming issues. Subject: [dba-VB] Syslogs Hmm... Looks quite cool. My mind is a raging torrent, flooded with rivulets of thought cascading into a waterfall of creative alternatives. Now... how do we determine the IP address of every machine using an Access application on the local LAN? John W. Colby www.ColbyConsulting.com Susan Harkins wrote: > <http://www.devx.com:80/vb/Article/42242/0/page/1> > > I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so > proud... yet another ones passes safely to single author status. :) > > Susan H. > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ 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 Jun 29 11:24:47 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 29 Jun 2009 18:24:47 +0200 Subject: [dba-VB] Article from Gustav Message-ID: <sa4906f9.063@cactus.dk> Hi Susan So you are counting us? I just thought you were lazy and this stuff was too nerded. So I was in trouble ... until I figured out I could take one of our previous articles and use as a skeleton. It worked out. Thanks! /gustav >>> ssharkins at gmail.com 29-06-2009 16:26 >>> <http://www.devx.com:80/vb/Article/42242/0/page/1> I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so proud... yet another ones passes safely to single author status. :) Susan H. From Gustav at cactus.dk Mon Jun 29 11:25:37 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 29 Jun 2009 18:25:37 +0200 Subject: [dba-VB] Syslogs Message-ID: <sa490735.064@cactus.dk> Hi John Ask the application to send you a syslog message! Then you can read the sender address or hostname. /gustav >>> jwcolby at colbyconsulting.com 29-06-2009 17:52 >>> Hmm... Looks quite cool. My mind is a raging torrent, flooded with rivulets of thought cascading into a waterfall of creative alternatives. Now... how do we determine the IP address of every machine using an Access application on the local LAN? John W. Colby www.ColbyConsulting.com Susan Harkins wrote: > <http://www.devx.com:80/vb/Article/42242/0/page/1> > > I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so > proud... yet another ones passes safely to single author status. :) > > Susan H. From jwcolby at colbyconsulting.com Mon Jun 29 11:27:55 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 29 Jun 2009 12:27:55 -0400 Subject: [dba-VB] Syslogs In-Reply-To: <4a48e982.1701d00a.388e.0b31@mx.google.com> References: <4BB427CF4F6549BD96A293618675E1FE@SusanOne> <4A48E347.9090908@colbyconsulting.com> <4a48e982.1701d00a.388e.0b31@mx.google.com> Message-ID: <4A48EB8B.7090901@colbyconsulting.com> No, I want the Access workstations to log their IP address in a table as Access opens so that I can read who is available to send messages to. The limitation of this kind of code is that you have to know an IP address. John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > Do you mean IP address without having to go to the other workstation. > > If you just want to know what the IP address is, use VNC or RealVNC then you > can just hover the mouse over the system tray icon and it will tell you the > ip address. > > Max > > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: 29 June 2009 16:53 > To: Discussion concerning Visual Basic and related programming issues. > Subject: [dba-VB] Syslogs > > Hmm... > > Looks quite cool. > > My mind is a raging torrent, flooded with rivulets of thought cascading into > a waterfall of creative > alternatives. > > Now... how do we determine the IP address of every machine using an Access > application on the local LAN? > > John W. Colby > www.ColbyConsulting.com > > > Susan Harkins wrote: >> <http://www.devx.com:80/vb/Article/42242/0/page/1> >> >> I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so >> proud... yet another ones passes safely to single author status. :) >> >> Susan H. >> >> _______________________________________________ >> dba-VB mailing list >> dba-VB at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/dba-vb >> http://www.databaseadvisors.com >> >> > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From max.wanadoo at gmail.com Mon Jun 29 11:29:19 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 29 Jun 2009 17:29:19 +0100 Subject: [dba-VB] Article from Gustav In-Reply-To: <sa4906f9.063@cactus.dk> References: <sa4906f9.063@cactus.dk> Message-ID: <4a48ebe4.0a04d00a.07b4.1a0b@mx.google.com> See Susan....Give children fish and they will be fed for the day...teach the children how to fish and they will be fed for ever.. Ps. And you were going to Rule-Me! Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 29 June 2009 17:25 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Article from Gustav Hi Susan So you are counting us? I just thought you were lazy and this stuff was too nerded. So I was in trouble ... until I figured out I could take one of our previous articles and use as a skeleton. It worked out. Thanks! /gustav >>> ssharkins at gmail.com 29-06-2009 16:26 >>> <http://www.devx.com:80/vb/Article/42242/0/page/1> I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so proud... yet another ones passes safely to single author status. :) Susan H. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From ssharkins at gmail.com Mon Jun 29 11:30:37 2009 From: ssharkins at gmail.com (Susan Harkins) Date: Mon, 29 Jun 2009 12:30:37 -0400 Subject: [dba-VB] Article from Gustav References: <sa4906f9.063@cactus.dk> Message-ID: <8291425A3CE9489A95F93FA6E0A2416E@SusanOne> > > So you are counting us? I just thought you were lazy and this stuff was > too nerded. ==========Counting us? Did I lose something in the translation? :) > So I was in trouble ... until I figured out I could take one of our > previous articles and use as a skeleton. > It worked out. Thanks! ==========That's all I do! ;) Susan H. From max.wanadoo at gmail.com Mon Jun 29 11:35:20 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 29 Jun 2009 17:35:20 +0100 Subject: [dba-VB] Syslogs In-Reply-To: <4A48EB8B.7090901@colbyconsulting.com> References: <4BB427CF4F6549BD96A293618675E1FE@SusanOne> <4A48E347.9090908@colbyconsulting.com> <4a48e982.1701d00a.388e.0b31@mx.google.com> <4A48EB8B.7090901@colbyconsulting.com> Message-ID: <4a48ed4e.0702d00a.3f5a.5e39@mx.google.com> Hmmm, ok I will think about that...but when you say "..so that I can..." do you mean your application or you as an individual? What I am getting at is, why not just send it to everyone? Why cherry-pick individuals? EG; on one of my apps, I have, oh, all sorts of messages flying around, but on each FE there is a timer running on the main menu and periodically it will go to see if there are any messages in the table which handles this sorta stuff. IF so, the user has a pop up with the option to Sleep for x mins (default to 15) before it reminds again. It will never go away until the user has read it, unless you (the originator) says it can time out. Sorta stuff...if you can get my drift. Don't need to send system messages. It is handled with the app. Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: 29 June 2009 17:28 To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Syslogs No, I want the Access workstations to log their IP address in a table as Access opens so that I can read who is available to send messages to. The limitation of this kind of code is that you have to know an IP address. John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > Do you mean IP address without having to go to the other workstation. > > If you just want to know what the IP address is, use VNC or RealVNC then you > can just hover the mouse over the system tray icon and it will tell you the > ip address. > > Max > > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: 29 June 2009 16:53 > To: Discussion concerning Visual Basic and related programming issues. > Subject: [dba-VB] Syslogs > > Hmm... > > Looks quite cool. > > My mind is a raging torrent, flooded with rivulets of thought cascading into > a waterfall of creative > alternatives. > > Now... how do we determine the IP address of every machine using an Access > application on the local LAN? > > John W. Colby > www.ColbyConsulting.com > > > Susan Harkins wrote: >> <http://www.devx.com:80/vb/Article/42242/0/page/1> >> >> I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so >> proud... yet another ones passes safely to single author status. :) >> >> Susan H. >> >> _______________________________________________ >> dba-VB mailing list >> dba-VB at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/dba-vb >> http://www.databaseadvisors.com >> >> > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Mon Jun 29 11:37:31 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 29 Jun 2009 12:37:31 -0400 Subject: [dba-VB] Syslogs In-Reply-To: <sa490735.064@cactus.dk> References: <sa490735.064@cactus.dk> Message-ID: <4A48EDCB.50706@colbyconsulting.com> LOL, but you still have to know your own IP address. We got into this one time, with Hamachi, VMs, multiple NICS etc. it is difficult to determine what my own IP address is. John W. Colby www.ColbyConsulting.com Gustav Brock wrote: > Hi John > > Ask the application to send you a syslog message! > Then you can read the sender address or hostname. > > /gustav > > >>>> jwcolby at colbyconsulting.com 29-06-2009 17:52 >>> > Hmm... > > Looks quite cool. > > My mind is a raging torrent, flooded with rivulets of thought cascading into a waterfall of creative > alternatives. > > Now... how do we determine the IP address of every machine using an Access application on the local LAN? > > John W. Colby > www.ColbyConsulting.com > > > Susan Harkins wrote: >> <http://www.devx.com:80/vb/Article/42242/0/page/1> >> >> I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so >> proud... yet another ones passes safely to single author status. :) >> >> Susan H. > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From Gustav at cactus.dk Mon Jun 29 11:37:29 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 29 Jun 2009 18:37:29 +0200 Subject: [dba-VB] Syslogs Message-ID: <sa490a08.065@cactus.dk> Hi Susan, Max et al This article: Create a Syslog Sender/Receiver Using the MS Winsock Control <quote> With the Microsoft WinSock Control and a few coding tricks, you can use Access as a high-performance syslog sender, receiver, and logger. </quote> _is_ in VBA! I have no idea why it was put in the VB section. In fact, given the current "discussion" on Access 2007, it is just about the only project I have made in Access 2007. I started out with this several years ago with Access 97 for fun, but when I recently got the chance to write and polish it up, I felt it had to be finished in A2007. If Steve is looking for "fans of the ribbon", don't count me in - I really looked for features or benefits of the ribbon but found none, sorry. /gustav >>> max.wanadoo at gmail.com 29-06-2009 18:14 >>> Gustav, does this work under Access VBA? Max -----Original Message----- Susan Harkins wrote: > <http://www.devx.com:80/vb/Article/42242/0/page/1> > > I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so > proud... yet another ones passes safely to single author status. :) > > Susan H. From andy at minstersystems.co.uk Mon Jun 29 11:40:56 2009 From: andy at minstersystems.co.uk (Andy Lacey) Date: Mon, 29 Jun 2009 17:40:56 +0100 Subject: [dba-VB] Article from Gustav In-Reply-To: <4BB427CF4F6549BD96A293618675E1FE@SusanOne> Message-ID: <B9B899E33A7F4B1285F004349D8FBF34@MINSTER> Congratulations....to both of you. andy -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: 29 June 2009 15:27 To: VBLIst Subject: [dba-VB] Article from Gustav <http://www.devx.com:80/vb/Article/42242/0/page/1> I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so proud... yet another ones passes safely to single author status. :) Susan H. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From max.wanadoo at gmail.com Mon Jun 29 11:51:50 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 29 Jun 2009 17:51:50 +0100 Subject: [dba-VB] Syslogs In-Reply-To: <sa490a08.065@cactus.dk> References: <sa490a08.065@cactus.dk> Message-ID: <4a48f12c.1818d00a.6a44.1a3d@mx.google.com> Run it in A2007K and opened the Demo form to get this error: .Protocol = sckUDPProtocol Run time error 438 Object doesn't support this property or method. Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 29 June 2009 17:37 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Syslogs Hi Susan, Max et al This article: Create a Syslog Sender/Receiver Using the MS Winsock Control <quote> With the Microsoft WinSock Control and a few coding tricks, you can use Access as a high-performance syslog sender, receiver, and logger. </quote> _is_ in VBA! I have no idea why it was put in the VB section. In fact, given the current "discussion" on Access 2007, it is just about the only project I have made in Access 2007. I started out with this several years ago with Access 97 for fun, but when I recently got the chance to write and polish it up, I felt it had to be finished in A2007. If Steve is looking for "fans of the ribbon", don't count me in - I really looked for features or benefits of the ribbon but found none, sorry. /gustav >>> max.wanadoo at gmail.com 29-06-2009 18:14 >>> Gustav, does this work under Access VBA? Max -----Original Message----- Susan Harkins wrote: > <http://www.devx.com:80/vb/Article/42242/0/page/1> > > I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so > proud... yet another ones passes safely to single author status. :) > > Susan H. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Mon Jun 29 11:55:54 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 29 Jun 2009 12:55:54 -0400 Subject: [dba-VB] Syslogs In-Reply-To: <4a48ed4e.0702d00a.3f5a.5e39@mx.google.com> References: <4BB427CF4F6549BD96A293618675E1FE@SusanOne> <4A48E347.9090908@colbyconsulting.com> <4a48e982.1701d00a.388e.0b31@mx.google.com> <4A48EB8B.7090901@colbyconsulting.com> <4a48ed4e.0702d00a.3f5a.5e39@mx.google.com> Message-ID: <4A48F21A.2090608@colbyconsulting.com> > What I am getting at is, why not just send it to everyone? Why cherry-pick individuals? This is an attempt to avoid the timer. I hate timers, though I use them in a server application. In a user application they cause screen blinking and also cause compile errors for the developer if the timer tries to execute code while you are typing in code. John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > Hmmm, ok I will think about that...but when you say "..so that I can..." do > you mean your application or you as an individual? > > What I am getting at is, why not just send it to everyone? Why cherry-pick > individuals? > > EG; on one of my apps, I have, oh, all sorts of messages flying around, but > on each FE there is a timer running on the main menu and periodically it > will go to see if there are any messages in the table which handles this > sorta stuff. IF so, the user has a pop up with the option to Sleep for x > mins (default to 15) before it reminds again. It will never go away until > the user has read it, unless you (the originator) says it can time out. > > Sorta stuff...if you can get my drift. Don't need to send system messages. > It is handled with the app. > > Max > > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: 29 June 2009 17:28 > To: Discussion concerning Visual Basic and related programming issues. > Subject: Re: [dba-VB] Syslogs > > No, I want the Access workstations to log their IP address in a table as > Access opens so that I can > read who is available to send messages to. > > The limitation of this kind of code is that you have to know an IP address. > > John W. Colby > www.ColbyConsulting.com > > > Max Wanadoo wrote: >> Do you mean IP address without having to go to the other workstation. >> >> If you just want to know what the IP address is, use VNC or RealVNC then > you >> can just hover the mouse over the system tray icon and it will tell you > the >> ip address. >> >> Max >> >> >> >> -----Original Message----- >> From: dba-vb-bounces at databaseadvisors.com >> [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby >> Sent: 29 June 2009 16:53 >> To: Discussion concerning Visual Basic and related programming issues. >> Subject: [dba-VB] Syslogs >> >> Hmm... >> >> Looks quite cool. >> >> My mind is a raging torrent, flooded with rivulets of thought cascading > into >> a waterfall of creative >> alternatives. >> >> Now... how do we determine the IP address of every machine using an Access >> application on the local LAN? >> >> John W. Colby >> www.ColbyConsulting.com >> >> >> Susan Harkins wrote: >>> <http://www.devx.com:80/vb/Article/42242/0/page/1> >>> >>> I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so > >>> proud... yet another ones passes safely to single author status. :) >>> >>> Susan H. >>> >>> _______________________________________________ >>> dba-VB mailing list >>> dba-VB at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/dba-vb >>> http://www.databaseadvisors.com >>> >>> >> _______________________________________________ >> dba-VB mailing list >> dba-VB at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/dba-vb >> http://www.databaseadvisors.com >> >> _______________________________________________ >> dba-VB mailing list >> dba-VB at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/dba-vb >> http://www.databaseadvisors.com >> >> > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ > 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 Jun 29 11:56:50 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 29 Jun 2009 18:56:50 +0200 Subject: [dba-VB] Syslogs Message-ID: <sa490e7e.066@cactus.dk> Hi John Well, you have to decide. If you wish to communicate, either the sender or the receiver has to identify itself. That drives anything on the Internet. And syslog is not broadcasting. If you wish to listen to any address on your local network or transmit to any address on the local network, you have to determine the address of your machine and the subnet mask and you can calculate all possible addresses. Note that network admins hate broadcasting applications as these are considered noisy. If you wish to communicate in or out of your local network, again you must know "something" about the machine(s) out there and your router will take care of the rest (if it and the firewall allows). The reason Hamachi and the like works is because they initially use port 80 (which can be considered open on any office network) and an external proxy to establish communication - so sender and receiver can identify each other. Nothing black magic here. syslog is fun because it is so primitive. This makes it an universal tool with heavy limitations but with nearly zero use of resources. What has been missing is prebuilt methods to read and write the messages from/to a database - to make it useful for people like us. This is what and how the article describes. /gustav >>> jwcolby at colbyconsulting.com 29-06-2009 18:37 >>> LOL, but you still have to know your own IP address. We got into this one time, with Hamachi, VMs, multiple NICS etc. it is difficult to determine what my own IP address is. John W. Colby www.ColbyConsulting.com Gustav Brock wrote: > Hi John > > Ask the application to send you a syslog message! > Then you can read the sender address or hostname. > > /gustav > > >>>> jwcolby at colbyconsulting.com 29-06-2009 17:52 >>> > Hmm... > > Looks quite cool. > > My mind is a raging torrent, flooded with rivulets of thought cascading into a waterfall of creative > alternatives. > > Now... how do we determine the IP address of every machine using an Access application on the local LAN? > > John W. Colby > www.ColbyConsulting.com > > > Susan Harkins wrote: >> <http://www.devx.com:80/vb/Article/42242/0/page/1> >> >> I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so >> proud... yet another ones passes safely to single author status. :) >> >> Susan H. From jwcolby at colbyconsulting.com Mon Jun 29 11:57:45 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 29 Jun 2009 12:57:45 -0400 Subject: [dba-VB] Syslogs In-Reply-To: <4a48ed4e.0702d00a.3f5a.5e39@mx.google.com> References: <4BB427CF4F6549BD96A293618675E1FE@SusanOne> <4A48E347.9090908@colbyconsulting.com> <4a48e982.1701d00a.388e.0b31@mx.google.com> <4A48EB8B.7090901@colbyconsulting.com> <4a48ed4e.0702d00a.3f5a.5e39@mx.google.com> Message-ID: <4A48F289.3040908@colbyconsulting.com> > What I am getting at is, why not just send it to everyone? Why cherry-pick individuals? This is an attempt to avoid the timer. I hate timers, though I use them in a server application. In a user application they cause screen blinking and also cause compile errors for the developer if the timer tries to execute code while you are typing in code. If I know the IP address of every PC that has an application running, I can send a message to just those PCs. But I have to know their IP addresses. If you are going to communicate through a table then this kind of code is unnecessary, but then a timer has to poll for messages in the table. YUK. John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > Hmmm, ok I will think about that...but when you say "..so that I can..." do > you mean your application or you as an individual? > > What I am getting at is, why not just send it to everyone? Why cherry-pick > individuals? > > EG; on one of my apps, I have, oh, all sorts of messages flying around, but > on each FE there is a timer running on the main menu and periodically it > will go to see if there are any messages in the table which handles this > sorta stuff. IF so, the user has a pop up with the option to Sleep for x > mins (default to 15) before it reminds again. It will never go away until > the user has read it, unless you (the originator) says it can time out. > > Sorta stuff...if you can get my drift. Don't need to send system messages. > It is handled with the app. > > Max > > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: 29 June 2009 17:28 > To: Discussion concerning Visual Basic and related programming issues. > Subject: Re: [dba-VB] Syslogs > > No, I want the Access workstations to log their IP address in a table as > Access opens so that I can > read who is available to send messages to. > > The limitation of this kind of code is that you have to know an IP address. > > John W. Colby > www.ColbyConsulting.com > > > Max Wanadoo wrote: >> Do you mean IP address without having to go to the other workstation. >> >> If you just want to know what the IP address is, use VNC or RealVNC then > you >> can just hover the mouse over the system tray icon and it will tell you > the >> ip address. >> >> Max >> >> >> >> -----Original Message----- >> From: dba-vb-bounces at databaseadvisors.com >> [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby >> Sent: 29 June 2009 16:53 >> To: Discussion concerning Visual Basic and related programming issues. >> Subject: [dba-VB] Syslogs >> >> Hmm... >> >> Looks quite cool. >> >> My mind is a raging torrent, flooded with rivulets of thought cascading > into >> a waterfall of creative >> alternatives. >> >> Now... how do we determine the IP address of every machine using an Access >> application on the local LAN? >> >> John W. Colby >> www.ColbyConsulting.com >> >> >> Susan Harkins wrote: >>> <http://www.devx.com:80/vb/Article/42242/0/page/1> >>> >>> I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so > >>> proud... yet another ones passes safely to single author status. :) >>> >>> Susan H. >>> >>> _______________________________________________ >>> dba-VB mailing list >>> dba-VB at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/dba-vb >>> http://www.databaseadvisors.com >>> >>> >> _______________________________________________ >> dba-VB mailing list >> dba-VB at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/dba-vb >> http://www.databaseadvisors.com >> >> _______________________________________________ >> dba-VB mailing list >> dba-VB at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/dba-vb >> http://www.databaseadvisors.com >> >> > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ > 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 Jun 29 12:07:59 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 29 Jun 2009 19:07:59 +0200 Subject: [dba-VB] Syslogs Message-ID: <sa491131.067@cactus.dk> Hi Max The paragraph on page 1, "The WinSock Control", is for you. You need both the license and the "compatibility". Thank you to MS and IE and the "Compatibility" flag. /gustav >>> max.wanadoo at gmail.com 29-06-2009 18:51 >>> Run it in A2007K and opened the Demo form to get this error: .Protocol = sckUDPProtocol Run time error 438 Object doesn't support this property or method. Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 29 June 2009 17:37 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Syslogs Hi Susan, Max et al This article: Create a Syslog Sender/Receiver Using the MS Winsock Control <quote> With the Microsoft WinSock Control and a few coding tricks, you can use Access as a high-performance syslog sender, receiver, and logger. </quote> _is_ in VBA! I have no idea why it was put in the VB section. In fact, given the current "discussion" on Access 2007, it is just about the only project I have made in Access 2007. I started out with this several years ago with Access 97 for fun, but when I recently got the chance to write and polish it up, I felt it had to be finished in A2007. If Steve is looking for "fans of the ribbon", don't count me in - I really looked for features or benefits of the ribbon but found none, sorry. /gustav >>> max.wanadoo at gmail.com 29-06-2009 18:14 >>> Gustav, does this work under Access VBA? Max -----Original Message----- Susan Harkins wrote: > <http://www.devx.com:80/vb/Article/42242/0/page/1> > > I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so > proud... yet another ones passes safely to single author status. :) > > Susan H. From max.wanadoo at gmail.com Mon Jun 29 12:09:38 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 29 Jun 2009 18:09:38 +0100 Subject: [dba-VB] Syslogs In-Reply-To: <4A48F289.3040908@colbyconsulting.com> References: <4BB427CF4F6549BD96A293618675E1FE@SusanOne> <4A48E347.9090908@colbyconsulting.com> <4a48e982.1701d00a.388e.0b31@mx.google.com> <4A48EB8B.7090901@colbyconsulting.com> <4a48ed4e.0702d00a.3f5a.5e39@mx.google.com> <4A48F289.3040908@colbyconsulting.com> Message-ID: <4a48f557.0707d00a.73ff.1dd1@mx.google.com> Yes, you are correct. But your options are (assuming you are going with the access table method) is: a. you can identity 1 or more individuals via the user table and/or see who is logged in, or ALL. b. you can determine the timer frequency to avoid the problems you describe. c. you can change the timer frequency programmatically if you need to send a FLASH message and then turn it back to "normal speed" after. d. you don't need to know any IP addresses or indeed any LAN info at all. e. It all happens within Access under your program control. f. User can respond, forward, take action etc. g. you can check your Outline Emails. h. you can call up any Office (or other) app, Word, excel etc (you know all this anyway) z. oh, and anything else that Access is capable of...the world (access world, that is) is your oyster (or lobster, if you follow Alan's youtube) Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: 29 June 2009 17:58 To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Syslogs > What I am getting at is, why not just send it to everyone? Why cherry-pick individuals? This is an attempt to avoid the timer. I hate timers, though I use them in a server application. In a user application they cause screen blinking and also cause compile errors for the developer if the timer tries to execute code while you are typing in code. If I know the IP address of every PC that has an application running, I can send a message to just those PCs. But I have to know their IP addresses. If you are going to communicate through a table then this kind of code is unnecessary, but then a timer has to poll for messages in the table. YUK. John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > Hmmm, ok I will think about that...but when you say "..so that I can..." do > you mean your application or you as an individual? > > What I am getting at is, why not just send it to everyone? Why cherry-pick > individuals? > > EG; on one of my apps, I have, oh, all sorts of messages flying around, but > on each FE there is a timer running on the main menu and periodically it > will go to see if there are any messages in the table which handles this > sorta stuff. IF so, the user has a pop up with the option to Sleep for x > mins (default to 15) before it reminds again. It will never go away until > the user has read it, unless you (the originator) says it can time out. > > Sorta stuff...if you can get my drift. Don't need to send system messages. > It is handled with the app. > > Max > > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: 29 June 2009 17:28 > To: Discussion concerning Visual Basic and related programming issues. > Subject: Re: [dba-VB] Syslogs > > No, I want the Access workstations to log their IP address in a table as > Access opens so that I can > read who is available to send messages to. > > The limitation of this kind of code is that you have to know an IP address. > > John W. Colby > www.ColbyConsulting.com > > > Max Wanadoo wrote: >> Do you mean IP address without having to go to the other workstation. >> >> If you just want to know what the IP address is, use VNC or RealVNC then > you >> can just hover the mouse over the system tray icon and it will tell you > the >> ip address. >> >> Max >> >> >> >> -----Original Message----- >> From: dba-vb-bounces at databaseadvisors.com >> [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby >> Sent: 29 June 2009 16:53 >> To: Discussion concerning Visual Basic and related programming issues. >> Subject: [dba-VB] Syslogs >> >> Hmm... >> >> Looks quite cool. >> >> My mind is a raging torrent, flooded with rivulets of thought cascading > into >> a waterfall of creative >> alternatives. >> >> Now... how do we determine the IP address of every machine using an Access >> application on the local LAN? >> >> John W. Colby >> www.ColbyConsulting.com >> >> >> Susan Harkins wrote: >>> <http://www.devx.com:80/vb/Article/42242/0/page/1> >>> >>> I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so > >>> proud... yet another ones passes safely to single author status. :) >>> >>> Susan H. >>> >>> _______________________________________________ >>> dba-VB mailing list >>> dba-VB at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/dba-vb >>> http://www.databaseadvisors.com >>> >>> >> _______________________________________________ >> dba-VB mailing list >> dba-VB at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/dba-vb >> http://www.databaseadvisors.com >> >> _______________________________________________ >> dba-VB mailing list >> dba-VB at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/dba-vb >> http://www.databaseadvisors.com >> >> > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From max.wanadoo at gmail.com Mon Jun 29 12:30:26 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 29 Jun 2009 18:30:26 +0100 Subject: [dba-VB] Syslogs In-Reply-To: <sa491131.067@cactus.dk> References: <sa491131.067@cactus.dk> Message-ID: <4a48fa36.0a1ad00a.270f.343d@mx.google.com> Yes that cured it. I used the one included with the download. The demo form seems to work, but I don't receive any msg at localhost Get back to you on the others. Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 29 June 2009 18:08 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Syslogs Hi Max The paragraph on page 1, "The WinSock Control", is for you. You need both the license and the "compatibility". Thank you to MS and IE and the "Compatibility" flag. /gustav >>> max.wanadoo at gmail.com 29-06-2009 18:51 >>> Run it in A2007K and opened the Demo form to get this error: .Protocol = sckUDPProtocol Run time error 438 Object doesn't support this property or method. Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 29 June 2009 17:37 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Syslogs Hi Susan, Max et al This article: Create a Syslog Sender/Receiver Using the MS Winsock Control <quote> With the Microsoft WinSock Control and a few coding tricks, you can use Access as a high-performance syslog sender, receiver, and logger. </quote> _is_ in VBA! I have no idea why it was put in the VB section. In fact, given the current "discussion" on Access 2007, it is just about the only project I have made in Access 2007. I started out with this several years ago with Access 97 for fun, but when I recently got the chance to write and polish it up, I felt it had to be finished in A2007. If Steve is looking for "fans of the ribbon", don't count me in - I really looked for features or benefits of the ribbon but found none, sorry. /gustav >>> max.wanadoo at gmail.com 29-06-2009 18:14 >>> Gustav, does this work under Access VBA? Max -----Original Message----- Susan Harkins wrote: > <http://www.devx.com:80/vb/Article/42242/0/page/1> > > I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so > proud... yet another ones passes safely to single author status. :) > > Susan H. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Mon Jun 29 12:35:55 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 29 Jun 2009 13:35:55 -0400 Subject: [dba-VB] SPAM-LOW: Re: Syslogs In-Reply-To: <4a48f557.0707d00a.73ff.1dd1@mx.google.com> References: <4BB427CF4F6549BD96A293618675E1FE@SusanOne> <4A48E347.9090908@colbyconsulting.com> <4a48e982.1701d00a.388e.0b31@mx.google.com> <4A48EB8B.7090901@colbyconsulting.com> <4a48ed4e.0702d00a.3f5a.5e39@mx.google.com> <4A48F289.3040908@colbyconsulting.com> <4a48f557.0707d00a.73ff.1dd1@mx.google.com> Message-ID: <4A48FB7B.8030604@colbyconsulting.com> Max, I know all this. I write classes, and those classes can raise events. Events are much like this thing of Gustavs, a message is sent and if someone gets it fine. That is often useful As an example, I cache frequently used data in class instances, one per record from the table. It would be nice to have a message that is sent to everyone in the database if anyone modifies the data in the cached table. But I don't want to have to continuously poll a table looking for a message. If a message is sent saying that the cached data changes, then I rebuild the cache. That is the kind of thing that this code could possibly add to an application, HOWEVER... everyone has to know the IP address of everyone else that is in the database. I have been looking for this kind of messaging thing for YEARS. John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > Yes, you are correct. > > But your options are (assuming you are going with the access table method) > is: > > a. you can identity 1 or more individuals via the user table and/or see who > is logged in, or ALL. > b. you can determine the timer frequency to avoid the problems you describe. > c. you can change the timer frequency programmatically if you need to send a > FLASH message and then turn it back to "normal speed" after. > d. you don't need to know any IP addresses or indeed any LAN info at all. > e. It all happens within Access under your program control. > f. User can respond, forward, take action etc. > g. you can check your Outline Emails. > h. you can call up any Office (or other) app, Word, excel etc (you know all > this anyway) > z. oh, and anything else that Access is capable of...the world (access > world, that is) is your oyster (or lobster, if you follow Alan's youtube) > > > > Max > > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: 29 June 2009 17:58 > To: Discussion concerning Visual Basic and related programming issues. > Subject: Re: [dba-VB] Syslogs > > > What I am getting at is, why not just send it to everyone? Why > cherry-pick individuals? > > This is an attempt to avoid the timer. I hate timers, though I use them in > a server application. > In a user application they cause screen blinking and also cause compile > errors for the developer if > the timer tries to execute code while you are typing in code. > > If I know the IP address of every PC that has an application running, I can > send a message to just > those PCs. But I have to know their IP addresses. > > If you are going to communicate through a table then this kind of code is > unnecessary, but then a > timer has to poll for messages in the table. YUK. > > John W. Colby > www.ColbyConsulting.com > > > Max Wanadoo wrote: >> Hmmm, ok I will think about that...but when you say "..so that I can..." > do >> you mean your application or you as an individual? >> >> What I am getting at is, why not just send it to everyone? Why > cherry-pick >> individuals? >> >> EG; on one of my apps, I have, oh, all sorts of messages flying around, > but >> on each FE there is a timer running on the main menu and periodically it >> will go to see if there are any messages in the table which handles this >> sorta stuff. IF so, the user has a pop up with the option to Sleep for x >> mins (default to 15) before it reminds again. It will never go away until >> the user has read it, unless you (the originator) says it can time out. >> >> Sorta stuff...if you can get my drift. Don't need to send system > messages. >> It is handled with the app. >> >> Max >> >> >> >> -----Original Message----- >> From: dba-vb-bounces at databaseadvisors.com >> [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby >> Sent: 29 June 2009 17:28 >> To: Discussion concerning Visual Basic and related programming issues. >> Subject: Re: [dba-VB] Syslogs >> >> No, I want the Access workstations to log their IP address in a table as >> Access opens so that I can >> read who is available to send messages to. >> >> The limitation of this kind of code is that you have to know an IP > address. >> John W. Colby >> www.ColbyConsulting.com >> >> >> Max Wanadoo wrote: >>> Do you mean IP address without having to go to the other workstation. >>> >>> If you just want to know what the IP address is, use VNC or RealVNC then >> you >>> can just hover the mouse over the system tray icon and it will tell you >> the >>> ip address. >>> >>> Max >>> >>> >>> >>> -----Original Message----- >>> From: dba-vb-bounces at databaseadvisors.com >>> [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby >>> Sent: 29 June 2009 16:53 >>> To: Discussion concerning Visual Basic and related programming issues. >>> Subject: [dba-VB] Syslogs >>> >>> Hmm... >>> >>> Looks quite cool. >>> >>> My mind is a raging torrent, flooded with rivulets of thought cascading >> into >>> a waterfall of creative >>> alternatives. >>> >>> Now... how do we determine the IP address of every machine using an > Access >>> application on the local LAN? >>> >>> John W. Colby >>> www.ColbyConsulting.com >>> >>> >>> Susan Harkins wrote: >>>> <http://www.devx.com:80/vb/Article/42242/0/page/1> >>>> >>>> I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm > so >>>> proud... yet another ones passes safely to single author status. :) >>>> >>>> Susan H. >>>> >>>> _______________________________________________ >>>> dba-VB mailing list >>>> dba-VB at databaseadvisors.com >>>> http://databaseadvisors.com/mailman/listinfo/dba-vb >>>> http://www.databaseadvisors.com >>>> >>>> >>> _______________________________________________ >>> dba-VB mailing list >>> dba-VB at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/dba-vb >>> http://www.databaseadvisors.com >>> >>> _______________________________________________ >>> dba-VB mailing list >>> dba-VB at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/dba-vb >>> http://www.databaseadvisors.com >>> >>> >> _______________________________________________ >> dba-VB mailing list >> dba-VB at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/dba-vb >> http://www.databaseadvisors.com >> >> _______________________________________________ >> dba-VB mailing list >> dba-VB at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/dba-vb >> http://www.databaseadvisors.com >> >> > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From max.wanadoo at gmail.com Mon Jun 29 12:44:20 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 29 Jun 2009 18:44:20 +0100 Subject: [dba-VB] SPAM-LOW: Re: Syslogs In-Reply-To: <4A48FB7B.8030604@colbyconsulting.com> References: <4BB427CF4F6549BD96A293618675E1FE@SusanOne> <4A48E347.9090908@colbyconsulting.com> <4a48e982.1701d00a.388e.0b31@mx.google.com> <4A48EB8B.7090901@colbyconsulting.com> <4a48ed4e.0702d00a.3f5a.5e39@mx.google.com> <4A48F289.3040908@colbyconsulting.com> <4a48f557.0707d00a.73ff.1dd1@mx.google.com> <4A48FB7B.8030604@colbyconsulting.com> Message-ID: <4a48fd78.0508d00a.0641.ffff8f62@mx.google.com> Well, if you change your mind on the TIMER then you can take this route. I have been using it for 8 years now without any problem. I agree that it can be aggravating when typing code to have it "interrupt" but that is avoidable if you wanted. I will see what i can find out re identifying IP addresses. Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: 29 June 2009 18:36 To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] SPAM-LOW: Re: Syslogs Max, I know all this. I write classes, and those classes can raise events. Events are much like this thing of Gustavs, a message is sent and if someone gets it fine. That is often useful As an example, I cache frequently used data in class instances, one per record from the table. It would be nice to have a message that is sent to everyone in the database if anyone modifies the data in the cached table. But I don't want to have to continuously poll a table looking for a message. If a message is sent saying that the cached data changes, then I rebuild the cache. That is the kind of thing that this code could possibly add to an application, HOWEVER... everyone has to know the IP address of everyone else that is in the database. I have been looking for this kind of messaging thing for YEARS. John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > Yes, you are correct. > > But your options are (assuming you are going with the access table method) > is: > > a. you can identity 1 or more individuals via the user table and/or see who > is logged in, or ALL. > b. you can determine the timer frequency to avoid the problems you describe. > c. you can change the timer frequency programmatically if you need to send a > FLASH message and then turn it back to "normal speed" after. > d. you don't need to know any IP addresses or indeed any LAN info at all. > e. It all happens within Access under your program control. > f. User can respond, forward, take action etc. > g. you can check your Outline Emails. > h. you can call up any Office (or other) app, Word, excel etc (you know all > this anyway) > z. oh, and anything else that Access is capable of...the world (access > world, that is) is your oyster (or lobster, if you follow Alan's youtube) > > > > Max > > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: 29 June 2009 17:58 > To: Discussion concerning Visual Basic and related programming issues. > Subject: Re: [dba-VB] Syslogs > > > What I am getting at is, why not just send it to everyone? Why > cherry-pick individuals? > > This is an attempt to avoid the timer. I hate timers, though I use them in > a server application. > In a user application they cause screen blinking and also cause compile > errors for the developer if > the timer tries to execute code while you are typing in code. > > If I know the IP address of every PC that has an application running, I can > send a message to just > those PCs. But I have to know their IP addresses. > > If you are going to communicate through a table then this kind of code is > unnecessary, but then a > timer has to poll for messages in the table. YUK. > > John W. Colby > www.ColbyConsulting.com > > > Max Wanadoo wrote: >> Hmmm, ok I will think about that...but when you say "..so that I can..." > do >> you mean your application or you as an individual? >> >> What I am getting at is, why not just send it to everyone? Why > cherry-pick >> individuals? >> >> EG; on one of my apps, I have, oh, all sorts of messages flying around, > but >> on each FE there is a timer running on the main menu and periodically it >> will go to see if there are any messages in the table which handles this >> sorta stuff. IF so, the user has a pop up with the option to Sleep for x >> mins (default to 15) before it reminds again. It will never go away until >> the user has read it, unless you (the originator) says it can time out. >> >> Sorta stuff...if you can get my drift. Don't need to send system > messages. >> It is handled with the app. >> >> Max >> >> >> >> -----Original Message----- >> From: dba-vb-bounces at databaseadvisors.com >> [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby >> Sent: 29 June 2009 17:28 >> To: Discussion concerning Visual Basic and related programming issues. >> Subject: Re: [dba-VB] Syslogs >> >> No, I want the Access workstations to log their IP address in a table as >> Access opens so that I can >> read who is available to send messages to. >> >> The limitation of this kind of code is that you have to know an IP > address. >> John W. Colby >> www.ColbyConsulting.com >> >> >> Max Wanadoo wrote: >>> Do you mean IP address without having to go to the other workstation. >>> >>> If you just want to know what the IP address is, use VNC or RealVNC then >> you >>> can just hover the mouse over the system tray icon and it will tell you >> the >>> ip address. >>> >>> Max >>> >>> >>> >>> -----Original Message----- >>> From: dba-vb-bounces at databaseadvisors.com >>> [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby >>> Sent: 29 June 2009 16:53 >>> To: Discussion concerning Visual Basic and related programming issues. >>> Subject: [dba-VB] Syslogs >>> >>> Hmm... >>> >>> Looks quite cool. >>> >>> My mind is a raging torrent, flooded with rivulets of thought cascading >> into >>> a waterfall of creative >>> alternatives. >>> >>> Now... how do we determine the IP address of every machine using an > Access >>> application on the local LAN? >>> >>> John W. Colby >>> www.ColbyConsulting.com >>> >>> >>> Susan Harkins wrote: >>>> <http://www.devx.com:80/vb/Article/42242/0/page/1> >>>> >>>> I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm > so >>>> proud... yet another ones passes safely to single author status. :) >>>> >>>> Susan H. >>>> >>>> _______________________________________________ >>>> dba-VB mailing list >>>> dba-VB at databaseadvisors.com >>>> http://databaseadvisors.com/mailman/listinfo/dba-vb >>>> http://www.databaseadvisors.com >>>> >>>> >>> _______________________________________________ >>> dba-VB mailing list >>> dba-VB at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/dba-vb >>> http://www.databaseadvisors.com >>> >>> _______________________________________________ >>> dba-VB mailing list >>> dba-VB at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/dba-vb >>> http://www.databaseadvisors.com >>> >>> >> _______________________________________________ >> dba-VB mailing list >> dba-VB at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/dba-vb >> http://www.databaseadvisors.com >> >> _______________________________________________ >> dba-VB mailing list >> dba-VB at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/dba-vb >> http://www.databaseadvisors.com >> >> > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ 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 Jun 29 13:05:46 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 29 Jun 2009 14:05:46 -0400 Subject: [dba-VB] SPAM-LOW: Re: Syslogs In-Reply-To: <sa490e7e.066@cactus.dk> References: <sa490e7e.066@cactus.dk> Message-ID: <4A49027A.5000604@colbyconsulting.com> Gustav, As I mentioned, I have been looking for something like this for years, however everyone has to have a list of IPs that can be used with it to make it useful. I suppose I could kind of bootstrap this thing. The server address could be found by manual observation, then logged in a table along with the machine name. Each application FE instance looks and sends a message that it is logged in. The RECEIVER grabs the IP address and looks it up in the table. If not there it stores the IP in the table. Of course then the machine name has to be included in the message. I suppose that I could develop a message library, such that every time an application it fires a LOGIN message to everyone already in the table. The login message has a machine name as the data and apparently this widget automatically gets the IP address. My clients rarely have more than 25 or so workstations running the application so this shouldn't cause too much grief. Thus anyone listening logs the new person's data into the table if it isn't already there. Kind of crude but that allows any single running application (that you can manually get the IP for) to bootstrap the system and build the list of IPs and machine names. John W. Colby www.ColbyConsulting.com Gustav Brock wrote: > Hi John > > Well, you have to decide. If you wish to communicate, either the sender or the receiver has to identify itself. That drives anything on the Internet. > > And syslog is not broadcasting. If you wish to listen to any address on your local network or transmit to any address on the local network, you have to determine the address of your machine and the subnet mask and you can calculate all possible addresses. Note that network admins hate broadcasting applications as these are considered noisy. > If you wish to communicate in or out of your local network, again you must know "something" about the machine(s) out there and your router will take care of the rest (if it and the firewall allows). > > The reason Hamachi and the like works is because they initially use port 80 (which can be considered open on any office network) and an external proxy to establish communication - so sender and receiver can identify each other. Nothing black magic here. > > syslog is fun because it is so primitive. This makes it an universal tool with heavy limitations but with nearly zero use of resources. What has been missing is prebuilt methods to read and write the messages from/to a database - to make it useful for people like us. This is what and how the article describes. > > /gustav From jwcolby at colbyconsulting.com Mon Jun 29 13:11:06 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 29 Jun 2009 14:11:06 -0400 Subject: [dba-VB] Syslogs In-Reply-To: <4a48fa36.0a1ad00a.270f.343d@mx.google.com> References: <sa491131.067@cactus.dk> <4a48fa36.0a1ad00a.270f.343d@mx.google.com> Message-ID: <4A4903BA.3080406@colbyconsulting.com> Does this imply that the winsock control is not native to Access? John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > Yes that cured it. I used the one included with the download. > > The demo form seems to work, but I don't receive any msg at localhost > > Get back to you on the others. > > Max > > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: 29 June 2009 18:08 > To: dba-vb at databaseadvisors.com > Subject: Re: [dba-VB] Syslogs > > Hi Max > > The paragraph on page 1, "The WinSock Control", is for you. > You need both the license and the "compatibility". > > Thank you to MS and IE and the "Compatibility" flag. > > /gustav > > >>>> max.wanadoo at gmail.com 29-06-2009 18:51 >>> > Run it in A2007K and opened the Demo form to get this error: > > .Protocol = sckUDPProtocol > Run time error 438 > Object doesn't support this property or method. > > Max > > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: 29 June 2009 17:37 > To: dba-vb at databaseadvisors.com > Subject: Re: [dba-VB] Syslogs > > Hi Susan, Max et al > > This article: > > Create a Syslog Sender/Receiver Using the MS Winsock Control > > <quote> > With the Microsoft WinSock Control and a few coding tricks, you can use > Access as a high-performance syslog sender, receiver, and logger. > </quote> > > _is_ in VBA! I have no idea why it was put in the VB section. > > In fact, given the current "discussion" on Access 2007, it is just about the > only project I have made in Access 2007. > I started out with this several years ago with Access 97 for fun, but when I > recently got the chance to write and polish it up, I felt it had to be > finished in A2007. If Steve is looking for "fans of the ribbon", don't count > me in - I really looked for features or benefits of the ribbon but found > none, sorry. > > /gustav > > >>>> max.wanadoo at gmail.com 29-06-2009 18:14 >>> > Gustav, does this work under Access VBA? > > Max > > > -----Original Message----- > > Susan Harkins wrote: >> <http://www.devx.com:80/vb/Article/42242/0/page/1> >> >> I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so >> proud... yet another ones passes safely to single author status. :) >> >> Susan H. > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From max.wanadoo at gmail.com Mon Jun 29 13:16:51 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 29 Jun 2009 19:16:51 +0100 Subject: [dba-VB] Syslogs In-Reply-To: <4A4903BA.3080406@colbyconsulting.com> References: <sa491131.067@cactus.dk> <4a48fa36.0a1ad00a.270f.343d@mx.google.com> <4A4903BA.3080406@colbyconsulting.com> Message-ID: <4a490517.0506d00a.64c6.2364@mx.google.com> Hmmm, don't know..Gustav? It certainly required registering on my laptop with A2007K Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: 29 June 2009 19:11 To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Syslogs Does this imply that the winsock control is not native to Access? John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > Yes that cured it. I used the one included with the download. > > The demo form seems to work, but I don't receive any msg at localhost > > Get back to you on the others. > > Max > > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: 29 June 2009 18:08 > To: dba-vb at databaseadvisors.com > Subject: Re: [dba-VB] Syslogs > > Hi Max > > The paragraph on page 1, "The WinSock Control", is for you. > You need both the license and the "compatibility". > > Thank you to MS and IE and the "Compatibility" flag. > > /gustav > > >>>> max.wanadoo at gmail.com 29-06-2009 18:51 >>> > Run it in A2007K and opened the Demo form to get this error: > > .Protocol = sckUDPProtocol > Run time error 438 > Object doesn't support this property or method. > > Max > > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: 29 June 2009 17:37 > To: dba-vb at databaseadvisors.com > Subject: Re: [dba-VB] Syslogs > > Hi Susan, Max et al > > This article: > > Create a Syslog Sender/Receiver Using the MS Winsock Control > > <quote> > With the Microsoft WinSock Control and a few coding tricks, you can use > Access as a high-performance syslog sender, receiver, and logger. > </quote> > > _is_ in VBA! I have no idea why it was put in the VB section. > > In fact, given the current "discussion" on Access 2007, it is just about the > only project I have made in Access 2007. > I started out with this several years ago with Access 97 for fun, but when I > recently got the chance to write and polish it up, I felt it had to be > finished in A2007. If Steve is looking for "fans of the ribbon", don't count > me in - I really looked for features or benefits of the ribbon but found > none, sorry. > > /gustav > > >>>> max.wanadoo at gmail.com 29-06-2009 18:14 >>> > Gustav, does this work under Access VBA? > > Max > > > -----Original Message----- > > Susan Harkins wrote: >> <http://www.devx.com:80/vb/Article/42242/0/page/1> >> >> I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so >> proud... yet another ones passes safely to single author status. :) >> >> Susan H. > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From Gustav at cactus.dk Mon Jun 29 13:21:36 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 29 Jun 2009 20:21:36 +0200 Subject: [dba-VB] Syslogs Message-ID: <sa492274.073@cactus.dk> Hi John Join Max and read the article ... same paragraph. http://www.devx.com:80/vb/Article/42242/0/page/1 <quote> The actual transmission of syslog messages between your application and Windows is left to the WinSock Control, which came with Visual Basic 6 and some old versions of the Access Developer Tools. Further, you can download the control from several places, which include tools to correct a corrupted install. </quote> /gustav >>> jwcolby at colbyconsulting.com 29-06-2009 20:11 >>> Does this imply that the winsock control is not native to Access? John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > Yes that cured it. I used the one included with the download. > > The demo form seems to work, but I don't receive any msg at localhost > > Get back to you on the others. > > Max > > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: 29 June 2009 18:08 > To: dba-vb at databaseadvisors.com > Subject: Re: [dba-VB] Syslogs > > Hi Max > > The paragraph on page 1, "The WinSock Control", is for you. > You need both the license and the "compatibility". > > Thank you to MS and IE and the "Compatibility" flag. > > /gustav From shamil at smsconsulting.spb.ru Mon Jun 29 13:24:34 2009 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Mon, 29 Jun 2009 22:24:34 +0400 Subject: [dba-VB] SPAM-LOW: Re: Syslogs In-Reply-To: <4A49027A.5000604@colbyconsulting.com> References: <sa490e7e.066@cactus.dk> <4A49027A.5000604@colbyconsulting.com> Message-ID: <001001c9f8e6$dbc4e3d0$934eab70$@spb.ru> Hi John, What about Peer-To-Peer Networked Apps http://msdn.microsoft.com/en-us/magazine/cc301833.aspx ? Could that technology help to solve your task? - it doesn't need IP addresses known in advance... -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Monday, June 29, 2009 10:06 PM To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] SPAM-LOW: Re: Syslogs Gustav, As I mentioned, I have been looking for something like this for years, however everyone has to have a list of IPs that can be used with it to make it useful. I suppose I could kind of bootstrap this thing. The server address could be found by manual observation, then logged in a table along with the machine name. Each application FE instance looks and sends a message that it is logged in. The RECEIVER grabs the IP address and looks it up in the table. If not there it stores the IP in the table. Of course then the machine name has to be included in the message. I suppose that I could develop a message library, such that every time an application it fires a LOGIN message to everyone already in the table. The login message has a machine name as the data and apparently this widget automatically gets the IP address. My clients rarely have more than 25 or so workstations running the application so this shouldn't cause too much grief. Thus anyone listening logs the new person's data into the table if it isn't already there. Kind of crude but that allows any single running application (that you can manually get the IP for) to bootstrap the system and build the list of IPs and machine names. John W. Colby www.ColbyConsulting.com Gustav Brock wrote: > Hi John > > Well, you have to decide. If you wish to communicate, either the sender or the receiver has to identify itself. That drives anything on the Internet. > > And syslog is not broadcasting. If you wish to listen to any address on your local network or transmit to any address on the local network, you have to determine the address of your machine and the subnet mask and you can calculate all possible addresses. Note that network admins hate broadcasting applications as these are considered noisy. > If you wish to communicate in or out of your local network, again you must know "something" about the machine(s) out there and your router will take care of the rest (if it and the firewall allows). > > The reason Hamachi and the like works is because they initially use port 80 (which can be considered open on any office network) and an external proxy to establish communication - so sender and receiver can identify each other. Nothing black magic here. > > syslog is fun because it is so primitive. This makes it an universal tool with heavy limitations but with nearly zero use of resources. What has been missing is prebuilt methods to read and write the messages from/to a database - to make it useful for people like us. This is what and how the article describes. > > /gustav _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com __________ Information from ESET NOD32 Antivirus, version of virus signature database 4197 (20090629) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru __________ Information from ESET NOD32 Antivirus, version of virus signature database 4197 (20090629) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru From max.wanadoo at gmail.com Mon Jun 29 13:28:41 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 29 Jun 2009 19:28:41 +0100 Subject: [dba-VB] Syslogs In-Reply-To: <sa492274.073@cactus.dk> References: <sa492274.073@cactus.dk> Message-ID: <4a4907dc.1c07d00a.2f2c.1e5d@mx.google.com> So, John's question appears to have the answer "No, not to Access and not to Vista" It needs to be registered..am I correct? Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 29 June 2009 19:22 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Syslogs Hi John Join Max and read the article ... same paragraph. http://www.devx.com:80/vb/Article/42242/0/page/1 <quote> The actual transmission of syslog messages between your application and Windows is left to the WinSock Control, which came with Visual Basic 6 and some old versions of the Access Developer Tools. Further, you can download the control from several places, which include tools to correct a corrupted install. </quote> /gustav >>> jwcolby at colbyconsulting.com 29-06-2009 20:11 >>> Does this imply that the winsock control is not native to Access? John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > Yes that cured it. I used the one included with the download. > > The demo form seems to work, but I don't receive any msg at localhost > > Get back to you on the others. > > Max > > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: 29 June 2009 18:08 > To: dba-vb at databaseadvisors.com > Subject: Re: [dba-VB] Syslogs > > Hi Max > > The paragraph on page 1, "The WinSock Control", is for you. > You need both the license and the "compatibility". > > Thank you to MS and IE and the "Compatibility" flag. > > /gustav _______________________________________________ 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 Jun 29 13:34:34 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 29 Jun 2009 20:34:34 +0200 Subject: [dba-VB] Syslogs Message-ID: <sa492567.076@cactus.dk> Hi John As explained in the article on how to create a kind of confirmation system, you could set up a simple two-way system with a single syslog app broadcasting at low frequency "Here I am, and if you are an app from JC, record my address and report back". Your app, when running at the user, would pick up that message and send back a message for the syslog app to collect the addresses of currently running application copies. When a user signs off, after a time-out the syslog app realizes that this copy is off and removes it from the list. Thus, a current list of active applications can be maintained and they can communicate for whatever reason you decide. Note that communication between machines can really be done in many ways, it is just that syslog is an established standard for simple text messages of about 1K, and if that fits, why reinvent the wheel? /gustav >>> jwcolby at colbyconsulting.com 29-06-2009 20:05 >>> Gustav, As I mentioned, I have been looking for something like this for years, however everyone has to have a list of IPs that can be used with it to make it useful. I suppose I could kind of bootstrap this thing. The server address could be found by manual observation, then logged in a table along with the machine name. Each application FE instance looks and sends a message that it is logged in. The RECEIVER grabs the IP address and looks it up in the table. If not there it stores the IP in the table. Of course then the machine name has to be included in the message. I suppose that I could develop a message library, such that every time an application it fires a LOGIN message to everyone already in the table. The login message has a machine name as the data and apparently this widget automatically gets the IP address. My clients rarely have more than 25 or so workstations running the application so this shouldn't cause too much grief. Thus anyone listening logs the new person's data into the table if it isn't already there. Kind of crude but that allows any single running application (that you can manually get the IP for) to bootstrap the system and build the list of IPs and machine names. John W. Colby www.ColbyConsulting.com Gustav Brock wrote: > Hi John > > Well, you have to decide. If you wish to communicate, either the sender or the receiver has to identify itself. That drives anything on the Internet. > > And syslog is not broadcasting. If you wish to listen to any address on your local network or transmit to any address on the local network, you have to determine the address of your machine and the subnet mask and you can calculate all possible addresses. Note that network admins hate broadcasting applications as these are considered noisy. > If you wish to communicate in or out of your local network, again you must know "something" about the machine(s) out there and your router will take care of the rest (if it and the firewall allows). > > The reason Hamachi and the like works is because they initially use port 80 (which can be considered open on any office network) and an external proxy to establish communication - so sender and receiver can identify each other. Nothing black magic here. > > syslog is fun because it is so primitive. This makes it an universal tool with heavy limitations but with nearly zero use of resources. What has been missing is prebuilt methods to read and write the messages from/to a database - to make it useful for people like us. This is what and how the article describes. > > /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 Jun 29 13:41:03 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 29 Jun 2009 20:41:03 +0200 Subject: [dba-VB] Syslogs Message-ID: <sa4926ed.077@cactus.dk> Hi Max It is not native to Access as obtained in an Office suite, but as a developer having VB6 or the developer tools for Access (can't recall which version) you can distribute it freely with your application. If so, you will of course need some kind of installation routine as for any other OCX you wish to deploy. As mentioned, it is so widely spread that should you miss both VB6 or the developer tools for Access you can locate it for download several places. /gustav >>> max.wanadoo at gmail.com 29-06-2009 20:28 >>> So, John's question appears to have the answer "No, not to Access and not to Vista" It needs to be registered..am I correct? Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 29 June 2009 19:22 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Syslogs Hi John Join Max and read the article ... same paragraph. http://www.devx.com:80/vb/Article/42242/0/page/1 <quote> The actual transmission of syslog messages between your application and Windows is left to the WinSock Control, which came with Visual Basic 6 and some old versions of the Access Developer Tools. Further, you can download the control from several places, which include tools to correct a corrupted install. </quote> /gustav >>> jwcolby at colbyconsulting.com 29-06-2009 20:11 >>> Does this imply that the winsock control is not native to Access? John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > Yes that cured it. I used the one included with the download. > > The demo form seems to work, but I don't receive any msg at localhost > > Get back to you on the others. > > Max > > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: 29 June 2009 18:08 > To: dba-vb at databaseadvisors.com > Subject: Re: [dba-VB] Syslogs > > Hi Max > > The paragraph on page 1, "The WinSock Control", is for you. > You need both the license and the "compatibility". > > Thank you to MS and IE and the "Compatibility" flag. > > /gustav From max.wanadoo at gmail.com Mon Jun 29 13:45:00 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 29 Jun 2009 19:45:00 +0100 Subject: [dba-VB] Syslogs In-Reply-To: <sa4926ed.077@cactus.dk> References: <sa4926ed.077@cactus.dk> Message-ID: <4a490baf.1818d00a.3c7d.0281@mx.google.com> Thank you Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 29 June 2009 19:41 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Syslogs Hi Max It is not native to Access as obtained in an Office suite, but as a developer having VB6 or the developer tools for Access (can't recall which version) you can distribute it freely with your application. If so, you will of course need some kind of installation routine as for any other OCX you wish to deploy. As mentioned, it is so widely spread that should you miss both VB6 or the developer tools for Access you can locate it for download several places. /gustav >>> max.wanadoo at gmail.com 29-06-2009 20:28 >>> So, John's question appears to have the answer "No, not to Access and not to Vista" It needs to be registered..am I correct? Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 29 June 2009 19:22 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Syslogs Hi John Join Max and read the article ... same paragraph. http://www.devx.com:80/vb/Article/42242/0/page/1 <quote> The actual transmission of syslog messages between your application and Windows is left to the WinSock Control, which came with Visual Basic 6 and some old versions of the Access Developer Tools. Further, you can download the control from several places, which include tools to correct a corrupted install. </quote> /gustav >>> jwcolby at colbyconsulting.com 29-06-2009 20:11 >>> Does this imply that the winsock control is not native to Access? John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > Yes that cured it. I used the one included with the download. > > The demo form seems to work, but I don't receive any msg at localhost > > Get back to you on the others. > > Max > > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: 29 June 2009 18:08 > To: dba-vb at databaseadvisors.com > Subject: Re: [dba-VB] Syslogs > > Hi Max > > The paragraph on page 1, "The WinSock Control", is for you. > You need both the license and the "compatibility". > > Thank you to MS and IE and the "Compatibility" flag. > > /gustav _______________________________________________ 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 Jun 29 14:28:55 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 29 Jun 2009 15:28:55 -0400 Subject: [dba-VB] Syslogs In-Reply-To: <sa492274.073@cactus.dk> References: <sa492274.073@cactus.dk> Message-ID: <4A4915F7.8070202@colbyconsulting.com> Ahhhh.... John W. Colby www.ColbyConsulting.com Gustav Brock wrote: > Hi John > > Join Max and read the article ... same paragraph. > > http://www.devx.com:80/vb/Article/42242/0/page/1 > > <quote> > The actual transmission of syslog messages between your application and Windows is left to the WinSock Control, which came with Visual Basic 6 and some old versions of the Access Developer Tools. Further, you can download the control from several places, which include tools to correct a corrupted install. > </quote> > > /gustav > > >>>> jwcolby at colbyconsulting.com 29-06-2009 20:11 >>> > Does this imply that the winsock control is not native to Access? > > John W. Colby > www.ColbyConsulting.com > > > Max Wanadoo wrote: >> Yes that cured it. I used the one included with the download. >> >> The demo form seems to work, but I don't receive any msg at localhost >> >> Get back to you on the others. >> >> Max >> >> >> >> -----Original Message----- >> From: dba-vb-bounces at databaseadvisors.com >> [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock >> Sent: 29 June 2009 18:08 >> To: dba-vb at databaseadvisors.com >> Subject: Re: [dba-VB] Syslogs >> >> Hi Max >> >> The paragraph on page 1, "The WinSock Control", is for you. >> You need both the license and the "compatibility". >> >> Thank you to MS and IE and the "Compatibility" flag. >> >> /gustav > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From max.wanadoo at gmail.com Mon Jun 29 16:43:07 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 29 Jun 2009 22:43:07 +0100 Subject: [dba-VB] Ping IP In-Reply-To: <4A49027A.5000604@colbyconsulting.com> References: <sa490e7e.066@cactus.dk> <4A49027A.5000604@colbyconsulting.com> Message-ID: <4a49356f.1701d00a.11d7.2ecc@mx.google.com> John: Does this description sound what you need? Ping a range of IP numbers to find out what numbers are in use, or what numbers answer within the set time. Use it to find out what parts of your network are slower then others and maybe you even need to take a closer look at them. Adjustable time out, bytes to send, start and end node. Save the results of the sweep as csv and import them into a database. If so, go to http://www.freedownloadscenter.com/Network_and_Internet/Misc__Networking_Too ls/Ping_War.html Free as far as I can tell. Haven't used it. Max From stuart at lexacorp.com.pg Mon Jun 29 16:58:54 2009 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 30 Jun 2009 07:58:54 +1000 Subject: [dba-VB] Syslogs In-Reply-To: <4A48EDCB.50706@colbyconsulting.com> References: <sa490735.064@cactus.dk>, <4A48EDCB.50706@colbyconsulting.com> Message-ID: <4A49391E.21194.1853145A@stuart.lexacorp.com.pg> Here's a little VB/VBA class to handle Hostnames and IP Addresses. It works fine in Access (watch for line wrapping) clsResolve: Option Compare Database Option Explicit '// define constants Private Const IP_SUCCESS As Long = 0 Private Const SOCKET_ERROR As Long = -1 Private Const MAX_WSADescription As Long = 256 Private Const MAX_WSASYSStatus As Long = 128 Private Const MIN_SOCKETS_REQD As Long = 1 Private Const WS_VERSION_REQD As Long = &H101 Private Const WS_VERSION_MAJOR As Long = WS_VERSION_REQD \ &H100 And &HFF& Private Const WS_VERSION_MINOR As Long = WS_VERSION_REQD And &HFF& Private Const WSADescription_Len As Long = 256 Private Const WSASYS_Status_Len As Long = 128 Private Const AF_INET As Long = 2 '// structures Private Type HOSTENT hName As Long hAliases As Long hAddrType As Integer hLength As Integer hAddrList As Long End Type Private Type WSADATA wVersion As Integer wHighVersion As Integer szDescription(0 To MAX_WSADescription) As Byte szSystemStatus(0 To MAX_WSASYSStatus) As Byte wMaxSockets As Long wMaxUDPDG As Long dwVendorInfo As Long End Type '// api 'kernel32 Private Declare Sub apiCopyMemory Lib "kernel32" Alias "RtlMoveMemory" (xDest As Any, xSource As Any, ByVal nBytes As Long) Private Declare Function apiStrLen Lib "kernel32" Alias "lstrlenA" (lpString As Any) As Long 'wsock32 Private Declare Function apiGetHostByName Lib "wsock32.dll" Alias "gethostbyname" (ByVal hostname As String) As Long Private Declare Function apiWSAStartup Lib "wsock32.dll" Alias "WSAStartup" (ByVal wVersionRequired As Long, lpWSADATA As WSADATA) As Long Private Declare Function apiWSACleanup Lib "wsock32.dll" Alias "WSACleanup" () As Long Private Declare Function apiInetAddr Lib "wsock32.dll" Alias "inet_addr" (ByVal s As String) As Long Private Declare Function apiGetHostByAddr Lib "wsock32.dll" Alias "gethostbyaddr" (haddr As Long, ByVal hnlen As Long, ByVal addrtype As Long) As Long Private Declare Function apiGetHostName Lib "wsock32.dll" Alias "gethostname" (ByVal hostname$, ByVal HostLen As Integer) As Long '// private functions Private Function InitializeSocket() As Boolean Dim WSAD As WSADATA 'attempt to initialize the socket InitializeSocket = apiWSAStartup(WS_VERSION_REQD, WSAD) = IP_SUCCESS End Function Private Sub CloseSocket() 'try to close the socket If apiWSACleanup() <> 0 Then MsgBox "Error calling apiWSACleanup.", vbCritical End If End Sub Public Function GetIPFromHostName(ByVal sHostName As String) As String 'converts a host name to an IP address. Dim nBytes As Long Dim ptrHosent As Long Dim hstHost As HOSTENT Dim ptrName As Long Dim ptrAddress As Long Dim ptrIPAddress As Long Dim sAddress As String 'declare this as Dim sAddress(1) As String if you want 2 ip addresses returned 'try to initalize the socket If InitializeSocket() = True Then 'try to get the IP ptrHosent = apiGetHostByName(sHostName & vbNullChar) If ptrHosent <> 0 Then 'get the IP address apiCopyMemory hstHost, ByVal ptrHosent, LenB(hstHost) apiCopyMemory ptrIPAddress, ByVal hstHost.hAddrList, 4 'fill buffer sAddress = Space$(4) 'if you want multiple domains returned, 'fill all items in sAddress array with 4 spaces apiCopyMemory ByVal sAddress, ByVal ptrIPAddress, hstHost.hLength 'change this to 'CopyMemory ByVal sAddress(0), ByVal ptrIPAddress, hstHost.hLength 'if you want an array of ip addresses returned '(some domains have more than one ip address associated with it) 'get the IP address GetIPFromHostName = IPToText(sAddress) 'if you are using multiple addresses, you need IPToText(sAddress(0)) & "," & IPToText(sAddress(1)) 'etc End If Else MsgBox "Failed to open Socket." End If End Function Private Function IPToText(ByVal IPAddress As String) As String 'converts characters to numbers IPToText = CStr(Asc(IPAddress)) & "." & _ CStr(Asc(Mid$(IPAddress, 2, 1))) & "." & _ CStr(Asc(Mid$(IPAddress, 3, 1))) & "." & _ CStr(Asc(Mid$(IPAddress, 4, 1))) End Function Public Function GetHostNameFromIP(ByVal sIPAddress As String) As String Dim ptrHosent As Long Dim hAddress As Long Dim sHost As String Dim nBytes As Long 'try to open the socket If InitializeSocket() = True Then 'convert string address to long datatype hAddress = apiInetAddr(sIPAddress) 'check if an error ocucred If hAddress <> SOCKET_ERROR Then 'obtain a pointer to the HOSTENT structure 'that contains the name and address 'corresponding to the given network address. ptrHosent = apiGetHostByAddr(hAddress, 4, AF_INET) If ptrHosent <> 0 Then 'convert address and 'get resolved hostname apiCopyMemory ptrHosent, ByVal ptrHosent, 4 nBytes = apiStrLen(ByVal ptrHosent) If nBytes > 0 Then 'fill the IP address buffer sHost = Space$(nBytes) apiCopyMemory ByVal sHost, ByVal ptrHosent, nBytes GetHostNameFromIP = sHost End If Else MsgBox "Call to gethostbyaddr failed." End If 'close the socket CloseSocket Else MsgBox "Invalid IP address" End If Else MsgBox "Failed to open Socket" End If End Function Public Function GetMyHostName() As String 'Finds local HostName Dim strHostname As String Dim lngHostLen As Long 'try to initalize the socket If InitializeSocket() = True Then lngHostLen = 256 strHostname = Space$(lngHostLen) If apiGetHostName(strHostname, lngHostLen) = SOCKET_ERROR Then MsgBox "Windows Sockets error getting Host Name" Else strHostname = Trim$(strHostname) strHostname = Left$(strHostname, Len(strHostname) - 1) End If Else MsgBox "Failed to open Socket." End If GetMyHostName = strHostname End Function Public Function GetMyIPAddress() As String GetMyIPAddress = GetIPFromHostName(GetMyHostName) End Function Cheers, Stuart On 29 Jun 2009 at 12:37, jwcolby wrote: > LOL, but you still have to know your own IP address. We got into this one time, with Hamachi, VMs, > multiple NICS etc. it is difficult to determine what my own IP address is. > > John W. Colby > www.ColbyConsulting.com > > > Gustav Brock wrote: > > Hi John > > > > Ask the application to send you a syslog message! > > Then you can read the sender address or hostname. > > > > /gustav > > > > > >>>> jwcolby at colbyconsulting.com 29-06-2009 17:52 >>> > > Hmm... > > > > Looks quite cool. > > > > My mind is a raging torrent, flooded with rivulets of thought cascading into a waterfall of creative > > alternatives. > > > > Now... how do we determine the IP address of every machine using an Access application on the local LAN? > > > > John W. Colby > > www.ColbyConsulting.com > > > > > > Susan Harkins wrote: > >> <http://www.devx.com:80/vb/Article/42242/0/page/1> > >> > >> I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so > >> proud... yet another ones passes safely to single author status. :) > >> > >> Susan H. > > > > > > > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From stuart at lexacorp.com.pg Mon Jun 29 17:03:15 2009 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 30 Jun 2009 08:03:15 +1000 Subject: [dba-VB] Syslogs In-Reply-To: <4a4907dc.1c07d00a.2f2c.1e5d@mx.google.com> References: <sa492274.073@cactus.dk>, <4a4907dc.1c07d00a.2f2c.1e5d@mx.google.com> Message-ID: <4A493A23.19773.18570D48@stuart.lexacorp.com.pg> The Winsock control is a ActiveX interface to the system Winsock.dll and needs to be installed/registered on each machiine. That's why I never use the Winsock control, I use API calls instead - that way it just works without needing to instal anything. See the Class I've just posted for example. -- Stuart On 29 Jun 2009 at 19:28, Max Wanadoo wrote: > So, John's question appears to have the answer "No, not to Access and not to > Vista" > > It needs to be registered..am I correct? > > Max > > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: 29 June 2009 19:22 > To: dba-vb at databaseadvisors.com > Subject: Re: [dba-VB] Syslogs > > Hi John > > Join Max and read the article ... same paragraph. > > http://www.devx.com:80/vb/Article/42242/0/page/1 > > <quote> > The actual transmission of syslog messages between your application and > Windows is left to the WinSock Control, which came with Visual Basic 6 and > some old versions of the Access Developer Tools. Further, you can download > the control from several places, which include tools to correct a corrupted > install. > </quote> > > /gustav > > > >>> jwcolby at colbyconsulting.com 29-06-2009 20:11 >>> > Does this imply that the winsock control is not native to Access? > > John W. Colby > www.ColbyConsulting.com > > > Max Wanadoo wrote: > > Yes that cured it. I used the one included with the download. > > > > The demo form seems to work, but I don't receive any msg at localhost > > > > Get back to you on the others. > > > > Max > > > > > > > > -----Original Message----- > > From: dba-vb-bounces at databaseadvisors.com > > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > > Sent: 29 June 2009 18:08 > > To: dba-vb at databaseadvisors.com > > Subject: Re: [dba-VB] Syslogs > > > > Hi Max > > > > The paragraph on page 1, "The WinSock Control", is for you. > > You need both the license and the "compatibility". > > > > Thank you to MS and IE and the "Compatibility" flag. > > > > /gustav > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From max.wanadoo at gmail.com Tue Jun 30 03:36:28 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Tue, 30 Jun 2009 09:36:28 +0100 Subject: [dba-VB] Syslogs In-Reply-To: <cda8f54e0906300130p4a19b7f0gc99adb2cffc9e84d@mail.gmail.com> References: <sa490735.064@cactus.dk> <4A48EDCB.50706@colbyconsulting.com> <4A49391E.21194.1853145A@stuart.lexacorp.com.pg> <cda8f54e0906300130p4a19b7f0gc99adb2cffc9e84d@mail.gmail.com> Message-ID: <cda8f54e0906300136m7d729aaave8e5e09ae501a0a@mail.gmail.com> On Tue, Jun 30, 2009 at 9:30 AM, Max Wanadoo <max.wanadoo at gmail.com> wrote: > Stuart, > That works brilliantly on my system. > Thanks > Max > ps reposted because the previous reply bombed out with regard to size. > > > On Mon, Jun 29, 2009 at 10:58 PM, Stuart McLachlan <stuart at lexacorp.com.pg > > wrote: > >> Here's a little VB/VBA class to handle Hostnames and IP Addresses. >> It works fine in Access >> > From Gustav at cactus.dk Tue Jun 30 06:50:55 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 30 Jun 2009 13:50:55 +0200 Subject: [dba-VB] Syslogs Message-ID: <sa4a1857.085@cactus.dk> Hi John (and Max) If you download the code, a whole module is for resolving IP address and hostname. Nothing rocket science but refined for the purpose. It even features a static collection inspired by your sales talk on collections. The key function is this: <code> Private Function GetIPFromHostName( _ ByVal strHostname As String) _ As String ' Converts a host name to its IP address. ' ' If strHostname ' - is zero length, local IP address is returned. ' - is "localhost", IP address 127.0.0.1 is returned. ' - cannot be resolved, unknown IP address 0.0.0.0 is returned. Const clngAddressNone As Long = 0 ' The Address is offset 12 bytes from the ' start of the HOSENT structure. Const clngAddressOffset As Long = 12 ' Size of address part. Const clngAddressChunk As Long = 4 ' Address to return if none found. Const cstrAddressZero As String = "0.0.0.0" ' Address of HOSENT structure. Dim ptrHosent As Long ' Address of name pointer. Dim ptrName As Long ' Address of address pointer. Dim ptrAddress As Long Dim ptrIPAddress As Long Dim ptrIPAddress2 As Long Dim stzHostName As String Dim strAddress As String stzHostName = strHostname & vbNullChar ptrHosent = GetHostByName(stzHostName) If ptrHosent = clngAddressNone Then ' Return address zero. strAddress = cstrAddressZero Else ' Assign pointer addresses and offset Null-terminated list ' of addresses for the host. ' Note: ' We are retrieving only the first address returned. ' To return more than one, define strAddress as a string array ' and loop through the 4-byte ptrIPAddress members returned. ' The last item is a terminating null. ' All addresses are returned in network byte order. ptrAddress = ptrHosent + clngAddressOffset ' Get the IP address. CopyMemory ptrAddress, ByVal ptrAddress, clngAddressChunk CopyMemory ptrIPAddress, ByVal ptrAddress, clngAddressChunk CopyMemory ptrIPAddress2, ByVal ptrIPAddress, clngAddressChunk strAddress = GetInetStrFromPtr(ptrIPAddress2) End If GetIPFromHostName = strAddress End Function </code> Problem is that you may have more than one adapter. As stated, this function lists only one which typically is the NIC for your LAN. Another function reads this out: <code> Public Function MachineHostAddress( _ Optional ByVal strHostname As String) _ As String ' Retrieves IP address of the machine with the host name ' strHostname. ' If a zero length host name or no host name is passed, the ' address of this machine is returned. ' If host name localhost is passed, 127.0.0.1 is returned. ' If the host name cannot be resolved, 0.0.0.0 is returned. ' ' The host addresses are preserved in a static collection to ' reduce look up time for repeated calls. ' If strHostname is an empty string, the local host address ' will be looked up. ' However, an empty string cannot be a key in a collection. ' Use this key to store the local host address. Const cstrKeyThisHost As String = " " Static colAddress As New Collection Dim strIpAddress As String ' Ignore error when looking up a key in collection ' colAddress that does not exist. On Error Resume Next If Len(strHostname) = 0 Then strHostname = cstrKeyThisHost End If strIpAddress = colAddress.Item(strHostname) ' If strHostname is not found, an error is raised. If Err.Number <> 0 Then ' This host name has not been looked up previously. If WinSocketsStart() = True Then ' Obtain the host address. ' Trim strHostname to pass a zero length string when ' looking up the address of the local host. strIpAddress = GetIPFromHostName(Trim(strHostname)) ' Store the host address. colAddress.Add strIpAddress, strHostname Call WinSocketsClean End If End If MachineHostAddress = strIpAddress End Function </code> For the helper functions, download the full code. However, no function is included to reveal the subnet mask. The only "human" method I can locate for this purpose is to look up the registry: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces Browse these for the key DhcpIPAddress - or, if this is not found, IPAddress - to locate the interface that matches the IP address you retrieved. When matched, look up the key DhcpSubnetMask - or SubnetMask - to obtain the current subnet mask. Armed with this - your IP address and subnet mask - you can easily calculate the list of possible IP address on the current LAN. /gustav >>> Gustav at cactus.dk 29-06-2009 20:34 >>> Hi John As explained in the article on how to create a kind of confirmation system, you could set up a simple two-way system with a single syslog app broadcasting at low frequency "Here I am, and if you are an app from JC, record my address and report back". Your app, when running at the user, would pick up that message and send back a message for the syslog app to collect the addresses of currently running application copies. When a user signs off, after a time-out the syslog app realizes that this copy is off and removes it from the list. Thus, a current list of active applications can be maintained and they can communicate for whatever reason you decide. Note that communication between machines can really be done in many ways, it is just that syslog is an established standard for simple text messages of about 1K, and if that fits, why reinvent the wheel? /gustav >>> jwcolby at colbyconsulting.com 29-06-2009 20:05 >>> Gustav, As I mentioned, I have been looking for something like this for years, however everyone has to have a list of IPs that can be used with it to make it useful. I suppose I could kind of bootstrap this thing. The server address could be found by manual observation, then logged in a table along with the machine name. Each application FE instance looks and sends a message that it is logged in. The RECEIVER grabs the IP address and looks it up in the table. If not there it stores the IP in the table. Of course then the machine name has to be included in the message. I suppose that I could develop a message library, such that every time an application it fires a LOGIN message to everyone already in the table. The login message has a machine name as the data and apparently this widget automatically gets the IP address. My clients rarely have more than 25 or so workstations running the application so this shouldn't cause too much grief. Thus anyone listening logs the new person's data into the table if it isn't already there. Kind of crude but that allows any single running application (that you can manually get the IP for) to bootstrap the system and build the list of IPs and machine names. John W. Colby www.ColbyConsulting.com From jwcolby at colbyconsulting.com Tue Jun 30 06:59:11 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 30 Jun 2009 07:59:11 -0400 Subject: [dba-VB] SPAM-LOW: Re: Syslogs In-Reply-To: <sa4a1857.085@cactus.dk> References: <sa4a1857.085@cactus.dk> Message-ID: <4A49FE0F.9060806@colbyconsulting.com> ROTFL. Me? SALES? Bite your tongue you scalliwag. John W. Colby www.ColbyConsulting.com Gustav Brock wrote: > Hi John (and Max) > > If you download the code, a whole module is for resolving IP address and hostname. Nothing rocket science but refined for the purpose. > It even features a static collection inspired by your sales talk on collections. > > The key function is this: > > <code> > Private Function GetIPFromHostName( _ > ByVal strHostname As String) _ > As String > > ' Converts a host name to its IP address. > ' > ' If strHostname > ' - is zero length, local IP address is returned. > ' - is "localhost", IP address 127.0.0.1 is returned. > ' - cannot be resolved, unknown IP address 0.0.0.0 is returned. > > Const clngAddressNone As Long = 0 > ' The Address is offset 12 bytes from the > ' start of the HOSENT structure. > Const clngAddressOffset As Long = 12 > ' Size of address part. > Const clngAddressChunk As Long = 4 > ' Address to return if none found. > Const cstrAddressZero As String = "0.0.0.0" > > ' Address of HOSENT structure. > Dim ptrHosent As Long > ' Address of name pointer. > Dim ptrName As Long > ' Address of address pointer. > Dim ptrAddress As Long > Dim ptrIPAddress As Long > Dim ptrIPAddress2 As Long > Dim stzHostName As String > Dim strAddress As String > > stzHostName = strHostname & vbNullChar > ptrHosent = GetHostByName(stzHostName) > > If ptrHosent = clngAddressNone Then > ' Return address zero. > strAddress = cstrAddressZero > Else > ' Assign pointer addresses and offset Null-terminated list > ' of addresses for the host. > ' Note: > ' We are retrieving only the first address returned. > ' To return more than one, define strAddress as a string array > ' and loop through the 4-byte ptrIPAddress members returned. > ' The last item is a terminating null. > ' All addresses are returned in network byte order. > ptrAddress = ptrHosent + clngAddressOffset > > ' Get the IP address. > CopyMemory ptrAddress, ByVal ptrAddress, clngAddressChunk > CopyMemory ptrIPAddress, ByVal ptrAddress, clngAddressChunk > CopyMemory ptrIPAddress2, ByVal ptrIPAddress, clngAddressChunk > > strAddress = GetInetStrFromPtr(ptrIPAddress2) > End If > > GetIPFromHostName = strAddress > > End Function > </code> > > Problem is that you may have more than one adapter. As stated, this function lists only one which typically is the NIC for your LAN. > Another function reads this out: > > <code> > Public Function MachineHostAddress( _ > Optional ByVal strHostname As String) _ > As String > > ' Retrieves IP address of the machine with the host name > ' strHostname. > ' If a zero length host name or no host name is passed, the > ' address of this machine is returned. > ' If host name localhost is passed, 127.0.0.1 is returned. > ' If the host name cannot be resolved, 0.0.0.0 is returned. > ' > ' The host addresses are preserved in a static collection to > ' reduce look up time for repeated calls. > > ' If strHostname is an empty string, the local host address > ' will be looked up. > ' However, an empty string cannot be a key in a collection. > ' Use this key to store the local host address. > Const cstrKeyThisHost As String = " " > > Static colAddress As New Collection > > Dim strIpAddress As String > > ' Ignore error when looking up a key in collection > ' colAddress that does not exist. > On Error Resume Next > > If Len(strHostname) = 0 Then > strHostname = cstrKeyThisHost > End If > strIpAddress = colAddress.Item(strHostname) > ' If strHostname is not found, an error is raised. > If Err.Number <> 0 Then > ' This host name has not been looked up previously. > If WinSocketsStart() = True Then > ' Obtain the host address. > ' Trim strHostname to pass a zero length string when > ' looking up the address of the local host. > strIpAddress = GetIPFromHostName(Trim(strHostname)) > ' Store the host address. > colAddress.Add strIpAddress, strHostname > > Call WinSocketsClean > End If > End If > > MachineHostAddress = strIpAddress > > End Function > </code> > > For the helper functions, download the full code. > > However, no function is included to reveal the subnet mask. The only "human" method I can locate for this purpose is to look up the registry: > > HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces > > Browse these for the key DhcpIPAddress - or, if this is not found, IPAddress - to locate the interface that matches the IP address you retrieved. > When matched, look up the key DhcpSubnetMask - or SubnetMask - to obtain the current subnet mask. > > Armed with this - your IP address and subnet mask - you can easily calculate the list of possible IP address on the current LAN. > > /gustav > > >>>> Gustav at cactus.dk 29-06-2009 20:34 >>> > Hi John > > As explained in the article on how to create a kind of confirmation system, you could set up a simple two-way system with a single syslog app broadcasting at low frequency "Here I am, and if you are an app from JC, record my address and report back". Your app, when running at the user, would pick up that message and send back a message for the syslog app to collect the addresses of currently running application copies. When a user signs off, after a time-out the syslog app realizes that this copy is off and removes it from the list. Thus, a current list of active applications can be maintained and they can communicate for whatever reason you decide. > > Note that communication between machines can really be done in many ways, it is just that syslog is an established standard for simple text messages of about 1K, and if that fits, why reinvent the wheel? > > /gustav > > >>>> jwcolby at colbyconsulting.com 29-06-2009 20:05 >>> > Gustav, > > As I mentioned, I have been looking for something like this for years, however everyone has to have > a list of IPs that can be used with it to make it useful. > > I suppose I could kind of bootstrap this thing. The server address could be found by manual > observation, then logged in a table along with the machine name. Each application FE instance looks > and sends a message that it is logged in. The RECEIVER grabs the IP address and looks it up in the > table. If not there it stores the IP in the table. Of course then the machine name has to be > included in the message. > > I suppose that I could develop a message library, such that every time an application it fires a > LOGIN message to everyone already in the table. The login message has a machine name as the data > and apparently this widget automatically gets the IP address. My clients rarely have more than 25 > or so workstations running the application so this shouldn't cause too much grief. Thus anyone > listening logs the new person's data into the table if it isn't already there. > > Kind of crude but that allows any single running application (that you can manually get the IP for) > to bootstrap the system and build the list of IPs and machine names. > > John W. Colby > www.ColbyConsulting.com > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From stuart at lexacorp.com.pg Tue Jun 30 08:02:07 2009 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 30 Jun 2009 23:02:07 +1000 Subject: [dba-VB] Syslogs In-Reply-To: <sa4a1857.085@cactus.dk> References: <sa4a1857.085@cactus.dk> Message-ID: <4A4A0CCF.5521.1B8DFD71@stuart.lexacorp.com.pg> On 30 Jun 2009 at 13:50, Gustav Brock wrote: > However, no function is included to reveal the subnet mask. The only "human" method I >can locate for this purpose is to look up the registry: I just found another API call which returns more info including the SubNet mask(s) so I've modified clsResolve to include GetMyIPMask: Option Compare Database Option Explicit '// define constants Private Const IP_SUCCESS As Long = 0 Private Const SOCKET_ERROR As Long = -1 Private Const MAX_WSADescription As Long = 256 Private Const MAX_WSASYSStatus As Long = 128 Private Const MIN_SOCKETS_REQD As Long = 1 Private Const WS_VERSION_REQD As Long = &H101 Private Const WS_VERSION_MAJOR As Long = WS_VERSION_REQD \ &H100 And &HFF& Private Const WS_VERSION_MINOR As Long = WS_VERSION_REQD And &HFF& Private Const WSADescription_Len As Long = 256 Private Const WSASYS_Status_Len As Long = 128 Private Const AF_INET As Long = 2 '// structures Private Type HOSTENT hName As Long hAliases As Long hAddrType As Integer hLength As Integer hAddrList As Long End Type Private Type WSADATA wVersion As Integer wHighVersion As Integer szDescription(0 To MAX_WSADescription) As Byte szSystemStatus(0 To MAX_WSASYSStatus) As Byte wMaxSockets As Long wMaxUDPDG As Long dwVendorInfo As Long End Type Private Type IPINFO dwAddr As Long ' IP address dwIndex As Long ' interface index dwMask As Long ' subnet mask dwBCastAddr As Long ' broadcast address dwReasmSize As Long ' assembly size unused1 As Integer ' not currently used unused2 As Integer '; not currently used End Type Private Type MIB_IPADDRTABLE dEntrys As Long 'number of entries in the table mIPInfo(5) As IPINFO 'array of IP address entries assumes maximum of 5 Interfaces End Type Private Type IP_Array mBuffer As MIB_IPADDRTABLE BufferLen As Long End Type '// api 'kernel32 Private Declare Sub apiCopyMemory Lib "kernel32" Alias "RtlMoveMemory" (xDest As Any, xSource As Any, ByVal nBytes As Long) Private Declare Function apiStrLen Lib "kernel32" Alias "lstrlenA" (lpString As Any) As Long 'wsock32 Private Declare Function apiGetHostByName Lib "wsock32.dll" Alias "gethostbyname" (ByVal hostname As String) As Long Private Declare Function apiWSAStartup Lib "wsock32.dll" Alias "WSAStartup" (ByVal wVersionRequired As Long, lpWSADATA As WSADATA) As Long Private Declare Function apiWSACleanup Lib "wsock32.dll" Alias "WSACleanup" () As Long Private Declare Function apiInetAddr Lib "wsock32.dll" Alias "inet_addr" (ByVal s As String) As Long Private Declare Function apiGetHostByAddr Lib "wsock32.dll" Alias "gethostbyaddr" (haddr As Long, ByVal hnlen As Long, ByVal addrtype As Long) As Long Private Declare Function apiGetHostName Lib "wsock32.dll" Alias "gethostname" (ByVal hostname$, ByVal HostLen As Integer) As Long 'IPHlpAPI Private Declare Function GetIpAddrTable Lib "IPHlpApi" (pIPAdrTable As Byte, pdwSize As Long, ByVal Sort As Long) As Long '// private functions Private Function InitializeSocket() As Boolean Dim WSAD As WSADATA 'attempt to initialize the socket InitializeSocket = apiWSAStartup(WS_VERSION_REQD, WSAD) = IP_SUCCESS End Function Private Sub CloseSocket() 'try to close the socket If apiWSACleanup() <> 0 Then MsgBox "Error calling apiWSACleanup.", vbCritical End If End Sub Public Function GetIPFromHostName(ByVal sHostName As String) As String 'converts a host name to an IP address. Dim nBytes As Long Dim ptrHosent As Long Dim hstHost As HOSTENT Dim ptrName As Long Dim ptrAddress As Long Dim ptrIPAddress As Long Dim sAddress As String 'declare this as Dim sAddress(1) As String if you want 2 ip addresses returned 'try to initalize the socket If InitializeSocket() = True Then 'try to get the IP ptrHosent = apiGetHostByName(sHostName & vbNullChar) If ptrHosent <> 0 Then 'get the IP address apiCopyMemory hstHost, ByVal ptrHosent, LenB(hstHost) apiCopyMemory ptrIPAddress, ByVal hstHost.hAddrList, 4 'fill buffer sAddress = Space$(4) 'if you want multiple domains returned, 'fill all items in sAddress array with 4 spaces apiCopyMemory ByVal sAddress, ByVal ptrIPAddress, hstHost.hLength 'change this to 'CopyMemory ByVal sAddress(0), ByVal ptrIPAddress, hstHost.hLength 'if you want an array of ip addresses returned '(some domains have more than one ip address associated with it) 'get the IP address GetIPFromHostName = IPToText(sAddress) 'if you are using multiple addresses, you need IPToText(sAddress(0)) & "," & IPToText(sAddress(1)) 'etc End If Else MsgBox "Failed to open Socket." End If End Function Private Function IPToText(ByVal IPAddress As String) As String 'converts characters to numbers IPToText = CStr(Asc(IPAddress)) & "." & _ CStr(Asc(Mid$(IPAddress, 2, 1))) & "." & _ CStr(Asc(Mid$(IPAddress, 3, 1))) & "." & _ CStr(Asc(Mid$(IPAddress, 4, 1))) End Function Private Function ConvertAddressToString(longAddr As Long) As String Dim myByte(3) As Byte Dim Cnt As Long CopyMemory myByte(0), longAddr, 4 For Cnt = 0 To 3 ConvertAddressToString = ConvertAddressToString + CStr(myByte(Cnt)) + "." Next Cnt ConvertAddressToString = Left$(ConvertAddressToString, Len(ConvertAddressToString) - 1) End Function Public Function GetHostNameFromIP(ByVal sIPAddress As String) As String Dim ptrHosent As Long Dim hAddress As Long Dim sHost As String Dim nBytes As Long 'try to open the socket If InitializeSocket() = True Then 'convert string address to long datatype hAddress = apiInetAddr(sIPAddress) 'check if an error ocucred If hAddress <> SOCKET_ERROR Then 'obtain a pointer to the HOSTENT structure 'that contains the name and address 'corresponding to the given network address. ptrHosent = apiGetHostByAddr(hAddress, 4, AF_INET) If ptrHosent <> 0 Then 'convert address and 'get resolved hostname apiCopyMemory ptrHosent, ByVal ptrHosent, 4 nBytes = apiStrLen(ByVal ptrHosent) If nBytes > 0 Then 'fill the IP address buffer sHost = Space$(nBytes) apiCopyMemory ByVal sHost, ByVal ptrHosent, nBytes GetHostNameFromIP = sHost End If Else MsgBox "Call to gethostbyaddr failed." End If 'close the socket CloseSocket Else MsgBox "Invalid IP address" End If Else MsgBox "Failed to open Socket" End If End Function Public Function GetMyHostName() As String 'Finds local HostName Dim strHostname As String Dim lngHostLen As Long 'try to initalize the socket If InitializeSocket() = True Then lngHostLen = 256 strHostname = Space$(lngHostLen) If apiGetHostName(strHostname, lngHostLen) = SOCKET_ERROR Then MsgBox "Windows Sockets error getting Host Name" Else strHostname = Trim$(strHostname) strHostname = Left$(strHostname, Len(strHostname) - 1) End If Else MsgBox "Failed to open Socket." End If GetMyHostName = strHostname End Function Public Function GetMyIPAddress() As String GetMyIPAddress = GetIPFromHostName(GetMyHostName) End Function Public Function GetMyIPMask() Dim Ret As Long Dim bBytes() As Byte Dim tel As Long Dim Listing As MIB_IPADDRTABLE On Error GoTo END1 GetIpAddrTable ByVal 0&, Ret, True If Ret <= 0 Then Exit Function ReDim bBytes(0 To Ret - 1) As Byte 'retrieve the data GetIpAddrTable bBytes(0), Ret, False 'Get the first 4 bytes to get the entry's.. ip installed CopyMemory Listing.dEntrys, bBytes(0), 4 'Copy whole structure to Listing and return for Adapter 1 (Adapter 0 = Loopback) CopyMemory Listing.mIPInfo(1), bBytes(4 + (Len(Listing.mIPInfo(0)))), Len(Listing.mIPInfo(1)) GetIPMask = ConvertAddressToString(Listing.mIPInfo(1).dwMask) Exit Function END1: MsgBox "Error Resolving Subnet Mask" End Function From DWUTKA at Marlow.com Tue Jun 30 11:28:48 2009 From: DWUTKA at Marlow.com (Drew Wutka) Date: Tue, 30 Jun 2009 11:28:48 -0500 Subject: [dba-VB] Syslogs In-Reply-To: <4A48EDCB.50706@colbyconsulting.com> References: <sa490735.064@cactus.dk> <4A48EDCB.50706@colbyconsulting.com> Message-ID: <A5615CBECEC42E4791D7A7C724E1E9B2024478C6@MIEXCH.Marlow.ii-vi.net> There are several ways to get your IP address. Two I've used is to use a Winsock control, and look at the local host IP. Another relatively easy way is to dump the results of IPCONFIG to a text file. Create a .bat file (call it iptest.bat) and put the following line in it: Ipconfig >C:\ip.txt Then using ShellWait (http://mvps.org/access/api/api0004.htm) Use this function: Function IPAddresses() As String Dim f As Long Dim strTemp As String Dim strArray() As String If Dir("C:\ip.txt") <> "" Then Kill "C:\ip.txt" ShellWait "C:\iptest.bat" f = FreeFile Open "C:\ip.txt" For Binary Access Read As f strTemp = Space(LOF(f)) Get f, , strTemp Close f strArray = Split(strTemp, vbCrLf) strTemp = "" For f = 0 To UBound(strArray) If InStr(1, strArray(f), "IPv4", vbTextCompare) > 0 Or InStr(1, strArray(f), " IP Address", vbTextCompare) > 0 Then strTemp = strTemp & Trim(Mid(strArray(f), InStr(1, strArray(f), ":", vbBinaryCompare) + 1)) & ";" End If Next f If Len(strTemp) > 0 Then strTemp = Left(strTemp, Len(strTemp) - 1) IPAddresses = strTemp End Function Whalla, IPAddresses will return as a semicolon delimited string. (Obviously you could return an array or create a collection too...either way....) Drew -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Monday, June 29, 2009 11:38 AM To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Syslogs LOL, but you still have to know your own IP address. We got into this one time, with Hamachi, VMs, multiple NICS etc. it is difficult to determine what my own IP address is. John W. Colby www.ColbyConsulting.com Gustav Brock wrote: > Hi John > > Ask the application to send you a syslog message! > Then you can read the sender address or hostname. > > /gustav > > >>>> jwcolby at colbyconsulting.com 29-06-2009 17:52 >>> > Hmm... > > Looks quite cool. > > My mind is a raging torrent, flooded with rivulets of thought cascading into a waterfall of creative > alternatives. > > Now... how do we determine the IP address of every machine using an Access application on the local LAN? > > John W. Colby > www.ColbyConsulting.com > > > Susan Harkins wrote: >> <http://www.devx.com:80/vb/Article/42242/0/page/1> >> >> I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so >> proud... yet another ones passes safely to single author status. :) >> >> Susan H. > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From jwcolby at colbyconsulting.com Tue Jun 30 11:43:40 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 30 Jun 2009 12:43:40 -0400 Subject: [dba-VB] Syslogs In-Reply-To: <A5615CBECEC42E4791D7A7C724E1E9B2024478C6@MIEXCH.Marlow.ii-vi.net> References: <sa490735.064@cactus.dk> <4A48EDCB.50706@colbyconsulting.com> <A5615CBECEC42E4791D7A7C724E1E9B2024478C6@MIEXCH.Marlow.ii-vi.net> Message-ID: <4A4A40BC.6060905@colbyconsulting.com> Yes, but then you have to do more. IPConfig shows several IP addresses on my work laptop. One is the wireless, which only works when in range of a wireless network, one is a physical NIC, and one is a Hamachi IP. There could be even more. On my server I have two physical NICS and in theory each could have asked for an IP address. So would the REAL IP address please stand up. John W. Colby www.ColbyConsulting.com Drew Wutka wrote: > There are several ways to get your IP address. Two I've used is to use > a Winsock control, and look at the local host IP. > > Another relatively easy way is to dump the results of IPCONFIG to a text > file. > > Create a .bat file (call it iptest.bat) and put the following line in > it: > > Ipconfig >C:\ip.txt > > Then using ShellWait (http://mvps.org/access/api/api0004.htm) > > Use this function: > > Function IPAddresses() As String > Dim f As Long > Dim strTemp As String > Dim strArray() As String > If Dir("C:\ip.txt") <> "" Then Kill "C:\ip.txt" > ShellWait "C:\iptest.bat" > f = FreeFile > Open "C:\ip.txt" For Binary Access Read As f > strTemp = Space(LOF(f)) > Get f, , strTemp > Close f > strArray = Split(strTemp, vbCrLf) > strTemp = "" > For f = 0 To UBound(strArray) > If InStr(1, strArray(f), "IPv4", vbTextCompare) > 0 Or InStr(1, > strArray(f), " IP Address", vbTextCompare) > 0 Then > strTemp = strTemp & Trim(Mid(strArray(f), InStr(1, strArray(f), > ":", vbBinaryCompare) + 1)) & ";" > End If > Next f > If Len(strTemp) > 0 Then strTemp = Left(strTemp, Len(strTemp) - 1) > IPAddresses = strTemp > End Function > > Whalla, IPAddresses will return as a semicolon delimited string. > (Obviously you could return an array or create a collection too...either > way....) > > Drew From DWUTKA at Marlow.com Tue Jun 30 11:44:05 2009 From: DWUTKA at Marlow.com (Drew Wutka) Date: Tue, 30 Jun 2009 11:44:05 -0500 Subject: [dba-VB] Messaging For JWC WAS: Syslogs In-Reply-To: <4A49027A.5000604@colbyconsulting.com> References: <sa490e7e.066@cactus.dk> <4A49027A.5000604@colbyconsulting.com> Message-ID: <A5615CBECEC42E4791D7A7C724E1E9B2024478C9@MIEXCH.Marlow.ii-vi.net> Is this something you really want? It would be pretty simple to create an OCX that you could have on a hidden form, that would 'see' all running instances of your application, and be able to 'communicate' to them. There is one quirk. It'll work on a standard network. However, if your network is subnetted, it would only 'see' what's in the local subnet (because the best way to do this is to send out a broadcast 'hello' and 'goodbye' message). To work with a subnetted network, you'd have to come up with a 'server/client' scenario, so the server would see all the connected users (sort of like a custom DNS server). If you aren't worried about a subnetted network, let me know, I am pretty sure I can whip up an OCX to do what you want. Drew -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Monday, June 29, 2009 1:06 PM To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] SPAM-LOW: Re: Syslogs Gustav, As I mentioned, I have been looking for something like this for years, however everyone has to have a list of IPs that can be used with it to make it useful. I suppose I could kind of bootstrap this thing. The server address could be found by manual observation, then logged in a table along with the machine name. Each application FE instance looks and sends a message that it is logged in. The RECEIVER grabs the IP address and looks it up in the table. If not there it stores the IP in the table. Of course then the machine name has to be included in the message. I suppose that I could develop a message library, such that every time an application it fires a LOGIN message to everyone already in the table. The login message has a machine name as the data and apparently this widget automatically gets the IP address. My clients rarely have more than 25 or so workstations running the application so this shouldn't cause too much grief. Thus anyone listening logs the new person's data into the table if it isn't already there. Kind of crude but that allows any single running application (that you can manually get the IP for) to bootstrap the system and build the list of IPs and machine names. John W. Colby www.ColbyConsulting.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From DWUTKA at Marlow.com Tue Jun 30 11:49:15 2009 From: DWUTKA at Marlow.com (Drew Wutka) Date: Tue, 30 Jun 2009 11:49:15 -0500 Subject: [dba-VB] Syslogs In-Reply-To: <4A4A40BC.6060905@colbyconsulting.com> References: <sa490735.064@cactus.dk> <4A48EDCB.50706@colbyconsulting.com><A5615CBECEC42E4791D7A7C724E1E9B2024478C6@MIEXCH.Marlow.ii-vi.net> <4A4A40BC.6060905@colbyconsulting.com> Message-ID: <A5615CBECEC42E4791D7A7C724E1E9B2024478CA@MIEXCH.Marlow.ii-vi.net> Actually, if you have an IP address, it is real. It then gets into what it is used for. For example, with your wireless, if it's not connected, it won't have an IP address. If a standard NIC is not connected, it will show no address. If it IS connected, but not receiving an IP address, it will default to a (I think) 169 something, which is a hard coded address, which means nothing. You can also have internal addresses such as 127.0.0.1, which is a loopback to your local machine. (so if you are running a website, putting in http://127.0.0.1 on the server will give you the local website). Drew -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, June 30, 2009 11:44 AM To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Syslogs Yes, but then you have to do more. IPConfig shows several IP addresses on my work laptop. One is the wireless, which only works when in range of a wireless network, one is a physical NIC, and one is a Hamachi IP. There could be even more. On my server I have two physical NICS and in theory each could have asked for an IP address. So would the REAL IP address please stand up. John W. Colby www.ColbyConsulting.com Drew Wutka wrote: > There are several ways to get your IP address. Two I've used is to use > a Winsock control, and look at the local host IP. > > Another relatively easy way is to dump the results of IPCONFIG to a text > file. > > Create a .bat file (call it iptest.bat) and put the following line in > it: > > Ipconfig >C:\ip.txt > > Then using ShellWait (http://mvps.org/access/api/api0004.htm) > > Use this function: > > Function IPAddresses() As String > Dim f As Long > Dim strTemp As String > Dim strArray() As String > If Dir("C:\ip.txt") <> "" Then Kill "C:\ip.txt" > ShellWait "C:\iptest.bat" > f = FreeFile > Open "C:\ip.txt" For Binary Access Read As f > strTemp = Space(LOF(f)) > Get f, , strTemp > Close f > strArray = Split(strTemp, vbCrLf) > strTemp = "" > For f = 0 To UBound(strArray) > If InStr(1, strArray(f), "IPv4", vbTextCompare) > 0 Or InStr(1, > strArray(f), " IP Address", vbTextCompare) > 0 Then > strTemp = strTemp & Trim(Mid(strArray(f), InStr(1, strArray(f), > ":", vbBinaryCompare) + 1)) & ";" > End If > Next f > If Len(strTemp) > 0 Then strTemp = Left(strTemp, Len(strTemp) - 1) > IPAddresses = strTemp > End Function > > Whalla, IPAddresses will return as a semicolon delimited string. > (Obviously you could return an array or create a collection too...either > way....) > > Drew _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From Gustav at cactus.dk Tue Jun 30 11:49:08 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 30 Jun 2009 18:49:08 +0200 Subject: [dba-VB] Syslogs Message-ID: <sa4a5e36.093@cactus.dk> Hi John But ... didn't you read the article or at least download the code? It's all in there - in the module: basWinAPI_Hostname /gustav >>> jwcolby at colbyconsulting.com 30-06-2009 18:43 >>> Yes, but then you have to do more. IPConfig shows several IP addresses on my work laptop. One is the wireless, which only works when in range of a wireless network, one is a physical NIC, and one is a Hamachi IP. There could be even more. On my server I have two physical NICS and in theory each could have asked for an IP address. So would the REAL IP address please stand up. John W. Colby www.ColbyConsulting.com From max.wanadoo at gmail.com Tue Jun 30 11:54:23 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Tue, 30 Jun 2009 17:54:23 +0100 Subject: [dba-VB] Syslogs In-Reply-To: <4A4A40BC.6060905@colbyconsulting.com> References: <sa490735.064@cactus.dk> <4A48EDCB.50706@colbyconsulting.com> <A5615CBECEC42E4791D7A7C724E1E9B2024478C6@MIEXCH.Marlow.ii-vi.net> <4A4A40BC.6060905@colbyconsulting.com> Message-ID: <4a4a4344.1c05d00a.0f8b.4804@mx.google.com> John, going with what Stuart posted earlier. I integrated it into my work FE and it works great. What I have to do now is to get each FE to run the code on startup, post the resultant IP and Host into my Login Table and BINGO. When they log off, i just remove the entries from the LoginTable if I want to. If I then wanted to (as you do) to send a message I will know who is logged on. You could shell out to NET SEND USER MESSAGE to send the message, for example Where USER is the returning Hostname from the routine and MESSAGE is the text you want to send. Ie, Net Send Manager Hi'ya georgeous. Ps - I am the manager. Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: 30 June 2009 17:44 To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Syslogs Yes, but then you have to do more. IPConfig shows several IP addresses on my work laptop. One is the wireless, which only works when in range of a wireless network, one is a physical NIC, and one is a Hamachi IP. There could be even more. On my server I have two physical NICS and in theory each could have asked for an IP address. So would the REAL IP address please stand up. John W. Colby www.ColbyConsulting.com Drew Wutka wrote: > There are several ways to get your IP address. Two I've used is to use > a Winsock control, and look at the local host IP. > > Another relatively easy way is to dump the results of IPCONFIG to a text > file. > > Create a .bat file (call it iptest.bat) and put the following line in > it: > > Ipconfig >C:\ip.txt > > Then using ShellWait (http://mvps.org/access/api/api0004.htm) > > Use this function: > > Function IPAddresses() As String > Dim f As Long > Dim strTemp As String > Dim strArray() As String > If Dir("C:\ip.txt") <> "" Then Kill "C:\ip.txt" > ShellWait "C:\iptest.bat" > f = FreeFile > Open "C:\ip.txt" For Binary Access Read As f > strTemp = Space(LOF(f)) > Get f, , strTemp > Close f > strArray = Split(strTemp, vbCrLf) > strTemp = "" > For f = 0 To UBound(strArray) > If InStr(1, strArray(f), "IPv4", vbTextCompare) > 0 Or InStr(1, > strArray(f), " IP Address", vbTextCompare) > 0 Then > strTemp = strTemp & Trim(Mid(strArray(f), InStr(1, strArray(f), > ":", vbBinaryCompare) + 1)) & ";" > End If > Next f > If Len(strTemp) > 0 Then strTemp = Left(strTemp, Len(strTemp) - 1) > IPAddresses = strTemp > End Function > > Whalla, IPAddresses will return as a semicolon delimited string. > (Obviously you could return an array or create a collection too...either > way....) > > Drew _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From Gustav at cactus.dk Tue Jun 30 12:06:25 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 30 Jun 2009 19:06:25 +0200 Subject: [dba-VB] favicon (was: Syslogs) Message-ID: <sa4a6252.094@cactus.dk> Hi Drew That gives me an idea regarding favicon. I've found that it is sometimes difficult to get IE to understand that a favicon is present and should be displayed. Some common methods are: <!-- Favicon for IE browsers --> <link rel="shortcut icon" href="favicon.ico" /> <!-- Favicon for other browsers --> <link rel="icon" href="favicon.ico" /> This typically doesn't work. These may: <link rel="shortcut icon" href="/favicon.ico" /> mtaulty.com/CommunityServer: <link rel="shortcut icon" type="image/ico" href="/CommunityServer/favicon.ico" /> <link rel="shortcut icon" href="http://www.examplesite.com/favicon.ico" type="image/x-icon" /> The most reliable method I've found is the last - to use the full URL - but it is not nice to have hardcoded strings like these. So how about using your method: <link rel="shortcut icon" href="http://127.0.0.1/favicon.ico" type="image/x-icon" /> or localhost: <link rel="shortcut icon" href="http://localhost/favicon.ico" type="image/x-icon" /> Anyone having experience with this? /gustav >>> DWUTKA at marlow.com 30-06-2009 18:49 >>> Actually, if you have an IP address, it is real. It then gets into what it is used for. For example, with your wireless, if it's not connected, it won't have an IP address. If a standard NIC is not connected, it will show no address. If it IS connected, but not receiving an IP address, it will default to a (I think) 169 something, which is a hard coded address, which means nothing. You can also have internal addresses such as 127.0.0.1, which is a loopback to your local machine. (so if you are running a website, putting in http://127.0.0.1 on the server will give you the local website). Drew From max.wanadoo at gmail.com Tue Jun 30 12:27:46 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Tue, 30 Jun 2009 18:27:46 +0100 Subject: [dba-VB] Syslogs In-Reply-To: <4A4A0CCF.5521.1B8DFD71@stuart.lexacorp.com.pg> References: <sa4a1857.085@cactus.dk> <4A4A0CCF.5521.1B8DFD71@stuart.lexacorp.com.pg> Message-ID: <4a4a4b16.1c05d00a.735a.08ee@mx.google.com> Stuart, this is good stuff. Why would I need to know the subnet mask in the context of finding the IP and Hostname? Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: 30 June 2009 14:02 To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Syslogs On 30 Jun 2009 at 13:50, Gustav Brock wrote: > However, no function is included to reveal the subnet mask. The only "human" method I >can locate for this purpose is to look up the registry: I just found another API call which returns more info including the SubNet mask(s) so I've modified clsResolve to include GetMyIPMask: Option Compare Database Option Explicit '// define constants Private Const IP_SUCCESS As Long = 0 Private Const SOCKET_ERROR As Long = -1 Private Const MAX_WSADescription As Long = 256 Private Const MAX_WSASYSStatus As Long = 128 Private Const MIN_SOCKETS_REQD As Long = 1 Private Const WS_VERSION_REQD As Long = &H101 Private Const WS_VERSION_MAJOR As Long = WS_VERSION_REQD \ &H100 And &HFF& Private Const WS_VERSION_MINOR As Long = WS_VERSION_REQD And &HFF& Private Const WSADescription_Len As Long = 256 Private Const WSASYS_Status_Len As Long = 128 Private Const AF_INET As Long = 2 '// structures Private Type HOSTENT hName As Long hAliases As Long hAddrType As Integer hLength As Integer hAddrList As Long End Type Private Type WSADATA wVersion As Integer wHighVersion As Integer szDescription(0 To MAX_WSADescription) As Byte szSystemStatus(0 To MAX_WSASYSStatus) As Byte wMaxSockets As Long wMaxUDPDG As Long dwVendorInfo As Long End Type Private Type IPINFO dwAddr As Long ' IP address dwIndex As Long ' interface index dwMask As Long ' subnet mask dwBCastAddr As Long ' broadcast address dwReasmSize As Long ' assembly size unused1 As Integer ' not currently used unused2 As Integer '; not currently used End Type Private Type MIB_IPADDRTABLE dEntrys As Long 'number of entries in the table mIPInfo(5) As IPINFO 'array of IP address entries assumes maximum of 5 Interfaces End Type Private Type IP_Array mBuffer As MIB_IPADDRTABLE BufferLen As Long End Type '// api 'kernel32 Private Declare Sub apiCopyMemory Lib "kernel32" Alias "RtlMoveMemory" (xDest As Any, xSource As Any, ByVal nBytes As Long) Private Declare Function apiStrLen Lib "kernel32" Alias "lstrlenA" (lpString As Any) As Long 'wsock32 Private Declare Function apiGetHostByName Lib "wsock32.dll" Alias "gethostbyname" (ByVal hostname As String) As Long Private Declare Function apiWSAStartup Lib "wsock32.dll" Alias "WSAStartup" (ByVal wVersionRequired As Long, lpWSADATA As WSADATA) As Long Private Declare Function apiWSACleanup Lib "wsock32.dll" Alias "WSACleanup" () As Long Private Declare Function apiInetAddr Lib "wsock32.dll" Alias "inet_addr" (ByVal s As String) As Long Private Declare Function apiGetHostByAddr Lib "wsock32.dll" Alias "gethostbyaddr" (haddr As Long, ByVal hnlen As Long, ByVal addrtype As Long) As Long Private Declare Function apiGetHostName Lib "wsock32.dll" Alias "gethostname" (ByVal hostname$, ByVal HostLen As Integer) As Long 'IPHlpAPI Private Declare Function GetIpAddrTable Lib "IPHlpApi" (pIPAdrTable As Byte, pdwSize As Long, ByVal Sort As Long) As Long '// private functions Private Function InitializeSocket() As Boolean Dim WSAD As WSADATA 'attempt to initialize the socket InitializeSocket = apiWSAStartup(WS_VERSION_REQD, WSAD) = IP_SUCCESS End Function Private Sub CloseSocket() 'try to close the socket If apiWSACleanup() <> 0 Then MsgBox "Error calling apiWSACleanup.", vbCritical End If End Sub Public Function GetIPFromHostName(ByVal sHostName As String) As String 'converts a host name to an IP address. Dim nBytes As Long Dim ptrHosent As Long Dim hstHost As HOSTENT Dim ptrName As Long Dim ptrAddress As Long Dim ptrIPAddress As Long Dim sAddress As String 'declare this as Dim sAddress(1) As String if you want 2 ip addresses returned 'try to initalize the socket If InitializeSocket() = True Then 'try to get the IP ptrHosent = apiGetHostByName(sHostName & vbNullChar) If ptrHosent <> 0 Then 'get the IP address apiCopyMemory hstHost, ByVal ptrHosent, LenB(hstHost) apiCopyMemory ptrIPAddress, ByVal hstHost.hAddrList, 4 'fill buffer sAddress = Space$(4) 'if you want multiple domains returned, 'fill all items in sAddress array with 4 spaces apiCopyMemory ByVal sAddress, ByVal ptrIPAddress, hstHost.hLength 'change this to 'CopyMemory ByVal sAddress(0), ByVal ptrIPAddress, hstHost.hLength 'if you want an array of ip addresses returned '(some domains have more than one ip address associated with it) 'get the IP address GetIPFromHostName = IPToText(sAddress) 'if you are using multiple addresses, you need IPToText(sAddress(0)) & "," & IPToText(sAddress(1)) 'etc End If Else MsgBox "Failed to open Socket." End If End Function Private Function IPToText(ByVal IPAddress As String) As String 'converts characters to numbers IPToText = CStr(Asc(IPAddress)) & "." & _ CStr(Asc(Mid$(IPAddress, 2, 1))) & "." & _ CStr(Asc(Mid$(IPAddress, 3, 1))) & "." & _ CStr(Asc(Mid$(IPAddress, 4, 1))) End Function Private Function ConvertAddressToString(longAddr As Long) As String Dim myByte(3) As Byte Dim Cnt As Long CopyMemory myByte(0), longAddr, 4 For Cnt = 0 To 3 ConvertAddressToString = ConvertAddressToString + CStr(myByte(Cnt)) + "." Next Cnt ConvertAddressToString = Left$(ConvertAddressToString, Len(ConvertAddressToString) - 1) End Function Public Function GetHostNameFromIP(ByVal sIPAddress As String) As String Dim ptrHosent As Long Dim hAddress As Long Dim sHost As String Dim nBytes As Long 'try to open the socket If InitializeSocket() = True Then 'convert string address to long datatype hAddress = apiInetAddr(sIPAddress) 'check if an error ocucred If hAddress <> SOCKET_ERROR Then 'obtain a pointer to the HOSTENT structure 'that contains the name and address 'corresponding to the given network address. ptrHosent = apiGetHostByAddr(hAddress, 4, AF_INET) If ptrHosent <> 0 Then 'convert address and 'get resolved hostname apiCopyMemory ptrHosent, ByVal ptrHosent, 4 nBytes = apiStrLen(ByVal ptrHosent) If nBytes > 0 Then 'fill the IP address buffer sHost = Space$(nBytes) apiCopyMemory ByVal sHost, ByVal ptrHosent, nBytes GetHostNameFromIP = sHost End If Else MsgBox "Call to gethostbyaddr failed." End If 'close the socket CloseSocket Else MsgBox "Invalid IP address" End If Else MsgBox "Failed to open Socket" End If End Function Public Function GetMyHostName() As String 'Finds local HostName Dim strHostname As String Dim lngHostLen As Long 'try to initalize the socket If InitializeSocket() = True Then lngHostLen = 256 strHostname = Space$(lngHostLen) If apiGetHostName(strHostname, lngHostLen) = SOCKET_ERROR Then MsgBox "Windows Sockets error getting Host Name" Else strHostname = Trim$(strHostname) strHostname = Left$(strHostname, Len(strHostname) - 1) End If Else MsgBox "Failed to open Socket." End If GetMyHostName = strHostname End Function Public Function GetMyIPAddress() As String GetMyIPAddress = GetIPFromHostName(GetMyHostName) End Function Public Function GetMyIPMask() Dim Ret As Long Dim bBytes() As Byte Dim tel As Long Dim Listing As MIB_IPADDRTABLE On Error GoTo END1 GetIpAddrTable ByVal 0&, Ret, True If Ret <= 0 Then Exit Function ReDim bBytes(0 To Ret - 1) As Byte 'retrieve the data GetIpAddrTable bBytes(0), Ret, False 'Get the first 4 bytes to get the entry's.. ip installed CopyMemory Listing.dEntrys, bBytes(0), 4 'Copy whole structure to Listing and return for Adapter 1 (Adapter 0 = Loopback) CopyMemory Listing.mIPInfo(1), bBytes(4 + (Len(Listing.mIPInfo(0)))), Len(Listing.mIPInfo(1)) GetIPMask = ConvertAddressToString(Listing.mIPInfo(1).dwMask) Exit Function END1: MsgBox "Error Resolving Subnet Mask" End Function _______________________________________________ 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 Jun 30 12:41:36 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 30 Jun 2009 19:41:36 +0200 Subject: [dba-VB] Syslogs Message-ID: <sa4a6a88.095@cactus.dk> Hi Stuart and John Nice Stuart. With your code I was able to browse a little further and found this: http://www.everythingaccess.com/tutorials.asp?ID=Get-all-IP-Addresses-of-your-machine which also uses the API: Public Declare Function GetIpAddrTable Lib "Iphlpapi" (pIPAdrTable As Byte, pdwSize As Long, ByVal Sort As Long) As Long to retrieve a list of the IP addresses of the machine. It has an option to filter out 127.0.0.1 but for some reason not 0.0.0.0 which is an inactive adapter. However, the interesting part is the second reserved or unused part of the IP INFO type. If you include that in your loop, you will see that inactive or unused adapters return an integer value of 35 while the active adapter returns 39. I have no idea of what these numbers mean, but it should be a simple matter to include a filter on value 39 to extract just the active adapter - for John and anyone else. So a revision 1.2 of your class is on its way? /gustav >>> "Stuart McLachlan" <stuart at lexacorp.com.pg> 30-06-2009 15:02 >>> On 30 Jun 2009 at 13:50, Gustav Brock wrote: > However, no function is included to reveal the subnet mask. The only "human" method I >can locate for this purpose is to look up the registry: I just found another API call which returns more info including the SubNet mask(s) so I've modified clsResolve to include GetMyIPMask: Option Compare Database Option Explicit '// define constants Private Const IP_SUCCESS As Long = 0 Private Const SOCKET_ERROR As Long = -1 Private Const MAX_WSADescription As Long = 256 Private Const MAX_WSASYSStatus As Long = 128 Private Const MIN_SOCKETS_REQD As Long = 1 Private Const WS_VERSION_REQD As Long = &H101 Private Const WS_VERSION_MAJOR As Long = WS_VERSION_REQD \ &H100 And &HFF& Private Const WS_VERSION_MINOR As Long = WS_VERSION_REQD And &HFF& Private Const WSADescription_Len As Long = 256 Private Const WSASYS_Status_Len As Long = 128 Private Const AF_INET As Long = 2 '// structures Private Type HOSTENT hName As Long hAliases As Long hAddrType As Integer hLength As Integer hAddrList As Long End Type Private Type WSADATA wVersion As Integer wHighVersion As Integer szDescription(0 To MAX_WSADescription) As Byte szSystemStatus(0 To MAX_WSASYSStatus) As Byte wMaxSockets As Long wMaxUDPDG As Long dwVendorInfo As Long End Type Private Type IPINFO dwAddr As Long ' IP address dwIndex As Long ' interface index dwMask As Long ' subnet mask dwBCastAddr As Long ' broadcast address dwReasmSize As Long ' assembly size unused1 As Integer ' not currently used unused2 As Integer '; not currently used End Type Private Type MIB_IPADDRTABLE dEntrys As Long 'number of entries in the table mIPInfo(5) As IPINFO 'array of IP address entries assumes maximum of 5 Interfaces End Type Private Type IP_Array mBuffer As MIB_IPADDRTABLE BufferLen As Long End Type '// api 'kernel32 Private Declare Sub apiCopyMemory Lib "kernel32" Alias "RtlMoveMemory" (xDest As Any, xSource As Any, ByVal nBytes As Long) Private Declare Function apiStrLen Lib "kernel32" Alias "lstrlenA" (lpString As Any) As Long 'wsock32 Private Declare Function apiGetHostByName Lib "wsock32.dll" Alias "gethostbyname" (ByVal hostname As String) As Long Private Declare Function apiWSAStartup Lib "wsock32.dll" Alias "WSAStartup" (ByVal wVersionRequired As Long, lpWSADATA As WSADATA) As Long Private Declare Function apiWSACleanup Lib "wsock32.dll" Alias "WSACleanup" () As Long Private Declare Function apiInetAddr Lib "wsock32.dll" Alias "inet_addr" (ByVal s As String) As Long Private Declare Function apiGetHostByAddr Lib "wsock32.dll" Alias "gethostbyaddr" (haddr As Long, ByVal hnlen As Long, ByVal addrtype As Long) As Long Private Declare Function apiGetHostName Lib "wsock32.dll" Alias "gethostname" (ByVal hostname$, ByVal HostLen As Integer) As Long 'IPHlpAPI Private Declare Function GetIpAddrTable Lib "IPHlpApi" (pIPAdrTable As Byte, pdwSize As Long, ByVal Sort As Long) As Long '// private functions Private Function InitializeSocket() As Boolean Dim WSAD As WSADATA 'attempt to initialize the socket InitializeSocket = apiWSAStartup(WS_VERSION_REQD, WSAD) = IP_SUCCESS End Function Private Sub CloseSocket() 'try to close the socket If apiWSACleanup() <> 0 Then MsgBox "Error calling apiWSACleanup.", vbCritical End If End Sub Public Function GetIPFromHostName(ByVal sHostName As String) As String 'converts a host name to an IP address. Dim nBytes As Long Dim ptrHosent As Long Dim hstHost As HOSTENT Dim ptrName As Long Dim ptrAddress As Long Dim ptrIPAddress As Long Dim sAddress As String 'declare this as Dim sAddress(1) As String if you want 2 ip addresses returned 'try to initalize the socket If InitializeSocket() = True Then 'try to get the IP ptrHosent = apiGetHostByName(sHostName & vbNullChar) If ptrHosent <> 0 Then 'get the IP address apiCopyMemory hstHost, ByVal ptrHosent, LenB(hstHost) apiCopyMemory ptrIPAddress, ByVal hstHost.hAddrList, 4 'fill buffer sAddress = Space$(4) 'if you want multiple domains returned, 'fill all items in sAddress array with 4 spaces apiCopyMemory ByVal sAddress, ByVal ptrIPAddress, hstHost.hLength 'change this to 'CopyMemory ByVal sAddress(0), ByVal ptrIPAddress, hstHost.hLength 'if you want an array of ip addresses returned '(some domains have more than one ip address associated with it) 'get the IP address GetIPFromHostName = IPToText(sAddress) 'if you are using multiple addresses, you need IPToText(sAddress(0)) & "," & IPToText(sAddress(1)) 'etc End If Else MsgBox "Failed to open Socket." End If End Function Private Function IPToText(ByVal IPAddress As String) As String 'converts characters to numbers IPToText = CStr(Asc(IPAddress)) & "." & _ CStr(Asc(Mid$(IPAddress, 2, 1))) & "." & _ CStr(Asc(Mid$(IPAddress, 3, 1))) & "." & _ CStr(Asc(Mid$(IPAddress, 4, 1))) End Function Private Function ConvertAddressToString(longAddr As Long) As String Dim myByte(3) As Byte Dim Cnt As Long CopyMemory myByte(0), longAddr, 4 For Cnt = 0 To 3 ConvertAddressToString = ConvertAddressToString + CStr(myByte(Cnt)) + "." Next Cnt ConvertAddressToString = Left$(ConvertAddressToString, Len(ConvertAddressToString) - 1) End Function Public Function GetHostNameFromIP(ByVal sIPAddress As String) As String Dim ptrHosent As Long Dim hAddress As Long Dim sHost As String Dim nBytes As Long 'try to open the socket If InitializeSocket() = True Then 'convert string address to long datatype hAddress = apiInetAddr(sIPAddress) 'check if an error ocucred If hAddress <> SOCKET_ERROR Then 'obtain a pointer to the HOSTENT structure 'that contains the name and address 'corresponding to the given network address. ptrHosent = apiGetHostByAddr(hAddress, 4, AF_INET) If ptrHosent <> 0 Then 'convert address and 'get resolved hostname apiCopyMemory ptrHosent, ByVal ptrHosent, 4 nBytes = apiStrLen(ByVal ptrHosent) If nBytes > 0 Then 'fill the IP address buffer sHost = Space$(nBytes) apiCopyMemory ByVal sHost, ByVal ptrHosent, nBytes GetHostNameFromIP = sHost End If Else MsgBox "Call to gethostbyaddr failed." End If 'close the socket CloseSocket Else MsgBox "Invalid IP address" End If Else MsgBox "Failed to open Socket" End If End Function Public Function GetMyHostName() As String 'Finds local HostName Dim strHostname As String Dim lngHostLen As Long 'try to initalize the socket If InitializeSocket() = True Then lngHostLen = 256 strHostname = Space$(lngHostLen) If apiGetHostName(strHostname, lngHostLen) = SOCKET_ERROR Then MsgBox "Windows Sockets error getting Host Name" Else strHostname = Trim$(strHostname) strHostname = Left$(strHostname, Len(strHostname) - 1) End If Else MsgBox "Failed to open Socket." End If GetMyHostName = strHostname End Function Public Function GetMyIPAddress() As String GetMyIPAddress = GetIPFromHostName(GetMyHostName) End Function Public Function GetMyIPMask() Dim Ret As Long Dim bBytes() As Byte Dim tel As Long Dim Listing As MIB_IPADDRTABLE On Error GoTo END1 GetIpAddrTable ByVal 0&, Ret, True If Ret <= 0 Then Exit Function ReDim bBytes(0 To Ret - 1) As Byte 'retrieve the data GetIpAddrTable bBytes(0), Ret, False 'Get the first 4 bytes to get the entry's.. ip installed CopyMemory Listing.dEntrys, bBytes(0), 4 'Copy whole structure to Listing and return for Adapter 1 (Adapter 0 = Loopback) CopyMemory Listing.mIPInfo(1), bBytes(4 + (Len(Listing.mIPInfo(0)))), Len(Listing.mIPInfo(1)) GetIPMask = ConvertAddressToString(Listing.mIPInfo(1).dwMask) Exit Function END1: MsgBox "Error Resolving Subnet Mask" End Function From jwcolby at colbyconsulting.com Tue Jun 30 12:42:38 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 30 Jun 2009 13:42:38 -0400 Subject: [dba-VB] Syslogs In-Reply-To: <sa4a5e36.093@cactus.dk> References: <sa4a5e36.093@cactus.dk> Message-ID: <4A4A4E8E.5060107@colbyconsulting.com> Gustav, Nope, and nope. Once I discovered that I had to get an OCX and register it the bloom kind of left the rose so to speak. I am looking for something that just works and is native to VBA. This is something that I want to incorporate into my framework, but I can't go installing stuff on workstations, it is for use at my clients and I am not there. There is good reason why I have never done this... the easy solutions always have a gotcha. John W. Colby www.ColbyConsulting.com Gustav Brock wrote: > Hi John > > But ... didn't you read the article or at least download the code? It's all in there - in the module: > > basWinAPI_Hostname > > /gustav > > >>>> jwcolby at colbyconsulting.com 30-06-2009 18:43 >>> > Yes, but then you have to do more. IPConfig shows several IP addresses on my work laptop. One is > the wireless, which only works when in range of a wireless network, one is a physical NIC, and one > is a Hamachi IP. There could be even more. On my server I have two physical NICS and in theory > each could have asked for an IP address. > > So would the REAL IP address please stand up. > > 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 Tue Jun 30 12:45:11 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 30 Jun 2009 13:45:11 -0400 Subject: [dba-VB] Messaging For JWC WAS: Syslogs In-Reply-To: <A5615CBECEC42E4791D7A7C724E1E9B2024478C9@MIEXCH.Marlow.ii-vi.net> References: <sa490e7e.066@cactus.dk> <4A49027A.5000604@colbyconsulting.com> <A5615CBECEC42E4791D7A7C724E1E9B2024478C9@MIEXCH.Marlow.ii-vi.net> Message-ID: <4A4A4F27.6010606@colbyconsulting.com> Drew, I really want this but it has to be vba native, no OCXs. I am familiar with OCXs that are part of Access, and that is OK. This would be used with my framework and I cannot guarantee that i can register anything. It has to just work. John W. Colby www.ColbyConsulting.com Drew Wutka wrote: > Is this something you really want? > > It would be pretty simple to create an OCX that you could have on a > hidden form, that would 'see' all running instances of your application, > and be able to 'communicate' to them. > > There is one quirk. It'll work on a standard network. However, if your > network is subnetted, it would only 'see' what's in the local subnet > (because the best way to do this is to send out a broadcast 'hello' and > 'goodbye' message). To work with a subnetted network, you'd have to > come up with a 'server/client' scenario, so the server would see all the > connected users (sort of like a custom DNS server). > > If you aren't worried about a subnetted network, let me know, I am > pretty sure I can whip up an OCX to do what you want. > > Drew From jwcolby at colbyconsulting.com Tue Jun 30 12:45:48 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 30 Jun 2009 13:45:48 -0400 Subject: [dba-VB] SPAM-LOW: Re: Syslogs In-Reply-To: <4a4a4344.1c05d00a.0f8b.4804@mx.google.com> References: <sa490735.064@cactus.dk> <4A48EDCB.50706@colbyconsulting.com> <A5615CBECEC42E4791D7A7C724E1E9B2024478C6@MIEXCH.Marlow.ii-vi.net> <4A4A40BC.6060905@colbyconsulting.com> <4a4a4344.1c05d00a.0f8b.4804@mx.google.com> Message-ID: <4A4A4F4C.3070806@colbyconsulting.com> I will be looking at Stuart's code. John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > John, going with what Stuart posted earlier. I integrated it into my work FE > and it works great. What I have to do now is to get each FE to run the code > on startup, post the resultant IP and Host into my Login Table and BINGO. > When they log off, i just remove the entries from the LoginTable if I want > to. > > If I then wanted to (as you do) to send a message I will know who is logged > on. You could shell out to NET SEND USER MESSAGE to send the message, for > example Where USER is the returning Hostname from the routine and MESSAGE is > the text you want to send. > > Ie, > Net Send Manager Hi'ya georgeous. > > Ps - I am the manager. > > Max > > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: 30 June 2009 17:44 > To: Discussion concerning Visual Basic and related programming issues. > Subject: Re: [dba-VB] Syslogs > > Yes, but then you have to do more. IPConfig shows several IP addresses on > my work laptop. One is > the wireless, which only works when in range of a wireless network, one is a > physical NIC, and one > is a Hamachi IP. There could be even more. On my server I have two > physical NICS and in theory > each could have asked for an IP address. > > So would the REAL IP address please stand up. > > John W. Colby > www.ColbyConsulting.com > > > Drew Wutka wrote: >> There are several ways to get your IP address. Two I've used is to use >> a Winsock control, and look at the local host IP. >> >> Another relatively easy way is to dump the results of IPCONFIG to a text >> file. >> >> Create a .bat file (call it iptest.bat) and put the following line in >> it: >> >> Ipconfig >C:\ip.txt >> >> Then using ShellWait (http://mvps.org/access/api/api0004.htm) >> >> Use this function: >> >> Function IPAddresses() As String >> Dim f As Long >> Dim strTemp As String >> Dim strArray() As String >> If Dir("C:\ip.txt") <> "" Then Kill "C:\ip.txt" >> ShellWait "C:\iptest.bat" >> f = FreeFile >> Open "C:\ip.txt" For Binary Access Read As f >> strTemp = Space(LOF(f)) >> Get f, , strTemp >> Close f >> strArray = Split(strTemp, vbCrLf) >> strTemp = "" >> For f = 0 To UBound(strArray) >> If InStr(1, strArray(f), "IPv4", vbTextCompare) > 0 Or InStr(1, >> strArray(f), " IP Address", vbTextCompare) > 0 Then >> strTemp = strTemp & Trim(Mid(strArray(f), InStr(1, strArray(f), >> ":", vbBinaryCompare) + 1)) & ";" >> End If >> Next f >> If Len(strTemp) > 0 Then strTemp = Left(strTemp, Len(strTemp) - 1) >> IPAddresses = strTemp >> End Function >> >> Whalla, IPAddresses will return as a semicolon delimited string. >> (Obviously you could return an array or create a collection too...either >> way....) >> >> Drew > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From Gustav at cactus.dk Tue Jun 30 12:48:25 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 30 Jun 2009 19:48:25 +0200 Subject: [dba-VB] Syslogs Message-ID: <sa4a6c2d.096@cactus.dk> Hi John I see - that of course makes sense. But that module is pure API. /gustav >>> jwcolby at colbyconsulting.com 30-06-2009 19:42 >>> Gustav, Nope, and nope. Once I discovered that I had to get an OCX and register it the bloom kind of left the rose so to speak. I am looking for something that just works and is native to VBA. This is something that I want to incorporate into my framework, but I can't go installing stuff on workstations, it is for use at my clients and I am not there. There is good reason why I have never done this... the easy solutions always have a gotcha. John W. Colby www.ColbyConsulting.com Gustav Brock wrote: > Hi John > > But ... didn't you read the article or at least download the code? It's all in there - in the module: > > basWinAPI_Hostname > > /gustav > > >>>> jwcolby at colbyconsulting.com 30-06-2009 18:43 >>> > Yes, but then you have to do more. IPConfig shows several IP addresses on my work laptop. One is > the wireless, which only works when in range of a wireless network, one is a physical NIC, and one > is a Hamachi IP. There could be even more. On my server I have two physical NICS and in theory > each could have asked for an IP address. > > So would the REAL IP address please stand up. > > John W. Colby > www.ColbyConsulting.com From Gustav at cactus.dk Tue Jun 30 12:49:54 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 30 Jun 2009 19:49:54 +0200 Subject: [dba-VB] Syslogs Message-ID: <sa4a6c6a.097@cactus.dk> Hi Max To calculate the possible IP addresses (of workstations) of the network: http://www.networkclue.com/routing/tcpip/calculating-masks.aspx /gustav >>> max.wanadoo at gmail.com 30-06-2009 19:27 >>> Stuart, this is good stuff. Why would I need to know the subnet mask in the context of finding the IP and Hostname? Max From max.wanadoo at gmail.com Tue Jun 30 13:54:26 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Tue, 30 Jun 2009 19:54:26 +0100 Subject: [dba-VB] Syslogs In-Reply-To: <sa4a6c6a.097@cactus.dk> References: <sa4a6c6a.097@cactus.dk> Message-ID: <4a4a5f66.1701d00a.7694.1d19@mx.google.com> Ha! Very good Gustav....I got half way down the page and thought...why am I reading this...it is going in one eye and out the other... Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 30 June 2009 18:50 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Syslogs Hi Max To calculate the possible IP addresses (of workstations) of the network: http://www.networkclue.com/routing/tcpip/calculating-masks.aspx /gustav >>> max.wanadoo at gmail.com 30-06-2009 19:27 >>> Stuart, this is good stuff. Why would I need to know the subnet mask in the context of finding the IP and Hostname? Max _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From DWUTKA at Marlow.com Tue Jun 30 13:42:16 2009 From: DWUTKA at Marlow.com (Drew Wutka) Date: Tue, 30 Jun 2009 13:42:16 -0500 Subject: [dba-VB] favicon (was: Syslogs) In-Reply-To: <sa4a6252.094@cactus.dk> References: <sa4a6252.094@cactus.dk> Message-ID: <A5615CBECEC42E4791D7A7C724E1E9B2024478CB@MIEXCH.Marlow.ii-vi.net> The reason those href's might not work is going to be dependant upon whether or not IIS is running. If you have a webserver, then a URL can be 'soft', or based on the root of the webserver. No webserver, everything must include a full URL (or 'hard' URL). Drew -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, June 30, 2009 12:06 PM To: dba-vb at databaseadvisors.com Subject: [dba-VB] favicon (was: Syslogs) Hi Drew That gives me an idea regarding favicon. I've found that it is sometimes difficult to get IE to understand that a favicon is present and should be displayed. Some common methods are: <!-- Favicon for IE browsers --> <link rel="shortcut icon" href="favicon.ico" /> <!-- Favicon for other browsers --> <link rel="icon" href="favicon.ico" /> This typically doesn't work. These may: <link rel="shortcut icon" href="/favicon.ico" /> mtaulty.com/CommunityServer: <link rel="shortcut icon" type="image/ico" href="/CommunityServer/favicon.ico" /> <link rel="shortcut icon" href="http://www.examplesite.com/favicon.ico" type="image/x-icon" /> The most reliable method I've found is the last - to use the full URL - but it is not nice to have hardcoded strings like these. So how about using your method: <link rel="shortcut icon" href="http://127.0.0.1/favicon.ico" type="image/x-icon" /> or localhost: <link rel="shortcut icon" href="http://localhost/favicon.ico" type="image/x-icon" /> Anyone having experience with this? /gustav >>> DWUTKA at marlow.com 30-06-2009 18:49 >>> Actually, if you have an IP address, it is real. It then gets into what it is used for. For example, with your wireless, if it's not connected, it won't have an IP address. If a standard NIC is not connected, it will show no address. If it IS connected, but not receiving an IP address, it will default to a (I think) 169 something, which is a hard coded address, which means nothing. You can also have internal addresses such as 127.0.0.1, which is a loopback to your local machine. (so if you are running a website, putting in http://127.0.0.1 on the server will give you the local website). Drew _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From DWUTKA at Marlow.com Tue Jun 30 13:46:19 2009 From: DWUTKA at Marlow.com (Drew Wutka) Date: Tue, 30 Jun 2009 13:46:19 -0500 Subject: [dba-VB] Messaging For JWC WAS: Syslogs In-Reply-To: <4A4A4F27.6010606@colbyconsulting.com> References: <sa490e7e.066@cactus.dk> <4A49027A.5000604@colbyconsulting.com><A5615CBECEC42E4791D7A7C724E1E9B2024478C9@MIEXCH.Marlow.ii-vi.net> <4A4A4F27.6010606@colbyconsulting.com> Message-ID: <A5615CBECEC42E4791D7A7C724E1E9B2024478CC@MIEXCH.Marlow.ii-vi.net> Native does put a crimp in things. TCP/IP communications is pretty easy with a Winsock control. It can be done with API's but it's a pain, and you need to deal with callback functions, which have issues in and of themselves in Access 2000 and on. If you were ok with an .ocx, I could whip that up, if you need something native, that would require callbacks, and a lot more coding. If you want to play around with it, what you need to do is use UDP to 'broadcast' a hello and goodbye message, to alert everything on the subnet. (And you have to filter that message on the broadcasting machine, cause it'll pick up it's own message). In that hello/goodbye message, you can include all the info you want (username, computername, IP,etc). Then it's just a matter of using TCP for direct comms between two machines. Drew -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, June 30, 2009 12:45 PM To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Messaging For JWC WAS: Syslogs Drew, I really want this but it has to be vba native, no OCXs. I am familiar with OCXs that are part of Access, and that is OK. This would be used with my framework and I cannot guarantee that i can register anything. It has to just work. John W. Colby www.ColbyConsulting.com Drew Wutka wrote: > Is this something you really want? > > It would be pretty simple to create an OCX that you could have on a > hidden form, that would 'see' all running instances of your application, > and be able to 'communicate' to them. > > There is one quirk. It'll work on a standard network. However, if your > network is subnetted, it would only 'see' what's in the local subnet > (because the best way to do this is to send out a broadcast 'hello' and > 'goodbye' message). To work with a subnetted network, you'd have to > come up with a 'server/client' scenario, so the server would see all the > connected users (sort of like a custom DNS server). > > If you aren't worried about a subnetted network, let me know, I am > pretty sure I can whip up an OCX to do what you want. > > Drew _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From max.wanadoo at gmail.com Tue Jun 30 14:00:23 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Tue, 30 Jun 2009 20:00:23 +0100 Subject: [dba-VB] Messaging For JWC WAS: Syslogs In-Reply-To: <A5615CBECEC42E4791D7A7C724E1E9B2024478CC@MIEXCH.Marlow.ii-vi.net> References: <sa490e7e.066@cactus.dk> <4A49027A.5000604@colbyconsulting.com><A5615CBECEC42E4791D7A7C724E1E9B2024478C9@MIEXCH.Marlow.ii-vi.net> <4A4A4F27.6010606@colbyconsulting.com> <A5615CBECEC42E4791D7A7C724E1E9B2024478CC@MIEXCH.Marlow.ii-vi.net> Message-ID: <4a4a60ca.0a1ad00a.63e4.2ae9@mx.google.com> Drew, have you looked at Stuart's posting. It is all API and works fine. Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: 30 June 2009 19:46 To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Messaging For JWC WAS: Syslogs Native does put a crimp in things. TCP/IP communications is pretty easy with a Winsock control. It can be done with API's but it's a pain, and you need to deal with callback functions, which have issues in and of themselves in Access 2000 and on. If you were ok with an .ocx, I could whip that up, if you need something native, that would require callbacks, and a lot more coding. If you want to play around with it, what you need to do is use UDP to 'broadcast' a hello and goodbye message, to alert everything on the subnet. (And you have to filter that message on the broadcasting machine, cause it'll pick up it's own message). In that hello/goodbye message, you can include all the info you want (username, computername, IP,etc). Then it's just a matter of using TCP for direct comms between two machines. Drew -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, June 30, 2009 12:45 PM To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Messaging For JWC WAS: Syslogs Drew, I really want this but it has to be vba native, no OCXs. I am familiar with OCXs that are part of Access, and that is OK. This would be used with my framework and I cannot guarantee that i can register anything. It has to just work. John W. Colby www.ColbyConsulting.com Drew Wutka wrote: > Is this something you really want? > > It would be pretty simple to create an OCX that you could have on a > hidden form, that would 'see' all running instances of your application, > and be able to 'communicate' to them. > > There is one quirk. It'll work on a standard network. However, if your > network is subnetted, it would only 'see' what's in the local subnet > (because the best way to do this is to send out a broadcast 'hello' and > 'goodbye' message). To work with a subnetted network, you'd have to > come up with a 'server/client' scenario, so the server would see all the > connected users (sort of like a custom DNS server). > > If you aren't worried about a subnetted network, let me know, I am > pretty sure I can whip up an OCX to do what you want. > > Drew _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From DWUTKA at Marlow.com Tue Jun 30 14:10:13 2009 From: DWUTKA at Marlow.com (Drew Wutka) Date: Tue, 30 Jun 2009 14:10:13 -0500 Subject: [dba-VB] Messaging For JWC WAS: Syslogs In-Reply-To: <4a4a60ca.0a1ad00a.63e4.2ae9@mx.google.com> References: <sa490e7e.066@cactus.dk> <4A49027A.5000604@colbyconsulting.com><A5615CBECEC42E4791D7A7C724E1E9B2024478C9@MIEXCH.Marlow.ii-vi.net> <4A4A4F27.6010606@colbyconsulting.com><A5615CBECEC42E4791D7A7C724E1E9B2024478CC@MIEXCH.Marlow.ii-vi.net> <4a4a60ca.0a1ad00a.63e4.2ae9@mx.google.com> Message-ID: <A5615CBECEC42E4791D7A7C724E1E9B2024478CF@MIEXCH.Marlow.ii-vi.net> Yes, but it's returning IP information, not performing TCP/IP comms. The basics are there, but to 'return' comms, using strictly API's, you have to have a Callback function, because an incoming connection has to alert your code to something happening. Callback functions in VBA worked great in Access 97 (with a custom 'AddressOf' function), but suck in 2000 and on, because if they are 'active' and you go into debug mode, it will wreak havoc with Access. Drew -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Tuesday, June 30, 2009 2:00 PM To: 'Discussion concerning Visual Basic and related programming issues.' Subject: Re: [dba-VB] Messaging For JWC WAS: Syslogs Drew, have you looked at Stuart's posting. It is all API and works fine. Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: 30 June 2009 19:46 To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Messaging For JWC WAS: Syslogs Native does put a crimp in things. TCP/IP communications is pretty easy with a Winsock control. It can be done with API's but it's a pain, and you need to deal with callback functions, which have issues in and of themselves in Access 2000 and on. If you were ok with an .ocx, I could whip that up, if you need something native, that would require callbacks, and a lot more coding. If you want to play around with it, what you need to do is use UDP to 'broadcast' a hello and goodbye message, to alert everything on the subnet. (And you have to filter that message on the broadcasting machine, cause it'll pick up it's own message). In that hello/goodbye message, you can include all the info you want (username, computername, IP,etc). Then it's just a matter of using TCP for direct comms between two machines. Drew -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, June 30, 2009 12:45 PM To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Messaging For JWC WAS: Syslogs Drew, I really want this but it has to be vba native, no OCXs. I am familiar with OCXs that are part of Access, and that is OK. This would be used with my framework and I cannot guarantee that i can register anything. It has to just work. John W. Colby www.ColbyConsulting.com Drew Wutka wrote: > Is this something you really want? > > It would be pretty simple to create an OCX that you could have on a > hidden form, that would 'see' all running instances of your application, > and be able to 'communicate' to them. > > There is one quirk. It'll work on a standard network. However, if your > network is subnetted, it would only 'see' what's in the local subnet > (because the best way to do this is to send out a broadcast 'hello' and > 'goodbye' message). To work with a subnetted network, you'd have to > come up with a 'server/client' scenario, so the server would see all the > connected users (sort of like a custom DNS server). > > If you aren't worried about a subnetted network, let me know, I am > pretty sure I can whip up an OCX to do what you want. > > Drew _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From max.wanadoo at gmail.com Tue Jun 30 14:15:34 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Tue, 30 Jun 2009 20:15:34 +0100 Subject: [dba-VB] Messaging For JWC WAS: Syslogs In-Reply-To: <A5615CBECEC42E4791D7A7C724E1E9B2024478CF@MIEXCH.Marlow.ii-vi.net> References: <sa490e7e.066@cactus.dk> <4A49027A.5000604@colbyconsulting.com><A5615CBECEC42E4791D7A7C724E1E9B2024478C9@MIEXCH.Marlow.ii-vi.net> <4A4A4F27.6010606@colbyconsulting.com><A5615CBECEC42E4791D7A7C724E1E9B2024478CC@MIEXCH.Marlow.ii-vi.net> <4a4a60ca.0a1ad00a.63e4.2ae9@mx.google.com> <A5615CBECEC42E4791D7A7C724E1E9B2024478CF@MIEXCH.Marlow.ii-vi.net> Message-ID: <4a4a645a.0707d00a.4823.0b6a@mx.google.com> Ok, thanks. Forgive my ignorance as I am out of my depth here, but can I ask if the use of WithEvents would solve this situation? Also, why did it work in '97 and not thereafter. Did they remove "bits" or change them or what? Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: 30 June 2009 20:10 To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Messaging For JWC WAS: Syslogs Yes, but it's returning IP information, not performing TCP/IP comms. The basics are there, but to 'return' comms, using strictly API's, you have to have a Callback function, because an incoming connection has to alert your code to something happening. Callback functions in VBA worked great in Access 97 (with a custom 'AddressOf' function), but suck in 2000 and on, because if they are 'active' and you go into debug mode, it will wreak havoc with Access. Drew -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Tuesday, June 30, 2009 2:00 PM To: 'Discussion concerning Visual Basic and related programming issues.' Subject: Re: [dba-VB] Messaging For JWC WAS: Syslogs Drew, have you looked at Stuart's posting. It is all API and works fine. Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: 30 June 2009 19:46 To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Messaging For JWC WAS: Syslogs Native does put a crimp in things. TCP/IP communications is pretty easy with a Winsock control. It can be done with API's but it's a pain, and you need to deal with callback functions, which have issues in and of themselves in Access 2000 and on. If you were ok with an .ocx, I could whip that up, if you need something native, that would require callbacks, and a lot more coding. If you want to play around with it, what you need to do is use UDP to 'broadcast' a hello and goodbye message, to alert everything on the subnet. (And you have to filter that message on the broadcasting machine, cause it'll pick up it's own message). In that hello/goodbye message, you can include all the info you want (username, computername, IP,etc). Then it's just a matter of using TCP for direct comms between two machines. Drew -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, June 30, 2009 12:45 PM To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Messaging For JWC WAS: Syslogs Drew, I really want this but it has to be vba native, no OCXs. I am familiar with OCXs that are part of Access, and that is OK. This would be used with my framework and I cannot guarantee that i can register anything. It has to just work. John W. Colby www.ColbyConsulting.com Drew Wutka wrote: > Is this something you really want? > > It would be pretty simple to create an OCX that you could have on a > hidden form, that would 'see' all running instances of your application, > and be able to 'communicate' to them. > > There is one quirk. It'll work on a standard network. However, if your > network is subnetted, it would only 'see' what's in the local subnet > (because the best way to do this is to send out a broadcast 'hello' and > 'goodbye' message). To work with a subnetted network, you'd have to > come up with a 'server/client' scenario, so the server would see all the > connected users (sort of like a custom DNS server). > > If you aren't worried about a subnetted network, let me know, I am > pretty sure I can whip up an OCX to do what you want. > > Drew _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. _______________________________________________ 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 Jun 30 14:21:09 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 30 Jun 2009 15:21:09 -0400 Subject: [dba-VB] Messaging For JWC WAS: Syslogs In-Reply-To: <A5615CBECEC42E4791D7A7C724E1E9B2024478CF@MIEXCH.Marlow.ii-vi.net> References: <sa490e7e.066@cactus.dk> <4A49027A.5000604@colbyconsulting.com><A5615CBECEC42E4791D7A7C724E1E9B2024478C9@MIEXCH.Marlow.ii-vi.net> <4A4A4F27.6010606@colbyconsulting.com><A5615CBECEC42E4791D7A7C724E1E9B2024478CC@MIEXCH.Marlow.ii-vi.net> <4a4a60ca.0a1ad00a.63e4.2ae9@mx.google.com> <A5615CBECEC42E4791D7A7C724E1E9B2024478CF@MIEXCH.Marlow.ii-vi.net> Message-ID: <4A4A65A5.8080101@colbyconsulting.com> Drew, >If you want to play around with it, what you need to do is use UDP to 'broadcast' a hello and goodbye message, to alert everything on the subnet. (And you have to filter that message on the broadcasting machine, cause it'll pick up it's own message). In that hello/goodbye message, you can include all the info you want (username, computername, IP,etc). Then it's just a matter of using TCP for direct comms between two machines. In fact I don't want direct comms between machines, I want precisely "broadcast" messages. "Hey everybody, I added a new record in tblX". Any machine receiving that message promptly refreshes the cache for that table. "Hey everybody, we are shutting down the BE in 10 minutes, get out". Any machine receiving the message pops up a message to the user telling them to finish up and get out of the database. That kind of message. I really don't care about sending to a specific machine, I care about sending to ALL machines. John W. Colby www.ColbyConsulting.com > > Native does put a crimp in things. TCP/IP communications is pretty easy > with a Winsock control. It can be done with API's but it's a pain, and > you need to deal with callback functions, which have issues in and of > themselves in Access 2000 and on. > > If you were ok with an .ocx, I could whip that up, if you need something > native, that would require callbacks, and a lot more coding. If you > want to play around with it, what you need to do is use UDP to > 'broadcast' a hello and goodbye message, to alert everything on the > subnet. (And you have to filter that message on the broadcasting > machine, cause it'll pick up it's own message). In that hello/goodbye > message, you can include all the info you want (username, computername, > IP,etc). Then it's just a matter of using TCP for direct comms between > two machines. > > Drew > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Tuesday, June 30, 2009 12:45 PM > To: Discussion concerning Visual Basic and related programming issues. > Subject: Re: [dba-VB] Messaging For JWC WAS: Syslogs > > Drew, > > I really want this but it has to be vba native, no OCXs. I am familiar > with OCXs that are part of > Access, and that is OK. > > This would be used with my framework and I cannot guarantee that i can > register anything. It has to > just work. > > John W. Colby > www.ColbyConsulting.com > > > Drew Wutka wrote: >> Is this something you really want? >> >> It would be pretty simple to create an OCX that you could have on a >> hidden form, that would 'see' all running instances of your > application, >> and be able to 'communicate' to them. >> >> There is one quirk. It'll work on a standard network. However, if > your >> network is subnetted, it would only 'see' what's in the local subnet >> (because the best way to do this is to send out a broadcast 'hello' > and >> 'goodbye' message). To work with a subnetted network, you'd have to >> come up with a 'server/client' scenario, so the server would see all > the >> connected users (sort of like a custom DNS server). >> >> If you aren't worried about a subnetted network, let me know, I am >> pretty sure I can whip up an OCX to do what you want. >> >> Drew > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > The information contained in this transmission is intended only for the > person or entity > to which it is addressed and may contain II-VI Proprietary and/or II-VI > Business > Sensitive material. If you are not the intended recipient, please > contact > the sender > immediately and destroy the material in its entirety, whether electronic > or > hard copy. > You are notified that any review, retransmission, copying, disclosure, > dissemination, > or other use of, or taking of any action in reliance upon this > information > by persons > or entities other than the intended recipient is prohibited. > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > The information contained in this transmission is intended only for the person or entity > to which it is addressed and may contain II-VI Proprietary and/or II-VI Business > Sensitive material. If you are not the intended recipient, please contact the sender > immediately and destroy the material in its entirety, whether electronic or hard copy. > You are notified that any review, retransmission, copying, disclosure, dissemination, > or other use of, or taking of any action in reliance upon this information by persons > or entities other than the intended recipient is prohibited. > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From max.wanadoo at gmail.com Tue Jun 30 14:29:09 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Tue, 30 Jun 2009 20:29:09 +0100 Subject: [dba-VB] Messaging For JWC WAS: Syslogs In-Reply-To: <4A4A65A5.8080101@colbyconsulting.com> References: <sa490e7e.066@cactus.dk> <4A49027A.5000604@colbyconsulting.com><A5615CBECEC42E4791D7A7C724E1E9B2024478C9@MIEXCH.Marlow.ii-vi.net> <4A4A4F27.6010606@colbyconsulting.com><A5615CBECEC42E4791D7A7C724E1E9B2024478CC@MIEXCH.Marlow.ii-vi.net> <4a4a60ca.0a1ad00a.63e4.2ae9@mx.google.com> <A5615CBECEC42E4791D7A7C724E1E9B2024478CF@MIEXCH.Marlow.ii-vi.net> <4A4A65A5.8080101@colbyconsulting.com> Message-ID: <4a4a6788.1c05d00a.13ad.7ae6@mx.google.com> So, why not use NET SEND? Using Stuart's code you have the machine names on the net if you want to pick one. If you want to broadcast to all send to * Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: 30 June 2009 20:21 To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Messaging For JWC WAS: Syslogs Drew, >If you want to play around with it, what you need to do is use UDP to 'broadcast' a hello and goodbye message, to alert everything on the subnet. (And you have to filter that message on the broadcasting machine, cause it'll pick up it's own message). In that hello/goodbye message, you can include all the info you want (username, computername, IP,etc). Then it's just a matter of using TCP for direct comms between two machines. In fact I don't want direct comms between machines, I want precisely "broadcast" messages. "Hey everybody, I added a new record in tblX". Any machine receiving that message promptly refreshes the cache for that table. "Hey everybody, we are shutting down the BE in 10 minutes, get out". Any machine receiving the message pops up a message to the user telling them to finish up and get out of the database. That kind of message. I really don't care about sending to a specific machine, I care about sending to ALL machines. John W. Colby www.ColbyConsulting.com > > Native does put a crimp in things. TCP/IP communications is pretty easy > with a Winsock control. It can be done with API's but it's a pain, and > you need to deal with callback functions, which have issues in and of > themselves in Access 2000 and on. > > If you were ok with an .ocx, I could whip that up, if you need something > native, that would require callbacks, and a lot more coding. If you > want to play around with it, what you need to do is use UDP to > 'broadcast' a hello and goodbye message, to alert everything on the > subnet. (And you have to filter that message on the broadcasting > machine, cause it'll pick up it's own message). In that hello/goodbye > message, you can include all the info you want (username, computername, > IP,etc). Then it's just a matter of using TCP for direct comms between > two machines. > > Drew > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Tuesday, June 30, 2009 12:45 PM > To: Discussion concerning Visual Basic and related programming issues. > Subject: Re: [dba-VB] Messaging For JWC WAS: Syslogs > > Drew, > > I really want this but it has to be vba native, no OCXs. I am familiar > with OCXs that are part of > Access, and that is OK. > > This would be used with my framework and I cannot guarantee that i can > register anything. It has to > just work. > > John W. Colby > www.ColbyConsulting.com > > > Drew Wutka wrote: >> Is this something you really want? >> >> It would be pretty simple to create an OCX that you could have on a >> hidden form, that would 'see' all running instances of your > application, >> and be able to 'communicate' to them. >> >> There is one quirk. It'll work on a standard network. However, if > your >> network is subnetted, it would only 'see' what's in the local subnet >> (because the best way to do this is to send out a broadcast 'hello' > and >> 'goodbye' message). To work with a subnetted network, you'd have to >> come up with a 'server/client' scenario, so the server would see all > the >> connected users (sort of like a custom DNS server). >> >> If you aren't worried about a subnetted network, let me know, I am >> pretty sure I can whip up an OCX to do what you want. >> >> Drew > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > The information contained in this transmission is intended only for the > person or entity > to which it is addressed and may contain II-VI Proprietary and/or II-VI > Business > Sensitive material. If you are not the intended recipient, please > contact > the sender > immediately and destroy the material in its entirety, whether electronic > or > hard copy. > You are notified that any review, retransmission, copying, disclosure, > dissemination, > or other use of, or taking of any action in reliance upon this > information > by persons > or entities other than the intended recipient is prohibited. > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > The information contained in this transmission is intended only for the person or entity > to which it is addressed and may contain II-VI Proprietary and/or II-VI Business > Sensitive material. If you are not the intended recipient, please contact the sender > immediately and destroy the material in its entirety, whether electronic or hard copy. > You are notified that any review, retransmission, copying, disclosure, dissemination, > or other use of, or taking of any action in reliance upon this information by persons > or entities other than the intended recipient is prohibited. > > > _______________________________________________ > 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 Tue Jun 30 14:40:41 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 30 Jun 2009 15:40:41 -0400 Subject: [dba-VB] Messaging For JWC WAS: Syslogs In-Reply-To: <4a4a6788.1c05d00a.13ad.7ae6@mx.google.com> References: <sa490e7e.066@cactus.dk> <4A49027A.5000604@colbyconsulting.com><A5615CBECEC42E4791D7A7C724E1E9B2024478C9@MIEXCH.Marlow.ii-vi.net> <4A4A4F27.6010606@colbyconsulting.com><A5615CBECEC42E4791D7A7C724E1E9B2024478CC@MIEXCH.Marlow.ii-vi.net> <4a4a60ca.0a1ad00a.63e4.2ae9@mx.google.com> <A5615CBECEC42E4791D7A7C724E1E9B2024478CF@MIEXCH.Marlow.ii-vi.net> <4A4A65A5.8080101@colbyconsulting.com> <4a4a6788.1c05d00a.13ad.7ae6@mx.google.com> Message-ID: <4A4A6A39.9000503@colbyconsulting.com> As I said, I will be looking at this stuff. I too am out of my league here. John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > So, why not use NET SEND? > > Using Stuart's code you have the machine names on the net if you want to > pick one. If you want to broadcast to all send to * > > > Max > > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: 30 June 2009 20:21 > To: Discussion concerning Visual Basic and related programming issues. > Subject: Re: [dba-VB] Messaging For JWC WAS: Syslogs > > Drew, > > >If you want to play around with it, what you need to do is use UDP to > 'broadcast' a hello and > goodbye message, to alert everything on the subnet. (And you have to filter > that message on the > broadcasting machine, cause it'll pick up it's own message). In that > hello/goodbye message, you can > include all the info you want (username, computername, IP,etc). Then it's > just a matter of using > TCP for direct comms between two machines. > > In fact I don't want direct comms between machines, I want precisely > "broadcast" messages. "Hey > everybody, I added a new record in tblX". Any machine receiving that > message promptly refreshes the > cache for that table. > > "Hey everybody, we are shutting down the BE in 10 minutes, get out". Any > machine receiving the > message pops up a message to the user telling them to finish up and get out > of the database. > > That kind of message. I really don't care about sending to a specific > machine, I care about sending > to ALL machines. > > John W. Colby > www.ColbyConsulting.com > > >> Native does put a crimp in things. TCP/IP communications is pretty easy >> with a Winsock control. It can be done with API's but it's a pain, and >> you need to deal with callback functions, which have issues in and of >> themselves in Access 2000 and on. >> >> If you were ok with an .ocx, I could whip that up, if you need something >> native, that would require callbacks, and a lot more coding. If you >> want to play around with it, what you need to do is use UDP to >> 'broadcast' a hello and goodbye message, to alert everything on the >> subnet. (And you have to filter that message on the broadcasting >> machine, cause it'll pick up it's own message). In that hello/goodbye >> message, you can include all the info you want (username, computername, >> IP,etc). Then it's just a matter of using TCP for direct comms between >> two machines. >> >> Drew >> >> -----Original Message----- >> From: dba-vb-bounces at databaseadvisors.com >> [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby >> Sent: Tuesday, June 30, 2009 12:45 PM >> To: Discussion concerning Visual Basic and related programming issues. >> Subject: Re: [dba-VB] Messaging For JWC WAS: Syslogs >> >> Drew, >> >> I really want this but it has to be vba native, no OCXs. I am familiar >> with OCXs that are part of >> Access, and that is OK. >> >> This would be used with my framework and I cannot guarantee that i can >> register anything. It has to >> just work. >> >> John W. Colby >> www.ColbyConsulting.com >> >> >> Drew Wutka wrote: >>> Is this something you really want? >>> >>> It would be pretty simple to create an OCX that you could have on a >>> hidden form, that would 'see' all running instances of your >> application, >>> and be able to 'communicate' to them. >>> >>> There is one quirk. It'll work on a standard network. However, if >> your >>> network is subnetted, it would only 'see' what's in the local subnet >>> (because the best way to do this is to send out a broadcast 'hello' >> and >>> 'goodbye' message). To work with a subnetted network, you'd have to >>> come up with a 'server/client' scenario, so the server would see all >> the >>> connected users (sort of like a custom DNS server). >>> >>> If you aren't worried about a subnetted network, let me know, I am >>> pretty sure I can whip up an OCX to do what you want. >>> >>> Drew >> _______________________________________________ >> dba-VB mailing list >> dba-VB at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/dba-vb >> http://www.databaseadvisors.com >> >> The information contained in this transmission is intended only for the >> person or entity >> to which it is addressed and may contain II-VI Proprietary and/or II-VI >> Business >> Sensitive material. If you are not the intended recipient, please >> contact >> the sender >> immediately and destroy the material in its entirety, whether electronic >> or >> hard copy. >> You are notified that any review, retransmission, copying, disclosure, >> dissemination, >> or other use of, or taking of any action in reliance upon this >> information >> by persons >> or entities other than the intended recipient is prohibited. >> >> >> _______________________________________________ >> dba-VB mailing list >> dba-VB at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/dba-vb >> http://www.databaseadvisors.com >> >> _______________________________________________ >> dba-VB mailing list >> dba-VB at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/dba-vb >> http://www.databaseadvisors.com >> >> The information contained in this transmission is intended only for the > person or entity >> to which it is addressed and may contain II-VI Proprietary and/or II-VI > Business >> Sensitive material. If you are not the intended recipient, please contact > the sender >> immediately and destroy the material in its entirety, whether electronic > or hard copy. >> You are notified that any review, retransmission, copying, disclosure, > dissemination, >> or other use of, or taking of any action in reliance upon this information > by persons >> or entities other than the intended recipient is prohibited. >> >> >> _______________________________________________ >> dba-VB mailing list >> dba-VB at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/dba-vb >> http://www.databaseadvisors.com >> >> > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From Gustav at cactus.dk Tue Jun 30 16:02:21 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 30 Jun 2009 23:02:21 +0200 Subject: [dba-VB] favicon (was: Syslogs) Message-ID: <sa4a9990.001@cactus.dk> Hi Drew All tests have been done on a hosted IIS7. /gustav >>> DWUTKA at marlow.com 30-06-2009 20:42 >>> The reason those href's might not work is going to be dependant upon whether or not IIS is running. If you have a webserver, then a URL can be 'soft', or based on the root of the webserver. No webserver, everything must include a full URL (or 'hard' URL). Drew -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, June 30, 2009 12:06 PM To: dba-vb at databaseadvisors.com Subject: [dba-VB] favicon (was: Syslogs) Hi Drew That gives me an idea regarding favicon. I've found that it is sometimes difficult to get IE to understand that a favicon is present and should be displayed. Some common methods are: <!-- Favicon for IE browsers --> <link rel="shortcut icon" href="favicon.ico" /> <!-- Favicon for other browsers --> <link rel="icon" href="favicon.ico" /> This typically doesn't work. These may: <link rel="shortcut icon" href="/favicon.ico" /> mtaulty.com/CommunityServer: <link rel="shortcut icon" type="image/ico" href="/CommunityServer/favicon.ico" /> <link rel="shortcut icon" href="http://www.examplesite.com/favicon.ico" type="image/x-icon" /> The most reliable method I've found is the last - to use the full URL - but it is not nice to have hardcoded strings like these. So how about using your method: <link rel="shortcut icon" href="http://127.0.0.1/favicon.ico" type="image/x-icon" /> or localhost: <link rel="shortcut icon" href="http://localhost/favicon.ico" type="image/x-icon" /> Anyone having experience with this? /gustav >>> DWUTKA at marlow.com 30-06-2009 18:49 >>> Actually, if you have an IP address, it is real. It then gets into what it is used for. For example, with your wireless, if it's not connected, it won't have an IP address. If a standard NIC is not connected, it will show no address. If it IS connected, but not receiving an IP address, it will default to a (I think) 169 something, which is a hard coded address, which means nothing. You can also have internal addresses such as 127.0.0.1, which is a loopback to your local machine. (so if you are running a website, putting in http://127.0.0.1 on the server will give you the local website). Drew From stuart at lexacorp.com.pg Tue Jun 30 16:40:26 2009 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 01 Jul 2009 07:40:26 +1000 Subject: [dba-VB] Syslogs In-Reply-To: <4a4a4b16.1c05d00a.735a.08ee@mx.google.com> References: <sa4a1857.085@cactus.dk>, <4A4A0CCF.5521.1B8DFD71@stuart.lexacorp.com.pg>, <4a4a4b16.1c05d00a.735a.08ee@mx.google.com> Message-ID: <4A4A864A.25927.1D68884C@stuart.lexacorp.com.pg> I dunno, I've never needed to find it, but John, Gustav & co were talking about needing to know he Subnet mask so I decided it would be a good idea to include it in the Class. On 30 Jun 2009 at 18:27, Max Wanadoo wrote: > Stuart, this is good stuff. > Why would I need to know the subnet mask in the context of finding the IP > and Hostname? > > Max > > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan > Sent: 30 June 2009 14:02 > To: Discussion concerning Visual Basic and related programming issues. > Subject: Re: [dba-VB] Syslogs > > On 30 Jun 2009 at 13:50, Gustav Brock wrote: > > > However, no function is included to reveal the subnet mask. The only > "human" method I > >can locate for this purpose is to look up the registry: > > I just found another API call which returns more info including the SubNet > mask(s) so I've > modified clsResolve to include GetMyIPMask: > > Option Compare Database > Option Explicit > > '// define constants > Private Const IP_SUCCESS As Long = 0 > Private Const SOCKET_ERROR As Long = -1 > > Private Const MAX_WSADescription As Long = 256 > Private Const MAX_WSASYSStatus As Long = 128 > Private Const MIN_SOCKETS_REQD As Long = 1 > > Private Const WS_VERSION_REQD As Long = &H101 > Private Const WS_VERSION_MAJOR As Long = WS_VERSION_REQD \ &H100 And > &HFF& > Private Const WS_VERSION_MINOR As Long = WS_VERSION_REQD And &HFF& > > Private Const WSADescription_Len As Long = 256 > Private Const WSASYS_Status_Len As Long = 128 > Private Const AF_INET As Long = 2 > > '// structures > > Private Type HOSTENT > hName As Long > hAliases As Long > hAddrType As Integer > hLength As Integer > hAddrList As Long > End Type > > > Private Type WSADATA > wVersion As Integer > wHighVersion As Integer > szDescription(0 To MAX_WSADescription) As Byte > szSystemStatus(0 To MAX_WSASYSStatus) As Byte > wMaxSockets As Long > wMaxUDPDG As Long > dwVendorInfo As Long > End Type > > Private Type IPINFO > dwAddr As Long ' IP address > dwIndex As Long ' interface index > dwMask As Long ' subnet mask > dwBCastAddr As Long ' broadcast address > dwReasmSize As Long ' assembly size > unused1 As Integer ' not currently used > unused2 As Integer '; not currently used > End Type > > Private Type MIB_IPADDRTABLE > dEntrys As Long 'number of entries in the table > mIPInfo(5) As IPINFO 'array of IP address entries assumes maximum of 5 > Interfaces > End Type > > Private Type IP_Array > mBuffer As MIB_IPADDRTABLE > BufferLen As Long > End Type > > > '// api > 'kernel32 > Private Declare Sub apiCopyMemory Lib "kernel32" Alias "RtlMoveMemory" > (xDest As Any, > xSource As Any, ByVal nBytes As Long) > Private Declare Function apiStrLen Lib "kernel32" Alias "lstrlenA" (lpString > As Any) As Long > 'wsock32 > Private Declare Function apiGetHostByName Lib "wsock32.dll" Alias > "gethostbyname" > (ByVal hostname As String) As Long > Private Declare Function apiWSAStartup Lib "wsock32.dll" Alias "WSAStartup" > (ByVal > wVersionRequired As Long, lpWSADATA As WSADATA) As Long > Private Declare Function apiWSACleanup Lib "wsock32.dll" Alias "WSACleanup" > () As Long > Private Declare Function apiInetAddr Lib "wsock32.dll" Alias "inet_addr" > (ByVal s As String) > As Long > Private Declare Function apiGetHostByAddr Lib "wsock32.dll" Alias > "gethostbyaddr" (haddr > As Long, ByVal hnlen As Long, ByVal addrtype As Long) As Long > Private Declare Function apiGetHostName Lib "wsock32.dll" Alias > "gethostname" (ByVal > hostname$, ByVal HostLen As Integer) As Long > 'IPHlpAPI > Private Declare Function GetIpAddrTable Lib "IPHlpApi" (pIPAdrTable As Byte, > pdwSize As > Long, ByVal Sort As Long) As Long > > '// private functions > Private Function InitializeSocket() As Boolean > Dim WSAD As WSADATA > > 'attempt to initialize the socket > InitializeSocket = apiWSAStartup(WS_VERSION_REQD, WSAD) = IP_SUCCESS > End Function > > Private Sub CloseSocket() > 'try to close the socket > If apiWSACleanup() <> 0 Then > MsgBox "Error calling apiWSACleanup.", vbCritical > End If > > End Sub > > Public Function GetIPFromHostName(ByVal sHostName As String) As String > 'converts a host name to an IP address. > > Dim nBytes As Long > Dim ptrHosent As Long > Dim hstHost As HOSTENT > Dim ptrName As Long > Dim ptrAddress As Long > Dim ptrIPAddress As Long > Dim sAddress As String 'declare this as Dim sAddress(1) As String if you > want 2 ip > addresses returned > > 'try to initalize the socket > If InitializeSocket() = True Then > > 'try to get the IP > ptrHosent = apiGetHostByName(sHostName & vbNullChar) > > If ptrHosent <> 0 Then > > 'get the IP address > apiCopyMemory hstHost, ByVal ptrHosent, LenB(hstHost) > apiCopyMemory ptrIPAddress, ByVal hstHost.hAddrList, 4 > > 'fill buffer > sAddress = Space$(4) > 'if you want multiple domains returned, > 'fill all items in sAddress array with 4 spaces > > apiCopyMemory ByVal sAddress, ByVal ptrIPAddress, > hstHost.hLength > > 'change this to > 'CopyMemory ByVal sAddress(0), ByVal ptrIPAddress, > hstHost.hLength > 'if you want an array of ip addresses returned > '(some domains have more than one ip address associated with it) > > 'get the IP address > GetIPFromHostName = IPToText(sAddress) > 'if you are using multiple addresses, you need > IPToText(sAddress(0)) & "," & > IPToText(sAddress(1)) > 'etc > End If > Else > MsgBox "Failed to open Socket." > End If > End Function > > Private Function IPToText(ByVal IPAddress As String) As String > 'converts characters to numbers > IPToText = CStr(Asc(IPAddress)) & "." & _ > CStr(Asc(Mid$(IPAddress, 2, 1))) & "." & _ > CStr(Asc(Mid$(IPAddress, 3, 1))) & "." & _ > CStr(Asc(Mid$(IPAddress, 4, 1))) > End Function > > Private Function ConvertAddressToString(longAddr As Long) As String > Dim myByte(3) As Byte > Dim Cnt As Long > CopyMemory myByte(0), longAddr, 4 > For Cnt = 0 To 3 > ConvertAddressToString = ConvertAddressToString + CStr(myByte(Cnt)) > + "." > Next Cnt > ConvertAddressToString = Left$(ConvertAddressToString, > Len(ConvertAddressToString) > - 1) > End Function > > > Public Function GetHostNameFromIP(ByVal sIPAddress As String) As String > Dim ptrHosent As Long > Dim hAddress As Long > Dim sHost As String > Dim nBytes As Long > > 'try to open the socket > If InitializeSocket() = True Then > > 'convert string address to long datatype > hAddress = apiInetAddr(sIPAddress) > > 'check if an error ocucred > If hAddress <> SOCKET_ERROR Then > > 'obtain a pointer to the HOSTENT structure > 'that contains the name and address > 'corresponding to the given network address. > ptrHosent = apiGetHostByAddr(hAddress, 4, AF_INET) > > If ptrHosent <> 0 Then > > 'convert address and > 'get resolved hostname > > apiCopyMemory ptrHosent, ByVal ptrHosent, 4 > > nBytes = apiStrLen(ByVal ptrHosent) > > If nBytes > 0 Then > 'fill the IP address buffer > sHost = Space$(nBytes) > > apiCopyMemory ByVal sHost, ByVal ptrHosent, nBytes > GetHostNameFromIP = sHost > End If > Else > MsgBox "Call to gethostbyaddr failed." > End If > 'close the socket > CloseSocket > Else > MsgBox "Invalid IP address" > End If > Else > MsgBox "Failed to open Socket" > End If > End Function > > > Public Function GetMyHostName() As String > 'Finds local HostName > Dim strHostname As String > Dim lngHostLen As Long > 'try to initalize the socket > If InitializeSocket() = True Then > lngHostLen = 256 > strHostname = Space$(lngHostLen) > If apiGetHostName(strHostname, lngHostLen) = SOCKET_ERROR Then > MsgBox "Windows Sockets error getting Host Name" > Else > strHostname = Trim$(strHostname) > strHostname = Left$(strHostname, Len(strHostname) - 1) > End If > Else > MsgBox "Failed to open Socket." > End If > GetMyHostName = strHostname > End Function > > Public Function GetMyIPAddress() As String > GetMyIPAddress = GetIPFromHostName(GetMyHostName) > End Function > > Public Function GetMyIPMask() > Dim Ret As Long > Dim bBytes() As Byte > Dim tel As Long > Dim Listing As MIB_IPADDRTABLE > On Error GoTo END1 > GetIpAddrTable ByVal 0&, Ret, True > If Ret <= 0 Then Exit Function > ReDim bBytes(0 To Ret - 1) As Byte > 'retrieve the data > GetIpAddrTable bBytes(0), Ret, False > 'Get the first 4 bytes to get the entry's.. ip installed > CopyMemory Listing.dEntrys, bBytes(0), 4 > 'Copy whole structure to Listing and return for Adapter 1 (Adapter 0 > = Loopback) > CopyMemory Listing.mIPInfo(1), bBytes(4 + > (Len(Listing.mIPInfo(0)))), > Len(Listing.mIPInfo(1)) > GetIPMask = ConvertAddressToString(Listing.mIPInfo(1).dwMask) > Exit Function > END1: > MsgBox "Error Resolving Subnet Mask" > End Function > > > > > > > _______________________________________________ > 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 stuart at lexacorp.com.pg Tue Jun 30 17:13:21 2009 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 01 Jul 2009 08:13:21 +1000 Subject: [dba-VB] Syslogs In-Reply-To: <4A4A40BC.6060905@colbyconsulting.com> References: <sa490735.064@cactus.dk>, <A5615CBECEC42E4791D7A7C724E1E9B2024478C6@MIEXCH.Marlow.ii-vi.net>, <4A4A40BC.6060905@colbyconsulting.com> Message-ID: <4A4A8E01.28725.1D86AB27@stuart.lexacorp.com.pg> clResolve currently returns a string for Adapter 1. It can be easily modified to return arrays of Addresses and Masks for each adapter. (read the comments) -- Stuart On 30 Jun 2009 at 12:43, jwcolby wrote: > Yes, but then you have to do more. IPConfig shows several IP addresses on my work laptop. One is > the wireless, which only works when in range of a wireless network, one is a physical NIC, and one > is a Hamachi IP. There could be even more. On my server I have two physical NICS and in theory > each could have asked for an IP address. > > So would the REAL IP address please stand up. > > John W. Colby > www.ColbyConsulting.com > > > Drew Wutka wrote: > > There are several ways to get your IP address. Two I've used is to use > > a Winsock control, and look at the local host IP. > > > > Another relatively easy way is to dump the results of IPCONFIG to a text > > file. > > > > Create a .bat file (call it iptest.bat) and put the following line in > > it: > > > > Ipconfig >C:\ip.txt > > > > Then using ShellWait (http://mvps.org/access/api/api0004.htm) > > > > Use this function: > > > > Function IPAddresses() As String > > Dim f As Long > > Dim strTemp As String > > Dim strArray() As String > > If Dir("C:\ip.txt") <> "" Then Kill "C:\ip.txt" > > ShellWait "C:\iptest.bat" > > f = FreeFile > > Open "C:\ip.txt" For Binary Access Read As f > > strTemp = Space(LOF(f)) > > Get f, , strTemp > > Close f > > strArray = Split(strTemp, vbCrLf) > > strTemp = "" > > For f = 0 To UBound(strArray) > > If InStr(1, strArray(f), "IPv4", vbTextCompare) > 0 Or InStr(1, > > strArray(f), " IP Address", vbTextCompare) > 0 Then > > strTemp = strTemp & Trim(Mid(strArray(f), InStr(1, strArray(f), > > ":", vbBinaryCompare) + 1)) & ";" > > End If > > Next f > > If Len(strTemp) > 0 Then strTemp = Left(strTemp, Len(strTemp) - 1) > > IPAddresses = strTemp > > End Function > > > > Whalla, IPAddresses will return as a semicolon delimited string. > > (Obviously you could return an array or create a collection too...either > > way....) > > > > Drew > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From Gustav at cactus.dk Mon Jun 1 08:16:57 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 01 Jun 2009 15:16:57 +0200 Subject: [dba-VB] SCRUM/WPF - Buttons Styling Exerc izes Message-ID: <sa23f10a.013@cactus.dk> Hi Shamil Have you tried using the deplay wizard of VS? /gustav >>> Salakhetdinov Shamil <mcp2004 at mail.ru> 01-06-2009 00:25 >>> Hi Robert at All, I have made sample SilverLight application and I have got it installed (by XCOPY) here: http://shamils-4.hosting.parking.ru/sl It works well when running locally in debug mode under VS2008 SP1 but it does not show anything in SilverLight when running from the above link. What could be wrong? Thank you. -- Shamil P.S. Here is the main code of the above sample application: http://shamils-4.hosting.parking.ru/sl Page1.xaml ======== <UserControl x:Class="SLA1.Page" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Width="400" Height="300"> <Grid x:Name="LayoutRoot" Background="White"> <Grid.RowDefinitions> <RowDefinition Height="50"></RowDefinition> <RowDefinition Height="50"></RowDefinition> <RowDefinition Height="50"></RowDefinition> <RowDefinition Height="50"></RowDefinition> <RowDefinition Height="50*"></RowDefinition> </Grid.RowDefinitions> <Grid.ColumnDefinitions> <ColumnDefinition Width="200"></ColumnDefinition> <ColumnDefinition Width="60*"></ColumnDefinition> </Grid.ColumnDefinitions> <TextBlock Margin="10" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="0">User Name:</TextBlock> <TextBox x:Name="txtUserName" Height="30" Width="100" HorizontalAlignment="Left" Grid.Row="1" Grid.Column="1" Text="guest"></TextBox> <TextBlock Margin="10" HorizontalAlignment="Right" VerticalAlignment="Center" Grid.Row="2" Grid.Column="0">Password:</TextBlock> <TextBox x:Name="txtPassword" Height="30" Width="100" HorizontalAlignment="Left" Grid.Row="2" Grid.Column="1" Text="test"></TextBox> <Button Click="Button_Click" Content="OK" Height="30" Width="100" HorizontalAlignment="Left" Grid.Row="3" Grid.Column="1"></Button> </Grid> </UserControl> Page1.xaml.cs ========== using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Windows; using System.Windows.Controls; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Shapes; namespace SLA1 { public partial class Page : UserControl { public Page() { InitializeComponent(); } private void Button_Click(object sender, RoutedEventArgs e) { if (txtUserName.Text != "guest" || txtPassword.Text != "test") MessageBox.Show("Invalid UserName or Password"); else MessageBox.Show("Hello, World!"); } } } -----Original Message----- From: Robert Stewart <robert at webedb.com> To: dba-vb at databaseadvisors.com Date: Sun, 31 May 2009 12:56:07 -0500 Subject: Re: [dba-VB] SCRUM/WPF - Buttons Styling Exercizes > I will be starting to work on a Silverlight application at the end of June. > I am currently working on converting an Access application into WPF > using the entity framework. > > I just created a VM with WIndows 7 RC and VS 2010 Beta 1. I will > be using them to do some presentations at the user group that I teach. > Database and GUI Design. > > There are currently 3 of us working in WPF. One is developing a pipe > yard inventory and shipping application in WPF. The other has developed > oil well information programs in WPF and is working another one now. > I am working a an application that manages social service agencies > that supply people with food, clothes, and other services. From mcp2004 at mail.ru Mon Jun 1 09:22:34 2009 From: mcp2004 at mail.ru (Salakhetdinov Shamil) Date: Mon, 01 Jun 2009 18:22:34 +0400 Subject: [dba-VB] =?koi8-r?b?U0NSVU0vV1BGIC0gQnV0dG9ucyBTdHlsaW5nIEV4ZXJj?= =?koi8-r?b?IGl6ZXM=?= In-Reply-To: <sa23f10a.013@cactus.dk> References: <sa23f10a.013@cactus.dk> Message-ID: <E1MB8PK-0003ib-00.mcp2004-mail-ru@f156.mail.ru> Hi Gustav, No, I didn't try to use deploy wizard - I assumed that SilverLight apps deployment should be as easy as ASP.NET apps - using XCOPY to copy files on prepared ASP.NET app folder - SilverLight app AFAIS is an ASP.NET app starting SilverLight control and feeding it with .xap file's location. I could be wrong with my assumption that SilverLight apps can be deployed using XCOPY. Maybe there should be some special processing of SilverLight app's .xap file on server side, which is currently missing on my ISP site? I will try to consult with SilverLight docs/my ISP or we can find solutions here together? Robert, did you try to deploy SilverLight applications manually? Thank you. -- Shamil -----Original Message----- From: "Gustav Brock" <Gustav at cactus.dk> To: <dba-vb at databaseadvisors.com> Date: Mon, 01 Jun 2009 15:16:57 +0200 Subject: Re: [dba-VB] SCRUM/WPF - Buttons Styling Exerc izes > Hi Shamil > > Have you tried using the deplay wizard of VS? > > /gustav > > > >>> Salakhetdinov Shamil <mcp2004 at mail.ru> 01-06-2009 00:25 >>> > Hi Robert at All, > > I have made sample SilverLight application and I have got it installed (by XCOPY) here: > > http://shamils-4.hosting.parking.ru/sl > > It works well when running locally in debug mode under VS2008 SP1 but it does not show anything in SilverLight when running from the above link. > > What could be wrong? > > Thank you. > > -- > Shamil > > P.S. Here is the main code of the above sample application: > > http://shamils-4.hosting.parking.ru/sl > > Page1.xaml > ======== > > <UserControl x:Class="SLA1.Page" > xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" > xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" > Width="400" Height="300"> > <Grid x:Name="LayoutRoot" Background="White"> > <Grid.RowDefinitions> > <RowDefinition Height="50"></RowDefinition> > <RowDefinition Height="50"></RowDefinition> > <RowDefinition Height="50"></RowDefinition> > <RowDefinition Height="50"></RowDefinition> > <RowDefinition Height="50*"></RowDefinition> > </Grid.RowDefinitions> > <Grid.ColumnDefinitions> > <ColumnDefinition Width="200"></ColumnDefinition> > <ColumnDefinition Width="60*"></ColumnDefinition> > </Grid.ColumnDefinitions> > > <TextBlock Margin="10" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="0">User Name:</TextBlock> > <TextBox x:Name="txtUserName" Height="30" Width="100" HorizontalAlignment="Left" Grid.Row="1" Grid.Column="1" Text="guest"></TextBox> > <TextBlock Margin="10" HorizontalAlignment="Right" VerticalAlignment="Center" Grid.Row="2" Grid.Column="0">Password:</TextBlock> > <TextBox x:Name="txtPassword" Height="30" Width="100" HorizontalAlignment="Left" Grid.Row="2" Grid.Column="1" Text="test"></TextBox> > <Button Click="Button_Click" Content="OK" Height="30" Width="100" HorizontalAlignment="Left" Grid.Row="3" Grid.Column="1"></Button> > > </Grid> > </UserControl> > > > Page1.xaml.cs > ========== > using System; > using System.Collections.Generic; > using System.Linq; > using System.Net; > using System.Windows; > using System.Windows.Controls; > using System.Windows.Documents; > using System.Windows.Input; > using System.Windows.Media; > using System.Windows.Media.Animation; > using System.Windows.Shapes; > > namespace SLA1 > { > public partial class Page : UserControl > { > public Page() > { > InitializeComponent(); > } > > private void Button_Click(object sender, RoutedEventArgs e) > { > if (txtUserName.Text != "guest" || txtPassword.Text != "test") > MessageBox.Show("Invalid UserName or Password"); > else > MessageBox.Show("Hello, World!"); > } > } > } > > > -----Original Message----- > From: Robert Stewart <robert at webedb.com> > To: dba-vb at databaseadvisors.com > Date: Sun, 31 May 2009 12:56:07 -0500 > Subject: Re: [dba-VB] SCRUM/WPF - Buttons Styling Exercizes > > > I will be starting to work on a Silverlight application at the end of June. > > I am currently working on converting an Access application into WPF > > using the entity framework. > > > > I just created a VM with WIndows 7 RC and VS 2010 Beta 1. I will > > be using them to do some presentations at the user group that I teach. > > Database and GUI Design. > > > > There are currently 3 of us working in WPF. One is developing a pipe > > yard inventory and shipping application in WPF. The other has developed > > oil well information programs in WPF and is working another one now. > > I am working a an application that manages social service agencies > > that supply people with food, clothes, and other services. > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From mcp2004 at mail.ru Mon Jun 1 17:17:49 2009 From: mcp2004 at mail.ru (Salakhetdinov Shamil) Date: Tue, 02 Jun 2009 02:17:49 +0400 Subject: [dba-VB] SCRUM/WPF Data Binding Message-ID: <E1MBFpF-0001Nn-00.mcp2004-mail-ru@f254.mail.ru> Hi All, I planned here is the first sample of WPF data bidining: http://shamils-4.hosting.parking.ru/xaml/WpfBrowserApplication2.xbap As you can find it promise to be rather time consuming to implement binding to ADO.NET datasets, which isn't supported natively in .NET 3.5. The following sample just implements bindind to an object instance. Robert, you have experience with VS2010 - does it have advanced data binding controls as e.g. WinForms' BidingSource and BindingNavigator? Thank you. -- Shamil P.S. Here is the code of the referenced above sample page: Shippers.xaml ============= <Page x:Class="WpfBrowserApplication1.ShippersPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="Shippers" Height="180" Width="260"> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="74"/> <ColumnDefinition Width="*"/> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition Height="30"/> <RowDefinition Height="30"/> <RowDefinition Height="30"/> </Grid.RowDefinitions> <TextBlock Margin="4" Text="Id" VerticalAlignment= "Center"/> <TextBox Text="{Binding Path=Id, Mode=TwoWay}" Margin="4" Grid.Column="1"/> <TextBlock Margin="4" Text="Name" Grid.Row="1" VerticalAlignment="Center"/> <TextBox Margin="4" Text="{Binding Path=Name, Mode=TwoWay}" Grid.Column="1" Grid.Row="1"/> <TextBlock Margin="4" Text="Phone" Grid.Row="2" VerticalAlignment="Center"/> <TextBox Margin="4" Text="{Binding Path=Phone, Mode=TwoWay}" Grid.Column="1" Grid.Row="2"/> </Grid> </Page> Shippers.xaml.cs ================ using System.Windows.Controls; using System.ComponentModel; namespace WpfBrowserApplication1 { public partial class ShippersPage : Page { public ShippersPage() { InitializeComponent(); // Set the DataContext // to a Shipper object this.DataContext = new Shipper() { Id = 1, Name = "Speedy Express", Phone = "(503) 555-9831" }; } } public class Shipper : INotifyPropertyChanged { private int _id; public int Id { get { return _id; } set { if (_id != value) { _id = value; OnPropertyChanged("Id"); } } } private string _name; public string Name { get { return _name; } set { _name = value; if (_name != value) { _phone = value; OnPropertyChanged("Name"); } } } private string _phone; public string Phone { get { return _phone; } set { _phone = value; if (_phone != value) { _phone = value; OnPropertyChanged("Phone"); } } } #region INotifyPropertyChanged Members /// Implement INotifyPropertyChanged to notify the binding /// targets when the values of properties change. public event PropertyChangedEventHandler PropertyChanged; private void OnPropertyChanged(string propertyName) { if (this.PropertyChanged != null) { // Raise the PropertyChanged event this.PropertyChanged( this, new PropertyChangedEventArgs( propertyName)); } } #endregion } } From marklbreen at gmail.com Mon Jun 1 17:51:51 2009 From: marklbreen at gmail.com (Mark Breen) Date: Mon, 1 Jun 2009 23:51:51 +0100 Subject: [dba-VB] FYI: SCRUM/Agile - Born To Cycle In-Reply-To: <c7fd28d00906011540s7daea7a0pa556c3082ce413e0@mail.gmail.com> References: <c7fd28d00905281457y4047eb9ya305276299bc2b3d@mail.gmail.com> <E1MA58A-0004XL-00.mcp2004-mail-ru@f229.mail.ru> <c7fd28d00906011540s7daea7a0pa556c3082ce413e0@mail.gmail.com> Message-ID: <c7fd28d00906011551x4b3eb129t71d9d2c635010419@mail.gmail.com> Hello Shamil, I am trying to get some advice from the SVN forums on how to properly manage a private / public server environment which is what we have. When I start to get some results on it, I will offer to attempt to help here. However, before we start that, does the team still want to maintain the private / public source control servers. If so, I will try to get scripts written to automate a release from private to public, but if you are considering switching back to a codeplex only store, then I do not need to write such scripts. It is up to you all to let me know what is best for the team, Shamil, do I get it right that the main problem with the codeplex only environment is that codeplex does not allow certain users to lock files? And do I have it right that you wish to lock the proj files to avoid people messing them up with the have earlier builds? In that case I guess that you must have been maintaining the latest / most correct proj file for the team? Is that right? Actually as I write this email, I realise that I am attempting to assist in solving a problem, but I am not 100% sure I know what the problem really is. I recall it was related to the proj and sln files, but would you like to remind me what the problem was and what you did to over come the problem. I will then try to help, if that help is needed. thanks Mark 2009/5/29 Salakhetdinov Shamil <mcp2004 at mail.ru> > Hello Mark, > > No, I didn't try to use export feature of TortoiseSVN: to publish on > CodePlex we have to get all the source files from latest copy of you server > sources, copy/replace them into local SVN folder of CodePlex (it will have > different files' versions numbers), add all new files to the .svn > descriptors and then submit that new version to CodePlex. AFAIU that should > be doable using SVN commands/scripts/batches but I'm not sure how to make it > 100% safe to add new files' types using such scripts - I mean we have to > list all the file types used as source files and those files types do change > - their set is getting extended - IOW still manual testing/fixing scripts > will be needed I think. > > I haven't time to automate that work - we can make it automated here all > together by writing batches and/or simple C# utitlity controlling such > automated update - whatever would be less time consuming. > > It might happen I'm missing more straightforward way of doing such > synchronbization between your server and CodePlex assumed your server is a > master but CodePlex files have difference version numbers controlled by > CodePlex server. > > Thank you. > > -- > Shamil > > From mcp2004 at mail.ru Tue Jun 2 15:51:20 2009 From: mcp2004 at mail.ru (Salakhetdinov Shamil) Date: Wed, 03 Jun 2009 00:51:20 +0400 Subject: [dba-VB] =?koi8-r?b?RllJOiBTQ1JVTS9BZ2lsZSAtIEJvcm4gVG8gQ3ljbGU=?= In-Reply-To: <c7fd28d00906011551x4b3eb129t71d9d2c635010419@mail.gmail.com> References: <c7fd28d00906011551x4b3eb129t71d9d2c635010419@mail.gmail.com> Message-ID: <E1MBax6-00016U-00.mcp2004-mail-ru@f220.mail.ru> Hello Mark, Yes, I do hope we will have our team "getting in active mode" sometime in the near future and therefore using your server would be preferrable. Yes, the main issue is to get locked solution and project files while changing them as well as form design code files as well as dataset definition files and if we will use ado.net entity framework then model files etc. - codeplex doesn't allow to lock files at all and therefore manual coordination is needed, which in our case looks time consuming... Yes, if you can get advice from SVN forum how to automate the task that could help us: - Basically what is needed is to use your server's local copy repositoty as the source (that will always be on developers' PCs). and copy all the folders and files from it into the target directory (local copy of codeplex repositoty), which will be used to submit changes to codeplex. All source folders can be copied but only the files with given extension from those folders should be copied. After such a copy new folders and files should be included into local svn repository, and the files missing in the source folders but presented in the target folders should be deleted from local codeplex svn repository. And then local codeplex svn repository can be submitted to codeplex SVN server. I think the above procedure can be programmed/automated using C# custom coding calling SVN utlities but it might happen there is somewhere something like that done already... Thank you. -- Shamil -----Original Message----- From: Mark Breen <marklbreen at gmail.com> To: "Discussion concerning Visual Basic and related programming issues."<dba-vb at databaseadvisors.com> Date: Mon, 1 Jun 2009 23:51:51 +0100 Subject: [dba-VB] FYI: SCRUM/Agile - Born To Cycle > Hello Shamil, > I am trying to get some advice from the SVN forums on how to properly manage > a private / public server environment which is what we have. > > When I start to get some results on it, I will offer to attempt to help > here. > > However, before we start that, does the team still want to maintain the > private / public source control servers. If so, I will try to get scripts > written to automate a release from private to public, but if you are > considering switching back to a codeplex only store, then I do not need to > write such scripts. > > It is up to you all to let me know what is best for the team, > > Shamil, do I get it right that the main problem with the codeplex only > environment is that codeplex does not allow certain users to lock files? > And do I have it right that you wish to lock the proj files to avoid people > messing them up with the have earlier builds? In that case I guess that you > must have been maintaining the latest / most correct proj file for the team? > Is that right? Actually as I write this email, I realise that I am > attempting to assist in solving a problem, but I am not 100% sure I know > what the problem really is. I recall it was related to the proj and sln > files, but would you like to remind me what the problem was and what you > did to over come the problem. I will then try to help, if that help is > needed. > > thanks > > Mark > > > 2009/5/29 Salakhetdinov Shamil <mcp2004 at mail.ru> > > > > Hello Mark, > > > > No, I didn't try to use export feature of TortoiseSVN: to publish on > > CodePlex we have to get all the source files from latest copy of you server > > sources, copy/replace them into local SVN folder of CodePlex (it will have > > different files' versions numbers), add all new files to the .svn > > descriptors and then submit that new version to CodePlex. AFAIU that should > > be doable using SVN commands/scripts/batches but I'm not sure how to make it > > 100% safe to add new files' types using such scripts - I mean we have to > > list all the file types used as source files and those files types do change > > - their set is getting extended - IOW still manual testing/fixing scripts > > will be needed I think. > > > > I haven't time to automate that work - we can make it automated here all > > together by writing batches and/or simple C# utitlity controlling such > > automated update - whatever would be less time consuming. > > > > It might happen I'm missing more straightforward way of doing such > > synchronbization between your server and CodePlex assumed your server is a > > master but CodePlex files have difference version numbers controlled by > > CodePlex server. > > > > Thank you. > > > > -- > > Shamil > > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From mcp2004 at mail.ru Tue Jun 2 19:03:11 2009 From: mcp2004 at mail.ru (Salakhetdinov Shamil) Date: Wed, 03 Jun 2009 04:03:11 +0400 Subject: [dba-VB] =?koi8-r?b?U0NSVU0vV1BGIERhdGEgQmluZGluZw==?= In-Reply-To: <E1MBFpF-0001Nn-00.mcp2004-mail-ru@f254.mail.ru> References: <E1MBFpF-0001Nn-00.mcp2004-mail-ru@f254.mail.ru> Message-ID: <E1MBdwl-0007tL-00.mcp2004-mail-ru@f255.mail.ru> Hi All, Here is the next sampple on WPD databinding - now with a combobxo to navigate between three object instances. You can also edit fields values via wpf form and you can find they are saved in form's local memory: Here is the link to the live sample: http://shamils-4.hosting.parking.ru/xaml/WpfBrowserApplication2.xbap and in P.S. you can fiund code. Basically that's all main information on databinding I wanted to tell here, and in the following samples I plan to implement step by step navigation and data manipulation set of buttons. Thank you. -- Shamil Shippers.xaml ============= <Page x:Class="WpfBrowserApplication1.ShippersPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="Shippers" Height="180" Width="260"> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="74"/> <ColumnDefinition Width="*"/> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition Height="30"/> <RowDefinition Height="10"/> <RowDefinition Height="30"/> <RowDefinition Height="30"/> <RowDefinition Height="30"/> </Grid.RowDefinitions> <TextBlock Margin="4" Text="Shippers:" Grid.Row="0" Grid.Column="0" VerticalAlignment= "Center"/> <ComboBox x:Name="cboShippers" Margin="4" Grid.Row="0" Grid.Column="1" SelectedValuePath="Id" DisplayMemberPath="Name" SelectionChanged="cboShippers_SelectionChanged" /> <TextBlock Margin="4" Text="Id" Grid.Row="2" Grid.Column="0" VerticalAlignment= "Center"/> <TextBlock Text="{Binding Path=Id, Mode=OneWay}" Margin="4" Grid.Row="2" Grid.Column="1"/> <TextBlock Margin="4" Text="Name" Grid.Row="3" Grid.Column="0" VerticalAlignment="Center"/> <TextBox Margin="4" Text="{Binding Path=Name, Mode=TwoWay}" Grid.Row="3" Grid.Column="1"/> <TextBlock Margin="4" Text="Phone" Grid.Row="4" Grid.Column="0" VerticalAlignment="Center"/> <TextBox Margin="4" Text="{Binding Path=Phone, Mode=TwoWay}" Grid.Row="4" Grid.Column="1" /> </Grid> </Page> Shippers.xaml.cs ================ using System.Collections.Generic; using System.Windows.Controls; using System.Windows.Documents; using System.ComponentModel; namespace WpfBrowserApplication1 { public partial class ShippersPage : Page { private List<Shipper> _shippers; private Shipper _currentShipper; public ShippersPage() { InitializeComponent(); _loadInProgress = true; _shippers = Shipper.GetAll(); // Set the DataContext // to a Shipper object this.DataContext = _shippers[0]; foreach (Shipper shipper in _shippers) cboShippers.Items.Add(shipper); _currentShipper = _shippers[0]; cboShippers.SelectedItem = _currentShipper; _loadInProgress = false; } private bool _loadInProgress; private void cboShippers_SelectionChanged( object sender, SelectionChangedEventArgs e) { if (_loadInProgress) return; ComboBox cbo = (ComboBox)sender; _currentShipper = (Shipper)cbo.SelectedItem; this.DataContext = cbo.SelectedItem; e.Handled = true; } } public class Shipper : INotifyPropertyChanged { public static List<Shipper> GetAll() { List<Shipper> list = new List<Shipper>(); list.Add( new Shipper() { Id = 1, Name = "Speedy Express", Phone = "(503) 555-9831" }); list.Add( new Shipper() { Id = 2, Name = "United Package", Phone = "(503) 555-3199" }); list.Add( new Shipper() { Id = 3, Name = "Federal Shipping", Phone = "(503) 555-9931" }); return list; } private int _id; public int Id { get { return _id; } set { if (_id != value) { _id = value; OnPropertyChanged("Id"); } } } private string _name; public string Name { get { return _name; } set { _name = value; if (_name != value) { _phone = value; OnPropertyChanged("Name"); } } } private string _phone; public string Phone { get { return _phone; } set { _phone = value; if (_phone != value) { _phone = value; OnPropertyChanged("Phone"); } } } #region INotifyPropertyChanged Members /// Implement INotifyPropertyChanged to notify the binding /// targets when the values of properties change. public event PropertyChangedEventHandler PropertyChanged; private void OnPropertyChanged(string propertyName) { if (this.PropertyChanged != null) { // Raise the PropertyChanged event this.PropertyChanged( this, new PropertyChangedEventArgs( propertyName)); } } #endregion } } -----Original Message----- From: Salakhetdinov Shamil <mcp2004 at mail.ru> To: dba-VB <dba-vb at databaseadvisors.com> Date: Tue, 02 Jun 2009 02:17:49 +0400 Subject: [dba-VB] SCRUM/WPF Data Binding > Hi All, > > I planned here is the first sample of WPF data bidining: > > http://shamils-4.hosting.parking.ru/xaml/WpfBrowserApplication2.xbap > <<< snip>>> From mcp2004 at mail.ru Tue Jun 2 19:33:26 2009 From: mcp2004 at mail.ru (Salakhetdinov Shamil) Date: Wed, 03 Jun 2009 04:33:26 +0400 Subject: [dba-VB] SCRUM/SilverLight 2.0 Message-ID: <E1MBeQ2-00082Q-00.mcp2004-mail-ru@f190.mail.ru> Hi All, I have got setup simple SilverLight application here http://shamils-4.hosting.parking.ru/sl now using publish feature but it still doesn't work there when started from Internet and it works well locally. Do you know should there be any special tuning done of server side for SilverLight applications to run properly? (ASP.NET 2.0/3.5 run from that site just fine.) Thank you. -- Shamil From dwaters at usinternet.com Wed Jun 3 12:52:45 2009 From: dwaters at usinternet.com (Dan Waters) Date: Wed, 3 Jun 2009 12:52:45 -0500 Subject: [dba-VB] Which .Net Framework Should I Use? Message-ID: <1130A6EB0C9A443582981461A331769D@danwaters> I am just starting to learn VB.Net using VS 2008. All things being equal, I'd like to always select the latest version of the .Net framework (currently 3.5 SP1). My goal is to convert my Access system to VB.Net for any new and potentially for existing customers. Is there any reason not to use the latest version? Like for some reason customers don't want it? Any thoughts on this? Thanks! Dan From mcp2004 at mail.ru Wed Jun 3 13:59:33 2009 From: mcp2004 at mail.ru (Salakhetdinov Shamil) Date: Wed, 03 Jun 2009 22:59:33 +0400 Subject: [dba-VB] =?koi8-r?b?V2hpY2ggLk5ldCBGcmFtZXdvcmsgU2hvdWxkIEkgVXNl?= =?koi8-r?b?Pw==?= In-Reply-To: <1130A6EB0C9A443582981461A331769D@danwaters> References: <1130A6EB0C9A443582981461A331769D@danwaters> Message-ID: <E1MBvgT-0004Pm-00.mcp2004-mail-ru@f247.mail.ru> Hi Dan, I suppose that it's better to have the latest version of .NET Framework release, which is currently 3.5 SP1 as you noted. I have just happened to bootstrap .NET Framework 3.5 SP1 setup on my sister's notebook running XP by browsing to this link on my test site: http://shamils-4.hosting.parking.ru/xaml/WpfBrowserApplication2.xbap That bootstrap downloaded ~66MB of .NET Framework setup and then run it rather smoothly with one exception that it didn't want to continue with IE instance, which forced bootstrap, window opened - and the only option to close IE window was to "kill" it via Task Manager but then .NET 3.5 SP1 setup proceeded and finished OK, and my sample XBAP application did show-up OK on my sister's PC... I'd also note that if you only starting .NET development then maybe consider using C# instead of VB.NET - the reasons of using C# was many times repeated here and on AccessD - one of then is that for C# there are much more that for VB.NET ready to use code snippets all over the Internet, another one is that C# results in more readable code etc. Thank you. -- Shamil -----Original Message----- From: "Dan Waters" <dwaters at usinternet.com> To: "'Discussion concerning Visual Basic and related programming issues.'"<dba-vb at databaseadvisors.com> Date: Wed, 3 Jun 2009 12:52:45 -0500 Subject: [dba-VB] Which .Net Framework Should I Use? > I am just starting to learn VB.Net using VS 2008. All things being equal, > I'd like to always select the latest version of the .Net framework > (currently 3.5 SP1). My goal is to convert my Access system to VB.Net for > any new and potentially for existing customers. > > Is there any reason not to use the latest version? Like for some reason > customers don't want it? > > Any thoughts on this? > > Thanks! > Dan > > > > > _______________________________________________ > 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 Jun 3 16:37:19 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 03 Jun 2009 23:37:19 +0200 Subject: [dba-VB] Which .Net Framework Should I Use? Message-ID: <sa270943.059@cactus.dk> Hi Dan Yes, 3.5 won't run on Win 2000 (as far as I know). /gustav >>> "Dan Waters" <dwaters at usinternet.com> 03-06-2009 19:52 >>> I am just starting to learn VB.Net using VS 2008. All things being equal, I'd like to always select the latest version of the .Net framework (currently 3.5 SP1). My goal is to convert my Access system to VB.Net for any new and potentially for existing customers. Is there any reason not to use the latest version? Like for some reason customers don't want it? Any thoughts on this? Thanks! Dan From bheid at sc.rr.com Wed Jun 3 21:29:26 2009 From: bheid at sc.rr.com (Bobby Heid) Date: Wed, 3 Jun 2009 22:29:26 -0400 Subject: [dba-VB] Which .Net Framework Should I Use? In-Reply-To: <E1MBvgT-0004Pm-00.mcp2004-mail-ru@f247.mail.ru> References: <1130A6EB0C9A443582981461A331769D@danwaters> <E1MBvgT-0004Pm-00.mcp2004-mail-ru@f247.mail.ru> Message-ID: <000301c9e4bc$48185ab0$d8491010$@rr.com> >> one is that C# results in more readable code etc. I disagree with this statement. The quality of the code (performance and readability) is proportional to the quality of the developer. I use both C# and VB.Net. For the most part, you can write the same code in both languages and get very readable code. People can make just about any language's code poorly readable. This is not a post against C#, I actually prefer C#, although I use VB.Net at work. One thing I noticed while looking for a job a few years ago is that some regions have more C# jobs and others have more VB.Net jobs. I would personally target the latest framework. I think the .Net framework 4.0 is not too far in the future. Bobby -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Salakhetdinov Shamil Sent: Wednesday, June 03, 2009 3:00 PM To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Which .Net Framework Should I Use? Hi Dan, I suppose that it's better to have the latest version of .NET Framework release, which is currently 3.5 SP1 as you noted. I have just happened to bootstrap .NET Framework 3.5 SP1 setup on my sister's notebook running XP by browsing to this link on my test site: http://shamils-4.hosting.parking.ru/xaml/WpfBrowserApplication2.xbap That bootstrap downloaded ~66MB of .NET Framework setup and then run it rather smoothly with one exception that it didn't want to continue with IE instance, which forced bootstrap, window opened - and the only option to close IE window was to "kill" it via Task Manager but then .NET 3.5 SP1 setup proceeded and finished OK, and my sample XBAP application did show-up OK on my sister's PC... I'd also note that if you only starting .NET development then maybe consider using C# instead of VB.NET - the reasons of using C# was many times repeated here and on AccessD - one of then is that for C# there are much more that for VB.NET ready to use code snippets all over the Internet, another one is that C# results in more readable code etc. Thank you. -- Shamil <snip> From mcp2004 at mail.ru Thu Jun 4 10:06:49 2009 From: mcp2004 at mail.ru (Salakhetdinov Shamil) Date: Thu, 04 Jun 2009 19:06:49 +0400 Subject: [dba-VB] Problem while publishing ADO.NET Data Service... Message-ID: <E1MCEWn-0007aZ-00.mcp2004-mail-ru@f200.mail.ru> Hi All, I'm trying to implement and to publish ADO.NET Data Service as described here: http://msdn.microsoft.com/en-us/library/cc907912.aspx and I'm getting the following error: Server Error in '/NorthwindNetDataService' Application. -------------------------------------------------------------------------------- This collection already contains an address with scheme http. There can be at most one address per scheme in this collection. Parameter name: item ... Googling and trying to apply different advices from googled samples to not help. Data Service is currently published here: http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NorthwinNetService.svc When usinhg it locally as e.g: http://localhost:53154/NorthwinNetService.svc or http://localhost:53154/NorthwinNetService.svc/Shipper it works OK - for the latter URL I'm getting the following response (truncated here): http://localhost:53154/NorthwinNetService.svc/Shipper <?xml version="1.0" encoding="utf-8" standalone="yes" ?> - <feed xml:base="http://localhost:53154/NorthwinNetService.svc/" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns="http://www.w3.org/2005/Atom"> <title type="text">Shipper http://localhost:53154/NorthwinNetService.svc/Shipper 2009-06-04T14:58:28Z - http://localhost:53154/NorthwinNetService.svc/Shipper(1) <updated>2009-06-04T14:58:28Z</updated> - <author> <name /> </author> <link rel="edit" title="Shipper" href="Shipper(1)" /> <link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Order" type="application/atom+xml;type=feed" title="Order" href="Shipper(1)/Order" /> <category term="NorthwindNetModel.Shipper" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme" /> - <content type="application/xml"> - <m:properties> <d:ID m:type="Edm.Int32">1</d:ID> <d:Name>Speedy Express</d:Name> <d:Phone>(503) 555-9831</d:Phone> <d:RowTimeStamp m:type="Edm.Binary">AAAAAAAAB/Q=</d:RowTimeStamp> </m:properties> </content> </entry> ....... If you get through such an issues already and you have solved it could you please post your solution here? Thank you. -- Shamil From mcp2004 at mail.ru Thu Jun 4 10:10:09 2009 From: mcp2004 at mail.ru (Salakhetdinov Shamil) Date: Thu, 04 Jun 2009 19:10:09 +0400 Subject: [dba-VB] =?koi8-r?b?V2hpY2ggLk5ldCBGcmFtZXdvcmsgU2hvdWxkIEkgVXNl?= =?koi8-r?b?Pw==?= In-Reply-To: <000301c9e4bc$48185ab0$d8491010$@rr.com> References: <000301c9e4bc$48185ab0$d8491010$@rr.com> Message-ID: <E1MCEa1-00052h-00.mcp2004-mail-ru@f161.mail.ru> Hi Bobby, That's fine. Thank you. -- Shamil -----Original Message----- From: "Bobby Heid" <bheid at sc.rr.com> To: "'Salakhetdinov Shamil'" <mcp2004 at mail.ru>,"'Discussion concerning Visual Basic and related programming issues.'" <dba-vb at databaseadvisors.com> Date: Wed, 3 Jun 2009 22:29:26 -0400 Subject: RE: [dba-VB] Which .Net Framework Should I Use? > >> one is that C# results in more readable code etc. > > I disagree with this statement. The quality of the code (performance and > readability) is proportional to the quality of the developer. I use both C# > and VB.Net. For the most part, you can write the same code in both > languages and get very readable code. People can make just about any > language's code poorly readable. > > This is not a post against C#, I actually prefer C#, although I use VB.Net > at work. > > One thing I noticed while looking for a job a few years ago is that some > regions have more C# jobs and others have more VB.Net jobs. > > I would personally target the latest framework. I think the .Net framework > 4.0 is not too far in the future. > > Bobby > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Salakhetdinov > Shamil > Sent: Wednesday, June 03, 2009 3:00 PM > To: Discussion concerning Visual Basic and related programming issues. > Subject: Re: [dba-VB] Which .Net Framework Should I Use? > > Hi Dan, > > I suppose that it's better to have the latest version of .NET Framework > release, which is currently 3.5 SP1 as you noted. > > I have just happened to bootstrap .NET Framework 3.5 SP1 setup on my > sister's notebook running XP by browsing to this link on my test site: > > http://shamils-4.hosting.parking.ru/xaml/WpfBrowserApplication2.xbap > > That bootstrap downloaded ~66MB of .NET Framework setup and then run it > rather smoothly with one exception that it didn't want to continue with IE > instance, which forced bootstrap, window opened - and the only option to > close IE window was to "kill" it via Task Manager but then .NET 3.5 SP1 > setup proceeded and finished OK, and my sample XBAP application did show-up > OK on my sister's PC... > > I'd also note that if you only starting .NET development then maybe consider > using C# instead of VB.NET - the reasons of using C# was many times repeated > here and on AccessD - one of then is that for C# there are much more that > for VB.NET ready to use code snippets all over the Internet, another one is > that C# results in more readable code etc. > > Thank you. > > -- > Shamil > > <snip> > > > From mcp2004 at mail.ru Thu Jun 4 13:04:53 2009 From: mcp2004 at mail.ru (Salakhetdinov Shamil) Date: Thu, 04 Jun 2009 22:04:53 +0400 Subject: [dba-VB] =?koi8-r?b?UHJvYmxlbSB3aGlsZSBwdWJsaXNoaW5nIEFETy5ORVQg?= =?koi8-r?b?RGF0YSBTZXJ2aWNlLi4u?= In-Reply-To: <E1MCEWn-0007aZ-00.mcp2004-mail-ru@f200.mail.ru> References: <E1MCEWn-0007aZ-00.mcp2004-mail-ru@f200.mail.ru> Message-ID: <E1MCHJ7-0000b4-00.mcp2004-mail-ru@f73.mail.ru> Hi All, I'm still "fighting" with the below issue - it woudl be great if you can help to find a quick fix as I wanted to use this data service data source for sample WPF/XBAP/SilverLight forms/pages... Meanwhile I have got occasionally created what is called: Dynamic Data Entities Web Application and it worked almost out-of-the-box http://shamils-4.hosting.parking.ru/NorthwindNetDynamicDataWebSite just some small corrections in Global.asax.cs were needed - uncommenting two code lines and typing in ADO.NET Entity Model name: model.RegisterContext(typeof(NorthwindNETEntities), new ContextConfiguration() { ScaffoldAllTables = true }); I must say I wasn't aware of this technology, which needs some more studying to see where it leads... Thank you. -- Shamil -----Original Message----- From: Salakhetdinov Shamil <mcp2004 at mail.ru> To: dba-VB <dba-vb at databaseadvisors.com> Date: Thu, 04 Jun 2009 19:06:49 +0400 Subject: [dba-VB] Problem while publishing ADO.NET Data Service... > Hi All, > > I'm trying to implement and to publish ADO.NET Data Service as described here: > > http://msdn.microsoft.com/en-us/library/cc907912.aspx > > and I'm getting the following error: > > Server Error in '/NorthwindNetDataService' Application. > -------------------------------------------------------------------------------- > > This collection already contains an address with scheme http. There can be at most one address per scheme in this collection. > Parameter name: item > ... > > Googling and trying to apply different advices from googled samples to not help. > > Data Service is currently published here: > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NorthwinNetService.svc > > When usinhg it locally as e.g: > > http://localhost:53154/NorthwinNetService.svc > > or > > http://localhost:53154/NorthwinNetService.svc/Shipper > > it works OK - for the latter URL I'm getting the following response (truncated here): > > http://localhost:53154/NorthwinNetService.svc/Shipper > > <?xml version="1.0" encoding="utf-8" standalone="yes" ?> > - <feed xml:base="http://localhost:53154/NorthwinNetService.svc/" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns="http://www.w3.org/2005/Atom"> > <title type="text">Shipper > http://localhost:53154/NorthwinNetService.svc/Shipper > 2009-06-04T14:58:28Z > > - > http://localhost:53154/NorthwinNetService.svc/Shipper(1) > > <updated>2009-06-04T14:58:28Z</updated> > - <author> > <name /> > </author> > <link rel="edit" title="Shipper" href="Shipper(1)" /> > <link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Order" type="application/atom+xml;type=feed" title="Order" href="Shipper(1)/Order" /> > <category term="NorthwindNetModel.Shipper" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme" /> > - <content type="application/xml"> > - <m:properties> > <d:ID m:type="Edm.Int32">1</d:ID> > <d:Name>Speedy Express</d:Name> > <d:Phone>(503) 555-9831</d:Phone> > <d:RowTimeStamp m:type="Edm.Binary">AAAAAAAAB/Q=</d:RowTimeStamp> > </m:properties> > </content> > </entry> > ....... > > > If you get through such an issues already and you have solved it could you please post your solution here? > > Thank you. > > -- > Shamil > > > > > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From mcp2004 at mail.ru Thu Jun 4 14:06:18 2009 From: mcp2004 at mail.ru (Salakhetdinov Shamil) Date: Thu, 04 Jun 2009 23:06:18 +0400 Subject: [dba-VB] =?koi8-r?b?UHJvYmxlbSB3aGlsZSBwdWJsaXNoaW5nIEFETy5ORVQg?= =?koi8-r?b?RGF0YSBTZXJ2aWNlLi4u?= In-Reply-To: <E1MCHJ7-0000b4-00.mcp2004-mail-ru@f73.mail.ru> References: <E1MCHJ7-0000b4-00.mcp2004-mail-ru@f73.mail.ru> Message-ID: <E1MCIGY-0006z3-00.mcp2004-mail-ru@f59.mail.ru> Hi All, I have changed location of NorthwindNety Data Service to: http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc still no solution for This collection already contains an address with scheme http. There can be at most one address per scheme in this collection. Parameter name: item :( -- Shamil -----Original Message----- From: Salakhetdinov Shamil <mcp2004 at mail.ru> To: "Discussion concerning Visual Basic and related programming issues."<dba-vb at databaseadvisors.com> Date: Thu, 04 Jun 2009 22:04:53 +0400 Subject: Re: [dba-VB] Problem while publishing ADO.NET Data Service... > Hi All, > > I'm still "fighting" with the below issue - it woudl be great if you can help to find a quick fix as I wanted to use this data service data source for sample WPF/XBAP/SilverLight forms/pages... > > Meanwhile I have got occasionally created what is called: > > Dynamic Data Entities Web Application > > and it worked almost out-of-the-box > > http://shamils-4.hosting.parking.ru/NorthwindNetDynamicDataWebSite > > just some small corrections in Global.asax.cs were needed - uncommenting two code lines and typing in ADO.NET Entity Model name: > > model.RegisterContext(typeof(NorthwindNETEntities), > new ContextConfiguration() { ScaffoldAllTables = true }); > > I must say I wasn't aware of this technology, which needs some more studying to see where it leads... > > Thank you. > > -- > Shamil > > > -----Original Message----- > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > To: dba-VB <dba-vb at databaseadvisors.com> > Date: Thu, 04 Jun 2009 19:06:49 +0400 > Subject: [dba-VB] Problem while publishing ADO.NET Data Service... > > > Hi All, > > > > I'm trying to implement and to publish ADO.NET Data Service as described here: > > > > http://msdn.microsoft.com/en-us/library/cc907912.aspx > > > > and I'm getting the following error: > > > > Server Error in '/NorthwindNetDataService' Application. > > -------------------------------------------------------------------------------- > > > > This collection already contains an address with scheme http. There can be at most one address per scheme in this collection. > > Parameter name: item > > ... > > > > Googling and trying to apply different advices from googled samples to not help. > > > > Data Service is currently published here: > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NorthwinNetService.svc > > > > When usinhg it locally as e.g: > > > > http://localhost:53154/NorthwinNetService.svc > > > > or > > > > http://localhost:53154/NorthwinNetService.svc/Shipper > > > > it works OK - for the latter URL I'm getting the following response (truncated here): > > > > http://localhost:53154/NorthwinNetService.svc/Shipper > > > > <?xml version="1.0" encoding="utf-8" standalone="yes" ?> > > - <feed xml:base="http://localhost:53154/NorthwinNetService.svc/" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns="http://www.w3.org/2005/Atom"> > > <title type="text">Shipper > > http://localhost:53154/NorthwinNetService.svc/Shipper > > 2009-06-04T14:58:28Z > > > > - > > http://localhost:53154/NorthwinNetService.svc/Shipper(1) > > > > <updated>2009-06-04T14:58:28Z</updated> > > - <author> > > <name /> > > </author> > > <link rel="edit" title="Shipper" href="Shipper(1)" /> > > <link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Order" type="application/atom+xml;type=feed" title="Order" href="Shipper(1)/Order" /> > > <category term="NorthwindNetModel.Shipper" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme" /> > > - <content type="application/xml"> > > - <m:properties> > > <d:ID m:type="Edm.Int32">1</d:ID> > > <d:Name>Speedy Express</d:Name> > > <d:Phone>(503) 555-9831</d:Phone> > > <d:RowTimeStamp m:type="Edm.Binary">AAAAAAAAB/Q=</d:RowTimeStamp> > > </m:properties> > > </content> > > </entry> > > ....... > > > > > > If you get through such an issues already and you have solved it could you please post your solution here? > > > > 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 mcp2004 at mail.ru Thu Jun 4 17:48:38 2009 From: mcp2004 at mail.ru (Salakhetdinov Shamil) Date: Fri, 05 Jun 2009 02:48:38 +0400 Subject: [dba-VB] =?koi8-r?b?UHJvYmxlbSB3aGlsZSBwdWJsaXNoaW5nIEFETy5ORVQg?= =?koi8-r?b?RGF0YSBTZXJ2aWNlLi4u?= In-Reply-To: <E1MCIGY-0006z3-00.mcp2004-mail-ru@f59.mail.ru> References: <E1MCIGY-0006z3-00.mcp2004-mail-ru@f59.mail.ru> Message-ID: <E1MCLji-0004uR-00.mcp2004-mail-ru@f251.mail.ru> Hi All, I have got found one solution for the subject issue: Hosted ADO.NET Data Services & Silverlight http://dvanderboom.wordpress.com/2009/01/07/hosted-adonet-data-services-silverlight/ But it doesn't look satisfactory for general case, and it doesn't work yet for my site (waiting for ISP support with IIS server restart - maybe that helps as web site restarting doesn't work) - I have got stuck here: http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc with a message: <<< IIS specified authentication schemes 'Basic, Anonymous', but the binding only supports specification of exactly one authentication scheme. Valid authentication schemes are Digest, Negotiate, NTLM, Basic, or Anonymous. Change the IIS settings so that only a single authentication scheme is used. >>> and as you can see SOAP and WCF sample services do work OK here: http://shamils-4.hosting.parking.ru/NorthwindNetDataService/SOAPService.asmx http://shamils-4.hosting.parking.ru/NorthwindNetDataService/WCFService.svc If you know general solution for subject issue that woudl be very helpful. Thank you. -- Shamil -----Original Message----- From: Salakhetdinov Shamil <mcp2004 at mail.ru> To: "Discussion concerning Visual Basic and related programming issues."<dba-vb at databaseadvisors.com> Date: Thu, 04 Jun 2009 23:06:18 +0400 Subject: Re: [dba-VB] Problem while publishing ADO.NET Data Service... > Hi All, > > I have changed location of NorthwindNety Data Service to: > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > still no solution for > > This collection already contains an address with scheme http. There can be at most one address per scheme in this collection. > Parameter name: item > > :( > > -- > Shamil > ><<< aaa >>> From mcp2004 at mail.ru Thu Jun 4 18:30:38 2009 From: mcp2004 at mail.ru (Salakhetdinov Shamil) Date: Fri, 05 Jun 2009 03:30:38 +0400 Subject: [dba-VB] =?koi8-r?b?UHJvYmxlbSB3aGlsZSBwdWJsaXNoaW5nIEFETy5ORVQg?= =?koi8-r?b?RGF0YSBTZXJ2aWNlLi4u?= In-Reply-To: <E1MCLji-0004uR-00.mcp2004-mail-ru@f251.mail.ru> References: <E1MCLji-0004uR-00.mcp2004-mail-ru@f251.mail.ru> Message-ID: <E1MCMOM-0006dT-00.mcp2004-mail-ru@f182.mail.ru> Hi All, Just wanted to ask one more question on subject issue: I do not understand why IIS should be restarted to have one of its Web Site's getting a new setting activated? I mean why it's not enough to stop and start this web site/web application? What am I missing? You can see by goodling how many developers got confused by this "simple"(?) issue - and even stackoverflow doesn't have a clear answer, or am I missing it? Thank you. -- Shamil -----Original Message----- From: Salakhetdinov Shamil <mcp2004 at mail.ru> To: "Discussion concerning Visual Basic and related programming issues."<dba-vb at databaseadvisors.com> Date: Fri, 05 Jun 2009 02:48:38 +0400 Subject: Re: [dba-VB] Problem while publishing ADO.NET Data Service... > Hi All, > > I have got found one solution for the subject issue: > > Hosted ADO.NET Data Services & Silverlight > http://dvanderboom.wordpress.com/2009/01/07/hosted-adonet-data-services-silverlight/ > > But it doesn't look satisfactory for general case, and it doesn't work yet for my site (waiting for ISP support with IIS server restart - maybe that helps as web site restarting doesn't work) - I have got stuck here: > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > with a message: > <<< > IIS specified authentication schemes 'Basic, Anonymous', but the binding only supports specification of exactly one authentication scheme. Valid authentication schemes are Digest, Negotiate, NTLM, Basic, or Anonymous. Change the IIS settings so that only a single authentication scheme is used. > >>> > > and as you can see SOAP and WCF sample services do work OK here: > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/SOAPService.asmx > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/WCFService.svc > > If you know general solution for subject issue that woudl be very helpful. > > Thank you. > > -- > Shamil > > -----Original Message----- > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > To: "Discussion concerning Visual Basic and related programming issues."<dba-vb at databaseadvisors.com> > Date: Thu, 04 Jun 2009 23:06:18 +0400 > Subject: Re: [dba-VB] > Problem while publishing ADO.NET Data Service... > > > Hi All, > > > > I have changed location of NorthwindNety Data Service to: > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > > > still no solution for > > > > This collection already contains an address with scheme http. There can be at most one address per scheme in this collection. > > Parameter name: item > > > > :( > > > > -- > > Shamil > > > ><<< aaa >>> > _______________________________________________ > 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 Jun 5 03:10:10 2009 From: marklbreen at gmail.com (Mark Breen) Date: Fri, 5 Jun 2009 09:10:10 +0100 Subject: [dba-VB] Problem while publishing ADO.NET Data Service... In-Reply-To: <E1MCMOM-0006dT-00.mcp2004-mail-ru@f182.mail.ru> References: <E1MCLji-0004uR-00.mcp2004-mail-ru@f251.mail.ru> <E1MCMOM-0006dT-00.mcp2004-mail-ru@f182.mail.ru> Message-ID: <c7fd28d00906050110t4683d3a4s12edd90831dde420@mail.gmail.com> Hello Shamil, as you know, I have two servers here in Ireland, would you like to do your diagnosis / development of future development work on one of my servers ? If so, that would be no problem. I am trying to keep up and read some of the link you posted int he last few days regarding ADO.NET Data Service. I am not clear yet about differences between Webservices and ADO.NET Data Service , but I expect if I spend some time to google and read, I can become clear. However, I have one question, do you think that this archetectire is without doubt the way we will all connect to our data sources in the future? How about performance, will it perform as good as current connections such as ado and odbc over SQL Server Port? thanks Mark 2009/6/5 Salakhetdinov Shamil <mcp2004 at mail.ru> > > Hi All, > > Just wanted to ask one more question on subject issue: I do not understand > why IIS should be restarted to have one of its Web Site's getting a new > setting activated? I mean why it's not enough to stop and start this web > site/web application? What am I missing? > > You can see by goodling how many developers got confused by this > "simple"(?) issue - and even stackoverflow doesn't have a clear answer, or > am I missing it? > > Thank you. > > -- > Shamil > > -----Original Message----- > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > To: "Discussion concerning Visual Basic and related programming issues."< > dba-vb at databaseadvisors.com> > Date: Fri, 05 Jun 2009 02:48:38 +0400 > Subject: Re: [dba-VB] > Problem while publishing ADO.NET Data Service... > > > Hi All, > > > > I have got found one solution for the subject issue: > > > > Hosted ADO.NET Data Services & Silverlight > > > http://dvanderboom.wordpress.com/2009/01/07/hosted-adonet-data-services-silverlight/ > > > > But it doesn't look satisfactory for general case, and it doesn't work > yet for my site (waiting for ISP support with IIS server restart - maybe > that helps as web site restarting doesn't work) - I have got stuck here: > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > > > with a message: > > <<< > > IIS specified authentication schemes 'Basic, Anonymous', but the binding > only supports specification of exactly one authentication scheme. Valid > authentication schemes are Digest, Negotiate, NTLM, Basic, or Anonymous. > Change the IIS settings so that only a single authentication scheme is used. > > >>> > > > > and as you can see SOAP and WCF sample services do work OK here: > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/SOAPService.asmx > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/WCFService.svc > > > > If you know general solution for subject issue that woudl be very > helpful. > > > > Thank you. > > > > -- > > Shamil > > > > -----Original Message----- > > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > > To: "Discussion concerning Visual Basic and related programming issues."< > dba-vb at databaseadvisors.com> > > Date: Thu, 04 Jun 2009 23:06:18 +0400 > > Subject: Re: [dba-VB] > > Problem while publishing ADO.NET Data Service... > > > > > Hi All, > > > > > > I have changed location of NorthwindNety Data Service to: > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > > > > > still no solution for > > > > > > This collection already contains an address with scheme http. There > can be at most one address per scheme in this collection. > > > Parameter name: item > > > > > > :( > > > > > > -- > > > Shamil > > > > > ><<< aaa >>> > > _______________________________________________ > > 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 mcp2004 at mail.ru Fri Jun 5 05:59:21 2009 From: mcp2004 at mail.ru (Salakhetdinov Shamil) Date: Fri, 05 Jun 2009 14:59:21 +0400 Subject: [dba-VB] =?koi8-r?b?UHJvYmxlbSB3aGlsZSBwdWJsaXNoaW5nIEFETy5ORVQg?= =?koi8-r?b?RGF0YSBTZXJ2aWNlLi4u?= In-Reply-To: <c7fd28d00906050110t4683d3a4s12edd90831dde420@mail.gmail.com> References: <c7fd28d00906050110t4683d3a4s12edd90831dde420@mail.gmail.com> Message-ID: <E1MCX8r-00011L-00.mcp2004-mail-ru@f183.mail.ru> Hello Mark, Thank you for your proposal. Yes, it would be useful to test using your servers in the case my hosting site would not be able to "keep the pressure" of coming data requests, and in the scenarious when several servers would need to communicate - something like distributed workflow (using WF). BTW, my sample site works OK now: Here is a "query" to retrieve Shippers. http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc/Shipper and this one for Categories http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc/Category Note: those queries return ATOM feed therefore ATOM feed interpretation should be switched off in your browser. Such queries can be used to do all the data manipulation including CRUD operations AFAIU. I haven't yet checked/read how to make such quieries secure but I assume that this feature is implemented already, and I need just to switch it on. The returned data can be of different structure ATOM feed, JSON etc. - and they can be consumed by many types of clients including AJAX (KavaScript) etc. In other words once you get ADO.NET data Service published (no any programming was needed in my simple sample case) you can immediatley start developing custom applications/clients. As for performance - it should be good enough I expect - at least for business areas and the applications we develop. AFAIU ADO.NET Data Services internals can be fine tuned for special case to increase response time. We can test performance - we can write test clients and run them on our PCs querying the above sample service or the one you can install on your server - to compare response time from public ASP.NET hosting site I use or dedicated servers you have - I plan to publish this sample service on our CodePlex Northwind project area... Is ADO.NET Data Services the future? - that's is the question to MS - I do not have a Crystal Ball :) For sure it's very useful and promising technology. Thank you. -- Shamil -----Original Message----- From: Mark Breen <marklbreen at gmail.com> To: Salakhetdinov Shamil <mcp2004 at mail.ru>, "Discussion concerning Visual Basic and related programming issues." <dba-vb at databaseadvisors.com> Date: Fri, 5 Jun 2009 09:10:10 +0100 Subject: Re: [dba-VB] Problem while publishing ADO.NET Data Service... > Hello Shamil, > as you know, I have two servers here in Ireland, would you like to do your > diagnosis / development of future development work on one of my servers ? > If so, that would be no problem. > > I am trying to keep up and read some of the link you posted int he last few > days regarding ADO.NET Data Service. > > I am not clear yet about differences between Webservices and ADO.NET Data > Service , but I expect if I spend some time to google and read, I can become > clear. > > However, I have one question, do you think that this archetectire is > without doubt the way we will all connect to our data sources in the future? > How about performance, will it perform as good as current connections such > as ado and odbc over SQL Server Port? > > thanks > > Mark > > > > 2009/6/5 Salakhetdinov Shamil <mcp2004 at mail.ru> > > > > > Hi All, > > > > Just wanted to ask one more question on subject issue: I do not understand > > why IIS should be restarted to have one of its Web Site's getting a new > > setting activated? I mean why it's not enough to stop and start this web > > site/web application? What am I missing? > > > > You can see by goodling how many developers got confused by this > > "simple"(?) issue - and even stackoverflow doesn't have a clear answer, or > > am I missing it? > > > > Thank you. > > > > -- > > Shamil > > > > -----Original Message----- > > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > > To: "Discussion concerning Visual Basic and related programming issues."< > > dba-vb at databaseadvisors.com> > > Date: Fri, 05 Jun 2009 02:48:38 +0400 > > Subject: Re: [dba-VB] > > Problem while publishing ADO.NET Data Service... > > > > > Hi All, > > > > > > I have got found one solution for the subject issue: > > > > > > Hosted ADO.NET Data Services & Silverlight > > > > > http://dvanderboom.wordpress.com/2009/01/07/hosted-adonet-data-services-silverlight/ > > > > > > But it doesn't look satisfactory for general case, and it doesn't work > > yet for my site (waiting for ISP support with IIS server restart - maybe > > that helps as web site restarting doesn't work) - I have got stuck here: > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > > > > > with a message: > > > <<< > > > IIS specified authentication schemes 'Basic, Anonymous', but the binding > > only supports specification of exactly one authentication scheme. Valid > > authentication schemes are Digest, Negotiate, NTLM, Basic, or Anonymous. > > Change the IIS settings so that only a single authentication scheme is used. > > > >>> > > > > > > and as you can see SOAP and WCF sample services do work OK here: > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/SOAPService.asmx > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/WCFService.svc > > > > > > If you know general solution for subject issue that woudl be very > > helpful. > > > > > > Thank you. > > > > > > -- > > > Shamil > > > > > > -----Original Message----- > > > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > > > To: "Discussion concerning Visual Basic and related programming issues."< > > dba-vb at databaseadvisors.com> > > > Date: Thu, 04 Jun 2009 23:06:18 +0400 > > > Subject: Re: [dba-VB] > > > Problem while publishing ADO.NET Data Service... > > > > > > > Hi All, > > > > > > > > I have changed location of NorthwindNety Data Service to: > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > > > > > > > still no solution for > > > > > > > > This collection already contains an address with scheme http. There > > can be at most one address per scheme in this collection. > > > > Parameter name: item > > > > > > > > :( > > > > > > > > -- > > > > Shamil > > > > > > > ><<< aaa >>> > > > _______________________________________________ > > > dba-VB mailing list > > > dba-VB at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > > http://www.databaseadvisors.com > > > > > > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > > > > > From Gustav at cactus.dk Fri Jun 5 06:00:59 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 05 Jun 2009 13:00:59 +0200 Subject: [dba-VB] Problem while publishing ADO.NET Data Service... Message-ID: <sa291725.093@cactus.dk> Hi Mark I think it is. MS is pushing it for VS2010 and a CTP v1.5 is already out. How to get these to interact is described here (haven't tried this myself though): http://blogs.msdn.com/astoriateam/archive/2009/05/22/using-ado-net-data-services-v1-5-ctp1-with-visual-studio-2010-beta-1.aspx I have seen nothing about performance differences. /gustav >>> marklbreen at gmail.com 05-06-2009 10:10 >>> I am not clear yet about differences between Webservices and ADO.NET Data Service , but I expect if I spend some time to google and read, I can become clear. However, I have one question, do you think that this archetectire is without doubt the way we will all connect to our data sources in the future? How about performance, will it perform as good as current connections such as ado and odbc over SQL Server Port? thanks Mark From mcp2004 at mail.ru Fri Jun 5 06:15:27 2009 From: mcp2004 at mail.ru (Salakhetdinov Shamil) Date: Fri, 05 Jun 2009 15:15:27 +0400 Subject: [dba-VB] =?koi8-r?b?UHJvYmxlbSB3aGlsZSBwdWJsaXNoaW5nIEFETy5ORVQg?= =?koi8-r?b?RGF0YSBTZXJ2aWNlLi4u?= In-Reply-To: <sa291725.093@cactus.dk> References: <sa291725.093@cactus.dk> Message-ID: <E1MCXOR-0003XH-00.mcp2004-mail-ru@f79.mail.ru> Hi Gustav and Mark, ADO.NET Data Services works with .NET 3.5 SP1 - it was used for my recent samples. Here is a good link http://astoria.mslivelabs.com/ and I used this one http://msdn.microsoft.com/en-us/library/cc907912.aspx to make the live sample here http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc and this Dynamic Data Web Site I have made by just clicking some menu options and buttons in VS2008 SP1: http://shamils-4.hosting.parking.ru/NorthwindNetDynamicDataWebSite As you can find performance is rather good (but db is small of course) - such site can be further augmented with custom web forms AFAIU (I haven't read how to so that yet), as you can see this site uses ASP.NET/AJAX, I guess it may also use ASP.NET MVC Framework etc. And it can be used "out-of-the-box" to at least enter/edit lookup tables' data - what it can do at most - the latter have to be investigated... Thank you. -- Shamil -----Original Message----- From: "Gustav Brock" <Gustav at cactus.dk> To: <dba-vb at databaseadvisors.com> Date: Fri, 05 Jun 2009 13:00:59 +0200 Subject: Re: [dba-VB] Problem while publishing ADO.NET Data Service... > Hi Mark > > I think it is. MS is pushing it for VS2010 and a CTP v1.5 is already out. > How to get these to interact is described here (haven't tried this myself though): > > http://blogs.msdn.com/astoriateam/archive/2009/05/22/using-ado-net-data-services-v1-5-ctp1-with-visual-studio-2010-beta-1.aspx > > I have seen nothing about performance differences. > > /gustav > > > >>> marklbreen at gmail.com 05-06-2009 10:10 >>> > > I am not clear yet about differences between Webservices and ADO.NET Data > Service , but I expect if I spend some time to google and read, I can become > clear. > > However, I have one question, do you think that this archetectire is > without doubt the way we will all connect to our data sources in the future? > How about performance, will it perform as good as current connections such > as ado and odbc over SQL Server Port? > > thanks > > Mark > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From mcp2004 at mail.ru Fri Jun 5 06:26:41 2009 From: mcp2004 at mail.ru (Salakhetdinov Shamil) Date: Fri, 05 Jun 2009 15:26:41 +0400 Subject: [dba-VB] =?koi8-r?b?UHJvYmxlbSB3aGlsZSBwdWJsaXNoaW5nIEFETy5ORVQg?= =?koi8-r?b?RGF0YSBTZXJ2aWNlLi4u?= In-Reply-To: <c7fd28d00906050110t4683d3a4s12edd90831dde420@mail.gmail.com> References: <c7fd28d00906050110t4683d3a4s12edd90831dde420@mail.gmail.com> Message-ID: <E1MCXZJ-0005yB-00.mcp2004-mail-ru@f163.mail.ru> Hi Mark, I'd add/outline additionally to my previous answer on your posting that ADO.NET Data Services can be used in heavily distributed workflow scenarious, with support of distributed transactions etc.etc. Workflows are designed and programmed for such applications using Windows Workflow Foundation (WF). "Not data" services are developed using Windows Communication Foundation (WCF) (and ADO.NET data services are also driven by WCF services AFAIU)... -- Shamil -----Original Message----- From: Mark Breen <marklbreen at gmail.com> To: Salakhetdinov Shamil <mcp2004 at mail.ru>, "Discussion concerning Visual Basic and related programming issues." <dba-vb at databaseadvisors.com> Date: Fri, 5 Jun 2009 09:10:10 +0100 Subject: Re: [dba-VB] Problem while publishing ADO.NET Data Service... > Hello Shamil, > as you know, I have two servers here in Ireland, would you like to do your > diagnosis / development of future development work on one of my servers ? > If so, that would be no problem. > > I am trying to keep up and read some of the link you posted int he last few > days regarding ADO.NET Data Service. > > I am not clear yet about differences between Webservices and ADO.NET Data > Service , but I expect if I spend some time to google and read, I can become > clear. > > However, I have one question, do you think that this archetectire is > without doubt the way we will all connect to our data sources in the future? > How about performance, will it perform as good as current connections such > as ado and odbc over SQL Server Port? > > thanks > > Mark > > > > 2009/6/5 Salakhetdinov Shamil <mcp2004 at mail.ru> > > > > > Hi All, > > > > Just wanted to ask one more question on subject issue: I do not understand > > why IIS should be restarted to have one of its Web Site's getting a new > > setting activated? I mean why it's not enough to stop and start this web > > site/web application? What am I missing? > > > > You can see by goodling how many developers got confused by this > > "simple"(?) issue - and even stackoverflow doesn't have a clear answer, or > > am I missing it? > > > > Thank you. > > > > -- > > Shamil > > > > -----Original Message----- > > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > > To: "Discussion concerning Visual Basic and related programming issues."< > > dba-vb at databaseadvisors.com> > > Date: Fri, 05 Jun 2009 02:48:38 +0400 > > Subject: Re: [dba-VB] > > Problem while publishing ADO.NET Data Service... > > > > > Hi All, > > > > > > I have got found one solution for the subject issue: > > > > > > Hosted ADO.NET Data Services & Silverlight > > > > > http://dvanderboom.wordpress.com/2009/01/07/hosted-adonet-data-services-silverlight/ > > > > > > But it doesn't look satisfactory for general case, and it doesn't work > > yet for my site (waiting for ISP support with IIS server restart - maybe > > that helps as web site restarting doesn't work) - I have got stuck here: > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > > > > > with a message: > > > <<< > > > IIS specified authentication schemes 'Basic, Anonymous', but the binding > > only supports specification of exactly one authentication scheme. Valid > > authentication schemes are Digest, Negotiate, NTLM, Basic, or Anonymous. > > Change the IIS settings so that only a single authentication scheme is used. > > > >>> > > > > > > and as you can see SOAP and WCF sample services do work OK here: > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/SOAPService.asmx > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/WCFService.svc > > > > > > If you know general solution for subject issue that woudl be very > > helpful. > > > > > > Thank you. > > > > > > -- > > > Shamil > > > > > > -----Original Message----- > > > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > > > To: "Discussion concerning Visual Basic and related programming issues."< > > dba-vb at databaseadvisors.com> > > > Date: Thu, 04 Jun 2009 23:06:18 +0400 > > > Subject: Re: [dba-VB] > > > Problem while publishing ADO.NET Data Service... > > > > > > > Hi All, > > > > > > > > I have changed location of NorthwindNety Data Service to: > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > > > > > > > still no solution for > > > > > > > > This collection already contains an address with scheme http. There > > can be at most one address per scheme in this collection. > > > > Parameter name: item > > > > > > > > :( > > > > > > > > -- > > > > Shamil > > > > > > > ><<< aaa >>> > > > _______________________________________________ > > > 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 mcp2004 at mail.ru Fri Jun 5 17:27:22 2009 From: mcp2004 at mail.ru (Salakhetdinov Shamil) Date: Sat, 06 Jun 2009 02:27:22 +0400 Subject: [dba-VB] =?koi8-r?b?UHJvYmxlbSB3aGlsZSBwdWJsaXNoaW5nIEFETy5ORVQg?= =?koi8-r?b?RGF0YSBTZXJ2aWNlLi4u?= In-Reply-To: <E1MCXZJ-0005yB-00.mcp2004-mail-ru@f163.mail.ru> References: <E1MCXZJ-0005yB-00.mcp2004-mail-ru@f163.mail.ru> Message-ID: <E1MChsg-0001pr-00.mcp2004-mail-ru@f147.mail.ru> Hi All, I have got my SilverLight sample working: http://shamils-4.hosting.parking.ru/sl/NWNetSilverlight.aspx it uses hardcoded Shipper sample table's data. Then I tried to "feed" my Silverlight sample form by using the following ADO.NET Data Service: http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc with code like that (which works well in C# console app): using System; using System.Collections.Generic; using System.Data.Services.Client; using System.ComponentModel; namespace ResearchAndDevelopment.Console { public class Shippers { public class Shipper { public int ID { get; set; } public string Name { get; set; } public string Phone { get; set; } public byte[] RowTimeStamp { get; set; } } private static Uri dataServiceURI = new Uri(@"http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc"); public static void ListShippers() { DataServiceContext ctx = new DataServiceContext(dataServiceURI); IEnumerable<Shipper> shippers = ctx.Execute<Shipper>( new Uri("Shipper?$orderby=ID", UriKind.Relative)); foreach (Shipper s in shippers) { System.Console.WriteLine("{0}. {1}", s.ID, s.Name); } } } } But I have found that SilverLight 2.0 doesn't support ADO.NET Data Services "out-of-the-box" as straightforward as the above sample code. This sample code doesn't even compile for SilverLight projects because those projects can't be used with .NET Framework 3.5. Therefore I'm currently stuck in feeding my SilverLight 2.0 sample with ADO.NET Data Services (.NET 3.5 SP1) ATOM feed. Do you have any samples' references explaining how to get ADO.NET Data Services Data into SilverLight 2.0 - the most straightforward way? Thank you. -- Shamil -----Original Message----- From: Salakhetdinov Shamil <mcp2004 at mail.ru> To: Mark Breen <marklbreen at gmail.com> Date: Fri, 05 Jun 2009 15:26:41 +0400 Subject: Re: [dba-VB] Problem while publishing ADO.NET Data Service... > Hi Mark, > > I'd add/outline additionally to my previous answer on your posting that ADO.NET Data Services can be used in heavily distributed workflow scenarious, with support of distributed transactions etc.etc. Workflows are designed and programmed for such applications using Windows Workflow Foundation (WF). "Not data" services are developed using Windows Communication Foundation (WCF) (and ADO.NET data services are also driven by WCF services AFAIU)... > > -- > Shamil > > -----Original Message----- > From: Mark Breen <marklbreen at gmail.com> > To: Salakhetdinov Shamil <mcp2004 at mail.ru>, "Discussion concerning Visual Basic and related programming issues." <dba-vb at databaseadvisors.com> > Date: Fri, 5 Jun 2009 09:10:10 +0100 > Subject: Re: [dba-VB] Problem while publishing ADO.NET Data Service... > > > Hello Shamil, > > as you know, I have two servers here in Ireland, would you like to do your > > diagnosis / development of future development work on one of my servers ? > > If so, that would be no problem. > > > > I am trying to keep up and read some of the link you posted int he last few > > days regarding ADO.NET Data Service. > > > > I am not clear yet about differences between Webservices and ADO.NET Data > > Service , but I expect if I spend some time to google and read, I can become > > clear. > > > > However, I have one question, do you think that this archetectire is > > without doubt the way we will all connect to our data sources in the future? > > How about performance, will it perform as good as current connections such > > as ado and odbc over SQL Server Port? > > > > thanks > > > > Mark > > > > > > > > 2009/6/5 Salakhetdinov Shamil <mcp2004 at mail.ru> > > > > > > > > Hi All, > > > > > > Just wanted to ask one more question on subject issue: I do not understand > > > why IIS should be restarted to have one of its Web Site's getting a new > > > setting activated? I mean why it's not enough to stop and start this web > > > site/web application? What am I missing? > > > > > > You can see by goodling how many developers got confused by this > > > "simple"(?) issue - and even stackoverflow doesn't have a clear answer, or > > > am I missing it? > > > > > > Thank you. > > > > > > -- > > > Shamil > > > > > > -----Original Message----- > > > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > > > To: "Discussion concerning Visual Basic and related programming issues."< > > > dba-vb at databaseadvisors.com> > > > Date: Fri, 05 Jun 2009 02:48:38 +0400 > > > Subject: Re: [dba-VB] > > > Problem while publishing ADO.NET Data Service... > > > > > > > Hi All, > > > > > > > > I have got found one solution for the subject issue: > > > > > > > > Hosted ADO.NET Data Services & Silverlight > > > > > > > http://dvanderboom.wordpress.com/2009/01/07/hosted-adonet-data-services-silverlight/ > > > > > > > > But it doesn't look satisfactory for general case, and it doesn't work > > > yet for my site (waiting for ISP support with IIS server restart - maybe > > > that helps as web site restarting doesn't work) - I have got stuck here: > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > > > > > > > with a message: > > > > <<< > > > > IIS specified authentication schemes 'Basic, Anonymous', but the binding > > > only supports specification of exactly one authentication scheme. Valid > > > authentication schemes are Digest, Negotiate, NTLM, Basic, or Anonymous. > > > Change the IIS settings so that only a single authentication scheme is used. > > > > >>> > > > > > > > > and as you can see SOAP and WCF sample services do work OK here: > > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/SOAPService.asmx > > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/WCFService.svc > > > > > > > > If you know general solution for subject issue that woudl be very > > > helpful. > > > > > > > > Thank you. > > > > > > > > -- > > > > Shamil > > > > > > > > -----Original Message----- > > > > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > > > > To: "Discussion concerning Visual Basic and related programming issues."< > > > dba-vb at databaseadvisors.com> > > > > Date: Thu, 04 Jun 2009 23:06:18 +0400 > > > > Subject: Re: [dba-VB] > > > > Problem while publishing ADO.NET Data Service... > > > > > > > > > Hi All, > > > > > > > > > > I have changed location of NorthwindNety Data Service to: > > > > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > > > > > > > > > still no solution for > > > > > > > > > > This collection already contains an address with scheme http. There > > > can be at most one address per scheme in this collection. > > > > > Parameter name: item > > > > > > > > > > :( > > > > > > > > > > -- > > > > > Shamil > > > > > > > > > ><<< aaa >>> > > > > _______________________________________________ > > > > dba-VB mailing list > > > > dba-VB at databaseadvisors.com > > > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > > > http://www.databaseadvisors.com > > > > > > > > > > _______________________________________________ > > > dba-VB mailing list > > > dba-VB at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > > http://www.databaseadvisors.com > > > > > > > > > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From mcp2004 at mail.ru Fri Jun 5 17:53:23 2009 From: mcp2004 at mail.ru (Salakhetdinov Shamil) Date: Sat, 06 Jun 2009 02:53:23 +0400 Subject: [dba-VB] =?koi8-r?b?UHJvYmxlbSB3aGlsZSBwdWJsaXNoaW5nIEFETy5ORVQg?= =?koi8-r?b?RGF0YSBTZXJ2aWNlLi4u?= In-Reply-To: <E1MChsg-0001pr-00.mcp2004-mail-ru@f147.mail.ru> References: <E1MChsg-0001pr-00.mcp2004-mail-ru@f147.mail.ru> Message-ID: <E1MCiHr-0000nr-00.mcp2004-mail-ru@f233.mail.ru> Hi All, I have found a good sample to consume ADO.NET Data Services using SIlverLight 2.0 - here it's: Using Silverlight 2 With ADO.NET Data Services http://msdn.microsoft.com/en-us/magazine/dd569758.aspx I will try to make something like that live tomorrow - time to sleep here. Thank you. -- Shamil -----Original Message----- From: Salakhetdinov Shamil <mcp2004 at mail.ru> To: "Discussion concerning Visual Basic and related programming issues."<dba-vb at databaseadvisors.com> Date: Sat, 06 Jun 2009 02:27:22 +0400 Subject: Re: [dba-VB] Problem while publishing ADO.NET Data Service... > Hi All, > > I have got my SilverLight sample working: > > http://shamils-4.hosting.parking.ru/sl/NWNetSilverlight.aspx > > it uses hardcoded Shipper sample table's data. > > Then I tried to "feed" my Silverlight sample form by using the following ADO.NET Data Service: > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > with code like that (which works well in C# console app): > > using System; > using System.Collections.Generic; > > using System.Data.Services.Client; > using System.ComponentModel; > > namespace ResearchAndDevelopment.Console > { > public class Shippers > { > public class Shipper > { > public int ID { get; set; } > public string Name { get; set; } > public string Phone { get; set; } > public byte[] RowTimeStamp { get; set; } > } > > private static Uri dataServiceURI = > new Uri(@"http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc"); > public static void ListShippers() > { > DataServiceContext ctx = > new DataServiceContext(dataServiceURI); > IEnumerable<Shipper> shippers = ctx.Execute<Shipper>( > new Uri("Shipper?$orderby=ID", UriKind.Relative)); > foreach (Shipper s in shippers) > { > System.Console.WriteLine("{0}. {1}", s.ID, s.Name); > } > } > } > } > > But I have found that SilverLight 2.0 doesn't support ADO.NET Data Services "out-of-the-box" as straightforward as the above sample code. This sample code doesn't even compile for SilverLight projects because those projects can't be used with .NET Framework 3.5. > > Therefore I'm currently stuck in feeding my SilverLight 2.0 sample with ADO.NET Data Services (.NET 3.5 SP1) ATOM feed. > > Do you have any samples' references explaining how to get ADO.NET Data Services Data into SilverLight 2.0 - the most straightforward way? > > Thank you. > > -- > Shamil > > > > -----Original Message----- > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > To: Mark Breen <marklbreen at gmail.com> > Date: Fri, 05 Jun 2009 15:26:41 +0400 > Subject: Re: [dba-VB] > Problem while publishing ADO.NET Data Service... > > > Hi Mark, > > > > I'd add/outline additionally to my previous answer on your posting that ADO.NET Data Services can be used in heavily distributed workflow scenarious, with support of distributed transactions etc.etc. Workflows are designed and programmed for such applications using Windows Workflow Foundation (WF). "Not data" services are developed using Windows Communication Foundation (WCF) (and ADO.NET data services are also driven by WCF services AFAIU)... > > > > -- > > Shamil > > > > -----Original Message----- > > From: Mark Breen <marklbreen at gmail.com> > > To: Salakhetdinov Shamil <mcp2004 at mail.ru>, "Discussion concerning Visual Basic and related programming issues." <dba-vb at databaseadvisors.com> > > Date: Fri, 5 Jun 2009 09:10:10 +0100 > > Subject: Re: [dba-VB] Problem while publishing ADO.NET Data Service... > > > > > Hello Shamil, > > > as you know, I have two servers here in Ireland, would you like to do your > > > diagnosis / development of future development work on one of my servers ? > > > If so, that would be no problem. > > > > > > I am trying to keep up and read some of the link you posted int he last few > > > days regarding ADO.NET Data Service. > > > > > > I am not clear yet about differences between Webservices and ADO.NET Data > > > Service , but I expect if I spend some time to google and read, I can become > > > clear. > > > > > > However, I have one question, do you think that this archetectire is > > > without doubt the way we will all connect to our data sources in the future? > > > How about performance, will it perform as good as current connections such > > > as ado and odbc over SQL Server Port? > > > > > > thanks > > > > > > Mark > > > > > > > > > > > > 2009/6/5 Salakhetdinov Shamil <mcp2004 at mail.ru> > > > > > > > > > > > Hi All, > > > > > > > > Just wanted to ask one more question on subject issue: I do not understand > > > > why IIS should be restarted to have one of its Web Site's getting a new > > > > setting activated? I mean why it's not enough to stop and start this web > > > > site/web application? What am I missing? > > > > > > > > You can see by goodling how many developers got confused by this > > > > "simple"(?) issue - and even stackoverflow doesn't have a clear answer, or > > > > am I missing it? > > > > > > > > Thank you. > > > > > > > > -- > > > > Shamil > > > > > > > > -----Original Message----- > > > > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > > > > To: "Discussion concerning Visual Basic and related programming issues."< > > > > dba-vb at databaseadvisors.com> > > > > Date: Fri, 05 Jun 2009 02:48:38 +0400 > > > > Subject: Re: [dba-VB] > > > > Problem while publishing ADO.NET Data Service... > > > > > > > > > Hi All, > > > > > > > > > > I have got found one solution for the subject issue: > > > > > > > > > > Hosted ADO.NET Data Services & Silverlight > > > > > > > > > http://dvanderboom.wordpress.com/2009/01/07/hosted-adonet-data-services-silverlight/ > > > > > > > > > > But it doesn't look satisfactory for general case, and it doesn't work > > > > yet for my site (waiting for ISP support with IIS server restart - maybe > > > > that helps as web site restarting doesn't work) - I have got stuck here: > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > > > > > > > > > with a message: > > > > > <<< > > > > > IIS specified authentication schemes 'Basic, Anonymous', but the binding > > > > only supports specification of exactly one authentication scheme. Valid > > > > authentication schemes are Digest, Negotiate, NTLM, Basic, or Anonymous. > > > > Change the IIS settings so that only a single authentication scheme is used. > > > > > >>> > > > > > > > > > > and as you can see SOAP and WCF sample services do work OK here: > > > > > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/SOAPService.asmx > > > > > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/WCFService.svc > > > > > > > > > > If you know general solution for subject issue that woudl be very > > > > helpful. > > > > > > > > > > Thank you. > > > > > > > > > > -- > > > > > Shamil > > > > > > > > > > -----Original Message----- > > > > > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > > > > > To: "Discussion concerning Visual Basic and related programming issues."< > > > > dba-vb at databaseadvisors.com> > > > > > Date: Thu, 04 Jun 2009 23:06:18 +0400 > > > > > Subject: Re: [dba-VB] > > > > > Problem while publishing ADO.NET Data Service... > > > > > > > > > > > Hi All, > > > > > > > > > > > > I have changed location of NorthwindNety Data Service to: > > > > > > > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > > > > > > > > > > > still no solution for > > > > > > > > > > > > This collection already contains an address with scheme http. There > > > > can be at most one address per scheme in this collection. > > > > > > Parameter name: item > > > > > > > > > > > > :( > > > > > > > > > > > > -- > > > > > > Shamil > > > > > > > > > > > ><<< aaa >>> > > > > > _______________________________________________ > > > > > dba-VB mailing list > > > > > dba-VB at databaseadvisors.com > > > > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > > > > http://www.databaseadvisors.com > > > > > > > > > > > > > _______________________________________________ > > > > dba-VB mailing list > > > > dba-VB at databaseadvisors.com > > > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > > > http://www.databaseadvisors.com > > > > > > > > > > > > > > > > > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From ssharkins at gmail.com Fri Jun 5 19:42:30 2009 From: ssharkins at gmail.com (Susan Harkins) Date: Fri, 5 Jun 2009 20:42:30 -0400 Subject: [dba-VB] New article from Charlotte and myself Message-ID: <8A3DB7DEC94740D797DD5597B4CEC864@SusanOne> <http://www.devx.com/dbzone/Article/41994> The .NET Newbie's Guide to Customizing the DataGridView Control These articles are aimed at helping people take the plunge. Susan H. From mcp2004 at mail.ru Sat Jun 6 11:41:34 2009 From: mcp2004 at mail.ru (Salakhetdinov Shamil) Date: Sat, 06 Jun 2009 20:41:34 +0400 Subject: [dba-VB] =?koi8-r?b?U0NSVU0vU2lsdmVyTGlnaHQgMi4w?= In-Reply-To: <E1MBeQ2-00082Q-00.mcp2004-mail-ru@f190.mail.ru> References: <E1MBeQ2-00082Q-00.mcp2004-mail-ru@f190.mail.ru> Message-ID: <E1MCyxa-0000uE-00.mcp2004-mail-ru@f230.mail.ru> Hi All, I have got SilverLight 2.0 working with sample ADO.NET Data Service - have a look: http://shamils-4.hosting.parking.ru/sl/NWNetSLAppTestPage.aspx - SilverLight sample form http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc - ADO.NET Data Service I have used this article to make some corrections to my previous code: Using Silverlight 2 With ADO.NET Data Services http://msdn.microsoft.com/en-us/magazine/dd569758.aspx Please take special attention to this note from article: <<< Cross-Domain Communications ADO.NET Data Services does not currently support cross-domain communications. Cross-domain communications are supported with standard REST and SOAP services, but not with ADO.NET Data Services. (As a note: the data services team is exploring the space and will post their progress to the Astoria team blog as they go.) This means that a Silverlight 2 client cannot talk to services exposed through ADO.NET Data Services if those services are hosted on a different domain than the domain that hosts the Silverlight client application >>> I first missed it and tried to make my SilverLight application working in debug mode on my PC while trying to get data from the above ADO.NET Data Service - it didn't work and resulted in obscure runtime error message box popping up in IE 7: A Runtime Error has occurred. Do you wish to debiug? Line: 0 Error: Access is denied When the application was put on the same server then it started to work OK. This sample application is just getting some data and exposing them in a Silverlight window/form - nothing special but in fact this is a core to grow "meat stuff" around. In the coming days (after lonng weekend break till next Tuesday) I plan to add some more features to this sample application as inserting/updating/deleting records and also simple navigation control. Please note that SilverLight applications are a kind of limited XBAP application which in turn are a kind of limited WPF applications: knowing how to develop one kind of them will simplify to master development of the others. What about making Northwind.Net.Silverlight application in a SCRUM team? Thank you. -- Shamil -----Original Message----- From: Salakhetdinov Shamil <mcp2004 at mail.ru> To: dba-VB <dba-vb at databaseadvisors.com> Date: Wed, 03 Jun 2009 04:33:26 +0400 Subject: [dba-VB] SCRUM/SilverLight 2.0 > Hi All, > > I have got setup simple SilverLight application here > > http://shamils-4.hosting.parking.ru/sl > > now using publish feature but it still doesn't work there when started from Internet and it works well locally. > > Do you know should there be any special tuning done of server side for SilverLight applications to run properly? (ASP.NET 2.0/3.5 run from that site just fine.) > > Thank you. > > -- > Shamil > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From mcp2004 at mail.ru Sat Jun 6 11:49:44 2009 From: mcp2004 at mail.ru (Salakhetdinov Shamil) Date: Sat, 06 Jun 2009 20:49:44 +0400 Subject: [dba-VB] =?koi8-r?b?TmV3IGFydGljbGUgZnJvbSBDaGFybG90dGUgYW5kIG15?= =?koi8-r?b?c2VsZg==?= In-Reply-To: <8A3DB7DEC94740D797DD5597B4CEC864@SusanOne> References: <8A3DB7DEC94740D797DD5597B4CEC864@SusanOne> Message-ID: <E1MCz5U-0000VQ-00.mcp2004-mail-ru@f251.mail.ru> Hi Susan, Thank you for the link. That's a good article. I'd note one of your outstanding abilities - an ability to "cultivate the developed ground" yielding very useful output... -- Shamil -----Original Message----- From: "Susan Harkins" <ssharkins at gmail.com> To: "VBLIst" <dba-vb at databaseadvisors.com> Date: Fri, 5 Jun 2009 20:42:30 -0400 Subject: [dba-VB] New article from Charlotte and myself > <http://www.devx.com/dbzone/Article/41994> > > The .NET Newbie's Guide to Customizing the DataGridView Control > > These articles are aimed at helping people take the plunge. > > Susan H. > _______________________________________________ > 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 Sat Jun 6 12:39:55 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Sat, 06 Jun 2009 19:39:55 +0200 Subject: [dba-VB] SCRUM/SilverLight 2.0 Message-ID: <sa2ac628.001@cactus.dk> Hi Shamil Thanks for the demo, and yes, that's a very inspiring article and I read it with great interest. Also note in that article the not so exposed link to this article: http://msdn.microsoft.com/magazine/cc794260 which is a bit more basic and explains the "mechanics" of data bound Silverlight pages quite well including in detail what's the Cross-Domain Communications issue is about, why it makes sense, and how to deal with it. Given that Northwind is a not a very complicated application, I think it could be well suited for a transfer to Silverlight. However, one big question is unanswered to me: Reporting in Silverlight. No ReportViewer is available. So how to deal with that? Link to a special reporting server running ASP.NET? Not a bad idea but, of course, but a little more complicated. Here is (no) more info on the subject: http://csharp-snippets.blogspot.com/2009/04/report-viewer-for-Silverlight-2.html <quote> Currently as I see there is only one way of doing these reports. Create your reports definition files in Sql 2005 or 2008 and then use an aspx page to load them. A short reference for the code snippet. It is better to place this in the page_load event of the aspx page. </quote> The Perpetuum component mentioned carries a cost of $750 (not exactly what I am looking for): http://www.perpetuumsoft.com/Product.aspx?lang=en&pid=102 /gustav >>> Salakhetdinov Shamil <mcp2004 at mail.ru> 06-06-2009 18:41 >>> Hi All, I have got SilverLight 2.0 working with sample ADO.NET Data Service - have a look: http://shamils-4.hosting.parking.ru/sl/NWNetSLAppTestPage.aspx - SilverLight sample form http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc - ADO.NET Data Service I have used this article to make some corrections to my previous code: Using Silverlight 2 With ADO.NET Data Services http://msdn.microsoft.com/en-us/magazine/dd569758.aspx Please take special attention to this note from article: <<< Cross-Domain Communications ADO.NET Data Services does not currently support cross-domain communications. Cross-domain communications are supported with standard REST and SOAP services, but not with ADO.NET Data Services. (As a note: the data services team is exploring the space and will post their progress to the Astoria team blog as they go.) This means that a Silverlight 2 client cannot talk to services exposed through ADO.NET Data Services if those services are hosted on a different domain than the domain that hosts the Silverlight client application >>> I first missed it and tried to make my SilverLight application working in debug mode on my PC while trying to get data from the above ADO.NET Data Service - it didn't work and resulted in obscure runtime error message box popping up in IE 7: A Runtime Error has occurred. Do you wish to debiug? Line: 0 Error: Access is denied When the application was put on the same server then it started to work OK. This sample application is just getting some data and exposing them in a Silverlight window/form - nothing special but in fact this is a core to grow "meat stuff" around. In the coming days (after lonng weekend break till next Tuesday) I plan to add some more features to this sample application as inserting/updating/deleting records and also simple navigation control. Please note that SilverLight applications are a kind of limited XBAP application which in turn are a kind of limited WPF applications: knowing how to develop one kind of them will simplify to master development of the others. What about making Northwind.Net.Silverlight application in a SCRUM team? Thank you. -- Shamil -----Original Message----- From: Salakhetdinov Shamil <mcp2004 at mail.ru> To: dba-VB <dba-vb at databaseadvisors.com> Date: Wed, 03 Jun 2009 04:33:26 +0400 Subject: [dba-VB] SCRUM/SilverLight 2.0 > Hi All, > > I have got setup simple SilverLight application here > > http://shamils-4.hosting.parking.ru/sl > > now using publish feature but it still doesn't work there when started from Internet and it works well locally. > > Do you know should there be any special tuning done of server side for SilverLight applications to run properly? (ASP.NET 2.0/3.5 run from that site just fine.) > > Thank you. > > -- > Shamil From mcp2004 at mail.ru Sat Jun 6 13:30:46 2009 From: mcp2004 at mail.ru (Salakhetdinov Shamil) Date: Sat, 06 Jun 2009 22:30:46 +0400 Subject: [dba-VB] =?koi8-r?b?U0NSVU0vU2lsdmVyTGlnaHQgMi4w?= In-Reply-To: <sa2ac628.001@cactus.dk> References: <sa2ac628.001@cactus.dk> Message-ID: <E1MD0fG-0001WJ-00.mcp2004-mail-ru@f144.mail.ru> Hi Gustav, Thank you for your feedback. I will put your articles' refs in my "immediate read list" (leaving tomorrow for Finland for a short two days holidays). Yes, that would be interesting to "cook" a SilverLight sample project in a (SCRUM) team. I have just published the results of my first SilverLight and ADO.NET Data Services exercize here on CodePlex - http://northwind.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=26600 As for reporting - I haven't checked yet the references you posted here and I have to leave now: - what about the idea of delivering reports using special service? (we talked about that a few times already) MS ReportViewer Control Reports's PDF can be generated on-the-fly directly in code and in memory and that memory stream can be broadcasted anywhere/consumed from anywhere AFAIK... But how to consume that memory stream in SilverLight is an open question here - AFAIK (am I wrong?) SilverLight can communicate with its hosting browser (.aspx) page - so I guess it (SilverLight) can somehow "command" its hosting browser web page to "talk to web server" to generate MS ReportViewer Report with certain params and then get this generated report presented outside of SilverLight area on the web page (and SilverLight will shrink while report is presented) - something like that? Sounds too complicated? Maybe SilverLight 3.0 will have new controls supporting MS ReporViewer Reports' presentation etc.? Maybe we'd better wait for that reporting features as SilverLight 3.0 is in beta now, and we still have quite some stuff to learn with SilverLight 2.0? I mean we can just make the part of sample project having forms and neglect reports until SilverLight 3.0 will be released? Thank you. -- Shamil -----Original Message----- From: "Gustav Brock" <Gustav at cactus.dk> To: <dba-vb at databaseadvisors.com> Date: Sat, 06 Jun 2009 19:39:55 +0200 Subject: Re: [dba-VB] SCRUM/SilverLight 2.0 > Hi Shamil > > Thanks for the demo, and yes, that's a very inspiring article and I read it with great interest. > Also note in that article the not so exposed link to this article: > > http://msdn.microsoft.com/magazine/cc794260 > > which is a bit more basic and explains the "mechanics" of data bound Silverlight pages quite well including in detail what's the Cross-Domain Communications issue is about, why it makes sense, and how to deal with it. > > Given that Northwind is a not a very complicated application, I think it could be well suited for a transfer to Silverlight. However, one big question is unanswered to me: Reporting in Silverlight. No ReportViewer is available. So how to deal with that? Link to a special reporting server running ASP.NET? > Not a bad idea but, of course, but a little more complicated. Here is (no) more info on the subject: > > http://csharp-snippets.blogspot.com/2009/04/report-viewer-for-Silverlight-2.html > > <quote> > Currently as I see there is only one way of doing these reports. Create your reports definition files in Sql 2005 or 2008 and then use an aspx page to load them. A short reference for the code snippet. It is better to place this in the page_load event of the aspx page. > </quote> > > The Perpetuum component mentioned carries a cost of $750 (not exactly what I am looking for): > > http://www.perpetuumsoft.com/Product.aspx?lang=en&pid=102 > > /gustav > > > >>> Salakhetdinov Shamil <mcp2004 at mail.ru> 06-06-2009 18:41 >>> > > Hi All, > > I have got SilverLight 2.0 working with sample ADO.NET Data Service - have a look: > > http://shamils-4.hosting.parking.ru/sl/NWNetSLAppTestPage.aspx - SilverLight sample form > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc - ADO.NET Data Service > > I have used this article to make some corrections to my previous code: > > Using Silverlight 2 With ADO.NET Data Services > http://msdn.microsoft.com/en-us/magazine/dd569758.aspx > > Please take special attention to this note from article: > > <<< > Cross-Domain Communications > ADO.NET Data Services does not currently support cross-domain communications. Cross-domain communications are supported with standard REST and SOAP services, but not with ADO.NET Data Services. (As a note: the data services team is exploring the space and will post their progress to the Astoria team blog as they go.) This means that a Silverlight 2 client cannot talk to services exposed through ADO.NET Data Services if those services are hosted on a different domain than the domain that hosts the Silverlight client application > >>> > > I first missed it and tried to make my SilverLight application working in debug mode on my PC while trying to get data from the above ADO.NET Data Service - it didn't work and resulted in obscure runtime error message box popping up in IE 7: > > A Runtime Error has occurred. > Do you wish to debiug? > > Line: 0 > Error: Access is denied > > When the application was put on the same server then it started to work OK. > > This sample application is just getting some data and exposing them in a Silverlight window/form - nothing special but in fact this is a core to grow "meat stuff" around. > > In the coming days (after lonng weekend break till next Tuesday) I plan to add some more features to this sample application as inserting/updating/deleting records and also simple navigation control. > > Please note that SilverLight applications are a kind of limited XBAP application which in turn are a kind of limited WPF applications: knowing how to develop one kind of them will simplify to master development of the others. > > What about making Northwind.Net.Silverlight application in a SCRUM team? > > Thank you. > > -- > Shamil > > > -----Original Message----- > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > To: dba-VB <dba-vb at databaseadvisors.com> > Date: Wed, 03 Jun 2009 04:33:26 +0400 > Subject: [dba-VB] SCRUM/SilverLight 2.0 > > > Hi All, > > > > I have got setup simple SilverLight application here > > > > http://shamils-4.hosting.parking.ru/sl > > > > now using publish feature but it still doesn't work there when started from Internet and it works well locally. > > > > Do you know should there be any special tuning done of server side for SilverLight applications to run properly? (ASP.NET 2.0/3.5 run from that site just fine.) > > > > 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 Sat Jun 6 13:46:19 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Sat, 06 Jun 2009 20:46:19 +0200 Subject: [dba-VB] SCRUM/SilverLight 2.0 Message-ID: <sa2ad5bf.003@cactus.dk> Hi Shamil et al Well, sadly report(ing) is not mentioned with a single word in the news about Silverlight 3 beta: http://silverlight.net/getstarted/silverlight3/default.aspx#whatsnew so some other method must be worked out. Streaming is an interesting idea but that will disable one of the true strengths of the ReportViewer: Interaction. /gustav >>> Salakhetdinov Shamil <mcp2004 at mail.ru> 06-06-2009 20:30 >>> Hi Gustav, Thank you for your feedback. I will put your articles' refs in my "immediate read list" (leaving tomorrow for Finland for a short two days holidays). Yes, that would be interesting to "cook" a SilverLight sample project in a (SCRUM) team. I have just published the results of my first SilverLight and ADO.NET Data Services exercize here on CodePlex - http://northwind.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=26600 As for reporting - I haven't checked yet the references you posted here and I have to leave now: - what about the idea of delivering reports using special service? (we talked about that a few times already) MS ReportViewer Control Reports's PDF can be generated on-the-fly directly in code and in memory and that memory stream can be broadcasted anywhere/consumed from anywhere AFAIK... But how to consume that memory stream in SilverLight is an open question here - AFAIK (am I wrong?) SilverLight can communicate with its hosting browser (.aspx) page - so I guess it (SilverLight) can somehow "command" its hosting browser web page to "talk to web server" to generate MS ReportViewer Report with certain params and then get this generated report presented outside of SilverLight area on the web page (and SilverLight will shrink while report is presented) - something like that? Sounds too complicated? Maybe SilverLight 3.0 will have new controls supporting MS ReporViewer Reports' presentation etc.? Maybe we'd better wait for that reporting features as SilverLight 3.0 is in beta now, and we still have quite some stuff to learn with SilverLight 2.0? I mean we can just make the part of sample project having forms and neglect reports until SilverLight 3.0 will be released? Thank you. -- Shamil -----Original Message----- From: "Gustav Brock" <Gustav at cactus.dk> To: <dba-vb at databaseadvisors.com> Date: Sat, 06 Jun 2009 19:39:55 +0200 Subject: Re: [dba-VB] SCRUM/SilverLight 2.0 > Hi Shamil > > Thanks for the demo, and yes, that's a very inspiring article and I read it with great interest. > Also note in that article the not so exposed link to this article: > > http://msdn.microsoft.com/magazine/cc794260 > > which is a bit more basic and explains the "mechanics" of data bound Silverlight pages quite well including in detail what's the Cross-Domain Communications issue is about, why it makes sense, and how to deal with it. > > Given that Northwind is a not a very complicated application, I think it could be well suited for a transfer to Silverlight. However, one big question is unanswered to me: Reporting in Silverlight. No ReportViewer is available. So how to deal with that? Link to a special reporting server running ASP.NET? > Not a bad idea but, of course, but a little more complicated. Here is (no) more info on the subject: > > http://csharp-snippets.blogspot.com/2009/04/report-viewer-for-Silverlight-2.html > > <quote> > Currently as I see there is only one way of doing these reports. Create your reports definition files in Sql 2005 or 2008 and then use an aspx page to load them. A short reference for the code snippet. It is better to place this in the page_load event of the aspx page. > </quote> > > The Perpetuum component mentioned carries a cost of $750 (not exactly what I am looking for): > > http://www.perpetuumsoft.com/Product.aspx?lang=en&pid=102 > > /gustav > > > >>> Salakhetdinov Shamil <mcp2004 at mail.ru> 06-06-2009 18:41 >>> > > Hi All, > > I have got SilverLight 2.0 working with sample ADO.NET Data Service - have a look: > > http://shamils-4.hosting.parking.ru/sl/NWNetSLAppTestPage.aspx - SilverLight sample form > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc - ADO.NET Data Service > > I have used this article to make some corrections to my previous code: > > Using Silverlight 2 With ADO.NET Data Services > http://msdn.microsoft.com/en-us/magazine/dd569758.aspx > > Please take special attention to this note from article: > > <<< > Cross-Domain Communications > ADO.NET Data Services does not currently support cross-domain communications. Cross-domain communications are supported with standard REST and SOAP services, but not with ADO.NET Data Services. (As a note: the data services team is exploring the space and will post their progress to the Astoria team blog as they go.) This means that a Silverlight 2 client cannot talk to services exposed through ADO.NET Data Services if those services are hosted on a different domain than the domain that hosts the Silverlight client application > >>> > > I first missed it and tried to make my SilverLight application working in debug mode on my PC while trying to get data from the above ADO.NET Data Service - it didn't work and resulted in obscure runtime error message box popping up in IE 7: > > A Runtime Error has occurred. > Do you wish to debiug? > > Line: 0 > Error: Access is denied > > When the application was put on the same server then it started to work OK. > > This sample application is just getting some data and exposing them in a Silverlight window/form - nothing special but in fact this is a core to grow "meat stuff" around. > > In the coming days (after lonng weekend break till next Tuesday) I plan to add some more features to this sample application as inserting/updating/deleting records and also simple navigation control. > > Please note that SilverLight applications are a kind of limited XBAP application which in turn are a kind of limited WPF applications: knowing how to develop one kind of them will simplify to master development of the others. > > What about making Northwind.Net.Silverlight application in a SCRUM team? > > Thank you. > > -- > Shamil > > > -----Original Message----- > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > To: dba-VB <dba-vb at databaseadvisors.com> > Date: Wed, 03 Jun 2009 04:33:26 +0400 > Subject: [dba-VB] SCRUM/SilverLight 2.0 > > > Hi All, > > > > I have got setup simple SilverLight application here > > > > http://shamils-4.hosting.parking.ru/sl > > > > now using publish feature but it still doesn't work there when started from Internet and it works well locally. > > > > Do you know should there be any special tuning done of server side for SilverLight applications to run properly? (ASP.NET 2.0/3.5 run from that site just fine.) > > > > Thank you. > > > > -- > > Shamil From mcp2004 at mail.ru Sat Jun 6 17:03:31 2009 From: mcp2004 at mail.ru (Salakhetdinov Shamil) Date: Sun, 07 Jun 2009 02:03:31 +0400 Subject: [dba-VB] =?koi8-r?b?U0NSVU0vU2lsdmVyTGlnaHQgMi4w?= In-Reply-To: <sa2ad5bf.003@cactus.dk> References: <sa2ad5bf.003@cactus.dk> Message-ID: <E1MD3z9-0000GL-00.mcp2004-mail-ru@f202.mail.ru> Hi Gustav at all, OK, so we have to find a way how to present reports another way - as far as I can see Perpetuum your referred currently "just" returns the image of report - all pages at once. As for .pdf, .xls etc. exports they generate them on service side and return to the browser in popup window: http://www.perpetuumsoft.com/Demo/slviewer/DemoReportsService.svc/Rest/Export?id=ReportsList&format=pdf http://www.perpetuumsoft.com/Demo/slviewer/DemoReportsService.svc/Rest/Export?id=ReportsList&format=excel http://www.perpetuumsoft.com/Demo/slviewer/DemoReportsService.svc/Rest/Export?id=ReportsList&format=rtf http://www.perpetuumsoft.com/Demo/slviewer/DemoReportsService.svc/Rest/Export?id=ReportsList&format=html The new features for SilverLight 3.0 show that this technology is targeted first of all for dynamic media content than for (relatively static) reports - therefore let's try to use "right tools for the right job"? - and if developing Northwind.NET.Silverlight sample then use SilverLight features to present interactive forms, and to display reports - use something as Perpetuum does - in popup window - generated on server side .PDF... OK? Thank you. -- Shamil -----Original Message----- From: "Gustav Brock" <Gustav at cactus.dk> To: <dba-vb at databaseadvisors.com> Date: Sat, 06 Jun 2009 20:46:19 +0200 Subject: Re: [dba-VB] SCRUM/SilverLight 2.0 > Hi Shamil et al > > Well, sadly report(ing) is not mentioned with a single word in the news about Silverlight 3 beta: > > http://silverlight.net/getstarted/silverlight3/default.aspx#whatsnew > > so some other method must be worked out. > Streaming is an interesting idea but that will disable one of the true strengths of the ReportViewer: Interaction. > > /gustav > > > >>> Salakhetdinov Shamil <mcp2004 at mail.ru> 06-06-2009 20:30 >>> > Hi Gustav, > > Thank you for your feedback. I will put your articles' refs in my "immediate read list" (leaving tomorrow for Finland for a short two days holidays). Yes, that would be interesting to "cook" a SilverLight sample project in a (SCRUM) team. > > I have just published the results of my first SilverLight and ADO.NET Data Services exercize here on CodePlex - http://northwind.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=26600 > > As for reporting - I haven't checked yet the references you posted here and I have to leave now: > > - what about the idea of delivering reports using special service? (we talked about that a few times already) MS ReportViewer Control Reports's PDF can be generated on-the-fly directly in code and in memory and that memory stream can be broadcasted anywhere/consumed from anywhere AFAIK... > > But how to consume that memory stream in SilverLight is an open question here - AFAIK (am I wrong?) SilverLight can communicate with its hosting browser (.aspx) page - so I guess it (SilverLight) can somehow "command" its hosting browser web page to "talk to web server" to generate MS ReportViewer Report with certain params and then get this generated report presented outside of SilverLight area on the web page (and SilverLight will shrink while report is presented) - something like that? Sounds too complicated? Maybe SilverLight 3.0 will have new controls supporting MS ReporViewer Reports' presentation etc.? Maybe we'd better wait for that reporting features as SilverLight 3.0 is in beta now, and we still have quite some stuff to learn with SilverLight 2.0? I mean we can just make the part of sample project having forms and neglect reports until SilverLight 3.0 will be released? > > Thank you. > > -- > Shamil > > > -----Original Message----- > From: "Gustav Brock" <Gustav at cactus.dk> > To: <dba-vb at databaseadvisors.com> > Date: Sat, 06 Jun 2009 19:39:55 +0200 > Subject: Re: [dba-VB] SCRUM/SilverLight 2.0 > > > Hi Shamil > > > > Thanks for the demo, and yes, that's a very inspiring article and I read it with great interest. > > Also note in that article the not so exposed link to this article: > > > > http://msdn.microsoft.com/magazine/cc794260 > > > > which is a bit more basic and explains the "mechanics" of data bound Silverlight pages quite well including in detail what's the Cross-Domain Communications issue is about, why it makes sense, and how to deal with it. > > > > Given that Northwind is a not a very complicated application, I think it could be well suited for a transfer to Silverlight. However, one big question is unanswered to me: Reporting in Silverlight. No ReportViewer is available. So how to deal with that? Link to a special reporting server running ASP.NET? > > Not a bad idea but, of course, but a little more complicated. Here is (no) more info on the subject: > > > > http://csharp-snippets.blogspot.com/2009/04/report-viewer-for-Silverlight-2.html > > > > <quote> > > Currently as I see there is only one way of doing these reports. Create your reports definition files in Sql 2005 or 2008 and then use an aspx page to load them. A short reference for the code snippet. It is better to place this in the page_load event of the aspx page. > > </quote> > > > > The Perpetuum component mentioned carries a cost of $750 (not exactly what I am looking for): > > > > http://www.perpetuumsoft.com/Product.aspx?lang=en&pid=102 > > > > /gustav > > > > > > >>> Salakhetdinov Shamil <mcp2004 at mail.ru> 06-06-2009 18:41 >>> > > > > Hi All, > > > > I have got SilverLight 2.0 working with sample ADO.NET Data Service - have a look: > > > > http://shamils-4.hosting.parking.ru/sl/NWNetSLAppTestPage.aspx - SilverLight sample form > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc - ADO.NET Data Service > > > > I have used this article to make some corrections to my previous code: > > > > Using Silverlight 2 With ADO.NET Data Services > > http://msdn.microsoft.com/en-us/magazine/dd569758.aspx > > > > Please take special attention to this note from article: > > > > <<< > > Cross-Domain Communications > > ADO.NET Data Services does not currently support cross-domain communications. Cross-domain communications are supported with standard REST and SOAP services, but not with ADO.NET Data Services. (As a note: the data services team is exploring the space and will post their progress to the Astoria team blog as they go.) This means that a Silverlight 2 client cannot talk to services exposed through ADO.NET Data Services if those services are hosted on a different domain than the domain that hosts the Silverlight client application > > >>> > > > > I first missed it and tried to make my SilverLight application working in debug mode on my PC while trying to get data from the above ADO.NET Data Service - it didn't work and resulted in obscure runtime error message box popping up in IE 7: > > > > A Runtime Error has occurred. > > Do you wish to debiug? > > > > Line: 0 > > Error: Access is denied > > > > When the application was put on the same server then it started to work OK. > > > > This sample application is just getting some data and exposing them in a Silverlight window/form - nothing special but in fact this is a core to grow "meat stuff" around. > > > > In the coming days (after lonng weekend break till next Tuesday) I plan to add some more features to this sample application as inserting/updating/deleting records and also simple navigation control. > > > > Please note that SilverLight applications are a kind of limited XBAP application which in turn are a kind of limited WPF applications: knowing how to develop one kind of them will simplify to master development of the others. > > > > What about making Northwind.Net.Silverlight application in a SCRUM team? > > > > Thank you. > > > > -- > > Shamil > > > > > > -----Original Message----- > > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > > To: dba-VB <dba-vb at databaseadvisors.com> > > Date: Wed, 03 Jun 2009 04:33:26 +0400 > > Subject: [dba-VB] SCRUM/SilverLight 2.0 > > > > > Hi All, > > > > > > I have got setup simple SilverLight application here > > > > > > http://shamils-4.hosting.parking.ru/sl > > > > > > now using publish feature but it still doesn't work there when started from Internet and it works well locally. > > > > > > Do you know should there be any special tuning done of server side for SilverLight applications to run properly? (ASP.NET 2.0/3.5 run from that site just fine.) > > > > > > Thank you. > > > > > > -- > > > Shamil > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From ssharkins at gmail.com Sat Jun 6 17:11:08 2009 From: ssharkins at gmail.com (Susan Harkins) Date: Sat, 6 Jun 2009 18:11:08 -0400 Subject: [dba-VB] New article from Charlotte and myself References: <8A3DB7DEC94740D797DD5597B4CEC864@SusanOne> <E1MCz5U-0000VQ-00.mcp2004-mail-ru@f251.mail.ru> Message-ID: <2FF08D3F779A45A1AF16322D6BEE0EAD@SusanOne> Thank you Shamil -- I'm glad you liked it! Charlotte is teaching me .NET -- best way for me to learn I think is to just plunge in and let an expert say, "No, no, no..." ;) Susan H. > Hi Susan, > > Thank you for the link. > That's a good article. > I'd note one of your outstanding abilities - an ability to "cultivate the > developed ground" yielding very useful output... From Gustav at cactus.dk Sat Jun 6 18:00:21 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Sun, 07 Jun 2009 01:00:21 +0200 Subject: [dba-VB] SCRUM/SilverLight 2.0 Message-ID: <sa2b114c.004@cactus.dk> Hi Shamil OK for me. /gustav >>> Salakhetdinov Shamil <mcp2004 at mail.ru> 07-06-2009 00:03 >>> Hi Gustav at all, OK, so we have to find a way how to present reports another way - as far as I can see Perpetuum your referred currently "just" returns the image of report - all pages at once. As for .pdf, .xls etc. exports they generate them on service side and return to the browser in popup window: http://www.perpetuumsoft.com/Demo/slviewer/DemoReportsService.svc/Rest/Export?id=ReportsList&format=pdf http://www.perpetuumsoft.com/Demo/slviewer/DemoReportsService.svc/Rest/Export?id=ReportsList&format=excel http://www.perpetuumsoft.com/Demo/slviewer/DemoReportsService.svc/Rest/Export?id=ReportsList&format=rtf http://www.perpetuumsoft.com/Demo/slviewer/DemoReportsService.svc/Rest/Export?id=ReportsList&format=html The new features for SilverLight 3.0 show that this technology is targeted first of all for dynamic media content than for (relatively static) reports - therefore let's try to use "right tools for the right job"? - and if developing Northwind.NET.Silverlight sample then use SilverLight features to present interactive forms, and to display reports - use something as Perpetuum does - in popup window - generated on server side .PDF... OK? Thank you. -- Shamil -----Original Message----- From: "Gustav Brock" <Gustav at cactus.dk> To: <dba-vb at databaseadvisors.com> Date: Sat, 06 Jun 2009 20:46:19 +0200 Subject: Re: [dba-VB] SCRUM/SilverLight 2.0 > Hi Shamil et al > > Well, sadly report(ing) is not mentioned with a single word in the news about Silverlight 3 beta: > > http://silverlight.net/getstarted/silverlight3/default.aspx#whatsnew > > so some other method must be worked out. > Streaming is an interesting idea but that will disable one of the true strengths of the ReportViewer: Interaction. > > /gustav > > > >>> Salakhetdinov Shamil <mcp2004 at mail.ru> 06-06-2009 20:30 >>> > Hi Gustav, > > Thank you for your feedback. I will put your articles' refs in my "immediate read list" (leaving tomorrow for Finland for a short two days holidays). Yes, that would be interesting to "cook" a SilverLight sample project in a (SCRUM) team. > > I have just published the results of my first SilverLight and ADO.NET Data Services exercize here on CodePlex - http://northwind.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=26600 > > As for reporting - I haven't checked yet the references you posted here and I have to leave now: > > - what about the idea of delivering reports using special service? (we talked about that a few times already) MS ReportViewer Control Reports's PDF can be generated on-the-fly directly in code and in memory and that memory stream can be broadcasted anywhere/consumed from anywhere AFAIK... > > But how to consume that memory stream in SilverLight is an open question here - AFAIK (am I wrong?) SilverLight can communicate with its hosting browser (.aspx) page - so I guess it (SilverLight) can somehow "command" its hosting browser web page to "talk to web server" to generate MS ReportViewer Report with certain params and then get this generated report presented outside of SilverLight area on the web page (and SilverLight will shrink while report is presented) - something like that? Sounds too complicated? Maybe SilverLight 3.0 will have new controls supporting MS ReporViewer Reports' presentation etc.? Maybe we'd better wait for that reporting features as SilverLight 3.0 is in beta now, and we still have quite some stuff to learn with SilverLight 2.0? I mean we can just make the part of sample project having forms and neglect reports until SilverLight 3.0 will be released? > > Thank you. > > -- > Shamil > > > -----Original Message----- > From: "Gustav Brock" <Gustav at cactus.dk> > To: <dba-vb at databaseadvisors.com> > Date: Sat, 06 Jun 2009 19:39:55 +0200 > Subject: Re: [dba-VB] SCRUM/SilverLight 2.0 > > > Hi Shamil > > > > Thanks for the demo, and yes, that's a very inspiring article and I read it with great interest. > > Also note in that article the not so exposed link to this article: > > > > http://msdn.microsoft.com/magazine/cc794260 > > > > which is a bit more basic and explains the "mechanics" of data bound Silverlight pages quite well including in detail what's the Cross-Domain Communications issue is about, why it makes sense, and how to deal with it. > > > > Given that Northwind is a not a very complicated application, I think it could be well suited for a transfer to Silverlight. However, one big question is unanswered to me: Reporting in Silverlight. No ReportViewer is available. So how to deal with that? Link to a special reporting server running ASP.NET? > > Not a bad idea but, of course, but a little more complicated. Here is (no) more info on the subject: > > > > http://csharp-snippets.blogspot.com/2009/04/report-viewer-for-Silverlight-2.html > > > > <quote> > > Currently as I see there is only one way of doing these reports. Create your reports definition files in Sql 2005 or 2008 and then use an aspx page to load them. A short reference for the code snippet. It is better to place this in the page_load event of the aspx page. > > </quote> > > > > The Perpetuum component mentioned carries a cost of $750 (not exactly what I am looking for): > > > > http://www.perpetuumsoft.com/Product.aspx?lang=en&pid=102 > > > > /gustav From accessd at shaw.ca Sun Jun 7 11:54:42 2009 From: accessd at shaw.ca (Jim Lawrence) Date: Sun, 7 Jun 2009 09:54:42 -0700 Subject: [dba-VB] Problem while publishing ADO.NET Data Service... In-Reply-To: <E1MCiHr-0000nr-00.mcp2004-mail-ru@f233.mail.ru> References: <E1MChsg-0001pr-00.mcp2004-mail-ru@f147.mail.ru> <E1MCiHr-0000nr-00.mcp2004-mail-ru@f233.mail.ru> Message-ID: <24FBF921E25D4277BCB79042D579EE6C@creativesystemdesigns.com> Hi Shamil: I have been watching this thread for a bit and was wondering, if proceeding along this direction is in fact tying the designers and users to a very proprietary desktop and set of BE services? Just to get much of the apps running requires the very latest patches and specific downloads, products that are not integrated into the default Windows OS. Only the most carefully managed office location would be able to even run this technology. >From my point of view the following is the reality: 1. On most sites I am just the contractor and not as the head IT guy. 2. Clients want to hire me not marry me. 3. Many sites using 'mixed' desktops (Windows/Mac/Linux). 4. The trend is towards 'portability' on cross-platform environments. On the other hand, this is all great fun technology and I have been very much enjoying this thread. Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Salakhetdinov Shamil Sent: Friday, June 05, 2009 3:53 PM To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Problem while publishing ADO.NET Data Service... Hi All, I have found a good sample to consume ADO.NET Data Services using SIlverLight 2.0 - here it's: Using Silverlight 2 With ADO.NET Data Services http://msdn.microsoft.com/en-us/magazine/dd569758.aspx I will try to make something like that live tomorrow - time to sleep here. Thank you. -- Shamil -----Original Message----- From: Salakhetdinov Shamil <mcp2004 at mail.ru> To: "Discussion concerning Visual Basic and related programming issues."<dba-vb at databaseadvisors.com> Date: Sat, 06 Jun 2009 02:27:22 +0400 Subject: Re: [dba-VB] Problem while publishing ADO.NET Data Service... > Hi All, > > I have got my SilverLight sample working: > > http://shamils-4.hosting.parking.ru/sl/NWNetSilverlight.aspx > > it uses hardcoded Shipper sample table's data. > > Then I tried to "feed" my Silverlight sample form by using the following ADO.NET Data Service: > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > with code like that (which works well in C# console app): > > using System; > using System.Collections.Generic; > > using System.Data.Services.Client; > using System.ComponentModel; > > namespace ResearchAndDevelopment.Console > { > public class Shippers > { > public class Shipper > { > public int ID { get; set; } > public string Name { get; set; } > public string Phone { get; set; } > public byte[] RowTimeStamp { get; set; } > } > > private static Uri dataServiceURI = > new Uri(@"http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.sv c"); > public static void ListShippers() > { > DataServiceContext ctx = > new DataServiceContext(dataServiceURI); > IEnumerable<Shipper> shippers = ctx.Execute<Shipper>( > new Uri("Shipper?$orderby=ID", UriKind.Relative)); > foreach (Shipper s in shippers) > { > System.Console.WriteLine("{0}. {1}", s.ID, s.Name); > } > } > } > } > > But I have found that SilverLight 2.0 doesn't support ADO.NET Data Services "out-of-the-box" as straightforward as the above sample code. This sample code doesn't even compile for SilverLight projects because those projects can't be used with .NET Framework 3.5. > > Therefore I'm currently stuck in feeding my SilverLight 2.0 sample with ADO.NET Data Services (.NET 3.5 SP1) ATOM feed. > > Do you have any samples' references explaining how to get ADO.NET Data Services Data into SilverLight 2.0 - the most straightforward way? > > Thank you. > > -- > Shamil > > > > -----Original Message----- > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > To: Mark Breen <marklbreen at gmail.com> > Date: Fri, 05 Jun 2009 15:26:41 +0400 > Subject: Re: [dba-VB] > Problem while publishing ADO.NET Data Service... > > > Hi Mark, > > > > I'd add/outline additionally to my previous answer on your posting that ADO.NET Data Services can be used in heavily distributed workflow scenarious, with support of distributed transactions etc.etc. Workflows are designed and programmed for such applications using Windows Workflow Foundation (WF). "Not data" services are developed using Windows Communication Foundation (WCF) (and ADO.NET data services are also driven by WCF services AFAIU)... > > > > -- > > Shamil > > > > -----Original Message----- > > From: Mark Breen <marklbreen at gmail.com> > > To: Salakhetdinov Shamil <mcp2004 at mail.ru>, "Discussion concerning Visual Basic and related programming issues." <dba-vb at databaseadvisors.com> > > Date: Fri, 5 Jun 2009 09:10:10 +0100 > > Subject: Re: [dba-VB] Problem while publishing ADO.NET Data Service... > > > > > Hello Shamil, > > > as you know, I have two servers here in Ireland, would you like to do your > > > diagnosis / development of future development work on one of my servers ? > > > If so, that would be no problem. > > > > > > I am trying to keep up and read some of the link you posted int he last few > > > days regarding ADO.NET Data Service. > > > > > > I am not clear yet about differences between Webservices and ADO.NET Data > > > Service , but I expect if I spend some time to google and read, I can become > > > clear. > > > > > > However, I have one question, do you think that this archetectire is > > > without doubt the way we will all connect to our data sources in the future? > > > How about performance, will it perform as good as current connections such > > > as ado and odbc over SQL Server Port? > > > > > > thanks > > > > > > Mark > > > > > > > > > > > > 2009/6/5 Salakhetdinov Shamil <mcp2004 at mail.ru> > > > > > > > > > > > Hi All, > > > > > > > > Just wanted to ask one more question on subject issue: I do not understand > > > > why IIS should be restarted to have one of its Web Site's getting a new > > > > setting activated? I mean why it's not enough to stop and start this web > > > > site/web application? What am I missing? > > > > > > > > You can see by goodling how many developers got confused by this > > > > "simple"(?) issue - and even stackoverflow doesn't have a clear answer, or > > > > am I missing it? > > > > > > > > Thank you. > > > > > > > > -- > > > > Shamil > > > > > > > > -----Original Message----- > > > > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > > > > To: "Discussion concerning Visual Basic and related programming issues."< > > > > dba-vb at databaseadvisors.com> > > > > Date: Fri, 05 Jun 2009 02:48:38 +0400 > > > > Subject: Re: [dba-VB] > > > > Problem while publishing ADO.NET Data Service... > > > > > > > > > Hi All, > > > > > > > > > > I have got found one solution for the subject issue: > > > > > > > > > > Hosted ADO.NET Data Services & Silverlight > > > > > > > > > http://dvanderboom.wordpress.com/2009/01/07/hosted-adonet-data-services-silv erlight/ > > > > > > > > > > But it doesn't look satisfactory for general case, and it doesn't work > > > > yet for my site (waiting for ISP support with IIS server restart - maybe > > > > that helps as web site restarting doesn't work) - I have got stuck here: > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > > > > > > > > > with a message: > > > > > <<< > > > > > IIS specified authentication schemes 'Basic, Anonymous', but the binding > > > > only supports specification of exactly one authentication scheme. Valid > > > > authentication schemes are Digest, Negotiate, NTLM, Basic, or Anonymous. > > > > Change the IIS settings so that only a single authentication scheme is used. > > > > > >>> > > > > > > > > > > and as you can see SOAP and WCF sample services do work OK here: > > > > > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/SOAPService.asmx > > > > > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/WCFService.svc > > > > > > > > > > If you know general solution for subject issue that woudl be very > > > > helpful. > > > > > > > > > > Thank you. > > > > > > > > > > -- > > > > > Shamil > > > > > > > > > > -----Original Message----- > > > > > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > > > > > To: "Discussion concerning Visual Basic and related programming issues."< > > > > dba-vb at databaseadvisors.com> > > > > > Date: Thu, 04 Jun 2009 23:06:18 +0400 > > > > > Subject: Re: [dba-VB] > > > > > Problem while publishing ADO.NET Data Service... > > > > > > > > > > > Hi All, > > > > > > > > > > > > I have changed location of NorthwindNety Data Service to: > > > > > > > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > > > > > > > > > > > still no solution for > > > > > > > > > > > > This collection already contains an address with scheme http. There > > > > can be at most one address per scheme in this collection. > > > > > > Parameter name: item > > > > > > > > > > > > :( > > > > > > > > > > > > -- > > > > > > Shamil > > > > > > > > > > > ><<< aaa >>> > > > > > _______________________________________________ > > > > > dba-VB mailing list > > > > > dba-VB at databaseadvisors.com > > > > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > > > > http://www.databaseadvisors.com > > > > > > > > > > > > > _______________________________________________ > > > > dba-VB mailing list > > > > dba-VB at databaseadvisors.com > > > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > > > http://www.databaseadvisors.com > > > > > > > > > > > > > > > > > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > > > _______________________________________________ > 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 raibeart at gmail.com Mon Jun 8 10:26:03 2009 From: raibeart at gmail.com (Robert Stewart) Date: Mon, 08 Jun 2009 10:26:03 -0500 Subject: [dba-VB] Problem while publishing ADO.NET Data Service... Message-ID: <4a2d2dad.02c3f10a.7bf4.1acb@mx.google.com> To butt in here... A Silverlight program requires the Silverlight add in. There is one to run under Linux also and one being developed for Mac. Having said that, I have NEVER seen a "mixed environment" in any corporate office in my life as an IT person. ALL of the companies that I have dealt with are in Windows OS. And, isn't Silverlight trying to do the same thing that Flash has done, go across platforms? To be blunt, I have made my living using Microsoft software. If it was not good, then the Open source world would be dominate. They are not. I think you get what you pay for with open source. Although, some people feel that you do not get what you pay for with MS. Personally, if someone wants something to run on Linux, I send them looking for someone else to do it. I might consider doing it if Silverlight will do the cross-platform thing. Otherwise, I am an MS kind of guy. Remember that we are working with Beta software in Silverlight 3.0. And, here at home, I am also working with Windows 7 and VS 2010. One of which is RC and the other beta. And, I am running them on a VM. So, I really do not care what they need to run. It can be wiped out and done over in a hour or so. The point is that I am getting ahead of the learning curve on all of the changes that are in the next release. And at the same time, creating a piece of software that I will be "renting" under a software as a service plan. My mantra is do it right the first time, customize it to the clients requirements and leave them to it. I had one customer that went 8 years before calling me to change their MS Access program because of the way I did it the first time. They only called because they need to add new functionality. That is the way it should always be. At 12:00 PM 6/7/2009, you wrote: >Date: Sun, 7 Jun 2009 09:54:42 -0700 >From: "Jim Lawrence" <accessd at shaw.ca> >Subject: Re: [dba-VB] Problem while publishing ADO.NET Data Service... >To: "'Salakhetdinov Shamil'" <mcp2004 at mail.ru>, "'Discussion > concerning Visual Basic and related programming issues.'" > <dba-vb at databaseadvisors.com> >Message-ID: > <24FBF921E25D4277BCB79042D579EE6C at creativesystemdesigns.com> >Content-Type: text/plain; charset="us-ascii" > >Hi Shamil: > >I have been watching this thread for a bit and was wondering, if proceeding >along this direction is in fact tying the designers and users to a very >proprietary desktop and set of BE services? > >Just to get much of the apps running requires the very latest patches and >specific downloads, products that are not integrated into the default >Windows OS. Only the most carefully managed office location would be able to >even run this technology. > > >From my point of view the following is the reality: >1. On most sites I am just the contractor and not as the head IT guy. >2. Clients want to hire me not marry me. >3. Many sites using 'mixed' desktops (Windows/Mac/Linux). >4. The trend is towards 'portability' on cross-platform environments. > >On the other hand, this is all great fun technology and I have been very >much enjoying this thread. > >Jim From cfoust at infostatsystems.com Mon Jun 8 10:28:15 2009 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 8 Jun 2009 08:28:15 -0700 Subject: [dba-VB] New article from Charlotte and myself In-Reply-To: <2FF08D3F779A45A1AF16322D6BEE0EAD@SusanOne> References: <8A3DB7DEC94740D797DD5597B4CEC864@SusanOne><E1MCz5U-0000VQ-00.mcp2004-mail-ru@f251.mail.ru> <2FF08D3F779A45A1AF16322D6BEE0EAD@SusanOne> Message-ID: <F55048AF7E974F429BB24597D7355EEAB87775@INFOSERVER04.infostat.local> Just who are you calling an expert, Susan?? I make it up as I go along! LOL Seriously, I work in an environment where we use VS Pro and 3rd party controls that we then customize to the look and behavior we want as standard. Working directly with the vanilla controls is a good exercise for me and a challenge as well. These aren't paint by numbers articles, they're more inducements to try it out by suggesting stuff that is somewhat familiar to an Access developer. Charlotte -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Saturday, June 06, 2009 3:11 PM To: Salakhetdinov Shamil; Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] New article from Charlotte and myself Thank you Shamil -- I'm glad you liked it! Charlotte is teaching me .NET -- best way for me to learn I think is to just plunge in and let an expert say, "No, no, no..." ;) Susan H. > Hi Susan, > > Thank you for the link. > That's a good article. > I'd note one of your outstanding abilities - an ability to "cultivate > the developed ground" yielding very useful output... _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From ssharkins at gmail.com Mon Jun 8 10:41:43 2009 From: ssharkins at gmail.com (Susan Harkins) Date: Mon, 8 Jun 2009 11:41:43 -0400 Subject: [dba-VB] New article from Charlotte and myself References: <8A3DB7DEC94740D797DD5597B4CEC864@SusanOne><E1MCz5U-0000VQ-00.mcp2004-mail-ru@f251.mail.ru><2FF08D3F779A45A1AF16322D6BEE0EAD@SusanOne> <F55048AF7E974F429BB24597D7355EEAB87775@INFOSERVER04.infostat.local> Message-ID: <8EFA58891A294160839C910AF71A9118@SusanOne> Um... folks, Charlotte's modesty is becoming and something I've learned to expect from Charlotte, but don't let her kid you -- I pride myself on learning the nitty gritty of "using" new technologies, and I really would be struggling without her. Stayed tuned for our next article on typed datasets! I'm so excited... and I feel like dancing... um... Okay, I'm a liar... I'm clueless. Susan H. > Just who are you calling an expert, Susan?? I make it up as I go along! > LOL > > Seriously, I work in an environment where we use VS Pro and 3rd party > controls that we then customize to the look and behavior we want as > standard. Working directly with the vanilla controls is a good exercise > for me and a challenge as well. These aren't paint by numbers articles, > they're more inducements to try it out by suggesting stuff that is > somewhat familiar to an Access developer. From accessd at shaw.ca Mon Jun 8 12:33:59 2009 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 8 Jun 2009 10:33:59 -0700 Subject: [dba-VB] Problem while publishing ADO.NET Data Service... In-Reply-To: <4a2d2dad.02c3f10a.7bf4.1acb@mx.google.com> References: <4a2d2dad.02c3f10a.7bf4.1acb@mx.google.com> Message-ID: <EF8B0B115A2E46E489C38B5D9FF81CE4@creativesystemdesigns.com> Hi Robert: You have not been around much. ;-) I work with some of the largest franchisees (McDonalds, Sony, Staples, Wal-Mart etc) and with virtually all the local banks (BNS, CIBC, RBC, BMO, HSBC etc). Desktops may be all Windows but step away from the front counters for a moment and there could be any type of OSs in the back office and at corporate head-quarters. Managers also like their perks and in some case that mean they have Macs. When it comes to BE servers the mix is 30-70. These servers are not cheap as they are top end. (Dell, HP and IBM) Even MS uses(d) Linux networks. Three years ago even Microsoft was using a large Linux site in San Francisco to host their Hot-mail. I worked for years with our local provincial government and all their big databases were in Oracle and other miscellaneous DBs on Linux... In fact most big systems were Linux based. I worked for Maps-BC through a number of departments and their desktop systems were mostly Linux running Arc-Info and InterGraph mapping software... 5 floors of computers. I supported one of the very few MS SQL systems (and wrote all the software for the system) but just could not penetrate the system culture and get more similar systems adopted... believe me, I tried. Most websites, I have run across are hosted on Linux boxes... even our own DBA mail. I have been slowly seeing desktops with various versions of Linux popping up (after all this is a university town) but it is not a flood. I will be honest with you in that I do not care which systems I work with. All I am interested in is consistency, reliability and hopefully cross-platform support... Your experiences are obviously different than mine. Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Robert Stewart Sent: Monday, June 08, 2009 8:26 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Problem while publishing ADO.NET Data Service... To butt in here... A Silverlight program requires the Silverlight add in. There is one to run under Linux also and one being developed for Mac. Having said that, I have NEVER seen a "mixed environment" in any corporate office in my life as an IT person. ALL of the companies that I have dealt with are in Windows OS. And, isn't Silverlight trying to do the same thing that Flash has done, go across platforms? To be blunt, I have made my living using Microsoft software. If it was not good, then the Open source world would be dominate. They are not. I think you get what you pay for with open source. Although, some people feel that you do not get what you pay for with MS. Personally, if someone wants something to run on Linux, I send them looking for someone else to do it. I might consider doing it if Silverlight will do the cross-platform thing. Otherwise, I am an MS kind of guy. Remember that we are working with Beta software in Silverlight 3.0. And, here at home, I am also working with Windows 7 and VS 2010. One of which is RC and the other beta. And, I am running them on a VM. So, I really do not care what they need to run. It can be wiped out and done over in a hour or so. The point is that I am getting ahead of the learning curve on all of the changes that are in the next release. And at the same time, creating a piece of software that I will be "renting" under a software as a service plan. My mantra is do it right the first time, customize it to the clients requirements and leave them to it. I had one customer that went 8 years before calling me to change their MS Access program because of the way I did it the first time. They only called because they need to add new functionality. That is the way it should always be. At 12:00 PM 6/7/2009, you wrote: >Date: Sun, 7 Jun 2009 09:54:42 -0700 >From: "Jim Lawrence" <accessd at shaw.ca> >Subject: Re: [dba-VB] Problem while publishing ADO.NET Data Service... >To: "'Salakhetdinov Shamil'" <mcp2004 at mail.ru>, "'Discussion > concerning Visual Basic and related programming issues.'" > <dba-vb at databaseadvisors.com> >Message-ID: > <24FBF921E25D4277BCB79042D579EE6C at creativesystemdesigns.com> >Content-Type: text/plain; charset="us-ascii" > >Hi Shamil: > >I have been watching this thread for a bit and was wondering, if proceeding >along this direction is in fact tying the designers and users to a very >proprietary desktop and set of BE services? > >Just to get much of the apps running requires the very latest patches and >specific downloads, products that are not integrated into the default >Windows OS. Only the most carefully managed office location would be able to >even run this technology. > > >From my point of view the following is the reality: >1. On most sites I am just the contractor and not as the head IT guy. >2. Clients want to hire me not marry me. >3. Many sites using 'mixed' desktops (Windows/Mac/Linux). >4. The trend is towards 'portability' on cross-platform environments. > >On the other hand, this is all great fun technology and I have been very >much enjoying this thread. > >Jim _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From fuller.artful at gmail.com Mon Jun 8 13:58:31 2009 From: fuller.artful at gmail.com (Arthur Fuller) Date: Mon, 8 Jun 2009 14:58:31 -0400 Subject: [dba-VB] New article from Charlotte and myself In-Reply-To: <8EFA58891A294160839C910AF71A9118@SusanOne> References: <8A3DB7DEC94740D797DD5597B4CEC864@SusanOne> <E1MCz5U-0000VQ-00.mcp2004-mail-ru@f251.mail.ru> <2FF08D3F779A45A1AF16322D6BEE0EAD@SusanOne> <F55048AF7E974F429BB24597D7355EEAB87775@INFOSERVER04.infostat.local> <8EFA58891A294160839C910AF71A9118@SusanOne> Message-ID: <29f585dd0906081158l3a923be6t9cf19ddd655bd65f@mail.gmail.com> No Susan, you're clueful, and very willing to jump new hurdles as they occur to you. A. On Mon, Jun 8, 2009 at 11:41 AM, Susan Harkins <ssharkins at gmail.com> wrote: > Um... folks, Charlotte's modesty is becoming and something I've learned to > expect from Charlotte, but don't let her kid you -- I pride myself on > learning the nitty gritty of "using" new technologies, and I really would > be > struggling without her. > > Stayed tuned for our next article on typed datasets! I'm so excited... and > I > feel like dancing... um... Okay, I'm a liar... I'm clueless. > > Susan H. > From ssharkins at gmail.com Mon Jun 8 15:51:31 2009 From: ssharkins at gmail.com (Susan Harkins) Date: Mon, 8 Jun 2009 16:51:31 -0400 Subject: [dba-VB] New article from Charlotte and myself References: <8A3DB7DEC94740D797DD5597B4CEC864@SusanOne><E1MCz5U-0000VQ-00.mcp2004-mail-ru@f251.mail.ru><2FF08D3F779A45A1AF16322D6BEE0EAD@SusanOne><F55048AF7E974F429BB24597D7355EEAB87775@INFOSERVER04.infostat.local><8EFA58891A294160839C910AF71A9118@SusanOne> <29f585dd0906081158l3a923be6t9cf19ddd655bd65f@mail.gmail.com> Message-ID: <997AAFF0A8F848B5973ADAAF1488B7C5@SusanOne> > No Susan, you're clueful, and very willing to jump new hurdles as they > occur > to you. =====Usually, but not with .NET -- I really resisted, hoping I'd be doing something else by now. That hasn't happened so .NET is impossible to avoid. Susan H. From Gustav at cactus.dk Mon Jun 8 16:05:14 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 08 Jun 2009 23:05:14 +0200 Subject: [dba-VB] New article from Charlotte and myself Message-ID: <sa2d993e.027@cactus.dk> Hi Susan Don't worry - .Net will keep you young! /gustav >>> ssharkins at gmail.com 08-06-2009 22:51 >>> > No Susan, you're clueful, and very willing to jump new hurdles as they occur to you. =====Usually, but not with .NET -- I really resisted, hoping I'd be doing something else by now. That hasn't happened so .NET is impossible to avoid. Susan H. From ssharkins at gmail.com Mon Jun 8 16:09:58 2009 From: ssharkins at gmail.com (Susan Harkins) Date: Mon, 8 Jun 2009 17:09:58 -0400 Subject: [dba-VB] New article from Charlotte and myself References: <sa2d993e.027@cactus.dk> Message-ID: <57C2E3CFC3C04846BF466668E76F54DB@SusanOne> I need something -- yesterday I was trying to work out a knitting pattern, and I swear, I was near tears because everytime I was two stitches off... I finally found it, simple subtraction error that I made over and over. It was terribly frustrating -- I understand now how first graders must feel. :( Susan H. > > Don't worry - .Net will keep you young! > > /gustav From max.wanadoo at gmail.com Mon Jun 8 16:10:56 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 8 Jun 2009 22:10:56 +0100 Subject: [dba-VB] New article from Charlotte and myself In-Reply-To: <sa2d993e.027@cactus.dk> References: <sa2d993e.027@cactus.dk> Message-ID: <4a2d7e62.0a1ad00a.6306.43d2@mx.google.com> Sign me up.....sign me up...how young?? Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 08 June 2009 22:05 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] New article from Charlotte and myself Hi Susan Don't worry - .Net will keep you young! /gustav >>> ssharkins at gmail.com 08-06-2009 22:51 >>> > No Susan, you're clueful, and very willing to jump new hurdles as they occur to you. =====Usually, but not with .NET -- I really resisted, hoping I'd be doing something else by now. That hasn't happened so .NET is impossible to avoid. Susan H. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From max.wanadoo at gmail.com Mon Jun 8 16:12:59 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 8 Jun 2009 22:12:59 +0100 Subject: [dba-VB] New article from Charlotte and myself In-Reply-To: <57C2E3CFC3C04846BF466668E76F54DB@SusanOne> References: <sa2d993e.027@cactus.dk> <57C2E3CFC3C04846BF466668E76F54DB@SusanOne> Message-ID: <4a2d7ede.0a04d00a.1acb.1c87@mx.google.com> Been there...know exactly what you mean. Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: 08 June 2009 22:10 To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] New article from Charlotte and myself I need something -- yesterday I was trying to work out a knitting pattern, and I swear, I was near tears because everytime I was two stitches off... I finally found it, simple subtraction error that I made over and over. It was terribly frustrating -- I understand now how first graders must feel. :( Susan H. > > Don't worry - .Net will keep you young! > > /gustav _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From Johncliviger at aol.com Tue Jun 9 03:27:37 2009 From: Johncliviger at aol.com (Johncliviger at aol.com) Date: Tue, 9 Jun 2009 04:27:37 EDT Subject: [dba-VB] New article from Charlotte and myself Message-ID: <d60.4e558c6e.375f76f9@aol.com> Steady on Max Not that young! johnc From max.wanadoo at gmail.com Tue Jun 9 05:31:28 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Tue, 9 Jun 2009 11:31:28 +0100 Subject: [dba-VB] New article from Charlotte and myself In-Reply-To: <d60.4e558c6e.375f76f9@aol.com> References: <d60.4e558c6e.375f76f9@aol.com> Message-ID: <cda8f54e0906090331k444ee1ceh37b737dd2cb94bda@mail.gmail.com> You misunderstand John, I was referring to dropped stitches. I will have you know that I have knitted a 4-needle cable stitch jumper for myself. There! Better that if you can.... max On 6/9/09, Johncliviger at aol.com <Johncliviger at aol.com> wrote: > > Steady on Max Not that young! > > johnc > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From ssharkins at gmail.com Tue Jun 9 07:51:57 2009 From: ssharkins at gmail.com (Susan Harkins) Date: Tue, 9 Jun 2009 08:51:57 -0400 Subject: [dba-VB] New article from Charlotte and myself References: <d60.4e558c6e.375f76f9@aol.com> <cda8f54e0906090331k444ee1ceh37b737dd2cb94bda@mail.gmail.com> Message-ID: <C0835D11779A4A0DBF69760BB4913274@SusanOne> > You misunderstand John, I was referring to dropped stitches. I will have > you > know that I have knitted a 4-needle cable stitch jumper for myself. =========You're a better woman than me Max! ;) Susan H. From max.wanadoo at gmail.com Tue Jun 9 14:08:31 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Tue, 9 Jun 2009 20:08:31 +0100 Subject: [dba-VB] New article from Charlotte and myself In-Reply-To: <C0835D11779A4A0DBF69760BB4913274@SusanOne> References: <d60.4e558c6e.375f76f9@aol.com> <cda8f54e0906090331k444ee1ceh37b737dd2cb94bda@mail.gmail.com> <C0835D11779A4A0DBF69760BB4913274@SusanOne> Message-ID: <4a2eb332.1c07d00a.3ca9.0892@mx.google.com> Ha ha! And I bet you won't believe me when I said I was in my early 20s, sitting on a bed in the Army billet with all the other guys jeering and poking fun. When it started to take shape they stopped jeering and towards the end I had another 3 guys knitting as well. True... Max Ps. I am a better man than you will ever be.... -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: 09 June 2009 13:52 To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] New article from Charlotte and myself > You misunderstand John, I was referring to dropped stitches. I will have > you > know that I have knitted a 4-needle cable stitch jumper for myself. =========You're a better woman than me Max! ;) Susan H. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From mcp2004 at mail.ru Tue Jun 9 15:42:58 2009 From: mcp2004 at mail.ru (Salakhetdinov Shamil) Date: Wed, 10 Jun 2009 00:42:58 +0400 Subject: [dba-VB] =?koi8-r?b?UHJvYmxlbSB3aGlsZSBwdWJsaXNoaW5nIEFETy5ORVQg?= =?koi8-r?b?RGF0YSBTZXJ2aWNlLi4u?= In-Reply-To: <24FBF921E25D4277BCB79042D579EE6C@creativesystemdesigns.com> References: <24FBF921E25D4277BCB79042D579EE6C@creativesystemdesigns.com> Message-ID: <E1ME89q-0007ZJ-00.mcp2004-mail-ru@f222.mail.ru> Hi Jim, I'm working for money here - the main purpose for me to learn new MS technologies is to get a competetive advantage, not fun... As far as I see ADO.NET Entity Framework and ADO.NET Data Services are becoming a kind of "ODBC for 2010ies" - this is an emerging technology but it's getting all the main database technology players embraced already: http://msdn.microsoft.com/en-us/data/dd363565.aspx And Silverlight is targeted not only for Windows but for Mac and Linux also... And I'm not going "to marry my customers to me" because of using MS technologies - the fact is that there are a lot of competing providers in my area of software development... As for Oracle, PHP, Linux - I have never had opportunity to work using them as it wasn't requested by my customers but a couple of times I have had opportunity to directly compete with other companies who used Oracle for the same customer - both times they were "beaten" by my and my colleagues services, and our "forces" were usually several times less - one time it was 2 developers/consultants against a company having stuff of 100+ developers/consultants... MS tools are becoming really mature these days, and if properly applied they allow to "make wonders" even on moderate hardware... > 4. The trend is towards 'portability' on cross-platform environments. In my opinion, nowadays customers first of all need working software ASAP - and MS development tools help to satisfy those needs/market demands. And I'm not trying to embrace the whole software development market - I mean custom software development - business applicationx for small-/middle-size businesses - here MS tools fit very well IMO - just IMO... Thank you. -- Shamil -----Original Message----- From: "Jim Lawrence" <accessd at shaw.ca> To: "'Salakhetdinov Shamil'" <mcp2004 at mail.ru>,"'Discussion concerning Visual Basic and related programming issues.'" <dba-vb at databaseadvisors.com> Date: Sun, 7 Jun 2009 09:54:42 -0700 Subject: RE: [dba-VB] Problem while publishing ADO.NET Data Service... > Hi Shamil: > > I have been watching this thread for a bit and was wondering, if proceeding > along this direction is in fact tying the designers and users to a very > proprietary desktop and set of BE services? > > Just to get much of the apps running requires the very latest patches and > specific downloads, products that are not integrated into the default > Windows OS. Only the most carefully managed office location would be able to > even run this technology. > > From my point of view the following is the reality: > 1. On most sites I am just the contractor and not as the head IT guy. > 2. Clients want to hire me not marry me. > 3. Many sites using 'mixed' desktops (Windows/Mac/Linux). > 4. The trend is towards 'portability' on cross-platform environments. > > On the other hand, this is all great fun technology and I have been very > much enjoying this thread. > > Jim > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Salakhetdinov > Shamil > Sent: Friday, June 05, 2009 3:53 PM > To: Discussion concerning Visual Basic and related programming issues. > Subject: Re: [dba-VB] Problem while publishing ADO.NET Data Service... > > Hi All, > > I have found a good sample to consume ADO.NET Data Services using > SIlverLight 2.0 - here it's: > > Using Silverlight 2 With ADO.NET Data Services > > http://msdn.microsoft.com/en-us/magazine/dd569758.aspx > > I will try to make something like that live tomorrow - time to sleep here. > > Thank you. > > -- > Shamil > > -----Original Message----- > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > To: "Discussion concerning Visual Basic and related programming > issues."<dba-vb at databaseadvisors.com> > Date: Sat, 06 Jun 2009 02:27:22 +0400 > Subject: Re: [dba-VB] > Problem while publishing ADO.NET Data Service... > > > Hi All, > > > > I have got my SilverLight sample working: > > > > http://shamils-4.hosting.parking.ru/sl/NWNetSilverlight.aspx > > > > it uses hardcoded Shipper sample table's data. > > > > Then I tried to "feed" my Silverlight sample form by using the following > ADO.NET Data Service: > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > > > with code like that (which works well in C# console app): > > > > using System; > > using System.Collections.Generic; > > > > using System.Data.Services.Client; > > using System.ComponentModel; > > > > namespace ResearchAndDevelopment.Console > > { > > public class Shippers > > { > > public class Shipper > > { > > public int ID { get; set; } > > public string Name { get; set; } > > public string Phone { get; set; } > > public byte[] RowTimeStamp { get; set; } > > } > > > > private static Uri dataServiceURI = > > new > Uri(@"http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.sv > c"); > > public static void ListShippers() > > { > > DataServiceContext ctx = > > new DataServiceContext(dataServiceURI); > > IEnumerable<Shipper> shippers = ctx.Execute<Shipper>( > > new Uri("Shipper?$orderby=ID", UriKind.Relative)); > > foreach (Shipper s in shippers) > > { > > System.Console.WriteLine("{0}. {1}", s.ID, s.Name); > > } > > } > > } > > } > > > > But I have found that SilverLight 2.0 doesn't support ADO.NET Data > Services "out-of-the-box" as straightforward as the above sample code. This > sample code doesn't even compile for SilverLight projects because those > projects can't be used with .NET Framework 3.5. > > > > Therefore I'm currently stuck in feeding my SilverLight 2.0 sample with > ADO.NET Data Services (.NET 3.5 SP1) ATOM feed. > > > > Do you have any samples' references explaining how to get ADO.NET Data > Services Data into SilverLight 2.0 - the most straightforward way? > > > > Thank you. > > > > -- > > Shamil > > > > > > > > -----Original Message----- > > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > > To: Mark Breen <marklbreen at gmail.com> > > Date: Fri, 05 Jun 2009 15:26:41 +0400 > > Subject: Re: [dba-VB] > > Problem while publishing ADO.NET Data Service... > > > > > Hi Mark, > > > > > > I'd add/outline additionally to my previous answer on your posting that > ADO.NET Data Services can be used in heavily distributed workflow > scenarious, with support of distributed transactions etc.etc. Workflows are > designed and programmed for such applications using Windows Workflow > Foundation (WF). "Not data" services are developed using Windows > Communication Foundation (WCF) (and ADO.NET data services are also driven by > WCF services AFAIU)... > > > > > > -- > > > Shamil > > > > > > -----Original Message----- > > > From: Mark Breen <marklbreen at gmail.com> > > > To: Salakhetdinov Shamil <mcp2004 at mail.ru>, "Discussion concerning > Visual Basic and related programming issues." <dba-vb at databaseadvisors.com> > > > Date: Fri, 5 Jun 2009 09:10:10 +0100 > > > Subject: Re: [dba-VB] Problem while publishing ADO.NET Data Service... > > > > > > > Hello Shamil, > > > > as you know, I have two servers here in Ireland, would you like to do > your > > > > diagnosis / development of future development work on one of my > servers ? > > > > If so, that would be no problem. > > > > > > > > I am trying to keep up and read some of the link you posted int he > last few > > > > days regarding ADO.NET Data Service. > > > > > > > > I am not clear yet about differences between Webservices and ADO.NET > Data > > > > Service , but I expect if I spend some time to google and read, I can > become > > > > clear. > > > > > > > > However, I have one question, do you think that this archetectire is > > > > without doubt the way we will all connect to our data sources in the > future? > > > > How about performance, will it perform as good as current connections > such > > > > as ado and odbc over SQL Server Port? > > > > > > > > thanks > > > > > > > > Mark > > > > > > > > > > > > > > > > 2009/6/5 Salakhetdinov Shamil <mcp2004 at mail.ru> > > > > > > > > > > > > > > Hi All, > > > > > > > > > > Just wanted to ask one more question on subject issue: I do not > understand > > > > > why IIS should be restarted to have one of its Web Site's getting a > new > > > > > setting activated? I mean why it's not enough to stop and start this > web > > > > > site/web application? What am I missing? > > > > > > > > > > You can see by goodling how many developers got confused by this > > > > > "simple"(?) issue - and even stackoverflow doesn't have a clear > answer, or > > > > > am I missing it? > > > > > > > > > > Thank you. > > > > > > > > > > -- > > > > > Shamil > > > > > > > > > > -----Original Message----- > > > > > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > > > > > To: "Discussion concerning Visual Basic and related programming > issues."< > > > > > dba-vb at databaseadvisors.com> > > > > > Date: Fri, 05 Jun 2009 02:48:38 +0400 > > > > > Subject: Re: [dba-VB] > > > > > Problem while publishing ADO.NET Data Service... > > > > > > > > > > > Hi All, > > > > > > > > > > > > I have got found one solution for the subject issue: > > > > > > > > > > > > Hosted ADO.NET Data Services & Silverlight > > > > > > > > > > > > http://dvanderboom.wordpress.com/2009/01/07/hosted-adonet-data-services-silv > erlight/ > > > > > > > > > > > > But it doesn't look satisfactory for general case, and it doesn't > work > > > > > yet for my site (waiting for ISP support with IIS server restart - > maybe > > > > > that helps as web site restarting doesn't work) - I have got stuck > here: > > > > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > > > > > > > > > > > with a message: > > > > > > <<< > > > > > > IIS specified authentication schemes 'Basic, Anonymous', but the > binding > > > > > only supports specification of exactly one authentication scheme. > Valid > > > > > authentication schemes are Digest, Negotiate, NTLM, Basic, or > Anonymous. > > > > > Change the IIS settings so that only a single authentication scheme > is used. > > > > > > >>> > > > > > > > > > > > > and as you can see SOAP and WCF sample services do work OK here: > > > > > > > > > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/SOAPService.asmx > > > > > > > > > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/WCFService.svc > > > > > > > > > > > > If you know general solution for subject issue that woudl be very > > > > > helpful. > > > > > > > > > > > > Thank you. > > > > > > > > > > > > -- > > > > > > Shamil > > > > > > > > > > > > -----Original Message----- > > > > > > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > > > > > > To: "Discussion concerning Visual Basic and related programming > issues."< > > > > > dba-vb at databaseadvisors.com> > > > > > > Date: Thu, 04 Jun 2009 23:06:18 +0400 > > > > > > Subject: Re: [dba-VB] > > > > > > Problem while publishing ADO.NET Data Service... > > > > > > > > > > > > > Hi All, > > > > > > > > > > > > > > I have changed location of NorthwindNety Data Service to: > > > > > > > > > > > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > > > > > > > > > > > > > still no solution for > > > > > > > > > > > > > > This collection already contains an address with scheme http. > There > > > > > can be at most one address per scheme in this collection. > > > > > > > Parameter name: item > > > > > > > > > > > > > > :( > > > > > > > > > > > > > > -- > > > > > > > Shamil > > > > > > > > > > > > > ><<< aaa >>> > > > > > > _______________________________________________ > > > > > > dba-VB mailing list > > > > > > dba-VB at databaseadvisors.com > > > > > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > > > > > http://www.databaseadvisors.com > > > > > > > > > > > > > > > > _______________________________________________ > > > > > dba-VB mailing list > > > > > dba-VB at databaseadvisors.com > > > > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > > > > http://www.databaseadvisors.com > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > dba-VB mailing list > > > dba-VB at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > > http://www.databaseadvisors.com > > > > > > > _______________________________________________ > > 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 Johncliviger at aol.com Wed Jun 10 03:11:41 2009 From: Johncliviger at aol.com (Johncliviger at aol.com) Date: Wed, 10 Jun 2009 04:11:41 EDT Subject: [dba-VB] New article from Charlotte and myself Message-ID: <bde.48755e95.3760c4bd@aol.com> I must have lost the point somewhere Max. I didn't realise that Charlotte & Sue's new article was on knitting! You could develop a whole new nomenclature eg Imports System.Wool.Needles.Knitting or System.Needles.Haystack.Lost have fun johnc From max.wanadoo at gmail.com Wed Jun 10 10:14:57 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Wed, 10 Jun 2009 16:14:57 +0100 Subject: [dba-VB] New article from Charlotte and myself In-Reply-To: <bde.48755e95.3760c4bd@aol.com> References: <bde.48755e95.3760c4bd@aol.com> Message-ID: <4a2fcdf6.0506d00a.4f5a.648f@mx.google.com> Ha! very good. Needed a smile today. It was definitely a "stitch in time". Thank you Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Johncliviger at aol.com Sent: 10 June 2009 09:12 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] New article from Charlotte and myself I must have lost the point somewhere Max. I didn't realise that Charlotte & Sue's new article was on knitting! You could develop a whole new nomenclature eg Imports System.Wool.Needles.Knitting or System.Needles.Haystack.Lost have fun johnc _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From mcp2004 at mail.ru Wed Jun 10 10:59:58 2009 From: mcp2004 at mail.ru (Salakhetdinov Shamil) Date: Wed, 10 Jun 2009 19:59:58 +0400 Subject: [dba-VB] =?koi8-r?b?RllJOiBSZWNvbW1lbmRlZCB3YXRjaGluZw==?= Message-ID: <E1MEQDW-0001zZ-00.mcp2004-mail-ru@f141.mail.ru> Hi All, Here are a few good presentations I liked to watch and I wanted to share with you: <<< Responsive design "Purpose and intent are just as important as skill in effective software development. Skill allows you to deliver value in difficult technical circumstances. Clear purpose and positive intent allow you to deliver value in difficult social and business circumstances. Kent Beck shares his design technique which involves both intent and a small set of strategies he uses when designing. " http://www.infoq.com/presentations/responsive-design >>> <<< Eric Nelson on VS 2010 and .NET 4.0 In this interview Eric Nelson talks about what's coming in VS 2010, the C# - VB.NET convergence, the introduction of Parallel as a library, and Azure cloud computing. http://www.infoq.com/interviews/VS2010-Eric-Nelson >>> <<< AtomServer: The Power of Publishing for Data Distribution In this session recorded at QCon SF 2008, Chris Berry & Bryon Jacob presented the Atom Syndication Format, the Atom Publishing Protocol, the Atom Categories, the Atom Stores, the AtomServer and how they can be used by giving a concrete example. http://www.infoq.com/presentations/Atom-Server-Berry-Jacob >>> Thank you. -- Shamil From accessd at shaw.ca Wed Jun 10 13:10:29 2009 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 10 Jun 2009 11:10:29 -0700 Subject: [dba-VB] Problem while publishing ADO.NET Data Service... In-Reply-To: <E1ME89q-0007ZJ-00.mcp2004-mail-ru@f222.mail.ru> References: <24FBF921E25D4277BCB79042D579EE6C@creativesystemdesigns.com> <E1ME89q-0007ZJ-00.mcp2004-mail-ru@f222.mail.ru> Message-ID: <C2C3BDA2B6534781AC4663676123D509@creativesystemdesigns.com> Hi Shamil: I have never had an issue with ADO.Net technology... but it will be a while before I can claim professional competence in the product but I believe it is going the right way... that is browser based. My only apprehension is not being able to deliver a web-based service because a client or completely unknown customer is either using the 'wrong' OS, browser to deliver/receive services or is simply not patch up enough. I am starting to see a number of web sites that have been 'blocked' because they are not using the right version of browser IE7 and not IE8 or FF or Chrome etc... or do not have the appropriate technology installed on their desktop. I have been unable to get some of the Silver-light based code running on some of my systems even though I have the latest version of Framework and Silver installed. XP and Vista and even Window7 seem be fine but Server2003 and Server2008 are another matter... and of course Linux/Mac even running FF are toast. I have starting to see the marrying of browser and desktop and personally I feel we should be going in the other direction. More loose binding. I agree with you completely about the MS tools and most clients are using MS desktops. In this area, the government and well as the military and local university/colleges are Oracle/Java. My experiences with project bids have been quite different. After spending a month developing proof of concept, proving that MS SQL was a superior product, easier to deploy and at 50% of the cost of Oracle... the bid was lost on only one point... it wasn't standard. Maybe these tight times will encourage IT managers to take another look at MS SQL. Sorry for going on but some comments seem to need a response. Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Salakhetdinov Shamil Sent: Tuesday, June 09, 2009 1:43 PM To: dba-VB Subject: Re: [dba-VB] Problem while publishing ADO.NET Data Service... Hi Jim, I'm working for money here - the main purpose for me to learn new MS technologies is to get a competetive advantage, not fun... As far as I see ADO.NET Entity Framework and ADO.NET Data Services are becoming a kind of "ODBC for 2010ies" - this is an emerging technology but it's getting all the main database technology players embraced already: http://msdn.microsoft.com/en-us/data/dd363565.aspx And Silverlight is targeted not only for Windows but for Mac and Linux also... And I'm not going "to marry my customers to me" because of using MS technologies - the fact is that there are a lot of competing providers in my area of software development... As for Oracle, PHP, Linux - I have never had opportunity to work using them as it wasn't requested by my customers but a couple of times I have had opportunity to directly compete with other companies who used Oracle for the same customer - both times they were "beaten" by my and my colleagues services, and our "forces" were usually several times less - one time it was 2 developers/consultants against a company having stuff of 100+ developers/consultants... MS tools are becoming really mature these days, and if properly applied they allow to "make wonders" even on moderate hardware... > 4. The trend is towards 'portability' on cross-platform environments. In my opinion, nowadays customers first of all need working software ASAP - and MS development tools help to satisfy those needs/market demands. And I'm not trying to embrace the whole software development market - I mean custom software development - business applicationx for small-/middle-size businesses - here MS tools fit very well IMO - just IMO... Thank you. -- Shamil -----Original Message----- From: "Jim Lawrence" <accessd at shaw.ca> To: "'Salakhetdinov Shamil'" <mcp2004 at mail.ru>,"'Discussion concerning Visual Basic and related programming issues.'" <dba-vb at databaseadvisors.com> Date: Sun, 7 Jun 2009 09:54:42 -0700 Subject: RE: [dba-VB] Problem while publishing ADO.NET Data Service... > Hi Shamil: > > I have been watching this thread for a bit and was wondering, if proceeding > along this direction is in fact tying the designers and users to a very > proprietary desktop and set of BE services? > > Just to get much of the apps running requires the very latest patches and > specific downloads, products that are not integrated into the default > Windows OS. Only the most carefully managed office location would be able to > even run this technology. > > From my point of view the following is the reality: > 1. On most sites I am just the contractor and not as the head IT guy. > 2. Clients want to hire me not marry me. > 3. Many sites using 'mixed' desktops (Windows/Mac/Linux). > 4. The trend is towards 'portability' on cross-platform environments. > > On the other hand, this is all great fun technology and I have been very > much enjoying this thread. > > Jim > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Salakhetdinov > Shamil > Sent: Friday, June 05, 2009 3:53 PM > To: Discussion concerning Visual Basic and related programming issues. > Subject: Re: [dba-VB] Problem while publishing ADO.NET Data Service... > > Hi All, > > I have found a good sample to consume ADO.NET Data Services using > SIlverLight 2.0 - here it's: > > Using Silverlight 2 With ADO.NET Data Services > > http://msdn.microsoft.com/en-us/magazine/dd569758.aspx > > I will try to make something like that live tomorrow - time to sleep here. > > Thank you. > > -- > Shamil > > -----Original Message----- > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > To: "Discussion concerning Visual Basic and related programming > issues."<dba-vb at databaseadvisors.com> > Date: Sat, 06 Jun 2009 02:27:22 +0400 > Subject: Re: [dba-VB] > Problem while publishing ADO.NET Data Service... > > > Hi All, > > > > I have got my SilverLight sample working: > > > > http://shamils-4.hosting.parking.ru/sl/NWNetSilverlight.aspx > > > > it uses hardcoded Shipper sample table's data. > > > > Then I tried to "feed" my Silverlight sample form by using the following > ADO.NET Data Service: > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > > > with code like that (which works well in C# console app): > > > > using System; > > using System.Collections.Generic; > > > > using System.Data.Services.Client; > > using System.ComponentModel; > > > > namespace ResearchAndDevelopment.Console > > { > > public class Shippers > > { > > public class Shipper > > { > > public int ID { get; set; } > > public string Name { get; set; } > > public string Phone { get; set; } > > public byte[] RowTimeStamp { get; set; } > > } > > > > private static Uri dataServiceURI = > > new > Uri(@"http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.sv > c"); > > public static void ListShippers() > > { > > DataServiceContext ctx = > > new DataServiceContext(dataServiceURI); > > IEnumerable<Shipper> shippers = ctx.Execute<Shipper>( > > new Uri("Shipper?$orderby=ID", UriKind.Relative)); > > foreach (Shipper s in shippers) > > { > > System.Console.WriteLine("{0}. {1}", s.ID, s.Name); > > } > > } > > } > > } > > > > But I have found that SilverLight 2.0 doesn't support ADO.NET Data > Services "out-of-the-box" as straightforward as the above sample code. This > sample code doesn't even compile for SilverLight projects because those > projects can't be used with .NET Framework 3.5. > > > > Therefore I'm currently stuck in feeding my SilverLight 2.0 sample with > ADO.NET Data Services (.NET 3.5 SP1) ATOM feed. > > > > Do you have any samples' references explaining how to get ADO.NET Data > Services Data into SilverLight 2.0 - the most straightforward way? > > > > Thank you. > > > > -- > > Shamil > > > > > > > > -----Original Message----- > > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > > To: Mark Breen <marklbreen at gmail.com> > > Date: Fri, 05 Jun 2009 15:26:41 +0400 > > Subject: Re: [dba-VB] > > Problem while publishing ADO.NET Data Service... > > > > > Hi Mark, > > > > > > I'd add/outline additionally to my previous answer on your posting that > ADO.NET Data Services can be used in heavily distributed workflow > scenarious, with support of distributed transactions etc.etc. Workflows are > designed and programmed for such applications using Windows Workflow > Foundation (WF). "Not data" services are developed using Windows > Communication Foundation (WCF) (and ADO.NET data services are also driven by > WCF services AFAIU)... > > > > > > -- > > > Shamil > > > > > > -----Original Message----- > > > From: Mark Breen <marklbreen at gmail.com> > > > To: Salakhetdinov Shamil <mcp2004 at mail.ru>, "Discussion concerning > Visual Basic and related programming issues." <dba-vb at databaseadvisors.com> > > > Date: Fri, 5 Jun 2009 09:10:10 +0100 > > > Subject: Re: [dba-VB] Problem while publishing ADO.NET Data Service... > > > > > > > Hello Shamil, > > > > as you know, I have two servers here in Ireland, would you like to do > your > > > > diagnosis / development of future development work on one of my > servers ? > > > > If so, that would be no problem. > > > > > > > > I am trying to keep up and read some of the link you posted int he > last few > > > > days regarding ADO.NET Data Service. > > > > > > > > I am not clear yet about differences between Webservices and ADO.NET > Data > > > > Service , but I expect if I spend some time to google and read, I can > become > > > > clear. > > > > > > > > However, I have one question, do you think that this archetectire is > > > > without doubt the way we will all connect to our data sources in the > future? > > > > How about performance, will it perform as good as current connections > such > > > > as ado and odbc over SQL Server Port? > > > > > > > > thanks > > > > > > > > Mark > > > > > > > > > > > > > > > > 2009/6/5 Salakhetdinov Shamil <mcp2004 at mail.ru> > > > > > > > > > > > > > > Hi All, > > > > > > > > > > Just wanted to ask one more question on subject issue: I do not > understand > > > > > why IIS should be restarted to have one of its Web Site's getting a > new > > > > > setting activated? I mean why it's not enough to stop and start this > web > > > > > site/web application? What am I missing? > > > > > > > > > > You can see by goodling how many developers got confused by this > > > > > "simple"(?) issue - and even stackoverflow doesn't have a clear > answer, or > > > > > am I missing it? > > > > > > > > > > Thank you. > > > > > > > > > > -- > > > > > Shamil > > > > > > > > > > -----Original Message----- > > > > > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > > > > > To: "Discussion concerning Visual Basic and related programming > issues."< > > > > > dba-vb at databaseadvisors.com> > > > > > Date: Fri, 05 Jun 2009 02:48:38 +0400 > > > > > Subject: Re: [dba-VB] > > > > > Problem while publishing ADO.NET Data Service... > > > > > > > > > > > Hi All, > > > > > > > > > > > > I have got found one solution for the subject issue: > > > > > > > > > > > > Hosted ADO.NET Data Services & Silverlight > > > > > > > > > > > > http://dvanderboom.wordpress.com/2009/01/07/hosted-adonet-data-services-silv > erlight/ > > > > > > > > > > > > But it doesn't look satisfactory for general case, and it doesn't > work > > > > > yet for my site (waiting for ISP support with IIS server restart - > maybe > > > > > that helps as web site restarting doesn't work) - I have got stuck > here: > > > > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > > > > > > > > > > > with a message: > > > > > > <<< > > > > > > IIS specified authentication schemes 'Basic, Anonymous', but the > binding > > > > > only supports specification of exactly one authentication scheme. > Valid > > > > > authentication schemes are Digest, Negotiate, NTLM, Basic, or > Anonymous. > > > > > Change the IIS settings so that only a single authentication scheme > is used. > > > > > > >>> > > > > > > > > > > > > and as you can see SOAP and WCF sample services do work OK here: > > > > > > > > > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/SOAPService.asmx > > > > > > > > > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/WCFService.svc > > > > > > > > > > > > If you know general solution for subject issue that woudl be very > > > > > helpful. > > > > > > > > > > > > Thank you. > > > > > > > > > > > > -- > > > > > > Shamil > > > > > > > > > > > > -----Original Message----- > > > > > > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > > > > > > To: "Discussion concerning Visual Basic and related programming > issues."< > > > > > dba-vb at databaseadvisors.com> > > > > > > Date: Thu, 04 Jun 2009 23:06:18 +0400 > > > > > > Subject: Re: [dba-VB] > > > > > > Problem while publishing ADO.NET Data Service... > > > > > > > > > > > > > Hi All, > > > > > > > > > > > > > > I have changed location of NorthwindNety Data Service to: > > > > > > > > > > > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > > > > > > > > > > > > > still no solution for > > > > > > > > > > > > > > This collection already contains an address with scheme http. > There > > > > > can be at most one address per scheme in this collection. > > > > > > > Parameter name: item > > > > > > > > > > > > > > :( > > > > > > > > > > > > > > -- > > > > > > > Shamil > > > > > > > > > > > > > ><<< aaa >>> > > > > > > _______________________________________________ > > > > > > dba-VB mailing list > > > > > > dba-VB at databaseadvisors.com > > > > > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > > > > > http://www.databaseadvisors.com > > > > > > > > > > > > > > > > _______________________________________________ > > > > > dba-VB mailing list > > > > > dba-VB at databaseadvisors.com > > > > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > > > > http://www.databaseadvisors.com > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > dba-VB mailing list > > > dba-VB at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > > http://www.databaseadvisors.com > > > > > > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From mcp2004 at mail.ru Wed Jun 10 17:35:34 2009 From: mcp2004 at mail.ru (Salakhetdinov Shamil) Date: Thu, 11 Jun 2009 02:35:34 +0400 Subject: [dba-VB] =?koi8-r?b?UHJvYmxlbSB3aGlsZSBwdWJsaXNoaW5nIEFETy5ORVQg?= =?koi8-r?b?RGF0YSBTZXJ2aWNlLi4u?= In-Reply-To: <C2C3BDA2B6534781AC4663676123D509@creativesystemdesigns.com> References: <C2C3BDA2B6534781AC4663676123D509@creativesystemdesigns.com> Message-ID: <E1MEWOM-0007cx-00.mcp2004-mail-ru@f135.mail.ru> Hi Jim, Thank you for your reply. I'm writing here not to argue with you but to share my experience - and I'm working as freelancer for worldwide customers for many years now. Apparently we have quite different customers, and quite different experiences working with them. That's fine. ASP.NET 2.0/3.5 client webforms run just fine on all the most commonly used browsers - 90% I guess. Aiming at 100% would be tremendous waste of resources. Yes, Silverlight currently works on IE7/8 and FF 3.x but I believe it will soon run well on all the other most commonly used browsers running under MS Windows as well as on browsers runnning on Mac and Linux. ADO.NET Entity Framework - is a "corner-stone" emerging technology to process distributed data coming/collected in many different formats from all kinds of data publishers/producers... <<< ...marrying of browser and desktop... >>> Do you mean "armouring" browsers with (often browser specififc) "heavy-weigth" AJAX libraries or do you mean virtualization? I personally do not like/use the former - I believe/expect the latter - virtualization - will soon become a common affordable infrastructure for me and for my customers, and I'm starting to plan moving all my development into a virtual PC/PCs running on my ISP site... <<< I feel we should be going in the other direction. More loose binding. >>> What do you mean here? I know a "loose coupling" term from OOP. What do you mean by "loose binding" here? <<< > Maybe these tight times will encourage IT managers > to take another look at MS SQL. >>> You may find me cynical and completely wrong - I suppose IT managers need "fat contracts" to keep their "fat companies" with "bloated staff" afloat, and to have good bonuses for themselves. I think that situation can't be changed even in these tight times because changing that would mean a kind of revolution, and a few people wants a revolution these days as revolutions very often result in much more and very severe issues than they try to solve... Thank you. -- Shamil -----Original Message----- From: "Jim Lawrence" <accessd at shaw.ca> To: "'Salakhetdinov Shamil'" <mcp2004 at mail.ru>,"'Discussion concerning Visual Basic and related programming issues.'" <dba-vb at databaseadvisors.com> Date: Wed, 10 Jun 2009 11:10:29 -0700 Subject: RE: [dba-VB] Problem while publishing ADO.NET Data Service... > Hi Shamil: > > I have never had an issue with ADO.Net technology... but it will be a while > before I can claim professional competence in the product but I believe it > is going the right way... that is browser based. > > My only apprehension is not being able to deliver a web-based service > because a client or completely unknown customer is either using the 'wrong' > OS, browser to deliver/receive services or is simply not patch up enough. > es > I am starting to see a number of web sites that have been 'blocked' because > they are not using the right version of browser IE7 and not IE8 or FF or > Chrome etc... or do not have the appropriate technology installed on their > desktop. > > I have been unable to get some of the Silver-light based code running on > some of my systems even though I have the latest version of Framework and > Silver installed. XP and Vista and even Window7 seem be fine but Server2003 > and Server2008 are another matter... and of course Linux/Mac even running FF > are toast. > > I have starting to see the marrying of browser and desktop and personally I > feel we should be going in the other direction. More loose binding. > > I agree with you completely about the MS tools and most clients are using MS > desktops. In this area, the government and well as the military and local > university/colleges are Oracle/Java. My experiences with project bids have > been quite different. After spending a month developing proof of concept, > proving that MS SQL was a superior product, easier to deploy and at 50% of > the cost of Oracle... the bid was lost on only one point... it wasn't > standard. > > Maybe these tight times will encourage IT managers to take another look at > MS SQL. > > Sorry for going on but some comments seem to need a response. > > Jim > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Salakhetdinov > Shamil > Sent: Tuesday, June 09, 2009 1:43 PM > To: dba-VB > Subject: Re: [dba-VB] Problem while publishing ADO.NET Data Service... > > Hi Jim, > > I'm working for money here - the main purpose for me to learn new MS > technologies is to get a competetive advantage, not fun... > > As far as I see ADO.NET Entity Framework and ADO.NET Data Services are > becoming a kind of "ODBC for 2010ies" - this is an emerging technology but > it's getting all the main database technology players embraced already: > > http://msdn.microsoft.com/en-us/data/dd363565.aspx > > And Silverlight is targeted not only for Windows but for Mac and Linux > also... > > And I'm not going "to marry my customers to me" because of using MS > technologies - the fact is that there are a lot of competing providers in my > area of software development... > > As for Oracle, PHP, Linux - I have never had opportunity to work using them > as it wasn't requested by my customers but a couple of times I have had > opportunity to directly compete with other companies who used Oracle for the > same customer - both times they were "beaten" by my and my colleagues > services, and our "forces" were usually several times less - one time it was > 2 developers/consultants against a company having stuff of 100+ > developers/consultants... > > MS tools are becoming really mature these days, and if properly applied they > allow to "make wonders" even on moderate hardware... > > > 4. The trend is towards 'portability' on cross-platform environments. > In my opinion, nowadays customers first of all need working software ASAP - > and MS development tools help to satisfy those needs/market demands. And I'm > not trying to embrace the whole software development market - I mean custom > software development - business applicationx for small-/middle-size > businesses - here MS tools fit very well IMO - just IMO... > > Thank you. > > -- > Shamil > > > -----Original Message----- > From: "Jim Lawrence" <accessd at shaw.ca> > To: "'Salakhetdinov Shamil'" <mcp2004 at mail.ru>,"'Discussion concerning > Visual Basic and related programming issues.'" <dba-vb at databaseadvisors.com> > Date: Sun, 7 Jun 2009 09:54:42 -0700 > Subject: RE: [dba-VB] Problem while publishing ADO.NET Data Service... > > > Hi Shamil: > > > > I have been watching this thread for a bit and was wondering, if > proceeding > > along this direction is in fact tying the designers and users to a very > > proprietary desktop and set of BE services? > > > > Just to get much of the apps running requires the very latest patches and > > specific downloads, products that are not integrated into the default > > Windows OS. Only the most carefully managed office location would be able > to > > even run this technology. > > > > From my point of view the following is the reality: > > 1. On most sites I am just the contractor and not as the head IT guy. > > 2. Clients want to hire me not marry me. > > 3. Many sites using 'mixed' desktops (Windows/Mac/Linux). > > 4. The trend is towards 'portability' on cross-platform environments. > > > > On the other hand, this is all great fun technology and I have been very > > much enjoying this thread. > > > > Jim > > > > -----Original Message----- > > From: dba-vb-bounces at databaseadvisors.com > > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Salakhetdinov > > Shamil > > Sent: Friday, June 05, 2009 3:53 PM > > To: Discussion concerning Visual Basic and related programming issues. > > Subject: Re: [dba-VB] Problem while publishing ADO.NET Data Service... > > > > Hi All, > > > > I have found a good sample to consume ADO.NET Data Services using > > SIlverLight 2.0 - here it's: > > > > Using Silverlight 2 With ADO.NET Data Services > > > > http://msdn.microsoft.com/en-us/magazine/dd569758.aspx > > > > I will try to make something like that live tomorrow - time to sleep here. > > > > Thank you. > > > > -- > > Shamil > > > > -----Original Message----- > > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > > To: "Discussion concerning Visual Basic and related programming > > issues."<dba-vb at databaseadvisors.com> > > Date: Sat, 06 Jun 2009 02:27:22 +0400 > > Subject: Re: [dba-VB] > > Problem while publishing ADO.NET Data Service... > > > > > Hi All, > > > > > > I have got my SilverLight sample working: > > > > > > http://shamils-4.hosting.parking.ru/sl/NWNetSilverlight.aspx > > > > > > it uses hardcoded Shipper sample table's data. > > > > > > Then I tried to "feed" my Silverlight sample form by using the following > > ADO.NET Data Service: > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > > > > > with code like that (which works well in C# console app): > > > > > > using System; > > > using System.Collections.Generic; > > > > > > using System.Data.Services.Client; > > > using System.ComponentModel; > > > > > > namespace ResearchAndDevelopment.Console > > > { > > > public class Shippers > > > { > > > public class Shipper > > > { > > > public int ID { get; set; } > > > public string Name { get; set; } > > > public string Phone { get; set; } > > > public byte[] RowTimeStamp { get; set; } > > > } > > > > > > private static Uri dataServiceURI = > > > new > > > Uri(@"http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.sv > > c"); > > > public static void ListShippers() > > > { > > > DataServiceContext ctx = > > > new DataServiceContext(dataServiceURI); > > > IEnumerable<Shipper> shippers = ctx.Execute<Shipper>( > > > new Uri("Shipper?$orderby=ID", UriKind.Relative)); > > > foreach (Shipper s in shippers) > > > { > > > System.Console.WriteLine("{0}. {1}", s.ID, s.Name); > > > } > > > } > > > } > > > } > > > > > > But I have found that SilverLight 2.0 doesn't support ADO.NET Data > > Services "out-of-the-box" as straightforward as the above sample code. > This > > sample code doesn't even compile for SilverLight projects because those > > projects can't be used with .NET Framework 3.5. > > > > > > Therefore I'm currently stuck in feeding my SilverLight 2.0 sample with > > ADO.NET Data Services (.NET 3.5 SP1) ATOM feed. > > > > > > Do you have any samples' references explaining how to get ADO.NET Data > > Services Data into SilverLight 2.0 - the most straightforward way? > > > > > > Thank you. > > > > > > -- > > > Shamil > > > > > > > > > > > > -----Original Message----- > > > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > > > To: Mark Breen <marklbreen at gmail.com> > > > Date: Fri, 05 Jun 2009 15:26:41 +0400 > > > Subject: Re: [dba-VB] > > > Problem while publishing ADO.NET Data Service... > > > > > > > Hi Mark, > > > > > > > > I'd add/outline additionally to my previous answer on your posting > that > > ADO.NET Data Services can be used in heavily distributed workflow > > scenarious, with support of distributed transactions etc.etc. Workflows > are > > designed and programmed for such applications using Windows Workflow > > Foundation (WF). "Not data" services are developed using Windows > > Communication Foundation (WCF) (and ADO.NET data services are also driven > by > > WCF services AFAIU)... > > > > > > > > -- > > > > Shamil > > > > > > > > -----Original Message----- > > > > From: Mark Breen <marklbreen at gmail.com> > > > > To: Salakhetdinov Shamil <mcp2004 at mail.ru>, "Discussion concerning > > Visual Basic and related programming issues." > <dba-vb at databaseadvisors.com> > > > > Date: Fri, 5 Jun 2009 09:10:10 +0100 > > > > Subject: Re: [dba-VB] Problem while publishing ADO.NET Data Service... > > > > > > > > > Hello Shamil, > > > > > as you know, I have two servers here in Ireland, would you like to > do > > your > > > > > diagnosis / development of future development work on one of my > > servers ? > > > > > If so, that would be no problem. > > > > > > > > > > I am trying to keep up and read some of the link you posted int he > > last few > > > > > days regarding ADO.NET Data Service. > > > > > > > > > > I am not clear yet about differences between Webservices and > ADO.NET > > Data > > > > > Service , but I expect if I spend some time to google and read, I > can > > become > > > > > clear. > > > > > > > > > > However, I have one question, do you think that this archetectire > is > > > > > without doubt the way we will all connect to our data sources in the > > future? > > > > > How about performance, will it perform as good as current > connections > > such > > > > > as ado and odbc over SQL Server Port? > > > > > > > > > > thanks > > > > > > > > > > Mark > > > > > > > > > > > > > > > > > > > > 2009/6/5 Salakhetdinov Shamil <mcp2004 at mail.ru> > > > > > > > > > > > > > > > > > Hi All, > > > > > > > > > > > > Just wanted to ask one more question on subject issue: I do not > > understand > > > > > > why IIS should be restarted to have one of its Web Site's getting > a > > new > > > > > > setting activated? I mean why it's not enough to stop and start > this > > web > > > > > > site/web application? What am I missing? > > > > > > > > > > > > You can see by goodling how many developers got confused by this > > > > > > "simple"(?) issue - and even stackoverflow doesn't have a clear > > answer, or > > > > > > am I missing it? > > > > > > > > > > > > Thank you. > > > > > > > > > > > > -- > > > > > > Shamil > > > > > > > > > > > > -----Original Message----- > > > > > > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > > > > > > To: "Discussion concerning Visual Basic and related programming > > issues."< > > > > > > dba-vb at databaseadvisors.com> > > > > > > Date: Fri, 05 Jun 2009 02:48:38 +0400 > > > > > > Subject: Re: [dba-VB] > > > > > > Problem while publishing ADO.NET Data Service... > > > > > > > > > > > > > Hi All, > > > > > > > > > > > > > > I have got found one solution for the subject issue: > > > > > > > > > > > > > > Hosted ADO.NET Data Services & Silverlight > > > > > > > > > > > > > > > > http://dvanderboom.wordpress.com/2009/01/07/hosted-adonet-data-services-silv > > erlight/ > > > > > > > > > > > > > > But it doesn't look satisfactory for general case, and it > doesn't > > work > > > > > > yet for my site (waiting for ISP support with IIS server restart - > > maybe > > > > > > that helps as web site restarting doesn't work) - I have got stuck > > here: > > > > > > > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > > > > > > > > > > > > > with a message: > > > > > > > <<< > > > > > > > IIS specified authentication schemes 'Basic, Anonymous', but the > > binding > > > > > > only supports specification of exactly one authentication scheme. > > Valid > > > > > > authentication schemes are Digest, Negotiate, NTLM, Basic, or > > Anonymous. > > > > > > Change the IIS settings so that only a single authentication > scheme > > is used. > > > > > > > >>> > > > > > > > > > > > > > > and as you can see SOAP and WCF sample services do work OK here: > > > > > > > > > > > > > > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/SOAPService.asmx > > > > > > > > > > > > > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/WCFService.svc > > > > > > > > > > > > > > If you know general solution for subject issue that woudl be > very > > > > > > helpful. > > > > > > > > > > > > > > Thank you. > > > > > > > > > > > > > > -- > > > > > > > Shamil > > > > > > > > > > > > > > -----Original Message----- > > > > > > > From: Salakhetdinov Shamil <mcp2004 at mail.ru> > > > > > > > To: "Discussion concerning Visual Basic and related programming > > issues."< > > > > > > dba-vb at databaseadvisors.com> > > > > > > > Date: Thu, 04 Jun 2009 23:06:18 +0400 > > > > > > > Subject: Re: [dba-VB] > > > > > > > Problem while publishing ADO.NET Data Service... > > > > > > > > > > > > > > > Hi All, > > > > > > > > > > > > > > > > I have changed location of NorthwindNety Data Service to: > > > > > > > > > > > > > > > > > > > > > > > > http://shamils-4.hosting.parking.ru/NorthwindNetDataService/NWNetDS.svc > > > > > > > > > > > > > > > > still no solution for > > > > > > > > > > > > > > > > This collection already contains an address with scheme http. > > There > > > > > > can be at most one address per scheme in this collection. > > > > > > > > Parameter name: item > > > > > > > > > > > > > > > > :( > > > > > > > > > > > > > > > > -- > > > > > > > > Shamil > > > > > > > > > > > > > > > ><<< aaa >>> > > > > > > > _______________________________________________ > > > > > > > dba-VB mailing list > > > > > > > dba-VB at databaseadvisors.com > > > > > > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > > > > > > http://www.databaseadvisors.com > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > > dba-VB mailing list > > > > > > dba-VB at databaseadvisors.com > > > > > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > > > > > http://www.databaseadvisors.com > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > dba-VB mailing list > > > > dba-VB at databaseadvisors.com > > > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > > > http://www.databaseadvisors.com > > > > > > > > > > _______________________________________________ > > > dba-VB mailing list > > > dba-VB at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > > http://www.databaseadvisors.com > > > > > > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From listmaster at databaseadvisors.com Tue Jun 16 12:10:00 2009 From: listmaster at databaseadvisors.com (Bryan Carbonnell) Date: Tue, 16 Jun 2009 13:10:00 -0400 Subject: [dba-VB] Administrivia - Dickford Cohn Donation Fund In-Reply-To: <05bf01c9ee8b$3f2935e0$bd7ba1a0$@net> References: <05bf01c9ee8b$3f2935e0$bd7ba1a0$@net> Message-ID: <e04a6c920906161010t5c4f67a0h5d37b3c158c1fcb9@mail.gmail.com> "We're a family." Members often share that sentiment in their posts. The Database Advisor group is a family. It's obvious in our responses and brief explosions of humor that we care about one another. Dickford Cohn, a member of our family has suffered a great loss. Due to a fire, this member has lost his home and all of his belongings. He recently spent a number of weeks in the hospital, recovering from serious burns. You can read more about his horrific encounter with death in the online article, Hawker dragged from trailer fire. Keys News The DBA Board of Directors recently voted to accept donations from members on Dickford's behalf. The DBA organization will keep nothing for administrative purposes -- we will forward every cent donated to Dickford. >From the time of this message until July 31, 2009, every donation received will go to Dickford Cohn. Make your donation via our existing PayPal account link. If you prefer snail mail, please send donation to the following address: Database Advisors, Inc. 814 Peppard Drive Bel Air, MD 21014 Please make your check or money order payable to Database Advisors, Inc. As always, donations of any kind are not mandatory for membership. John R. Bartow President Database Advisors, Inc. Email: president at databaseadvisors.com From listmaster at databaseadvisors.com Tue Jun 16 12:23:45 2009 From: listmaster at databaseadvisors.com (Bryan Carbonnell) Date: Tue, 16 Jun 2009 13:23:45 -0400 Subject: [dba-VB] Administrivia - Dickford Cohn Donation Fund In-Reply-To: <e04a6c920906161020v40933088q9d2a7c178c776078@mail.gmail.com> References: <05bf01c9ee8b$3f2935e0$bd7ba1a0$@net> <e04a6c920906161020v40933088q9d2a7c178c776078@mail.gmail.com> Message-ID: <e04a6c920906161023t4b81844di73e66629aadb7d6b@mail.gmail.com> RESEND with Links this time. Bryan "We're a family." Members often share that sentiment in their posts. The Database Advisor group is a family. It's obvious in our responses and brief explosions of humor that we care about one another. Dickford Cohn, a member of our family has suffered a great loss. Due to a fire, this member has lost his home and all of his belongings. He recently spent a number of weeks in the hospital, recovering from serious burns. You can read more about his horrific encounter with death in the online article, Hawker dragged from trailer fire. Keys News ( http://keysnews.com/node/13470 ) The DBA Board of Directors recently voted to accept donations from members on Dickford's behalf. The DBA organization will keep nothing for administrative purposes -- we will forward every cent donated to Dickford. >From the time of this message until July 31, 2009, every donation received will go to Dickford Cohn. Make your donation via our existing PayPal account link ( http://www.databaseadvisors.com/donations/dickford.asp ). If you prefer snail mail, please send donation to the following address: Database Advisors, Inc. 814 Peppard Drive Bel Air, MD 21014 Please make your check or money order payable to Database Advisors, Inc. As always, donations of any kind are not mandatory for membership. John R. Bartow President Database Advisors, Inc. Email: president at databaseadvisors.com From ssharkins at gmail.com Fri Jun 19 17:06:09 2009 From: ssharkins at gmail.com (Susan Harkins) Date: Fri, 19 Jun 2009 18:06:09 -0400 Subject: [dba-VB] Updating Toolbox in VB Express Message-ID: <FFC703A9A7AC4064A62B1297439EA475@SusanOne> I've been learning how to create typed datasets and the process itself isn't particularly difficult, but often, I couldn't get VB Express to update like I think it should. For instance, after adding a reference between a form project and a class library project that contained a typed dataset, I couldn't get the dataset to show up in the Add Dataset dialog box -- Under Typed Dataset, the Name control displayed Referenced Datasets. When I clicked that, I got nothing -- an empty list. Today, after adding the typed dataset to a form, I couldn't find the project components in the Toolbox. Running Imports statements in the form forced the issue, but that shouldn't be necessary, should it? Maybe that's the way it's supposed to work, and if so, I just don't get it yet. I looked all over for some kind of Refresh, but didn't find anything. If you have no idea what I'm talking about, just ignore me -- I am most likely using the wrong terminology. Susan H. From Gustav at cactus.dk Sat Jun 20 02:25:37 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Sat, 20 Jun 2009 09:25:37 +0200 Subject: [dba-VB] Updating Toolbox in VB Express Message-ID: <sa3cab1e.005@cactus.dk> Hi Susan Now, I don't what you and Charlotte are up to, but I hope you create some DataSet.xsd files and use the designer to create your datatables. Also, have the box with Data Sources on display; this will contain your datasets, and you can easily drag and drop full tables or single/selected fields to your form. /gustav >>> ssharkins at gmail.com 20-06-2009 00:06:09 >>> I've been learning how to create typed datasets and the process itself isn't particularly difficult, but often, I couldn't get VB Express to update like I think it should. For instance, after adding a reference between a form project and a class library project that contained a typed dataset, I couldn't get the dataset to show up in the Add Dataset dialog box -- Under Typed Dataset, the Name control displayed Referenced Datasets. When I clicked that, I got nothing -- an empty list. Today, after adding the typed dataset to a form, I couldn't find the project components in the Toolbox. Running Imports statements in the form forced the issue, but that shouldn't be necessary, should it? Maybe that's the way it's supposed to work, and if so, I just don't get it yet. I looked all over for some kind of Refresh, but didn't find anything. If you have no idea what I'm talking about, just ignore me -- I am most likely using the wrong terminology. Susan H. From ssharkins at gmail.com Sat Jun 20 08:26:38 2009 From: ssharkins at gmail.com (Susan Harkins) Date: Sat, 20 Jun 2009 09:26:38 -0400 Subject: [dba-VB] Updating Toolbox in VB Express References: <sa3cab1e.005@cactus.dk> Message-ID: <0B2EA9DA4131427CA56A0F66E6249BA3@SusanOne> > Now, I don't what you and Charlotte are up to, but I hope you create some > DataSet.xsd files and use the designer to create your datatables. ========That's exactly what I'm doing. The instructions are simple enough, but VB Express doesn't always behave as I think it should -- so either VB Express is cranky, or... well... we already know about me. :) The Toolbox would not update accordingly. And, I created a reference in one project to the project with the dataset, but the dataset didn't show up in the Add Dataset Typed Dataset list. So, I'm wondering if there's a secret to getting the Toolbox (and other dialogs) to update once you create a dataset -- if they're supposed to be available in the Toolbox, because they weren't until I ran Imports statements explicitly added those objects to the form. I was unable to drag the dataset from the Toolbox, because it wasn't listed. I ran the code, the Toolbox listed it. Now, that's peculair to me. > Also, have the box with Data Sources on display; this will contain your > datasets, and you can easily drag and drop full tables or single/selected > fields to your form. ==========You mean the Solutions Explorer or the Database Explorer? I'm working with both. Susan H. From Gustav at cactus.dk Sat Jun 20 08:53:00 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Sat, 20 Jun 2009 15:53:00 +0200 Subject: [dba-VB] Updating Toolbox in VB Express Message-ID: <sa3d05f7.009@cactus.dk> Hi Susan I haven't worked with a project using a dataset of this kind in another project so I can't tell. No, I mean Data Sources. Usually it is boxed together with Toolbox and Server Explorer as the other tabs. You can click it forward from menu Data. /gustav >>> ssharkins at gmail.com 20-06-2009 15:26:38 >>> > Now, I don't what you and Charlotte are up to, but I hope you create some > DataSet.xsd files and use the designer to create your datatables. ========That's exactly what I'm doing. The instructions are simple enough, but VB Express doesn't always behave as I think it should -- so either VB Express is cranky, or... well... we already know about me. :) The Toolbox would not update accordingly. And, I created a reference in one project to the project with the dataset, but the dataset didn't show up in the Add Dataset Typed Dataset list. So, I'm wondering if there's a secret to getting the Toolbox (and other dialogs) to update once you create a dataset -- if they're supposed to be available in the Toolbox, because they weren't until I ran Imports statements explicitly added those objects to the form. I was unable to drag the dataset from the Toolbox, because it wasn't listed. I ran the code, the Toolbox listed it. Now, that's peculair to me. > Also, have the box with Data Sources on display; this will contain your > datasets, and you can easily drag and drop full tables or single/selected > fields to your form. ==========You mean the Solutions Explorer or the Database Explorer? I'm working with both. Susan H. From ssharkins at gmail.com Sat Jun 20 09:06:41 2009 From: ssharkins at gmail.com (Susan Harkins) Date: Sat, 20 Jun 2009 10:06:41 -0400 Subject: [dba-VB] Updating Toolbox in VB Express References: <sa3d05f7.009@cactus.dk> Message-ID: <65F35549A3C44BE98D76EE725D78B7DC@SusanOne> > No, I mean Data Sources. Usually it is boxed together with Toolbox and > Server Explorer as the other tabs. You can click it forward from menu > Data. ====Yes, I'm familiar with Data Sources too. Thanks Gustav! Susan H. From ssharkins at gmail.com Mon Jun 22 09:03:52 2009 From: ssharkins at gmail.com (Susan Harkins) Date: Mon, 22 Jun 2009 10:03:52 -0400 Subject: [dba-VB] Looking for SAP - HR Payroll Analyst Message-ID: <C7288DAF510B40E499DB1349F6554BDB@SusanOne> If you have the skills to fill this position or know someone who does, please send me a resume. Susan H. From shamil at smsconsulting.spb.ru Fri Jun 26 15:10:55 2009 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sat, 27 Jun 2009 00:10:55 +0400 Subject: [dba-VB] ASP.NET MVC Framework Message-ID: <004101c9f69a$37a115b0$a6e34110$@spb.ru> Hi All, I'm watching through ASP.NET MVC Framework web casts now "ASP.NET MVC Talks" http://www.asp.net/learn/mvc-videos/#MVCStorefrontStarterKit This technology looks interesting. I will probably try to use it in one small application for my new customer. Have anybody here used ASP.NET MVC Framework in application/sample development? Thank you. -- Shamil From Gustav at cactus.dk Fri Jun 26 16:49:06 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 26 Jun 2009 23:49:06 +0200 Subject: [dba-VB] ASP.NET MVC Framework Message-ID: <sa455e89.029@cactus.dk> Hi Shamil Not me, but I have studied it a bit because the separation of the design in the Model, View and Control parts seems so logical. The fascinating aspect is if it is possible or feasible to transfer it from web design to Windows form design. Now, the Northwind.NET project doesn't contain much "model" work, but it could be an option to convert it to follow MVC design ... /gustav >>> shamil at smsconsulting.spb.ru 26-06-2009 22:10 >>> Hi All, I'm watching through ASP.NET MVC Framework web casts now "ASP.NET MVC Talks" http://www.asp.net/learn/mvc-videos/#MVCStorefrontStarterKit This technology looks interesting. I will probably try to use it in one small application for my new customer. Have anybody here used ASP.NET MVC Framework in application/sample development? Thank you. -- Shamil From shamil at smsconsulting.spb.ru Fri Jun 26 18:15:49 2009 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sat, 27 Jun 2009 03:15:49 +0400 Subject: [dba-VB] ASP.NET MVC Framework In-Reply-To: <sa455e89.029@cactus.dk> References: <sa455e89.029@cactus.dk> Message-ID: <004e01c9f6b4$0be716d0$23b54470$@spb.ru> <<< Now, the Northwind.NET project doesn't contain much "model" work, but it could be an option to convert it to follow MVC design ... >>> Yes, I thought we could try to do that - let's try to gather a team here? SilverLight project didn't get good feedback - it could happen that ASP.NET MVC based project would be more interesting 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: Saturday, June 27, 2009 1:49 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] ASP.NET MVC Framework Hi Shamil Not me, but I have studied it a bit because the separation of the design in the Model, View and Control parts seems so logical. The fascinating aspect is if it is possible or feasible to transfer it from web design to Windows form design. Now, the Northwind.NET project doesn't contain much "model" work, but it could be an option to convert it to follow MVC design ... /gustav >>> shamil at smsconsulting.spb.ru 26-06-2009 22:10 >>> Hi All, I'm watching through ASP.NET MVC Framework web casts now "ASP.NET MVC Talks" http://www.asp.net/learn/mvc-videos/#MVCStorefrontStarterKit This technology looks interesting. I will probably try to use it in one small application for my new customer. Have anybody here used ASP.NET MVC Framework in application/sample development? Thank you. -- Shamil _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com __________ Information from ESET NOD32 Antivirus, version of virus signature database 4193 (20090626) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru __________ Information from ESET NOD32 Antivirus, version of virus signature database 4193 (20090626) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru From shamil at smsconsulting.spb.ru Sat Jun 27 05:56:58 2009 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sat, 27 Jun 2009 14:56:58 +0400 Subject: [dba-VB] ASP.NET MVC Framework In-Reply-To: <sa455e89.029@cactus.dk> References: <sa455e89.029@cactus.dk> Message-ID: <000601c9f715$ff3d9690$fdb8c3b0$@spb.ru> Hi Gustav, I have made sample MVC project - just generated from standard template in VS2008 SP1. It works well locally. I have put it here on Internet: http://shamils-4.hosting.parking.ru/myMvcApplication1/ As you can find it starts OK but links do not work - my guess there is something wrong with those SEO links routing to actual .aspx page - haven't you seen anywhere where should I look in my MVC sample project to fix the issue? (it may also happen that some special settings should be done on ASP.Net server site for that SEO links routing to work properly. All in all MVC programming promise to be rather advanced activity (there are no prebuilt server side controls as when one uses ASP.NET WebForms etc.) but it should be worth the learning curve efforts? - it should become something like "Ruby On Rails" in the (near?) future releases? 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: Saturday, June 27, 2009 1:49 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] ASP.NET MVC Framework Hi Shamil Not me, but I have studied it a bit because the separation of the design in the Model, View and Control parts seems so logical. The fascinating aspect is if it is possible or feasible to transfer it from web design to Windows form design. Now, the Northwind.NET project doesn't contain much "model" work, but it could be an option to convert it to follow MVC design ... /gustav >>> shamil at smsconsulting.spb.ru 26-06-2009 22:10 >>> Hi All, I'm watching through ASP.NET MVC Framework web casts now "ASP.NET MVC Talks" http://www.asp.net/learn/mvc-videos/#MVCStorefrontStarterKit This technology looks interesting. I will probably try to use it in one small application for my new customer. Have anybody here used ASP.NET MVC Framework in application/sample development? Thank you. -- Shamil _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com __________ Information from ESET NOD32 Antivirus, version of virus signature database 4193 (20090626) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru __________ Information from ESET NOD32 Antivirus, version of virus signature database 4193 (20090626) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru From Gustav at cactus.dk Sat Jun 27 16:27:50 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Sat, 27 Jun 2009 23:27:50 +0200 Subject: [dba-VB] ASP.NET MVC Framework Message-ID: <sa46aafe.033@cactus.dk> Hi Shamil Great! But as you, I can open the first page, that's all. Some MVC deployment guide must exist somewhere ... this weekend I'm busy with construction work at our house so I don't have much time looking into this before Monday or Tuesday. /gustav >>> shamil at smsconsulting.spb.ru 27-06-2009 12:56 >>> Hi Gustav, I have made sample MVC project - just generated from standard template in VS2008 SP1. It works well locally. I have put it here on Internet: http://shamils-4.hosting.parking.ru/myMvcApplication1/ As you can find it starts OK but links do not work - my guess there is something wrong with those SEO links routing to actual .aspx page - haven't you seen anywhere where should I look in my MVC sample project to fix the issue? (it may also happen that some special settings should be done on ASP.Net server site for that SEO links routing to work properly. All in all MVC programming promise to be rather advanced activity (there are no prebuilt server side controls as when one uses ASP.NET WebForms etc.) but it should be worth the learning curve efforts? - it should become something like "Ruby On Rails" in the (near?) future releases? 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: Saturday, June 27, 2009 1:49 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] ASP.NET MVC Framework Hi Shamil Not me, but I have studied it a bit because the separation of the design in the Model, View and Control parts seems so logical. The fascinating aspect is if it is possible or feasible to transfer it from web design to Windows form design. Now, the Northwind.NET project doesn't contain much "model" work, but it could be an option to convert it to follow MVC design ... /gustav >>> shamil at smsconsulting.spb.ru 26-06-2009 22:10 >>> Hi All, I'm watching through ASP.NET MVC Framework web casts now "ASP.NET MVC Talks" http://www.asp.net/learn/mvc-videos/#MVCStorefrontStarterKit This technology looks interesting. I will probably try to use it in one small application for my new customer. Have anybody here used ASP.NET MVC Framework in application/sample development? Thank you. -- Shamil From shamil at smsconsulting.spb.ru Mon Jun 29 05:44:25 2009 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Mon, 29 Jun 2009 14:44:25 +0400 Subject: [dba-VB] ASP.NET MVC Framework In-Reply-To: <sa46aafe.033@cactus.dk> References: <sa46aafe.033@cactus.dk> Message-ID: <000b01c9f8a6$93715ef0$ba541cd0$@spb.ru> Hi Gustav and all, I have got read "ASP.NET MVC 1.0 Quickly" By Maarten Balliauw over weekend. Good book for starters with ASP.NET MVC 1.0 as I'm. As for ASP.NET MVC 1.0 - after reading the above book I decided to wait what will come in ASP.NET MVC 2.0: ASP.NET MVC 1.0 is built on top of ASP.NET and I'm now under impression now that it's more a "marketing tool"/R&D project than a robust framework for application development - at least developing web pages to present and edit parent/detail relationships/data promise to be a real PITA with ASP.NET MVC 1.0. ASP.NET MVC 1.0 is good for simple sites as http://stackoverflow.com/ is. One can mix ASP.NET WebForms with ASP.NET MVC 1.0 within one web application but I must say I do not see strong reasons to do that if one has good working knowledge of ASP.NET 3.5. ... I can be missing something... What are your opinions? Thank you. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Sunday, June 28, 2009 1:28 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] ASP.NET MVC Framework Hi Shamil Great! But as you, I can open the first page, that's all. Some MVC deployment guide must exist somewhere ... this weekend I'm busy with construction work at our house so I don't have much time looking into this before Monday or Tuesday. /gustav >>> shamil at smsconsulting.spb.ru 27-06-2009 12:56 >>> Hi Gustav, I have made sample MVC project - just generated from standard template in VS2008 SP1. It works well locally. I have put it here on Internet: http://shamils-4.hosting.parking.ru/myMvcApplication1/ As you can find it starts OK but links do not work - my guess there is something wrong with those SEO links routing to actual .aspx page - haven't you seen anywhere where should I look in my MVC sample project to fix the issue? (it may also happen that some special settings should be done on ASP.Net server site for that SEO links routing to work properly. All in all MVC programming promise to be rather advanced activity (there are no prebuilt server side controls as when one uses ASP.NET WebForms etc.) but it should be worth the learning curve efforts? - it should become something like "Ruby On Rails" in the (near?) future releases? 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: Saturday, June 27, 2009 1:49 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] ASP.NET MVC Framework Hi Shamil Not me, but I have studied it a bit because the separation of the design in the Model, View and Control parts seems so logical. The fascinating aspect is if it is possible or feasible to transfer it from web design to Windows form design. Now, the Northwind.NET project doesn't contain much "model" work, but it could be an option to convert it to follow MVC design ... /gustav >>> shamil at smsconsulting.spb.ru 26-06-2009 22:10 >>> Hi All, I'm watching through ASP.NET MVC Framework web casts now "ASP.NET MVC Talks" http://www.asp.net/learn/mvc-videos/#MVCStorefrontStarterKit This technology looks interesting. I will probably try to use it in one small application for my new customer. Have anybody here used ASP.NET MVC Framework in application/sample development? Thank you. -- Shamil _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com __________ Information from ESET NOD32 Antivirus, version of virus signature database 4194 (20090628) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru __________ Information from ESET NOD32 Antivirus, version of virus signature database 4195 (20090629) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru From ssharkins at gmail.com Mon Jun 29 09:26:36 2009 From: ssharkins at gmail.com (Susan Harkins) Date: Mon, 29 Jun 2009 10:26:36 -0400 Subject: [dba-VB] Article from Gustav Message-ID: <4BB427CF4F6549BD96A293618675E1FE@SusanOne> <http://www.devx.com:80/vb/Article/42242/0/page/1> I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so proud... yet another ones passes safely to single author status. :) Susan H. From max.wanadoo at gmail.com Mon Jun 29 10:38:50 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 29 Jun 2009 16:38:50 +0100 Subject: [dba-VB] Article from Gustav In-Reply-To: <4BB427CF4F6549BD96A293618675E1FE@SusanOne> References: <4BB427CF4F6549BD96A293618675E1FE@SusanOne> Message-ID: <4a48e00e.0707d00a.5973.0ded@mx.google.com> Hmmmm, might be worth a download in that case... Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: 29 June 2009 15:27 To: VBLIst Subject: [dba-VB] Article from Gustav <http://www.devx.com:80/vb/Article/42242/0/page/1> I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so proud... yet another ones passes safely to single author status. :) Susan H. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From ssharkins at gmail.com Mon Jun 29 10:47:13 2009 From: ssharkins at gmail.com (Susan Harkins) Date: Mon, 29 Jun 2009 11:47:13 -0400 Subject: [dba-VB] Article from Gustav References: <4BB427CF4F6549BD96A293618675E1FE@SusanOne> <4a48e00e.0707d00a.5973.0ded@mx.google.com> Message-ID: <4019EE1CA03549269167437E82A3E175@SusanOne> You know, I can create a rule and ignore you. ;) Susan H. > Hmmmm, might be worth a download in that case... > > <http://www.devx.com:80/vb/Article/42242/0/page/1> > > I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so > proud... yet another ones passes safely to single author status. :) From max.wanadoo at gmail.com Mon Jun 29 10:49:28 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 29 Jun 2009 16:49:28 +0100 Subject: [dba-VB] Article from Gustav In-Reply-To: <4019EE1CA03549269167437E82A3E175@SusanOne> References: <4BB427CF4F6549BD96A293618675E1FE@SusanOne> <4a48e00e.0707d00a.5973.0ded@mx.google.com> <4019EE1CA03549269167437E82A3E175@SusanOne> Message-ID: <4a48e28e.0506d00a.3751.0cd0@mx.google.com> You love me too much.... Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: 29 June 2009 16:47 To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Article from Gustav You know, I can create a rule and ignore you. ;) Susan H. > Hmmmm, might be worth a download in that case... > > <http://www.devx.com:80/vb/Article/42242/0/page/1> > > I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so > proud... yet another ones passes safely to single author status. :) _______________________________________________ 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 Jun 29 10:52:39 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 29 Jun 2009 11:52:39 -0400 Subject: [dba-VB] Syslogs In-Reply-To: <4BB427CF4F6549BD96A293618675E1FE@SusanOne> References: <4BB427CF4F6549BD96A293618675E1FE@SusanOne> Message-ID: <4A48E347.9090908@colbyconsulting.com> Hmm... Looks quite cool. My mind is a raging torrent, flooded with rivulets of thought cascading into a waterfall of creative alternatives. Now... how do we determine the IP address of every machine using an Access application on the local LAN? John W. Colby www.ColbyConsulting.com Susan Harkins wrote: > <http://www.devx.com:80/vb/Article/42242/0/page/1> > > I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so > proud... yet another ones passes safely to single author status. :) > > Susan H. > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From Gustav at cactus.dk Mon Jun 29 10:55:15 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 29 Jun 2009 17:55:15 +0200 Subject: [dba-VB] ASP.NET MVC Framework Message-ID: <sa490025.061@cactus.dk> Hi Shamil Thanks for the review. Very useful. No, I don't think you have missed anything. It is my impression that using MVC requires a lot and if you can top that with some real challenges for data handling, I think I'll allocate my limited resources elsewhere. /gustav >>> shamil at smsconsulting.spb.ru 29-06-2009 12:44 >>> Hi Gustav and all, I have got read "ASP.NET MVC 1.0 Quickly" By Maarten Balliauw over weekend. Good book for starters with ASP.NET MVC 1.0 as I'm. As for ASP.NET MVC 1.0 - after reading the above book I decided to wait what will come in ASP.NET MVC 2.0: ASP.NET MVC 1.0 is built on top of ASP.NET and I'm now under impression now that it's more a "marketing tool"/R&D project than a robust framework for application development - at least developing web pages to present and edit parent/detail relationships/data promise to be a real PITA with ASP.NET MVC 1.0. ASP.NET MVC 1.0 is good for simple sites as http://stackoverflow.com/ is. One can mix ASP.NET WebForms with ASP.NET MVC 1.0 within one web application but I must say I do not see strong reasons to do that if one has good working knowledge of ASP.NET 3.5. ... I can be missing something... What are your opinions? Thank you. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Sunday, June 28, 2009 1:28 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] ASP.NET MVC Framework Hi Shamil Great! But as you, I can open the first page, that's all. Some MVC deployment guide must exist somewhere ... this weekend I'm busy with construction work at our house so I don't have much time looking into this before Monday or Tuesday. /gustav >>> shamil at smsconsulting.spb.ru 27-06-2009 12:56 >>> Hi Gustav, I have made sample MVC project - just generated from standard template in VS2008 SP1. It works well locally. I have put it here on Internet: http://shamils-4.hosting.parking.ru/myMvcApplication1/ As you can find it starts OK but links do not work - my guess there is something wrong with those SEO links routing to actual .aspx page - haven't you seen anywhere where should I look in my MVC sample project to fix the issue? (it may also happen that some special settings should be done on ASP.Net server site for that SEO links routing to work properly. All in all MVC programming promise to be rather advanced activity (there are no prebuilt server side controls as when one uses ASP.NET WebForms etc.) but it should be worth the learning curve efforts? - it should become something like "Ruby On Rails" in the (near?) future releases? 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: Saturday, June 27, 2009 1:49 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] ASP.NET MVC Framework Hi Shamil Not me, but I have studied it a bit because the separation of the design in the Model, View and Control parts seems so logical. The fascinating aspect is if it is possible or feasible to transfer it from web design to Windows form design. Now, the Northwind.NET project doesn't contain much "model" work, but it could be an option to convert it to follow MVC design ... /gustav >>> shamil at smsconsulting.spb.ru 26-06-2009 22:10 >>> Hi All, I'm watching through ASP.NET MVC Framework web casts now "ASP.NET MVC Talks" http://www.asp.net/learn/mvc-videos/#MVCStorefrontStarterKit This technology looks interesting. I will probably try to use it in one small application for my new customer. Have anybody here used ASP.NET MVC Framework in application/sample development? Thank you. -- Shamil From ssharkins at gmail.com Mon Jun 29 10:57:31 2009 From: ssharkins at gmail.com (Susan Harkins) Date: Mon, 29 Jun 2009 11:57:31 -0400 Subject: [dba-VB] Syslogs References: <4BB427CF4F6549BD96A293618675E1FE@SusanOne> <4A48E347.9090908@colbyconsulting.com> Message-ID: <239A59C13E2B49DB9B1CC36B2D3FC947@SusanOne> > My mind is a raging torrent, flooded with rivulets of thought cascading > into a waterfall of creative > alternatives. =======That does explain quite a lot. ;) Susan H. From max.wanadoo at gmail.com Mon Jun 29 11:00:08 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 29 Jun 2009 17:00:08 +0100 Subject: [dba-VB] Syslogs In-Reply-To: <239A59C13E2B49DB9B1CC36B2D3FC947@SusanOne> References: <4BB427CF4F6549BD96A293618675E1FE@SusanOne> <4A48E347.9090908@colbyconsulting.com> <239A59C13E2B49DB9B1CC36B2D3FC947@SusanOne> Message-ID: <4a48e50d.1c05d00a.5a17.6c08@mx.google.com> It tells me that he has got Fortune Cookies switch on.... Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: 29 June 2009 16:58 To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Syslogs > My mind is a raging torrent, flooded with rivulets of thought cascading > into a waterfall of creative > alternatives. =======That does explain quite a lot. ;) Susan H. _______________________________________________ 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 Jun 29 11:08:21 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 29 Jun 2009 12:08:21 -0400 Subject: [dba-VB] Syslogs In-Reply-To: <4a48e50d.1c05d00a.5a17.6c08@mx.google.com> References: <4BB427CF4F6549BD96A293618675E1FE@SusanOne> <4A48E347.9090908@colbyconsulting.com> <239A59C13E2B49DB9B1CC36B2D3FC947@SusanOne> <4a48e50d.1c05d00a.5a17.6c08@mx.google.com> Message-ID: <4A48E6F5.8090000@colbyconsulting.com> A few too many passes through Blazing Saddles. ;) John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > It tells me that he has got Fortune Cookies switch on.... > > Max > > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Susan Harkins > Sent: 29 June 2009 16:58 > To: Discussion concerning Visual Basic and related programming issues. > Subject: Re: [dba-VB] Syslogs > >> My mind is a raging torrent, flooded with rivulets of thought cascading >> into a waterfall of creative >> alternatives. > > =======That does explain quite a lot. ;) > > Susan H. > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From max.wanadoo at gmail.com Mon Jun 29 11:12:01 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 29 Jun 2009 17:12:01 +0100 Subject: [dba-VB] Syslogs In-Reply-To: <4A48E6F5.8090000@colbyconsulting.com> References: <4BB427CF4F6549BD96A293618675E1FE@SusanOne> <4A48E347.9090908@colbyconsulting.com> <239A59C13E2B49DB9B1CC36B2D3FC947@SusanOne> <4a48e50d.1c05d00a.5a17.6c08@mx.google.com> <4A48E6F5.8090000@colbyconsulting.com> Message-ID: <4a48e7d6.0707d00a.5973.188c@mx.google.com> Try vodka...same effect...less typing ability... Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: 29 June 2009 17:08 To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Syslogs A few too many passes through Blazing Saddles. ;) John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > It tells me that he has got Fortune Cookies switch on.... > > Max > > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Susan Harkins > Sent: 29 June 2009 16:58 > To: Discussion concerning Visual Basic and related programming issues. > Subject: Re: [dba-VB] Syslogs > >> My mind is a raging torrent, flooded with rivulets of thought cascading >> into a waterfall of creative >> alternatives. > > =======That does explain quite a lot. ;) > > Susan H. > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From max.wanadoo at gmail.com Mon Jun 29 11:14:30 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 29 Jun 2009 17:14:30 +0100 Subject: [dba-VB] Syslogs In-Reply-To: <4A48E347.9090908@colbyconsulting.com> References: <4BB427CF4F6549BD96A293618675E1FE@SusanOne> <4A48E347.9090908@colbyconsulting.com> Message-ID: <4a48e86a.1c05d00a.538f.13fb@mx.google.com> Gustav, does this work under Access VBA? Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: 29 June 2009 16:53 To: Discussion concerning Visual Basic and related programming issues. Subject: [dba-VB] Syslogs Hmm... Looks quite cool. My mind is a raging torrent, flooded with rivulets of thought cascading into a waterfall of creative alternatives. Now... how do we determine the IP address of every machine using an Access application on the local LAN? John W. Colby www.ColbyConsulting.com Susan Harkins wrote: > <http://www.devx.com:80/vb/Article/42242/0/page/1> > > I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so > proud... yet another ones passes safely to single author status. :) > > Susan H. > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From max.wanadoo at gmail.com Mon Jun 29 11:19:08 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 29 Jun 2009 17:19:08 +0100 Subject: [dba-VB] Syslogs In-Reply-To: <4A48E347.9090908@colbyconsulting.com> References: <4BB427CF4F6549BD96A293618675E1FE@SusanOne> <4A48E347.9090908@colbyconsulting.com> Message-ID: <4a48e982.1701d00a.388e.0b31@mx.google.com> Do you mean IP address without having to go to the other workstation. If you just want to know what the IP address is, use VNC or RealVNC then you can just hover the mouse over the system tray icon and it will tell you the ip address. Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: 29 June 2009 16:53 To: Discussion concerning Visual Basic and related programming issues. Subject: [dba-VB] Syslogs Hmm... Looks quite cool. My mind is a raging torrent, flooded with rivulets of thought cascading into a waterfall of creative alternatives. Now... how do we determine the IP address of every machine using an Access application on the local LAN? John W. Colby www.ColbyConsulting.com Susan Harkins wrote: > <http://www.devx.com:80/vb/Article/42242/0/page/1> > > I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so > proud... yet another ones passes safely to single author status. :) > > Susan H. > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ 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 Jun 29 11:24:47 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 29 Jun 2009 18:24:47 +0200 Subject: [dba-VB] Article from Gustav Message-ID: <sa4906f9.063@cactus.dk> Hi Susan So you are counting us? I just thought you were lazy and this stuff was too nerded. So I was in trouble ... until I figured out I could take one of our previous articles and use as a skeleton. It worked out. Thanks! /gustav >>> ssharkins at gmail.com 29-06-2009 16:26 >>> <http://www.devx.com:80/vb/Article/42242/0/page/1> I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so proud... yet another ones passes safely to single author status. :) Susan H. From Gustav at cactus.dk Mon Jun 29 11:25:37 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 29 Jun 2009 18:25:37 +0200 Subject: [dba-VB] Syslogs Message-ID: <sa490735.064@cactus.dk> Hi John Ask the application to send you a syslog message! Then you can read the sender address or hostname. /gustav >>> jwcolby at colbyconsulting.com 29-06-2009 17:52 >>> Hmm... Looks quite cool. My mind is a raging torrent, flooded with rivulets of thought cascading into a waterfall of creative alternatives. Now... how do we determine the IP address of every machine using an Access application on the local LAN? John W. Colby www.ColbyConsulting.com Susan Harkins wrote: > <http://www.devx.com:80/vb/Article/42242/0/page/1> > > I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so > proud... yet another ones passes safely to single author status. :) > > Susan H. From jwcolby at colbyconsulting.com Mon Jun 29 11:27:55 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 29 Jun 2009 12:27:55 -0400 Subject: [dba-VB] Syslogs In-Reply-To: <4a48e982.1701d00a.388e.0b31@mx.google.com> References: <4BB427CF4F6549BD96A293618675E1FE@SusanOne> <4A48E347.9090908@colbyconsulting.com> <4a48e982.1701d00a.388e.0b31@mx.google.com> Message-ID: <4A48EB8B.7090901@colbyconsulting.com> No, I want the Access workstations to log their IP address in a table as Access opens so that I can read who is available to send messages to. The limitation of this kind of code is that you have to know an IP address. John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > Do you mean IP address without having to go to the other workstation. > > If you just want to know what the IP address is, use VNC or RealVNC then you > can just hover the mouse over the system tray icon and it will tell you the > ip address. > > Max > > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: 29 June 2009 16:53 > To: Discussion concerning Visual Basic and related programming issues. > Subject: [dba-VB] Syslogs > > Hmm... > > Looks quite cool. > > My mind is a raging torrent, flooded with rivulets of thought cascading into > a waterfall of creative > alternatives. > > Now... how do we determine the IP address of every machine using an Access > application on the local LAN? > > John W. Colby > www.ColbyConsulting.com > > > Susan Harkins wrote: >> <http://www.devx.com:80/vb/Article/42242/0/page/1> >> >> I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so >> proud... yet another ones passes safely to single author status. :) >> >> Susan H. >> >> _______________________________________________ >> dba-VB mailing list >> dba-VB at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/dba-vb >> http://www.databaseadvisors.com >> >> > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From max.wanadoo at gmail.com Mon Jun 29 11:29:19 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 29 Jun 2009 17:29:19 +0100 Subject: [dba-VB] Article from Gustav In-Reply-To: <sa4906f9.063@cactus.dk> References: <sa4906f9.063@cactus.dk> Message-ID: <4a48ebe4.0a04d00a.07b4.1a0b@mx.google.com> See Susan....Give children fish and they will be fed for the day...teach the children how to fish and they will be fed for ever.. Ps. And you were going to Rule-Me! Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 29 June 2009 17:25 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Article from Gustav Hi Susan So you are counting us? I just thought you were lazy and this stuff was too nerded. So I was in trouble ... until I figured out I could take one of our previous articles and use as a skeleton. It worked out. Thanks! /gustav >>> ssharkins at gmail.com 29-06-2009 16:26 >>> <http://www.devx.com:80/vb/Article/42242/0/page/1> I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so proud... yet another ones passes safely to single author status. :) Susan H. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From ssharkins at gmail.com Mon Jun 29 11:30:37 2009 From: ssharkins at gmail.com (Susan Harkins) Date: Mon, 29 Jun 2009 12:30:37 -0400 Subject: [dba-VB] Article from Gustav References: <sa4906f9.063@cactus.dk> Message-ID: <8291425A3CE9489A95F93FA6E0A2416E@SusanOne> > > So you are counting us? I just thought you were lazy and this stuff was > too nerded. ==========Counting us? Did I lose something in the translation? :) > So I was in trouble ... until I figured out I could take one of our > previous articles and use as a skeleton. > It worked out. Thanks! ==========That's all I do! ;) Susan H. From max.wanadoo at gmail.com Mon Jun 29 11:35:20 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 29 Jun 2009 17:35:20 +0100 Subject: [dba-VB] Syslogs In-Reply-To: <4A48EB8B.7090901@colbyconsulting.com> References: <4BB427CF4F6549BD96A293618675E1FE@SusanOne> <4A48E347.9090908@colbyconsulting.com> <4a48e982.1701d00a.388e.0b31@mx.google.com> <4A48EB8B.7090901@colbyconsulting.com> Message-ID: <4a48ed4e.0702d00a.3f5a.5e39@mx.google.com> Hmmm, ok I will think about that...but when you say "..so that I can..." do you mean your application or you as an individual? What I am getting at is, why not just send it to everyone? Why cherry-pick individuals? EG; on one of my apps, I have, oh, all sorts of messages flying around, but on each FE there is a timer running on the main menu and periodically it will go to see if there are any messages in the table which handles this sorta stuff. IF so, the user has a pop up with the option to Sleep for x mins (default to 15) before it reminds again. It will never go away until the user has read it, unless you (the originator) says it can time out. Sorta stuff...if you can get my drift. Don't need to send system messages. It is handled with the app. Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: 29 June 2009 17:28 To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Syslogs No, I want the Access workstations to log their IP address in a table as Access opens so that I can read who is available to send messages to. The limitation of this kind of code is that you have to know an IP address. John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > Do you mean IP address without having to go to the other workstation. > > If you just want to know what the IP address is, use VNC or RealVNC then you > can just hover the mouse over the system tray icon and it will tell you the > ip address. > > Max > > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: 29 June 2009 16:53 > To: Discussion concerning Visual Basic and related programming issues. > Subject: [dba-VB] Syslogs > > Hmm... > > Looks quite cool. > > My mind is a raging torrent, flooded with rivulets of thought cascading into > a waterfall of creative > alternatives. > > Now... how do we determine the IP address of every machine using an Access > application on the local LAN? > > John W. Colby > www.ColbyConsulting.com > > > Susan Harkins wrote: >> <http://www.devx.com:80/vb/Article/42242/0/page/1> >> >> I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so >> proud... yet another ones passes safely to single author status. :) >> >> Susan H. >> >> _______________________________________________ >> dba-VB mailing list >> dba-VB at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/dba-vb >> http://www.databaseadvisors.com >> >> > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Mon Jun 29 11:37:31 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 29 Jun 2009 12:37:31 -0400 Subject: [dba-VB] Syslogs In-Reply-To: <sa490735.064@cactus.dk> References: <sa490735.064@cactus.dk> Message-ID: <4A48EDCB.50706@colbyconsulting.com> LOL, but you still have to know your own IP address. We got into this one time, with Hamachi, VMs, multiple NICS etc. it is difficult to determine what my own IP address is. John W. Colby www.ColbyConsulting.com Gustav Brock wrote: > Hi John > > Ask the application to send you a syslog message! > Then you can read the sender address or hostname. > > /gustav > > >>>> jwcolby at colbyconsulting.com 29-06-2009 17:52 >>> > Hmm... > > Looks quite cool. > > My mind is a raging torrent, flooded with rivulets of thought cascading into a waterfall of creative > alternatives. > > Now... how do we determine the IP address of every machine using an Access application on the local LAN? > > John W. Colby > www.ColbyConsulting.com > > > Susan Harkins wrote: >> <http://www.devx.com:80/vb/Article/42242/0/page/1> >> >> I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so >> proud... yet another ones passes safely to single author status. :) >> >> Susan H. > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From Gustav at cactus.dk Mon Jun 29 11:37:29 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 29 Jun 2009 18:37:29 +0200 Subject: [dba-VB] Syslogs Message-ID: <sa490a08.065@cactus.dk> Hi Susan, Max et al This article: Create a Syslog Sender/Receiver Using the MS Winsock Control <quote> With the Microsoft WinSock Control and a few coding tricks, you can use Access as a high-performance syslog sender, receiver, and logger. </quote> _is_ in VBA! I have no idea why it was put in the VB section. In fact, given the current "discussion" on Access 2007, it is just about the only project I have made in Access 2007. I started out with this several years ago with Access 97 for fun, but when I recently got the chance to write and polish it up, I felt it had to be finished in A2007. If Steve is looking for "fans of the ribbon", don't count me in - I really looked for features or benefits of the ribbon but found none, sorry. /gustav >>> max.wanadoo at gmail.com 29-06-2009 18:14 >>> Gustav, does this work under Access VBA? Max -----Original Message----- Susan Harkins wrote: > <http://www.devx.com:80/vb/Article/42242/0/page/1> > > I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so > proud... yet another ones passes safely to single author status. :) > > Susan H. From andy at minstersystems.co.uk Mon Jun 29 11:40:56 2009 From: andy at minstersystems.co.uk (Andy Lacey) Date: Mon, 29 Jun 2009 17:40:56 +0100 Subject: [dba-VB] Article from Gustav In-Reply-To: <4BB427CF4F6549BD96A293618675E1FE@SusanOne> Message-ID: <B9B899E33A7F4B1285F004349D8FBF34@MINSTER> Congratulations....to both of you. andy -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: 29 June 2009 15:27 To: VBLIst Subject: [dba-VB] Article from Gustav <http://www.devx.com:80/vb/Article/42242/0/page/1> I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so proud... yet another ones passes safely to single author status. :) Susan H. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From max.wanadoo at gmail.com Mon Jun 29 11:51:50 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 29 Jun 2009 17:51:50 +0100 Subject: [dba-VB] Syslogs In-Reply-To: <sa490a08.065@cactus.dk> References: <sa490a08.065@cactus.dk> Message-ID: <4a48f12c.1818d00a.6a44.1a3d@mx.google.com> Run it in A2007K and opened the Demo form to get this error: .Protocol = sckUDPProtocol Run time error 438 Object doesn't support this property or method. Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 29 June 2009 17:37 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Syslogs Hi Susan, Max et al This article: Create a Syslog Sender/Receiver Using the MS Winsock Control <quote> With the Microsoft WinSock Control and a few coding tricks, you can use Access as a high-performance syslog sender, receiver, and logger. </quote> _is_ in VBA! I have no idea why it was put in the VB section. In fact, given the current "discussion" on Access 2007, it is just about the only project I have made in Access 2007. I started out with this several years ago with Access 97 for fun, but when I recently got the chance to write and polish it up, I felt it had to be finished in A2007. If Steve is looking for "fans of the ribbon", don't count me in - I really looked for features or benefits of the ribbon but found none, sorry. /gustav >>> max.wanadoo at gmail.com 29-06-2009 18:14 >>> Gustav, does this work under Access VBA? Max -----Original Message----- Susan Harkins wrote: > <http://www.devx.com:80/vb/Article/42242/0/page/1> > > I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so > proud... yet another ones passes safely to single author status. :) > > Susan H. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Mon Jun 29 11:55:54 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 29 Jun 2009 12:55:54 -0400 Subject: [dba-VB] Syslogs In-Reply-To: <4a48ed4e.0702d00a.3f5a.5e39@mx.google.com> References: <4BB427CF4F6549BD96A293618675E1FE@SusanOne> <4A48E347.9090908@colbyconsulting.com> <4a48e982.1701d00a.388e.0b31@mx.google.com> <4A48EB8B.7090901@colbyconsulting.com> <4a48ed4e.0702d00a.3f5a.5e39@mx.google.com> Message-ID: <4A48F21A.2090608@colbyconsulting.com> > What I am getting at is, why not just send it to everyone? Why cherry-pick individuals? This is an attempt to avoid the timer. I hate timers, though I use them in a server application. In a user application they cause screen blinking and also cause compile errors for the developer if the timer tries to execute code while you are typing in code. John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > Hmmm, ok I will think about that...but when you say "..so that I can..." do > you mean your application or you as an individual? > > What I am getting at is, why not just send it to everyone? Why cherry-pick > individuals? > > EG; on one of my apps, I have, oh, all sorts of messages flying around, but > on each FE there is a timer running on the main menu and periodically it > will go to see if there are any messages in the table which handles this > sorta stuff. IF so, the user has a pop up with the option to Sleep for x > mins (default to 15) before it reminds again. It will never go away until > the user has read it, unless you (the originator) says it can time out. > > Sorta stuff...if you can get my drift. Don't need to send system messages. > It is handled with the app. > > Max > > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: 29 June 2009 17:28 > To: Discussion concerning Visual Basic and related programming issues. > Subject: Re: [dba-VB] Syslogs > > No, I want the Access workstations to log their IP address in a table as > Access opens so that I can > read who is available to send messages to. > > The limitation of this kind of code is that you have to know an IP address. > > John W. Colby > www.ColbyConsulting.com > > > Max Wanadoo wrote: >> Do you mean IP address without having to go to the other workstation. >> >> If you just want to know what the IP address is, use VNC or RealVNC then > you >> can just hover the mouse over the system tray icon and it will tell you > the >> ip address. >> >> Max >> >> >> >> -----Original Message----- >> From: dba-vb-bounces at databaseadvisors.com >> [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby >> Sent: 29 June 2009 16:53 >> To: Discussion concerning Visual Basic and related programming issues. >> Subject: [dba-VB] Syslogs >> >> Hmm... >> >> Looks quite cool. >> >> My mind is a raging torrent, flooded with rivulets of thought cascading > into >> a waterfall of creative >> alternatives. >> >> Now... how do we determine the IP address of every machine using an Access >> application on the local LAN? >> >> John W. Colby >> www.ColbyConsulting.com >> >> >> Susan Harkins wrote: >>> <http://www.devx.com:80/vb/Article/42242/0/page/1> >>> >>> I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so > >>> proud... yet another ones passes safely to single author status. :) >>> >>> Susan H. >>> >>> _______________________________________________ >>> dba-VB mailing list >>> dba-VB at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/dba-vb >>> http://www.databaseadvisors.com >>> >>> >> _______________________________________________ >> dba-VB mailing list >> dba-VB at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/dba-vb >> http://www.databaseadvisors.com >> >> _______________________________________________ >> dba-VB mailing list >> dba-VB at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/dba-vb >> http://www.databaseadvisors.com >> >> > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ > 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 Jun 29 11:56:50 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 29 Jun 2009 18:56:50 +0200 Subject: [dba-VB] Syslogs Message-ID: <sa490e7e.066@cactus.dk> Hi John Well, you have to decide. If you wish to communicate, either the sender or the receiver has to identify itself. That drives anything on the Internet. And syslog is not broadcasting. If you wish to listen to any address on your local network or transmit to any address on the local network, you have to determine the address of your machine and the subnet mask and you can calculate all possible addresses. Note that network admins hate broadcasting applications as these are considered noisy. If you wish to communicate in or out of your local network, again you must know "something" about the machine(s) out there and your router will take care of the rest (if it and the firewall allows). The reason Hamachi and the like works is because they initially use port 80 (which can be considered open on any office network) and an external proxy to establish communication - so sender and receiver can identify each other. Nothing black magic here. syslog is fun because it is so primitive. This makes it an universal tool with heavy limitations but with nearly zero use of resources. What has been missing is prebuilt methods to read and write the messages from/to a database - to make it useful for people like us. This is what and how the article describes. /gustav >>> jwcolby at colbyconsulting.com 29-06-2009 18:37 >>> LOL, but you still have to know your own IP address. We got into this one time, with Hamachi, VMs, multiple NICS etc. it is difficult to determine what my own IP address is. John W. Colby www.ColbyConsulting.com Gustav Brock wrote: > Hi John > > Ask the application to send you a syslog message! > Then you can read the sender address or hostname. > > /gustav > > >>>> jwcolby at colbyconsulting.com 29-06-2009 17:52 >>> > Hmm... > > Looks quite cool. > > My mind is a raging torrent, flooded with rivulets of thought cascading into a waterfall of creative > alternatives. > > Now... how do we determine the IP address of every machine using an Access application on the local LAN? > > John W. Colby > www.ColbyConsulting.com > > > Susan Harkins wrote: >> <http://www.devx.com:80/vb/Article/42242/0/page/1> >> >> I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so >> proud... yet another ones passes safely to single author status. :) >> >> Susan H. From jwcolby at colbyconsulting.com Mon Jun 29 11:57:45 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 29 Jun 2009 12:57:45 -0400 Subject: [dba-VB] Syslogs In-Reply-To: <4a48ed4e.0702d00a.3f5a.5e39@mx.google.com> References: <4BB427CF4F6549BD96A293618675E1FE@SusanOne> <4A48E347.9090908@colbyconsulting.com> <4a48e982.1701d00a.388e.0b31@mx.google.com> <4A48EB8B.7090901@colbyconsulting.com> <4a48ed4e.0702d00a.3f5a.5e39@mx.google.com> Message-ID: <4A48F289.3040908@colbyconsulting.com> > What I am getting at is, why not just send it to everyone? Why cherry-pick individuals? This is an attempt to avoid the timer. I hate timers, though I use them in a server application. In a user application they cause screen blinking and also cause compile errors for the developer if the timer tries to execute code while you are typing in code. If I know the IP address of every PC that has an application running, I can send a message to just those PCs. But I have to know their IP addresses. If you are going to communicate through a table then this kind of code is unnecessary, but then a timer has to poll for messages in the table. YUK. John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > Hmmm, ok I will think about that...but when you say "..so that I can..." do > you mean your application or you as an individual? > > What I am getting at is, why not just send it to everyone? Why cherry-pick > individuals? > > EG; on one of my apps, I have, oh, all sorts of messages flying around, but > on each FE there is a timer running on the main menu and periodically it > will go to see if there are any messages in the table which handles this > sorta stuff. IF so, the user has a pop up with the option to Sleep for x > mins (default to 15) before it reminds again. It will never go away until > the user has read it, unless you (the originator) says it can time out. > > Sorta stuff...if you can get my drift. Don't need to send system messages. > It is handled with the app. > > Max > > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: 29 June 2009 17:28 > To: Discussion concerning Visual Basic and related programming issues. > Subject: Re: [dba-VB] Syslogs > > No, I want the Access workstations to log their IP address in a table as > Access opens so that I can > read who is available to send messages to. > > The limitation of this kind of code is that you have to know an IP address. > > John W. Colby > www.ColbyConsulting.com > > > Max Wanadoo wrote: >> Do you mean IP address without having to go to the other workstation. >> >> If you just want to know what the IP address is, use VNC or RealVNC then > you >> can just hover the mouse over the system tray icon and it will tell you > the >> ip address. >> >> Max >> >> >> >> -----Original Message----- >> From: dba-vb-bounces at databaseadvisors.com >> [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby >> Sent: 29 June 2009 16:53 >> To: Discussion concerning Visual Basic and related programming issues. >> Subject: [dba-VB] Syslogs >> >> Hmm... >> >> Looks quite cool. >> >> My mind is a raging torrent, flooded with rivulets of thought cascading > into >> a waterfall of creative >> alternatives. >> >> Now... how do we determine the IP address of every machine using an Access >> application on the local LAN? >> >> John W. Colby >> www.ColbyConsulting.com >> >> >> Susan Harkins wrote: >>> <http://www.devx.com:80/vb/Article/42242/0/page/1> >>> >>> I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so > >>> proud... yet another ones passes safely to single author status. :) >>> >>> Susan H. >>> >>> _______________________________________________ >>> dba-VB mailing list >>> dba-VB at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/dba-vb >>> http://www.databaseadvisors.com >>> >>> >> _______________________________________________ >> dba-VB mailing list >> dba-VB at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/dba-vb >> http://www.databaseadvisors.com >> >> _______________________________________________ >> dba-VB mailing list >> dba-VB at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/dba-vb >> http://www.databaseadvisors.com >> >> > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ > 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 Jun 29 12:07:59 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 29 Jun 2009 19:07:59 +0200 Subject: [dba-VB] Syslogs Message-ID: <sa491131.067@cactus.dk> Hi Max The paragraph on page 1, "The WinSock Control", is for you. You need both the license and the "compatibility". Thank you to MS and IE and the "Compatibility" flag. /gustav >>> max.wanadoo at gmail.com 29-06-2009 18:51 >>> Run it in A2007K and opened the Demo form to get this error: .Protocol = sckUDPProtocol Run time error 438 Object doesn't support this property or method. Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 29 June 2009 17:37 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Syslogs Hi Susan, Max et al This article: Create a Syslog Sender/Receiver Using the MS Winsock Control <quote> With the Microsoft WinSock Control and a few coding tricks, you can use Access as a high-performance syslog sender, receiver, and logger. </quote> _is_ in VBA! I have no idea why it was put in the VB section. In fact, given the current "discussion" on Access 2007, it is just about the only project I have made in Access 2007. I started out with this several years ago with Access 97 for fun, but when I recently got the chance to write and polish it up, I felt it had to be finished in A2007. If Steve is looking for "fans of the ribbon", don't count me in - I really looked for features or benefits of the ribbon but found none, sorry. /gustav >>> max.wanadoo at gmail.com 29-06-2009 18:14 >>> Gustav, does this work under Access VBA? Max -----Original Message----- Susan Harkins wrote: > <http://www.devx.com:80/vb/Article/42242/0/page/1> > > I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so > proud... yet another ones passes safely to single author status. :) > > Susan H. From max.wanadoo at gmail.com Mon Jun 29 12:09:38 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 29 Jun 2009 18:09:38 +0100 Subject: [dba-VB] Syslogs In-Reply-To: <4A48F289.3040908@colbyconsulting.com> References: <4BB427CF4F6549BD96A293618675E1FE@SusanOne> <4A48E347.9090908@colbyconsulting.com> <4a48e982.1701d00a.388e.0b31@mx.google.com> <4A48EB8B.7090901@colbyconsulting.com> <4a48ed4e.0702d00a.3f5a.5e39@mx.google.com> <4A48F289.3040908@colbyconsulting.com> Message-ID: <4a48f557.0707d00a.73ff.1dd1@mx.google.com> Yes, you are correct. But your options are (assuming you are going with the access table method) is: a. you can identity 1 or more individuals via the user table and/or see who is logged in, or ALL. b. you can determine the timer frequency to avoid the problems you describe. c. you can change the timer frequency programmatically if you need to send a FLASH message and then turn it back to "normal speed" after. d. you don't need to know any IP addresses or indeed any LAN info at all. e. It all happens within Access under your program control. f. User can respond, forward, take action etc. g. you can check your Outline Emails. h. you can call up any Office (or other) app, Word, excel etc (you know all this anyway) z. oh, and anything else that Access is capable of...the world (access world, that is) is your oyster (or lobster, if you follow Alan's youtube) Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: 29 June 2009 17:58 To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Syslogs > What I am getting at is, why not just send it to everyone? Why cherry-pick individuals? This is an attempt to avoid the timer. I hate timers, though I use them in a server application. In a user application they cause screen blinking and also cause compile errors for the developer if the timer tries to execute code while you are typing in code. If I know the IP address of every PC that has an application running, I can send a message to just those PCs. But I have to know their IP addresses. If you are going to communicate through a table then this kind of code is unnecessary, but then a timer has to poll for messages in the table. YUK. John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > Hmmm, ok I will think about that...but when you say "..so that I can..." do > you mean your application or you as an individual? > > What I am getting at is, why not just send it to everyone? Why cherry-pick > individuals? > > EG; on one of my apps, I have, oh, all sorts of messages flying around, but > on each FE there is a timer running on the main menu and periodically it > will go to see if there are any messages in the table which handles this > sorta stuff. IF so, the user has a pop up with the option to Sleep for x > mins (default to 15) before it reminds again. It will never go away until > the user has read it, unless you (the originator) says it can time out. > > Sorta stuff...if you can get my drift. Don't need to send system messages. > It is handled with the app. > > Max > > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: 29 June 2009 17:28 > To: Discussion concerning Visual Basic and related programming issues. > Subject: Re: [dba-VB] Syslogs > > No, I want the Access workstations to log their IP address in a table as > Access opens so that I can > read who is available to send messages to. > > The limitation of this kind of code is that you have to know an IP address. > > John W. Colby > www.ColbyConsulting.com > > > Max Wanadoo wrote: >> Do you mean IP address without having to go to the other workstation. >> >> If you just want to know what the IP address is, use VNC or RealVNC then > you >> can just hover the mouse over the system tray icon and it will tell you > the >> ip address. >> >> Max >> >> >> >> -----Original Message----- >> From: dba-vb-bounces at databaseadvisors.com >> [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby >> Sent: 29 June 2009 16:53 >> To: Discussion concerning Visual Basic and related programming issues. >> Subject: [dba-VB] Syslogs >> >> Hmm... >> >> Looks quite cool. >> >> My mind is a raging torrent, flooded with rivulets of thought cascading > into >> a waterfall of creative >> alternatives. >> >> Now... how do we determine the IP address of every machine using an Access >> application on the local LAN? >> >> John W. Colby >> www.ColbyConsulting.com >> >> >> Susan Harkins wrote: >>> <http://www.devx.com:80/vb/Article/42242/0/page/1> >>> >>> I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so > >>> proud... yet another ones passes safely to single author status. :) >>> >>> Susan H. >>> >>> _______________________________________________ >>> dba-VB mailing list >>> dba-VB at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/dba-vb >>> http://www.databaseadvisors.com >>> >>> >> _______________________________________________ >> dba-VB mailing list >> dba-VB at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/dba-vb >> http://www.databaseadvisors.com >> >> _______________________________________________ >> dba-VB mailing list >> dba-VB at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/dba-vb >> http://www.databaseadvisors.com >> >> > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From max.wanadoo at gmail.com Mon Jun 29 12:30:26 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 29 Jun 2009 18:30:26 +0100 Subject: [dba-VB] Syslogs In-Reply-To: <sa491131.067@cactus.dk> References: <sa491131.067@cactus.dk> Message-ID: <4a48fa36.0a1ad00a.270f.343d@mx.google.com> Yes that cured it. I used the one included with the download. The demo form seems to work, but I don't receive any msg at localhost Get back to you on the others. Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 29 June 2009 18:08 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Syslogs Hi Max The paragraph on page 1, "The WinSock Control", is for you. You need both the license and the "compatibility". Thank you to MS and IE and the "Compatibility" flag. /gustav >>> max.wanadoo at gmail.com 29-06-2009 18:51 >>> Run it in A2007K and opened the Demo form to get this error: .Protocol = sckUDPProtocol Run time error 438 Object doesn't support this property or method. Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 29 June 2009 17:37 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Syslogs Hi Susan, Max et al This article: Create a Syslog Sender/Receiver Using the MS Winsock Control <quote> With the Microsoft WinSock Control and a few coding tricks, you can use Access as a high-performance syslog sender, receiver, and logger. </quote> _is_ in VBA! I have no idea why it was put in the VB section. In fact, given the current "discussion" on Access 2007, it is just about the only project I have made in Access 2007. I started out with this several years ago with Access 97 for fun, but when I recently got the chance to write and polish it up, I felt it had to be finished in A2007. If Steve is looking for "fans of the ribbon", don't count me in - I really looked for features or benefits of the ribbon but found none, sorry. /gustav >>> max.wanadoo at gmail.com 29-06-2009 18:14 >>> Gustav, does this work under Access VBA? Max -----Original Message----- Susan Harkins wrote: > <http://www.devx.com:80/vb/Article/42242/0/page/1> > > I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so > proud... yet another ones passes safely to single author status. :) > > Susan H. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Mon Jun 29 12:35:55 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 29 Jun 2009 13:35:55 -0400 Subject: [dba-VB] SPAM-LOW: Re: Syslogs In-Reply-To: <4a48f557.0707d00a.73ff.1dd1@mx.google.com> References: <4BB427CF4F6549BD96A293618675E1FE@SusanOne> <4A48E347.9090908@colbyconsulting.com> <4a48e982.1701d00a.388e.0b31@mx.google.com> <4A48EB8B.7090901@colbyconsulting.com> <4a48ed4e.0702d00a.3f5a.5e39@mx.google.com> <4A48F289.3040908@colbyconsulting.com> <4a48f557.0707d00a.73ff.1dd1@mx.google.com> Message-ID: <4A48FB7B.8030604@colbyconsulting.com> Max, I know all this. I write classes, and those classes can raise events. Events are much like this thing of Gustavs, a message is sent and if someone gets it fine. That is often useful As an example, I cache frequently used data in class instances, one per record from the table. It would be nice to have a message that is sent to everyone in the database if anyone modifies the data in the cached table. But I don't want to have to continuously poll a table looking for a message. If a message is sent saying that the cached data changes, then I rebuild the cache. That is the kind of thing that this code could possibly add to an application, HOWEVER... everyone has to know the IP address of everyone else that is in the database. I have been looking for this kind of messaging thing for YEARS. John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > Yes, you are correct. > > But your options are (assuming you are going with the access table method) > is: > > a. you can identity 1 or more individuals via the user table and/or see who > is logged in, or ALL. > b. you can determine the timer frequency to avoid the problems you describe. > c. you can change the timer frequency programmatically if you need to send a > FLASH message and then turn it back to "normal speed" after. > d. you don't need to know any IP addresses or indeed any LAN info at all. > e. It all happens within Access under your program control. > f. User can respond, forward, take action etc. > g. you can check your Outline Emails. > h. you can call up any Office (or other) app, Word, excel etc (you know all > this anyway) > z. oh, and anything else that Access is capable of...the world (access > world, that is) is your oyster (or lobster, if you follow Alan's youtube) > > > > Max > > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: 29 June 2009 17:58 > To: Discussion concerning Visual Basic and related programming issues. > Subject: Re: [dba-VB] Syslogs > > > What I am getting at is, why not just send it to everyone? Why > cherry-pick individuals? > > This is an attempt to avoid the timer. I hate timers, though I use them in > a server application. > In a user application they cause screen blinking and also cause compile > errors for the developer if > the timer tries to execute code while you are typing in code. > > If I know the IP address of every PC that has an application running, I can > send a message to just > those PCs. But I have to know their IP addresses. > > If you are going to communicate through a table then this kind of code is > unnecessary, but then a > timer has to poll for messages in the table. YUK. > > John W. Colby > www.ColbyConsulting.com > > > Max Wanadoo wrote: >> Hmmm, ok I will think about that...but when you say "..so that I can..." > do >> you mean your application or you as an individual? >> >> What I am getting at is, why not just send it to everyone? Why > cherry-pick >> individuals? >> >> EG; on one of my apps, I have, oh, all sorts of messages flying around, > but >> on each FE there is a timer running on the main menu and periodically it >> will go to see if there are any messages in the table which handles this >> sorta stuff. IF so, the user has a pop up with the option to Sleep for x >> mins (default to 15) before it reminds again. It will never go away until >> the user has read it, unless you (the originator) says it can time out. >> >> Sorta stuff...if you can get my drift. Don't need to send system > messages. >> It is handled with the app. >> >> Max >> >> >> >> -----Original Message----- >> From: dba-vb-bounces at databaseadvisors.com >> [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby >> Sent: 29 June 2009 17:28 >> To: Discussion concerning Visual Basic and related programming issues. >> Subject: Re: [dba-VB] Syslogs >> >> No, I want the Access workstations to log their IP address in a table as >> Access opens so that I can >> read who is available to send messages to. >> >> The limitation of this kind of code is that you have to know an IP > address. >> John W. Colby >> www.ColbyConsulting.com >> >> >> Max Wanadoo wrote: >>> Do you mean IP address without having to go to the other workstation. >>> >>> If you just want to know what the IP address is, use VNC or RealVNC then >> you >>> can just hover the mouse over the system tray icon and it will tell you >> the >>> ip address. >>> >>> Max >>> >>> >>> >>> -----Original Message----- >>> From: dba-vb-bounces at databaseadvisors.com >>> [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby >>> Sent: 29 June 2009 16:53 >>> To: Discussion concerning Visual Basic and related programming issues. >>> Subject: [dba-VB] Syslogs >>> >>> Hmm... >>> >>> Looks quite cool. >>> >>> My mind is a raging torrent, flooded with rivulets of thought cascading >> into >>> a waterfall of creative >>> alternatives. >>> >>> Now... how do we determine the IP address of every machine using an > Access >>> application on the local LAN? >>> >>> John W. Colby >>> www.ColbyConsulting.com >>> >>> >>> Susan Harkins wrote: >>>> <http://www.devx.com:80/vb/Article/42242/0/page/1> >>>> >>>> I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm > so >>>> proud... yet another ones passes safely to single author status. :) >>>> >>>> Susan H. >>>> >>>> _______________________________________________ >>>> dba-VB mailing list >>>> dba-VB at databaseadvisors.com >>>> http://databaseadvisors.com/mailman/listinfo/dba-vb >>>> http://www.databaseadvisors.com >>>> >>>> >>> _______________________________________________ >>> dba-VB mailing list >>> dba-VB at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/dba-vb >>> http://www.databaseadvisors.com >>> >>> _______________________________________________ >>> dba-VB mailing list >>> dba-VB at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/dba-vb >>> http://www.databaseadvisors.com >>> >>> >> _______________________________________________ >> dba-VB mailing list >> dba-VB at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/dba-vb >> http://www.databaseadvisors.com >> >> _______________________________________________ >> dba-VB mailing list >> dba-VB at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/dba-vb >> http://www.databaseadvisors.com >> >> > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From max.wanadoo at gmail.com Mon Jun 29 12:44:20 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 29 Jun 2009 18:44:20 +0100 Subject: [dba-VB] SPAM-LOW: Re: Syslogs In-Reply-To: <4A48FB7B.8030604@colbyconsulting.com> References: <4BB427CF4F6549BD96A293618675E1FE@SusanOne> <4A48E347.9090908@colbyconsulting.com> <4a48e982.1701d00a.388e.0b31@mx.google.com> <4A48EB8B.7090901@colbyconsulting.com> <4a48ed4e.0702d00a.3f5a.5e39@mx.google.com> <4A48F289.3040908@colbyconsulting.com> <4a48f557.0707d00a.73ff.1dd1@mx.google.com> <4A48FB7B.8030604@colbyconsulting.com> Message-ID: <4a48fd78.0508d00a.0641.ffff8f62@mx.google.com> Well, if you change your mind on the TIMER then you can take this route. I have been using it for 8 years now without any problem. I agree that it can be aggravating when typing code to have it "interrupt" but that is avoidable if you wanted. I will see what i can find out re identifying IP addresses. Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: 29 June 2009 18:36 To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] SPAM-LOW: Re: Syslogs Max, I know all this. I write classes, and those classes can raise events. Events are much like this thing of Gustavs, a message is sent and if someone gets it fine. That is often useful As an example, I cache frequently used data in class instances, one per record from the table. It would be nice to have a message that is sent to everyone in the database if anyone modifies the data in the cached table. But I don't want to have to continuously poll a table looking for a message. If a message is sent saying that the cached data changes, then I rebuild the cache. That is the kind of thing that this code could possibly add to an application, HOWEVER... everyone has to know the IP address of everyone else that is in the database. I have been looking for this kind of messaging thing for YEARS. John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > Yes, you are correct. > > But your options are (assuming you are going with the access table method) > is: > > a. you can identity 1 or more individuals via the user table and/or see who > is logged in, or ALL. > b. you can determine the timer frequency to avoid the problems you describe. > c. you can change the timer frequency programmatically if you need to send a > FLASH message and then turn it back to "normal speed" after. > d. you don't need to know any IP addresses or indeed any LAN info at all. > e. It all happens within Access under your program control. > f. User can respond, forward, take action etc. > g. you can check your Outline Emails. > h. you can call up any Office (or other) app, Word, excel etc (you know all > this anyway) > z. oh, and anything else that Access is capable of...the world (access > world, that is) is your oyster (or lobster, if you follow Alan's youtube) > > > > Max > > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: 29 June 2009 17:58 > To: Discussion concerning Visual Basic and related programming issues. > Subject: Re: [dba-VB] Syslogs > > > What I am getting at is, why not just send it to everyone? Why > cherry-pick individuals? > > This is an attempt to avoid the timer. I hate timers, though I use them in > a server application. > In a user application they cause screen blinking and also cause compile > errors for the developer if > the timer tries to execute code while you are typing in code. > > If I know the IP address of every PC that has an application running, I can > send a message to just > those PCs. But I have to know their IP addresses. > > If you are going to communicate through a table then this kind of code is > unnecessary, but then a > timer has to poll for messages in the table. YUK. > > John W. Colby > www.ColbyConsulting.com > > > Max Wanadoo wrote: >> Hmmm, ok I will think about that...but when you say "..so that I can..." > do >> you mean your application or you as an individual? >> >> What I am getting at is, why not just send it to everyone? Why > cherry-pick >> individuals? >> >> EG; on one of my apps, I have, oh, all sorts of messages flying around, > but >> on each FE there is a timer running on the main menu and periodically it >> will go to see if there are any messages in the table which handles this >> sorta stuff. IF so, the user has a pop up with the option to Sleep for x >> mins (default to 15) before it reminds again. It will never go away until >> the user has read it, unless you (the originator) says it can time out. >> >> Sorta stuff...if you can get my drift. Don't need to send system > messages. >> It is handled with the app. >> >> Max >> >> >> >> -----Original Message----- >> From: dba-vb-bounces at databaseadvisors.com >> [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby >> Sent: 29 June 2009 17:28 >> To: Discussion concerning Visual Basic and related programming issues. >> Subject: Re: [dba-VB] Syslogs >> >> No, I want the Access workstations to log their IP address in a table as >> Access opens so that I can >> read who is available to send messages to. >> >> The limitation of this kind of code is that you have to know an IP > address. >> John W. Colby >> www.ColbyConsulting.com >> >> >> Max Wanadoo wrote: >>> Do you mean IP address without having to go to the other workstation. >>> >>> If you just want to know what the IP address is, use VNC or RealVNC then >> you >>> can just hover the mouse over the system tray icon and it will tell you >> the >>> ip address. >>> >>> Max >>> >>> >>> >>> -----Original Message----- >>> From: dba-vb-bounces at databaseadvisors.com >>> [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby >>> Sent: 29 June 2009 16:53 >>> To: Discussion concerning Visual Basic and related programming issues. >>> Subject: [dba-VB] Syslogs >>> >>> Hmm... >>> >>> Looks quite cool. >>> >>> My mind is a raging torrent, flooded with rivulets of thought cascading >> into >>> a waterfall of creative >>> alternatives. >>> >>> Now... how do we determine the IP address of every machine using an > Access >>> application on the local LAN? >>> >>> John W. Colby >>> www.ColbyConsulting.com >>> >>> >>> Susan Harkins wrote: >>>> <http://www.devx.com:80/vb/Article/42242/0/page/1> >>>> >>>> I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm > so >>>> proud... yet another ones passes safely to single author status. :) >>>> >>>> Susan H. >>>> >>>> _______________________________________________ >>>> dba-VB mailing list >>>> dba-VB at databaseadvisors.com >>>> http://databaseadvisors.com/mailman/listinfo/dba-vb >>>> http://www.databaseadvisors.com >>>> >>>> >>> _______________________________________________ >>> dba-VB mailing list >>> dba-VB at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/dba-vb >>> http://www.databaseadvisors.com >>> >>> _______________________________________________ >>> dba-VB mailing list >>> dba-VB at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/dba-vb >>> http://www.databaseadvisors.com >>> >>> >> _______________________________________________ >> dba-VB mailing list >> dba-VB at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/dba-vb >> http://www.databaseadvisors.com >> >> _______________________________________________ >> dba-VB mailing list >> dba-VB at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/dba-vb >> http://www.databaseadvisors.com >> >> > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ 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 Jun 29 13:05:46 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 29 Jun 2009 14:05:46 -0400 Subject: [dba-VB] SPAM-LOW: Re: Syslogs In-Reply-To: <sa490e7e.066@cactus.dk> References: <sa490e7e.066@cactus.dk> Message-ID: <4A49027A.5000604@colbyconsulting.com> Gustav, As I mentioned, I have been looking for something like this for years, however everyone has to have a list of IPs that can be used with it to make it useful. I suppose I could kind of bootstrap this thing. The server address could be found by manual observation, then logged in a table along with the machine name. Each application FE instance looks and sends a message that it is logged in. The RECEIVER grabs the IP address and looks it up in the table. If not there it stores the IP in the table. Of course then the machine name has to be included in the message. I suppose that I could develop a message library, such that every time an application it fires a LOGIN message to everyone already in the table. The login message has a machine name as the data and apparently this widget automatically gets the IP address. My clients rarely have more than 25 or so workstations running the application so this shouldn't cause too much grief. Thus anyone listening logs the new person's data into the table if it isn't already there. Kind of crude but that allows any single running application (that you can manually get the IP for) to bootstrap the system and build the list of IPs and machine names. John W. Colby www.ColbyConsulting.com Gustav Brock wrote: > Hi John > > Well, you have to decide. If you wish to communicate, either the sender or the receiver has to identify itself. That drives anything on the Internet. > > And syslog is not broadcasting. If you wish to listen to any address on your local network or transmit to any address on the local network, you have to determine the address of your machine and the subnet mask and you can calculate all possible addresses. Note that network admins hate broadcasting applications as these are considered noisy. > If you wish to communicate in or out of your local network, again you must know "something" about the machine(s) out there and your router will take care of the rest (if it and the firewall allows). > > The reason Hamachi and the like works is because they initially use port 80 (which can be considered open on any office network) and an external proxy to establish communication - so sender and receiver can identify each other. Nothing black magic here. > > syslog is fun because it is so primitive. This makes it an universal tool with heavy limitations but with nearly zero use of resources. What has been missing is prebuilt methods to read and write the messages from/to a database - to make it useful for people like us. This is what and how the article describes. > > /gustav From jwcolby at colbyconsulting.com Mon Jun 29 13:11:06 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 29 Jun 2009 14:11:06 -0400 Subject: [dba-VB] Syslogs In-Reply-To: <4a48fa36.0a1ad00a.270f.343d@mx.google.com> References: <sa491131.067@cactus.dk> <4a48fa36.0a1ad00a.270f.343d@mx.google.com> Message-ID: <4A4903BA.3080406@colbyconsulting.com> Does this imply that the winsock control is not native to Access? John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > Yes that cured it. I used the one included with the download. > > The demo form seems to work, but I don't receive any msg at localhost > > Get back to you on the others. > > Max > > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: 29 June 2009 18:08 > To: dba-vb at databaseadvisors.com > Subject: Re: [dba-VB] Syslogs > > Hi Max > > The paragraph on page 1, "The WinSock Control", is for you. > You need both the license and the "compatibility". > > Thank you to MS and IE and the "Compatibility" flag. > > /gustav > > >>>> max.wanadoo at gmail.com 29-06-2009 18:51 >>> > Run it in A2007K and opened the Demo form to get this error: > > .Protocol = sckUDPProtocol > Run time error 438 > Object doesn't support this property or method. > > Max > > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: 29 June 2009 17:37 > To: dba-vb at databaseadvisors.com > Subject: Re: [dba-VB] Syslogs > > Hi Susan, Max et al > > This article: > > Create a Syslog Sender/Receiver Using the MS Winsock Control > > <quote> > With the Microsoft WinSock Control and a few coding tricks, you can use > Access as a high-performance syslog sender, receiver, and logger. > </quote> > > _is_ in VBA! I have no idea why it was put in the VB section. > > In fact, given the current "discussion" on Access 2007, it is just about the > only project I have made in Access 2007. > I started out with this several years ago with Access 97 for fun, but when I > recently got the chance to write and polish it up, I felt it had to be > finished in A2007. If Steve is looking for "fans of the ribbon", don't count > me in - I really looked for features or benefits of the ribbon but found > none, sorry. > > /gustav > > >>>> max.wanadoo at gmail.com 29-06-2009 18:14 >>> > Gustav, does this work under Access VBA? > > Max > > > -----Original Message----- > > Susan Harkins wrote: >> <http://www.devx.com:80/vb/Article/42242/0/page/1> >> >> I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so >> proud... yet another ones passes safely to single author status. :) >> >> Susan H. > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From max.wanadoo at gmail.com Mon Jun 29 13:16:51 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 29 Jun 2009 19:16:51 +0100 Subject: [dba-VB] Syslogs In-Reply-To: <4A4903BA.3080406@colbyconsulting.com> References: <sa491131.067@cactus.dk> <4a48fa36.0a1ad00a.270f.343d@mx.google.com> <4A4903BA.3080406@colbyconsulting.com> Message-ID: <4a490517.0506d00a.64c6.2364@mx.google.com> Hmmm, don't know..Gustav? It certainly required registering on my laptop with A2007K Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: 29 June 2009 19:11 To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Syslogs Does this imply that the winsock control is not native to Access? John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > Yes that cured it. I used the one included with the download. > > The demo form seems to work, but I don't receive any msg at localhost > > Get back to you on the others. > > Max > > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: 29 June 2009 18:08 > To: dba-vb at databaseadvisors.com > Subject: Re: [dba-VB] Syslogs > > Hi Max > > The paragraph on page 1, "The WinSock Control", is for you. > You need both the license and the "compatibility". > > Thank you to MS and IE and the "Compatibility" flag. > > /gustav > > >>>> max.wanadoo at gmail.com 29-06-2009 18:51 >>> > Run it in A2007K and opened the Demo form to get this error: > > .Protocol = sckUDPProtocol > Run time error 438 > Object doesn't support this property or method. > > Max > > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: 29 June 2009 17:37 > To: dba-vb at databaseadvisors.com > Subject: Re: [dba-VB] Syslogs > > Hi Susan, Max et al > > This article: > > Create a Syslog Sender/Receiver Using the MS Winsock Control > > <quote> > With the Microsoft WinSock Control and a few coding tricks, you can use > Access as a high-performance syslog sender, receiver, and logger. > </quote> > > _is_ in VBA! I have no idea why it was put in the VB section. > > In fact, given the current "discussion" on Access 2007, it is just about the > only project I have made in Access 2007. > I started out with this several years ago with Access 97 for fun, but when I > recently got the chance to write and polish it up, I felt it had to be > finished in A2007. If Steve is looking for "fans of the ribbon", don't count > me in - I really looked for features or benefits of the ribbon but found > none, sorry. > > /gustav > > >>>> max.wanadoo at gmail.com 29-06-2009 18:14 >>> > Gustav, does this work under Access VBA? > > Max > > > -----Original Message----- > > Susan Harkins wrote: >> <http://www.devx.com:80/vb/Article/42242/0/page/1> >> >> I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so >> proud... yet another ones passes safely to single author status. :) >> >> Susan H. > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From Gustav at cactus.dk Mon Jun 29 13:21:36 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 29 Jun 2009 20:21:36 +0200 Subject: [dba-VB] Syslogs Message-ID: <sa492274.073@cactus.dk> Hi John Join Max and read the article ... same paragraph. http://www.devx.com:80/vb/Article/42242/0/page/1 <quote> The actual transmission of syslog messages between your application and Windows is left to the WinSock Control, which came with Visual Basic 6 and some old versions of the Access Developer Tools. Further, you can download the control from several places, which include tools to correct a corrupted install. </quote> /gustav >>> jwcolby at colbyconsulting.com 29-06-2009 20:11 >>> Does this imply that the winsock control is not native to Access? John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > Yes that cured it. I used the one included with the download. > > The demo form seems to work, but I don't receive any msg at localhost > > Get back to you on the others. > > Max > > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: 29 June 2009 18:08 > To: dba-vb at databaseadvisors.com > Subject: Re: [dba-VB] Syslogs > > Hi Max > > The paragraph on page 1, "The WinSock Control", is for you. > You need both the license and the "compatibility". > > Thank you to MS and IE and the "Compatibility" flag. > > /gustav From shamil at smsconsulting.spb.ru Mon Jun 29 13:24:34 2009 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Mon, 29 Jun 2009 22:24:34 +0400 Subject: [dba-VB] SPAM-LOW: Re: Syslogs In-Reply-To: <4A49027A.5000604@colbyconsulting.com> References: <sa490e7e.066@cactus.dk> <4A49027A.5000604@colbyconsulting.com> Message-ID: <001001c9f8e6$dbc4e3d0$934eab70$@spb.ru> Hi John, What about Peer-To-Peer Networked Apps http://msdn.microsoft.com/en-us/magazine/cc301833.aspx ? Could that technology help to solve your task? - it doesn't need IP addresses known in advance... -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Monday, June 29, 2009 10:06 PM To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] SPAM-LOW: Re: Syslogs Gustav, As I mentioned, I have been looking for something like this for years, however everyone has to have a list of IPs that can be used with it to make it useful. I suppose I could kind of bootstrap this thing. The server address could be found by manual observation, then logged in a table along with the machine name. Each application FE instance looks and sends a message that it is logged in. The RECEIVER grabs the IP address and looks it up in the table. If not there it stores the IP in the table. Of course then the machine name has to be included in the message. I suppose that I could develop a message library, such that every time an application it fires a LOGIN message to everyone already in the table. The login message has a machine name as the data and apparently this widget automatically gets the IP address. My clients rarely have more than 25 or so workstations running the application so this shouldn't cause too much grief. Thus anyone listening logs the new person's data into the table if it isn't already there. Kind of crude but that allows any single running application (that you can manually get the IP for) to bootstrap the system and build the list of IPs and machine names. John W. Colby www.ColbyConsulting.com Gustav Brock wrote: > Hi John > > Well, you have to decide. If you wish to communicate, either the sender or the receiver has to identify itself. That drives anything on the Internet. > > And syslog is not broadcasting. If you wish to listen to any address on your local network or transmit to any address on the local network, you have to determine the address of your machine and the subnet mask and you can calculate all possible addresses. Note that network admins hate broadcasting applications as these are considered noisy. > If you wish to communicate in or out of your local network, again you must know "something" about the machine(s) out there and your router will take care of the rest (if it and the firewall allows). > > The reason Hamachi and the like works is because they initially use port 80 (which can be considered open on any office network) and an external proxy to establish communication - so sender and receiver can identify each other. Nothing black magic here. > > syslog is fun because it is so primitive. This makes it an universal tool with heavy limitations but with nearly zero use of resources. What has been missing is prebuilt methods to read and write the messages from/to a database - to make it useful for people like us. This is what and how the article describes. > > /gustav _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com __________ Information from ESET NOD32 Antivirus, version of virus signature database 4197 (20090629) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru __________ Information from ESET NOD32 Antivirus, version of virus signature database 4197 (20090629) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru From max.wanadoo at gmail.com Mon Jun 29 13:28:41 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 29 Jun 2009 19:28:41 +0100 Subject: [dba-VB] Syslogs In-Reply-To: <sa492274.073@cactus.dk> References: <sa492274.073@cactus.dk> Message-ID: <4a4907dc.1c07d00a.2f2c.1e5d@mx.google.com> So, John's question appears to have the answer "No, not to Access and not to Vista" It needs to be registered..am I correct? Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 29 June 2009 19:22 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Syslogs Hi John Join Max and read the article ... same paragraph. http://www.devx.com:80/vb/Article/42242/0/page/1 <quote> The actual transmission of syslog messages between your application and Windows is left to the WinSock Control, which came with Visual Basic 6 and some old versions of the Access Developer Tools. Further, you can download the control from several places, which include tools to correct a corrupted install. </quote> /gustav >>> jwcolby at colbyconsulting.com 29-06-2009 20:11 >>> Does this imply that the winsock control is not native to Access? John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > Yes that cured it. I used the one included with the download. > > The demo form seems to work, but I don't receive any msg at localhost > > Get back to you on the others. > > Max > > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: 29 June 2009 18:08 > To: dba-vb at databaseadvisors.com > Subject: Re: [dba-VB] Syslogs > > Hi Max > > The paragraph on page 1, "The WinSock Control", is for you. > You need both the license and the "compatibility". > > Thank you to MS and IE and the "Compatibility" flag. > > /gustav _______________________________________________ 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 Jun 29 13:34:34 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 29 Jun 2009 20:34:34 +0200 Subject: [dba-VB] Syslogs Message-ID: <sa492567.076@cactus.dk> Hi John As explained in the article on how to create a kind of confirmation system, you could set up a simple two-way system with a single syslog app broadcasting at low frequency "Here I am, and if you are an app from JC, record my address and report back". Your app, when running at the user, would pick up that message and send back a message for the syslog app to collect the addresses of currently running application copies. When a user signs off, after a time-out the syslog app realizes that this copy is off and removes it from the list. Thus, a current list of active applications can be maintained and they can communicate for whatever reason you decide. Note that communication between machines can really be done in many ways, it is just that syslog is an established standard for simple text messages of about 1K, and if that fits, why reinvent the wheel? /gustav >>> jwcolby at colbyconsulting.com 29-06-2009 20:05 >>> Gustav, As I mentioned, I have been looking for something like this for years, however everyone has to have a list of IPs that can be used with it to make it useful. I suppose I could kind of bootstrap this thing. The server address could be found by manual observation, then logged in a table along with the machine name. Each application FE instance looks and sends a message that it is logged in. The RECEIVER grabs the IP address and looks it up in the table. If not there it stores the IP in the table. Of course then the machine name has to be included in the message. I suppose that I could develop a message library, such that every time an application it fires a LOGIN message to everyone already in the table. The login message has a machine name as the data and apparently this widget automatically gets the IP address. My clients rarely have more than 25 or so workstations running the application so this shouldn't cause too much grief. Thus anyone listening logs the new person's data into the table if it isn't already there. Kind of crude but that allows any single running application (that you can manually get the IP for) to bootstrap the system and build the list of IPs and machine names. John W. Colby www.ColbyConsulting.com Gustav Brock wrote: > Hi John > > Well, you have to decide. If you wish to communicate, either the sender or the receiver has to identify itself. That drives anything on the Internet. > > And syslog is not broadcasting. If you wish to listen to any address on your local network or transmit to any address on the local network, you have to determine the address of your machine and the subnet mask and you can calculate all possible addresses. Note that network admins hate broadcasting applications as these are considered noisy. > If you wish to communicate in or out of your local network, again you must know "something" about the machine(s) out there and your router will take care of the rest (if it and the firewall allows). > > The reason Hamachi and the like works is because they initially use port 80 (which can be considered open on any office network) and an external proxy to establish communication - so sender and receiver can identify each other. Nothing black magic here. > > syslog is fun because it is so primitive. This makes it an universal tool with heavy limitations but with nearly zero use of resources. What has been missing is prebuilt methods to read and write the messages from/to a database - to make it useful for people like us. This is what and how the article describes. > > /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 Jun 29 13:41:03 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 29 Jun 2009 20:41:03 +0200 Subject: [dba-VB] Syslogs Message-ID: <sa4926ed.077@cactus.dk> Hi Max It is not native to Access as obtained in an Office suite, but as a developer having VB6 or the developer tools for Access (can't recall which version) you can distribute it freely with your application. If so, you will of course need some kind of installation routine as for any other OCX you wish to deploy. As mentioned, it is so widely spread that should you miss both VB6 or the developer tools for Access you can locate it for download several places. /gustav >>> max.wanadoo at gmail.com 29-06-2009 20:28 >>> So, John's question appears to have the answer "No, not to Access and not to Vista" It needs to be registered..am I correct? Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 29 June 2009 19:22 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Syslogs Hi John Join Max and read the article ... same paragraph. http://www.devx.com:80/vb/Article/42242/0/page/1 <quote> The actual transmission of syslog messages between your application and Windows is left to the WinSock Control, which came with Visual Basic 6 and some old versions of the Access Developer Tools. Further, you can download the control from several places, which include tools to correct a corrupted install. </quote> /gustav >>> jwcolby at colbyconsulting.com 29-06-2009 20:11 >>> Does this imply that the winsock control is not native to Access? John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > Yes that cured it. I used the one included with the download. > > The demo form seems to work, but I don't receive any msg at localhost > > Get back to you on the others. > > Max > > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: 29 June 2009 18:08 > To: dba-vb at databaseadvisors.com > Subject: Re: [dba-VB] Syslogs > > Hi Max > > The paragraph on page 1, "The WinSock Control", is for you. > You need both the license and the "compatibility". > > Thank you to MS and IE and the "Compatibility" flag. > > /gustav From max.wanadoo at gmail.com Mon Jun 29 13:45:00 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 29 Jun 2009 19:45:00 +0100 Subject: [dba-VB] Syslogs In-Reply-To: <sa4926ed.077@cactus.dk> References: <sa4926ed.077@cactus.dk> Message-ID: <4a490baf.1818d00a.3c7d.0281@mx.google.com> Thank you Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 29 June 2009 19:41 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Syslogs Hi Max It is not native to Access as obtained in an Office suite, but as a developer having VB6 or the developer tools for Access (can't recall which version) you can distribute it freely with your application. If so, you will of course need some kind of installation routine as for any other OCX you wish to deploy. As mentioned, it is so widely spread that should you miss both VB6 or the developer tools for Access you can locate it for download several places. /gustav >>> max.wanadoo at gmail.com 29-06-2009 20:28 >>> So, John's question appears to have the answer "No, not to Access and not to Vista" It needs to be registered..am I correct? Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 29 June 2009 19:22 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Syslogs Hi John Join Max and read the article ... same paragraph. http://www.devx.com:80/vb/Article/42242/0/page/1 <quote> The actual transmission of syslog messages between your application and Windows is left to the WinSock Control, which came with Visual Basic 6 and some old versions of the Access Developer Tools. Further, you can download the control from several places, which include tools to correct a corrupted install. </quote> /gustav >>> jwcolby at colbyconsulting.com 29-06-2009 20:11 >>> Does this imply that the winsock control is not native to Access? John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > Yes that cured it. I used the one included with the download. > > The demo form seems to work, but I don't receive any msg at localhost > > Get back to you on the others. > > Max > > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: 29 June 2009 18:08 > To: dba-vb at databaseadvisors.com > Subject: Re: [dba-VB] Syslogs > > Hi Max > > The paragraph on page 1, "The WinSock Control", is for you. > You need both the license and the "compatibility". > > Thank you to MS and IE and the "Compatibility" flag. > > /gustav _______________________________________________ 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 Jun 29 14:28:55 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 29 Jun 2009 15:28:55 -0400 Subject: [dba-VB] Syslogs In-Reply-To: <sa492274.073@cactus.dk> References: <sa492274.073@cactus.dk> Message-ID: <4A4915F7.8070202@colbyconsulting.com> Ahhhh.... John W. Colby www.ColbyConsulting.com Gustav Brock wrote: > Hi John > > Join Max and read the article ... same paragraph. > > http://www.devx.com:80/vb/Article/42242/0/page/1 > > <quote> > The actual transmission of syslog messages between your application and Windows is left to the WinSock Control, which came with Visual Basic 6 and some old versions of the Access Developer Tools. Further, you can download the control from several places, which include tools to correct a corrupted install. > </quote> > > /gustav > > >>>> jwcolby at colbyconsulting.com 29-06-2009 20:11 >>> > Does this imply that the winsock control is not native to Access? > > John W. Colby > www.ColbyConsulting.com > > > Max Wanadoo wrote: >> Yes that cured it. I used the one included with the download. >> >> The demo form seems to work, but I don't receive any msg at localhost >> >> Get back to you on the others. >> >> Max >> >> >> >> -----Original Message----- >> From: dba-vb-bounces at databaseadvisors.com >> [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock >> Sent: 29 June 2009 18:08 >> To: dba-vb at databaseadvisors.com >> Subject: Re: [dba-VB] Syslogs >> >> Hi Max >> >> The paragraph on page 1, "The WinSock Control", is for you. >> You need both the license and the "compatibility". >> >> Thank you to MS and IE and the "Compatibility" flag. >> >> /gustav > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From max.wanadoo at gmail.com Mon Jun 29 16:43:07 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 29 Jun 2009 22:43:07 +0100 Subject: [dba-VB] Ping IP In-Reply-To: <4A49027A.5000604@colbyconsulting.com> References: <sa490e7e.066@cactus.dk> <4A49027A.5000604@colbyconsulting.com> Message-ID: <4a49356f.1701d00a.11d7.2ecc@mx.google.com> John: Does this description sound what you need? Ping a range of IP numbers to find out what numbers are in use, or what numbers answer within the set time. Use it to find out what parts of your network are slower then others and maybe you even need to take a closer look at them. Adjustable time out, bytes to send, start and end node. Save the results of the sweep as csv and import them into a database. If so, go to http://www.freedownloadscenter.com/Network_and_Internet/Misc__Networking_Too ls/Ping_War.html Free as far as I can tell. Haven't used it. Max From stuart at lexacorp.com.pg Mon Jun 29 16:58:54 2009 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 30 Jun 2009 07:58:54 +1000 Subject: [dba-VB] Syslogs In-Reply-To: <4A48EDCB.50706@colbyconsulting.com> References: <sa490735.064@cactus.dk>, <4A48EDCB.50706@colbyconsulting.com> Message-ID: <4A49391E.21194.1853145A@stuart.lexacorp.com.pg> Here's a little VB/VBA class to handle Hostnames and IP Addresses. It works fine in Access (watch for line wrapping) clsResolve: Option Compare Database Option Explicit '// define constants Private Const IP_SUCCESS As Long = 0 Private Const SOCKET_ERROR As Long = -1 Private Const MAX_WSADescription As Long = 256 Private Const MAX_WSASYSStatus As Long = 128 Private Const MIN_SOCKETS_REQD As Long = 1 Private Const WS_VERSION_REQD As Long = &H101 Private Const WS_VERSION_MAJOR As Long = WS_VERSION_REQD \ &H100 And &HFF& Private Const WS_VERSION_MINOR As Long = WS_VERSION_REQD And &HFF& Private Const WSADescription_Len As Long = 256 Private Const WSASYS_Status_Len As Long = 128 Private Const AF_INET As Long = 2 '// structures Private Type HOSTENT hName As Long hAliases As Long hAddrType As Integer hLength As Integer hAddrList As Long End Type Private Type WSADATA wVersion As Integer wHighVersion As Integer szDescription(0 To MAX_WSADescription) As Byte szSystemStatus(0 To MAX_WSASYSStatus) As Byte wMaxSockets As Long wMaxUDPDG As Long dwVendorInfo As Long End Type '// api 'kernel32 Private Declare Sub apiCopyMemory Lib "kernel32" Alias "RtlMoveMemory" (xDest As Any, xSource As Any, ByVal nBytes As Long) Private Declare Function apiStrLen Lib "kernel32" Alias "lstrlenA" (lpString As Any) As Long 'wsock32 Private Declare Function apiGetHostByName Lib "wsock32.dll" Alias "gethostbyname" (ByVal hostname As String) As Long Private Declare Function apiWSAStartup Lib "wsock32.dll" Alias "WSAStartup" (ByVal wVersionRequired As Long, lpWSADATA As WSADATA) As Long Private Declare Function apiWSACleanup Lib "wsock32.dll" Alias "WSACleanup" () As Long Private Declare Function apiInetAddr Lib "wsock32.dll" Alias "inet_addr" (ByVal s As String) As Long Private Declare Function apiGetHostByAddr Lib "wsock32.dll" Alias "gethostbyaddr" (haddr As Long, ByVal hnlen As Long, ByVal addrtype As Long) As Long Private Declare Function apiGetHostName Lib "wsock32.dll" Alias "gethostname" (ByVal hostname$, ByVal HostLen As Integer) As Long '// private functions Private Function InitializeSocket() As Boolean Dim WSAD As WSADATA 'attempt to initialize the socket InitializeSocket = apiWSAStartup(WS_VERSION_REQD, WSAD) = IP_SUCCESS End Function Private Sub CloseSocket() 'try to close the socket If apiWSACleanup() <> 0 Then MsgBox "Error calling apiWSACleanup.", vbCritical End If End Sub Public Function GetIPFromHostName(ByVal sHostName As String) As String 'converts a host name to an IP address. Dim nBytes As Long Dim ptrHosent As Long Dim hstHost As HOSTENT Dim ptrName As Long Dim ptrAddress As Long Dim ptrIPAddress As Long Dim sAddress As String 'declare this as Dim sAddress(1) As String if you want 2 ip addresses returned 'try to initalize the socket If InitializeSocket() = True Then 'try to get the IP ptrHosent = apiGetHostByName(sHostName & vbNullChar) If ptrHosent <> 0 Then 'get the IP address apiCopyMemory hstHost, ByVal ptrHosent, LenB(hstHost) apiCopyMemory ptrIPAddress, ByVal hstHost.hAddrList, 4 'fill buffer sAddress = Space$(4) 'if you want multiple domains returned, 'fill all items in sAddress array with 4 spaces apiCopyMemory ByVal sAddress, ByVal ptrIPAddress, hstHost.hLength 'change this to 'CopyMemory ByVal sAddress(0), ByVal ptrIPAddress, hstHost.hLength 'if you want an array of ip addresses returned '(some domains have more than one ip address associated with it) 'get the IP address GetIPFromHostName = IPToText(sAddress) 'if you are using multiple addresses, you need IPToText(sAddress(0)) & "," & IPToText(sAddress(1)) 'etc End If Else MsgBox "Failed to open Socket." End If End Function Private Function IPToText(ByVal IPAddress As String) As String 'converts characters to numbers IPToText = CStr(Asc(IPAddress)) & "." & _ CStr(Asc(Mid$(IPAddress, 2, 1))) & "." & _ CStr(Asc(Mid$(IPAddress, 3, 1))) & "." & _ CStr(Asc(Mid$(IPAddress, 4, 1))) End Function Public Function GetHostNameFromIP(ByVal sIPAddress As String) As String Dim ptrHosent As Long Dim hAddress As Long Dim sHost As String Dim nBytes As Long 'try to open the socket If InitializeSocket() = True Then 'convert string address to long datatype hAddress = apiInetAddr(sIPAddress) 'check if an error ocucred If hAddress <> SOCKET_ERROR Then 'obtain a pointer to the HOSTENT structure 'that contains the name and address 'corresponding to the given network address. ptrHosent = apiGetHostByAddr(hAddress, 4, AF_INET) If ptrHosent <> 0 Then 'convert address and 'get resolved hostname apiCopyMemory ptrHosent, ByVal ptrHosent, 4 nBytes = apiStrLen(ByVal ptrHosent) If nBytes > 0 Then 'fill the IP address buffer sHost = Space$(nBytes) apiCopyMemory ByVal sHost, ByVal ptrHosent, nBytes GetHostNameFromIP = sHost End If Else MsgBox "Call to gethostbyaddr failed." End If 'close the socket CloseSocket Else MsgBox "Invalid IP address" End If Else MsgBox "Failed to open Socket" End If End Function Public Function GetMyHostName() As String 'Finds local HostName Dim strHostname As String Dim lngHostLen As Long 'try to initalize the socket If InitializeSocket() = True Then lngHostLen = 256 strHostname = Space$(lngHostLen) If apiGetHostName(strHostname, lngHostLen) = SOCKET_ERROR Then MsgBox "Windows Sockets error getting Host Name" Else strHostname = Trim$(strHostname) strHostname = Left$(strHostname, Len(strHostname) - 1) End If Else MsgBox "Failed to open Socket." End If GetMyHostName = strHostname End Function Public Function GetMyIPAddress() As String GetMyIPAddress = GetIPFromHostName(GetMyHostName) End Function Cheers, Stuart On 29 Jun 2009 at 12:37, jwcolby wrote: > LOL, but you still have to know your own IP address. We got into this one time, with Hamachi, VMs, > multiple NICS etc. it is difficult to determine what my own IP address is. > > John W. Colby > www.ColbyConsulting.com > > > Gustav Brock wrote: > > Hi John > > > > Ask the application to send you a syslog message! > > Then you can read the sender address or hostname. > > > > /gustav > > > > > >>>> jwcolby at colbyconsulting.com 29-06-2009 17:52 >>> > > Hmm... > > > > Looks quite cool. > > > > My mind is a raging torrent, flooded with rivulets of thought cascading into a waterfall of creative > > alternatives. > > > > Now... how do we determine the IP address of every machine using an Access application on the local LAN? > > > > John W. Colby > > www.ColbyConsulting.com > > > > > > Susan Harkins wrote: > >> <http://www.devx.com:80/vb/Article/42242/0/page/1> > >> > >> I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so > >> proud... yet another ones passes safely to single author status. :) > >> > >> Susan H. > > > > > > > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From stuart at lexacorp.com.pg Mon Jun 29 17:03:15 2009 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 30 Jun 2009 08:03:15 +1000 Subject: [dba-VB] Syslogs In-Reply-To: <4a4907dc.1c07d00a.2f2c.1e5d@mx.google.com> References: <sa492274.073@cactus.dk>, <4a4907dc.1c07d00a.2f2c.1e5d@mx.google.com> Message-ID: <4A493A23.19773.18570D48@stuart.lexacorp.com.pg> The Winsock control is a ActiveX interface to the system Winsock.dll and needs to be installed/registered on each machiine. That's why I never use the Winsock control, I use API calls instead - that way it just works without needing to instal anything. See the Class I've just posted for example. -- Stuart On 29 Jun 2009 at 19:28, Max Wanadoo wrote: > So, John's question appears to have the answer "No, not to Access and not to > Vista" > > It needs to be registered..am I correct? > > Max > > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: 29 June 2009 19:22 > To: dba-vb at databaseadvisors.com > Subject: Re: [dba-VB] Syslogs > > Hi John > > Join Max and read the article ... same paragraph. > > http://www.devx.com:80/vb/Article/42242/0/page/1 > > <quote> > The actual transmission of syslog messages between your application and > Windows is left to the WinSock Control, which came with Visual Basic 6 and > some old versions of the Access Developer Tools. Further, you can download > the control from several places, which include tools to correct a corrupted > install. > </quote> > > /gustav > > > >>> jwcolby at colbyconsulting.com 29-06-2009 20:11 >>> > Does this imply that the winsock control is not native to Access? > > John W. Colby > www.ColbyConsulting.com > > > Max Wanadoo wrote: > > Yes that cured it. I used the one included with the download. > > > > The demo form seems to work, but I don't receive any msg at localhost > > > > Get back to you on the others. > > > > Max > > > > > > > > -----Original Message----- > > From: dba-vb-bounces at databaseadvisors.com > > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > > Sent: 29 June 2009 18:08 > > To: dba-vb at databaseadvisors.com > > Subject: Re: [dba-VB] Syslogs > > > > Hi Max > > > > The paragraph on page 1, "The WinSock Control", is for you. > > You need both the license and the "compatibility". > > > > Thank you to MS and IE and the "Compatibility" flag. > > > > /gustav > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From max.wanadoo at gmail.com Tue Jun 30 03:36:28 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Tue, 30 Jun 2009 09:36:28 +0100 Subject: [dba-VB] Syslogs In-Reply-To: <cda8f54e0906300130p4a19b7f0gc99adb2cffc9e84d@mail.gmail.com> References: <sa490735.064@cactus.dk> <4A48EDCB.50706@colbyconsulting.com> <4A49391E.21194.1853145A@stuart.lexacorp.com.pg> <cda8f54e0906300130p4a19b7f0gc99adb2cffc9e84d@mail.gmail.com> Message-ID: <cda8f54e0906300136m7d729aaave8e5e09ae501a0a@mail.gmail.com> On Tue, Jun 30, 2009 at 9:30 AM, Max Wanadoo <max.wanadoo at gmail.com> wrote: > Stuart, > That works brilliantly on my system. > Thanks > Max > ps reposted because the previous reply bombed out with regard to size. > > > On Mon, Jun 29, 2009 at 10:58 PM, Stuart McLachlan <stuart at lexacorp.com.pg > > wrote: > >> Here's a little VB/VBA class to handle Hostnames and IP Addresses. >> It works fine in Access >> > From Gustav at cactus.dk Tue Jun 30 06:50:55 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 30 Jun 2009 13:50:55 +0200 Subject: [dba-VB] Syslogs Message-ID: <sa4a1857.085@cactus.dk> Hi John (and Max) If you download the code, a whole module is for resolving IP address and hostname. Nothing rocket science but refined for the purpose. It even features a static collection inspired by your sales talk on collections. The key function is this: <code> Private Function GetIPFromHostName( _ ByVal strHostname As String) _ As String ' Converts a host name to its IP address. ' ' If strHostname ' - is zero length, local IP address is returned. ' - is "localhost", IP address 127.0.0.1 is returned. ' - cannot be resolved, unknown IP address 0.0.0.0 is returned. Const clngAddressNone As Long = 0 ' The Address is offset 12 bytes from the ' start of the HOSENT structure. Const clngAddressOffset As Long = 12 ' Size of address part. Const clngAddressChunk As Long = 4 ' Address to return if none found. Const cstrAddressZero As String = "0.0.0.0" ' Address of HOSENT structure. Dim ptrHosent As Long ' Address of name pointer. Dim ptrName As Long ' Address of address pointer. Dim ptrAddress As Long Dim ptrIPAddress As Long Dim ptrIPAddress2 As Long Dim stzHostName As String Dim strAddress As String stzHostName = strHostname & vbNullChar ptrHosent = GetHostByName(stzHostName) If ptrHosent = clngAddressNone Then ' Return address zero. strAddress = cstrAddressZero Else ' Assign pointer addresses and offset Null-terminated list ' of addresses for the host. ' Note: ' We are retrieving only the first address returned. ' To return more than one, define strAddress as a string array ' and loop through the 4-byte ptrIPAddress members returned. ' The last item is a terminating null. ' All addresses are returned in network byte order. ptrAddress = ptrHosent + clngAddressOffset ' Get the IP address. CopyMemory ptrAddress, ByVal ptrAddress, clngAddressChunk CopyMemory ptrIPAddress, ByVal ptrAddress, clngAddressChunk CopyMemory ptrIPAddress2, ByVal ptrIPAddress, clngAddressChunk strAddress = GetInetStrFromPtr(ptrIPAddress2) End If GetIPFromHostName = strAddress End Function </code> Problem is that you may have more than one adapter. As stated, this function lists only one which typically is the NIC for your LAN. Another function reads this out: <code> Public Function MachineHostAddress( _ Optional ByVal strHostname As String) _ As String ' Retrieves IP address of the machine with the host name ' strHostname. ' If a zero length host name or no host name is passed, the ' address of this machine is returned. ' If host name localhost is passed, 127.0.0.1 is returned. ' If the host name cannot be resolved, 0.0.0.0 is returned. ' ' The host addresses are preserved in a static collection to ' reduce look up time for repeated calls. ' If strHostname is an empty string, the local host address ' will be looked up. ' However, an empty string cannot be a key in a collection. ' Use this key to store the local host address. Const cstrKeyThisHost As String = " " Static colAddress As New Collection Dim strIpAddress As String ' Ignore error when looking up a key in collection ' colAddress that does not exist. On Error Resume Next If Len(strHostname) = 0 Then strHostname = cstrKeyThisHost End If strIpAddress = colAddress.Item(strHostname) ' If strHostname is not found, an error is raised. If Err.Number <> 0 Then ' This host name has not been looked up previously. If WinSocketsStart() = True Then ' Obtain the host address. ' Trim strHostname to pass a zero length string when ' looking up the address of the local host. strIpAddress = GetIPFromHostName(Trim(strHostname)) ' Store the host address. colAddress.Add strIpAddress, strHostname Call WinSocketsClean End If End If MachineHostAddress = strIpAddress End Function </code> For the helper functions, download the full code. However, no function is included to reveal the subnet mask. The only "human" method I can locate for this purpose is to look up the registry: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces Browse these for the key DhcpIPAddress - or, if this is not found, IPAddress - to locate the interface that matches the IP address you retrieved. When matched, look up the key DhcpSubnetMask - or SubnetMask - to obtain the current subnet mask. Armed with this - your IP address and subnet mask - you can easily calculate the list of possible IP address on the current LAN. /gustav >>> Gustav at cactus.dk 29-06-2009 20:34 >>> Hi John As explained in the article on how to create a kind of confirmation system, you could set up a simple two-way system with a single syslog app broadcasting at low frequency "Here I am, and if you are an app from JC, record my address and report back". Your app, when running at the user, would pick up that message and send back a message for the syslog app to collect the addresses of currently running application copies. When a user signs off, after a time-out the syslog app realizes that this copy is off and removes it from the list. Thus, a current list of active applications can be maintained and they can communicate for whatever reason you decide. Note that communication between machines can really be done in many ways, it is just that syslog is an established standard for simple text messages of about 1K, and if that fits, why reinvent the wheel? /gustav >>> jwcolby at colbyconsulting.com 29-06-2009 20:05 >>> Gustav, As I mentioned, I have been looking for something like this for years, however everyone has to have a list of IPs that can be used with it to make it useful. I suppose I could kind of bootstrap this thing. The server address could be found by manual observation, then logged in a table along with the machine name. Each application FE instance looks and sends a message that it is logged in. The RECEIVER grabs the IP address and looks it up in the table. If not there it stores the IP in the table. Of course then the machine name has to be included in the message. I suppose that I could develop a message library, such that every time an application it fires a LOGIN message to everyone already in the table. The login message has a machine name as the data and apparently this widget automatically gets the IP address. My clients rarely have more than 25 or so workstations running the application so this shouldn't cause too much grief. Thus anyone listening logs the new person's data into the table if it isn't already there. Kind of crude but that allows any single running application (that you can manually get the IP for) to bootstrap the system and build the list of IPs and machine names. John W. Colby www.ColbyConsulting.com From jwcolby at colbyconsulting.com Tue Jun 30 06:59:11 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 30 Jun 2009 07:59:11 -0400 Subject: [dba-VB] SPAM-LOW: Re: Syslogs In-Reply-To: <sa4a1857.085@cactus.dk> References: <sa4a1857.085@cactus.dk> Message-ID: <4A49FE0F.9060806@colbyconsulting.com> ROTFL. Me? SALES? Bite your tongue you scalliwag. John W. Colby www.ColbyConsulting.com Gustav Brock wrote: > Hi John (and Max) > > If you download the code, a whole module is for resolving IP address and hostname. Nothing rocket science but refined for the purpose. > It even features a static collection inspired by your sales talk on collections. > > The key function is this: > > <code> > Private Function GetIPFromHostName( _ > ByVal strHostname As String) _ > As String > > ' Converts a host name to its IP address. > ' > ' If strHostname > ' - is zero length, local IP address is returned. > ' - is "localhost", IP address 127.0.0.1 is returned. > ' - cannot be resolved, unknown IP address 0.0.0.0 is returned. > > Const clngAddressNone As Long = 0 > ' The Address is offset 12 bytes from the > ' start of the HOSENT structure. > Const clngAddressOffset As Long = 12 > ' Size of address part. > Const clngAddressChunk As Long = 4 > ' Address to return if none found. > Const cstrAddressZero As String = "0.0.0.0" > > ' Address of HOSENT structure. > Dim ptrHosent As Long > ' Address of name pointer. > Dim ptrName As Long > ' Address of address pointer. > Dim ptrAddress As Long > Dim ptrIPAddress As Long > Dim ptrIPAddress2 As Long > Dim stzHostName As String > Dim strAddress As String > > stzHostName = strHostname & vbNullChar > ptrHosent = GetHostByName(stzHostName) > > If ptrHosent = clngAddressNone Then > ' Return address zero. > strAddress = cstrAddressZero > Else > ' Assign pointer addresses and offset Null-terminated list > ' of addresses for the host. > ' Note: > ' We are retrieving only the first address returned. > ' To return more than one, define strAddress as a string array > ' and loop through the 4-byte ptrIPAddress members returned. > ' The last item is a terminating null. > ' All addresses are returned in network byte order. > ptrAddress = ptrHosent + clngAddressOffset > > ' Get the IP address. > CopyMemory ptrAddress, ByVal ptrAddress, clngAddressChunk > CopyMemory ptrIPAddress, ByVal ptrAddress, clngAddressChunk > CopyMemory ptrIPAddress2, ByVal ptrIPAddress, clngAddressChunk > > strAddress = GetInetStrFromPtr(ptrIPAddress2) > End If > > GetIPFromHostName = strAddress > > End Function > </code> > > Problem is that you may have more than one adapter. As stated, this function lists only one which typically is the NIC for your LAN. > Another function reads this out: > > <code> > Public Function MachineHostAddress( _ > Optional ByVal strHostname As String) _ > As String > > ' Retrieves IP address of the machine with the host name > ' strHostname. > ' If a zero length host name or no host name is passed, the > ' address of this machine is returned. > ' If host name localhost is passed, 127.0.0.1 is returned. > ' If the host name cannot be resolved, 0.0.0.0 is returned. > ' > ' The host addresses are preserved in a static collection to > ' reduce look up time for repeated calls. > > ' If strHostname is an empty string, the local host address > ' will be looked up. > ' However, an empty string cannot be a key in a collection. > ' Use this key to store the local host address. > Const cstrKeyThisHost As String = " " > > Static colAddress As New Collection > > Dim strIpAddress As String > > ' Ignore error when looking up a key in collection > ' colAddress that does not exist. > On Error Resume Next > > If Len(strHostname) = 0 Then > strHostname = cstrKeyThisHost > End If > strIpAddress = colAddress.Item(strHostname) > ' If strHostname is not found, an error is raised. > If Err.Number <> 0 Then > ' This host name has not been looked up previously. > If WinSocketsStart() = True Then > ' Obtain the host address. > ' Trim strHostname to pass a zero length string when > ' looking up the address of the local host. > strIpAddress = GetIPFromHostName(Trim(strHostname)) > ' Store the host address. > colAddress.Add strIpAddress, strHostname > > Call WinSocketsClean > End If > End If > > MachineHostAddress = strIpAddress > > End Function > </code> > > For the helper functions, download the full code. > > However, no function is included to reveal the subnet mask. The only "human" method I can locate for this purpose is to look up the registry: > > HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces > > Browse these for the key DhcpIPAddress - or, if this is not found, IPAddress - to locate the interface that matches the IP address you retrieved. > When matched, look up the key DhcpSubnetMask - or SubnetMask - to obtain the current subnet mask. > > Armed with this - your IP address and subnet mask - you can easily calculate the list of possible IP address on the current LAN. > > /gustav > > >>>> Gustav at cactus.dk 29-06-2009 20:34 >>> > Hi John > > As explained in the article on how to create a kind of confirmation system, you could set up a simple two-way system with a single syslog app broadcasting at low frequency "Here I am, and if you are an app from JC, record my address and report back". Your app, when running at the user, would pick up that message and send back a message for the syslog app to collect the addresses of currently running application copies. When a user signs off, after a time-out the syslog app realizes that this copy is off and removes it from the list. Thus, a current list of active applications can be maintained and they can communicate for whatever reason you decide. > > Note that communication between machines can really be done in many ways, it is just that syslog is an established standard for simple text messages of about 1K, and if that fits, why reinvent the wheel? > > /gustav > > >>>> jwcolby at colbyconsulting.com 29-06-2009 20:05 >>> > Gustav, > > As I mentioned, I have been looking for something like this for years, however everyone has to have > a list of IPs that can be used with it to make it useful. > > I suppose I could kind of bootstrap this thing. The server address could be found by manual > observation, then logged in a table along with the machine name. Each application FE instance looks > and sends a message that it is logged in. The RECEIVER grabs the IP address and looks it up in the > table. If not there it stores the IP in the table. Of course then the machine name has to be > included in the message. > > I suppose that I could develop a message library, such that every time an application it fires a > LOGIN message to everyone already in the table. The login message has a machine name as the data > and apparently this widget automatically gets the IP address. My clients rarely have more than 25 > or so workstations running the application so this shouldn't cause too much grief. Thus anyone > listening logs the new person's data into the table if it isn't already there. > > Kind of crude but that allows any single running application (that you can manually get the IP for) > to bootstrap the system and build the list of IPs and machine names. > > John W. Colby > www.ColbyConsulting.com > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From stuart at lexacorp.com.pg Tue Jun 30 08:02:07 2009 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 30 Jun 2009 23:02:07 +1000 Subject: [dba-VB] Syslogs In-Reply-To: <sa4a1857.085@cactus.dk> References: <sa4a1857.085@cactus.dk> Message-ID: <4A4A0CCF.5521.1B8DFD71@stuart.lexacorp.com.pg> On 30 Jun 2009 at 13:50, Gustav Brock wrote: > However, no function is included to reveal the subnet mask. The only "human" method I >can locate for this purpose is to look up the registry: I just found another API call which returns more info including the SubNet mask(s) so I've modified clsResolve to include GetMyIPMask: Option Compare Database Option Explicit '// define constants Private Const IP_SUCCESS As Long = 0 Private Const SOCKET_ERROR As Long = -1 Private Const MAX_WSADescription As Long = 256 Private Const MAX_WSASYSStatus As Long = 128 Private Const MIN_SOCKETS_REQD As Long = 1 Private Const WS_VERSION_REQD As Long = &H101 Private Const WS_VERSION_MAJOR As Long = WS_VERSION_REQD \ &H100 And &HFF& Private Const WS_VERSION_MINOR As Long = WS_VERSION_REQD And &HFF& Private Const WSADescription_Len As Long = 256 Private Const WSASYS_Status_Len As Long = 128 Private Const AF_INET As Long = 2 '// structures Private Type HOSTENT hName As Long hAliases As Long hAddrType As Integer hLength As Integer hAddrList As Long End Type Private Type WSADATA wVersion As Integer wHighVersion As Integer szDescription(0 To MAX_WSADescription) As Byte szSystemStatus(0 To MAX_WSASYSStatus) As Byte wMaxSockets As Long wMaxUDPDG As Long dwVendorInfo As Long End Type Private Type IPINFO dwAddr As Long ' IP address dwIndex As Long ' interface index dwMask As Long ' subnet mask dwBCastAddr As Long ' broadcast address dwReasmSize As Long ' assembly size unused1 As Integer ' not currently used unused2 As Integer '; not currently used End Type Private Type MIB_IPADDRTABLE dEntrys As Long 'number of entries in the table mIPInfo(5) As IPINFO 'array of IP address entries assumes maximum of 5 Interfaces End Type Private Type IP_Array mBuffer As MIB_IPADDRTABLE BufferLen As Long End Type '// api 'kernel32 Private Declare Sub apiCopyMemory Lib "kernel32" Alias "RtlMoveMemory" (xDest As Any, xSource As Any, ByVal nBytes As Long) Private Declare Function apiStrLen Lib "kernel32" Alias "lstrlenA" (lpString As Any) As Long 'wsock32 Private Declare Function apiGetHostByName Lib "wsock32.dll" Alias "gethostbyname" (ByVal hostname As String) As Long Private Declare Function apiWSAStartup Lib "wsock32.dll" Alias "WSAStartup" (ByVal wVersionRequired As Long, lpWSADATA As WSADATA) As Long Private Declare Function apiWSACleanup Lib "wsock32.dll" Alias "WSACleanup" () As Long Private Declare Function apiInetAddr Lib "wsock32.dll" Alias "inet_addr" (ByVal s As String) As Long Private Declare Function apiGetHostByAddr Lib "wsock32.dll" Alias "gethostbyaddr" (haddr As Long, ByVal hnlen As Long, ByVal addrtype As Long) As Long Private Declare Function apiGetHostName Lib "wsock32.dll" Alias "gethostname" (ByVal hostname$, ByVal HostLen As Integer) As Long 'IPHlpAPI Private Declare Function GetIpAddrTable Lib "IPHlpApi" (pIPAdrTable As Byte, pdwSize As Long, ByVal Sort As Long) As Long '// private functions Private Function InitializeSocket() As Boolean Dim WSAD As WSADATA 'attempt to initialize the socket InitializeSocket = apiWSAStartup(WS_VERSION_REQD, WSAD) = IP_SUCCESS End Function Private Sub CloseSocket() 'try to close the socket If apiWSACleanup() <> 0 Then MsgBox "Error calling apiWSACleanup.", vbCritical End If End Sub Public Function GetIPFromHostName(ByVal sHostName As String) As String 'converts a host name to an IP address. Dim nBytes As Long Dim ptrHosent As Long Dim hstHost As HOSTENT Dim ptrName As Long Dim ptrAddress As Long Dim ptrIPAddress As Long Dim sAddress As String 'declare this as Dim sAddress(1) As String if you want 2 ip addresses returned 'try to initalize the socket If InitializeSocket() = True Then 'try to get the IP ptrHosent = apiGetHostByName(sHostName & vbNullChar) If ptrHosent <> 0 Then 'get the IP address apiCopyMemory hstHost, ByVal ptrHosent, LenB(hstHost) apiCopyMemory ptrIPAddress, ByVal hstHost.hAddrList, 4 'fill buffer sAddress = Space$(4) 'if you want multiple domains returned, 'fill all items in sAddress array with 4 spaces apiCopyMemory ByVal sAddress, ByVal ptrIPAddress, hstHost.hLength 'change this to 'CopyMemory ByVal sAddress(0), ByVal ptrIPAddress, hstHost.hLength 'if you want an array of ip addresses returned '(some domains have more than one ip address associated with it) 'get the IP address GetIPFromHostName = IPToText(sAddress) 'if you are using multiple addresses, you need IPToText(sAddress(0)) & "," & IPToText(sAddress(1)) 'etc End If Else MsgBox "Failed to open Socket." End If End Function Private Function IPToText(ByVal IPAddress As String) As String 'converts characters to numbers IPToText = CStr(Asc(IPAddress)) & "." & _ CStr(Asc(Mid$(IPAddress, 2, 1))) & "." & _ CStr(Asc(Mid$(IPAddress, 3, 1))) & "." & _ CStr(Asc(Mid$(IPAddress, 4, 1))) End Function Private Function ConvertAddressToString(longAddr As Long) As String Dim myByte(3) As Byte Dim Cnt As Long CopyMemory myByte(0), longAddr, 4 For Cnt = 0 To 3 ConvertAddressToString = ConvertAddressToString + CStr(myByte(Cnt)) + "." Next Cnt ConvertAddressToString = Left$(ConvertAddressToString, Len(ConvertAddressToString) - 1) End Function Public Function GetHostNameFromIP(ByVal sIPAddress As String) As String Dim ptrHosent As Long Dim hAddress As Long Dim sHost As String Dim nBytes As Long 'try to open the socket If InitializeSocket() = True Then 'convert string address to long datatype hAddress = apiInetAddr(sIPAddress) 'check if an error ocucred If hAddress <> SOCKET_ERROR Then 'obtain a pointer to the HOSTENT structure 'that contains the name and address 'corresponding to the given network address. ptrHosent = apiGetHostByAddr(hAddress, 4, AF_INET) If ptrHosent <> 0 Then 'convert address and 'get resolved hostname apiCopyMemory ptrHosent, ByVal ptrHosent, 4 nBytes = apiStrLen(ByVal ptrHosent) If nBytes > 0 Then 'fill the IP address buffer sHost = Space$(nBytes) apiCopyMemory ByVal sHost, ByVal ptrHosent, nBytes GetHostNameFromIP = sHost End If Else MsgBox "Call to gethostbyaddr failed." End If 'close the socket CloseSocket Else MsgBox "Invalid IP address" End If Else MsgBox "Failed to open Socket" End If End Function Public Function GetMyHostName() As String 'Finds local HostName Dim strHostname As String Dim lngHostLen As Long 'try to initalize the socket If InitializeSocket() = True Then lngHostLen = 256 strHostname = Space$(lngHostLen) If apiGetHostName(strHostname, lngHostLen) = SOCKET_ERROR Then MsgBox "Windows Sockets error getting Host Name" Else strHostname = Trim$(strHostname) strHostname = Left$(strHostname, Len(strHostname) - 1) End If Else MsgBox "Failed to open Socket." End If GetMyHostName = strHostname End Function Public Function GetMyIPAddress() As String GetMyIPAddress = GetIPFromHostName(GetMyHostName) End Function Public Function GetMyIPMask() Dim Ret As Long Dim bBytes() As Byte Dim tel As Long Dim Listing As MIB_IPADDRTABLE On Error GoTo END1 GetIpAddrTable ByVal 0&, Ret, True If Ret <= 0 Then Exit Function ReDim bBytes(0 To Ret - 1) As Byte 'retrieve the data GetIpAddrTable bBytes(0), Ret, False 'Get the first 4 bytes to get the entry's.. ip installed CopyMemory Listing.dEntrys, bBytes(0), 4 'Copy whole structure to Listing and return for Adapter 1 (Adapter 0 = Loopback) CopyMemory Listing.mIPInfo(1), bBytes(4 + (Len(Listing.mIPInfo(0)))), Len(Listing.mIPInfo(1)) GetIPMask = ConvertAddressToString(Listing.mIPInfo(1).dwMask) Exit Function END1: MsgBox "Error Resolving Subnet Mask" End Function From DWUTKA at Marlow.com Tue Jun 30 11:28:48 2009 From: DWUTKA at Marlow.com (Drew Wutka) Date: Tue, 30 Jun 2009 11:28:48 -0500 Subject: [dba-VB] Syslogs In-Reply-To: <4A48EDCB.50706@colbyconsulting.com> References: <sa490735.064@cactus.dk> <4A48EDCB.50706@colbyconsulting.com> Message-ID: <A5615CBECEC42E4791D7A7C724E1E9B2024478C6@MIEXCH.Marlow.ii-vi.net> There are several ways to get your IP address. Two I've used is to use a Winsock control, and look at the local host IP. Another relatively easy way is to dump the results of IPCONFIG to a text file. Create a .bat file (call it iptest.bat) and put the following line in it: Ipconfig >C:\ip.txt Then using ShellWait (http://mvps.org/access/api/api0004.htm) Use this function: Function IPAddresses() As String Dim f As Long Dim strTemp As String Dim strArray() As String If Dir("C:\ip.txt") <> "" Then Kill "C:\ip.txt" ShellWait "C:\iptest.bat" f = FreeFile Open "C:\ip.txt" For Binary Access Read As f strTemp = Space(LOF(f)) Get f, , strTemp Close f strArray = Split(strTemp, vbCrLf) strTemp = "" For f = 0 To UBound(strArray) If InStr(1, strArray(f), "IPv4", vbTextCompare) > 0 Or InStr(1, strArray(f), " IP Address", vbTextCompare) > 0 Then strTemp = strTemp & Trim(Mid(strArray(f), InStr(1, strArray(f), ":", vbBinaryCompare) + 1)) & ";" End If Next f If Len(strTemp) > 0 Then strTemp = Left(strTemp, Len(strTemp) - 1) IPAddresses = strTemp End Function Whalla, IPAddresses will return as a semicolon delimited string. (Obviously you could return an array or create a collection too...either way....) Drew -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Monday, June 29, 2009 11:38 AM To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Syslogs LOL, but you still have to know your own IP address. We got into this one time, with Hamachi, VMs, multiple NICS etc. it is difficult to determine what my own IP address is. John W. Colby www.ColbyConsulting.com Gustav Brock wrote: > Hi John > > Ask the application to send you a syslog message! > Then you can read the sender address or hostname. > > /gustav > > >>>> jwcolby at colbyconsulting.com 29-06-2009 17:52 >>> > Hmm... > > Looks quite cool. > > My mind is a raging torrent, flooded with rivulets of thought cascading into a waterfall of creative > alternatives. > > Now... how do we determine the IP address of every machine using an Access application on the local LAN? > > John W. Colby > www.ColbyConsulting.com > > > Susan Harkins wrote: >> <http://www.devx.com:80/vb/Article/42242/0/page/1> >> >> I'm so proud... ;) <sniff> Notice, my name is NOT in the byline... I'm so >> proud... yet another ones passes safely to single author status. :) >> >> Susan H. > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From jwcolby at colbyconsulting.com Tue Jun 30 11:43:40 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 30 Jun 2009 12:43:40 -0400 Subject: [dba-VB] Syslogs In-Reply-To: <A5615CBECEC42E4791D7A7C724E1E9B2024478C6@MIEXCH.Marlow.ii-vi.net> References: <sa490735.064@cactus.dk> <4A48EDCB.50706@colbyconsulting.com> <A5615CBECEC42E4791D7A7C724E1E9B2024478C6@MIEXCH.Marlow.ii-vi.net> Message-ID: <4A4A40BC.6060905@colbyconsulting.com> Yes, but then you have to do more. IPConfig shows several IP addresses on my work laptop. One is the wireless, which only works when in range of a wireless network, one is a physical NIC, and one is a Hamachi IP. There could be even more. On my server I have two physical NICS and in theory each could have asked for an IP address. So would the REAL IP address please stand up. John W. Colby www.ColbyConsulting.com Drew Wutka wrote: > There are several ways to get your IP address. Two I've used is to use > a Winsock control, and look at the local host IP. > > Another relatively easy way is to dump the results of IPCONFIG to a text > file. > > Create a .bat file (call it iptest.bat) and put the following line in > it: > > Ipconfig >C:\ip.txt > > Then using ShellWait (http://mvps.org/access/api/api0004.htm) > > Use this function: > > Function IPAddresses() As String > Dim f As Long > Dim strTemp As String > Dim strArray() As String > If Dir("C:\ip.txt") <> "" Then Kill "C:\ip.txt" > ShellWait "C:\iptest.bat" > f = FreeFile > Open "C:\ip.txt" For Binary Access Read As f > strTemp = Space(LOF(f)) > Get f, , strTemp > Close f > strArray = Split(strTemp, vbCrLf) > strTemp = "" > For f = 0 To UBound(strArray) > If InStr(1, strArray(f), "IPv4", vbTextCompare) > 0 Or InStr(1, > strArray(f), " IP Address", vbTextCompare) > 0 Then > strTemp = strTemp & Trim(Mid(strArray(f), InStr(1, strArray(f), > ":", vbBinaryCompare) + 1)) & ";" > End If > Next f > If Len(strTemp) > 0 Then strTemp = Left(strTemp, Len(strTemp) - 1) > IPAddresses = strTemp > End Function > > Whalla, IPAddresses will return as a semicolon delimited string. > (Obviously you could return an array or create a collection too...either > way....) > > Drew From DWUTKA at Marlow.com Tue Jun 30 11:44:05 2009 From: DWUTKA at Marlow.com (Drew Wutka) Date: Tue, 30 Jun 2009 11:44:05 -0500 Subject: [dba-VB] Messaging For JWC WAS: Syslogs In-Reply-To: <4A49027A.5000604@colbyconsulting.com> References: <sa490e7e.066@cactus.dk> <4A49027A.5000604@colbyconsulting.com> Message-ID: <A5615CBECEC42E4791D7A7C724E1E9B2024478C9@MIEXCH.Marlow.ii-vi.net> Is this something you really want? It would be pretty simple to create an OCX that you could have on a hidden form, that would 'see' all running instances of your application, and be able to 'communicate' to them. There is one quirk. It'll work on a standard network. However, if your network is subnetted, it would only 'see' what's in the local subnet (because the best way to do this is to send out a broadcast 'hello' and 'goodbye' message). To work with a subnetted network, you'd have to come up with a 'server/client' scenario, so the server would see all the connected users (sort of like a custom DNS server). If you aren't worried about a subnetted network, let me know, I am pretty sure I can whip up an OCX to do what you want. Drew -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Monday, June 29, 2009 1:06 PM To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] SPAM-LOW: Re: Syslogs Gustav, As I mentioned, I have been looking for something like this for years, however everyone has to have a list of IPs that can be used with it to make it useful. I suppose I could kind of bootstrap this thing. The server address could be found by manual observation, then logged in a table along with the machine name. Each application FE instance looks and sends a message that it is logged in. The RECEIVER grabs the IP address and looks it up in the table. If not there it stores the IP in the table. Of course then the machine name has to be included in the message. I suppose that I could develop a message library, such that every time an application it fires a LOGIN message to everyone already in the table. The login message has a machine name as the data and apparently this widget automatically gets the IP address. My clients rarely have more than 25 or so workstations running the application so this shouldn't cause too much grief. Thus anyone listening logs the new person's data into the table if it isn't already there. Kind of crude but that allows any single running application (that you can manually get the IP for) to bootstrap the system and build the list of IPs and machine names. John W. Colby www.ColbyConsulting.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From DWUTKA at Marlow.com Tue Jun 30 11:49:15 2009 From: DWUTKA at Marlow.com (Drew Wutka) Date: Tue, 30 Jun 2009 11:49:15 -0500 Subject: [dba-VB] Syslogs In-Reply-To: <4A4A40BC.6060905@colbyconsulting.com> References: <sa490735.064@cactus.dk> <4A48EDCB.50706@colbyconsulting.com><A5615CBECEC42E4791D7A7C724E1E9B2024478C6@MIEXCH.Marlow.ii-vi.net> <4A4A40BC.6060905@colbyconsulting.com> Message-ID: <A5615CBECEC42E4791D7A7C724E1E9B2024478CA@MIEXCH.Marlow.ii-vi.net> Actually, if you have an IP address, it is real. It then gets into what it is used for. For example, with your wireless, if it's not connected, it won't have an IP address. If a standard NIC is not connected, it will show no address. If it IS connected, but not receiving an IP address, it will default to a (I think) 169 something, which is a hard coded address, which means nothing. You can also have internal addresses such as 127.0.0.1, which is a loopback to your local machine. (so if you are running a website, putting in http://127.0.0.1 on the server will give you the local website). Drew -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, June 30, 2009 11:44 AM To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Syslogs Yes, but then you have to do more. IPConfig shows several IP addresses on my work laptop. One is the wireless, which only works when in range of a wireless network, one is a physical NIC, and one is a Hamachi IP. There could be even more. On my server I have two physical NICS and in theory each could have asked for an IP address. So would the REAL IP address please stand up. John W. Colby www.ColbyConsulting.com Drew Wutka wrote: > There are several ways to get your IP address. Two I've used is to use > a Winsock control, and look at the local host IP. > > Another relatively easy way is to dump the results of IPCONFIG to a text > file. > > Create a .bat file (call it iptest.bat) and put the following line in > it: > > Ipconfig >C:\ip.txt > > Then using ShellWait (http://mvps.org/access/api/api0004.htm) > > Use this function: > > Function IPAddresses() As String > Dim f As Long > Dim strTemp As String > Dim strArray() As String > If Dir("C:\ip.txt") <> "" Then Kill "C:\ip.txt" > ShellWait "C:\iptest.bat" > f = FreeFile > Open "C:\ip.txt" For Binary Access Read As f > strTemp = Space(LOF(f)) > Get f, , strTemp > Close f > strArray = Split(strTemp, vbCrLf) > strTemp = "" > For f = 0 To UBound(strArray) > If InStr(1, strArray(f), "IPv4", vbTextCompare) > 0 Or InStr(1, > strArray(f), " IP Address", vbTextCompare) > 0 Then > strTemp = strTemp & Trim(Mid(strArray(f), InStr(1, strArray(f), > ":", vbBinaryCompare) + 1)) & ";" > End If > Next f > If Len(strTemp) > 0 Then strTemp = Left(strTemp, Len(strTemp) - 1) > IPAddresses = strTemp > End Function > > Whalla, IPAddresses will return as a semicolon delimited string. > (Obviously you could return an array or create a collection too...either > way....) > > Drew _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From Gustav at cactus.dk Tue Jun 30 11:49:08 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 30 Jun 2009 18:49:08 +0200 Subject: [dba-VB] Syslogs Message-ID: <sa4a5e36.093@cactus.dk> Hi John But ... didn't you read the article or at least download the code? It's all in there - in the module: basWinAPI_Hostname /gustav >>> jwcolby at colbyconsulting.com 30-06-2009 18:43 >>> Yes, but then you have to do more. IPConfig shows several IP addresses on my work laptop. One is the wireless, which only works when in range of a wireless network, one is a physical NIC, and one is a Hamachi IP. There could be even more. On my server I have two physical NICS and in theory each could have asked for an IP address. So would the REAL IP address please stand up. John W. Colby www.ColbyConsulting.com From max.wanadoo at gmail.com Tue Jun 30 11:54:23 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Tue, 30 Jun 2009 17:54:23 +0100 Subject: [dba-VB] Syslogs In-Reply-To: <4A4A40BC.6060905@colbyconsulting.com> References: <sa490735.064@cactus.dk> <4A48EDCB.50706@colbyconsulting.com> <A5615CBECEC42E4791D7A7C724E1E9B2024478C6@MIEXCH.Marlow.ii-vi.net> <4A4A40BC.6060905@colbyconsulting.com> Message-ID: <4a4a4344.1c05d00a.0f8b.4804@mx.google.com> John, going with what Stuart posted earlier. I integrated it into my work FE and it works great. What I have to do now is to get each FE to run the code on startup, post the resultant IP and Host into my Login Table and BINGO. When they log off, i just remove the entries from the LoginTable if I want to. If I then wanted to (as you do) to send a message I will know who is logged on. You could shell out to NET SEND USER MESSAGE to send the message, for example Where USER is the returning Hostname from the routine and MESSAGE is the text you want to send. Ie, Net Send Manager Hi'ya georgeous. Ps - I am the manager. Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: 30 June 2009 17:44 To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Syslogs Yes, but then you have to do more. IPConfig shows several IP addresses on my work laptop. One is the wireless, which only works when in range of a wireless network, one is a physical NIC, and one is a Hamachi IP. There could be even more. On my server I have two physical NICS and in theory each could have asked for an IP address. So would the REAL IP address please stand up. John W. Colby www.ColbyConsulting.com Drew Wutka wrote: > There are several ways to get your IP address. Two I've used is to use > a Winsock control, and look at the local host IP. > > Another relatively easy way is to dump the results of IPCONFIG to a text > file. > > Create a .bat file (call it iptest.bat) and put the following line in > it: > > Ipconfig >C:\ip.txt > > Then using ShellWait (http://mvps.org/access/api/api0004.htm) > > Use this function: > > Function IPAddresses() As String > Dim f As Long > Dim strTemp As String > Dim strArray() As String > If Dir("C:\ip.txt") <> "" Then Kill "C:\ip.txt" > ShellWait "C:\iptest.bat" > f = FreeFile > Open "C:\ip.txt" For Binary Access Read As f > strTemp = Space(LOF(f)) > Get f, , strTemp > Close f > strArray = Split(strTemp, vbCrLf) > strTemp = "" > For f = 0 To UBound(strArray) > If InStr(1, strArray(f), "IPv4", vbTextCompare) > 0 Or InStr(1, > strArray(f), " IP Address", vbTextCompare) > 0 Then > strTemp = strTemp & Trim(Mid(strArray(f), InStr(1, strArray(f), > ":", vbBinaryCompare) + 1)) & ";" > End If > Next f > If Len(strTemp) > 0 Then strTemp = Left(strTemp, Len(strTemp) - 1) > IPAddresses = strTemp > End Function > > Whalla, IPAddresses will return as a semicolon delimited string. > (Obviously you could return an array or create a collection too...either > way....) > > Drew _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From Gustav at cactus.dk Tue Jun 30 12:06:25 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 30 Jun 2009 19:06:25 +0200 Subject: [dba-VB] favicon (was: Syslogs) Message-ID: <sa4a6252.094@cactus.dk> Hi Drew That gives me an idea regarding favicon. I've found that it is sometimes difficult to get IE to understand that a favicon is present and should be displayed. Some common methods are: <!-- Favicon for IE browsers --> <link rel="shortcut icon" href="favicon.ico" /> <!-- Favicon for other browsers --> <link rel="icon" href="favicon.ico" /> This typically doesn't work. These may: <link rel="shortcut icon" href="/favicon.ico" /> mtaulty.com/CommunityServer: <link rel="shortcut icon" type="image/ico" href="/CommunityServer/favicon.ico" /> <link rel="shortcut icon" href="http://www.examplesite.com/favicon.ico" type="image/x-icon" /> The most reliable method I've found is the last - to use the full URL - but it is not nice to have hardcoded strings like these. So how about using your method: <link rel="shortcut icon" href="http://127.0.0.1/favicon.ico" type="image/x-icon" /> or localhost: <link rel="shortcut icon" href="http://localhost/favicon.ico" type="image/x-icon" /> Anyone having experience with this? /gustav >>> DWUTKA at marlow.com 30-06-2009 18:49 >>> Actually, if you have an IP address, it is real. It then gets into what it is used for. For example, with your wireless, if it's not connected, it won't have an IP address. If a standard NIC is not connected, it will show no address. If it IS connected, but not receiving an IP address, it will default to a (I think) 169 something, which is a hard coded address, which means nothing. You can also have internal addresses such as 127.0.0.1, which is a loopback to your local machine. (so if you are running a website, putting in http://127.0.0.1 on the server will give you the local website). Drew From max.wanadoo at gmail.com Tue Jun 30 12:27:46 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Tue, 30 Jun 2009 18:27:46 +0100 Subject: [dba-VB] Syslogs In-Reply-To: <4A4A0CCF.5521.1B8DFD71@stuart.lexacorp.com.pg> References: <sa4a1857.085@cactus.dk> <4A4A0CCF.5521.1B8DFD71@stuart.lexacorp.com.pg> Message-ID: <4a4a4b16.1c05d00a.735a.08ee@mx.google.com> Stuart, this is good stuff. Why would I need to know the subnet mask in the context of finding the IP and Hostname? Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: 30 June 2009 14:02 To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Syslogs On 30 Jun 2009 at 13:50, Gustav Brock wrote: > However, no function is included to reveal the subnet mask. The only "human" method I >can locate for this purpose is to look up the registry: I just found another API call which returns more info including the SubNet mask(s) so I've modified clsResolve to include GetMyIPMask: Option Compare Database Option Explicit '// define constants Private Const IP_SUCCESS As Long = 0 Private Const SOCKET_ERROR As Long = -1 Private Const MAX_WSADescription As Long = 256 Private Const MAX_WSASYSStatus As Long = 128 Private Const MIN_SOCKETS_REQD As Long = 1 Private Const WS_VERSION_REQD As Long = &H101 Private Const WS_VERSION_MAJOR As Long = WS_VERSION_REQD \ &H100 And &HFF& Private Const WS_VERSION_MINOR As Long = WS_VERSION_REQD And &HFF& Private Const WSADescription_Len As Long = 256 Private Const WSASYS_Status_Len As Long = 128 Private Const AF_INET As Long = 2 '// structures Private Type HOSTENT hName As Long hAliases As Long hAddrType As Integer hLength As Integer hAddrList As Long End Type Private Type WSADATA wVersion As Integer wHighVersion As Integer szDescription(0 To MAX_WSADescription) As Byte szSystemStatus(0 To MAX_WSASYSStatus) As Byte wMaxSockets As Long wMaxUDPDG As Long dwVendorInfo As Long End Type Private Type IPINFO dwAddr As Long ' IP address dwIndex As Long ' interface index dwMask As Long ' subnet mask dwBCastAddr As Long ' broadcast address dwReasmSize As Long ' assembly size unused1 As Integer ' not currently used unused2 As Integer '; not currently used End Type Private Type MIB_IPADDRTABLE dEntrys As Long 'number of entries in the table mIPInfo(5) As IPINFO 'array of IP address entries assumes maximum of 5 Interfaces End Type Private Type IP_Array mBuffer As MIB_IPADDRTABLE BufferLen As Long End Type '// api 'kernel32 Private Declare Sub apiCopyMemory Lib "kernel32" Alias "RtlMoveMemory" (xDest As Any, xSource As Any, ByVal nBytes As Long) Private Declare Function apiStrLen Lib "kernel32" Alias "lstrlenA" (lpString As Any) As Long 'wsock32 Private Declare Function apiGetHostByName Lib "wsock32.dll" Alias "gethostbyname" (ByVal hostname As String) As Long Private Declare Function apiWSAStartup Lib "wsock32.dll" Alias "WSAStartup" (ByVal wVersionRequired As Long, lpWSADATA As WSADATA) As Long Private Declare Function apiWSACleanup Lib "wsock32.dll" Alias "WSACleanup" () As Long Private Declare Function apiInetAddr Lib "wsock32.dll" Alias "inet_addr" (ByVal s As String) As Long Private Declare Function apiGetHostByAddr Lib "wsock32.dll" Alias "gethostbyaddr" (haddr As Long, ByVal hnlen As Long, ByVal addrtype As Long) As Long Private Declare Function apiGetHostName Lib "wsock32.dll" Alias "gethostname" (ByVal hostname$, ByVal HostLen As Integer) As Long 'IPHlpAPI Private Declare Function GetIpAddrTable Lib "IPHlpApi" (pIPAdrTable As Byte, pdwSize As Long, ByVal Sort As Long) As Long '// private functions Private Function InitializeSocket() As Boolean Dim WSAD As WSADATA 'attempt to initialize the socket InitializeSocket = apiWSAStartup(WS_VERSION_REQD, WSAD) = IP_SUCCESS End Function Private Sub CloseSocket() 'try to close the socket If apiWSACleanup() <> 0 Then MsgBox "Error calling apiWSACleanup.", vbCritical End If End Sub Public Function GetIPFromHostName(ByVal sHostName As String) As String 'converts a host name to an IP address. Dim nBytes As Long Dim ptrHosent As Long Dim hstHost As HOSTENT Dim ptrName As Long Dim ptrAddress As Long Dim ptrIPAddress As Long Dim sAddress As String 'declare this as Dim sAddress(1) As String if you want 2 ip addresses returned 'try to initalize the socket If InitializeSocket() = True Then 'try to get the IP ptrHosent = apiGetHostByName(sHostName & vbNullChar) If ptrHosent <> 0 Then 'get the IP address apiCopyMemory hstHost, ByVal ptrHosent, LenB(hstHost) apiCopyMemory ptrIPAddress, ByVal hstHost.hAddrList, 4 'fill buffer sAddress = Space$(4) 'if you want multiple domains returned, 'fill all items in sAddress array with 4 spaces apiCopyMemory ByVal sAddress, ByVal ptrIPAddress, hstHost.hLength 'change this to 'CopyMemory ByVal sAddress(0), ByVal ptrIPAddress, hstHost.hLength 'if you want an array of ip addresses returned '(some domains have more than one ip address associated with it) 'get the IP address GetIPFromHostName = IPToText(sAddress) 'if you are using multiple addresses, you need IPToText(sAddress(0)) & "," & IPToText(sAddress(1)) 'etc End If Else MsgBox "Failed to open Socket." End If End Function Private Function IPToText(ByVal IPAddress As String) As String 'converts characters to numbers IPToText = CStr(Asc(IPAddress)) & "." & _ CStr(Asc(Mid$(IPAddress, 2, 1))) & "." & _ CStr(Asc(Mid$(IPAddress, 3, 1))) & "." & _ CStr(Asc(Mid$(IPAddress, 4, 1))) End Function Private Function ConvertAddressToString(longAddr As Long) As String Dim myByte(3) As Byte Dim Cnt As Long CopyMemory myByte(0), longAddr, 4 For Cnt = 0 To 3 ConvertAddressToString = ConvertAddressToString + CStr(myByte(Cnt)) + "." Next Cnt ConvertAddressToString = Left$(ConvertAddressToString, Len(ConvertAddressToString) - 1) End Function Public Function GetHostNameFromIP(ByVal sIPAddress As String) As String Dim ptrHosent As Long Dim hAddress As Long Dim sHost As String Dim nBytes As Long 'try to open the socket If InitializeSocket() = True Then 'convert string address to long datatype hAddress = apiInetAddr(sIPAddress) 'check if an error ocucred If hAddress <> SOCKET_ERROR Then 'obtain a pointer to the HOSTENT structure 'that contains the name and address 'corresponding to the given network address. ptrHosent = apiGetHostByAddr(hAddress, 4, AF_INET) If ptrHosent <> 0 Then 'convert address and 'get resolved hostname apiCopyMemory ptrHosent, ByVal ptrHosent, 4 nBytes = apiStrLen(ByVal ptrHosent) If nBytes > 0 Then 'fill the IP address buffer sHost = Space$(nBytes) apiCopyMemory ByVal sHost, ByVal ptrHosent, nBytes GetHostNameFromIP = sHost End If Else MsgBox "Call to gethostbyaddr failed." End If 'close the socket CloseSocket Else MsgBox "Invalid IP address" End If Else MsgBox "Failed to open Socket" End If End Function Public Function GetMyHostName() As String 'Finds local HostName Dim strHostname As String Dim lngHostLen As Long 'try to initalize the socket If InitializeSocket() = True Then lngHostLen = 256 strHostname = Space$(lngHostLen) If apiGetHostName(strHostname, lngHostLen) = SOCKET_ERROR Then MsgBox "Windows Sockets error getting Host Name" Else strHostname = Trim$(strHostname) strHostname = Left$(strHostname, Len(strHostname) - 1) End If Else MsgBox "Failed to open Socket." End If GetMyHostName = strHostname End Function Public Function GetMyIPAddress() As String GetMyIPAddress = GetIPFromHostName(GetMyHostName) End Function Public Function GetMyIPMask() Dim Ret As Long Dim bBytes() As Byte Dim tel As Long Dim Listing As MIB_IPADDRTABLE On Error GoTo END1 GetIpAddrTable ByVal 0&, Ret, True If Ret <= 0 Then Exit Function ReDim bBytes(0 To Ret - 1) As Byte 'retrieve the data GetIpAddrTable bBytes(0), Ret, False 'Get the first 4 bytes to get the entry's.. ip installed CopyMemory Listing.dEntrys, bBytes(0), 4 'Copy whole structure to Listing and return for Adapter 1 (Adapter 0 = Loopback) CopyMemory Listing.mIPInfo(1), bBytes(4 + (Len(Listing.mIPInfo(0)))), Len(Listing.mIPInfo(1)) GetIPMask = ConvertAddressToString(Listing.mIPInfo(1).dwMask) Exit Function END1: MsgBox "Error Resolving Subnet Mask" End Function _______________________________________________ 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 Jun 30 12:41:36 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 30 Jun 2009 19:41:36 +0200 Subject: [dba-VB] Syslogs Message-ID: <sa4a6a88.095@cactus.dk> Hi Stuart and John Nice Stuart. With your code I was able to browse a little further and found this: http://www.everythingaccess.com/tutorials.asp?ID=Get-all-IP-Addresses-of-your-machine which also uses the API: Public Declare Function GetIpAddrTable Lib "Iphlpapi" (pIPAdrTable As Byte, pdwSize As Long, ByVal Sort As Long) As Long to retrieve a list of the IP addresses of the machine. It has an option to filter out 127.0.0.1 but for some reason not 0.0.0.0 which is an inactive adapter. However, the interesting part is the second reserved or unused part of the IP INFO type. If you include that in your loop, you will see that inactive or unused adapters return an integer value of 35 while the active adapter returns 39. I have no idea of what these numbers mean, but it should be a simple matter to include a filter on value 39 to extract just the active adapter - for John and anyone else. So a revision 1.2 of your class is on its way? /gustav >>> "Stuart McLachlan" <stuart at lexacorp.com.pg> 30-06-2009 15:02 >>> On 30 Jun 2009 at 13:50, Gustav Brock wrote: > However, no function is included to reveal the subnet mask. The only "human" method I >can locate for this purpose is to look up the registry: I just found another API call which returns more info including the SubNet mask(s) so I've modified clsResolve to include GetMyIPMask: Option Compare Database Option Explicit '// define constants Private Const IP_SUCCESS As Long = 0 Private Const SOCKET_ERROR As Long = -1 Private Const MAX_WSADescription As Long = 256 Private Const MAX_WSASYSStatus As Long = 128 Private Const MIN_SOCKETS_REQD As Long = 1 Private Const WS_VERSION_REQD As Long = &H101 Private Const WS_VERSION_MAJOR As Long = WS_VERSION_REQD \ &H100 And &HFF& Private Const WS_VERSION_MINOR As Long = WS_VERSION_REQD And &HFF& Private Const WSADescription_Len As Long = 256 Private Const WSASYS_Status_Len As Long = 128 Private Const AF_INET As Long = 2 '// structures Private Type HOSTENT hName As Long hAliases As Long hAddrType As Integer hLength As Integer hAddrList As Long End Type Private Type WSADATA wVersion As Integer wHighVersion As Integer szDescription(0 To MAX_WSADescription) As Byte szSystemStatus(0 To MAX_WSASYSStatus) As Byte wMaxSockets As Long wMaxUDPDG As Long dwVendorInfo As Long End Type Private Type IPINFO dwAddr As Long ' IP address dwIndex As Long ' interface index dwMask As Long ' subnet mask dwBCastAddr As Long ' broadcast address dwReasmSize As Long ' assembly size unused1 As Integer ' not currently used unused2 As Integer '; not currently used End Type Private Type MIB_IPADDRTABLE dEntrys As Long 'number of entries in the table mIPInfo(5) As IPINFO 'array of IP address entries assumes maximum of 5 Interfaces End Type Private Type IP_Array mBuffer As MIB_IPADDRTABLE BufferLen As Long End Type '// api 'kernel32 Private Declare Sub apiCopyMemory Lib "kernel32" Alias "RtlMoveMemory" (xDest As Any, xSource As Any, ByVal nBytes As Long) Private Declare Function apiStrLen Lib "kernel32" Alias "lstrlenA" (lpString As Any) As Long 'wsock32 Private Declare Function apiGetHostByName Lib "wsock32.dll" Alias "gethostbyname" (ByVal hostname As String) As Long Private Declare Function apiWSAStartup Lib "wsock32.dll" Alias "WSAStartup" (ByVal wVersionRequired As Long, lpWSADATA As WSADATA) As Long Private Declare Function apiWSACleanup Lib "wsock32.dll" Alias "WSACleanup" () As Long Private Declare Function apiInetAddr Lib "wsock32.dll" Alias "inet_addr" (ByVal s As String) As Long Private Declare Function apiGetHostByAddr Lib "wsock32.dll" Alias "gethostbyaddr" (haddr As Long, ByVal hnlen As Long, ByVal addrtype As Long) As Long Private Declare Function apiGetHostName Lib "wsock32.dll" Alias "gethostname" (ByVal hostname$, ByVal HostLen As Integer) As Long 'IPHlpAPI Private Declare Function GetIpAddrTable Lib "IPHlpApi" (pIPAdrTable As Byte, pdwSize As Long, ByVal Sort As Long) As Long '// private functions Private Function InitializeSocket() As Boolean Dim WSAD As WSADATA 'attempt to initialize the socket InitializeSocket = apiWSAStartup(WS_VERSION_REQD, WSAD) = IP_SUCCESS End Function Private Sub CloseSocket() 'try to close the socket If apiWSACleanup() <> 0 Then MsgBox "Error calling apiWSACleanup.", vbCritical End If End Sub Public Function GetIPFromHostName(ByVal sHostName As String) As String 'converts a host name to an IP address. Dim nBytes As Long Dim ptrHosent As Long Dim hstHost As HOSTENT Dim ptrName As Long Dim ptrAddress As Long Dim ptrIPAddress As Long Dim sAddress As String 'declare this as Dim sAddress(1) As String if you want 2 ip addresses returned 'try to initalize the socket If InitializeSocket() = True Then 'try to get the IP ptrHosent = apiGetHostByName(sHostName & vbNullChar) If ptrHosent <> 0 Then 'get the IP address apiCopyMemory hstHost, ByVal ptrHosent, LenB(hstHost) apiCopyMemory ptrIPAddress, ByVal hstHost.hAddrList, 4 'fill buffer sAddress = Space$(4) 'if you want multiple domains returned, 'fill all items in sAddress array with 4 spaces apiCopyMemory ByVal sAddress, ByVal ptrIPAddress, hstHost.hLength 'change this to 'CopyMemory ByVal sAddress(0), ByVal ptrIPAddress, hstHost.hLength 'if you want an array of ip addresses returned '(some domains have more than one ip address associated with it) 'get the IP address GetIPFromHostName = IPToText(sAddress) 'if you are using multiple addresses, you need IPToText(sAddress(0)) & "," & IPToText(sAddress(1)) 'etc End If Else MsgBox "Failed to open Socket." End If End Function Private Function IPToText(ByVal IPAddress As String) As String 'converts characters to numbers IPToText = CStr(Asc(IPAddress)) & "." & _ CStr(Asc(Mid$(IPAddress, 2, 1))) & "." & _ CStr(Asc(Mid$(IPAddress, 3, 1))) & "." & _ CStr(Asc(Mid$(IPAddress, 4, 1))) End Function Private Function ConvertAddressToString(longAddr As Long) As String Dim myByte(3) As Byte Dim Cnt As Long CopyMemory myByte(0), longAddr, 4 For Cnt = 0 To 3 ConvertAddressToString = ConvertAddressToString + CStr(myByte(Cnt)) + "." Next Cnt ConvertAddressToString = Left$(ConvertAddressToString, Len(ConvertAddressToString) - 1) End Function Public Function GetHostNameFromIP(ByVal sIPAddress As String) As String Dim ptrHosent As Long Dim hAddress As Long Dim sHost As String Dim nBytes As Long 'try to open the socket If InitializeSocket() = True Then 'convert string address to long datatype hAddress = apiInetAddr(sIPAddress) 'check if an error ocucred If hAddress <> SOCKET_ERROR Then 'obtain a pointer to the HOSTENT structure 'that contains the name and address 'corresponding to the given network address. ptrHosent = apiGetHostByAddr(hAddress, 4, AF_INET) If ptrHosent <> 0 Then 'convert address and 'get resolved hostname apiCopyMemory ptrHosent, ByVal ptrHosent, 4 nBytes = apiStrLen(ByVal ptrHosent) If nBytes > 0 Then 'fill the IP address buffer sHost = Space$(nBytes) apiCopyMemory ByVal sHost, ByVal ptrHosent, nBytes GetHostNameFromIP = sHost End If Else MsgBox "Call to gethostbyaddr failed." End If 'close the socket CloseSocket Else MsgBox "Invalid IP address" End If Else MsgBox "Failed to open Socket" End If End Function Public Function GetMyHostName() As String 'Finds local HostName Dim strHostname As String Dim lngHostLen As Long 'try to initalize the socket If InitializeSocket() = True Then lngHostLen = 256 strHostname = Space$(lngHostLen) If apiGetHostName(strHostname, lngHostLen) = SOCKET_ERROR Then MsgBox "Windows Sockets error getting Host Name" Else strHostname = Trim$(strHostname) strHostname = Left$(strHostname, Len(strHostname) - 1) End If Else MsgBox "Failed to open Socket." End If GetMyHostName = strHostname End Function Public Function GetMyIPAddress() As String GetMyIPAddress = GetIPFromHostName(GetMyHostName) End Function Public Function GetMyIPMask() Dim Ret As Long Dim bBytes() As Byte Dim tel As Long Dim Listing As MIB_IPADDRTABLE On Error GoTo END1 GetIpAddrTable ByVal 0&, Ret, True If Ret <= 0 Then Exit Function ReDim bBytes(0 To Ret - 1) As Byte 'retrieve the data GetIpAddrTable bBytes(0), Ret, False 'Get the first 4 bytes to get the entry's.. ip installed CopyMemory Listing.dEntrys, bBytes(0), 4 'Copy whole structure to Listing and return for Adapter 1 (Adapter 0 = Loopback) CopyMemory Listing.mIPInfo(1), bBytes(4 + (Len(Listing.mIPInfo(0)))), Len(Listing.mIPInfo(1)) GetIPMask = ConvertAddressToString(Listing.mIPInfo(1).dwMask) Exit Function END1: MsgBox "Error Resolving Subnet Mask" End Function From jwcolby at colbyconsulting.com Tue Jun 30 12:42:38 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 30 Jun 2009 13:42:38 -0400 Subject: [dba-VB] Syslogs In-Reply-To: <sa4a5e36.093@cactus.dk> References: <sa4a5e36.093@cactus.dk> Message-ID: <4A4A4E8E.5060107@colbyconsulting.com> Gustav, Nope, and nope. Once I discovered that I had to get an OCX and register it the bloom kind of left the rose so to speak. I am looking for something that just works and is native to VBA. This is something that I want to incorporate into my framework, but I can't go installing stuff on workstations, it is for use at my clients and I am not there. There is good reason why I have never done this... the easy solutions always have a gotcha. John W. Colby www.ColbyConsulting.com Gustav Brock wrote: > Hi John > > But ... didn't you read the article or at least download the code? It's all in there - in the module: > > basWinAPI_Hostname > > /gustav > > >>>> jwcolby at colbyconsulting.com 30-06-2009 18:43 >>> > Yes, but then you have to do more. IPConfig shows several IP addresses on my work laptop. One is > the wireless, which only works when in range of a wireless network, one is a physical NIC, and one > is a Hamachi IP. There could be even more. On my server I have two physical NICS and in theory > each could have asked for an IP address. > > So would the REAL IP address please stand up. > > 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 Tue Jun 30 12:45:11 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 30 Jun 2009 13:45:11 -0400 Subject: [dba-VB] Messaging For JWC WAS: Syslogs In-Reply-To: <A5615CBECEC42E4791D7A7C724E1E9B2024478C9@MIEXCH.Marlow.ii-vi.net> References: <sa490e7e.066@cactus.dk> <4A49027A.5000604@colbyconsulting.com> <A5615CBECEC42E4791D7A7C724E1E9B2024478C9@MIEXCH.Marlow.ii-vi.net> Message-ID: <4A4A4F27.6010606@colbyconsulting.com> Drew, I really want this but it has to be vba native, no OCXs. I am familiar with OCXs that are part of Access, and that is OK. This would be used with my framework and I cannot guarantee that i can register anything. It has to just work. John W. Colby www.ColbyConsulting.com Drew Wutka wrote: > Is this something you really want? > > It would be pretty simple to create an OCX that you could have on a > hidden form, that would 'see' all running instances of your application, > and be able to 'communicate' to them. > > There is one quirk. It'll work on a standard network. However, if your > network is subnetted, it would only 'see' what's in the local subnet > (because the best way to do this is to send out a broadcast 'hello' and > 'goodbye' message). To work with a subnetted network, you'd have to > come up with a 'server/client' scenario, so the server would see all the > connected users (sort of like a custom DNS server). > > If you aren't worried about a subnetted network, let me know, I am > pretty sure I can whip up an OCX to do what you want. > > Drew From jwcolby at colbyconsulting.com Tue Jun 30 12:45:48 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 30 Jun 2009 13:45:48 -0400 Subject: [dba-VB] SPAM-LOW: Re: Syslogs In-Reply-To: <4a4a4344.1c05d00a.0f8b.4804@mx.google.com> References: <sa490735.064@cactus.dk> <4A48EDCB.50706@colbyconsulting.com> <A5615CBECEC42E4791D7A7C724E1E9B2024478C6@MIEXCH.Marlow.ii-vi.net> <4A4A40BC.6060905@colbyconsulting.com> <4a4a4344.1c05d00a.0f8b.4804@mx.google.com> Message-ID: <4A4A4F4C.3070806@colbyconsulting.com> I will be looking at Stuart's code. John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > John, going with what Stuart posted earlier. I integrated it into my work FE > and it works great. What I have to do now is to get each FE to run the code > on startup, post the resultant IP and Host into my Login Table and BINGO. > When they log off, i just remove the entries from the LoginTable if I want > to. > > If I then wanted to (as you do) to send a message I will know who is logged > on. You could shell out to NET SEND USER MESSAGE to send the message, for > example Where USER is the returning Hostname from the routine and MESSAGE is > the text you want to send. > > Ie, > Net Send Manager Hi'ya georgeous. > > Ps - I am the manager. > > Max > > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: 30 June 2009 17:44 > To: Discussion concerning Visual Basic and related programming issues. > Subject: Re: [dba-VB] Syslogs > > Yes, but then you have to do more. IPConfig shows several IP addresses on > my work laptop. One is > the wireless, which only works when in range of a wireless network, one is a > physical NIC, and one > is a Hamachi IP. There could be even more. On my server I have two > physical NICS and in theory > each could have asked for an IP address. > > So would the REAL IP address please stand up. > > John W. Colby > www.ColbyConsulting.com > > > Drew Wutka wrote: >> There are several ways to get your IP address. Two I've used is to use >> a Winsock control, and look at the local host IP. >> >> Another relatively easy way is to dump the results of IPCONFIG to a text >> file. >> >> Create a .bat file (call it iptest.bat) and put the following line in >> it: >> >> Ipconfig >C:\ip.txt >> >> Then using ShellWait (http://mvps.org/access/api/api0004.htm) >> >> Use this function: >> >> Function IPAddresses() As String >> Dim f As Long >> Dim strTemp As String >> Dim strArray() As String >> If Dir("C:\ip.txt") <> "" Then Kill "C:\ip.txt" >> ShellWait "C:\iptest.bat" >> f = FreeFile >> Open "C:\ip.txt" For Binary Access Read As f >> strTemp = Space(LOF(f)) >> Get f, , strTemp >> Close f >> strArray = Split(strTemp, vbCrLf) >> strTemp = "" >> For f = 0 To UBound(strArray) >> If InStr(1, strArray(f), "IPv4", vbTextCompare) > 0 Or InStr(1, >> strArray(f), " IP Address", vbTextCompare) > 0 Then >> strTemp = strTemp & Trim(Mid(strArray(f), InStr(1, strArray(f), >> ":", vbBinaryCompare) + 1)) & ";" >> End If >> Next f >> If Len(strTemp) > 0 Then strTemp = Left(strTemp, Len(strTemp) - 1) >> IPAddresses = strTemp >> End Function >> >> Whalla, IPAddresses will return as a semicolon delimited string. >> (Obviously you could return an array or create a collection too...either >> way....) >> >> Drew > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From Gustav at cactus.dk Tue Jun 30 12:48:25 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 30 Jun 2009 19:48:25 +0200 Subject: [dba-VB] Syslogs Message-ID: <sa4a6c2d.096@cactus.dk> Hi John I see - that of course makes sense. But that module is pure API. /gustav >>> jwcolby at colbyconsulting.com 30-06-2009 19:42 >>> Gustav, Nope, and nope. Once I discovered that I had to get an OCX and register it the bloom kind of left the rose so to speak. I am looking for something that just works and is native to VBA. This is something that I want to incorporate into my framework, but I can't go installing stuff on workstations, it is for use at my clients and I am not there. There is good reason why I have never done this... the easy solutions always have a gotcha. John W. Colby www.ColbyConsulting.com Gustav Brock wrote: > Hi John > > But ... didn't you read the article or at least download the code? It's all in there - in the module: > > basWinAPI_Hostname > > /gustav > > >>>> jwcolby at colbyconsulting.com 30-06-2009 18:43 >>> > Yes, but then you have to do more. IPConfig shows several IP addresses on my work laptop. One is > the wireless, which only works when in range of a wireless network, one is a physical NIC, and one > is a Hamachi IP. There could be even more. On my server I have two physical NICS and in theory > each could have asked for an IP address. > > So would the REAL IP address please stand up. > > John W. Colby > www.ColbyConsulting.com From Gustav at cactus.dk Tue Jun 30 12:49:54 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 30 Jun 2009 19:49:54 +0200 Subject: [dba-VB] Syslogs Message-ID: <sa4a6c6a.097@cactus.dk> Hi Max To calculate the possible IP addresses (of workstations) of the network: http://www.networkclue.com/routing/tcpip/calculating-masks.aspx /gustav >>> max.wanadoo at gmail.com 30-06-2009 19:27 >>> Stuart, this is good stuff. Why would I need to know the subnet mask in the context of finding the IP and Hostname? Max From max.wanadoo at gmail.com Tue Jun 30 13:54:26 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Tue, 30 Jun 2009 19:54:26 +0100 Subject: [dba-VB] Syslogs In-Reply-To: <sa4a6c6a.097@cactus.dk> References: <sa4a6c6a.097@cactus.dk> Message-ID: <4a4a5f66.1701d00a.7694.1d19@mx.google.com> Ha! Very good Gustav....I got half way down the page and thought...why am I reading this...it is going in one eye and out the other... Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 30 June 2009 18:50 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Syslogs Hi Max To calculate the possible IP addresses (of workstations) of the network: http://www.networkclue.com/routing/tcpip/calculating-masks.aspx /gustav >>> max.wanadoo at gmail.com 30-06-2009 19:27 >>> Stuart, this is good stuff. Why would I need to know the subnet mask in the context of finding the IP and Hostname? Max _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From DWUTKA at Marlow.com Tue Jun 30 13:42:16 2009 From: DWUTKA at Marlow.com (Drew Wutka) Date: Tue, 30 Jun 2009 13:42:16 -0500 Subject: [dba-VB] favicon (was: Syslogs) In-Reply-To: <sa4a6252.094@cactus.dk> References: <sa4a6252.094@cactus.dk> Message-ID: <A5615CBECEC42E4791D7A7C724E1E9B2024478CB@MIEXCH.Marlow.ii-vi.net> The reason those href's might not work is going to be dependant upon whether or not IIS is running. If you have a webserver, then a URL can be 'soft', or based on the root of the webserver. No webserver, everything must include a full URL (or 'hard' URL). Drew -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, June 30, 2009 12:06 PM To: dba-vb at databaseadvisors.com Subject: [dba-VB] favicon (was: Syslogs) Hi Drew That gives me an idea regarding favicon. I've found that it is sometimes difficult to get IE to understand that a favicon is present and should be displayed. Some common methods are: <!-- Favicon for IE browsers --> <link rel="shortcut icon" href="favicon.ico" /> <!-- Favicon for other browsers --> <link rel="icon" href="favicon.ico" /> This typically doesn't work. These may: <link rel="shortcut icon" href="/favicon.ico" /> mtaulty.com/CommunityServer: <link rel="shortcut icon" type="image/ico" href="/CommunityServer/favicon.ico" /> <link rel="shortcut icon" href="http://www.examplesite.com/favicon.ico" type="image/x-icon" /> The most reliable method I've found is the last - to use the full URL - but it is not nice to have hardcoded strings like these. So how about using your method: <link rel="shortcut icon" href="http://127.0.0.1/favicon.ico" type="image/x-icon" /> or localhost: <link rel="shortcut icon" href="http://localhost/favicon.ico" type="image/x-icon" /> Anyone having experience with this? /gustav >>> DWUTKA at marlow.com 30-06-2009 18:49 >>> Actually, if you have an IP address, it is real. It then gets into what it is used for. For example, with your wireless, if it's not connected, it won't have an IP address. If a standard NIC is not connected, it will show no address. If it IS connected, but not receiving an IP address, it will default to a (I think) 169 something, which is a hard coded address, which means nothing. You can also have internal addresses such as 127.0.0.1, which is a loopback to your local machine. (so if you are running a website, putting in http://127.0.0.1 on the server will give you the local website). Drew _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From DWUTKA at Marlow.com Tue Jun 30 13:46:19 2009 From: DWUTKA at Marlow.com (Drew Wutka) Date: Tue, 30 Jun 2009 13:46:19 -0500 Subject: [dba-VB] Messaging For JWC WAS: Syslogs In-Reply-To: <4A4A4F27.6010606@colbyconsulting.com> References: <sa490e7e.066@cactus.dk> <4A49027A.5000604@colbyconsulting.com><A5615CBECEC42E4791D7A7C724E1E9B2024478C9@MIEXCH.Marlow.ii-vi.net> <4A4A4F27.6010606@colbyconsulting.com> Message-ID: <A5615CBECEC42E4791D7A7C724E1E9B2024478CC@MIEXCH.Marlow.ii-vi.net> Native does put a crimp in things. TCP/IP communications is pretty easy with a Winsock control. It can be done with API's but it's a pain, and you need to deal with callback functions, which have issues in and of themselves in Access 2000 and on. If you were ok with an .ocx, I could whip that up, if you need something native, that would require callbacks, and a lot more coding. If you want to play around with it, what you need to do is use UDP to 'broadcast' a hello and goodbye message, to alert everything on the subnet. (And you have to filter that message on the broadcasting machine, cause it'll pick up it's own message). In that hello/goodbye message, you can include all the info you want (username, computername, IP,etc). Then it's just a matter of using TCP for direct comms between two machines. Drew -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, June 30, 2009 12:45 PM To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Messaging For JWC WAS: Syslogs Drew, I really want this but it has to be vba native, no OCXs. I am familiar with OCXs that are part of Access, and that is OK. This would be used with my framework and I cannot guarantee that i can register anything. It has to just work. John W. Colby www.ColbyConsulting.com Drew Wutka wrote: > Is this something you really want? > > It would be pretty simple to create an OCX that you could have on a > hidden form, that would 'see' all running instances of your application, > and be able to 'communicate' to them. > > There is one quirk. It'll work on a standard network. However, if your > network is subnetted, it would only 'see' what's in the local subnet > (because the best way to do this is to send out a broadcast 'hello' and > 'goodbye' message). To work with a subnetted network, you'd have to > come up with a 'server/client' scenario, so the server would see all the > connected users (sort of like a custom DNS server). > > If you aren't worried about a subnetted network, let me know, I am > pretty sure I can whip up an OCX to do what you want. > > Drew _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From max.wanadoo at gmail.com Tue Jun 30 14:00:23 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Tue, 30 Jun 2009 20:00:23 +0100 Subject: [dba-VB] Messaging For JWC WAS: Syslogs In-Reply-To: <A5615CBECEC42E4791D7A7C724E1E9B2024478CC@MIEXCH.Marlow.ii-vi.net> References: <sa490e7e.066@cactus.dk> <4A49027A.5000604@colbyconsulting.com><A5615CBECEC42E4791D7A7C724E1E9B2024478C9@MIEXCH.Marlow.ii-vi.net> <4A4A4F27.6010606@colbyconsulting.com> <A5615CBECEC42E4791D7A7C724E1E9B2024478CC@MIEXCH.Marlow.ii-vi.net> Message-ID: <4a4a60ca.0a1ad00a.63e4.2ae9@mx.google.com> Drew, have you looked at Stuart's posting. It is all API and works fine. Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: 30 June 2009 19:46 To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Messaging For JWC WAS: Syslogs Native does put a crimp in things. TCP/IP communications is pretty easy with a Winsock control. It can be done with API's but it's a pain, and you need to deal with callback functions, which have issues in and of themselves in Access 2000 and on. If you were ok with an .ocx, I could whip that up, if you need something native, that would require callbacks, and a lot more coding. If you want to play around with it, what you need to do is use UDP to 'broadcast' a hello and goodbye message, to alert everything on the subnet. (And you have to filter that message on the broadcasting machine, cause it'll pick up it's own message). In that hello/goodbye message, you can include all the info you want (username, computername, IP,etc). Then it's just a matter of using TCP for direct comms between two machines. Drew -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, June 30, 2009 12:45 PM To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Messaging For JWC WAS: Syslogs Drew, I really want this but it has to be vba native, no OCXs. I am familiar with OCXs that are part of Access, and that is OK. This would be used with my framework and I cannot guarantee that i can register anything. It has to just work. John W. Colby www.ColbyConsulting.com Drew Wutka wrote: > Is this something you really want? > > It would be pretty simple to create an OCX that you could have on a > hidden form, that would 'see' all running instances of your application, > and be able to 'communicate' to them. > > There is one quirk. It'll work on a standard network. However, if your > network is subnetted, it would only 'see' what's in the local subnet > (because the best way to do this is to send out a broadcast 'hello' and > 'goodbye' message). To work with a subnetted network, you'd have to > come up with a 'server/client' scenario, so the server would see all the > connected users (sort of like a custom DNS server). > > If you aren't worried about a subnetted network, let me know, I am > pretty sure I can whip up an OCX to do what you want. > > Drew _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From DWUTKA at Marlow.com Tue Jun 30 14:10:13 2009 From: DWUTKA at Marlow.com (Drew Wutka) Date: Tue, 30 Jun 2009 14:10:13 -0500 Subject: [dba-VB] Messaging For JWC WAS: Syslogs In-Reply-To: <4a4a60ca.0a1ad00a.63e4.2ae9@mx.google.com> References: <sa490e7e.066@cactus.dk> <4A49027A.5000604@colbyconsulting.com><A5615CBECEC42E4791D7A7C724E1E9B2024478C9@MIEXCH.Marlow.ii-vi.net> <4A4A4F27.6010606@colbyconsulting.com><A5615CBECEC42E4791D7A7C724E1E9B2024478CC@MIEXCH.Marlow.ii-vi.net> <4a4a60ca.0a1ad00a.63e4.2ae9@mx.google.com> Message-ID: <A5615CBECEC42E4791D7A7C724E1E9B2024478CF@MIEXCH.Marlow.ii-vi.net> Yes, but it's returning IP information, not performing TCP/IP comms. The basics are there, but to 'return' comms, using strictly API's, you have to have a Callback function, because an incoming connection has to alert your code to something happening. Callback functions in VBA worked great in Access 97 (with a custom 'AddressOf' function), but suck in 2000 and on, because if they are 'active' and you go into debug mode, it will wreak havoc with Access. Drew -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Tuesday, June 30, 2009 2:00 PM To: 'Discussion concerning Visual Basic and related programming issues.' Subject: Re: [dba-VB] Messaging For JWC WAS: Syslogs Drew, have you looked at Stuart's posting. It is all API and works fine. Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: 30 June 2009 19:46 To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Messaging For JWC WAS: Syslogs Native does put a crimp in things. TCP/IP communications is pretty easy with a Winsock control. It can be done with API's but it's a pain, and you need to deal with callback functions, which have issues in and of themselves in Access 2000 and on. If you were ok with an .ocx, I could whip that up, if you need something native, that would require callbacks, and a lot more coding. If you want to play around with it, what you need to do is use UDP to 'broadcast' a hello and goodbye message, to alert everything on the subnet. (And you have to filter that message on the broadcasting machine, cause it'll pick up it's own message). In that hello/goodbye message, you can include all the info you want (username, computername, IP,etc). Then it's just a matter of using TCP for direct comms between two machines. Drew -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, June 30, 2009 12:45 PM To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Messaging For JWC WAS: Syslogs Drew, I really want this but it has to be vba native, no OCXs. I am familiar with OCXs that are part of Access, and that is OK. This would be used with my framework and I cannot guarantee that i can register anything. It has to just work. John W. Colby www.ColbyConsulting.com Drew Wutka wrote: > Is this something you really want? > > It would be pretty simple to create an OCX that you could have on a > hidden form, that would 'see' all running instances of your application, > and be able to 'communicate' to them. > > There is one quirk. It'll work on a standard network. However, if your > network is subnetted, it would only 'see' what's in the local subnet > (because the best way to do this is to send out a broadcast 'hello' and > 'goodbye' message). To work with a subnetted network, you'd have to > come up with a 'server/client' scenario, so the server would see all the > connected users (sort of like a custom DNS server). > > If you aren't worried about a subnetted network, let me know, I am > pretty sure I can whip up an OCX to do what you want. > > Drew _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From max.wanadoo at gmail.com Tue Jun 30 14:15:34 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Tue, 30 Jun 2009 20:15:34 +0100 Subject: [dba-VB] Messaging For JWC WAS: Syslogs In-Reply-To: <A5615CBECEC42E4791D7A7C724E1E9B2024478CF@MIEXCH.Marlow.ii-vi.net> References: <sa490e7e.066@cactus.dk> <4A49027A.5000604@colbyconsulting.com><A5615CBECEC42E4791D7A7C724E1E9B2024478C9@MIEXCH.Marlow.ii-vi.net> <4A4A4F27.6010606@colbyconsulting.com><A5615CBECEC42E4791D7A7C724E1E9B2024478CC@MIEXCH.Marlow.ii-vi.net> <4a4a60ca.0a1ad00a.63e4.2ae9@mx.google.com> <A5615CBECEC42E4791D7A7C724E1E9B2024478CF@MIEXCH.Marlow.ii-vi.net> Message-ID: <4a4a645a.0707d00a.4823.0b6a@mx.google.com> Ok, thanks. Forgive my ignorance as I am out of my depth here, but can I ask if the use of WithEvents would solve this situation? Also, why did it work in '97 and not thereafter. Did they remove "bits" or change them or what? Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: 30 June 2009 20:10 To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Messaging For JWC WAS: Syslogs Yes, but it's returning IP information, not performing TCP/IP comms. The basics are there, but to 'return' comms, using strictly API's, you have to have a Callback function, because an incoming connection has to alert your code to something happening. Callback functions in VBA worked great in Access 97 (with a custom 'AddressOf' function), but suck in 2000 and on, because if they are 'active' and you go into debug mode, it will wreak havoc with Access. Drew -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Tuesday, June 30, 2009 2:00 PM To: 'Discussion concerning Visual Basic and related programming issues.' Subject: Re: [dba-VB] Messaging For JWC WAS: Syslogs Drew, have you looked at Stuart's posting. It is all API and works fine. Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: 30 June 2009 19:46 To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Messaging For JWC WAS: Syslogs Native does put a crimp in things. TCP/IP communications is pretty easy with a Winsock control. It can be done with API's but it's a pain, and you need to deal with callback functions, which have issues in and of themselves in Access 2000 and on. If you were ok with an .ocx, I could whip that up, if you need something native, that would require callbacks, and a lot more coding. If you want to play around with it, what you need to do is use UDP to 'broadcast' a hello and goodbye message, to alert everything on the subnet. (And you have to filter that message on the broadcasting machine, cause it'll pick up it's own message). In that hello/goodbye message, you can include all the info you want (username, computername, IP,etc). Then it's just a matter of using TCP for direct comms between two machines. Drew -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, June 30, 2009 12:45 PM To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Messaging For JWC WAS: Syslogs Drew, I really want this but it has to be vba native, no OCXs. I am familiar with OCXs that are part of Access, and that is OK. This would be used with my framework and I cannot guarantee that i can register anything. It has to just work. John W. Colby www.ColbyConsulting.com Drew Wutka wrote: > Is this something you really want? > > It would be pretty simple to create an OCX that you could have on a > hidden form, that would 'see' all running instances of your application, > and be able to 'communicate' to them. > > There is one quirk. It'll work on a standard network. However, if your > network is subnetted, it would only 'see' what's in the local subnet > (because the best way to do this is to send out a broadcast 'hello' and > 'goodbye' message). To work with a subnetted network, you'd have to > come up with a 'server/client' scenario, so the server would see all the > connected users (sort of like a custom DNS server). > > If you aren't worried about a subnetted network, let me know, I am > pretty sure I can whip up an OCX to do what you want. > > Drew _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. _______________________________________________ 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 Jun 30 14:21:09 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 30 Jun 2009 15:21:09 -0400 Subject: [dba-VB] Messaging For JWC WAS: Syslogs In-Reply-To: <A5615CBECEC42E4791D7A7C724E1E9B2024478CF@MIEXCH.Marlow.ii-vi.net> References: <sa490e7e.066@cactus.dk> <4A49027A.5000604@colbyconsulting.com><A5615CBECEC42E4791D7A7C724E1E9B2024478C9@MIEXCH.Marlow.ii-vi.net> <4A4A4F27.6010606@colbyconsulting.com><A5615CBECEC42E4791D7A7C724E1E9B2024478CC@MIEXCH.Marlow.ii-vi.net> <4a4a60ca.0a1ad00a.63e4.2ae9@mx.google.com> <A5615CBECEC42E4791D7A7C724E1E9B2024478CF@MIEXCH.Marlow.ii-vi.net> Message-ID: <4A4A65A5.8080101@colbyconsulting.com> Drew, >If you want to play around with it, what you need to do is use UDP to 'broadcast' a hello and goodbye message, to alert everything on the subnet. (And you have to filter that message on the broadcasting machine, cause it'll pick up it's own message). In that hello/goodbye message, you can include all the info you want (username, computername, IP,etc). Then it's just a matter of using TCP for direct comms between two machines. In fact I don't want direct comms between machines, I want precisely "broadcast" messages. "Hey everybody, I added a new record in tblX". Any machine receiving that message promptly refreshes the cache for that table. "Hey everybody, we are shutting down the BE in 10 minutes, get out". Any machine receiving the message pops up a message to the user telling them to finish up and get out of the database. That kind of message. I really don't care about sending to a specific machine, I care about sending to ALL machines. John W. Colby www.ColbyConsulting.com > > Native does put a crimp in things. TCP/IP communications is pretty easy > with a Winsock control. It can be done with API's but it's a pain, and > you need to deal with callback functions, which have issues in and of > themselves in Access 2000 and on. > > If you were ok with an .ocx, I could whip that up, if you need something > native, that would require callbacks, and a lot more coding. If you > want to play around with it, what you need to do is use UDP to > 'broadcast' a hello and goodbye message, to alert everything on the > subnet. (And you have to filter that message on the broadcasting > machine, cause it'll pick up it's own message). In that hello/goodbye > message, you can include all the info you want (username, computername, > IP,etc). Then it's just a matter of using TCP for direct comms between > two machines. > > Drew > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Tuesday, June 30, 2009 12:45 PM > To: Discussion concerning Visual Basic and related programming issues. > Subject: Re: [dba-VB] Messaging For JWC WAS: Syslogs > > Drew, > > I really want this but it has to be vba native, no OCXs. I am familiar > with OCXs that are part of > Access, and that is OK. > > This would be used with my framework and I cannot guarantee that i can > register anything. It has to > just work. > > John W. Colby > www.ColbyConsulting.com > > > Drew Wutka wrote: >> Is this something you really want? >> >> It would be pretty simple to create an OCX that you could have on a >> hidden form, that would 'see' all running instances of your > application, >> and be able to 'communicate' to them. >> >> There is one quirk. It'll work on a standard network. However, if > your >> network is subnetted, it would only 'see' what's in the local subnet >> (because the best way to do this is to send out a broadcast 'hello' > and >> 'goodbye' message). To work with a subnetted network, you'd have to >> come up with a 'server/client' scenario, so the server would see all > the >> connected users (sort of like a custom DNS server). >> >> If you aren't worried about a subnetted network, let me know, I am >> pretty sure I can whip up an OCX to do what you want. >> >> Drew > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > The information contained in this transmission is intended only for the > person or entity > to which it is addressed and may contain II-VI Proprietary and/or II-VI > Business > Sensitive material. If you are not the intended recipient, please > contact > the sender > immediately and destroy the material in its entirety, whether electronic > or > hard copy. > You are notified that any review, retransmission, copying, disclosure, > dissemination, > or other use of, or taking of any action in reliance upon this > information > by persons > or entities other than the intended recipient is prohibited. > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > The information contained in this transmission is intended only for the person or entity > to which it is addressed and may contain II-VI Proprietary and/or II-VI Business > Sensitive material. If you are not the intended recipient, please contact the sender > immediately and destroy the material in its entirety, whether electronic or hard copy. > You are notified that any review, retransmission, copying, disclosure, dissemination, > or other use of, or taking of any action in reliance upon this information by persons > or entities other than the intended recipient is prohibited. > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From max.wanadoo at gmail.com Tue Jun 30 14:29:09 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Tue, 30 Jun 2009 20:29:09 +0100 Subject: [dba-VB] Messaging For JWC WAS: Syslogs In-Reply-To: <4A4A65A5.8080101@colbyconsulting.com> References: <sa490e7e.066@cactus.dk> <4A49027A.5000604@colbyconsulting.com><A5615CBECEC42E4791D7A7C724E1E9B2024478C9@MIEXCH.Marlow.ii-vi.net> <4A4A4F27.6010606@colbyconsulting.com><A5615CBECEC42E4791D7A7C724E1E9B2024478CC@MIEXCH.Marlow.ii-vi.net> <4a4a60ca.0a1ad00a.63e4.2ae9@mx.google.com> <A5615CBECEC42E4791D7A7C724E1E9B2024478CF@MIEXCH.Marlow.ii-vi.net> <4A4A65A5.8080101@colbyconsulting.com> Message-ID: <4a4a6788.1c05d00a.13ad.7ae6@mx.google.com> So, why not use NET SEND? Using Stuart's code you have the machine names on the net if you want to pick one. If you want to broadcast to all send to * Max -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: 30 June 2009 20:21 To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Messaging For JWC WAS: Syslogs Drew, >If you want to play around with it, what you need to do is use UDP to 'broadcast' a hello and goodbye message, to alert everything on the subnet. (And you have to filter that message on the broadcasting machine, cause it'll pick up it's own message). In that hello/goodbye message, you can include all the info you want (username, computername, IP,etc). Then it's just a matter of using TCP for direct comms between two machines. In fact I don't want direct comms between machines, I want precisely "broadcast" messages. "Hey everybody, I added a new record in tblX". Any machine receiving that message promptly refreshes the cache for that table. "Hey everybody, we are shutting down the BE in 10 minutes, get out". Any machine receiving the message pops up a message to the user telling them to finish up and get out of the database. That kind of message. I really don't care about sending to a specific machine, I care about sending to ALL machines. John W. Colby www.ColbyConsulting.com > > Native does put a crimp in things. TCP/IP communications is pretty easy > with a Winsock control. It can be done with API's but it's a pain, and > you need to deal with callback functions, which have issues in and of > themselves in Access 2000 and on. > > If you were ok with an .ocx, I could whip that up, if you need something > native, that would require callbacks, and a lot more coding. If you > want to play around with it, what you need to do is use UDP to > 'broadcast' a hello and goodbye message, to alert everything on the > subnet. (And you have to filter that message on the broadcasting > machine, cause it'll pick up it's own message). In that hello/goodbye > message, you can include all the info you want (username, computername, > IP,etc). Then it's just a matter of using TCP for direct comms between > two machines. > > Drew > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Tuesday, June 30, 2009 12:45 PM > To: Discussion concerning Visual Basic and related programming issues. > Subject: Re: [dba-VB] Messaging For JWC WAS: Syslogs > > Drew, > > I really want this but it has to be vba native, no OCXs. I am familiar > with OCXs that are part of > Access, and that is OK. > > This would be used with my framework and I cannot guarantee that i can > register anything. It has to > just work. > > John W. Colby > www.ColbyConsulting.com > > > Drew Wutka wrote: >> Is this something you really want? >> >> It would be pretty simple to create an OCX that you could have on a >> hidden form, that would 'see' all running instances of your > application, >> and be able to 'communicate' to them. >> >> There is one quirk. It'll work on a standard network. However, if > your >> network is subnetted, it would only 'see' what's in the local subnet >> (because the best way to do this is to send out a broadcast 'hello' > and >> 'goodbye' message). To work with a subnetted network, you'd have to >> come up with a 'server/client' scenario, so the server would see all > the >> connected users (sort of like a custom DNS server). >> >> If you aren't worried about a subnetted network, let me know, I am >> pretty sure I can whip up an OCX to do what you want. >> >> Drew > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > The information contained in this transmission is intended only for the > person or entity > to which it is addressed and may contain II-VI Proprietary and/or II-VI > Business > Sensitive material. If you are not the intended recipient, please > contact > the sender > immediately and destroy the material in its entirety, whether electronic > or > hard copy. > You are notified that any review, retransmission, copying, disclosure, > dissemination, > or other use of, or taking of any action in reliance upon this > information > by persons > or entities other than the intended recipient is prohibited. > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > The information contained in this transmission is intended only for the person or entity > to which it is addressed and may contain II-VI Proprietary and/or II-VI Business > Sensitive material. If you are not the intended recipient, please contact the sender > immediately and destroy the material in its entirety, whether electronic or hard copy. > You are notified that any review, retransmission, copying, disclosure, dissemination, > or other use of, or taking of any action in reliance upon this information by persons > or entities other than the intended recipient is prohibited. > > > _______________________________________________ > 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 Tue Jun 30 14:40:41 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 30 Jun 2009 15:40:41 -0400 Subject: [dba-VB] Messaging For JWC WAS: Syslogs In-Reply-To: <4a4a6788.1c05d00a.13ad.7ae6@mx.google.com> References: <sa490e7e.066@cactus.dk> <4A49027A.5000604@colbyconsulting.com><A5615CBECEC42E4791D7A7C724E1E9B2024478C9@MIEXCH.Marlow.ii-vi.net> <4A4A4F27.6010606@colbyconsulting.com><A5615CBECEC42E4791D7A7C724E1E9B2024478CC@MIEXCH.Marlow.ii-vi.net> <4a4a60ca.0a1ad00a.63e4.2ae9@mx.google.com> <A5615CBECEC42E4791D7A7C724E1E9B2024478CF@MIEXCH.Marlow.ii-vi.net> <4A4A65A5.8080101@colbyconsulting.com> <4a4a6788.1c05d00a.13ad.7ae6@mx.google.com> Message-ID: <4A4A6A39.9000503@colbyconsulting.com> As I said, I will be looking at this stuff. I too am out of my league here. John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > So, why not use NET SEND? > > Using Stuart's code you have the machine names on the net if you want to > pick one. If you want to broadcast to all send to * > > > Max > > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: 30 June 2009 20:21 > To: Discussion concerning Visual Basic and related programming issues. > Subject: Re: [dba-VB] Messaging For JWC WAS: Syslogs > > Drew, > > >If you want to play around with it, what you need to do is use UDP to > 'broadcast' a hello and > goodbye message, to alert everything on the subnet. (And you have to filter > that message on the > broadcasting machine, cause it'll pick up it's own message). In that > hello/goodbye message, you can > include all the info you want (username, computername, IP,etc). Then it's > just a matter of using > TCP for direct comms between two machines. > > In fact I don't want direct comms between machines, I want precisely > "broadcast" messages. "Hey > everybody, I added a new record in tblX". Any machine receiving that > message promptly refreshes the > cache for that table. > > "Hey everybody, we are shutting down the BE in 10 minutes, get out". Any > machine receiving the > message pops up a message to the user telling them to finish up and get out > of the database. > > That kind of message. I really don't care about sending to a specific > machine, I care about sending > to ALL machines. > > John W. Colby > www.ColbyConsulting.com > > >> Native does put a crimp in things. TCP/IP communications is pretty easy >> with a Winsock control. It can be done with API's but it's a pain, and >> you need to deal with callback functions, which have issues in and of >> themselves in Access 2000 and on. >> >> If you were ok with an .ocx, I could whip that up, if you need something >> native, that would require callbacks, and a lot more coding. If you >> want to play around with it, what you need to do is use UDP to >> 'broadcast' a hello and goodbye message, to alert everything on the >> subnet. (And you have to filter that message on the broadcasting >> machine, cause it'll pick up it's own message). In that hello/goodbye >> message, you can include all the info you want (username, computername, >> IP,etc). Then it's just a matter of using TCP for direct comms between >> two machines. >> >> Drew >> >> -----Original Message----- >> From: dba-vb-bounces at databaseadvisors.com >> [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby >> Sent: Tuesday, June 30, 2009 12:45 PM >> To: Discussion concerning Visual Basic and related programming issues. >> Subject: Re: [dba-VB] Messaging For JWC WAS: Syslogs >> >> Drew, >> >> I really want this but it has to be vba native, no OCXs. I am familiar >> with OCXs that are part of >> Access, and that is OK. >> >> This would be used with my framework and I cannot guarantee that i can >> register anything. It has to >> just work. >> >> John W. Colby >> www.ColbyConsulting.com >> >> >> Drew Wutka wrote: >>> Is this something you really want? >>> >>> It would be pretty simple to create an OCX that you could have on a >>> hidden form, that would 'see' all running instances of your >> application, >>> and be able to 'communicate' to them. >>> >>> There is one quirk. It'll work on a standard network. However, if >> your >>> network is subnetted, it would only 'see' what's in the local subnet >>> (because the best way to do this is to send out a broadcast 'hello' >> and >>> 'goodbye' message). To work with a subnetted network, you'd have to >>> come up with a 'server/client' scenario, so the server would see all >> the >>> connected users (sort of like a custom DNS server). >>> >>> If you aren't worried about a subnetted network, let me know, I am >>> pretty sure I can whip up an OCX to do what you want. >>> >>> Drew >> _______________________________________________ >> dba-VB mailing list >> dba-VB at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/dba-vb >> http://www.databaseadvisors.com >> >> The information contained in this transmission is intended only for the >> person or entity >> to which it is addressed and may contain II-VI Proprietary and/or II-VI >> Business >> Sensitive material. If you are not the intended recipient, please >> contact >> the sender >> immediately and destroy the material in its entirety, whether electronic >> or >> hard copy. >> You are notified that any review, retransmission, copying, disclosure, >> dissemination, >> or other use of, or taking of any action in reliance upon this >> information >> by persons >> or entities other than the intended recipient is prohibited. >> >> >> _______________________________________________ >> dba-VB mailing list >> dba-VB at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/dba-vb >> http://www.databaseadvisors.com >> >> _______________________________________________ >> dba-VB mailing list >> dba-VB at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/dba-vb >> http://www.databaseadvisors.com >> >> The information contained in this transmission is intended only for the > person or entity >> to which it is addressed and may contain II-VI Proprietary and/or II-VI > Business >> Sensitive material. If you are not the intended recipient, please contact > the sender >> immediately and destroy the material in its entirety, whether electronic > or hard copy. >> You are notified that any review, retransmission, copying, disclosure, > dissemination, >> or other use of, or taking of any action in reliance upon this information > by persons >> or entities other than the intended recipient is prohibited. >> >> >> _______________________________________________ >> dba-VB mailing list >> dba-VB at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/dba-vb >> http://www.databaseadvisors.com >> >> > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From Gustav at cactus.dk Tue Jun 30 16:02:21 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 30 Jun 2009 23:02:21 +0200 Subject: [dba-VB] favicon (was: Syslogs) Message-ID: <sa4a9990.001@cactus.dk> Hi Drew All tests have been done on a hosted IIS7. /gustav >>> DWUTKA at marlow.com 30-06-2009 20:42 >>> The reason those href's might not work is going to be dependant upon whether or not IIS is running. If you have a webserver, then a URL can be 'soft', or based on the root of the webserver. No webserver, everything must include a full URL (or 'hard' URL). Drew -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, June 30, 2009 12:06 PM To: dba-vb at databaseadvisors.com Subject: [dba-VB] favicon (was: Syslogs) Hi Drew That gives me an idea regarding favicon. I've found that it is sometimes difficult to get IE to understand that a favicon is present and should be displayed. Some common methods are: <!-- Favicon for IE browsers --> <link rel="shortcut icon" href="favicon.ico" /> <!-- Favicon for other browsers --> <link rel="icon" href="favicon.ico" /> This typically doesn't work. These may: <link rel="shortcut icon" href="/favicon.ico" /> mtaulty.com/CommunityServer: <link rel="shortcut icon" type="image/ico" href="/CommunityServer/favicon.ico" /> <link rel="shortcut icon" href="http://www.examplesite.com/favicon.ico" type="image/x-icon" /> The most reliable method I've found is the last - to use the full URL - but it is not nice to have hardcoded strings like these. So how about using your method: <link rel="shortcut icon" href="http://127.0.0.1/favicon.ico" type="image/x-icon" /> or localhost: <link rel="shortcut icon" href="http://localhost/favicon.ico" type="image/x-icon" /> Anyone having experience with this? /gustav >>> DWUTKA at marlow.com 30-06-2009 18:49 >>> Actually, if you have an IP address, it is real. It then gets into what it is used for. For example, with your wireless, if it's not connected, it won't have an IP address. If a standard NIC is not connected, it will show no address. If it IS connected, but not receiving an IP address, it will default to a (I think) 169 something, which is a hard coded address, which means nothing. You can also have internal addresses such as 127.0.0.1, which is a loopback to your local machine. (so if you are running a website, putting in http://127.0.0.1 on the server will give you the local website). Drew From stuart at lexacorp.com.pg Tue Jun 30 16:40:26 2009 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 01 Jul 2009 07:40:26 +1000 Subject: [dba-VB] Syslogs In-Reply-To: <4a4a4b16.1c05d00a.735a.08ee@mx.google.com> References: <sa4a1857.085@cactus.dk>, <4A4A0CCF.5521.1B8DFD71@stuart.lexacorp.com.pg>, <4a4a4b16.1c05d00a.735a.08ee@mx.google.com> Message-ID: <4A4A864A.25927.1D68884C@stuart.lexacorp.com.pg> I dunno, I've never needed to find it, but John, Gustav & co were talking about needing to know he Subnet mask so I decided it would be a good idea to include it in the Class. On 30 Jun 2009 at 18:27, Max Wanadoo wrote: > Stuart, this is good stuff. > Why would I need to know the subnet mask in the context of finding the IP > and Hostname? > > Max > > > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan > Sent: 30 June 2009 14:02 > To: Discussion concerning Visual Basic and related programming issues. > Subject: Re: [dba-VB] Syslogs > > On 30 Jun 2009 at 13:50, Gustav Brock wrote: > > > However, no function is included to reveal the subnet mask. The only > "human" method I > >can locate for this purpose is to look up the registry: > > I just found another API call which returns more info including the SubNet > mask(s) so I've > modified clsResolve to include GetMyIPMask: > > Option Compare Database > Option Explicit > > '// define constants > Private Const IP_SUCCESS As Long = 0 > Private Const SOCKET_ERROR As Long = -1 > > Private Const MAX_WSADescription As Long = 256 > Private Const MAX_WSASYSStatus As Long = 128 > Private Const MIN_SOCKETS_REQD As Long = 1 > > Private Const WS_VERSION_REQD As Long = &H101 > Private Const WS_VERSION_MAJOR As Long = WS_VERSION_REQD \ &H100 And > &HFF& > Private Const WS_VERSION_MINOR As Long = WS_VERSION_REQD And &HFF& > > Private Const WSADescription_Len As Long = 256 > Private Const WSASYS_Status_Len As Long = 128 > Private Const AF_INET As Long = 2 > > '// structures > > Private Type HOSTENT > hName As Long > hAliases As Long > hAddrType As Integer > hLength As Integer > hAddrList As Long > End Type > > > Private Type WSADATA > wVersion As Integer > wHighVersion As Integer > szDescription(0 To MAX_WSADescription) As Byte > szSystemStatus(0 To MAX_WSASYSStatus) As Byte > wMaxSockets As Long > wMaxUDPDG As Long > dwVendorInfo As Long > End Type > > Private Type IPINFO > dwAddr As Long ' IP address > dwIndex As Long ' interface index > dwMask As Long ' subnet mask > dwBCastAddr As Long ' broadcast address > dwReasmSize As Long ' assembly size > unused1 As Integer ' not currently used > unused2 As Integer '; not currently used > End Type > > Private Type MIB_IPADDRTABLE > dEntrys As Long 'number of entries in the table > mIPInfo(5) As IPINFO 'array of IP address entries assumes maximum of 5 > Interfaces > End Type > > Private Type IP_Array > mBuffer As MIB_IPADDRTABLE > BufferLen As Long > End Type > > > '// api > 'kernel32 > Private Declare Sub apiCopyMemory Lib "kernel32" Alias "RtlMoveMemory" > (xDest As Any, > xSource As Any, ByVal nBytes As Long) > Private Declare Function apiStrLen Lib "kernel32" Alias "lstrlenA" (lpString > As Any) As Long > 'wsock32 > Private Declare Function apiGetHostByName Lib "wsock32.dll" Alias > "gethostbyname" > (ByVal hostname As String) As Long > Private Declare Function apiWSAStartup Lib "wsock32.dll" Alias "WSAStartup" > (ByVal > wVersionRequired As Long, lpWSADATA As WSADATA) As Long > Private Declare Function apiWSACleanup Lib "wsock32.dll" Alias "WSACleanup" > () As Long > Private Declare Function apiInetAddr Lib "wsock32.dll" Alias "inet_addr" > (ByVal s As String) > As Long > Private Declare Function apiGetHostByAddr Lib "wsock32.dll" Alias > "gethostbyaddr" (haddr > As Long, ByVal hnlen As Long, ByVal addrtype As Long) As Long > Private Declare Function apiGetHostName Lib "wsock32.dll" Alias > "gethostname" (ByVal > hostname$, ByVal HostLen As Integer) As Long > 'IPHlpAPI > Private Declare Function GetIpAddrTable Lib "IPHlpApi" (pIPAdrTable As Byte, > pdwSize As > Long, ByVal Sort As Long) As Long > > '// private functions > Private Function InitializeSocket() As Boolean > Dim WSAD As WSADATA > > 'attempt to initialize the socket > InitializeSocket = apiWSAStartup(WS_VERSION_REQD, WSAD) = IP_SUCCESS > End Function > > Private Sub CloseSocket() > 'try to close the socket > If apiWSACleanup() <> 0 Then > MsgBox "Error calling apiWSACleanup.", vbCritical > End If > > End Sub > > Public Function GetIPFromHostName(ByVal sHostName As String) As String > 'converts a host name to an IP address. > > Dim nBytes As Long > Dim ptrHosent As Long > Dim hstHost As HOSTENT > Dim ptrName As Long > Dim ptrAddress As Long > Dim ptrIPAddress As Long > Dim sAddress As String 'declare this as Dim sAddress(1) As String if you > want 2 ip > addresses returned > > 'try to initalize the socket > If InitializeSocket() = True Then > > 'try to get the IP > ptrHosent = apiGetHostByName(sHostName & vbNullChar) > > If ptrHosent <> 0 Then > > 'get the IP address > apiCopyMemory hstHost, ByVal ptrHosent, LenB(hstHost) > apiCopyMemory ptrIPAddress, ByVal hstHost.hAddrList, 4 > > 'fill buffer > sAddress = Space$(4) > 'if you want multiple domains returned, > 'fill all items in sAddress array with 4 spaces > > apiCopyMemory ByVal sAddress, ByVal ptrIPAddress, > hstHost.hLength > > 'change this to > 'CopyMemory ByVal sAddress(0), ByVal ptrIPAddress, > hstHost.hLength > 'if you want an array of ip addresses returned > '(some domains have more than one ip address associated with it) > > 'get the IP address > GetIPFromHostName = IPToText(sAddress) > 'if you are using multiple addresses, you need > IPToText(sAddress(0)) & "," & > IPToText(sAddress(1)) > 'etc > End If > Else > MsgBox "Failed to open Socket." > End If > End Function > > Private Function IPToText(ByVal IPAddress As String) As String > 'converts characters to numbers > IPToText = CStr(Asc(IPAddress)) & "." & _ > CStr(Asc(Mid$(IPAddress, 2, 1))) & "." & _ > CStr(Asc(Mid$(IPAddress, 3, 1))) & "." & _ > CStr(Asc(Mid$(IPAddress, 4, 1))) > End Function > > Private Function ConvertAddressToString(longAddr As Long) As String > Dim myByte(3) As Byte > Dim Cnt As Long > CopyMemory myByte(0), longAddr, 4 > For Cnt = 0 To 3 > ConvertAddressToString = ConvertAddressToString + CStr(myByte(Cnt)) > + "." > Next Cnt > ConvertAddressToString = Left$(ConvertAddressToString, > Len(ConvertAddressToString) > - 1) > End Function > > > Public Function GetHostNameFromIP(ByVal sIPAddress As String) As String > Dim ptrHosent As Long > Dim hAddress As Long > Dim sHost As String > Dim nBytes As Long > > 'try to open the socket > If InitializeSocket() = True Then > > 'convert string address to long datatype > hAddress = apiInetAddr(sIPAddress) > > 'check if an error ocucred > If hAddress <> SOCKET_ERROR Then > > 'obtain a pointer to the HOSTENT structure > 'that contains the name and address > 'corresponding to the given network address. > ptrHosent = apiGetHostByAddr(hAddress, 4, AF_INET) > > If ptrHosent <> 0 Then > > 'convert address and > 'get resolved hostname > > apiCopyMemory ptrHosent, ByVal ptrHosent, 4 > > nBytes = apiStrLen(ByVal ptrHosent) > > If nBytes > 0 Then > 'fill the IP address buffer > sHost = Space$(nBytes) > > apiCopyMemory ByVal sHost, ByVal ptrHosent, nBytes > GetHostNameFromIP = sHost > End If > Else > MsgBox "Call to gethostbyaddr failed." > End If > 'close the socket > CloseSocket > Else > MsgBox "Invalid IP address" > End If > Else > MsgBox "Failed to open Socket" > End If > End Function > > > Public Function GetMyHostName() As String > 'Finds local HostName > Dim strHostname As String > Dim lngHostLen As Long > 'try to initalize the socket > If InitializeSocket() = True Then > lngHostLen = 256 > strHostname = Space$(lngHostLen) > If apiGetHostName(strHostname, lngHostLen) = SOCKET_ERROR Then > MsgBox "Windows Sockets error getting Host Name" > Else > strHostname = Trim$(strHostname) > strHostname = Left$(strHostname, Len(strHostname) - 1) > End If > Else > MsgBox "Failed to open Socket." > End If > GetMyHostName = strHostname > End Function > > Public Function GetMyIPAddress() As String > GetMyIPAddress = GetIPFromHostName(GetMyHostName) > End Function > > Public Function GetMyIPMask() > Dim Ret As Long > Dim bBytes() As Byte > Dim tel As Long > Dim Listing As MIB_IPADDRTABLE > On Error GoTo END1 > GetIpAddrTable ByVal 0&, Ret, True > If Ret <= 0 Then Exit Function > ReDim bBytes(0 To Ret - 1) As Byte > 'retrieve the data > GetIpAddrTable bBytes(0), Ret, False > 'Get the first 4 bytes to get the entry's.. ip installed > CopyMemory Listing.dEntrys, bBytes(0), 4 > 'Copy whole structure to Listing and return for Adapter 1 (Adapter 0 > = Loopback) > CopyMemory Listing.mIPInfo(1), bBytes(4 + > (Len(Listing.mIPInfo(0)))), > Len(Listing.mIPInfo(1)) > GetIPMask = ConvertAddressToString(Listing.mIPInfo(1).dwMask) > Exit Function > END1: > MsgBox "Error Resolving Subnet Mask" > End Function > > > > > > > _______________________________________________ > 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 stuart at lexacorp.com.pg Tue Jun 30 17:13:21 2009 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 01 Jul 2009 08:13:21 +1000 Subject: [dba-VB] Syslogs In-Reply-To: <4A4A40BC.6060905@colbyconsulting.com> References: <sa490735.064@cactus.dk>, <A5615CBECEC42E4791D7A7C724E1E9B2024478C6@MIEXCH.Marlow.ii-vi.net>, <4A4A40BC.6060905@colbyconsulting.com> Message-ID: <4A4A8E01.28725.1D86AB27@stuart.lexacorp.com.pg> clResolve currently returns a string for Adapter 1. It can be easily modified to return arrays of Addresses and Masks for each adapter. (read the comments) -- Stuart On 30 Jun 2009 at 12:43, jwcolby wrote: > Yes, but then you have to do more. IPConfig shows several IP addresses on my work laptop. One is > the wireless, which only works when in range of a wireless network, one is a physical NIC, and one > is a Hamachi IP. There could be even more. On my server I have two physical NICS and in theory > each could have asked for an IP address. > > So would the REAL IP address please stand up. > > John W. Colby > www.ColbyConsulting.com > > > Drew Wutka wrote: > > There are several ways to get your IP address. Two I've used is to use > > a Winsock control, and look at the local host IP. > > > > Another relatively easy way is to dump the results of IPCONFIG to a text > > file. > > > > Create a .bat file (call it iptest.bat) and put the following line in > > it: > > > > Ipconfig >C:\ip.txt > > > > Then using ShellWait (http://mvps.org/access/api/api0004.htm) > > > > Use this function: > > > > Function IPAddresses() As String > > Dim f As Long > > Dim strTemp As String > > Dim strArray() As String > > If Dir("C:\ip.txt") <> "" Then Kill "C:\ip.txt" > > ShellWait "C:\iptest.bat" > > f = FreeFile > > Open "C:\ip.txt" For Binary Access Read As f > > strTemp = Space(LOF(f)) > > Get f, , strTemp > > Close f > > strArray = Split(strTemp, vbCrLf) > > strTemp = "" > > For f = 0 To UBound(strArray) > > If InStr(1, strArray(f), "IPv4", vbTextCompare) > 0 Or InStr(1, > > strArray(f), " IP Address", vbTextCompare) > 0 Then > > strTemp = strTemp & Trim(Mid(strArray(f), InStr(1, strArray(f), > > ":", vbBinaryCompare) + 1)) & ";" > > End If > > Next f > > If Len(strTemp) > 0 Then strTemp = Left(strTemp, Len(strTemp) - 1) > > IPAddresses = strTemp > > End Function > > > > Whalla, IPAddresses will return as a semicolon delimited string. > > (Obviously you could return an array or create a collection too...either > > way....) > > > > Drew > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com >