From kp at sdsonline.net Wed Mar 1 16:08:43 2006 From: kp at sdsonline.net (Kath Pelletti) Date: Thu, 2 Mar 2006 09:08:43 +1100 Subject: [dba-SQLServer] HELP!!! sQL SERVER WON'T INSTALL References: <001001c63c47$52d4a510$6401a8c0@user><003401c63cad$b3d33550$6401a8c0@user> Message-ID: <001d01c63d7c$b4d5b020$6401a8c0@office> I'll have a look at vmware - thanks for the tip. After 3 days I finally got SQL Server 2005 working. I discovered the following: - I was running Windows XP without service pack 2. SQL Server 2005 (and Vis STudio 2005) require SP2, but when I installed sp2 IT BROKE the COM+ applications in component services. I know that for sure because I restored to a ghost image with Win SP1, checked the Component services list, they were all there, installed SP2, and bang - they were gone. Yet on my Del laptop (new ) Windows sp2 runs fine with SQl Server. Anyway, I bought a new off the shelf copy of Windows which includes SP2 and started again. That solved (yahoo!) the COM error, but threw new errors. In the end my tip there was to install SQL Server component by component, rather than all in one hit (ie. first the database services, then trhe workstation components, then analysis services, reporting services, and integration separately.) That worked and thought I would post for the benefit of anyone else out there having problems. It's a b$#@! to install and going by the number of hits on SQl Server 2005 install errrors with google, I'd say that most people will have trouoble with it unless their Windows setup is very clean. A patched Win XP SP2 is not the same as a new off the shelf Win XP SP2 going by this. Kath ----- Original Message ----- From: "Francisco Tapia" To: Sent: Wednesday, March 01, 2006 9:27 AM Subject: Re: [dba-SQLServer] HELP!!! sQL SERVER WON'T INSTALL > No, but it could be a conflicting software problem. That's why I've > recently adopted to creating VM's(Virtual Machines) for first installs of > software, it gets me running on that platform, w/o affectign existing > software already loaded on my machine. > > On 2/28/06, Kath Pelletti wrote: >> >> Reload the OS? So you think this is a Windows setup problem? (I am >> loading >> full SQL Server 2005). >> >> Kath >> ----- Original Message ----- >> From: Francisco Tapia >> To: dba-sqlserver at databaseadvisors.com >> Sent: Wednesday, March 01, 2006 4:14 AM >> Subject: Re: [dba-SQLServer] HELP!!! sQL SERVER WON'T INSTALL >> >> >> the following may not help a lot, but... >> visit vmware.com and download their "free" vmserver, next install a >> clean OS >> and retry your VS2005/SS2005. There may be other conflicts with your >> exisiting environment. are you doing the full version or the express? >> >> -- >> Francisco >> >> On 2/28/06, Kath Pelletti wrote: >> > >> > Anyone help with this error? >> > >> > I have installed MS Visual Studio and then when trying top install >> SQL >> > Server 2005, it does a system configuration check and gives me an >> error >> > which prevents the install going through successfully. >> > >> > Error is: >> > >> > - COM Plus Catalog Requirement (Warning) >> > >> > Messages >> > >> > ? COM Plus Catalog Requirement >> > >> > >> > If SQL Server Setup fails, Setup will roll back the installation but >> may >> > not remove all .manifest files. The workaround is to rename the files >> and >> > then rerun Setup. For more information, see How to: Work Around COM+ >> Check >> > Failure in SQL Server Setup." >> > >> > >> > >> > >> > >> > I have looked thru help (and googled) and followed instructions there >> (to >> > reinstall Component services snap in, and reinstall com) and I've >> done >> > evrything suggested.. >> > >> > >> > >> > But no luck - - getting desperate after 8 hours of this today. I even >> > restored to a ghosted image and re-installed everything new only to >> get this >> > again. >> > >> > >> > >> > >> > >> > Kath Pelletti >> > _______________________________________________ >> > dba-SQLServer mailing list >> > dba-SQLServer at databaseadvisors.com >> > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver >> > http://www.databaseadvisors.com >> > >> > >> >> >> -- >> -Francisco >> http://pcthis.blogspot.com |PC news with out the jargon! >> http://sqlthis.blogspot.com | Tsql and More... >> _______________________________________________ >> dba-SQLServer mailing list >> dba-SQLServer at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/dba-sqlserver >> http://www.databaseadvisors.com >> >> _______________________________________________ >> dba-SQLServer mailing list >> dba-SQLServer at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/dba-sqlserver >> http://www.databaseadvisors.com >> >> > > > -- > -Francisco > http://pcthis.blogspot.com |PC news with out the jargon! > http://sqlthis.blogspot.com | Tsql and More... > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > > From darrend at nimble.com.au Wed Mar 1 17:52:44 2006 From: darrend at nimble.com.au (Darren HALL) Date: Thu, 2 Mar 2006 10:52:44 +1100 Subject: [dba-SQLServer] Percentages Message-ID: <20060301235245.MDNL15112.omta03ps.mx.bigpond.com@DENZILLAP> Hi All Cross posted to AccessD list Got a percentage format Q Is it possible to do the calcs and display the end result as a percentage actually in the column rather than do the converts and formats on the form or report? EG select ac.Description, sum(s.TotalCost), '% - ????' from InvoiceChargeSummary s join AccountCostCentre ac on s.AccountNo = ac.AccountNo where s.InvoiceNo = @InvoiceNo returning: AUBURN 50.00 20% MELBOURNE 100.00 40% WA 100.00 40% Many thanks DD From darrend at nimble.com.au Wed Mar 1 17:54:35 2006 From: darrend at nimble.com.au (Darren HALL) Date: Thu, 2 Mar 2006 10:54:35 +1100 Subject: [dba-SQLServer] HELP!!! sQL SERVER WON'T INSTALL In-Reply-To: <001d01c63d7c$b4d5b020$6401a8c0@office> Message-ID: <20060301235449.MGBQ15112.omta03ps.mx.bigpond.com@DENZILLAP> Hi Kath I have been watching this post Sorry I couldn't help but I have been experiencing similar - but not exactly the same errors - When Doing Desktop Engine installs with Visual Studio and Reporting services Thanks for the tips I have filed the original email Good luck Darren ------------------------------ T: 0424 696 433 -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti Sent: Thursday, 2 March 2006 9:09 AM To: dba-sqlserver at databaseadvisors.com Subject: Re: [dba-SQLServer] HELP!!! sQL SERVER WON'T INSTALL I'll have a look at vmware - thanks for the tip. After 3 days I finally got SQL Server 2005 working. I discovered the following: - I was running Windows XP without service pack 2. SQL Server 2005 (and Vis STudio 2005) require SP2, but when I installed sp2 IT BROKE the COM+ applications in component services. I know that for sure because I restored to a ghost image with Win SP1, checked the Component services list, they were all there, installed SP2, and bang - they were gone. Yet on my Del laptop (new ) Windows sp2 runs fine with SQl Server. Anyway, I bought a new off the shelf copy of Windows which includes SP2 and started again. That solved (yahoo!) the COM error, but threw new errors. In the end my tip there was to install SQL Server component by component, rather than all in one hit (ie. first the database services, then trhe workstation components, then analysis services, reporting services, and integration separately.) That worked and thought I would post for the benefit of anyone else out there having problems. It's a b$#@! to install and going by the number of hits on SQl Server 2005 install errrors with google, I'd say that most people will have trouoble with it unless their Windows setup is very clean. A patched Win XP SP2 is not the same as a new off the shelf Win XP SP2 going by this. Kath ----- Original Message ----- From: "Francisco Tapia" To: Sent: Wednesday, March 01, 2006 9:27 AM Subject: Re: [dba-SQLServer] HELP!!! sQL SERVER WON'T INSTALL > No, but it could be a conflicting software problem. That's why I've > recently adopted to creating VM's(Virtual Machines) for first installs of > software, it gets me running on that platform, w/o affectign existing > software already loaded on my machine. > > On 2/28/06, Kath Pelletti wrote: >> >> Reload the OS? So you think this is a Windows setup problem? (I am >> loading >> full SQL Server 2005). >> >> Kath >> ----- Original Message ----- >> From: Francisco Tapia >> To: dba-sqlserver at databaseadvisors.com >> Sent: Wednesday, March 01, 2006 4:14 AM >> Subject: Re: [dba-SQLServer] HELP!!! sQL SERVER WON'T INSTALL >> >> >> the following may not help a lot, but... >> visit vmware.com and download their "free" vmserver, next install a >> clean OS >> and retry your VS2005/SS2005. There may be other conflicts with your >> exisiting environment. are you doing the full version or the express? >> >> -- >> Francisco >> >> On 2/28/06, Kath Pelletti wrote: >> > >> > Anyone help with this error? >> > >> > I have installed MS Visual Studio and then when trying top install >> SQL >> > Server 2005, it does a system configuration check and gives me an >> error >> > which prevents the install going through successfully. >> > >> > Error is: >> > >> > - COM Plus Catalog Requirement (Warning) >> > >> > Messages >> > >> > . COM Plus Catalog Requirement >> > >> > >> > If SQL Server Setup fails, Setup will roll back the installation but >> may >> > not remove all .manifest files. The workaround is to rename the files >> and >> > then rerun Setup. For more information, see How to: Work Around COM+ >> Check >> > Failure in SQL Server Setup." >> > >> > >> > >> > >> > >> > I have looked thru help (and googled) and followed instructions there >> (to >> > reinstall Component services snap in, and reinstall com) and I've >> done >> > evrything suggested.. >> > >> > >> > >> > But no luck - - getting desperate after 8 hours of this today. I even >> > restored to a ghosted image and re-installed everything new only to >> get this >> > again. >> > >> > >> > >> > >> > >> > Kath Pelletti >> > _______________________________________________ >> > dba-SQLServer mailing list >> > dba-SQLServer at databaseadvisors.com >> > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver >> > http://www.databaseadvisors.com >> > >> > >> >> >> -- >> -Francisco >> http://pcthis.blogspot.com |PC news with out the jargon! >> http://sqlthis.blogspot.com | Tsql and More... >> _______________________________________________ >> dba-SQLServer mailing list >> dba-SQLServer at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/dba-sqlserver >> http://www.databaseadvisors.com >> >> _______________________________________________ >> dba-SQLServer mailing list >> dba-SQLServer at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/dba-sqlserver >> http://www.databaseadvisors.com >> >> > > > -- > -Francisco > http://pcthis.blogspot.com |PC news with out the jargon! > http://sqlthis.blogspot.com | Tsql and More... > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > > _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From darrend at nimble.com.au Wed Mar 1 22:19:39 2006 From: darrend at nimble.com.au (Darren DICK) Date: Thu, 2 Mar 2006 15:19:39 +1100 Subject: [dba-SQLServer] XML Q Message-ID: <20060302041943.JTHR14751.omta05ps.mx.bigpond.com@DENZILLAP> Hello all Cross Posted to dba_SQL List What is the minimum header information ineed to include before 'my data' starts to get a 'Well formed' xml doc? Eg the stuff that looks like References: <20060302041943.JTHR14751.omta05ps.mx.bigpond.com@DENZILLAP> Message-ID: I think it's just the version 1segment... i always use the xmlpad software http://www.download.com/XmlPad/3000-7241_4-10427113.html when i'm creating my one. On 3/1/06, Darren DICK wrote: > > Hello all > Cross Posted to dba_SQL List > What is the minimum header information ineed to include > before 'my data' starts > to get a 'Well formed' xml doc? > Eg the stuff that looks like > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > > > > etc etc > > > > many thanks > > > > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > > -- -Francisco http://pcthis.blogspot.com |PC news with out the jargon! http://sqlthis.blogspot.com | Tsql and More... From fhtapia at gmail.com Thu Mar 2 18:44:53 2006 From: fhtapia at gmail.com (Francisco Tapia) Date: Thu, 2 Mar 2006 16:44:53 -0800 Subject: [dba-SQLServer] Percentages In-Reply-To: <20060301235245.MDNL15112.omta03ps.mx.bigpond.com@DENZILLAP> References: <20060301235245.MDNL15112.omta03ps.mx.bigpond.com@DENZILLAP> Message-ID: I think you'd have to cast it..but then it'll be a text (string) value On 3/1/06, Darren HALL wrote: > > Hi All > Cross posted to AccessD list > > Got a percentage format Q > > Is it possible to do the calcs and display the end result as a percentage > actually in the column > rather than do the converts and formats on the form or report? > > EG > select ac.Description, sum(s.TotalCost), '% - ????' > > from InvoiceChargeSummary s > > join AccountCostCentre ac on > > s.AccountNo = ac.AccountNo > > where s.InvoiceNo = @InvoiceNo > > returning: > > AUBURN 50.00 20% > > MELBOURNE 100.00 40% > > WA 100.00 40% > > Many thanks > > DD > > > > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > > -- -Francisco http://pcthis.blogspot.com |PC news with out the jargon! http://sqlthis.blogspot.com | Tsql and More... From harkinsss at bellsouth.net Sat Mar 4 13:57:03 2006 From: harkinsss at bellsouth.net (Susan Harkins) Date: Sat, 4 Mar 2006 14:57:03 -0500 Subject: [dba-SQLServer] Cancel INSERT? Message-ID: <002a01c63fc5$cfbd3a70$a8b3d6d1@SUSANONE> I know I can wrap INSERT in a transaction. Barring a transaction that keeps the action from being committed, is there anyway to undo an INSERT action that's been committed? Susan H. From harkinsss at bellsouth.net Sat Mar 4 13:57:03 2006 From: harkinsss at bellsouth.net (Susan Harkins) Date: Sat, 4 Mar 2006 14:57:03 -0500 Subject: [dba-SQLServer] Sample databases Message-ID: <002d01c63fc5$dd242ac0$a8b3d6d1@SUSANONE> Is AdventureWorks new to SQL Server 2005 and SQL Server Express? I don't remember seeing it with 2000. Is there a SQL Server Express version of Northwind? I've looked, but haven't turned anything up. Thanks! Susan H. From stuart at lexacorp.com.pg Sat Mar 4 17:36:03 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sun, 05 Mar 2006 09:36:03 +1000 Subject: [dba-SQLServer] Cancel INSERT? In-Reply-To: <002a01c63fc5$cfbd3a70$a8b3d6d1@SUSANONE> Message-ID: <440AB103.8779.2AA5FBE@stuart.lexacorp.com.pg> On 4 Mar 2006 at 14:57, Susan Harkins wrote: > I know I can wrap INSERT in a transaction. Barring a transaction that keeps > the action from being committed, is there anyway to undo an INSERT action > that's been committed? > Assuming you have an Identity field, want to undo the INSERT immediately after it is committed, how about "Delete from myTable where Key = " & @@IDENTITY -- Stuart From dwaters at usinternet.com Sun Mar 5 14:25:11 2006 From: dwaters at usinternet.com (Dan Waters) Date: Sun, 5 Mar 2006 14:25:11 -0600 Subject: [dba-SQLServer] Reporting Services? Message-ID: <000001c64092$e84de620$0200a8c0@danwaters> I have a full copy of SQL Server (from the MS 2005 Launch Event). However, most of my customers are smaller companies and would be just fine with SQL Server Express. If I create reports using the full version of SQL Server, and implement an application that uses VB Express and SQL Server Express, could I use reports that I created using Reporting Services based on the full version of SQL Server? I'm considering moving from Access FE & BE to VB Express + SQL Server Express, and I really need to provide reports without asking my customers to invest in a third party reporting application - like Crystal Reports. Thanks! Dan From kp at sdsonline.net Sun Mar 5 22:47:37 2006 From: kp at sdsonline.net (Kath Pelletti) Date: Mon, 6 Mar 2006 15:47:37 +1100 Subject: [dba-SQLServer] vb.net interfaces Message-ID: <000a01c640d9$1891d850$6601a8c0@office> I am currently working on a new vb.net application and would love to see some sample application interface designs if anyone has any good links. (Alternatively a difft. list I could put this question to) tia ______________________________________ Kath Pelletti From martyconnelly at shaw.ca Mon Mar 6 10:57:37 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 06 Mar 2006 08:57:37 -0800 Subject: [dba-SQLServer] vb.net interfaces References: <000a01c640d9$1891d850$6601a8c0@office> Message-ID: <440C6A01.8000201@shaw.ca> Here is one that is interesting, use the flash viewer to see demo screens. http://www.seattleavionics.com/tours.shtml It is a flight planner for small aircraft that gathers info via multiple web services from things like maps, weather sites and Notams and also hooks into the planes GPS to show what is happening in flight. It took four guys a year to write in VB.Net Kath Pelletti wrote: >I am currently working on a new vb.net application and would love to see some sample application interface designs if anyone has any good links. > >(Alternatively a difft. list I could put this question to) > > >tia > >______________________________________ >Kath Pelletti >_______________________________________________ >dba-SQLServer mailing list >dba-SQLServer at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-sqlserver >http://www.databaseadvisors.com > > > > > -- Marty Connelly Victoria, B.C. Canada From fhtapia at gmail.com Mon Mar 6 12:24:52 2006 From: fhtapia at gmail.com (Francisco Tapia) Date: Mon, 6 Mar 2006 10:24:52 -0800 Subject: [dba-SQLServer] vb.net interfaces In-Reply-To: <000a01c640d9$1891d850$6601a8c0@office> References: <000a01c640d9$1891d850$6601a8c0@office> Message-ID: the dba-vb list is a good one for programming questions On 3/5/06, Kath Pelletti wrote: > > I am currently working on a new vb.net application and would love to see > some sample application interface designs if anyone has any good links. > > (Alternatively a difft. list I could put this question to) > > > tia > > ______________________________________ > Kath Pelletti > > -- -Francisco http://pcthis.blogspot.com |PC news with out the jargon! http://sqlthis.blogspot.com | Tsql and More... From fhtapia at gmail.com Mon Mar 6 12:42:28 2006 From: fhtapia at gmail.com (Francisco Tapia) Date: Mon, 6 Mar 2006 10:42:28 -0800 Subject: [dba-SQLServer] Cancel INSERT? In-Reply-To: <440AB103.8779.2AA5FBE@stuart.lexacorp.com.pg> References: <002a01c63fc5$cfbd3a70$a8b3d6d1@SUSANONE> <440AB103.8779.2AA5FBE@stuart.lexacorp.com.pg> Message-ID: @@ Identity may problematic as this variable will contain the last insert from anybody, using Scope_Identity() may be a better solution as it gives you the last id used in your session. If however the insert has ran and now you want to lookup what you did because you need to roll it back you can do it manually with software from quest software or idera On 3/4/06, Stuart McLachlan wrote: > > On 4 Mar 2006 at 14:57, Susan Harkins wrote: > > > I know I can wrap INSERT in a transaction. Barring a transaction that > keeps > > the action from being committed, is there anyway to undo an INSERT > action > > that's been committed? > > > > Assuming you have an Identity field, want to undo the INSERT immediately > after it is committed, how about "Delete from myTable where Key = " & > @@IDENTITY -- > Stuart > > > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > > -- -Francisco http://pcthis.blogspot.com |PC news with out the jargon! http://sqlthis.blogspot.com | Tsql and More... From harkinsss at bellsouth.net Mon Mar 6 12:46:01 2006 From: harkinsss at bellsouth.net (Susan Harkins) Date: Mon, 6 Mar 2006 13:46:01 -0500 Subject: [dba-SQLServer] Cancel INSERT? In-Reply-To: Message-ID: <001001c6414e$37ce4f80$8db3d6d1@SUSANONE> I was really thinking of something more automated like an .Undo. :) Susan H. @@ Identity may problematic as this variable will contain the last insert from anybody, using Scope_Identity() may be a better solution as it gives you the last id used in your session. If however the insert has ran and now you want to lookup what you did because you need to roll it back you can do it manually with software from quest software or idera > > > I know I can wrap INSERT in a transaction. Barring a transaction > > that > keeps > > the action from being committed, is there anyway to undo an INSERT > action > > that's been committed? From fhtapia at gmail.com Mon Mar 6 13:05:26 2006 From: fhtapia at gmail.com (Francisco Tapia) Date: Mon, 6 Mar 2006 11:05:26 -0800 Subject: [dba-SQLServer] Cancel INSERT? In-Reply-To: <001001c6414e$37ce4f80$8db3d6d1@SUSANONE> References: <001001c6414e$37ce4f80$8db3d6d1@SUSANONE> Message-ID: that would be begin transaction t1 IF @@ERROR <> 0 BEGIN ROLLBACK TRANSACTION t1 END ELSE BEGIN COMMIT TRANSACTION t1 END How else would you know which transaction you'd want to uncommit? Additionally you can always give your user a gui to review the data and perform a DELETE FROM myTable where ID = @ID On 3/6/06, Susan Harkins wrote: > > I was really thinking of something more automated like an .Undo. :) > > Susan H. > > @@ Identity may problematic as this variable will contain the last insert > from anybody, using Scope_Identity() may be a better solution as it gives > you the last id used in your session. If however the insert has ran and > now > you want to lookup what you did because you need to roll it back you can > do > it manually with software from quest software or idera > > > > > > > I know I can wrap INSERT in a transaction. Barring a transaction > > > that > > keeps > > > the action from being committed, is there anyway to undo an INSERT > > action > > > that's been committed? > > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > > -- -Francisco http://pcthis.blogspot.com |PC news with out the jargon! http://sqlthis.blogspot.com | Tsql and More... From harkinsss at bellsouth.net Mon Mar 6 14:17:54 2006 From: harkinsss at bellsouth.net (Susan Harkins) Date: Mon, 6 Mar 2006 15:17:54 -0500 Subject: [dba-SQLServer] provider name Message-ID: <003201c6415b$0df7f0a0$8db3d6d1@SUSANONE> Does anyone know the provider name for SQL Server Express? I tried SQLOLEDB, but it didn't work. I also used (local) for the server -- perhaps that's the problem? con.Open("Provider=SQLOLEDB;Server=(local);Database=AdventureWorks;Trusted_C onnection=Yes") Susan H. From mwp.reid at qub.ac.uk Mon Mar 6 14:38:14 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Mon, 6 Mar 2006 20:38:14 -0000 Subject: [dba-SQLServer] provider name References: <003201c6415b$0df7f0a0$8db3d6d1@SUSANONE> Message-ID: http://www.aspfaq.com/sql2005/show.asp?id=3 Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: dba-sqlserver-bounces at databaseadvisors.com on behalf of Susan Harkins Sent: Mon 06/03/2006 20:17 To: SQLList Subject: [dba-SQLServer] provider name Does anyone know the provider name for SQL Server Express? I tried SQLOLEDB, but it didn't work. I also used (local) for the server -- perhaps that's the problem? con.Open("Provider=SQLOLEDB;Server=(local);Database=AdventureWorks;Trusted_C onnection=Yes") Susan H. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From harkinsss at bellsouth.net Mon Mar 6 14:53:46 2006 From: harkinsss at bellsouth.net (Susan Harkins) Date: Mon, 6 Mar 2006 15:53:46 -0500 Subject: [dba-SQLServer] provider name In-Reply-To: Message-ID: <004c01c64160$10ab5e90$8db3d6d1@SUSANONE> That's interesting Martin -- I had tried a few variations of the provider name, but I hadn't expected the syntax of the statement to change. Thank you. Susan H. -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Monday, March 06, 2006 3:38 PM To: dba-sqlserver at databaseadvisors.com Subject: Re: [dba-SQLServer] provider name http://www.aspfaq.com/sql2005/show.asp?id=3 Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: dba-sqlserver-bounces at databaseadvisors.com on behalf of Susan Harkins Sent: Mon 06/03/2006 20:17 To: SQLList Subject: [dba-SQLServer] provider name Does anyone know the provider name for SQL Server Express? I tried SQLOLEDB, but it didn't work. I also used (local) for the server -- perhaps that's the problem? con.Open("Provider=SQLOLEDB;Server=(local);Database=AdventureWorks;Trusted_C onnection=Yes") Susan H. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.375 / Virus Database: 268.1.2/274 - Release Date: 3/3/2006 From kp at sdsonline.net Mon Mar 6 16:45:34 2006 From: kp at sdsonline.net (Kath Pelletti) Date: Tue, 7 Mar 2006 09:45:34 +1100 Subject: [dba-SQLServer] vb.net interfaces References: <000a01c640d9$1891d850$6601a8c0@office> <440C6A01.8000201@shaw.ca> Message-ID: <001601c64182$12a401d0$6601a8c0@office> Thanks Marty - amazing. Kath ----- Original Message ----- From: "MartyConnelly" To: Sent: Tuesday, March 07, 2006 3:57 AM Subject: Re: [dba-SQLServer] vb.net interfaces > Here is one that is interesting, use the flash viewer to see demo screens. > http://www.seattleavionics.com/tours.shtml > It is a flight planner for small aircraft that gathers info via multiple > web services from things like maps, weather sites and Notams > and also hooks into the planes GPS to show what is happening in flight. > It took four guys a year to write in VB.Net > > > Kath Pelletti wrote: > >>I am currently working on a new vb.net application and would love to see >>some sample application interface designs if anyone has any good links. >> >>(Alternatively a difft. list I could put this question to) >> >> >>tia >> >>______________________________________ >>Kath Pelletti >>_______________________________________________ >>dba-SQLServer mailing list >>dba-SQLServer at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/dba-sqlserver >>http://www.databaseadvisors.com >> >> >> >> >> > > -- > Marty Connelly > Victoria, B.C. > Canada > > > > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > From kp at sdsonline.net Mon Mar 6 16:46:40 2006 From: kp at sdsonline.net (Kath Pelletti) Date: Tue, 7 Mar 2006 09:46:40 +1100 Subject: [dba-SQLServer] vb.net interfaces References: <000a01c640d9$1891d850$6601a8c0@office> Message-ID: <001701c64182$13e841a0$6601a8c0@office> Thankss - didn;t know we had one of those. Subscribing now. Kath ----- Original Message ----- From: "Francisco Tapia" To: Sent: Tuesday, March 07, 2006 5:24 AM Subject: Re: [dba-SQLServer] vb.net interfaces > the dba-vb list is a good one for programming questions > > On 3/5/06, Kath Pelletti wrote: >> >> I am currently working on a new vb.net application and would love to see >> some sample application interface designs if anyone has any good links. >> >> (Alternatively a difft. list I could put this question to) >> >> >> tia >> >> ______________________________________ >> Kath Pelletti >> >> > -- > -Francisco > http://pcthis.blogspot.com |PC news with out the jargon! > http://sqlthis.blogspot.com | Tsql and More... > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > > From stuart at lexacorp.com.pg Mon Mar 6 19:45:47 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 07 Mar 2006 11:45:47 +1000 Subject: [dba-SQLServer] vb.net interfaces In-Reply-To: <001701c64182$13e841a0$6601a8c0@office> Message-ID: <440D726B.18866.5AB53AC@stuart.lexacorp.com.pg> On 7 Mar 2006 at 9:46, Kath Pelletti wrote: > Thankss - didn;t know we had one of those. Subscribing now. > > Kath Either I've been bounced from it or it's currently a *very* quiet list. I haven't seen anything new on dba_VB since mid January. -- Stuart From kp at sdsonline.net Tue Mar 7 00:21:23 2006 From: kp at sdsonline.net (Kath Pelletti) Date: Tue, 7 Mar 2006 17:21:23 +1100 Subject: [dba-SQLServer] vb.net interfaces References: <440D726B.18866.5AB53AC@stuart.lexacorp.com.pg> Message-ID: <002101c641af$5db800e0$6601a8c0@office> So - a bit like the Visio list? Kath ----- Original Message ----- From: "Stuart McLachlan" To: Sent: Tuesday, March 07, 2006 12:45 PM Subject: Re: [dba-SQLServer] vb.net interfaces > On 7 Mar 2006 at 9:46, Kath Pelletti wrote: > >> Thankss - didn;t know we had one of those. Subscribing now. >> >> Kath > > Either I've been bounced from it or it's currently a *very* quiet list. I > haven't seen anything new on dba_VB since mid January. > > > > > -- > Stuart > > > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > > From mikedorism at verizon.net Tue Mar 7 07:21:01 2006 From: mikedorism at verizon.net (Mike & Doris Manning) Date: Tue, 07 Mar 2006 08:21:01 -0500 Subject: [dba-SQLServer] vb.net interfaces In-Reply-To: <440D726B.18866.5AB53AC@stuart.lexacorp.com.pg> Message-ID: <000201c641e9$fba94e00$2f01a8c0@dorismanning> It is a very quiet list... Doris Manning mikedorism at verizon.net -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Monday, March 06, 2006 8:46 PM To: dba-sqlserver at databaseadvisors.com Subject: Re: [dba-SQLServer] vb.net interfaces On 7 Mar 2006 at 9:46, Kath Pelletti wrote: > Thankss - didn;t know we had one of those. Subscribing now. > > Kath Either I've been bounced from it or it's currently a *very* quiet list. I haven't seen anything new on dba_VB since mid January. -- Stuart _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From darrend at nimble.com.au Wed Mar 8 05:53:24 2006 From: darrend at nimble.com.au (Darren DICK) Date: Wed, 8 Mar 2006 22:53:24 +1100 Subject: [dba-SQLServer] Convert DateTime to dd/mm/yyyy Message-ID: <20060308115328.OXJM1358.omta03sl.mx.bigpond.com@DENZILLAP> Hi all In SQL, I am using convert to basically strip the time portion from a datetime field IE in the field we have the value...01/31/2005 11:05:34AM What I want is 31/01/2005 I have had minor success using Convert EG convert (char(10), BankingDate, 101) AS 'BankingDate', Gives me 01/31/2005 Cool - I have been able to strip the time but it is still in &^%$#$% North American date format ie mm/dd/yyyy What I want is dd/mm/yyyy - IE 31/1/2005 Any suggestions? Many thanks DD From Paul.Hartland at orridge.co.uk Wed Mar 8 06:00:12 2006 From: Paul.Hartland at orridge.co.uk (Paul Hartland) Date: Wed, 8 Mar 2006 12:00:12 -0000 Subject: [dba-SQLServer] Convert DateTime to dd/mm/yyyy Message-ID: <14A7AB003EFD444BBB193A23128DA20ED5AE75@AL-PRI.Aldridge.local> Darren, Try changing the 101 in your CONVERT statement to CONVERT(Char(10),BankingDate,103) PAUL HARTLAND Database Designer/Programmer paul.hartland at orridge.co.uk DDI - 01922 472031 Mobile - 07730 523179 -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: 08 March 2006 11:53 To: dba-SQL Server Subject: [dba-SQLServer] Convert DateTime to dd/mm/yyyy Hi all In SQL, I am using convert to basically strip the time portion from a datetime field IE in the field we have the value...01/31/2005 11:05:34AM What I want is 31/01/2005 I have had minor success using Convert EG convert (char(10), BankingDate, 101) AS 'BankingDate', Gives me 01/31/2005 Cool - I have been able to strip the time but it is still in &^%$#$% North American date format ie mm/dd/yyyy What I want is dd/mm/yyyy - IE 31/1/2005 Any suggestions? Many thanks DD _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com _______________________________________________ * This message is confidential. * This email, its content and any files transmitted with it are intended solely for the addressee and may be legally privileged and/or confidential. * Access by any other party is unauthorised without the express written permission of the sender. * If you have received this email in error you may not copy or use the contents, attachments or information in any way and any review, use, dissemination, forwarding, disclosure, alteration, printing of this information is strictly prohibited. Please destroy it and notify the sender via return e-mail. * This email has been prepared using information believed by Paul Hartland to be reliable and accurate, but the company makes no warranty as to accuracy or completeness. In particular the author does not accept responsibility for changes made to this email after it was sent. * Any opinions expressed in this document are those of the author and do not necessarily reflect the opinions of the company or its affiliates. The Orridge web site can be found at: http://www.orridge.co.uk From darrend at nimble.com.au Wed Mar 8 06:29:47 2006 From: darrend at nimble.com.au (Darren DICK) Date: Wed, 8 Mar 2006 23:29:47 +1100 Subject: [dba-SQLServer] Convert DateTime to dd/mm/yyyy In-Reply-To: <14A7AB003EFD444BBB193A23128DA20ED5AE75@AL-PRI.Aldridge.local> Message-ID: <20060308122951.NFJG24931.omta02sl.mx.bigpond.com@DENZILLAP> Brilliant Paul you da man Many thanks DD -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Paul Hartland Sent: Wednesday, 8 March 2006 11:00 PM To: dba-sqlserver at databaseadvisors.com Subject: Re: [dba-SQLServer] Convert DateTime to dd/mm/yyyy Darren, Try changing the 101 in your CONVERT statement to CONVERT(Char(10),BankingDate,103) PAUL HARTLAND Database Designer/Programmer paul.hartland at orridge.co.uk DDI - 01922 472031 Mobile - 07730 523179 -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: 08 March 2006 11:53 To: dba-SQL Server Subject: [dba-SQLServer] Convert DateTime to dd/mm/yyyy Hi all In SQL, I am using convert to basically strip the time portion from a datetime field IE in the field we have the value...01/31/2005 11:05:34AM What I want is 31/01/2005 I have had minor success using Convert EG convert (char(10), BankingDate, 101) AS 'BankingDate', Gives me 01/31/2005 Cool - I have been able to strip the time but it is still in &^%$#$% North American date format ie mm/dd/yyyy What I want is dd/mm/yyyy - IE 31/1/2005 Any suggestions? Many thanks DD _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com _______________________________________________ * This message is confidential. * This email, its content and any files transmitted with it are intended solely for the addressee and may be legally privileged and/or confidential. * Access by any other party is unauthorised without the express written permission of the sender. * If you have received this email in error you may not copy or use the contents, attachments or information in any way and any review, use, dissemination, forwarding, disclosure, alteration, printing of this information is strictly prohibited. Please destroy it and notify the sender via return e-mail. * This email has been prepared using information believed by Paul Hartland to be reliable and accurate, but the company makes no warranty as to accuracy or completeness. In particular the author does not accept responsibility for changes made to this email after it was sent. * Any opinions expressed in this document are those of the author and do not necessarily reflect the opinions of the company or its affiliates. The Orridge web site can be found at: http://www.orridge.co.uk _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From Paul.Hartland at orridge.co.uk Wed Mar 8 06:33:54 2006 From: Paul.Hartland at orridge.co.uk (Paul Hartland) Date: Wed, 8 Mar 2006 12:33:54 -0000 Subject: [dba-SQLServer] Convert DateTime to dd/mm/yyyy Message-ID: <14A7AB003EFD444BBB193A23128DA20ED5AE7B@AL-PRI.Aldridge.local> Just glad I could help, this list has helped me so many times. PAUL HARTLAND Database Designer/Programmer paul.hartland at orridge.co.uk DDI - 01922 472031 Mobile - 07730 523179 -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: 08 March 2006 12:30 To: dba-sqlserver at databaseadvisors.com Subject: Re: [dba-SQLServer] Convert DateTime to dd/mm/yyyy Brilliant Paul you da man Many thanks DD -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Paul Hartland Sent: Wednesday, 8 March 2006 11:00 PM To: dba-sqlserver at databaseadvisors.com Subject: Re: [dba-SQLServer] Convert DateTime to dd/mm/yyyy Darren, Try changing the 101 in your CONVERT statement to CONVERT(Char(10),BankingDate,103) PAUL HARTLAND Database Designer/Programmer paul.hartland at orridge.co.uk DDI - 01922 472031 Mobile - 07730 523179 -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: 08 March 2006 11:53 To: dba-SQL Server Subject: [dba-SQLServer] Convert DateTime to dd/mm/yyyy Hi all In SQL, I am using convert to basically strip the time portion from a datetime field IE in the field we have the value...01/31/2005 11:05:34AM What I want is 31/01/2005 I have had minor success using Convert EG convert (char(10), BankingDate, 101) AS 'BankingDate', Gives me 01/31/2005 Cool - I have been able to strip the time but it is still in &^%$#$% North American date format ie mm/dd/yyyy What I want is dd/mm/yyyy - IE 31/1/2005 Any suggestions? Many thanks DD _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com _______________________________________________ * This message is confidential. * This email, its content and any files transmitted with it are intended solely for the addressee and may be legally privileged and/or confidential. * Access by any other party is unauthorised without the express written permission of the sender. * If you have received this email in error you may not copy or use the contents, attachments or information in any way and any review, use, dissemination, forwarding, disclosure, alteration, printing of this information is strictly prohibited. Please destroy it and notify the sender via return e-mail. * This email has been prepared using information believed by Paul Hartland to be reliable and accurate, but the company makes no warranty as to accuracy or completeness. In particular the author does not accept responsibility for changes made to this email after it was sent. * Any opinions expressed in this document are those of the author and do not necessarily reflect the opinions of the company or its affiliates. The Orridge web site can be found at: http://www.orridge.co.uk _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From harkinsss at bellsouth.net Wed Mar 8 11:52:54 2006 From: harkinsss at bellsouth.net (Susan Harkins) Date: Wed, 8 Mar 2006 12:52:54 -0500 Subject: [dba-SQLServer] ADOX help Message-ID: <005801c642d9$211b46d0$ddb3d6d1@SUSANONE> Anybody here familiar with using ADOX and SQL Server and have some free time today? I need help completing an article -- all I would need is a few snippets of generic code -- but I need them today. Specifically, I'd like an example of appending a column to an existing table or appending a new table to a database. Also, I'd like a security example -- not as specific on it -- could be as simple as appending a new user to an existing group. Susan H. From harkinsss at bellsouth.net Wed Mar 8 12:30:54 2006 From: harkinsss at bellsouth.net (Susan Harkins) Date: Wed, 8 Mar 2006 13:30:54 -0500 Subject: [dba-SQLServer] ADOX help In-Reply-To: <005801c642d9$211b46d0$ddb3d6d1@SUSANONE> Message-ID: <006701c642de$81e63b00$ddb3d6d1@SUSANONE> It looks like the SQL Server Users and Groups collections aren't supported for ADOX -- anyone know for sure -- I may have misunderstood what I read. Susan H. Anybody here familiar with using ADOX and SQL Server and have some free time today? I need help completing an article -- all I would need is a few snippets of generic code -- but I need them today. Specifically, I'd like an example of appending a column to an existing table or appending a new table to a database. Also, I'd like a security example -- not as specific on it -- could be as simple as appending a new user to an existing group. From harkinsss at bellsouth.net Wed Mar 8 13:05:55 2006 From: harkinsss at bellsouth.net (Susan Harkins) Date: Wed, 8 Mar 2006 14:05:55 -0500 Subject: [dba-SQLServer] ADOX help In-Reply-To: <006701c642de$81e63b00$ddb3d6d1@SUSANONE> Message-ID: <006d01c642e3$54547b70$ddb3d6d1@SUSANONE> Here's what I'm trying to do and can't -- I want to append a column to an existing table, using ADOX. The code seems unnecessarily complex, and it doesn't work. :( I don't get an error, it just doesn't work. The FOR loop just runs through the Columns collection after the append, to see if it worked. It really isn't part of the failing technique, because that part works fine. The connection is fine. Susan H. 'Append column to existing table 'using ADOX. Dim cat As ADOX.Catalog Dim tbl As ADOX.Table Dim tblName As ADOX.Table Dim col As ADOX.Column Dim con As ADODB.Connection Dim strConnection As String con = New ADODB.Connection strConnection = "Provider=SQLOLEDB.1;" & _ "Data Source=.\SQLEXPRESS;" & _ "Initial Catalog = AdventureWorks;" & _ "Trusted_Connection=Yes" Debug.Print(strConnection) con.Open(strConnection) cat = New ADOX.Catalog cat.ActiveConnection = con tblName = New ADOX.Table tblName.Name = "Department" 'With tblName.Columns ' .Append("DepartmentHead", ADOX.DataTypeEnum.adChar) ' .Refresh() 'End With col = New ADOX.Column With col .Name = "DepartmentHead" .Type = ADOX.DataTypeEnum.adChar .DefinedSize = 20 .Attributes = ADOX.ColumnAttributesEnum.adColNullable End With tblName.Columns.Append(col) tblName.Columns.Refresh() tblName.ParentCatalog = cat For Each tbl In cat.Tables If tbl.Type = "TABLE" Then If tbl.Name = tblName.Name Then For Each col In tbl.Columns Debug.Print(col.Name) Next End If End If Next -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Wednesday, March 08, 2006 1:31 PM To: dba-sqlserver at databaseadvisors.com Subject: Re: [dba-SQLServer] ADOX help It looks like the SQL Server Users and Groups collections aren't supported for ADOX -- anyone know for sure -- I may have misunderstood what I read. Susan H. Anybody here familiar with using ADOX and SQL Server and have some free time today? I need help completing an article -- all I would need is a few snippets of generic code -- but I need them today. Specifically, I'd like an example of appending a column to an existing table or appending a new table to a database. Also, I'd like a security example -- not as specific on it -- could be as simple as appending a new user to an existing group. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.375 / Virus Database: 268.2.0/276 - Release Date: 3/7/2006 From harkinsss at bellsouth.net Wed Mar 8 14:06:08 2006 From: harkinsss at bellsouth.net (Susan Harkins) Date: Wed, 8 Mar 2006 15:06:08 -0500 Subject: [dba-SQLServer] FW: ADOX help Message-ID: <008601c642eb$bdfc63a0$ddb3d6d1@SUSANONE> I'm sorry -- I sent the wrong connection string: You can replace that block with the following: 'SQL Server connection string strConnection = "Provider=SQLOLEDB;" & _ "Server=(local);" & _ "Database=AdventureWorks;" & _ "Trusted_Connection=Yes" Here's what I'm trying to do and can't -- I want to append a column to an existing table, using ADOX. The code seems unnecessarily complex, and it doesn't work. :( I don't get an error, it just doesn't work. The FOR loop just runs through the Columns collection after the append, to see if it worked. It really isn't part of the failing technique, because that part works fine. The connection is fine. Susan H. 'Append column to existing table 'using ADOX. Dim cat As ADOX.Catalog Dim tbl As ADOX.Table Dim tblName As ADOX.Table Dim col As ADOX.Column Dim con As ADODB.Connection Dim strConnection As String con = New ADODB.Connection strConnection = "Provider=SQLOLEDB.1;" & _ "Data Source=.\SQLEXPRESS;" & _ "Initial Catalog = AdventureWorks;" & _ "Trusted_Connection=Yes" Debug.Print(strConnection) con.Open(strConnection) cat = New ADOX.Catalog cat.ActiveConnection = con tblName = New ADOX.Table tblName.Name = "Department" 'With tblName.Columns ' .Append("DepartmentHead", ADOX.DataTypeEnum.adChar) ' .Refresh() 'End With col = New ADOX.Column With col .Name = "DepartmentHead" .Type = ADOX.DataTypeEnum.adChar .DefinedSize = 20 .Attributes = ADOX.ColumnAttributesEnum.adColNullable End With tblName.Columns.Append(col) tblName.Columns.Refresh() tblName.ParentCatalog = cat For Each tbl In cat.Tables If tbl.Type = "TABLE" Then If tbl.Name = tblName.Name Then For Each col In tbl.Columns Debug.Print(col.Name) Next End If End If Next -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Wednesday, March 08, 2006 1:31 PM To: dba-sqlserver at databaseadvisors.com Subject: Re: [dba-SQLServer] ADOX help It looks like the SQL Server Users and Groups collections aren't supported for ADOX -- anyone know for sure -- I may have misunderstood what I read. Susan H. Anybody here familiar with using ADOX and SQL Server and have some free time today? I need help completing an article -- all I would need is a few snippets of generic code -- but I need them today. Specifically, I'd like an example of appending a column to an existing table or appending a new table to a database. Also, I'd like a security example -- not as specific on it -- could be as simple as appending a new user to an existing group. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.375 / Virus Database: 268.2.0/276 - Release Date: 3/7/2006 From andrew.haslett at ilc.gov.au Wed Mar 8 16:59:19 2006 From: andrew.haslett at ilc.gov.au (Haslett, Andrew) Date: Thu, 9 Mar 2006 09:29:19 +1030 Subject: [dba-SQLServer] ADOX help Message-ID: <0A870603A2A816459078203FC07F4CD2BE395B@adl01s055.ilcorp.gov.au> Can't you just submit an 'ALTER TABLE' statement rather than going through ADOX? -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Thursday, 9 March 2006 5:36 AM To: dba-sqlserver at databaseadvisors.com Subject: Re: [dba-SQLServer] ADOX help Here's what I'm trying to do and can't -- I want to append a column to an existing table, using ADOX. The code seems unnecessarily complex, and it doesn't work. :( I don't get an error, it just doesn't work. The FOR loop just runs through the Columns collection after the append, to see if it worked. It really isn't part of the failing technique, because that part works fine. The connection is fine. Susan H. 'Append column to existing table 'using ADOX. Dim cat As ADOX.Catalog Dim tbl As ADOX.Table Dim tblName As ADOX.Table Dim col As ADOX.Column Dim con As ADODB.Connection Dim strConnection As String con = New ADODB.Connection strConnection = "Provider=SQLOLEDB.1;" & _ "Data Source=.\SQLEXPRESS;" & _ "Initial Catalog = AdventureWorks;" & _ "Trusted_Connection=Yes" Debug.Print(strConnection) con.Open(strConnection) cat = New ADOX.Catalog cat.ActiveConnection = con tblName = New ADOX.Table tblName.Name = "Department" 'With tblName.Columns ' .Append("DepartmentHead", ADOX.DataTypeEnum.adChar) ' .Refresh() 'End With col = New ADOX.Column With col .Name = "DepartmentHead" .Type = ADOX.DataTypeEnum.adChar .DefinedSize = 20 .Attributes = ADOX.ColumnAttributesEnum.adColNullable End With tblName.Columns.Append(col) tblName.Columns.Refresh() tblName.ParentCatalog = cat For Each tbl In cat.Tables If tbl.Type = "TABLE" Then If tbl.Name = tblName.Name Then For Each col In tbl.Columns Debug.Print(col.Name) Next End If End If Next -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Wednesday, March 08, 2006 1:31 PM To: dba-sqlserver at databaseadvisors.com Subject: Re: [dba-SQLServer] ADOX help It looks like the SQL Server Users and Groups collections aren't supported for ADOX -- anyone know for sure -- I may have misunderstood what I read. Susan H. Anybody here familiar with using ADOX and SQL Server and have some free time today? I need help completing an article -- all I would need is a few snippets of generic code -- but I need them today. Specifically, I'd like an example of appending a column to an existing table or appending a new table to a database. Also, I'd like a security example -- not as specific on it -- could be as simple as appending a new user to an existing group. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.375 / Virus Database: 268.2.0/276 - Release Date: 3/7/2006 _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com IMPORTANT - PLEASE READ *** This email and any files transmitted with it are confidential and may contain information protected by law from disclosure. If you have received this message in error, please notify the sender immediately and delete this email from your system. No warranty is given that this email or files, if attached to this email, are free from computer viruses or other defects. They are provided on the basis the user assumes all responsibility for loss, damage or consequence resulting directly or indirectly from their use, whether caused by the negligence of the sender or not. From harkinsss at bellsouth.net Wed Mar 8 18:45:49 2006 From: harkinsss at bellsouth.net (Susan Harkins) Date: Wed, 8 Mar 2006 19:45:49 -0500 Subject: [dba-SQLServer] ADOX help In-Reply-To: <0A870603A2A816459078203FC07F4CD2BE395B@adl01s055.ilcorp.gov.au> Message-ID: <00a001c64312$d0428310$ddb3d6d1@SUSANONE> Probably -- just need examples of ADOX though. Susan H. Can't you just submit an 'ALTER TABLE' statement rather than going through ADOX? Here's what I'm trying to do and can't -- I want to append a column to an existing table, using ADOX. The code seems unnecessarily complex, and it doesn't work. :( I don't get an error, it just doesn't work. The FOR loop just runs through the Columns collection after the append, to see if it worked. It really isn't part of the failing technique, because that part works fine. The connection is fine. From martyconnelly at shaw.ca Wed Mar 8 22:54:00 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 08 Mar 2006 20:54:00 -0800 Subject: [dba-SQLServer] ADOX help References: <00a001c64312$d0428310$ddb3d6d1@SUSANONE> Message-ID: <440FB4E8.8050909@shaw.ca> A couple of examples, what you were missing was a Set cat.ActiveConnection = con statement. most of the info on setting field types is in "C:\Program Files\Microsoft Data Access SDK\Docs\ado260.chm" Sub ADOX_CreateSQLTable() 'from 'http://support.microsoft.com/?kbid=275252 ' reference Microsoft ADO Ext. 2.x for DDL and Security ADO 2.8 'This example demonstrates creating a table with 'Autoincrement, Decimal, and Memo columns. Dim tbl As New ADOX.Table Dim cat As New ADOX.Catalog 'Return Reference to current database. 'Set cat.ActiveConnection = CurrentProject.Connection Dim con As ADODB.Connection Dim strConnection As String Set con = New ADODB.Connection strConnection = "Provider=SQLOLEDB.1;" & _ "Data Source=.;" & _ "Initial Catalog = pubs;" & _ "Trusted_Connection=Yes" Debug.Print (strConnection) con.Open (strConnection) Set cat.ActiveConnection = con 'Assign the new table name. With tbl .Name = "Department" ' Append new columns to the table. With .Columns .Append "DepartmentHead", adWChar, 20 .Append "MyDecimal", adNumeric 'After appending columns, set 'provider specific properties. With !MyDecimal Set .ParentCatalog = cat .Precision = 2 .NumericScale = 1 End With With !MyVarChar Set .ParentCatalog = cat End With End With End With ' Append new table to the provider catalog and clean up. cat.Tables.Append tbl Dim col As ADOX.Column For Each tbl In cat.Tables If tbl.Type = "TABLE" Then 'If tbl.Name = tblName.Name Then For Each col In tbl.Columns Debug.Print (col.Name) Next 'End If End If Next Set cat = Nothing End Sub Sub ADOX_CreateSQLTableAlt() 'from 'http://support.microsoft.com/?kbid=275252 ' reference Microsoft ADO Ext. 2.x for DDL and Security ADO 2.8 Dim tbl As New ADOX.Table Dim cat As New ADOX.Catalog 'Return Reference to current database. 'Set cat.ActiveConnection = CurrentProject.Connection Dim con As ADODB.Connection Dim strConnection As String Set con = New ADODB.Connection strConnection = "Provider=SQLOLEDB.1;" & _ "Data Source=.;" & _ "Initial Catalog = pubs;" & _ "Trusted_Connection=Yes" Debug.Print (strConnection) con.Open (strConnection) Set cat.ActiveConnection = con 'Assign the new table name. With tbl .Name = "Department" ' Append new columns to the table. Dim col As ADOX.Column Set col = New ADOX.Column With col .Name = "DepartmentHead" .Type = ADOX.DataTypeEnum.adChar .DefinedSize = 20 .Attributes = ADOX.ColumnAttributesEnum.adColNullable End With .Columns.Append (col) .Columns.Refresh End With ' Append new table to the provider catalog and clean up. cat.Tables.Append tbl Dim colp As ADOX.Column For Each tbl In cat.Tables If tbl.Type = "TABLE" Then 'If tbl.Name = tblName.Name Then For Each colp In tbl.Columns Debug.Print (colp.Name) Next 'End If End If Next Set cat = Nothing End Sub Susan Harkins wrote: >Probably -- just need examples of ADOX though. > >Susan H. > >Can't you just submit an 'ALTER TABLE' statement rather than going through >ADOX? > > >Here's what I'm trying to do and can't -- I want to append a column to an >existing table, using ADOX. The code seems unnecessarily complex, and it >doesn't work. :( I don't get an error, it just doesn't work. The FOR loop >just runs through the Columns collection after the append, to see if it >worked. It really isn't part of the failing technique, because that part >works fine. The connection is fine. > > >_______________________________________________ >dba-SQLServer mailing list >dba-SQLServer at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-sqlserver >http://www.databaseadvisors.com > > > > > -- Marty Connelly Victoria, B.C. Canada From andrew.haslett at ilc.gov.au Wed Mar 8 23:15:57 2006 From: andrew.haslett at ilc.gov.au (Haslett, Andrew) Date: Thu, 9 Mar 2006 15:45:57 +1030 Subject: [dba-SQLServer] ADOX help Message-ID: <0A870603A2A816459078203FC07F4CD2BE3971@adl01s055.ilcorp.gov.au> Sorry, didn't realise this was for an Article. Figured it was just a task you needed to complete. -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Thursday, 9 March 2006 11:16 AM To: dba-sqlserver at databaseadvisors.com Subject: Re: [dba-SQLServer] ADOX help Probably -- just need examples of ADOX though. Susan H. Can't you just submit an 'ALTER TABLE' statement rather than going through ADOX? Here's what I'm trying to do and can't -- I want to append a column to an existing table, using ADOX. The code seems unnecessarily complex, and it doesn't work. :( I don't get an error, it just doesn't work. The FOR loop just runs through the Columns collection after the append, to see if it worked. It really isn't part of the failing technique, because that part works fine. The connection is fine. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com IMPORTANT - PLEASE READ *** This email and any files transmitted with it are confidential and may contain information protected by law from disclosure. If you have received this message in error, please notify the sender immediately and delete this email from your system. No warranty is given that this email or files, if attached to this email, are free from computer viruses or other defects. They are provided on the basis the user assumes all responsibility for loss, damage or consequence resulting directly or indirectly from their use, whether caused by the negligence of the sender or not. From harkinsss at bellsouth.net Thu Mar 9 07:50:10 2006 From: harkinsss at bellsouth.net (Susan Harkins) Date: Thu, 9 Mar 2006 08:50:10 -0500 Subject: [dba-SQLServer] ADOX help In-Reply-To: <0A870603A2A816459078203FC07F4CD2BE3971@adl01s055.ilcorp.gov.au> Message-ID: <000f01c64380$6b2b9110$c8b3d6d1@SUSANONE> Nope -- always an article. Always. :) Susan H. Sorry, didn't realise this was for an Article. Figured it was just a task you needed to complete. -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Thursday, 9 March 2006 11:16 AM To: dba-sqlserver at databaseadvisors.com Subject: Re: [dba-SQLServer] ADOX help Probably -- just need examples of ADOX though. Susan H. Can't you just submit an 'ALTER TABLE' statement rather than going through ADOX? Here's what I'm trying to do and can't -- I want to append a column to an existing table, using ADOX. The code seems unnecessarily complex, and it doesn't work. :( I don't get an error, it just doesn't work. The FOR loop just runs through the Columns collection after the append, to see if it worked. It really isn't part of the failing technique, because that part works fine. The connection is fine. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com IMPORTANT - PLEASE READ *** This email and any files transmitted with it are confidential and may contain information protected by law from disclosure. If you have received this message in error, please notify the sender immediately and delete this email from your system. No warranty is given that this email or files, if attached to this email, are free from computer viruses or other defects. They are provided on the basis the user assumes all responsibility for loss, damage or consequence resulting directly or indirectly from their use, whether caused by the negligence of the sender or not. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.375 / Virus Database: 268.2.0/276 - Release Date: 3/7/2006 From harkinsss at bellsouth.net Thu Mar 9 07:50:10 2006 From: harkinsss at bellsouth.net (Susan Harkins) Date: Thu, 9 Mar 2006 08:50:10 -0500 Subject: [dba-SQLServer] ADOX help In-Reply-To: <440FB4E8.8050909@shaw.ca> Message-ID: <001001c64380$6fd60650$c8b3d6d1@SUSANONE> Thanks Marty -- I know the cat statement's needed -- I hate those kinds of mistakes. :( I'll take a look at that site -- might help me a lot today. Susan H. -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Wednesday, March 08, 2006 11:54 PM To: dba-sqlserver at databaseadvisors.com Subject: Re: [dba-SQLServer] ADOX help A couple of examples, what you were missing was a Set cat.ActiveConnection = con statement. most of the info on setting field types is in "C:\Program Files\Microsoft Data Access SDK\Docs\ado260.chm" Sub ADOX_CreateSQLTable() 'from 'http://support.microsoft.com/?kbid=275252 ' reference Microsoft ADO Ext. 2.x for DDL and Security ADO 2.8 'This example demonstrates creating a table with 'Autoincrement, Decimal, and Memo columns. Dim tbl As New ADOX.Table Dim cat As New ADOX.Catalog 'Return Reference to current database. 'Set cat.ActiveConnection = CurrentProject.Connection Dim con As ADODB.Connection Dim strConnection As String Set con = New ADODB.Connection strConnection = "Provider=SQLOLEDB.1;" & _ "Data Source=.;" & _ "Initial Catalog = pubs;" & _ "Trusted_Connection=Yes" Debug.Print (strConnection) con.Open (strConnection) Set cat.ActiveConnection = con 'Assign the new table name. With tbl .Name = "Department" ' Append new columns to the table. With .Columns .Append "DepartmentHead", adWChar, 20 .Append "MyDecimal", adNumeric 'After appending columns, set 'provider specific properties. With !MyDecimal Set .ParentCatalog = cat .Precision = 2 .NumericScale = 1 End With With !MyVarChar Set .ParentCatalog = cat End With End With End With ' Append new table to the provider catalog and clean up. cat.Tables.Append tbl Dim col As ADOX.Column For Each tbl In cat.Tables If tbl.Type = "TABLE" Then 'If tbl.Name = tblName.Name Then For Each col In tbl.Columns Debug.Print (col.Name) Next 'End If End If Next Set cat = Nothing End Sub Sub ADOX_CreateSQLTableAlt() 'from 'http://support.microsoft.com/?kbid=275252 ' reference Microsoft ADO Ext. 2.x for DDL and Security ADO 2.8 Dim tbl As New ADOX.Table Dim cat As New ADOX.Catalog 'Return Reference to current database. 'Set cat.ActiveConnection = CurrentProject.Connection Dim con As ADODB.Connection Dim strConnection As String Set con = New ADODB.Connection strConnection = "Provider=SQLOLEDB.1;" & _ "Data Source=.;" & _ "Initial Catalog = pubs;" & _ "Trusted_Connection=Yes" Debug.Print (strConnection) con.Open (strConnection) Set cat.ActiveConnection = con 'Assign the new table name. With tbl .Name = "Department" ' Append new columns to the table. Dim col As ADOX.Column Set col = New ADOX.Column With col .Name = "DepartmentHead" .Type = ADOX.DataTypeEnum.adChar .DefinedSize = 20 .Attributes = ADOX.ColumnAttributesEnum.adColNullable End With .Columns.Append (col) .Columns.Refresh End With ' Append new table to the provider catalog and clean up. cat.Tables.Append tbl Dim colp As ADOX.Column For Each tbl In cat.Tables If tbl.Type = "TABLE" Then 'If tbl.Name = tblName.Name Then For Each colp In tbl.Columns Debug.Print (colp.Name) Next 'End If End If Next Set cat = Nothing End Sub Susan Harkins wrote: >Probably -- just need examples of ADOX though. > >Susan H. > >Can't you just submit an 'ALTER TABLE' statement rather than going >through ADOX? > > >Here's what I'm trying to do and can't -- I want to append a column to >an existing table, using ADOX. The code seems unnecessarily complex, >and it doesn't work. :( I don't get an error, it just doesn't work. The >FOR loop just runs through the Columns collection after the append, to >see if it worked. It really isn't part of the failing technique, >because that part works fine. The connection is fine. > > >_______________________________________________ >dba-SQLServer mailing list >dba-SQLServer at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-sqlserver >http://www.databaseadvisors.com > > > > > -- Marty Connelly Victoria, B.C. Canada _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.375 / Virus Database: 268.2.0/276 - Release Date: 3/7/2006 From harkinsss at bellsouth.net Thu Mar 9 07:50:10 2006 From: harkinsss at bellsouth.net (Susan Harkins) Date: Thu, 9 Mar 2006 08:50:10 -0500 Subject: [dba-SQLServer] ADOX help In-Reply-To: <440FB4E8.8050909@shaw.ca> Message-ID: <001101c64380$74c329e0$c8b3d6d1@SUSANONE> A couple of examples, what you were missing was a Set cat.ActiveConnection = con statement. most of the info on setting field types is in "C:\Program Files\Microsoft Data Access SDK\Docs\ado260.chm" Sub ADOX_CreateSQLTable() 'from 'http://support.microsoft.com/?kbid=275252 ' reference Microsoft ADO Ext. 2.x for DDL and Security ADO 2.8 'This example demonstrates creating a table with 'Autoincrement, Decimal, and Memo columns. Dim tbl As New ADOX.Table Dim cat As New ADOX.Catalog 'Return Reference to current database. 'Set cat.ActiveConnection = CurrentProject.Connection Dim con As ADODB.Connection Dim strConnection As String Set con = New ADODB.Connection strConnection = "Provider=SQLOLEDB.1;" & _ "Data Source=.;" & _ "Initial Catalog = pubs;" & _ "Trusted_Connection=Yes" Debug.Print (strConnection) con.Open (strConnection) Set cat.ActiveConnection = con 'Assign the new table name. With tbl .Name = "Department" ' Append new columns to the table. With .Columns .Append "DepartmentHead", adWChar, 20 .Append "MyDecimal", adNumeric 'After appending columns, set 'provider specific properties. With !MyDecimal Set .ParentCatalog = cat .Precision = 2 .NumericScale = 1 End With With !MyVarChar Set .ParentCatalog = cat End With End With End With ' Append new table to the provider catalog and clean up. cat.Tables.Append tbl Dim col As ADOX.Column For Each tbl In cat.Tables If tbl.Type = "TABLE" Then 'If tbl.Name = tblName.Name Then For Each col In tbl.Columns Debug.Print (col.Name) Next 'End If End If Next Set cat = Nothing End Sub Sub ADOX_CreateSQLTableAlt() 'from 'http://support.microsoft.com/?kbid=275252 ' reference Microsoft ADO Ext. 2.x for DDL and Security ADO 2.8 Dim tbl As New ADOX.Table Dim cat As New ADOX.Catalog 'Return Reference to current database. 'Set cat.ActiveConnection = CurrentProject.Connection Dim con As ADODB.Connection Dim strConnection As String Set con = New ADODB.Connection strConnection = "Provider=SQLOLEDB.1;" & _ "Data Source=.;" & _ "Initial Catalog = pubs;" & _ "Trusted_Connection=Yes" Debug.Print (strConnection) con.Open (strConnection) Set cat.ActiveConnection = con 'Assign the new table name. With tbl .Name = "Department" ' Append new columns to the table. Dim col As ADOX.Column Set col = New ADOX.Column With col .Name = "DepartmentHead" .Type = ADOX.DataTypeEnum.adChar .DefinedSize = 20 .Attributes = ADOX.ColumnAttributesEnum.adColNullable End With .Columns.Append (col) .Columns.Refresh End With ' Append new table to the provider catalog and clean up. cat.Tables.Append tbl Dim colp As ADOX.Column For Each tbl In cat.Tables If tbl.Type = "TABLE" Then 'If tbl.Name = tblName.Name Then For Each colp In tbl.Columns Debug.Print (colp.Name) Next 'End If End If Next Set cat = Nothing End Sub Susan Harkins wrote: >Probably -- just need examples of ADOX though. > >Susan H. > >Can't you just submit an 'ALTER TABLE' statement rather than going >through ADOX? > > >Here's what I'm trying to do and can't -- I want to append a column to >an existing table, using ADOX. The code seems unnecessarily complex, >and it doesn't work. :( I don't get an error, it just doesn't work. The >FOR loop just runs through the Columns collection after the append, to >see if it worked. It really isn't part of the failing technique, >because that part works fine. The connection is fine. > > >_______________________________________________ >dba-SQLServer mailing list >dba-SQLServer at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-sqlserver >http://www.databaseadvisors.com > > > > > -- Marty Connelly Victoria, B.C. Canada _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.375 / Virus Database: 268.2.0/276 - Release Date: 3/7/2006 From martyconnelly at shaw.ca Thu Mar 9 12:54:01 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 09 Mar 2006 10:54:01 -0800 Subject: [dba-SQLServer] ADOX help References: <005801c642d9$211b46d0$ddb3d6d1@SUSANONE> Message-ID: <441079C9.3040202@shaw.ca> There are limits on what can be done with ADOX with SQL Server as opposed to Jet through OLEDB provider. To get around these limits use a different tool SQL-DMO or the newer one for SQL Express SQL-SMO 'This is what the Documentation says... 'Provider Support for ADOX 'Certain features of ADOX are unsupported, depending upon your OLE DB data provider. ADOX is fully supported with the OLE DB Provider for Microsoft Jet. 'The unsupported features with the Microsoft OLE DB Provider for SQL Server, the Microsoft OLE DB Provider for ODBC, or the Microsoft OLE DB Provider for Oracle are listed below. 'ADOX is not supported by any other Microsoft OLE DB providers. 'Microsoft OLE DB Provider for SQL Server 'Object or Collection Usage Restriction 'Catalog object The Create method is not supported. 'Tables collection Properties are read/write prior to object creation, and read-only when referencing an existing object. 'Views collection Views is not supported. 'Procedures collection The Append and Delete methods are not supported. 'Procedure object The Command property is not supported. 'Keys collection The Append and Delete methods are not supported. 'Users collection Users is not supported. 'Groups collection Groups is not supported. Susan Harkins wrote: >Anybody here familiar with using ADOX and SQL Server and have some free time >today? I need help completing an article -- all I would need is a few >snippets of generic code -- but I need them today. Specifically, I'd like an >example of appending a column to an existing table or appending a new table >to a database. Also, I'd like a security example -- not as specific on it -- >could be as simple as appending a new user to an existing group. > >Susan H. > > > -- Marty Connelly Victoria, B.C. Canada From jeffrey.demulling at usbank.com Thu Mar 9 13:29:03 2006 From: jeffrey.demulling at usbank.com (jeffrey.demulling at usbank.com) Date: Thu, 9 Mar 2006 13:29:03 -0600 Subject: [dba-SQLServer] Return new id number In-Reply-To: Message-ID: Basics: FE = A2K BE = SQL2K I am trying to use the code below with the accompanying stored procedure when inserting a new record into the employee table. Once the employee is entered into the table I want to know the record number for this employee. The access code for inserting the employee and returning the new id number is: Public Function lngAddEmployee(strEmployeeName As String, strEmployeeEmail As String, varEmployeePhone As Variant, lngEmployeeManager As Long) As Long Dim con As New ADODB.Connection Dim cmd As New ADODB.Command Dim rs As New ADODB.Recordset cmd.CommandText = "sproc_APPEND_New_Employee" cmd.CommandType = adCmdStoredProc con = setSQLServerConnectionApplication(2, 2) con.Open cmd.ActiveConnection = con cmd.Parameters.Refresh cmd(1) = strEmployeeName cmd(2) = strEmployeeEmail cmd(3) = varEmployeePhone cmd(4) = lngEmployeeManager Set rs = cmd.Execute lngAddEmployee = rs.Fields(0).Value con.Close Set rs = Nothing Set con = Nothing Set cmd = Nothing End Function I have been trying to test it using: Sub Test() MsgBox lngAddEmployee("Test", "TestEmail", "TestPhone", 7) MsgBox "Finished" End Sub In the function it hangs on the line lngAddEmployee = rs.Fields(0).Value The stored procedure is the following and if I use Query Analyzer it works just fine and returns the id of the new record. CREATE PROCEDURE dbo.sproc_APPEND_New_Employee ----------------------------------------------------------------------------------------- -- Procedure: APPEND_New_Employee -- Author: Jeffrey F. Demulling -- Create Date: 2006-03-09 -- Database Name: DebtMaster -- Table Names: tblEmployee -- Purpose: Upload a new Employee -- -- -- Maintenance log- Most recent changes first -- Updated By Updated Date Description of Change ------------------------------------------------------------------------------------------ -- -- ------------------------------------------------------------------------------------------ @strEmployeeName nvarchar(255), @strEmployeeEmail nvarchar(255), @strEmployeePhone nvarchar(50), @intEmployeeManager int AS INSERT INTO tblEmployee ( EmployeeName, EmployeeEmail, EmployeePhone, EmployeeManager) VALUES ( @strEmployeeName, @strEmployeeEmail, @strEmployeePhone, @intEmployeeManager) SELECT SCOPE_IDENTITY() AS 'InternalEmployeeNumber' GO Can anyone see what I am doing wrong? TIA Jeffrey F. Demulling Project Manager U.S. Bank Corporate Trust Services 60 Livingston Avenue EP-MN-WS3C St. Paul, MN 55107-2292 Ph: 651-495-3925 Fax: 651-495-8103 Pager: 888-732-3909 Text Messaging: 8887323909 at my2way.com email: jeffrey.demulling at usbank.com ------------------------------------------------------------------------------ Electronic Privacy Notice. This e-mail, and any attachments, contains information that is, or may be, covered by electronic communications privacy laws, and is also confidential and proprietary in nature. If you are not the intended recipient, please be advised that you are legally prohibited from retaining, using, copying, distributing, or otherwise disclosing this information in any manner. Instead, please reply to the sender that you have received this communication in error, and then immediately delete it. Thank you in advance for your cooperation. ============================================================================== From mikedorism at verizon.net Thu Mar 9 15:11:47 2006 From: mikedorism at verizon.net (Mike & Doris Manning) Date: Thu, 09 Mar 2006 16:11:47 -0500 Subject: [dba-SQLServer] Return new id number In-Reply-To: Message-ID: <000601c643be$1422a5a0$2f01a8c0@dorismanning> You need to modify your stored procedure to RETURN the new identity value to Access. Doris Manning mikedorism at verizon.net -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of jeffrey.demulling at usbank.com Sent: Thursday, March 09, 2006 2:29 PM To: accessd at databaseadvisors.com; dba-sqlserver at databaseadvisors.com Subject: [dba-SQLServer] Return new id number Basics: FE = A2K BE = SQL2K I am trying to use the code below with the accompanying stored procedure when inserting a new record into the employee table. Once the employee is entered into the table I want to know the record number for this employee. The access code for inserting the employee and returning the new id number is: Public Function lngAddEmployee(strEmployeeName As String, strEmployeeEmail As String, varEmployeePhone As Variant, lngEmployeeManager As Long) As Long Dim con As New ADODB.Connection Dim cmd As New ADODB.Command Dim rs As New ADODB.Recordset cmd.CommandText = "sproc_APPEND_New_Employee" cmd.CommandType = adCmdStoredProc con = setSQLServerConnectionApplication(2, 2) con.Open cmd.ActiveConnection = con cmd.Parameters.Refresh cmd(1) = strEmployeeName cmd(2) = strEmployeeEmail cmd(3) = varEmployeePhone cmd(4) = lngEmployeeManager Set rs = cmd.Execute lngAddEmployee = rs.Fields(0).Value con.Close Set rs = Nothing Set con = Nothing Set cmd = Nothing End Function I have been trying to test it using: Sub Test() MsgBox lngAddEmployee("Test", "TestEmail", "TestPhone", 7) MsgBox "Finished" End Sub In the function it hangs on the line lngAddEmployee = rs.Fields(0).Value The stored procedure is the following and if I use Query Analyzer it works just fine and returns the id of the new record. CREATE PROCEDURE dbo.sproc_APPEND_New_Employee ---------------------------------------------------------------------------- ------------- -- Procedure: APPEND_New_Employee -- Author: Jeffrey F. Demulling -- Create Date: 2006-03-09 -- Database Name: DebtMaster -- Table Names: tblEmployee -- Purpose: Upload a new Employee -- -- -- Maintenance log- Most recent changes first -- Updated By Updated Date Description of Change ---------------------------------------------------------------------------- -------------- -- -- ---------------------------------------------------------------------------- -------------- @strEmployeeName nvarchar(255), @strEmployeeEmail nvarchar(255), @strEmployeePhone nvarchar(50), @intEmployeeManager int AS INSERT INTO tblEmployee ( EmployeeName, EmployeeEmail, EmployeePhone, EmployeeManager) VALUES ( @strEmployeeName, @strEmployeeEmail, @strEmployeePhone, @intEmployeeManager) SELECT SCOPE_IDENTITY() AS 'InternalEmployeeNumber' GO Can anyone see what I am doing wrong? TIA Jeffrey F. Demulling Project Manager U.S. Bank Corporate Trust Services 60 Livingston Avenue EP-MN-WS3C St. Paul, MN 55107-2292 Ph: 651-495-3925 Fax: 651-495-8103 Pager: 888-732-3909 Text Messaging: 8887323909 at my2way.com email: jeffrey.demulling at usbank.com ---------------------------------------------------------------------------- -- Electronic Privacy Notice. This e-mail, and any attachments, contains information that is, or may be, covered by electronic communications privacy laws, and is also confidential and proprietary in nature. If you are not the intended recipient, please be advised that you are legally prohibited from retaining, using, copying, distributing, or otherwise disclosing this information in any manner. Instead, please reply to the sender that you have received this communication in error, and then immediately delete it. Thank you in advance for your cooperation. ============================================================================ == _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From harkinsss at bellsouth.net Thu Mar 9 18:21:28 2006 From: harkinsss at bellsouth.net (Susan Harkins) Date: Thu, 9 Mar 2006 19:21:28 -0500 Subject: [dba-SQLServer] ADOX help In-Reply-To: <441079C9.3040202@shaw.ca> Message-ID: <003101c643d8$940a55a0$c8b3d6d1@SUSANONE> Yeah -- I saw this last night, but thank you for helping. :) Susan H. There are limits on what can be done with ADOX with SQL Server as opposed to Jet through OLEDB provider. To get around these limits use a different tool SQL-DMO or the newer one for SQL Express SQL-SMO 'This is what the Documentation says... 'Provider Support for ADOX 'Certain features of ADOX are unsupported, depending upon your OLE DB data provider. ADOX is fully supported with the OLE DB Provider for Microsoft Jet. 'The unsupported features with the Microsoft OLE DB Provider for SQL Server, the Microsoft OLE DB Provider for ODBC, or the Microsoft OLE DB Provider for Oracle are listed below. 'ADOX is not supported by any other Microsoft OLE DB providers. 'Microsoft OLE DB Provider for SQL Server 'Object or Collection Usage Restriction 'Catalog object The Create method is not supported. 'Tables collection Properties are read/write prior to object creation, and read-only when referencing an existing object. 'Views collection Views is not supported. 'Procedures collection The Append and Delete methods are not supported. 'Procedure object The Command property is not supported. 'Keys collection The Append and Delete methods are not supported. 'Users collection Users is not supported. 'Groups collection Groups is not supported. Susan Harkins wrote: >Anybody here familiar with using ADOX and SQL Server and have some free >time today? I need help completing an article -- all I would need is a >few snippets of generic code -- but I need them today. Specifically, >I'd like an example of appending a column to an existing table or >appending a new table to a database. Also, I'd like a security example >-- not as specific on it -- could be as simple as appending a new user to an existing group. > >Susan H. > > > -- Marty Connelly Victoria, B.C. Canada _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.375 / Virus Database: 268.2.1/277 - Release Date: 3/8/2006 From harkinsss at bellsouth.net Fri Mar 10 08:11:29 2006 From: harkinsss at bellsouth.net (Susan Harkins) Date: Fri, 10 Mar 2006 09:11:29 -0500 Subject: [dba-SQLServer] VB Express question Message-ID: <001001c6444c$878b62a0$a4b3d6d1@SUSANONE> I hate to show my ignorance -- I am truly embarrassed to have to ask such a seemingly basic question. How do I debug a function procedure? I can't figure out how to call one so I can debug it or test it. Susan H. From Paul.Hartland at orridge.co.uk Fri Mar 10 09:49:13 2006 From: Paul.Hartland at orridge.co.uk (Paul Hartland) Date: Fri, 10 Mar 2006 15:49:13 -0000 Subject: [dba-SQLServer] SQL Server 2000 - View 3 records as 1 record Message-ID: <14A7AB003EFD444BBB193A23128DA20ED5AFF3@AL-PRI.Aldridge.local> To all, Sorry about the subject but didn't quite know how to word it (Friday and getting tired now).....For an example lets say I have a query that produces the following results: JobDate JobNo Supervisors 13/03/2006 12345 Paul Hartland 13/03/2006 12345 Fred Bloggs 13/03/2006 12345 Someone Else Because we do some large stores we can have anything upto 6 supervisors/managers on one job, the result I need to output would be like below: Jobdate JobNo Supervisors 13/03/2006 12345 Paul Hartland, Fred Bloggs, Someone Else Is there someway in a View or Stored Procedure that I can produce the result above ? Thanks in advance for any help/sample code on this. PAUL HARTLAND Database Designer/Programmer paul.hartland at orridge.co.uk DDI - 01922 472031 Mobile - 07730 523179 _______________________________________________ * This message is confidential. * This email, its content and any files transmitted with it are intended solely for the addressee and may be legally privileged and/or confidential. * Access by any other party is unauthorised without the express written permission of the sender. * If you have received this email in error you may not copy or use the contents, attachments or information in any way and any review, use, dissemination, forwarding, disclosure, alteration, printing of this information is strictly prohibited. Please destroy it and notify the sender via return e-mail. * This email has been prepared using information believed by Paul Hartland to be reliable and accurate, but the company makes no warranty as to accuracy or completeness. In particular the author does not accept responsibility for changes made to this email after it was sent. * Any opinions expressed in this document are those of the author and do not necessarily reflect the opinions of the company or its affiliates. The Orridge web site can be found at: http://www.orridge.co.uk From harkinsss at bellsouth.net Fri Mar 10 10:31:21 2006 From: harkinsss at bellsouth.net (Susan Harkins) Date: Fri, 10 Mar 2006 11:31:21 -0500 Subject: [dba-SQLServer] Date problem Message-ID: <000c01c64460$11cffb70$a4b3d6d1@SUSANONE> I'm trying to use a date in an expression If pro.ModifiedDate < dte Then But SQL Server gives me an error -- first it says I can't use the < operator with Date. What's up with that? Susan H. From tuxedo_man at hotmail.com Fri Mar 10 13:45:54 2006 From: tuxedo_man at hotmail.com (Billy Pang) Date: Fri, 10 Mar 2006 19:45:54 +0000 Subject: [dba-SQLServer] Date problem In-Reply-To: <000c01c64460$11cffb70$a4b3d6d1@SUSANONE> Message-ID: is this in TSQL? why is there a "pro." prefix in the expression? afaik it should be technically possible to use < operator for date expressions. maybe it thinks either "pro.ModifiedDate" or "dte" is not a date. Billy ps. some people think having coffee is also not considered a date; only movie and dinner >From: "Susan Harkins" >Reply-To: dba-sqlserver at databaseadvisors.com >To: "SQLList" >Subject: [dba-SQLServer] Date problem >Date: Fri, 10 Mar 2006 11:31:21 -0500 > >I'm trying to use a date in an expression > >If pro.ModifiedDate < dte Then > >But SQL Server gives me an error -- first it says I can't use the < >operator >with Date. What's up with that? > >Susan H. > >_______________________________________________ >dba-SQLServer mailing list >dba-SQLServer at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-sqlserver >http://www.databaseadvisors.com > From andrew.haslett at ilc.gov.au Fri Mar 10 15:16:20 2006 From: andrew.haslett at ilc.gov.au (Haslett, Andrew) Date: Sat, 11 Mar 2006 07:46:20 +1030 Subject: [dba-SQLServer] SQL Server 2000 - View 3 records as 1 record Message-ID: <0A870603A2A816459078203FC07F4CD2BE3980@adl01s055.ilcorp.gov.au> Try this: http://www.4guysfromrolla.com/webtech/092105-1.shtml Cheers. Andrew -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Paul Hartland Sent: Saturday, 11 March 2006 2:19 AM To: dba-sqlserver at databaseadvisors.com Subject: [dba-SQLServer] SQL Server 2000 - View 3 records as 1 record Importance: High To all, Sorry about the subject but didn't quite know how to word it (Friday and getting tired now).....For an example lets say I have a query that produces the following results: JobDate JobNo Supervisors 13/03/2006 12345 Paul Hartland 13/03/2006 12345 Fred Bloggs 13/03/2006 12345 Someone Else Because we do some large stores we can have anything upto 6 supervisors/managers on one job, the result I need to output would be like below: Jobdate JobNo Supervisors 13/03/2006 12345 Paul Hartland, Fred Bloggs, Someone Else Is there someway in a View or Stored Procedure that I can produce the result above ? Thanks in advance for any help/sample code on this. PAUL HARTLAND Database Designer/Programmer paul.hartland at orridge.co.uk DDI - 01922 472031 Mobile - 07730 523179 _______________________________________________ * This message is confidential. * This email, its content and any files transmitted with it are intended solely for the addressee and may be legally privileged and/or confidential. * Access by any other party is unauthorised without the express written permission of the sender. * If you have received this email in error you may not copy or use the contents, attachments or information in any way and any review, use, dissemination, forwarding, disclosure, alteration, printing of this information is strictly prohibited. Please destroy it and notify the sender via return e-mail. * This email has been prepared using information believed by Paul Hartland to be reliable and accurate, but the company makes no warranty as to accuracy or completeness. In particular the author does not accept responsibility for changes made to this email after it was sent. * Any opinions expressed in this document are those of the author and do not necessarily reflect the opinions of the company or its affiliates. The Orridge web site can be found at: http://www.orridge.co.uk _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com IMPORTANT - PLEASE READ *** This email and any files transmitted with it are confidential and may contain information protected by law from disclosure. If you have received this message in error, please notify the sender immediately and delete this email from your system. No warranty is given that this email or files, if attached to this email, are free from computer viruses or other defects. They are provided on the basis the user assumes all responsibility for loss, damage or consequence resulting directly or indirectly from their use, whether caused by the negligence of the sender or not. From harkinsss at bellsouth.net Fri Mar 10 16:17:04 2006 From: harkinsss at bellsouth.net (Susan Harkins) Date: Fri, 10 Mar 2006 17:17:04 -0500 Subject: [dba-SQLServer] Date problem In-Reply-To: Message-ID: <002c01c64490$673e3fb0$a4b3d6d1@SUSANONE> Yes, I'm using T-SQL. The pro is simply a variable that represents the ADOX Procedures collection. I declared dte as a Date data type. I'm with you Billy -- I have never seen this kind of error when comparing dates before. I haven't looked at it anymore this afternoon. I'm going to test the pro.ModifiedDate property setting and see what it's returning -- possibly .Modified Date and Date aren't compatible? I don't know why they wouldn't be, but it's the best I can come up with at this point. ModifiedDate may possible be a DateTime, but you would think it would still reconcile the difference. Susan H. P.S. Coffee is "do I want to date you" viewing time. :) is this in TSQL? why is there a "pro." prefix in the expression? afaik it should be technically possible to use < operator for date expressions. maybe it thinks either "pro.ModifiedDate" or "dte" is not a date. Billy ps. some people think having coffee is also not considered a date; only movie and dinner From harkinsss at bellsouth.net Fri Mar 10 16:36:09 2006 From: harkinsss at bellsouth.net (Susan Harkins) Date: Fri, 10 Mar 2006 17:36:09 -0500 Subject: [dba-SQLServer] Date problem In-Reply-To: <002c01c64490$673e3fb0$a4b3d6d1@SUSANONE> Message-ID: <003701c64493$0f7190e0$a4b3d6d1@SUSANONE> Procedures object, not collection -- sorry. Susan H. Yes, I'm using T-SQL. The pro is simply a variable that represents the ADOX Procedures collection. I declared dte as a Date data type. I'm with you Billy -- I have never seen this kind of error when comparing dates before. From darrend at nimble.com.au Sun Mar 12 20:03:57 2006 From: darrend at nimble.com.au (Darren DICK) Date: Mon, 13 Mar 2006 13:03:57 +1100 Subject: [dba-SQLServer] Running SQL SPROCS from Access Message-ID: <20060313020406.LAKJ3168.omta02ps.mx.bigpond.com@DENZILLAP> Cross posted to dba-AccessD list Hi All Once I have made a connection to an SQL dB Is there a way to execute SPROCS in that dB Special code or special syntax etc? Indeed - is there even a special connection routine needed - given the latest AccessD threads on connecting with updatable connections (ADOB) Many thanks in advance DD From jeffrey.demulling at usbank.com Mon Mar 13 10:34:51 2006 From: jeffrey.demulling at usbank.com (jeffrey.demulling at usbank.com) Date: Mon, 13 Mar 2006 10:34:51 -0600 Subject: [dba-SQLServer] Running SQL SPROCS from Access In-Reply-To: <20060313020406.LAKJ3168.omta02ps.mx.bigpond.com@DENZILLAP> Message-ID: Darren, I use the following depending if the SP returns a record set or not. No recordset Public Sub DeleteEmployee(lngEmployeeNumber As Long) '--------------------------------------------------------------------------------------- ' Procedure : DeleteEmployee ' DateTime : 2006-Mar-08 12:49 12:49 ' Author : Jeffrey F. Demulling ' Purpose : '--------------------------------------------------------------------------------------- ' Dim con As New ADODB.Connection Dim cmd As New ADODB.Command On Error GoTo DeleteEmployee_Error cmd.CommandText = "sproc_DELETE_Employee" cmd.CommandType = adCmdStoredProc con = setSQLServerConnectionApplication(2, 2) con.Open cmd.ActiveConnection = con cmd.Parameters.Refresh cmd(1) = lngEmployeeNumber cmd.Execute con.Close Set con = Nothing Set cmd = Nothing On Error GoTo 0 Exit Sub DeleteEmployee_Error: MsgBox "Error " & Err.Number & " (" & Err.Description & ") in procedure DeleteEmployee of Module mdlEmployee" End Sub Return recordset Public Function lngGetEmployeeNumber(strEmployeeName As String) As Long '--------------------------------------------------------------------------------------- ' Procedure : lngGetEmployeeNumber ' DateTime : 2006-Mar-10 10:14 10:14 ' Author : Jeffrey F. Demulling ' Purpose : '--------------------------------------------------------------------------------------- ' Dim con As New ADODB.Connection Dim cmd As New ADODB.Command Dim rs As New ADODB.Recordset On Error GoTo lngGetEmployeeNumber_Error cmd.CommandText = "sproc_SELECT_Employee_Name_Number" cmd.CommandType = adCmdStoredProc con = setSQLServerConnectionApplication(1, 1) con.Open cmd.ActiveConnection = con cmd.Parameters.Refresh cmd(1) = strEmployeeName Set rs = cmd.Execute lngGetEmployeeNumber = rs.Fields("InternalEmployeeNumber") rs.Close con.Close Set rs = Nothing Set con = Nothing Set cmd = Nothing On Error GoTo 0 Exit Function lngGetEmployeeNumber_Error: MsgBox "Error " & Err.Number & " (" & Err.Description & ") in procedure lngGetEmployeeNumber of Module mdlEmployee" End Function Jeffrey F. Demulling Project Manager U.S. Bank Corporate Trust Services 60 Livingston Avenue EP-MN-WS3C St. Paul, MN 55107-2292 Ph: 651-495-3925 Fax: 651-495-8103 Pager: 888-732-3909 Text Messaging: 8887323909 at my2way.com email: jeffrey.demulling at usbank.com "Darren DICK" To Sent by: "dba-SQL Server" dba-sqlserver-bou sors.com cc Subject 03/12/2006 08:03 [dba-SQLServer] Running SQL SPROCS PM from Access Please respond to dba-sqlserver at dat abaseadvisors.com Cross posted to dba-AccessD list Hi All Once I have made a connection to an SQL dB Is there a way to execute SPROCS in that dB Special code or special syntax etc? Indeed - is there even a special connection routine needed - given the latest AccessD threads on connecting with updatable connections (ADOB) Many thanks in advance DD _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com ------------------------------------------------------------------------------ Electronic Privacy Notice. This e-mail, and any attachments, contains information that is, or may be, covered by electronic communications privacy laws, and is also confidential and proprietary in nature. If you are not the intended recipient, please be advised that you are legally prohibited from retaining, using, copying, distributing, or otherwise disclosing this information in any manner. Instead, please reply to the sender that you have received this communication in error, and then immediately delete it. Thank you in advance for your cooperation. ============================================================================== From Patricia.O'Connor at otda.state.ny.us Mon Mar 13 13:43:05 2006 From: Patricia.O'Connor at otda.state.ny.us (O'Connor, Patricia (OTDA)) Date: Mon, 13 Mar 2006 14:43:05 -0500 Subject: [dba-SQLServer] Data from Oracle to SQL Server Message-ID: <01DBAB52E30A9A4AB3D94EF8029EDBE8016B246F@EXCNYSM0A1AI.nysemail.nyenet> I am not that knowledgeable in SQL SERVER. Will become more so in the next few months but need some help now. Thanks in advance for any help. We have a large database in ORACLE. From this is generated a monthly summary report that does contain calculated fields. They have now decided they want to create a table on an MS SQL SERVER database that contains/matches the data in this report. One person wants to have a special view created on the Oracle DB for each month so that they can use an MS SQL Server WIZARD to extract this data to Sql server. The last thing I want is to have to use a WIZARD every month or have one non-IT person responsible to run this wizard every month. I prefer to have things like this in a PRODUCTION ROUTINE type mode. Either a proc or sql query/make table query that can be scheduled to run. One person says they can't run a query that has calculated fields to make a table in SQL server. I know in ORACLE I can make a table using query and subqueries containing pretty much any type field including calculated fields. Can't this also be done from a SQL SERVER database. Granted the original data is located in another database. Can you send me an example on how to set this up or where to look. Patti ************************************************** * Patricia O'Connor * Associate Computer Programmer Analyst * OTDA - BDMA * (W) mailto:Patricia.O'Connor at otda.state.ny.us * (w) mailto:aa1160 at nysemail.otda.state.ny.us ************************************************** -------------------------------------------------------- This e-mail, including any attachments, may be confidential, privileged or otherwise legally protected. It is intended only for the addressee. If you received this e-mail in error or from someone who was not authorized to send it to you, do not disseminate, copy or otherwise use this e-mail or its attachments. Please notify the sender immediately by reply e-mail and delete the e-mail from your system. From michael at ddisolutions.com.au Mon Mar 13 21:49:39 2006 From: michael at ddisolutions.com.au (Michael Maddison) Date: Tue, 14 Mar 2006 14:49:39 +1100 Subject: [dba-SQLServer] Data from Oracle to SQL Server Message-ID: <59A61174B1F5B54B97FD4ADDE71E7D0116A3C4@ddi-01.DDI.local> Hi Patricia, DTS is what you are after. It would not take long to whip up a DTS package to handle the import from Oracle. You can then schedule the package to run monthly. I'd also write a function to determine the date range you want to import so no human intervention would be required. cheers Michael M www.ddisolutions.com.au -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of O'Connor, Patricia (OTDA) Sent: Tuesday, 14 March 2006 6:43 AM To: dba-sqlserver at databaseadvisors.com Subject: [dba-SQLServer] Data from Oracle to SQL Server I am not that knowledgeable in SQL SERVER. Will become more so in the next few months but need some help now. Thanks in advance for any help. We have a large database in ORACLE. From this is generated a monthly summary report that does contain calculated fields. They have now decided they want to create a table on an MS SQL SERVER database that contains/matches the data in this report. One person wants to have a special view created on the Oracle DB for each month so that they can use an MS SQL Server WIZARD to extract this data to Sql server. The last thing I want is to have to use a WIZARD every month or have one non-IT person responsible to run this wizard every month. I prefer to have things like this in a PRODUCTION ROUTINE type mode. Either a proc or sql query/make table query that can be scheduled to run. One person says they can't run a query that has calculated fields to make a table in SQL server. I know in ORACLE I can make a table using query and subqueries containing pretty much any type field including calculated fields. Can't this also be done from a SQL SERVER database. Granted the original data is located in another database. Can you send me an example on how to set this up or where to look. Patti ************************************************** * Patricia O'Connor * Associate Computer Programmer Analyst * OTDA - BDMA * (W) mailto:Patricia.O'Connor at otda.state.ny.us * (w) mailto:aa1160 at nysemail.otda.state.ny.us ************************************************** -------------------------------------------------------- This e-mail, including any attachments, may be confidential, privileged or otherwise legally protected. It is intended only for the addressee. If you received this e-mail in error or from someone who was not authorized to send it to you, do not disseminate, copy or otherwise use this e-mail or its attachments. Please notify the sender immediately by reply e-mail and delete the e-mail from your system. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From michael at ddisolutions.com.au Mon Mar 13 21:56:35 2006 From: michael at ddisolutions.com.au (Michael Maddison) Date: Tue, 14 Mar 2006 14:56:35 +1100 Subject: [dba-SQLServer] VB Express question Message-ID: <59A61174B1F5B54B97FD4ADDE71E7D0116A3C5@ddi-01.DDI.local> Hi Susan, Not used VBExpress but in SQL2K you needed to 'call' the function from a sproc to be able to step into when debugging. Doubt that helps, but... cheers Michael M www.ddisolutions.com.au -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Saturday, 11 March 2006 1:11 AM To: SQLList Subject: [dba-SQLServer] VB Express question I hate to show my ignorance -- I am truly embarrassed to have to ask such a seemingly basic question. How do I debug a function procedure? I can't figure out how to call one so I can debug it or test it. Susan H. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From harkinsss at bellsouth.net Tue Mar 14 08:00:17 2006 From: harkinsss at bellsouth.net (Susan Harkins) Date: Tue, 14 Mar 2006 09:00:17 -0500 Subject: [dba-SQLServer] VB Express question In-Reply-To: <59A61174B1F5B54B97FD4ADDE71E7D0116A3C5@ddi-01.DDI.local> Message-ID: <000501c6476f$a5818a70$e3b3d6d1@SUSANONE> Sounds right -- kind of a nuisance. :( Thanks! Susan H. Not used VBExpress but in SQL2K you needed to 'call' the function from a sproc to be able to step into when debugging. Doubt that helps, but... From accessdsql at yahoo.com Wed Mar 15 02:08:30 2006 From: accessdsql at yahoo.com (Species 2175) Date: Wed, 15 Mar 2006 00:08:30 -0800 (PST) Subject: [dba-SQLServer] Nice to meet you! Message-ID: <20060315080830.62449.qmail@web37410.mail.mud.yahoo.com> Hi group, just signed in to this group. I've been a member of the Accessd-list for several years...come to think of it....that could be around 8 years!? Well, nice to meet you all and mail to you soon. Regards, Sander --------------------------------- Yahoo! Travel Find great deals to the top 10 hottest destinations! From fhtapia at gmail.com Wed Mar 15 12:58:44 2006 From: fhtapia at gmail.com (Francisco Tapia) Date: Wed, 15 Mar 2006 10:58:44 -0800 Subject: [dba-SQLServer] Nice to meet you! In-Reply-To: <20060315080830.62449.qmail@web37410.mail.mud.yahoo.com> References: <20060315080830.62449.qmail@web37410.mail.mud.yahoo.com> Message-ID: welcome aboard ! On 3/15/06, Species 2175 wrote: > Hi group, > > just signed in to this group. > I've been a member of the Accessd-list for several years...come to think of > it....that could be around 8 years!? > > Well, nice to meet you all and mail to you soon. > > Regards, > > Sander > > > --------------------------------- > Yahoo! Travel > Find great deals to the top 10 hottest destinations! > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > > -- -Francisco http://pcthis.blogspot.com |PC news with out the jargon! http://sqlthis.blogspot.com | Tsql and More... From darrend at nimble.com.au Wed Mar 15 16:20:13 2006 From: darrend at nimble.com.au (Darren DICK) Date: Thu, 16 Mar 2006 09:20:13 +1100 Subject: [dba-SQLServer] Nice to meet you! In-Reply-To: <20060315080830.62449.qmail@web37410.mail.mud.yahoo.com> Message-ID: <20060315222106.NZVE1358.omta03sl.mx.bigpond.com@DENZILLAP> Hey Sander Welcome What's with the Species 2175 monica? See ya on list Darren ------------------------------ T: 0424 696 433 -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Species 2175 Sent: Wednesday, 15 March 2006 7:09 PM To: dba-sqlserver at databaseadvisors.com Subject: [dba-SQLServer] Nice to meet you! Hi group, just signed in to this group. I've been a member of the Accessd-list for several years...come to think of it....that could be around 8 years!? Well, nice to meet you all and mail to you soon. Regards, Sander --------------------------------- Yahoo! Travel Find great deals to the top 10 hottest destinations! _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From harkinsss at bellsouth.net Thu Mar 16 08:58:45 2006 From: harkinsss at bellsouth.net (Susan Harkins) Date: Thu, 16 Mar 2006 09:58:45 -0500 Subject: [dba-SQLServer] Contest Message-ID: <000d01c6490a$271dc1c0$d5b3d6d1@SUSANONE> http://www.madeinexpresscontest.com/ Got this link from Mike G's site -- thought it might inspire someone. :) Susan H. From accessdsql at yahoo.com Thu Mar 16 09:03:44 2006 From: accessdsql at yahoo.com (Species 2175) Date: Thu, 16 Mar 2006 07:03:44 -0800 (PST) Subject: [dba-SQLServer] Nice to meet you! In-Reply-To: <20060315222106.NZVE1358.omta03sl.mx.bigpond.com@DENZILLAP> Message-ID: <20060316150344.91054.qmail@web37409.mail.mud.yahoo.com> Species2175 is a nickname...dunno who monica is. Send me a photo and I'll get back to you on that one ;-) Darren DICK wrote: Hey Sander Welcome What's with the Species 2175 monica? See ya on list Darren ------------------------------ T: 0424 696 433 -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Species 2175 Sent: Wednesday, 15 March 2006 7:09 PM To: dba-sqlserver at databaseadvisors.com Subject: [dba-SQLServer] Nice to meet you! Hi group, just signed in to this group. I've been a member of the Accessd-list for several years...come to think of it....that could be around 8 years!? Well, nice to meet you all and mail to you soon. Regards, Sander --------------------------------- Yahoo! Travel Find great deals to the top 10 hottest destinations! _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com --------------------------------- Yahoo! Mail Bring photos to life! New PhotoMail makes sharing a breeze. From accessdsql at yahoo.com Thu Mar 16 09:08:40 2006 From: accessdsql at yahoo.com (Species 2175) Date: Thu, 16 Mar 2006 07:08:40 -0800 (PST) Subject: [dba-SQLServer] Executing SP's Message-ID: <20060316150840.38017.qmail@web37403.mail.mud.yahoo.com> hi group, I'm using SQL Server 2000. I've developed an application that uses a lot of sp's. To make this easy for the FE created 4 stored procedures that call 15-35 other sp's. e.g.: create stored proc usp_DoSomething as begin exec usp_DoSomething1 exec usp_DoSomething2 exec usp_DoSomething3 exec usp_DoSomething4 end Is there a performance penalty for this way of working? Eg in stead of calling/executing each sp on it's own? Regards, Sander --------------------------------- Yahoo! Mail Use Photomail to share photos without annoying attachments. From fhtapia at gmail.com Thu Mar 16 10:21:51 2006 From: fhtapia at gmail.com (Francisco Tapia) Date: Thu, 16 Mar 2006 08:21:51 -0800 Subject: [dba-SQLServer] Executing SP's In-Reply-To: <20060316150840.38017.qmail@web37403.mail.mud.yahoo.com> References: <20060316150840.38017.qmail@web37403.mail.mud.yahoo.com> Message-ID: As with all things, it depends... If you are doing a lot of searches in the back end for specific gui display, then it makes sense to do something similar to what you are doing. however if certain portions of your screen will not draw until a user clicks on them, it may make more sense to break some of the calls up, so that each call can be snappier, plus you don't make the backend work more than it should.... On 3/16/06, Species 2175 wrote: > hi group, > > I'm using SQL Server 2000. > I've developed an application that uses a lot of sp's. > To make this easy for the FE created 4 stored procedures that call 15-35 other sp's. > > e.g.: > create stored proc usp_DoSomething > as > begin > exec usp_DoSomething1 > exec usp_DoSomething2 > exec usp_DoSomething3 > exec usp_DoSomething4 > end > > Is there a performance penalty for this way of working? > Eg in stead of calling/executing each sp on it's own? > > Regards, > > Sander > > > -- -Francisco http://pcthis.blogspot.com |PC news with out the jargon! http://sqlthis.blogspot.com | Tsql and More... From harkinsss at bellsouth.net Sat Mar 18 09:45:45 2006 From: harkinsss at bellsouth.net (Susan Harkins) Date: Sat, 18 Mar 2006 10:45:45 -0500 Subject: [dba-SQLServer] Express already has a service release :) Message-ID: <000a01c64aa3$05f14360$c4b3d6d1@SUSANONE> http://www.computerworld.com/softwaretopics/software/story/0,10801,109567,00 .html?source=NLT_PM&nid=109567 Susan H. From erbachs at gmail.com Tue Mar 28 10:58:15 2006 From: erbachs at gmail.com (Steve Erbach) Date: Tue, 28 Mar 2006 10:58:15 -0600 Subject: [dba-SQLServer] ISP doesn't support SQL Server? Message-ID: <39cb22f30603280858s59a46cbaw365299a2afc0c3d@mail.gmail.com> Dear Group, I'm out of my depth with this one, so I'm hoping that my question makes sense. I have a client that has web sites on two separate ISP/servers. One site is hosted by Earthlink and it's a pretty simple half-dozen page site with information about my client's company. It contains a link to a big web ASP/SQL Server application she purchased which is accessible by members only. That ASP/SQL application is hosted on a separate server. I designed the simple company information site for my client. The home page contains links to the other pages, of course. One of those other pages contains industry-related news items. The home page contains the headlines and links to those news items on the News page. Changes to the news headlines and news items is done by physically modifying the HTML code in those pages -- the old-fashioned way. I suggested to my client that she could have a more "dynamic" set of news items if the information were extracted from a table in her current SQL Server database and laid out in her company information pages using some simple ASP/ADO routines. So far so good. By the way, we're talking "classic" ASP, not ASP.NET. I made a copy of the home page to start with and made it an ASP page and inserted the code to open a Connection to the SQL database and a RecordSet and so forth to extract the data, as well as the looping code to format the pertinent industry headlines. Well, the page runs fine except no news headlines appear at all. No ASP error messages, just a little blank space where the headlines and their links to the News page should appear. I got on-line with Earthlink using their chat capability to talk with a support guy. At first I thought it might have been that I didn't make the web site an IIS Application Starting Point. That didn't seem to be the issue. But then the support guy told me that Earthlink did not support SQL Server. He said that I could use Access tables for my queries and that that would work fine. Here's my question: Since Earthlink supports Access in an ASP application, does that mean that they simply did not install the SQL Server ADO library or object handlers or whatever it's called, and that their statement that they do not support SQL Server means just that? Why on earth would a big outfit like that NOT install SQL Server ADO capabilities? It doesn't make sense. -- Regards, Steve Erbach Scientific Marketing Neenah, WI www.swerbach.com Security Page: www.swerbach.com/security From rl_stewart at highstream.net Tue Mar 28 13:25:00 2006 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Tue, 28 Mar 2006 14:25:00 -0500 Subject: [dba-SQLServer] ISP doesn't support SQL Server? In-Reply-To: References: Message-ID: <1143573900.44298d8c695e5@webmail.highstream.net> Steve, There is more to it than that. They would have to install SQL Server. And since they do not have it available, why would they install any drivers for it? Most of the inexpensive ISPs are on Linux and would not support SQL Server, only MySQL. If you want SQL Server and ASP/ASP.Net capabilities, here is a shameless advertisement... go to http://www.WeBeDb.com and check out the 2nd lowest level package. I say shameless advertising because I own the site I am sending you to. I put together the hosting idea about a year ago as affordable SQL Server hosting plans for people that need it. This is Windows 2003 based with SQL Server 2000 and 2005 available. Robert L. Stewart The Dyson Group International Software for the Non-profit Enterprise Expanding your Sphere of Knowledge > Date: Tue, 28 Mar 2006 10:58:15 -0600 > From: "Steve Erbach" > Subject: [dba-SQLServer] ISP doesn't support SQL Server? > To: SQLList > Message-ID: > <39cb22f30603280858s59a46cbaw365299a2afc0c3d at mail.gmail.com> > Content-Type: text/plain; charset=ISO-8859-1 > > Dear Group, > > I'm out of my depth with this one, so I'm hoping that my question makes > sense. > > I have a client that has web sites on two separate ISP/servers. One > site is hosted by Earthlink and it's a pretty simple half-dozen page > site with information about my client's company. It contains a link > to a big web ASP/SQL Server application she purchased which is > accessible by members only. That ASP/SQL application is hosted on a > separate server. > > I designed the simple company information site for my client. The > home page contains links to the other pages, of course. One of those > other pages contains industry-related news items. The home page > contains the headlines and links to those news items on the News page. > Changes to the news headlines and news items is done by physically > modifying the HTML code in those pages -- the old-fashioned way. > > I suggested to my client that she could have a more "dynamic" set of > news items if the information were extracted from a table in her > current SQL Server database and laid out in her company information > pages using some simple ASP/ADO routines. So far so good. By the > way, we're talking "classic" ASP, not ASP.NET. > > I made a copy of the home page to start with and made it an ASP page > and inserted the code to open a Connection to the SQL database and a > RecordSet and so forth to extract the data, as well as the looping > code to format the pertinent industry headlines. Well, the page runs > fine except no news headlines appear at all. No ASP error messages, > just a little blank space where the headlines and their links to the > News page should appear. > > I got on-line with Earthlink using their chat capability to talk with > a support guy. At first I thought it might have been that I didn't > make the web site an IIS Application Starting Point. That didn't seem > to be the issue. But then the support guy told me that Earthlink did > not support SQL Server. He said that I could use Access tables for my > queries and that that would work fine. > > Here's my question: Since Earthlink supports Access in an ASP > application, does that mean that they simply did not install the SQL > Server ADO library or object handlers or whatever it's called, and > that their statement that they do not support SQL Server means just > that? Why on earth would a big outfit like that NOT install SQL > Server ADO capabilities? It doesn't make sense. > > -- > Regards, > > Steve Erbach > Scientific Marketing > Neenah, WI > www.swerbach.com > Security Page: www.swerbach.com/security From martyconnelly at shaw.ca Tue Mar 28 14:28:03 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 28 Mar 2006 12:28:03 -0800 Subject: [dba-SQLServer] ISP doesn't support SQL Server? References: <39cb22f30603280858s59a46cbaw365299a2afc0c3d@mail.gmail.com> Message-ID: <44299C53.9050606@shaw.ca> Need to see your connection code to SQL, it could be your ADO call isn't "Server.CreateObject" Guy is talking a bit odd, you can connect to a remote SQL Server via ADO and ASP I have done it via a WAP server to an ASP site to a Remote SQL server each on a different continent He is probably confusing not having a SQL Server access on site. If he supports Access he has to use ADODB. here is some sample ASP code to check what server objects are available on the ISP site Note ADODB.Connection and Recordset available. Working at http://www5.brinkster.com/mconnelly/TestSiteObjects/testobj.asp <% @ Language="VBScript" %> <% Option Explicit %> <% ' Modified from a version on http://www.alphasierrapapa.com ' there are a number of objects that come with IIS4 MSXML etc. ' these are put in the array that's declared below Dim theInstalledObjects(18) theInstalledObjects(0) = "MSWC.AdRotator" theInstalledObjects(1) = "MSWC.BrowserType" theInstalledObjects(2) = "MSWC.NextLink" theInstalledObjects(3) = "MSWC.Tools" theInstalledObjects(4) = "MSWC.Status" theInstalledObjects(5) = "MSWC.Counters" theInstalledObjects(6) = "IISSample.ContentRotator" theInstalledObjects(7) = "IISSample.PageCounter" theInstalledObjects(8) = "MSWC.PermissionChecker" theInstalledObjects(9) = "Microsoft.XMLHTTP" theInstalledObjects(10) = "SOFTWING.AspTear" theInstalledObjects(11) = "WScript.ConnectObject" theInstalledObjects(12) = "ADODB.Connection" theInstalledObjects(13) = "WshShell.CreateShortcut" theInstalledObjects(14) = "microsoft.xmldom" theInstalledObjects(15) = "Microsoft.XMLHTTP26" theInstalledObjects(16) = "ADODB.Recordset" theInstalledObjects(17) = "snapview.ocx" theInstalledObjects(18) = "Scripting.FileSystemObject" Function IsObjInstalled(strClassString) ' initialize default values IsObjInstalled = False Err = 0 ' testing code Dim xTestObj On Error Resume Next Set xTestObj = Server.CreateObject(strClassString) If 0 = Err Then IsObjInstalled = True On Error GoTo 0 ' cleanup Set xTestObj = Nothing Err = 0 End Function %> Test of installed objects Enter the ProgId or ClassId of the component you want to test in the textbox below. If you leave it empty, the default components will be tested.
method=post>
<% Dim strClass strClass = Trim(Request.Form("classname")) If "" <> strClass then Response.Write strClass & " is " If Not IsObjInstalled(strClass) then Response.Write "not installed" Else Response.Write "installed!" End If Response.Write "

