From artful at rogers.com Mon Sep 1 12:59:40 2003 From: artful at rogers.com (Arthur Fuller) Date: Mon, 1 Sep 2003 10:59:40 -0700 Subject: [dba-SQLServer]Close but no cigar Message-ID: I'm trying to write a function that parses a string and returns a table of its values. So far I'm close but need some help on the final step. This preliminary codes in QA: declare @string varchar(50) set @string = '100, 200, 300, 400' declare @pos int while @string > '' begin set @pos = charindex(',', @string) if @pos > 0 begin select substring( @string, 1, @pos - 1) select @string = LTrim(substring( @string, @pos + 1, LEN(@string)- at pos+1)) select @string end else set @string = '' end This works fine and runs pretty quickly. Next, I tried to turn it into a table-valued function, like so: CREATE FUNCTION fn_StringToTable (@String varchar(50)) RETURNS @Values TABLE (ID int primary key) AS begin -- declare @string varchar(50) -- set @string = '100, 200, 300, 400' declare @pos int declare @value int while @string > '' -- begin set @pos = charindex(',', @string) if @pos > 0 begin set @value = substring( @string, 1, @pos - 1) select @string = LTrim(substring( @string, @pos + 1, LEN(@string)- at pos+1)) --select @string insert @Values SELECT @value end else set @string = '' RETURN end When I run this version, i.e. "select * from fn_StringToTable( '100, 200, 333, 444, 555')", it seems to go into space. Doesn't crash or anything, but I keep cancelling because it's taking so long. What am I doing wrong? TIA, Arthur --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.510 / Virus Database: 307 - Release Date: 8/14/2003 From tuxedo_man at hotmail.com Mon Sep 1 11:27:10 2003 From: tuxedo_man at hotmail.com (Billy Pang) Date: Mon, 01 Sep 2003 16:27:10 +0000 Subject: [dba-SQLServer]Close but no cigar Message-ID: You need a BEGIN --END GROUP for your WHILE loop. If you don't put one, then SS only includes the next statement as part of your WHILE loop, in which case produced an infinite loop. BTW, select * from fn_StringToTable( '100, 200, 333, 444, 555') only produces: 100 200 333 444 HTH Billy >From: "Arthur Fuller" >Reply-To: dba-sqlserver at databaseadvisors.com >To: "dba-SQLServer" >Subject: [dba-SQLServer]Close but no cigar >Date: Mon, 1 Sep 2003 10:59:40 -0700 > >I'm trying to write a function that parses a string and returns a table of >its values. So far I'm close but need some help on the final step. > >This preliminary codes in QA: > >declare @string varchar(50) >set @string = '100, 200, 300, 400' > >declare @pos int >while @string > '' > begin > set @pos = charindex(',', @string) > if @pos > 0 > begin > select substring( @string, 1, @pos - 1) > select @string = LTrim(substring( @string, @pos + 1, >LEN(@string)- at pos+1)) > select @string > end > else > set @string = '' > end > >This works fine and runs pretty quickly. > >Next, I tried to turn it into a table-valued function, like so: > >CREATE FUNCTION fn_StringToTable (@String varchar(50)) >RETURNS @Values TABLE (ID int primary key) >AS >begin >-- declare @string varchar(50) >-- set @string = '100, 200, 300, 400' > > declare @pos int > declare @value int > > while @string > '' > -- begin > set @pos = charindex(',', @string) > if @pos > 0 > begin > set @value = substring( @string, 1, @pos - 1) > select @string = LTrim(substring( @string, @pos + 1, >LEN(@string)- at pos+1)) > --select @string > insert @Values SELECT @value > end > else > set @string = '' > > RETURN >end > >When I run this version, i.e. "select * from fn_StringToTable( '100, 200, >333, 444, 555')", it seems to go into space. Doesn't crash or anything, but >I keep cancelling because it's taking so long. > >What am I doing wrong? > >TIA, >Arthur > >--- >Outgoing mail is certified Virus Free. >Checked by AVG anti-virus system (http://www.grisoft.com). >Version: 6.0.510 / Virus Database: 307 - Release Date: 8/14/2003 > >_______________________________________________ >dba-SQLServer mailing list >dba-SQLServer at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-sqlserver >http://www.databaseadvisors.com > _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From artful at rogers.com Mon Sep 1 15:07:25 2003 From: artful at rogers.com (Arthur Fuller) Date: Mon, 1 Sep 2003 13:07:25 -0700 Subject: [dba-SQLServer]Close but no cigar In-Reply-To: Message-ID: Thanks, Billy! Here's my revised code: ALTER FUNCTION fn_StringToTable (@String varchar(100)) RETURNS @Values TABLE (ID int primary key) AS begin declare @pos int declare @value int while @string > '' begin set @pos = charindex(',', @string) if @pos > 0 begin set @value = substring( @string, 1, @pos - 1) select @string = LTrim(substring( @string, @pos + 1, LEN(@string)- at pos+1)) --select @string insert @Values SELECT @value end else IF len(@string) > 0 begin set @value = @string insert @Values SELECT @value set @string = '' end else set @string = '' end -- just to see what I'm doing --SELECT * FROM @Values RETURN end It now works as it should, finding the '555' at the end, but the tests look a little clumsy to me. Can you think of any optimizations? -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com]On Behalf Of Billy Pang Sent: Monday, September 01, 2003 9:27 AM To: dba-sqlserver at databaseadvisors.com Subject: Re: [dba-SQLServer]Close but no cigar You need a BEGIN --END GROUP for your WHILE loop. If you don't put one, then SS only includes the next statement as part of your WHILE loop, in which case produced an infinite loop. BTW, select * from fn_StringToTable( '100, 200, 333, 444, 555') only produces: 100 200 333 444 HTH Billy --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.510 / Virus Database: 307 - Release Date: 8/14/2003 From artful at rogers.com Mon Sep 1 16:33:26 2003 From: artful at rogers.com (Arthur Fuller) Date: Mon, 1 Sep 2003 14:33:26 -0700 Subject: [dba-SQLServer]Long date format in SQL Message-ID: Is there a convert or a cast (built-in) that produces an Access-style long date? I've been in BOL for an hour and cannot locate anything similar. TIA, Arthur --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.510 / Virus Database: 307 - Release Date: 8/14/2003 From stuart at lexacorp.com.pg Mon Sep 1 17:28:20 2003 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 02 Sep 2003 08:28:20 +1000 Subject: [dba-SQLServer]Long date format in SQL In-Reply-To: Message-ID: <3F5454A4.23117.217FFDC@localhost> On 1 Sep 2003 at 14:33, Arthur Fuller wrote: > Is there a convert or a cast (built-in) that produces an Access-style long > date? I've been in BOL for an hour and cannot locate anything similar. > Not AFAIK. The Long date format is determined by the your systems settings, but you can roll any date format you like using a mixture of DatePart() and DateName() functions -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From artful at rogers.com Mon Sep 1 23:02:17 2003 From: artful at rogers.com (Arthur Fuller) Date: Mon, 1 Sep 2003 21:02:17 -0700 Subject: [dba-SQLServer]Long date format in SQL In-Reply-To: <3F5454A4.23117.217FFDC@localhost> Message-ID: I figured as much. Just checking. Arthur -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com]On Behalf Of Stuart McLachlan Sent: Monday, September 01, 2003 3:28 PM To: dba-sqlserver at databaseadvisors.com Subject: Re: [dba-SQLServer]Long date format in SQL On 1 Sep 2003 at 14:33, Arthur Fuller wrote: > Is there a convert or a cast (built-in) that produces an Access-style long > date? I've been in BOL for an hour and cannot locate anything similar. > Not AFAIK. The Long date format is determined by the your systems settings, but you can roll any date format you like using a mixture of DatePart() and DateName() functions -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. _______________________________________________ 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.510 / Virus Database: 307 - Release Date: 8/14/2003 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.510 / Virus Database: 307 - Release Date: 8/14/2003 From JRojas at tnco-inc.com Tue Sep 2 14:30:30 2003 From: JRojas at tnco-inc.com (Joe Rojas) Date: Tue, 2 Sep 2003 15:30:30 -0400 Subject: [dba-SQLServer]Creating Objects in a stored procedure Message-ID: <806536912C472E4A9D6515DF2E57261E2394C0@mercury.tnco-inc.com> Hi All, Is it possible to create objects, for example an ADODB recordset, in a stored procedure? Thanks, Joe R. This electronic transmission is strictly confidential to TNCO, Inc. and intended solely for the addressee. It may contain information which is covered by legal, professional, or other privileges. If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy, or take any action in reliance on this transmission. If you have received this transmission in error, please notify the sender as soon as possible and destroy this message. While TNCO, Inc. uses virus protection, the recipient should check this email and any attachments for the presence of viruses. TNCO, Inc. accepts no liability for any damage caused by any virus transmitted by this email. From cjm at haleyaldrich.com Tue Sep 2 14:32:15 2003 From: cjm at haleyaldrich.com (McIsaac, Chris) Date: Tue, 2 Sep 2003 15:32:15 -0400 Subject: [dba-SQLServer]Creating Objects in a stored procedure Message-ID: <4EF5488E70C1E84EADF469B63C3C52AD2B900E@bosmail.haleyaldrich.com> See sp_OACreate in BOL... -----Original Message----- From: Joe Rojas [mailto:JRojas at tnco-inc.com] Sent: Tuesday, September 02, 2003 3:31 PM To: 'dba-sqlserver at databaseadvisors.com' Subject: [dba-SQLServer]Creating Objects in a stored procedure Hi All, Is it possible to create objects, for example an ADODB recordset, in a stored procedure? Thanks, Joe R. This electronic transmission is strictly confidential to TNCO, Inc. and intended solely for the addressee. It may contain information which is covered by legal, professional, or other privileges. If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy, or take any action in reliance on this transmission. If you have received this transmission in error, please notify the sender as soon as possible and destroy this message. While TNCO, Inc. uses virus protection, the recipient should check this email and any attachments for the presence of viruses. TNCO, Inc. accepts no liability for any damage caused by any virus transmitted by this email. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From selina at easydatabases.com.au Fri Sep 5 01:13:18 2003 From: selina at easydatabases.com.au (Selina Iddon) Date: Fri, 5 Sep 2003 16:13:18 +1000 Subject: [dba-SQLServer] Can't connect with ADO References: <806536912C472E4A9D6515DF2E57261E2394C0@mercury.tnco-inc.com> Message-ID: <00cd01c37374$cd472be0$6465000a@venus> Good Afternoon Everyone After spending HOURS on this, I really need to ask for your help. I have an Access 2K front end and ODBC connection to my SQL db. I am happily communicating using ODBC and DAO, but ADO just keeps returning me "Data source name not found and no default driver specified" every time I try and connect. I've tried 6 different connection strings and even made a UDL file (which tests successfully) and still no luck. All I'm really trying to do is get back the @@IDENTITY from an Insert string, but I need ADO to use the parameters. Any suggestions or alternatives would be really greatfully received. Best Regards Selina From mikedorism at ntelos.net Fri Sep 5 06:50:57 2003 From: mikedorism at ntelos.net (Mike and Doris Manning) Date: Fri, 5 Sep 2003 07:50:57 -0400 Subject: [dba-SQLServer] Can't connect with ADO In-Reply-To: <00cd01c37374$cd472be0$6465000a@venus> Message-ID: <005a01c373a3$fc4cf030$ef320cd8@hargrove.internal> Have you checked your MDAC version. You need to have at least MDAC 2.6 installed to work with SQL Server. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Selina Iddon Sent: Friday, September 05, 2003 2:13 AM To: dba-sqlserver at databaseadvisors.com Subject: [dba-SQLServer] Can't connect with ADO Good Afternoon Everyone After spending HOURS on this, I really need to ask for your help. I have an Access 2K front end and ODBC connection to my SQL db. I am happily communicating using ODBC and DAO, but ADO just keeps returning me "Data source name not found and no default driver specified" every time I try and connect. I've tried 6 different connection strings and even made a UDL file (which tests successfully) and still no luck. All I'm really trying to do is get back the @@IDENTITY from an Insert string, but I need ADO to use the parameters. Any suggestions or alternatives would be really greatfully received. Best Regards Selina _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From mikedorism at ntelos.net Fri Sep 5 06:51:14 2003 From: mikedorism at ntelos.net (Mike and Doris Manning) Date: Fri, 5 Sep 2003 07:51:14 -0400 Subject: [dba-SQLServer] Can't connect with ADO In-Reply-To: <00cd01c37374$cd472be0$6465000a@venus> Message-ID: <005b01c373a4$05999d50$ef320cd8@hargrove.internal> Have you checked your MDAC version? You need to have at least MDAC 2.6 installed to work with SQL Server. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Selina Iddon Sent: Friday, September 05, 2003 2:13 AM To: dba-sqlserver at databaseadvisors.com Subject: [dba-SQLServer] Can't connect with ADO Good Afternoon Everyone After spending HOURS on this, I really need to ask for your help. I have an Access 2K front end and ODBC connection to my SQL db. I am happily communicating using ODBC and DAO, but ADO just keeps returning me "Data source name not found and no default driver specified" every time I try and connect. I've tried 6 different connection strings and even made a UDL file (which tests successfully) and still no luck. All I'm really trying to do is get back the @@IDENTITY from an Insert string, but I need ADO to use the parameters. Any suggestions or alternatives would be really greatfully received. Best Regards Selina _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From selina at easydatabases.com.au Fri Sep 5 07:59:36 2003 From: selina at easydatabases.com.au (Selina Iddon) Date: Fri, 5 Sep 2003 22:59:36 +1000 Subject: [dba-SQLServer] Can't connect with ADO References: <005a01c373a3$fc4cf030$ef320cd8@hargrove.internal> Message-ID: <012b01c373ad$8fb77fd0$6465000a@venus> Thank you, I'm running MDAC 2.7. Cheers Selina ---------------------------------------------------------------------------- ---- Selina Iddon selina at easydatabases.com.au Ph: 0414 225 265 Easy Access Databases ----- Original Message ----- From: "Mike and Doris Manning" To: Sent: Friday, September 05, 2003 9:50 PM Subject: RE: [dba-SQLServer] Can't connect with ADO > Have you checked your MDAC version. You need to have at least MDAC 2.6 > installed to work with SQL Server. > > Doris Manning > Database Administrator > Hargrove Inc. > www.hargroveinc.com > > > -----Original Message----- > From: dba-sqlserver-bounces at databaseadvisors.com > [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Selina > Iddon > Sent: Friday, September 05, 2003 2:13 AM > To: dba-sqlserver at databaseadvisors.com > Subject: [dba-SQLServer] Can't connect with ADO > > > Good Afternoon Everyone > > After spending HOURS on this, I really need to ask for your help. I have an > Access 2K front end and ODBC connection to my SQL db. I am happily > communicating using ODBC and DAO, but ADO just keeps returning me "Data > source name not found and no default driver specified" every time I try and > connect. I've tried 6 different connection strings and even made a UDL file > (which tests successfully) and still no luck. All I'm really trying to do > is get back the @@IDENTITY from an Insert string, but I need ADO to use the > parameters. > > Any suggestions or alternatives would be really greatfully received. > > Best Regards > > Selina > > > _______________________________________________ > 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 my.lists at verizon.net Fri Sep 5 10:11:24 2003 From: my.lists at verizon.net (Francisco H Tapia) Date: Fri, 05 Sep 2003 08:11:24 -0700 Subject: [dba-SQLServer] Can't connect with ADO In-Reply-To: <012b01c373ad$8fb77fd0$6465000a@venus> References: <005a01c373a3$fc4cf030$ef320cd8@hargrove.internal> <012b01c373ad$8fb77fd0$6465000a@venus> Message-ID: <3F58A79C.3070308@verizon.net> Selina Iddon wrote: > Thank you, I'm running MDAC 2.7. > Cheers > Selina > > > ---------------------------------------------------------------------------- > ---- Selina Iddon selina at easydatabases.com.au Ph: 0414 225 265 Easy Access > Databases > ----- Original Message ----- > From: "Mike and Doris Manning" > To: > Sent: Friday, September 05, 2003 9:50 PM > Subject: RE: [dba-SQLServer] Can't connect with ADO > > > >>Have you checked your MDAC version. You need to have at least MDAC 2.6 >>installed to work with SQL Server. >> Thank you? the problem is solved? or thank you but you are using 2.7 and the problem persists :) -- -Francisco Inflammable means flammable? What a country! From martyconnelly at shaw.ca Fri Sep 5 19:01:23 2003 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 05 Sep 2003 17:01:23 -0700 Subject: [dba-SQLServer] Can't connect with ADO References: <005a01c373a3$fc4cf030$ef320cd8@hargrove.internal> <012b01c373ad$8fb77fd0$6465000a@venus> <3F58A79C.3070308@verizon.net> Message-ID: <3F5923D3.7090402@shaw.ca> Can you show us your connection string code should look like one of the following For Standard Security oConn.Open "Provider=sqloledb;" & _ "Data Source=myServerName;" & _ "Initial Catalog=myDatabaseName;" & _ "User Id=myUsername;" & _ "Password=myPassword" For a Trusted Connection Windows Authentication oConn.Open "Provider=sqloledb;" & _ "Data Source=myServerName;" & _ "Initial Catalog=myDatabaseName;" & _ "Integrated Security=SSPI" Francisco H Tapia wrote: > Selina Iddon wrote: > >> Thank you, I'm running MDAC 2.7. >> Cheers >> Selina >> >> >> ---------------------------------------------------------------------------- >> >> ---- Selina Iddon selina at easydatabases.com.au Ph: 0414 225 265 Easy >> Access >> Databases >> ----- Original Message ----- From: "Mike and Doris Manning" >> >> To: >> Sent: Friday, September 05, 2003 9:50 PM >> Subject: RE: [dba-SQLServer] Can't connect with ADO >> >> >> >>> Have you checked your MDAC version. You need to have at least MDAC 2.6 >>> installed to work with SQL Server. >>> > > Thank you? the problem is solved? or thank you but you are using 2.7 > and the problem persists :) > From knicholson at gpsx.net Mon Sep 8 13:39:09 2003 From: knicholson at gpsx.net (Nicholson, Karen) Date: Mon, 8 Sep 2003 13:39:09 -0500 Subject: [dba-SQLServer]C++ Help Message-ID: Do we have a group for C++ Help? I am getting put through the learning curve ringer, but it is great. Went from SQL to VB6 now to C++. Only problems are those hiccups you get between languages, little things that add gray hair. This is my C++ code for an OK, CANCEL button: { if (Application->MessageBox("Warning - You are About to Update the Rebate Pay Field","Warning",MB_OKCANCEL) != IDOK) {StoredProc1->Prepare(); StoredProc1->ExecProc(); } else { MessageBox,(NULL, "Records Not Updated", NULL, NULL); } } I don't think it is working - I don't get the message box I expect if the user selects cancel. Any thoughts? From jcolby at colbyconsulting.com Mon Sep 8 12:41:19 2003 From: jcolby at colbyconsulting.com (John Colby) Date: Mon, 8 Sep 2003 13:41:19 -0400 Subject: [dba-SQLServer]C++ Help In-Reply-To: Message-ID: It's been too long but first you have an uneven number of open curly brackets { vs closed curly brackets. Second, shouldn't the leading open bracket be behind the if? 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 Nicholson, Karen Sent: Monday, September 08, 2003 2:39 PM To: Dba-Sqlserver (E-mail) Subject: [dba-SQLServer]C++ Help Do we have a group for C++ Help? I am getting put through the learning curve ringer, but it is great. Went from SQL to VB6 now to C++. Only problems are those hiccups you get between languages, little things that add gray hair. This is my C++ code for an OK, CANCEL button: { if (Application->MessageBox("Warning - You are About to Update the Rebate Pay Field","Warning",MB_OKCANCEL) != IDOK) {StoredProc1->Prepare(); StoredProc1->ExecProc(); } else { MessageBox,(NULL, "Records Not Updated", NULL, NULL); } } I don't think it is working - I don't get the message box I expect if the user selects cancel. Any thoughts? _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From knicholson at gpsx.net Mon Sep 8 13:52:47 2003 From: knicholson at gpsx.net (Nicholson, Karen) Date: Mon, 8 Sep 2003 13:52:47 -0500 Subject: [dba-SQLServer]C++ Help Message-ID: 6 squigleys, no error message, except I dont get my second message box stated in the else area. void __fastcall TfrmMainMenu::btnMarkPaidClick(TObject *Sender) { if (Application->MessageBox("Warning - You are About to Update the Rebate Pay Field","Warning",MB_OKCANCEL) != IDOK) {StoredProc1->Prepare(); StoredProc1->ExecProc(); } else { MessageBox,(NULL, "Records Not Updated", NULL, NULL); } } //-------------------------------------------------------------------------- - void __fastcall TfrmMainMenu::btnPayoutRptClick(TObject *Sender) { crpe2->ReportFileName = "c:\\KarenNicholson\\CPlusPlus\\QtrToDateRebatePay.rpt"; crpe2->PrintReport(); crpe2->PageZoom (100); } //-------------------------------------------------------------------------- - -----Original Message----- From: John Colby [mailto:jcolby at colbyconsulting.com] Sent: Monday, September 08, 2003 1:41 PM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]C++ Help It's been too long but first you have an uneven number of open curly brackets { vs closed curly brackets. Second, shouldn't the leading open bracket be behind the if? 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 Nicholson, Karen Sent: Monday, September 08, 2003 2:39 PM To: Dba-Sqlserver (E-mail) Subject: [dba-SQLServer]C++ Help Do we have a group for C++ Help? I am getting put through the learning curve ringer, but it is great. Went from SQL to VB6 now to C++. Only problems are those hiccups you get between languages, little things that add gray hair. This is my C++ code for an OK, CANCEL button: { if (Application->MessageBox("Warning - You are About to Update the Rebate Pay Field","Warning",MB_OKCANCEL) != IDOK) {StoredProc1->Prepare(); StoredProc1->ExecProc(); } else { MessageBox,(NULL, "Records Not Updated", NULL, NULL); } } I don't think it is working - I don't get the message box I expect if the user selects cancel. Any thoughts? _______________________________________________ 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 Susan.Klos at fldoe.org Mon Sep 8 12:51:15 2003 From: Susan.Klos at fldoe.org (Klos, Susan) Date: Mon, 8 Sep 2003 13:51:15 -0400 Subject: [dba-SQLServer]C++ Help Message-ID: <8213C1F49875D61195DA0002A5412A030FCC244A@mail.doe.state.fl.us> If you have the { before if, did you try the { before else instead of after it? -----Original Message----- From: Nicholson, Karen [mailto:knicholson at gpsx.net] Sent: Monday, September 08, 2003 2:53 PM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]C++ Help 6 squigleys, no error message, except I dont get my second message box stated in the else area. void __fastcall TfrmMainMenu::btnMarkPaidClick(TObject *Sender) { if (Application->MessageBox("Warning - You are About to Update the Rebate Pay Field","Warning",MB_OKCANCEL) != IDOK) {StoredProc1->Prepare(); StoredProc1->ExecProc(); } else { MessageBox,(NULL, "Records Not Updated", NULL, NULL); } } //-------------------------------------------------------------------------- - void __fastcall TfrmMainMenu::btnPayoutRptClick(TObject *Sender) { crpe2->ReportFileName = "c:\\KarenNicholson\\CPlusPlus\\QtrToDateRebatePay.rpt"; crpe2->PrintReport(); crpe2->PageZoom (100); } //-------------------------------------------------------------------------- - -----Original Message----- From: John Colby [mailto:jcolby at colbyconsulting.com] Sent: Monday, September 08, 2003 1:41 PM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]C++ Help It's been too long but first you have an uneven number of open curly brackets { vs closed curly brackets. Second, shouldn't the leading open bracket be behind the if? 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 Nicholson, Karen Sent: Monday, September 08, 2003 2:39 PM To: Dba-Sqlserver (E-mail) Subject: [dba-SQLServer]C++ Help Do we have a group for C++ Help? I am getting put through the learning curve ringer, but it is great. Went from SQL to VB6 now to C++. Only problems are those hiccups you get between languages, little things that add gray hair. This is my C++ code for an OK, CANCEL button: { if (Application->MessageBox("Warning - You are About to Update the Rebate Pay Field","Warning",MB_OKCANCEL) != IDOK) {StoredProc1->Prepare(); StoredProc1->ExecProc(); } else { MessageBox,(NULL, "Records Not Updated", NULL, NULL); } } I don't think it is working - I don't get the message box I expect if the user selects cancel. Any thoughts? _______________________________________________ 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 Susan.Klos at fldoe.org Mon Sep 8 12:52:02 2003 From: Susan.Klos at fldoe.org (Klos, Susan) Date: Mon, 8 Sep 2003 13:52:02 -0400 Subject: [dba-SQLServer]C++ Help Message-ID: <8213C1F49875D61195DA0002A5412A030FCC244B@mail.doe.state.fl.us> My daughter is really the C++ expert in our family and if you do not get an answer before I get in touch with her, I will forward your question to her. -----Original Message----- From: Nicholson, Karen [mailto:knicholson at gpsx.net] Sent: Monday, September 08, 2003 2:53 PM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]C++ Help 6 squigleys, no error message, except I dont get my second message box stated in the else area. void __fastcall TfrmMainMenu::btnMarkPaidClick(TObject *Sender) { if (Application->MessageBox("Warning - You are About to Update the Rebate Pay Field","Warning",MB_OKCANCEL) != IDOK) {StoredProc1->Prepare(); StoredProc1->ExecProc(); } else { MessageBox,(NULL, "Records Not Updated", NULL, NULL); } } //-------------------------------------------------------------------------- - void __fastcall TfrmMainMenu::btnPayoutRptClick(TObject *Sender) { crpe2->ReportFileName = "c:\\KarenNicholson\\CPlusPlus\\QtrToDateRebatePay.rpt"; crpe2->PrintReport(); crpe2->PageZoom (100); } //-------------------------------------------------------------------------- - -----Original Message----- From: John Colby [mailto:jcolby at colbyconsulting.com] Sent: Monday, September 08, 2003 1:41 PM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]C++ Help It's been too long but first you have an uneven number of open curly brackets { vs closed curly brackets. Second, shouldn't the leading open bracket be behind the if? 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 Nicholson, Karen Sent: Monday, September 08, 2003 2:39 PM To: Dba-Sqlserver (E-mail) Subject: [dba-SQLServer]C++ Help Do we have a group for C++ Help? I am getting put through the learning curve ringer, but it is great. Went from SQL to VB6 now to C++. Only problems are those hiccups you get between languages, little things that add gray hair. This is my C++ code for an OK, CANCEL button: { if (Application->MessageBox("Warning - You are About to Update the Rebate Pay Field","Warning",MB_OKCANCEL) != IDOK) {StoredProc1->Prepare(); StoredProc1->ExecProc(); } else { MessageBox,(NULL, "Records Not Updated", NULL, NULL); } } I don't think it is working - I don't get the message box I expect if the user selects cancel. Any thoughts? _______________________________________________ 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 jbarash at bellatlantic.net Mon Sep 8 13:19:02 2003 From: jbarash at bellatlantic.net (James Barash) Date: Mon, 08 Sep 2003 14:19:02 -0400 Subject: [dba-SQLServer]C++ Help In-Reply-To: Message-ID: I think you have your logic backwards. Your if statement is testing for Not IDOK for the true part of the if and IDOK for the else part. You should be testing for == IDOK James Barash -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Monday, September 08, 2003 2:53 PM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]C++ Help 6 squigleys, no error message, except I dont get my second message box stated in the else area. void __fastcall TfrmMainMenu::btnMarkPaidClick(TObject *Sender) { if (Application->MessageBox("Warning - You are About to Update the Rebate Pay Field","Warning",MB_OKCANCEL) != IDOK) {StoredProc1->Prepare(); StoredProc1->ExecProc(); } else { MessageBox,(NULL, "Records Not Updated", NULL, NULL); } } //---------------------------------------------------------------------- ---- - void __fastcall TfrmMainMenu::btnPayoutRptClick(TObject *Sender) { crpe2->ReportFileName = "c:\\KarenNicholson\\CPlusPlus\\QtrToDateRebatePay.rpt"; crpe2->PrintReport(); crpe2->PageZoom (100); } //---------------------------------------------------------------------- ---- - -----Original Message----- From: John Colby [mailto:jcolby at colbyconsulting.com] Sent: Monday, September 08, 2003 1:41 PM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]C++ Help It's been too long but first you have an uneven number of open curly brackets { vs closed curly brackets. Second, shouldn't the leading open bracket be behind the if? 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 Nicholson, Karen Sent: Monday, September 08, 2003 2:39 PM To: Dba-Sqlserver (E-mail) Subject: [dba-SQLServer]C++ Help Do we have a group for C++ Help? I am getting put through the learning curve ringer, but it is great. Went from SQL to VB6 now to C++. Only problems are those hiccups you get between languages, little things that add gray hair. This is my C++ code for an OK, CANCEL button: { if (Application->MessageBox("Warning - You are About to Update the Rebate Pay Field","Warning",MB_OKCANCEL) != IDOK) {StoredProc1->Prepare(); StoredProc1->ExecProc(); } else { MessageBox,(NULL, "Records Not Updated", NULL, NULL); } } I don't think it is working - I don't get the message box I expect if the user selects cancel. Any thoughts? _______________________________________________ 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 Mon Sep 8 13:23:24 2003 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 08 Sep 2003 11:23:24 -0700 Subject: [dba-SQLServer] Can't connect with ADO References: <005a01c373a3$fc4cf030$ef320cd8@hargrove.internal> <012b01c373ad$8fb77fd0$6465000a@venus> <3F58A79C.3070308@verizon.net> <3F5923D3.7090402@shaw.ca> Message-ID: <3F5CC91C.4080904@shaw.ca> Here are some url's for verifying type of SQL authentication installed By default, for Windows NT and later, MSDE installs by using Windows Authentication. On computers running Windows 98, MSDE uses SQL authentication. http://support.microsoft.com/default.aspx?scid=kb;EN-US;322336#4 http://support.microsoft.com/default.aspx?scid=kb%3Ben-us%3B325022#9 Using Microsoft Access 2002 with MSDE 2000 http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnacc2k2/html/odc_msdeintro.asp MartyConnelly wrote: > Can you show us your connection string code should look like one of > the following > > For Standard Security > > oConn.Open "Provider=sqloledb;" & _ > "Data Source=myServerName;" & _ > "Initial Catalog=myDatabaseName;" & _ > "User Id=myUsername;" & _ > "Password=myPassword" > > For a Trusted Connection Windows Authentication > > oConn.Open "Provider=sqloledb;" & _ > "Data Source=myServerName;" & _ > "Initial Catalog=myDatabaseName;" & _ > "Integrated Security=SSPI" > > > > Francisco H Tapia wrote: > >> Selina Iddon wrote: >> >>> Thank you, I'm running MDAC 2.7. >>> Cheers >>> Selina >>> >>> >>> ---------------------------------------------------------------------------- >>> >>> ---- Selina Iddon selina at easydatabases.com.au Ph: 0414 225 265 Easy >>> Access >>> Databases >>> ----- Original Message ----- From: "Mike and Doris Manning" >>> >>> To: >>> Sent: Friday, September 05, 2003 9:50 PM >>> Subject: RE: [dba-SQLServer] Can't connect with ADO >>> >>> >>> >>>> Have you checked your MDAC version. You need to have at least MDAC >>>> 2.6 >>>> installed to work with SQL Server. >>>> >> >> Thank you? the problem is solved? or thank you but you are using 2.7 >> and the problem persists :) >> > > > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > > From knicholson at gpsx.net Mon Sep 8 15:27:12 2003 From: knicholson at gpsx.net (Nicholson, Karen) Date: Mon, 8 Sep 2003 15:27:12 -0500 Subject: [dba-SQLServer]C++ Help Message-ID: You were right, I did have it bass ackwards. Made a bit of progress. With the code below, my procedure runs correctly (the second part) but I still can't get the first message, Records Not Updated to show. But I know it is not sql-ing it on me. I continue to sift through these books, I wrote the application in an hour, now just adding the little nice things is going to drive me to squiggly land. { if (Application->MessageBox("Warning - You are About to Update the Rebate Pay Field","Warning",MB_OKCANCEL) != IDOK) {(MessageBox,(NULL, "Records Not Updated", NULL, NULL)); } else { StoredProc1->Prepare(); StoredProc1->ExecProc(); } } -----Original Message----- From: James Barash [mailto:jbarash at bellatlantic.net] Sent: Monday, September 08, 2003 2:19 PM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]C++ Help I think you have your logic backwards. Your if statement is testing for Not IDOK for the true part of the if and IDOK for the else part. You should be testing for == IDOK James Barash -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Monday, September 08, 2003 2:53 PM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]C++ Help 6 squigleys, no error message, except I dont get my second message box stated in the else area. void __fastcall TfrmMainMenu::btnMarkPaidClick(TObject *Sender) { if (Application->MessageBox("Warning - You are About to Update the Rebate Pay Field","Warning",MB_OKCANCEL) != IDOK) {StoredProc1->Prepare(); StoredProc1->ExecProc(); } else { MessageBox,(NULL, "Records Not Updated", NULL, NULL); } } //---------------------------------------------------------------------- ---- - void __fastcall TfrmMainMenu::btnPayoutRptClick(TObject *Sender) { crpe2->ReportFileName = "c:\\KarenNicholson\\CPlusPlus\\QtrToDateRebatePay.rpt"; crpe2->PrintReport(); crpe2->PageZoom (100); } //---------------------------------------------------------------------- ---- - -----Original Message----- From: John Colby [mailto:jcolby at colbyconsulting.com] Sent: Monday, September 08, 2003 1:41 PM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]C++ Help It's been too long but first you have an uneven number of open curly brackets { vs closed curly brackets. Second, shouldn't the leading open bracket be behind the if? 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 Nicholson, Karen Sent: Monday, September 08, 2003 2:39 PM To: Dba-Sqlserver (E-mail) Subject: [dba-SQLServer]C++ Help Do we have a group for C++ Help? I am getting put through the learning curve ringer, but it is great. Went from SQL to VB6 now to C++. Only problems are those hiccups you get between languages, little things that add gray hair. This is my C++ code for an OK, CANCEL button: { if (Application->MessageBox("Warning - You are About to Update the Rebate Pay Field","Warning",MB_OKCANCEL) != IDOK) {StoredProc1->Prepare(); StoredProc1->ExecProc(); } else { MessageBox,(NULL, "Records Not Updated", NULL, NULL); } } I don't think it is working - I don't get the message box I expect if the user selects cancel. Any thoughts? _______________________________________________ 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 MarkBoyd at McBeeAssociates.com Mon Sep 8 16:01:27 2003 From: MarkBoyd at McBeeAssociates.com (Mark Boyd) Date: Mon, 8 Sep 2003 17:01:27 -0400 Subject: [dba-SQLServer]Database is Suspect Message-ID: I tried connecting to a SQL2K database, but received the following error: "Error 926 - Database cannot be opened. It has been marked SUSPECT by recovery". This database is approximately 385GB, so we have no backup to restore. Any ideas? Mark Boyd Sr. Systems Analyst McBee Associates, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From shait at mindspring.com Mon Sep 8 16:35:04 2003 From: shait at mindspring.com (Stephen Hait) Date: Mon, 8 Sep 2003 17:35:04 -0400 Subject: [dba-SQLServer]Database is Suspect In-Reply-To: Message-ID: <3F5CBDC8.15532.AE6C06F@localhost> You might check the repair options of DBCC CHECKDB. Regards, Stephen > I tried connecting to a SQL2K database, but received the following > error: "Error 926 - Database cannot be opened. It has been marked > SUSPECT by recovery". > > This database is approximately 385GB, so we have no backup to > restore. > > Any ideas? > > > > Mark Boyd > > Sr. Systems Analyst > > McBee Associates, Inc. > > > > From ebarro at afsweb.com Mon Sep 8 18:00:39 2003 From: ebarro at afsweb.com (Eric Barro) Date: Mon, 8 Sep 2003 16:00:39 -0700 Subject: [dba-SQLServer]ad hoc querying In-Reply-To: <3F5CBDC8.15532.AE6C06F@localhost> Message-ID: Does anyone have code that does the following? Allow a user to select fields from a GUI to create a SQL statement that can be saved as a query that the user can select from a pick list to run the query? --- Eric Barro Senior Systems Analyst Advanced Field Services (208) 772-7060 http://www.afsweb.com --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.512 / Virus Database: 309 - Release Date: 8/19/2003 From my.lists at verizon.net Mon Sep 8 18:31:52 2003 From: my.lists at verizon.net (Francisco H Tapia) Date: Mon, 08 Sep 2003 16:31:52 -0700 Subject: [dba-SQLServer]ad hoc querying In-Reply-To: References: Message-ID: <3F5D1168.6090208@verizon.net> Eric Barro wrote: > Does anyone have code that does the following? > > Allow a user to select fields from a GUI to create a SQL statement that can be saved as a query that the user can select from a pick list to run the query? > check this site out for a template on Query by form... http://www.rogerjcarlson.com -- -Francisco Leela: "Great. We're two days from earth with no food." Bender: "Problem solved. You two fight to the death and I'll cook the From my.lists at verizon.net Tue Sep 9 14:33:29 2003 From: my.lists at verizon.net (Francisco H Tapia) Date: Tue, 09 Sep 2003 12:33:29 -0700 Subject: [dba-SQLServer][Fwd: Web Chat Notice - TODAY -] Message-ID: <3F5E2B09.2000600@verizon.net> Wanted to make sure you knew about this free web chat with Microsoft today - Query Optimization and Tuning Join Microsoft and get the answers to your questions on best practices for optimizing your queries, using the various tools offered to see what's happening under the covers as SQL Server processes your request. Find out how to work with query plan or other topics that will help you optimize your applications and boost performance. September 9, 2003 1:00 - 2:00 P.M. Pacific time 4:00 - 5:00 P.M. Eastern time 20:00 - 21:00 GMT 21:00 - 22:00 BST http://communities2.microsoft.com/home/chatroom.aspx?siteid=34000015 -- -Francisco "One thing a computer can do that most humans can't is be sealed up in a cardboard box and sit in a warehouse." -Jack Handey From tuxedo_man at hotmail.com Tue Sep 9 20:18:35 2003 From: tuxedo_man at hotmail.com (Billy Pang) Date: Wed, 10 Sep 2003 01:18:35 +0000 Subject: [dba-SQLServer][Fwd: Web Chat Notice - TODAY -] Message-ID: I missed this web chat. is there an available transcript on it? >From: Francisco H Tapia >Reply-To: dba-sqlserver at databaseadvisors.com >To: "dba-SQLServer at databaseadvisors.com" > >Subject: [dba-SQLServer][Fwd: Web Chat Notice - TODAY -] >Date: Tue, 09 Sep 2003 12:33:29 -0700 > > >Wanted to make sure you knew about this free web chat with Microsoft >today - > >Query Optimization and Tuning >Join Microsoft and get the answers to your questions on best practices for >optimizing your queries, using the various tools offered to see what's >happening under the covers as SQL Server processes your request. Find out >how to work with query plan or other topics that will help you optimize >your applications and boost performance. > >September 9, 2003 >1:00 - 2:00 P.M. Pacific time >4:00 - 5:00 P.M. Eastern time >20:00 - 21:00 GMT >21:00 - 22:00 BST > >http://communities2.microsoft.com/home/chatroom.aspx?siteid=34000015 > >-- >-Francisco > "One thing a computer can do that most humans can't is be sealed up in a >cardboard box and sit in a warehouse." -Jack Handey > >_______________________________________________ >dba-SQLServer mailing list >dba-SQLServer at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-sqlserver >http://www.databaseadvisors.com > _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From sgeller at cce.umn.edu Wed Sep 10 08:26:10 2003 From: sgeller at cce.umn.edu (Susan Geller) Date: Wed, 10 Sep 2003 08:26:10 -0500 Subject: [dba-SQLServer][Fwd: Web Chat Notice - TODAY -] Message-ID: Billy, I actually attended this session about a year ago and there was a white paper you could download that went with it and that had even more info than the session. This was one of a series of 4 on optimization and I found it very useful. --Susan -----Original Message----- From: Billy Pang [mailto:tuxedo_man at hotmail.com] Sent: Tuesday, September 09, 2003 8:19 PM To: dba-sqlserver at databaseadvisors.com Subject: Re: [dba-SQLServer][Fwd: Web Chat Notice - TODAY -] I missed this web chat. is there an available transcript on it? >From: Francisco H Tapia >Reply-To: dba-sqlserver at databaseadvisors.com >To: "dba-SQLServer at databaseadvisors.com" > >Subject: [dba-SQLServer][Fwd: Web Chat Notice - TODAY -] >Date: Tue, 09 Sep 2003 12:33:29 -0700 > > >Wanted to make sure you knew about this free web chat with Microsoft >today - > >Query Optimization and Tuning >Join Microsoft and get the answers to your questions on best practices >for >optimizing your queries, using the various tools offered to see what's >happening under the covers as SQL Server processes your request. Find out >how to work with query plan or other topics that will help you optimize >your applications and boost performance. > >September 9, 2003 >1:00 - 2:00 P.M. Pacific time >4:00 - 5:00 P.M. Eastern time >20:00 - 21:00 GMT >21:00 - 22:00 BST > >http://communities2.microsoft.com/home/chatroom.aspx?siteid=34000015 > >-- >-Francisco > "One thing a computer can do that most humans can't is be sealed up in >a >cardboard box and sit in a warehouse." -Jack Handey > >_______________________________________________ >dba-SQLServer mailing list >dba-SQLServer at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-sqlserver >http://www.databaseadvisors.com > _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From MarkBoyd at McBeeAssociates.com Wed Sep 10 08:28:37 2003 From: MarkBoyd at McBeeAssociates.com (Mark Boyd) Date: Wed, 10 Sep 2003 09:28:37 -0400 Subject: [dba-SQLServer]Database is Suspect Message-ID: Thanks Stephen. I contacted Microsoft support, and after a lot of tuning, CheckDB ended up repairing the errors. Thanks for the suggestion. Mark -----Original Message----- From: Stephen Hait [mailto:shait at mindspring.com] Sent: Monday, September 08, 2003 5:35 PM To: dba-sqlserver at databaseadvisors.com Subject: Re: [dba-SQLServer]Database is Suspect You might check the repair options of DBCC CHECKDB. Regards, Stephen > I tried connecting to a SQL2K database, but received the following > error: "Error 926 - Database cannot be opened. It has been marked > SUSPECT by recovery". > > This database is approximately 385GB, so we have no backup to > restore. > > Any ideas? > > > > Mark Boyd > > Sr. Systems Analyst > > McBee Associates, Inc. > > > > _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From my.lists at verizon.net Wed Sep 10 10:06:25 2003 From: my.lists at verizon.net (Francisco H Tapia) Date: Wed, 10 Sep 2003 08:06:25 -0700 Subject: [dba-SQLServer][Fwd: Web Chat Notice - TODAY -] In-Reply-To: References: Message-ID: <3F5F3DF1.1040802@verizon.net> yes, and I think about a week or two from now, same link IIRC... -- -Francisco Worst.. sig.. Evar! Billy Pang wrote: > I missed this web chat. is there an available transcript on it? > > > >> From: Francisco H Tapia >> Reply-To: dba-sqlserver at databaseadvisors.com >> To: "dba-SQLServer at databaseadvisors.com" >> >> Subject: [dba-SQLServer][Fwd: Web Chat Notice - TODAY -] >> Date: Tue, 09 Sep 2003 12:33:29 -0700 >> >> >> Wanted to make sure you knew about this free web chat with Microsoft >> today - >> >> Query Optimization and Tuning >> Join Microsoft and get the answers to your questions on best practices >> for optimizing your queries, using the various tools offered to see >> what's happening under the covers as SQL Server processes your >> request. Find out how to work with query plan or other topics that >> will help you optimize your applications and boost performance. >> >> September 9, 2003 >> 1:00 - 2:00 P.M. Pacific time >> 4:00 - 5:00 P.M. Eastern time >> 20:00 - 21:00 GMT >> 21:00 - 22:00 BST >> >> http://communities2.microsoft.com/home/chatroom.aspx?siteid=34000015 >> >> -- >> -Francisco >> "One thing a computer can do that most humans can't is be sealed >> up in a cardboard box and sit in a warehouse." -Jack Handey From davide at dalyn.co.nz Wed Sep 10 20:19:25 2003 From: davide at dalyn.co.nz (David Emerson) Date: Thu, 11 Sep 2003 13:19:25 +1200 Subject: [dba-SQLServer]Sproc - Selecting from select statement Message-ID: <5.2.0.9.0.20030911131135.00b41820@mail.dalyn.co.nz> I am trying to use a select statement as the source of another select statement in a Sproc. The following statement works - SELECT GateIDNo, MAX(MDQ) AS MaxMDQ, MAX(MDQDate) AS OldMDQDate FROM dbo.tblGateStationMDQ WHERE MDQ <> 0 GROUP BY GateIDNo HAVING (MAX(MDQDate) < '20031001') But when I do the following - SELECT @qs = 'SELECT GateIDNo, MaxMDQ, OldMDQDate FROM (SELECT GateIDNo, MAX(MDQ) AS MaxMDQ, MAX(MDQDate) AS OldMDQDate FROM dbo.tblGateStationMDQ WHERE MDQ <> 0 GROUP BY GateIDNo HAVING (MAX(MDQDate) < ''20031001''))' I get the following error - Server: Msg 170, Level 15, State 1, Line 6 Line 6: Incorrect syntax near ')'. Using Print (@qs) I get - SELECT GateIDNo, MaxMDQ, OldMDQDate FROM (SELECT GateIDNo, MAX(MDQ) AS MaxMDQ, MAX(MDQDate) as OldMDQDate FROM dbo.tblGateStationMDQ WHERE MDQ <> 0 GROUP BY GateIDNo HAVING (MAX(MDQDate) < '20031001')) Any suggestions? Regards David Emerson DALYN Software Ltd 25b Cunliffe St, Johnsonville Wellington, New Zealand Ph/Fax (877) 456-1205 -------------- next part -------------- An HTML attachment was scrubbed... URL: From davide at dalyn.co.nz Wed Sep 10 20:58:46 2003 From: davide at dalyn.co.nz (David Emerson) Date: Thu, 11 Sep 2003 13:58:46 +1200 Subject: [dba-SQLServer]Sproc - Selecting from select statement In-Reply-To: <5.2.0.9.0.20030911131135.00b41820@mail.dalyn.co.nz> Message-ID: <5.2.0.9.0.20030911135641.00b2e2f8@mail.dalyn.co.nz> I have also tried the following but with the same error message - SELECT GateIDNo, MaxMDQ, OldMDQDate FROM (SELECT GateIDNo, MAX(MDQ) AS MaxMDQ, MAX(MDQDate) AS OldMDQDate FROM dbo.tblGateStationMDQ WHERE MDQ <> 0 GROUP BY GateIDNo HAVING (MAX(MDQDate) < '20031001')) David At 11/09/2003, you wrote: >I am trying to use a select statement as the source of another select >statement in a Sproc. > >The following statement works - > >SELECT GateIDNo, MAX(MDQ) AS MaxMDQ, MAX(MDQDate) AS OldMDQDate > FROM dbo.tblGateStationMDQ > WHERE MDQ <> 0 > GROUP BY GateIDNo > HAVING (MAX(MDQDate) < '20031001') > >But when I do the following - > >SELECT @qs = 'SELECT GateIDNo, MaxMDQ, OldMDQDate > FROM (SELECT GateIDNo, MAX(MDQ) AS MaxMDQ, MAX(MDQDate) AS OldMDQDate > FROM dbo.tblGateStationMDQ > WHERE MDQ <> 0 > GROUP BY GateIDNo > HAVING (MAX(MDQDate) < ''20031001''))' > >I get the following error - > >Server: Msg 170, Level 15, State 1, Line 6 >Line 6: Incorrect syntax near ')'. > >Using Print (@qs) I get - > >SELECT GateIDNo, MaxMDQ, OldMDQDate > FROM (SELECT GateIDNo, MAX(MDQ) AS MaxMDQ, MAX(MDQDate) as OldMDQDate > FROM dbo.tblGateStationMDQ > WHERE MDQ <> 0 > GROUP BY GateIDNo > HAVING (MAX(MDQDate) < '20031001')) > >Any suggestions? > >Regards > >David Emerson >DALYN Software Ltd >25b Cunliffe St, Johnsonville >Wellington, New Zealand >Ph/Fax (877) 456-1205 >_______________________________________________ >dba-SQLServer mailing list >dba-SQLServer at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-sqlserver >http://www.databaseadvisors.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From davide at dalyn.co.nz Wed Sep 10 22:46:55 2003 From: davide at dalyn.co.nz (David Emerson) Date: Thu, 11 Sep 2003 15:46:55 +1200 Subject: [dba-SQLServer]Sproc - Selecting from select statement In-Reply-To: <657FB70438B7D311AF320090279C1801026D7B95@EXCHMAIL> Message-ID: <5.2.0.9.0.20030911152735.00b4dd78@mail.dalyn.co.nz> Thanks for your response. The problem WAS aliasing. David At 10/09/2003, you wrote: >Also, you arent aliasing the inner Select statement: > >SELECT @qs = 'SELECT A.GateIDNo, A.MaxMDQ, A.OldMDQDate > FROM (SELECT GateIDNo, MAX(MDQ) AS MaxMDQ, MAX(MDQDate) AS >OldMDQDate > FROM dbo.tblGateStationMDQ > WHERE MDQ <> 0 > GROUP BY GateIDNo > HAVING (MAX(MDQDate) < ''20031001'')) AS A' > >although I don't think that its really the problem. >David McAfee >-----Original Message----- >From: dba-sqlserver-bounces at databaseadvisors.com >[mailto:dba-sqlserver-bounces at databaseadvisors.com]On Behalf Of David >Emerson >Sent: Wednesday, September 10, 2003 6:19 PM >To: dba-SQLServer at databaseadvisors.com >Subject: [dba-SQLServer]Sproc - Selecting from select statement > > >I am trying to use a select statement as the source of another select >statement in a Sproc. > >The following statement works - > >SELECT GateIDNo, MAX(MDQ) AS MaxMDQ, MAX(MDQDate) AS OldMDQDate > FROM dbo.tblGateStationMDQ > WHERE MDQ <> 0 > GROUP BY GateIDNo > HAVING (MAX(MDQDate) < '20031001') > >But when I do the following - > >SELECT @qs = 'SELECT GateIDNo, MaxMDQ, OldMDQDate > FROM (SELECT GateIDNo, MAX(MDQ) AS MaxMDQ, MAX(MDQDate) AS >OldMDQDate > FROM dbo.tblGateStationMDQ > WHERE MDQ <> 0 > GROUP BY GateIDNo > HAVING (MAX(MDQDate) < ''20031001''))' > >I get the following error - > >Server: Msg 170, Level 15, State 1, Line 6 >Line 6: Incorrect syntax near ')'. > >Using Print (@qs) I get - > >SELECT GateIDNo, MaxMDQ, OldMDQDate > FROM (SELECT GateIDNo, MAX(MDQ) AS MaxMDQ, MAX(MDQDate) as >OldMDQDate > FROM dbo.tblGateStationMDQ > WHERE MDQ <> 0 > GROUP BY GateIDNo > HAVING (MAX(MDQDate) < '20031001')) > >Any suggestions? > >Regards > >David Emerson >DALYN Software Ltd >25b Cunliffe St, Johnsonville >Wellington, New Zealand >Ph/Fax (877) 456-1205 From mikedorism at ntelos.net Thu Sep 11 05:25:18 2003 From: mikedorism at ntelos.net (Mike and Doris Manning) Date: Thu, 11 Sep 2003 06:25:18 -0400 Subject: [dba-SQLServer]Sproc - Selecting from select statement In-Reply-To: <5.2.0.9.0.20030911131135.00b41820@mail.dalyn.co.nz> Message-ID: <000001c3784f$0380d470$ed320cd8@hargrove.internal> Maybe it would help if you would explain more about why you are trying to do this. How is "@qs" declared and what are you trying to do with it? Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of David Emerson Sent: Wednesday, September 10, 2003 9:19 PM To: dba-SQLServer at databaseadvisors.com Subject: [dba-SQLServer]Sproc - Selecting from select statement I am trying to use a select statement as the source of another select statement in a Sproc. The following statement works - SELECT GateIDNo, MAX(MDQ) AS MaxMDQ, MAX(MDQDate) AS OldMDQDate FROM dbo.tblGateStationMDQ WHERE MDQ <> 0 GROUP BY GateIDNo HAVING (MAX(MDQDate) < '20031001') But when I do the following - SELECT @qs = 'SELECT GateIDNo, MaxMDQ, OldMDQDate FROM (SELECT GateIDNo, MAX(MDQ) AS MaxMDQ, MAX(MDQDate) AS OldMDQDate FROM dbo.tblGateStationMDQ WHERE MDQ <> 0 GROUP BY GateIDNo HAVING (MAX(MDQDate) < ''20031001''))' I get the following error - Server: Msg 170, Level 15, State 1, Line 6 Line 6: Incorrect syntax near ')'. Using Print (@qs) I get - SELECT GateIDNo, MaxMDQ, OldMDQDate FROM (SELECT GateIDNo, MAX(MDQ) AS MaxMDQ, MAX(MDQDate) as OldMDQDate FROM dbo.tblGateStationMDQ WHERE MDQ <> 0 GROUP BY GateIDNo HAVING (MAX(MDQDate) < '20031001')) Any suggestions? Regards David Emerson DALYN Software Ltd 25b Cunliffe St, Johnsonville Wellington, New Zealand Ph/Fax (877) 456-1205 -------------- next part -------------- An HTML attachment was scrubbed... URL: From tuxedo_man at hotmail.com Thu Sep 11 11:57:07 2003 From: tuxedo_man at hotmail.com (Billy Pang) Date: Thu, 11 Sep 2003 16:57:07 +0000 Subject: [dba-SQLServer]Sproc - Selecting from select statement Message-ID: David: You need an alias for your subquery. Try the following... SELECT @qs = 'SELECT GateIDNo, MaxMDQ, OldMDQDate FROM (SELECT GateIDNo, MAX(MDQ) AS MaxMDQ, MAX(MDQDate) AS OldMDQDate FROM dbo.tblGateStationMDQ WHERE MDQ <> 0 GROUP BY GateIDNo HAVING (MAX(MDQDate) < ''20031001'')) yo_table_name' HTH Billy >From: "Mike and Doris Manning" >Reply-To: dba-sqlserver at databaseadvisors.com >To: >Subject: RE: [dba-SQLServer]Sproc - Selecting from select statement >Date: Thu, 11 Sep 2003 06:25:18 -0400 > >Maybe it would help if you would explain more about why you are trying to >do >this. How is "@qs" declared and what are you trying to do with it? > >Doris Manning >Database Administrator >Hargrove Inc. >www.hargroveinc.com > >-----Original Message----- >From: dba-sqlserver-bounces at databaseadvisors.com >[mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of David >Emerson >Sent: Wednesday, September 10, 2003 9:19 PM >To: dba-SQLServer at databaseadvisors.com >Subject: [dba-SQLServer]Sproc - Selecting from select statement > > >I am trying to use a select statement as the source of another select >statement in a Sproc. > >The following statement works - > >SELECT GateIDNo, MAX(MDQ) AS MaxMDQ, MAX(MDQDate) AS OldMDQDate > FROM dbo.tblGateStationMDQ > WHERE MDQ <> 0 > GROUP BY GateIDNo > HAVING (MAX(MDQDate) < '20031001') > >But when I do the following - > >SELECT @qs = 'SELECT GateIDNo, MaxMDQ, OldMDQDate > FROM (SELECT GateIDNo, MAX(MDQ) AS MaxMDQ, MAX(MDQDate) AS >OldMDQDate > FROM dbo.tblGateStationMDQ > WHERE MDQ <> 0 > GROUP BY GateIDNo > HAVING (MAX(MDQDate) < ''20031001''))' > >I get the following error - > >Server: Msg 170, Level 15, State 1, Line 6 >Line 6: Incorrect syntax near ')'. > >Using Print (@qs) I get - > >SELECT GateIDNo, MaxMDQ, OldMDQDate > FROM (SELECT GateIDNo, MAX(MDQ) AS MaxMDQ, MAX(MDQDate) as >OldMDQDate > FROM dbo.tblGateStationMDQ > WHERE MDQ <> 0 > GROUP BY GateIDNo > HAVING (MAX(MDQDate) < '20031001')) > >Any suggestions? > > >Regards > >David Emerson >DALYN Software Ltd >25b Cunliffe St, Johnsonville >Wellington, New Zealand >Ph/Fax (877) 456-1205 > >_______________________________________________ >dba-SQLServer mailing list >dba-SQLServer at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-sqlserver >http://www.databaseadvisors.com > _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From davide at dalyn.co.nz Thu Sep 11 14:29:00 2003 From: davide at dalyn.co.nz (David Emerson) Date: Fri, 12 Sep 2003 07:29:00 +1200 Subject: [dba-SQLServer]Sproc - Selecting from select statement In-Reply-To: <000001c3784f$0380d470$ed320cd8@hargrove.internal> References: <5.2.0.9.0.20030911131135.00b41820@mail.dalyn.co.nz> Message-ID: <5.2.0.9.0.20030912072739.00b1a800@mail.dalyn.co.nz> I was using @qs to see what the statement would evaluate to. In the end it was aliasing the from select statement that caused the problem. Thanks for responding. David At 11/09/2003, you wrote: >Maybe it would help if you would explain more about why you are trying to >do this. How is "@qs" declared and what are you trying to do with it? > >Doris Manning >Database Administrator >Hargrove Inc. >www.hargroveinc.com >-----Original Message----- >From: dba-sqlserver-bounces at databaseadvisors.com >[mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of David Emerson >Sent: Wednesday, September 10, 2003 9:19 PM >To: dba-SQLServer at databaseadvisors.com >Subject: [dba-SQLServer]Sproc - Selecting from select statement > >I am trying to use a select statement as the source of another select >statement in a Sproc. > >The following statement works - > >SELECT GateIDNo, MAX(MDQ) AS MaxMDQ, MAX(MDQDate) AS OldMDQDate > FROM dbo.tblGateStationMDQ > WHERE MDQ <> 0 > GROUP BY GateIDNo > HAVING (MAX(MDQDate) < '20031001') > >But when I do the following - > >SELECT @qs = 'SELECT GateIDNo, MaxMDQ, OldMDQDate > FROM (SELECT GateIDNo, MAX(MDQ) AS MaxMDQ, MAX(MDQDate) AS OldMDQDate > FROM dbo.tblGateStationMDQ > WHERE MDQ <> 0 > GROUP BY GateIDNo > HAVING (MAX(MDQDate) < ''20031001''))' > >I get the following error - > >Server: Msg 170, Level 15, State 1, Line 6 >Line 6: Incorrect syntax near ')'. > >Using Print (@qs) I get - > >SELECT GateIDNo, MaxMDQ, OldMDQDate > FROM (SELECT GateIDNo, MAX(MDQ) AS MaxMDQ, MAX(MDQDate) as OldMDQDate > FROM dbo.tblGateStationMDQ > WHERE MDQ <> 0 > GROUP BY GateIDNo > HAVING (MAX(MDQDate) < '20031001')) > >Any suggestions? > >Regards > >David Emerson >DALYN Software Ltd >25b Cunliffe St, Johnsonville >Wellington, New Zealand >Ph/Fax (877) 456-1205 > >_______________________________________________ >dba-SQLServer mailing list >dba-SQLServer at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-sqlserver >http://www.databaseadvisors.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From tuxedo_man at hotmail.com Mon Sep 15 18:42:12 2003 From: tuxedo_man at hotmail.com (Billy Pang) Date: Mon, 15 Sep 2003 23:42:12 +0000 Subject: [dba-SQLServer]OT: combine multiple RTF files into one? Message-ID: Does anyone know how to combine multiple RTF files into one? I have about 100 RTF files and I need to combine them all into one gigantic file! Thanks in advance, Billy _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From artful at rogers.com Tue Sep 16 12:49:36 2003 From: artful at rogers.com (Arthur Fuller) Date: Tue, 16 Sep 2003 10:49:36 -0700 Subject: [dba-SQLServer]OT: combine multiple RTF files into one? In-Reply-To: Message-ID: Won't a dos command work? Are there special heads and tails to worry about? If not, then this should work: copy file1+file2+file3+etc output1.rtf You'll need to group them like this to avoid spilling over the command-line length. Or am I missing something? -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com]On Behalf Of Billy Pang Sent: Monday, September 15, 2003 4:42 PM To: dba-SQLServer at databaseadvisors.com Subject: [dba-SQLServer]OT: combine multiple RTF files into one? Does anyone know how to combine multiple RTF files into one? I have about 100 RTF files and I need to combine them all into one gigantic file! Thanks in advance, Billy _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail _______________________________________________ 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.510 / Virus Database: 307 - Release Date: 8/14/2003 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.510 / Virus Database: 307 - Release Date: 8/14/2003 From tuxedo_man at hotmail.com Tue Sep 16 14:26:25 2003 From: tuxedo_man at hotmail.com (Billy Pang) Date: Tue, 16 Sep 2003 19:26:25 +0000 Subject: [dba-SQLServer]OT: combine multiple RTF files into one? Message-ID: The DOS command won't work. There is some sort of Header and Footer in "RTF Code" and it looks different for each RTF file. When you combine 3 RTF files into one using the DOS command Copy and then open it in Word, it will only display the first RTF file. Any other suggestions? Billy >From: "Arthur Fuller" >Reply-To: dba-sqlserver at databaseadvisors.com >To: >Subject: RE: [dba-SQLServer]OT: combine multiple RTF files into one? >Date: Tue, 16 Sep 2003 10:49:36 -0700 > >Won't a dos command work? Are there special heads and tails to worry about? >If not, then this should work: > >copy file1+file2+file3+etc output1.rtf > >You'll need to group them like this to avoid spilling over the command-line >length. > >Or am I missing something? > > >-----Original Message----- >From: dba-sqlserver-bounces at databaseadvisors.com >[mailto:dba-sqlserver-bounces at databaseadvisors.com]On Behalf Of Billy >Pang >Sent: Monday, September 15, 2003 4:42 PM >To: dba-SQLServer at databaseadvisors.com >Subject: [dba-SQLServer]OT: combine multiple RTF files into one? > > >Does anyone know how to combine multiple RTF files into one? > >I have about 100 RTF files and I need to combine them all into one gigantic >file! > >Thanks in advance, >Billy > >_________________________________________________________________ >The new MSN 8: advanced junk mail protection and 2 months FREE* >http://join.msn.com/?page=features/junkmail > >_______________________________________________ >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.510 / Virus Database: 307 - Release Date: 8/14/2003 > >--- >Outgoing mail is certified Virus Free. >Checked by AVG anti-virus system (http://www.grisoft.com). >Version: 6.0.510 / Virus Database: 307 - Release Date: 8/14/2003 > > >_______________________________________________ >dba-SQLServer mailing list >dba-SQLServer at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-sqlserver >http://www.databaseadvisors.com > _________________________________________________________________ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus From Bryan_Carbonnell at cbc.ca Tue Sep 16 14:32:02 2003 From: Bryan_Carbonnell at cbc.ca (Bryan Carbonnell) Date: Tue, 16 Sep 2003 15:32:02 -0400 Subject: [dba-SQLServer]OT: combine multiple RTF files into one? Message-ID: Why not use Word. 1. Open the first one in Word. 2. Move to the end of the doc 3. Do an Insert|File... and select the next file 4. Go back to step 2 98 more times. You should be able to automate it quite easily if all the files are in the same directory. Bryan Carbonnell bryan_carbonnell at cbc.ca >>> tuxedo_man at hotmail.com 16-Sep-03 3:26:25 PM >>> The DOS command won't work. There is some sort of Header and Footer in "RTF Code" and it looks different for each RTF file. When you combine 3 RTF files into one using the DOS command Copy and then open it in Word, it will only display the first RTF file. Any other suggestions? Billy >From: "Arthur Fuller" >Reply-To: dba-sqlserver at databaseadvisors.com >To: >Subject: RE: [dba-SQLServer]OT: combine multiple RTF files into one? >Date: Tue, 16 Sep 2003 10:49:36 -0700 > >Won't a dos command work? Are there special heads and tails to worry about? >If not, then this should work: > >copy file1+file2+file3+etc output1.rtf > >You'll need to group them like this to avoid spilling over the command-line >length. > >Or am I missing something? > > >-----Original Message----- >From: dba-sqlserver-bounces at databaseadvisors.com >[mailto:dba-sqlserver-bounces at databaseadvisors.com]On Behalf Of Billy >Pang >Sent: Monday, September 15, 2003 4:42 PM >To: dba-SQLServer at databaseadvisors.com >Subject: [dba-SQLServer]OT: combine multiple RTF files into one? > > >Does anyone know how to combine multiple RTF files into one? > >I have about 100 RTF files and I need to combine them all into one gigantic >file! > >Thanks in advance, >Billy > >_________________________________________________________________ >The new MSN 8: advanced junk mail protection and 2 months FREE* >http://join.msn.com/?page=features/junkmail > >_______________________________________________ >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.510 / Virus Database: 307 - Release Date: 8/14/2003 > >--- >Outgoing mail is certified Virus Free. >Checked by AVG anti-virus system (http://www.grisoft.com). >Version: 6.0.510 / Virus Database: 307 - Release Date: 8/14/2003 > > >_______________________________________________ >dba-SQLServer mailing list >dba-SQLServer at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-sqlserver >http://www.databaseadvisors.com > _________________________________________________________________ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus _______________________________________________ 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 Tue Sep 16 15:45:13 2003 From: tuxedo_man at hotmail.com (Billy Pang) Date: Tue, 16 Sep 2003 20:45:13 +0000 Subject: [dba-SQLServer]OT: combine multiple RTF files into one? Message-ID: ok.... here is what I really want to do.. print out 100 word documents without having to open up each one... >From: "Bryan Carbonnell" >Reply-To: dba-sqlserver at databaseadvisors.com >To: >Subject: RE: [dba-SQLServer]OT: combine multiple RTF files into one? >Date: Tue, 16 Sep 2003 15:32:02 -0400 > >Why not use Word. > >1. Open the first one in Word. > >2. Move to the end of the doc > >3. Do an Insert|File... and select the next file > >4. Go back to step 2 98 more times. > >You should be able to automate it quite easily if all the files are in >the same directory. > >Bryan Carbonnell >bryan_carbonnell at cbc.ca > > > >>> tuxedo_man at hotmail.com 16-Sep-03 3:26:25 PM >>> >The DOS command won't work. There is some sort of Header and Footer in >"RTF >Code" and it looks different for each RTF file. When you combine 3 RTF > >files into one using the DOS command Copy and then open it in Word, it >will >only display the first RTF file. > >Any other suggestions? > >Billy > > > >From: "Arthur Fuller" > >Reply-To: dba-sqlserver at databaseadvisors.com > >To: > >Subject: RE: [dba-SQLServer]OT: combine multiple RTF files into one? > >Date: Tue, 16 Sep 2003 10:49:36 -0700 > > > >Won't a dos command work? Are there special heads and tails to worry >about? > >If not, then this should work: > > > >copy file1+file2+file3+etc output1.rtf > > > >You'll need to group them like this to avoid spilling over the >command-line > >length. > > > >Or am I missing something? > > > > > >-----Original Message----- > >From: dba-sqlserver-bounces at databaseadvisors.com > >[mailto:dba-sqlserver-bounces at databaseadvisors.com]On Behalf Of Billy > >Pang > >Sent: Monday, September 15, 2003 4:42 PM > >To: dba-SQLServer at databaseadvisors.com > >Subject: [dba-SQLServer]OT: combine multiple RTF files into one? > > > > > >Does anyone know how to combine multiple RTF files into one? > > > >I have about 100 RTF files and I need to combine them all into one >gigantic > >file! > > > >Thanks in advance, > >Billy > > > >_________________________________________________________________ > >The new MSN 8: advanced junk mail protection and 2 months FREE* > >http://join.msn.com/?page=features/junkmail > > > >_______________________________________________ > >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.510 / Virus Database: 307 - Release Date: 8/14/2003 > > > >--- > >Outgoing mail is certified Virus Free. > >Checked by AVG anti-virus system (http://www.grisoft.com). > >Version: 6.0.510 / Virus Database: 307 - Release Date: 8/14/2003 > > > > > >_______________________________________________ > >dba-SQLServer mailing list > >dba-SQLServer at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > >http://www.databaseadvisors.com > > > >_________________________________________________________________ >MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. >http://join.msn.com/?page=features/virus > >_______________________________________________ >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 > _________________________________________________________________ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail From serbach at new.rr.com Tue Sep 16 16:52:28 2003 From: serbach at new.rr.com (Steven W. Erbach) Date: Tue, 16 Sep 2003 16:52:28 -0500 Subject: [dba-SQLServer]SQL Server CE 2.0 Message-ID: <002a01c37c9c$d5af6550$5d0ed018@W2k> Dear Group, Has anyone here used or know of someone who has used SQL Server CE 2.0 to develop applications for Windows Mobile devices? I've got a client who has a bug up his rear about using hand-held devices to pick products from inventory for shipping. He isn't using any Windows-based software now for his manufacturing, inventory and order fulfillment...but he appears to be open to the use of hand-held PCs for this purpose...maybe even wireless. I've been looking through the Microsoft pages on Windows Mobile. I notice that Access doesn't appear to be an option on a hand-held. Then I saw SQL Server CE and I went, whaaaa? What do you lot think about it? Regards... `?.??.???`?.??.???`?-> Steve Erbach From joconnell at indy.rr.com Tue Sep 16 17:10:38 2003 From: joconnell at indy.rr.com (Joseph O'Connell) Date: Tue, 16 Sep 2003 17:10:38 -0500 Subject: [dba-SQLServer]OT: combine multiple RTF files into one? Message-ID: <032501c37c9f$6f65e960$6601a8c0@joe.indy.rr.com> Billy, Try this to print a word document: Dim appWord As Word.Application Dim docWord As Word.Document Set appWord = New Word.Application Set docWord = appWord.Documents.Add("SomeFile.rtf") appWord.ActiveDocument.PrintOut appWord.ActiveDocument.Close To print out 100 documents, put the code into a Function or Sub and call it 100 times, passing the name of the file to print. Joe O'Connell joconnell at indy.rr.com -----Original Message----- From: Billy Pang To: dba-sqlserver at databaseadvisors.com Date: Tuesday, September 16, 2003 3:48 PM Subject: RE: [dba-SQLServer]OT: combine multiple RTF files into one? |ok.... here is what I really want to do.. |print out 100 word documents without having to open up each one... | | | |>From: "Bryan Carbonnell" |>Reply-To: dba-sqlserver at databaseadvisors.com |>To: |>Subject: RE: [dba-SQLServer]OT: combine multiple RTF files into one? |>Date: Tue, 16 Sep 2003 15:32:02 -0400 |> |>Why not use Word. |> |>1. Open the first one in Word. |> |>2. Move to the end of the doc |> |>3. Do an Insert|File... and select the next file |> |>4. Go back to step 2 98 more times. |> |>You should be able to automate it quite easily if all the files are in |>the same directory. |> |>Bryan Carbonnell |>bryan_carbonnell at cbc.ca |> |> |> >>> tuxedo_man at hotmail.com 16-Sep-03 3:26:25 PM >>> |>The DOS command won't work. There is some sort of Header and Footer in |>"RTF |>Code" and it looks different for each RTF file. When you combine 3 RTF |> |>files into one using the DOS command Copy and then open it in Word, it |>will |>only display the first RTF file. |> |>Any other suggestions? |> |>Billy |> |> |> >From: "Arthur Fuller" |> >Reply-To: dba-sqlserver at databaseadvisors.com |> >To: |> >Subject: RE: [dba-SQLServer]OT: combine multiple RTF files into one? |> >Date: Tue, 16 Sep 2003 10:49:36 -0700 |> > |> >Won't a dos command work? Are there special heads and tails to worry |>about? |> >If not, then this should work: |> > |> >copy file1+file2+file3+etc output1.rtf |> > |> >You'll need to group them like this to avoid spilling over the |>command-line |> >length. |> > |> >Or am I missing something? |> > |> > |> >-----Original Message----- |> >From: dba-sqlserver-bounces at databaseadvisors.com |> >[mailto:dba-sqlserver-bounces at databaseadvisors.com]On Behalf Of Billy |> >Pang |> >Sent: Monday, September 15, 2003 4:42 PM |> >To: dba-SQLServer at databaseadvisors.com |> >Subject: [dba-SQLServer]OT: combine multiple RTF files into one? |> > |> > |> >Does anyone know how to combine multiple RTF files into one? |> > |> >I have about 100 RTF files and I need to combine them all into one |>gigantic |> >file! |> > |> >Thanks in advance, |> >Billy |> > |> >_________________________________________________________________ |> >The new MSN 8: advanced junk mail protection and 2 months FREE* |> >http://join.msn.com/?page=features/junkmail |> > |> >_______________________________________________ |> >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.510 / Virus Database: 307 - Release Date: 8/14/2003 |> > |> >--- |> >Outgoing mail is certified Virus Free. |> >Checked by AVG anti-virus system (http://www.grisoft.com). |> >Version: 6.0.510 / Virus Database: 307 - Release Date: 8/14/2003 |> > |> > |> >_______________________________________________ |> >dba-SQLServer mailing list |> >dba-SQLServer at databaseadvisors.com |> >http://databaseadvisors.com/mailman/listinfo/dba-sqlserver |> >http://www.databaseadvisors.com |> > |> |>_________________________________________________________________ |>MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. |>http://join.msn.com/?page=features/virus |> |>_______________________________________________ |>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 |> | |_________________________________________________________________ |Add photos to your e-mail with MSN 8. Get 2 months FREE*. |http://join.msn.com/?page=features/featuredemail | |_______________________________________________ |dba-SQLServer mailing list |dba-SQLServer at databaseadvisors.com |http://databaseadvisors.com/mailman/listinfo/dba-sqlserver |http://www.databaseadvisors.com | From Robert.Djabarov at usaa.com Tue Sep 16 17:40:47 2003 From: Robert.Djabarov at usaa.com (Djabarov, Robert) Date: Tue, 16 Sep 2003 17:40:47 -0500 Subject: [dba-SQLServer]SQL Server CE 2.0 Message-ID: <3CCEA32DFF043C4CB99B835557E11B30BEE480@ex02.eagle.usaa.com> HH's have been used at least for the past 3 years, including merge replication. -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Steven W. Erbach Sent: Tuesday, September 16, 2003 4:52 PM To: dba-sqlserver at databaseadvisors.com Subject: [dba-SQLServer]SQL Server CE 2.0 Dear Group, Has anyone here used or know of someone who has used SQL Server CE 2.0 to develop applications for Windows Mobile devices? I've got a client who has a bug up his rear about using hand-held devices to pick products from inventory for shipping. He isn't using any Windows-based software now for his manufacturing, inventory and order fulfillment...but he appears to be open to the use of hand-held PCs for this purpose...maybe even wireless. I've been looking through the Microsoft pages on Windows Mobile. I notice that Access doesn't appear to be an option on a hand-held. Then I saw SQL Server CE and I went, whaaaa? What do you lot think about it? Regards... `?.??.???`?.??.???`?-> Steve Erbach _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From serbach at new.rr.com Tue Sep 16 20:09:08 2003 From: serbach at new.rr.com (Steven W. Erbach) Date: Tue, 16 Sep 2003 20:09:08 -0500 Subject: [dba-SQLServer]SQL Server CE 2.0 References: <3CCEA32DFF043C4CB99B835557E11B30BEE480@ex02.eagle.usaa.com> Message-ID: <001101c37cb8$4dc2bae0$5d0ed018@W2k> Robert, >> HH's have been used at least for the past 3 years, including merge replication. << Hmmm, maybe so. It seems like a lot of overkill for a hand-held especially when there are perfectly good sync programs available. What's so special about SQL Server CE? I'm trying to find a nice programmable database that can be used on a hand-held to help out this client of mine. We even looked at running a DOS emulator on a CE handheld to run dBASE or Paradox for DOS. Regards... `?.??.???`?.??.???`?-> Steve Erbach From martyconnelly at shaw.ca Tue Sep 16 20:28:25 2003 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 16 Sep 2003 18:28:25 -0700 Subject: [dba-SQLServer]SQL Server CE 2.0 References: <002a01c37c9c$d5af6550$5d0ed018@W2k> Message-ID: <3F67B8B9.5000906@shaw.ca> They are supposed to work well in conjunction with DotNet. There are half a dozen videos on Microsoft site explaining this. Win CE .Net is probably easier to use than CE 3.0 With .net you can port to different mobile devices as there is a uniform screen emulator. http://msdn.microsoft.com/library/default.asp?url=/seminar/mmcfeed/mmcdisplayfeed.asp?Lang=en&Product=103355&Audience=100402&frame=true Steven W. Erbach wrote: >Dear Group, > >Has anyone here used or know of someone who has used SQL Server CE 2.0 to >develop applications for Windows Mobile devices? I've got a client who has a >bug up his rear about using hand-held devices to pick products from >inventory for shipping. He isn't using any Windows-based software now for >his manufacturing, inventory and order fulfillment...but he appears to be >open to the use of hand-held PCs for this purpose...maybe even wireless. > >I've been looking through the Microsoft pages on Windows Mobile. I notice >that Access doesn't appear to be an option on a hand-held. Then I saw SQL >Server CE and I went, whaaaa? What do you lot think about it? > >Regards... > `?.??.???`?.??.???`?-> Steve Erbach > > >_______________________________________________ >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 Wed Sep 17 00:21:08 2003 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 16 Sep 2003 22:21:08 -0700 Subject: [dba-SQLServer]SQL Server CE 2.0 References: <002a01c37c9c$d5af6550$5d0ed018@W2k> <3F67B8B9.5000906@shaw.ca> Message-ID: <3F67EF44.1010301@shaw.ca> Here is a comparision between MS .Net and Java for mobile wireless devices from Intel http://cedar.intel.com/cgi-bin/ids.dll/content/content.jsp?cntKey=Generic%20Editorial::ss_write&cntType=IDS_EDITORIAL MartyConnelly wrote: > They are supposed to work well in conjunction with DotNet. There are > half a dozen videos on Microsoft site explaining this. Win CE .Net is > probably easier to use than CE 3.0 > With .net you can port to different mobile devices as there is a > uniform screen emulator. > > http://msdn.microsoft.com/library/default.asp?url=/seminar/mmcfeed/mmcdisplayfeed.asp?Lang=en&Product=103355&Audience=100402&frame=true > > > Steven W. Erbach wrote: > >> Dear Group, >> >> Has anyone here used or know of someone who has used SQL Server CE >> 2.0 to >> develop applications for Windows Mobile devices? I've got a client >> who has a >> bug up his rear about using hand-held devices to pick products from >> inventory for shipping. He isn't using any Windows-based software now >> for >> his manufacturing, inventory and order fulfillment...but he appears >> to be >> open to the use of hand-held PCs for this purpose...maybe even wireless. >> >> I've been looking through the Microsoft pages on Windows Mobile. I >> notice >> that Access doesn't appear to be an option on a hand-held. Then I saw >> SQL >> Server CE and I went, whaaaa? What do you lot think about it? >> >> Regards... >> `?.??.???`?.??.???`?-> Steve Erbach >> >> >> _______________________________________________ >> 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 serbach at new.rr.com Wed Sep 17 06:22:37 2003 From: serbach at new.rr.com (Steven W. Erbach) Date: Wed, 17 Sep 2003 06:22:37 -0500 Subject: [dba-SQLServer]SQL Server CE 2.0 References: <002a01c37c9c$d5af6550$5d0ed018@W2k> <3F67B8B9.5000906@shaw.ca> <3F67EF44.1010301@shaw.ca> Message-ID: <001e01c37d0f$03d52e70$5d0ed018@W2k> Marty, I really appreciate your response on this. I want to be sure that I make my goal clear, though. The ideal situation would be to use one of these Windows enabled hand-helds with Microsoft Access. When I perused the Windows Mobile web site I saw references to Mobile Word and Mobile Excel...but nothing about Mobile Access. It seems that it doesn't exist or isn't implemented. Am I correct in deducing that? If it's indeed the case that Access isn't available on these CE / Mobile devices, then I'm a bit up the creek since I don't think my client wants to pay me to learn .Net or Java. That's why I mentioned a DOS emulator and Paradox for DOS or dBASE. I looked at the features of Mobile Windows for hand-helds and I saw quite a bit on e-mail and a tiny IE and games and phone books...but not much (at least on the Microsoft site) on real-live business applications like shipping and receiving. I suppose that this isn't a strictly SQL topic, but that reference to SQL Server CE kinda threw me. If one is going to use SQL Server CE then one must have a SQL Server CE box. Then one can replicate data back and forth from handhelds, right? Regards... `?.??.???`?.??.???`?-> Steve Erbach From tuxedo_man at hotmail.com Wed Sep 17 15:32:08 2003 From: tuxedo_man at hotmail.com (Billy Pang) Date: Wed, 17 Sep 2003 20:32:08 +0000 Subject: [dba-SQLServer]Who can Stop SQL Server? Message-ID: Just wondering, what permission/role governs whether or not a user can stop the SQL Server service? Thanks in advance, Billy _________________________________________________________________ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus From Robert.Djabarov at usaa.com Wed Sep 17 15:54:36 2003 From: Robert.Djabarov at usaa.com (Djabarov, Robert) Date: Wed, 17 Sep 2003 15:54:36 -0500 Subject: [dba-SQLServer]Who can Stop SQL Server? Message-ID: <3CCEA32DFF043C4CB99B835557E11B30BEE5CC@ex02.eagle.usaa.com> Server administrator and system administrator roles. -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Billy Pang Sent: Wednesday, September 17, 2003 3:32 PM To: dba-SQLServer at databaseadvisors.com Subject: [dba-SQLServer]Who can Stop SQL Server? Just wondering, what permission/role governs whether or not a user can stop the SQL Server service? Thanks in advance, Billy _________________________________________________________________ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus _______________________________________________ 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 Sep 17 16:37:26 2003 From: tuxedo_man at hotmail.com (Billy Pang) Date: Wed, 17 Sep 2003 21:37:26 +0000 Subject: [dba-SQLServer]Who can Stop SQL Server? Message-ID: That is what I thought. Maybe something is not right. For some reason, via EM, the sa user cannot stop the SQL Server service from a remote machine (I get an access denied message). Also, a user that does not belong to server or system admin fixed role can stop the SQL Service service via EM if on the same machine. Any ideas? Thanks Billy >From: "Djabarov, Robert" >Reply-To: dba-sqlserver at databaseadvisors.com >To: >Subject: RE: [dba-SQLServer]Who can Stop SQL Server? >Date: Wed, 17 Sep 2003 15:54:36 -0500 > >Server administrator and system administrator roles. > >-----Original Message----- >From: dba-sqlserver-bounces at databaseadvisors.com >[mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Billy >Pang >Sent: Wednesday, September 17, 2003 3:32 PM >To: dba-SQLServer at databaseadvisors.com >Subject: [dba-SQLServer]Who can Stop SQL Server? > > >Just wondering, what permission/role governs whether or not a user can >stop >the SQL Server service? > >Thanks in advance, >Billy > >_________________________________________________________________ >MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. >http://join.msn.com/?page=features/virus > >_______________________________________________ >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 > _________________________________________________________________ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail From Robert.Djabarov at usaa.com Wed Sep 17 16:51:01 2003 From: Robert.Djabarov at usaa.com (Djabarov, Robert) Date: Wed, 17 Sep 2003 16:51:01 -0500 Subject: [dba-SQLServer]Who can Stop SQL Server? Message-ID: <3CCEA32DFF043C4CB99B835557E11B30BEE5F4@ex02.eagle.usaa.com> Do you have Builtin Administrators assigned sysadmin? Are there any other groups that belong to sysadmin or server admin groups? SA will fail to do anything if authentication is windows only. -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Billy Pang Sent: Wednesday, September 17, 2003 4:37 PM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]Who can Stop SQL Server? That is what I thought. Maybe something is not right. For some reason, via EM, the sa user cannot stop the SQL Server service from a remote machine (I get an access denied message). Also, a user that does not belong to server or system admin fixed role can stop the SQL Service service via EM if on the same machine. Any ideas? Thanks Billy >From: "Djabarov, Robert" >Reply-To: dba-sqlserver at databaseadvisors.com >To: >Subject: RE: [dba-SQLServer]Who can Stop SQL Server? >Date: Wed, 17 Sep 2003 15:54:36 -0500 > >Server administrator and system administrator roles. > >-----Original Message----- >From: dba-sqlserver-bounces at databaseadvisors.com >[mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Billy >Pang >Sent: Wednesday, September 17, 2003 3:32 PM >To: dba-SQLServer at databaseadvisors.com >Subject: [dba-SQLServer]Who can Stop SQL Server? > > >Just wondering, what permission/role governs whether or not a user can >stop the SQL Server service? > >Thanks in advance, >Billy > >_________________________________________________________________ >MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. >http://join.msn.com/?page=features/virus > >_______________________________________________ >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 > _________________________________________________________________ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail _______________________________________________ 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 Wed Sep 17 17:10:28 2003 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 17 Sep 2003 15:10:28 -0700 Subject: [dba-SQLServer]SQL Server CE 2.0 References: <002a01c37c9c$d5af6550$5d0ed018@W2k> <3F67B8B9.5000906@shaw.ca> <3F67EF44.1010301@shaw.ca> <001e01c37d0f$03d52e70$5d0ed018@W2k> Message-ID: <3F68DBD4.5060807@shaw.ca> It is easy to get at a database with forms if you have a wireless modem, if you don't, you would have to use something like AppForge's VB forms with a PDB database which is essentially simple tables. http://www.appforge.com No way to install Access on the PDA, but with a wireless modem all sorts of options open up via the net. There is no Mobile Access probably due to RAM restrictions. I haven't messed about with SQL server CE. . Or you if you need a small footprint database and ODBC depending on your PDA ram try CodeBase for Windows CE with VB http://www.sequiter.com/products/windows_ce/ I have used CodeBase years ago with C and DOS. Steven W. Erbach wrote: >Marty, > >I really appreciate your response on this. I want to be sure that I make my >goal clear, though. The ideal situation would be to use one of these Windows >enabled hand-helds with Microsoft Access. When I perused the Windows Mobile >web site I saw references to Mobile Word and Mobile Excel...but nothing >about Mobile Access. It seems that it doesn't exist or isn't implemented. Am >I correct in deducing that? > >If it's indeed the case that Access isn't available on these CE / Mobile >devices, then I'm a bit up the creek since I don't think my client wants to >pay me to learn .Net or Java. That's why I mentioned a DOS emulator and >Paradox for DOS or dBASE. > >I looked at the features of Mobile Windows for hand-helds and I saw quite a >bit on e-mail and a tiny IE and games and phone books...but not much (at >least on the Microsoft site) on real-live business applications like >shipping and receiving. > >I suppose that this isn't a strictly SQL topic, but that reference to SQL >Server CE kinda threw me. If one is going to use SQL Server CE then one must >have a SQL Server CE box. Then one can replicate data back and forth from >handhelds, right? > >Regards... > `?.??.???`?.??.???`?-> Steve Erbach > > >_______________________________________________ >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 Sep 17 18:23:40 2003 From: tuxedo_man at hotmail.com (Billy Pang) Date: Wed, 17 Sep 2003 23:23:40 +0000 Subject: [dba-SQLServer]Who can Stop SQL Server? Message-ID: SS2K is using mixed security. I am positive the user does not belong to any of the server admin groups directly or indirectly. >From: "Djabarov, Robert" >Reply-To: dba-sqlserver at databaseadvisors.com >To: >Subject: RE: [dba-SQLServer]Who can Stop SQL Server? >Date: Wed, 17 Sep 2003 16:51:01 -0500 > >Do you have Builtin Administrators assigned sysadmin? Are there any >other groups that belong to sysadmin or server admin groups? SA will >fail to do anything if authentication is windows only. > >-----Original Message----- >From: dba-sqlserver-bounces at databaseadvisors.com >[mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Billy >Pang >Sent: Wednesday, September 17, 2003 4:37 PM >To: dba-sqlserver at databaseadvisors.com >Subject: RE: [dba-SQLServer]Who can Stop SQL Server? > > >That is what I thought. Maybe something is not right. > >For some reason, via EM, the sa user cannot stop the SQL Server service >from >a remote machine (I get an access denied message). > >Also, a user that does not belong to server or system admin fixed role >can >stop the SQL Service service via EM if on the same machine. > >Any ideas? > >Thanks >Billy > > > >From: "Djabarov, Robert" > >Reply-To: dba-sqlserver at databaseadvisors.com > >To: > >Subject: RE: [dba-SQLServer]Who can Stop SQL Server? > >Date: Wed, 17 Sep 2003 15:54:36 -0500 > > > >Server administrator and system administrator roles. > > > >-----Original Message----- > >From: dba-sqlserver-bounces at databaseadvisors.com > >[mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Billy > >Pang > >Sent: Wednesday, September 17, 2003 3:32 PM > >To: dba-SQLServer at databaseadvisors.com > >Subject: [dba-SQLServer]Who can Stop SQL Server? > > > > > >Just wondering, what permission/role governs whether or not a user can > >stop the SQL Server service? > > > >Thanks in advance, > >Billy > > > >_________________________________________________________________ > >MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. > >http://join.msn.com/?page=features/virus > > > >_______________________________________________ > >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 > > > >_________________________________________________________________ >Add photos to your messages with MSN 8. Get 2 months FREE*. >http://join.msn.com/?page=features/featuredemail > >_______________________________________________ >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 > _________________________________________________________________ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail From serbach at new.rr.com Thu Sep 18 06:41:19 2003 From: serbach at new.rr.com (Steven W. Erbach) Date: Thu, 18 Sep 2003 06:41:19 -0500 Subject: [dba-SQLServer]SQL Server CE 2.0 References: <002a01c37c9c$d5af6550$5d0ed018@W2k> <3F67B8B9.5000906@shaw.ca> <3F67EF44.1010301@shaw.ca> <001e01c37d0f$03d52e70$5d0ed018@W2k> <3F68DBD4.5060807@shaw.ca> Message-ID: <005e01c37dda$0c56bf20$5d0ed018@W2k> Marty, Two very interesting links. Again, I'm pretty sure that my client doesn't want to pay me to learn a brand new programming environment. I guess I'm trying to bring him down to earth. He's one of those "attention-deficit entrepreneurs" (thanks to a current client for coming up with that one) that get these fixed ideas in their heads about how things work or could work. It doesn't help that he's done quite a bit of (sloppy) Paradox for DOS programming. I can well believe that Access wouldn't run on a Windows Mobile hand-held. But, heck! If I can store 256 MB of data in a USB wrist-watch ( http://www.thinkgeek.com/gadgets/watches/5eec/ ) you'd think that Access could fit on a hand-held PC, eh? Regards... `?.??.???`?.??.???`?-> Steve Erbach From martyconnelly at shaw.ca Thu Sep 18 12:57:28 2003 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 18 Sep 2003 10:57:28 -0700 Subject: [dba-SQLServer]SQL Server CE 2.0 References: <002a01c37c9c$d5af6550$5d0ed018@W2k> <3F67B8B9.5000906@shaw.ca> <3F67EF44.1010301@shaw.ca> <001e01c37d0f$03d52e70$5d0ed018@W2k> <3F68DBD4.5060807@shaw.ca> Message-ID: <3F69F208.6060201@shaw.ca> When MS first set the software up for PDA's, a big PDA might have 4Meg and run at $1500. Could be why they passed on Access too. You have to first figure out if he is going to have PDA's with wireless communications. With Mobile access to PDA's through dotNet you could also send the data and forms to things like Blackberrys or Nokia phones. I did something similar using a WAP server to send Access mdb data to a Blackberry. I used a free WAP server at www.tagtag.com that ran ASP code to get the data from a remote ASP site that queried the mdb file and then generated the WML to the blackberry but dot net might more advanced. You have problems with 23 line screens etc. you might want to haunt the http://www.gotdotnet.com mobile forums for more uptodate advice. MartyConnelly wrote: > It is easy to get at a database with forms if you have a wireless > modem, if you don't, you would have to use something like AppForge's > VB forms with a PDB database which is essentially simple tables. > http://www.appforge.com > > No way to install Access on the PDA, but with a wireless modem all > sorts of options open up via the net. There is no Mobile Access > probably due to RAM restrictions. I haven't messed about with SQL > server CE. > . > Or you if you need a small footprint database and ODBC depending on > your PDA ram try > CodeBase for Windows CE with VB > http://www.sequiter.com/products/windows_ce/ > I have used CodeBase years ago with C and DOS. > > > Steven W. Erbach wrote: > >> Marty, >> >> I really appreciate your response on this. I want to be sure that I >> make my >> goal clear, though. The ideal situation would be to use one of these >> Windows >> enabled hand-helds with Microsoft Access. When I perused the Windows >> Mobile >> web site I saw references to Mobile Word and Mobile Excel...but nothing >> about Mobile Access. It seems that it doesn't exist or isn't >> implemented. Am >> I correct in deducing that? >> >> If it's indeed the case that Access isn't available on these CE / Mobile >> devices, then I'm a bit up the creek since I don't think my client >> wants to >> pay me to learn .Net or Java. That's why I mentioned a DOS emulator and >> Paradox for DOS or dBASE. >> >> I looked at the features of Mobile Windows for hand-helds and I saw >> quite a >> bit on e-mail and a tiny IE and games and phone books...but not much (at >> least on the Microsoft site) on real-live business applications like >> shipping and receiving. >> >> I suppose that this isn't a strictly SQL topic, but that reference to >> SQL >> Server CE kinda threw me. If one is going to use SQL Server CE then >> one must >> have a SQL Server CE box. Then one can replicate data back and forth >> from >> handhelds, right? >> >> Regards... >> `?.??.???`?.??.???`?-> Steve Erbach >> >> >> _______________________________________________ >> 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 serbach at new.rr.com Fri Sep 19 19:37:13 2003 From: serbach at new.rr.com (Steven W. Erbach) Date: Fri, 19 Sep 2003 19:37:13 -0500 Subject: [dba-SQLServer]SQL Server CE 2.0 References: <002a01c37c9c$d5af6550$5d0ed018@W2k> <3F67B8B9.5000906@shaw.ca> <3F67EF44.1010301@shaw.ca> <001e01c37d0f$03d52e70$5d0ed018@W2k> <3F68DBD4.5060807@shaw.ca> <3F69F208.6060201@shaw.ca> Message-ID: <012501c37f0f$66995e30$5d0ed018@W2k> Marty, >> 23 line screens << Well, that's what we had with dBASE and Paradox for DOS applications... Thanks for the links and the advice on .NET. I have a feeling that my client won't want to go for all that hardware and software upgrading. He's still running Novell NetWare 4.11 and Paradox for DOS. Regards... `?.??.???`?.??.???`?-> Steve Erbach From martyconnelly at shaw.ca Fri Sep 19 23:25:48 2003 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 19 Sep 2003 21:25:48 -0700 Subject: [dba-SQLServer]SQL Server CE 2.0 References: <002a01c37c9c$d5af6550$5d0ed018@W2k> <3F67B8B9.5000906@shaw.ca> <3F67EF44.1010301@shaw.ca> <001e01c37d0f$03d52e70$5d0ed018@W2k> <3F68DBD4.5060807@shaw.ca> <3F69F208.6060201@shaw.ca> <012501c37f0f$66995e30$5d0ed018@W2k> Message-ID: <3F6BD6CC.2020902@shaw.ca> There is a recent article in Visual Studio Mag, september or october issue on how to setup Win CE SQL Server. Just had a quick glance at the article.today while shopping. There is also a rudimentary way of doing this with PC Anywhere and mobiles but I haven't looked at it. Steven W. Erbach wrote: >Marty, > > > >>>23 line screens << >>> >>> > >Well, that's what we had with dBASE and Paradox for DOS applications... > >Thanks for the links and the advice on .NET. I have a feeling that my client >won't want to go for all that hardware and software upgrading. He's still >running Novell NetWare 4.11 and Paradox for DOS. > >Regards... > `?.??.???`?.??.???`?-> Steve Erbach > > >_______________________________________________ >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 Sep 22 08:38:41 2003 From: artful at rogers.com (Arthur Fuller) Date: Mon, 22 Sep 2003 06:38:41 -0700 Subject: [dba-SQLServer]Size Does Matter In-Reply-To: <012501c37f0f$66995e30$5d0ed018@W2k> Message-ID: I've been reading on various other SQL lists about some really large databases. One guy has 400 GB; another has 20 TB (yes, TB). The largest database I've ever worked with is a mere 1 GB. I'm starting to feel db-challenged :-) How about other list members (oops, in the context perhaps a bad choice of words)? How large are your databases? Arthur --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.510 / Virus Database: 307 - Release Date: 8/14/2003 From jcolby at colbyconsulting.com Mon Sep 22 09:59:41 2003 From: jcolby at colbyconsulting.com (John Colby) Date: Mon, 22 Sep 2003 10:59:41 -0400 Subject: [dba-SQLServer]Is it just me? Message-ID: Or is SQL Server a bit obtuse? I had a badly mangled weekend trying to install a new hard drive. In the process I backed up!!! my SQL Server database and re-installed Windows from scratch. Re-installed SQL Server. The install hung the first time. Tried to re-install - said it already existed (no program groups though). Tried to uninstall, failed with an error message. Tried a re-install with the standard options (except for where the data goes) and it worked. However... the server under the server group had a red square and the words (under THAT) can't connect or something similar. Manually started SQL Server. Dicked around. Dicked around some more. Dicked around even MORE. Now I'm getting what LOOKS like a normal SQL Server except NO Databases. Not even the ones SQL Server builds for itself. And of course if I try to do anything I get error messages out the wazoo. This just sucks folks. Any advice for the SQL Server impaired? John W. Colby www.colbyconsulting.com From fhtapia at hotmail.com Mon Sep 22 10:36:03 2003 From: fhtapia at hotmail.com (Francisco H Tapia) Date: Mon, 22 Sep 2003 08:36:03 -0700 Subject: [dba-SQLServer]Size Does Matter In-Reply-To: References: Message-ID: <3F6F16E3.1010301@hotmail.com> Arthur Fuller wrote: > I've been reading on various other SQL lists about some really large > databases. One guy has 400 GB; another has 20 TB (yes, TB). The largest > database I've ever worked with is a mere 1 GB. I'm starting to feel > db-challenged :-) > > How about other list members (oops, in the context perhaps a bad choice of > words)? How large are your databases? > Arthur, it's not the size of your db but how you use it, ;o). But in honesty that is pretty true. your larger TB databases if not managed well will be terrible resource and production systems... -- -Francisco Faster than a three legged squirrel From chizotz at charter.net Mon Sep 22 10:32:40 2003 From: chizotz at charter.net (Ron Allen) Date: Mon, 22 Sep 2003 11:32:40 -0400 Subject: [dba-SQLServer]SQL Server Dev Without SQL Server? In-Reply-To: Message-ID: Does the SQl Server desktop engine exactly duplicate the functionality of full-blown SQL Server? I want to develop apps for SQL Server backends, but will not have SQL Server available during development. I need to be able to design databases and write code, then be able to re-create or migrate the databases to SQL Server and point my apps at the actual database for production. Is this a feasible approach, or do I need to find a way to get the full-blown SQL Server package to work with? Thanks for any advice/pointers/information. Ron Allen From Robert.Djabarov at usaa.com Mon Sep 22 10:36:03 2003 From: Robert.Djabarov at usaa.com (Djabarov, Robert) Date: Mon, 22 Sep 2003 10:36:03 -0500 Subject: [dba-SQLServer]SQL Server Dev Without SQL Server? Message-ID: <3CCEA32DFF043C4CB99B835557E11B30BEE8FB@ex02.eagle.usaa.com> 90% of what you do using MSDE will work on any edition of sql server. In fact, if you have multiple instances of MSDE all 100% will work (except for clustering capabilities). -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Ron Allen Sent: Monday, September 22, 2003 10:33 AM To: dba-sqlserver at databaseadvisors.com Subject: [dba-SQLServer]SQL Server Dev Without SQL Server? Does the SQl Server desktop engine exactly duplicate the functionality of full-blown SQL Server? I want to develop apps for SQL Server backends, but will not have SQL Server available during development. I need to be able to design databases and write code, then be able to re-create or migrate the databases to SQL Server and point my apps at the actual database for production. Is this a feasible approach, or do I need to find a way to get the full-blown SQL Server package to work with? Thanks for any advice/pointers/information. Ron Allen _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From Robert.Djabarov at usaa.com Mon Sep 22 10:39:29 2003 From: Robert.Djabarov at usaa.com (Djabarov, Robert) Date: Mon, 22 Sep 2003 10:39:29 -0500 Subject: [dba-SQLServer]Is it just me? Message-ID: <3CCEA32DFF043C4CB99B835557E11B30BEE8FC@ex02.eagle.usaa.com> You probably need to "dick around" a little more. First make sure that all the necessary system databases made its way to your box. Second, make sure that the service startup switches point to the locations where those system database files actually reside. What's the edition you're trying to install? -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of John Colby Sent: Monday, September 22, 2003 10:00 AM To: SQLServer Subject: [dba-SQLServer]Is it just me? Or is SQL Server a bit obtuse? I had a badly mangled weekend trying to install a new hard drive. In the process I backed up!!! my SQL Server database and re-installed Windows from scratch. Re-installed SQL Server. The install hung the first time. Tried to re-install - said it already existed (no program groups though). Tried to uninstall, failed with an error message. Tried a re-install with the standard options (except for where the data goes) and it worked. However... the server under the server group had a red square and the words (under THAT) can't connect or something similar. Manually started SQL Server. Dicked around. Dicked around some more. Dicked around even MORE. Now I'm getting what LOOKS like a normal SQL Server except NO Databases. Not even the ones SQL Server builds for itself. And of course if I try to do anything I get error messages out the wazoo. This just sucks folks. Any advice for the SQL Server impaired? 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 Robert.Djabarov at usaa.com Mon Sep 22 10:46:56 2003 From: Robert.Djabarov at usaa.com (Djabarov, Robert) Date: Mon, 22 Sep 2003 10:46:56 -0500 Subject: [dba-SQLServer]Size Does Matter Message-ID: <3CCEA32DFF043C4CB99B835557E11B30BEE900@ex02.eagle.usaa.com> Very rarely a databases starts up with enormous size, it's historical data that normally make the database grow. Sometimes the required retention period and instant data availability prevent any archiving or grooming process from reducing the size. Also, we're approaching the time when businesses require the ability to store more and more granular data. Insome cases the nature of data requires A LOT of storage (terra-server, nasdaq). Size does matter but should not be viewed as the most impressive factor. What's more impressive is the industry and system capabilities. ...and "terrible resource and production systems" also come in different sizes :) -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Francisco H Tapia Sent: Monday, September 22, 2003 10:36 AM To: dba-sqlserver at databaseadvisors.com Subject: Re: [dba-SQLServer]Size Does Matter Arthur Fuller wrote: > I've been reading on various other SQL lists about some really large > databases. One guy has 400 GB; another has 20 TB (yes, TB). The > largest database I've ever worked with is a mere 1 GB. I'm starting to > feel db-challenged :-) > > How about other list members (oops, in the context perhaps a bad > choice of words)? How large are your databases? > Arthur, it's not the size of your db but how you use it, ;o). But in honesty that is pretty true. your larger TB databases if not managed well will be terrible resource and production systems... -- -Francisco Faster than a three legged squirrel _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From fhtapia at hotmail.com Mon Sep 22 10:51:19 2003 From: fhtapia at hotmail.com (Francisco H Tapia) Date: Mon, 22 Sep 2003 08:51:19 -0700 Subject: [dba-SQLServer]SQL Server Dev Without SQL Server? In-Reply-To: References: Message-ID: <3F6F1A77.3050908@hotmail.com> Ron Allen wrote: > Does the SQl Server desktop engine exactly duplicate the functionality > of full-blown SQL Server? I want to develop apps for SQL Server > backends, but will not have SQL Server available during development. I > need to be able to design databases and write code, then be able to > re-create or migrate the databases to SQL Server and point my apps at > the actual database for production. Is this a feasible approach, or do I > need to find a way to get the full-blown SQL Server package to work with? > > Thanks for any advice/pointers/information. The Development version should meet all your needs. I haven't had any problems. -- -Francisco Leela: "Great. We're two days from earth with no food." Bender: "Problem solved. You two fight to the death and I'll cook the loser." From my.lists at verizon.net Mon Sep 22 11:01:29 2003 From: my.lists at verizon.net (Francisco H Tapia) Date: Mon, 22 Sep 2003 09:01:29 -0700 Subject: [dba-SQLServer]Is it just me? In-Reply-To: References: Message-ID: <3F6F1CD9.1000006@verizon.net> John Colby wrote: > Now I'm getting what LOOKS like a normal SQL Server except NO Databases. > Not even the ones SQL Server builds for itself. And of course if I try to > do anything I get error messages out the wazoo. > > This just sucks folks. Any advice for the SQL Server impaired? When you re-installed Windows, which version was it (2k or XP) and up to what SP? -- -Francisco Due to economic restraints light at end of tunnel will be turned off until further notice. From chizotz at charter.net Mon Sep 22 11:04:39 2003 From: chizotz at charter.net (Ron Allen) Date: Mon, 22 Sep 2003 12:04:39 -0400 Subject: [dba-SQLServer]SQL Server Dev Without SQL Server? In-Reply-To: <3CCEA32DFF043C4CB99B835557E11B30BEE8FB@ex02.eagle.usaa.com> Message-ID: Thank you Robert, that simplifies things for me (and makes this project a lot cheaper for me to take on). Ron On Mon, 22 Sep 2003 10:36:03 -0500 "Djabarov, Robert" wrote: >90% of what you do using MSDE will work on any edition of >sql server. >In fact, if you have multiple instances of MSDE all 100% >will work >(except for clustering capabilities). From chizotz at charter.net Mon Sep 22 11:05:52 2003 From: chizotz at charter.net (Ron Allen) Date: Mon, 22 Sep 2003 12:05:52 -0400 Subject: [dba-SQLServer]SQL Server Dev Without SQL Server? In-Reply-To: <3F6F1A77.3050908@hotmail.com> Message-ID: Thanks Francisco, maybe my problem is solved then. Ron On Mon, 22 Sep 2003 08:51:19 -0700 Francisco H Tapia wrote: >The Development version should meet all your needs. I >haven't had any problems. From jcolby at colbyconsulting.com Mon Sep 22 11:16:51 2003 From: jcolby at colbyconsulting.com (John Colby) Date: Mon, 22 Sep 2003 12:16:51 -0400 Subject: [dba-SQLServer]SQL Server Dev Without SQL Server? In-Reply-To: <3CCEA32DFF043C4CB99B835557E11B30BEE8FB@ex02.eagle.usaa.com> Message-ID: I thought that MSDE had two very important restrictions - max db size of 4gb and concurrent user throttling after 5 "users"? Or is this a different animal we are talking about. 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 Djabarov, Robert Sent: Monday, September 22, 2003 11:36 AM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]SQL Server Dev Without SQL Server? 90% of what you do using MSDE will work on any edition of sql server. In fact, if you have multiple instances of MSDE all 100% will work (except for clustering capabilities). -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Ron Allen Sent: Monday, September 22, 2003 10:33 AM To: dba-sqlserver at databaseadvisors.com Subject: [dba-SQLServer]SQL Server Dev Without SQL Server? Does the SQl Server desktop engine exactly duplicate the functionality of full-blown SQL Server? I want to develop apps for SQL Server backends, but will not have SQL Server available during development. I need to be able to design databases and write code, then be able to re-create or migrate the databases to SQL Server and point my apps at the actual database for production. Is this a feasible approach, or do I need to find a way to get the full-blown SQL Server package to work with? Thanks for any advice/pointers/information. Ron Allen _______________________________________________ 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 jcolby at colbyconsulting.com Mon Sep 22 11:17:29 2003 From: jcolby at colbyconsulting.com (John Colby) Date: Mon, 22 Sep 2003 12:17:29 -0400 Subject: [dba-SQLServer]Is it just me? In-Reply-To: <3F6F1CD9.1000006@verizon.net> Message-ID: 2k Pro (Desktop) SP4. 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 Francisco H Tapia Sent: Monday, September 22, 2003 12:01 PM To: dba-sqlserver at databaseadvisors.com Subject: Re: [dba-SQLServer]Is it just me? John Colby wrote: > Now I'm getting what LOOKS like a normal SQL Server except NO Databases. > Not even the ones SQL Server builds for itself. And of course if I try to > do anything I get error messages out the wazoo. > > This just sucks folks. Any advice for the SQL Server impaired? When you re-installed Windows, which version was it (2k or XP) and up to what SP? -- -Francisco Due to economic restraints light at end of tunnel will be turned off until further notice. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From chizotz at charter.net Mon Sep 22 11:21:58 2003 From: chizotz at charter.net (Ron Allen) Date: Mon, 22 Sep 2003 12:21:58 -0400 Subject: [dba-SQLServer]SQL Server Dev Without SQL Server? In-Reply-To: Message-ID: Hi John, In my case, even with those restrictions it will be fine as long as I can easily get everything setup on SQL Server when the time comes. For development I'll just have test data, and while I'll probably have a good amount to check performance issues I can't see it going over 4gig. For dev, I'll be the only user, so that isn't an issue either. But those are important considerations to keep in mind. Thanks. Ron On Mon, 22 Sep 2003 12:16:51 -0400 "John Colby" wrote: >I thought that MSDE had two very important restrictions - >max db size of 4gb >and concurrent user throttling after 5 "users"? Or is >this a different >animal we are talking about. From Robert.Djabarov at usaa.com Mon Sep 22 11:25:14 2003 From: Robert.Djabarov at usaa.com (Djabarov, Robert) Date: Mon, 22 Sep 2003 11:25:14 -0500 Subject: [dba-SQLServer]SQL Server Dev Without SQL Server? Message-ID: <3CCEA32DFF043C4CB99B835557E11B30BEE917@ex02.eagle.usaa.com> That's correct, but he is a developer, and I'd think it would be a problem in design if a db has to be over 4GB to be delivered to the client (unless A LOT of data needs to be loaded, in which case that last piece can be done on the client's site). -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of John Colby Sent: Monday, September 22, 2003 11:17 AM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]SQL Server Dev Without SQL Server? I thought that MSDE had two very important restrictions - max db size of 4gb and concurrent user throttling after 5 "users"? Or is this a different animal we are talking about. 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 Djabarov, Robert Sent: Monday, September 22, 2003 11:36 AM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]SQL Server Dev Without SQL Server? 90% of what you do using MSDE will work on any edition of sql server. In fact, if you have multiple instances of MSDE all 100% will work (except for clustering capabilities). -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Ron Allen Sent: Monday, September 22, 2003 10:33 AM To: dba-sqlserver at databaseadvisors.com Subject: [dba-SQLServer]SQL Server Dev Without SQL Server? Does the SQl Server desktop engine exactly duplicate the functionality of full-blown SQL Server? I want to develop apps for SQL Server backends, but will not have SQL Server available during development. I need to be able to design databases and write code, then be able to re-create or migrate the databases to SQL Server and point my apps at the actual database for production. Is this a feasible approach, or do I need to find a way to get the full-blown SQL Server package to work with? Thanks for any advice/pointers/information. Ron Allen _______________________________________________ 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 jcolby at colbyconsulting.com Mon Sep 22 11:30:14 2003 From: jcolby at colbyconsulting.com (John Colby) Date: Mon, 22 Sep 2003 12:30:14 -0400 Subject: [dba-SQLServer]MSDE Installation In-Reply-To: Message-ID: Does anyone know how MSDE gets installed? What it is a part of? I want to use MSDE as the database engine for .net development for some lightweight demo apps and games. I haven't a clue where it comes from (other than the Access disks). Is it just there for .net? If not is it available for a download (for free?)? If so, how do I get it installed on a remote computer? 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 Ron Allen Sent: Monday, September 22, 2003 12:22 PM To: dba-sqlserver at databaseadvisors.com Subject: Re: [dba-SQLServer]SQL Server Dev Without SQL Server? Hi John, In my case, even with those restrictions it will be fine as long as I can easily get everything setup on SQL Server when the time comes. For development I'll just have test data, and while I'll probably have a good amount to check performance issues I can't see it going over 4gig. For dev, I'll be the only user, so that isn't an issue either. But those are important considerations to keep in mind. Thanks. Ron On Mon, 22 Sep 2003 12:16:51 -0400 "John Colby" wrote: >I thought that MSDE had two very important restrictions - >max db size of 4gb >and concurrent user throttling after 5 "users"? Or is >this a different >animal we are talking about. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From jcolby at colbyconsulting.com Mon Sep 22 11:33:14 2003 From: jcolby at colbyconsulting.com (John Colby) Date: Mon, 22 Sep 2003 12:33:14 -0400 Subject: [dba-SQLServer]SQL Server Dev Without SQL Server? In-Reply-To: Message-ID: BTW Ron, I read something the other day that MS has released a "Developers version" of SQL Server (full package) for something like $49. This in order to get SQL Server into the hands of the developers. It's the typical developer license - cannot be used (installed) for production systems etc. But great for us poor developers who want the real thing. 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 Ron Allen Sent: Monday, September 22, 2003 12:22 PM To: dba-sqlserver at databaseadvisors.com Subject: Re: [dba-SQLServer]SQL Server Dev Without SQL Server? Hi John, In my case, even with those restrictions it will be fine as long as I can easily get everything setup on SQL Server when the time comes. For development I'll just have test data, and while I'll probably have a good amount to check performance issues I can't see it going over 4gig. For dev, I'll be the only user, so that isn't an issue either. But those are important considerations to keep in mind. Thanks. Ron On Mon, 22 Sep 2003 12:16:51 -0400 "John Colby" wrote: >I thought that MSDE had two very important restrictions - >max db size of 4gb >and concurrent user throttling after 5 "users"? Or is >this a different >animal we are talking about. _______________________________________________ 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 Mon Sep 22 11:40:03 2003 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 22 Sep 2003 09:40:03 -0700 Subject: [dba-SQLServer]Is it just me? Message-ID: John, My SQL Server installs (even MSDE) got hosed when I went to a DSL modem. I could open enterprise manager, but I couldn't get into the databases and nothing worked. I uninstalled and attempted to reinstall and gave up for the time being. I haven't had the stamina to try and reinstall them since I moved to a DSL router instead. Apparently the PPoE required for the modem conflicted with SQL Server and I got some of the same symptoms, including the botched installs and reinstalls, etc. Could you be running into something like that? Charlotte Foust -----Original Message----- From: John Colby [mailto:jcolby at colbyconsulting.com] Sent: Monday, September 22, 2003 7:00 AM To: SQLServer Subject: [dba-SQLServer]Is it just me? Or is SQL Server a bit obtuse? I had a badly mangled weekend trying to install a new hard drive. In the process I backed up!!! my SQL Server database and re-installed Windows from scratch. Re-installed SQL Server. The install hung the first time. Tried to re-install - said it already existed (no program groups though). Tried to uninstall, failed with an error message. Tried a re-install with the standard options (except for where the data goes) and it worked. However... the server under the server group had a red square and the words (under THAT) can't connect or something similar. Manually started SQL Server. Dicked around. Dicked around some more. Dicked around even MORE. Now I'm getting what LOOKS like a normal SQL Server except NO Databases. Not even the ones SQL Server builds for itself. And of course if I try to do anything I get error messages out the wazoo. This just sucks folks. Any advice for the SQL Server impaired? 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 jcolby at colbyconsulting.com Mon Sep 22 11:48:15 2003 From: jcolby at colbyconsulting.com (John Colby) Date: Mon, 22 Sep 2003 12:48:15 -0400 Subject: [dba-SQLServer]Is it just me? In-Reply-To: Message-ID: I don't know. I am using TWO routers in fact. I had a 4 port router with WAN connection, but needed another port so I bought a wireless router with for laptop WAN and plugged it into the first router. I was using SQL Server after adding that (I think anyway) however this is the first install I have tried after that. I can simply unplug that new wireless router to see if that helps - after uninstalling SQL Server of course. I'll give that a try and see what happens. 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: Monday, September 22, 2003 12:40 PM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]Is it just me? John, My SQL Server installs (even MSDE) got hosed when I went to a DSL modem. I could open enterprise manager, but I couldn't get into the databases and nothing worked. I uninstalled and attempted to reinstall and gave up for the time being. I haven't had the stamina to try and reinstall them since I moved to a DSL router instead. Apparently the PPoE required for the modem conflicted with SQL Server and I got some of the same symptoms, including the botched installs and reinstalls, etc. Could you be running into something like that? Charlotte Foust -----Original Message----- From: John Colby [mailto:jcolby at colbyconsulting.com] Sent: Monday, September 22, 2003 7:00 AM To: SQLServer Subject: [dba-SQLServer]Is it just me? Or is SQL Server a bit obtuse? I had a badly mangled weekend trying to install a new hard drive. In the process I backed up!!! my SQL Server database and re-installed Windows from scratch. Re-installed SQL Server. The install hung the first time. Tried to re-install - said it already existed (no program groups though). Tried to uninstall, failed with an error message. Tried a re-install with the standard options (except for where the data goes) and it worked. However... the server under the server group had a red square and the words (under THAT) can't connect or something similar. Manually started SQL Server. Dicked around. Dicked around some more. Dicked around even MORE. Now I'm getting what LOOKS like a normal SQL Server except NO Databases. Not even the ones SQL Server builds for itself. And of course if I try to do anything I get error messages out the wazoo. This just sucks folks. Any advice for the SQL Server impaired? 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 my.lists at verizon.net Mon Sep 22 11:55:59 2003 From: my.lists at verizon.net (Francisco H Tapia) Date: Mon, 22 Sep 2003 09:55:59 -0700 Subject: [dba-SQLServer]Is it just me? In-Reply-To: References: Message-ID: <3F6F299F.50002@verizon.net> John Colby wrote: > 2k Pro (Desktop) SP4. > MR WindowsUpdate ;o), you should roll back SP4 and try the install of SQL again... there are KNOWN problems w/ SP4 and SQL Server spcifically in connectivity... in fact SP4 really only ought to be installed when running IIS on that same server, in any case only after a SQL install has been made anyways... -- -Francisco Inflammable means flammable? What a country! From chizotz at charter.net Mon Sep 22 11:54:37 2003 From: chizotz at charter.net (Ron Allen) Date: Mon, 22 Sep 2003 12:54:37 -0400 Subject: [dba-SQLServer]SQL Server Dev Without SQL Server? In-Reply-To: Message-ID: Yeow, yes, I'll try to find that for sure! Thanks John. On Mon, 22 Sep 2003 12:33:14 -0400 "John Colby" wrote: >BTW Ron, I read something the other day that MS has >released a "Developers >version" of SQL Server (full package) for something like >$49. This in order >to get SQL Server into the hands of the developers. It's >the typical >developer license - cannot be used (installed) for >production systems etc. >But great for us poor developers who want the real thing. From my.lists at verizon.net Mon Sep 22 12:07:35 2003 From: my.lists at verizon.net (Francisco H Tapia) Date: Mon, 22 Sep 2003 10:07:35 -0700 Subject: [dba-SQLServer]Is it just me? In-Reply-To: References: Message-ID: <3F6F2C57.6020509@verizon.net> I've never heard of such a problem. I have DSL at home and it connects directly from my MODEM to my NIC card... (NIC is dLink) what are you running? Charlotte Foust wrote: > John, > > My SQL Server installs (even MSDE) got hosed when I went to a DSL modem. > I could open enterprise manager, but I couldn't get into the databases > and nothing worked. I uninstalled and attempted to reinstall and gave > up for the time being. I haven't had the stamina to try and reinstall > them since I moved to a DSL router instead. Apparently the PPoE > required for the modem conflicted with SQL Server and I got some of the > same symptoms, including the botched installs and reinstalls, etc. > Could you be running into something like that? > > Charlotte Foust > > -----Original Message----- > From: John Colby [mailto:jcolby at colbyconsulting.com] > Sent: Monday, September 22, 2003 7:00 AM > To: SQLServer > Subject: [dba-SQLServer]Is it just me? > > > Or is SQL Server a bit obtuse? > > I had a badly mangled weekend trying to install a new hard drive. In > the process I backed up!!! my SQL Server database and re-installed > Windows from scratch. Re-installed SQL Server. The install hung the > first time. Tried to re-install - said it already existed (no program > groups though). Tried to uninstall, failed with an error message. > > Tried a re-install with the standard options (except for where the data > goes) and it worked. However... the server under the server group had a > red square and the words (under THAT) can't connect or something > similar. > > Manually started SQL Server. Dicked around. Dicked around some more. > Dicked around even MORE. > > Now I'm getting what LOOKS like a normal SQL Server except NO Databases. > Not even the ones SQL Server builds for itself. And of course if I try > to do anything I get error messages out the wazoo. > > This just sucks folks. Any advice for the SQL Server impaired? > -- -Francisco Man is least himself when he talks in his own person. Give him a mask and he'll tell you the truth. From my.lists at verizon.net Mon Sep 22 12:10:33 2003 From: my.lists at verizon.net (Francisco H Tapia) Date: Mon, 22 Sep 2003 10:10:33 -0700 Subject: [dba-SQLServer]MSDE Installation In-Reply-To: References: Message-ID: <3F6F2D09.90607@verizon.net> John Colby wrote: > Does anyone know how MSDE gets installed? What it is a part of? > > I want to use MSDE as the database engine for .net development for some > lightweight demo apps and games. I haven't a clue where it comes from > (other than the Access disks). Is it just there for .net? If not is it > available for a download (for free?)? If so, how do I get it installed on a > remote computer? MSDE 2.0 (aka Sql Server Desktop) is available for a free download from MS site, IIRC the license to re-distribute is granted w/ Visual Studio.net and you get redistribution rights of MSDE 1.0 with Office 2000 developer. -- -Francisco This page was generated by a Team of Circus Squirrels From jcolby at colbyconsulting.com Mon Sep 22 12:17:50 2003 From: jcolby at colbyconsulting.com (John Colby) Date: Mon, 22 Sep 2003 13:17:50 -0400 Subject: [dba-SQLServer]Is it just me? In-Reply-To: <3F6F299F.50002@verizon.net> Message-ID: Hmmmm... I will be running IIS, just haven't gotten around to re-installing it. AFAIK I can't "roll it back" though. I can just do a reinstall of Windows. This is a clean install from last weekend, nothing else but SQL Server installed yet. I install the latest SP just to avoid all the bajillions of files the Windows update wants to install if you don't apply the service packs. So is SP5 on the way to fix the SP4 issues? ;-) >MR WindowsUpdate ;o) I have never made any claim that SPs don't cause new problems, only that it isn't generally worth my time to spend the weeks required to understand the issues re what the fixes are, what gets broken, what gets fixed, whether the fixed outweighs the broken etc. My job is to write databases, not spend my life researching SPs. It seems ludicrous to me that a company the size of Microsoft would spend their time fixing bugs, tell me that I should install the SPs so that whatever bugs they have found and fixed are taken care of, then I either refuse (and don't get the bugs fixed) or spend my life researching whether or not to trust them. Of course they screw up, so do I (VERY occasionally). But I can't spend my time being paranoid that they have screwed something up in fixing their original bugs or spend my life being paranoid that because I haven't applied the bug fixes something nasty is going to happen. With all the nasty viruses floating around, it seems that applying service packs just makes sense. And I haven't seen ANY dire warnings not to apply any given Win2K SP in all of the MANY EZines that I scan over the average week! I really don't much care whether you apply the SPs, but having been in this business as long as I have, I certainly expect MY customers to apply MY service packs! And if they refuse... it's on their heads. Your head is your business. I'm applying the damned service packs! And I truly get annoyed when it's implied that I'm being silly (or stupid) in doing so. 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 Francisco H Tapia Sent: Monday, September 22, 2003 12:56 PM To: dba-sqlserver at databaseadvisors.com Subject: Re: [dba-SQLServer]Is it just me? John Colby wrote: > 2k Pro (Desktop) SP4. > MR WindowsUpdate ;o), you should roll back SP4 and try the install of SQL again... there are KNOWN problems w/ SP4 and SQL Server spcifically in connectivity... in fact SP4 really only ought to be installed when running IIS on that same server, in any case only after a SQL install has been made anyways... -- -Francisco Inflammable means flammable? What a country! _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From my.lists at verizon.net Mon Sep 22 12:50:03 2003 From: my.lists at verizon.net (Francisco H Tapia) Date: Mon, 22 Sep 2003 10:50:03 -0700 Subject: [dba-SQLServer]Is it just me? In-Reply-To: References: Message-ID: <3F6F364B.4000504@verizon.net> John Colby wrote: > Hmmmm... > > I will be running IIS, just haven't gotten around to re-installing it. Seems like a perfectly good reason to install SP4, but only after going through Sql Server install, and I'd even look at installing IIS before the SP > > AFAIK I can't "roll it back" though. When you Install SP4 you are asked if you would like to backup the critical files so you can roll back the installation. You simply visit Add/Remove programs and run the Roll back from there. > I can just do a reinstall of Windows. This is a clean install from last > weekend, nothing else but SQL Server installed yet. I install the latest SP > just to avoid all the bajillions of files the Windows update wants to > install if you don't apply the service packs. So is SP5 on the way to fix > the SP4 issues? ;-) Not an SP5 per se, but I've heard rumors that an SP4a or 4b will be making rounds to fix the Sql Server connectivity problems, (AFAIK). > > >>MR WindowsUpdate ;o) > > > I have never made any claim that SPs don't cause new problems, only that it > isn't generally worth my time to spend the weeks required to understand the > issues re what the fixes are, what gets broken, what gets fixed, whether the > fixed outweighs the broken etc. My job is to write databases, not spend my > life researching SPs. I never implied otherwise... I don't like to spend time researching SP's and whether they or any other critical update file is going to fix or break my pc. I like a stable OS... which is why I run Win2k Pro on SP2 > It seems ludicrous to me that a company the size of Microsoft would spend > their time fixing bugs, tell me that I should install the SPs so that > whatever bugs they have found and fixed are taken care of, then I either > refuse (and don't get the bugs fixed) or spend my life researching whether > or not to trust them. Of course they screw up, so do I (VERY occasionally). oh c'mon John ;o) > But I can't spend my time being paranoid that they have screwed something up > in fixing their original bugs or spend my life being paranoid that because I > haven't applied the bug fixes something nasty is going to happen. With all > the nasty viruses floating around, it seems that applying service packs just > makes sense. And I haven't seen ANY dire warnings not to apply any given > Win2K SP in all of the MANY EZines that I scan over the average week! sure there has.. win2kNews.com http://www.w2knews.com/index.cfm?id=434&search=sp4 > I really don't much care whether you apply the SPs, but having been in this > business as long as I have, I certainly expect MY customers to apply MY > service packs! And if they refuse... it's on their heads. Your head is > your business. I'm applying the damned service packs! > > And I truly get annoyed when it's implied that I'm being silly (or stupid) > in doing so. Not implying your are silly or stupid in doing so, I did question your loyalty before, for trusting Windows Updates so dearly. And you are talking about 2 diffrent types of updates... first, your sp to YOUR customer is much more customized and YOU will respond much quicker than a large organization like MS. Please bear in mind I dont' HATE microsoft, I just beleive that they have reached a point where they are soooo big that your request is lost in the midst of MILLIONS of emails. Ceratain errors that you see and someone else does not, is not easly addreasable by the company because there are either more pressing problems or they are willing to accept that x% of the pie is having problems and that's just the way it's gonna go. MS's OSes support about the widest range of hardware than any other OS out there (I realize linux supports most hardware too but if that hardware hasn't been written for it'll probably be hard to find). So SHOULD you blindly install an SP given to you by MS w/o TESTING it first? NOOOOOOooo, test it on another system, or join a newsgroup and find out if they are having any issues w/ that SP... if so then you'll know before you install, should you do this? YES, because SP's DO cause problems. Some are more worth it than others is all. > > > 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 > Francisco H Tapia > Sent: Monday, September 22, 2003 12:56 PM > To: dba-sqlserver at databaseadvisors.com > Subject: Re: [dba-SQLServer]Is it just me? > > > John Colby wrote: > > >>2k Pro (Desktop) SP4. >> > > > MR WindowsUpdate ;o), you should roll back SP4 and try the install of > SQL again... there are KNOWN problems w/ SP4 and SQL Server spcifically > in connectivity... in fact SP4 really only ought to be installed when > running IIS on that same server, in any case only after a SQL install > has been made anyways... -- -Francisco IE <----- Is that even a browser? From jcolby at colbyconsulting.com Mon Sep 22 13:14:30 2003 From: jcolby at colbyconsulting.com (John Colby) Date: Mon, 22 Sep 2003 14:14:30 -0400 Subject: [dba-SQLServer]Is it just me? In-Reply-To: <3F6F364B.4000504@verizon.net> Message-ID: >http://www.w2knews.com/index.cfm?id=434&search=sp4 OK, so I've signed up for ANOTHER ezine. But the ones I already take weren't blaring any headlines. And to quote YOUR ezine: *** W2K SP4 Anecdotal "Unfixes" "Second, do not see this as an attempt to knock SP4 and tell you to not deploy it. This SP has hundreds of important security fixes, so it is important. The main thing I am emphasizing is that you need to TEST, TEST, and TEST in a non-production environment FIRST." *** So there you have it. HUNDREDS of important security fixes which you are not installing. And no, I don't have the time to TEST, TEST, TEST. The man is talking to professional system admins, not the lonely developer sitting at his home office trying to get some work done. And any relevant problems aren't likely to just jump out and grab me by the throat in any case. So you are sitting at SP2, refusing to install the HUNDREDS of important security fixes that SP3 provided, never mind SP4. Again, I don't care whether you do, just knock it off with the "Mr. Windows update" crap. I respect you opinions very highly, but that stuff annoys the hell out of me. 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 Francisco H Tapia Sent: Monday, September 22, 2003 1:50 PM To: dba-sqlserver at databaseadvisors.com Subject: Re: [dba-SQLServer]Is it just me? John Colby wrote: > Hmmmm... > > I will be running IIS, just haven't gotten around to re-installing it. Seems like a perfectly good reason to install SP4, but only after going through Sql Server install, and I'd even look at installing IIS before the SP > > AFAIK I can't "roll it back" though. When you Install SP4 you are asked if you would like to backup the critical files so you can roll back the installation. You simply visit Add/Remove programs and run the Roll back from there. > I can just do a reinstall of Windows. This is a clean install from last > weekend, nothing else but SQL Server installed yet. I install the latest SP > just to avoid all the bajillions of files the Windows update wants to > install if you don't apply the service packs. So is SP5 on the way to fix > the SP4 issues? ;-) Not an SP5 per se, but I've heard rumors that an SP4a or 4b will be making rounds to fix the Sql Server connectivity problems, (AFAIK). > > >>MR WindowsUpdate ;o) > > > I have never made any claim that SPs don't cause new problems, only that it > isn't generally worth my time to spend the weeks required to understand the > issues re what the fixes are, what gets broken, what gets fixed, whether the > fixed outweighs the broken etc. My job is to write databases, not spend my > life researching SPs. I never implied otherwise... I don't like to spend time researching SP's and whether they or any other critical update file is going to fix or break my pc. I like a stable OS... which is why I run Win2k Pro on SP2 > It seems ludicrous to me that a company the size of Microsoft would spend > their time fixing bugs, tell me that I should install the SPs so that > whatever bugs they have found and fixed are taken care of, then I either > refuse (and don't get the bugs fixed) or spend my life researching whether > or not to trust them. Of course they screw up, so do I (VERY occasionally). oh c'mon John ;o) > But I can't spend my time being paranoid that they have screwed something up > in fixing their original bugs or spend my life being paranoid that because I > haven't applied the bug fixes something nasty is going to happen. With all > the nasty viruses floating around, it seems that applying service packs just > makes sense. And I haven't seen ANY dire warnings not to apply any given > Win2K SP in all of the MANY EZines that I scan over the average week! sure there has.. win2kNews.com http://www.w2knews.com/index.cfm?id=434&search=sp4 > I really don't much care whether you apply the SPs, but having been in this > business as long as I have, I certainly expect MY customers to apply MY > service packs! And if they refuse... it's on their heads. Your head is > your business. I'm applying the damned service packs! > > And I truly get annoyed when it's implied that I'm being silly (or stupid) > in doing so. Not implying your are silly or stupid in doing so, I did question your loyalty before, for trusting Windows Updates so dearly. And you are talking about 2 diffrent types of updates... first, your sp to YOUR customer is much more customized and YOU will respond much quicker than a large organization like MS. Please bear in mind I dont' HATE microsoft, I just beleive that they have reached a point where they are soooo big that your request is lost in the midst of MILLIONS of emails. Ceratain errors that you see and someone else does not, is not easly addreasable by the company because there are either more pressing problems or they are willing to accept that x% of the pie is having problems and that's just the way it's gonna go. MS's OSes support about the widest range of hardware than any other OS out there (I realize linux supports most hardware too but if that hardware hasn't been written for it'll probably be hard to find). So SHOULD you blindly install an SP given to you by MS w/o TESTING it first? NOOOOOOooo, test it on another system, or join a newsgroup and find out if they are having any issues w/ that SP... if so then you'll know before you install, should you do this? YES, because SP's DO cause problems. Some are more worth it than others is all. > > > 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 > Francisco H Tapia From mwp.reid at qub.ac.uk Mon Sep 22 14:14:40 2003 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Mon, 22 Sep 2003 12:14:40 -0700 Subject: [dba-SQLServer]MSDE Installation References: <3F6F2D09.90607@verizon.net> Message-ID: <001101c3813d$c6b31880$d00c6351@martin1> Also on the office 2000 and Office 2K CDs. You have toi run the setup file yourself and remember to patch it. I have DSL as well and no problems installing SQL Server Martin ----- Original Message ----- From: "Francisco H Tapia" To: Sent: Monday, September 22, 2003 10:10 AM Subject: Re: [dba-SQLServer]MSDE Installation > John Colby wrote: > > > Does anyone know how MSDE gets installed? What it is a part of? > > > > I want to use MSDE as the database engine for .net development for some > > lightweight demo apps and games. I haven't a clue where it comes from > > (other than the Access disks). Is it just there for .net? If not is it > > available for a download (for free?)? If so, how do I get it installed on a > > remote computer? > > MSDE 2.0 (aka Sql Server Desktop) is available for a free download from > MS site, IIRC the license to re-distribute is granted w/ Visual > Studio.net and you get redistribution rights of MSDE 1.0 with Office > 2000 developer. > > -- > -Francisco > This page was generated by a Team of Circus Squirrels > > _______________________________________________ > 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 Mon Sep 22 15:01:27 2003 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 22 Sep 2003 13:01:27 -0700 Subject: [dba-SQLServer]Is it just me? Message-ID: Same thing. SQL Server stopped working when the DSL was installed and could not be resuscitated or reinstalled. It objected strenuously to the whole PPoE thing. My NIC is also dLink. I haven't tried reinstalling since I got the router and lost the PPoE. Charlotte Foust -----Original Message----- From: Francisco H Tapia [mailto:my.lists at verizon.net] Sent: Monday, September 22, 2003 9:08 AM To: dba-sqlserver at databaseadvisors.com Subject: Re: [dba-SQLServer]Is it just me? I've never heard of such a problem. I have DSL at home and it connects directly from my MODEM to my NIC card... (NIC is dLink) what are you running? Charlotte Foust wrote: > John, > > My SQL Server installs (even MSDE) got hosed when I went to a DSL > modem. I could open enterprise manager, but I couldn't get into the > databases and nothing worked. I uninstalled and attempted to > reinstall and gave up for the time being. I haven't had the stamina > to try and reinstall them since I moved to a DSL router instead. > Apparently the PPoE required for the modem conflicted with SQL Server > and I got some of the same symptoms, including the botched installs > and reinstalls, etc. Could you be running into something like that? > > Charlotte Foust > > -----Original Message----- > From: John Colby [mailto:jcolby at colbyconsulting.com] > Sent: Monday, September 22, 2003 7:00 AM > To: SQLServer > Subject: [dba-SQLServer]Is it just me? > > > Or is SQL Server a bit obtuse? > > I had a badly mangled weekend trying to install a new hard drive. In > the process I backed up!!! my SQL Server database and re-installed > Windows from scratch. Re-installed SQL Server. The install hung the > first time. Tried to re-install - said it already existed (no program > groups though). Tried to uninstall, failed with an error message. > > Tried a re-install with the standard options (except for where the > data > goes) and it worked. However... the server under the server group had a > red square and the words (under THAT) can't connect or something > similar. > > Manually started SQL Server. Dicked around. Dicked around some more. > Dicked around even MORE. > > Now I'm getting what LOOKS like a normal SQL Server except NO > Databases. Not even the ones SQL Server builds for itself. And of > course if I try to do anything I get error messages out the wazoo. > > This just sucks folks. Any advice for the SQL Server impaired? > -- -Francisco Man is least himself when he talks in his own person. Give him a mask and he'll tell you the truth. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From my.lists at verizon.net Mon Sep 22 15:24:33 2003 From: my.lists at verizon.net (Francisco H Tapia) Date: Mon, 22 Sep 2003 13:24:33 -0700 Subject: [dba-SQLServer]Is it just me? In-Reply-To: References: Message-ID: <3F6F5A81.9010406@verizon.net> hmm, I was installing Sql Server Developer 2000, where you installing this as well? On a Win2k Pro system and I believe I was running with SP2 maybe it was SP1 back then... Charlotte Foust wrote: > Same thing. SQL Server stopped working when the DSL was installed and > could not be resuscitated or reinstalled. It objected strenuously to > the whole PPoE thing. My NIC is also dLink. I haven't tried > reinstalling since I got the router and lost the PPoE. > > Charlotte Foust > > -----Original Message----- > From: Francisco H Tapia [mailto:my.lists at verizon.net] > Sent: Monday, September 22, 2003 9:08 AM > To: dba-sqlserver at databaseadvisors.com > Subject: Re: [dba-SQLServer]Is it just me? > > > > I've never heard of such a problem. I have DSL at home and it connects > directly from my MODEM to my NIC card... (NIC is dLink) what are you > running? > > > > Charlotte Foust wrote: > > >>John, >> >>My SQL Server installs (even MSDE) got hosed when I went to a DSL >>modem. I could open enterprise manager, but I couldn't get into the >>databases and nothing worked. I uninstalled and attempted to >>reinstall and gave up for the time being. I haven't had the stamina >>to try and reinstall them since I moved to a DSL router instead. >>Apparently the PPoE required for the modem conflicted with SQL Server >>and I got some of the same symptoms, including the botched installs >>and reinstalls, etc. Could you be running into something like that? >> >>Charlotte Foust >> >>-----Original Message----- >>From: John Colby [mailto:jcolby at colbyconsulting.com] >>Sent: Monday, September 22, 2003 7:00 AM >>To: SQLServer >>Subject: [dba-SQLServer]Is it just me? >> >> >>Or is SQL Server a bit obtuse? >> >>I had a badly mangled weekend trying to install a new hard drive. In >>the process I backed up!!! my SQL Server database and re-installed >>Windows from scratch. Re-installed SQL Server. The install hung the >>first time. Tried to re-install - said it already existed (no program > > >>groups though). Tried to uninstall, failed with an error message. >> >>Tried a re-install with the standard options (except for where the >>data >>goes) and it worked. However... the server under the server group had > > a > >>red square and the words (under THAT) can't connect or something >>similar. >> >>Manually started SQL Server. Dicked around. Dicked around some more. >>Dicked around even MORE. >> >>Now I'm getting what LOOKS like a normal SQL Server except NO >>Databases. Not even the ones SQL Server builds for itself. And of >>course if I try to do anything I get error messages out the wazoo. >> >>This just sucks folks. Any advice for the SQL Server impaired? >> > > -- -Francisco Firebird the browser that blows the competition away. Can you feel the fire? From fhtapia at hotmail.com Mon Sep 22 15:41:04 2003 From: fhtapia at hotmail.com (Francisco H Tapia) Date: Mon, 22 Sep 2003 13:41:04 -0700 Subject: [dba-SQLServer]Is it just me? In-Reply-To: References: Message-ID: <3F6F5E60.9090409@hotmail.com> John Colby wrote: >>http://www.w2knews.com/index.cfm?id=434&search=sp4 > So there you have it. HUNDREDS of important security fixes which you are > not installing. John I am notoriously always making sure my system is secure, I run Sygate Personal Firewall (which is probably "THE" best firewall around) and run TrendMicro PcCillin, as well as spybot for searching for possible missed trojans. Recently I've stopped surfing the web with IE, now I use Mozilla Firebird which does not suffer from the same security exploits as IE. I've restricted IE's access to and from the internet so I'm now prompted by my firewall if I wish to allow particular software to call home. Also SP3 and 4 both contain services that like to call home to Microsoft. in SP4's agreement screen they are clearly outlined so that you can turn them off if you so wish... the problem is not it calling home heck my Anti-virus and Firewall software already do that, but the fact that I don't need anything else timing out and causing slowdowns on my pc. I like it running as fast as bleeding possible. > And no, I don't have the time to TEST, TEST, TEST. The man is talking to > professional system admins, not the lonely developer sitting at his home > office trying to get some work done. And any relevant problems aren't > likely to just jump out and grab me by the throat in any case. Yes the article and specifically the eZine's target audience are System administrators of Windows 2000 systems. However you're missing the point, they are responsible for making sure that the enterprise is always up and running. Thus following partical advices from system administrators that choose stability and security over bleeding edge patching, you can maintain a reliable OS. > So you are sitting at SP2, refusing to install the HUNDREDS of important > security fixes that SP3 provided, never mind SP4. Yes, I'm also refusing all the other bugs that can cause my virus scanner and other software from crashing or running unreliably. Not to mention that Sql Server 2000 Developer "IS" running on my home machine at SP2, and well not at all on your machine w/ SP4. hmmm I choose a running system... you? > Again, I don't care whether you do, just knock it off with the "Mr. Windows > update" crap. I respect you opinions very highly, but that stuff annoys the > hell out of me. Thanks John, c'mon you know I'm needeling you at the ribs... it's not like I'm saying "Unbound Forms are easier to program than bound forms" ;o) > 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 > Francisco H Tapia > Sent: Monday, September 22, 2003 1:50 PM > To: dba-sqlserver at databaseadvisors.com > Subject: Re: [dba-SQLServer]Is it just me? > > > John Colby wrote: > > >>Hmmmm... >> >>I will be running IIS, just haven't gotten around to re-installing it. > > > Seems like a perfectly good reason to install SP4, but only after going > through Sql Server install, and I'd even look at installing IIS before > the SP > > > >>AFAIK I can't "roll it back" though. > > > When you Install SP4 you are asked if you would like to backup the > critical files so you can roll back the installation. You simply visit > Add/Remove programs and run the Roll back from there. > > > >>I can just do a reinstall of Windows. This is a clean install from last >>weekend, nothing else but SQL Server installed yet. I install the latest > > SP > >>just to avoid all the bajillions of files the Windows update wants to >>install if you don't apply the service packs. So is SP5 on the way to fix >>the SP4 issues? ;-) > > > Not an SP5 per se, but I've heard rumors that an SP4a or 4b will be > making rounds to fix the Sql Server connectivity problems, (AFAIK). > > >> >> >>>MR WindowsUpdate ;o) >> >> >>I have never made any claim that SPs don't cause new problems, only that > > it > >>isn't generally worth my time to spend the weeks required to understand > > the > >>issues re what the fixes are, what gets broken, what gets fixed, whether > > the > >>fixed outweighs the broken etc. My job is to write databases, not spend > > my > >>life researching SPs. > > > I never implied otherwise... I don't like to spend time researching SP's > and whether they or any other critical update file is going to fix or > break my pc. I like a stable OS... which is why I run Win2k Pro on SP2 > > >>It seems ludicrous to me that a company the size of Microsoft would spend >>their time fixing bugs, tell me that I should install the SPs so that >>whatever bugs they have found and fixed are taken care of, then I either >>refuse (and don't get the bugs fixed) or spend my life researching whether >>or not to trust them. Of course they screw up, so do I (VERY > > occasionally). > > oh c'mon John ;o) > > > >>But I can't spend my time being paranoid that they have screwed something > > up > >>in fixing their original bugs or spend my life being paranoid that because > > I > >>haven't applied the bug fixes something nasty is going to happen. With > > all > >>the nasty viruses floating around, it seems that applying service packs > > just > >>makes sense. And I haven't seen ANY dire warnings not to apply any given >>Win2K SP in all of the MANY EZines that I scan over the average week! > > > > sure there has.. win2kNews.com > http://www.w2knews.com/index.cfm?id=434&search=sp4 > > > > >>I really don't much care whether you apply the SPs, but having been in > > this > >>business as long as I have, I certainly expect MY customers to apply MY >>service packs! And if they refuse... it's on their heads. Your head is >>your business. I'm applying the damned service packs! >> >>And I truly get annoyed when it's implied that I'm being silly (or stupid) >>in doing so. > > > Not implying your are silly or stupid in doing so, I did question your > loyalty before, for trusting Windows Updates so dearly. And you are > talking about 2 diffrent types of updates... first, your sp to YOUR > customer is much more customized and YOU will respond much quicker than > a large organization like MS. Please bear in mind I dont' HATE > microsoft, I just beleive that they have reached a point where they are > soooo big that your request is lost in the midst of MILLIONS of emails. > Ceratain errors that you see and someone else does not, is not > easly addreasable by the company because there are either more pressing > problems or they are willing to accept that x% of the pie is having > problems and that's just the way it's gonna go. MS's OSes support about > the widest range of hardware than any other OS out there (I realize > linux supports most hardware too but if that hardware hasn't been > written for it'll probably be hard to find). > > So SHOULD you blindly install an SP given to you by MS w/o TESTING it > first? NOOOOOOooo, test it on another system, or join a newsgroup and > find out if they are having any issues w/ that SP... if so then you'll > know before you install, should you do this? YES, because SP's DO cause > problems. Some are more worth it than others is all. > > >> >> >>John W. Colby >>www.colbyconsulting.com >> -- -Francisco Firebird the browser that blows the competition away. Can you feel the fire? From cfoust at infostatsystems.com Mon Sep 22 15:39:11 2003 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 22 Sep 2003 13:39:11 -0700 Subject: [dba-SQLServer]Is it just me? Message-ID: I was installing SQL Server 2000 but I don't recall whether it was Developer or "Personal" (Developer I think), and I was running either SP1 or 2, whichever was current. Charlotte Foust -----Original Message----- From: Francisco H Tapia [mailto:my.lists at verizon.net] Sent: Monday, September 22, 2003 12:25 PM To: dba-sqlserver at databaseadvisors.com Subject: Re: [dba-SQLServer]Is it just me? hmm, I was installing Sql Server Developer 2000, where you installing this as well? On a Win2k Pro system and I believe I was running with SP2 maybe it was SP1 back then... Charlotte Foust wrote: > Same thing. SQL Server stopped working when the DSL was installed and > could not be resuscitated or reinstalled. It objected strenuously to > the whole PPoE thing. My NIC is also dLink. I haven't tried > reinstalling since I got the router and lost the PPoE. > > Charlotte Foust > > -----Original Message----- > From: Francisco H Tapia [mailto:my.lists at verizon.net] > Sent: Monday, September 22, 2003 9:08 AM > To: dba-sqlserver at databaseadvisors.com > Subject: Re: [dba-SQLServer]Is it just me? > > > > I've never heard of such a problem. I have DSL at home and it > connects > directly from my MODEM to my NIC card... (NIC is dLink) what are you > running? > > > > Charlotte Foust wrote: > > >>John, >> >>My SQL Server installs (even MSDE) got hosed when I went to a DSL >>modem. I could open enterprise manager, but I couldn't get into the >>databases and nothing worked. I uninstalled and attempted to >>reinstall and gave up for the time being. I haven't had the stamina >>to try and reinstall them since I moved to a DSL router instead. >>Apparently the PPoE required for the modem conflicted with SQL Server >>and I got some of the same symptoms, including the botched installs >>and reinstalls, etc. Could you be running into something like that? >> >>Charlotte Foust >> >>-----Original Message----- >>From: John Colby [mailto:jcolby at colbyconsulting.com] >>Sent: Monday, September 22, 2003 7:00 AM >>To: SQLServer >>Subject: [dba-SQLServer]Is it just me? >> >> >>Or is SQL Server a bit obtuse? >> >>I had a badly mangled weekend trying to install a new hard drive. In >>the process I backed up!!! my SQL Server database and re-installed >>Windows from scratch. Re-installed SQL Server. The install hung the >>first time. Tried to re-install - said it already existed (no program > > >>groups though). Tried to uninstall, failed with an error message. >> >>Tried a re-install with the standard options (except for where the >>data >>goes) and it worked. However... the server under the server group had > > a > >>red square and the words (under THAT) can't connect or something >>similar. >> >>Manually started SQL Server. Dicked around. Dicked around some more. >>Dicked around even MORE. >> >>Now I'm getting what LOOKS like a normal SQL Server except NO >>Databases. Not even the ones SQL Server builds for itself. And of >>course if I try to do anything I get error messages out the wazoo. >> >>This just sucks folks. Any advice for the SQL Server impaired? >> > > -- -Francisco Firebird the browser that blows the competition away. Can you feel the fire? _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From my.lists at verizon.net Mon Sep 22 15:56:08 2003 From: my.lists at verizon.net (Francisco H Tapia) Date: Mon, 22 Sep 2003 13:56:08 -0700 Subject: [dba-SQLServer]Is it just me? In-Reply-To: References: Message-ID: <3F6F61E8.3030403@verizon.net> Charlotte, Phone line to modem to nic? btw, did you install some sort of DSL software? I never did I just loaded the drivers for my nic and have had no problems. Charlotte Foust wrote: > I was installing SQL Server 2000 but I don't recall whether it was > Developer or "Personal" (Developer I think), and I was running either > SP1 or 2, whichever was current. > > Charlotte Foust > > -----Original Message----- > From: Francisco H Tapia [mailto:my.lists at verizon.net] > Sent: Monday, September 22, 2003 12:25 PM > To: dba-sqlserver at databaseadvisors.com > Subject: Re: [dba-SQLServer]Is it just me? > > > hmm, I was installing Sql Server Developer 2000, where you installing > this as well? On a Win2k Pro system and I believe I was running with > SP2 maybe it was SP1 back then... > > > Charlotte Foust wrote: > > >>Same thing. SQL Server stopped working when the DSL was installed and > > >>could not be resuscitated or reinstalled. It objected strenuously to >>the whole PPoE thing. My NIC is also dLink. I haven't tried >>reinstalling since I got the router and lost the PPoE. >> >>Charlotte Foust >> >>-----Original Message----- >>From: Francisco H Tapia [mailto:my.lists at verizon.net] >>Sent: Monday, September 22, 2003 9:08 AM >>To: dba-sqlserver at databaseadvisors.com >>Subject: Re: [dba-SQLServer]Is it just me? >> >> >> >>I've never heard of such a problem. I have DSL at home and it >>connects >>directly from my MODEM to my NIC card... (NIC is dLink) what are you >>running? >> >> >> >>Charlotte Foust wrote: >> >> >> >>>John, >>> >>>My SQL Server installs (even MSDE) got hosed when I went to a DSL >>>modem. I could open enterprise manager, but I couldn't get into the >>>databases and nothing worked. I uninstalled and attempted to >>>reinstall and gave up for the time being. I haven't had the stamina >>>to try and reinstall them since I moved to a DSL router instead. >>>Apparently the PPoE required for the modem conflicted with SQL Server >>>and I got some of the same symptoms, including the botched installs >>>and reinstalls, etc. Could you be running into something like that? >>> >>>Charlotte Foust >>> >>>-----Original Message----- >>>From: John Colby [mailto:jcolby at colbyconsulting.com] >>>Sent: Monday, September 22, 2003 7:00 AM >>>To: SQLServer >>>Subject: [dba-SQLServer]Is it just me? >>> >>> >>>Or is SQL Server a bit obtuse? >>> >>>I had a badly mangled weekend trying to install a new hard drive. In >>>the process I backed up!!! my SQL Server database and re-installed >>>Windows from scratch. Re-installed SQL Server. The install hung the >>>first time. Tried to re-install - said it already existed (no program >> >> >>>groups though). Tried to uninstall, failed with an error message. >>> >>>Tried a re-install with the standard options (except for where the >>>data >>>goes) and it worked. However... the server under the server group had >> >>a >> >> >>>red square and the words (under THAT) can't connect or something >>>similar. >>> >>>Manually started SQL Server. Dicked around. Dicked around some more. >>>Dicked around even MORE. >>> >>>Now I'm getting what LOOKS like a normal SQL Server except NO >>>Databases. Not even the ones SQL Server builds for itself. And of >>>course if I try to do anything I get error messages out the wazoo. >>> >>>This just sucks folks. Any advice for the SQL Server impaired? >>> >> >> > > -- -Francisco Inflammable means flammable? What a country! From cfoust at infostatsystems.com Mon Sep 22 16:27:04 2003 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 22 Sep 2003 14:27:04 -0700 Subject: [dba-SQLServer]Is it just me? Message-ID: I did originally install DSL software because it was a self-installation, and the CD didn't really give me a choice. Afterwards, I pulled the stuff off, but it didn't give me back SQL Server capability. When I went to the router, I uninstalled the modem stuff and haven't yet taken the time to try and reinstall SQL Server. Charlotte Foust -----Original Message----- From: Francisco H Tapia [mailto:my.lists at verizon.net] Sent: Monday, September 22, 2003 12:56 PM To: dba-sqlserver at databaseadvisors.com Subject: Re: [dba-SQLServer]Is it just me? Charlotte, Phone line to modem to nic? btw, did you install some sort of DSL software? I never did I just loaded the drivers for my nic and have had no problems. Charlotte Foust wrote: > I was installing SQL Server 2000 but I don't recall whether it was > Developer or "Personal" (Developer I think), and I was running either > SP1 or 2, whichever was current. > > Charlotte Foust > > -----Original Message----- > From: Francisco H Tapia [mailto:my.lists at verizon.net] > Sent: Monday, September 22, 2003 12:25 PM > To: dba-sqlserver at databaseadvisors.com > Subject: Re: [dba-SQLServer]Is it just me? > > > hmm, I was installing Sql Server Developer 2000, where you installing > this as well? On a Win2k Pro system and I believe I was running with > SP2 maybe it was SP1 back then... > > > Charlotte Foust wrote: > > >>Same thing. SQL Server stopped working when the DSL was installed and > > >>could not be resuscitated or reinstalled. It objected strenuously to >>the whole PPoE thing. My NIC is also dLink. I haven't tried >>reinstalling since I got the router and lost the PPoE. >> >>Charlotte Foust >> >>-----Original Message----- >>From: Francisco H Tapia [mailto:my.lists at verizon.net] >>Sent: Monday, September 22, 2003 9:08 AM >>To: dba-sqlserver at databaseadvisors.com >>Subject: Re: [dba-SQLServer]Is it just me? >> >> >> >>I've never heard of such a problem. I have DSL at home and it >>connects >>directly from my MODEM to my NIC card... (NIC is dLink) what are you >>running? >> >> >> >>Charlotte Foust wrote: >> >> >> >>>John, >>> >>>My SQL Server installs (even MSDE) got hosed when I went to a DSL >>>modem. I could open enterprise manager, but I couldn't get into the >>>databases and nothing worked. I uninstalled and attempted to >>>reinstall and gave up for the time being. I haven't had the stamina >>>to try and reinstall them since I moved to a DSL router instead. >>>Apparently the PPoE required for the modem conflicted with SQL Server >>>and I got some of the same symptoms, including the botched installs >>>and reinstalls, etc. Could you be running into something like that? >>> >>>Charlotte Foust >>> >>>-----Original Message----- >>>From: John Colby [mailto:jcolby at colbyconsulting.com] >>>Sent: Monday, September 22, 2003 7:00 AM >>>To: SQLServer >>>Subject: [dba-SQLServer]Is it just me? >>> >>> >>>Or is SQL Server a bit obtuse? >>> >>>I had a badly mangled weekend trying to install a new hard drive. In >>>the process I backed up!!! my SQL Server database and re-installed >>>Windows from scratch. Re-installed SQL Server. The install hung the >>>first time. Tried to re-install - said it already existed (no >>>program >> >> >>>groups though). Tried to uninstall, failed with an error message. >>> >>>Tried a re-install with the standard options (except for where the >>>data >>>goes) and it worked. However... the server under the server group >>>had >> >>a >> >> >>>red square and the words (under THAT) can't connect or something >>>similar. >>> >>>Manually started SQL Server. Dicked around. Dicked around some more. >>>Dicked around even MORE. >>> >>>Now I'm getting what LOOKS like a normal SQL Server except NO >>>Databases. Not even the ones SQL Server builds for itself. And of >>>course if I try to do anything I get error messages out the wazoo. >>> >>>This just sucks folks. Any advice for the SQL Server impaired? >>> >> >> > > -- -Francisco Inflammable means flammable? What a country! _______________________________________________ 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 Mon Sep 22 16:37:39 2003 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 22 Sep 2003 14:37:39 -0700 Subject: [dba-SQLServer]MSDE Installation References: <3F6F2D09.90607@verizon.net> <001101c3813d$c6b31880$d00c6351@martin1> Message-ID: <3F6F6BA3.5000604@shaw.ca> http://www.asp.net/msde/default.aspx?tabindex=0&tabid=1 If you have installed net framework and using ASPnet WebMatrix (license requirement) Here is Microsoft download for SQL 2000 SP3 MSDE (blaster patch included) with install directions. Martin Reid wrote: >Also on the office 2000 and Office 2K CDs. You have toi run the setup file >yourself and remember to patch it. > >I have DSL as well and no problems installing SQL Server > > >Martin > > >----- Original Message ----- >From: "Francisco H Tapia" >To: >Sent: Monday, September 22, 2003 10:10 AM >Subject: Re: [dba-SQLServer]MSDE Installation > > > > >>John Colby wrote: >> >> >> >>>Does anyone know how MSDE gets installed? What it is a part of? >>> >>>I want to use MSDE as the database engine for .net development for some >>>lightweight demo apps and games. I haven't a clue where it comes from >>>(other than the Access disks). Is it just there for .net? If not is it >>>available for a download (for free?)? If so, how do I get it installed >>> >>> >on a > > >>>remote computer? >>> >>> >>MSDE 2.0 (aka Sql Server Desktop) is available for a free download from >>MS site, IIRC the license to re-distribute is granted w/ Visual >>Studio.net and you get redistribution rights of MSDE 1.0 with Office >>2000 developer. >> >>-- >>-Francisco >>This page was generated by a Team of Circus Squirrels >> >>_______________________________________________ >>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 my.lists at verizon.net Mon Sep 22 16:47:58 2003 From: my.lists at verizon.net (Francisco H Tapia) Date: Mon, 22 Sep 2003 14:47:58 -0700 Subject: [dba-SQLServer]Is it just me? In-Reply-To: References: Message-ID: <3F6F6E0E.20205@verizon.net> I'll take a wild stab that it was your DSL software that caused the problem... but even on a Self Installation why would you need to use the CD, I mean it's a standard network connection from the Nic to the Modem. I wonder if you could just go in and remove any of the bindings with PPPoE and everything might work after that... tho I'd make a full system backup before messing w/ your network configuration... Charlotte Foust wrote: > I did originally install DSL software because it was a > self-installation, and the CD didn't really give me a choice. > Afterwards, I pulled the stuff off, but it didn't give me back SQL > Server capability. When I went to the router, I uninstalled the modem > stuff and haven't yet taken the time to try and reinstall SQL Server. > > Charlotte Foust > > -----Original Message----- > From: Francisco H Tapia [mailto:my.lists at verizon.net] > Sent: Monday, September 22, 2003 12:56 PM > To: dba-sqlserver at databaseadvisors.com > Subject: Re: [dba-SQLServer]Is it just me? > > > Charlotte, > Phone line to modem to nic? btw, did you install some sort of DSL > software? I never did I just loaded the drivers for my nic and have had > > no problems. > > > > Charlotte Foust wrote: > > >>I was installing SQL Server 2000 but I don't recall whether it was >>Developer or "Personal" (Developer I think), and I was running either >>SP1 or 2, whichever was current. >> >>Charlotte Foust >> >>-----Original Message----- >>From: Francisco H Tapia [mailto:my.lists at verizon.net] >>Sent: Monday, September 22, 2003 12:25 PM >>To: dba-sqlserver at databaseadvisors.com >>Subject: Re: [dba-SQLServer]Is it just me? >> >> >>hmm, I was installing Sql Server Developer 2000, where you installing >>this as well? On a Win2k Pro system and I believe I was running with >>SP2 maybe it was SP1 back then... >> >> >>Charlotte Foust wrote: >> >> >> >>>Same thing. SQL Server stopped working when the DSL was installed and >> >> >>>could not be resuscitated or reinstalled. It objected strenuously to >>>the whole PPoE thing. My NIC is also dLink. I haven't tried >>>reinstalling since I got the router and lost the PPoE. >>> >>>Charlotte Foust >>> >>>-----Original Message----- >>>From: Francisco H Tapia [mailto:my.lists at verizon.net] >>>Sent: Monday, September 22, 2003 9:08 AM >>>To: dba-sqlserver at databaseadvisors.com >>>Subject: Re: [dba-SQLServer]Is it just me? >>> >>> >>> >>>I've never heard of such a problem. I have DSL at home and it >>>connects >>>directly from my MODEM to my NIC card... (NIC is dLink) what are you >>>running? >>> >>> >>> >>>Charlotte Foust wrote: >>> >>> >>> >>> >>>>John, >>>> >>>>My SQL Server installs (even MSDE) got hosed when I went to a DSL >>>>modem. I could open enterprise manager, but I couldn't get into the >>>>databases and nothing worked. I uninstalled and attempted to >>>>reinstall and gave up for the time being. I haven't had the stamina >>>>to try and reinstall them since I moved to a DSL router instead. >>>>Apparently the PPoE required for the modem conflicted with SQL Server > > >>>>and I got some of the same symptoms, including the botched installs >>>>and reinstalls, etc. Could you be running into something like that? >>>> >>>>Charlotte Foust >>>> >>>>-----Original Message----- >>>>From: John Colby [mailto:jcolby at colbyconsulting.com] >>>>Sent: Monday, September 22, 2003 7:00 AM >>>>To: SQLServer >>>>Subject: [dba-SQLServer]Is it just me? >>>> >>>> >>>>Or is SQL Server a bit obtuse? >>>> >>>>I had a badly mangled weekend trying to install a new hard drive. In > > >>>>the process I backed up!!! my SQL Server database and re-installed >>>>Windows from scratch. Re-installed SQL Server. The install hung the > > >>>>first time. Tried to re-install - said it already existed (no >>>>program >>> >>> >>>>groups though). Tried to uninstall, failed with an error message. >>>> >>>>Tried a re-install with the standard options (except for where the >>>>data >>>>goes) and it worked. However... the server under the server group >>>>had >>> >>>a >>> >>> >>> >>>>red square and the words (under THAT) can't connect or something >>>>similar. >>>> >>>>Manually started SQL Server. Dicked around. Dicked around some more. > > >>>>Dicked around even MORE. >>>> >>>>Now I'm getting what LOOKS like a normal SQL Server except NO >>>>Databases. Not even the ones SQL Server builds for itself. And of >>>>course if I try to do anything I get error messages out the wazoo. >>>> >>>>This just sucks folks. Any advice for the SQL Server impaired? >>>> >>> >>> >> > > -- -Francisco Firebird the browser that blows the competition away. Can you feel the fire? From cfoust at infostatsystems.com Mon Sep 22 16:49:28 2003 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 22 Sep 2003 14:49:28 -0700 Subject: [dba-SQLServer]Is it just me? Message-ID: No network, this is my home machine. When I tried removing the PPoE bindings, the whole thing died on me. For now it works, and I'll address SQL Server one day soon. Charlotte Foust -----Original Message----- From: Francisco H Tapia [mailto:my.lists at verizon.net] Sent: Monday, September 22, 2003 1:48 PM To: dba-sqlserver at databaseadvisors.com Subject: Re: [dba-SQLServer]Is it just me? I'll take a wild stab that it was your DSL software that caused the problem... but even on a Self Installation why would you need to use the CD, I mean it's a standard network connection from the Nic to the Modem. I wonder if you could just go in and remove any of the bindings with PPPoE and everything might work after that... tho I'd make a full system backup before messing w/ your network configuration... Charlotte Foust wrote: > I did originally install DSL software because it was a > self-installation, and the CD didn't really give me a choice. > Afterwards, I pulled the stuff off, but it didn't give me back SQL > Server capability. When I went to the router, I uninstalled the modem > stuff and haven't yet taken the time to try and reinstall SQL Server. > > Charlotte Foust > > -----Original Message----- > From: Francisco H Tapia [mailto:my.lists at verizon.net] > Sent: Monday, September 22, 2003 12:56 PM > To: dba-sqlserver at databaseadvisors.com > Subject: Re: [dba-SQLServer]Is it just me? > > > Charlotte, > Phone line to modem to nic? btw, did you install some sort of DSL > software? I never did I just loaded the drivers for my nic and have had > > no problems. > > > > Charlotte Foust wrote: > > >>I was installing SQL Server 2000 but I don't recall whether it was >>Developer or "Personal" (Developer I think), and I was running either >>SP1 or 2, whichever was current. >> >>Charlotte Foust >> >>-----Original Message----- >>From: Francisco H Tapia [mailto:my.lists at verizon.net] >>Sent: Monday, September 22, 2003 12:25 PM >>To: dba-sqlserver at databaseadvisors.com >>Subject: Re: [dba-SQLServer]Is it just me? >> >> >>hmm, I was installing Sql Server Developer 2000, where you installing >>this as well? On a Win2k Pro system and I believe I was running with >>SP2 maybe it was SP1 back then... >> >> >>Charlotte Foust wrote: >> >> >> >>>Same thing. SQL Server stopped working when the DSL was installed >>>and >> >> >>>could not be resuscitated or reinstalled. It objected strenuously to >>>the whole PPoE thing. My NIC is also dLink. I haven't tried >>>reinstalling since I got the router and lost the PPoE. >>> >>>Charlotte Foust >>> >>>-----Original Message----- >>>From: Francisco H Tapia [mailto:my.lists at verizon.net] >>>Sent: Monday, September 22, 2003 9:08 AM >>>To: dba-sqlserver at databaseadvisors.com >>>Subject: Re: [dba-SQLServer]Is it just me? >>> >>> >>> >>>I've never heard of such a problem. I have DSL at home and it >>>connects directly from my MODEM to my NIC card... (NIC is dLink) >>>what are you running? >>> >>> >>> >>>Charlotte Foust wrote: >>> >>> >>> >>> >>>>John, >>>> >>>>My SQL Server installs (even MSDE) got hosed when I went to a DSL >>>>modem. I could open enterprise manager, but I couldn't get into the >>>>databases and nothing worked. I uninstalled and attempted to >>>>reinstall and gave up for the time being. I haven't had the stamina >>>>to try and reinstall them since I moved to a DSL router instead. >>>>Apparently the PPoE required for the modem conflicted with SQL Server > > >>>>and I got some of the same symptoms, including the botched installs >>>>and reinstalls, etc. Could you be running into something like that? >>>> >>>>Charlotte Foust >>>> >>>>-----Original Message----- >>>>From: John Colby [mailto:jcolby at colbyconsulting.com] >>>>Sent: Monday, September 22, 2003 7:00 AM >>>>To: SQLServer >>>>Subject: [dba-SQLServer]Is it just me? >>>> >>>> >>>>Or is SQL Server a bit obtuse? >>>> >>>>I had a badly mangled weekend trying to install a new hard drive. >>>>In > > >>>>the process I backed up!!! my SQL Server database and re-installed >>>>Windows from scratch. Re-installed SQL Server. The install hung the > > >>>>first time. Tried to re-install - said it already existed (no >>>>program >>> >>> >>>>groups though). Tried to uninstall, failed with an error message. >>>> >>>>Tried a re-install with the standard options (except for where the >>>>data >>>>goes) and it worked. However... the server under the server group >>>>had >>> >>>a >>> >>> >>> >>>>red square and the words (under THAT) can't connect or something >>>>similar. >>>> >>>>Manually started SQL Server. Dicked around. Dicked around some >>>>more. > > >>>>Dicked around even MORE. >>>> >>>>Now I'm getting what LOOKS like a normal SQL Server except NO >>>>Databases. Not even the ones SQL Server builds for itself. And of >>>>course if I try to do anything I get error messages out the wazoo. >>>> >>>>This just sucks folks. Any advice for the SQL Server impaired? >>>> >>> >>> >> > > -- -Francisco Firebird the browser that blows the competition away. Can you feel the fire? _______________________________________________ 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 Mon Sep 22 19:16:48 2003 From: davide at dalyn.co.nz (David Emerson) Date: Tue, 23 Sep 2003 12:16:48 +1200 Subject: [dba-SQLServer]Creating Sproc over 8000 chars long Message-ID: <5.2.0.9.0.20030923120738.00b1d610@mail.dalyn.co.nz> I have a sproc that accepts a string as a parameter which is used in a where clause to filter out customers. The string is created by looping through a list box and adding the customers that have been selected: strList = strList & " or ((CustomerID) = " & .ItemData(varItem) & ")" This goes into a statement which starts like this: DECLARE @qs varchar (8000) SELECT @qs = 'INSERT INTO ttmpExportMerge (CustomerName, TradingName, ... etc However the problem is that there could be over 1600 customers and this means that strList is over 8000 character which exceeds the @qs length (without even allowing for the rest of the sproc). Is there a data type that can handle these numbers? I tried 'text' but the sproc errors with "text is invalid for local variables" Is my only option to write the customer ID to a table and join it to the rest of the sproc? Regards David Emerson DALYN Software Ltd 25b Cunliffe St, Johnsonville Wellington, New Zealand Ph/Fax (877) 456-1205 -------------- next part -------------- An HTML attachment was scrubbed... URL: From stuart at lexacorp.com.pg Mon Sep 22 19:39:20 2003 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 23 Sep 2003 10:39:20 +1000 Subject: [dba-SQLServer]Creating Sproc over 8000 chars long In-Reply-To: <5.2.0.9.0.20030923120738.00b1d610@mail.dalyn.co.nz> Message-ID: <3F7022D8.25748.1F6AA627@localhost> On 23 Sep 2003 at 12:16, David Emerson wrote: > I have a sproc that accepts a string as a parameter which is used in a > where clause to filter out customers. > > The string is created by looping through a list box and adding the > customers that have been selected: > > strList = strList & " or ((CustomerID) = " & .ItemData(varItem) & ")" > You will build a much smaller string if you use 'initialise the string strList = "CustomerID IN (" ...... 'build the list strList = strList & ItemData(varItem) & "," ........ 'strip trailing comma and close the expression strList = left$(strList,Len(strList)-1) & ")" > This goes into a statement which starts like this: > > DECLARE @qs varchar (8000) > > SELECT @qs = 'INSERT INTO ttmpExportMerge (CustomerName, TradingName, ... etc > > However the problem is that there could be over 1600 customers and this > means that strList is over 8000 character which exceeds the @qs length > (without even allowing for the rest of the sproc). > > Is there a data type that can handle these numbers? I tried 'text' but the > sproc errors with "text is invalid for local variables" > Nope, your stuck with data types which can have a maximum of 8000 characters. If the IN construct still gives you more than 8000 characters you're SOOL with that approach. > Is my only option to write the customer ID to a table and join it to the > rest of the sproc? > That's one option. Another may be to have a "Selected" field in the customer table which you set somehow rather than building the where string. If this is likely to be multi user, I'd probably go with your option of building a temp table of selected IDs and joining it. -- Stuart McLachlan Lexacorp Ltd Application Development, IT Consultancy http://www.lexacorp.com.pg From davide at dalyn.co.nz Mon Sep 22 20:16:40 2003 From: davide at dalyn.co.nz (David Emerson) Date: Tue, 23 Sep 2003 13:16:40 +1200 Subject: [dba-SQLServer]Creating Sproc over 8000 chars long In-Reply-To: <3F7022D8.25748.1F6AA627@localhost> References: <5.2.0.9.0.20030923120738.00b1d610@mail.dalyn.co.nz> Message-ID: <5.2.0.9.0.20030923131547.00b43d30@mail.dalyn.co.nz> Thanks Stuart. Since the database is likely to start running into several thousand customers it looks like I will need to run the table way. David At 23/09/2003, you wrote: >On 23 Sep 2003 at 12:16, David Emerson wrote: > > > I have a sproc that accepts a string as a parameter which is used in a > > where clause to filter out customers. > > > > The string is created by looping through a list box and adding the > > customers that have been selected: > > > > strList = strList & " or ((CustomerID) = " & .ItemData(varItem) & ")" > > > > >You will build a much smaller string if you use > >'initialise the string >strList = "CustomerID IN (" >...... >'build the list >strList = strList & ItemData(varItem) & "," >........ > >'strip trailing comma and close the expression >strList = left$(strList,Len(strList)-1) & ")" > > > This goes into a statement which starts like this: > > > > DECLARE @qs varchar (8000) > > > > SELECT @qs = 'INSERT INTO ttmpExportMerge (CustomerName, TradingName, > ... etc > > > > However the problem is that there could be over 1600 customers and this > > means that strList is over 8000 character which exceeds the @qs length > > (without even allowing for the rest of the sproc). > > > > Is there a data type that can handle these numbers? I tried 'text' but > the > > sproc errors with "text is invalid for local variables" > > >Nope, your stuck with data types which can have a maximum of 8000 >characters. > >If the IN construct still gives you more than 8000 characters you're SOOL >with that approach. > > > Is my only option to write the customer ID to a table and join it to the > > rest of the sproc? > > > >That's one option. >Another may be to have a "Selected" field in the customer table which you >set somehow rather than building the where string. >If this is likely to be multi user, I'd probably go with your option of >building a temp table of selected IDs and joining it. > > > >-- >Stuart McLachlan >Lexacorp Ltd >Application Development, IT Consultancy >http://www.lexacorp.com.pg > >_______________________________________________ >dba-SQLServer mailing list >dba-SQLServer at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-sqlserver >http://www.databaseadvisors.com From jcolby at colbyconsulting.com Mon Sep 22 22:03:01 2003 From: jcolby at colbyconsulting.com (John Colby) Date: Mon, 22 Sep 2003 23:03:01 -0400 Subject: [dba-SQLServer]Win2K Large Hard Disk Support In-Reply-To: <3F6F5E60.9090409@hotmail.com> Message-ID: For anyone interested (and willing to risk installing MS Service Packs ;-) Here is the knowledgebase article that discuses Windows 2000 lack of support for large hard disks prior to SP3. Watch line wrap. http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com: 80/support/kb/articles/q305/0/98.asp&NoWebContent=1 John W. Colby www.colbyconsulting.com From my.lists at verizon.net Tue Sep 23 00:30:34 2003 From: my.lists at verizon.net (Francisco H Tapia) Date: Mon, 22 Sep 2003 22:30:34 -0700 Subject: [dba-SQLServer]Creating Sproc over 8000 chars long In-Reply-To: <3F7022D8.25748.1F6AA627@localhost> References: <3F7022D8.25748.1F6AA627@localhost> Message-ID: <3F6FDA7A.8090602@verizon.net> Plus there's also a whole other aspect of security problems that go along with dynamic sql. First... You must issue users direct access to tables (a big no no). Access to tables should be managed through Views and Sprocs, by using Dynamic SQL you must give direct SELECT, INSERT rights to those users. 2nd, SQL injections, by this I mean that a malicious users could theoretically call your sproc and inject into it's parameter some data along with ";" and something sinsiter such as Truncate Table, or detach db or something else. It will be perfectly viable and depending on how much access is given to the tables, extreamly lethal. Things to think about... Stuart McLachlan wrote: > On 23 Sep 2003 at 12:16, David Emerson wrote: > > >>I have a sproc that accepts a string as a parameter which is used in a >>where clause to filter out customers. >> >>The string is created by looping through a list box and adding the >>customers that have been selected: >> >>strList = strList & " or ((CustomerID) = " & .ItemData(varItem) & ")" >> > > > > You will build a much smaller string if you use > > 'initialise the string > strList = "CustomerID IN (" > ...... > 'build the list > strList = strList & ItemData(varItem) & "," > ........ > > 'strip trailing comma and close the expression > strList = left$(strList,Len(strList)-1) & ")" > > >>This goes into a statement which starts like this: >> >>DECLARE @qs varchar (8000) >> >>SELECT @qs = 'INSERT INTO ttmpExportMerge (CustomerName, TradingName, ... etc >> >>However the problem is that there could be over 1600 customers and this >>means that strList is over 8000 character which exceeds the @qs length >>(without even allowing for the rest of the sproc). >> >>Is there a data type that can handle these numbers? I tried 'text' but the >>sproc errors with "text is invalid for local variables" >> > > Nope, your stuck with data types which can have a maximum of 8000 > characters. > > If the IN construct still gives you more than 8000 characters you're SOOL > with that approach. > > >>Is my only option to write the customer ID to a table and join it to the >>rest of the sproc? >> > > > That's one option. > Another may be to have a "Selected" field in the customer table which you > set somehow rather than building the where string. > If this is likely to be multi user, I'd probably go with your option of > building a temp table of selected IDs and joining it. > > > -- -Francisco From my.lists at verizon.net Tue Sep 23 00:42:50 2003 From: my.lists at verizon.net (Francisco H Tapia) Date: Mon, 22 Sep 2003 22:42:50 -0700 Subject: [dba-SQLServer]Win2K Large Hard Disk Support In-Reply-To: References: Message-ID: <3F6FDD5A.8010106@verizon.net> John Colby wrote: > For anyone interested (and willing to risk installing MS Service Packs ;-) > > Here is the knowledgebase article that discuses Windows 2000 lack of support > for large hard disks prior to SP3. Watch line wrap. > > http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com: > 80/support/kb/articles/q305/0/98.asp&NoWebContent=1 > Very interesting, tho the article seems to imply that the primary partition should not exceed the 137gigs, which is sound advice. This could be why you have been experiencing this problem. It also did mention that you should have a compatible bios. If you have not updated your bios, it may be necessary to do that first. -- -Francisco From djkr at msn.com Tue Sep 23 04:09:24 2003 From: djkr at msn.com (DJK(John) Robinson) Date: Tue, 23 Sep 2003 10:09:24 +0100 Subject: [dba-SQLServer]Win2K Large Hard Disk Support In-Reply-To: Message-ID: <009b01c381b2$623973c0$bf00a8c0@dabsight> John Many thanks for quoting chapter and verse - so much preferable to the mythology that is so often bandied about! (Not of course that one should believe *every*thing that passes MS's lips.) John > -----Original Message----- > From: dba-sqlserver-bounces at databaseadvisors.com > [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf > Of John Colby > Sent: 23 September 2003 04:03 > To: dba-sqlserver at databaseadvisors.com; AccessD; > dba-sqlserver at databaseadvisors.com > Subject: [dba-SQLServer]Win2K Large Hard Disk Support > > > For anyone interested (and willing to risk installing MS > Service Packs ;-) > > Here is the knowledgebase article that discuses Windows 2000 > lack of support for large hard disks prior to SP3. Watch line wrap. > http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com: 80/support/kb/articles/q305/0/98.asp&NoWebContent=1 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 jcolby at colbyconsulting.com Tue Sep 23 07:40:59 2003 From: jcolby at colbyconsulting.com (John Colby) Date: Tue, 23 Sep 2003 08:40:59 -0400 Subject: [dba-SQLServer]Win2K Large Hard Disk Support In-Reply-To: <3F6FDD5A.8010106@verizon.net> Message-ID: >If you have not updated your bios, it may be necessary to do that first. That is always the first thing I check when installing a new motherboard. There is no newer bios available for this board, and the board supports ATA133 natively. >Very interesting, though the article seems to imply that the primary partition should not exceed the 137gigs, which is sound advice. The way I read it, if you don't have SP3 installed then Windows would "think" the disk was the max size it understood and set it up as that. I thought it was very poorly written and left a lot of holes as to what it was really doing. I really posted it as a warning to those getting ready to purchase a new drive. The "sweet spot" is about to swing past 120g over to 160g, at which time more and more people are going to run into problems. 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 Francisco H Tapia Sent: Tuesday, September 23, 2003 1:43 AM To: dba-sqlserver at databaseadvisors.com Subject: Re: [dba-SQLServer]Win2K Large Hard Disk Support John Colby wrote: > For anyone interested (and willing to risk installing MS Service Packs ;-) > > Here is the knowledgebase article that discuses Windows 2000 lack of support > for large hard disks prior to SP3. Watch line wrap. > > http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com: > 80/support/kb/articles/q305/0/98.asp&NoWebContent=1 > Very interesting, tho the article seems to imply that the primary partition should not exceed the 137gigs, which is sound advice. This could be why you have been experiencing this problem. It also did mention that you should have a compatible bios. If you have not updated your bios, it may be necessary to do that first. -- -Francisco _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From jcolby at colbyconsulting.com Tue Sep 23 09:54:36 2003 From: jcolby at colbyconsulting.com (John Colby) Date: Tue, 23 Sep 2003 10:54:36 -0400 Subject: [dba-SQLServer]Restoring SQL Backups Message-ID: If and when I get SQL Server running again (I'm about to re-install it after going back to Win2KSP3), how do I get the backup files back in to SQL Server. It looks like SQL Server keeps the location and names of the files inside the database or something. IOW, there's no "browse for file" function that I can find. I have the data out in files on my disk (with NO extension!!!) so I need SQL Server to ask me where to go to find these things, display a list of the backup files, and then get the data back into a new database. Alternately, assuming my last failed installed didn't trash it, I need the INSTALL to find and use the existing database that still exists on another directory out on my D: drive. Someone please tell me I haven't lost all my billing data. I'm beginning to panic here. John W. Colby www.colbyconsulting.com From ebarro at afsweb.com Tue Sep 23 10:01:13 2003 From: ebarro at afsweb.com (Eric Barro) Date: Tue, 23 Sep 2003 08:01:13 -0700 Subject: [dba-SQLServer]Restoring SQL Backups In-Reply-To: Message-ID: John, Here's the restore process I use via SQL Query Analyzer... RESTORE DATABASE nameofdatabase FROM DISK = 'F:\BACKUP\nameofbackup' WITH REPLACE, MOVE 'logicalnameofdatafile' TO 'G:\MSSQL\DATA\nameofdatabase.mdf', MOVE 'logicalnameoflogfile' TO 'G:\MSSQL\DATA\nameofdatabase.ldf' WAITFOR DELAY '00:00:05' --- Eric Barro Senior Systems Analyst Advanced Field Services (208) 772-7060 http://www.afsweb.com -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com]On Behalf Of John Colby Sent: Tuesday, September 23, 2003 7:55 AM To: SQLServer Subject: [dba-SQLServer]Restoring SQL Backups If and when I get SQL Server running again (I'm about to re-install it after going back to Win2KSP3), how do I get the backup files back in to SQL Server. It looks like SQL Server keeps the location and names of the files inside the database or something. IOW, there's no "browse for file" function that I can find. I have the data out in files on my disk (with NO extension!!!) so I need SQL Server to ask me where to go to find these things, display a list of the backup files, and then get the data back into a new database. Alternately, assuming my last failed installed didn't trash it, I need the INSTALL to find and use the existing database that still exists on another directory out on my D: drive. Someone please tell me I haven't lost all my billing data. I'm beginning to panic here. 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 --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.512 / Virus Database: 309 - Release Date: 8/19/2003 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.512 / Virus Database: 309 - Release Date: 8/19/2003 From my.lists at verizon.net Tue Sep 23 10:18:51 2003 From: my.lists at verizon.net (Francisco H Tapia) Date: Tue, 23 Sep 2003 08:18:51 -0700 Subject: [dba-SQLServer]Win2K Large Hard Disk Support In-Reply-To: References: Message-ID: <3F70645B.5060401@verizon.net> Thanks John, I am actually looking at 2 different drives for an upgrade I currently have a 60gig, a 120 (partitioned into 3 slices) and a small 5gig, and am planning to get rid of the 5gig and upgrade to something around 160 - 200gig. Of course I'll let you know how I did. (patches or no patches ;o) John Colby wrote: >>If you have not updated your bios, it may be necessary to do that first. > > > That is always the first thing I check when installing a new motherboard. > There is no newer bios available for this board, and the board supports > ATA133 natively. > > >>Very interesting, though the article seems to imply that the primary > > partition should not exceed the 137gigs, which is sound advice. > > The way I read it, if you don't have SP3 installed then Windows would > "think" the disk was the max size it understood and set it up as that. I > thought it was very poorly written and left a lot of holes as to what it was > really doing. I really posted it as a warning to those getting ready to > purchase a new drive. The "sweet spot" is about to swing past 120g over to > 160g, at which time more and more people are going to run into problems. > > 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 > Francisco H Tapia > Sent: Tuesday, September 23, 2003 1:43 AM > To: dba-sqlserver at databaseadvisors.com > Subject: Re: [dba-SQLServer]Win2K Large Hard Disk Support > > > John Colby wrote: > >>For anyone interested (and willing to risk installing MS Service Packs ;-) >> >>Here is the knowledgebase article that discuses Windows 2000 lack of > > support > >>for large hard disks prior to SP3. Watch line wrap. >> >> > > http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com: > >>80/support/kb/articles/q305/0/98.asp&NoWebContent=1 >> > > > Very interesting, tho the article seems to imply that the primary > partition should not exceed the 137gigs, which is sound advice. This > could be why you have been experiencing this problem. It also did > mention that you should have a compatible bios. If you have not updated > your bios, it may be necessary to do that first. -Francisco From my.lists at verizon.net Tue Sep 23 10:39:24 2003 From: my.lists at verizon.net (Francisco H Tapia) Date: Tue, 23 Sep 2003 08:39:24 -0700 Subject: [dba-SQLServer]Restoring SQL Backups In-Reply-To: References: Message-ID: <3F70692C.20300@verizon.net> Using EM From the Main Menu 1) TOOLS > RESTORE DATABASE 2) In the Restore as Database drop down type in the name of your database then select the option "From Device" 3) Click the "Select Devices" button 4) Click the Add button 5) Click the "..." to go and look for the drive and path and finally the backup file. 6, 7, 8) Click OK (x3), until you return to the Restore Database "window" and click on the Options Tab 9) Click the "Force Restore over existing database (this is a just in case reason). and in the listbox you'll notice two columns Logical File Name and Move to Physical File Name. 10) If the original drive is no longer available or you want to store the data and log files somewhere else, then just click and "edit" the locations of the files... done :D John Colby wrote: > If and when I get SQL Server running again (I'm about to re-install it after > going back to Win2KSP3), how do I get the backup files back in to SQL > Server. It looks like SQL Server keeps the location and names of the files > inside the database or something. IOW, there's no "browse for file" > function that I can find. I have the data out in files on my disk (with NO > extension!!!) so I need SQL Server to ask me where to go to find these > things, display a list of the backup files, and then get the data back into > a new database. > > Alternately, assuming my last failed installed didn't trash it, I need the > INSTALL to find and use the existing database that still exists on another > directory out on my D: drive. > > Someone please tell me I haven't lost all my billing data. I'm beginning to > panic here. > > John W. Colby > www.colbyconsulting.com -- -Francisco From Tim.Pain at sc.akzonobel.com Tue Sep 23 10:32:59 2003 From: Tim.Pain at sc.akzonobel.com (Pain, T. (Tim)) Date: Tue, 23 Sep 2003 16:32:59 +0100 Subject: [dba-SQLServer]Restoring SQL Backups Message-ID: <0BB2DFBAEF484F4AA077B46F1B165FE6A7334C@lbrn12.d20.intra> John, >From the BOL - To restore a backup from a backup device Expand a server group, and then expand a server. Expand Databases, right-click the database, point to All Tasks, and then click Restore Database. In the Restore as database box, type or select the name of the database to restore if different from the default. To restore the database with a new name, type the new name of the database. Note Specifying a new name for the database determines automatically the new names for the database files restored from the database backup. Click From device, and then click Select devices. Under Restore from, click Tape or Disk, and then select a device from which to restore. If no devices appear, click Add to add an existing backup device or to create a new one. In the Restore Database dialog box, click View Contents and select the backup set to restore. Note This option scans the backup set for the backup content information and can be time consuming, especially when using tape devices. If you already know the backup set to restore, type the backup set number in Backup number instead. Under Restore backup set, do one of the following: Click Database - complete to restore a database backup. Click Database - differential to restore a differential database backup. Click Transaction log to apply a transaction log backup. Click File or filegroup to restore a file or filegroup backup. Specify the name of the file or filegroup. Optionally, click the Options tab, and then do one of the following: Click Leave database operational. No additional transaction logs can be restored if no further transaction log backups are to be applied. Click Leave database nonoperational, but able to restore additional transaction logs if another transaction log backup is to be applied. Tim -----Original Message----- From: Eric Barro [mailto:ebarro at afsweb.com] Sent: 23 September 2003 16:01 To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]Restoring SQL Backups John, Here's the restore process I use via SQL Query Analyzer... RESTORE DATABASE nameofdatabase FROM DISK = 'F:\BACKUP\nameofbackup' WITH REPLACE, MOVE 'logicalnameofdatafile' TO 'G:\MSSQL\DATA\nameofdatabase.mdf', MOVE 'logicalnameoflogfile' TO 'G:\MSSQL\DATA\nameofdatabase.ldf' WAITFOR DELAY '00:00:05' --- Eric Barro Senior Systems Analyst Advanced Field Services (208) 772-7060 http://www.afsweb.com -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com]On Behalf Of John Colby Sent: Tuesday, September 23, 2003 7:55 AM To: SQLServer Subject: [dba-SQLServer]Restoring SQL Backups If and when I get SQL Server running again (I'm about to re-install it after going back to Win2KSP3), how do I get the backup files back in to SQL Server. It looks like SQL Server keeps the location and names of the files inside the database or something. IOW, there's no "browse for file" function that I can find. I have the data out in files on my disk (with NO extension!!!) so I need SQL Server to ask me where to go to find these things, display a list of the backup files, and then get the data back into a new database. Alternately, assuming my last failed installed didn't trash it, I need the INSTALL to find and use the existing database that still exists on another directory out on my D: drive. Someone please tell me I haven't lost all my billing data. I'm beginning to panic here. 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 --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.512 / Virus Database: 309 - Release Date: 8/19/2003 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.512 / Virus Database: 309 - Release Date: 8/19/2003 _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From jcolby at colbyconsulting.com Tue Sep 23 10:43:50 2003 From: jcolby at colbyconsulting.com (John Colby) Date: Tue, 23 Sep 2003 11:43:50 -0400 Subject: [dba-SQLServer]Can anyone give me personalized help Message-ID: Folks, I replaced my hard disk in my server and now I am not getting a successful SQL Server install. It appears that it runs, I can start the server, but as soon as I go into Enterprise manager and attempt to drill down to the server under server group, it stops the SQL Server (the icon in the toolbar goes red), hangs for a long period (60 seconds or so?) with "Establishing connection to SQL Server and checking security" in the status bar of Enterprise manager. The server eventually displays but there are no databases at all in the database window, not even the system databases, and if I attempt to look at some other pieces under there one of them causes a gpf and EM closes. Something is seriously wrong, and all my billing data is in a backup waiting to be restored. I told it to use an existing directory that already had my old database in it when I did the install. Could that be the problem? John W. Colby www.colbyconsulting.com From my.lists at verizon.net Tue Sep 23 10:51:13 2003 From: my.lists at verizon.net (Francisco H Tapia) Date: Tue, 23 Sep 2003 08:51:13 -0700 Subject: [dba-SQLServer]Can anyone give me personalized help In-Reply-To: References: Message-ID: <3F706BF1.6010006@verizon.net> John If you want to try later today, give me a hollar on Msn Messenger and we can try remote connectivity to your pc. and walk through the problem. John Colby wrote: > Folks, > > I replaced my hard disk in my server and now I am not getting a successful > SQL Server install. It appears that it runs, I can start the server, but as > soon as I go into Enterprise manager and attempt to drill down to the server > under server group, it stops the SQL Server (the icon in the toolbar goes > red), hangs for a long period (60 seconds or so?) with "Establishing > connection to SQL Server and checking security" in the status bar of > Enterprise manager. The server eventually displays but there are no > databases at all in the database window, not even the system databases, and > if I attempt to look at some other pieces under there one of them causes a > gpf and EM closes. > > Something is seriously wrong, and all my billing data is in a backup waiting > to be restored. > > I told it to use an existing directory that already had my old database in > it when I did the install. Could that be the problem? > > > -- -Francisco Leela: "Great. We're two days from earth with no food." Bender: "Problem solved. You two fight to the death and I'll cook the loser." From andrew.haslett at ilc.gov.au Tue Sep 23 20:59:03 2003 From: andrew.haslett at ilc.gov.au (Haslett, Andrew) Date: Wed, 24 Sep 2003 11:29:03 +0930 Subject: [dba-SQLServer]Can anyone give me personalized help Message-ID: Look in Books On Line for the RebuildM utility. This will rebuild your master databases. It may help, although it sounds as if just didn't install properly. Cheers, A -----Original Message----- From: John Colby [mailto:jcolby at colbyconsulting.com] Sent: Wednesday, 24 September 2003 1:14 AM To: SQLServer Subject: [dba-SQLServer]Can anyone give me personalized help Folks, I replaced my hard disk in my server and now I am not getting a successful SQL Server install. It appears that it runs, I can start the server, but as soon as I go into Enterprise manager and attempt to drill down to the server under server group, it stops the SQL Server (the icon in the toolbar goes red), hangs for a long period (60 seconds or so?) with "Establishing connection to SQL Server and checking security" in the status bar of Enterprise manager. The server eventually displays but there are no databases at all in the database window, not even the system databases, and if I attempt to look at some other pieces under there one of them causes a gpf and EM closes. Something is seriously wrong, and all my billing data is in a backup waiting to be restored. I told it to use an existing directory that already had my old database in it when I did the install. Could that be the problem? 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 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 Tue Sep 23 21:07:16 2003 From: andrew.haslett at ilc.gov.au (Haslett, Andrew) Date: Wed, 24 Sep 2003 11:37:16 +0930 Subject: [dba-SQLServer]Can anyone give me personalized help Message-ID: Oops, just saw the last line. Definitely install into a clean directory. SQL can't just 'pick' up from existing data files like that. They need to be restored or attached from a backup using the processes described in BOL. Cheers, Andrew -----Original Message----- From: John Colby [mailto:jcolby at colbyconsulting.com] Sent: Wednesday, 24 September 2003 1:14 AM To: SQLServer Subject: [dba-SQLServer]Can anyone give me personalized help Folks, I replaced my hard disk in my server and now I am not getting a successful SQL Server install. It appears that it runs, I can start the server, but as soon as I go into Enterprise manager and attempt to drill down to the server under server group, it stops the SQL Server (the icon in the toolbar goes red), hangs for a long period (60 seconds or so?) with "Establishing connection to SQL Server and checking security" in the status bar of Enterprise manager. The server eventually displays but there are no databases at all in the database window, not even the system databases, and if I attempt to look at some other pieces under there one of them causes a gpf and EM closes. Something is seriously wrong, and all my billing data is in a backup waiting to be restored. I told it to use an existing directory that already had my old database in it when I did the install. Could that be the problem? 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 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 knicholson at gpsx.net Wed Sep 24 09:47:16 2003 From: knicholson at gpsx.net (Nicholson, Karen) Date: Wed, 24 Sep 2003 09:47:16 -0500 Subject: [dba-SQLServer]SQL Last Full Month Message-ID: Does anyone have a quick Last Full Month solution in SQL? I need to run reports for the prior month, and have about 25 lines of code to get to the last full month. Thanks in advance. From paul.hartland at fsmail.net Wed Sep 24 09:02:13 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 24 Sep 2003 16:02:13 +0200 (CEST) Subject: [dba-SQLServer]SQL Last Full Month Message-ID: <6081747.1064412133356.JavaMail.www@wwinf3006> are you doing this entirely in SQL Server or using Access or VB as a front-end ? Message date : Sep 24 2003, 02:44 PM >From : Nicholson, Karen To : Dba-Sqlserver (E-mail) Copy to : Subject : [dba-SQLServer]SQL Last Full Month Does anyone have a quick Last Full Month solution in SQL? I need to run reports for the prior month, and have about 25 lines of code to get to the last full month. Thanks in advance. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From knicholson at gpsx.net Wed Sep 24 10:09:31 2003 From: knicholson at gpsx.net (Nicholson, Karen) Date: Wed, 24 Sep 2003 10:09:31 -0500 Subject: [dba-SQLServer]SQL Last Full Month Message-ID: All in SQL. I just figured out how to get the first day of the year: select DATEADD(yy, DATEDIFF(yy,0,getdate()), 0) /* first day of year*/ So now I am on to trying to figure out how to get the first day of the prior month and the last day of the prior month. -----Original Message----- From: paul.hartland at fsmail.net [mailto:paul.hartland at fsmail.net] Sent: Wednesday, September 24, 2003 10:02 AM To: dba-sqlserver at databaseadvisors.com Subject: Re: [dba-SQLServer]SQL Last Full Month are you doing this entirely in SQL Server or using Access or VB as a front-end ? Message date : Sep 24 2003, 02:44 PM >From : Nicholson, Karen To : Dba-Sqlserver (E-mail) Copy to : Subject : [dba-SQLServer]SQL Last Full Month Does anyone have a quick Last Full Month solution in SQL? I need to run reports for the prior month, and have about 25 lines of code to get to the last full month. Thanks in advance. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.hartland at fsmail.net Wed Sep 24 09:24:27 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 24 Sep 2003 16:24:27 +0200 (CEST) Subject: [dba-SQLServer]SQL Last Full Month Message-ID: <21549984.1064413467799.JavaMail.www@wwinf3006> to get the last day of the month use select DATEADD(mm, DATEDIFF(mm,0,getdate()), -1) /* last day of month*/ can't believe I can't get the first day of the month yet.... Paul Message date : Sep 24 2003, 03:06 PM >From : Nicholson, Karen To : dba-sqlserver at databaseadvisors.com Copy to : Subject : RE: [dba-SQLServer]SQL Last Full Month All in SQL. I just figured out how to get the first day of the year: class=687320314-24092003> select DATEADD(yy, DATEDIFF(yy,0,getdate()), 0) /* first day of year*/ class=687320314-24092003> So now I am on to trying to figure out how to get the first day of the prior month and the last day of the prior month. size=2>-----Original Message----- From: paul.hartland at fsmail.net [mailto:paul.hartland at fsmail.net] Sent: Wednesday, September 24, 2003 10:02 AM To: dba-sqlserver at databaseadvisors.com Subject: Re: [dba-SQLServer]SQL Last Full Month are you doing this entirely in SQL Server or using Access or VB as a front-end ? style="BORDER-LEFT: #ff0000 2px solid; MARGIN-LEFT: 5px; PADDING-LEFT: 5px">Message date : Sep 24 2003, 02:44 PM >From : Nicholson, Karen To : Dba-Sqlserver (E-mail) Copy to : Subject : [dba-SQLServer]SQL Last Full Month Does anyone have a quick Last Full Month solution in SQL? I need to run reports for the prior month, and have about 25 lines of code to get to the last full month. Thanks in advance. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com [ (no filename) (0.2 Kb) ] -------------- next part -------------- An HTML attachment was scrubbed... URL: From knicholson at gpsx.net Wed Sep 24 10:38:37 2003 From: knicholson at gpsx.net (Nicholson, Karen) Date: Wed, 24 Sep 2003 10:38:37 -0500 Subject: [dba-SQLServer]SQL Last Full Month Message-ID: First day of prior month: select DATEADD(mm, DATEDIFF(mm,0,dateadd(mm,-1-datepart(day,getdate()),getdate())),0)/*first day of prior month*/ Here are the other ones I tripped over while trying to get to my answer, if anyone else finds them useful. select CAST(DATEPART(m, getdate())-1 AS int(2)) /*last month*/ select CAST(DATEPART(yyyy, getdate())AS int(2)) /*current year*/ select CAST(DATEPART(dd, getdate())AS int(2)) /*current day*/ select DATEADD(yy, DATEDIFF(yy,0,getdate()), 0) /* first day of current year*/ select DATEADD(mm, DATEDIFF(mm,0,getdate()), 0) /*first day of current month*/ select dateadd(ms,-3,DATEADD(mm, DATEDIFF(mm,0,getdate() ), 0)) /*last day of prior month*/ select DATEADD(qq, DATEDIFF(qq,0,getdate()), 0) /*first day of the quarter*/ select DATEADD(dd, DATEDIFF(dd,0,getdate()), 0) /*midnight for current day*/ select dateadd(ms,-3,DATEADD(mm, DATEDIFF(m,0,getdate() )+1, 0)) /*last day of current month*/ select dateadd(ms,-3,DATEADD(yy, DATEDIFF(yy,0,getdate() ), 0)) /*last day of prior year*/ select dateadd(ms,-3,DATEADD(yy, DATEDIFF(yy,0,getdate() )+1, 0))/*last day of current year*/ select DATEADD(mm, DATEDIFF(mm,0,dateadd(mm,-1-datepart(day,getdate()),getdate())),0)/*first day of prior month*/ -----Original Message----- From: paul.hartland at fsmail.net [mailto:paul.hartland at fsmail.net] Sent: Wednesday, September 24, 2003 10:24 AM To: dba-sqlserver at databaseadvisors.com Subject: Re: RE: [dba-SQLServer]SQL Last Full Month to get the last day of the month use select DATEADD(mm, DATEDIFF(mm,0,getdate()), -1) /* last day of month*/ can't believe I can't get the first day of the month yet.... Paul Message date : Sep 24 2003, 03:06 PM >From : Nicholson, Karen To : dba-sqlserver at databaseadvisors.com Copy to : Subject : RE: [dba-SQLServer]SQL Last Full Month All in SQL. I just figured out how to get the first day of the year: class=687320314-24092003> select DATEADD(yy, DATEDIFF(yy,0,getdate()), 0) /* first day of year*/ class=687320314-24092003> So now I am on to trying to figure out how to get the first day of the prior month and the last day of the prior month. size=2>-----Original Message----- From: paul.hartland at fsmail.net [mailto:paul.hartland at fsmail.net] Sent: Wednesday, September 24, 2003 10:02 AM To: dba-sqlserver at databaseadvisors.com Subject: Re: [dba-SQLServer]SQL Last Full Month are you doing this entirely in SQL Server or using Access or VB as a front-end ? style="BORDER-LEFT: #ff0000 2px solid; MARGIN-LEFT: 5px; PADDING-LEFT: 5px">Message date : Sep 24 2003, 02:44 PM >From : Nicholson, Karen To : Dba-Sqlserver (E-mail) Copy to : Subject : [dba-SQLServer]SQL Last Full Month Does anyone have a quick Last Full Month solution in SQL? I need to run reports for the prior month, and have about 25 lines of code to get to the last full month. Thanks in advance. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com [ (no filename) (0.2 Kb) ] -------------- next part -------------- An HTML attachment was scrubbed... URL: From my.lists at verizon.net Wed Sep 24 10:15:58 2003 From: my.lists at verizon.net (Francisco H Tapia) Date: Wed, 24 Sep 2003 08:15:58 -0700 Subject: [dba-SQLServer]CHAT: Advanced SQL Server Administration Message-ID: <3F71B52E.6080106@verizon.net> I recommend that anyone that has an opportunity sign on to this chat :). Free DBA Chat Wednesday! Topic: Advanced SQL Server Administration Date: Wednesday, September 24, 2003 Time: 10-11 AM Pacific Time (11-12 PM MT, 12-1 PM CT, 1-2 PM ET, 18:00-19:00 GMT) Don't miss this opportunity to get advice direct from Microsoft and from renowned user experts and owners of three of the most popular SQL Server sites on the web! Want to learn how the experts handle the management of their companies' SQL Servers? Want to compare your day-to-day challenges with other database professionals? Learn from some of the brightest SQL Server minds on how they handle security, disaster recovery, database optimization, and automating administrative tasks among other common DBA tasks. Hosts: Euan Garden, Microsoft Brian Knight, Author, Co-founder, SQLServerCentral.com Sri Kasam, Microsoft Bill Graziano, Partner - ClearData Consulting, Inc., SQLTeam.COM Brad M. McGehee, MVP, SQL-Server-Performance.Com Quick Links: Registration and participation instructions: http://www.microsoft.com/technet/chats/default.asp. Schedule of PASS Chats: http://www.sqlpass.org/community/chat/index.cfm -- -Francisco Leela: "Great. We're two days from earth with no food." Bender: "Problem solved. You two fight to the death and I'll cook the loser." From artful at rogers.com Wed Sep 24 13:28:53 2003 From: artful at rogers.com (Arthur Fuller) Date: Wed, 24 Sep 2003 11:28:53 -0700 Subject: [dba-SQLServer]Creating Sproc over 8000 chars long In-Reply-To: <5.2.0.9.0.20030923131547.00b43d30@mail.dalyn.co.nz> Message-ID: <000001c382c9$b67bf440$6501a8c0@rock> I just wrote a UDF that takes a comma delimited string (which would normally be passed as the argument to IN(), but instead it breaks the string apart into its components and creates a temporary table, which can then be joined to the table(s) of interest. Unfortunately I can't show it to you yet because it's part of one of my forthcoming SQL Tips columns :-) The point of the exercise was, lots of arguments to IN() results in very slow execution. Joining a temp table is WAY faster. Arthur -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of David Emerson Sent: Monday, September 22, 2003 6:17 PM To: dba-sqlserver at databaseadvisors.com Subject: Re: [dba-SQLServer]Creating Sproc over 8000 chars long Thanks Stuart. Since the database is likely to start running into several thousand customers it looks like I will need to run the table way. David At 23/09/2003, you wrote: >On 23 Sep 2003 at 12:16, David Emerson wrote: > > > I have a sproc that accepts a string as a parameter which is used in > > a where clause to filter out customers. > > > > The string is created by looping through a list box and adding the > > customers that have been selected: > > > > strList = strList & " or ((CustomerID) = " & .ItemData(varItem) & > > ")" > > > > >You will build a much smaller string if you use > >'initialise the string >strList = "CustomerID IN (" >...... >'build the list >strList = strList & ItemData(varItem) & "," >........ > >'strip trailing comma and close the expression >strList = left$(strList,Len(strList)-1) & ")" > > > This goes into a statement which starts like this: > > > > DECLARE @qs varchar (8000) > > > > SELECT @qs = 'INSERT INTO ttmpExportMerge (CustomerName, > > TradingName, > ... etc > > > > However the problem is that there could be over 1600 customers and > > this means that strList is over 8000 character which exceeds the @qs > > length (without even allowing for the rest of the sproc). > > > > Is there a data type that can handle these numbers? I tried 'text' > > but > the > > sproc errors with "text is invalid for local variables" > > >Nope, your stuck with data types which can have a maximum of 8000 >characters. > >If the IN construct still gives you more than 8000 characters you're >SOOL with that approach. > > > Is my only option to write the customer ID to a table and join it to > > the rest of the sproc? > > > >That's one option. >Another may be to have a "Selected" field in the customer table which >you set somehow rather than building the where string. If this is >likely to be multi user, I'd probably go with your option of building a >temp table of selected IDs and joining it. > > > >-- >Stuart McLachlan >Lexacorp Ltd >Application Development, IT Consultancy http://www.lexacorp.com.pg > >_______________________________________________ >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.510 / Virus Database: 307 - Release Date: 8/14/2003 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.510 / Virus Database: 307 - Release Date: 8/14/2003 From knicholson at gpsx.net Wed Sep 24 11:36:34 2003 From: knicholson at gpsx.net (Nicholson, Karen) Date: Wed, 24 Sep 2003 11:36:34 -0500 Subject: [dba-SQLServer]Why Year 2001? Message-ID: What part of this is telling it to extract the year 2001 instead of 2003? select DATEADD(mm, DATEDIFF(mm,0,dateadd(mm,-1-datepart(day,getdate()),getdate())),0) From Christopher.Brophy at GDC4S.Com Wed Sep 24 10:42:42 2003 From: Christopher.Brophy at GDC4S.Com (Brophy, Christopher) Date: Wed, 24 Sep 2003 11:42:42 -0400 Subject: [dba-SQLServer]Why Year 2001? Message-ID: You are using the datepart result (today is the day 24) and subtracting that many months from now (2003/09) less one more to get a date in 2001/08. Not sure what you are trying to accomplish. Chris -----Original Message----- From: Nicholson, Karen [mailto:knicholson at gpsx.net] Sent: Wednesday, September 24, 2003 12:37 PM To: Dba-Sqlserver (E-mail) Subject: [dba-SQLServer]Why Year 2001? What part of this is telling it to extract the year 2001 instead of 2003? select DATEADD(mm, DATEDIFF(mm,0,dateadd(mm,-1-datepart(day,getdate()),getdate())),0) _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From knicholson at gpsx.net Wed Sep 24 11:52:30 2003 From: knicholson at gpsx.net (Nicholson, Karen) Date: Wed, 24 Sep 2003 11:52:30 -0500 Subject: [dba-SQLServer]Why Year 2001? Message-ID: I am trying to get day 1 of the prior month, or August 1, 2003 -----Original Message----- From: Brophy, Christopher [mailto:Christopher.Brophy at GDC4S.Com] Sent: Wednesday, September 24, 2003 11:43 AM To: 'dba-sqlserver at databaseadvisors.com' Subject: RE: [dba-SQLServer]Why Year 2001? You are using the datepart result (today is the day 24) and subtracting that many months from now (2003/09) less one more to get a date in 2001/08. Not sure what you are trying to accomplish. Chris -----Original Message----- From: Nicholson, Karen [mailto:knicholson at gpsx.net] Sent: Wednesday, September 24, 2003 12:37 PM To: Dba-Sqlserver (E-mail) Subject: [dba-SQLServer]Why Year 2001? What part of this is telling it to extract the year 2001 instead of 2003? select DATEADD(mm, DATEDIFF(mm,0,dateadd(mm,-1-datepart(day,getdate()),getdate())),0) _______________________________________________ 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 knicholson at gpsx.net Wed Sep 24 12:01:46 2003 From: knicholson at gpsx.net (Nicholson, Karen) Date: Wed, 24 Sep 2003 12:01:46 -0500 Subject: [dba-SQLServer]Why Year 2001? Message-ID: select DATEADD(mm, DATEDIFF(mm,0,dateadd(mm,-0-datepart(day,0),getdate())),0) I GOT IT I GOT IT I GOT IT I GOT IT. -----Original Message----- From: Nicholson, Karen [mailto:knicholson at gpsx.net] Sent: Wednesday, September 24, 2003 12:53 PM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]Why Year 2001? I am trying to get day 1 of the prior month, or August 1, 2003 -----Original Message----- From: Brophy, Christopher [mailto:Christopher.Brophy at GDC4S.Com] Sent: Wednesday, September 24, 2003 11:43 AM To: 'dba-sqlserver at databaseadvisors.com' Subject: RE: [dba-SQLServer]Why Year 2001? You are using the datepart result (today is the day 24) and subtracting that many months from now (2003/09) less one more to get a date in 2001/08. Not sure what you are trying to accomplish. Chris -----Original Message----- From: Nicholson, Karen [mailto:knicholson at gpsx.net] Sent: Wednesday, September 24, 2003 12:37 PM To: Dba-Sqlserver (E-mail) Subject: [dba-SQLServer]Why Year 2001? What part of this is telling it to extract the year 2001 instead of 2003? select DATEADD(mm, DATEDIFF(mm,0,dateadd(mm,-1-datepart(day,getdate()),getdate())),0) _______________________________________________ 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 Robert.Djabarov at usaa.com Wed Sep 24 11:17:08 2003 From: Robert.Djabarov at usaa.com (Djabarov, Robert) Date: Wed, 24 Sep 2003 11:17:08 -0500 Subject: [dba-SQLServer]Why Year 2001? Message-ID: <3CCEA32DFF043C4CB99B835557E11B30BEEBE7@ex02.eagle.usaa.com> This part: dateadd(mm,-1-datepart(day,getdate()),getdate()) The result is -25 months -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Wednesday, September 24, 2003 11:37 AM To: Dba-Sqlserver (E-mail) Subject: [dba-SQLServer]Why Year 2001? What part of this is telling it to extract the year 2001 instead of 2003? select DATEADD(mm, DATEDIFF(mm,0,dateadd(mm,-1-datepart(day,getdate()),getdate())),0) _______________________________________________ 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 Sep 24 11:43:04 2003 From: tuxedo_man at hotmail.com (Billy Pang) Date: Wed, 24 Sep 2003 16:43:04 +0000 Subject: [dba-SQLServer]SQL Last Full Month Message-ID: To get first day of prior month, use this: SELECT CONVERT(SMALLDATETIME, CONVERT(VARCHAR(4), DATEADD(MM,-1,GETDATE()), 12) + '01', 112) Not sure why DATEDIFF(mm,0,dateadd(mm,-1-datepart(day,getdate()),getdate())),0) returns '2001-08-01 00:00:00.000' HTH Billy >From: "Nicholson, Karen" >Reply-To: dba-sqlserver at databaseadvisors.com >To: dba-sqlserver at databaseadvisors.com >Subject: RE: RE: [dba-SQLServer]SQL Last Full Month >Date: Wed, 24 Sep 2003 10:38:37 -0500 > >First day of prior month: >select DATEADD(mm, >DATEDIFF(mm,0,dateadd(mm,-1-datepart(day,getdate()),getdate())),0)/*first >day of prior month*/ > > >Here are the other ones I tripped over while trying to get to my answer, if >anyone else finds them useful. > >select CAST(DATEPART(m, getdate())-1 AS int(2)) /*last month*/ >select CAST(DATEPART(yyyy, getdate())AS int(2)) /*current year*/ >select CAST(DATEPART(dd, getdate())AS int(2)) /*current day*/ >select DATEADD(yy, DATEDIFF(yy,0,getdate()), 0) /* first day of current >year*/ >select DATEADD(mm, DATEDIFF(mm,0,getdate()), 0) /*first day of current >month*/ >select dateadd(ms,-3,DATEADD(mm, DATEDIFF(mm,0,getdate() ), 0)) /*last day >of prior month*/ >select DATEADD(qq, DATEDIFF(qq,0,getdate()), 0) /*first day of the >quarter*/ >select DATEADD(dd, DATEDIFF(dd,0,getdate()), 0) /*midnight for current >day*/ >select dateadd(ms,-3,DATEADD(mm, DATEDIFF(m,0,getdate() )+1, 0)) /*last >day >of current month*/ >select dateadd(ms,-3,DATEADD(yy, DATEDIFF(yy,0,getdate() ), 0)) /*last day >of prior year*/ >select dateadd(ms,-3,DATEADD(yy, DATEDIFF(yy,0,getdate() )+1, 0))/*last >day >of current year*/ >select DATEADD(mm, >DATEDIFF(mm,0,dateadd(mm,-1-datepart(day,getdate()),getdate())),0)/*first >day of prior month*/ > > >-----Original Message----- >From: paul.hartland at fsmail.net [mailto:paul.hartland at fsmail.net] >Sent: Wednesday, September 24, 2003 10:24 AM >To: dba-sqlserver at databaseadvisors.com >Subject: Re: RE: [dba-SQLServer]SQL Last Full Month > > >to get the last day of the month use > > >select DATEADD(mm, DATEDIFF(mm,0,getdate()), -1) /* last day of month*/ > > >can't believe I can't get the first day of the month yet.... > > > >Paul > > > >Message date : Sep 24 2003, 03:06 PM > >From : Nicholson, Karen >To : dba-sqlserver at databaseadvisors.com >Copy to : >Subject : RE: [dba-SQLServer]SQL Last Full Month > > > > > > > > >All in >SQL. I just figured out how to get the first day of the >year: > > >class=687320314-24092003> > >select >DATEADD(yy, DATEDIFF(yy,0,getdate()), 0) /* first day of >year*/ > > >class=687320314-24092003> > >So now >I am on to trying to figure out how to get the first day of the prior month >and >the last day of the prior month. > > > > >size=2>-----Original Message----- >From: paul.hartland at fsmail.net >[mailto:paul.hartland at fsmail.net] >Sent: Wednesday, September 24, >2003 10:02 AM >To: >dba-sqlserver at databaseadvisors.com >Subject: Re: [dba-SQLServer]SQL >Last Full Month > > >are you doing this entirely in SQL Server >or using Access or VB as a front-end ? > > > > > > > >style="BORDER-LEFT: #ff0000 2px solid; MARGIN-LEFT: 5px; PADDING-LEFT: >5px">Message >date : Sep 24 2003, 02:44 PM > >From : Nicholson, Karen > >To : Dba-Sqlserver (E-mail) > >Copy to : >Subject : >[dba-SQLServer]SQL Last Full Month >Does anyone have a quick Last Full >Month solution in SQL? I need to run >reports for the prior month, and >have about 25 lines of code to get to the >last full month. Thanks in >advance. >_______________________________________________ > >dba-SQLServer mailing list >dba-SQLServer at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > >http://www.databaseadvisors.com > > > > > > >[ (no filename) (0.2 Kb) ] > >_______________________________________________ >dba-SQLServer mailing list >dba-SQLServer at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-sqlserver >http://www.databaseadvisors.com > _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From djkr at msn.com Wed Sep 24 13:13:50 2003 From: djkr at msn.com (DJK(John) Robinson) Date: Wed, 24 Sep 2003 19:13:50 +0100 Subject: [dba-SQLServer]CHAT: Advanced SQL Server Administration In-Reply-To: <3F71B52E.6080106@verizon.net> Message-ID: <014b01c382c7$9b0429f0$bf00a8c0@dabsight> Thanks for the 'heads-up', Francisco. Busy, wasn't it? John > -----Original Message----- > From: dba-sqlserver-bounces at databaseadvisors.com > [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf > Of Francisco H Tapia > Sent: 24 September 2003 16:16 > To: dba-SQLServer at databaseadvisors.com > Subject: [dba-SQLServer]CHAT: Advanced SQL Server Administration > > > I recommend that anyone that has an opportunity sign on to > this chat :). > > Free DBA Chat Wednesday! > > Topic: Advanced SQL Server Administration > Date: Wednesday, September 24, 2003 > Time: 10-11 AM Pacific Time (11-12 PM MT, 12-1 PM CT, 1-2 PM ET, > 18:00-19:00 GMT) > > > Don't miss this opportunity to get advice direct from > Microsoft and from > renowned user experts and owners of three of the most popular > SQL Server > sites on the web! Want to learn how the experts handle the > management of > their companies' SQL Servers? Want to compare your day-to-day > challenges > with other database professionals? Learn from some of the > brightest SQL > Server minds on how they handle security, disaster recovery, database > optimization, and automating administrative tasks among other > common DBA > tasks. > > Hosts: > Euan Garden, Microsoft > Brian Knight, Author, Co-founder, SQLServerCentral.com > Sri Kasam, Microsoft > Bill Graziano, Partner - ClearData Consulting, Inc., > SQLTeam.COM Brad M. McGehee, MVP, SQL-Server-Performance.Com > > Quick Links: Registration and participation instructions: > http://www.microsoft.com/technet/chats/default.asp. Schedule of PASS > Chats: http://www.sqlpass.org/community/chat/index.cfm > > -- > -Francisco > Leela: "Great. We're two days from earth with no food." > Bender: "Problem solved. You two fight to the death and I'll cook the > loser." > > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > > From my.lists at verizon.net Wed Sep 24 14:14:47 2003 From: my.lists at verizon.net (Francisco H Tapia) Date: Wed, 24 Sep 2003 12:14:47 -0700 Subject: [dba-SQLServer]CHAT: Advanced SQL Server Administration In-Reply-To: <014b01c382c7$9b0429f0$bf00a8c0@dabsight> References: <014b01c382c7$9b0429f0$bf00a8c0@dabsight> Message-ID: <3F71ED27.2000604@verizon.net> I think it was very good. I took good info from it :) DJK(John) Robinson wrote: > Thanks for the 'heads-up', Francisco. Busy, wasn't it? > > John > > > >>-----Original Message----- >>From: dba-sqlserver-bounces at databaseadvisors.com >>[mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf >>Of Francisco H Tapia >>Sent: 24 September 2003 16:16 >>To: dba-SQLServer at databaseadvisors.com >>Subject: [dba-SQLServer]CHAT: Advanced SQL Server Administration >> >> >>I recommend that anyone that has an opportunity sign on to >>this chat :). >> >>Free DBA Chat Wednesday! >> >>Topic: Advanced SQL Server Administration >>Date: Wednesday, September 24, 2003 >>Time: 10-11 AM Pacific Time (11-12 PM MT, 12-1 PM CT, 1-2 PM ET, >>18:00-19:00 GMT) >> >> >>Don't miss this opportunity to get advice direct from >>Microsoft and from >>renowned user experts and owners of three of the most popular >>SQL Server >>sites on the web! Want to learn how the experts handle the >>management of >>their companies' SQL Servers? Want to compare your day-to-day >>challenges >>with other database professionals? Learn from some of the >>brightest SQL >>Server minds on how they handle security, disaster recovery, database >>optimization, and automating administrative tasks among other >>common DBA >>tasks. >> >>Hosts: >>Euan Garden, Microsoft >>Brian Knight, Author, Co-founder, SQLServerCentral.com >>Sri Kasam, Microsoft >>Bill Graziano, Partner - ClearData Consulting, Inc., >>SQLTeam.COM Brad M. McGehee, MVP, SQL-Server-Performance.Com >> >>Quick Links: Registration and participation instructions: >>http://www.microsoft.com/technet/chats/default.asp. Schedule of PASS >>Chats: http://www.sqlpass.org/community/chat/index.cfm >> >>-- >>-Francisco >>Leela: "Great. We're two days from earth with no food." >>Bender: "Problem solved. You two fight to the death and I'll cook the >>loser." >> -- -Francisco Due to economic restraints light at end of tunnel will be turned off until further notice. From davide at dalyn.co.nz Wed Sep 24 17:03:53 2003 From: davide at dalyn.co.nz (David Emerson) Date: Thu, 25 Sep 2003 10:03:53 +1200 Subject: [dba-SQLServer]Creating Sproc over 8000 chars long In-Reply-To: <000001c382c9$b67bf440$6501a8c0@rock> References: <5.2.0.9.0.20030923131547.00b43d30@mail.dalyn.co.nz> Message-ID: <5.2.0.9.0.20030925100150.00bcd8a0@mail.dalyn.co.nz> Thanks Arthur, I found that I had used a temp table in another (programmed later) part of the FE. I seemed to have come to the same conclusion but hadn't gone back and updated old code. David At 24/09/2003, you wrote: >I just wrote a UDF that takes a comma delimited string (which would >normally be passed as the argument to IN(), but instead it breaks the >string apart into its components and creates a temporary table, which >can then be joined to the table(s) of interest. > >Unfortunately I can't show it to you yet because it's part of one of my >forthcoming SQL Tips columns :-) > >The point of the exercise was, lots of arguments to IN() results in very >slow execution. Joining a temp table is WAY faster. > >Arthur > >-----Original Message----- >From: dba-sqlserver-bounces at databaseadvisors.com >[mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of David >Emerson >Sent: Monday, September 22, 2003 6:17 PM >To: dba-sqlserver at databaseadvisors.com >Subject: Re: [dba-SQLServer]Creating Sproc over 8000 chars long > > >Thanks Stuart. Since the database is likely to start running into >several >thousand customers it looks like I will need to run the table way. > >David > >At 23/09/2003, you wrote: > >On 23 Sep 2003 at 12:16, David Emerson wrote: > > > > > I have a sproc that accepts a string as a parameter which is used in > > > > a where clause to filter out customers. > > > > > > The string is created by looping through a list box and adding the > > > customers that have been selected: > > > > > > strList = strList & " or ((CustomerID) = " & .ItemData(varItem) & > > > ")" > > > > > > > > >You will build a much smaller string if you use > > > >'initialise the string > >strList = "CustomerID IN (" > >...... > >'build the list > >strList = strList & ItemData(varItem) & "," > >........ > > > >'strip trailing comma and close the expression > >strList = left$(strList,Len(strList)-1) & ")" > > > > > This goes into a statement which starts like this: > > > > > > DECLARE @qs varchar (8000) > > > > > > SELECT @qs = 'INSERT INTO ttmpExportMerge (CustomerName, > > > TradingName, > > ... etc > > > > > > However the problem is that there could be over 1600 customers and > > > this means that strList is over 8000 character which exceeds the @qs > > > > length (without even allowing for the rest of the sproc). > > > > > > Is there a data type that can handle these numbers? I tried 'text' > > > but > > the > > > sproc errors with "text is invalid for local variables" > > > > >Nope, your stuck with data types which can have a maximum of 8000 > >characters. > > > >If the IN construct still gives you more than 8000 characters you're > >SOOL with that approach. > > > > > Is my only option to write the customer ID to a table and join it to > > > > the rest of the sproc? > > > > > > >That's one option. > >Another may be to have a "Selected" field in the customer table which > >you set somehow rather than building the where string. If this is > >likely to be multi user, I'd probably go with your option of building a > > >temp table of selected IDs and joining it. > > > > > > > >-- > >Stuart McLachlan > >Lexacorp Ltd > >Application Development, IT Consultancy http://www.lexacorp.com.pg > > > >_______________________________________________ > >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.510 / Virus Database: 307 - Release Date: 8/14/2003 > > >--- >Outgoing mail is certified Virus Free. >Checked by AVG anti-virus system (http://www.grisoft.com). >Version: 6.0.510 / Virus Database: 307 - Release Date: 8/14/2003 > > > >_______________________________________________ >dba-SQLServer mailing list >dba-SQLServer at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-sqlserver >http://www.databaseadvisors.com From ebarro at afsweb.com Thu Sep 25 12:55:31 2003 From: ebarro at afsweb.com (Eric Barro) Date: Thu, 25 Sep 2003 10:55:31 -0700 Subject: [dba-SQLServer]Creating Sproc over 8000 chars long In-Reply-To: <5.2.0.9.0.20030925100150.00bcd8a0@mail.dalyn.co.nz> Message-ID: Does anyone here have any experience with optimizing a SQL server box with 2 processors? We installed a second processor on our SQL server box and we are getting more timeouts than ever. --- Eric Barro Senior Systems Analyst Advanced Field Services (208) 772-7060 http://www.afsweb.com --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.512 / Virus Database: 309 - Release Date: 8/19/2003 From Robert.Djabarov at usaa.com Thu Sep 25 13:17:35 2003 From: Robert.Djabarov at usaa.com (Djabarov, Robert) Date: Thu, 25 Sep 2003 13:17:35 -0500 Subject: [dba-SQLServer]Creating Sproc over 8000 chars long Message-ID: <3CCEA32DFF043C4CB99B835557E11B30BEED98@ex02.eagle.usaa.com> Well, since I'm not writing any articles, here's the function that Arthur may have: create function dbo.fn_ParseStringToIntValues ( @str varchar(8000) ) returns @tbl table (IntValue int not null) as begin declare @pos int while charindex(',', @str, 1) > 0 begin set @pos = charindex(',', @str, 1) insert @tbl values (cast(substring(@str, 1, @pos-1) as int)) set @str = substring(@str, @pos+1, datalength(@str)- at pos) end insert @tbl values (cast(@str as int)) return end go select * from dbo.fn_ParseStringToIntValues ('123,432,456,4356,43234,1,2,3') order by 1 -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of David Emerson Sent: Wednesday, September 24, 2003 5:04 PM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]Creating Sproc over 8000 chars long Thanks Arthur, I found that I had used a temp table in another (programmed later) part of the FE. I seemed to have come to the same conclusion but hadn't gone back and updated old code. David At 24/09/2003, you wrote: >I just wrote a UDF that takes a comma delimited string (which would >normally be passed as the argument to IN(), but instead it breaks the >string apart into its components and creates a temporary table, which >can then be joined to the table(s) of interest. > >Unfortunately I can't show it to you yet because it's part of one of my >forthcoming SQL Tips columns :-) > >The point of the exercise was, lots of arguments to IN() results in >very slow execution. Joining a temp table is WAY faster. > >Arthur > >-----Original Message----- >From: dba-sqlserver-bounces at databaseadvisors.com >[mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of David >Emerson >Sent: Monday, September 22, 2003 6:17 PM >To: dba-sqlserver at databaseadvisors.com >Subject: Re: [dba-SQLServer]Creating Sproc over 8000 chars long > > >Thanks Stuart. Since the database is likely to start running into >several thousand customers it looks like I will need to run the table >way. > >David > >At 23/09/2003, you wrote: > >On 23 Sep 2003 at 12:16, David Emerson wrote: > > > > > I have a sproc that accepts a string as a parameter which is used > > > in > > > > a where clause to filter out customers. > > > > > > The string is created by looping through a list box and adding the > > > customers that have been selected: > > > > > > strList = strList & " or ((CustomerID) = " & .ItemData(varItem) & > > > ")" > > > > > > > > >You will build a much smaller string if you use > > > >'initialise the string > >strList = "CustomerID IN (" > >...... > >'build the list > >strList = strList & ItemData(varItem) & "," > >........ > > > >'strip trailing comma and close the expression > >strList = left$(strList,Len(strList)-1) & ")" > > > > > This goes into a statement which starts like this: > > > > > > DECLARE @qs varchar (8000) > > > > > > SELECT @qs = 'INSERT INTO ttmpExportMerge (CustomerName, > > > TradingName, > > ... etc > > > > > > However the problem is that there could be over 1600 customers and > > > this means that strList is over 8000 character which exceeds the > > > @qs > > > > length (without even allowing for the rest of the sproc). > > > > > > Is there a data type that can handle these numbers? I tried > > > 'text' but > > the > > > sproc errors with "text is invalid for local variables" > > > > >Nope, your stuck with data types which can have a maximum of 8000 > >characters. > > > >If the IN construct still gives you more than 8000 characters you're > >SOOL with that approach. > > > > > Is my only option to write the customer ID to a table and join it > > > to > > > > the rest of the sproc? > > > > > > >That's one option. > >Another may be to have a "Selected" field in the customer table which > >you set somehow rather than building the where string. If this is > >likely to be multi user, I'd probably go with your option of building > >a > > >temp table of selected IDs and joining it. > > > > > > > >-- > >Stuart McLachlan > >Lexacorp Ltd > >Application Development, IT Consultancy http://www.lexacorp.com.pg > > > >_______________________________________________ > >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.510 / Virus Database: 307 - Release Date: 8/14/2003 > > >--- >Outgoing mail is certified Virus Free. >Checked by AVG anti-virus system (http://www.grisoft.com). >Version: 6.0.510 / Virus Database: 307 - Release Date: 8/14/2003 > > > >_______________________________________________ >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 knicholson at gpsx.net Mon Sep 29 08:15:44 2003 From: knicholson at gpsx.net (Nicholson, Karen) Date: Mon, 29 Sep 2003 08:15:44 -0500 Subject: [dba-SQLServer]Prompting for Value Message-ID: Need hints, please. I need to ask the user for a value for filtering records in an sql statement. Just a simple, what promo_id that I have underlined in the select statement below. Looking everywhere, must not be asking the correct question. I assume a variable is declared and then the variable pops in the place of the underline? Thanks in advance. Happy Monday. SELECT prospect.prospect_no, prospect.prospect_name, prospect.prospect_addr1, prospect.prospect_addr2, prospect.city_name, prospect.state_id, prospect.zip_code, prospect.branch_no, prospect.mktsrc_id, prospect.phone1, prospect.prospstat_id, prospect.sales_emp_no, prospect.udf9, prospect.udf10, prospect.promo_id, prospect.referring_cust_no, prospect.udf7, prospect_archive.prospstat_id AS prospstat_id_archive, customer.cust_name, customer.cust_addr1, customer.cust_addr2, customer.city_name AS Expr1, customer.state_id AS Expr2, customer.zip_code AS Expr3, customer.phone1 AS Expr4 FROM dbo.prospect INNER JOIN dbo.prospect_archive ON dbo.prospect.prospect_no = dbo.prospect_archive.prospect_no LEFT OUTER JOIN dbo.customer ON dbo.prospect.referring_cust_no = dbo.customer.cust_no WHERE (dbo.prospect.promo_id = ____________________ ) From my.lists at verizon.net Mon Sep 29 12:13:45 2003 From: my.lists at verizon.net (Francisco H Tapia) Date: Mon, 29 Sep 2003 10:13:45 -0700 Subject: [dba-SQLServer]Prompting for Value In-Reply-To: References: Message-ID: <3F786849.9070802@verizon.net> In a sproc this would look like this... CREATE PROCEDURE sproc_MyPromoID (@Promo_ID AS Integer) AS SELECT prospect.prospect_no, prospect.prospect_name, prospect.prospect_addr1, prospect.prospect_addr2, prospect.city_name, prospect.state_id, prospect.zip_code, prospect.branch_no, prospect.mktsrc_id, prospect.phone1, prospect.prospstat_id, prospect.sales_emp_no, prospect.udf9, prospect.udf10, prospect.promo_id, prospect.referring_cust_no, prospect.udf7, prospect_archive.prospstat_id AS prospstat_id_archive, customer.cust_name, customer.cust_addr1, customer.cust_addr2, customer.city_name AS Expr1, customer.state_id AS Expr2, customer.zip_code AS Expr3, customer.phone1 AS Expr4 FROM dbo.prospect INNER JOIN dbo.prospect_archive ON dbo.prospect.prospect_no = dbo.prospect_archive.prospect_no LEFT OUTER JOIN dbo.customer ON dbo.prospect.referring_cust_no = dbo.customer.cust_no WHERE (dbo.prospect.promo_id = @Promo_ID) note, if you're trying to prompt for this value you'll need to have your gui acctually ask from an input box or if in Access create a form that would ask for this information. to execute the command would be exec sproc_MyPromoId 1234 if 1234 was the promoid. Nicholson, Karen wrote: > Need hints, please. I need to ask the user for a value for filtering > records in an sql statement. Just a simple, what promo_id that I have > underlined in the select statement below. Looking everywhere, must not be > asking the correct question. I assume a variable is declared and then the > variable pops in the place of the underline? Thanks in advance. Happy > Monday. > > SELECT prospect.prospect_no, prospect.prospect_name, > prospect.prospect_addr1, prospect.prospect_addr2, > prospect.city_name, prospect.state_id, prospect.zip_code, > prospect.branch_no, prospect.mktsrc_id, prospect.phone1, > prospect.prospstat_id, prospect.sales_emp_no, prospect.udf9, > prospect.udf10, prospect.promo_id, > prospect.referring_cust_no, prospect.udf7, > prospect_archive.prospstat_id AS prospstat_id_archive, > customer.cust_name, customer.cust_addr1, > customer.cust_addr2, customer.city_name AS Expr1, > customer.state_id AS Expr2, customer.zip_code AS Expr3, > customer.phone1 AS Expr4 > FROM dbo.prospect INNER JOIN > dbo.prospect_archive ON > dbo.prospect.prospect_no = dbo.prospect_archive.prospect_no LEFT > OUTER JOIN > dbo.customer ON > dbo.prospect.referring_cust_no = dbo.customer.cust_no > WHERE (dbo.prospect.promo_id = ____________________ ) > _______________________________________________ -- -Francisco From knicholson at gpsx.net Mon Sep 29 13:15:23 2003 From: knicholson at gpsx.net (Nicholson, Karen) Date: Mon, 29 Sep 2003 13:15:23 -0500 Subject: [dba-SQLServer]Prompting for Value Message-ID: Great, this should get me started. I am using C++ as my GUI. Getting documentation on C++ Builder is very difficult. Thanks. -----Original Message----- From: Francisco H Tapia [mailto:my.lists at verizon.net] Sent: Monday, September 29, 2003 1:14 PM To: dba-sqlserver at databaseadvisors.com Subject: Re: [dba-SQLServer]Prompting for Value In a sproc this would look like this... CREATE PROCEDURE sproc_MyPromoID (@Promo_ID AS Integer) AS SELECT prospect.prospect_no, prospect.prospect_name, prospect.prospect_addr1, prospect.prospect_addr2, prospect.city_name, prospect.state_id, prospect.zip_code, prospect.branch_no, prospect.mktsrc_id, prospect.phone1, prospect.prospstat_id, prospect.sales_emp_no, prospect.udf9, prospect.udf10, prospect.promo_id, prospect.referring_cust_no, prospect.udf7, prospect_archive.prospstat_id AS prospstat_id_archive, customer.cust_name, customer.cust_addr1, customer.cust_addr2, customer.city_name AS Expr1, customer.state_id AS Expr2, customer.zip_code AS Expr3, customer.phone1 AS Expr4 FROM dbo.prospect INNER JOIN dbo.prospect_archive ON dbo.prospect.prospect_no = dbo.prospect_archive.prospect_no LEFT OUTER JOIN dbo.customer ON dbo.prospect.referring_cust_no = dbo.customer.cust_no WHERE (dbo.prospect.promo_id = @Promo_ID) note, if you're trying to prompt for this value you'll need to have your gui acctually ask from an input box or if in Access create a form that would ask for this information. to execute the command would be exec sproc_MyPromoId 1234 if 1234 was the promoid. Nicholson, Karen wrote: > Need hints, please. I need to ask the user for a value for filtering > records in an sql statement. Just a simple, what promo_id that I have > underlined in the select statement below. Looking everywhere, must not be > asking the correct question. I assume a variable is declared and then the > variable pops in the place of the underline? Thanks in advance. Happy > Monday. > > SELECT prospect.prospect_no, prospect.prospect_name, > prospect.prospect_addr1, prospect.prospect_addr2, > prospect.city_name, prospect.state_id, prospect.zip_code, > prospect.branch_no, prospect.mktsrc_id, prospect.phone1, > prospect.prospstat_id, prospect.sales_emp_no, prospect.udf9, > prospect.udf10, prospect.promo_id, > prospect.referring_cust_no, prospect.udf7, > prospect_archive.prospstat_id AS prospstat_id_archive, > customer.cust_name, customer.cust_addr1, > customer.cust_addr2, customer.city_name AS Expr1, > customer.state_id AS Expr2, customer.zip_code AS Expr3, > customer.phone1 AS Expr4 > FROM dbo.prospect INNER JOIN > dbo.prospect_archive ON > dbo.prospect.prospect_no = dbo.prospect_archive.prospect_no LEFT > OUTER JOIN > dbo.customer ON > dbo.prospect.referring_cust_no = dbo.customer.cust_no > WHERE (dbo.prospect.promo_id = ____________________ ) > _______________________________________________ -- -Francisco _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From knicholson at gpsx.net Tue Sep 30 13:09:02 2003 From: knicholson at gpsx.net (Nicholson, Karen) Date: Tue, 30 Sep 2003 13:09:02 -0500 Subject: [dba-SQLServer]Unworking Cursor Message-ID: CREATE PROCEDURE gps_american_site_no AS create table #tmp_site (site_no int) insert #tmp_site(site_no) select max(site_no) from site Does anyone know anything about cursors? I have a table that I have imported from Access to SQL 7. Table is named tblAmerican. The unique ID is named ID, the field I want to populated is named siteno. I get the maximum value of the site_no from my site table (another SQL table). That works. Then I think I am telling Herman (that is my computer) to update the values of the site_no field in tblAmerican by one as it loopdy doops through my first attempt at a cursor. The only thing I get is the first number in tblAmerican. Says it is doing something one by one, but only row one gets updated. Why am I lost? declare @tmp_site_no int, @tmp_id_no int declare auto_site_cursor cursor for select id from tblamerican open auto_site_cursor fetch next from auto_site_cursor into @tmp_id_no while @@fetch_status = 0 begin update tblamerican set siteno = #tmp_site.site_no + 1 from #tmp_site, tblamerican where tblamerican.id=@tmp_id_no update #tmp_site set site_no = site_no + 1 fetch next from auto_site_cursor into @tmp_site_no end close auto_site_cursor deallocate auto_site_cursor drop table #tmp_site From artful at rogers.com Tue Sep 30 14:58:56 2003 From: artful at rogers.com (Arthur Fuller) Date: Tue, 30 Sep 2003 12:58:56 -0700 Subject: [dba-SQLServer]Questions about columns in sysobjects In-Reply-To: Message-ID: <000101c3878d$4dcc29b0$6501a8c0@rock> In my database, the category column in the sysobjects table contains these values: 0 514 2569 521 513 2050 2568 2560 3074 3 2561 512 2 516 2048 2573 2565 1 2563 517 I've looked through BOL for an explanation but can't find one. TIA Arthur --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.516 / Virus Database: 313 - Release Date: 9/1/2003 From tuxedo_man at hotmail.com Tue Sep 30 12:48:53 2003 From: tuxedo_man at hotmail.com (Billy Pang) Date: Tue, 30 Sep 2003 17:48:53 +0000 Subject: [dba-SQLServer]Questions about columns in sysobjects Message-ID: "Used for publication, constraints, and identity." Check out: http://www.microsoft.com/sql/techinfo/productdoc/2000/systables.asp HTH Billy >From: "Arthur Fuller" >Reply-To: dba-sqlserver at databaseadvisors.com >To: >Subject: [dba-SQLServer]Questions about columns in sysobjects >Date: Tue, 30 Sep 2003 12:58:56 -0700 > >In my database, the category column in the sysobjects table contains >these values: > >0 >514 >2569 >521 >513 >2050 >2568 >2560 >3074 >3 >2561 >512 >2 >516 >2048 >2573 >2565 >1 >2563 >517 > >I've looked through BOL for an explanation but can't find one. > >TIA >Arthur > >--- >Outgoing mail is certified Virus Free. >Checked by AVG anti-virus system (http://www.grisoft.com). >Version: 6.0.516 / Virus Database: 313 - Release Date: 9/1/2003 > > > >_______________________________________________ >dba-SQLServer mailing list >dba-SQLServer at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-sqlserver >http://www.databaseadvisors.com > _________________________________________________________________ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail