From artful at rogers.com Tue Jul 5 06:31:50 2005 From: artful at rogers.com (Arthur Fuller) Date: Tue, 5 Jul 2005 07:31:50 -0400 Subject: [dba-SQLServer] MS Reports download In-Reply-To: <42C4367C.2010706@shaw.ca> Message-ID: <200507051131.j65BVvR22724@databaseadvisors.com> I seem to have misplaced the standalone download of MS Reports. And I cannot find it at Microsoft.com. Anyone got a lead where to obtain it? Or failing that, the original download itself? (If it's huge you could ftp it to my site. Contact me privately for the details.) TIA, A. From fhtapia at gmail.com Tue Jul 5 12:26:31 2005 From: fhtapia at gmail.com (Francisco Tapia) Date: Tue, 5 Jul 2005 10:26:31 -0700 Subject: [dba-SQLServer] Sql Job: The System Cannot find the file specified Message-ID: I have a Sql Server who's hardware was just upgraded, and I noticed that all my sql server jobs which were scheduled DTS jobs are failing (those w/ ActiveX scripts). Windows 2000 Server SP4 Sql Server 2000 SP3a Sql Server Agent Login: local admin account Error: Executed as User (xxxx). The process could not be created for step 1 of job 0x..... (reason: the system cannot find the file specified). The step failed Troubleshooting: I re-created the DTS job and the Sql Job, I can run the DTS job manuall w/ success but cannot seem to have it run when scheduled. what step did I miss? Thanks for your help -- -Francisco http://pcthis.blogspot.com |PC news with out the jargon! http://sqlthis.blogspot.com | Tsql and More... From fhtapia at gmail.com Tue Jul 5 13:43:43 2005 From: fhtapia at gmail.com (Francisco Tapia) Date: Tue, 5 Jul 2005 11:43:43 -0700 Subject: [dba-SQLServer] Re: Sql Job: The System Cannot find the file specified In-Reply-To: References: Message-ID: I found the solution http://support.microsoft.com/default.aspx?scid=kb;en-us;Q322746 Because of the upgrade somehow the path was not specefied thus the bogus error... On 7/5/05, Francisco Tapia wrote: > I re-created the DTS, then I re-scheduled the DTS, that job failed w/ > the same error I'm looking at the configuration and it all seems > normal (I suppose). The sql server agent is a local admin account. :( > > On 7/5/05, Bott, Bruce - SICA wrote: > > Did you create a new schedule for the (new) job? > > > > -- bb > > > > -----Original Message----- > > From: bounce-sql2k-6502234 at ls.sswug.org > > [mailto:bounce-sql2k-6502234 at ls.sswug.org] On Behalf Of Francisco Tapia > > Sent: Tuesday, July 05, 2005 10:27 AM > > To: SQL Server 2k List > > Subject: Sql Job: The System Cannot find the file specified > > > > I have a Sql Server who's hardware was just upgraded, and I noticed that > > all my sql server jobs which were scheduled DTS jobs are failing (those > > w/ ActiveX scripts). > > > > Windows 2000 Server SP4 > > Sql Server 2000 SP3a > > > > Sql Server Agent Login: local admin account > > > > Error: > > Executed as User (xxxx). The process could not be created for step 1 of > > job 0x..... (reason: the system cannot find the file specified). > > The step failed > > > > > > > > Troubleshooting: I re-created the DTS job and the Sql Job, I can run the > > DTS job manuall w/ success but cannot seem to have it run when > > scheduled. what step did I miss? > > > > Thanks for your help > > -- > > -Francisco > > http://pcthis.blogspot.com |PC news with out the jargon! > > http://sqlthis.blogspot.com | Tsql and More... > > > > --- > > You are currently subscribed to sql2k as: bbott at simpson.com To > > unsubscribe send a blank email to leave-sql2k-9078501N at ls.sswug.org > > > > ------------- > > See http://www.sswug.org/archives for list archives. > > mailto:listadmin at sswug.org with list issues. > > > > > > > > > > --- > > You are currently subscribed to sql2k as: fhtapia at gmail.com > > To unsubscribe send a blank email to leave-sql2k-9078501N at ls.sswug.org > > > > ------------- > > See http://www.sswug.org/archives for list archives. > > mailto:listadmin at sswug.org with list issues. > > > > > > > -- > -Francisco > http://pcthis.blogspot.com |PC news with out the jargon! > http://sqlthis.blogspot.com | Tsql and More... > -- -Francisco http://pcthis.blogspot.com |PC news with out the jargon! http://sqlthis.blogspot.com | Tsql and More... From ssharkins at bellsouth.net Tue Jul 5 14:46:29 2005 From: ssharkins at bellsouth.net (Susan Harkins) Date: Tue, 5 Jul 2005 15:46:29 -0400 Subject: [dba-SQLServer] UPDATE syntax with JOIN Message-ID: <20050705194630.SYZX6485.ibm65aec.bellsouth.net@SUSANONE> UPDATE Authors INNER JOIN AuthorsPublicationsmm ON Authors.AuthorID = AuthorsPublicationsmm.AuthorIDFK SET AuthorsPublicationsmm.AuthorIDGUIDFK = [Authors].[AuthorIDGUID] WHERE (([Authors].[AuthorID]=[AuthorsPublicationsmm].[AuthorIDFK])) ======The above statement runs in Access just fine, but I get an error on INNER JOIN in SQL Server. I checked bol, but geez... what a mess that was. :( I'm trying to update the AuthorIDGUIDFK value in a many to many table based on the AUthorIDGUID value in Authors. Thanks! Susan H. From ssharkins at bellsouth.net Tue Jul 5 14:53:04 2005 From: ssharkins at bellsouth.net (Susan Harkins) Date: Tue, 5 Jul 2005 15:53:04 -0400 Subject: [dba-SQLServer] sorry, let me try again Message-ID: <20050705195305.TDKE6485.ibm65aec.bellsouth.net@SUSANONE> UPDATE AuthorsPublicationsmm INNER JOIN Authors ON AuthorsPublicationsmm.AuthorIDFK = Authors.AuthorID SET AuthorsPublicationsmm.AuthorIDGUIDFK = [Authors].[AuthorIDGUID] WHERE (([Authors].[AuthorID]=[AuthorsPublicationsmm].[AuthorIDFK])); Sent the wrong statement, but same problem. Susan H. From ssharkins at bellsouth.net Tue Jul 5 16:13:18 2005 From: ssharkins at bellsouth.net (Susan Harkins) Date: Tue, 5 Jul 2005 17:13:18 -0400 Subject: [dba-SQLServer] limit to records? Message-ID: <20050705211319.UCIJ4468.ibm61aec.bellsouth.net@SUSANONE> Is there a limit to the number of records a SQL Server table can store? Susan H. From fhtapia at gmail.com Tue Jul 5 16:48:22 2005 From: fhtapia at gmail.com (Francisco Tapia) Date: Tue, 5 Jul 2005 14:48:22 -0700 Subject: [dba-SQLServer] limit to records? In-Reply-To: <20050705211319.UCIJ4468.ibm61aec.bellsouth.net@SUSANONE> References: <20050705211319.UCIJ4468.ibm61aec.bellsouth.net@SUSANONE> Message-ID: not that I'm aware of., I think the only limitation is hdd size. On 7/5/05, Susan Harkins wrote: > Is there a limit to the number of records a SQL Server table can store? > -- -Francisco http://pcthis.blogspot.com |PC news with out the jargon! http://sqlthis.blogspot.com | Tsql and More... From ssharkins at bellsouth.net Tue Jul 5 16:52:39 2005 From: ssharkins at bellsouth.net (Susan Harkins) Date: Tue, 5 Jul 2005 17:52:39 -0400 Subject: [dba-SQLServer] limit to records? In-Reply-To: Message-ID: <20050705215251.GTXI29052.ibm68aec.bellsouth.net@SUSANONE> That's what I thought. Thanks! Susan H. not that I'm aware of., I think the only limitation is hdd size. From jim.moss at jlmoss.net Tue Jul 5 16:53:08 2005 From: jim.moss at jlmoss.net (Jim Moss) Date: Tue, 5 Jul 2005 16:53:08 -0500 (CDT) Subject: [dba-SQLServer] limit to records? In-Reply-To: <20050705211319.UCIJ4468.ibm61aec.bellsouth.net@SUSANONE> References: <20050705211319.UCIJ4468.ibm61aec.bellsouth.net@SUSANONE> Message-ID: <23786.65.196.182.34.1120600388.squirrel@65.196.182.34> Microsoft says it's only limited by the amount of available storage, but somewhere else they say that a file can't be larger than 32 tb. > Is there a limit to the number of records a SQL Server table can store? > > Susan H. > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > > From ssharkins at bellsouth.net Tue Jul 5 17:03:02 2005 From: ssharkins at bellsouth.net (Susan Harkins) Date: Tue, 5 Jul 2005 18:03:02 -0400 Subject: [dba-SQLServer] limit to records? In-Reply-To: <23786.65.196.182.34.1120600388.squirrel@65.196.182.34> Message-ID: <20050705220302.GXUZ29052.ibm68aec.bellsouth.net@SUSANONE> Anybody know what the limit would be using an identity column -- eventually, the identity column's going to hit a ceiling, right? Susan H. Microsoft says it's only limited by the amount of available storage, but somewhere else they say that a file can't be larger than 32 tb. From stuart at lexacorp.com.pg Tue Jul 5 17:26:56 2005 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 06 Jul 2005 08:26:56 +1000 Subject: [dba-SQLServer] limit to records? In-Reply-To: <20050705211319.UCIJ4468.ibm61aec.bellsouth.net@SUSANONE> Message-ID: <42CB95D0.12241.F69FE41@stuart.lexacorp.com.pg> On 5 Jul 2005 at 17:13, Susan Harkins wrote: > Is there a limit to the number of records a SQL Server table can store? > BOL: SQL Server 2000 has high-speed optimizations that support very large database environments. SQL Server version 6.5 and earlier can support databases from 200 GB through 300 GB. SQL Server 2000 and SQL Server version 7.0 can effectively support terabyte-sized databases -- Stuart From jwcolby at colbyconsulting.com Tue Jul 5 18:50:01 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 05 Jul 2005 19:50:01 -0400 Subject: [dba-SQLServer] limit to records? In-Reply-To: Message-ID: <006f01c581bc$46c864a0$6c7aa8c0@ColbyM6805> Every database has limitations based on the number of bits used in tables to define the storage. It may be high, but it will exist. There will also be maximums inferable based on container size and data size. For example if the max container size is 2gb (personal version) and you want to store a single long (32 bit) value then you could store ~512 million records minus overhead. I am not finding published maximums for number of records. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Francisco Tapia Sent: Tuesday, July 05, 2005 5:48 PM To: dba-sqlserver at databaseadvisors.com Subject: Re: [dba-SQLServer] limit to records? not that I'm aware of., I think the only limitation is hdd size. On 7/5/05, Susan Harkins wrote: > Is there a limit to the number of records a SQL Server table can > store? > -- -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 ssharkins at bellsouth.net Tue Jul 5 19:40:37 2005 From: ssharkins at bellsouth.net (Susan Harkins) Date: Tue, 5 Jul 2005 20:40:37 -0400 Subject: [dba-SQLServer] limit to records? In-Reply-To: <006f01c581bc$46c864a0$6c7aa8c0@ColbyM6805> Message-ID: <20050706004046.XSCI4468.ibm61aec.bellsouth.net@SUSANONE> Thanks John -- thanks everyone -- it's been an interesting discussion. Susan H. Every database has limitations based on the number of bits used in tables to define the storage. It may be high, but it will exist. There will also be maximums inferable based on container size and data size. For example if the max container size is 2gb (personal version) and you want to store a single long (32 bit) value then you could store ~512 million records minus overhead. I am not finding published maximums for number of records. From michael at ddisolutions.com.au Tue Jul 5 20:05:22 2005 From: michael at ddisolutions.com.au (Michael Maddison) Date: Wed, 6 Jul 2005 11:05:22 +1000 Subject: [dba-SQLServer] UPDATE syntax with JOIN Message-ID: <59A61174B1F5B54B97FD4ADDE71E7D010E4D2A@ddi-01.DDI.local> Hi Susan, This is the syntax you require. UPDATE [Table1] SET [Field] = [NewValue] FROM [Table1] INNER JOIN [Table2] ON [Table1].[Field] = [Table2].[Field] WHERE [criteria] Cheers Michael M UPDATE Authors INNER JOIN AuthorsPublicationsmm ON Authors.AuthorID = AuthorsPublicationsmm.AuthorIDFK SET AuthorsPublicationsmm.AuthorIDGUIDFK = [Authors].[AuthorIDGUID] WHERE (([Authors].[AuthorID]=[AuthorsPublicationsmm].[AuthorIDFK])) ======The above statement runs in Access just fine, but I get an error on INNER JOIN in SQL Server. I checked bol, but geez... what a mess that was. :( I'm trying to update the AuthorIDGUIDFK value in a many to many table based on the AUthorIDGUID value in Authors. Thanks! Susan H. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From newsgrps at dalyn.co.nz Tue Jul 5 22:59:33 2005 From: newsgrps at dalyn.co.nz (David Emerson) Date: Wed, 06 Jul 2005 15:59:33 +1200 Subject: [dba-SQLServer] Convert Characters to Number Message-ID: <6.2.1.2.0.20050706153727.02b4ade0@mail.dalyn.co.nz> SQL2000. I have a varchar field that stores text. Sometimes the first 2 characters will be a number. I am looking for an easy way to check if the first two characters are a valid number, and then convert them to a number so that I can do some comparisons with other numbers. Regards David Emerson Dalyn Software Ltd 25 Cunliffe St, Churton Park Wellington, New Zealand Ph/Fax (04) 478-7456 Mobile 027-280-9348 From fhtapia at gmail.com Tue Jul 5 23:44:57 2005 From: fhtapia at gmail.com (Francisco Tapia) Date: Tue, 5 Jul 2005 21:44:57 -0700 Subject: [dba-SQLServer] Convert Characters to Number In-Reply-To: <6.2.1.2.0.20050706153727.02b4ade0@mail.dalyn.co.nz> References: <6.2.1.2.0.20050706153727.02b4ade0@mail.dalyn.co.nz> Message-ID: IsNumeric(LEFT(YourField,2)) = 1 On 7/5/05, David Emerson wrote: > SQL2000. > > I have a varchar field that stores text. Sometimes the first 2 characters > will be a number. I am looking for an easy way to check if the first two > characters are a valid number, and then convert them to a number so that I > can do some comparisons with other numbers. > > Regards > > David Emerson > Dalyn Software Ltd > 25 Cunliffe St, Churton Park > Wellington, New Zealand > Ph/Fax (04) 478-7456 > Mobile 027-280-9348 > > _______________________________________________ > 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 Paul.Hartland at orridge.co.uk Wed Jul 6 02:31:02 2005 From: Paul.Hartland at orridge.co.uk (Paul Hartland) Date: Wed, 6 Jul 2005 08:31:02 +0100 Subject: [dba-SQLServer] Convert Characters to Number Message-ID: <14A7AB003EFD444BBB193A23128DA20E4A37C6@AL-PRI.Aldridge.local> How about : ISNUMERIC(LEFT(FieldName,2)) PAUL HARTLAND Database Designer/Programmer paul.hartland at isharp.co.uk ISHARP DDI - 01922 472031 Mobile - 07730 523179 ISHARP (Information Services for Hospitality, Audit, Retail and Pharmacy) provide IT resources for the Christie Group Stock & Inventory Services companies. -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of David Emerson Sent: 06 July 2005 05:00 To: dba-SQLServer at databaseadvisors.com Subject: [dba-SQLServer] Convert Characters to Number SQL2000. I have a varchar field that stores text. Sometimes the first 2 characters will be a number. I am looking for an easy way to check if the first two characters are a valid number, and then convert them to a number so that I can do some comparisons with other numbers. Regards David Emerson Dalyn Software Ltd 25 Cunliffe St, Churton Park Wellington, New Zealand Ph/Fax (04) 478-7456 Mobile 027-280-9348 _______________________________________________ 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 DElam at jenkens.com Wed Jul 6 07:48:51 2005 From: DElam at jenkens.com (Elam, Debbie) Date: Wed, 6 Jul 2005 07:48:51 -0500 Subject: [dba-SQLServer] limit to records? Message-ID: <7B1961ED924D1A459E378C9B1BB22B4C0492CA88@natexch.jenkens.com> I believe identity used on a long integer, so there is the theoretical limit to that value. Identity itself is not limited though. Debbie -----Original Message----- From: Susan Harkins [mailto:ssharkins at bellsouth.net] Sent: Tuesday, July 05, 2005 5:03 PM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer] limit to records? Anybody know what the limit would be using an identity column -- eventually, the identity column's going to hit a ceiling, right? Susan H. Microsoft says it's only limited by the amount of available storage, but somewhere else they say that a file can't be larger than 32 tb. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com - JENKENS & GILCHRIST E-MAIL NOTICE - This transmission may be: (1) subject to the Attorney-Client Privilege, (2) an attorney work product, or (3) strictly confidential. If you are not the intended recipient of this message, you may not disclose, print, copy or disseminate this information. If you have received this in error, please reply and notify the sender (only) and delete the message. Unauthorized interception of this e-mail is a violation of federal criminal law. This communication does not reflect an intention by the sender or the sender's client or principal to conduct a transaction or make any agreement by electronic means. Nothing contained in this message or in any attachment shall satisfy the requirements for a writing, and nothing contained herein shall constitute a contract or electronic signature under the Electronic Signatures in Global and National Commerce Act, any version of the Uniform Electronic Transactions Act or any other statute governing electronic transactions. From jwcolby at colbyconsulting.com Wed Jul 6 08:44:22 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 06 Jul 2005 09:44:22 -0400 Subject: [dba-SQLServer] limit to records? In-Reply-To: <7B1961ED924D1A459E378C9B1BB22B4C0492CA88@natexch.jenkens.com> Message-ID: <000201c58230$d4360bc0$6c7aa8c0@ColbyM6805> I seem to remember reading somewhere that it was something like 40 or 48 bits. Remember that SQL Server Is designed to run on 64 bit machines where a long int is 64 bits. For some odd reason they still didn't just use a 64 bit number however (IIRC). John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Elam, Debbie Sent: Wednesday, July 06, 2005 8:49 AM To: 'dba-sqlserver at databaseadvisors.com' Subject: RE: [dba-SQLServer] limit to records? I believe identity used on a long integer, so there is the theoretical limit to that value. Identity itself is not limited though. Debbie -----Original Message----- From: Susan Harkins [mailto:ssharkins at bellsouth.net] Sent: Tuesday, July 05, 2005 5:03 PM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer] limit to records? Anybody know what the limit would be using an identity column -- eventually, the identity column's going to hit a ceiling, right? Susan H. Microsoft says it's only limited by the amount of available storage, but somewhere else they say that a file can't be larger than 32 tb. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com - JENKENS & GILCHRIST E-MAIL NOTICE - This transmission may be: (1) subject to the Attorney-Client Privilege, (2) an attorney work product, or (3) strictly confidential. If you are not the intended recipient of this message, you may not disclose, print, copy or disseminate this information. If you have received this in error, please reply and notify the sender (only) and delete the message. Unauthorized interception of this e-mail is a violation of federal criminal law. This communication does not reflect an intention by the sender or the sender's client or principal to conduct a transaction or make any agreement by electronic means. Nothing contained in this message or in any attachment shall satisfy the requirements for a writing, and nothing contained herein shall constitute a contract or electronic signature under the Electronic Signatures in Global and National Commerce Act, any version of the Uniform Electronic Transactions Act or any other statute governing electronic transactions. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From ssharkins at bellsouth.net Wed Jul 6 10:21:13 2005 From: ssharkins at bellsouth.net (Susan Harkins) Date: Wed, 6 Jul 2005 11:21:13 -0400 Subject: [dba-SQLServer] UPDATE syntax with JOIN In-Reply-To: <59A61174B1F5B54B97FD4ADDE71E7D010E4D2A@ddi-01.DDI.local> Message-ID: <20050706152113.LGWA4468.ibm61aec.bellsouth.net@SUSANONE> Thanks -- that was it. Susan H. Hi Susan, This is the syntax you require. UPDATE [Table1] SET [Field] = [NewValue] FROM [Table1] INNER JOIN [Table2] ON [Table1].[Field] = [Table2].[Field] WHERE [criteria] Cheers Michael M From artful at rogers.com Wed Jul 6 10:46:48 2005 From: artful at rogers.com (Arthur Fuller) Date: Wed, 6 Jul 2005 11:46:48 -0400 Subject: [dba-SQLServer] Re: Sql Job: The System Cannot find the filespecified In-Reply-To: Message-ID: <200507061546.j66FksR28935@databaseadvisors.com> Just out of curiosity, Francisco, how did you find the reference to your problem? Search on the text of the error message or what? A. -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Francisco Tapia Sent: July 5, 2005 2:44 PM To: SQL Server 2k List; dba-sqlserver at databaseadvisors.com Subject: [dba-SQLServer] Re: Sql Job: The System Cannot find the filespecified I found the solution http://support.microsoft.com/default.aspx?scid=kb;en-us;Q322746 Because of the upgrade somehow the path was not specefied thus the bogus error... From fhtapia at gmail.com Wed Jul 6 11:06:20 2005 From: fhtapia at gmail.com (Francisco Tapia) Date: Wed, 6 Jul 2005 09:06:20 -0700 Subject: [dba-SQLServer] Re: Sql Job: The System Cannot find the filespecified In-Reply-To: <200507061546.j66FksR28935@databaseadvisors.com> References: <200507061546.j66FksR28935@databaseadvisors.com> Message-ID: I had to change around my keywords, I kept the error message "The System cannot find the specified file" + dts +sql server I think that was the combination that finally hit on the knowledgebase article link below.. :) I had to update the path variable (back to the dos roots) :D, hahahaha... On 7/6/05, Arthur Fuller wrote: > Just out of curiosity, Francisco, how did you find the reference to your > problem? Search on the text of the error message or what? > > A. > > -----Original Message----- > From: dba-sqlserver-bounces at databaseadvisors.com > [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Francisco > Tapia > Sent: July 5, 2005 2:44 PM > To: SQL Server 2k List; dba-sqlserver at databaseadvisors.com > Subject: [dba-SQLServer] Re: Sql Job: The System Cannot find the > filespecified > > I found the solution > http://support.microsoft.com/default.aspx?scid=kb;en-us;Q322746 > > Because of the upgrade somehow the path was not specefied thus the > bogus error... > > > _______________________________________________ > 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 JKOCHANEK at PARTNERS.ORG Wed Jul 6 14:32:22 2005 From: JKOCHANEK at PARTNERS.ORG (Kochanek, John ) Date: Wed, 6 Jul 2005 15:32:22 -0400 Subject: [dba-SQLServer] limit to records? Message-ID: <1AF23D0AD12E7444A5DB083CA978B734022E1B7B@PHSXMB1.partners.org> There is information here (notes the total 32TB size). http://msdn.microsoft.com/library/default.asp?url=/library/en-us/architec/8_ar_t s_8dbn.asp -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com]On Behalf Of Jim Moss Sent: Tuesday, July 05, 2005 5:53 PM To: dba-sqlserver at databaseadvisors.com Subject: Re: [dba-SQLServer] limit to records? Microsoft says it's only limited by the amount of available storage, but somewhere else they say that a file can't be larger than 32 tb. > Is there a limit to the number of records a SQL Server table can store? > > Susan H. > _______________________________________________ > 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 stuart at lexacorp.com.pg Wed Jul 6 16:28:37 2005 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 07 Jul 2005 07:28:37 +1000 Subject: [dba-SQLServer] limit to records? In-Reply-To: <1AF23D0AD12E7444A5DB083CA978B734022E1B7B@PHSXMB1.partners.org> Message-ID: <42CCD9A5.18363.21866D9@stuart.lexacorp.com.pg> On 6 Jul 2005 at 15:32, Kochanek, John wrote: > There is information here (notes the total 32TB size). > > http://msdn.microsoft.com/library/default.asp?url=/library/en-us/architec/8_ar_t > s_8dbn.asp > That info is also in BOL under "Maxmium Capcacity Specifications" The 32TB limit is on a single file. It also gives: Database Size: 1,048,516 TB !!!! -- Stuart From artful at rogers.com Wed Jul 6 17:29:40 2005 From: artful at rogers.com (Arthur Fuller) Date: Wed, 6 Jul 2005 18:29:40 -0400 Subject: [dba-SQLServer] limit to records? In-Reply-To: <20050705220302.GXUZ29052.ibm68aec.bellsouth.net@SUSANONE> Message-ID: <200507062229.j66MTcR29194@databaseadvisors.com> In theory, yes. In practice, if the scope of an Identity column is insufficient, use a GUID instead. -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: July 5, 2005 6:03 PM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer] limit to records? Anybody know what the limit would be using an identity column -- eventually, the identity column's going to hit a ceiling, right? Susan H. Microsoft says it's only limited by the amount of available storage, but somewhere else they say that a file can't be larger than 32 tb. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From artful at rogers.com Wed Jul 6 17:31:29 2005 From: artful at rogers.com (Arthur Fuller) Date: Wed, 6 Jul 2005 18:31:29 -0400 Subject: [dba-SQLServer] limit to records? In-Reply-To: <42CB95D0.12241.F69FE41@stuart.lexacorp.com.pg> Message-ID: <200507062231.j66MVRR29466@databaseadvisors.com> I've read the docs too, and agree that what you say corresponds with what MS says. But I lack the hardware resources to test this effectively. Does anyone on this list have sufficient HW resources to create a multi-TB database and then to test its response time? I doubt it but I thought I would ask anyway. A. -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: July 5, 2005 6:27 PM To: dba-sqlserver at databaseadvisors.com Subject: Re: [dba-SQLServer] limit to records? On 5 Jul 2005 at 17:13, Susan Harkins wrote: > Is there a limit to the number of records a SQL Server table can store? > BOL: SQL Server 2000 has high-speed optimizations that support very large database environments. SQL Server version 6.5 and earlier can support databases from 200 GB through 300 GB. SQL Server 2000 and SQL Server version 7.0 can effectively support terabyte-sized databases -- Stuart _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From newsgrps at dalyn.co.nz Wed Jul 6 17:37:56 2005 From: newsgrps at dalyn.co.nz (David Emerson) Date: Thu, 07 Jul 2005 10:37:56 +1200 Subject: [dba-SQLServer] Convert Characters to Number In-Reply-To: References: <6.2.1.2.0.20050706153727.02b4ade0@mail.dalyn.co.nz> Message-ID: <6.2.1.2.0.20050707103709.031295c0@mail.dalyn.co.nz> Thanks Francisco and Paul. At 6/07/2005, Francisco Tapia wrote: >IsNumeric(LEFT(YourField,2)) = 1 > >On 7/5/05, David Emerson wrote: > > SQL2000. > > > > I have a varchar field that stores text. Sometimes the first 2 characters > > will be a number. I am looking for an easy way to check if the first two > > characters are a valid number, and then convert them to a number so that I > > can do some comparisons with other numbers. > > > > Regards > > > > David Emerson > > Dalyn Software Ltd > > 25 Cunliffe St, Churton Park > > Wellington, New Zealand > > Ph/Fax (04) 478-7456 > > Mobile 027-280-9348 From michael at ddisolutions.com.au Thu Jul 7 17:59:11 2005 From: michael at ddisolutions.com.au (Michael Maddison) Date: Fri, 8 Jul 2005 08:59:11 +1000 Subject: [dba-SQLServer] limit to records? Message-ID: <59A61174B1F5B54B97FD4ADDE71E7D010E4D37@ddi-01.DDI.local> Sadly no... :-) cheers Michael M I've read the docs too, and agree that what you say corresponds with what MS says. But I lack the hardware resources to test this effectively. Does anyone on this list have sufficient HW resources to create a multi-TB database and then to test its response time? I doubt it but I thought I would ask anyway. A. -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: July 5, 2005 6:27 PM To: dba-sqlserver at databaseadvisors.com Subject: Re: [dba-SQLServer] limit to records? On 5 Jul 2005 at 17:13, Susan Harkins wrote: > Is there a limit to the number of records a SQL Server table can store? > BOL: SQL Server 2000 has high-speed optimizations that support very large database environments. SQL Server version 6.5 and earlier can support databases from 200 GB through 300 GB. SQL Server 2000 and SQL Server version 7.0 can effectively support terabyte-sized databases -- Stuart _______________________________________________ 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 martyconnelly at shaw.ca Thu Jul 7 19:02:35 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 07 Jul 2005 17:02:35 -0700 Subject: [dba-SQLServer] limit to records? References: <59A61174B1F5B54B97FD4ADDE71E7D010E4D37@ddi-01.DDI.local> Message-ID: <42CDC29B.3000007@shaw.ca> Here is a online almost terabyte database running on SQL Server you can query from Access, unfortunately you need academic permission to do large queries. The total amount of data in the two databases is 818 GB, and the total number of rows exceeds 3.4 billion. But as of now it only maps 1/10 to 1/5 of sky area of Northern hemisphere Sloan Digital Sky Survey http://skyserver.sdss.org/dr1/en/ Database Physical and Logical design http://skyserver.sdss.org/dr1/en/sdss/data/data.asp#databases Microsoft SQL Server Size statement. Microsoft? SQL Server" 2000 Meta Data Services uses storage provided by a DBMS. SQL Server 2000 imposes no practical limit on logical database size. However there are probably physical limits with Partioned tables and physical disk size. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/reposad/raarchitecture_8flf.asp There are record limits to OLAP SQL Server databases something like 2^32 *128 * 65K If you want to work out dimensions and cubes. Michael Maddison wrote: >Sadly no... :-) > >cheers > >Michael M > > >I've read the docs too, and agree that what you say corresponds with >what MS says. But I lack the hardware resources to test this >effectively. Does anyone on this list have sufficient HW resources to >create a multi-TB database and then to test its response time? > >I doubt it but I thought I would ask anyway. > >A. > >-----Original Message----- >From: dba-sqlserver-bounces at databaseadvisors.com >[mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Stuart >McLachlan >Sent: July 5, 2005 6:27 PM >To: dba-sqlserver at databaseadvisors.com >Subject: Re: [dba-SQLServer] limit to records? > >On 5 Jul 2005 at 17:13, Susan Harkins wrote: > > > >>Is there a limit to the number of records a SQL Server table can >> >> >store? > > >> >> >> >BOL: > >SQL Server 2000 has high-speed optimizations that support very large >database environments. SQL Server version 6.5 and earlier can support >databases from 200 GB through 300 GB. SQL Server 2000 and SQL Server >version 7.0 can effectively support terabyte-sized databases > >-- >Stuart > > >_______________________________________________ >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 > >_______________________________________________ >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 ssharkins at bellsouth.net Sat Jul 9 15:48:13 2005 From: ssharkins at bellsouth.net (Susan Harkins) Date: Sat, 9 Jul 2005 16:48:13 -0400 Subject: [dba-SQLServer] TRIGGER question Message-ID: <20050709204812.EBPH4481.ibm66aec.bellsouth.net@SUSANONE> CREATE TRIGGER AuditRoyaltyUpdateInsert ON dbo.roysched FOR INSERT, UPDATE AS DECLARE @precordID varchar(6) IF UPDATE(royalty) INSERT INTO auditable (actiondescription, recordID, actionuser, actiondate) VALUES ('U', @precordID, User_Name(), GetDate()) ELSE INSERT INTO auditable (actiondescription, recordID, actionuser, actiondate) VALUES ('I', @precordID, User_Name(), GetDate()) =========The above trigger started out as a simple audit trigger. Then, I decided to add the table's primary key value to the audit record, and I don't know how to do it -- how do I pass the current record's primary key value, being dbo.roysched.title_id to the @precordID variable? Susan H. From Developer at UltraDNT.com Sat Jul 9 16:35:45 2005 From: Developer at UltraDNT.com (Steve Conklin (Developer@UltraDNT)) Date: Sat, 9 Jul 2005 17:35:45 -0400 Subject: [dba-SQLServer] TRIGGER question In-Reply-To: <20050709204812.EBPH4481.ibm66aec.bellsouth.net@SUSANONE> Message-ID: <000701c584ce$2d442fe0$640fa8c0@CONKEY2000> Have you tried @@IDENTITY ? Hth Steve -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Saturday, July 09, 2005 4:48 PM To: SQLList Subject: [dba-SQLServer] TRIGGER question CREATE TRIGGER AuditRoyaltyUpdateInsert ON dbo.roysched FOR INSERT, UPDATE AS DECLARE @precordID varchar(6) IF UPDATE(royalty) INSERT INTO auditable (actiondescription, recordID, actionuser, actiondate) VALUES ('U', @precordID, User_Name(), GetDate()) ELSE INSERT INTO auditable (actiondescription, recordID, actionuser, actiondate) VALUES ('I', @precordID, User_Name(), GetDate()) =========The above trigger started out as a simple audit trigger. Then, I decided to add the table's primary key value to the audit record, and I don't know how to do it -- how do I pass the current record's primary key value, being dbo.roysched.title_id to the @precordID variable? Susan H. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From ssharkins at bellsouth.net Sat Jul 9 16:45:45 2005 From: ssharkins at bellsouth.net (Susan Harkins) Date: Sat, 9 Jul 2005 17:45:45 -0400 Subject: [dba-SQLServer] TRIGGER question In-Reply-To: <000701c584ce$2d442fe0$640fa8c0@CONKEY2000> Message-ID: <20050709214544.KYOV12482.ibm67aec.bellsouth.net@SUSANONE> Well, if it works, I couldn't figure it out. Susan H. Have you tried @@IDENTITY ? CREATE TRIGGER AuditRoyaltyUpdateInsert ON dbo.roysched FOR INSERT, UPDATE AS DECLARE @precordID varchar(6) IF UPDATE(royalty) INSERT INTO auditable (actiondescription, recordID, actionuser, actiondate) VALUES ('U', @precordID, User_Name(), GetDate()) ELSE INSERT INTO auditable (actiondescription, recordID, actionuser, actiondate) VALUES ('I', @precordID, User_Name(), GetDate()) =========The above trigger started out as a simple audit trigger. Then, I decided to add the table's primary key value to the audit record, and I don't know how to do it -- how do I pass the current record's primary key value, being dbo.roysched.title_id to the @precordID variable? Susan H. _______________________________________________ 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 Developer at UltraDNT.com Sat Jul 9 17:16:39 2005 From: Developer at UltraDNT.com (Steve Conklin (Developer@UltraDNT)) Date: Sat, 9 Jul 2005 18:16:39 -0400 Subject: [dba-SQLServer] TRIGGER question In-Reply-To: <20050709214544.KYOV12482.ibm67aec.bellsouth.net@SUSANONE> Message-ID: <000801c584d3$e4d494b0$640fa8c0@CONKEY2000> It would go in place of where you have the variable: IF UPDATE(royalty) INSERT INTO auditable (actiondescription, recordID, actionuser, actiondate) VALUES ('U', @@IDENTITY, User_Name(), GetDate()) ELSE INSERT INTO auditable (actiondescription, recordID, actionuser, actiondate) VALUES ('I',@@IDENTITY, User_Name(), GetDate()) -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Saturday, July 09, 2005 5:46 PM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer] TRIGGER question Well, if it works, I couldn't figure it out. Susan H. Have you tried @@IDENTITY ? CREATE TRIGGER AuditRoyaltyUpdateInsert ON dbo.roysched FOR INSERT, UPDATE AS DECLARE @precordID varchar(6) IF UPDATE(royalty) INSERT INTO auditable (actiondescription, recordID, actionuser, actiondate) VALUES ('U', @precordID, User_Name(), GetDate()) ELSE INSERT INTO auditable (actiondescription, recordID, actionuser, actiondate) VALUES ('I', @precordID, User_Name(), GetDate()) =========The above trigger started out as a simple audit trigger. Then, I decided to add the table's primary key value to the audit record, and I don't know how to do it -- how do I pass the current record's primary key value, being dbo.roysched.title_id to the @precordID variable? Susan H. _______________________________________________ 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 _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From ssharkins at bellsouth.net Sat Jul 9 17:20:54 2005 From: ssharkins at bellsouth.net (Susan Harkins) Date: Sat, 9 Jul 2005 18:20:54 -0400 Subject: [dba-SQLServer] TRIGGER question In-Reply-To: <000701c584ce$2d442fe0$640fa8c0@CONKEY2000> Message-ID: <20050709222053.DLPI11957.ibm56aec.bellsouth.net@SUSANONE> Nevermind -- I don't think I can do what I want to do with such a simple trigger. What I've got only records the DML action once. If the action acts upon multiple records, there's still only one record in the table. So, passing the record's primary key value isn't valid anyway. Is it possible to record each record changed by a DML trigger, as opposed to what I'm doing? Susan H. Have you tried @@IDENTITY ? Hth Steve -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Saturday, July 09, 2005 4:48 PM To: SQLList Subject: [dba-SQLServer] TRIGGER question CREATE TRIGGER AuditRoyaltyUpdateInsert ON dbo.roysched FOR INSERT, UPDATE AS DECLARE @precordID varchar(6) IF UPDATE(royalty) INSERT INTO auditable (actiondescription, recordID, actionuser, actiondate) VALUES ('U', @precordID, User_Name(), GetDate()) ELSE INSERT INTO auditable (actiondescription, recordID, actionuser, actiondate) VALUES ('I', @precordID, User_Name(), GetDate()) =========The above trigger started out as a simple audit trigger. Then, I decided to add the table's primary key value to the audit record, and I don't know how to do it -- how do I pass the current record's primary key value, being dbo.roysched.title_id to the @precordID variable? Susan H. _______________________________________________ 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 ssharkins at bellsouth.net Sat Jul 9 17:24:42 2005 From: ssharkins at bellsouth.net (Susan Harkins) Date: Sat, 9 Jul 2005 18:24:42 -0400 Subject: [dba-SQLServer] TRIGGER question In-Reply-To: <000801c584d3$e4d494b0$640fa8c0@CONKEY2000> Message-ID: <20050709222441.DLXL11957.ibm56aec.bellsouth.net@SUSANONE> I didn't ask the question right I'm sure. I'm not trying to create a new identity value for the audit record. I was trying to pass the primary key value from the record being acted upon by the DML statement to the audit table. But, that's not really appropriate in this trigger, as I've already figured out. Thank you for trying to help. Susan H. It would go in place of where you have the variable: IF UPDATE(royalty) INSERT INTO auditable (actiondescription, recordID, actionuser, actiondate) VALUES ('U', @@IDENTITY, User_Name(), GetDate()) ELSE INSERT INTO auditable (actiondescription, recordID, actionuser, actiondate) VALUES ('I',@@IDENTITY, User_Name(), GetDate()) -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Saturday, July 09, 2005 5:46 PM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer] TRIGGER question Well, if it works, I couldn't figure it out. Susan H. Have you tried @@IDENTITY ? CREATE TRIGGER AuditRoyaltyUpdateInsert ON dbo.roysched FOR INSERT, UPDATE AS DECLARE @precordID varchar(6) IF UPDATE(royalty) INSERT INTO auditable (actiondescription, recordID, actionuser, actiondate) VALUES ('U', @precordID, User_Name(), GetDate()) ELSE INSERT INTO auditable (actiondescription, recordID, actionuser, actiondate) VALUES ('I', @precordID, User_Name(), GetDate()) =========The above trigger started out as a simple audit trigger. Then, I decided to add the table's primary key value to the audit record, and I don't know how to do it -- how do I pass the current record's primary key value, being dbo.roysched.title_id to the @precordID variable? Susan H. _______________________________________________ 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 _______________________________________________ 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 artful at rogers.com Sun Jul 10 11:26:20 2005 From: artful at rogers.com (Arthur Fuller) Date: Sun, 10 Jul 2005 12:26:20 -0400 Subject: [dba-SQLServer] TRIGGER question In-Reply-To: <20050709222441.DLXL11957.ibm56aec.bellsouth.net@SUSANONE> Message-ID: <200507101626.j6AGQQR20606@databaseadvisors.com> In a trigger, there are two implicit tables hidden to all processes but the trigger itself. The two tables are called #Inserted and #Deleted. In an insert trigger the latter table is empty. In a delete trigger the former table is empty. In an update trigger both tables contain one row (#deleted contains the old data, #inserted the new data). Thus, to determine the PK of the row being updated, and using your column-name RecordID, you would do this: SELECT RecordID FROM #Deleted Which you could embed right in the column-list of your INSERT statement, parenthesized of course. HTH, Arthur -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: July 9, 2005 6:25 PM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer] TRIGGER question I didn't ask the question right I'm sure. I'm not trying to create a new identity value for the audit record. I was trying to pass the primary key value from the record being acted upon by the DML statement to the audit table. But, that's not really appropriate in this trigger, as I've already figured out. Thank you for trying to help. Susan H. It would go in place of where you have the variable: IF UPDATE(royalty) INSERT INTO auditable (actiondescription, recordID, actionuser, actiondate) VALUES ('U', @@IDENTITY, User_Name(), GetDate()) ELSE INSERT INTO auditable (actiondescription, recordID, actionuser, actiondate) VALUES ('I',@@IDENTITY, User_Name(), GetDate()) -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Saturday, July 09, 2005 5:46 PM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer] TRIGGER question Well, if it works, I couldn't figure it out. Susan H. Have you tried @@IDENTITY ? CREATE TRIGGER AuditRoyaltyUpdateInsert ON dbo.roysched FOR INSERT, UPDATE AS DECLARE @precordID varchar(6) IF UPDATE(royalty) INSERT INTO auditable (actiondescription, recordID, actionuser, actiondate) VALUES ('U', @precordID, User_Name(), GetDate()) ELSE INSERT INTO auditable (actiondescription, recordID, actionuser, actiondate) VALUES ('I', @precordID, User_Name(), GetDate()) =========The above trigger started out as a simple audit trigger. Then, I decided to add the table's primary key value to the audit record, and I don't know how to do it -- how do I pass the current record's primary key value, being dbo.roysched.title_id to the @precordID variable? Susan H. _______________________________________________ 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 _______________________________________________ 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 _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From artful at rogers.com Sun Jul 10 12:11:03 2005 From: artful at rogers.com (Arthur Fuller) Date: Sun, 10 Jul 2005 13:11:03 -0400 Subject: [dba-SQLServer] Opening a log and keeping it open (cross-posted to dba-sql) In-Reply-To: <200507101407.j6AE7pR22822@databaseadvisors.com> Message-ID: <200507101711.j6AHB6R30337@databaseadvisors.com> I've got a procedure called ExecuteCommand (which perhaps ought to have been named ExecuteSQLCommand, but anyway). It encapsulates a bunch of stuff like the current project connection and such, and contains debug code that prints the SQL it is attempting to execute, and also an error handler that reports "Problem executing " + the SQL code it received. This is all very nice and works splendidly. However, the debug window has decided limitations, so I've been thinking that I should write all this information to a sort of transaction log. Basically, take what I now print to the debug window and re-direct it to an ASCII file of a known name, etc. I have worked with reading and writing ASCII text files so I'm not a complete na?f in this regard, but I do have a question. Suppose that I revise the code such that the first time ExcuteCommand is called it opens the file, creating it if necessary, and leaves it open. Every subsequent visit to Execute Command finds the file open and simply appends its SQL statement, just as it would to the debug window... but with the advantage that I could have several hours' worth of statements recorded to the file, rather than merely the last N lines of the debug buffer. 1. Would the app suffer in terms of performance if I did this? 2. Assuming that I opened the file in the usual way (as #1 or whatever), and assuming that somewhere in the app I also open another text file, should I protect myself by opening it as #98765 or somesuch, so that if you drop said module into one of your apps, it would be guaranteed to work even if your app opens a dozen other text files at various points? 3. Presumably the code would also need a "close the file" chunk, but in the ideal world I wouldn't want you to have to code any special thing into your "close app" procedure. So perhaps this might be better dealt with as a class? But I seem to recall from Shamil's writing on classes that there is an issue regarding the proper termination and garbage disposal of a class. Any suggestions, anyone? Arthur From stuart at lexacorp.com.pg Sun Jul 10 14:24:46 2005 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Mon, 11 Jul 2005 05:24:46 +1000 Subject: [dba-SQLServer] Opening a log and keeping it open (cross-posted to dba-sql) In-Reply-To: <200507101711.j6AHB6R30337@databaseadvisors.com> References: <200507101407.j6AE7pR22822@databaseadvisors.com> Message-ID: <42D2029E.4819.DB72EEA@stuart.lexacorp.com.pg> On 10 Jul 2005 at 13:11, Arthur Fuller wrote: > Suppose that I > revise the code such that the first time ExcuteCommand is called it opens > the file, creating it if necessary, and leaves it open. Every subsequent > visit to Execute Command finds the file open and simply appends its SQL > statement, just as it would to the debug window... but with the advantage > that I could have several hours' worth of statements recorded to the file, > rather than merely the last N lines of the debug buffer. The problem with leaving the file open is that the OS is likely to keep a lock on it if your app crashes. Keeping it open may also prevent you from accessing the log info while your app is running. Depending on how frequently you will be logging, try opening the file, appending the log entry and then closing it again. Although slightly slower, it is much safer. > > 1. Would the app suffer in terms of performance if I did this? Writing out to a text file is pretty fast. It all depends on how often you are expecting ExecuteCommand to Execute. I wouldn't expect any noticable performance drop in normal circumstances. > 2. Assuming that I opened the file in the usual way (as #1 or whatever), and > assuming that somewhere in the app I also open another text file, should I > protect myself by opening it as #98765 or somesuch, You have to use file numbers in the range 1?255, inclusive for files not accessible to other applications or file numbers in the range 256?511 for files accessible from other applications. > so that if you drop said > module into one of your apps, it would be guaranteed to work even if your > app opens a dozen other text files at various points? Use FreeFile or FreeFile(0) to get the next available handle in the range 1 - 255 or FreeFile(1) to get the next available handle in the range 256 - a511. > 3. Presumably the code would also need a "close the file" chunk, but in the > ideal world I wouldn't want you to have to code any special thing into your > "close app" procedure. So perhaps this might be better dealt with as a > class? But I seem to recall from Shamil's writing on classes that there is > an issue regarding the proper termination and garbage disposal of a class. > > Any suggestions, anyone? Here's a simple shell for the above ideas without an error handling Function Log(strLogInfo as String) Dim intLogFileNunber as Integer Dim strLogFile as String strLogFile = "Logfile.txt" intLogFileNumber = Freefile Open strLogFile For Append As #intLogFileNumber Print#1, strLogInfo Close $intLogFileNumber End Function -- Stuart From ssharkins at bellsouth.net Sun Jul 10 16:09:31 2005 From: ssharkins at bellsouth.net (Susan Harkins) Date: Sun, 10 Jul 2005 17:09:31 -0400 Subject: [dba-SQLServer] TRIGGER question In-Reply-To: <200507101626.j6AGQQR20606@databaseadvisors.com> Message-ID: <20050710211039.TCAT9115.ibm60aec.bellsouth.net@SUSANONE> Arthur -- I tried that, but it returned an error -- but I did not include a # character -- I will try it that way. Thanks! Susan H. In a trigger, there are two implicit tables hidden to all processes but the trigger itself. The two tables are called #Inserted and #Deleted. In an insert trigger the latter table is empty. In a delete trigger the former table is empty. In an update trigger both tables contain one row (#deleted contains the old data, #inserted the new data). Thus, to determine the PK of the row being updated, and using your column-name RecordID, you would do this: SELECT RecordID FROM #Deleted Which you could embed right in the column-list of your INSERT statement, parenthesized of course. HTH, Arthur -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: July 9, 2005 6:25 PM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer] TRIGGER question I didn't ask the question right I'm sure. I'm not trying to create a new identity value for the audit record. I was trying to pass the primary key value from the record being acted upon by the DML statement to the audit table. But, that's not really appropriate in this trigger, as I've already figured out. Thank you for trying to help. Susan H. It would go in place of where you have the variable: IF UPDATE(royalty) INSERT INTO auditable (actiondescription, recordID, actionuser, actiondate) VALUES ('U', @@IDENTITY, User_Name(), GetDate()) ELSE INSERT INTO auditable (actiondescription, recordID, actionuser, actiondate) VALUES ('I',@@IDENTITY, User_Name(), GetDate()) -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Saturday, July 09, 2005 5:46 PM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer] TRIGGER question Well, if it works, I couldn't figure it out. Susan H. Have you tried @@IDENTITY ? CREATE TRIGGER AuditRoyaltyUpdateInsert ON dbo.roysched FOR INSERT, UPDATE AS DECLARE @precordID varchar(6) IF UPDATE(royalty) INSERT INTO auditable (actiondescription, recordID, actionuser, actiondate) VALUES ('U', @precordID, User_Name(), GetDate()) ELSE INSERT INTO auditable (actiondescription, recordID, actionuser, actiondate) VALUES ('I', @precordID, User_Name(), GetDate()) =========The above trigger started out as a simple audit trigger. Then, I decided to add the table's primary key value to the audit record, and I don't know how to do it -- how do I pass the current record's primary key value, being dbo.roysched.title_id to the @precordID variable? Susan H. _______________________________________________ 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 _______________________________________________ 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 _______________________________________________ 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 michael at ddisolutions.com.au Sun Jul 10 20:20:43 2005 From: michael at ddisolutions.com.au (Michael Maddison) Date: Mon, 11 Jul 2005 11:20:43 +1000 Subject: [dba-SQLServer] TRIGGER question Message-ID: <59A61174B1F5B54B97FD4ADDE71E7D010E4D40@ddi-01.DDI.local> Not sure about the # myseld but I'd like to add that 'inserted' and 'deleted' can in some instances contain multiple rows. If you think this affects you you could do something like... Select Count(*) from inserted or @@ROWCOUNT may work as well. cheers Michael M Arthur -- I tried that, but it returned an error -- but I did not include a # character -- I will try it that way. Thanks! Susan H. In a trigger, there are two implicit tables hidden to all processes but the trigger itself. The two tables are called #Inserted and #Deleted. In an insert trigger the latter table is empty. In a delete trigger the former table is empty. In an update trigger both tables contain one row (#deleted contains the old data, #inserted the new data). Thus, to determine the PK of the row being updated, and using your column-name RecordID, you would do this: SELECT RecordID FROM #Deleted Which you could embed right in the column-list of your INSERT statement, parenthesized of course. HTH, Arthur -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: July 9, 2005 6:25 PM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer] TRIGGER question I didn't ask the question right I'm sure. I'm not trying to create a new identity value for the audit record. I was trying to pass the primary key value from the record being acted upon by the DML statement to the audit table. But, that's not really appropriate in this trigger, as I've already figured out. Thank you for trying to help. Susan H. It would go in place of where you have the variable: IF UPDATE(royalty) INSERT INTO auditable (actiondescription, recordID, actionuser, actiondate) VALUES ('U', @@IDENTITY, User_Name(), GetDate()) ELSE INSERT INTO auditable (actiondescription, recordID, actionuser, actiondate) VALUES ('I',@@IDENTITY, User_Name(), GetDate()) -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Saturday, July 09, 2005 5:46 PM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer] TRIGGER question Well, if it works, I couldn't figure it out. Susan H. Have you tried @@IDENTITY ? CREATE TRIGGER AuditRoyaltyUpdateInsert ON dbo.roysched FOR INSERT, UPDATE AS DECLARE @precordID varchar(6) IF UPDATE(royalty) INSERT INTO auditable (actiondescription, recordID, actionuser, actiondate) VALUES ('U', @precordID, User_Name(), GetDate()) ELSE INSERT INTO auditable (actiondescription, recordID, actionuser, actiondate) VALUES ('I', @precordID, User_Name(), GetDate()) =========The above trigger started out as a simple audit trigger. Then, I decided to add the table's primary key value to the audit record, and I don't know how to do it -- how do I pass the current record's primary key value, being dbo.roysched.title_id to the @precordID variable? Susan H. _______________________________________________ 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 _______________________________________________ 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 _______________________________________________ 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 _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From artful at rogers.com Mon Jul 11 00:57:05 2005 From: artful at rogers.com (Arthur Fuller) Date: Mon, 11 Jul 2005 01:57:05 -0400 Subject: [dba-SQLServer] Opening a log and keeping it open (cross-postedto dba-sql) In-Reply-To: <42D2029E.4819.DB72EEA@stuart.lexacorp.com.pg> Message-ID: <200507110557.j6B5v1R09140@databaseadvisors.com> Thanks! I think I'll change the number to 254 for safety but nice concise code. A. -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: July 10, 2005 3:25 PM To: dba-sqlserver at databaseadvisors.com; accessd at databaseadvisors.com Subject: Re: [dba-SQLServer] Opening a log and keeping it open (cross-postedto dba-sql) On 10 Jul 2005 at 13:11, Arthur Fuller wrote: > Suppose that I > revise the code such that the first time ExcuteCommand is called it opens > the file, creating it if necessary, and leaves it open. Every subsequent > visit to Execute Command finds the file open and simply appends its SQL > statement, just as it would to the debug window... but with the advantage > that I could have several hours' worth of statements recorded to the file, > rather than merely the last N lines of the debug buffer. The problem with leaving the file open is that the OS is likely to keep a lock on it if your app crashes. Keeping it open may also prevent you from accessing the log info while your app is running. Depending on how frequently you will be logging, try opening the file, appending the log entry and then closing it again. Although slightly slower, it is much safer. > > 1. Would the app suffer in terms of performance if I did this? Writing out to a text file is pretty fast. It all depends on how often you are expecting ExecuteCommand to Execute. I wouldn't expect any noticable performance drop in normal circumstances. > 2. Assuming that I opened the file in the usual way (as #1 or whatever), and > assuming that somewhere in the app I also open another text file, should I > protect myself by opening it as #98765 or somesuch, You have to use file numbers in the range 1-255, inclusive for files not accessible to other applications or file numbers in the range 256-511 for files accessible from other applications. > so that if you drop said > module into one of your apps, it would be guaranteed to work even if your > app opens a dozen other text files at various points? Use FreeFile or FreeFile(0) to get the next available handle in the range 1 - 255 or FreeFile(1) to get the next available handle in the range 256 - a511. > 3. Presumably the code would also need a "close the file" chunk, but in the > ideal world I wouldn't want you to have to code any special thing into your > "close app" procedure. So perhaps this might be better dealt with as a > class? But I seem to recall from Shamil's writing on classes that there is > an issue regarding the proper termination and garbage disposal of a class. > > Any suggestions, anyone? Here's a simple shell for the above ideas without an error handling Function Log(strLogInfo as String) Dim intLogFileNunber as Integer Dim strLogFile as String strLogFile = "Logfile.txt" intLogFileNumber = Freefile Open strLogFile For Append As #intLogFileNumber Print#1, strLogInfo Close $intLogFileNumber End Function -- Stuart From artful at rogers.com Mon Jul 11 00:59:21 2005 From: artful at rogers.com (Arthur Fuller) Date: Mon, 11 Jul 2005 01:59:21 -0400 Subject: [dba-SQLServer] TRIGGER question In-Reply-To: <59A61174B1F5B54B97FD4ADDE71E7D010E4D40@ddi-01.DDI.local> Message-ID: <200507110559.j6B5xHR09459@databaseadvisors.com> Yes you're quite right, Michael. Should the update say "Update * FROM Customers SET City = 'Los Angeles' WHERE City = 'New York'", then there could be many rows in both #Inserted and #Deleted. A. -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Michael Maddison Sent: July 10, 2005 9:21 PM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer] TRIGGER question Not sure about the # myseld but I'd like to add that 'inserted' and 'deleted' can in some instances contain multiple rows. If you think this affects you you could do something like... Select Count(*) from inserted or @@ROWCOUNT may work as well. cheers Michael M From ssharkins at bellsouth.net Mon Jul 11 07:58:24 2005 From: ssharkins at bellsouth.net (Susan Harkins) Date: Mon, 11 Jul 2005 08:58:24 -0400 Subject: [dba-SQLServer] TRIGGER question In-Reply-To: <200507110559.j6B5xHR09459@databaseadvisors.com> Message-ID: <20050711125825.CKZK17591.ibm61aec.bellsouth.net@SUSANONE> It's not working for me. #deleted returns an "invalid object" error. I'm using an INSTEAD trigger though, so maybe the #deleted table doesn't exist for that kind of trigger? I could see where that might be the case. Susan H. Yes you're quite right, Michael. Should the update say "Update * FROM Customers SET City = 'Los Angeles' WHERE City = 'New York'", then there could be many rows in both #Inserted and #Deleted. From ssharkins at bellsouth.net Mon Jul 11 08:23:53 2005 From: ssharkins at bellsouth.net (Susan Harkins) Date: Mon, 11 Jul 2005 09:23:53 -0400 Subject: [dba-SQLServer] TRIGGER question In-Reply-To: <200507110559.j6B5xHR09459@databaseadvisors.com> Message-ID: <20050711132351.CCIA20097.ibm60aec.bellsouth.net@SUSANONE> I get the same error on #insert -- just can't seem to get this to work Arthur. Is there perhaps some permission or something that I need to flag to let me view data from these two tables? Or, perhaps it's a question of timing? I have a simple insert/update trigger and at the end I put SELECT Count(*) from #insert And it returned an invalid object error on #insert. Susan H. Yes you're quite right, Michael. Should the update say "Update * FROM Customers SET City = 'Los Angeles' WHERE City = 'New York'", then there could be many rows in both #Inserted and #Deleted. A. -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Michael Maddison Sent: July 10, 2005 9:21 PM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer] TRIGGER question Not sure about the # myseld but I'd like to add that 'inserted' and 'deleted' can in some instances contain multiple rows. If you think this affects you you could do something like... Select Count(*) from inserted or @@ROWCOUNT may work as well. cheers Michael M _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From ssharkins at bellsouth.net Mon Jul 11 08:27:36 2005 From: ssharkins at bellsouth.net (Susan Harkins) Date: Mon, 11 Jul 2005 09:27:36 -0400 Subject: [dba-SQLServer] TRIGGER question In-Reply-To: <20050711132351.CCIA20097.ibm60aec.bellsouth.net@SUSANONE> Message-ID: <20050711132734.CEIW20097.ibm60aec.bellsouth.net@SUSANONE> Should have included the trigger: simple really -- very basic -- same for the INSTEAD trigger that I'm trying to run to catch DML DELETE. CREATE TRIGGER [AuditRoyaltyUpdateInsert] ON dbo.roysched FOR INSERT, UPDATE AS IF UPDATE(royalty) INSERT INTO audittable (actiondescription, actionuser, actiondate) VALUES ('U', User_Name(), GetDate()) ELSE INSERT INTO audittable (actiondescription, actionuser, actiondate) VALUES ('I', User_Name(), GetDate()) SELECT Count(*) FROM #insert I tried a PRINT, but couldn't get the syntax right -- I don't really care if I can "see" the result of the count -- just thought if it didn't return an error than I was at least talking to it -- know what I mean? Thanks! Susan H. -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Monday, July 11, 2005 9:24 AM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer] TRIGGER question I get the same error on #insert -- just can't seem to get this to work Arthur. Is there perhaps some permission or something that I need to flag to let me view data from these two tables? Or, perhaps it's a question of timing? I have a simple insert/update trigger and at the end I put SELECT Count(*) from #insert And it returned an invalid object error on #insert. Susan H. Yes you're quite right, Michael. Should the update say "Update * FROM Customers SET City = 'Los Angeles' WHERE City = 'New York'", then there could be many rows in both #Inserted and #Deleted. A. -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Michael Maddison Sent: July 10, 2005 9:21 PM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer] TRIGGER question Not sure about the # myseld but I'd like to add that 'inserted' and 'deleted' can in some instances contain multiple rows. If you think this affects you you could do something like... Select Count(*) from inserted or @@ROWCOUNT may work as well. cheers Michael M _______________________________________________ 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 ssharkins at bellsouth.net Mon Jul 11 10:16:06 2005 From: ssharkins at bellsouth.net (Susan Harkins) Date: Mon, 11 Jul 2005 11:16:06 -0400 Subject: [dba-SQLServer] more on trigger Message-ID: <20050711151604.EMFJ4982.ibm63aec.bellsouth.net@SUSANONE> Well, I can get "inserted" -- Arthur, where are you getting the # character? When I use the # character, I get an error -- but inserted (with ed) works. Still having trouble with deleted though -- I think it's a question of timing, I'm just asking for the info at a time when it doesn't exist I'm sure. Susan H. From ssharkins at bellsouth.net Mon Jul 11 14:24:10 2005 From: ssharkins at bellsouth.net (Susan Harkins) Date: Mon, 11 Jul 2005 15:24:10 -0400 Subject: [dba-SQLServer] trigger -- resolved Message-ID: <20050711192646.HOWV23762.ibm56aec.bellsouth.net@SUSANONE> The trigger's working now -- with the implicit tables names of deleted and inserted. Thanks everyone for your help -- it was my own fault -- I was using the wrong column names in the UPDATE -- stupid mistake that had nothing to do with the trigger at all. Susan H. From artful at rogers.com Mon Jul 11 19:14:53 2005 From: artful at rogers.com (Arthur Fuller) Date: Mon, 11 Jul 2005 20:14:53 -0400 Subject: [dba-SQLServer] TRIGGER question In-Reply-To: <20050711132351.CCIA20097.ibm60aec.bellsouth.net@SUSANONE> Message-ID: <200507120014.j6C0EsR03126@databaseadvisors.com> It is #Inserted not #Insert. -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: July 11, 2005 9:24 AM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer] TRIGGER question I get the same error on #insert -- just can't seem to get this to work Arthur. Is there perhaps some permission or something that I need to flag to let me view data from these two tables? Or, perhaps it's a question of timing? I have a simple insert/update trigger and at the end I put SELECT Count(*) from #insert And it returned an invalid object error on #insert. Susan H. From ssharkins at bellsouth.net Mon Jul 11 19:16:19 2005 From: ssharkins at bellsouth.net (Susan Harkins) Date: Mon, 11 Jul 2005 20:16:19 -0400 Subject: [dba-SQLServer] TRIGGER question In-Reply-To: <200507120014.j6C0EsR03126@databaseadvisors.com> Message-ID: <20050712001621.KZHA17655.ibm66aec.bellsouth.net@SUSANONE> What version are you using Arthur? I'm using 2000 and inserted works, #inserted does not. Susan H. It is #Inserted not #Insert. From michael at ddisolutions.com.au Mon Jul 11 19:23:55 2005 From: michael at ddisolutions.com.au (Michael Maddison) Date: Tue, 12 Jul 2005 10:23:55 +1000 Subject: [dba-SQLServer] TRIGGER question Message-ID: <59A61174B1F5B54B97FD4ADDE71E7D010E4D43@ddi-01.DDI.local> Susan, I think Arthur got it slightly wrong. '#' denotes a temp table. Just use inserted/deleted. BTW you can use QA to debug triggers by creating an sp that will trigger the trigger and when you debug the sp it will step into the trigger... HTH cheers Michael M What version are you using Arthur? I'm using 2000 and inserted works, #inserted does not. Susan H. It is #Inserted not #Insert. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From artful at rogers.com Mon Jul 11 19:27:05 2005 From: artful at rogers.com (Arthur Fuller) Date: Mon, 11 Jul 2005 20:27:05 -0400 Subject: [dba-SQLServer] TRIGGER question In-Reply-To: <59A61174B1F5B54B97FD4ADDE71E7D010E4D43@ddi-01.DDI.local> Message-ID: <200507120027.j6C0R8R05972@databaseadvisors.com> Yup. Stoopid me. Trusting the Outlook compiler again. A. -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Michael Maddison Sent: July 11, 2005 8:24 PM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer] TRIGGER question Susan, I think Arthur got it slightly wrong. '#' denotes a temp table. Just use inserted/deleted. BTW you can use QA to debug triggers by creating an sp that will trigger the trigger and when you debug the sp it will step into the trigger... HTH cheers Michael M From ssharkins at bellsouth.net Mon Jul 11 20:00:53 2005 From: ssharkins at bellsouth.net (Susan Harkins) Date: Mon, 11 Jul 2005 21:00:53 -0400 Subject: [dba-SQLServer] TRIGGER question In-Reply-To: <59A61174B1F5B54B97FD4ADDE71E7D010E4D43@ddi-01.DDI.local> Message-ID: <20050712010055.MPLR16323.ibm59aec.bellsouth.net@SUSANONE> Michael -- that's pretty cool. Thanks! Susan H. Susan, I think Arthur got it slightly wrong. '#' denotes a temp table. Just use inserted/deleted. BTW you can use QA to debug triggers by creating an sp that will trigger the trigger and when you debug the sp it will step into the trigger... HTH cheers Michael M What version are you using Arthur? I'm using 2000 and inserted works, #inserted does not. Susan H. It is #Inserted not #Insert. _______________________________________________ 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 ssharkins at bellsouth.net Mon Jul 11 20:04:54 2005 From: ssharkins at bellsouth.net (Susan Harkins) Date: Mon, 11 Jul 2005 21:04:54 -0400 Subject: [dba-SQLServer] TRIGGER question In-Reply-To: <20050712010055.MPLR16323.ibm59aec.bellsouth.net@SUSANONE> Message-ID: <20050712010456.MQRF16323.ibm59aec.bellsouth.net@SUSANONE> Um... How would I do that? Susan H. Michael -- that's pretty cool. Thanks! Susan H. BTW you can use QA to debug triggers by creating an sp that will trigger the trigger and when you debug the sp it will step into the trigger... HTH From michael at ddisolutions.com.au Mon Jul 11 21:40:36 2005 From: michael at ddisolutions.com.au (Michael Maddison) Date: Tue, 12 Jul 2005 12:40:36 +1000 Subject: [dba-SQLServer] TRIGGER question Message-ID: <59A61174B1F5B54B97FD4ADDE71E7D010E4D47@ddi-01.DDI.local> I'm using SQL 2K. Create your test SP, something like... create procedure dbo.testTrigger as insert into TestTable values('a','b') Open QA, find your new SP, right click on it in the object browser, select debug. You SHOULD be able to step through using F11 IIRC cheers Michael M Um... How would I do that? Susan H. Michael -- that's pretty cool. Thanks! Susan H. BTW you can use QA to debug triggers by creating an sp that will trigger the trigger and when you debug the sp it will step into the trigger... HTH _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From jonathan.guise at donnslaw.co.uk Tue Jul 12 08:16:07 2005 From: jonathan.guise at donnslaw.co.uk (Jonathan Guise) Date: Tue, 12 Jul 2005 14:16:07 +0100 Subject: [dba-SQLServer] SQL Server 7 error Message-ID: <61F915314798D311A2F800A0C9C8318807503ED2@dibble.observatory.donnslaw.co.uk> I have got a peculiar SQL server 7 bug/issue any ideas would be welcome. Problem: Different logons produce different data results from client application The application calls a series of view enhanced stored procedures stored on a SQL Server 7 database that query from a large database that is copied over from an Informix database back end every night. After I have built these base tables, I add indexes to the tables to speed up the queries. During my testing today, these base table have been un-touched, I have just selected from them. The stored procedures are all re-compiled before being run (although this should have no impact except on the run speed). Example: A user logs onto the client application and runs a report off. I them run the same report after that user and get differing results (more rows returned). Then the initial user runs the same report again and gets the new, different results as I did. It would appear that records are omitted from the SQL (sproc) results until another logon 'finds' them.... I have found nothing online that mentions this error, unless I am looking in the wrong place. The SQL Server instance I am running on is: Microsoft SQL Server 7.00 - 7.00.1063 (Intel X86) Apr 9 2002 14:18:16 Copyright (c) 1988-2002 Microsoft Corporation Standard Edition on Windows NT 5.0 (Build 2195: Service Pack 4) Jonathan Guise Systems Developer IT Department Donns Solicitors Tel: 0161 836 6078 Ext: 2478 -------------- next part -------------- The contents of this message and any attachments are the property of Donns Solicitors and are intended for the confidential use of the named recipient only. They may be legally privileged and should not be communicated to, or relied upon, by any other party without our written consent. If you are not the addressee, please notify us immediately so that we can make arrangements for its return. You should not show this e-mail to any person or take copies as you may be committing a criminal or civil offence for which you may be liable. The statement and opinions expressed in this e-mail message are those of the writer, and do not necessarily represent that of Donns Solicitors. Although any files attached to this e-mail will have been checked with virus protection software prior to transmission, you should carry out your own virus check before opening any attachment. Donns Solicitors does not accept any liability for any damage or loss which may be caused by software viruses... From JRojas at tnco-inc.com Tue Jul 12 10:29:39 2005 From: JRojas at tnco-inc.com (Joe Rojas) Date: Tue, 12 Jul 2005 11:29:39 -0400 Subject: [dba-SQLServer] Progmatic data import Message-ID: <0CC84C9461AE6445AD5A602001C41C4B05A3BE@mercury.tnco-inc.com> Hi All, If I want to import data, say every night, into SQL Server 7 from a comma delimited text file, what is the best way to achieve this? Is this where DTS comes in? The text file will be uploaded via FTP to the server that is running SS7 so it will be local to that server. Thanks! JR This electronic transmission is strictly confidential to TNCO, Inc. and intended solely for the addressee. It may contain information which is covered by legal, professional, or other privileges. If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy, or take any action in reliance on this transmission. If you have received this transmission in error, please notify the sender as soon as possible and destroy this message. While TNCO, Inc. uses virus protection, the recipient should check this email and any attachments for the presence of viruses. TNCO, Inc. accepts no liability for any damage caused by any virus transmitted by this email. From mikedorism at verizon.net Tue Jul 12 10:52:22 2005 From: mikedorism at verizon.net (Mike & Doris Manning) Date: Tue, 12 Jul 2005 11:52:22 -0400 Subject: [dba-SQLServer] Progmatic data import In-Reply-To: <0CC84C9461AE6445AD5A602001C41C4B05A3BE@mercury.tnco-inc.com> Message-ID: <000d01c586f9$b25bda70$2f01a8c0@dorismanning> A schedule DTS package is a good way to handle this. Doris Manning Database Administrator Hargrove, Inc. -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Joe Rojas Sent: Tuesday, July 12, 2005 11:30 AM To: 'dba-sqlserver at databaseadvisors.com' Subject: [dba-SQLServer] Progmatic data import Hi All, If I want to import data, say every night, into SQL Server 7 from a comma delimited text file, what is the best way to achieve this? Is this where DTS comes in? The text file will be uploaded via FTP to the server that is running SS7 so it will be local to that server. Thanks! JR This electronic transmission is strictly confidential to TNCO, Inc. and intended solely for the addressee. It may contain information which is covered by legal, professional, or other privileges. If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy, or take any action in reliance on this transmission. If you have received this transmission in error, please notify the sender as soon as possible and destroy this message. While TNCO, Inc. uses virus protection, the recipient should check this email and any attachments for the presence of viruses. TNCO, Inc. accepts no liability for any damage caused by any virus transmitted by this email. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From JRojas at tnco-inc.com Tue Jul 12 13:46:00 2005 From: JRojas at tnco-inc.com (Joe Rojas) Date: Tue, 12 Jul 2005 14:46:00 -0400 Subject: [dba-SQLServer] Active Script Task in DTS Message-ID: <0CC84C9461AE6445AD5A602001C41C4B05A3C2@mercury.tnco-inc.com> In DTS designer, I added an Active Script Task to my DTS package as the last step. This task is supposed to move a text file from one location to another. I am trying to do this with the code below but I get a permission denied error. Function Main() Dim fso Set fso = CreateObject("Scripting.FileSystemObject") fso.MoveFile "E:\ftp\bom.txt", "E:\ftp\pub\" Set fso = Nothing Main = DTSTaskExecResult_Success End Function I check the folder permissions and the Everyone group has full control over these folders. Any ideas? Thanks! JR This electronic transmission is strictly confidential to TNCO, Inc. and intended solely for the addressee. It may contain information which is covered by legal, professional, or other privileges. If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy, or take any action in reliance on this transmission. If you have received this transmission in error, please notify the sender as soon as possible and destroy this message. While TNCO, Inc. uses virus protection, the recipient should check this email and any attachments for the presence of viruses. TNCO, Inc. accepts no liability for any damage caused by any virus transmitted by this email. From DElam at jenkens.com Tue Jul 12 14:03:02 2005 From: DElam at jenkens.com (Elam, Debbie) Date: Tue, 12 Jul 2005 14:03:02 -0500 Subject: [dba-SQLServer] Active Script Task in DTS Message-ID: <7B1961ED924D1A459E378C9B1BB22B4C0492CAE0@natexch.jenkens.com> Are you sure that e:\ is the same drive you think you are referring to? This can be tricky with DTS, I always use the UNC path to avoid confusion. Debbie -----Original Message----- From: Joe Rojas [mailto:JRojas at tnco-inc.com] Sent: Tuesday, July 12, 2005 1:46 PM To: 'dba-sqlserver at databaseadvisors.com' Subject: [dba-SQLServer] Active Script Task in DTS In DTS designer, I added an Active Script Task to my DTS package as the last step. This task is supposed to move a text file from one location to another. I am trying to do this with the code below but I get a permission denied error. Function Main() Dim fso Set fso = CreateObject("Scripting.FileSystemObject") fso.MoveFile "E:\ftp\bom.txt", "E:\ftp\pub\" Set fso = Nothing Main = DTSTaskExecResult_Success End Function I check the folder permissions and the Everyone group has full control over these folders. Any ideas? Thanks! JR This electronic transmission is strictly confidential to TNCO, Inc. and intended solely for the addressee. It may contain information which is covered by legal, professional, or other privileges. If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy, or take any action in reliance on this transmission. If you have received this transmission in error, please notify the sender as soon as possible and destroy this message. While TNCO, Inc. uses virus protection, the recipient should check this email and any attachments for the presence of viruses. TNCO, Inc. accepts no liability for any damage caused by any virus transmitted by this email. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com - JENKENS & GILCHRIST E-MAIL NOTICE - This transmission may be: (1) subject to the Attorney-Client Privilege, (2) an attorney work product, or (3) strictly confidential. If you are not the intended recipient of this message, you may not disclose, print, copy or disseminate this information. If you have received this in error, please reply and notify the sender (only) and delete the message. Unauthorized interception of this e-mail is a violation of federal criminal law. This communication does not reflect an intention by the sender or the sender's client or principal to conduct a transaction or make any agreement by electronic means. Nothing contained in this message or in any attachment shall satisfy the requirements for a writing, and nothing contained herein shall constitute a contract or electronic signature under the Electronic Signatures in Global and National Commerce Act, any version of the Uniform Electronic Transactions Act or any other statute governing electronic transactions. From JRojas at tnco-inc.com Tue Jul 12 14:11:30 2005 From: JRojas at tnco-inc.com (Joe Rojas) Date: Tue, 12 Jul 2005 15:11:30 -0400 Subject: [dba-SQLServer] Active Script Task in DTS Message-ID: <0CC84C9461AE6445AD5A602001C41C4B05A3C3@mercury.tnco-inc.com> The E drive is an actual local drive. I know the path works because I am importing bom.txt in a previous step with success. To note, it looks like I can't delete a file from an ActiveX task, which is part of a move. I can use the CopyFile method from the FileSystemObject but I can't do a move or delete. If I run the code below from a .vbs file on the server that is running the DTS package, the DeleteFile and MoveFile methods work! I wonder is if this is some kind of limitation for DTS in SS7? Thanks, Joe Rojas IT Manager TNCO, Inc. 781-447-6661 x7506 jrojas at tnco-inc.com -----Original Message----- From: Elam, Debbie [mailto:DElam at jenkens.com] Sent: Tuesday, July 12, 2005 3:03 PM To: 'dba-sqlserver at databaseadvisors.com' Subject: RE: [dba-SQLServer] Active Script Task in DTS Are you sure that e:\ is the same drive you think you are referring to? This can be tricky with DTS, I always use the UNC path to avoid confusion. Debbie -----Original Message----- From: Joe Rojas [mailto:JRojas at tnco-inc.com] Sent: Tuesday, July 12, 2005 1:46 PM To: 'dba-sqlserver at databaseadvisors.com' Subject: [dba-SQLServer] Active Script Task in DTS In DTS designer, I added an Active Script Task to my DTS package as the last step. This task is supposed to move a text file from one location to another. I am trying to do this with the code below but I get a permission denied error. Function Main() Dim fso Set fso = CreateObject("Scripting.FileSystemObject") fso.MoveFile "E:\ftp\bom.txt", "E:\ftp\pub\" Set fso = Nothing Main = DTSTaskExecResult_Success End Function I check the folder permissions and the Everyone group has full control over these folders. Any ideas? Thanks! JR This electronic transmission is strictly confidential to TNCO, Inc. and intended solely for the addressee. It may contain information which is covered by legal, professional, or other privileges. If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy, or take any action in reliance on this transmission. If you have received this transmission in error, please notify the sender as soon as possible and destroy this message. While TNCO, Inc. uses virus protection, the recipient should check this email and any attachments for the presence of viruses. TNCO, Inc. accepts no liability for any damage caused by any virus transmitted by this email. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com - JENKENS & GILCHRIST E-MAIL NOTICE - This transmission may be: (1) subject to the Attorney-Client Privilege, (2) an attorney work product, or (3) strictly confidential. If you are not the intended recipient of this message, you may not disclose, print, copy or disseminate this information. If you have received this in error, please reply and notify the sender (only) and delete the message. Unauthorized interception of this e-mail is a violation of federal criminal law. This communication does not reflect an intention by the sender or the sender's client or principal to conduct a transaction or make any agreement by electronic means. Nothing contained in this message or in any attachment shall satisfy the requirements for a writing, and nothing contained herein shall constitute a contract or electronic signature under the Electronic Signatures in Global and National Commerce Act, any version of the Uniform Electronic Transactions Act or any other statute governing electronic transactions. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com This electronic transmission is strictly confidential to TNCO, Inc. and intended solely for the addressee. It may contain information which is covered by legal, professional, or other privileges. If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy, or take any action in reliance on this transmission. If you have received this transmission in error, please notify the sender as soon as possible and destroy this message. While TNCO, Inc. uses virus protection, the recipient should check this email and any attachments for the presence of viruses. TNCO, Inc. accepts no liability for any damage caused by any virus transmitted by this email. From accessd at shaw.ca Tue Jul 12 19:03:10 2005 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 12 Jul 2005 17:03:10 -0700 Subject: [dba-SQLServer] Active Script Task in DTS In-Reply-To: <0CC84C9461AE6445AD5A602001C41C4B05A3C3@mercury.tnco-inc.com> Message-ID: <0IJJ00C3THH8KW@l-daemon> Hi Joe: Try using the UNC code for naming the source and destination computers. Remember that the DTS code runs from the relative location where the MS SQL server resides not from any local client drive. What the server that hosts the SQL server sees are what drives are available to it, with all the permissions. The SQL just thinks the C: drive as local to it. Use something like "\\MyMSSQLServerDrive\ftp\bom.txt" or "\\MyCommonEDrive\ftp\pub\" Jim -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Joe Rojas Sent: Tuesday, July 12, 2005 12:12 PM To: 'dba-sqlserver at databaseadvisors.com' Subject: RE: [dba-SQLServer] Active Script Task in DTS The E drive is an actual local drive. I know the path works because I am importing bom.txt in a previous step with success. To note, it looks like I can't delete a file from an ActiveX task, which is part of a move. I can use the CopyFile method from the FileSystemObject but I can't do a move or delete. If I run the code below from a .vbs file on the server that is running the DTS package, the DeleteFile and MoveFile methods work! I wonder is if this is some kind of limitation for DTS in SS7? Thanks, Joe Rojas IT Manager TNCO, Inc. 781-447-6661 x7506 jrojas at tnco-inc.com -----Original Message----- From: Elam, Debbie [mailto:DElam at jenkens.com] Sent: Tuesday, July 12, 2005 3:03 PM To: 'dba-sqlserver at databaseadvisors.com' Subject: RE: [dba-SQLServer] Active Script Task in DTS Are you sure that e:\ is the same drive you think you are referring to? This can be tricky with DTS, I always use the UNC path to avoid confusion. Debbie -----Original Message----- From: Joe Rojas [mailto:JRojas at tnco-inc.com] Sent: Tuesday, July 12, 2005 1:46 PM To: 'dba-sqlserver at databaseadvisors.com' Subject: [dba-SQLServer] Active Script Task in DTS In DTS designer, I added an Active Script Task to my DTS package as the last step. This task is supposed to move a text file from one location to another. I am trying to do this with the code below but I get a permission denied error. Function Main() Dim fso Set fso = CreateObject("Scripting.FileSystemObject") fso.MoveFile "E:\ftp\bom.txt", "E:\ftp\pub\" Set fso = Nothing Main = DTSTaskExecResult_Success End Function I check the folder permissions and the Everyone group has full control over these folders. Any ideas? Thanks! JR This electronic transmission is strictly confidential to TNCO, Inc. and intended solely for the addressee. It may contain information which is covered by legal, professional, or other privileges. If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy, or take any action in reliance on this transmission. If you have received this transmission in error, please notify the sender as soon as possible and destroy this message. While TNCO, Inc. uses virus protection, the recipient should check this email and any attachments for the presence of viruses. TNCO, Inc. accepts no liability for any damage caused by any virus transmitted by this email. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com - JENKENS & GILCHRIST E-MAIL NOTICE - This transmission may be: (1) subject to the Attorney-Client Privilege, (2) an attorney work product, or (3) strictly confidential. If you are not the intended recipient of this message, you may not disclose, print, copy or disseminate this information. If you have received this in error, please reply and notify the sender (only) and delete the message. Unauthorized interception of this e-mail is a violation of federal criminal law. This communication does not reflect an intention by the sender or the sender's client or principal to conduct a transaction or make any agreement by electronic means. Nothing contained in this message or in any attachment shall satisfy the requirements for a writing, and nothing contained herein shall constitute a contract or electronic signature under the Electronic Signatures in Global and National Commerce Act, any version of the Uniform Electronic Transactions Act or any other statute governing electronic transactions. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com This electronic transmission is strictly confidential to TNCO, Inc. and intended solely for the addressee. It may contain information which is covered by legal, professional, or other privileges. If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy, or take any action in reliance on this transmission. If you have received this transmission in error, please notify the sender as soon as possible and destroy this message. While TNCO, Inc. uses virus protection, the recipient should check this email and any attachments for the presence of viruses. TNCO, Inc. accepts no liability for any damage caused by any virus transmitted by this email. _______________________________________________ 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 Wed Jul 13 00:39:49 2005 From: michael at ddisolutions.com.au (Michael Maddison) Date: Wed, 13 Jul 2005 15:39:49 +1000 Subject: [dba-SQLServer] Active Script Task in DTS Message-ID: <59A61174B1F5B54B97FD4ADDE71E7D010E4D51@ddi-01.DDI.local> Joe, I suspect it's a permissions issue. What account is DTS (agent) running under? If its system then that may be the problem. We did something similar once and found that creating a job to run the package where you can set the permissions to run under fixed the issue we were having. cheers Michael M The E drive is an actual local drive. I know the path works because I am importing bom.txt in a previous step with success. To note, it looks like I can't delete a file from an ActiveX task, which is part of a move. I can use the CopyFile method from the FileSystemObject but I can't do a move or delete. If I run the code below from a .vbs file on the server that is running the DTS package, the DeleteFile and MoveFile methods work! I wonder is if this is some kind of limitation for DTS in SS7? Thanks, Joe Rojas IT Manager TNCO, Inc. 781-447-6661 x7506 jrojas at tnco-inc.com -----Original Message----- From: Elam, Debbie [mailto:DElam at jenkens.com] Sent: Tuesday, July 12, 2005 3:03 PM To: 'dba-sqlserver at databaseadvisors.com' Subject: RE: [dba-SQLServer] Active Script Task in DTS Are you sure that e:\ is the same drive you think you are referring to? This can be tricky with DTS, I always use the UNC path to avoid confusion. Debbie -----Original Message----- From: Joe Rojas [mailto:JRojas at tnco-inc.com] Sent: Tuesday, July 12, 2005 1:46 PM To: 'dba-sqlserver at databaseadvisors.com' Subject: [dba-SQLServer] Active Script Task in DTS In DTS designer, I added an Active Script Task to my DTS package as the last step. This task is supposed to move a text file from one location to another. I am trying to do this with the code below but I get a permission denied error. Function Main() Dim fso Set fso = CreateObject("Scripting.FileSystemObject") fso.MoveFile "E:\ftp\bom.txt", "E:\ftp\pub\" Set fso = Nothing Main = DTSTaskExecResult_Success End Function I check the folder permissions and the Everyone group has full control over these folders. Any ideas? Thanks! JR This electronic transmission is strictly confidential to TNCO, Inc. and intended solely for the addressee. It may contain information which is covered by legal, professional, or other privileges. If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy, or take any action in reliance on this transmission. If you have received this transmission in error, please notify the sender as soon as possible and destroy this message. While TNCO, Inc. uses virus protection, the recipient should check this email and any attachments for the presence of viruses. TNCO, Inc. accepts no liability for any damage caused by any virus transmitted by this email. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com - JENKENS & GILCHRIST E-MAIL NOTICE - This transmission may be: (1) subject to the Attorney-Client Privilege, (2) an attorney work product, or (3) strictly confidential. If you are not the intended recipient of this message, you may not disclose, print, copy or disseminate this information. If you have received this in error, please reply and notify the sender (only) and delete the message. Unauthorized interception of this e-mail is a violation of federal criminal law. This communication does not reflect an intention by the sender or the sender's client or principal to conduct a transaction or make any agreement by electronic means. Nothing contained in this message or in any attachment shall satisfy the requirements for a writing, and nothing contained herein shall constitute a contract or electronic signature under the Electronic Signatures in Global and National Commerce Act, any version of the Uniform Electronic Transactions Act or any other statute governing electronic transactions. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com This electronic transmission is strictly confidential to TNCO, Inc. and intended solely for the addressee. It may contain information which is covered by legal, professional, or other privileges. If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy, or take any action in reliance on this transmission. If you have received this transmission in error, please notify the sender as soon as possible and destroy this message. While TNCO, Inc. uses virus protection, the recipient should check this email and any attachments for the presence of viruses. TNCO, Inc. accepts no liability for any damage caused by any virus transmitted by this email. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From JRojas at tnco-inc.com Wed Jul 13 07:33:05 2005 From: JRojas at tnco-inc.com (Joe Rojas) Date: Wed, 13 Jul 2005 08:33:05 -0400 Subject: [dba-SQLServer] Active Script Task in DTS - SOLVED Message-ID: <0CC84C9461AE6445AD5A602001C41C4B05A3C4@mercury.tnco-inc.com> It turns out that the file (bom.txt) that is used in a prior step of my DTS is still opened by the DTS and therefore cannot be deleted. If I use a second DTS package that only deletes the file, then it works just fine. JR -----Original Message----- From: Michael Maddison [mailto:michael at ddisolutions.com.au] Sent: Wednesday, July 13, 2005 1:40 AM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer] Active Script Task in DTS Joe, I suspect it's a permissions issue. What account is DTS (agent) running under? If its system then that may be the problem. We did something similar once and found that creating a job to run the package where you can set the permissions to run under fixed the issue we were having. cheers Michael M The E drive is an actual local drive. I know the path works because I am importing bom.txt in a previous step with success. To note, it looks like I can't delete a file from an ActiveX task, which is part of a move. I can use the CopyFile method from the FileSystemObject but I can't do a move or delete. If I run the code below from a .vbs file on the server that is running the DTS package, the DeleteFile and MoveFile methods work! I wonder is if this is some kind of limitation for DTS in SS7? Thanks, Joe Rojas IT Manager TNCO, Inc. 781-447-6661 x7506 jrojas at tnco-inc.com -----Original Message----- From: Elam, Debbie [mailto:DElam at jenkens.com] Sent: Tuesday, July 12, 2005 3:03 PM To: 'dba-sqlserver at databaseadvisors.com' Subject: RE: [dba-SQLServer] Active Script Task in DTS Are you sure that e:\ is the same drive you think you are referring to? This can be tricky with DTS, I always use the UNC path to avoid confusion. Debbie -----Original Message----- From: Joe Rojas [mailto:JRojas at tnco-inc.com] Sent: Tuesday, July 12, 2005 1:46 PM To: 'dba-sqlserver at databaseadvisors.com' Subject: [dba-SQLServer] Active Script Task in DTS In DTS designer, I added an Active Script Task to my DTS package as the last step. This task is supposed to move a text file from one location to another. I am trying to do this with the code below but I get a permission denied error. Function Main() Dim fso Set fso = CreateObject("Scripting.FileSystemObject") fso.MoveFile "E:\ftp\bom.txt", "E:\ftp\pub\" Set fso = Nothing Main = DTSTaskExecResult_Success End Function I check the folder permissions and the Everyone group has full control over these folders. Any ideas? Thanks! JR This electronic transmission is strictly confidential to TNCO, Inc. and intended solely for the addressee. It may contain information which is covered by legal, professional, or other privileges. If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy, or take any action in reliance on this transmission. If you have received this transmission in error, please notify the sender as soon as possible and destroy this message. While TNCO, Inc. uses virus protection, the recipient should check this email and any attachments for the presence of viruses. TNCO, Inc. accepts no liability for any damage caused by any virus transmitted by this email. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com - JENKENS & GILCHRIST E-MAIL NOTICE - This transmission may be: (1) subject to the Attorney-Client Privilege, (2) an attorney work product, or (3) strictly confidential. If you are not the intended recipient of this message, you may not disclose, print, copy or disseminate this information. If you have received this in error, please reply and notify the sender (only) and delete the message. Unauthorized interception of this e-mail is a violation of federal criminal law. This communication does not reflect an intention by the sender or the sender's client or principal to conduct a transaction or make any agreement by electronic means. Nothing contained in this message or in any attachment shall satisfy the requirements for a writing, and nothing contained herein shall constitute a contract or electronic signature under the Electronic Signatures in Global and National Commerce Act, any version of the Uniform Electronic Transactions Act or any other statute governing electronic transactions. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com This electronic transmission is strictly confidential to TNCO, Inc. and intended solely for the addressee. It may contain information which is covered by legal, professional, or other privileges. If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy, or take any action in reliance on this transmission. If you have received this transmission in error, please notify the sender as soon as possible and destroy this message. While TNCO, Inc. uses virus protection, the recipient should check this email and any attachments for the presence of viruses. TNCO, Inc. accepts no liability for any damage caused by any virus transmitted by this email. _______________________________________________ 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 This electronic transmission is strictly confidential to TNCO, Inc. and intended solely for the addressee. It may contain information which is covered by legal, professional, or other privileges. If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy, or take any action in reliance on this transmission. If you have received this transmission in error, please notify the sender as soon as possible and destroy this message. While TNCO, Inc. uses virus protection, the recipient should check this email and any attachments for the presence of viruses. TNCO, Inc. accepts no liability for any damage caused by any virus transmitted by this email. From artful at rogers.com Mon Jul 18 13:27:01 2005 From: artful at rogers.com (Arthur Fuller) Date: Mon, 18 Jul 2005 14:27:01 -0400 Subject: [dba-SQLServer] Weird Issue with SQL 2000 In-Reply-To: <0CC84C9461AE6445AD5A602001C41C4B05A3C4@mercury.tnco-inc.com> Message-ID: <200507181827.j6IIR5R00408@databaseadvisors.com> I am doing work for a client, whose current SQL 2000 install is on his notebook. The real-world app uses MDB format, until we get it shaken down and all the insects (or most) are purged. My db-server is called Rock. His has another name. It reduces to (local) since it is on his notebook. I build an ADP that talks to the db on Rock. I send it to him. He opens Enterprise Manager and can see only the actual name of his notebook (some bizarre name assigned by Dell, consisting of "PC" plus a bunch of digits). I have two problems. 1. I ship him the latest ADP, which connects to Rock (my server). It won't work on his box unless and until he re-assigns the database server. That's as expected. He can open the server in EM and visit all the tables. When running the ADP, he can interrupt its open, then choose File | Connection... but then cannot enter local or (local) as the server name. I give him a backup of my DB, install it using EM... and still Access cannot see the server (which is the local box). 2. I renamed one of my boxes that hosts SQL 2000 to the same name as his box. Strangely enough, I now cannot see this box or its SQL instance from my development box. Prior to the rename, I could see this box just fine. I have rebooted several times in hopes that the new electrons might cure the blindness, but no such luck. I would like either of the following to work: a) I devise a recipe for him to change the connection details so the ADP can talk to his box (local). b) I revise whatever definitions on my newly-renamed box that I need to revise, so that i) I can see said box from my development box, and ii) the resulting ADP can be copied to the client's box with no edits. I have not suffered this problem before, and I am quite unable to deduce why I am now suffering it. Advice appreciated much! Arthur From ebarro at afsweb.com Mon Jul 18 13:55:43 2005 From: ebarro at afsweb.com (Eric Barro) Date: Mon, 18 Jul 2005 11:55:43 -0700 Subject: [dba-SQLServer] Weird Issue with SQL 2000 In-Reply-To: <200507181827.j6IIR5R00408@databaseadvisors.com> Message-ID: Open up your hosts file and add a value for the SQL server like this... Xxx.xxx.xxx.xxx SQLSERVERNAME Where xxx.xxx.xxx.xxx is the IP address In your ADP reference SQLSERVERNAME instead of just (local). -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Monday, July 18, 2005 11:27 AM To: dba-sqlserver at databaseadvisors.com Subject: [dba-SQLServer] Weird Issue with SQL 2000 I am doing work for a client, whose current SQL 2000 install is on his notebook. The real-world app uses MDB format, until we get it shaken down and all the insects (or most) are purged. My db-server is called Rock. His has another name. It reduces to (local) since it is on his notebook. I build an ADP that talks to the db on Rock. I send it to him. He opens Enterprise Manager and can see only the actual name of his notebook (some bizarre name assigned by Dell, consisting of "PC" plus a bunch of digits). I have two problems. 1. I ship him the latest ADP, which connects to Rock (my server). It won't work on his box unless and until he re-assigns the database server. That's as expected. He can open the server in EM and visit all the tables. When running the ADP, he can interrupt its open, then choose File | Connection... but then cannot enter local or (local) as the server name. I give him a backup of my DB, install it using EM... and still Access cannot see the server (which is the local box). 2. I renamed one of my boxes that hosts SQL 2000 to the same name as his box. Strangely enough, I now cannot see this box or its SQL instance from my development box. Prior to the rename, I could see this box just fine. I have rebooted several times in hopes that the new electrons might cure the blindness, but no such luck. I would like either of the following to work: a) I devise a recipe for him to change the connection details so the ADP can talk to his box (local). b) I revise whatever definitions on my newly-renamed box that I need to revise, so that i) I can see said box from my development box, and ii) the resulting ADP can be copied to the client's box with no edits. I have not suffered this problem before, and I am quite unable to deduce why I am now suffering it. Advice appreciated much! Arthur _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com ---------------------------------------------------------------- The information contained in this e-mail message and any file, document, previous e-mail message and/or attachment transmitted herewith is confidential and may be legally privileged. It is intended solely for the private use of the addressee and must not be disclosed to or used by anyone other than the addressee. If you receive this transmission by error, please immediately notify the sender by reply e-mail and destroy the original transmission and its attachments without reading or saving it in any manner. If you are not the intended recipient, or a person responsible for delivering it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of any of the information contained in or attached to this transmission is STRICTLY PROHIBITED. E-mail transmission cannot be guaranteed to be secure or error free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of email transmission. Users and employees of the e-mail system are expressly required not to make defamatory statements and not to infringe or authorize any infringement of copyright or any other legal right by email communications. Any such communication is contrary to company policy. The company will not accept any liability in respect of such communication. From artful at rogers.com Mon Jul 18 17:31:18 2005 From: artful at rogers.com (Arthur Fuller) Date: Mon, 18 Jul 2005 18:31:18 -0400 Subject: [dba-SQLServer] Weird Issue with SQL 2000 In-Reply-To: Message-ID: <200507182231.j6IMVJR00708@databaseadvisors.com> Thanks! I will give this a try (or rather my client will, and doubtless yell if your suggestions fails LOL). -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: July 18, 2005 2:56 PM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer] Weird Issue with SQL 2000 Open up your hosts file and add a value for the SQL server like this... Xxx.xxx.xxx.xxx SQLSERVERNAME Where xxx.xxx.xxx.xxx is the IP address In your ADP reference SQLSERVERNAME instead of just (local). -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Monday, July 18, 2005 11:27 AM To: dba-sqlserver at databaseadvisors.com Subject: [dba-SQLServer] Weird Issue with SQL 2000 I am doing work for a client, whose current SQL 2000 install is on his notebook. The real-world app uses MDB format, until we get it shaken down and all the insects (or most) are purged. My db-server is called Rock. His has another name. It reduces to (local) since it is on his notebook. I build an ADP that talks to the db on Rock. I send it to him. He opens Enterprise Manager and can see only the actual name of his notebook (some bizarre name assigned by Dell, consisting of "PC" plus a bunch of digits). I have two problems. 1. I ship him the latest ADP, which connects to Rock (my server). It won't work on his box unless and until he re-assigns the database server. That's as expected. He can open the server in EM and visit all the tables. When running the ADP, he can interrupt its open, then choose File | Connection... but then cannot enter local or (local) as the server name. I give him a backup of my DB, install it using EM... and still Access cannot see the server (which is the local box). 2. I renamed one of my boxes that hosts SQL 2000 to the same name as his box. Strangely enough, I now cannot see this box or its SQL instance from my development box. Prior to the rename, I could see this box just fine. I have rebooted several times in hopes that the new electrons might cure the blindness, but no such luck. I would like either of the following to work: a) I devise a recipe for him to change the connection details so the ADP can talk to his box (local). b) I revise whatever definitions on my newly-renamed box that I need to revise, so that i) I can see said box from my development box, and ii) the resulting ADP can be copied to the client's box with no edits. I have not suffered this problem before, and I am quite unable to deduce why I am now suffering it. Advice appreciated much! Arthur _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com ---------------------------------------------------------------- The information contained in this e-mail message and any file, document, previous e-mail message and/or attachment transmitted herewith is confidential and may be legally privileged. It is intended solely for the private use of the addressee and must not be disclosed to or used by anyone other than the addressee. If you receive this transmission by error, please immediately notify the sender by reply e-mail and destroy the original transmission and its attachments without reading or saving it in any manner. If you are not the intended recipient, or a person responsible for delivering it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of any of the information contained in or attached to this transmission is STRICTLY PROHIBITED. E-mail transmission cannot be guaranteed to be secure or error free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of email transmission. Users and employees of the e-mail system are expressly required not to make defamatory statements and not to infringe or authorize any infringement of copyright or any other legal right by email communications. Any such communication is contrary to company policy. The company will not accept any liability in respect of such communication. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From accessd at shaw.ca Tue Jul 19 01:31:39 2005 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 18 Jul 2005 23:31:39 -0700 Subject: [dba-SQLServer] Weird Issue with SQL 2000 In-Reply-To: <200507181827.j6IIR5R00408@databaseadvisors.com> Message-ID: <0IJV00G443GO8O@l-daemon> Hi Arthur: Not knowing the details of the issues I will have to start asking the basic question like: 1. The server is named and assuming that a remote the computer on which the remote SQL resides has a unique ip address/domain name? 2. Your domain server can be pinged? Ie. Ping MyAlias.MyDomain.com 3. Your SQL server is using the default port or/and that is specified in the connection string? (1433) 4. The connection capabilities has been shut down due to some firewall (software/hardware) on your client's site? 5. Have him manually enter the connection string in the EM. i.e. MyAlias.MyDomain.com. He will then need the appropriate Username and password to complete the connection. 6 The connection string could be something like: "Provider=SQLOLEDB;Data Source=MyAlias.MyDomain.com,1433; Network Library=DBMSSOCN;Initial Catalog=MyDatabase;User ID=MyUsername;Password=MyPassword;" (Assuming ADO-OLE and your connection port is 1433) HTH Jim -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Monday, July 18, 2005 11:27 AM To: dba-sqlserver at databaseadvisors.com Subject: [dba-SQLServer] Weird Issue with SQL 2000 I am doing work for a client, whose current SQL 2000 install is on his notebook. The real-world app uses MDB format, until we get it shaken down and all the insects (or most) are purged. My db-server is called Rock. His has another name. It reduces to (local) since it is on his notebook. I build an ADP that talks to the db on Rock. I send it to him. He opens Enterprise Manager and can see only the actual name of his notebook (some bizarre name assigned by Dell, consisting of "PC" plus a bunch of digits). I have two problems. 1. I ship him the latest ADP, which connects to Rock (my server). It won't work on his box unless and until he re-assigns the database server. That's as expected. He can open the server in EM and visit all the tables. When running the ADP, he can interrupt its open, then choose File | Connection... but then cannot enter local or (local) as the server name. I give him a backup of my DB, install it using EM... and still Access cannot see the server (which is the local box). 2. I renamed one of my boxes that hosts SQL 2000 to the same name as his box. Strangely enough, I now cannot see this box or its SQL instance from my development box. Prior to the rename, I could see this box just fine. I have rebooted several times in hopes that the new electrons might cure the blindness, but no such luck. I would like either of the following to work: a) I devise a recipe for him to change the connection details so the ADP can talk to his box (local). b) I revise whatever definitions on my newly-renamed box that I need to revise, so that i) I can see said box from my development box, and ii) the resulting ADP can be copied to the client's box with no edits. I have not suffered this problem before, and I am quite unable to deduce why I am now suffering it. Advice appreciated much! Arthur _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From fhtapia at gmail.com Tue Jul 19 18:38:01 2005 From: fhtapia at gmail.com (Francisco Tapia) Date: Tue, 19 Jul 2005 16:38:01 -0700 Subject: [dba-SQLServer] Calling a Webservice... Message-ID: In the middle of a design discussion for a system that is in development, it was brought up if I could just call a webservice from a stored procedure. That's my real question can it? Initially I figured that the website for this system would take an order in, and submit the order to sql server, an inhouse person would review the order and upon it's approval click the approve button and allow the order to be submitted to the enterprise database. Because the Sales Order number needs to be stored on the sql server for refernce, I figured it would be easiest to have the inhouse application call the stored procedure, and let the server go and talk to the webservice and retreive the "Sales Order". If this cannot be done, then I'll need to take all the data at the client side submit it and take the resulting Sales Order and submit it to the sql server, giving it plenty of room for errors due to network interuptions (rare I know, but sometimes not quite)... Has anyone ever had to do this? Thanks, -- -Francisco http://pcthis.blogspot.com |PC news with out the jargon! http://sqlthis.blogspot.com | Tsql and More... From fhtapia at gmail.com Wed Jul 20 11:18:54 2005 From: fhtapia at gmail.com (Francisco Tapia) Date: Wed, 20 Jul 2005 09:18:54 -0700 Subject: [dba-SQLServer] sp_OACreate, was Re: Calling a Webservice... In-Reply-To: References: Message-ID: So continuing on the previous thread, I'll need to call a dll that will ultimatley handshake w/ the webservice, but then comes the question... since sp_OAcreate can only be called by system administrators, how can I give an average user rights to call this service? any ideas? On 7/19/05, Francisco Tapia wrote: > > In the middle of a design discussion for a system that is in development, > it was brought up if I could just call a webservice from a stored procedure. > That's my real question can it? Initially I figured that the website for > this system would take an order in, and submit the order to sql server, an > inhouse person would review the order and upon it's approval click the > approve button and allow the order to be submitted to the enterprise > database. Because the Sales Order number needs to be stored on the sql > server for refernce, I figured it would be easiest to have the inhouse > application call the stored procedure, and let the server go and talk to the > webservice and retreive the "Sales Order". If this cannot be done, then I'll > need to take all the data at the client side submit it and take the > resulting Sales Order and submit it to the sql server, giving it plenty of > room for errors due to network interuptions (rare I know, but sometimes not > quite)... Has anyone ever had to do this? > > Thanks, > > -- > -Francisco > http://pcthis.blogspot.com |PC news with out the jargon! > http://sqlthis.blogspot.com | Tsql and More... > -- -Francisco http://pcthis.blogspot.com |PC news with out the jargon! http://sqlthis.blogspot.com | Tsql and More... From martyconnelly at shaw.ca Wed Jul 20 12:29:02 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 20 Jul 2005 10:29:02 -0700 Subject: [dba-SQLServer] Calling a Webservice... References: Message-ID: <42DE89DE.8060505@shaw.ca> Well I know it can be done, using WSE 2.0 (3.0 is out) and extended stored procedures. I believe doing it this way may cause security headaches. But if you are just returning one variable from an internal site maybe okay. These guys have a Beta ESP they are trying to sell, it is attempting to be generic and requires a dll WebService Extended Stored Procedure for SQL Server 2000 http://www.rdlcomponents.com/EXSP/default.aspx I believe there maybe an easier way in SQL Server 2005 with the CLR Also you could try using SQLXML and SOAP : Using Extended Stored Procedures or SP_OA Stored Procedures to Load CLR in SQL Server Is Not Supported http://support.microsoft.com/default.aspx?scid=kb;en-us;322884 This may work for you. If you want to hit a webservice, you should use the sp_oa* stored procedures to invoke MSXML2.XMLServerHTTP, and communicate with the webservice that way. Make sure MSXML parser version 3 or greater is installed on your SQLServer server (it's installed with IE6 so if you have that, you're good to go). In sql create the following stored procedure. create procedure http_get( @sUrl varchar(200), @response varchar(8000) out) As Declare @obj int , at hr int , at status int , at msg varchar(255) exec @hr = sp_OACreate 'MSXML2.ServerXMLHttp', @obj OUT if @hr < 0 begin Raiserror('sp_OACreate MSXML2.ServerXMLHttp failed', 16, 1) return end exec @hr = sp_OAMethod @obj, 'Open', NULL, 'GET', @sUrl, false if @hr <0 begin set @msg = 'sp_OAMethod Open failed' goto eh end exec @hr = sp_OAMethod @obj, 'send' if @hr <0 begin set @msg = 'sp_OAMethod Send failed' goto eh end exec @hr = sp_OAGetProperty @obj, 'status', @status OUT if @hr <0 begin set @msg = 'sp_OAMethod read status failed' goto eh end if @status <> 200 begin set @msg = 'sp_OAMethod http status ' + str(@status) goto eh end exec @hr = sp_OAGetProperty @obj, 'responseText', @response OUT if @hr <0 begin set @msg = 'sp_OAMethod read response failed' goto eh end exec @hr = sp_OADestroy @obj return eh: exec @hr = sp_OADestroy @obj Raiserror(@msg, 16, 1) return go then run this declare @resp varchar(8000) exec http_get 'http://[webserver]/[virtualDirectory]/HelloWorl?d.asmx/Hello?Name=david', @resp out print @resp Francisco Tapia wrote: >In the middle of a design discussion for a system that is in development, it >was brought up if I could just call a webservice from a stored procedure. >That's my real question can it? Initially I figured that the website for >this system would take an order in, and submit the order to sql server, an >inhouse person would review the order and upon it's approval click the >approve button and allow the order to be submitted to the enterprise >database. Because the Sales Order number needs to be stored on the sql >server for refernce, I figured it would be easiest to have the inhouse >application call the stored procedure, and let the server go and talk to the >webservice and retreive the "Sales Order". If this cannot be done, then I'll >need to take all the data at the client side submit it and take the >resulting Sales Order and submit it to the sql server, giving it plenty of >room for errors due to network interuptions (rare I know, but sometimes not >quite)... Has anyone ever had to do this? > >Thanks, > > > -- Marty Connelly Victoria, B.C. Canada From accessd at shaw.ca Wed Jul 20 12:44:13 2005 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 20 Jul 2005 10:44:13 -0700 Subject: [dba-SQLServer] sp_OACreate, was Re: Calling a Webservice... In-Reply-To: Message-ID: <0IJX00B0IT9NHX@l-daemon> Hi Francisco: Here is a link to a tool kit/white paper directed to MS SQL 2000 and managing webservices: http://www.microsoft.com/downloads/details.aspx?FamilyId=CA1CC72B-6390-4260- B208-2058C0BFD7DE&displaylang=en There might be something in this group of data that will help you. Jim -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Francisco Tapia Sent: Wednesday, July 20, 2005 9:19 AM To: dba-sqlserver at databaseadvisors.com; SQL Server 2k List Subject: [dba-SQLServer] sp_OACreate, was Re: Calling a Webservice... So continuing on the previous thread, I'll need to call a dll that will ultimatley handshake w/ the webservice, but then comes the question... since sp_OAcreate can only be called by system administrators, how can I give an average user rights to call this service? any ideas? On 7/19/05, Francisco Tapia wrote: > > In the middle of a design discussion for a system that is in development, > it was brought up if I could just call a webservice from a stored procedure. > That's my real question can it? Initially I figured that the website for > this system would take an order in, and submit the order to sql server, an > inhouse person would review the order and upon it's approval click the > approve button and allow the order to be submitted to the enterprise > database. Because the Sales Order number needs to be stored on the sql > server for refernce, I figured it would be easiest to have the inhouse > application call the stored procedure, and let the server go and talk to the > webservice and retreive the "Sales Order". If this cannot be done, then I'll > need to take all the data at the client side submit it and take the > resulting Sales Order and submit it to the sql server, giving it plenty of > room for errors due to network interuptions (rare I know, but sometimes not > quite)... Has anyone ever had to do this? > > Thanks, > > -- > -Francisco > http://pcthis.blogspot.com |PC news with out the jargon! > http://sqlthis.blogspot.com | Tsql and More... > -- -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 Paul.Hartland at orridge.co.uk Thu Jul 21 07:47:11 2005 From: Paul.Hartland at orridge.co.uk (Paul Hartland) Date: Thu, 21 Jul 2005 13:47:11 +0100 Subject: [dba-SQLServer] Linked Table In SQL Server Message-ID: <14A7AB003EFD444BBB193A23128DA20E4A3F0C@AL-PRI.Aldridge.local> To all, Is it possible to link (Not import) a table into an SQL Server Database, if so would someone mind telling me how ? Thanks in advance for any help. PAUL HARTLAND Database Designer/Programmer Work Email:paul.hartland at orridge.co.uk Private Email:paul.hartland at fsmail.net ISHARP 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 ebarro at afsweb.com Thu Jul 21 10:43:20 2005 From: ebarro at afsweb.com (Eric Barro) Date: Thu, 21 Jul 2005 08:43:20 -0700 Subject: [dba-SQLServer] Linked Table In SQL Server In-Reply-To: <14A7AB003EFD444BBB193A23128DA20E4A3F0C@AL-PRI.Aldridge.local> Message-ID: Using Enterprise Manager you can link to a "server" which can be another SQL server. -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Paul Hartland Sent: Thursday, July 21, 2005 5:47 AM To: dba-sqlserver at databaseadvisors.com Subject: [dba-SQLServer] Linked Table In SQL Server To all, Is it possible to link (Not import) a table into an SQL Server Database, if so would someone mind telling me how ? Thanks in advance for any help. PAUL HARTLAND Database Designer/Programmer Work Email:paul.hartland at orridge.co.uk Private Email:paul.hartland at fsmail.net ISHARP 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 ---------------------------------------------------------------- The information contained in this e-mail message and any file, document, previous e-mail message and/or attachment transmitted herewith is confidential and may be legally privileged. It is intended solely for the private use of the addressee and must not be disclosed to or used by anyone other than the addressee. If you receive this transmission by error, please immediately notify the sender by reply e-mail and destroy the original transmission and its attachments without reading or saving it in any manner. If you are not the intended recipient, or a person responsible for delivering it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of any of the information contained in or attached to this transmission is STRICTLY PROHIBITED. E-mail transmission cannot be guaranteed to be secure or error free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of email transmission. Users and employees of the e-mail system are expressly required not to make defamatory statements and not to infringe or authorize any infringement of copyright or any other legal right by email communications. Any such communication is contrary to company policy. The company will not accept any liability in respect of such communication. From Paul.Hartland at orridge.co.uk Thu Jul 21 10:49:38 2005 From: Paul.Hartland at orridge.co.uk (Paul Hartland) Date: Thu, 21 Jul 2005 16:49:38 +0100 Subject: [dba-SQLServer] Linked Table In SQL Server Message-ID: <14A7AB003EFD444BBB193A23128DA20E4A3F69@AL-PRI.Aldridge.local> Oh sorry didn't explain myself fully the table I need to link in is in Access format PAUL HARTLAND Database Designer/Programmer paul.hartland at isharp.co.uk ISHARP DDI - 01922 472031 Mobile - 07730 523179 ISHARP (Information Services for Hospitality, Audit, Retail and Pharmacy) provide IT resources for the Christie Group Stock & Inventory Services companies. -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: 21 July 2005 16:43 To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer] Linked Table In SQL Server Using Enterprise Manager you can link to a "server" which can be another SQL server. -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Paul Hartland Sent: Thursday, July 21, 2005 5:47 AM To: dba-sqlserver at databaseadvisors.com Subject: [dba-SQLServer] Linked Table In SQL Server To all, Is it possible to link (Not import) a table into an SQL Server Database, if so would someone mind telling me how ? Thanks in advance for any help. PAUL HARTLAND Database Designer/Programmer Work Email:paul.hartland at orridge.co.uk Private Email:paul.hartland at fsmail.net ISHARP 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 ---------------------------------------------------------------- The information contained in this e-mail message and any file, document, previous e-mail message and/or attachment transmitted herewith is confidential and may be legally privileged. It is intended solely for the private use of the addressee and must not be disclosed to or used by anyone other than the addressee. If you receive this transmission by error, please immediately notify the sender by reply e-mail and destroy the original transmission and its attachments without reading or saving it in any manner. If you are not the intended recipient, or a person responsible for delivering it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of any of the information contained in or attached to this transmission is STRICTLY PROHIBITED. E-mail transmission cannot be guaranteed to be secure or error free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of email transmission. Users and employees of the e-mail system are expressly required not to make defamatory statements and not to infringe or authorize any infringement of copyright or any other legal right by email communications. Any such communication is contrary to company policy. The company will not accept any liability in respect of such communication. _______________________________________________ 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 Thu Jul 21 10:54:15 2005 From: mikedorism at verizon.net (Mike & Doris Manning) Date: Thu, 21 Jul 2005 11:54:15 -0400 Subject: [dba-SQLServer] Linked Table In SQL Server In-Reply-To: Message-ID: <000201c58e0c$73bb65a0$2f01a8c0@dorismanning> You can also do it within sprocs and views by referencing the database DatabaseName.dbo.TableName Doris Manning Database Administrator Hargrove Inc. -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Thursday, July 21, 2005 11:43 AM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer] Linked Table In SQL Server Using Enterprise Manager you can link to a "server" which can be another SQL server. -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Paul Hartland Sent: Thursday, July 21, 2005 5:47 AM To: dba-sqlserver at databaseadvisors.com Subject: [dba-SQLServer] Linked Table In SQL Server To all, Is it possible to link (Not import) a table into an SQL Server Database, if so would someone mind telling me how ? Thanks in advance for any help. PAUL HARTLAND Database Designer/Programmer Work Email:paul.hartland at orridge.co.uk Private Email:paul.hartland at fsmail.net ISHARP 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 ---------------------------------------------------------------- The information contained in this e-mail message and any file, document, previous e-mail message and/or attachment transmitted herewith is confidential and may be legally privileged. It is intended solely for the private use of the addressee and must not be disclosed to or used by anyone other than the addressee. If you receive this transmission by error, please immediately notify the sender by reply e-mail and destroy the original transmission and its attachments without reading or saving it in any manner. If you are not the intended recipient, or a person responsible for delivering it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of any of the information contained in or attached to this transmission is STRICTLY PROHIBITED. E-mail transmission cannot be guaranteed to be secure or error free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of email transmission. Users and employees of the e-mail system are expressly required not to make defamatory statements and not to infringe or authorize any infringement of copyright or any other legal right by email communications. Any such communication is contrary to company policy. The company will not accept any liability in respect of such communication. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From ebarro at afsweb.com Thu Jul 21 13:10:16 2005 From: ebarro at afsweb.com (Eric Barro) Date: Thu, 21 Jul 2005 11:10:16 -0700 Subject: [dba-SQLServer] Linked Table In SQL Server In-Reply-To: <14A7AB003EFD444BBB193A23128DA20E4A3F69@AL-PRI.Aldridge.local> Message-ID: Yes you can do that by specifying the provider. It's not limited to SQL server dbs for linked servers. -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Paul Hartland Sent: Thursday, July 21, 2005 8:50 AM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer] Linked Table In SQL Server Oh sorry didn't explain myself fully the table I need to link in is in Access format PAUL HARTLAND Database Designer/Programmer paul.hartland at isharp.co.uk ISHARP DDI - 01922 472031 Mobile - 07730 523179 ISHARP (Information Services for Hospitality, Audit, Retail and Pharmacy) provide IT resources for the Christie Group Stock & Inventory Services companies. -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: 21 July 2005 16:43 To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer] Linked Table In SQL Server Using Enterprise Manager you can link to a "server" which can be another SQL server. -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Paul Hartland Sent: Thursday, July 21, 2005 5:47 AM To: dba-sqlserver at databaseadvisors.com Subject: [dba-SQLServer] Linked Table In SQL Server To all, Is it possible to link (Not import) a table into an SQL Server Database, if so would someone mind telling me how ? Thanks in advance for any help. PAUL HARTLAND Database Designer/Programmer Work Email:paul.hartland at orridge.co.uk Private Email:paul.hartland at fsmail.net ISHARP 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 ---------------------------------------------------------------- The information contained in this e-mail message and any file, document, previous e-mail message and/or attachment transmitted herewith is confidential and may be legally privileged. It is intended solely for the private use of the addressee and must not be disclosed to or used by anyone other than the addressee. If you receive this transmission by error, please immediately notify the sender by reply e-mail and destroy the original transmission and its attachments without reading or saving it in any manner. If you are not the intended recipient, or a person responsible for delivering it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of any of the information contained in or attached to this transmission is STRICTLY PROHIBITED. E-mail transmission cannot be guaranteed to be secure or error free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of email transmission. Users and employees of the e-mail system are expressly required not to make defamatory statements and not to infringe or authorize any infringement of copyright or any other legal right by email communications. Any such communication is contrary to company policy. The company will not accept any liability in respect of such communication. _______________________________________________ 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 ---------------------------------------------------------------- The information contained in this e-mail message and any file, document, previous e-mail message and/or attachment transmitted herewith is confidential and may be legally privileged. It is intended solely for the private use of the addressee and must not be disclosed to or used by anyone other than the addressee. If you receive this transmission by error, please immediately notify the sender by reply e-mail and destroy the original transmission and its attachments without reading or saving it in any manner. If you are not the intended recipient, or a person responsible for delivering it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of any of the information contained in or attached to this transmission is STRICTLY PROHIBITED. E-mail transmission cannot be guaranteed to be secure or error free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of email transmission. Users and employees of the e-mail system are expressly required not to make defamatory statements and not to infringe or authorize any infringement of copyright or any other legal right by email communications. Any such communication is contrary to company policy. The company will not accept any liability in respect of such communication. From accessd at shaw.ca Thu Jul 21 14:00:51 2005 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 21 Jul 2005 12:00:51 -0700 Subject: [dba-SQLServer] Backing up In-Reply-To: Message-ID: <0IJZ00C03RHCM0@l-daemon> Hi All: This is a simple question I am asking. For years when backing up MS SQL databases I have either relied on an external automated server based backup system or backed up to a local tape drive. For the first time I was hoping to use the MS SQL backup system to backup to a special large capacity drive on the network. When attempting to select the appropriate backup device from the EM backup options there is only shown 'local' shares? How do I make a backup from the MS SQL that will backup to a remote drive? (..and subsequently restoring.) Am I missing something obvious? TIA Jim From dmcafee at pacbell.net Thu Jul 21 14:34:57 2005 From: dmcafee at pacbell.net (dmcafee at pacbell.net) Date: Thu, 21 Jul 2005 12:34:57 -0700 Subject: [dba-SQLServer] Backing up In-Reply-To: <0IJZ00C03RHCM0@l-daemon> Message-ID: I wrote a VB.NET app that copies it over between servers: Public Shared Sub MoveBackUp() Dim path As String = "\\server1\c$\Program Files\Microsoft SQL Server\MSSQL\BACKUP\MachinesLive.Bak" Dim path2 As String = "\\server2\c$\Program Files\Microsoft SQL Server\MSSQL\BACKUP\MachinesLive.Bak" If File.Exists(path) Then If File.Exists(path2) Then ' Ensure that the target file does not exist, since this is disallowed. File.Delete(path2) End If ' Copy the file. File.Copy(path, path2, True) Else MsgBox(path + " does not exist.", , "Cannot copy file!") End If End Sub I created a job on the live server that backs up a db: BACKUP DATABASE [MACHINES] TO DISK = N'C:\Program Files\Microsoft SQL Server\MSSQL\BACKUP\MachinesLive.Bak' WITH INIT , NOUNLOAD , NAME = N'MACHINES backup', NOSKIP , STATS = 10, NOFORMAT then a few minutes later a service on my computer runs the VB.Net app which copies the file from the live server to the dev server A few minutes after that I runa job on the dev server which restores the db: (I first clear the users:) DECLARE @dbname as VARCHAR(50) SET @dbname = 'MACHINES' DECLARE @strSQL varchar(255) PRINT 'Killing Users' PRINT '-----------------' CREATE table #tmpUsers( spid int, eid int, status varchar(30), loginname varchar(50), hostname varchar(50), blk int, dbname varchar(50), cmd varchar(30)) INSERT INTO #tmpUsers EXEC SP_WHO DECLARE LoginCursor CURSOR READ_ONLY FOR SELECT spid, dbname FROM #tmpUsers WHERE dbname = @dbname DECLARE @spid varchar(10) DECLARE @dbname2 varchar(40) OPEN LoginCursor FETCH NEXT FROM LoginCursor INTO @spid, @dbname2 WHILE (@@fetch_status <> -1) BEGIN IF (@@fetch_status <> -2) BEGIN PRINT 'Killing ' + @spid SET @strSQL = 'KILL ' + @spid EXEC (@strSQL) END FETCH NEXT FROM LoginCursor INTO @spid, @dbname2 END CLOSE LoginCursor DEALLOCATE LoginCursor DROP table #tmpUsers GO then I restore: RESTORE DATABASE Machines FROM DISK = 'c:\Program Files\Microsoft SQL Server\MSSQL\BACKUP\MachinesLive.Bak' If you simply wanted to store or back up the db, you could always zip up the file and copy that somewhere. HTH David McAfee -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com]On Behalf Of Jim Lawrence Sent: Thursday, July 21, 2005 12:01 PM To: dba-sqlserver at databaseadvisors.com Subject: [dba-SQLServer] Backing up Hi All: This is a simple question I am asking. For years when backing up MS SQL databases I have either relied on an external automated server based backup system or backed up to a local tape drive. For the first time I was hoping to use the MS SQL backup system to backup to a special large capacity drive on the network. When attempting to select the appropriate backup device from the EM backup options there is only shown 'local' shares? How do I make a backup from the MS SQL that will backup to a remote drive? (..and subsequently restoring.) Am I missing something obvious? TIA Jim _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From accessd at shaw.ca Thu Jul 21 14:59:03 2005 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 21 Jul 2005 12:59:03 -0700 Subject: [dba-SQLServer] Backing up In-Reply-To: Message-ID: <0IJZ00G1IU6CH8@l-daemon> Hi David: Quite brilliant! I will definitely try out your code as I am trying to get up to speed in .NET.... But the question is can you backup to a remote drive using just the built in MS SQL backup procedures? Jim -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of dmcafee at pacbell.net Sent: Thursday, July 21, 2005 12:35 PM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer] Backing up I wrote a VB.NET app that copies it over between servers: Public Shared Sub MoveBackUp() Dim path As String = "\\server1\c$\Program Files\Microsoft SQL Server\MSSQL\BACKUP\MachinesLive.Bak" Dim path2 As String = "\\server2\c$\Program Files\Microsoft SQL Server\MSSQL\BACKUP\MachinesLive.Bak" If File.Exists(path) Then If File.Exists(path2) Then ' Ensure that the target file does not exist, since this is disallowed. File.Delete(path2) End If ' Copy the file. File.Copy(path, path2, True) Else MsgBox(path + " does not exist.", , "Cannot copy file!") End If End Sub I created a job on the live server that backs up a db: BACKUP DATABASE [MACHINES] TO DISK = N'C:\Program Files\Microsoft SQL Server\MSSQL\BACKUP\MachinesLive.Bak' WITH INIT , NOUNLOAD , NAME = N'MACHINES backup', NOSKIP , STATS = 10, NOFORMAT then a few minutes later a service on my computer runs the VB.Net app which copies the file from the live server to the dev server A few minutes after that I runa job on the dev server which restores the db: (I first clear the users:) DECLARE @dbname as VARCHAR(50) SET @dbname = 'MACHINES' DECLARE @strSQL varchar(255) PRINT 'Killing Users' PRINT '-----------------' CREATE table #tmpUsers( spid int, eid int, status varchar(30), loginname varchar(50), hostname varchar(50), blk int, dbname varchar(50), cmd varchar(30)) INSERT INTO #tmpUsers EXEC SP_WHO DECLARE LoginCursor CURSOR READ_ONLY FOR SELECT spid, dbname FROM #tmpUsers WHERE dbname = @dbname DECLARE @spid varchar(10) DECLARE @dbname2 varchar(40) OPEN LoginCursor FETCH NEXT FROM LoginCursor INTO @spid, @dbname2 WHILE (@@fetch_status <> -1) BEGIN IF (@@fetch_status <> -2) BEGIN PRINT 'Killing ' + @spid SET @strSQL = 'KILL ' + @spid EXEC (@strSQL) END FETCH NEXT FROM LoginCursor INTO @spid, @dbname2 END CLOSE LoginCursor DEALLOCATE LoginCursor DROP table #tmpUsers GO then I restore: RESTORE DATABASE Machines FROM DISK = 'c:\Program Files\Microsoft SQL Server\MSSQL\BACKUP\MachinesLive.Bak' If you simply wanted to store or back up the db, you could always zip up the file and copy that somewhere. HTH David McAfee -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com]On Behalf Of Jim Lawrence Sent: Thursday, July 21, 2005 12:01 PM To: dba-sqlserver at databaseadvisors.com Subject: [dba-SQLServer] Backing up Hi All: This is a simple question I am asking. For years when backing up MS SQL databases I have either relied on an external automated server based backup system or backed up to a local tape drive. For the first time I was hoping to use the MS SQL backup system to backup to a special large capacity drive on the network. When attempting to select the appropriate backup device from the EM backup options there is only shown 'local' shares? How do I make a backup from the MS SQL that will backup to a remote drive? (..and subsequently restoring.) Am I missing something obvious? TIA Jim _______________________________________________ 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 dmcafee at pacbell.net Thu Jul 21 15:06:04 2005 From: dmcafee at pacbell.net (David Mcafee) Date: Thu, 21 Jul 2005 13:06:04 -0700 (PDT) Subject: [dba-SQLServer] Backing up In-Reply-To: <0IJZ00G1IU6CH8@l-daemon> Message-ID: <20050721200604.67158.qmail@web80803.mail.yahoo.com> Not that I know of, only local drives. --- Jim Lawrence wrote: > Hi David: > > Quite brilliant! I will definitely try out your code > as I am trying to get > up to speed in .NET.... > > But the question is can you backup to a remote drive > using just the built in > MS SQL backup procedures? > > Jim > > -----Original Message----- > From: dba-sqlserver-bounces at databaseadvisors.com > [mailto:dba-sqlserver-bounces at databaseadvisors.com] > On Behalf Of > dmcafee at pacbell.net > Sent: Thursday, July 21, 2005 12:35 PM > To: dba-sqlserver at databaseadvisors.com > Subject: RE: [dba-SQLServer] Backing up > > I wrote a VB.NET app that copies it over between > servers: > > Public Shared Sub MoveBackUp() > Dim path As String = "\\server1\c$\Program > Files\Microsoft SQL > Server\MSSQL\BACKUP\MachinesLive.Bak" > Dim path2 As String = "\\server2\c$\Program > Files\Microsoft SQL > Server\MSSQL\BACKUP\MachinesLive.Bak" > If File.Exists(path) Then > If File.Exists(path2) Then > ' Ensure that the target file does > not exist, since this is > disallowed. > File.Delete(path2) > End If > ' Copy the file. > File.Copy(path, path2, True) > Else > MsgBox(path + " does not exist.", , > "Cannot copy file!") > End If > End Sub > > > I created a job on the live server that backs up a > db: > > BACKUP DATABASE [MACHINES] TO DISK = N'C:\Program > Files\Microsoft SQL > Server\MSSQL\BACKUP\MachinesLive.Bak' WITH INIT , > NOUNLOAD , NAME = > N'MACHINES backup', NOSKIP , STATS = 10, NOFORMAT > > then a few minutes later a service on my computer > runs the VB.Net app which > copies the file from the live server to the dev > server > > A few minutes after that I runa job on the dev > server which restores the db: > > (I first clear the users:) > DECLARE @dbname as VARCHAR(50) > SET @dbname = 'MACHINES' > > DECLARE @strSQL varchar(255) > PRINT 'Killing Users' > PRINT '-----------------' > > CREATE table #tmpUsers( > spid int, > eid int, > status varchar(30), > loginname varchar(50), > hostname varchar(50), > blk int, > dbname varchar(50), > cmd varchar(30)) > > INSERT INTO #tmpUsers EXEC SP_WHO > > DECLARE LoginCursor CURSOR > READ_ONLY > FOR SELECT spid, dbname FROM #tmpUsers WHERE dbname > = @dbname > > DECLARE @spid varchar(10) > DECLARE @dbname2 varchar(40) > OPEN LoginCursor > > FETCH NEXT FROM LoginCursor INTO @spid, @dbname2 > WHILE (@@fetch_status <> -1) > BEGIN > IF (@@fetch_status <> -2) > BEGIN > PRINT 'Killing ' + @spid > SET @strSQL = 'KILL ' + @spid > EXEC (@strSQL) > END > FETCH NEXT FROM LoginCursor INTO @spid, @dbname2 > END > > CLOSE LoginCursor > DEALLOCATE LoginCursor > DROP table #tmpUsers > GO > > > then I restore: > RESTORE DATABASE Machines > FROM DISK = 'c:\Program Files\Microsoft SQL > Server\MSSQL\BACKUP\MachinesLive.Bak' > > > If you simply wanted to store or back up the db, you > could always zip up the > file and copy that somewhere. > > HTH > David McAfee > > > -----Original Message----- > From: dba-sqlserver-bounces at databaseadvisors.com > [mailto:dba-sqlserver-bounces at databaseadvisors.com]On > Behalf Of Jim > Lawrence > Sent: Thursday, July 21, 2005 12:01 PM > To: dba-sqlserver at databaseadvisors.com > Subject: [dba-SQLServer] Backing up > > > Hi All: > > This is a simple question I am asking. > > For years when backing up MS SQL databases I have > either relied on an > external automated server based backup system or > backed up to a local tape > drive. > > For the first time I was hoping to use the MS SQL > backup system to backup to > a special large capacity drive on the network. When > attempting to select the > appropriate backup device from the EM backup options > there is only shown > 'local' shares? How do I make a backup from the MS > SQL that will backup to a > remote drive? (..and subsequently restoring.) > > Am I missing something obvious? > > TIA > Jim > > _______________________________________________ > 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 > > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > > From artful at rogers.com Thu Jul 21 17:57:08 2005 From: artful at rogers.com (Arthur Fuller) Date: Thu, 21 Jul 2005 18:57:08 -0400 Subject: [dba-SQLServer] Backing up In-Reply-To: <20050721200604.67158.qmail@web80803.mail.yahoo.com> Message-ID: <200507212257.j6LMv8R23230@databaseadvisors.com> I second that. It's sad but true, I think. Rather than using .NET (not to put down David's code, I just took another path), I chose the DTS task method to move the backup to another machine. Whatever works! Efficiency comes after correctness! -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of David Mcafee Sent: July 21, 2005 4:06 PM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer] Backing up Not that I know of, only local drives. --- Jim Lawrence wrote: From dmcafee at pacbell.net Thu Jul 21 18:00:56 2005 From: dmcafee at pacbell.net (David Mcafee) Date: Thu, 21 Jul 2005 16:00:56 -0700 (PDT) Subject: [dba-SQLServer] Backing up In-Reply-To: <200507212257.j6LMv8R23230@databaseadvisors.com> Message-ID: <20050721230056.37993.qmail@web80808.mail.yahoo.com> Yes, I was new here and my boss wanted me to start picking up .Net so I thought that it would be a neat little project. DTS would be much more efficient. --- Arthur Fuller wrote: > I second that. It's sad but true, I think. Rather > than using .NET (not to > put down David's code, I just took another path), I > chose the DTS task > method to move the backup to another machine. > Whatever works! Efficiency > comes after correctness! > > > > -----Original Message----- > From: dba-sqlserver-bounces at databaseadvisors.com > [mailto:dba-sqlserver-bounces at databaseadvisors.com] > On Behalf Of David > Mcafee > Sent: July 21, 2005 4:06 PM > To: dba-sqlserver at databaseadvisors.com > Subject: RE: [dba-SQLServer] Backing up > > > > Not that I know of, only local drives. > > > > --- Jim Lawrence wrote: > > > > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > > From accessd at shaw.ca Fri Jul 22 04:03:06 2005 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 22 Jul 2005 02:03:06 -0700 Subject: [dba-SQLServer] Backing up In-Reply-To: <20050721200604.67158.qmail@web80803.mail.yahoo.com> Message-ID: <0IK000M5LUH2S7@l-daemon> Sort of makes you wish you could attach pseudo drives/directories like in Unix/Linix. Jim -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of David Mcafee Sent: Thursday, July 21, 2005 1:06 PM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer] Backing up Not that I know of, only local drives. --- Jim Lawrence wrote: > Hi David: > > Quite brilliant! I will definitely try out your code > as I am trying to get > up to speed in .NET.... > > But the question is can you backup to a remote drive > using just the built in > MS SQL backup procedures? > > Jim > > -----Original Message----- > From: dba-sqlserver-bounces at databaseadvisors.com > [mailto:dba-sqlserver-bounces at databaseadvisors.com] > On Behalf Of > dmcafee at pacbell.net > Sent: Thursday, July 21, 2005 12:35 PM > To: dba-sqlserver at databaseadvisors.com > Subject: RE: [dba-SQLServer] Backing up > > I wrote a VB.NET app that copies it over between > servers: > > Public Shared Sub MoveBackUp() > Dim path As String = "\\server1\c$\Program > Files\Microsoft SQL > Server\MSSQL\BACKUP\MachinesLive.Bak" > Dim path2 As String = "\\server2\c$\Program > Files\Microsoft SQL > Server\MSSQL\BACKUP\MachinesLive.Bak" > If File.Exists(path) Then > If File.Exists(path2) Then > ' Ensure that the target file does > not exist, since this is > disallowed. > File.Delete(path2) > End If > ' Copy the file. > File.Copy(path, path2, True) > Else > MsgBox(path + " does not exist.", , > "Cannot copy file!") > End If > End Sub > > > I created a job on the live server that backs up a > db: > > BACKUP DATABASE [MACHINES] TO DISK = N'C:\Program > Files\Microsoft SQL > Server\MSSQL\BACKUP\MachinesLive.Bak' WITH INIT , > NOUNLOAD , NAME = > N'MACHINES backup', NOSKIP , STATS = 10, NOFORMAT > > then a few minutes later a service on my computer > runs the VB.Net app which > copies the file from the live server to the dev > server > > A few minutes after that I runa job on the dev > server which restores the db: > > (I first clear the users:) > DECLARE @dbname as VARCHAR(50) > SET @dbname = 'MACHINES' > > DECLARE @strSQL varchar(255) > PRINT 'Killing Users' > PRINT '-----------------' > > CREATE table #tmpUsers( > spid int, > eid int, > status varchar(30), > loginname varchar(50), > hostname varchar(50), > blk int, > dbname varchar(50), > cmd varchar(30)) > > INSERT INTO #tmpUsers EXEC SP_WHO > > DECLARE LoginCursor CURSOR > READ_ONLY > FOR SELECT spid, dbname FROM #tmpUsers WHERE dbname > = @dbname > > DECLARE @spid varchar(10) > DECLARE @dbname2 varchar(40) > OPEN LoginCursor > > FETCH NEXT FROM LoginCursor INTO @spid, @dbname2 > WHILE (@@fetch_status <> -1) > BEGIN > IF (@@fetch_status <> -2) > BEGIN > PRINT 'Killing ' + @spid > SET @strSQL = 'KILL ' + @spid > EXEC (@strSQL) > END > FETCH NEXT FROM LoginCursor INTO @spid, @dbname2 > END > > CLOSE LoginCursor > DEALLOCATE LoginCursor > DROP table #tmpUsers > GO > > > then I restore: > RESTORE DATABASE Machines > FROM DISK = 'c:\Program Files\Microsoft SQL > Server\MSSQL\BACKUP\MachinesLive.Bak' > > > If you simply wanted to store or back up the db, you > could always zip up the > file and copy that somewhere. > > HTH > David McAfee > > > -----Original Message----- > From: dba-sqlserver-bounces at databaseadvisors.com > [mailto:dba-sqlserver-bounces at databaseadvisors.com]On > Behalf Of Jim > Lawrence > Sent: Thursday, July 21, 2005 12:01 PM > To: dba-sqlserver at databaseadvisors.com > Subject: [dba-SQLServer] Backing up > > > Hi All: > > This is a simple question I am asking. > > For years when backing up MS SQL databases I have > either relied on an > external automated server based backup system or > backed up to a local tape > drive. > > For the first time I was hoping to use the MS SQL > backup system to backup to > a special large capacity drive on the network. When > attempting to select the > appropriate backup device from the EM backup options > there is only shown > 'local' shares? How do I make a backup from the MS > SQL that will backup to a > remote drive? (..and subsequently restoring.) > > Am I missing something obvious? > > TIA > Jim > > _______________________________________________ > 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 > > _______________________________________________ > 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 JRojas at tnco-inc.com Fri Jul 22 10:00:16 2005 From: JRojas at tnco-inc.com (Joe Rojas) Date: Fri, 22 Jul 2005 11:00:16 -0400 Subject: [dba-SQLServer] Remotely create DTS package Message-ID: <0CC84C9461AE6445AD5A602001C41C4B05A3EC@mercury.tnco-inc.com> I noticed that if I create a DTS package directly from the server running SS7 that if I try to open or exec this package remotely that it generates an error message of "The parameter is incorrect" Is this by design? The only thing that I can think of is that the package opens a text file that is on a local drive on the server and because this file does not existed on my remote computer it generates this error...I don't know... Any ideas? JR This electronic transmission is strictly confidential to TNCO, Inc. and intended solely for the addressee. It may contain information which is covered by legal, professional, or other privileges. If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy, or take any action in reliance on this transmission. If you have received this transmission in error, please notify the sender as soon as possible and destroy this message. While TNCO, Inc. uses virus protection, the recipient should check this email and any attachments for the presence of viruses. TNCO, Inc. accepts no liability for any damage caused by any virus transmitted by this email. From JRojas at tnco-inc.com Fri Jul 22 10:08:03 2005 From: JRojas at tnco-inc.com (Joe Rojas) Date: Fri, 22 Jul 2005 11:08:03 -0400 Subject: [dba-SQLServer] Trim text data that comes from a text file import Message-ID: <0CC84C9461AE6445AD5A602001C41C4B05A3ED@mercury.tnco-inc.com> I have a DTS package that imports data to SS7 from a text file. The text file is fixed width. The destination table has varchar fields. Is there a way to trim the text data that is coming from the text file during the import step of the DTS package or should I just add a SQL Task step at the end of my DTS package to do this? Thanks! JR This electronic transmission is strictly confidential to TNCO, Inc. and intended solely for the addressee. It may contain information which is covered by legal, professional, or other privileges. If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy, or take any action in reliance on this transmission. If you have received this transmission in error, please notify the sender as soon as possible and destroy this message. While TNCO, Inc. uses virus protection, the recipient should check this email and any attachments for the presence of viruses. TNCO, Inc. accepts no liability for any damage caused by any virus transmitted by this email. From newsgrps at dalyn.co.nz Sun Jul 24 11:44:19 2005 From: newsgrps at dalyn.co.nz (David Emerson) Date: Mon, 25 Jul 2005 04:44:19 +1200 Subject: [dba-SQLServer] Getting Data from another Database (Speed) Message-ID: <6.2.1.2.0.20050725042932.030f4eb0@mail.dalyn.co.nz> Group, Access XP adp, SQL2000. I have a stored procedure which is the rowsource for a combo box thus: ALTER PROCEDURE spcbofrmCustServicePlansServicePlan AS SET NOCOUNT ON SELECT SQLLtdbe.dbo.tblServiceRates.ServiceRateID, SQLLtdbe.dbo.tblServicePlans.Name, SQLLtdbe.dbo.tblServicePlanDistrict.District, SQLLtdbe.dbo.tblServiceRates.CurrentPlan as "Current" FROM SQLLtdbe.dbo.tblServicePlanDistrict INNER JOIN (SQLLtdbe.dbo.tblServicePlans INNER JOIN SQLLtdbe.dbo.tblServiceRates ON (SQLLtdbe.dbo.tblServicePlans.ServicePlanID = SQLLtdbe.dbo.tblServiceRates.ServicePlanIDNo)) ON (SQLLtdbe.dbo.tblServicePlanDistrict.ServPlanDistrictID = SQLLtdbe.dbo.tblServiceRates.DisctrictIDNo) ORDER BY SQLLtdbe.dbo.tblServiceRates.CurrentPlan DESC, SQLLtdbe.dbo.tblServicePlanDistrict.District, SQLLtdbe.dbo.tblServicePlans.Name It returns about 3600 records. This runs ok when the adp is connected to SQLLtdbe. However, when I connect to another SQL database which also has the same sproc, it takes over 1/2 a minute from when the drop down list is opened to when a selected item appears in the combo box. The screen seems to freeze between selecting the item and when the list automatically closes and the item is left in the box. It seems to be an issue of time taken to get all the data from the other database to populate the combobox. Are there any tips in speeding up the process (apart from reducing the number of items in the list)? From accessd at shaw.ca Sun Jul 24 12:35:20 2005 From: accessd at shaw.ca (Jim Lawrence) Date: Sun, 24 Jul 2005 10:35:20 -0700 Subject: [dba-SQLServer] Getting Data from another Database (Speed) In-Reply-To: <6.2.1.2.0.20050725042932.030f4eb0@mail.dalyn.co.nz> Message-ID: <0IK500E0T7IUN7@l-daemon> Hi David: How is the receiving recordset configured? If the recordset is set to dynamic-linking then the processing is going to be slow. Make sure the receiving recordset is set to static. HTH Jim -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of David Emerson Sent: Sunday, July 24, 2005 9:44 AM To: dba-SQLServer at databaseadvisors.com Subject: [dba-SQLServer] Getting Data from another Database (Speed) Group, Access XP adp, SQL2000. I have a stored procedure which is the rowsource for a combo box thus: ALTER PROCEDURE spcbofrmCustServicePlansServicePlan AS SET NOCOUNT ON SELECT SQLLtdbe.dbo.tblServiceRates.ServiceRateID, SQLLtdbe.dbo.tblServicePlans.Name, SQLLtdbe.dbo.tblServicePlanDistrict.District, SQLLtdbe.dbo.tblServiceRates.CurrentPlan as "Current" FROM SQLLtdbe.dbo.tblServicePlanDistrict INNER JOIN (SQLLtdbe.dbo.tblServicePlans INNER JOIN SQLLtdbe.dbo.tblServiceRates ON (SQLLtdbe.dbo.tblServicePlans.ServicePlanID = SQLLtdbe.dbo.tblServiceRates.ServicePlanIDNo)) ON (SQLLtdbe.dbo.tblServicePlanDistrict.ServPlanDistrictID = SQLLtdbe.dbo.tblServiceRates.DisctrictIDNo) ORDER BY SQLLtdbe.dbo.tblServiceRates.CurrentPlan DESC, SQLLtdbe.dbo.tblServicePlanDistrict.District, SQLLtdbe.dbo.tblServicePlans.Name It returns about 3600 records. This runs ok when the adp is connected to SQLLtdbe. However, when I connect to another SQL database which also has the same sproc, it takes over 1/2 a minute from when the drop down list is opened to when a selected item appears in the combo box. The screen seems to freeze between selecting the item and when the list automatically closes and the item is left in the box. It seems to be an issue of time taken to get all the data from the other database to populate the combobox. Are there any tips in speeding up the process (apart from reducing the number of items in the list)? _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From newsgrps at dalyn.co.nz Sun Jul 24 12:58:54 2005 From: newsgrps at dalyn.co.nz (David Emerson) Date: Mon, 25 Jul 2005 05:58:54 +1200 Subject: [dba-SQLServer] Getting Data from another Database (Speed) In-Reply-To: <0IK500E0T7IUN7@l-daemon> References: <6.2.1.2.0.20050725042932.030f4eb0@mail.dalyn.co.nz> <0IK500E0T7IUN7@l-daemon> Message-ID: <6.2.1.2.0.20050725055804.030dbd90@mail.dalyn.co.nz> Thanks for the response. Where do I set the stored procedure to Static? David At 25/07/2005, you wrote: >Hi David: > >How is the receiving recordset configured? If the recordset is set to >dynamic-linking then the processing is going to be slow. Make sure the >receiving recordset is set to static. > >HTH >Jim > >-----Original Message----- >From: dba-sqlserver-bounces at databaseadvisors.com >[mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of David >Emerson >Sent: Sunday, July 24, 2005 9:44 AM >To: dba-SQLServer at databaseadvisors.com >Subject: [dba-SQLServer] Getting Data from another Database (Speed) > >Group, > >Access XP adp, SQL2000. > >I have a stored procedure which is the rowsource for a combo box thus: > >ALTER PROCEDURE spcbofrmCustServicePlansServicePlan > >AS >SET NOCOUNT ON > >SELECT SQLLtdbe.dbo.tblServiceRates.ServiceRateID, >SQLLtdbe.dbo.tblServicePlans.Name, > SQLLtdbe.dbo.tblServicePlanDistrict.District, >SQLLtdbe.dbo.tblServiceRates.CurrentPlan as "Current" >FROM SQLLtdbe.dbo.tblServicePlanDistrict INNER JOIN >(SQLLtdbe.dbo.tblServicePlans INNER JOIN SQLLtdbe.dbo.tblServiceRates ON > (SQLLtdbe.dbo.tblServicePlans.ServicePlanID = >SQLLtdbe.dbo.tblServiceRates.ServicePlanIDNo)) ON > (SQLLtdbe.dbo.tblServicePlanDistrict.ServPlanDistrictID = >SQLLtdbe.dbo.tblServiceRates.DisctrictIDNo) >ORDER BY SQLLtdbe.dbo.tblServiceRates.CurrentPlan DESC, >SQLLtdbe.dbo.tblServicePlanDistrict.District, > SQLLtdbe.dbo.tblServicePlans.Name > >It returns about 3600 records. This runs ok when the adp is connected to >SQLLtdbe. However, when I connect to another SQL database which also has >the same sproc, it takes over 1/2 a minute from when the drop down list is >opened to when a selected item appears in the combo box. The screen seems >to freeze between selecting the item and when the list automatically closes >and the item is left in the box. > >It seems to be an issue of time taken to get all the data from the other >database to populate the combobox. Are there any tips in speeding up the >process (apart from reducing the number of items in the list)? >_______________________________________________ >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 accessd at shaw.ca Sun Jul 24 15:19:35 2005 From: accessd at shaw.ca (Jim Lawrence) Date: Sun, 24 Jul 2005 13:19:35 -0700 Subject: [dba-SQLServer] Getting Data from another Database (Speed) In-Reply-To: <6.2.1.2.0.20050725055804.030dbd90@mail.dalyn.co.nz> Message-ID: <0IK50010FF4L0N@l-daemon> Hi David: My knowledge of ADP applications is non-existent. I have only worked with standard Access applications that attach to MS SQL/Oracle DBs. There must be some place in the ADP model that will allow you to set recordset parameters. Do you have access to the recordset CursorType? With rsMyRecordset .CursorType = adOpenStatic End With I believe that it defaults to 'adOpenDynamic' and that is where your problem would be. HTH Jim -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of David Emerson Sent: Sunday, July 24, 2005 10:59 AM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer] Getting Data from another Database (Speed) Thanks for the response. Where do I set the stored procedure to Static? David At 25/07/2005, you wrote: >Hi David: > >How is the receiving recordset configured? If the recordset is set to >dynamic-linking then the processing is going to be slow. Make sure the >receiving recordset is set to static. > >HTH >Jim > >-----Original Message----- >From: dba-sqlserver-bounces at databaseadvisors.com >[mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of David >Emerson >Sent: Sunday, July 24, 2005 9:44 AM >To: dba-SQLServer at databaseadvisors.com >Subject: [dba-SQLServer] Getting Data from another Database (Speed) > >Group, > >Access XP adp, SQL2000. > >I have a stored procedure which is the rowsource for a combo box thus: > >ALTER PROCEDURE spcbofrmCustServicePlansServicePlan > >AS >SET NOCOUNT ON > >SELECT SQLLtdbe.dbo.tblServiceRates.ServiceRateID, >SQLLtdbe.dbo.tblServicePlans.Name, > SQLLtdbe.dbo.tblServicePlanDistrict.District, >SQLLtdbe.dbo.tblServiceRates.CurrentPlan as "Current" >FROM SQLLtdbe.dbo.tblServicePlanDistrict INNER JOIN >(SQLLtdbe.dbo.tblServicePlans INNER JOIN SQLLtdbe.dbo.tblServiceRates ON > (SQLLtdbe.dbo.tblServicePlans.ServicePlanID = >SQLLtdbe.dbo.tblServiceRates.ServicePlanIDNo)) ON > (SQLLtdbe.dbo.tblServicePlanDistrict.ServPlanDistrictID = >SQLLtdbe.dbo.tblServiceRates.DisctrictIDNo) >ORDER BY SQLLtdbe.dbo.tblServiceRates.CurrentPlan DESC, >SQLLtdbe.dbo.tblServicePlanDistrict.District, > SQLLtdbe.dbo.tblServicePlans.Name > >It returns about 3600 records. This runs ok when the adp is connected to >SQLLtdbe. However, when I connect to another SQL database which also has >the same sproc, it takes over 1/2 a minute from when the drop down list is >opened to when a selected item appears in the combo box. The screen seems >to freeze between selecting the item and when the list automatically closes >and the item is left in the box. > >It seems to be an issue of time taken to get all the data from the other >database to populate the combobox. Are there any tips in speeding up the >process (apart from reducing the number of items in the list)? >_______________________________________________ >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 _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From ebarro at afsweb.com Sun Jul 24 16:08:57 2005 From: ebarro at afsweb.com (Eric Barro) Date: Sun, 24 Jul 2005 14:08:57 -0700 Subject: [dba-SQLServer] Getting Data from another Database (Speed) In-Reply-To: <6.2.1.2.0.20050725042932.030f4eb0@mail.dalyn.co.nz> Message-ID: Try this... SELECT sr.ServiceRateID, sp.Name, spd.District, sr.CurrentPlan as "Current" FROM SQLLtdbe.dbo.tblServiceRates sr (nolock) INNER JOIN SQLLtdbe.dbo.tblServicePlans sp (nolock) ON sp.ServicePlanID = sr.SevicePlanIDNo INNER JOIN SQLLtdbe.dbo.tblServicePlanDistrict spd (nolock) ON spd.ServPlanDistrictID = sr.DistrictIDNo ORDER BY sr.CurrentPlan DESC, spd.District, sp.Name -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of David Emerson Sent: Sunday, July 24, 2005 9:44 AM To: dba-SQLServer at databaseadvisors.com Subject: [dba-SQLServer] Getting Data from another Database (Speed) Group, Access XP adp, SQL2000. I have a stored procedure which is the rowsource for a combo box thus: ALTER PROCEDURE spcbofrmCustServicePlansServicePlan AS SET NOCOUNT ON SELECT SQLLtdbe.dbo.tblServiceRates.ServiceRateID, SQLLtdbe.dbo.tblServicePlans.Name, SQLLtdbe.dbo.tblServicePlanDistrict.District, SQLLtdbe.dbo.tblServiceRates.CurrentPlan as "Current" FROM SQLLtdbe.dbo.tblServicePlanDistrict INNER JOIN (SQLLtdbe.dbo.tblServicePlans INNER JOIN SQLLtdbe.dbo.tblServiceRates ON (SQLLtdbe.dbo.tblServicePlans.ServicePlanID = SQLLtdbe.dbo.tblServiceRates.ServicePlanIDNo)) ON (SQLLtdbe.dbo.tblServicePlanDistrict.ServPlanDistrictID = SQLLtdbe.dbo.tblServiceRates.DisctrictIDNo) ORDER BY SQLLtdbe.dbo.tblServiceRates.CurrentPlan DESC, SQLLtdbe.dbo.tblServicePlanDistrict.District, SQLLtdbe.dbo.tblServicePlans.Name It returns about 3600 records. This runs ok when the adp is connected to SQLLtdbe. However, when I connect to another SQL database which also has the same sproc, it takes over 1/2 a minute from when the drop down list is opened to when a selected item appears in the combo box. The screen seems to freeze between selecting the item and when the list automatically closes and the item is left in the box. It seems to be an issue of time taken to get all the data from the other database to populate the combobox. Are there any tips in speeding up the process (apart from reducing the number of items in the list)? _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com ---------------------------------------------------------------- The information contained in this e-mail message and any file, document, previous e-mail message and/or attachment transmitted herewith is confidential and may be legally privileged. It is intended solely for the private use of the addressee and must not be disclosed to or used by anyone other than the addressee. If you receive this transmission by error, please immediately notify the sender by reply e-mail and destroy the original transmission and its attachments without reading or saving it in any manner. If you are not the intended recipient, or a person responsible for delivering it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of any of the information contained in or attached to this transmission is STRICTLY PROHIBITED. E-mail transmission cannot be guaranteed to be secure or error free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of email transmission. Users and employees of the e-mail system are expressly required not to make defamatory statements and not to infringe or authorize any infringement of copyright or any other legal right by email communications. Any such communication is contrary to company policy. The company will not accept any liability in respect of such communication. From newsgrps at dalyn.co.nz Sun Jul 24 17:05:59 2005 From: newsgrps at dalyn.co.nz (David Emerson) Date: Mon, 25 Jul 2005 10:05:59 +1200 Subject: [dba-SQLServer] Getting Data from another Database (Speed) In-Reply-To: <0IK50010FF4L0N@l-daemon> References: <6.2.1.2.0.20050725055804.030dbd90@mail.dalyn.co.nz> <0IK50010FF4L0N@l-daemon> Message-ID: <6.2.1.2.0.20050725091333.02affeb0@mail.dalyn.co.nz> Jim, I don't think that is available. The stored procedure is entered in the rowsource of the combo box. Even in VBA there doesn't seem to be any settings for the rowsource property apart from the name of the stored procedure. After subsequent testing it doesn't seem to be the combo box at all. The delay now seems to be caused when a new record is inserted into the form for the first time. The form is a continuous one. Once it has been opened, and the first new record is inserted then there is no delay in inserting extra records. There is also no delay in changing existing records. The form is opened from another form and is filtered based on a field on the main form. The stored procedure for the form is: ALTER PROCEDURE spfrmCustServicePlans ( @txtMeterID Int ) AS SET NOCOUNT ON SELECT tblCustServicePlans.PlanID, tblCustServicePlans.MeterIDNo, tblCustServicePlans.ServiceRateIDNo, tblCustServicePlans.ConnectionDate, tblCustServicePlans.DailyDiscRate, tblCustServicePlans.Term, tblCustServicePlans.ExpiryDate, tblCustServicePlans.Inactive, tblCustServicePlans.DisconnectionDate, tblCustServicePlans.kWhDiscRate1, tblCustServicePlans.kWhDiscRate2, tblCustServicePlans.kWhDiscRate3, tblCustServicePlans.kWhDiscRate4, SQLLtdbe.dbo.tblServiceRates.DailyRate, SQLLtdbe.dbo.tblServiceRates.ServiceRateID, tblCustServicePlans.Gap FROM SQLLtdbe.dbo.tblServiceRates INNER JOIN tblCustServicePlans ON SQLLtdbe.dbo.tblServiceRates.ServiceRateID = tblCustServicePlans.ServiceRateIDNo WHERE tblCustServicePlans.MeterIDNo = @txtMeterID ORDER BY tblCustServicePlans.Inactive, tblCustServicePlans.ConnectionDate DESC; The Unique Table property of the form = tblCustServicePlans The Resynch Command property is: SELECT tblCustServicePlans.*, SQLLtdbe.dbo.tblServicePlans.SortOrder, SQLLtdbe.dbo.tblServiceRates.DailyRate, SQLLtdbe.dbo.tblServiceRates.ServiceRateID FROM SQLLtdbe.dbo.tblServicePlans INNER JOIN SQLLtdbe.dbo.tblServiceRates ON SQLLtdbe.dbo.tblServicePlans.ServicePlanID = SQLLtdbe.dbo.tblServiceRates.ServicePlanIDNo INNER JOIN tblCustServicePlans ON SQLLtdbe.dbo.tblServiceRates.ServiceRateID = tblCustServicePlans.ServiceRateIDNo WHERE tblCustServicePlans.PlanID = ? The spfrmCustServicePlans stored procedure is also in the SQLLtdbe database. When the front end is connected to this database there is no (well, comparatively very little) delay in adding the first new record. Is it something to do with combining tables from different databases? David At 25/07/2005, you wrote: >Hi David: > >My knowledge of ADP applications is non-existent. I have only worked with >standard Access applications that attach to MS SQL/Oracle DBs. There must be >some place in the ADP model that will allow you to set recordset parameters. > >Do you have access to the recordset CursorType? > >With rsMyRecordset > .CursorType = adOpenStatic >End With > >I believe that it defaults to 'adOpenDynamic' and that is where your problem >would be. > >HTH >Jim From newsgrps at dalyn.co.nz Sun Jul 24 16:52:45 2005 From: newsgrps at dalyn.co.nz (David Emerson) Date: Mon, 25 Jul 2005 09:52:45 +1200 Subject: [dba-SQLServer] Getting Data from another Database (Speed) In-Reply-To: References: <6.2.1.2.0.20050725042932.030f4eb0@mail.dalyn.co.nz> Message-ID: <6.2.1.2.0.20050725095120.02b0e7a0@mail.dalyn.co.nz> Thanks Eric. That didn't fix the problem as I think the combo box was a white herring. See my other post. David At 25/07/2005, you wrote: > Try this... > >SELECT >sr.ServiceRateID, >sp.Name, >spd.District, >sr.CurrentPlan as "Current" > >FROM SQLLtdbe.dbo.tblServiceRates sr (nolock) > >INNER JOIN SQLLtdbe.dbo.tblServicePlans sp (nolock) >ON sp.ServicePlanID = sr.SevicePlanIDNo > >INNER JOIN SQLLtdbe.dbo.tblServicePlanDistrict spd (nolock) >ON spd.ServPlanDistrictID = sr.DistrictIDNo > >ORDER BY sr.CurrentPlan DESC, spd.District, sp.Name > > >-----Original Message----- >From: dba-sqlserver-bounces at databaseadvisors.com >[mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of David >Emerson >Sent: Sunday, July 24, 2005 9:44 AM >To: dba-SQLServer at databaseadvisors.com >Subject: [dba-SQLServer] Getting Data from another Database (Speed) > >Group, > >Access XP adp, SQL2000. > >I have a stored procedure which is the rowsource for a combo box thus: > >ALTER PROCEDURE spcbofrmCustServicePlansServicePlan > >AS >SET NOCOUNT ON > >SELECT SQLLtdbe.dbo.tblServiceRates.ServiceRateID, >SQLLtdbe.dbo.tblServicePlans.Name, > SQLLtdbe.dbo.tblServicePlanDistrict.District, >SQLLtdbe.dbo.tblServiceRates.CurrentPlan as "Current" >FROM SQLLtdbe.dbo.tblServicePlanDistrict INNER JOIN >(SQLLtdbe.dbo.tblServicePlans INNER JOIN SQLLtdbe.dbo.tblServiceRates ON > (SQLLtdbe.dbo.tblServicePlans.ServicePlanID = >SQLLtdbe.dbo.tblServiceRates.ServicePlanIDNo)) ON > (SQLLtdbe.dbo.tblServicePlanDistrict.ServPlanDistrictID = >SQLLtdbe.dbo.tblServiceRates.DisctrictIDNo) >ORDER BY SQLLtdbe.dbo.tblServiceRates.CurrentPlan DESC, >SQLLtdbe.dbo.tblServicePlanDistrict.District, > SQLLtdbe.dbo.tblServicePlans.Name > >It returns about 3600 records. This runs ok when the adp is connected to >SQLLtdbe. However, when I connect to another SQL database which also has >the same sproc, it takes over 1/2 a minute from when the drop down list is >opened to when a selected item appears in the combo box. The screen seems >to freeze between selecting the item and when the list automatically closes >and the item is left in the box. > >It seems to be an issue of time taken to get all the data from the other >database to populate the combobox. Are there any tips in speeding up the >process (apart from reducing the number of items in the list)? >_______________________________________________ >dba-SQLServer mailing list >dba-SQLServer at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-sqlserver >http://www.databaseadvisors.com > > > > > > >---------------------------------------------------------------- >The information contained in this e-mail message and any file, document, >previous e-mail message and/or attachment transmitted >herewith is confidential and may be legally privileged. It is intended >solely for the private use of the addressee and must not be >disclosed to or used by anyone other than the addressee. If you receive >this transmission by error, please immediately notify the >sender by reply e-mail and destroy the original transmission and its >attachments without reading or saving it in any manner. If you >are not the intended recipient, or a person responsible for delivering it >to the intended recipient, you are hereby notified that any >disclosure, copying, distribution or use of any of the information >contained in or attached to this transmission is STRICTLY >PROHIBITED. E-mail transmission cannot be guaranteed to be secure or error >free as information could be intercepted, corrupted, >lost, destroyed, arrive late or incomplete, or contain viruses. >The sender therefore does not accept liability for any errors or omissions >in the contents of this message, which arise as a result of >email transmission. Users and employees of the e-mail system are expressly >required not to make defamatory statements and not >to infringe or authorize any infringement of copyright or any other legal >right by email communications. Any such communication is >contrary to company policy. The company will not accept any liability in >respect of such communication. > >_______________________________________________ >dba-SQLServer mailing list >dba-SQLServer at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-sqlserver >http://www.databaseadvisors.com From newsgrps at dalyn.co.nz Mon Jul 25 00:37:24 2005 From: newsgrps at dalyn.co.nz (David Emerson) Date: Mon, 25 Jul 2005 17:37:24 +1200 Subject: [dba-SQLServer] Getting Data from another Database (Speed) Message-ID: <6.2.1.2.0.20050725172528.030eecd0@mail.dalyn.co.nz> Group, Further testing has come up with the actual(?) problem. If the subform already has records in it then a new record can be added. However, if there are no records in the pop up form for the record on the main form, then an error 0 (reserved error) pops up when the record in the pop up form is saved. The entered data then disappears. When the form is closed and opened again then the record appears and extra records can be added no problem. The pop up form is opened from another form and is filtered based on a field on the main form. The stored procedure for the pop up form is: ALTER PROCEDURE spfrmCustServicePlans ( @txtMeterID Int ) AS SET NOCOUNT ON SELECT tblCustServicePlans.PlanID, tblCustServicePlans.MeterIDNo, tblCustServicePlans.ServiceRateIDNo, tblCustServicePlans.ConnectionDate, tblCustServicePlans.DailyDiscRate, tblCustServicePlans.Term, tblCustServicePlans.ExpiryDate, tblCustServicePlans.Inactive, tblCustServicePlans.DisconnectionDate, tblCustServicePlans.kWhDiscRate1, tblCustServicePlans.kWhDiscRate2, tblCustServicePlans.kWhDiscRate3, tblCustServicePlans.kWhDiscRate4, SQLLtdbe.dbo.tblServiceRates.DailyRate, SQLLtdbe.dbo.tblServiceRates.ServiceRateID, tblCustServicePlans.Gap FROM SQLLtdbe.dbo.tblServiceRates INNER JOIN tblCustServicePlans ON SQLLtdbe.dbo.tblServiceRates.ServiceRateID = tblCustServicePlans.ServiceRateIDNo WHERE tblCustServicePlans.MeterIDNo = @txtMeterID ORDER BY tblCustServicePlans.Inactive, tblCustServicePlans.ConnectionDate DESC; The Unique Table property of the pop up form = tblCustServicePlans. This was entered when all the tables belonged in the same database. I have moved all of the tables into another database except for the unique table. Now if I look at the dropdown list in the unique table property it is empty. However, deleting this property value means that I am not able to add any records at all. The Resynch Command property is: SELECT tblCustServicePlans.*, SQLLtdbe.dbo.tblServicePlans.SortOrder, SQLLtdbe.dbo.tblServiceRates.DailyRate, SQLLtdbe.dbo.tblServiceRates.ServiceRateID FROM SQLLtdbe.dbo.tblServicePlans INNER JOIN SQLLtdbe.dbo.tblServiceRates ON SQLLtdbe.dbo.tblServicePlans.ServicePlanID = SQLLtdbe.dbo.tblServiceRates.ServicePlanIDNo INNER JOIN tblCustServicePlans ON SQLLtdbe.dbo.tblServiceRates.ServiceRateID = tblCustServicePlans.ServiceRateIDNo WHERE tblCustServicePlans.PlanID = ? The issue seems to be with resynching the records after the first on has been entered. If I open the form on my development computer having connected to the SQL database remotely on the server then I can add records but I get the problem mentioned at the beginning of this message. Trying to run the same programme in a runtime environment directly on the server doesn't even let me add a first record. Any thoughts? David From fhtapia at gmail.com Mon Jul 25 11:23:21 2005 From: fhtapia at gmail.com (Francisco Tapia) Date: Mon, 25 Jul 2005 09:23:21 -0700 Subject: [dba-SQLServer] Trim text data that comes from a text file import In-Reply-To: <0CC84C9461AE6445AD5A602001C41C4B05A3ED@mercury.tnco-inc.com> References: <0CC84C9461AE6445AD5A602001C41C4B05A3ED@mercury.tnco-inc.com> Message-ID: Within the DTS package you can make this modification, on the transformation object you can specify an ActiveX script for your import, you'll then be able to add code such as "dtstarget("field1") = trim(dtssource("field1")) see books online for detailed info on this :) On 7/22/05, Joe Rojas wrote: > > I have a DTS package that imports data to SS7 from a text file. > The text file is fixed width. > The destination table has varchar fields. > > Is there a way to trim the text data that is coming from the text file > during the import step of the DTS package or should I just add a SQL Task > step at the end of my DTS package to do this? > > Thanks! > JR > > > > > This electronic transmission is strictly confidential to TNCO, Inc. and > intended solely for the addressee. It may contain information which is > covered by legal, professional, or other privileges. If you are not the > intended addressee, or someone authorized by the intended addressee to > receive transmissions on behalf of the addressee, you must not retain, > disclose in any form, copy, or take any action in reliance on this > transmission. If you have received this transmission in error, please > notify > the sender as soon as possible and destroy this message. While TNCO, Inc. > uses virus protection, the recipient should check this email and any > attachments for the presence of viruses. TNCO, Inc. accepts no liability > for > any damage caused by any virus transmitted by this email. > _______________________________________________ > 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 Mark.Whittinghill at protective.com Wed Jul 27 10:36:43 2005 From: Mark.Whittinghill at protective.com (Mark.Whittinghill at protective.com) Date: Wed, 27 Jul 2005 10:36:43 -0500 Subject: [dba-SQLServer] Hello Again Message-ID: Hi folks, I used to be active on the AccessD list, then dropped to lurker, then moved to St. Louis and got a new job. I'm working with a SQL Server data warehouse, and using Cognos tools for reporting and cube creation. It's a good job at a stable insurance company, and it's a good place to work. Data warehousing is a lot different than the transactional Access dbs I spent most of my last 5 1/2 years building, but I am working hard and learning fast. Hello to all, and I'll be seeing you on the list. Mark Whittinghill ----------------------------------------- Confidentiality Notice: This e-mail communication and any attachments may contain confidential and privileged information for the use of the designated recipients named above. If you are not the intended recipient, you are hereby notified that you have received this communication in error and that any review, disclosure, dissemination, distribution or copying of it or its contents is prohibited. If you have received this communication in error, please notify me immediately by replying to this message and deleting it from your computer. Thank you. From andy at minstersystems.co.uk Wed Jul 27 12:48:59 2005 From: andy at minstersystems.co.uk (Andy Lacey) Date: Wed, 27 Jul 2005 18:48:59 +0100 Subject: [dba-SQLServer] Hello Again In-Reply-To: Message-ID: <000001c592d3$783b8ad0$901b0c54@minster33c3r25> Hi Mark, welcome back. -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: dba-sqlserver-bounces at databaseadvisors.com > [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf > Of Mark.Whittinghill at protective.com > Sent: 27 July 2005 16:37 > To: dba-sqlserver at databaseadvisors.com > Subject: [dba-SQLServer] Hello Again > > > Hi folks, > > I used to be active on the AccessD list, then dropped to > lurker, then > moved to St. Louis and got a new job. I'm working with a SQL > Server data > warehouse, and using Cognos tools for reporting and cube > creation. It's a > good job at a stable insurance company, and it's a good place > to work. > Data warehousing is a lot different than the transactional > Access dbs I > spent most of my last 5 1/2 years building, but I am working hard and > learning fast. Hello to all, and I'll be seeing you on the list. > > Mark Whittinghill > > > ----------------------------------------- > Confidentiality Notice: This e-mail communication and any > attachments may contain confidential and privileged > information for the use of the designated recipients named > above. If you are not the intended recipient, you are hereby > notified that you have received this communication in error > and that any review, disclosure, dissemination, distribution > or copying of it or its contents is prohibited. If you have > received this communication in error, please notify me > immediately by replying to this message and deleting it from > your computer. Thank you. > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > > > From tuxedo_man at hotmail.com Wed Jul 27 13:34:19 2005 From: tuxedo_man at hotmail.com (Billy Pang) Date: Wed, 27 Jul 2005 18:34:19 +0000 Subject: [dba-SQLServer] Hello Again In-Reply-To: Message-ID: Hi Mark: Welcome back. I am hoping to make a similiar transition as you did (going from OLTP to data warehousing). Do you have any recommendations for someone hoping to make the same transition? 99% of my work experience comes from OLTP; not sure how that can help me look for a job in the DW world. I'm keeping my fingers crossed. I am currently going through a few books I bought on DW and data mining. Some of the DW books I read (published in late 90s) I am not sure if the DW principles are still relevant today since the introduction chapter would say something about how the DW market is still maturing (eg. the last paragraph of the introduction chapter in a book called "the data warehouse toolkit"). Billy >From: Mark.Whittinghill at protective.com >Reply-To: dba-sqlserver at databaseadvisors.com >To: dba-sqlserver at databaseadvisors.com >Subject: [dba-SQLServer] Hello Again >Date: Wed, 27 Jul 2005 10:36:43 -0500 > >Hi folks, > > I used to be active on the AccessD list, then dropped to lurker, then >moved to St. Louis and got a new job. I'm working with a SQL Server data >warehouse, and using Cognos tools for reporting and cube creation. It's a >good job at a stable insurance company, and it's a good place to work. >Data warehousing is a lot different than the transactional Access dbs I >spent most of my last 5 1/2 years building, but I am working hard and >learning fast. Hello to all, and I'll be seeing you on the list. > >Mark Whittinghill > > >----------------------------------------- >Confidentiality Notice: This e-mail communication and any attachments may >contain confidential and privileged information for the use of the >designated recipients named above. If you are not the intended recipient, >you are hereby notified that you have received this communication in error >and that any review, disclosure, dissemination, distribution or copying of >it or its contents is prohibited. If you have received this communication >in error, please notify me immediately by replying to this message and >deleting it from your computer. Thank you. >_______________________________________________ >dba-SQLServer mailing list >dba-SQLServer at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-sqlserver >http://www.databaseadvisors.com > From ldoering at symphonyinfo.com Wed Jul 27 13:48:41 2005 From: ldoering at symphonyinfo.com (Liz Doering) Date: Wed, 27 Jul 2005 13:48:41 -0500 Subject: [dba-SQLServer] Hello Again Message-ID: <855499653F55AD4190B242717DF132BC082FE7@dewey.Symphony.local> Mark, A good job at a stable place is worth a lot. Hope you enjoy it, and glad to see you back. Liz -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Mark.Whittinghill at protective.com Sent: Wednesday, July 27, 2005 10:46 AM To: dba-sqlserver at databaseadvisors.com Subject: [dba-SQLServer] Hello Again Hi folks, I used to be active on the AccessD list, then dropped to lurker, then moved to St. Louis and got a new job. I'm working with a SQL Server data warehouse, and using Cognos tools for reporting and cube creation. It's a good job at a stable insurance company, and it's a good place to work. Data warehousing is a lot different than the transactional Access dbs I spent most of my last 5 1/2 years building, but I am working hard and learning fast. Hello to all, and I'll be seeing you on the list. Mark Whittinghill From Rich_Lavsa at pghcorning.com Wed Jul 27 13:45:16 2005 From: Rich_Lavsa at pghcorning.com (Lavsa, Rich) Date: Wed, 27 Jul 2005 14:45:16 -0400 Subject: [dba-SQLServer] SQL Procedures - Need some advice Message-ID: <2A261FF9D5EBCA46940C11688CE872EE026C9AC4@goexchange2.pghcorning.com> Background: SQL 2000, have 2 procedures. Both run fine on their own. Next step is to execute them on a scheduled basis, however one needs to run and finish before the other starts. What I want to happen: First procedure simply deletes all records in a DataMart table. Second procedure runs an insert query that pulls data out of many tables in our ERP and denormalizes it into a single table structure for quick processing (37 minute query) Can I combine both procedures into one? If so how, when I tried this the second procedure disappeared. I had the Delete statement followed by GO, then the Insert statement followed by GO. It seemed to save it, but when I opened it back up it was gone (happened more then once). Would it be easier to look for changes and only apply the changes and new records, if so how would I go about doing this? I didn't think this would matter in my case as the table is strictly a reference table and the 37 minute query will take 37 minutes to run no matter what. Looking for some guidance as I am teaching myself all I can about MS SQL SERVER.. I have done some simple procedures that only do Selects, no cursors. Did some dynamic sql stuff but that's about as deep as I have gotten into Procedures so if anyone could help and excuse my ignorance I would greatly appreciate it. Thanks in advance, Rich From Mark.Whittinghill at protective.com Wed Jul 27 14:00:16 2005 From: Mark.Whittinghill at protective.com (Mark.Whittinghill at protective.com) Date: Wed, 27 Jul 2005 14:00:16 -0500 Subject: [dba-SQLServer] Hello Again In-Reply-To: Message-ID: Billy, I see, sir, that you are mistaken. You have the impression that I know what I am doing :-) I'll tell you how I got this job, but it may not be representative. I saw this advertised almost under the radar, so I wasn't competing against monster.com or recruiting agencies. I sent my resume, but they originally refused to give me an interview, as most of my work was in Access, and they didn't think I had the SQL Server experience. I wrote back with a two page defense of my abilities and the reasons I did most of my work in Access, and they liked my perserverance and interviewed me. I was able to convince them that even though I didn't have data warehousing experience, I had the abilities to learn quickly and would be a good addition to the company. I still know very little data warehousing theory, beyond knowing what things like a star schema is. I am still getting used to the tables here. Fortunately, I am being eased into this, and though I am being given primary responsiblity for the data warehouse, there are others here with experience to help. On a very basic oversimplified level, you can think of OLAP as just denormalizing and archiving your OLTP tables. Previous to this job, I didn't have much experience with large data sets, and I am still getting used to the issues in working with those. It helps that much of the framework of the warehouse is already built. As far as building cubes, Cognos takes care of that itself. One of the other programmers here says I should learn the theory, but it's something I can do over time and I'm not going to be handicapped in my day to day work right now not knowing much OLAP theory. Even though you don't have OLAP experience, you may also be able to find a job in the field. There's also a lot of theory for Relational dbs, but how much of it do you use or even recall? You may study a lot in the beginning, but over time you just find yourself doing it. Good luck. Hope this helps. dba-sqlserver-bounces at databaseadvisors.com wrote on 07/27/2005 01:34:19 PM: > Hi Mark: > > Welcome back. I am hoping to make a similiar transition as you did (going > from OLTP to data warehousing). Do you have any recommendations for someone > hoping to make the same transition? 99% of my work experience comes from > OLTP; not sure how that can help me look for a job in the DW world. > > I'm keeping my fingers crossed. I am currently going through a few books I > bought on DW and data mining. Some of the DW books I read (published in > late 90s) I am not sure if the DW principles are still relevant today since > the introduction chapter would say something about how the DW market is > still maturing (eg. the last paragraph of the introduction chapter in a book > called "the data warehouse toolkit"). > > Billy > > ----------------------------------------- Confidentiality Notice: This e-mail communication and any attachments may contain confidential and privileged information for the use of the designated recipients named above. If you are not the intended recipient, you are hereby notified that you have received this communication in error and that any review, disclosure, dissemination, distribution or copying of it or its contents is prohibited. If you have received this communication in error, please notify me immediately by replying to this message and deleting it from your computer. Thank you. From ebarro at afsweb.com Wed Jul 27 14:13:57 2005 From: ebarro at afsweb.com (Eric Barro) Date: Wed, 27 Jul 2005 12:13:57 -0700 Subject: [dba-SQLServer] SQL Procedures - Need some advice In-Reply-To: <2A261FF9D5EBCA46940C11688CE872EE026C9AC4@goexchange2.pghcorning.com> Message-ID: Rich, You can combine both sprocs into one. Create your first sproc and then your second sproc and then create the "master sproc" that has the following lines... Exec sproc1 Exec sproc2 Go Save that sproc and then run a scheduled job based on that master sproc. Anything after GO is ignored so don't put the word GO after each step. Eric -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Lavsa, Rich Sent: Wednesday, July 27, 2005 11:45 AM To: dba-sqlserver at databaseadvisors.com Subject: [dba-SQLServer] SQL Procedures - Need some advice Background: SQL 2000, have 2 procedures. Both run fine on their own. Next step is to execute them on a scheduled basis, however one needs to run and finish before the other starts. What I want to happen: First procedure simply deletes all records in a DataMart table. Second procedure runs an insert query that pulls data out of many tables in our ERP and denormalizes it into a single table structure for quick processing (37 minute query) Can I combine both procedures into one? If so how, when I tried this the second procedure disappeared. I had the Delete statement followed by GO, then the Insert statement followed by GO. It seemed to save it, but when I opened it back up it was gone (happened more then once). Would it be easier to look for changes and only apply the changes and new records, if so how would I go about doing this? I didn't think this would matter in my case as the table is strictly a reference table and the 37 minute query will take 37 minutes to run no matter what. Looking for some guidance as I am teaching myself all I can about MS SQL SERVER.. I have done some simple procedures that only do Selects, no cursors. Did some dynamic sql stuff but that's about as deep as I have gotten into Procedures so if anyone could help and excuse my ignorance I would greatly appreciate it. Thanks in advance, Rich _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com ---------------------------------------------------------------- The information contained in this e-mail message and any file, document, previous e-mail message and/or attachment transmitted herewith is confidential and may be legally privileged. It is intended solely for the private use of the addressee and must not be disclosed to or used by anyone other than the addressee. If you receive this transmission by error, please immediately notify the sender by reply e-mail and destroy the original transmission and its attachments without reading or saving it in any manner. If you are not the intended recipient, or a person responsible for delivering it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of any of the information contained in or attached to this transmission is STRICTLY PROHIBITED. E-mail transmission cannot be guaranteed to be secure or error free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of email transmission. Users and employees of the e-mail system are expressly required not to make defamatory statements and not to infringe or authorize any infringement of copyright or any other legal right by email communications. Any such communication is contrary to company policy. The company will not accept any liability in respect of such communication. From mikedorism at verizon.net Wed Jul 27 14:21:29 2005 From: mikedorism at verizon.net (Mike & Doris Manning) Date: Wed, 27 Jul 2005 15:21:29 -0400 Subject: [dba-SQLServer] SQL Procedures - Need some advice In-Reply-To: <2A261FF9D5EBCA46940C11688CE872EE026C9AC4@goexchange2.pghcorning.com> Message-ID: <000d01c592e0$648710b0$2e01a8c0@dorismanning> I would create a DTS package to take care of the execution. You set up the first procedure to run and then you create a workflow that runs the second on completion of the first. Once you have your package built, you schedule it to run at the time desired and you can also have it notify you of success/failure. Doris Manning Database Administrator Hargrove Inc. -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Lavsa, Rich Sent: Wednesday, July 27, 2005 2:45 PM To: dba-sqlserver at databaseadvisors.com Subject: [dba-SQLServer] SQL Procedures - Need some advice Background: SQL 2000, have 2 procedures. Both run fine on their own. Next step is to execute them on a scheduled basis, however one needs to run and finish before the other starts. What I want to happen: First procedure simply deletes all records in a DataMart table. Second procedure runs an insert query that pulls data out of many tables in our ERP and denormalizes it into a single table structure for quick processing (37 minute query) Can I combine both procedures into one? If so how, when I tried this the second procedure disappeared. I had the Delete statement followed by GO, then the Insert statement followed by GO. It seemed to save it, but when I opened it back up it was gone (happened more then once). Would it be easier to look for changes and only apply the changes and new records, if so how would I go about doing this? I didn't think this would matter in my case as the table is strictly a reference table and the 37 minute query will take 37 minutes to run no matter what. Looking for some guidance as I am teaching myself all I can about MS SQL SERVER.. I have done some simple procedures that only do Selects, no cursors. Did some dynamic sql stuff but that's about as deep as I have gotten into Procedures so if anyone could help and excuse my ignorance I would greatly appreciate it. Thanks in advance, Rich _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From Rich_Lavsa at pghcorning.com Wed Jul 27 15:03:29 2005 From: Rich_Lavsa at pghcorning.com (Lavsa, Rich) Date: Wed, 27 Jul 2005 16:03:29 -0400 Subject: [dba-SQLServer] SQL Procedures - Need some advice Message-ID: <2A261FF9D5EBCA46940C11688CE872EE026C9AE2@goexchange2.pghcorning.com> Eric & Mike, Thanks for your response. I wanted to stay away from DTS as it doesn't seem logical to use DTS if you are trying to keep everything in one place. Every DTS from all databases on the server go in the same place. Even with appropriate naming conventions things can get lost in there so if I can I stay away from DTS, not that I have been doing this for all that long. We have a consultant SQL developer uses them a lot but her processes are very very complex and doing it in a DTS package makes it very easy to follow. For that I can see value, but not something as simple as I am doing. Then again maybe I am not seeing the whole picture of SQL Server yet... I tried the "Master SPROC" it worked beautifully. Thank you Eric for the suggestion. I know my question probably seemed simple to most if not all of you but I came to a point where I needed to stop butting my head against the wall and ask a question.. Thanks Again, Rich -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Wednesday, July 27, 2005 3:14 PM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer] SQL Procedures - Need some advice Rich, You can combine both sprocs into one. Create your first sproc and then your second sproc and then create the "master sproc" that has the following lines... Exec sproc1 Exec sproc2 Go Save that sproc and then run a scheduled job based on that master sproc. Anything after GO is ignored so don't put the word GO after each step. Eric -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Lavsa, Rich Sent: Wednesday, July 27, 2005 11:45 AM To: dba-sqlserver at databaseadvisors.com Subject: [dba-SQLServer] SQL Procedures - Need some advice Background: SQL 2000, have 2 procedures. Both run fine on their own. Next step is to execute them on a scheduled basis, however one needs to run and finish before the other starts. What I want to happen: First procedure simply deletes all records in a DataMart table. Second procedure runs an insert query that pulls data out of many tables in our ERP and denormalizes it into a single table structure for quick processing (37 minute query) Can I combine both procedures into one? If so how, when I tried this the second procedure disappeared. I had the Delete statement followed by GO, then the Insert statement followed by GO. It seemed to save it, but when I opened it back up it was gone (happened more then once). Would it be easier to look for changes and only apply the changes and new records, if so how would I go about doing this? I didn't think this would matter in my case as the table is strictly a reference table and the 37 minute query will take 37 minutes to run no matter what. Looking for some guidance as I am teaching myself all I can about MS SQL SERVER.. I have done some simple procedures that only do Selects, no cursors. Did some dynamic sql stuff but that's about as deep as I have gotten into Procedures so if anyone could help and excuse my ignorance I would greatly appreciate it. Thanks in advance, Rich _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com ---------------------------------------------------------------- The information contained in this e-mail message and any file, document, previous e-mail message and/or attachment transmitted herewith is confidential and may be legally privileged. It is intended solely for the private use of the addressee and must not be disclosed to or used by anyone other than the addressee. If you receive this transmission by error, please immediately notify the sender by reply e-mail and destroy the original transmission and its attachments without reading or saving it in any manner. If you are not the intended recipient, or a person responsible for delivering it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of any of the information contained in or attached to this transmission is STRICTLY PROHIBITED. E-mail transmission cannot be guaranteed to be secure or error free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of email transmission. Users and employees of the e-mail system are expressly required not to make defamatory statements and not to infringe or authorize any infringement of copyright or any other legal right by email communications. Any such communication is contrary to company policy. The company will not accept any liability in respect of such communication. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From Mark.Whittinghill at protective.com Wed Jul 27 15:56:22 2005 From: Mark.Whittinghill at protective.com (Mark.Whittinghill at protective.com) Date: Wed, 27 Jul 2005 15:56:22 -0500 Subject: [dba-SQLServer] Book recommendations Message-ID: We have a bit of a budget to get some new SQL Server 2000 books. What books would you recommend for administrators, and for developers? Thanks ----------------------------------------- Confidentiality Notice: This e-mail communication and any attachments may contain confidential and privileged information for the use of the designated recipients named above. If you are not the intended recipient, you are hereby notified that you have received this communication in error and that any review, disclosure, dissemination, distribution or copying of it or its contents is prohibited. If you have received this communication in error, please notify me immediately by replying to this message and deleting it from your computer. Thank you. From artful at rogers.com Wed Jul 27 22:58:09 2005 From: artful at rogers.com (Arthur Fuller) Date: Wed, 27 Jul 2005 23:58:09 -0400 Subject: [dba-SQLServer] Hello Again In-Reply-To: <855499653F55AD4190B242717DF132BC082FE7@dewey.Symphony.local> Message-ID: <200507280358.j6S3w4R28808@databaseadvisors.com> Two questions: 1. What is a good job? 2. What is a stable company? I am unacquainted with these terms. Arthur -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Liz Doering Sent: July 27, 2005 2:49 PM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer] Hello Again Mark, A good job at a stable place is worth a lot. Hope you enjoy it, and glad to see you back. Liz -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Mark.Whittinghill at protective.com Sent: Wednesday, July 27, 2005 10:46 AM To: dba-sqlserver at databaseadvisors.com Subject: [dba-SQLServer] Hello Again Hi folks, I used to be active on the AccessD list, then dropped to lurker, then moved to St. Louis and got a new job. I'm working with a SQL Server data warehouse, and using Cognos tools for reporting and cube creation. It's a good job at a stable insurance company, and it's a good place to work. Data warehousing is a lot different than the transactional Access dbs I spent most of my last 5 1/2 years building, but I am working hard and learning fast. Hello to all, and I'll be seeing you on the list. Mark Whittinghill _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From artful at rogers.com Wed Jul 27 23:01:43 2005 From: artful at rogers.com (Arthur Fuller) Date: Thu, 28 Jul 2005 00:01:43 -0400 Subject: [dba-SQLServer] Book recommendations In-Reply-To: Message-ID: <200507280401.j6S41cR29700@databaseadvisors.com> I would highly recommend Dejan Sunderic. I left his book at the home of a colleague today but google him and you will get there instantly. I have read a LOT of SQL booka and I recommend Dejan over all others. IMO, of course. He writes assuming that you know at least the basics, then he shows you the really cool stuff. My kind of writer! A. -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Mark.Whittinghill at protective.com Sent: July 27, 2005 4:56 PM To: dba-sqlserver at databaseadvisors.com Subject: [dba-SQLServer] Book recommendations We have a bit of a budget to get some new SQL Server 2000 books. What books would you recommend for administrators, and for developers? Thanks From lyle.hannum at co.wake.nc.us Thu Jul 28 08:06:33 2005 From: lyle.hannum at co.wake.nc.us (lyle.hannum at co.wake.nc.us) Date: Thu, 28 Jul 2005 09:06:33 -0400 Subject: [dba-SQLServer] Book recommendations In-Reply-To: Message-ID: I recently used Professional SQL Server 2000 Programming (Programmer to Programmer) by Robert Vieira as a study guide for the 70-229 exam. I found it to be very comprehensive but written in a down to earth style. Mark.Whittinghill at protective.co m To: dba-sqlserver at databaseadvisors.com Sent by: cc: dba-sqlserver-bounces at databasea Subject: [dba-SQLServer] Book recommendations dvisors.com 07/27/2005 04:56 PM Please respond to dba-sqlserver We have a bit of a budget to get some new SQL Server 2000 books. What books would you recommend for administrators, and for developers? Thanks ----------------------------------------- Confidentiality Notice: This e-mail communication and any attachments may contain confidential and privileged information for the use of the designated recipients named above. If you are not the intended recipient, you are hereby notified that you have received this communication in error and that any review, disclosure, dissemination, distribution or copying of it or its contents is prohibited. If you have received this communication in error, please notify me immediately by replying to this message and deleting it from your computer. Thank you. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From accessd at shaw.ca Thu Jul 28 11:03:07 2005 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 28 Jul 2005 09:03:07 -0700 Subject: [dba-SQLServer] Hello Again In-Reply-To: <200507280358.j6S3w4R28808@databaseadvisors.com> Message-ID: <0IKC0071QHX53J@l-daemon> Hi Arthur: A good job: One that is challenging, has variety, a client/employer who respects your hard work and accomplishments and willing pays a reasonable amount. A Stable Company: One that is growing, has a solid client base and a proven track record that extends for at least ten years. (Medical/Financial/Oil/Government.) Jim -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Wednesday, July 27, 2005 8:58 PM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer] Hello Again Two questions: 1. What is a good job? 2. What is a stable company? I am unacquainted with these terms. Arthur -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Liz Doering Sent: July 27, 2005 2:49 PM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer] Hello Again Mark, A good job at a stable place is worth a lot. Hope you enjoy it, and glad to see you back. Liz -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Mark.Whittinghill at protective.com Sent: Wednesday, July 27, 2005 10:46 AM To: dba-sqlserver at databaseadvisors.com Subject: [dba-SQLServer] Hello Again Hi folks, I used to be active on the AccessD list, then dropped to lurker, then moved to St. Louis and got a new job. I'm working with a SQL Server data warehouse, and using Cognos tools for reporting and cube creation. It's a good job at a stable insurance company, and it's a good place to work. Data warehousing is a lot different than the transactional Access dbs I spent most of my last 5 1/2 years building, but I am working hard and learning fast. Hello to all, and I'll be seeing you on the list. Mark Whittinghill _______________________________________________ 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 fahooper at trapo.com Thu Jul 28 14:00:59 2005 From: fahooper at trapo.com (Fred Hooper) Date: Thu, 28 Jul 2005 15:00:59 -0400 Subject: [dba-SQLServer] Hello Again In-Reply-To: <0IKC0071QHX53J@l-daemon> Message-ID: <002601c593a6$b1f47790$2e01a8c0@fredxp> Would the person who was interested in moving to BI work (e.g. Cognos) please email me offline at fahooper at trapo.com -- particularly if you are close to Rhode Island (or want to be). The Cognos specialty firm I work for is looking for people. I found the transition of Access --> SQL Server --> Cognos --> Cognos + Oracle to be an interesting one. Fred Hooper From tuxedo_man at hotmail.com Thu Jul 28 14:29:32 2005 From: tuxedo_man at hotmail.com (Billy Pang) Date: Thu, 28 Jul 2005 19:29:32 +0000 Subject: [dba-SQLServer] Book recommendations In-Reply-To: Message-ID: I recommend "SQL Server Query Performance Tuning Distilled" by Sajal Dam. It is written for experienced SQL Server developers; this book is definitely worth the look. Billy >From: Mark.Whittinghill at protective.com >Reply-To: dba-sqlserver at databaseadvisors.com >To: dba-sqlserver at databaseadvisors.com >Subject: [dba-SQLServer] Book recommendations >Date: Wed, 27 Jul 2005 15:56:22 -0500 > >We have a bit of a budget to get some new SQL Server 2000 books. What >books would you recommend for administrators, and for developers? > >Thanks > > >----------------------------------------- >Confidentiality Notice: This e-mail communication and any attachments may >contain confidential and privileged information for the use of the >designated recipients named above. If you are not the intended recipient, >you are hereby notified that you have received this communication in error >and that any review, disclosure, dissemination, distribution or copying of >it or its contents is prohibited. If you have received this communication >in error, please notify me immediately by replying to this message and >deleting it from your computer. Thank you. >_______________________________________________ >dba-SQLServer mailing list >dba-SQLServer at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-sqlserver >http://www.databaseadvisors.com > From cfoust at infostatsystems.com Thu Jul 28 15:29:53 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 28 Jul 2005 13:29:53 -0700 Subject: [dba-SQLServer] Hello Again Message-ID: 1. The one you can get and keep without going broke or to the asylum. 2. One that deals with equine housing. ;-} Charlotte -----Original Message----- From: Arthur Fuller [mailto:artful at rogers.com] Sent: Wednesday, July 27, 2005 8:58 PM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer] Hello Again Two questions: 1. What is a good job? 2. What is a stable company? I am unacquainted with these terms. Arthur -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Liz Doering Sent: July 27, 2005 2:49 PM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer] Hello Again Mark, A good job at a stable place is worth a lot. Hope you enjoy it, and glad to see you back. Liz -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Mark.Whittinghill at protective.com Sent: Wednesday, July 27, 2005 10:46 AM To: dba-sqlserver at databaseadvisors.com Subject: [dba-SQLServer] Hello Again Hi folks, I used to be active on the AccessD list, then dropped to lurker, then moved to St. Louis and got a new job. I'm working with a SQL Server data warehouse, and using Cognos tools for reporting and cube creation. It's a good job at a stable insurance company, and it's a good place to work. Data warehousing is a lot different than the transactional Access dbs I spent most of my last 5 1/2 years building, but I am working hard and learning fast. Hello to all, and I'll be seeing you on the list. Mark Whittinghill _______________________________________________ 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 stephen at bondsoftware.co.nz Thu Jul 28 17:32:25 2005 From: stephen at bondsoftware.co.nz (Stephen Bond) Date: Fri, 29 Jul 2005 10:32:25 +1200 Subject: [dba-SQLServer] Hello Again Message-ID: <70F3D727890C784291D8433E9C418F29088B2B@server.bondsoftware.co.nz> Does this mean a stable wine has the same genesis? Stephen Bond > From: Charlotte Foust [mailto:cfoust at infostatsystems.com] > Sent: Friday, 29 July 2005 8:30 a.m. > 2. One that deals with equine housing. ;-} > > Charlotte > From cfoust at infostatsystems.com Thu Jul 28 18:39:01 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 28 Jul 2005 16:39:01 -0700 Subject: [dba-SQLServer] Hello Again Message-ID: All right, I'm jumping the gun on Friday. But I'm not going to be here tomorrow ... Charlotte Foust -----Original Message----- From: Stephen Bond [mailto:stephen at bondsoftware.co.nz] Sent: Thursday, July 28, 2005 3:32 PM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer] Hello Again Does this mean a stable wine has the same genesis? Stephen Bond > From: Charlotte Foust [mailto:cfoust at infostatsystems.com] > Sent: Friday, 29 July 2005 8:30 a.m. > 2. One that deals with equine housing. ;-} > > Charlotte > _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From andy at minstersystems.co.uk Fri Jul 29 02:08:48 2005 From: andy at minstersystems.co.uk (Andy Lacey) Date: Fri, 29 Jul 2005 08:08:48 +0100 Subject: [dba-SQLServer] Hello Again In-Reply-To: <70F3D727890C784291D8433E9C418F29088B2B@server.bondsoftware.co.nz> Message-ID: <001601c5940c$5dee64b0$901b0c54@minster33c3r25> Yuck And I always thought being from a stable family background was a good thing. -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: dba-sqlserver-bounces at databaseadvisors.com > [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf > Of Stephen Bond > Sent: 28 July 2005 23:32 > To: dba-sqlserver at databaseadvisors.com > Subject: RE: [dba-SQLServer] Hello Again > > > Does this mean a stable wine has the same genesis? > > Stephen Bond > > > > > > > From: Charlotte Foust [mailto:cfoust at infostatsystems.com] > > Sent: Friday, 29 July 2005 8:30 a.m. > > > 2. One that deals with equine housing. ;-} > > > > Charlotte > > > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > > > From ridermark at gmail.com Fri Jul 29 08:13:31 2005 From: ridermark at gmail.com (Mark Rider) Date: Fri, 29 Jul 2005 08:13:31 -0500 Subject: [dba-SQLServer] Hello Again In-Reply-To: <001601c5940c$5dee64b0$901b0c54@minster33c3r25> References: <70F3D727890C784291D8433E9C418F29088B2B@server.bondsoftware.co.nz> <001601c5940c$5dee64b0$901b0c54@minster33c3r25> Message-ID: If your family home has a stable in the background, that is a good thing. If your family home has a stable AS the background, that can be messy. And smelly. > And I always thought being from a stable family background was a good thing. -- Mark Rider http://commonsensesecurity.info There are 10 kinds of people in the world: Those who understand binary and those who don't. From Rich_Lavsa at pghcorning.com Fri Jul 29 10:00:00 2005 From: Rich_Lavsa at pghcorning.com (Lavsa, Rich) Date: Fri, 29 Jul 2005 11:00:00 -0400 Subject: [dba-SQLServer] SQL Procedures - Need some advice Message-ID: <2A261FF9D5EBCA46940C11688CE872EE026C9BE7@goexchange2.pghcorning.com> Just wanted to post an alternative solution. When I went to schedule the procedure, I realized I could schedule each procedure on its own, and then on success of the first, I could start the second procedure. Making a 2 step schedule, on success of step 1, start step 2. Doing it this way gives a little more control in my mind anyway of what gets fired and when it starts even though the MASTER procedure approach worked just fine. Thanks again, Rich -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: Wednesday, July 27, 2005 3:21 PM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer] SQL Procedures - Need some advice I would create a DTS package to take care of the execution. You set up the first procedure to run and then you create a workflow that runs the second on completion of the first. Once you have your package built, you schedule it to run at the time desired and you can also have it notify you of success/failure. Doris Manning Database Administrator Hargrove Inc. -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Lavsa, Rich Sent: Wednesday, July 27, 2005 2:45 PM To: dba-sqlserver at databaseadvisors.com Subject: [dba-SQLServer] SQL Procedures - Need some advice Background: SQL 2000, have 2 procedures. Both run fine on their own. Next step is to execute them on a scheduled basis, however one needs to run and finish before the other starts. What I want to happen: First procedure simply deletes all records in a DataMart table. Second procedure runs an insert query that pulls data out of many tables in our ERP and denormalizes it into a single table structure for quick processing (37 minute query) Can I combine both procedures into one? If so how, when I tried this the second procedure disappeared. I had the Delete statement followed by GO, then the Insert statement followed by GO. It seemed to save it, but when I opened it back up it was gone (happened more then once). Would it be easier to look for changes and only apply the changes and new records, if so how would I go about doing this? I didn't think this would matter in my case as the table is strictly a reference table and the 37 minute query will take 37 minutes to run no matter what. Looking for some guidance as I am teaching myself all I can about MS SQL SERVER.. I have done some simple procedures that only do Selects, no cursors. Did some dynamic sql stuff but that's about as deep as I have gotten into Procedures so if anyone could help and excuse my ignorance I would greatly appreciate it. Thanks in advance, Rich _______________________________________________ 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 artful at rogers.com Sat Jul 30 23:04:51 2005 From: artful at rogers.com (Arthur Fuller) Date: Sun, 31 Jul 2005 00:04:51 -0400 Subject: [dba-SQLServer] Hello Again In-Reply-To: <0IKC0071QHX53J@l-daemon> Message-ID: <200507310404.j6V44mR02750@databaseadvisors.com> I am sick with envy. -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: July 28, 2005 12:03 PM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer] Hello Again Hi Arthur: A good job: One that is challenging, has variety, a client/employer who respects your hard work and accomplishments and willing pays a reasonable amount. A Stable Company: One that is growing, has a solid client base and a proven track record that extends for at least ten years. (Medical/Financial/Oil/Government.) Jim From jwcolby at colbyconsulting.com Sat Jul 30 23:25:28 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sun, 31 Jul 2005 00:25:28 -0400 Subject: [dba-SQLServer] Hello Again In-Reply-To: Message-ID: <000801c59587$e521ac40$0300a8c0@ColbyM6805> Hey, welcome back. It's good to hear about that rarity. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Mark.Whittinghill at protective.com Sent: Wednesday, July 27, 2005 11:37 AM To: dba-sqlserver at databaseadvisors.com Subject: [dba-SQLServer] Hello Again Hi folks, I used to be active on the AccessD list, then dropped to lurker, then moved to St. Louis and got a new job. I'm working with a SQL Server data warehouse, and using Cognos tools for reporting and cube creation. It's a good job at a stable insurance company, and it's a good place to work. Data warehousing is a lot different than the transactional Access dbs I spent most of my last 5 1/2 years building, but I am working hard and learning fast. Hello to all, and I'll be seeing you on the list. Mark Whittinghill ----------------------------------------- Confidentiality Notice: This e-mail communication and any attachments may contain confidential and privileged information for the use of the designated recipients named above. If you are not the intended recipient, you are hereby notified that you have received this communication in error and that any review, disclosure, dissemination, distribution or copying of it or its contents is prohibited. If you have received this communication in error, please notify me immediately by replying to this message and deleting it from your computer. Thank you. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From accessd at shaw.ca Sun Jul 31 12:52:02 2005 From: accessd at shaw.ca (Jim Lawrence) Date: Sun, 31 Jul 2005 10:52:02 -0700 Subject: [dba-SQLServer] Hello Again In-Reply-To: <200507310404.j6V44mR02750@databaseadvisors.com> Message-ID: <0IKI0012G6YPSF@l-daemon> Hi Arthur: Don't be as it is merely a fantasy of mine. Jim -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Saturday, July 30, 2005 9:05 PM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer] Hello Again I am sick with envy. -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: July 28, 2005 12:03 PM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer] Hello Again Hi Arthur: A good job: One that is challenging, has variety, a client/employer who respects your hard work and accomplishments and willing pays a reasonable amount. A Stable Company: One that is growing, has a solid client base and a proven track record that extends for at least ten years. (Medical/Financial/Oil/Government.) Jim _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com