" & vbCrLf Else ' default: list all components that should be installed %> <% Dim i For i=0 to UBound(theInstalledObjects) Response.Write "" & vbCrLf Next %>
" & theInstalledObjects(i) & "" If Not IsObjInstalled(theInstalledObjects(i)) Then Response.Write "not installed" Else Response.Write "installed!" End If Response.Write Server.MapPath("/db") Response.Write "
<% End If %> Steve Erbach wrote: >Dear Group, > >I'm out of my depth with this one, so I'm hoping that my question makes sense. > >I have a client that has web sites on two separate ISP/servers. One >site is hosted by Earthlink and it's a pretty simple half-dozen page >site with information about my client's company. It contains a link >to a big web ASP/SQL Server application she purchased which is >accessible by members only. That ASP/SQL application is hosted on a >separate server. > >I designed the simple company information site for my client. The >home page contains links to the other pages, of course. One of those >other pages contains industry-related news items. The home page >contains the headlines and links to those news items on the News page. > Changes to the news headlines and news items is done by physically >modifying the HTML code in those pages -- the old-fashioned way. > >I suggested to my client that she could have a more "dynamic" set of >news items if the information were extracted from a table in her >current SQL Server database and laid out in her company information >pages using some simple ASP/ADO routines. So far so good. By the >way, we're talking "classic" ASP, not ASP.NET. > >I made a copy of the home page to start with and made it an ASP page >and inserted the code to open a Connection to the SQL database and a >RecordSet and so forth to extract the data, as well as the looping >code to format the pertinent industry headlines. Well, the page runs >fine except no news headlines appear at all. No ASP error messages, >just a little blank space where the headlines and their links to the >News page should appear. > >I got on-line with Earthlink using their chat capability to talk with >a support guy. At first I thought it might have been that I didn't >make the web site an IIS Application Starting Point. That didn't seem >to be the issue. But then the support guy told me that Earthlink did >not support SQL Server. He said that I could use Access tables for my >queries and that that would work fine. > >Here's my question: Since Earthlink supports Access in an ASP >application, does that mean that they simply did not install the SQL >Server ADO library or object handlers or whatever it's called, and >that their statement that they do not support SQL Server means just >that? Why on earth would a big outfit like that NOT install SQL >Server ADO capabilities? It doesn't make sense. > >-- >Regards, > >Steve Erbach >Scientific Marketing >Neenah, WI >www.swerbach.com >Security Page: www.swerbach.com/security >_______________________________________________ >dba-SQLServer mailing list >dba-SQLServer at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-sqlserver >http://www.databaseadvisors.com > > > > > -- Marty Connelly Victoria, B.C. Canada From erbachs at gmail.com Tue Mar 28 16:52:01 2006 From: erbachs at gmail.com (Steve Erbach) Date: Tue, 28 Mar 2006 16:52:01 -0600 Subject: [dba-SQLServer] ISP doesn't support SQL Server? In-Reply-To: <44299C53.9050606@shaw.ca> References: <39cb22f30603280858s59a46cbaw365299a2afc0c3d@mail.gmail.com> <44299C53.9050606@shaw.ca> Message-ID: <39cb22f30603281452y26fd0e66x75fc05ff04c7278b@mail.gmail.com> Marty, Excellent! I *thought* the guy was talking out of his hind end, but you dasn't say that to a technical support guy! I'm very likely doing something wrong with the connection string. Thanks again. I'll keep looking. Steve Erbach Neenah, WI On 3/28/06, MartyConnelly wrote: > Need to see your connection code to SQL, it could be your ADO call isn't > "Server.CreateObject" > Guy is talking a bit odd, you can connect to a remote SQL Server via ADO > and ASP > I have done it via a WAP server to an ASP site to a Remote SQL server > each on a different continent > He is probably confusing not having a SQL Server access on site. If he > supports Access > he has to use ADODB. > > here is some sample ASP code to check what server objects are available > on the ISP site > Note ADODB.Connection and Recordset available. From darrend at nimble.com.au Tue Mar 28 18:24:40 2006 From: darrend at nimble.com.au (Darren DICK) Date: Wed, 29 Mar 2006 11:24:40 +1100 Subject: [dba-SQLServer] Reporting Services Security Message-ID: <20060329002613.VZWA24931.omta02sl.mx.bigpond.com@DENZILLAP> Hi All I am following the information in the book "Reporting Services in Action" - by Teo Lachev I am interested in the bit that gives users access to certain reports in a 'folder' Chapter 8 Securing Reporting Services The chapter tells the reader to create the individual User Groups and Users in the OS So...The Rep Services permissions for a user or a group (mostly) are given at the OS level In this case the OS is Small Business Server 2003 - This is where the Reporting Services SQL dB is as well So...I create user Groups via the OS and then create users via the OS and make them members of that group Then in reporting services I give users or groups access to a folder or report as per Chapter 8 Then when I logon as that user or group, I see a blank (almost) web page - IE I don't see either the folder or any of the Reports I have granted access to for that user I think the problem is at the OS Permissions level The reason I think this is... When I add a user and add them to the Administrators group for the OS then logon to RepServices as that user - viola - I can see it all If I then remove that user from the Administrator group and just leave them as a member of the group I just created for them - I see 'nothing' when I logon again a them Any one come across this? Any suggestions? Many thanks in advance Darren Darren Dick Client Support Nimble Systems 0424 696 433 1300 NIMBLE www.nimble.com.au Nimble Billing Systems From erbachs at gmail.com Tue Mar 28 19:53:36 2006 From: erbachs at gmail.com (Steve Erbach) Date: Tue, 28 Mar 2006 19:53:36 -0600 Subject: [dba-SQLServer] ISP doesn't support SQL Server? In-Reply-To: <44299C53.9050606@shaw.ca> References: <39cb22f30603280858s59a46cbaw365299a2afc0c3d@mail.gmail.com> <44299C53.9050606@shaw.ca> Message-ID: <39cb22f30603281753ta8a22e8tefcd711ab4509e3b@mail.gmail.com> Marty, I went through my copy of "ASP in a Nutshell and added another 20 or so objects to your list, like CDONTS.xxx and ADODB.Record. All 9 of the ADODB objects are installed except Field and Property. I have now experimented with the debugging code for VBScript I found somewhere (4 Guys from Rolla?) and have listed all the Connection Object Properties Collection data-provider-specific properties. There are 93 properties and they contain things like: DBMS Name: Microsoft SQL Server DBMS Version: 08.00.2039 OLE DB Version: 02.70 Provider Version: 08.10.9042 And now! The Recordset opens and contains data and it displays on the page! Take THAT Earthlink!!! Hey, Marty, thanks a lot! Steve Erbach Scientific Marketing Neenah, WI http://TheTownCrank.blogspot.com On 3/28/06, MartyConnelly wrote: > Need to see your connection code to SQL, it could be your ADO call isn't > "Server.CreateObject" > Guy is talking a bit odd, you can connect to a remote SQL Server via ADO > and ASP > I have done it via a WAP server to an ASP site to a Remote SQL server > each on a different continent > He is probably confusing not having a SQL Server access on site. If he > supports Access > he has to use ADODB. > > here is some sample ASP code to check what server objects are available > on the ISP site > Note ADODB.Connection and Recordset available. > > Working at http://www5.brinkster.com/mconnelly/TestSiteObjects/testobj.asp > > <% @ Language="VBScript" %> > <% Option Explicit %> > <% > ' Modified from a version on http://www.alphasierrapapa.com > ' there are a number of objects that come with IIS4 MSXML etc. > ' these are put in the array that's declared below > Dim theInstalledObjects(18) From darrend at nimble.com.au Tue Mar 28 20:42:47 2006 From: darrend at nimble.com.au (Darren DICK) Date: Wed, 29 Mar 2006 13:42:47 +1100 Subject: [dba-SQLServer] Reporting Services Security In-Reply-To: <20060329002613.VZWA24931.omta02sl.mx.bigpond.com@DENZILLAP> Message-ID: <20060329024403.GZJN1358.omta03sl.mx.bigpond.com@DENZILLAP> Never mind it works now - Darren ------------------------------ T: 0424 696 433 -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Wednesday, 29 March 2006 11:25 AM To: dba-SQL Server Cc: Regan CAMPBELL Subject: [dba-SQLServer] Reporting Services Security Hi All I am following the information in the book "Reporting Services in Action" - by Teo Lachev I am interested in the bit that gives users access to certain reports in a 'folder' Chapter 8 Securing Reporting Services The chapter tells the reader to create the individual User Groups and Users in the OS So...The Rep Services permissions for a user or a group (mostly) are given at the OS level In this case the OS is Small Business Server 2003 - This is where the Reporting Services SQL dB is as well So...I create user Groups via the OS and then create users via the OS and make them members of that group Then in reporting services I give users or groups access to a folder or report as per Chapter 8 Then when I logon as that user or group, I see a blank (almost) web page - IE I don't see either the folder or any of the Reports I have granted access to for that user I think the problem is at the OS Permissions level The reason I think this is... When I add a user and add them to the Administrators group for the OS then logon to RepServices as that user - viola - I can see it all If I then remove that user from the Administrator group and just leave them as a member of the group I just created for them - I see 'nothing' when I logon again a them Any one come across this? Any suggestions? Many thanks in advance Darren Darren Dick Client Support Nimble Systems 0424 696 433 1300 NIMBLE www.nimble.com.au Nimble Billing Systems