From Susan.Klos at fldoe.org Fri Oct 1 09:33:47 2004 From: Susan.Klos at fldoe.org (Klos, Susan) Date: Fri, 1 Oct 2004 10:33:47 -0400 Subject: [dba-SQLServer] Is this the best way? Message-ID: <01B619CB8F6C8C478EDAC39191AEC51EE738B4@DOESEFPEML02.EUS.FLDOE.INT> What I need is a district Weighted GPA for our state. Here is what I did and I want to know if it is the most efficient way of doing it. 1) I created 2 views per school type a. Elementary i. All Elementary Schools ii. everyone in grades preK - 5 of combo schools b. Middle i. All Middle Schools ii. Everyone in grades 6 - 8 of combo schools c. High i. All High Schools ii. Everyone in grades 9 & 10 of combo schools 2) I created a view for each type using the union query code you all helped me with (Thank you very much, by the way) 3) I created a view for each type using the views in 2) to calculate a wgpa for the school 4) I created a view for each type using the views in 3) to calculate the WGPA for each district I am thinking I could have done all this in the QA and maybe only created three views at the end. I need to be able to export the final results to Excel. The job got done the way I did it, I just want to see if there might be an easier/more efficient way. Susan Klos Senior Database Analyst Evaluation and Reporting Florida Department of Education 850-245-0708 sc 205-0708 From rl_stewart at highstream.net Fri Oct 1 11:52:20 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Fri, 01 Oct 2004 11:52:20 -0500 Subject: [dba-SQLServer] Re: Union query In-Reply-To: <200410011433.i91EXoL13589@databaseadvisors.com> Message-ID: <5.1.0.14.2.20041001114850.013228c8@pop3.highstream.net> Susan, You should also not use the SELECT * for a union query. You should name the columns in both sides of the union making sure you order them correctly by matching data and data types. If someone changes the structure of one of the tables, your union, the way you are doing it, will stop working. SELECT NameID, LastName + ', ' + FirstName FROM tblEmployee UNION ALL SELECT CustID, CustName FROM tblCustomer as an example Robert At 09:33 AM 10/1/2004 -0500, you wrote: >Date: Thu, 30 Sep 2004 15:34:16 -0400 >From: "Klos, Susan" >Subject: [dba-SQLServer] Union query >To: "'dba-sqlserver at databaseadvisors.com'" > >Message-ID: > <01B619CB8F6C8C478EDAC39191AEC51EE738AD at DOESEFPEML02.EUS.FLDOE.INT> >Content-Type: text/plain > >Please be kind. I am doing this from an Access viewpoint and am having >trouble making a transition. > >I have created a union query: > >Select * > > >From dbo.schoolEnrollmentNumberselemonly (this is a view) > >Union all > >Select * > > >From dbo.SchoolEnrollmentNumberselemcombo (this is a view) > > > >Now I need to be able to call this query in another view. Is this possible? >How? > > > >Susan Klos From jwcolby at colbyconsulting.com Sun Oct 3 13:44:48 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sun, 03 Oct 2004 14:44:48 -0400 Subject: [dba-SQLServer] Cross posted - Folding@home Message-ID: <001301c4a979$12b14180$e8dafea9@ColbyM6805> I just wanted to call everyone's attention to Folding at home. I know a lot of you know about this project, I did and got involved for awhile (through Google's team I think) but over time forgot about it. http://folding.stanford.edu/ Folding at home is a project by Stanford University which essentially builds a mega super computer created by using our home / office computers to form a huge network capable of thousands of times more processing power than even the largest dedicated super computers. http://folding.stanford.edu/stats.html Will take you directly to a page where you can see some statistics for the supercomputer as it exists at this instant in time. This system downloads an executable onto a computer which runs in the idle thread. This means that while the CPU utilized jumps to 100%, it is all idle time ad if your programs need CPU cycles folding at home will not interfere with your program in any way. I had 4 3ghz computers sitting in my home office doing nothing. They are now contributing to mankind's knowledgebase. John W. Colby www.ColbyConsulting.com From jwcolby at colbyconsulting.com Tue Oct 5 08:33:56 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 05 Oct 2004 09:33:56 -0400 Subject: [dba-SQLServer] QBE in Query analyzer In-Reply-To: <001301c4a979$12b14180$e8dafea9@ColbyM6805> Message-ID: <001701c4aadf$face27a0$e8dafea9@ColbyM6805> Is there a QBE tool in query analyzer? I am having to go create a view to use the qbe grid there, then cut and paste the sql into the query analyzer. John W. Colby www.ColbyConsulting.com From cfoust at infostatsystems.com Tue Oct 5 10:26:04 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 5 Oct 2004 08:26:04 -0700 Subject: [dba-SQLServer] QBE in Query analyzer Message-ID: If you right click on a table in EM and select Open-->Query, you can build and test a query on the fly without saving it as a view. Does that help? Charlotte Foust -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Tuesday, October 05, 2004 6:34 AM To: dba-sqlserver at databaseadvisors.com Subject: [dba-SQLServer] QBE in Query analyzer Is there a QBE tool in query analyzer? I am having to go create a view to use the qbe grid there, then cut and paste the sql into the query analyzer. John W. Colby www.ColbyConsulting.com _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue Oct 5 10:42:45 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 05 Oct 2004 11:42:45 -0400 Subject: [dba-SQLServer] QBE in Query analyzer In-Reply-To: Message-ID: <001d01c4aaf1$f8a946a0$e8dafea9@ColbyM6805> Well, yes and no. I can do that by new / view and not save the view. The biggest problem is that things time out in EM whereas they don't in QA. John W. Colby www.ColbyConsulting.com -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, October 05, 2004 11:26 AM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer] QBE in Query analyzer If you right click on a table in EM and select Open-->Query, you can build and test a query on the fly without saving it as a view. Does that help? Charlotte Foust -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Tuesday, October 05, 2004 6:34 AM To: dba-sqlserver at databaseadvisors.com Subject: [dba-SQLServer] QBE in Query analyzer Is there a QBE tool in query analyzer? I am having to go create a view to use the qbe grid there, then cut and paste the sql into the query analyzer. John W. Colby www.ColbyConsulting.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 fhtapia at gmail.com Tue Oct 5 12:55:54 2004 From: fhtapia at gmail.com (Francisco Tapia) Date: Tue, 5 Oct 2004 10:55:54 -0700 Subject: [dba-SQLServer] QBE in Query analyzer In-Reply-To: <001d01c4aaf1$f8a946a0$e8dafea9@ColbyM6805> References: <001d01c4aaf1$f8a946a0$e8dafea9@ColbyM6805> Message-ID: well.. if you are using QA, open the object browser (F8) and you will have access to your Tables/columns.. it's a matter of dragging and dropping names. However to actually create joins etc, you'll need to type. IMNSHO, EM sometimes creates confusing joins that don't necessarily exploit the speed of Sql Server. On Tue, 05 Oct 2004 11:42:45 -0400, John W. Colby wrote: > Well, yes and no. I can do that by new / view and not save the view. The > biggest problem is that things time out in EM whereas they don't in QA. > > John W. Colby > www.ColbyConsulting.com > > > > -----Original Message----- > From: dba-sqlserver-bounces at databaseadvisors.com > [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Charlotte > Foust > Sent: Tuesday, October 05, 2004 11:26 AM > To: dba-sqlserver at databaseadvisors.com > Subject: RE: [dba-SQLServer] QBE in Query analyzer > > If you right click on a table in EM and select Open-->Query, you can build > and test a query on the fly without saving it as a view. Does that help? > > Charlotte Foust > > -----Original Message----- > From: John W. Colby [mailto:jwcolby at colbyconsulting.com] > Sent: Tuesday, October 05, 2004 6:34 AM > To: dba-sqlserver at databaseadvisors.com > Subject: [dba-SQLServer] QBE in Query analyzer > > Is there a QBE tool in query analyzer? I am having to go create a view to > use the qbe grid there, then cut and paste the sql into the query analyzer. > > John W. Colby > www.ColbyConsulting.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 > > -- -Francisco Pc This! pc news with out the jargon From DavidL at sierranevada.com Tue Oct 5 13:00:22 2004 From: DavidL at sierranevada.com (David Lewis) Date: Tue, 5 Oct 2004 11:00:22 -0700 Subject: [dba-SQLServer] QBE tool in query analyzer Message-ID: <9923336B7F4D1A459B983065D95397B92CC9D6@pale.sierranevada.corp> Getting used to writing sql code is part of the learning curve when moving from access to sql server. It takes a bit of work, but it is well worth it. After a time, trying to build a query in an access-like GUI is so aggravating that you will want to stick to QA. For one thing, it allows you far more flexibility (subselects, case statements, derived tables, etc. etc. etc. etc. etc.). Again, it is well worth the effort. > > Message: 1 > Date: Tue, 05 Oct 2004 09:33:56 -0400 > From: "John W. Colby" > Subject: [dba-SQLServer] QBE in Query analyzer > To: dba-sqlserver at databaseadvisors.com > Message-ID: <001701c4aadf$face27a0$e8dafea9 at ColbyM6805> > Content-Type: text/plain; charset=us-ascii > > Is there a QBE tool in query analyzer? I am having to go > create a view to > use the qbe grid there, then cut and paste the sql into the > query analyzer. > > > John W. Colby > www.ColbyConsulting.com > > > > From fhtapia at gmail.com Tue Oct 5 13:45:45 2004 From: fhtapia at gmail.com (Francisco Tapia) Date: Tue, 5 Oct 2004 11:45:45 -0700 Subject: [dba-SQLServer] QBE tool in query analyzer In-Reply-To: <9923336B7F4D1A459B983065D95397B92CC9D6@pale.sierranevada.corp> References: <9923336B7F4D1A459B983065D95397B92CC9D6@pale.sierranevada.corp> Message-ID: well said! On Tue, 5 Oct 2004 11:00:22 -0700, David Lewis wrote: > > Getting used to writing sql code is part of the learning curve when moving from access to sql server. It takes a bit of work, but it is well worth it. After a time, trying to build a query in an access-like GUI is so aggravating that you will want to stick to QA. For one thing, it allows you far more flexibility (subselects, case statements, derived tables, etc. etc. etc. etc. etc.). Again, it is well worth the effort. > > > > > Message: 1 > > Date: Tue, 05 Oct 2004 09:33:56 -0400 > > From: "John W. Colby" > > Subject: [dba-SQLServer] QBE in Query analyzer > > To: dba-sqlserver at databaseadvisors.com > > Message-ID: <001701c4aadf$face27a0$e8dafea9 at ColbyM6805> > > Content-Type: text/plain; charset=us-ascii > > > > Is there a QBE tool in query analyzer? I am having to go > > create a view to > > use the qbe grid there, then cut and paste the sql into the > > query analyzer. > > > > > > John W. Colby > > www.ColbyConsulting.com > > > > > > > > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > > -- -Francisco Pc This! pc news with out the jargon From MPorter at acsalaska.com Tue Oct 5 13:59:15 2004 From: MPorter at acsalaska.com (Porter, Mark) Date: Tue, 5 Oct 2004 10:59:15 -0800 Subject: [dba-SQLServer] QBE tool in query analyzer Message-ID: <635B80FE6C7D5A409586A6A110D97D170E4DF7@ACSANCHOR.corp.acsalaska.com> I even write straight SQL in Access about half the time now, since moving to SQL Server a few years ago. > -----Original Message----- > From: dba-sqlserver-bounces at databaseadvisors.com > [mailto:dba-sqlserver-bounces at databaseadvisors.com]On Behalf Of David > Lewis > Sent: Tuesday, October 05, 2004 10:00 AM > To: dba-sqlserver at databaseadvisors.com > Subject: [dba-SQLServer] QBE tool in query analyzer > > > > Getting used to writing sql code is part of the learning > curve when moving from access to sql server. It takes a bit > of work, but it is well worth it. After a time, trying to > build a query in an access-like GUI is so aggravating that > you will want to stick to QA. For one thing, it allows you > far more flexibility (subselects, case statements, derived > tables, etc. etc. etc. etc. etc.). Again, it is well worth > the effort. > > > > > > Message: 1 > > Date: Tue, 05 Oct 2004 09:33:56 -0400 > > From: "John W. Colby" > > Subject: [dba-SQLServer] QBE in Query analyzer > > To: dba-sqlserver at databaseadvisors.com > > Message-ID: <001701c4aadf$face27a0$e8dafea9 at ColbyM6805> > > Content-Type: text/plain; charset=us-ascii > > > > Is there a QBE tool in query analyzer? I am having to go > > create a view to > > use the qbe grid there, then cut and paste the sql into the > > query analyzer. > > > > > > John W. Colby > > www.ColbyConsulting.com > > > > > > > > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > > *********************************************************************************** This transmittal may contain confidential information intended solely for the addressee. If you are not the intended recipient, you are hereby notified that you have received this transmittal in error; any review, dissemination, distribution or copying of this transmittal is strictly prohibited. If you have received this communication in error, please notify us immediately by reply or by telephone (collect at 907-564-1000) and ask to speak with the message sender. In addition, please immediately delete this message and all attachments. Thank you. ACS From jwcolby at colbyconsulting.com Tue Oct 5 14:18:43 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 05 Oct 2004 15:18:43 -0400 Subject: [dba-SQLServer] QBE tool in query analyzer In-Reply-To: <635B80FE6C7D5A409586A6A110D97D170E4DF7@ACSANCHOR.corp.acsalaska.com> Message-ID: <001e01c4ab10$252bf240$e8dafea9@ColbyM6805> OK well, will you come to my house for a couple of days. ;-) John W. Colby www.ColbyConsulting.com -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Porter, Mark Sent: Tuesday, October 05, 2004 2:59 PM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer] QBE tool in query analyzer I even write straight SQL in Access about half the time now, since moving to SQL Server a few years ago. > -----Original Message----- > From: dba-sqlserver-bounces at databaseadvisors.com > [mailto:dba-sqlserver-bounces at databaseadvisors.com]On Behalf Of David > Lewis > Sent: Tuesday, October 05, 2004 10:00 AM > To: dba-sqlserver at databaseadvisors.com > Subject: [dba-SQLServer] QBE tool in query analyzer > > > > Getting used to writing sql code is part of the learning > curve when moving from access to sql server. It takes a bit > of work, but it is well worth it. After a time, trying to > build a query in an access-like GUI is so aggravating that > you will want to stick to QA. For one thing, it allows you > far more flexibility (subselects, case statements, derived > tables, etc. etc. etc. etc. etc.). Again, it is well worth > the effort. > > > > > > Message: 1 > > Date: Tue, 05 Oct 2004 09:33:56 -0400 > > From: "John W. Colby" > > Subject: [dba-SQLServer] QBE in Query analyzer > > To: dba-sqlserver at databaseadvisors.com > > Message-ID: <001701c4aadf$face27a0$e8dafea9 at ColbyM6805> > > Content-Type: text/plain; charset=us-ascii > > > > Is there a QBE tool in query analyzer? I am having to go > > create a view to > > use the qbe grid there, then cut and paste the sql into the > > query analyzer. > > > > > > John W. Colby > > www.ColbyConsulting.com > > > > > > > > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > > **************************************************************************** ******* This transmittal may contain confidential information intended solely for the addressee. If you are not the intended recipient, you are hereby notified that you have received this transmittal in error; any review, dissemination, distribution or copying of this transmittal is strictly prohibited. If you have received this communication in error, please notify us immediately by reply or by telephone (collect at 907-564-1000) and ask to speak with the message sender. In addition, please immediately delete this message and all attachments. Thank you. ACS _______________________________________________ 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 Oct 5 14:38:05 2004 From: fhtapia at gmail.com (Francisco Tapia) Date: Tue, 5 Oct 2004 12:38:05 -0700 Subject: [dba-SQLServer] QBE tool in query analyzer In-Reply-To: <001e01c4ab10$252bf240$e8dafea9@ColbyM6805> References: <635B80FE6C7D5A409586A6A110D97D170E4DF7@ACSANCHOR.corp.acsalaska.com> <001e01c4ab10$252bf240$e8dafea9@ColbyM6805> Message-ID: you paying the air-fare? WOW :D... I'd like to try out Jet Blue, thanks :D On Tue, 05 Oct 2004 15:18:43 -0400, John W. Colby wrote: > OK well, will you come to my house for a couple of days. ;-) > > John W. Colby > www.ColbyConsulting.com > > > > -----Original Message----- > From: dba-sqlserver-bounces at databaseadvisors.com > [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Porter, > Mark > Sent: Tuesday, October 05, 2004 2:59 PM > To: dba-sqlserver at databaseadvisors.com > Subject: RE: [dba-SQLServer] QBE tool in query analyzer > > I even write straight SQL in Access about half the time now, since moving to > SQL Server a few years ago. > > > -----Original Message----- > > From: dba-sqlserver-bounces at databaseadvisors.com > > [mailto:dba-sqlserver-bounces at databaseadvisors.com]On Behalf Of David > > Lewis > > Sent: Tuesday, October 05, 2004 10:00 AM > > To: dba-sqlserver at databaseadvisors.com > > Subject: [dba-SQLServer] QBE tool in query analyzer > > > > > > > > Getting used to writing sql code is part of the learning > > curve when moving from access to sql server. It takes a bit > > of work, but it is well worth it. After a time, trying to > > build a query in an access-like GUI is so aggravating that > > you will want to stick to QA. For one thing, it allows you > > far more flexibility (subselects, case statements, derived > > tables, etc. etc. etc. etc. etc.). Again, it is well worth > > the effort. > > > > > > > > > > Message: 1 > > > Date: Tue, 05 Oct 2004 09:33:56 -0400 > > > From: "John W. Colby" > > > Subject: [dba-SQLServer] QBE in Query analyzer > > > To: dba-sqlserver at databaseadvisors.com > > > Message-ID: <001701c4aadf$face27a0$e8dafea9 at ColbyM6805> > > > Content-Type: text/plain; charset=us-ascii > > > > > > Is there a QBE tool in query analyzer? I am having to go > > > create a view to > > > use the qbe grid there, then cut and paste the sql into the > > > query analyzer. > > > > > > > > > John W. Colby > > > www.ColbyConsulting.com > > > > > > > > > > > > _______________________________________________ > > dba-SQLServer mailing list > > dba-SQLServer at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > > http://www.databaseadvisors.com > > > > > > **************************************************************************** > ******* > This transmittal may contain confidential information intended solely for > the addressee. If you are not the intended recipient, you are hereby > notified that you have received this transmittal in error; any review, > dissemination, distribution or copying of this transmittal is strictly > prohibited. If you have received this communication in error, please notify > us immediately by reply or by telephone (collect at 907-564-1000) and ask to > speak with the message sender. In addition, please immediately delete this > message and all attachments. Thank you. ACS > > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > > > > > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > > -- -Francisco Pc This! pc news with out the jargon From artful at rogers.com Tue Oct 5 16:01:25 2004 From: artful at rogers.com (Arthur Fuller) Date: Tue, 05 Oct 2004 17:01:25 -0400 Subject: [dba-SQLServer] Open a text file from SQL Server In-Reply-To: <01B619CB8F6C8C478EDAC39191AEC51EE738B4@DOESEFPEML02.EUS.FLDOE.INT> References: <01B619CB8F6C8C478EDAC39191AEC51EE738B4@DOESEFPEML02.EUS.FLDOE.INT> Message-ID: <41630BA5.5070105@rogers.com> Can someone tell me how to open a text file from SQL Server? And place its contents into a memory variable? I'm looking at OPENXML but all its examples use text that is assigned to a variable from within the example, rather than read in from an XML or just a text file. It looks like full text search will do it, but that's a lot of install overhead just to read in a file. Is there a simpler way? TIA, Arthur From artful at rogers.com Tue Oct 5 16:34:39 2004 From: artful at rogers.com (Arthur Fuller) Date: Tue, 05 Oct 2004 17:34:39 -0400 Subject: [dba-SQLServer] QBE in Query analyzer In-Reply-To: <001701c4aadf$face27a0$e8dafea9@ColbyM6805> References: <001701c4aadf$face27a0$e8dafea9@ColbyM6805> Message-ID: <4163136F.80306@rogers.com> John W. Colby wrote: >Is there a QBE tool in query analyzer? I am having to go create a view to >use the qbe grid there, then cut and paste the sql into the query analyzer. > > >John W. Colby >www.ColbyConsulting.com > > >_______________________________________________ >dba-SQLServer mailing list >dba-SQLServer at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-sqlserver >http://www.databaseadvisors.com > > > > Myself, I use Access as my QBE query builder. Just create a view using the QBE, then switch to SQL view, copy the text, then paste it into QA. Frequently I name the views within Access, using an underscore as the leading character, so they drift to the bottom of the sort. That way I know what's junk and what isn't. One more thing. Moving back and forth this way, you will discover that QA doesn't necessarily know that you've just created a new view or procedure. Select the apprpriate node and requery (F5) to get them back in synch. From MPorter at acsalaska.com Tue Oct 5 16:51:38 2004 From: MPorter at acsalaska.com (Porter, Mark) Date: Tue, 5 Oct 2004 13:51:38 -0800 Subject: [dba-SQLServer] QBE tool in query analyzer Message-ID: <635B80FE6C7D5A409586A6A110D97D170E4DFE@ACSANCHOR.corp.acsalaska.com> That's lotsa airfare from Alaska - but I'd take you up on it! > -----Original Message----- > From: dba-sqlserver-bounces at databaseadvisors.com > [mailto:dba-sqlserver-bounces at databaseadvisors.com]On Behalf > Of John W. > Colby > Sent: Tuesday, October 05, 2004 11:19 AM > To: dba-sqlserver at databaseadvisors.com > Subject: RE: [dba-SQLServer] QBE tool in query analyzer > > > OK well, will you come to my house for a couple of days. ;-) > > John W. Colby > www.ColbyConsulting.com > > -----Original Message----- > From: dba-sqlserver-bounces at databaseadvisors.com > [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf > Of Porter, > Mark > Sent: Tuesday, October 05, 2004 2:59 PM > To: dba-sqlserver at databaseadvisors.com > Subject: RE: [dba-SQLServer] QBE tool in query analyzer > > > I even write straight SQL in Access about half the time now, > since moving to > SQL Server a few years ago. > > > -----Original Message----- > > From: dba-sqlserver-bounces at databaseadvisors.com > > [mailto:dba-sqlserver-bounces at databaseadvisors.com]On > Behalf Of David > > Lewis > > Sent: Tuesday, October 05, 2004 10:00 AM > > To: dba-sqlserver at databaseadvisors.com > > Subject: [dba-SQLServer] QBE tool in query analyzer > > > > > > > > Getting used to writing sql code is part of the learning > > curve when moving from access to sql server. It takes a bit > > of work, but it is well worth it. After a time, trying to > > build a query in an access-like GUI is so aggravating that > > you will want to stick to QA. For one thing, it allows you > > far more flexibility (subselects, case statements, derived > > tables, etc. etc. etc. etc. etc.). Again, it is well worth > > the effort. > > > > > > > > > > Message: 1 > > > Date: Tue, 05 Oct 2004 09:33:56 -0400 > > > From: "John W. Colby" > > > Subject: [dba-SQLServer] QBE in Query analyzer > > > To: dba-sqlserver at databaseadvisors.com > > > Message-ID: <001701c4aadf$face27a0$e8dafea9 at ColbyM6805> > > > Content-Type: text/plain; charset=us-ascii > > > > > > Is there a QBE tool in query analyzer? I am having to go > > > create a view to > > > use the qbe grid there, then cut and paste the sql into the > > > query analyzer. > > > > > > > > > John W. Colby > > > www.ColbyConsulting.com > > > > > > > > > > > > _______________________________________________ > > dba-SQLServer mailing list > > dba-SQLServer at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > > http://www.databaseadvisors.com > > > > > > ************************************************************** > ************** > ******* > This transmittal may contain confidential information > intended solely for > the addressee. If you are not the intended recipient, you are hereby > notified that you have received this transmittal in error; any review, > dissemination, distribution or copying of this transmittal is strictly > prohibited. If you have received this communication in error, > please notify > us immediately by reply or by telephone (collect at > 907-564-1000) and ask to > speak with the message sender. In addition, please > immediately delete this > message and all attachments. Thank you. ACS > > > _______________________________________________ > 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 Wed Oct 6 07:36:14 2004 From: michael at ddisolutions.com.au (Michael Maddison) Date: Wed, 6 Oct 2004 22:36:14 +1000 Subject: [dba-SQLServer] Open a text file from SQL Server Message-ID: <59A61174B1F5B54B97FD4ADDE71E7D01011C03@ddi-01.DDI.local> Arthur, Not sure what you mean by memory variable (in sql I think table) but a couple of ideas come to mind... Can you set up an OBDC connection to the text file and treat it as a linked server? Or DTS it into a table... cheers Michael M Can someone tell me how to open a text file from SQL Server? And place its contents into a memory variable? I'm looking at OPENXML but all its examples use text that is assigned to a variable from within the example, rather than read in from an XML or just a text file. It looks like full text search will do it, but that's a lot of install overhead just to read in a file. Is there a simpler way? TIA, Arthur _______________________________________________ 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 Oct 6 13:02:48 2004 From: tuxedo_man at hotmail.com (Billy Pang) Date: Wed, 06 Oct 2004 18:02:48 +0000 Subject: [dba-SQLServer] Open a text file from SQL Server Message-ID: there is: declare @file_location varchar(255) declare @exec_stat varchar(255) SET @file_location = 'C:\myFile.txt' SET @exec_stat = 'type ' + @file_location EXEC master.dbo.xp_cmdshell @exec_stat note: it's not perfect because text in the variable is "word wrapped". Billy >From: "Michael Maddison" >Reply-To: dba-sqlserver at databaseadvisors.com >To: >Subject: RE: [dba-SQLServer] Open a text file from SQL Server >Date: Wed, 6 Oct 2004 22:36:14 +1000 > >Arthur, > >Not sure what you mean by memory variable (in sql I think table) but a >couple of ideas come to mind... >Can you set up an OBDC connection to the text file and treat it as a >linked server? >Or DTS it into a table... > >cheers > >Michael M > > > >Can someone tell me how to open a text file from SQL Server? And place >its contents into a memory variable? I'm looking at OPENXML but all its >examples use text that is assigned to a variable from within the >example, rather than read in from an XML or just a text file. It looks >like full text search will do it, but that's a lot of install overhead >just to read in a file. Is there a simpler way? > >TIA, >Arthur >_______________________________________________ >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 > _________________________________________________________________ Take charge with a pop-up guard built on patented Microsoft? SmartScreen Technology http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines Start enjoying all the benefits of MSN? Premium right now and get the first two months FREE*. From andy at minstersystems.co.uk Wed Oct 6 14:53:27 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Wed, 6 Oct 2004 20:53:27 +0100 Subject: [dba-SQLServer] Browsing tool? In-Reply-To: Message-ID: <000001c4abde$25e72050$b274d0d5@minster33c3r25> Hi folks Next week I'm going to see a potential client (hurrah!). He has a 3rd party package specific to companies in the printing industry, and wants a simple contact management system which will link to the client data in this package. I suspect (but am not sure) that the package uses a SQL Server database. If I'm correct (and I've already asked how best to see if it's SQL Server d/b, thanks for help on that) and it is SQL Server then I'd like to see if I can link to it successfully. So, if I start from the worst case scenario that they won't have any software capable of linking to SQL Server does anyone have or know of any free utility which will fit on a CD that I could use just to look at a database, whatever the OS and whatever the SQL vintage? -- Andy Lacey http://www.minstersystems.co.uk From CMackin at quiznos.com Wed Oct 6 15:08:24 2004 From: CMackin at quiznos.com (Mackin, Christopher) Date: Wed, 6 Oct 2004 14:08:24 -0600 Subject: [dba-SQLServer] Browsing tool? Message-ID: One simple way is to just create a text file and then rename it to .udl. Once you open it you can set up a connection to it using the avaialble Providers. -Chris Mackin -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com]On Behalf Of Andy Lacey Sent: Wednesday, October 06, 2004 1:53 PM To: dba-sqlserver at databaseadvisors.com Subject: [dba-SQLServer] Browsing tool? Hi folks Next week I'm going to see a potential client (hurrah!). He has a 3rd party package specific to companies in the printing industry, and wants a simple contact management system which will link to the client data in this package. I suspect (but am not sure) that the package uses a SQL Server database. If I'm correct (and I've already asked how best to see if it's SQL Server d/b, thanks for help on that) and it is SQL Server then I'd like to see if I can link to it successfully. So, if I start from the worst case scenario that they won't have any software capable of linking to SQL Server does anyone have or know of any free utility which will fit on a CD that I could use just to look at a database, whatever the OS and whatever the SQL vintage? -- Andy Lacey http://www.minstersystems.co.uk _______________________________________________ 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 Wed Oct 6 16:36:22 2004 From: fhtapia at gmail.com (Francisco Tapia) Date: Wed, 6 Oct 2004 14:36:22 -0700 Subject: [dba-SQLServer] Browsing tool? In-Reply-To: References: Message-ID: Additionally the Machine that is said to have the Sql Server on it, look for a service running named: MSSQLSERVER, where the executable file name is sqlservr.exe On Wed, 6 Oct 2004 14:08:24 -0600, Mackin, Christopher wrote: > One simple way is to just create a text file and then rename it to .udl. Once you open it you can set up a connection to it using the avaialble Providers. > > -Chris Mackin > > > > -----Original Message----- > From: dba-sqlserver-bounces at databaseadvisors.com > [mailto:dba-sqlserver-bounces at databaseadvisors.com]On Behalf Of Andy > Lacey > Sent: Wednesday, October 06, 2004 1:53 PM > To: dba-sqlserver at databaseadvisors.com > Subject: [dba-SQLServer] Browsing tool? > > Hi folks > > Next week I'm going to see a potential client (hurrah!). He has a 3rd party > package specific to companies in the printing industry, and wants a simple > contact management system which will link to the client data in this > package. I suspect (but am not sure) that the package uses a SQL Server > database. If I'm correct (and I've already asked how best to see if it's SQL > Server d/b, thanks for help on that) and it is SQL Server then I'd like to > see if I can link to it successfully. So, if I start from the worst case > scenario that they won't have any software capable of linking to SQL Server > does anyone have or know of any free utility which will fit on a CD that I > could use just to look at a database, whatever the OS and whatever the SQL > vintage? > > -- Andy Lacey > http://www.minstersystems.co.uk > > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > > > > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > > -- -Francisco Pc This! pc news with out the jargon From artful at rogers.com Wed Oct 6 19:00:39 2004 From: artful at rogers.com (Arthur Fuller) Date: Wed, 06 Oct 2004 20:00:39 -0400 Subject: [dba-SQLServer] QBE tool in query analyzer In-Reply-To: References: <635B80FE6C7D5A409586A6A110D97D170E4DF7@ACSANCHOR.corp.acsalaska.com> <001e01c4ab10$252bf240$e8dafea9@ColbyM6805> Message-ID: <41648727.2020001@rogers.com> Francisco Tapia wrote: >you paying the air-fare? WOW :D... I'd like to try out Jet Blue, thanks :D > > >On Tue, 05 Oct 2004 15:18:43 -0400, John W. Colby > wrote: > > >>OK well, will you come to my house for a couple of days. ;-) >> >>John W. Colby >>www.ColbyConsulting.com >> >> >> >>-----Original Message----- >>From: dba-sqlserver-bounces at databaseadvisors.com >>[mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Porter, >>Mark >>Sent: Tuesday, October 05, 2004 2:59 PM >>To: dba-sqlserver at databaseadvisors.com >>Subject: RE: [dba-SQLServer] QBE tool in query analyzer >> >>I even write straight SQL in Access about half the time now, since moving to >>SQL Server a few years ago. >> >> >> >>>-----Original Message----- >>>From: dba-sqlserver-bounces at databaseadvisors.com >>>[mailto:dba-sqlserver-bounces at databaseadvisors.com]On Behalf Of David >>>Lewis >>>Sent: Tuesday, October 05, 2004 10:00 AM >>>To: dba-sqlserver at databaseadvisors.com >>>Subject: [dba-SQLServer] QBE tool in query analyzer >>> >>> >>> >>>Getting used to writing sql code is part of the learning >>>curve when moving from access to sql server. It takes a bit >>>of work, but it is well worth it. After a time, trying to >>>build a query in an access-like GUI is so aggravating that >>>you will want to stick to QA. For one thing, it allows you >>>far more flexibility (subselects, case statements, derived >>>tables, etc. etc. etc. etc. etc.). Again, it is well worth >>>the effort. >>> >>> >>> >>> >>>>Message: 1 >>>>Date: Tue, 05 Oct 2004 09:33:56 -0400 >>>>From: "John W. Colby" >>>>Subject: [dba-SQLServer] QBE in Query analyzer >>>>To: dba-sqlserver at databaseadvisors.com >>>>Message-ID: <001701c4aadf$face27a0$e8dafea9 at ColbyM6805> >>>>Content-Type: text/plain; charset=us-ascii >>>> >>>>Is there a QBE tool in query analyzer? I am having to go >>>>create a view to >>>>use the qbe grid there, then cut and paste the sql into the >>>>query analyzer. >>>> >>>> >>>>John W. Colby >>>>www.ColbyConsulting.com >>>> >>>> >>>> >>>> >>>_______________________________________________ >>>dba-SQLServer mailing list >>>dba-SQLServer at databaseadvisors.com >>>http://databaseadvisors.com/mailman/listinfo/dba-sqlserver >>>http://www.databaseadvisors.com >>> >>> >>> >>> >>**************************************************************************** >>******* >>This transmittal may contain confidential information intended solely for >>the addressee. If you are not the intended recipient, you are hereby >>notified that you have received this transmittal in error; any review, >>dissemination, distribution or copying of this transmittal is strictly >>prohibited. If you have received this communication in error, please notify >>us immediately by reply or by telephone (collect at 907-564-1000) and ask to >>speak with the message sender. In addition, please immediately delete this >>message and all attachments. Thank you. ACS >> >>_______________________________________________ >>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 >> >> >> >> > > > > In BOL, there are numerous references to something called Visual Database Tools (look in the Contents under Using the SQL Server Tools. They talk in here about a Visual Query Designer. Where does this thing live? I've never seen it! Arthur From cfoust at infostatsystems.com Wed Oct 6 19:22:18 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 6 Oct 2004 17:22:18 -0700 Subject: [dba-SQLServer] QBE tool in query analyzer Message-ID: Could they be referring to the Create View Wizard?? Charlotte Foust -----Original Message----- From: Arthur Fuller [mailto:artful at rogers.com] Sent: Wednesday, October 06, 2004 5:01 PM To: dba-sqlserver at databaseadvisors.com Subject: Re: [dba-SQLServer] QBE tool in query analyzer Francisco Tapia wrote: >you paying the air-fare? WOW :D... I'd like to try out Jet Blue, thanks >:D > > >On Tue, 05 Oct 2004 15:18:43 -0400, John W. Colby > wrote: > > >>OK well, will you come to my house for a couple of days. ;-) >> >>John W. Colby >>www.ColbyConsulting.com >> >> >> >>-----Original Message----- >>From: dba-sqlserver-bounces at databaseadvisors.com >>[mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of >>Porter, Mark >>Sent: Tuesday, October 05, 2004 2:59 PM >>To: dba-sqlserver at databaseadvisors.com >>Subject: RE: [dba-SQLServer] QBE tool in query analyzer >> >>I even write straight SQL in Access about half the time now, since >>moving to SQL Server a few years ago. >> >> >> >>>-----Original Message----- >>>From: dba-sqlserver-bounces at databaseadvisors.com >>>[mailto:dba-sqlserver-bounces at databaseadvisors.com]On Behalf Of David >>>Lewis >>>Sent: Tuesday, October 05, 2004 10:00 AM >>>To: dba-sqlserver at databaseadvisors.com >>>Subject: [dba-SQLServer] QBE tool in query analyzer >>> >>> >>> >>>Getting used to writing sql code is part of the learning curve when >>>moving from access to sql server. It takes a bit of work, but it is >>>well worth it. After a time, trying to build a query in an >>>access-like GUI is so aggravating that you will want to stick to QA. >>>For one thing, it allows you far more flexibility (subselects, case >>>statements, derived tables, etc. etc. etc. etc. etc.). Again, it is >>>well worth the effort. >>> >>> >>> >>> >>>>Message: 1 >>>>Date: Tue, 05 Oct 2004 09:33:56 -0400 >>>>From: "John W. Colby" >>>>Subject: [dba-SQLServer] QBE in Query analyzer >>>>To: dba-sqlserver at databaseadvisors.com >>>>Message-ID: <001701c4aadf$face27a0$e8dafea9 at ColbyM6805> >>>>Content-Type: text/plain; charset=us-ascii >>>> >>>>Is there a QBE tool in query analyzer? I am having to go create a >>>>view to use the qbe grid there, then cut and paste the sql into the >>>>query analyzer. >>>> >>>> >>>>John W. Colby >>>>www.ColbyConsulting.com >>>> >>>> >>>> >>>> >>>_______________________________________________ >>>dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com >>>http://databaseadvisors.com/mailman/listinfo/dba-sqlserver >>>http://www.databaseadvisors.com >>> >>> >>> >>> >>********************************************************************** >>****** >>******* >>This transmittal may contain confidential information intended solely for >>the addressee. If you are not the intended recipient, you are hereby >>notified that you have received this transmittal in error; any review, >>dissemination, distribution or copying of this transmittal is strictly >>prohibited. If you have received this communication in error, please notify >>us immediately by reply or by telephone (collect at 907-564-1000) and ask to >>speak with the message sender. In addition, please immediately delete this >>message and all attachments. Thank you. ACS >> >>_______________________________________________ >>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 >> >> >> >> > > > > In BOL, there are numerous references to something called Visual Database Tools (look in the Contents under Using the SQL Server Tools. They talk in here about a Visual Query Designer. Where does this thing live? I've never seen it! Arthur _______________________________________________ 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 Wed Oct 6 20:12:24 2004 From: ridermark at gmail.com (Mark Rider) Date: Wed, 6 Oct 2004 20:12:24 -0500 Subject: [dba-SQLServer] QBE tool in query analyzer In-Reply-To: <41648727.2020001@rogers.com> References: <635B80FE6C7D5A409586A6A110D97D170E4DF7@ACSANCHOR.corp.acsalaska.com> <001e01c4ab10$252bf240$e8dafea9@ColbyM6805> <41648727.2020001@rogers.com> Message-ID: > In BOL, there are numerous references to something called Visual > Database Tools (look in the Contents under Using the SQL Server Tools. > They talk in here about a Visual Query Designer. Where does this thing > live? I've never seen it! > Visual Database Tools are included in Visual Studio. They are there for the programmers to better handle writing queries. Although they are helpful, you get the same kind of thing in EM. I personally prefer QA for testing the queries I write in my .NET apps. Much more control of the details, and I can always use EM to see what I might be missing. The VD Tools are not a lot of help as far as I have seen. -- Mark Rider http://commonsensesecurity.info From andy at minstersystems.co.uk Thu Oct 7 01:38:50 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 7 Oct 2004 07:38:50 +0100 Subject: [dba-SQLServer] Browsing tool? In-Reply-To: Message-ID: <000501c4ac38$4e313410$b274d0d5@minster33c3r25> Thanks Francisco That'll help ascertain if it's Sql Server, but presumably the database can be secured and prevent me linking to it. So I was looking for a "browsing tool" to check whether that is the case or if I can freely get at the data. -- 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 Francisco Tapia > Sent: 06 October 2004 22:36 > To: dba-sqlserver at databaseadvisors.com > Subject: Re: [dba-SQLServer] Browsing tool? > > > Additionally the Machine that is said to have the Sql Server > on it, look for a service running named: MSSQLSERVER, where > the executable file name is sqlservr.exe > > > > On Wed, 6 Oct 2004 14:08:24 -0600, Mackin, Christopher > wrote: > > One simple way is to just create a text file and then rename it to > > .udl. Once you open it you can set up a connection to it using the > > avaialble Providers. > > > > -Chris Mackin > > > > > > > > -----Original Message----- > > From: dba-sqlserver-bounces at databaseadvisors.com > > [mailto:dba-sqlserver-bounces at databaseadvisors.com]On > Behalf Of Andy > > Lacey > > Sent: Wednesday, October 06, 2004 1:53 PM > > To: dba-sqlserver at databaseadvisors.com > > Subject: [dba-SQLServer] Browsing tool? > > > > Hi folks > > > > Next week I'm going to see a potential client (hurrah!). He > has a 3rd > > party package specific to companies in the printing industry, and > > wants a simple contact management system which will link to > the client > > data in this package. I suspect (but am not sure) that the package > > uses a SQL Server database. If I'm correct (and I've > already asked how > > best to see if it's SQL Server d/b, thanks for help on > that) and it is > > SQL Server then I'd like to see if I can link to it > successfully. So, > > if I start from the worst case scenario that they won't have any > > software capable of linking to SQL Server does anyone have > or know of > > any free utility which will fit on a CD that I could use > just to look > > at a database, whatever the OS and whatever the SQL vintage? > > > > -- Andy Lacey > > http://www.minstersystems.co.uk > > > > _______________________________________________ > > dba-SQLServer mailing list > > dba-SQLServer at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > > http://www.databaseadvisors.com > > > > > > > > _______________________________________________ > > dba-SQLServer mailing list > > dba-SQLServer at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > > http://www.databaseadvisors.com > > > > > > > -- > -Francisco > Pc This! pc news with > out the jargon _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > > > From Susan.Klos at fldoe.org Thu Oct 7 06:50:09 2004 From: Susan.Klos at fldoe.org (Klos, Susan) Date: Thu, 7 Oct 2004 07:50:09 -0400 Subject: [dba-SQLServer] QBE tool in query analyzer Message-ID: <01B619CB8F6C8C478EDAC39191AEC51EE738C9@DOESEFPEML02.EUS.FLDOE.INT> Someone on Accessd, years ago, developed a small Access database that wrote sql code. It was a great little tool, and I thought it would be useful for folks who didn't use the qbe in Access. I have since lost it due to changing machines several times. Does anyone else remember this tool? It might be helpful, I don't know. I haven't even looked at it for years. Susan Klos Senior Database Analyst Evaluation and Reporting Florida Department of Education 850-245-0708 sc 205-0708 -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Wednesday, October 06, 2004 8:22 PM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer] QBE tool in query analyzer Could they be referring to the Create View Wizard?? Charlotte Foust -----Original Message----- From: Arthur Fuller [mailto:artful at rogers.com] Sent: Wednesday, October 06, 2004 5:01 PM To: dba-sqlserver at databaseadvisors.com Subject: Re: [dba-SQLServer] QBE tool in query analyzer Francisco Tapia wrote: >you paying the air-fare? WOW :D... I'd like to try out Jet Blue, thanks >:D > > >On Tue, 05 Oct 2004 15:18:43 -0400, John W. Colby > wrote: > > >>OK well, will you come to my house for a couple of days. ;-) >> >>John W. Colby >>www.ColbyConsulting.com >> >> >> >>-----Original Message----- >>From: dba-sqlserver-bounces at databaseadvisors.com >>[mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of >>Porter, Mark >>Sent: Tuesday, October 05, 2004 2:59 PM >>To: dba-sqlserver at databaseadvisors.com >>Subject: RE: [dba-SQLServer] QBE tool in query analyzer >> >>I even write straight SQL in Access about half the time now, since >>moving to SQL Server a few years ago. >> >> >> >>>-----Original Message----- >>>From: dba-sqlserver-bounces at databaseadvisors.com >>>[mailto:dba-sqlserver-bounces at databaseadvisors.com]On Behalf Of David >>>Lewis >>>Sent: Tuesday, October 05, 2004 10:00 AM >>>To: dba-sqlserver at databaseadvisors.com >>>Subject: [dba-SQLServer] QBE tool in query analyzer >>> >>> >>> >>>Getting used to writing sql code is part of the learning curve when >>>moving from access to sql server. It takes a bit of work, but it is >>>well worth it. After a time, trying to build a query in an >>>access-like GUI is so aggravating that you will want to stick to QA. >>>For one thing, it allows you far more flexibility (subselects, case >>>statements, derived tables, etc. etc. etc. etc. etc.). Again, it is >>>well worth the effort. >>> >>> >>> >>> >>>>Message: 1 >>>>Date: Tue, 05 Oct 2004 09:33:56 -0400 >>>>From: "John W. Colby" >>>>Subject: [dba-SQLServer] QBE in Query analyzer >>>>To: dba-sqlserver at databaseadvisors.com >>>>Message-ID: <001701c4aadf$face27a0$e8dafea9 at ColbyM6805> >>>>Content-Type: text/plain; charset=us-ascii >>>> >>>>Is there a QBE tool in query analyzer? I am having to go create a >>>>view to use the qbe grid there, then cut and paste the sql into the >>>>query analyzer. >>>> >>>> >>>>John W. Colby >>>>www.ColbyConsulting.com >>>> >>>> >>>> >>>> >>>_______________________________________________ >>>dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com >>>http://databaseadvisors.com/mailman/listinfo/dba-sqlserver >>>http://www.databaseadvisors.com >>> >>> >>> >>> >>********************************************************************** >>****** >>******* >>This transmittal may contain confidential information intended solely for >>the addressee. If you are not the intended recipient, you are hereby >>notified that you have received this transmittal in error; any review, >>dissemination, distribution or copying of this transmittal is strictly >>prohibited. If you have received this communication in error, please notify >>us immediately by reply or by telephone (collect at 907-564-1000) and ask to >>speak with the message sender. In addition, please immediately delete this >>message and all attachments. Thank you. ACS >> >>_______________________________________________ >>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 >> >> >> >> > > > > In BOL, there are numerous references to something called Visual Database Tools (look in the Contents under Using the SQL Server Tools. They talk in here about a Visual Query Designer. Where does this thing live? I've never seen it! Arthur _______________________________________________ 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 CMackin at quiznos.com Thu Oct 7 08:28:59 2004 From: CMackin at quiznos.com (Mackin, Christopher) Date: Thu, 7 Oct 2004 07:28:59 -0600 Subject: [dba-SQLServer] Browsing tool? Message-ID: Andy, The .udl will allow you to test the connection and will let you know if the username and password you provide (or Windows Authentication) are valid ways of connecting. -Chris Mackin -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com]On Behalf Of Andy Lacey Sent: Thursday, October 07, 2004 12:39 AM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer] Browsing tool? Thanks Francisco That'll help ascertain if it's Sql Server, but presumably the database can be secured and prevent me linking to it. So I was looking for a "browsing tool" to check whether that is the case or if I can freely get at the data. -- 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 Francisco Tapia > Sent: 06 October 2004 22:36 > To: dba-sqlserver at databaseadvisors.com > Subject: Re: [dba-SQLServer] Browsing tool? > > > Additionally the Machine that is said to have the Sql Server > on it, look for a service running named: MSSQLSERVER, where > the executable file name is sqlservr.exe > > > > On Wed, 6 Oct 2004 14:08:24 -0600, Mackin, Christopher > wrote: > > One simple way is to just create a text file and then rename it to > > .udl. Once you open it you can set up a connection to it using the > > avaialble Providers. > > > > -Chris Mackin > > > > > > > > -----Original Message----- > > From: dba-sqlserver-bounces at databaseadvisors.com > > [mailto:dba-sqlserver-bounces at databaseadvisors.com]On > Behalf Of Andy > > Lacey > > Sent: Wednesday, October 06, 2004 1:53 PM > > To: dba-sqlserver at databaseadvisors.com > > Subject: [dba-SQLServer] Browsing tool? > > > > Hi folks > > > > Next week I'm going to see a potential client (hurrah!). He > has a 3rd > > party package specific to companies in the printing industry, and > > wants a simple contact management system which will link to > the client > > data in this package. I suspect (but am not sure) that the package > > uses a SQL Server database. If I'm correct (and I've > already asked how > > best to see if it's SQL Server d/b, thanks for help on > that) and it is > > SQL Server then I'd like to see if I can link to it > successfully. So, > > if I start from the worst case scenario that they won't have any > > software capable of linking to SQL Server does anyone have > or know of > > any free utility which will fit on a CD that I could use > just to look > > at a database, whatever the OS and whatever the SQL vintage? > > > > -- Andy Lacey > > http://www.minstersystems.co.uk > > > > _______________________________________________ > > dba-SQLServer mailing list > > dba-SQLServer at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > > http://www.databaseadvisors.com > > > > > > > > _______________________________________________ > > dba-SQLServer mailing list > > dba-SQLServer at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > > http://www.databaseadvisors.com > > > > > > > -- > -Francisco > Pc This! pc news with > out the jargon _______________________________________________ > 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 Oct 7 08:32:47 2004 From: artful at rogers.com (Arthur Fuller) Date: Thu, 07 Oct 2004 09:32:47 -0400 Subject: [dba-SQLServer] Open a text file from SQL Server In-Reply-To: References: Message-ID: <4165457F.7030809@rogers.com> Billy Pang wrote: > there is: > > declare @file_location varchar(255) > declare @exec_stat varchar(255) > SET @file_location = 'C:\myFile.txt' > SET @exec_stat = 'type ' + @file_location > EXEC master.dbo.xp_cmdshell @exec_stat > > note: it's not perfect because text in the variable is "word wrapped". > > Billy > Does this give me the contents of the file in a variable? That's what I really need. Maybe it does, but I don't see how, or which variable will contain the returned text. Arthur From HARVEYF1 at WESTAT.com Thu Oct 7 10:18:48 2004 From: HARVEYF1 at WESTAT.com (Francis Harvey) Date: Thu, 7 Oct 2004 11:18:48 -0400 Subject: [dba-SQLServer] Open a text file from SQL Server Message-ID: <446DDE75CFC7E1438061462F85557B0F0481EAD9@remail2.westat.com> Arthur, Perhaps bcp with an appropriate format file into a temporary table which can then be loaded into a variable? I actually did this for a binary file with a temporary table that had an image field, but I could work out a text example if it would be of interest. Francis R Harvey III WB 303, (301)294-3952 harveyf1 at westat.com > -----Original Message----- > From: dba-sqlserver-bounces at databaseadvisors.com > [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf > Of Arthur Fuller > Sent: Tuesday, October 05, 2004 5:01 PM > To: dba-sqlserver at databaseadvisors.com > Subject: [dba-SQLServer] Open a text file from SQL Server > > > Can someone tell me how to open a text file from SQL Server? > And place > its contents into a memory variable? I'm looking at OPENXML > but all its > examples use text that is assigned to a variable from within the > example, rather than read in from an XML or just a text file. > It looks > like full text search will do it, but that's a lot of install > overhead > just to read in a file. Is there a simpler way? > > TIA, > Arthur > _______________________________________________ > 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 Thu Oct 7 12:04:09 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 7 Oct 2004 18:04:09 +0100 Subject: [dba-SQLServer] Browsing tool? In-Reply-To: Message-ID: <000001c4ac8f$a9825bd0$b274d0d5@minster33c3r25> I'm sorry Chris but I'm a SQL Server novice and I don't understand what you're suggesting. I don't know what a UDL is. And what would I test the connection with, and how? -- 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 Mackin, Christopher > Sent: 07 October 2004 14:29 > To: dba-sqlserver at databaseadvisors.com > Subject: RE: [dba-SQLServer] Browsing tool? > > > Andy, > > The .udl will allow you to test the connection and will let > you know if the username and password you provide (or Windows > Authentication) are valid ways of connecting. > > -Chris Mackin > > -----Original Message----- > From: dba-sqlserver-bounces at databaseadvisors.com > [mailto:dba-sqlserver-bounces at databaseadvisors.com]On Behalf > Of Andy Lacey > Sent: Thursday, October 07, 2004 12:39 AM > To: dba-sqlserver at databaseadvisors.com > Subject: RE: [dba-SQLServer] Browsing tool? > > > Thanks Francisco > That'll help ascertain if it's Sql Server, but presumably the > database can be secured and prevent me linking to it. So I > was looking for a "browsing tool" to check whether that is > the case or if I can freely get at the data. > > -- 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 Francisco Tapia > > Sent: 06 October 2004 22:36 > > To: dba-sqlserver at databaseadvisors.com > > Subject: Re: [dba-SQLServer] Browsing tool? > > > > > > Additionally the Machine that is said to have the Sql Server > > on it, look for a service running named: MSSQLSERVER, where > > the executable file name is sqlservr.exe > > > > > > > > On Wed, 6 Oct 2004 14:08:24 -0600, Mackin, Christopher > > wrote: > > > One simple way is to just create a text file and then rename it to > > > .udl. Once you open it you can set up a connection to it > using the > > > avaialble Providers. > > > > > > -Chris Mackin > > > > > > > > > > > > -----Original Message----- > > > From: dba-sqlserver-bounces at databaseadvisors.com > > > [mailto:dba-sqlserver-bounces at databaseadvisors.com]On > > Behalf Of Andy > > > Lacey > > > Sent: Wednesday, October 06, 2004 1:53 PM > > > To: dba-sqlserver at databaseadvisors.com > > > Subject: [dba-SQLServer] Browsing tool? > > > > > > Hi folks > > > > > > Next week I'm going to see a potential client (hurrah!). He > > has a 3rd > > > party package specific to companies in the printing industry, and > > > wants a simple contact management system which will link to > > the client > > > data in this package. I suspect (but am not sure) that the package > > > uses a SQL Server database. If I'm correct (and I've > > already asked how > > > best to see if it's SQL Server d/b, thanks for help on > > that) and it is > > > SQL Server then I'd like to see if I can link to it > > successfully. So, > > > if I start from the worst case scenario that they won't have any > > > software capable of linking to SQL Server does anyone have > > or know of > > > any free utility which will fit on a CD that I could use > > just to look > > > at a database, whatever the OS and whatever the SQL vintage? > > > > > > -- Andy Lacey > > > http://www.minstersystems.co.uk > > > > > > _______________________________________________ > > > dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > > > http://www.databaseadvisors.com > > > > > > > > > > > > _______________________________________________ > > > dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > > > http://www.databaseadvisors.com > > > > > > > > > > > > -- > > -Francisco > > Pc This! pc news with > > out the jargon _______________________________________________ > > 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 CMackin at quiznos.com Thu Oct 7 12:17:10 2004 From: CMackin at quiznos.com (Mackin, Christopher) Date: Thu, 7 Oct 2004 11:17:10 -0600 Subject: [dba-SQLServer] Browsing tool? Message-ID: It's just a file that stores a connection string. All you do is create a text file, then change the file extension from .txt to .udl. Open it up and you'll see how you do it, it's self-explanatory. In ADO you can use the .udl file as the connction string as an easy way to get the connection out in the filesystem so you can change it externally. If you open the .udl in Notepad it will give you a Connection String you can use, but for what you want to do just open and test the connection and it will give you what you want. -Chris -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com]On Behalf Of Andy Lacey Sent: Thursday, October 07, 2004 11:04 AM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer] Browsing tool? I'm sorry Chris but I'm a SQL Server novice and I don't understand what you're suggesting. I don't know what a UDL is. And what would I test the connection with, and how? -- 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 Mackin, Christopher > Sent: 07 October 2004 14:29 > To: dba-sqlserver at databaseadvisors.com > Subject: RE: [dba-SQLServer] Browsing tool? > > > Andy, > > The .udl will allow you to test the connection and will let > you know if the username and password you provide (or Windows > Authentication) are valid ways of connecting. > > -Chris Mackin > > -----Original Message----- > From: dba-sqlserver-bounces at databaseadvisors.com > [mailto:dba-sqlserver-bounces at databaseadvisors.com]On Behalf > Of Andy Lacey > Sent: Thursday, October 07, 2004 12:39 AM > To: dba-sqlserver at databaseadvisors.com > Subject: RE: [dba-SQLServer] Browsing tool? > > > Thanks Francisco > That'll help ascertain if it's Sql Server, but presumably the > database can be secured and prevent me linking to it. So I > was looking for a "browsing tool" to check whether that is > the case or if I can freely get at the data. > > -- 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 Francisco Tapia > > Sent: 06 October 2004 22:36 > > To: dba-sqlserver at databaseadvisors.com > > Subject: Re: [dba-SQLServer] Browsing tool? > > > > > > Additionally the Machine that is said to have the Sql Server > > on it, look for a service running named: MSSQLSERVER, where > > the executable file name is sqlservr.exe > > > > > > > > On Wed, 6 Oct 2004 14:08:24 -0600, Mackin, Christopher > > wrote: > > > One simple way is to just create a text file and then rename it to > > > .udl. Once you open it you can set up a connection to it > using the > > > avaialble Providers. > > > > > > -Chris Mackin > > > > > > > > > > > > -----Original Message----- > > > From: dba-sqlserver-bounces at databaseadvisors.com > > > [mailto:dba-sqlserver-bounces at databaseadvisors.com]On > > Behalf Of Andy > > > Lacey > > > Sent: Wednesday, October 06, 2004 1:53 PM > > > To: dba-sqlserver at databaseadvisors.com > > > Subject: [dba-SQLServer] Browsing tool? > > > > > > Hi folks > > > > > > Next week I'm going to see a potential client (hurrah!). He > > has a 3rd > > > party package specific to companies in the printing industry, and > > > wants a simple contact management system which will link to > > the client > > > data in this package. I suspect (but am not sure) that the package > > > uses a SQL Server database. If I'm correct (and I've > > already asked how > > > best to see if it's SQL Server d/b, thanks for help on > > that) and it is > > > SQL Server then I'd like to see if I can link to it > > successfully. So, > > > if I start from the worst case scenario that they won't have any > > > software capable of linking to SQL Server does anyone have > > or know of > > > any free utility which will fit on a CD that I could use > > just to look > > > at a database, whatever the OS and whatever the SQL vintage? > > > > > > -- Andy Lacey > > > http://www.minstersystems.co.uk > > > > > > _______________________________________________ > > > dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > > > http://www.databaseadvisors.com > > > > > > > > > > > > _______________________________________________ > > > dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > > > http://www.databaseadvisors.com > > > > > > > > > > > > -- > > -Francisco > > Pc This! pc news with > > out the jargon _______________________________________________ > > 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 andy at minstersystems.co.uk Thu Oct 7 12:42:04 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 7 Oct 2004 18:42:04 +0100 Subject: [dba-SQLServer] Browsing tool? In-Reply-To: Message-ID: <000101c4ac94$f5b05d90$b274d0d5@minster33c3r25> Well I said I was a novice. What should the contents of this .udl look like? I tried putting what I think is a valid connection string, but if I double-click on it to open it I get the message "File cannot be opened. Ensure it is a valid data link file". -- 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 Mackin, Christopher > Sent: 07 October 2004 18:17 > To: dba-sqlserver at databaseadvisors.com > Subject: RE: [dba-SQLServer] Browsing tool? > > > It's just a file that stores a connection string. All you do > is create a text file, then change the file extension from > .txt to .udl. Open it up and you'll see how you do it, it's > self-explanatory. > > In ADO you can use the .udl file as the connction string as > an easy way to get the connection out in the filesystem so > you can change it externally. If you open the .udl in > Notepad it will give you a Connection String you can use, but > for what you want to do just open and test the connection and > it will give you what you want. > > -Chris > > -----Original Message----- > From: dba-sqlserver-bounces at databaseadvisors.com > [mailto:dba-sqlserver-bounces at databaseadvisors.com]On Behalf > Of Andy Lacey > Sent: Thursday, October 07, 2004 11:04 AM > To: dba-sqlserver at databaseadvisors.com > Subject: RE: [dba-SQLServer] Browsing tool? > > > I'm sorry Chris but I'm a SQL Server novice and I don't > understand what you're suggesting. I don't know what a UDL > is. And what would I test the connection with, and how? > > -- 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 Mackin, Christopher > > Sent: 07 October 2004 14:29 > > To: dba-sqlserver at databaseadvisors.com > > Subject: RE: [dba-SQLServer] Browsing tool? > > > > > > Andy, > > > > The .udl will allow you to test the connection and will let > > you know if the username and password you provide (or Windows > > Authentication) are valid ways of connecting. > > > > -Chris Mackin > > > > -----Original Message----- > > From: dba-sqlserver-bounces at databaseadvisors.com > > [mailto:dba-sqlserver-bounces at databaseadvisors.com]On Behalf > > Of Andy Lacey > > Sent: Thursday, October 07, 2004 12:39 AM > > To: dba-sqlserver at databaseadvisors.com > > Subject: RE: [dba-SQLServer] Browsing tool? > > > > > > Thanks Francisco > > That'll help ascertain if it's Sql Server, but presumably the > > database can be secured and prevent me linking to it. So I > > was looking for a "browsing tool" to check whether that is > > the case or if I can freely get at the data. > > > > -- 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 Francisco Tapia > > > Sent: 06 October 2004 22:36 > > > To: dba-sqlserver at databaseadvisors.com > > > Subject: Re: [dba-SQLServer] Browsing tool? > > > > > > > > > Additionally the Machine that is said to have the Sql > Server on it, > > > look for a service running named: MSSQLSERVER, where the > executable > > > file name is sqlservr.exe > > > > > > > > > > > > On Wed, 6 Oct 2004 14:08:24 -0600, Mackin, Christopher > > > wrote: > > > > One simple way is to just create a text file and then > rename it to > > > > .udl. Once you open it you can set up a connection to it > > using the > > > > avaialble Providers. > > > > > > > > -Chris Mackin > > > > > > > > > > > > > > > > -----Original Message----- > > > > From: dba-sqlserver-bounces at databaseadvisors.com > > > > [mailto:dba-sqlserver-bounces at databaseadvisors.com]On > > > Behalf Of Andy > > > > Lacey > > > > Sent: Wednesday, October 06, 2004 1:53 PM > > > > To: dba-sqlserver at databaseadvisors.com > > > > Subject: [dba-SQLServer] Browsing tool? > > > > > > > > Hi folks > > > > > > > > Next week I'm going to see a potential client (hurrah!). He > > > has a 3rd > > > > party package specific to companies in the printing > industry, and > > > > wants a simple contact management system which will link to > > > the client > > > > data in this package. I suspect (but am not sure) that > the package > > > > uses a SQL Server database. If I'm correct (and I've > > > already asked how > > > > best to see if it's SQL Server d/b, thanks for help on > > > that) and it is > > > > SQL Server then I'd like to see if I can link to it > > > successfully. So, > > > > if I start from the worst case scenario that they won't > have any > > > > software capable of linking to SQL Server does anyone have > > > or know of > > > > any free utility which will fit on a CD that I could use > > > just to look > > > > at a database, whatever the OS and whatever the SQL vintage? > > > > > > > > -- Andy Lacey > > > > http://www.minstersystems.co.uk > > > > > > > > _______________________________________________ > > > > dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com > > > > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > > > > http://www.databaseadvisors.com > > > > > > > > > > > > > > > > _______________________________________________ > > > > dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com > > > > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > > > > http://www.databaseadvisors.com > > > > > > > > > > > > > > > > > -- > > > -Francisco > > > Pc This! pc news with > > > out the jargon _______________________________________________ > > > 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 tuxedo_man at hotmail.com Thu Oct 7 12:43:03 2004 From: tuxedo_man at hotmail.com (Billy Pang) Date: Thu, 07 Oct 2004 17:43:03 +0000 Subject: [dba-SQLServer] Open a text file from SQL Server Message-ID: ok.. I added dumped the results of xp_cmdshell into a variable called @the_value.. /* cut here */ declare @file_location varchar(255) declare @exec_stat varchar(255) declare @the_value nvarchar(255) declare @y INT declare @x int create table #tempResults(the_id int not null identity(1,1), the_value nvarchar(255)) SET @file_location = 'C:\myFile.txt' SET @exec_stat = 'type ' + @file_location insert into #tempResults EXEC master.dbo.xp_cmdshell @exec_stat select @y = count(*) from #tempResults set @x = 0 while @x <> @y begin set @x = @x + 1 select @the_value = the_value from #tempResults where the_id = @x select @x as row_num, @the_value as the_value end /* cut here */ >From: Arthur Fuller >Reply-To: dba-sqlserver at databaseadvisors.com >To: dba-sqlserver at databaseadvisors.com >Subject: Re: [dba-SQLServer] Open a text file from SQL Server >Date: Thu, 07 Oct 2004 09:32:47 -0400 > >Billy Pang wrote: > >>there is: >> >>declare @file_location varchar(255) >>declare @exec_stat varchar(255) >>SET @file_location = 'C:\myFile.txt' >>SET @exec_stat = 'type ' + @file_location >>EXEC master.dbo.xp_cmdshell @exec_stat >> >>note: it's not perfect because text in the variable is "word wrapped". >> >>Billy >> >Does this give me the contents of the file in a variable? That's what I >really need. Maybe it does, but I don't see how, or which variable will >contain the returned text. > >Arthur > >_______________________________________________ >dba-SQLServer mailing list >dba-SQLServer at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-sqlserver >http://www.databaseadvisors.com > _________________________________________________________________ Take advantage of powerful junk e-mail filters built on patented Microsoft? SmartScreen Technology. http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines Start enjoying all the benefits of MSN? Premium right now and get the first two months FREE*. From CMackin at quiznos.com Thu Oct 7 12:57:40 2004 From: CMackin at quiznos.com (Mackin, Christopher) Date: Thu, 7 Oct 2004 11:57:40 -0600 Subject: [dba-SQLServer] Browsing tool? Message-ID: Are you using Windows 2000 or after? I'll send you a file off-line of what the .udl should look like. -Chris Mackin -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com]On Behalf Of Andy Lacey Sent: Thursday, October 07, 2004 11:42 AM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer] Browsing tool? Well I said I was a novice. What should the contents of this .udl look like? I tried putting what I think is a valid connection string, but if I double-click on it to open it I get the message "File cannot be opened. Ensure it is a valid data link file". -- 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 Mackin, Christopher > Sent: 07 October 2004 18:17 > To: dba-sqlserver at databaseadvisors.com > Subject: RE: [dba-SQLServer] Browsing tool? > > > It's just a file that stores a connection string. All you do > is create a text file, then change the file extension from > .txt to .udl. Open it up and you'll see how you do it, it's > self-explanatory. > > In ADO you can use the .udl file as the connction string as > an easy way to get the connection out in the filesystem so > you can change it externally. If you open the .udl in > Notepad it will give you a Connection String you can use, but > for what you want to do just open and test the connection and > it will give you what you want. > > -Chris > > -----Original Message----- > From: dba-sqlserver-bounces at databaseadvisors.com > [mailto:dba-sqlserver-bounces at databaseadvisors.com]On Behalf > Of Andy Lacey > Sent: Thursday, October 07, 2004 11:04 AM > To: dba-sqlserver at databaseadvisors.com > Subject: RE: [dba-SQLServer] Browsing tool? > > > I'm sorry Chris but I'm a SQL Server novice and I don't > understand what you're suggesting. I don't know what a UDL > is. And what would I test the connection with, and how? > > -- 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 Mackin, Christopher > > Sent: 07 October 2004 14:29 > > To: dba-sqlserver at databaseadvisors.com > > Subject: RE: [dba-SQLServer] Browsing tool? > > > > > > Andy, > > > > The .udl will allow you to test the connection and will let > > you know if the username and password you provide (or Windows > > Authentication) are valid ways of connecting. > > > > -Chris Mackin > > > > -----Original Message----- > > From: dba-sqlserver-bounces at databaseadvisors.com > > [mailto:dba-sqlserver-bounces at databaseadvisors.com]On Behalf > > Of Andy Lacey > > Sent: Thursday, October 07, 2004 12:39 AM > > To: dba-sqlserver at databaseadvisors.com > > Subject: RE: [dba-SQLServer] Browsing tool? > > > > > > Thanks Francisco > > That'll help ascertain if it's Sql Server, but presumably the > > database can be secured and prevent me linking to it. So I > > was looking for a "browsing tool" to check whether that is > > the case or if I can freely get at the data. > > > > -- 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 Francisco Tapia > > > Sent: 06 October 2004 22:36 > > > To: dba-sqlserver at databaseadvisors.com > > > Subject: Re: [dba-SQLServer] Browsing tool? > > > > > > > > > Additionally the Machine that is said to have the Sql > Server on it, > > > look for a service running named: MSSQLSERVER, where the > executable > > > file name is sqlservr.exe > > > > > > > > > > > > On Wed, 6 Oct 2004 14:08:24 -0600, Mackin, Christopher > > > wrote: > > > > One simple way is to just create a text file and then > rename it to > > > > .udl. Once you open it you can set up a connection to it > > using the > > > > avaialble Providers. > > > > > > > > -Chris Mackin > > > > > > > > > > > > > > > > -----Original Message----- > > > > From: dba-sqlserver-bounces at databaseadvisors.com > > > > [mailto:dba-sqlserver-bounces at databaseadvisors.com]On > > > Behalf Of Andy > > > > Lacey > > > > Sent: Wednesday, October 06, 2004 1:53 PM > > > > To: dba-sqlserver at databaseadvisors.com > > > > Subject: [dba-SQLServer] Browsing tool? > > > > > > > > Hi folks > > > > > > > > Next week I'm going to see a potential client (hurrah!). He > > > has a 3rd > > > > party package specific to companies in the printing > industry, and > > > > wants a simple contact management system which will link to > > > the client > > > > data in this package. I suspect (but am not sure) that > the package > > > > uses a SQL Server database. If I'm correct (and I've > > > already asked how > > > > best to see if it's SQL Server d/b, thanks for help on > > > that) and it is > > > > SQL Server then I'd like to see if I can link to it > > > successfully. So, > > > > if I start from the worst case scenario that they won't > have any > > > > software capable of linking to SQL Server does anyone have > > > or know of > > > > any free utility which will fit on a CD that I could use > > > just to look > > > > at a database, whatever the OS and whatever the SQL vintage? > > > > > > > > -- Andy Lacey > > > > http://www.minstersystems.co.uk > > > > > > > > _______________________________________________ > > > > dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com > > > > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > > > > http://www.databaseadvisors.com > > > > > > > > > > > > > > > > _______________________________________________ > > > > dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com > > > > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > > > > http://www.databaseadvisors.com > > > > > > > > > > > > > > > > > -- > > > -Francisco > > > Pc This! pc news with > > > out the jargon _______________________________________________ > > > 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 andy at minstersystems.co.uk Thu Oct 7 13:11:49 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 7 Oct 2004 19:11:49 +0100 Subject: [dba-SQLServer] Browsing tool? In-Reply-To: Message-ID: <000301c4ac99$1dbfcf60$b274d0d5@minster33c3r25> XP. Thanks Chris. Andy > -----Original Message----- > From: dba-sqlserver-bounces at databaseadvisors.com > [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf > Of Mackin, Christopher > Sent: 07 October 2004 18:58 > To: dba-sqlserver at databaseadvisors.com > Subject: RE: [dba-SQLServer] Browsing tool? > > > Are you using Windows 2000 or after? I'll send you a file > off-line of what the .udl should look like. > > -Chris Mackin > > -----Original Message----- > From: dba-sqlserver-bounces at databaseadvisors.com > [mailto:dba-sqlserver-bounces at databaseadvisors.com]On Behalf > Of Andy Lacey > Sent: Thursday, October 07, 2004 11:42 AM > To: dba-sqlserver at databaseadvisors.com > Subject: RE: [dba-SQLServer] Browsing tool? > > > Well I said I was a novice. What should the contents of this > .udl look like? I tried putting what I think is a valid > connection string, but if I double-click on it to open it I > get the message "File cannot be opened. Ensure it is a valid > data link file". > > -- 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 Mackin, Christopher > > Sent: 07 October 2004 18:17 > > To: dba-sqlserver at databaseadvisors.com > > Subject: RE: [dba-SQLServer] Browsing tool? > > > > > > It's just a file that stores a connection string. All you do > > is create a text file, then change the file extension from > > .txt to .udl. Open it up and you'll see how you do it, it's > > self-explanatory. > > > > In ADO you can use the .udl file as the connction string as > > an easy way to get the connection out in the filesystem so > > you can change it externally. If you open the .udl in > > Notepad it will give you a Connection String you can use, but > > for what you want to do just open and test the connection and > > it will give you what you want. > > > > -Chris > > > > -----Original Message----- > > From: dba-sqlserver-bounces at databaseadvisors.com > > [mailto:dba-sqlserver-bounces at databaseadvisors.com]On Behalf > > Of Andy Lacey > > Sent: Thursday, October 07, 2004 11:04 AM > > To: dba-sqlserver at databaseadvisors.com > > Subject: RE: [dba-SQLServer] Browsing tool? > > > > > > I'm sorry Chris but I'm a SQL Server novice and I don't > > understand what you're suggesting. I don't know what a UDL > > is. And what would I test the connection with, and how? > > > > -- 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 Mackin, Christopher > > > Sent: 07 October 2004 14:29 > > > To: dba-sqlserver at databaseadvisors.com > > > Subject: RE: [dba-SQLServer] Browsing tool? > > > > > > > > > Andy, > > > > > > The .udl will allow you to test the connection and will > let you know > > > if the username and password you provide (or Windows > > > Authentication) are valid ways of connecting. > > > > > > -Chris Mackin > > > > > > -----Original Message----- > > > From: dba-sqlserver-bounces at databaseadvisors.com > > > [mailto:dba-sqlserver-bounces at databaseadvisors.com]On > Behalf Of Andy > > > Lacey > > > Sent: Thursday, October 07, 2004 12:39 AM > > > To: dba-sqlserver at databaseadvisors.com > > > Subject: RE: [dba-SQLServer] Browsing tool? > > > > > > > > > Thanks Francisco > > > That'll help ascertain if it's Sql Server, but presumably the > > > database can be secured and prevent me linking to it. So I was > > > looking for a "browsing tool" to check whether that is > the case or > > > if I can freely get at the data. > > > > > > -- 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 > > > > Francisco Tapia > > > > Sent: 06 October 2004 22:36 > > > > To: dba-sqlserver at databaseadvisors.com > > > > Subject: Re: [dba-SQLServer] Browsing tool? > > > > > > > > > > > > Additionally the Machine that is said to have the Sql > > Server on it, > > > > look for a service running named: MSSQLSERVER, where the > > executable > > > > file name is sqlservr.exe > > > > > > > > > > > > > > > > On Wed, 6 Oct 2004 14:08:24 -0600, Mackin, Christopher > > > > wrote: > > > > > One simple way is to just create a text file and then > > rename it to > > > > > .udl. Once you open it you can set up a connection to it > > > using the > > > > > avaialble Providers. > > > > > > > > > > -Chris Mackin > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > From: dba-sqlserver-bounces at databaseadvisors.com > > > > > [mailto:dba-sqlserver-bounces at databaseadvisors.com]On > > > > Behalf Of Andy > > > > > Lacey > > > > > Sent: Wednesday, October 06, 2004 1:53 PM > > > > > To: dba-sqlserver at databaseadvisors.com > > > > > Subject: [dba-SQLServer] Browsing tool? > > > > > > > > > > Hi folks > > > > > > > > > > Next week I'm going to see a potential client (hurrah!). He > > > > has a 3rd > > > > > party package specific to companies in the printing > > industry, and > > > > > wants a simple contact management system which will link to > > > > the client > > > > > data in this package. I suspect (but am not sure) that > > the package > > > > > uses a SQL Server database. If I'm correct (and I've > > > > already asked how > > > > > best to see if it's SQL Server d/b, thanks for help on > > > > that) and it is > > > > > SQL Server then I'd like to see if I can link to it > > > > successfully. So, > > > > > if I start from the worst case scenario that they won't > > have any > > > > > software capable of linking to SQL Server does anyone have > > > > or know of > > > > > any free utility which will fit on a CD that I could use > > > > just to look > > > > > at a database, whatever the OS and whatever the SQL vintage? > > > > > > > > > > -- Andy Lacey > > > > > http://www.minstersystems.co.uk > > > > > > > > > > _______________________________________________ > > > > > dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com > > > > > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > > > > > http://www.databaseadvisors.com > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com > > > > > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > > > > > http://www.databaseadvisors.com > > > > > > > > > > > > > > > > > > > > > > -- > > > > -Francisco > > > > Pc This! pc news > with out the > > > > jargon _______________________________________________ > > > > 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 andy at minstersystems.co.uk Thu Oct 7 13:25:21 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 7 Oct 2004 19:25:21 +0100 Subject: [dba-SQLServer] Browsing tool? In-Reply-To: Message-ID: <000001c4ac9b$01534800$b274d0d5@minster33c3r25> Received and tried. Works like a charm. That's really useful Chris. Thanks so much. -- 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 Mackin, Christopher > Sent: 07 October 2004 18:58 > To: dba-sqlserver at databaseadvisors.com > Subject: RE: [dba-SQLServer] Browsing tool? > > > Are you using Windows 2000 or after? I'll send you a file > off-line of what the .udl should look like. > > -Chris Mackin > > -----Original Message----- > From: dba-sqlserver-bounces at databaseadvisors.com > [mailto:dba-sqlserver-bounces at databaseadvisors.com]On Behalf > Of Andy Lacey > Sent: Thursday, October 07, 2004 11:42 AM > To: dba-sqlserver at databaseadvisors.com > Subject: RE: [dba-SQLServer] Browsing tool? > > > Well I said I was a novice. What should the contents of this > .udl look like? I tried putting what I think is a valid > connection string, but if I double-click on it to open it I > get the message "File cannot be opened. Ensure it is a valid > data link file". > > -- 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 Mackin, Christopher > > Sent: 07 October 2004 18:17 > > To: dba-sqlserver at databaseadvisors.com > > Subject: RE: [dba-SQLServer] Browsing tool? > > > > > > It's just a file that stores a connection string. All you do > > is create a text file, then change the file extension from > > .txt to .udl. Open it up and you'll see how you do it, it's > > self-explanatory. > > > > In ADO you can use the .udl file as the connction string as > > an easy way to get the connection out in the filesystem so > > you can change it externally. If you open the .udl in > > Notepad it will give you a Connection String you can use, but > > for what you want to do just open and test the connection and > > it will give you what you want. > > > > -Chris > > > > -----Original Message----- > > From: dba-sqlserver-bounces at databaseadvisors.com > > [mailto:dba-sqlserver-bounces at databaseadvisors.com]On Behalf > > Of Andy Lacey > > Sent: Thursday, October 07, 2004 11:04 AM > > To: dba-sqlserver at databaseadvisors.com > > Subject: RE: [dba-SQLServer] Browsing tool? > > > > > > I'm sorry Chris but I'm a SQL Server novice and I don't > > understand what you're suggesting. I don't know what a UDL > > is. And what would I test the connection with, and how? > > > > -- 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 Mackin, Christopher > > > Sent: 07 October 2004 14:29 > > > To: dba-sqlserver at databaseadvisors.com > > > Subject: RE: [dba-SQLServer] Browsing tool? > > > > > > > > > Andy, > > > > > > The .udl will allow you to test the connection and will > let you know > > > if the username and password you provide (or Windows > > > Authentication) are valid ways of connecting. > > > > > > -Chris Mackin > > > > > > -----Original Message----- > > > From: dba-sqlserver-bounces at databaseadvisors.com > > > [mailto:dba-sqlserver-bounces at databaseadvisors.com]On > Behalf Of Andy > > > Lacey > > > Sent: Thursday, October 07, 2004 12:39 AM > > > To: dba-sqlserver at databaseadvisors.com > > > Subject: RE: [dba-SQLServer] Browsing tool? > > > > > > > > > Thanks Francisco > > > That'll help ascertain if it's Sql Server, but presumably the > > > database can be secured and prevent me linking to it. So I was > > > looking for a "browsing tool" to check whether that is > the case or > > > if I can freely get at the data. > > > > > > -- 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 > > > > Francisco Tapia > > > > Sent: 06 October 2004 22:36 > > > > To: dba-sqlserver at databaseadvisors.com > > > > Subject: Re: [dba-SQLServer] Browsing tool? > > > > > > > > > > > > Additionally the Machine that is said to have the Sql > > Server on it, > > > > look for a service running named: MSSQLSERVER, where the > > executable > > > > file name is sqlservr.exe > > > > > > > > > > > > > > > > On Wed, 6 Oct 2004 14:08:24 -0600, Mackin, Christopher > > > > wrote: > > > > > One simple way is to just create a text file and then > > rename it to > > > > > .udl. Once you open it you can set up a connection to it > > > using the > > > > > avaialble Providers. > > > > > > > > > > -Chris Mackin > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > From: dba-sqlserver-bounces at databaseadvisors.com > > > > > [mailto:dba-sqlserver-bounces at databaseadvisors.com]On > > > > Behalf Of Andy > > > > > Lacey > > > > > Sent: Wednesday, October 06, 2004 1:53 PM > > > > > To: dba-sqlserver at databaseadvisors.com > > > > > Subject: [dba-SQLServer] Browsing tool? > > > > > > > > > > Hi folks > > > > > > > > > > Next week I'm going to see a potential client (hurrah!). He > > > > has a 3rd > > > > > party package specific to companies in the printing > > industry, and > > > > > wants a simple contact management system which will link to > > > > the client > > > > > data in this package. I suspect (but am not sure) that > > the package > > > > > uses a SQL Server database. If I'm correct (and I've > > > > already asked how > > > > > best to see if it's SQL Server d/b, thanks for help on > > > > that) and it is > > > > > SQL Server then I'd like to see if I can link to it > > > > successfully. So, > > > > > if I start from the worst case scenario that they won't > > have any > > > > > software capable of linking to SQL Server does anyone have > > > > or know of > > > > > any free utility which will fit on a CD that I could use > > > > just to look > > > > > at a database, whatever the OS and whatever the SQL vintage? > > > > > > > > > > -- Andy Lacey > > > > > http://www.minstersystems.co.uk > > > > > > > > > > _______________________________________________ > > > > > dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com > > > > > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > > > > > http://www.databaseadvisors.com > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com > > > > > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > > > > > http://www.databaseadvisors.com > > > > > > > > > > > > > > > > > > > > > > -- > > > > -Francisco > > > > Pc This! pc news > with out the > > > > jargon _______________________________________________ > > > > 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 jwcolby at colbyconsulting.com Thu Oct 7 13:32:38 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 07 Oct 2004 14:32:38 -0400 Subject: [dba-SQLServer] Good deal Message-ID: <000201c4ac9c$095a3940$e8dafea9@ColbyM6805> The laptop I bought for 1500 minus $250 rebate is now available for $1300 minus an additional $150 mail in rebate. This is a NICE machine folks. Emachines Athlon64 3000+ ghz, 512m ram, 60m hard drive, built-in 54mbit wireless, etc. http://www.bestbuy.com/site/olspage.jsp?type=product&id=1069301995506&skuId= 6249703 John W. Colby www.ColbyConsulting.com From CMackin at quiznos.com Thu Oct 7 13:32:43 2004 From: CMackin at quiznos.com (Mackin, Christopher) Date: Thu, 7 Oct 2004 12:32:43 -0600 Subject: [dba-SQLServer] Browsing tool? Message-ID: You're wlecome, glad I could help. -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com]On Behalf Of Andy Lacey Sent: Thursday, October 07, 2004 12:25 PM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer] Browsing tool? Received and tried. Works like a charm. That's really useful Chris. Thanks so much. -- 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 Mackin, Christopher > Sent: 07 October 2004 18:58 > To: dba-sqlserver at databaseadvisors.com > Subject: RE: [dba-SQLServer] Browsing tool? > > > Are you using Windows 2000 or after? I'll send you a file > off-line of what the .udl should look like. > > -Chris Mackin > > -----Original Message----- > From: dba-sqlserver-bounces at databaseadvisors.com > [mailto:dba-sqlserver-bounces at databaseadvisors.com]On Behalf > Of Andy Lacey > Sent: Thursday, October 07, 2004 11:42 AM > To: dba-sqlserver at databaseadvisors.com > Subject: RE: [dba-SQLServer] Browsing tool? > > > Well I said I was a novice. What should the contents of this > .udl look like? I tried putting what I think is a valid > connection string, but if I double-click on it to open it I > get the message "File cannot be opened. Ensure it is a valid > data link file". > > -- 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 Mackin, Christopher > > Sent: 07 October 2004 18:17 > > To: dba-sqlserver at databaseadvisors.com > > Subject: RE: [dba-SQLServer] Browsing tool? > > > > > > It's just a file that stores a connection string. All you do > > is create a text file, then change the file extension from > > .txt to .udl. Open it up and you'll see how you do it, it's > > self-explanatory. > > > > In ADO you can use the .udl file as the connction string as > > an easy way to get the connection out in the filesystem so > > you can change it externally. If you open the .udl in > > Notepad it will give you a Connection String you can use, but > > for what you want to do just open and test the connection and > > it will give you what you want. > > > > -Chris > > > > -----Original Message----- > > From: dba-sqlserver-bounces at databaseadvisors.com > > [mailto:dba-sqlserver-bounces at databaseadvisors.com]On Behalf > > Of Andy Lacey > > Sent: Thursday, October 07, 2004 11:04 AM > > To: dba-sqlserver at databaseadvisors.com > > Subject: RE: [dba-SQLServer] Browsing tool? > > > > > > I'm sorry Chris but I'm a SQL Server novice and I don't > > understand what you're suggesting. I don't know what a UDL > > is. And what would I test the connection with, and how? > > > > -- 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 Mackin, Christopher > > > Sent: 07 October 2004 14:29 > > > To: dba-sqlserver at databaseadvisors.com > > > Subject: RE: [dba-SQLServer] Browsing tool? > > > > > > > > > Andy, > > > > > > The .udl will allow you to test the connection and will > let you know > > > if the username and password you provide (or Windows > > > Authentication) are valid ways of connecting. > > > > > > -Chris Mackin > > > > > > -----Original Message----- > > > From: dba-sqlserver-bounces at databaseadvisors.com > > > [mailto:dba-sqlserver-bounces at databaseadvisors.com]On > Behalf Of Andy > > > Lacey > > > Sent: Thursday, October 07, 2004 12:39 AM > > > To: dba-sqlserver at databaseadvisors.com > > > Subject: RE: [dba-SQLServer] Browsing tool? > > > > > > > > > Thanks Francisco > > > That'll help ascertain if it's Sql Server, but presumably the > > > database can be secured and prevent me linking to it. So I was > > > looking for a "browsing tool" to check whether that is > the case or > > > if I can freely get at the data. > > > > > > -- 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 > > > > Francisco Tapia > > > > Sent: 06 October 2004 22:36 > > > > To: dba-sqlserver at databaseadvisors.com > > > > Subject: Re: [dba-SQLServer] Browsing tool? > > > > > > > > > > > > Additionally the Machine that is said to have the Sql > > Server on it, > > > > look for a service running named: MSSQLSERVER, where the > > executable > > > > file name is sqlservr.exe > > > > > > > > > > > > > > > > On Wed, 6 Oct 2004 14:08:24 -0600, Mackin, Christopher > > > > wrote: > > > > > One simple way is to just create a text file and then > > rename it to > > > > > .udl. Once you open it you can set up a connection to it > > > using the > > > > > avaialble Providers. > > > > > > > > > > -Chris Mackin > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > From: dba-sqlserver-bounces at databaseadvisors.com > > > > > [mailto:dba-sqlserver-bounces at databaseadvisors.com]On > > > > Behalf Of Andy > > > > > Lacey > > > > > Sent: Wednesday, October 06, 2004 1:53 PM > > > > > To: dba-sqlserver at databaseadvisors.com > > > > > Subject: [dba-SQLServer] Browsing tool? > > > > > > > > > > Hi folks > > > > > > > > > > Next week I'm going to see a potential client (hurrah!). He > > > > has a 3rd > > > > > party package specific to companies in the printing > > industry, and > > > > > wants a simple contact management system which will link to > > > > the client > > > > > data in this package. I suspect (but am not sure) that > > the package > > > > > uses a SQL Server database. If I'm correct (and I've > > > > already asked how > > > > > best to see if it's SQL Server d/b, thanks for help on > > > > that) and it is > > > > > SQL Server then I'd like to see if I can link to it > > > > successfully. So, > > > > > if I start from the worst case scenario that they won't > > have any > > > > > software capable of linking to SQL Server does anyone have > > > > or know of > > > > > any free utility which will fit on a CD that I could use > > > > just to look > > > > > at a database, whatever the OS and whatever the SQL vintage? > > > > > > > > > > -- Andy Lacey > > > > > http://www.minstersystems.co.uk > > > > > > > > > > _______________________________________________ > > > > > dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com > > > > > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > > > > > http://www.databaseadvisors.com > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com > > > > > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > > > > > http://www.databaseadvisors.com > > > > > > > > > > > > > > > > > > > > > > -- > > > > -Francisco > > > > Pc This! pc news > with out the > > > > jargon _______________________________________________ > > > > 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 > > > _______________________________________________ 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 Oct 7 23:57:54 2004 From: stephen at bondsoftware.co.nz (Stephen Bond) Date: Fri, 08 Oct 2004 17:57:54 +1300 Subject: [dba-SQLServer] QBE tool in query analyzer Message-ID: <70F3D727890C784291D8433E9C418F290888E4@server.bondsoftware.co.nz> I've got one sitting here - looks like it's from Terry Kreft / Dev Ashish, about 500KB Stephen Bond Otatara, New Zealand > -----Original Message----- > From: Klos, Susan [mailto:Susan.Klos at fldoe.org] > Sent: Friday, 8 October 2004 12:50 a.m. > To: 'dba-sqlserver at databaseadvisors.com' > Subject: RE: [dba-SQLServer] QBE tool in query analyzer > > > Someone on Accessd, years ago, developed a small Access > database that wrote > sql code. It was a great little tool, and I thought it would > be useful for > folks who didn't use the qbe in Access. I have since lost it due to > changing machines several times. Does anyone else remember > this tool? It > might be helpful, I don't know. I haven't even looked at it > for years. > > Susan Klos > Senior Database Analyst > Evaluation and Reporting > Florida Department of Education > 850-245-0708 > sc 205-0708 > > > -----Original Message----- > From: Charlotte Foust [mailto:cfoust at infostatsystems.com] > Sent: Wednesday, October 06, 2004 8:22 PM > To: dba-sqlserver at databaseadvisors.com > Subject: RE: [dba-SQLServer] QBE tool in query analyzer > > Could they be referring to the Create View Wizard?? > > Charlotte Foust > > > -----Original Message----- > From: Arthur Fuller [mailto:artful at rogers.com] > Sent: Wednesday, October 06, 2004 5:01 PM > To: dba-sqlserver at databaseadvisors.com > Subject: Re: [dba-SQLServer] QBE tool in query analyzer > > > Francisco Tapia wrote: > > >you paying the air-fare? WOW :D... I'd like to try out Jet > Blue, thanks > > >:D > > > > > >On Tue, 05 Oct 2004 15:18:43 -0400, John W. Colby > > wrote: > > > > > >>OK well, will you come to my house for a couple of days. ;-) > >> > >>John W. Colby > >>www.ColbyConsulting.com > >> > >> > >> > >>-----Original Message----- > >>From: dba-sqlserver-bounces at databaseadvisors.com > >>[mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of > >>Porter, Mark > >>Sent: Tuesday, October 05, 2004 2:59 PM > >>To: dba-sqlserver at databaseadvisors.com > >>Subject: RE: [dba-SQLServer] QBE tool in query analyzer > >> > >>I even write straight SQL in Access about half the time now, since > >>moving to SQL Server a few years ago. > >> > >> > >> > >>>-----Original Message----- > >>>From: dba-sqlserver-bounces at databaseadvisors.com > >>>[mailto:dba-sqlserver-bounces at databaseadvisors.com]On > Behalf Of David > > >>>Lewis > >>>Sent: Tuesday, October 05, 2004 10:00 AM > >>>To: dba-sqlserver at databaseadvisors.com > >>>Subject: [dba-SQLServer] QBE tool in query analyzer > >>> > >>> > >>> > >>>Getting used to writing sql code is part of the learning > curve when > >>>moving from access to sql server. It takes a bit of work, > but it is > >>>well worth it. After a time, trying to build a query in an > >>>access-like GUI is so aggravating that you will want to > stick to QA. > > >>>For one thing, it allows you far more flexibility > (subselects, case > >>>statements, derived tables, etc. etc. etc. etc. etc.). > Again, it is > >>>well worth the effort. > >>> > >>> > >>> > >>> > >>>>Message: 1 > >>>>Date: Tue, 05 Oct 2004 09:33:56 -0400 > >>>>From: "John W. Colby" > >>>>Subject: [dba-SQLServer] QBE in Query analyzer > >>>>To: dba-sqlserver at databaseadvisors.com > >>>>Message-ID: <001701c4aadf$face27a0$e8dafea9 at ColbyM6805> > >>>>Content-Type: text/plain; charset=us-ascii > >>>> > >>>>Is there a QBE tool in query analyzer? I am having to go > create a > >>>>view to use the qbe grid there, then cut and paste the > sql into the > >>>>query analyzer. > >>>> > >>>> > >>>>John W. Colby > >>>>www.ColbyConsulting.com > >>>> > >>>> > >>>> > >>>> > >>>_______________________________________________ > >>>dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com > >>>http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > >>>http://www.databaseadvisors.com > >>> > >>> > >>> > >>> > >>************************************************************ > ********** > >>****** > >>******* > >>This transmittal may contain confidential information > intended solely > for > >>the addressee. If you are not the intended recipient, you are hereby > >>notified that you have received this transmittal in error; > any review, > >>dissemination, distribution or copying of this transmittal > is strictly > >>prohibited. If you have received this communication in error, please > notify > >>us immediately by reply or by telephone (collect at > 907-564-1000) and > ask to > >>speak with the message sender. In addition, please > immediately delete > this > >>message and all attachments. Thank you. ACS > >> > >>_______________________________________________ > >>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 > >> > >> > >> > >> > > > > > > > > > In BOL, there are numerous references to something called Visual > Database Tools (look in the Contents under Using the SQL > Server Tools. > They talk in here about a Visual Query Designer. Where does > this thing > live? I've never seen it! > > Arthur > _______________________________________________ > 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 Erwin.Craps at ithelps.be Fri Oct 8 01:58:56 2004 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Fri, 8 Oct 2004 08:58:56 +0200 Subject: [dba-SQLServer] X-posted: Security issue, opening SQL server port over internet Message-ID: <46B976F2B698FF46A4FE7636509B22DF0ADC9B@stekelbes.ithelps.local> Hi Group A new POS software supplier for a customer from me, asks to open up the SQL server port over the ADSL/Internet. He needs this to synchronise database between two sites. I however, have always understood that opening the SQL server port over the internet is a serious security issue and should be avoided. Due to the numerous security bugs I seen passing the catwalk I find this my personal opinion to. Next to that, the own SQL security system needs to be tuned/activated because by default everything is wide open. I am wondering what the opinion /experiance of the Access group is in this matter. I'm also wondering if the SQL server (I believe version 7) data is encypted when sending over the internet? I personaly would use a VPN connection and connect to to SQL server over that VPN. I know this has some speed drawbacks but its safe... Erwin Craps Zaakvoerder www.ithelps.be/jonathan This E-mail is confidential, may be legally privileged, and is for the intended recipient only. Access, disclosure, copying, distribution, or reliance on any of it by anyone else is prohibited and may be a criminal offence. Please delete if obtained in error and E-mail confirmation to the sender. IT Helps - I.T. Help Center *** Box Office Belgium & Luxembourg www.ithelps.be * www.boxoffice.be * www.stadleuven.be IT Helps bvba* ** Mercatorpad 3 ** 3000 Leuven IT Helps * Phone: +32 16 296 404 * Fax: +32 16 296 405 E-mail: Info at ithelps.be Box Office ** Fax: +32 16 296 406 ** Box Office E-mail: Staff at boxoffice.be -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rl_stewart at highstream.net Fri Oct 8 07:50:12 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Fri, 08 Oct 2004 07:50:12 -0500 Subject: [dba-SQLServer] Re: Good deal In-Reply-To: <200410071839.i97IdJL19231@databaseadvisors.com> Message-ID: <5.1.0.14.2.20041008072651.013aa318@pop3.highstream.net> John, While not as inexpensive as yours, I bought an Acer 1710 back in July. $1850 at Micro Center. 3 ghz Intel P4 1 gig RAM (desktop DDR) 120 gig HDD (3.5") wireless and regular DVD +-RW 6-in-one card reader Firewire and USB 2.0 17" screen An excellent machine if you can live with the 15.7 lbs. Robert At 01:39 PM 10/7/2004 -0500, you wrote: >Date: Thu, 07 Oct 2004 14:32:38 -0400 >From: "John W. Colby" >Subject: [dba-SQLServer] Good deal >To: VBA , "Tech - Database Advisors Inc." > , SQLServer > , AccessD > >Message-ID: <000201c4ac9c$095a3940$e8dafea9 at ColbyM6805> >Content-Type: text/plain; charset=us-ascii > >The laptop I bought for 1500 minus $250 rebate is now available for $1300 >minus an additional $150 mail in rebate. This is a NICE machine folks. > >Emachines Athlon64 3000+ ghz, 512m ram, 60m hard drive, built-in 54mbit >wireless, etc. > >http://www.bestbuy.com/site/olspage.jsp?type=product&id=1069301995506&skuId= >6249703 > >John W. Colby >www.ColbyConsulting.com From jwcolby at colbyconsulting.com Fri Oct 8 09:08:39 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Fri, 08 Oct 2004 10:08:39 -0400 Subject: [dba-SQLServer] Parse name field Message-ID: <001701c4ad40$543491a0$e8dafea9@ColbyM6805> Does anyone have a SP (or whatever) that can parse a single field with first / middle / last name into separate fields? John W. Colby www.ColbyConsulting.com From artful at rogers.com Fri Oct 8 09:45:39 2004 From: artful at rogers.com (Arthur Fuller) Date: Fri, 08 Oct 2004 10:45:39 -0400 Subject: [dba-SQLServer] Parse name field In-Reply-To: <001701c4ad40$543491a0$e8dafea9@ColbyM6805> References: <001701c4ad40$543491a0$e8dafea9@ColbyM6805> Message-ID: <4166A813.7080706@rogers.com> John W. Colby wrote: >Does anyone have a SP (or whatever) that can parse a single field with first >/ middle / last name into separate fields? > >John W. Colby >www.ColbyConsulting.com > > >_______________________________________________ >dba-SQLServer mailing list >dba-SQLServer at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-sqlserver >http://www.databaseadvisors.com > > > > This wouldn't take long to write, but first let's get the requirements straight.... Assume the delimiter is a space? Assume that if there is only one space, then there is no middle name? Assume that if there are more than two spaces, the person has two middle names? Yay or nay? A. From DElam at jenkens.com Fri Oct 8 10:00:38 2004 From: DElam at jenkens.com (Elam, Debbie) Date: Fri, 8 Oct 2004 10:00:38 -0500 Subject: [dba-SQLServer] Parse name field Message-ID: <7B1961ED924D1A459E378C9B1BB22B4C024855D4@natexch.jenkens.com> The biggest crimp I can see is people with spaces in their last name. I have seen the last name de la Rosa. That is only one example. Debbie -----Original Message----- From: Arthur Fuller [mailto:artful at rogers.com] Sent: Friday, October 08, 2004 9:46 AM To: dba-sqlserver at databaseadvisors.com Subject: Re: [dba-SQLServer] Parse name field John W. Colby wrote: >Does anyone have a SP (or whatever) that can parse a single field with first >/ middle / last name into separate fields? > >John W. Colby >www.ColbyConsulting.com > > >_______________________________________________ >dba-SQLServer mailing list >dba-SQLServer at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-sqlserver >http://www.databaseadvisors.com > > > > This wouldn't take long to write, but first let's get the requirements straight.... Assume the delimiter is a space? Assume that if there is only one space, then there is no middle name? Assume that if there are more than two spaces, the person has two middle names? Yay or nay? A. _______________________________________________ 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 Fri Oct 8 10:06:35 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Fri, 08 Oct 2004 11:06:35 -0400 Subject: [dba-SQLServer] Parse name field In-Reply-To: <4166A813.7080706@rogers.com> Message-ID: <001e01c4ad48$67a602c0$e8dafea9@ColbyM6805> LOL. Assume nothing. As a starting point, assume the name is in the format "Title (if they want to display it) FirstName SPACE MiddleInitial(if Any) SPACE LastName" This is data entered directly by the person owning the name so it can have titles if they love showing off their doctorate or judgeship. It seems that all you can assume is that the last name is the last word. Even that breaks down for the Micks and Macs and the likes. I know this is not a trivial thing to do as I was involved in ProperCase wizard on my site. 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 Arthur Fuller Sent: Friday, October 08, 2004 10:46 AM To: dba-sqlserver at databaseadvisors.com Subject: Re: [dba-SQLServer] Parse name field John W. Colby wrote: >Does anyone have a SP (or whatever) that can parse a single field with >first / middle / last name into separate fields? > >John W. Colby >www.ColbyConsulting.com > > >_______________________________________________ >dba-SQLServer mailing list >dba-SQLServer at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-sqlserver >http://www.databaseadvisors.com > > > > This wouldn't take long to write, but first let's get the requirements straight.... Assume the delimiter is a space? Assume that if there is only one space, then there is no middle name? Assume that if there are more than two spaces, the person has two middle names? Yay or nay? A. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri Oct 8 10:15:09 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Fri, 08 Oct 2004 11:15:09 -0400 Subject: [dba-SQLServer] Parse name field In-Reply-To: <7B1961ED924D1A459E378C9B1BB22B4C024855D4@natexch.jenkens.com> Message-ID: <001f01c4ad49$99a4d1b0$e8dafea9@ColbyM6805> Yep, not as trivial as it first appears. 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: Friday, October 08, 2004 11:01 AM To: 'dba-sqlserver at databaseadvisors.com' Subject: RE: [dba-SQLServer] Parse name field The biggest crimp I can see is people with spaces in their last name. I have seen the last name de la Rosa. That is only one example. Debbie -----Original Message----- From: Arthur Fuller [mailto:artful at rogers.com] Sent: Friday, October 08, 2004 9:46 AM To: dba-sqlserver at databaseadvisors.com Subject: Re: [dba-SQLServer] Parse name field John W. Colby wrote: >Does anyone have a SP (or whatever) that can parse a single field with first >/ middle / last name into separate fields? > >John W. Colby >www.ColbyConsulting.com > > >_______________________________________________ >dba-SQLServer mailing list >dba-SQLServer at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-sqlserver >http://www.databaseadvisors.com > > > > This wouldn't take long to write, but first let's get the requirements straight.... Assume the delimiter is a space? Assume that if there is only one space, then there is no middle name? Assume that if there are more than two spaces, the person has two middle names? Yay or nay? A. _______________________________________________ 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 jwcolby at colbyconsulting.com Fri Oct 8 10:19:24 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Fri, 08 Oct 2004 11:19:24 -0400 Subject: [dba-SQLServer] Parse name field In-Reply-To: <7B1961ED924D1A459E378C9B1BB22B4C024855D4@natexch.jenkens.com> Message-ID: <002001c4ad4a$3177daa0$e8dafea9@ColbyM6805> Come to think of it though, for my purposes it might not be as difficult as it appears. This is for the nVLDB mailing list and I do not need to sort on or lookup names. I need the last name just for the purpose of building up a check field where you use the first N characters of the last name, the zip etc. Thus it doesn't matter to me whether I have the entire last name or just the last word of the last name. It's always a good thing to talk about a problem because doing so triggers the brain to analyze the problem. 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: Friday, October 08, 2004 11:01 AM To: 'dba-sqlserver at databaseadvisors.com' Subject: RE: [dba-SQLServer] Parse name field The biggest crimp I can see is people with spaces in their last name. I have seen the last name de la Rosa. That is only one example. Debbie -----Original Message----- From: Arthur Fuller [mailto:artful at rogers.com] Sent: Friday, October 08, 2004 9:46 AM To: dba-sqlserver at databaseadvisors.com Subject: Re: [dba-SQLServer] Parse name field John W. Colby wrote: >Does anyone have a SP (or whatever) that can parse a single field with first >/ middle / last name into separate fields? > >John W. Colby >www.ColbyConsulting.com > > >_______________________________________________ >dba-SQLServer mailing list >dba-SQLServer at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-sqlserver >http://www.databaseadvisors.com > > > > This wouldn't take long to write, but first let's get the requirements straight.... Assume the delimiter is a space? Assume that if there is only one space, then there is no middle name? Assume that if there are more than two spaces, the person has two middle names? Yay or nay? A. _______________________________________________ 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 DElam at jenkens.com Fri Oct 8 10:33:32 2004 From: DElam at jenkens.com (Elam, Debbie) Date: Fri, 8 Oct 2004 10:33:32 -0500 Subject: [dba-SQLServer] Parse name field Message-ID: <7B1961ED924D1A459E378C9B1BB22B4C024855D5@natexch.jenkens.com> What about suffixes? Jr. III Esq. PhD This is really getting ugly. Debbie -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Friday, October 08, 2004 10:07 AM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer] Parse name field LOL. Assume nothing. As a starting point, assume the name is in the format "Title (if they want to display it) FirstName SPACE MiddleInitial(if Any) SPACE LastName" This is data entered directly by the person owning the name so it can have titles if they love showing off their doctorate or judgeship. It seems that all you can assume is that the last name is the last word. Even that breaks down for the Micks and Macs and the likes. I know this is not a trivial thing to do as I was involved in ProperCase wizard on my site. 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 Arthur Fuller Sent: Friday, October 08, 2004 10:46 AM To: dba-sqlserver at databaseadvisors.com Subject: Re: [dba-SQLServer] Parse name field John W. Colby wrote: >Does anyone have a SP (or whatever) that can parse a single field with >first / middle / last name into separate fields? > >John W. Colby >www.ColbyConsulting.com > > >_______________________________________________ >dba-SQLServer mailing list >dba-SQLServer at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-sqlserver >http://www.databaseadvisors.com > > > > This wouldn't take long to write, but first let's get the requirements straight.... Assume the delimiter is a space? Assume that if there is only one space, then there is no middle name? Assume that if there are more than two spaces, the person has two middle names? Yay or nay? A. _______________________________________________ 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 - 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 Fri Oct 8 10:41:32 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Fri, 08 Oct 2004 11:41:32 -0400 Subject: [dba-SQLServer] Parse name field In-Reply-To: <002001c4ad4a$3177daa0$e8dafea9@ColbyM6805> Message-ID: <002101c4ad4d$49211b50$e8dafea9@ColbyM6805> So.... Now I need to know how to find and return the last word in a field. I have never written a stored procedure but if you can give me a starting point I think maybe I can pick it up from there. I assume that I can then create an update query where a last name field is set to the value returned from a SP where the SP is passed in the data from the name field. The SP then does all the processing required to find that last name. As always, this needs to be as fast as possible since this will be running against 64 million names. I will just be putting 3 or 4 machines to work running this functionality against different sets of records to speed up the whole process. 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 John W. Colby Sent: Friday, October 08, 2004 11:19 AM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer] Parse name field Come to think of it though, for my purposes it might not be as difficult as it appears. This is for the nVLDB mailing list and I do not need to sort on or lookup names. I need the last name just for the purpose of building up a check field where you use the first N characters of the last name, the zip etc. Thus it doesn't matter to me whether I have the entire last name or just the last word of the last name. It's always a good thing to talk about a problem because doing so triggers the brain to analyze the problem. 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: Friday, October 08, 2004 11:01 AM To: 'dba-sqlserver at databaseadvisors.com' Subject: RE: [dba-SQLServer] Parse name field The biggest crimp I can see is people with spaces in their last name. I have seen the last name de la Rosa. That is only one example. Debbie -----Original Message----- From: Arthur Fuller [mailto:artful at rogers.com] Sent: Friday, October 08, 2004 9:46 AM To: dba-sqlserver at databaseadvisors.com Subject: Re: [dba-SQLServer] Parse name field John W. Colby wrote: >Does anyone have a SP (or whatever) that can parse a single field with first >/ middle / last name into separate fields? > >John W. Colby >www.ColbyConsulting.com > > >_______________________________________________ >dba-SQLServer mailing list >dba-SQLServer at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-sqlserver >http://www.databaseadvisors.com > > > > This wouldn't take long to write, but first let's get the requirements straight.... Assume the delimiter is a space? Assume that if there is only one space, then there is no middle name? Assume that if there are more than two spaces, the person has two middle names? Yay or nay? A. _______________________________________________ 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 _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri Oct 8 10:50:55 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Fri, 08 Oct 2004 11:50:55 -0400 Subject: [dba-SQLServer] Warning, the table Message-ID: <002201c4ad4e$9d316190$e8dafea9@ColbyM6805> When I try to add a field to the table it gives me a "Warning, the table was created with Ansi Nulls OFF. The table will be recreated with Ansi Nulls ON". I know from experience that this causes the db to go off for days at a time rebuilding the table. What the are ansi nulls and why was the table created with it off? Why do I need them now? Is there any way to prevent this and yet still be able to add a field? Is there any way to allow setting ansi nulls on but not "rebuilding the table"? I already added a field (an int identity) and it told me it was rebuilding the table for that field. Why is it having to rebuild the table again. This is getting rather silly especially since it takes literally days to rebuild the table. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ From jwcolby at colbyconsulting.com Fri Oct 8 10:53:16 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Fri, 08 Oct 2004 11:53:16 -0400 Subject: [dba-SQLServer] Where does it go? Message-ID: <002301c4ad4e$ecec4ce0$e8dafea9@ColbyM6805> If I do the following: EXECUTE sp_addlogin @loginame = 'DataEntry', @passwd = 'ASDFG' Where is this login name stored? How can it be tested? I set up my system to use Windows Login. Can I perform a "SQL SERVER LOGIN" somehow to test that this login "took"? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ From jmoss111 at bellsouth.net Fri Oct 8 11:10:47 2004 From: jmoss111 at bellsouth.net (jmoss111 at bellsouth.net) Date: Fri, 8 Oct 2004 12:10:47 -0400 Subject: [dba-SQLServer] Parse name field Message-ID: <20041008161048.DLEB1757.imf24aec.mail.bellsouth.net@mail.bellsouth.net> You might want to look at the toolset from People Smith that I mentioned to you last month, especially the Personator utility. It makes short works of name and address splitting. You should be able to pick up Personator for 400 for the standard version or 700 for the pro version. Jim > > From: "John W. Colby" > Date: 2004/10/08 Fri AM 11:19:24 EDT > To: dba-sqlserver at databaseadvisors.com > Subject: RE: [dba-SQLServer] Parse name field > > Come to think of it though, for my purposes it might not be as difficult as > it appears. This is for the nVLDB mailing list and I do not need to sort on > or lookup names. I need the last name just for the purpose of building up a > check field where you use the first N characters of the last name, the zip > etc. Thus it doesn't matter to me whether I have the entire last name or > just the last word of the last name. > > It's always a good thing to talk about a problem because doing so triggers > the brain to analyze the problem. > > 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: Friday, October 08, 2004 11:01 AM > To: 'dba-sqlserver at databaseadvisors.com' > Subject: RE: [dba-SQLServer] Parse name field > > > The biggest crimp I can see is people with spaces in their last name. I > have seen the last name de la Rosa. That is only one example. > > Debbie > > -----Original Message----- > From: Arthur Fuller [mailto:artful at rogers.com] > Sent: Friday, October 08, 2004 9:46 AM > To: dba-sqlserver at databaseadvisors.com > Subject: Re: [dba-SQLServer] Parse name field > > > John W. Colby wrote: > > >Does anyone have a SP (or whatever) that can parse a single field with > first > >/ middle / last name into separate fields? > > > >John W. Colby > >www.ColbyConsulting.com > > > > > >_______________________________________________ > >dba-SQLServer mailing list > >dba-SQLServer at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > >http://www.databaseadvisors.com > > > > > > > > > This wouldn't take long to write, but first let's get the requirements > straight.... > > Assume the delimiter is a space? > Assume that if there is only one space, then there is no middle name? Assume > that if there are more than two spaces, the person has two middle > names? > > Yay or nay? > > A. > _______________________________________________ > 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 > > > > > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > > From CMackin at quiznos.com Fri Oct 8 11:18:41 2004 From: CMackin at quiznos.com (Mackin, Christopher) Date: Fri, 8 Oct 2004 10:18:41 -0600 Subject: [dba-SQLServer] Where does it go? Message-ID: It adds the login to the Server in EM look under Security->Logins. Then you can use sp_adduser to assign that login as a user in specific database. -Chris Mackin -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Friday, October 08, 2004 9:53 AM To: SQLServer Subject: [dba-SQLServer] Where does it go? If I do the following: EXECUTE sp_addlogin @loginame = 'DataEntry', @passwd = 'ASDFG' Where is this login name stored? How can it be tested? I set up my system to use Windows Login. Can I perform a "SQL SERVER LOGIN" somehow to test that this login "took"? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ _______________________________________________ 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 Fri Oct 8 11:31:36 2004 From: artful at rogers.com (Arthur Fuller) Date: Fri, 08 Oct 2004 12:31:36 -0400 Subject: [dba-SQLServer] Parse name field In-Reply-To: <002101c4ad4d$49211b50$e8dafea9@ColbyM6805> References: <002101c4ad4d$49211b50$e8dafea9@ColbyM6805> Message-ID: <4166C0E8.60104@rogers.com> John W. Colby wrote: >So.... Now I need to know how to find and return the last word in a field. >I have never written a stored procedure but if you can give me a starting >point I think maybe I can pick it up from there. I assume that I can then >create an update query where a last name field is set to the value returned >from a SP where the SP is passed in the data from the name field. The SP >then does all the processing required to find that last name. > >As always, this needs to be as fast as possible since this will be running >against 64 million names. I will just be putting 3 or 4 machines to work >running this functionality against different sets of records to speed up the >whole process. > >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 John W. >Colby >Sent: Friday, October 08, 2004 11:19 AM >To: dba-sqlserver at databaseadvisors.com >Subject: RE: [dba-SQLServer] Parse name field > > >Come to think of it though, for my purposes it might not be as difficult as >it appears. This is for the nVLDB mailing list and I do not need to sort on >or lookup names. I need the last name just for the purpose of building up a >check field where you use the first N characters of the last name, the zip >etc. Thus it doesn't matter to me whether I have the entire last name or >just the last word of the last name. > >It's always a good thing to talk about a problem because doing so triggers >the brain to analyze the problem. > >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: Friday, October 08, 2004 11:01 AM >To: 'dba-sqlserver at databaseadvisors.com' >Subject: RE: [dba-SQLServer] Parse name field > > >The biggest crimp I can see is people with spaces in their last name. I >have seen the last name de la Rosa. That is only one example. > >Debbie > >-----Original Message----- >From: Arthur Fuller [mailto:artful at rogers.com] >Sent: Friday, October 08, 2004 9:46 AM >To: dba-sqlserver at databaseadvisors.com >Subject: Re: [dba-SQLServer] Parse name field > > >John W. Colby wrote: > > > >>Does anyone have a SP (or whatever) that can parse a single field with >> >> >first > > >>/ middle / last name into separate fields? >> >>John W. Colby >>www.ColbyConsulting.com >> >> >>_______________________________________________ >>dba-SQLServer mailing list >>dba-SQLServer at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/dba-sqlserver >>http://www.databaseadvisors.com >> >> >> >> >> >> >This wouldn't take long to write, but first let's get the requirements >straight.... > >Assume the delimiter is a space? >Assume that if there is only one space, then there is no middle name? Assume >that if there are more than two spaces, the person has two middle >names? > >Yay or nay? > >A. >_______________________________________________ >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 > > > > >_______________________________________________ >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 > > > > As was pointed out earlier, you need to anticipate such things as a Surname like "de la Vega", as well as two middle names. You might devise a rule that says the first space delimits the first name, but then what? 1. Antonio Carlos Jobim -- straightforward 2. Maria Theresa de la Vega -- first space delimits first name, then what? Lower case rule? 3. John Dos Passos -- violates rule 2, which implies that the second capitalized word would be the middle name All this aside, you now confront the sorting rules. Many (most?) schemes suggest that Dos Passos be listed under P not D. This rule at least gives a good starting point: assume that the last word is the most significant part of the surname. Then, assuming that you could somehow recognize that Dos is part of the surname, you could record the surname as Passos, Dos. And Maria's surname as Vega, de la. What we can assume with relative certainty is that the first space delimits the given name. After that it's guesswork. If this is truly important, then I might suggest a rather lengthy process. SELECT CharIndex( ' ', ClientName, 1) -- gives you the position of the first space SELECT SubString( ClientName, 1, CharIndex( ' ', ClientName, 1) ) -- gives you the first name SELECT SubString( ClientName, CharIndex( ' ', ClientName, 1), Len( ClientName ) ) -- gives you the remainder i.e. select substring('Arthur Fuller',7, Len('Arthur Fuller')) -- returns 'Fuller' Create a new table or add columns to the Clients table for GivenName, MiddleName, Surname and Remainder. Update these columns using the expressions above. SELECT DISTINCT Remainder FROM Table ORDER BY Remainder Inspect these and create a Surnames table, having Surname and Remainder columns. Upon encountering 'John Dos Passos', you know the first name is 'John', and the surname is 'Passos'. The trick is to figure out what to do with 'Dos'. (Upgrade to Windows? :) Time for the international community to step in. Zorro, for example, was actually Don Diego de la Vega. I assume from so many mafia movies that 'Don' is equivalent to 'Mr.' or perhaps 'Maestro' or perhaps 'Your Highness', but in any case it is not part of the given name. Now we come to 'Don Quixote' -- bummer! Good luck, baby! There! Now I feel almost as useful as the authors of MS-Help! From fhtapia at gmail.com Fri Oct 8 11:54:16 2004 From: fhtapia at gmail.com (Francisco Tapia) Date: Fri, 8 Oct 2004 09:54:16 -0700 Subject: [dba-SQLServer] Warning, the table In-Reply-To: <002201c4ad4e$9d316190$e8dafea9@ColbyM6805> References: <002201c4ad4e$9d316190$e8dafea9@ColbyM6805> Message-ID: IF you add a column via EM, it may rebuild the table since it actually re-creates the table and copies the data, and drops the old one... (depending on where you add the column). if you do this via QA the syntax looks like this ALTER TABLE myVLDB ADD myClumnName INT On Fri, 08 Oct 2004 11:50:55 -0400, John W. Colby wrote: > When I try to add a field to the table it gives me a "Warning, the table was > created with Ansi Nulls OFF. The table will be recreated with Ansi Nulls > ON". I know from experience that this causes the db to go off for days at a > time rebuilding the table. > > What the are ansi nulls and why was the table created > with it off? > Why do I need them now? > Is there any way to prevent this and yet still be able to add a field? > Is there any way to allow setting ansi nulls on but not "rebuilding the > table"? > > I already added a field (an int identity) and it told me it was rebuilding > the table for that field. Why is it having to rebuild the table again. > This is getting rather silly especially since it takes literally days to > rebuild the table. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > > -- -Francisco Pc This! pc news with out the jargon From jwcolby at colbyconsulting.com Sun Oct 10 01:35:41 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sun, 10 Oct 2004 02:35:41 -0400 Subject: [dba-SQLServer] Problems registering database Message-ID: <000801c4ae93$60eae990$e8dafea9@ColbyM6805> OK, I really need to get my SQL Server on one machine registered on my other machines so I can get some work done. I have 5 computers I need to use. I have the nVLDB database running on Neo2 I have SQL Server (client and server) running on Neo1, Soltek1, ColbyM6805 and soon on MaryDesktop. I need to get as many computers as possible running against Neo2 doing updates to the data in nVLDB. The deal is that a single field in nVLDB has a mishmash of data for the names of people, i.e. titles, first name, middle name, last name, in any combination. For my purposes all I really need is the last complete word (name) from this mishmash. I am not swift enough with SQL Server and its built-in functions to find the position of the LAST space (if any) but I do have code to find the FIRST space. Thus my objective is to pull out everything after the first space from the EntireName field and save it in a LastName field, then on the second and subsequent passes pull everything after the first space from the LastName field and drop it back into the last name field. Crude, but I have plenty of horsepower if I can get all my computers banging away at this. BTW, I ran (and timed) the "everything after the first space" query on Neo2 itself for a subset of 100,000 records and came up with about 10 hours to perform the update query for 64 million records, directly by a single machine. Which means I could just do this if I have to by setting it to run overnight. I make a giant assumption that SQL Server can handle 4 different computers all trying to update data in the same field but against a different set of records? Once that is finished, I will do essentially the same thing except against the last name field itself, in order to get rid of middle names. Thus this will be an iterative process until eventually I am left with the last name itself, in the last name field. My problem here is that I can't get any other computer to register Neo2 SQL server. I always get a "login failed as guest". Any help in getting around this would be much appreciated. Explicit step by step instructions would help the most as I am by no stretch of the imagination fluent in SQL Server-ese. Thanks, John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ From andrew.haslett at ilc.gov.au Sun Oct 10 18:55:41 2004 From: andrew.haslett at ilc.gov.au (Haslett, Andrew) Date: Mon, 11 Oct 2004 09:25:41 +0930 Subject: [dba-SQLServer] Problems registering database Message-ID: <0A870603A2A816459078203FC07F4CD204E57F@adl01s055.ilcorp.gov.au> Use SQL Server authentication and specify a username and password when connecting. -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Sunday, 10 October 2004 4:06 PM To: SQLServer Subject: [dba-SQLServer] Problems registering database OK, I really need to get my SQL Server on one machine registered on my other machines so I can get some work done. I have 5 computers I need to use. I have the nVLDB database running on Neo2 I have SQL Server (client and server) running on Neo1, Soltek1, ColbyM6805 and soon on MaryDesktop. I need to get as many computers as possible running against Neo2 doing updates to the data in nVLDB. The deal is that a single field in nVLDB has a mishmash of data for the names of people, i.e. titles, first name, middle name, last name, in any combination. For my purposes all I really need is the last complete word (name) from this mishmash. I am not swift enough with SQL Server and its built-in functions to find the position of the LAST space (if any) but I do have code to find the FIRST space. Thus my objective is to pull out everything after the first space from the EntireName field and save it in a LastName field, then on the second and subsequent passes pull everything after the first space from the LastName field and drop it back into the last name field. Crude, but I have plenty of horsepower if I can get all my computers banging away at this. BTW, I ran (and timed) the "everything after the first space" query on Neo2 itself for a subset of 100,000 records and came up with about 10 hours to perform the update query for 64 million records, directly by a single machine. Which means I could just do this if I have to by setting it to run overnight. I make a giant assumption that SQL Server can handle 4 different computers all trying to update data in the same field but against a different set of records? Once that is finished, I will do essentially the same thing except against the last name field itself, in order to get rid of middle names. Thus this will be an iterative process until eventually I am left with the last name itself, in the last name field. My problem here is that I can't get any other computer to register Neo2 SQL server. I always get a "login failed as guest". Any help in getting around this would be much appreciated. Explicit step by step instructions would help the most as I am by no stretch of the imagination fluent in SQL Server-ese. Thanks, John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com IMPORTANT - PLEASE READ ******************** This email and any files transmitted with it are confidential and may contain information protected by law from disclosure. If you have received this message in error, please notify the sender immediately and delete this email from your system. No warranty is given that this email or files, if attached to this email, are free from computer viruses or other defects. They are provided on the basis the user assumes all responsibility for loss, damage or consequence resulting directly or indirectly from their use, whether caused by the negligence of the sender or not. From andrew.haslett at ilc.gov.au Sun Oct 10 22:39:06 2004 From: andrew.haslett at ilc.gov.au (Haslett, Andrew) Date: Mon, 11 Oct 2004 13:09:06 +0930 Subject: [dba-SQLServer] Warning, the table Message-ID: <0A870603A2A816459078203FC07F4CD204E584@adl01s055.ilcorp.gov.au> As with most things, probably better explained in BOL. It has to do with the default comparison of NULL's. Search BOL for ANSI_NULLS specifically the topic NULL COMPARISON SEARCH CONDITIONS -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Saturday, 9 October 2004 1:21 AM To: SQLServer Subject: [dba-SQLServer] Warning, the table When I try to add a field to the table it gives me a "Warning, the table was created with Ansi Nulls OFF. The table will be recreated with Ansi Nulls ON". I know from experience that this causes the db to go off for days at a time rebuilding the table. What the are ansi nulls and why was the table created with it off? Why do I need them now? Is there any way to prevent this and yet still be able to add a field? Is there any way to allow setting ansi nulls on but not "rebuilding the table"? I already added a field (an int identity) and it told me it was rebuilding the table for that field. Why is it having to rebuild the table again. This is getting rather silly especially since it takes literally days to rebuild the table. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com IMPORTANT - PLEASE READ ******************** This email and any files transmitted with it are confidential and may contain information protected by law from disclosure. If you have received this message in error, please notify the sender immediately and delete this email from your system. No warranty is given that this email or files, if attached to this email, are free from computer viruses or other defects. They are provided on the basis the user assumes all responsibility for loss, damage or consequence resulting directly or indirectly from their use, whether caused by the negligence of the sender or not. From jwcolby at colbyconsulting.com Mon Oct 11 06:45:21 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Mon, 11 Oct 2004 07:45:21 -0400 Subject: [dba-SQLServer] Warning, the table In-Reply-To: <0A870603A2A816459078203FC07F4CD204E584@adl01s055.ilcorp.gov.au> Message-ID: <001e01c4af87$c9c456f0$e8dafea9@ColbyM6805> Well, I kinda knew the answer to that one question. How bout the others? I already went through this when I added an autonumber index. It rebuilt the table then, why is it doing it again? This table is huge and rebuilding it is a 48 hour process. Do I have to go through this every time I add a field to the table? This is a bit ignorant don't ya think? 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 Haslett, Andrew Sent: Sunday, October 10, 2004 11:39 PM To: 'dba-sqlserver at databaseadvisors.com' Subject: RE: [dba-SQLServer] Warning, the table As with most things, probably better explained in BOL. It has to do with the default comparison of NULL's. Search BOL for ANSI_NULLS specifically the topic NULL COMPARISON SEARCH CONDITIONS -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Saturday, 9 October 2004 1:21 AM To: SQLServer Subject: [dba-SQLServer] Warning, the table When I try to add a field to the table it gives me a "Warning, the table was created with Ansi Nulls OFF. The table will be recreated with Ansi Nulls ON". I know from experience that this causes the db to go off for days at a time rebuilding the table. What the are ansi nulls and why was the table created with it off? Why do I need them now? Is there any way to prevent this and yet still be able to add a field? Is there any way to allow setting ansi nulls on but not "rebuilding the table"? I already added a field (an int identity) and it told me it was rebuilding the table for that field. Why is it having to rebuild the table again. This is getting rather silly especially since it takes literally days to rebuild the table. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com IMPORTANT - PLEASE READ ******************** This email and any files transmitted with it are confidential and may contain information protected by law from disclosure. If you have received this message in error, please notify the sender immediately and delete this email from your system. No warranty is given that this email or files, if attached to this email, are free from computer viruses or other defects. They are provided on the basis the user assumes all responsibility for loss, damage or consequence resulting directly or indirectly from their use, whether caused by the negligence of the sender or not. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From fhtapia at gmail.com Mon Oct 11 12:09:56 2004 From: fhtapia at gmail.com (Francisco Tapia) Date: Mon, 11 Oct 2004 10:09:56 -0700 Subject: [dba-SQLServer] Problems registering database In-Reply-To: <0A870603A2A816459078203FC07F4CD204E57F@adl01s055.ilcorp.gov.au> References: <0A870603A2A816459078203FC07F4CD204E57F@adl01s055.ilcorp.gov.au> Message-ID: Not only that, you are running XP SP2 IIRC from one of your ealier posts... please check that your software firewall is allowing sql server to get through it default listens on port 1433, so please make sure that at least this port is open. 2ndly make sure that the Sql Server is set up to listen in mixed mode so you can at your whim, choose between nt authentication and sql Server sercuity... to do this go to Neo2, and right click the server in EM, and choose the type of authentication allowed. when registering from other pc's you can elect to use the IP instead of the name, and thus make for less headaches.. On Mon, 11 Oct 2004 09:25:41 +0930, Haslett, Andrew wrote: > Use SQL Server authentication and specify a username and password when > connecting. > > > > -----Original Message----- > From: John W. Colby [mailto:jwcolby at colbyconsulting.com] > Sent: Sunday, 10 October 2004 4:06 PM > To: SQLServer > Subject: [dba-SQLServer] Problems registering database > > OK, I really need to get my SQL Server on one machine registered on my other > machines so I can get some work done. > > I have 5 computers I need to use. > > I have the nVLDB database running on Neo2 I have SQL Server (client and > server) running on Neo1, Soltek1, ColbyM6805 and soon on MaryDesktop. > > I need to get as many computers as possible running against Neo2 doing > updates to the data in nVLDB. The deal is that a single field in nVLDB has > a mishmash of data for the names of people, i.e. titles, first name, middle > name, last name, in any combination. For my purposes all I really need is > the last complete word (name) from this mishmash. I am not swift enough > with SQL Server and its built-in functions to find the position of the LAST > space (if any) but I do have code to find the FIRST space. Thus my > objective is to pull out everything after the first space from the > EntireName field and save it in a LastName field, then on the second and > subsequent passes pull everything after the first space from the LastName > field and drop it back into the last name field. Crude, but I have plenty > of horsepower if I can get all my computers banging away at this. > > BTW, I ran (and timed) the "everything after the first space" query on Neo2 > itself for a subset of 100,000 records and came up with about 10 hours to > perform the update query for 64 million records, directly by a single > machine. Which means I could just do this if I have to by setting it to run > overnight. > > I make a giant assumption that SQL Server can handle 4 different computers > all trying to update data in the same field but against a different set of > records? > > Once that is finished, I will do essentially the same thing except against > the last name field itself, in order to get rid of middle names. Thus this > will be an iterative process until eventually I am left with the last name > itself, in the last name field. > > My problem here is that I can't get any other computer to register Neo2 SQL > server. I always get a "login failed as guest". Any help in getting around > this would be much appreciated. Explicit step by step instructions would > help the most as I am by no stretch of the imagination fluent in SQL > Server-ese. > > Thanks, > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > > IMPORTANT - PLEASE READ ******************** > This email and any files transmitted with it are confidential and may > contain information protected by law from disclosure. > If you have received this message in error, please notify the sender > immediately and delete this email from your system. > No warranty is given that this email or files, if attached to this > email, are free from computer viruses or other defects. They > are provided on the basis the user assumes all responsibility for > loss, damage or consequence resulting directly or indirectly from > their use, whether caused by the negligence of the sender or not. > > > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > > -- -Francisco Pc This! pc news with out the jargon From JColby at dispec.com Mon Oct 11 13:01:30 2004 From: JColby at dispec.com (Colby, John) Date: Mon, 11 Oct 2004 14:01:30 -0400 Subject: [dba-SQLServer] Problems registering database Message-ID: <05C61C52D7CAD211A7830008C7DF6F10CBF91B@DISABILITYINS01> Francisco, Thanks for that. I am not running the XP firewall (never will) but I am running a firewall. However I disabled all the firewalls for the purposes of testing this stuff and that didn't help. Having the port number is important though for setting up my firewalls so I appreciate that. The problem with using SQL Server authentication is that as soon as I get into that I have to set up users (none exist at this point) and that brings up what rights they need. There are a TON of them and I don't really understand that stuff. One of the reasons I specifically asked for "step by step". John W. Colby The DIS Database Guy -----Original Message----- From: Francisco Tapia [mailto:fhtapia at gmail.com] Sent: Monday, October 11, 2004 1:10 PM To: dba-sqlserver at databaseadvisors.com Subject: Re: [dba-SQLServer] Problems registering database Not only that, you are running XP SP2 IIRC from one of your ealier posts... please check that your software firewall is allowing sql server to get through it default listens on port 1433, so please make sure that at least this port is open. 2ndly make sure that the Sql Server is set up to listen in mixed mode so you can at your whim, choose between nt authentication and sql Server sercuity... to do this go to Neo2, and right click the server in EM, and choose the type of authentication allowed. when registering from other pc's you can elect to use the IP instead of the name, and thus make for less headaches.. On Mon, 11 Oct 2004 09:25:41 +0930, Haslett, Andrew wrote: > Use SQL Server authentication and specify a username and password when > connecting. > > > > -----Original Message----- > From: John W. Colby [mailto:jwcolby at colbyconsulting.com] > Sent: Sunday, 10 October 2004 4:06 PM > To: SQLServer > Subject: [dba-SQLServer] Problems registering database > > OK, I really need to get my SQL Server on one machine registered on my other > machines so I can get some work done. > > I have 5 computers I need to use. > > I have the nVLDB database running on Neo2 I have SQL Server (client and > server) running on Neo1, Soltek1, ColbyM6805 and soon on MaryDesktop. > > I need to get as many computers as possible running against Neo2 doing > updates to the data in nVLDB. The deal is that a single field in nVLDB has > a mishmash of data for the names of people, i.e. titles, first name, middle > name, last name, in any combination. For my purposes all I really need is > the last complete word (name) from this mishmash. I am not swift enough > with SQL Server and its built-in functions to find the position of the LAST > space (if any) but I do have code to find the FIRST space. Thus my > objective is to pull out everything after the first space from the > EntireName field and save it in a LastName field, then on the second and > subsequent passes pull everything after the first space from the LastName > field and drop it back into the last name field. Crude, but I have plenty > of horsepower if I can get all my computers banging away at this. > > BTW, I ran (and timed) the "everything after the first space" query on Neo2 > itself for a subset of 100,000 records and came up with about 10 hours to > perform the update query for 64 million records, directly by a single > machine. Which means I could just do this if I have to by setting it to run > overnight. > > I make a giant assumption that SQL Server can handle 4 different computers > all trying to update data in the same field but against a different set of > records? > > Once that is finished, I will do essentially the same thing except against > the last name field itself, in order to get rid of middle names. Thus this > will be an iterative process until eventually I am left with the last name > itself, in the last name field. > > My problem here is that I can't get any other computer to register Neo2 SQL > server. I always get a "login failed as guest". Any help in getting around > this would be much appreciated. Explicit step by step instructions would > help the most as I am by no stretch of the imagination fluent in SQL > Server-ese. > > Thanks, > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > > IMPORTANT - PLEASE READ ******************** > This email and any files transmitted with it are confidential and may > contain information protected by law from disclosure. > If you have received this message in error, please notify the sender > immediately and delete this email from your system. > No warranty is given that this email or files, if attached to this > email, are free from computer viruses or other defects. They > are provided on the basis the user assumes all responsibility for > loss, damage or consequence resulting directly or indirectly from > their use, whether caused by the negligence of the sender or not. > > > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > > -- -Francisco Pc This! pc news with out the jargon _______________________________________________ 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 Mon Oct 11 13:31:39 2004 From: ebarro at afsweb.com (Eric Barro) Date: Mon, 11 Oct 2004 11:31:39 -0700 Subject: [dba-SQLServer] Problems registering database In-Reply-To: <05C61C52D7CAD211A7830008C7DF6F10CBF91B@DISABILITYINS01> Message-ID: John, This trick might help. Put an entry in your HOSTS file (one each machine that runs SQL server) that corresponds to the SQL server's IP and name eg. 192.168.xxx.xxx Neo2 192.168.xxx.xxx Neo1 192.168.xxx.xxx Soltek1 192.168.xxx.xxx ColbyM6805 192.168.xxx.xxx MaryDesktop Everytime you register SQL server using EM it won't have difficulty finding the correct SQL server. I learned this trick a while back when all of a sudden I could not register the SQL server successfully. Prior to that I didn't have any issues. Something changed (possibly a SQL server service pack) and EM stopped recognizing SQL server registrations the "old way". I haven't had any issues with registering SQL server using EM once I added an entry for each SQL server machine I wanted to register in the HOSTS file. Eric -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com]On Behalf Of Colby, John Sent: Monday, October 11, 2004 11:02 AM To: 'dba-sqlserver at databaseadvisors.com' Subject: RE: [dba-SQLServer] Problems registering database Francisco, Thanks for that. I am not running the XP firewall (never will) but I am running a firewall. However I disabled all the firewalls for the purposes of testing this stuff and that didn't help. Having the port number is important though for setting up my firewalls so I appreciate that. The problem with using SQL Server authentication is that as soon as I get into that I have to set up users (none exist at this point) and that brings up what rights they need. There are a TON of them and I don't really understand that stuff. One of the reasons I specifically asked for "step by step". John W. Colby The DIS Database Guy -----Original Message----- From: Francisco Tapia [mailto:fhtapia at gmail.com] Sent: Monday, October 11, 2004 1:10 PM To: dba-sqlserver at databaseadvisors.com Subject: Re: [dba-SQLServer] Problems registering database Not only that, you are running XP SP2 IIRC from one of your ealier posts... please check that your software firewall is allowing sql server to get through it default listens on port 1433, so please make sure that at least this port is open. 2ndly make sure that the Sql Server is set up to listen in mixed mode so you can at your whim, choose between nt authentication and sql Server sercuity... to do this go to Neo2, and right click the server in EM, and choose the type of authentication allowed. when registering from other pc's you can elect to use the IP instead of the name, and thus make for less headaches.. ----------------------------------------- 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 prosoft6 at hotmail.com Mon Oct 11 13:45:16 2004 From: prosoft6 at hotmail.com (Julie Reardon-Taylor) Date: Mon, 11 Oct 2004 14:45:16 -0400 Subject: [dba-SQLServer] Problems registering database Message-ID: John, Do you really need to set-up the users? Can't you just log onto SQL Server using the standard (although not very secure) SA account with a password to process your data. I don't understand where you are having the problem. Do you have the client tools installed on the client machines and are you logging in using Windows Auth. or SQL Auth.? Julie Reardon-Taylor PRO-SOFT OF NY, INC. 108 Franklin Street Watertown, NY 13601 (315) 785-0319 www.pro-soft.net From JColby at dispec.com Mon Oct 11 13:55:06 2004 From: JColby at dispec.com (Colby, John) Date: Mon, 11 Oct 2004 14:55:06 -0400 Subject: [dba-SQLServer] Problems registering database Message-ID: <05C61C52D7CAD211A7830008C7DF6F10CBF91C@DISABILITYINS01> ooooohhhh cool. thanks John W. Colby The DIS Database Guy -----Original Message----- From: Eric Barro [mailto:ebarro at afsweb.com] Sent: Monday, October 11, 2004 2:32 PM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer] Problems registering database John, This trick might help. Put an entry in your HOSTS file (one each machine that runs SQL server) that corresponds to the SQL server's IP and name eg. 192.168.xxx.xxx Neo2 192.168.xxx.xxx Neo1 192.168.xxx.xxx Soltek1 192.168.xxx.xxx ColbyM6805 192.168.xxx.xxx MaryDesktop Everytime you register SQL server using EM it won't have difficulty finding the correct SQL server. I learned this trick a while back when all of a sudden I could not register the SQL server successfully. Prior to that I didn't have any issues. Something changed (possibly a SQL server service pack) and EM stopped recognizing SQL server registrations the "old way". I haven't had any issues with registering SQL server using EM once I added an entry for each SQL server machine I wanted to register in the HOSTS file. Eric -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com]On Behalf Of Colby, John Sent: Monday, October 11, 2004 11:02 AM To: 'dba-sqlserver at databaseadvisors.com' Subject: RE: [dba-SQLServer] Problems registering database Francisco, Thanks for that. I am not running the XP firewall (never will) but I am running a firewall. However I disabled all the firewalls for the purposes of testing this stuff and that didn't help. Having the port number is important though for setting up my firewalls so I appreciate that. The problem with using SQL Server authentication is that as soon as I get into that I have to set up users (none exist at this point) and that brings up what rights they need. There are a TON of them and I don't really understand that stuff. One of the reasons I specifically asked for "step by step". John W. Colby The DIS Database Guy -----Original Message----- From: Francisco Tapia [mailto:fhtapia at gmail.com] Sent: Monday, October 11, 2004 1:10 PM To: dba-sqlserver at databaseadvisors.com Subject: Re: [dba-SQLServer] Problems registering database Not only that, you are running XP SP2 IIRC from one of your ealier posts... please check that your software firewall is allowing sql server to get through it default listens on port 1433, so please make sure that at least this port is open. 2ndly make sure that the Sql Server is set up to listen in mixed mode so you can at your whim, choose between nt authentication and sql Server sercuity... to do this go to Neo2, and right click the server in EM, and choose the type of authentication allowed. when registering from other pc's you can elect to use the IP instead of the name, and thus make for less headaches.. ----------------------------------------- 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 theref! ore 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 JColby at dispec.com Mon Oct 11 14:01:11 2004 From: JColby at dispec.com (Colby, John) Date: Mon, 11 Oct 2004 15:01:11 -0400 Subject: [dba-SQLServer] Problems registering database Message-ID: <05C61C52D7CAD211A7830008C7DF6F10CBF91D@DISABILITYINS01> Julie, I don't understand why I am having the problem either. I have 4 machines with SQL Server loaded, both client and server parts. Soltek1 can be seen and registered from EVERY other machine. Some of the others can be SEEN by the others, but not registered. In all cases I get a "tempuser not authorized" kind of message (I'm not home at the moment so I can's tell you the exact message though I think it is one of the past messages). I do not understand the mechanics of registering a remote server so I can't really intelligently discuss any of this. All I know is that good old Soltek1 is available, and all the other machines can see it, and can register it. Most of the others can be found (are in the list of machines that can be registered) but the registration itself fails saying that I can't use the temp user. John W. Colby The DIS Database Guy -----Original Message----- From: Julie Reardon-Taylor [mailto:prosoft6 at hotmail.com] Sent: Monday, October 11, 2004 2:45 PM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer] Problems registering database John, Do you really need to set-up the users? Can't you just log onto SQL Server using the standard (although not very secure) SA account with a password to process your data. I don't understand where you are having the problem. Do you have the client tools installed on the client machines and are you logging in using Windows Auth. or SQL Auth.? Julie Reardon-Taylor PRO-SOFT OF NY, INC. 108 Franklin Street Watertown, NY 13601 (315) 785-0319 www.pro-soft.net _______________________________________________ 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 Oct 11 14:33:19 2004 From: artful at rogers.com (Arthur Fuller) Date: Mon, 11 Oct 2004 15:33:19 -0400 Subject: [dba-SQLServer] Problems registering database In-Reply-To: <05C61C52D7CAD211A7830008C7DF6F10CBF91B@DISABILITYINS01> References: <05C61C52D7CAD211A7830008C7DF6F10CBF91B@DISABILITYINS01> Message-ID: <416ADFFF.8030108@rogers.com> Colby, John wrote: >Francisco, > >Thanks for that. I am not running the XP firewall (never will) but I am >running a firewall. However I disabled all the firewalls for the purposes >of testing this stuff and that didn't help. Having the port number is >important though for setting up my firewalls so I appreciate that. > >The problem with using SQL Server authentication is that as soon as I get >into that I have to set up users (none exist at this point) and that brings >up what rights they need. There are a TON of them and I don't really >understand that stuff. One of the reasons I specifically asked for "step by >step". > >John W. Colby >The DIS Database Guy > > >-----Original Message----- >From: Francisco Tapia [mailto:fhtapia at gmail.com] >Sent: Monday, October 11, 2004 1:10 PM >To: dba-sqlserver at databaseadvisors.com >Subject: Re: [dba-SQLServer] Problems registering database > > >Not only that, you are running XP SP2 IIRC from one of your ealier >posts... please check that your software firewall is allowing sql >server to get through it default listens on port 1433, so please make >sure that at least this port is open. > >2ndly make sure that the Sql Server is set up to listen in mixed mode >so you can at your whim, choose between nt authentication and sql >Server sercuity... to do this go to Neo2, and right click the server >in EM, and choose the type of authentication allowed. > >when registering from other pc's you can elect to use the IP instead >of the name, and thus make for less headaches.. > > >On Mon, 11 Oct 2004 09:25:41 +0930, Haslett, Andrew > wrote: > > >>Use SQL Server authentication and specify a username and password when >>connecting. >> >> >> >>-----Original Message----- >>From: John W. Colby [mailto:jwcolby at colbyconsulting.com] >>Sent: Sunday, 10 October 2004 4:06 PM >>To: SQLServer >>Subject: [dba-SQLServer] Problems registering database >> >>OK, I really need to get my SQL Server on one machine registered on my >> >> >other > > >>machines so I can get some work done. >> >>I have 5 computers I need to use. >> >>I have the nVLDB database running on Neo2 I have SQL Server (client and >>server) running on Neo1, Soltek1, ColbyM6805 and soon on MaryDesktop. >> >>I need to get as many computers as possible running against Neo2 doing >>updates to the data in nVLDB. The deal is that a single field in nVLDB >> >> >has > > >>a mishmash of data for the names of people, i.e. titles, first name, >> >> >middle > > >>name, last name, in any combination. For my purposes all I really need is >>the last complete word (name) from this mishmash. I am not swift enough >>with SQL Server and its built-in functions to find the position of the >> >> >LAST > > >>space (if any) but I do have code to find the FIRST space. Thus my >>objective is to pull out everything after the first space from the >>EntireName field and save it in a LastName field, then on the second and >>subsequent passes pull everything after the first space from the LastName >>field and drop it back into the last name field. Crude, but I have plenty >>of horsepower if I can get all my computers banging away at this. >> >>BTW, I ran (and timed) the "everything after the first space" query on >> >> >Neo2 > > >>itself for a subset of 100,000 records and came up with about 10 hours to >>perform the update query for 64 million records, directly by a single >>machine. Which means I could just do this if I have to by setting it to >> >> >run > > >>overnight. >> >>I make a giant assumption that SQL Server can handle 4 different computers >>all trying to update data in the same field but against a different set of >>records? >> >>Once that is finished, I will do essentially the same thing except against >>the last name field itself, in order to get rid of middle names. Thus >> >> >this > > >>will be an iterative process until eventually I am left with the last name >>itself, in the last name field. >> >>My problem here is that I can't get any other computer to register Neo2 >> >> >SQL > > >>server. I always get a "login failed as guest". Any help in getting >> >> >around > > >>this would be much appreciated. Explicit step by step instructions would >>help the most as I am by no stretch of the imagination fluent in SQL >>Server-ese. >> >>Thanks, >> >>John W. Colby >>www.ColbyConsulting.com >> >>Contribute your unused CPU cycles to a good cause: >>http://folding.stanford.edu/ >> >>_______________________________________________ >>dba-SQLServer mailing list >>dba-SQLServer at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/dba-sqlserver >>http://www.databaseadvisors.com >> >>IMPORTANT - PLEASE READ ******************** >>This email and any files transmitted with it are confidential and may >>contain information protected by law from disclosure. >>If you have received this message in error, please notify the sender >>immediately and delete this email from your system. >>No warranty is given that this email or files, if attached to this >>email, are free from computer viruses or other defects. They >>are provided on the basis the user assumes all responsibility for >>loss, damage or consequence resulting directly or indirectly from >>their use, whether caused by the negligence of the sender or not. >> >> >>_______________________________________________ >>dba-SQLServer mailing list >>dba-SQLServer at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/dba-sqlserver >>http://www.databaseadvisors.com >> >> >> >> > > > > At least for the time being, you only need 1 user, which you already have -- sa. Once you finally get around to adding users I STRONGLY recommend that you use roles rather than just users. That way you can define a role once, and then add all the users you want to it. Change the roles of the role and all users inherit the change. You can also build roles up. I often go this route. I.e. Role -- sales staff:: no table rights. Rights to various procedures that allow update, insert, delete maybe. Role -- Manager: no table rights. Rights to do anything Sales can do, plus run some reports and view salaries. Role -- Developer:: rights to tables, sprocs, views, etc. Now add JWC to Sales and also to Manager. Everyone else in Sales gets only those rights, but JWC gets Manager rights as well. From jwcolby at colbyconsulting.com Mon Oct 11 15:32:18 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Mon, 11 Oct 2004 16:32:18 -0400 Subject: [dba-SQLServer] Problems registering database In-Reply-To: <416ADFFF.8030108@rogers.com> Message-ID: <002c01c4afd1$6a51fc00$e8dafea9@ColbyM6805> Yea, I don't need any of that stuff. I am the only user. I just need all the Servers to recognize that user. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ At least for the time being, you only need 1 user, which you already have -- sa. Once you finally get around to adding users I STRONGLY recommend that you use roles rather than just users. That way you can define a role once, and then add all the users you want to it. Change the roles of the role and all users inherit the change. You can also build roles up. I often go this route. I.e. Role -- sales staff:: no table rights. Rights to various procedures that allow update, insert, delete maybe. Role -- Manager: no table rights. Rights to do anything Sales can do, plus run some reports and view salaries. Role -- Developer:: rights to tables, sprocs, views, etc. Now add JWC to Sales and also to Manager. Everyone else in Sales gets only those rights, but JWC gets Manager rights as well. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From andrew.haslett at ilc.gov.au Mon Oct 11 19:32:43 2004 From: andrew.haslett at ilc.gov.au (Haslett, Andrew) Date: Tue, 12 Oct 2004 10:02:43 +0930 Subject: [dba-SQLServer] Problems registering database Message-ID: <0A870603A2A816459078203FC07F4CD204E58D@adl01s055.ilcorp.gov.au> If this is just for your own purposes, then use the built-in sa account as suggested. Its not an issue of being able to 'see' the other servers, or another network issue, its that you don't have permissions as its assuming you're using the Guest account when using Windows (Integrated) Authentication. Set it up to use SQL Authentication - specify the same password for the sa account so that you only have to remember one, and then use these credentials when registering servers from the other machines. -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Tuesday, 12 October 2004 6:02 AM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer] Problems registering database Yea, I don't need any of that stuff. I am the only user. I just need all the Servers to recognize that user. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ At least for the time being, you only need 1 user, which you already have -- sa. Once you finally get around to adding users I STRONGLY recommend that you use roles rather than just users. That way you can define a role once, and then add all the users you want to it. Change the roles of the role and all users inherit the change. You can also build roles up. I often go this route. I.e. Role -- sales staff:: no table rights. Rights to various procedures that allow update, insert, delete maybe. Role -- Manager: no table rights. Rights to do anything Sales can do, plus run some reports and view salaries. Role -- Developer:: rights to tables, sprocs, views, etc. Now add JWC to Sales and also to Manager. Everyone else in Sales gets only those rights, but JWC gets Manager rights as well. _______________________________________________ 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 IMPORTANT - PLEASE READ ******************** This email and any files transmitted with it are confidential and may contain information protected by law from disclosure. If you have received this message in error, please notify the sender immediately and delete this email from your system. No warranty is given that this email or files, if attached to this email, are free from computer viruses or other defects. They are provided on the basis the user assumes all responsibility for loss, damage or consequence resulting directly or indirectly from their use, whether caused by the negligence of the sender or not. From jwcolby at colbyconsulting.com Mon Oct 11 21:00:20 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Mon, 11 Oct 2004 22:00:20 -0400 Subject: LRE: [dba-SQLServer] Problems registering database In-Reply-To: <0A870603A2A816459078203FC07F4CD204E58D@adl01s055.ilcorp.gov.au> Message-ID: <000001c4afff$3d936e50$e8dafea9@ColbyM6805> Andrew, >its that you don't have permissions as its assuming you're using the >Guest account when using Windows (Integrated) Authentication. And why is it assuming that? Is there any way to specify an account? >Set it up to use SQL Authentication - specify the same password for the >sa account so that you only have to remember one, and then use these >credentials when registering servers from the other machines. I am told that SQL Authentication is a security risk for reasons unknown (to me). Besides which, >Set it up to use SQL Authentication - specify the same password for the >sa account so that you only have to remember one, and then use these >credentials when registering servers from the other machines. Is just vague enough that I haven't been able to figure this out. When I installed SQL Server it asked me what I wanted. I specified Windows login authentication. I have NO CLUE how to "set it up to" do anything. I can see where I "set up a new user" but that sure doesn't appear to be what I am after. I have searched BOL and found all kinds of stuff, but not how to go in and tell SQL Server to switch from using Windows Authentication to SQL Server Login (or both). *********** SQL Server Authentication Modes When SQL Server 2000 is running on Windows NT or Windows 2000, members of the sysadmin fixed server role can specify one of two authentication modes: Windows Authentication Mode Only Windows Authentication is allowed. Users cannot specify a SQL Server 2000 login ID. This is the default authentication mode for SQL Server 2000. You cannot specify Windows Authentication Mode for an instance of SQL Server running on Windows 98, because the operating system does not support Windows Authentication. Mixed Mode If users supply a SQL Server 2000 login ID when they log on, they are authenticated using SQL Server Authentication. If they do not supply a SQL Server 2000 login ID, or request Windows Authentication, they are authenticated using Windows Authentication. These modes are specified during setup or with SQL Server Enterprise Manager. ************ Well isn't THAT just wonderful? I now know that it can be done with EM. I have gone in to EM, to the properties window, security tab. I tell it SQL Server and Windows. I tell it to start and run SQL Server using Administrator and the password. I close and restart (and even reboot). I switch to another computer. I try to attach a server. I give it the Administrator user name and the password (SQL Server login using information provided by the system administrator) and it fails with "Login failed for user Administrator". I don't know what else to do here. I am NOT a Database Administrator, I am a poor shmuck trying to get my systems to play. Suggestions like "set it up to use..." just don't help me. Things like "Open EM" "Click on..." "click on..." "enter..." THAT would help me. Thanks, John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ From andrew.haslett at ilc.gov.au Mon Oct 11 21:45:07 2004 From: andrew.haslett at ilc.gov.au (Haslett, Andrew) Date: Tue, 12 Oct 2004 12:15:07 +0930 Subject: [dba-SQLServer] Problems registering database Message-ID: <0A870603A2A816459078203FC07F4CD204E590@adl01s055.ilcorp.gov.au> You did it all correctly except the account isn't 'administrator', its actually just 'sa' (which stands for system administrator). So the username is actually sa and the password is what you specified. The security risks you speak of are correct, as the sa account has full rights over the entire instance of SQL Server you are using, which you often don't require - however if you were to use Windows Auth, you'd still need to set up the login and access permissions for *an* account in SQL itself for it to work. Therefore whichever way you go, you'd still have to learn about logins / roles / security etc. and from what I understand of your requirements, you don't have time to learn or master this. Therefore, the sa account is the easiest for you to setup and use, as it will require no configuration of account / security etc -> and as (I think) you're on a (relatively) isolated network with hardware, software firewall / NAT etc., the security risks are no more severe than if someone hacked into your machine anyway. Cheers, A -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Tuesday, 12 October 2004 11:30 AM To: dba-sqlserver at databaseadvisors.com Subject: LRE: [dba-SQLServer] Problems registering database Andrew, >its that you don't have permissions as its assuming you're using the >Guest account when using Windows (Integrated) Authentication. And why is it assuming that? Is there any way to specify an account? >Set it up to use SQL Authentication - specify the same password for the >sa account so that you only have to remember one, and then use these >credentials when registering servers from the other machines. I am told that SQL Authentication is a security risk for reasons unknown (to me). Besides which, >Set it up to use SQL Authentication - specify the same password for the >sa account so that you only have to remember one, and then use these >credentials when registering servers from the other machines. Is just vague enough that I haven't been able to figure this out. When I installed SQL Server it asked me what I wanted. I specified Windows login authentication. I have NO CLUE how to "set it up to" do anything. I can see where I "set up a new user" but that sure doesn't appear to be what I am after. I have searched BOL and found all kinds of stuff, but not how to go in and tell SQL Server to switch from using Windows Authentication to SQL Server Login (or both). *********** SQL Server Authentication Modes When SQL Server 2000 is running on Windows NT or Windows 2000, members of the sysadmin fixed server role can specify one of two authentication modes: Windows Authentication Mode Only Windows Authentication is allowed. Users cannot specify a SQL Server 2000 login ID. This is the default authentication mode for SQL Server 2000. You cannot specify Windows Authentication Mode for an instance of SQL Server running on Windows 98, because the operating system does not support Windows Authentication. Mixed Mode If users supply a SQL Server 2000 login ID when they log on, they are authenticated using SQL Server Authentication. If they do not supply a SQL Server 2000 login ID, or request Windows Authentication, they are authenticated using Windows Authentication. These modes are specified during setup or with SQL Server Enterprise Manager. ************ Well isn't THAT just wonderful? I now know that it can be done with EM. I have gone in to EM, to the properties window, security tab. I tell it SQL Server and Windows. I tell it to start and run SQL Server using Administrator and the password. I close and restart (and even reboot). I switch to another computer. I try to attach a server. I give it the Administrator user name and the password (SQL Server login using information provided by the system administrator) and it fails with "Login failed for user Administrator". I don't know what else to do here. I am NOT a Database Administrator, I am a poor shmuck trying to get my systems to play. Suggestions like "set it up to use..." just don't help me. Things like "Open EM" "Click on..." "click on..." "enter..." THAT would help me. Thanks, John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com IMPORTANT - PLEASE READ ******************** This email and any files transmitted with it are confidential and may contain information protected by law from disclosure. If you have received this message in error, please notify the sender immediately and delete this email from your system. No warranty is given that this email or files, if attached to this email, are free from computer viruses or other defects. They are provided on the basis the user assumes all responsibility for loss, damage or consequence resulting directly or indirectly from their use, whether caused by the negligence of the sender or not. From jwcolby at colbyconsulting.com Mon Oct 11 22:42:40 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Mon, 11 Oct 2004 23:42:40 -0400 Subject: [dba-SQLServer] Problems registering database In-Reply-To: <0A870603A2A816459078203FC07F4CD204E590@adl01s055.ilcorp.gov.au> Message-ID: <000101c4b00d$8a5cd6a0$e8dafea9@ColbyM6805> Andrew, Well, halafrigginlula. On Soltek1 I tried to register Neo1 and Neo2, using sa and the password. Neo2 registered correctly, Neo1 gives me a "login failed for user sa". Likewise, on Neo1 I registered Neo2 using sa and the password. Soltek1 was already registered. My laptop ColbyM6805 registered Neo2 using sa and the password but the registration of Neo1 and Soltek failed. From my wife's machine MaryDesktop I can see all the other servers but only Neo2 registered successfully. Neo1 and Soltek1 failed with the "login failed for user sa" and M6805 failed with the infamous "guest". In fact this gets me 1/2 way there since the nVLDB physically resides on Neo2, I can now bang at it from Neo1, Soltek1, MaryDesktop and my Laptop. I am definitely thrilled at the improvement in my situation however I'm also very uneasy that I have no clue why this "X registers but Y fails" is going on. I also tried to use the property dialog of the local laptop on my laptop to set the startup service to sa and oh man what a mistake THAT was. Now I can't get the local database to login at all. It tells me the login is broken or something (so true! 8( I can't get at the property dialog, I can't start the service manager, basically I am really hosed on that machine. Which is a problem since a database for a project I am working on is on that machine. Sigh. So any ideas how do I get back in to this database? Any ideas why the sa account works on Neo2 but not on Neo1 or Soltek1? Is there any way to just look at all the accounts like you can in Windows? If I could do that I might be able to compare machine to machine and see what the heck is going on here. AFAIK I just told it the default install of SQL Server so I just don't understand why the responses are so different from machine to machine. 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 Haslett, Andrew Sent: Monday, October 11, 2004 10:45 PM To: 'dba-sqlserver at databaseadvisors.com' Subject: RE: [dba-SQLServer] Problems registering database You did it all correctly except the account isn't 'administrator', its actually just 'sa' (which stands for system administrator). So the username is actually sa and the password is what you specified. The security risks you speak of are correct, as the sa account has full rights over the entire instance of SQL Server you are using, which you often don't require - however if you were to use Windows Auth, you'd still need to set up the login and access permissions for *an* account in SQL itself for it to work. Therefore whichever way you go, you'd still have to learn about logins / roles / security etc. and from what I understand of your requirements, you don't have time to learn or master this. Therefore, the sa account is the easiest for you to setup and use, as it will require no configuration of account / security etc -> and as (I think) you're on a (relatively) isolated network with hardware, software firewall / NAT etc., the security risks are no more severe than if someone hacked into your machine anyway. Cheers, A From jwcolby at colbyconsulting.com Mon Oct 11 23:01:59 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 12 Oct 2004 00:01:59 -0400 Subject: [dba-SQLServer] Problems registering database In-Reply-To: <000101c4b00d$8a5cd6a0$e8dafea9@ColbyM6805> Message-ID: <000201c4b010$38e31cf0$e8dafea9@ColbyM6805> Well, I spoke too soon. Now Neo2 is pegging the CPU usage all the time, and EM can't even get in to it's own database (local). Or more correctly it can see the db but when I try and click on databases it just hangs with the hourglass. Which is a catastrophe! Before I could at least use Neo2 from Neo2, now I can't do anything at all. Come to think of it, it may be trying in vain to roll back a transaction or something. I had QA running an update query when I changed the login type property which forcefully shut down SQL Server. I think I'll go to bed and pray that this thing survives. 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 John W. Colby Sent: Monday, October 11, 2004 11:43 PM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer] Problems registering database Andrew, Well, halafrigginlula. On Soltek1 I tried to register Neo1 and Neo2, using sa and the password. Neo2 registered correctly, Neo1 gives me a "login failed for user sa". Likewise, on Neo1 I registered Neo2 using sa and the password. Soltek1 was already registered. My laptop ColbyM6805 registered Neo2 using sa and the password but the registration of Neo1 and Soltek failed. From my wife's machine MaryDesktop I can see all the other servers but only Neo2 registered successfully. Neo1 and Soltek1 failed with the "login failed for user sa" and M6805 failed with the infamous "guest". In fact this gets me 1/2 way there since the nVLDB physically resides on Neo2, I can now bang at it from Neo1, Soltek1, MaryDesktop and my Laptop. I am definitely thrilled at the improvement in my situation however I'm also very uneasy that I have no clue why this "X registers but Y fails" is going on. I also tried to use the property dialog of the local laptop on my laptop to set the startup service to sa and oh man what a mistake THAT was. Now I can't get the local database to login at all. It tells me the login is broken or something (so true! 8( I can't get at the property dialog, I can't start the service manager, basically I am really hosed on that machine. Which is a problem since a database for a project I am working on is on that machine. Sigh. So any ideas how do I get back in to this database? Any ideas why the sa account works on Neo2 but not on Neo1 or Soltek1? Is there any way to just look at all the accounts like you can in Windows? If I could do that I might be able to compare machine to machine and see what the heck is going on here. AFAIK I just told it the default install of SQL Server so I just don't understand why the responses are so different from machine to machine. 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 Haslett, Andrew Sent: Monday, October 11, 2004 10:45 PM To: 'dba-sqlserver at databaseadvisors.com' Subject: RE: [dba-SQLServer] Problems registering database You did it all correctly except the account isn't 'administrator', its actually just 'sa' (which stands for system administrator). So the username is actually sa and the password is what you specified. The security risks you speak of are correct, as the sa account has full rights over the entire instance of SQL Server you are using, which you often don't require - however if you were to use Windows Auth, you'd still need to set up the login and access permissions for *an* account in SQL itself for it to work. Therefore whichever way you go, you'd still have to learn about logins / roles / security etc. and from what I understand of your requirements, you don't have time to learn or master this. Therefore, the sa account is the easiest for you to setup and use, as it will require no configuration of account / security etc -> and as (I think) you're on a (relatively) isolated network with hardware, software firewall / NAT etc., the security risks are no more severe than if someone hacked into your machine anyway. Cheers, A _______________________________________________ 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 Mon Oct 11 23:43:56 2004 From: ebarro at afsweb.com (Eric Barro) Date: Mon, 11 Oct 2004 21:43:56 -0700 Subject: [dba-SQLServer] Problems registering database In-Reply-To: <000201c4b010$38e31cf0$e8dafea9@ColbyM6805> Message-ID: John, Here's a stab in the dark... Check to see what Windows account SQL server and SQL server agent is running on for each machine. By default it assumes that you will be running it under the Administrator account for that machine unless you change it. If it is running under a different account then you will need to make sure that the account it is running in has the correct rights and privileges for SQL server to function properly. By default the Administrators group is included as a login in SQL server. It is called BUILTIN/Administrators when you look in the Security section (Login) in EM. I'm guessing that part of your problem stems from the fact that you don't have synchronized accounts on all the machines. If you ensure that all the Administrator logins in all your Windows machines that are running SQL server are the same then you should technically have no problems. If you are using a different account to run SQL server you will need to make sure that you are using the same account on all machines and that account has the same rights and privileges to run SQL server. Bottom line is...synchronize all the accounts that run SQL server on all machines. -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Monday, October 11, 2004 9:02 PM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer] Problems registering database Well, I spoke too soon. Now Neo2 is pegging the CPU usage all the time, and EM can't even get in to it's own database (local). Or more correctly it can see the db but when I try and click on databases it just hangs with the hourglass. Which is a catastrophe! Before I could at least use Neo2 from Neo2, now I can't do anything at all. Come to think of it, it may be trying in vain to roll back a transaction or something. I had QA running an update query when I changed the login type property which forcefully shut down SQL Server. I think I'll go to bed and pray that this thing survives. 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 John W. Colby Sent: Monday, October 11, 2004 11:43 PM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer] Problems registering database Andrew, Well, halafrigginlula. On Soltek1 I tried to register Neo1 and Neo2, using sa and the password. Neo2 registered correctly, Neo1 gives me a "login failed for user sa". Likewise, on Neo1 I registered Neo2 using sa and the password. Soltek1 was already registered. My laptop ColbyM6805 registered Neo2 using sa and the password but the registration of Neo1 and Soltek failed. From my wife's machine MaryDesktop I can see all the other servers but only Neo2 registered successfully. Neo1 and Soltek1 failed with the "login failed for user sa" and M6805 failed with the infamous "guest". In fact this gets me 1/2 way there since the nVLDB physically resides on Neo2, I can now bang at it from Neo1, Soltek1, MaryDesktop and my Laptop. I am definitely thrilled at the improvement in my situation however I'm also very uneasy that I have no clue why this "X registers but Y fails" is going on. I also tried to use the property dialog of the local laptop on my laptop to set the startup service to sa and oh man what a mistake THAT was. Now I can't get the local database to login at all. It tells me the login is broken or something (so true! 8( I can't get at the property dialog, I can't start the service manager, basically I am really hosed on that machine. Which is a problem since a database for a project I am working on is on that machine. Sigh. So any ideas how do I get back in to this database? Any ideas why the sa account works on Neo2 but not on Neo1 or Soltek1? Is there any way to just look at all the accounts like you can in Windows? If I could do that I might be able to compare machine to machine and see what the heck is going on here. AFAIK I just told it the default install of SQL Server so I just don't understand why the responses are so different from machine to machine. 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 Haslett, Andrew Sent: Monday, October 11, 2004 10:45 PM To: 'dba-sqlserver at databaseadvisors.com' Subject: RE: [dba-SQLServer] Problems registering database You did it all correctly except the account isn't 'administrator', its actually just 'sa' (which stands for system administrator). So the username is actually sa and the password is what you specified. The security risks you speak of are correct, as the sa account has full rights over the entire instance of SQL Server you are using, which you often don't require - however if you were to use Windows Auth, you'd still need to set up the login and access permissions for *an* account in SQL itself for it to work. Therefore whichever way you go, you'd still have to learn about logins / roles / security etc. and from what I understand of your requirements, you don't have time to learn or master this. Therefore, the sa account is the easiest for you to setup and use, as it will require no configuration of account / security etc -> and as (I think) you're on a (relatively) isolated network with hardware, software firewall / NAT etc., the security risks are no more severe than if someone hacked into your machine anyway. Cheers, A _______________________________________________ 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 andrew.haslett at ilc.gov.au Tue Oct 12 00:19:18 2004 From: andrew.haslett at ilc.gov.au (Haslett, Andrew) Date: Tue, 12 Oct 2004 14:49:18 +0930 Subject: [dba-SQLServer] Problems registering database Message-ID: <0A870603A2A816459078203FC07F4CD204E591@adl01s055.ilcorp.gov.au> Quick overview of both the Authentication methods: * SQL Authentication: Standard username and password access. This means the username (login) must be created within SQL Server and given appropriate rights. You must specify a username and password when you try to connect to SQL. * Windows Authentication: Simplistically, your current Windows account credentials (username and password of the account you logged into Windows with) are basically passed to SQL Server in the background. This account also needs to be given the appropriate access within SQL Server itself. You therefore don't specify any username and password yourself when connecting. By Default the SQL Account (SA) and the Windows Accounts (Local Administrators Group) are given access, as well as a few others. >> I also tried to use the property dialog of the local laptop on my laptop >> to set the startup service to sa and oh man what a mistake THAT was. Unless running in a domain environment, the account that the MSSQLSERVICE service runs under (from services.msc) shouldn't really need to be anything else except the default ('Local System'). This account needs to have certain rights on the machine such as registry / file permissions that are set up when SQL is installed, so changing this to sa will stuff it up, since there is no such Windows User as 'SA'. If you are able to stop the service, change the account it runs under back to local system (through services.msc), and restart the service, you *should* be OK. When a SQL Instance is set to SQL Authentication, you should still be able to register/login to EM using Windows Authentication. This means if you are logged onto your machine using any account with local admin rights, you should be able to connect to the instance through EM using Windows Authentication. (An Instance set to SQL Authentication allows both Windows and SQL Authentication.) If that doesn't work you should be able to specify the SA username and password when connecting through EM. As for your other issues, if you're certain you changed all your instances to SQL Authentication (restarted the service) and know the password, then I can only this there's some type of DNS issue. Perhaps try the IP address instead? A -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Tuesday, 12 October 2004 1:32 PM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer] Problems registering database Well, I spoke too soon. Now Neo2 is pegging the CPU usage all the time, and EM can't even get in to it's own database (local). Or more correctly it can see the db but when I try and click on databases it just hangs with the hourglass. Which is a catastrophe! Before I could at least use Neo2 from Neo2, now I can't do anything at all. Come to think of it, it may be trying in vain to roll back a transaction or something. I had QA running an update query when I changed the login type property which forcefully shut down SQL Server. I think I'll go to bed and pray that this thing survives. 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 John W. Colby Sent: Monday, October 11, 2004 11:43 PM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer] Problems registering database Andrew, Well, halafrigginlula. On Soltek1 I tried to register Neo1 and Neo2, using sa and the password. Neo2 registered correctly, Neo1 gives me a "login failed for user sa". Likewise, on Neo1 I registered Neo2 using sa and the password. Soltek1 was already registered. My laptop ColbyM6805 registered Neo2 using sa and the password but the registration of Neo1 and Soltek failed. From my wife's machine MaryDesktop I can see all the other servers but only Neo2 registered successfully. Neo1 and Soltek1 failed with the "login failed for user sa" and M6805 failed with the infamous "guest". In fact this gets me 1/2 way there since the nVLDB physically resides on Neo2, I can now bang at it from Neo1, Soltek1, MaryDesktop and my Laptop. I am definitely thrilled at the improvement in my situation however I'm also very uneasy that I have no clue why this "X registers but Y fails" is going on. I also tried to use the property dialog of the local laptop on my laptop to set the startup service to sa and oh man what a mistake THAT was. Now I can't get the local database to login at all. It tells me the login is broken or something (so true! 8( I can't get at the property dialog, I can't start the service manager, basically I am really hosed on that machine. Which is a problem since a database for a project I am working on is on that machine. Sigh. So any ideas how do I get back in to this database? Any ideas why the sa account works on Neo2 but not on Neo1 or Soltek1? Is there any way to just look at all the accounts like you can in Windows? If I could do that I might be able to compare machine to machine and see what the heck is going on here. AFAIK I just told it the default install of SQL Server so I just don't understand why the responses are so different from machine to machine. 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 Haslett, Andrew Sent: Monday, October 11, 2004 10:45 PM To: 'dba-sqlserver at databaseadvisors.com' Subject: RE: [dba-SQLServer] Problems registering database You did it all correctly except the account isn't 'administrator', its actually just 'sa' (which stands for system administrator). So the username is actually sa and the password is what you specified. The security risks you speak of are correct, as the sa account has full rights over the entire instance of SQL Server you are using, which you often don't require - however if you were to use Windows Auth, you'd still need to set up the login and access permissions for *an* account in SQL itself for it to work. Therefore whichever way you go, you'd still have to learn about logins / roles / security etc. and from what I understand of your requirements, you don't have time to learn or master this. Therefore, the sa account is the easiest for you to setup and use, as it will require no configuration of account / security etc -> and as (I think) you're on a (relatively) isolated network with hardware, software firewall / NAT etc., the security risks are no more severe than if someone hacked into your machine anyway. Cheers, A _______________________________________________ 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 IMPORTANT - PLEASE READ ******************** This email and any files transmitted with it are confidential and may contain information protected by law from disclosure. If you have received this message in error, please notify the sender immediately and delete this email from your system. No warranty is given that this email or files, if attached to this email, are free from computer viruses or other defects. They are provided on the basis the user assumes all responsibility for loss, damage or consequence resulting directly or indirectly from their use, whether caused by the negligence of the sender or not. From martyconnelly at shaw.ca Wed Oct 13 02:14:16 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 13 Oct 2004 00:14:16 -0700 Subject: [dba-SQLServer] Problems registering database References: <0A870603A2A816459078203FC07F4CD204E591@adl01s055.ilcorp.gov.au> Message-ID: <416CD5C8.7020606@shaw.ca> Came across this introductory article complete with sample Access 97 and 2000 mdb's that some may find useful for SQL Server or MSDE. Reguires "pub" test SQL database be installed. How to Execute SQL Stored Procedures from Microsoft Access The simplicity and popularity of SQL Server means that more and more developers who build applications with Microsoft Access will want to learn how to take advantage of server side processing using SQL Server Stored Procedures. In this article, Danny Lesandrini demonstrates a simple method for executing procedures from Access 97 and Access 2000. This method uses SQL server password authentication rather than windows. http://nl.internet.com/ct.html?rtr=on&s=1,14m8,1,aef3,djrw,dbyg,2122 Haslett, Andrew wrote: >Quick overview of both the Authentication methods: > >* SQL Authentication: Standard username and password access. This means >the username (login) must be created within SQL Server and given appropriate >rights. You must specify a username and password when you try to connect to >SQL. > >* Windows Authentication: Simplistically, your current Windows account >credentials (username and password of the account you logged into Windows >with) are basically passed to SQL Server in the background. This account >also needs to be given the appropriate access within SQL Server itself. You >therefore don't specify any username and password yourself when connecting. > >By Default the SQL Account (SA) and the Windows Accounts (Local >Administrators Group) are given access, as well as a few others. > > > > >>>I also tried to use the property dialog of the local laptop on my laptop >>>to set the startup service to sa and oh man what a mistake THAT was. >>> >>> > >Unless running in a domain environment, the account that the MSSQLSERVICE >service runs under (from services.msc) shouldn't really need to be anything >else except the default ('Local System'). This account needs to have >certain rights on the machine such as registry / file permissions that are >set up when SQL is installed, so changing this to sa will stuff it up, since >there is no such Windows User as 'SA'. > >If you are able to stop the service, change the account it runs under back >to local system (through services.msc), and restart the service, you >*should* be OK. > >When a SQL Instance is set to SQL Authentication, you should still be able >to register/login to EM using Windows Authentication. This means if you are >logged onto your machine using any account with local admin rights, you >should be able to connect to the instance through EM using Windows >Authentication. (An Instance set to SQL Authentication allows both Windows >and SQL Authentication.) > >If that doesn't work you should be able to specify the SA username and >password when connecting through EM. > >As for your other issues, if you're certain you changed all your instances >to SQL Authentication (restarted the service) and know the password, then I >can only this there's some type of DNS issue. Perhaps try the IP address >instead? > >A > >-----Original Message----- >From: John W. Colby [mailto:jwcolby at colbyconsulting.com] >Sent: Tuesday, 12 October 2004 1:32 PM >To: dba-sqlserver at databaseadvisors.com >Subject: RE: [dba-SQLServer] Problems registering database > >Well, I spoke too soon. Now Neo2 is pegging the CPU usage all the time, and >EM can't even get in to it's own database (local). Or more correctly it can >see the db but when I try and click on databases it just hangs with the >hourglass. Which is a catastrophe! Before I could at least use Neo2 from >Neo2, now I can't do anything at all. > >Come to think of it, it may be trying in vain to roll back a transaction or >something. I had QA running an update query when I changed the login type >property which forcefully shut down SQL Server. > >I think I'll go to bed and pray that this thing survives. > >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 John W. >Colby >Sent: Monday, October 11, 2004 11:43 PM >To: dba-sqlserver at databaseadvisors.com >Subject: RE: [dba-SQLServer] Problems registering database > > >Andrew, > >Well, halafrigginlula. On Soltek1 I tried to register Neo1 and Neo2, using >sa and the password. Neo2 registered correctly, Neo1 gives me a "login >failed for user sa". Likewise, on Neo1 I registered Neo2 using sa and the >password. Soltek1 was already registered. My laptop ColbyM6805 registered >Neo2 using sa and the password but the registration of Neo1 and Soltek >failed. From my wife's machine MaryDesktop I can see all the other servers >but only Neo2 registered successfully. Neo1 and Soltek1 failed with the >"login failed for user sa" and M6805 failed with the infamous "guest". > >In fact this gets me 1/2 way there since the nVLDB physically resides on >Neo2, I can now bang at it from Neo1, Soltek1, MaryDesktop and my Laptop. I >am definitely thrilled at the improvement in my situation however I'm also >very uneasy that I have no clue why this "X registers but Y fails" is going >on. > >I also tried to use the property dialog of the local laptop on my laptop to >set the startup service to sa and oh man what a mistake THAT was. Now I >can't get the local database to login at all. It tells me the login is >broken or something (so true! 8( > >I can't get at the property dialog, I can't start the service manager, >basically I am really hosed on that machine. Which is a problem since a >database for a project I am working on is on that machine. Sigh. > >So any ideas how do I get back in to this database? > >Any ideas why the sa account works on Neo2 but not on Neo1 or Soltek1? > >Is there any way to just look at all the accounts like you can in Windows? >If I could do that I might be able to compare machine to machine and see >what the heck is going on here. AFAIK I just told it the default install of >SQL Server so I just don't understand why the responses are so different >from machine to machine. > >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 Haslett, >Andrew >Sent: Monday, October 11, 2004 10:45 PM >To: 'dba-sqlserver at databaseadvisors.com' >Subject: RE: [dba-SQLServer] Problems registering database > > >You did it all correctly except the account isn't 'administrator', its >actually just 'sa' (which stands for system administrator). So the username >is actually sa and the password is what you specified. > >The security risks you speak of are correct, as the sa account has full >rights over the entire instance of SQL Server you are using, which you often >don't require - however if you were to use Windows Auth, you'd still need to >set up the login and access permissions for *an* account in SQL itself for >it to work. > >Therefore whichever way you go, you'd still have to learn about logins / >roles / security etc. and from what I understand of your requirements, you >don't have time to learn or master this. > >Therefore, the sa account is the easiest for you to setup and use, as it >will require no configuration of account / security etc -> and as (I think) >you're on a (relatively) isolated network with hardware, software firewall / >NAT etc., the security risks are no more severe than if someone hacked into >your machine anyway. > >Cheers, >A > > >_______________________________________________ >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 > >IMPORTANT - PLEASE READ ******************** >This email and any files transmitted with it are confidential and may >contain information protected by law from disclosure. >If you have received this message in error, please notify the sender >immediately and delete this email from your system. >No warranty is given that this email or files, if attached to this >email, are free from computer viruses or other defects. They >are provided on the basis the user assumes all responsibility for >loss, damage or consequence resulting directly or indirectly from >their use, whether caused by the negligence of the sender or not. >_______________________________________________ >dba-SQLServer mailing list >dba-SQLServer at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-sqlserver >http://www.databaseadvisors.com > > > > -- Marty Connelly Victoria, B.C. Canada From andy at minstersystems.co.uk Thu Oct 14 02:34:39 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 14 Oct 2004 08:34:39 +0100 Subject: [dba-SQLServer] Parent Child and GUIDs In-Reply-To: <416CD5C8.7020606@shaw.ca> Message-ID: <000001c4b1c0$4343f1e0$b274d0d5@minster33c3r25> Hi If a SQL Server parent table has a GUID as its unique key, and I want to link an Access child to it, can I? and if so what data type do I give the linking key field in the child table? I want this to work for a form/subform affair using LinkMaster and LinkChild. -- Andy Lacey http://www.minstersystems.co.uk From fhtapia at gmail.com Thu Oct 14 10:30:48 2004 From: fhtapia at gmail.com (Francisco Tapia) Date: Thu, 14 Oct 2004 08:30:48 -0700 Subject: [dba-SQLServer] Parent Child and GUIDs In-Reply-To: <000001c4b1c0$4343f1e0$b274d0d5@minster33c3r25> References: <416CD5C8.7020606@shaw.ca> <000001c4b1c0$4343f1e0$b274d0d5@minster33c3r25> Message-ID: iirc, Access 2000 and later have a guid data type. On Thu, 14 Oct 2004 08:34:39 +0100, Andy Lacey wrote: > Hi > If a SQL Server parent table has a GUID as its unique key, and I want to > link an Access child to it, can I? and if so what data type do I give the > linking key field in the child table? I want this to work for a form/subform > affair using LinkMaster and LinkChild. > > -- Andy Lacey > http://www.minstersystems.co.uk > > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > > -- -Francisco Pc This! pc news with out the jargon From CMackin at quiznos.com Thu Oct 14 11:25:28 2004 From: CMackin at quiznos.com (Mackin, Christopher) Date: Thu, 14 Oct 2004 10:25:28 -0600 Subject: [dba-SQLServer] Parent Child and GUIDs Message-ID: I have done this via converting the GUID to a string and linking. There may be more elegant solutions but this was quick and effective for the small app I was working at the time. -Chris Mackin -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com]On Behalf Of Francisco Tapia Sent: Thursday, October 14, 2004 9:31 AM To: dba-sqlserver at databaseadvisors.com Subject: Re: [dba-SQLServer] Parent Child and GUIDs iirc, Access 2000 and later have a guid data type. On Thu, 14 Oct 2004 08:34:39 +0100, Andy Lacey wrote: > Hi > If a SQL Server parent table has a GUID as its unique key, and I want to > link an Access child to it, can I? and if so what data type do I give the > linking key field in the child table? I want this to work for a form/subform > affair using LinkMaster and LinkChild. > > -- Andy Lacey > http://www.minstersystems.co.uk > > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > > -- -Francisco Pc This! pc news with out the jargon _______________________________________________ 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 Thu Oct 14 12:06:50 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 14 Oct 2004 18:06:50 +0100 Subject: [dba-SQLServer] Parent Child and GUIDs In-Reply-To: Message-ID: <000601c4b210$3293bba0$b274d0d5@minster33c3r25> Looked in AXP and don't see it. -- 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 Francisco Tapia > Sent: 14 October 2004 16:31 > To: dba-sqlserver at databaseadvisors.com > Subject: Re: [dba-SQLServer] Parent Child and GUIDs > > > iirc, Access 2000 and later have a guid data type. > > > On Thu, 14 Oct 2004 08:34:39 +0100, Andy Lacey > wrote: > > Hi > > If a SQL Server parent table has a GUID as its unique key, > and I want > > to link an Access child to it, can I? and if so what data type do I > > give the linking key field in the child table? I want this > to work for > > a form/subform affair using LinkMaster and LinkChild. > > > > -- Andy Lacey > > http://www.minstersystems.co.uk > > > > _______________________________________________ > > dba-SQLServer mailing list > > dba-SQLServer at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > > http://www.databaseadvisors.com > > > > > > > -- > -Francisco > Pc This! pc news with > out the jargon _______________________________________________ > 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 Oct 14 12:23:24 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 14 Oct 2004 10:23:24 -0700 Subject: [dba-SQLServer] Parent Child and GUIDs Message-ID: You can set an autonumber to produce GUIDs by making it a replicationID type. But GUIDs are a weird combination that amounts to an array, so the only success I've had with them in converting them back and forth to strings for comparison using StringFromGUID and GUIDFromString. DAO supports a dbGUID datatype enum Charlotte Foust -----Original Message----- From: Andy Lacey [mailto:andy at minstersystems.co.uk] Sent: Thursday, October 14, 2004 10:07 AM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer] Parent Child and GUIDs Looked in AXP and don't see it. -- 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 Francisco Tapia > Sent: 14 October 2004 16:31 > To: dba-sqlserver at databaseadvisors.com > Subject: Re: [dba-SQLServer] Parent Child and GUIDs > > > iirc, Access 2000 and later have a guid data type. > > > On Thu, 14 Oct 2004 08:34:39 +0100, Andy Lacey > wrote: > > Hi > > If a SQL Server parent table has a GUID as its unique key, > and I want > > to link an Access child to it, can I? and if so what data type do I > > give the linking key field in the child table? I want this > to work for > > a form/subform affair using LinkMaster and LinkChild. > > > > -- Andy Lacey > > http://www.minstersystems.co.uk > > > > _______________________________________________ > > dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > > http://www.databaseadvisors.com > > > > > > > -- > -Francisco > Pc This! pc news with > out the jargon _______________________________________________ > 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 Thu Oct 14 16:56:40 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 15 Oct 2004 07:56:40 +1000 Subject: [dba-SQLServer] Parent Child and GUIDs In-Reply-To: <000001c4b1c0$4343f1e0$b274d0d5@minster33c3r25> References: <416CD5C8.7020606@shaw.ca> Message-ID: <416F82B8.24673.46FEEB4@lexacorp.com.pg> On 14 Oct 2004 at 8:34, Andy Lacey wrote: > Hi > If a SQL Server parent table has a GUID as its unique key, and I want to > link an Access child to it, can I? and if so what data type do I give the > linking key field in the child table? I want this to work for a form/subform > affair using LinkMaster and LinkChild. > Access calls GUIDs "ReplicationID"s. They are stored as a 128 bit (16 byte) number. Set the "Data type" of the Access field to "Number". Set the "Field size" of the number to 'ReplicationID". -- Stuart From andy at minstersystems.co.uk Fri Oct 15 01:25:50 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Fri, 15 Oct 2004 07:25:50 +0100 Subject: [dba-SQLServer] Parent Child and GUIDs In-Reply-To: <416F82B8.24673.46FEEB4@lexacorp.com.pg> Message-ID: <001001c4b27f$d0c8ae60$b274d0d5@minster33c3r25> Got it. Terrific. Thanks Stuart. -- 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 Stuart McLachlan > Sent: 14 October 2004 22:57 > To: dba-sqlserver at databaseadvisors.com > Subject: Re: [dba-SQLServer] Parent Child and GUIDs > > > On 14 Oct 2004 at 8:34, Andy Lacey wrote: > > > Hi > > If a SQL Server parent table has a GUID as its unique key, > and I want > > to link an Access child to it, can I? and if so what data type do I > > give the linking key field in the child table? I want this > to work for > > a form/subform affair using LinkMaster and LinkChild. > > > > Access calls GUIDs "ReplicationID"s. They are stored as a 128 > bit (16 byte) > number. > > Set the "Data type" of the Access field to "Number". Set the > "Field size" > of the number to 'ReplicationID". > > > > -- > Stuart > > > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > > > From kens.programming at verizon.net Mon Oct 18 17:15:10 2004 From: kens.programming at verizon.net (Ken Stoker) Date: Mon, 18 Oct 2004 15:15:10 -0700 Subject: [dba-SQLServer] Check for an error in a script Message-ID: <20041018221411.LDKJ23519.out001.verizon.net@enterprise> Does anyone know how to test to see if an insert fails in a DTS package? I am trying to create a script that will be part of a DTS package that runs nightly, importing data from a text file into a holding area, and then the script will move the data from the holding area into the production tables. What I am trying to do is if the record won't insert because of some violation, a failure flag is flipped for that record to signify a need to be reviewed by someone. If the insert is successful, then the record is removed from the holding table. Any help is appreciated Thanks Ken From davide at dalyn.co.nz Mon Oct 18 19:20:42 2004 From: davide at dalyn.co.nz (David Emerson) Date: Tue, 19 Oct 2004 13:20:42 +1300 Subject: [dba-SQLServer] Filling Table with Range of Dates Message-ID: <6.1.2.0.0.20041019131807.019e69f0@mail.dalyn.co.nz> SQL2000 I have a table that I would like to fill in with a range of dates. Is there a simple insert statement that I can do this easily, or do I need to write a loop and run a separate insert for each date? Regards David Emerson Dalyn Software Ltd 25 Cunliffe St, Churton Park Wellington, New Zealand Ph/Fax (04) 478-7456 Mobile 027-280-9348 From tuxedo_man at hotmail.com Mon Oct 18 23:19:52 2004 From: tuxedo_man at hotmail.com (Billy Pang) Date: Tue, 19 Oct 2004 04:19:52 +0000 Subject: [dba-SQLServer] Filling Table with Range of Dates Message-ID: how about.. 1. create a temporary table that contains identity column. 2. insert one record into that temporary table. 3. execute X number of insert statements with "select" as source of the table you just created (therefore, number of records will insert by two folds per insert execution). 4. when you are satisified with number of records in temporary table, write a final insert statement containing dateadd function with identity column as one of the parameters. hth Billy >From: David Emerson >Reply-To: dba-sqlserver at databaseadvisors.com >To: dba-SQLServer at databaseadvisors.com >Subject: [dba-SQLServer] Filling Table with Range of Dates >Date: Tue, 19 Oct 2004 13:20:42 +1300 > >SQL2000 > >I have a table that I would like to fill in with a range of dates. Is >there a simple insert statement that I can do this easily, or do I need to >write a loop and run a separate insert for each date? > >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 > From davide at dalyn.co.nz Tue Oct 19 02:07:50 2004 From: davide at dalyn.co.nz (David Emerson) Date: Tue, 19 Oct 2004 20:07:50 +1300 Subject: [dba-SQLServer] Filling Table with Range of Dates In-Reply-To: References: Message-ID: <6.1.2.0.0.20041019200158.019f2c10@mail.dalyn.co.nz> That still means that I need to loop to run the insert statements. What I have done is as follows: SET @MthDate = @FirstDate WHILE @MthDate <= @LastDate BEGIN INSERT INTO egasSQLbe.dbo.ttmpWholesaleMDQ ([Date]) VALUES (@MthDate) SET @MthDate = DATEADD(day, 1, @MthDate) END I was looking to see if there was a simple way of running the insert as a single statement without the loop. Mainly academic as what I have done works. David At 19/10/2004, you wrote: >how about.. > >1. create a temporary table that contains identity column. > >2. insert one record into that temporary table. > >3. execute X number of insert statements with "select" as source of the >table you just created (therefore, number of records will insert by two >folds per insert execution). > >4. when you are satisified with number of records in temporary table, >write a final insert statement containing dateadd function with identity >column as one of the parameters. > >hth >Billy > > >>From: David Emerson >>Reply-To: dba-sqlserver at databaseadvisors.com >>To: dba-SQLServer at databaseadvisors.com >>Subject: [dba-SQLServer] Filling Table with Range of Dates >>Date: Tue, 19 Oct 2004 13:20:42 +1300 >> >>SQL2000 >> >>I have a table that I would like to fill in with a range of dates. Is >>there a simple insert statement that I can do this easily, or do I need >>to write a loop and run a separate insert for each date? >> >>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 > > >_______________________________________________ >dba-SQLServer mailing list >dba-SQLServer at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-sqlserver >http://www.databaseadvisors.com > > From DElam at jenkens.com Tue Oct 19 07:38:11 2004 From: DElam at jenkens.com (Elam, Debbie) Date: Tue, 19 Oct 2004 07:38:11 -0500 Subject: [dba-SQLServer] Check for an error in a script Message-ID: <7B1961ED924D1A459E378C9B1BB22B4C02485648@natexch.jenkens.com> Provided the server has the add ins for sending mail, you could write a send mail on failure for that step inside the DTS. Usually for testing I run the DTS manually and it will let me know if any steps failed and which ones they are. As long as they are labeled, I have been able to troubleshoot fairly easily. Debbie -----Original Message----- From: Ken Stoker [mailto:kens.programming at verizon.net] Sent: Monday, October 18, 2004 5:15 PM To: dba-sqlserver at databaseadvisors.com Subject: [dba-SQLServer] Check for an error in a script Does anyone know how to test to see if an insert fails in a DTS package? I am trying to create a script that will be part of a DTS package that runs nightly, importing data from a text file into a holding area, and then the script will move the data from the holding area into the production tables. What I am trying to do is if the record won't insert because of some violation, a failure flag is flipped for that record to signify a need to be reviewed by someone. If the insert is successful, then the record is removed from the holding table. Any help is appreciated Thanks Ken _______________________________________________ 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 tuxedo_man at hotmail.com Tue Oct 19 18:05:34 2004 From: tuxedo_man at hotmail.com (Billy Pang) Date: Tue, 19 Oct 2004 23:05:34 +0000 Subject: [dba-SQLServer] Filling Table with Range of Dates Message-ID: actually, there is no loop in my suggestion... here is what I mean... (displays the last 365 days) SET NOCOUNT ON CREATE TABLE #THE_TABLE(THE_ID SMALLINT IDENTITY(1,1), THE_VALUE CHAR(1)); INSERT INTO #THE_TABLE VALUES('X'); INSERT INTO #THE_TABLE SELECT THE_VALUE FROM #THE_TABLE; INSERT INTO #THE_TABLE SELECT TOP 363 A.THE_VALUE FROM #THE_TABLE A, #THE_TABLE B, #THE_TABLE C, #THE_TABLE D, #THE_TABLE E, #THE_TABLE F, #THE_TABLE G , #THE_TABLE H , #THE_TABLE I SELECT DATEADD(day,-the_id+1, convert(varchar(10),getdate(),101)) FROM #THE_TABLE SET NOCOUNT OFF Billy >From: David Emerson >Reply-To: dba-sqlserver at databaseadvisors.com >To: dba-sqlserver at databaseadvisors.com >Subject: RE: [dba-SQLServer] Filling Table with Range of Dates >Date: Tue, 19 Oct 2004 20:07:50 +1300 > >That still means that I need to loop to run the insert statements. > >What I have done is as follows: > > SET @MthDate = @FirstDate > WHILE @MthDate <= @LastDate > BEGIN > INSERT INTO egasSQLbe.dbo.ttmpWholesaleMDQ >([Date]) > VALUES (@MthDate) > SET @MthDate = DATEADD(day, 1, @MthDate) > END > > >I was looking to see if there was a simple way of running the insert as a >single statement without the loop. > >Mainly academic as what I have done works. > >David > >At 19/10/2004, you wrote: >>how about.. >> >>1. create a temporary table that contains identity column. >> >>2. insert one record into that temporary table. >> >>3. execute X number of insert statements with "select" as source of the >>table you just created (therefore, number of records will insert by two >>folds per insert execution). >> >>4. when you are satisified with number of records in temporary table, >>write a final insert statement containing dateadd function with identity >>column as one of the parameters. >> >>hth >>Billy >> >> >>>From: David Emerson >>>Reply-To: dba-sqlserver at databaseadvisors.com >>>To: dba-SQLServer at databaseadvisors.com >>>Subject: [dba-SQLServer] Filling Table with Range of Dates >>>Date: Tue, 19 Oct 2004 13:20:42 +1300 >>> >>>SQL2000 >>> >>>I have a table that I would like to fill in with a range of dates. Is >>>there a simple insert statement that I can do this easily, or do I need >>>to write a loop and run a separate insert for each date? >>> >>>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 >> >> >>_______________________________________________ >>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 Sun Oct 24 12:54:56 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Sun, 24 Oct 2004 10:54:56 -0700 Subject: [dba-SQLServer] SQL Server Virtual Lab for Reporting Services References: Message-ID: <417BEC70.70505@shaw.ca> Some people were asking about SQL Reporting Services Here is a 60 minute training lab with a downloadable manual. Need to register and download a control. Sometimes it is busy, limited number of seats. It walks you through basics and screens available. http://www.microsoft.com/technet/traincert/virtuallab/default.mspx -- Marty Connelly Victoria, B.C. Canada From ricknalley at nalleyweb.com Sun Oct 24 13:05:55 2004 From: ricknalley at nalleyweb.com (Rick Nalley) Date: Sun, 24 Oct 2004 13:05:55 -0500 Subject: [dba-SQLServer] SQL Server Virtual Lab for Reporting Services Message-ID: <827877563@mail.nalleyweb.com> From ricknalley at nalleyweb.com Sun Oct 24 13:07:54 2004 From: ricknalley at nalleyweb.com (Rick Nalley) Date: Sun, 24 Oct 2004 13:07:54 -0500 Subject: [dba-SQLServer] SQL Server Virtual Lab for Reporting Services Message-ID: <827877627@mail.nalleyweb.com> From ricknalley at nalleyweb.com Sun Oct 24 13:13:46 2004 From: ricknalley at nalleyweb.com (Rick Nalley) Date: Sun, 24 Oct 2004 13:13:46 -0500 Subject: [dba-SQLServer] SQL Server Virtual Lab for Reporting Services Message-ID: <827877815@mail.nalleyweb.com> From ricknalley at nalleyweb.com Sun Oct 24 13:16:51 2004 From: ricknalley at nalleyweb.com (Rick Nalley) Date: Sun, 24 Oct 2004 13:16:51 -0500 Subject: [dba-SQLServer] SQL Server Virtual Lab for Reporting Services Message-ID: <827877913@mail.nalleyweb.com> From ricknalley at nalleyweb.com Sun Oct 24 13:23:44 2004 From: ricknalley at nalleyweb.com (Rick Nalley) Date: Sun, 24 Oct 2004 13:23:44 -0500 Subject: [dba-SQLServer] SQL Server Virtual Lab for Reporting Services Message-ID: <827878134@mail.nalleyweb.com> From ricknalley at nalleyweb.com Sun Oct 24 13:25:03 2004 From: ricknalley at nalleyweb.com (Rick Nalley) Date: Sun, 24 Oct 2004 13:25:03 -0500 Subject: [dba-SQLServer] SQL Server Virtual Lab for Reporting Services Message-ID: <827878177@mail.nalleyweb.com> From ricknalley at nalleyweb.com Sun Oct 24 13:30:09 2004 From: ricknalley at nalleyweb.com (Rick Nalley) Date: Sun, 24 Oct 2004 13:30:09 -0500 Subject: [dba-SQLServer] SQL Server Virtual Lab for Reporting Services Message-ID: <827878340@mail.nalleyweb.com> From ricknalley at nalleyweb.com Sun Oct 24 13:31:59 2004 From: ricknalley at nalleyweb.com (Rick Nalley) Date: Sun, 24 Oct 2004 13:31:59 -0500 Subject: [dba-SQLServer] SQL Server Virtual Lab for Reporting Services Message-ID: <827878397@mail.nalleyweb.com> From ricknalley at nalleyweb.com Sun Oct 24 13:36:16 2004 From: ricknalley at nalleyweb.com (Rick Nalley) Date: Sun, 24 Oct 2004 13:36:16 -0500 Subject: [dba-SQLServer] SQL Server Virtual Lab for Reporting Services Message-ID: <827878536@mail.nalleyweb.com> From ricknalley at nalleyweb.com Sun Oct 24 13:42:41 2004 From: ricknalley at nalleyweb.com (Rick Nalley) Date: Sun, 24 Oct 2004 13:42:41 -0500 Subject: [dba-SQLServer] SQL Server Virtual Lab for Reporting Services Message-ID: <827878740@mail.nalleyweb.com> From ricknalley at nalleyweb.com Sun Oct 24 13:51:22 2004 From: ricknalley at nalleyweb.com (Rick Nalley) Date: Sun, 24 Oct 2004 13:51:22 -0500 Subject: [dba-SQLServer] SQL Server Virtual Lab for Reporting Services Message-ID: <827879019@mail.nalleyweb.com> From ricknalley at nalleyweb.com Sun Oct 24 13:52:30 2004 From: ricknalley at nalleyweb.com (Rick Nalley) Date: Sun, 24 Oct 2004 13:52:30 -0500 Subject: [dba-SQLServer] SQL Server Virtual Lab for Reporting Services Message-ID: <827879055@mail.nalleyweb.com> From ricknalley at nalleyweb.com Sun Oct 24 14:02:21 2004 From: ricknalley at nalleyweb.com (Rick Nalley) Date: Sun, 24 Oct 2004 14:02:21 -0500 Subject: [dba-SQLServer] SQL Server Virtual Lab for Reporting Services Message-ID: <827879498@mail.nalleyweb.com> From ricknalley at nalleyweb.com Sun Oct 24 14:04:24 2004 From: ricknalley at nalleyweb.com (Rick Nalley) Date: Sun, 24 Oct 2004 14:04:24 -0500 Subject: [dba-SQLServer] SQL Server Virtual Lab for Reporting Services Message-ID: <827879564@mail.nalleyweb.com> From ricknalley at nalleyweb.com Sun Oct 24 14:09:05 2004 From: ricknalley at nalleyweb.com (Rick Nalley) Date: Sun, 24 Oct 2004 14:09:05 -0500 Subject: [dba-SQLServer] SQL Server Virtual Lab for Reporting Services Message-ID: <827879714@mail.nalleyweb.com> From ricknalley at nalleyweb.com Sun Oct 24 14:10:58 2004 From: ricknalley at nalleyweb.com (Rick Nalley) Date: Sun, 24 Oct 2004 14:10:58 -0500 Subject: [dba-SQLServer] SQL Server Virtual Lab for Reporting Services Message-ID: <827879773@mail.nalleyweb.com> From ricknalley at nalleyweb.com Sun Oct 24 14:14:11 2004 From: ricknalley at nalleyweb.com (Rick Nalley) Date: Sun, 24 Oct 2004 14:14:11 -0500 Subject: [dba-SQLServer] SQL Server Virtual Lab for Reporting Services Message-ID: <827879877@mail.nalleyweb.com> From ricknalley at nalleyweb.com Sun Oct 24 14:17:49 2004 From: ricknalley at nalleyweb.com (Rick Nalley) Date: Sun, 24 Oct 2004 14:17:49 -0500 Subject: [dba-SQLServer] SQL Server Virtual Lab for Reporting Services Message-ID: <827879992@mail.nalleyweb.com> From ricknalley at nalleyweb.com Sun Oct 24 14:21:13 2004 From: ricknalley at nalleyweb.com (Rick Nalley) Date: Sun, 24 Oct 2004 14:21:13 -0500 Subject: [dba-SQLServer] SQL Server Virtual Lab for Reporting Services Message-ID: <827880102@mail.nalleyweb.com> From ricknalley at nalleyweb.com Sun Oct 24 14:25:35 2004 From: ricknalley at nalleyweb.com (Rick Nalley) Date: Sun, 24 Oct 2004 14:25:35 -0500 Subject: [dba-SQLServer] SQL Server Virtual Lab for Reporting Services Message-ID: <827880241@mail.nalleyweb.com> From ricknalley at nalleyweb.com Sun Oct 24 14:31:14 2004 From: ricknalley at nalleyweb.com (Rick Nalley) Date: Sun, 24 Oct 2004 14:31:14 -0500 Subject: [dba-SQLServer] SQL Server Virtual Lab for Reporting Services Message-ID: <827880423@mail.nalleyweb.com> From ricknalley at nalleyweb.com Sun Oct 24 14:35:06 2004 From: ricknalley at nalleyweb.com (Rick Nalley) Date: Sun, 24 Oct 2004 14:35:06 -0500 Subject: [dba-SQLServer] SQL Server Virtual Lab for Reporting Services Message-ID: <827880547@mail.nalleyweb.com> From ricknalley at nalleyweb.com Sun Oct 24 14:38:58 2004 From: ricknalley at nalleyweb.com (Rick Nalley) Date: Sun, 24 Oct 2004 14:38:58 -0500 Subject: [dba-SQLServer] SQL Server Virtual Lab for Reporting Services Message-ID: <827880669@mail.nalleyweb.com> From ricknalley at nalleyweb.com Sun Oct 24 14:40:47 2004 From: ricknalley at nalleyweb.com (Rick Nalley) Date: Sun, 24 Oct 2004 14:40:47 -0500 Subject: [dba-SQLServer] SQL Server Virtual Lab for Reporting Services Message-ID: <827880727@mail.nalleyweb.com> From ricknalley at nalleyweb.com Sun Oct 24 14:44:20 2004 From: ricknalley at nalleyweb.com (Rick Nalley) Date: Sun, 24 Oct 2004 14:44:20 -0500 Subject: [dba-SQLServer] SQL Server Virtual Lab for Reporting Services Message-ID: <827880842@mail.nalleyweb.com> From ricknalley at nalleyweb.com Sun Oct 24 14:48:31 2004 From: ricknalley at nalleyweb.com (Rick Nalley) Date: Sun, 24 Oct 2004 14:48:31 -0500 Subject: [dba-SQLServer] SQL Server Virtual Lab for Reporting Services Message-ID: <827880975@mail.nalleyweb.com> From ricknalley at nalleyweb.com Sun Oct 24 14:56:00 2004 From: ricknalley at nalleyweb.com (Rick Nalley) Date: Sun, 24 Oct 2004 14:56:00 -0500 Subject: [dba-SQLServer] SQL Server Virtual Lab for Reporting Services Message-ID: <827881216@mail.nalleyweb.com> From ricknalley at nalleyweb.com Sun Oct 24 14:59:10 2004 From: ricknalley at nalleyweb.com (Rick Nalley) Date: Sun, 24 Oct 2004 14:59:10 -0500 Subject: [dba-SQLServer] SQL Server Virtual Lab for Reporting Services Message-ID: <827881317@mail.nalleyweb.com> From ricknalley at nalleyweb.com Sun Oct 24 15:01:30 2004 From: ricknalley at nalleyweb.com (Rick Nalley) Date: Sun, 24 Oct 2004 15:01:30 -0500 Subject: [dba-SQLServer] SQL Server Virtual Lab for Reporting Services Message-ID: <827881519@mail.nalleyweb.com> From ricknalley at nalleyweb.com Sun Oct 24 15:07:20 2004 From: ricknalley at nalleyweb.com (Rick Nalley) Date: Sun, 24 Oct 2004 15:07:20 -0500 Subject: [dba-SQLServer] SQL Server Virtual Lab for Reporting Services Message-ID: <827881706@mail.nalleyweb.com> From ricknalley at nalleyweb.com Sun Oct 24 15:09:36 2004 From: ricknalley at nalleyweb.com (Rick Nalley) Date: Sun, 24 Oct 2004 15:09:36 -0500 Subject: [dba-SQLServer] SQL Server Virtual Lab for Reporting Services Message-ID: <827881778@mail.nalleyweb.com> From ricknalley at nalleyweb.com Sun Oct 24 15:13:35 2004 From: ricknalley at nalleyweb.com (Rick Nalley) Date: Sun, 24 Oct 2004 15:13:35 -0500 Subject: [dba-SQLServer] SQL Server Virtual Lab for Reporting Services Message-ID: <827881905@mail.nalleyweb.com> From ricknalley at nalleyweb.com Sun Oct 24 15:16:45 2004 From: ricknalley at nalleyweb.com (Rick Nalley) Date: Sun, 24 Oct 2004 15:16:45 -0500 Subject: [dba-SQLServer] SQL Server Virtual Lab for Reporting Services Message-ID: <827882006@mail.nalleyweb.com> From ricknalley at nalleyweb.com Sun Oct 24 15:19:28 2004 From: ricknalley at nalleyweb.com (Rick Nalley) Date: Sun, 24 Oct 2004 15:19:28 -0500 Subject: [dba-SQLServer] SQL Server Virtual Lab for Reporting Services Message-ID: <827882094@mail.nalleyweb.com> From ricknalley at nalleyweb.com Sun Oct 24 15:23:06 2004 From: ricknalley at nalleyweb.com (Rick Nalley) Date: Sun, 24 Oct 2004 15:23:06 -0500 Subject: [dba-SQLServer] SQL Server Virtual Lab for Reporting Services Message-ID: <827882211@mail.nalleyweb.com> From ricknalley at nalleyweb.com Sun Oct 24 15:26:06 2004 From: ricknalley at nalleyweb.com (Rick Nalley) Date: Sun, 24 Oct 2004 15:26:06 -0500 Subject: [dba-SQLServer] SQL Server Virtual Lab for Reporting Services Message-ID: <827882307@mail.nalleyweb.com> From ricknalley at nalleyweb.com Sun Oct 24 15:32:39 2004 From: ricknalley at nalleyweb.com (Rick Nalley) Date: Sun, 24 Oct 2004 15:32:39 -0500 Subject: [dba-SQLServer] SQL Server Virtual Lab for Reporting Services Message-ID: <827882515@mail.nalleyweb.com> From ricknalley at nalleyweb.com Sun Oct 24 15:40:06 2004 From: ricknalley at nalleyweb.com (Rick Nalley) Date: Sun, 24 Oct 2004 15:40:06 -0500 Subject: [dba-SQLServer] SQL Server Virtual Lab for Reporting Services Message-ID: <827882755@mail.nalleyweb.com> From ricknalley at nalleyweb.com Sun Oct 24 15:44:04 2004 From: ricknalley at nalleyweb.com (Rick Nalley) Date: Sun, 24 Oct 2004 15:44:04 -0500 Subject: [dba-SQLServer] SQL Server Virtual Lab for Reporting Services Message-ID: <827882882@mail.nalleyweb.com> From ricknalley at nalleyweb.com Sun Oct 24 15:46:09 2004 From: ricknalley at nalleyweb.com (Rick Nalley) Date: Sun, 24 Oct 2004 15:46:09 -0500 Subject: [dba-SQLServer] SQL Server Virtual Lab for Reporting Services Message-ID: <827882948@mail.nalleyweb.com> From ricknalley at nalleyweb.com Sun Oct 24 15:48:33 2004 From: ricknalley at nalleyweb.com (Rick Nalley) Date: Sun, 24 Oct 2004 15:48:33 -0500 Subject: [dba-SQLServer] SQL Server Virtual Lab for Reporting Services Message-ID: <827883024@mail.nalleyweb.com> From ricknalley at nalleyweb.com Sun Oct 24 15:51:47 2004 From: ricknalley at nalleyweb.com (Rick Nalley) Date: Sun, 24 Oct 2004 15:51:47 -0500 Subject: [dba-SQLServer] SQL Server Virtual Lab for Reporting Services Message-ID: <827883127@mail.nalleyweb.com> From ricknalley at nalleyweb.com Sun Oct 24 15:59:03 2004 From: ricknalley at nalleyweb.com (Rick Nalley) Date: Sun, 24 Oct 2004 15:59:03 -0500 Subject: [dba-SQLServer] SQL Server Virtual Lab for Reporting Services Message-ID: <827883361@mail.nalleyweb.com> From ricknalley at nalleyweb.com Sun Oct 24 16:01:14 2004 From: ricknalley at nalleyweb.com (Rick Nalley) Date: Sun, 24 Oct 2004 16:01:14 -0500 Subject: [dba-SQLServer] SQL Server Virtual Lab for Reporting Services Message-ID: <827883559@mail.nalleyweb.com> From ricknalley at nalleyweb.com Sun Oct 24 16:03:50 2004 From: ricknalley at nalleyweb.com (Rick Nalley) Date: Sun, 24 Oct 2004 16:03:50 -0500 Subject: [dba-SQLServer] SQL Server Virtual Lab for Reporting Services Message-ID: <827883641@mail.nalleyweb.com> From ricknalley at nalleyweb.com Sun Oct 24 16:06:36 2004 From: ricknalley at nalleyweb.com (Rick Nalley) Date: Sun, 24 Oct 2004 16:06:36 -0500 Subject: [dba-SQLServer] SQL Server Virtual Lab for Reporting Services Message-ID: <827883730@mail.nalleyweb.com> From ricknalley at nalleyweb.com Sun Oct 24 16:11:15 2004 From: ricknalley at nalleyweb.com (Rick Nalley) Date: Sun, 24 Oct 2004 16:11:15 -0500 Subject: [dba-SQLServer] SQL Server Virtual Lab for Reporting Services Message-ID: <827883879@mail.nalleyweb.com> From ricknalley at nalleyweb.com Sun Oct 24 16:17:14 2004 From: ricknalley at nalleyweb.com (Rick Nalley) Date: Sun, 24 Oct 2004 16:17:14 -0500 Subject: [dba-SQLServer] SQL Server Virtual Lab for Reporting Services Message-ID: <827884071@mail.nalleyweb.com> From ricknalley at nalleyweb.com Sun Oct 24 16:18:33 2004 From: ricknalley at nalleyweb.com (Rick Nalley) Date: Sun, 24 Oct 2004 16:18:33 -0500 Subject: [dba-SQLServer] SQL Server Virtual Lab for Reporting Services Message-ID: <827884112@mail.nalleyweb.com> From ricknalley at nalleyweb.com Sun Oct 24 16:22:04 2004 From: ricknalley at nalleyweb.com (Rick Nalley) Date: Sun, 24 Oct 2004 16:22:04 -0500 Subject: [dba-SQLServer] SQL Server Virtual Lab for Reporting Services Message-ID: <827884226@mail.nalleyweb.com> From ricknalley at nalleyweb.com Sun Oct 24 16:26:45 2004 From: ricknalley at nalleyweb.com (Rick Nalley) Date: Sun, 24 Oct 2004 16:26:45 -0500 Subject: [dba-SQLServer] SQL Server Virtual Lab for Reporting Services Message-ID: <827884374@mail.nalleyweb.com> From ricknalley at nalleyweb.com Sun Oct 24 16:28:50 2004 From: ricknalley at nalleyweb.com (Rick Nalley) Date: Sun, 24 Oct 2004 16:28:50 -0500 Subject: [dba-SQLServer] SQL Server Virtual Lab for Reporting Services Message-ID: <827884441@mail.nalleyweb.com> From ricknalley at nalleyweb.com Sun Oct 24 16:31:58 2004 From: ricknalley at nalleyweb.com (Rick Nalley) Date: Sun, 24 Oct 2004 16:31:58 -0500 Subject: [dba-SQLServer] SQL Server Virtual Lab for Reporting Services Message-ID: <827884541@mail.nalleyweb.com> From ricknalley at nalleyweb.com Sun Oct 24 16:34:38 2004 From: ricknalley at nalleyweb.com (Rick Nalley) Date: Sun, 24 Oct 2004 16:34:38 -0500 Subject: [dba-SQLServer] SQL Server Virtual Lab for Reporting Services Message-ID: <827884627@mail.nalleyweb.com> From ricknalley at nalleyweb.com Sun Oct 24 16:44:07 2004 From: ricknalley at nalleyweb.com (Rick Nalley) Date: Sun, 24 Oct 2004 16:44:07 -0500 Subject: [dba-SQLServer] SQL Server Virtual Lab for Reporting Services Message-ID: <827884931@mail.nalleyweb.com> From Jeff at OUTBAKTech.com Sun Oct 24 16:42:03 2004 From: Jeff at OUTBAKTech.com (Jeff Barrows) Date: Sun, 24 Oct 2004 16:42:03 -0500 Subject: [dba-SQLServer] (Cross Posted) Rick Nalley Message-ID: <8DA8776D2F418E46A2A464AC6CE630509377@outbaksrv1.outbaktech.com> I have received over 60 emails on the SQL list and at least 15 or so emails on the OT list all from Rick Nalley. There is nothing in these emails! Is it just me or is this happening to everyone? Jeff Barrows MCP, MCAD, MCSD Outbak Technologies, LLC Racine, WI jeff at outbaktech.com From ricknalley at nalleyweb.com Sun Oct 24 16:47:17 2004 From: ricknalley at nalleyweb.com (Rick Nalley) Date: Sun, 24 Oct 2004 16:47:17 -0500 Subject: [dba-SQLServer] SQL Server Virtual Lab for Reporting Services Message-ID: <827885032@mail.nalleyweb.com> From jmoss111 at bellsouth.net Sun Oct 24 16:47:38 2004 From: jmoss111 at bellsouth.net (JMoss) Date: Sun, 24 Oct 2004 16:47:38 -0500 Subject: [dba-SQLServer] (Cross Posted) Rick Nalley In-Reply-To: <8DA8776D2F418E46A2A464AC6CE630509377@outbaksrv1.outbaktech.com> Message-ID: Maybe his cat is playing with the keyboard.... I got em too. -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com]On Behalf Of Jeff Barrows Sent: Sunday, October 24, 2004 4:42 PM To: dba-OT; Dba-SQL Subject: [dba-SQLServer] (Cross Posted) Rick Nalley I have received over 60 emails on the SQL list and at least 15 or so emails on the OT list all from Rick Nalley. There is nothing in these emails! Is it just me or is this happening to everyone? Jeff Barrows MCP, MCAD, MCSD Outbak Technologies, LLC Racine, WI jeff at outbaktech.com _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From ricknalley at nalleyweb.com Sun Oct 24 16:52:24 2004 From: ricknalley at nalleyweb.com (Rick Nalley) Date: Sun, 24 Oct 2004 16:52:24 -0500 Subject: [dba-SQLServer] (Cross Posted) Rick Nalley Message-ID: <827885196@mail.nalleyweb.com> From ricknalley at nalleyweb.com Sun Oct 24 16:55:31 2004 From: ricknalley at nalleyweb.com (Rick Nalley) Date: Sun, 24 Oct 2004 16:55:31 -0500 Subject: [dba-SQLServer] SQL Server Virtual Lab for Reporting Services Message-ID: <827885295@mail.nalleyweb.com> From ricknalley at nalleyweb.com Sun Oct 24 16:57:41 2004 From: ricknalley at nalleyweb.com (Rick Nalley) Date: Sun, 24 Oct 2004 16:57:41 -0500 Subject: [dba-SQLServer] (Cross Posted) Rick Nalley Message-ID: <827885364@mail.nalleyweb.com> From ricknalley at nalleyweb.com Sun Oct 24 17:06:22 2004 From: ricknalley at nalleyweb.com (Rick Nalley) Date: Sun, 24 Oct 2004 17:06:22 -0500 Subject: [dba-SQLServer] SQL Server Virtual Lab for Reporting Services Message-ID: <827885771@mail.nalleyweb.com> From ricknalley at nalleyweb.com Sun Oct 24 17:07:01 2004 From: ricknalley at nalleyweb.com (Rick Nalley) Date: Sun, 24 Oct 2004 17:07:01 -0500 Subject: [dba-SQLServer] (Cross Posted) Rick Nalley Message-ID: <827885792@mail.nalleyweb.com> From ricknalley at nalleyweb.com Sun Oct 24 17:12:31 2004 From: ricknalley at nalleyweb.com (Rick Nalley) Date: Sun, 24 Oct 2004 17:12:31 -0500 Subject: [dba-SQLServer] SQL Server Virtual Lab for Reporting Services Message-ID: <827885967@mail.nalleyweb.com> From ricknalley at nalleyweb.com Sun Oct 24 17:14:52 2004 From: ricknalley at nalleyweb.com (Rick Nalley) Date: Sun, 24 Oct 2004 17:14:52 -0500 Subject: [dba-SQLServer] (Cross Posted) Rick Nalley Message-ID: <827886042@mail.nalleyweb.com> From cfoust at infostatsystems.com Mon Oct 25 10:22:15 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 25 Oct 2004 08:22:15 -0700 Subject: [dba-SQLServer] (Cross Posted) Rick Nalley Message-ID: Me to. It looks like somebody set up a test for Reporting Services without thinking it through. Charlotte Foust -----Original Message----- From: Jeff Barrows [mailto:Jeff at outbaktech.com] Sent: Sunday, October 24, 2004 2:42 PM To: dba-OT; Dba-SQL Subject: [dba-SQLServer] (Cross Posted) Rick Nalley I have received over 60 emails on the SQL list and at least 15 or so emails on the OT list all from Rick Nalley. There is nothing in these emails! Is it just me or is this happening to everyone? Jeff Barrows MCP, MCAD, MCSD Outbak Technologies, LLC Racine, WI jeff at outbaktech.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 Mon Oct 25 11:45:53 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Mon, 25 Oct 2004 09:45:53 -0700 Subject: [dba-SQLServer] (Cross Posted) Rick Nalley In-Reply-To: Message-ID: One slip of the html and everyone is up to their armpits in emails. It does prove it works. Jim -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Monday, October 25, 2004 8:22 AM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer] (Cross Posted) Rick Nalley Me to. It looks like somebody set up a test for Reporting Services without thinking it through. Charlotte Foust -----Original Message----- From: Jeff Barrows [mailto:Jeff at outbaktech.com] Sent: Sunday, October 24, 2004 2:42 PM To: dba-OT; Dba-SQL Subject: [dba-SQLServer] (Cross Posted) Rick Nalley I have received over 60 emails on the SQL list and at least 15 or so emails on the OT list all from Rick Nalley. There is nothing in these emails! Is it just me or is this happening to everyone? Jeff Barrows MCP, MCAD, MCSD Outbak Technologies, LLC Racine, WI jeff at outbaktech.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 JFK at puj.edu.co Tue Oct 26 12:14:15 2004 From: JFK at puj.edu.co (Julian Felipe Castrillon Trejos) Date: Tue, 26 Oct 2004 12:14:15 -0500 Subject: [dba-SQLServer] executing .exe files using sql statement Message-ID: hello, i need to execute a .exe file using a sql statement or a dts file, is this possible if it is how can i do it, i am running a sql server 2000 database thanks for your help --------------------------------------------- Julian Castrillon T Ingeniero de sistemas y computacion Analista, IDA Ltda Ingenieria y desarrollo aplicados --------------------------------------------- Jesus save, but only Buda made incremental backups From CMackin at quiznos.com Tue Oct 26 12:21:23 2004 From: CMackin at quiznos.com (Mackin, Christopher) Date: Tue, 26 Oct 2004 11:21:23 -0600 Subject: [dba-SQLServer] executing .exe files using sql statement Message-ID: Look into the extended stored procedure xp_cmdshell, you can run an .exe from there. -Chris Mackin -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com]On Behalf Of Julian Felipe Castrillon Trejos Sent: Tuesday, October 26, 2004 11:14 AM To: dba-sqlserver at databaseadvisors.com Subject: [dba-SQLServer] executing .exe files using sql statement hello, i need to execute a .exe file using a sql statement or a dts file, is this possible if it is how can i do it, i am running a sql server 2000 database thanks for your help --------------------------------------------- Julian Castrillon T Ingeniero de sistemas y computacion Analista, IDA Ltda Ingenieria y desarrollo aplicados --------------------------------------------- Jesus save, but only Buda made incremental backups _______________________________________________ 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 Oct 26 12:47:36 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Tue, 26 Oct 2004 10:47:36 -0700 Subject: [dba-SQLServer] executing .exe files using sql statement In-Reply-To: Message-ID: Hi Julian: I just received an ad to a SQL packager from Redhat and you might find it interesting. The is a fully functional trial version that can be used. www.red-gate.com/sql/sql_packager.htm HTH Jim -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com]On Behalf Of Julian Felipe Castrillon Trejos Sent: Tuesday, October 26, 2004 10:14 AM To: dba-sqlserver at databaseadvisors.com Subject: [dba-SQLServer] executing .exe files using sql statement hello, i need to execute a .exe file using a sql statement or a dts file, is this possible if it is how can i do it, i am running a sql server 2000 database thanks for your help --------------------------------------------- Julian Castrillon T Ingeniero de sistemas y computacion Analista, IDA Ltda Ingenieria y desarrollo aplicados --------------------------------------------- Jesus save, but only Buda made incremental backups _______________________________________________ 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 Oct 26 17:57:29 2004 From: fhtapia at gmail.com (Francisco Tapia) Date: Tue, 26 Oct 2004 15:57:29 -0700 Subject: [dba-SQLServer] (Cross Posted) Rick Nalley In-Reply-To: References: Message-ID: I have caught a bunch too, but I'm on Gmail, and it did a good job of buffering the problem :| On Mon, 25 Oct 2004 09:45:53 -0700, Jim Lawrence (AccessD) wrote: > One slip of the html and everyone is up to their armpits in emails. It does > prove it works. > > Jim > > -----Original Message----- > From: dba-sqlserver-bounces at databaseadvisors.com > [mailto:dba-sqlserver-bounces at databaseadvisors.com]On Behalf Of > Charlotte Foust > Sent: Monday, October 25, 2004 8:22 AM > To: dba-sqlserver at databaseadvisors.com > Subject: RE: [dba-SQLServer] (Cross Posted) Rick Nalley > > Me to. It looks like somebody set up a test for Reporting Services > without thinking it through. > > Charlotte Foust > > -----Original Message----- > From: Jeff Barrows [mailto:Jeff at outbaktech.com] > Sent: Sunday, October 24, 2004 2:42 PM > To: dba-OT; Dba-SQL > Subject: [dba-SQLServer] (Cross Posted) Rick Nalley > > I have received over 60 emails on the SQL list and at least 15 or so > emails on the OT list all from Rick Nalley. There is nothing in these > emails! Is it just me or is this happening to everyone? > > Jeff Barrows > > MCP, MCAD, MCSD > > Outbak Technologies, LLC > > Racine, WI > > jeff at outbaktech.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 > > -- -Francisco Pc This! pc news with out the jargon From tuxedo_man at hotmail.com Wed Oct 27 15:32:01 2004 From: tuxedo_man at hotmail.com (Billy Pang) Date: Wed, 27 Oct 2004 20:32:01 +0000 Subject: [dba-SQLServer] connecting to oracle from SQL Query Analyzer Message-ID: Hello: I want to be able to connect to an Oracle database (version 8.1.x preferred) from SQL Query Analyzer. Any ideas? I tried using a linked server but I get the following error message when I try to query the oracle db. Server: Msg 7399, Level 16, State 1, Line 1 OLE DB provider 'MSDAORA' reported an error. [OLE/DB provider returned message: Oracle error occurred, but error message could not be retrieved from Oracle.] I already have the oracle client sw installed on my machine and am able to query oracle from an oracle client but for some strange reason it is not working from QA. thanks in advance. Billy From accessd at shaw.ca Wed Oct 27 17:13:26 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Wed, 27 Oct 2004 15:13:26 -0700 Subject: [dba-SQLServer] connecting to oracle from SQL Query Analyzer In-Reply-To: Message-ID: Hi Billy: Check the following article; it might help: http://databasejournal.com/features/mssql/article.php/10894_3290801_1 HTH Jim -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com]On Behalf Of Billy Pang Sent: Wednesday, October 27, 2004 1:32 PM To: dba-SQLServer at databaseadvisors.com Subject: [dba-SQLServer] connecting to oracle from SQL Query Analyzer Hello: I want to be able to connect to an Oracle database (version 8.1.x preferred) from SQL Query Analyzer. Any ideas? I tried using a linked server but I get the following error message when I try to query the oracle db. Server: Msg 7399, Level 16, State 1, Line 1 OLE DB provider 'MSDAORA' reported an error. [OLE/DB provider returned message: Oracle error occurred, but error message could not be retrieved from Oracle.] I already have the oracle client sw installed on my machine and am able to query oracle from an oracle client but for some strange reason it is not working from QA. thanks in advance. Billy _______________________________________________ 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 Wed Oct 27 17:17:41 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Wed, 27 Oct 2004 15:17:41 -0700 Subject: [dba-SQLServer] connecting to oracle from SQL Query Analyzer In-Reply-To: Message-ID: Billy: PS check out the previous three articles for full details. 1. http://databasejournal.com/article.php/3085211 2. http://databasejournal.com/article.php/3103331 3. http://databasejournal.com/article.php/3116011 as well as the one I sent you: 4. http://databasejournal.com/features/mssql/article.php/3290801 HTH Jim -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com]On Behalf Of Billy Pang Sent: Wednesday, October 27, 2004 1:32 PM To: dba-SQLServer at databaseadvisors.com Subject: [dba-SQLServer] connecting to oracle from SQL Query Analyzer Hello: I want to be able to connect to an Oracle database (version 8.1.x preferred) from SQL Query Analyzer. Any ideas? I tried using a linked server but I get the following error message when I try to query the oracle db. Server: Msg 7399, Level 16, State 1, Line 1 OLE DB provider 'MSDAORA' reported an error. [OLE/DB provider returned message: Oracle error occurred, but error message could not be retrieved from Oracle.] I already have the oracle client sw installed on my machine and am able to query oracle from an oracle client but for some strange reason it is not working from QA. thanks in advance. Billy _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Wed Oct 27 21:51:04 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 27 Oct 2004 22:51:04 -0400 Subject: [dba-SQLServer] Getting rid of time in result set In-Reply-To: Message-ID: <000001c4bc98$fbbaa2e0$e8dafea9@ColbyM6805> How do I get rid of the time in a date column in the result set? 2005-01-02 00:00:00.000 Should be 2005-01-02 John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ From stuart at lexacorp.com.pg Wed Oct 27 22:12:50 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 28 Oct 2004 13:12:50 +1000 Subject: [dba-SQLServer] Getting rid of time in result set In-Reply-To: <000001c4bc98$fbbaa2e0$e8dafea9@ColbyM6805> References: Message-ID: <4180F052.30674.1304F270@lexacorp.com.pg> On 27 Oct 2004 at 22:51, John W. Colby wrote: > How do I get rid of the time in a date column in the result set? > > 2005-01-02 00:00:00.000 > > Should be > > 2005-01-02 > Convert (myDate,nvarchar(10),10) The third parameter "Style" defines the formatting 10 = 2005-01-02 110 = 05-01-02 etc -- Stuart From jwcolby at colbyconsulting.com Wed Oct 27 22:27:59 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 27 Oct 2004 23:27:59 -0400 Subject: [dba-SQLServer] Getting rid of time in result set In-Reply-To: <4180F052.30674.1304F270@lexacorp.com.pg> Message-ID: <000101c4bc9e$23f8d060$e8dafea9@ColbyM6805> Thanks Stuart. Is that SQL syntax or SQL Server specific syntax? 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 Stuart McLachlan Sent: Wednesday, October 27, 2004 11:13 PM To: dba-sqlserver at databaseadvisors.com Subject: Re: [dba-SQLServer] Getting rid of time in result set On 27 Oct 2004 at 22:51, John W. Colby wrote: > How do I get rid of the time in a date column in the result set? > > 2005-01-02 00:00:00.000 > > Should be > > 2005-01-02 > Convert (myDate,nvarchar(10),10) The third parameter "Style" defines the formatting 10 = 2005-01-02 110 = 05-01-02 etc -- Stuart _______________________________________________ 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 Wed Oct 27 22:40:28 2004 From: ebarro at afsweb.com (Eric Barro) Date: Wed, 27 Oct 2004 20:40:28 -0700 Subject: [dba-SQLServer] Getting rid of time in result set In-Reply-To: <000001c4bc98$fbbaa2e0$e8dafea9@ColbyM6805> Message-ID: CONVERT(varchar(11), yourdate, 105) -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Wednesday, October 27, 2004 7:51 PM To: dba-sqlserver at databaseadvisors.com Subject: [dba-SQLServer] Getting rid of time in result set How do I get rid of the time in a date column in the result set? 2005-01-02 00:00:00.000 Should be 2005-01-02 John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ _______________________________________________ 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 stuart at lexacorp.com.pg Thu Oct 28 01:00:15 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 28 Oct 2004 16:00:15 +1000 Subject: [dba-SQLServer] Getting rid of time in result set In-Reply-To: <000101c4bc9e$23f8d060$e8dafea9@ColbyM6805> References: <4180F052.30674.1304F270@lexacorp.com.pg> Message-ID: <4181178F.11394.139E3C13@lexacorp.com.pg> On 27 Oct 2004 at 23:27, John W. Colby wrote: > Thanks Stuart. Is that SQL syntax or SQL Server specific syntax? ..... > > Convert (myDate,nvarchar(10),10) > That would have been SQL Server 7 if I had got it right, but doing it off the top of my head, I reversed the first two parameters. It should be CONVERT(Datatype(n),Expression,Style) -- Stuart From tuxedo_man at hotmail.com Fri Oct 29 19:35:23 2004 From: tuxedo_man at hotmail.com (Billy Pang) Date: Sat, 30 Oct 2004 00:35:23 +0000 Subject: [dba-SQLServer] sorting problem Message-ID: Hello: I have a table that contains one column with the following six values: a1 a2 a21 a10x a2a a10 Currently if that column is sorted, it is sorted this way: a1 a10 a10x a2 a21 a2a But I want it to be sorted this way: a1 a2 a2a a10 a10x a21 (note: a2a comes before a10, a21 goes after a10x, etc...ergo, letters come before numbers, contrary to their ascii values) Is it possible or is it a pipe dream? Below is copy of code. Thanks in advance, Billy /* cut here */ use tempdb create table #the_table(the_value varchar(10)); insert into #the_table(the_value) values('a1'); insert into #the_table(the_value) values('a2'); insert into #the_table(the_value) values('a21'); insert into #the_table(the_value) values('a10x'); insert into #the_table(the_value) values('a2a'); insert into #the_table(the_value) values('a10'); select * from #the_table order by the_value drop table #the_table; /* cut here */ From tuxedo_man at hotmail.com Fri Oct 29 19:42:20 2004 From: tuxedo_man at hotmail.com (Billy Pang) Date: Sat, 30 Oct 2004 00:42:20 +0000 Subject: [dba-SQLServer] connecting to oracle from SQL Query Analyzer Message-ID: Thanks Jim. The 4th article was most helpful. I was working with Oracle 8. Could not install oracle client from CD. As it turns out, there is an issue that prevents oracle 8 from being installed on a P4 system. There is a patch avaliable for this; the alternate solution was to copy contents of cd to local disk and rename one of its files; then only then was I able to install the oracle client. This issue was fixed in Oracle 9. Billy >From: "Jim Lawrence (AccessD)" >Reply-To: dba-sqlserver at databaseadvisors.com >To: dba-sqlserver at databaseadvisors.com >Subject: RE: [dba-SQLServer] connecting to oracle from SQL Query Analyzer >Date: Wed, 27 Oct 2004 15:17:41 -0700 > >Billy: > >PS check out the previous three articles for full details. >1. http://databasejournal.com/article.php/3085211 >2. http://databasejournal.com/article.php/3103331 >3. http://databasejournal.com/article.php/3116011 >as well as the one I sent you: >4. http://databasejournal.com/features/mssql/article.php/3290801 > >HTH >Jim > >-----Original Message----- >From: dba-sqlserver-bounces at databaseadvisors.com >[mailto:dba-sqlserver-bounces at databaseadvisors.com]On Behalf Of Billy >Pang >Sent: Wednesday, October 27, 2004 1:32 PM >To: dba-SQLServer at databaseadvisors.com >Subject: [dba-SQLServer] connecting to oracle from SQL Query Analyzer > > >Hello: > >I want to be able to connect to an Oracle database (version 8.1.x >preferred) >from SQL Query Analyzer. Any ideas? I tried using a linked server but I >get the following error message when I try to query the oracle db. > >Server: Msg 7399, Level 16, State 1, Line 1 >OLE DB provider 'MSDAORA' reported an error. >[OLE/DB provider returned message: Oracle error occurred, but error message >could not be retrieved from Oracle.] > >I already have the oracle client sw installed on my machine and am able to >query oracle from an oracle client but for some strange reason it is not >working from QA. > >thanks in advance. > >Billy > > >_______________________________________________ >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 ridermark at gmail.com Fri Oct 29 20:37:34 2004 From: ridermark at gmail.com (Mark Rider) Date: Fri, 29 Oct 2004 20:37:34 -0500 Subject: [dba-SQLServer] sorting problem In-Reply-To: References: Message-ID: On Sat, 30 Oct 2004 00:35:23 +0000, Billy Pang wrote: > Hello: > > I have a table that contains one column with the following six values: > > a1 > a2 > a21 > a10x > a2a > a10 > > Currently if that column is sorted, it is sorted this way: > > a1 > a10 > a10x > a2 > a21 > a2a > > But I want it to be sorted this way: > > a1 > a2 > a2a > a10 > a10x > a21 What are you using to view the sorted column? That will be the best thing to use to figure out the sort. Pull the data from the column, and have the program sort it as you want.If you are looking at the column in EM then it will sort according to how the database sees it, and that is the way the text will be sorted. -- Mark Rider http://commonsensesecurity.info From martyconnelly at shaw.ca Fri Oct 29 23:37:05 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 29 Oct 2004 21:37:05 -0700 Subject: [dba-SQLServer] sorting problem References: Message-ID: <41831A71.90100@shaw.ca> I am willing to be corrected about this but you can use this method to hash the index field and change the ascii collating sequence. The easy way to handle this is to use a hash function that creates a new index field that is a hash of the alphnumeric characters that appears as a double or series of fields converted to doubles. This method of hashing is called Base 37 Hash. I have misplaced my written documentation on this. On a Zip drive somewhere. Numerical Methods text book might have documentation. I wrote this originally to sort on a field that was old Radio Call Sign numbers that looked like 2AAW32 2ABW320 2AaW3223 etc. Option Compare Database Option Explicit Const hashFactor As Integer = 37 Const hashLength As Integer = 9 Function HashString(strHash As String) As Double ' Create Hash string for indexing using 'Base 37 Hash Value ' Convert ' spaces punctuation odd chars = 0 ' numeric = 0 - 9 1-10 ' alpha chars a-z A-Z 11-37 ' only use lower case 'such that string "Ab-12" = ' A b - 1 2 ' (11*37^4) + (12*37^3) + (0*37^2) + (2*37^1) + (3*37^0) 'The Hash Length is 9 so it fits a double without precision loss Dim iStrLen As Integer Dim decAsc As Double Dim i As Integer Dim strPad As Integer Dim strToHash As String HashString = 0 ' convert to all lower case strToHash = UCase(strHash) iStrLen = Len(strToHash) 'pad out string to 9 chars with blanks If iStrLen < hashLength Then For strPad = (iStrLen + 1) To hashLength strToHash = strToHash & " " Next Else ' or just grab first nine chars of string If iStrLen > hashLength Then strToHash = Left(strToHash, hashLength) End If End If For i = 1 To hashLength decAsc = Asc(Right(strToHash, i)) 'convert all odd Ascii character values and punctuation to 0 If (decAsc < 48) Or (decAsc >= 58) And (decAsc <= 64) _ Or (decAsc > 91) Then decAsc = 0 Else 'numbers If (decAsc >= 48) And (decAsc <= 57) Then decAsc = decAsc - 47 Else 'letters If (decAsc >= 65) And (decAsc <= 91) Then decAsc = decAsc - 54 ' 54 not 64 as want to start "A" as 11 End If End If End If HashString = HashString + (decAsc * hashFactor ^ (i - 1)) Next End Function OK now how to call this and use it Assume you have a table named [legalnumbering] and two fields one called [LegalNumber] containing your 1.1, 1.0.1 numbers; the other field that you have added as a Double called [HashTitle1]. This will read your 1.0.1 numbered field and create a hash number in the new double field. Then just run this routine below and then a query sorting on the hash field in the table and displaying your legal number field in correct order. Function HashUpdateHierarchLegalNumber() 'Update Method Example 'This example demonstrates the Update method in conjunction with Edit method. Updates the hash field from original index field in the original table. Dim dbs As Database Dim rst As Recordset Dim String1 As String Dim String2 As String ' Set dbs = OpenDatabase("c:\access2\hashing\HashStringA.mdb") Set dbs = CurrentDb() Set rst = dbs.OpenRecordset("LegalNumbering") With rst Do While Not .EOF .Edit String1 = Left(![LegalNumber], 9) 'String2 = Mid(![TubeNumbers], 10, 9)'chunk out further 'String2 = Right(![TubeNumbers], 9) 'if number longer than 9 digits !HashTitle1 = HashString(String1) '!HashTitle2 = HashString(String2) .Update .MoveNext Loop End With rst.Close dbs.Close End Function Not sure but may have stolen this code from part of an article in 1998 Office Access VB mag article by Jim Inscore on Documentation Sets www.advisor.com Mark Rider wrote: >On Sat, 30 Oct 2004 00:35:23 +0000, Billy Pang wrote: > > >>Hello: >> >>I have a table that contains one column with the following six values: >> >>a1 >>a2 >>a21 >>a10x >>a2a >>a10 >> >>Currently if that column is sorted, it is sorted this way: >> >>a1 >>a10 >>a10x >>a2 >>a21 >>a2a >> >>But I want it to be sorted this way: >> >>a1 >>a2 >>a2a >>a10 >>a10x >>a21 >> >> > >What are you using to view the sorted column? That will be the best >thing to use to figure out the sort. Pull the data from the column, >and have the program sort it as you want.If you are looking at the >column in EM then it will sort according to how the database sees it, >and that is the way the text will be sorted. > > > -- Marty Connelly Victoria, B.C. Canada From tuxedo_man at hotmail.com Sat Oct 30 04:40:21 2004 From: tuxedo_man at hotmail.com (Billy Pang) Date: Sat, 30 Oct 2004 09:40:21 +0000 Subject: [dba-SQLServer] sorting problem Message-ID: Hi Marty: Thanks for your input. I would like to keep the solution in TSQL. I glanced over the code posted below and I think that it would not give me the sorting solution because a2a would not come before a10 and a21 would not go after a10x (this is the case because "numeric" comes before "alpha", as defined in the very beginning of the posted code). It is interesting though... Billy >From: MartyConnelly >Reply-To: dba-sqlserver at databaseadvisors.com >To: dba-sqlserver at databaseadvisors.com >Subject: Re: [dba-SQLServer] sorting problem >Date: Fri, 29 Oct 2004 21:37:05 -0700 > >I am willing to be corrected about this but you can use this method to hash >the index field >and change the ascii collating sequence. > >The easy way to handle this is to use a hash function that creates >a new index field that is a hash of the alphnumeric characters that >appears as a double or series of fields converted to doubles. This method >of hashing is called Base 37 Hash. I have misplaced my written >documentation on this. On a Zip drive somewhere. Numerical Methods text >book might have documentation. > >I wrote this originally to sort on a field that was old Radio Call Sign >numbers that looked like 2AAW32 2ABW320 2AaW3223 etc. > >Option Compare Database >Option Explicit >Const hashFactor As Integer = 37 >Const hashLength As Integer = 9 > >Function HashString(strHash As String) As Double >' Create Hash string for indexing using >'Base 37 Hash Value >' Convert >' spaces punctuation odd chars = 0 >' numeric = 0 - 9 1-10 >' alpha chars a-z A-Z 11-37 >' only use lower case >'such that string "Ab-12" = >' A b - 1 2 >' (11*37^4) + (12*37^3) + (0*37^2) + (2*37^1) + (3*37^0) >'The Hash Length is 9 so it fits a double without precision loss > >Dim iStrLen As Integer >Dim decAsc As Double >Dim i As Integer >Dim strPad As Integer >Dim strToHash As String >HashString = 0 > >' convert to all lower case >strToHash = UCase(strHash) >iStrLen = Len(strToHash) > >'pad out string to 9 chars with blanks >If iStrLen < hashLength Then >For strPad = (iStrLen + 1) To hashLength > strToHash = strToHash & " " >Next >Else >' or just grab first nine chars of string > If iStrLen > hashLength Then > strToHash = Left(strToHash, hashLength) > End If >End If > >For i = 1 To hashLength > decAsc = Asc(Right(strToHash, i)) > 'convert all odd Ascii character values and punctuation to 0 > If (decAsc < 48) Or (decAsc >= 58) And (decAsc <= 64) _ > Or (decAsc > 91) Then > decAsc = 0 > Else > 'numbers > If (decAsc >= 48) And (decAsc <= 57) Then > decAsc = decAsc - 47 > Else > 'letters > If (decAsc >= 65) And (decAsc <= 91) Then > decAsc = decAsc - 54 > ' 54 not 64 as want to start "A" as 11 > End If > End If > End If > > HashString = HashString + (decAsc * hashFactor ^ (i - 1)) >Next > >End Function > >OK now how to call this and use it >Assume you have a table named [legalnumbering] and two fields >one called [LegalNumber] containing your 1.1, 1.0.1 numbers; the other >field that you have added as a Double called [HashTitle1]. This will read >your 1.0.1 numbered field and create a hash number in the new double field. >Then just run this routine below and then a query sorting on the hash field >in the table and displaying your legal number field in correct order. > > >Function HashUpdateHierarchLegalNumber() >'Update Method Example >'This example demonstrates the Update method in conjunction with Edit >method. Updates the hash field from original index field in the original >table. > > > Dim dbs As Database > Dim rst As Recordset > Dim String1 As String > Dim String2 As String > ' Set dbs = OpenDatabase("c:\access2\hashing\HashStringA.mdb") > Set dbs = CurrentDb() > Set rst = dbs.OpenRecordset("LegalNumbering") > > With rst > Do While Not .EOF > .Edit > String1 = Left(![LegalNumber], 9) > 'String2 = Mid(![TubeNumbers], 10, 9)'chunk out further > 'String2 = Right(![TubeNumbers], 9) 'if number longer than 9 >digits > !HashTitle1 = HashString(String1) > '!HashTitle2 = HashString(String2) > > .Update > .MoveNext > Loop > End With > rst.Close > dbs.Close > >End Function > >Not sure but may have stolen this code from part of an article in 1998 >Office Access VB mag article by Jim Inscore on Documentation Sets >www.advisor.com > > > > >Mark Rider wrote: > >>On Sat, 30 Oct 2004 00:35:23 +0000, Billy Pang >>wrote: >> >> >>>Hello: >>> >>>I have a table that contains one column with the following six values: >>> >>>a1 >>>a2 >>>a21 >>>a10x >>>a2a >>>a10 >>> >>>Currently if that column is sorted, it is sorted this way: >>> >>>a1 >>>a10 >>>a10x >>>a2 >>>a21 >>>a2a >>> >>>But I want it to be sorted this way: >>> >>>a1 >>>a2 >>>a2a >>>a10 >>>a10x >>>a21 >>> >>> >> >>What are you using to view the sorted column? That will be the best >>thing to use to figure out the sort. Pull the data from the column, >>and have the program sort it as you want.If you are looking at the >>column in EM then it will sort according to how the database sees it, >>and that is the way the text will be sorted. >> >> >> > >-- >Marty Connelly >Victoria, B.C. >Canada > > > >_______________________________________________ >dba-SQLServer mailing list >dba-SQLServer at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-sqlserver >http://www.databaseadvisors.com > From tuxedo_man at hotmail.com Sat Oct 30 04:55:20 2004 From: tuxedo_man at hotmail.com (Billy Pang) Date: Sat, 30 Oct 2004 09:55:20 +0000 Subject: [dba-SQLServer] sorting problem Message-ID: Hi Mark: I am using SQL Query Analyzer to view the sorted column. Usually I get the db to sort the results before handing it over to the application program because the db can do a much better job on sorting than the application (in 99.99999% of the case). However, the application program is superior to the db in terms of presenting the data; if that is what you are getting at, then I see your point but it would not exactly suit the current need. Someone correct me if I am wrong but if I view any column of a table from EM without explicitly sorting it (ie. the ORDER BY clause), there is no solid guarantee that the records will be displayed in the same order the next time the table is queried again. Billy >From: Mark Rider > >What are you using to view the sorted column? That will be the best >thing to use to figure out the sort. Pull the data from the column, >and have the program sort it as you want.If you are looking at the >column in EM then it will sort according to how the database sees it, >and that is the way the text will be sorted. > >-- >Mark Rider >http://commonsensesecurity.info >_______________________________________________ >dba-SQLServer mailing list >dba-SQLServer at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-sqlserver >http://www.databaseadvisors.com > From mmaddison at optusnet.com.au Sat Oct 30 07:24:07 2004 From: mmaddison at optusnet.com.au (Michael Maddison) Date: Sat, 30 Oct 2004 22:24:07 +1000 Subject: [dba-SQLServer] sorting problem In-Reply-To: Message-ID: I don't have BOL at home but I think if the table has a clustered index then that is how it is returned without an order by. IIRC you can guarentee it. A heap is a different story as the actual table has no order. regards Michael M Hi Mark: I am using SQL Query Analyzer to view the sorted column. Usually I get the db to sort the results before handing it over to the application program because the db can do a much better job on sorting than the application (in 99.99999% of the case). However, the application program is superior to the db in terms of presenting the data; if that is what you are getting at, then I see your point but it would not exactly suit the current need. Someone correct me if I am wrong but if I view any column of a table from EM without explicitly sorting it (ie. the ORDER BY clause), there is no solid guarantee that the records will be displayed in the same order the next time the table is queried again. Billy >From: Mark Rider > >What are you using to view the sorted column? That will be the best >thing to use to figure out the sort. Pull the data from the column, >and have the program sort it as you want.If you are looking at the >column in EM then it will sort according to how the database sees it, >and that is the way the text will be sorted. > >-- >Mark Rider >http://commonsensesecurity.info >_______________________________________________ >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 --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.718 / Virus Database: 474 - Release Date: 9/07/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.718 / Virus Database: 474 - Release Date: 9/07/2004 From HARVEYF1 at WESTAT.com Sun Oct 31 13:06:44 2004 From: HARVEYF1 at WESTAT.com (Francis Harvey) Date: Sun, 31 Oct 2004 14:06:44 -0500 Subject: [dba-SQLServer] sorting problem Message-ID: <446DDE75CFC7E1438061462F85557B0F0481EB25@remail2.westat.com> Billy, Perhaps this code will give you some ideas to build on as I imagine your problem is more complex than your example suggests: select the_value from #the_table order by case when ascii(right(the_value,1)) between 48 and 57 then cast(substring(the_value,2,len(the_value) - 1) as int) else cast(substring(the_value,2,len(the_value) - 2) as int) end, the_value Francis R Harvey III WB 303, (301)294-3952 harveyf1 at westat.com > -----Original Message----- > From: dba-sqlserver-bounces at databaseadvisors.com > [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf > Of Billy Pang > Sent: Friday, October 29, 2004 8:35 PM > To: dba-SQLServer at databaseadvisors.com > Subject: [dba-SQLServer] sorting problem > > > Hello: > > I have a table that contains one column with the following six values: > > a1 > a2 > a21 > a10x > a2a > a10 > > Currently if that column is sorted, it is sorted this way: > > a1 > a10 > a10x > a2 > a21 > a2a > > But I want it to be sorted this way: > > a1 > a2 > a2a > a10 > a10x > a21 > > (note: a2a comes before a10, a21 goes after a10x, etc...ergo, > letters come > before numbers, contrary to their ascii values) > > Is it possible or is it a pipe dream? Below is copy of code. > > Thanks in advance, > Billy > > /* cut here */ > use tempdb > create table #the_table(the_value varchar(10)); > insert into #the_table(the_value) values('a1'); > insert into #the_table(the_value) values('a2'); > insert into #the_table(the_value) values('a21'); > insert into #the_table(the_value) values('a10x'); > insert into #the_table(the_value) values('a2a'); > insert into #the_table(the_value) values('a10'); > select * from #the_table order by the_value > drop table #the_table; > /* cut here */ From artful at rogers.com Sun Oct 31 14:18:59 2004 From: artful at rogers.com (Arthur Fuller) Date: Sun, 31 Oct 2004 15:18:59 -0500 Subject: [dba-SQLServer] sorting problem In-Reply-To: <446DDE75CFC7E1438061462F85557B0F0481EB25@remail2.westat.com> References: <446DDE75CFC7E1438061462F85557B0F0481EB25@remail2.westat.com> Message-ID: <418548B3.2070807@rogers.com> -----Original Message----- >>From: dba-sqlserver-bounces at databaseadvisors.com >>[mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf >>Of Billy Pang >>Sent: Friday, October 29, 2004 8:35 PM >>To: dba-SQLServer at databaseadvisors.com >>Subject: [dba-SQLServer] sorting problem >> >> >>Hello: >> >>I have a table that contains one column with the following six values: >> >>a1 >>a2 >>a21 >>a10x >>a2a >>a10 >> >>Currently if that column is sorted, it is sorted this way: >> >>a1 >>a10 >>a10x >>a2 >>a21 >>a2a >> >>But I want it to be sorted this way: >> >>a1 >>a2 >>a2a >>a10 >>a10x >>a21 >> >>(note: a2a comes before a10, a21 goes after a10x, etc...ergo, >>letters come >>before numbers, contrary to their ascii values) >> >>Is it possible or is it a pipe dream? Below is copy of code. >> >>Thanks in advance, >>Billy >> >> >> I have played with this for a while. I kept thinking that this should not be difficult, but either I'm having a senior Sunday or it simply is difficult. Also, I finally realized that I should look at your sample data more than your description of the rules, since the rules are oversimplified. I am having trouble deciding what your actual rules are, but clearly your description is insufficient... at least for this old coder. If letters come before numbers, why isn't a10x ahead of a10? It's looking to me as if your actual rules are: 1. ignore the first letter 2. grab the numeric value following the first letter as your first sort criterion 3. anything following that numeric value is the second sort order (i.e. 10, 10x, 10y) Here, I believe, is your answer: create the following function (which is not optimized, it's written in my usual style with lots of variables so I can check everything as I go) first: ALTER FUNCTION dbo.InnerNumeric_fn ( @Source Varchar(20) = 'a20x' ) RETURNS integer AS BEGIN declare @Result varchar(10) declare @i int declare @j int declare @c char(1) declare @flag int set @j = len(@Source) set @i = 2 set @Result = '' while @i <= @j begin set @c = substring(@Source, at i,1) set @flag = isnumeric(@c) if (@flag = 1) begin set @Result = @Result + @c set @i = @i+1 end else break end RETURN CAST(@Result AS INT) END Use it in your query as follows: select *,dbo.innernumeric_fn(the_value) from the_table order by dbo.innernumeric_fn(the_value) This prints the following set, which appears to be what you want: a1 1 a2 2 a2a 2 a10 10 a10x 10 a21 21 HTH, Arthur P.S. I'll be using this in one of my forthcoming SQL Tips columns. I might as well get somebody to pay me for writing it. LOL. From artful at rogers.com Sun Oct 31 14:44:53 2004 From: artful at rogers.com (Arthur Fuller) Date: Sun, 31 Oct 2004 15:44:53 -0500 Subject: [dba-SQLServer] sorting problem In-Reply-To: <418548B3.2070807@rogers.com> References: <446DDE75CFC7E1438061462F85557B0F0481EB25@remail2.westat.com> <418548B3.2070807@rogers.com> Message-ID: <41854EC5.9050402@rogers.com> I should have added to the preceding message that all this is necessary only if the 6 values orginally supplied were just a sample. If they are actually all the values that the column can contain, it's much simpler just to create a new two-column table containing the values and their desired order, expressed as an int. Then you could join said table to the table of interest and order by the new table's second column. The code I provided in the previous message can handle any number of digits and any number of trailing characters. Arthur From tuxedo_man at hotmail.com Sun Oct 31 18:03:55 2004 From: tuxedo_man at hotmail.com (Billy Pang) Date: Mon, 01 Nov 2004 00:03:55 +0000 Subject: [dba-SQLServer] sorting problem Message-ID: Hi Arthur: Thanks for your input. During the time of the original post, I wasn't really to sure what all the rules were. But I knew one sorting rule for certain, which was "sort letters before numbers". a10x does not come ahead of a10. Not too sure how to articulate it accurately; the closest I can explain it is "the characters are read from left to right". If I create two text files in my OS (I am using win2k) called a10.txt and a10x.txt and sort the files in ascending order, a10.txt is shown first. I struggled with this rule because in my mind I kept thinking that "no character" takes greater precedence than "the presence of a character". Thanks for your solution but it is not what I am looking for. In a nutshell, the InnerNumeric_fn function obtains the first complete number in a string? I like the idea of using a function to manufacture a sorting key. Your code uses little cpu cycles and reads. I can say that because I tried re-writing your function without using a "while" condition and compared the two and this is what I got. create FUNCTION dbo.InnerNumeric_fn_1(@Source Varchar(10)) RETURNS INT AS BEGIN declare @Result varchar(9) declare @tempTable TABLE(THE_ID TINYINT NOT NULL PRIMARY KEY IDENTITY(1,1), THE_VALUE CHAR(1)) INSERT INTO @tempTable VALUES('A'); INSERT INTO @tempTable VALUES('A'); INSERT INTO @tempTable SELECT i.the_value from @tempTable i, @tempTable ii, @tempTable iii SELECT @Result = ISNULL(@Result,'') + CASE WHEN THE_ID > 1 AND isnumeric(substring(@Source,THE_ID,1)) = 1 THEN substring(@Source,THE_ID,1) ELSE '' END FROM @tempTable; RETURN CAST(@Result AS INT) END go However, this solution is great for the sample values I posted but it is not exactly what I am looking for because even though it can handle any number of digits, I am unable to use it as a sorting solution since it cannot handle two sets of digits. For example: a45x1x a45xax a45x2x Sincerely, Billy >From: Arthur Fuller >Reply-To: dba-sqlserver at databaseadvisors.com >To: dba-sqlserver at databaseadvisors.com >Subject: Re: [dba-SQLServer] sorting problem >Date: Sun, 31 Oct 2004 15:44:53 -0500 > >I should have added to the preceding message that all this is necessary >only if the 6 values orginally supplied were just a sample. If they are >actually all the values that the column can contain, it's much simpler just >to create a new two-column table containing the values and their desired >order, expressed as an int. Then you could join said table to the table of >interest and order by the new table's second column. > >The code I provided in the previous message can handle any number of digits >and any number of trailing characters. > >Arthur >_______________________________________________ >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 Sun Oct 31 18:15:35 2004 From: tuxedo_man at hotmail.com (Billy Pang) Date: Mon, 01 Nov 2004 00:15:35 +0000 Subject: [dba-SQLServer] sorting problem Message-ID: Hi Francis: Yes, my problem is a little bit more complex than my example suggests :) Your solution is perfect for the sample data I provided but I can't use it as a sorting solution since it is only tailored to support the sample data. For example, if I were to introduce the value "a45x1x" then I get an error. However, one part of the solution I finding intriguing is the "ascii(right(the_value,1)) between 48 and 57" part because it allows the SELECTstatement to identify that it is a number. So if a character in the string is a number, then perhaps something can be done to decrease the "sorting value" of the number so that letters come first. Sincerely, Billy >From: Francis Harvey >Reply-To: dba-sqlserver at databaseadvisors.com >To: "'dba-sqlserver at databaseadvisors.com'" > >Subject: RE: [dba-SQLServer] sorting problem >Date: Sun, 31 Oct 2004 14:06:44 -0500 > >Billy, > >Perhaps this code will give you some ideas to build on as I imagine >your problem is more complex than your example suggests: > >select the_value >from #the_table >order by > case > when ascii(right(the_value,1)) between 48 and 57 > then cast(substring(the_value,2,len(the_value) - 1) as int) > else cast(substring(the_value,2,len(the_value) - 2) as int) > end, the_value > >Francis R Harvey III >WB 303, (301)294-3952 >harveyf1 at westat.com > > > > -----Original Message----- > > From: dba-sqlserver-bounces at databaseadvisors.com > > [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf > > Of Billy Pang > > Sent: Friday, October 29, 2004 8:35 PM > > To: dba-SQLServer at databaseadvisors.com > > Subject: [dba-SQLServer] sorting problem > > > > > > Hello: > > > > I have a table that contains one column with the following six values: > > > > a1 > > a2 > > a21 > > a10x > > a2a > > a10 > > > > Currently if that column is sorted, it is sorted this way: > > > > a1 > > a10 > > a10x > > a2 > > a21 > > a2a > > > > But I want it to be sorted this way: > > > > a1 > > a2 > > a2a > > a10 > > a10x > > a21 > > > > (note: a2a comes before a10, a21 goes after a10x, etc...ergo, > > letters come > > before numbers, contrary to their ascii values) > > > > Is it possible or is it a pipe dream? Below is copy of code. > > > > Thanks in advance, > > Billy > > > > /* cut here */ > > use tempdb > > create table #the_table(the_value varchar(10)); > > insert into #the_table(the_value) values('a1'); > > insert into #the_table(the_value) values('a2'); > > insert into #the_table(the_value) values('a21'); > > insert into #the_table(the_value) values('a10x'); > > insert into #the_table(the_value) values('a2a'); > > insert into #the_table(the_value) values('a10'); > > select * from #the_table order by the_value > > drop table #the_table; > > /* cut here */ >_______________________________________________ >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 Oct 31 22:08:02 2004 From: artful at rogers.com (Arthur Fuller) Date: Sun, 31 Oct 2004 23:08:02 -0500 Subject: [dba-SQLServer] sorting problem In-Reply-To: References: Message-ID: <4185B6A2.1030508@rogers.com> Billy Pang wrote: > Hi Arthur: > > Thanks for your input. During the time of the original post, I wasn't > really to sure what all the rules were. But I knew one sorting rule > for certain, which was "sort letters before numbers". > > a10x does not come ahead of a10. Not too sure how to articulate it > accurately; the closest I can explain it is "the characters are read > from left to right". If I create two text files in my OS (I am using > win2k) called a10.txt and a10x.txt and sort the files in ascending > order, a10.txt is shown first. I struggled with this rule because in > my mind I kept thinking that "no character" takes greater precedence > than "the presence of a character". > > Thanks for your solution but it is not what I am looking for. In a > nutshell, the InnerNumeric_fn function obtains the first complete > number in a string? I like the idea of using a function to > manufacture a sorting key. Your code uses little cpu cycles and > reads. I can say that because I tried re-writing your function > without using a "while" condition and compared the two and this is > what I got. > > create FUNCTION dbo.InnerNumeric_fn_1(@Source Varchar(10)) RETURNS INT > AS > BEGIN > declare @Result varchar(9) > declare @tempTable TABLE(THE_ID TINYINT NOT NULL PRIMARY KEY > IDENTITY(1,1), THE_VALUE CHAR(1)) > INSERT INTO @tempTable VALUES('A'); > INSERT INTO @tempTable VALUES('A'); > INSERT INTO @tempTable SELECT i.the_value from @tempTable i, > @tempTable ii, @tempTable iii > SELECT @Result = ISNULL(@Result,'') + CASE WHEN THE_ID > 1 > AND isnumeric(substring(@Source,THE_ID,1)) = 1 THEN > substring(@Source,THE_ID,1) ELSE '' END FROM @tempTable; > RETURN CAST(@Result AS INT) > END > go > > However, this solution is great for the sample values I posted but it > is not exactly what I am looking for because even though it can handle > any number of digits, I am unable to use it as a sorting solution > since it cannot handle two sets of digits. For example: > > a45x1x > a45xax > a45x2x > > Sincerely, > > Billy Fine! Fine! Fine! In future, I suggest that you provide your third-world developers with an adequeate data set. LOL. I shall go back to the salt mines and toil endlessly until I have a solution. But you still haven't made the rules quite clear, if I may say so, Sir. Given strings x##x#x and xx###xx#xx, please define the desired sort order. I think I can do this by sequential calls to the func I wrote, but I could be wrong. I need more evidence to determine how to revise my inadequate contribution thus far. A.