From sgsax at ksu.edu Tue Feb 4 16:41:46 2003 From: sgsax at ksu.edu (Seth Galitzer) Date: 04 Feb 2003 16:41:46 -0600 Subject: [dba-SQLServer]test message - ignore Message-ID: <1044398506.28259.30.camel@sgsax-th4022c> This is a test -- Seth Galitzer sgsax at ksu.edu Computing Specialist http://puma.agron.ksu.edu/~sgsax Dept. of Plant Pathology Kansas State University From accessd at brougham.co.uk Tue Feb 4 16:39:51 2003 From: accessd at brougham.co.uk (brougham Baker) Date: Tue, 4 Feb 2003 22:39:51 -0000 Subject: [dba-SQLServer]testing Message-ID: <060401c2cc9e$550141c0$253c98d5@wintermute> testing testing 123 From my.lists at verizon.net Tue Feb 4 16:46:59 2003 From: my.lists at verizon.net (Francisco H Tapia) Date: Tue, 4 Feb 2003 14:46:59 -0800 Subject: [dba-SQLServer]TEST Message-ID: <009001c2cc9f$5468b5d0$b615010a@FHTAPIA> Ping -Francisco http://rcm.netfirms.com From fhtapia at hotmail.com Tue Feb 4 17:02:55 2003 From: fhtapia at hotmail.com (Francisco H Tapia) Date: Tue, 4 Feb 2003 15:02:55 -0800 Subject: [dba-SQLServer]testing References: <060401c2cc9e$550141c0$253c98d5@wintermute> Message-ID: ping :D -Francisco http://rcm.netfirms.com ----- Original Message ----- From: "brougham Baker" To: Sent: Tuesday, February 04, 2003 2:39 PM Subject: [dba-SQLServer]testing : testing testing 123 : : From DMcAfee at haascnc.com Tue Feb 4 17:10:53 2003 From: DMcAfee at haascnc.com (David McAfee) Date: Tue, 4 Feb 2003 15:10:53 -0800 Subject: [dba-SQLServer]TEST Message-ID: <657FB70438B7D311AF320090279C1801026D7891@EXCHMAIL> yup, I get two of every message, just like before :) From fhtapia at hotmail.com Tue Feb 4 17:08:52 2003 From: fhtapia at hotmail.com (Francisco H Tapia) Date: Tue, 4 Feb 2003 15:08:52 -0800 Subject: [dba-SQLServer]TEST References: <657FB70438B7D311AF320090279C1801026D7891@EXCHMAIL> Message-ID: check for who it's delivered to, IIRC you have 2 email address subscribed, ... PLUS you can visit the site and turn off delivery of any one of them -Francisco http://rcm.netfirms.com ----- Original Message ----- From: "David McAfee" To: Sent: Tuesday, February 04, 2003 3:10 PM Subject: RE: [dba-SQLServer]TEST : yup, I get two of every message, just like before :) : : _______________________________________________ : dba-SQLServer mailing list : dba-SQLServer at databaseadvisors.com : http://databaseadvisors.com/mailman/listinfo/dba-sqlserver : http://www.databaseadvisors.com : From harkins at iglou.com Tue Feb 4 19:19:49 2003 From: harkins at iglou.com (Susan Harkins) Date: Tue, 4 Feb 2003 20:19:49 -0500 Subject: [dba-SQLServer]Fw: Webcast Message-ID: <004801c2ccb4$af053990$f8ecffcc@SusanOne> > An Introduction to SQL Server Security > Wednesday, February 12, 2003, 10:00 AM - 11:30 AM PST (18:00 - 19:30 GMT) > > From artful at rogers.com Tue Feb 4 19:33:31 2003 From: artful at rogers.com (Arthur Fuller) Date: Tue, 4 Feb 2003 20:33:31 -0500 Subject: [dba-SQLServer] stored procedure R/O In-Reply-To: <1026416376.65d8cff8fhtapia@myrealbox.com> Message-ID: <000701c2ccb6$97314d20$8e01a8c0@Rock> Yes much better in A2002. Most notably support in design and run for UDFs. Although MS-specific and non-portable, UDFs are a reason to love MS-SQL, IMO. The more I learn about them the more I love them, and to hell with their unportability to Oracle and MySQL and DB/2! -----Original Message----- From: dba-SQLServer-owner at databaseadvisors.com [mailto:dba-SQLServer-owner at databaseadvisors.com] On Behalf Of Francisco H Tapia Sent: July 11, 2002 3:40 PM To: dba-SQLServer at databaseadvisors.com Subject: RE: [dba-SQLServer] stored procedure R/O nope nothing wrong with it if you are only making a single trip to the server...as for ADP's yes the documentation is very poor, AFAIK ADP technology is much better in A2002, but I haven't tried it... -Francisco -----Original Message----- From: "Bojan Knezovic" To: Date: Tue, 9 Jul 2002 09:00:40 +0200 Subject: RE: [dba-SQLServer] stored procedure R/O Thanks for the tip, but the problem in the first place was that I created ADO recordset from sproc and assigned it to the form. This produced data that couldn't be updated. I have come around this using the InputParams field of the form (real neat, you set the data source of the form to the sproc and then in this field you can set the values for all the parameters). This produced a form with updatable data that takes care of itself, without ever having to issue UPDATEs, create views, write code or whatever. And technically it is loaded from a sproc so from that point of view it is OK. I don't know if there're some problems with this approach, documentation on ADP's seems to be very poor. Bojan > -----Original Message----- > From: dba-SQLServer-owner at databaseadvisors.com > [mailto:dba-SQLServer-owner at databaseadvisors.com] On Behalf > Of Francisco H Tapia > Sent: Tuesday, July 09, 2002 6:57 AM > To: dba-SQLServer at databaseadvisors.com > Subject: Re: [dba-SQLServer] stored procedure R/O > > > I don't know why you're doing this.. it seems clear that if > the form is > loaded from a sproc, that you should be able to issue an > update by picking > up the modified field from your form.... a trick you can use > is load all > your controls is to cycle through your textboxes and your > fields to find the > matching names (minues the prefix of txt) and load each > control as needed, > you can have the afterupdate of each control affect the tag > value of each > control so you can use it as a compare basis against the > stored data... then > just pass those values back to your stored procedure that handles the > update....why call the data and filter it again??? You've > taken a 3 trips > to accomplish 1. > > -Francisco > ----- Original Message ----- > From: "Bojan Knezovic" > To: > Sent: Monday, July 08, 2002 12:00 PM > Subject: RE: [dba-SQLServer] stored procedure R/O > > > > Oh, never mind this... I found the "problem". I forgot the > form was R/W > > and issuing an UPDATE on the new connection was as if some > other user > > modified the record. Technically, UPDATE was not necessary at all. > > > > This is all still new to me so these kinds of "problems" are not > > unexpected. :) > > > > But I'm curious what was your solution? What do you use? > > > > > > > -----Original Message----- > > > From: dba-SQLServer-owner at databaseadvisors.com > > > [mailto:dba-SQLServer-owner at databaseadvisors.com] On Behalf > > > Of Mike and Doris Manning > > > Sent: Monday, July 08, 2002 8:41 PM > > > To: dba-SQLServer at databaseadvisors.com > > > Subject: RE: [dba-SQLServer] stored procedure R/O > > > > > > > > > Include your code... I think I have a solution for you > but need to see > > > your code to be sure... > > > > > > Doris Manning > > > Database Administrator > > > Hargrove Inc. > > > www.hargroveinc.com > > > > > > > > > -----Original Message----- > > > From: dba-SQLServer-owner at databaseadvisors.com > > > [mailto:dba-SQLServer-owner at databaseadvisors.com] On > Behalf Of Bojan > > > Knezovic > > > Sent: Monday, July 08, 2002 02:30 PM > > > To: dba-SQLServer at databaseadvisors.com > > > Subject: RE: [dba-SQLServer] stored procedure R/O > > > > > > > > > > > > Very well, I think I'll stick with the ADP. > > > > > > Now, one more question. :) I have a R/O form that gets the > > > record from a > > > stored procedure (one row only). When I want to edit this > data, I open > > > another form that uses a view as it's data source and I > > > filter it out so > > > that it shows only one record again. I change something, click the > > > button that issues the UPDATE, open the first form and close > > > the second > > > one. After this I get some error about the lock conflict. Any > > > ideas why? > > > > > > I will include code if needed. > > > > > > > > > Bojan > > > > > > > From my.lists at verizon.net Tue Feb 4 23:00:36 2003 From: my.lists at verizon.net (Francisco Tapia) Date: Tue, 4 Feb 2003 21:00:36 -0800 Subject: [dba-SQLServer] stored procedure R/O References: <000701c2ccb6$97314d20$8e01a8c0@Rock> Message-ID: <001001c2ccd3$85ccea40$0eb62904@amd2k> :O, said to hell with mySQL :O that itself is a shock. I'm intrested in the mySQL layer but have not had the opportunity to even look at it let alone even read an ounce of decent documentation.. :( I figured that by this time this year, I'd be exploring the avenues of the wininet.dll or something somesuch that would allow my apps to perform a Symantec'esq Live Update...but oh well, deadlines will be deadlines and derailed projects are doomed to never be finished :( -Francisco http://rcm.netfirms.com/ ----- Original Message ----- From: "Arthur Fuller" To: Sent: Tuesday, February 04, 2003 5:33 PM Subject: RE: [dba-SQLServer] stored procedure R/O : Yes much better in A2002. Most notably support in design and run for UDFs. : Although MS-specific and non-portable, UDFs are a reason to love MS-SQL, : IMO. The more I learn about them the more I love them, and to hell with : their unportability to Oracle and MySQL and DB/2! : : -----Original Message----- : From: dba-SQLServer-owner at databaseadvisors.com : [mailto:dba-SQLServer-owner at databaseadvisors.com] On Behalf Of Francisco H : Tapia : Sent: July 11, 2002 3:40 PM : To: dba-SQLServer at databaseadvisors.com : Subject: RE: [dba-SQLServer] stored procedure R/O : : nope nothing wrong with it if you are only making a single trip to the : server...as for ADP's yes the documentation is very poor, AFAIK ADP : technology is much better in A2002, but I haven't tried it... : : -Francisco : : -----Original Message----- : From: "Bojan Knezovic" : To: : Date: Tue, 9 Jul 2002 09:00:40 +0200 : Subject: RE: [dba-SQLServer] stored procedure R/O : : : Thanks for the tip, but the problem in the first place was that I : created ADO recordset from sproc and assigned it to the form. This : produced data that couldn't be updated. I have come around this using : the InputParams field of the form (real neat, you set the data source of : the form to the sproc and then in this field you can set the values for : all the parameters). This produced a form with updatable data that takes : care of itself, without ever having to issue UPDATEs, create views, : write code or whatever. And technically it is loaded from a sproc so : from that point of view it is OK. I don't know if there're some problems : with this approach, documentation on ADP's seems to be very poor. : : Bojan : : > -----Original Message----- : > From: dba-SQLServer-owner at databaseadvisors.com : > [mailto:dba-SQLServer-owner at databaseadvisors.com] On Behalf : > Of Francisco H Tapia : > Sent: Tuesday, July 09, 2002 6:57 AM : > To: dba-SQLServer at databaseadvisors.com : > Subject: Re: [dba-SQLServer] stored procedure R/O : > : > : > I don't know why you're doing this.. it seems clear that if : > the form is : > loaded from a sproc, that you should be able to issue an : > update by picking : > up the modified field from your form.... a trick you can use : > is load all : > your controls is to cycle through your textboxes and your : > fields to find the : > matching names (minues the prefix of txt) and load each : > control as needed, : > you can have the afterupdate of each control affect the tag : > value of each : > control so you can use it as a compare basis against the : > stored data... then : > just pass those values back to your stored procedure that handles the : > update....why call the data and filter it again??? You've : > taken a 3 trips : > to accomplish 1. : > : > -Francisco : > ----- Original Message ----- : > From: "Bojan Knezovic" : > To: : > Sent: Monday, July 08, 2002 12:00 PM : > Subject: RE: [dba-SQLServer] stored procedure R/O : > : > : > > Oh, never mind this... I found the "problem". I forgot the : > form was R/W : > > and issuing an UPDATE on the new connection was as if some : > other user : > > modified the record. Technically, UPDATE was not necessary at all. : > > : > > This is all still new to me so these kinds of "problems" are not : > > unexpected. :) : > > : > > But I'm curious what was your solution? What do you use? : > > : > > : > > > -----Original Message----- : > > > From: dba-SQLServer-owner at databaseadvisors.com : > > > [mailto:dba-SQLServer-owner at databaseadvisors.com] On Behalf : > > > Of Mike and Doris Manning : > > > Sent: Monday, July 08, 2002 8:41 PM : > > > To: dba-SQLServer at databaseadvisors.com : > > > Subject: RE: [dba-SQLServer] stored procedure R/O : > > > : > > > : > > > Include your code... I think I have a solution for you : > but need to see : > > > your code to be sure... : > > > : > > > Doris Manning : > > > Database Administrator : > > > Hargrove Inc. : > > > www.hargroveinc.com : > > > : > > > : > > > -----Original Message----- : > > > From: dba-SQLServer-owner at databaseadvisors.com : > > > [mailto:dba-SQLServer-owner at databaseadvisors.com] On : > Behalf Of Bojan : > > > Knezovic : > > > Sent: Monday, July 08, 2002 02:30 PM : > > > To: dba-SQLServer at databaseadvisors.com : > > > Subject: RE: [dba-SQLServer] stored procedure R/O : > > > : > > > : > > > : > > > Very well, I think I'll stick with the ADP. : > > > : > > > Now, one more question. :) I have a R/O form that gets the : > > > record from a : > > > stored procedure (one row only). When I want to edit this : > data, I open : > > > another form that uses a view as it's data source and I : > > > filter it out so : > > > that it shows only one record again. I change something, click the : > > > button that issues the UPDATE, open the first form and close : > > > the second : > > > one. After this I get some error about the lock conflict. Any : > > > ideas why? : > > > : > > > I will include code if needed. : > > > : > > > : > > > Bojan : From andy at minstersystems.co.uk Wed Feb 5 01:37:07 2003 From: andy at minstersystems.co.uk (Andy Lacey) Date: Wed, 5 Feb 2003 07:37:07 -0000 Subject: [dba-SQLServer]TEST In-Reply-To: <657FB70438B7D311AF320090279C1801026D7891@EXCHMAIL> Message-ID: <000901c2cce9$62e02c20$b274d0d5@andypc> if you have rules to move posts to specific folders check that you don't have 2 rules which apply to the posts. If you do it'll create two copies. Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: dba-sqlserver-admin at databaseadvisors.com > [mailto:dba-sqlserver-admin at databaseadvisors.com] On Behalf > Of David McAfee > Sent: 04 February 2003 23:11 > To: 'dba-sqlserver at databaseadvisors.com' > Subject: RE: [dba-SQLServer]TEST > > > yup, I get two of every message, just like before :) > > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > > > From dwaters at usinternet.com Wed Feb 5 08:46:22 2003 From: dwaters at usinternet.com (Dan Waters) Date: Wed, 5 Feb 2003 08:46:22 -0600 Subject: [dba-SQLServer]Fw: Webcast In-Reply-To: <004801c2ccb4$af053990$f8ecffcc@SusanOne> Message-ID: <001801c2cd25$5a1d5130$de1811d8@DanWaters> Susan, Which web site will be hosting this webcast? I really need to see this. Thanks, Dan Waters -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Tuesday, February 04, 2003 7:20 PM To: SQLList Subject: [dba-SQLServer]Fw: Webcast > An Introduction to SQL Server Security > Wednesday, February 12, 2003, 10:00 AM - 11:30 AM PST (18:00 - 19:30 > GMT) > > _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From harkins at iglou.com Wed Feb 5 08:57:34 2003 From: harkins at iglou.com (Susan Harkins) Date: Wed, 5 Feb 2003 09:57:34 -0500 Subject: [dba-SQLServer]Fw: Webcast References: <001801c2cd25$5a1d5130$de1811d8@DanWaters> Message-ID: <012401c2cd27$1b382c40$e5e6ffcc@SusanOne> Drat -- the link didn't copy -- it's a MS webcast. I'll see if I can find the details again. SUsan H. > Susan, > > Which web site will be hosting this webcast? I really need to see this. > > Thanks, > Dan Waters > > -----Original Message----- > From: dba-sqlserver-admin at databaseadvisors.com > [mailto:dba-sqlserver-admin at databaseadvisors.com] On Behalf Of Susan > Harkins > Sent: Tuesday, February 04, 2003 7:20 PM > To: SQLList > Subject: [dba-SQLServer]Fw: Webcast > > > > > > An Introduction to SQL Server Security > > Wednesday, February 12, 2003, 10:00 AM - 11:30 AM PST (18:00 - 19:30 > > GMT) > > > > > > _______________________________________________ > 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 harkins at iglou.com Wed Feb 5 09:05:36 2003 From: harkins at iglou.com (Susan Harkins) Date: Wed, 5 Feb 2003 10:05:36 -0500 Subject: [dba-SQLServer]Webcast info Message-ID: <015d01c2cd28$21086760$e5e6ffcc@SusanOne> http://support.microsoft.com/default.aspx?scid=/servicedesks/webcasts/wc0206 03/wcblurb020603.asp Support WebCast: Microsoft SQL Server 2000: Troubleshooting Connectivity Thursday, February 6, 2003: 8:00 AM Pacific time (Greenwich mean time - 8 hours) http://www.microsoft.com/usa/webcasts/upcoming/1505.asp TechNet Webcast: An Introduction to SQL Server Security From szeller at cce.umn.edu Wed Feb 5 14:24:07 2003 From: szeller at cce.umn.edu (Susan Zeller) Date: Wed, 5 Feb 2003 14:24:07 -0600 Subject: [dba-SQLServer]Calc Fields on XP reports Message-ID: FYI. I've just discovered what I am going to say is at least an annoyance and possibly a bug in XP. I have an Access XP adp file that connects to SQL Server 2000. Record source for some reports is a view or sproc which creates a field. On the report, I have a text box that adds that created field with some other field. The result is incorrect unless when I create the field in my view or sproc, I explictly state the type such as cast(myfield as decimal(10,2)). I've seen this in both a simply adding of two fields together as well as in the use of the running sum property. For the most part the upgarde from 2000 to XP has been seemless, but beware of this as it has gotten me several times alreaady. --Susan Susan B. Zeller Office of Information Systems College of Continuing Education University of Minnesota 306 Wesbrook Hall 77 Pleasant Street SE Minneapolis, MN 55455 Phone: 612-626-4785 Fax: 612-625-2568 From dwaters at usinternet.com Wed Feb 5 14:58:02 2003 From: dwaters at usinternet.com (Dan Waters) Date: Wed, 5 Feb 2003 14:58:02 -0600 Subject: [dba-SQLServer]Webcast info In-Reply-To: <015d01c2cd28$21086760$e5e6ffcc@SusanOne> Message-ID: <000801c2cd59$4600dbc0$de1811d8@DanWaters> Thanks, Susan! I'm sure this will help. Dan -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Wednesday, February 05, 2003 9:06 AM To: SQLList Subject: [dba-SQLServer]Webcast info http://support.microsoft.com/default.aspx?scid=/servicedesks/webcasts/wc 0206 03/wcblurb020603.asp Support WebCast: Microsoft SQL Server 2000: Troubleshooting Connectivity Thursday, February 6, 2003: 8:00 AM Pacific time (Greenwich mean time - 8 hours) http://www.microsoft.com/usa/webcasts/upcoming/1505.asp TechNet Webcast: An Introduction to SQL Server Security _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From shait at mindspring.com Wed Feb 5 18:32:29 2003 From: shait at mindspring.com (Stephen Hait) Date: Wed, 5 Feb 2003 19:32:29 -0500 Subject: [dba-SQLServer]SQL2K memory usage Message-ID: <3E4166CD.9870.38B3FFF2@localhost> Any ideas why SQL2K would utilize 10-12Mb when initially started but then spike up to over 700Mb when there is nothing I know of accessing the database? Enterprise manager is not running, SQL Server Agent is not running. Stopping then restarting returns memory usage to the initial levels. Regards, Stephen From my.lists at verizon.net Wed Feb 5 18:41:30 2003 From: my.lists at verizon.net (Francisco H Tapia) Date: Wed, 5 Feb 2003 16:41:30 -0800 Subject: [dba-SQLServer]SQL2K memory usage References: <3E4166CD.9870.38B3FFF2@localhost> Message-ID: <00ca01c2cd78$7dd42560$b615010a@FHTAPIA> You can check for sure by using SQL profiler, and monitoring the memory usage, also performance monitor so you can see what processes are running on the computer... you may also need to check if your server is set up for dynamic memory usage or fixed, if the latter then of course that's why it takes up all 700mb, but if it is dynamic memory usage it ought to release memory whenever nothing is running and the OS demands it. Double check your memory configuration by going to EM and right clicking on your server then properties. -Francisco http://rcm.netfirms.com ----- Original Message ----- From: "Stephen Hait" To: Sent: Wednesday, February 05, 2003 4:32 PM Subject: [dba-SQLServer]SQL2K memory usage : Any ideas why SQL2K would utilize 10-12Mb when initially : started but then spike up to over 700Mb when there is nothing I : know of accessing the database? Enterprise manager is not : running, SQL Server Agent is not running. Stopping then : restarting returns memory usage to the initial levels. : : Regards, : Stephen From accessd at shaw.ca Thu Feb 6 06:06:36 2003 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Thu, 06 Feb 2003 04:06:36 -0800 Subject: [dba-SQLServer]RE: Simple SQL question? In-Reply-To: <015d01c2cd28$21086760$e5e6ffcc@SusanOne> Message-ID: Hi All: My mind has just gone blank. I want to check a table for all records for a specific 'EmployeeNumber'. There might be one record and there might be a many as 10 records, in this table. All the records have a boolean flag that marks them as either being Acive or Inactive. I would like to return ONE value of TRUE if any records are active or FALSE... and this process would be a subquery of another query. Example: select distinct e.EmployeeNumber as [Employee Number], e.Surname as [Lastname], Status = (select count(e2.active)as [Status Count] from EmployeeTransaction as e2 where Active = TRUE and e2.EmployeeNumber = e.EmployeeNumber) from EmployeeTransaction as e The above example doesn't work of course, because a number is returned but if the imbedded subquery would return ONE result of TRUE or FALSE, it would. (In the example above a value of greater than one would be TRUE result and zero would be FALSE result.) I am sure it is simple but at four in the morning, here, it is not. TIA Jim From harkins at iglou.com Thu Feb 6 08:58:47 2003 From: harkins at iglou.com (Susan Harkins) Date: Thu, 6 Feb 2003 09:58:47 -0500 Subject: [dba-SQLServer]RE: Simple SQL question? References: Message-ID: <022f01c2cdf0$8a644f30$bfe6ffcc@SusanOne> Well, off the top of my head, can't you just return the records Boolean field instead of the employee number and last name field? Susan H. > Hi All: > > My mind has just gone blank. > > I want to check a table for all records for a specific 'EmployeeNumber'. > There might be one record and there might be a many as 10 records, in this > table. > All the records have a boolean flag that marks them as either being Acive or > Inactive. > > I would like to return ONE value of TRUE if any records are active or > FALSE... > and this process would be a subquery of another query. > > Example: > > select distinct e.EmployeeNumber as [Employee Number], e.Surname as > [Lastname], > Status = (select count(e2.active)as [Status Count] from EmployeeTransaction > as e2 where Active = TRUE and e2.EmployeeNumber = e.EmployeeNumber) > from EmployeeTransaction as e > > The above example doesn't work of course, because a number is returned but > if the imbedded subquery would return ONE result of TRUE or FALSE, it would. > (In the example above a value of greater than one would be TRUE result and > zero would be FALSE result.) I am sure it is simple but at four in the > morning, here, it is not. > > TIA > Jim > > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > > > From accessd at shaw.ca Thu Feb 6 09:38:48 2003 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Thu, 06 Feb 2003 07:38:48 -0800 Subject: [dba-SQLServer]RE: Simple SQL question? In-Reply-To: <022f01c2cdf0$8a644f30$bfe6ffcc@SusanOne> Message-ID: Hi Suzan: There may be a number of records, all may be inactive, some may be active, all may be active but if a minimum of one record is active it needs to return a TRUE otherwise FALSE... I am obviously missing something. Jim -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of Susan Harkins Sent: Thursday, February 06, 2003 6:59 AM To: dba-sqlserver at databaseadvisors.com Subject: Re: [dba-SQLServer]RE: Simple SQL question? Well, off the top of my head, can't you just return the records Boolean field instead of the employee number and last name field? Susan H. > Hi All: > > My mind has just gone blank. > > I want to check a table for all records for a specific 'EmployeeNumber'. > There might be one record and there might be a many as 10 records, in this > table. > All the records have a boolean flag that marks them as either being Acive or > Inactive. > > I would like to return ONE value of TRUE if any records are active or > FALSE... > and this process would be a subquery of another query. > > Example: > > select distinct e.EmployeeNumber as [Employee Number], e.Surname as > [Lastname], > Status = (select count(e2.active)as [Status Count] from EmployeeTransaction > as e2 where Active = TRUE and e2.EmployeeNumber = e.EmployeeNumber) > from EmployeeTransaction as e > > The above example doesn't work of course, because a number is returned but > if the imbedded subquery would return ONE result of TRUE or FALSE, it would. > (In the example above a value of greater than one would be TRUE result and > zero would be FALSE result.) I am sure it is simple but at four in the > morning, here, it is not. > > TIA > Jim > > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > > > _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From harkins at iglou.com Thu Feb 6 09:53:42 2003 From: harkins at iglou.com (Susan Harkins) Date: Thu, 6 Feb 2003 10:53:42 -0500 Subject: [dba-SQLServer]RE: Simple SQL question? References: Message-ID: <03bd01c2cdf7$ee9da440$bfe6ffcc@SusanOne> Which returns true -- the subquery -- you want the subquery to return just one true? I don't think you're going to get what you need with a simple SELECT or subquery. Susan H. > Hi Suzan: > > There may be a number of records, all may be inactive, some may be active, > all may be active but if a minimum of one record is active it needs to > return a TRUE otherwise FALSE... I am obviously missing something. > > Jim > > -----Original Message----- > From: dba-sqlserver-admin at databaseadvisors.com > [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of Susan > Harkins > Sent: Thursday, February 06, 2003 6:59 AM > To: dba-sqlserver at databaseadvisors.com > Subject: Re: [dba-SQLServer]RE: Simple SQL question? > > > Well, off the top of my head, can't you just return the records Boolean > field instead of the employee number and last name field? > > Susan H. > > > Hi All: > > > > My mind has just gone blank. > > > > I want to check a table for all records for a specific 'EmployeeNumber'. > > There might be one record and there might be a many as 10 records, in this > > table. > > All the records have a boolean flag that marks them as either being Acive > or > > Inactive. > > > > I would like to return ONE value of TRUE if any records are active or > > FALSE... > > and this process would be a subquery of another query. > > > > Example: > > > > select distinct e.EmployeeNumber as [Employee Number], e.Surname as > > [Lastname], > > Status = (select count(e2.active)as [Status Count] from > EmployeeTransaction > > as e2 where Active = TRUE and e2.EmployeeNumber = e.EmployeeNumber) > > from EmployeeTransaction as e > > > > The above example doesn't work of course, because a number is returned but > > if the imbedded subquery would return ONE result of TRUE or FALSE, it > would. > > (In the example above a value of greater than one would be TRUE result and > > zero would be FALSE result.) I am sure it is simple but at four in the > > morning, here, it is not. > > > > TIA > > Jim > > > > _______________________________________________ > > dba-SQLServer mailing list > > dba-SQLServer at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > > http://www.databaseadvisors.com > > > > > > > > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > > > From fernando.pires at gustavsberg.com Thu Feb 6 09:57:46 2003 From: fernando.pires at gustavsberg.com (fernando.pires at gustavsberg.com) Date: Thu, 6 Feb 2003 16:57:46 +0100 Subject: Ang: Re: [dba-SQLServer]RE: Simple SQL question? Message-ID: select iif(sum(active) > 0, true,false) from table where active = true Fernando Pires IT dep. Tel. + 46 857039367 Mob. + 46 702795858 "Susan Harkins" Till: S?nt av: Kopia: dba-sqlserver-admin at databasea ?rende: Re: [dba-SQLServer]RE: Simple SQL question? dvisors.com 2003-02-06 16:53 S?nd svar till dba-sqlserver Which returns true -- the subquery -- you want the subquery to return just one true? I don't think you're going to get what you need with a simple SELECT or subquery. Susan H. > Hi Suzan: > > There may be a number of records, all may be inactive, some may be active, > all may be active but if a minimum of one record is active it needs to > return a TRUE otherwise FALSE... I am obviously missing something. > > Jim > > -----Original Message----- > From: dba-sqlserver-admin at databaseadvisors.com > [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of Susan > Harkins > Sent: Thursday, February 06, 2003 6:59 AM > To: dba-sqlserver at databaseadvisors.com > Subject: Re: [dba-SQLServer]RE: Simple SQL question? > > > Well, off the top of my head, can't you just return the records Boolean > field instead of the employee number and last name field? > > Susan H. > > > Hi All: > > > > My mind has just gone blank. > > > > I want to check a table for all records for a specific 'EmployeeNumber'. > > There might be one record and there might be a many as 10 records, in this > > table. > > All the records have a boolean flag that marks them as either being Acive > or > > Inactive. > > > > I would like to return ONE value of TRUE if any records are active or > > FALSE... > > and this process would be a subquery of another query. > > > > Example: > > > > select distinct e.EmployeeNumber as [Employee Number], e.Surname as > > [Lastname], > > Status = (select count(e2.active)as [Status Count] from > EmployeeTransaction > > as e2 where Active = TRUE and e2.EmployeeNumber = e.EmployeeNumber) > > from EmployeeTransaction as e > > > > The above example doesn't work of course, because a number is returned but > > if the imbedded subquery would return ONE result of TRUE or FALSE, it > would. > > (In the example above a value of greater than one would be TRUE result and > > zero would be FALSE result.) I am sure it is simple but at four in the > > morning, here, it is not. > > > > TIA > > Jim > > > > _______________________________________________ > > dba-SQLServer mailing list > > dba-SQLServer at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > > http://www.databaseadvisors.com > > > > > > > > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > > > _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From harkins at iglou.com Thu Feb 6 10:00:56 2003 From: harkins at iglou.com (Susan Harkins) Date: Thu, 6 Feb 2003 11:00:56 -0500 Subject: [dba-SQLServer]RE: Simple SQL question? References: Message-ID: <042f01c2cdf8$f32273a0$bfe6ffcc@SusanOne> Like magic. :) Susan H. select iif(sum(active) > 0, true,false) from table where active = true Fernando Pires IT dep. Tel. + 46 857039367 Mob. + 46 702795858 "Susan Harkins" Till: S?nt av: Kopia: dba-sqlserver-admin at databasea ?rende: Re: [dba-SQLServer]RE: Simple SQL question? dvisors.com 2003-02-06 16:53 S?nd svar till dba-sqlserver Which returns true -- the subquery -- you want the subquery to return just one true? I don't think you're going to get what you need with a simple SELECT or subquery. Susan H. > Hi Suzan: > > There may be a number of records, all may be inactive, some may be active, > all may be active but if a minimum of one record is active it needs to > return a TRUE otherwise FALSE... I am obviously missing something. > > Jim > > -----Original Message----- > From: dba-sqlserver-admin at databaseadvisors.com > [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of Susan > Harkins > Sent: Thursday, February 06, 2003 6:59 AM > To: dba-sqlserver at databaseadvisors.com > Subject: Re: [dba-SQLServer]RE: Simple SQL question? > > > Well, off the top of my head, can't you just return the records Boolean > field instead of the employee number and last name field? > > Susan H. > > > Hi All: > > > > My mind has just gone blank. > > > > I want to check a table for all records for a specific 'EmployeeNumber'. > > There might be one record and there might be a many as 10 records, in this > > table. > > All the records have a boolean flag that marks them as either being Acive > or > > Inactive. > > > > I would like to return ONE value of TRUE if any records are active or > > FALSE... > > and this process would be a subquery of another query. > > > > Example: > > > > select distinct e.EmployeeNumber as [Employee Number], e.Surname as > > [Lastname], > > Status = (select count(e2.active)as [Status Count] from > EmployeeTransaction > > as e2 where Active = TRUE and e2.EmployeeNumber = e.EmployeeNumber) > > from EmployeeTransaction as e > > > > The above example doesn't work of course, because a number is returned but > > if the imbedded subquery would return ONE result of TRUE or FALSE, it > would. > > (In the example above a value of greater than one would be TRUE result and > > zero would be FALSE result.) I am sure it is simple but at four in the > > morning, here, it is not. > > > > TIA > > Jim > > > > _______________________________________________ > > dba-SQLServer mailing list > > dba-SQLServer at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > > http://www.databaseadvisors.com > > > > > > > > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > > > _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From accessd at shaw.ca Thu Feb 6 10:07:14 2003 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Thu, 06 Feb 2003 08:07:14 -0800 Subject: [dba-SQLServer]RE: Simple SQL question? In-Reply-To: Message-ID: Thank you Suzan and Fernando: I will test this at my client's site. Have a good morning Jim -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of fernando.pires at gustavsberg.com Sent: Thursday, February 06, 2003 7:58 AM To: dba-sqlserver at databaseadvisors.com Subject: Ang: Re: [dba-SQLServer]RE: Simple SQL question? select iif(sum(active) > 0, true,false) from table where active = true Fernando Pires IT dep. Tel. + 46 857039367 Mob. + 46 702795858 "Susan Harkins" Till: S?nt av: Kopia: dba-sqlserver-admin at databasea ?rende: Re: [dba-SQLServer]RE: Simple SQL question? dvisors.com 2003-02-06 16:53 S?nd svar till dba-sqlserver Which returns true -- the subquery -- you want the subquery to return just one true? I don't think you're going to get what you need with a simple SELECT or subquery. Susan H. > Hi Suzan: > > There may be a number of records, all may be inactive, some may be active, > all may be active but if a minimum of one record is active it needs to > return a TRUE otherwise FALSE... I am obviously missing something. > > Jim > > -----Original Message----- > From: dba-sqlserver-admin at databaseadvisors.com > [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of Susan > Harkins > Sent: Thursday, February 06, 2003 6:59 AM > To: dba-sqlserver at databaseadvisors.com > Subject: Re: [dba-SQLServer]RE: Simple SQL question? > > > Well, off the top of my head, can't you just return the records Boolean > field instead of the employee number and last name field? > > Susan H. > > > Hi All: > > > > My mind has just gone blank. > > > > I want to check a table for all records for a specific 'EmployeeNumber'. > > There might be one record and there might be a many as 10 records, in this > > table. > > All the records have a boolean flag that marks them as either being Acive > or > > Inactive. > > > > I would like to return ONE value of TRUE if any records are active or > > FALSE... > > and this process would be a subquery of another query. > > > > Example: > > > > select distinct e.EmployeeNumber as [Employee Number], e.Surname as > > [Lastname], > > Status = (select count(e2.active)as [Status Count] from > EmployeeTransaction > > as e2 where Active = TRUE and e2.EmployeeNumber = e.EmployeeNumber) > > from EmployeeTransaction as e > > > > The above example doesn't work of course, because a number is returned but > > if the imbedded subquery would return ONE result of TRUE or FALSE, it > would. > > (In the example above a value of greater than one would be TRUE result and > > zero would be FALSE result.) I am sure it is simple but at four in the > > morning, here, it is not. > > > > TIA > > Jim > > > > _______________________________________________ > > dba-SQLServer mailing list > > dba-SQLServer at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > > http://www.databaseadvisors.com > > > > > > > > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > > > _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com _______________________________________________ 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 Thu Feb 6 10:14:56 2003 From: Robert.Djabarov at usaa.com (Djabarov, Robert) Date: Thu, 6 Feb 2003 10:14:56 -0600 Subject: [dba-SQLServer]RE: Simple SQL question? Message-ID: <5A31F89EC4C79B49B5030FF2EF58E9D24EBBBD@ex02.eagle.usaa.com> select distinct [Employee Number]=e.EmployeeNumber, LastName=e.Surname, Status='Active' from EmployeeTransaction e where exists (select * from EmployeeTransaction e2 where e.EmployeeNumber=e2.EmployeeNumber and Active='TRUE') union select distinct e.EmployeeNumber, e.Surname,'Inactive' from EmployeeTransaction e where not exists (select * from EmployeeTransaction e2 where e.EmployeeNumber=e2.EmployeeNumber and Active='TRUE') ______________________________________________________ Robert Djabarov Certified MS SQL Server DBA Certified MS SQL Server Programmer Certified MS VB Programmer ? (210) 913-3148 - phone ? (210) 753-3148 - pager -----Original Message----- From: Jim Lawrence (AccessD) [mailto:accessd at shaw.ca] Sent: Thursday, February 06, 2003 6:07 AM To: dba-sqlserver at databaseadvisors.com Subject: [dba-SQLServer]RE: Simple SQL question? Hi All: My mind has just gone blank. I want to check a table for all records for a specific 'EmployeeNumber'. There might be one record and there might be a many as 10 records, in this table. All the records have a boolean flag that marks them as either being Acive or Inactive. I would like to return ONE value of TRUE if any records are active or FALSE... and this process would be a subquery of another query. Example: select distinct e.EmployeeNumber as [Employee Number], e.Surname as [Lastname], Status = (select count(e2.active)as [Status Count] from EmployeeTransaction as e2 where Active = TRUE and e2.EmployeeNumber = e.EmployeeNumber) from EmployeeTransaction as e The above example doesn't work of course, because a number is returned but if the imbedded subquery would return ONE result of TRUE or FALSE, it would. (In the example above a value of greater than one would be TRUE result and zero would be FALSE result.) I am sure it is simple but at four in the morning, here, it is not. TIA Jim _______________________________________________ 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 Thu Feb 6 10:25:01 2003 From: Robert.Djabarov at usaa.com (Djabarov, Robert) Date: Thu, 6 Feb 2003 10:25:01 -0600 Subject: [dba-SQLServer]RE: Simple SQL question? Message-ID: <5A31F89EC4C79B49B5030FF2EF58E9D24EC716@ex02.eagle.usaa.com> ...Hmmmm...very daring solution...but I don't believe it will fly :) ______________________________________________________ Robert Djabarov Certified MS SQL Server DBA Certified MS SQL Server Programmer Certified MS VB Programmer ? (210) 913-3148 - phone ? (210) 753-3148 - pager -----Original Message----- From: fernando.pires at gustavsberg.com [mailto:fernando.pires at gustavsberg.com] Sent: Thursday, February 06, 2003 9:58 AM To: dba-sqlserver at databaseadvisors.com Subject: Ang: Re: [dba-SQLServer]RE: Simple SQL question? select iif(sum(active) > 0, true,false) from table where active = true Fernando Pires IT dep. Tel. + 46 857039367 Mob. + 46 702795858 "Susan Harkins" Till: S?nt av: Kopia: dba-sqlserver-admin at databasea ?rende: Re: [dba-SQLServer]RE: Simple SQL question? dvisors.com 2003-02-06 16:53 S?nd svar till dba-sqlserver Which returns true -- the subquery -- you want the subquery to return just one true? I don't think you're going to get what you need with a simple SELECT or subquery. Susan H. > Hi Suzan: > > There may be a number of records, all may be inactive, some may be active, > all may be active but if a minimum of one record is active it needs to > return a TRUE otherwise FALSE... I am obviously missing something. > > Jim > > -----Original Message----- > From: dba-sqlserver-admin at databaseadvisors.com > [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of Susan > Harkins > Sent: Thursday, February 06, 2003 6:59 AM > To: dba-sqlserver at databaseadvisors.com > Subject: Re: [dba-SQLServer]RE: Simple SQL question? > > > Well, off the top of my head, can't you just return the records Boolean > field instead of the employee number and last name field? > > Susan H. > > > Hi All: > > > > My mind has just gone blank. > > > > I want to check a table for all records for a specific 'EmployeeNumber'. > > There might be one record and there might be a many as 10 records, in this > > table. > > All the records have a boolean flag that marks them as either being Acive > or > > Inactive. > > > > I would like to return ONE value of TRUE if any records are active or > > FALSE... > > and this process would be a subquery of another query. > > > > Example: > > > > select distinct e.EmployeeNumber as [Employee Number], e.Surname as > > [Lastname], > > Status = (select count(e2.active)as [Status Count] from > EmployeeTransaction > > as e2 where Active = TRUE and e2.EmployeeNumber = e.EmployeeNumber) > > from EmployeeTransaction as e > > > > The above example doesn't work of course, because a number is returned but > > if the imbedded subquery would return ONE result of TRUE or FALSE, it > would. > > (In the example above a value of greater than one would be TRUE result and > > zero would be FALSE result.) I am sure it is simple but at four in the > > morning, here, it is not. > > > > TIA > > Jim > > > > _______________________________________________ > > dba-SQLServer mailing list > > dba-SQLServer at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > > http://www.databaseadvisors.com > > > > > > > > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > > > _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From harkins at iglou.com Thu Feb 6 11:06:41 2003 From: harkins at iglou.com (Susan Harkins) Date: Thu, 6 Feb 2003 12:06:41 -0500 Subject: [dba-SQLServer]RE: Simple SQL question? References: <5A31F89EC4C79B49B5030FF2EF58E9D24EC716@ex02.eagle.usaa.com> Message-ID: <054801c2ce04$0edc60f0$bfe6ffcc@SusanOne> Playing with it a bit -- apparently you can't use a Bit data type in a Sum aggregate? I didn't know that. Susan H. ...Hmmmm...very daring solution...but I don't believe it will fly :) ______________________________________________________ Robert Djabarov Certified MS SQL Server DBA Certified MS SQL Server Programmer Certified MS VB Programmer ? (210) 913-3148 - phone ? (210) 753-3148 - pager -----Original Message----- From: fernando.pires at gustavsberg.com [mailto:fernando.pires at gustavsberg.com] Sent: Thursday, February 06, 2003 9:58 AM To: dba-sqlserver at databaseadvisors.com Subject: Ang: Re: [dba-SQLServer]RE: Simple SQL question? select iif(sum(active) > 0, true,false) from table where active = true Fernando Pires IT dep. Tel. + 46 857039367 Mob. + 46 702795858 "Susan Harkins" Till: S?nt av: Kopia: dba-sqlserver-admin at databasea ?rende: Re: [dba-SQLServer]RE: Simple SQL question? dvisors.com 2003-02-06 16:53 S?nd svar till dba-sqlserver Which returns true -- the subquery -- you want the subquery to return just one true? I don't think you're going to get what you need with a simple SELECT or subquery. Susan H. > Hi Suzan: > > There may be a number of records, all may be inactive, some may be active, > all may be active but if a minimum of one record is active it needs to > return a TRUE otherwise FALSE... I am obviously missing something. > > Jim > > -----Original Message----- > From: dba-sqlserver-admin at databaseadvisors.com > [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of Susan > Harkins > Sent: Thursday, February 06, 2003 6:59 AM > To: dba-sqlserver at databaseadvisors.com > Subject: Re: [dba-SQLServer]RE: Simple SQL question? > > > Well, off the top of my head, can't you just return the records Boolean > field instead of the employee number and last name field? > > Susan H. > > > Hi All: > > > > My mind has just gone blank. > > > > I want to check a table for all records for a specific 'EmployeeNumber'. > > There might be one record and there might be a many as 10 records, in this > > table. > > All the records have a boolean flag that marks them as either being Acive > or > > Inactive. > > > > I would like to return ONE value of TRUE if any records are active or > > FALSE... > > and this process would be a subquery of another query. > > > > Example: > > > > select distinct e.EmployeeNumber as [Employee Number], e.Surname as > > [Lastname], > > Status = (select count(e2.active)as [Status Count] from > EmployeeTransaction > > as e2 where Active = TRUE and e2.EmployeeNumber = e.EmployeeNumber) > > from EmployeeTransaction as e > > > > The above example doesn't work of course, because a number is returned but > > if the imbedded subquery would return ONE result of TRUE or FALSE, it > would. > > (In the example above a value of greater than one would be TRUE result and > > zero would be FALSE result.) I am sure it is simple but at four in the > > morning, here, it is not. > > > > TIA > > Jim > > > > _______________________________________________ > > dba-SQLServer mailing list > > dba-SQLServer at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > > http://www.databaseadvisors.com > > > > > > > > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > > > _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From artful at rogers.com Thu Feb 6 11:34:56 2003 From: artful at rogers.com (Arthur Fuller) Date: Thu, 6 Feb 2003 12:34:56 -0500 Subject: [dba-SQLServer]RE: Simple SQL question? In-Reply-To: <054801c2ce04$0edc60f0$bfe6ffcc@SusanOne> Message-ID: <006c01c2ce06$10f39640$8e01a8c0@Rock> I didn't try it but int() it or supply numeric values rather than True/False? -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com] On Behalf Of Susan Harkins Sent: February 6, 2003 12:07 PM To: dba-sqlserver at databaseadvisors.com Subject: Re: Re: [dba-SQLServer]RE: Simple SQL question? Playing with it a bit -- apparently you can't use a Bit data type in a Sum aggregate? I didn't know that. Susan H. ...Hmmmm...very daring solution...but I don't believe it will fly :) ______________________________________________________ Robert Djabarov Certified MS SQL Server DBA Certified MS SQL Server Programmer Certified MS VB Programmer ? (210) 913-3148 - phone ? (210) 753-3148 - pager -----Original Message----- From: fernando.pires at gustavsberg.com [mailto:fernando.pires at gustavsberg.com] Sent: Thursday, February 06, 2003 9:58 AM To: dba-sqlserver at databaseadvisors.com Subject: Ang: Re: [dba-SQLServer]RE: Simple SQL question? select iif(sum(active) > 0, true,false) from table where active = true Fernando Pires IT dep. Tel. + 46 857039367 Mob. + 46 702795858 "Susan Harkins" Till: S?nt av: Kopia: dba-sqlserver-admin at databasea ?rende: Re: [dba-SQLServer]RE: Simple SQL question? dvisors.com 2003-02-06 16:53 S?nd svar till dba-sqlserver Which returns true -- the subquery -- you want the subquery to return just one true? I don't think you're going to get what you need with a simple SELECT or subquery. Susan H. > Hi Suzan: > > There may be a number of records, all may be inactive, some may be active, > all may be active but if a minimum of one record is active it needs to > return a TRUE otherwise FALSE... I am obviously missing something. > > Jim > > -----Original Message----- > From: dba-sqlserver-admin at databaseadvisors.com > [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of Susan > Harkins > Sent: Thursday, February 06, 2003 6:59 AM > To: dba-sqlserver at databaseadvisors.com > Subject: Re: [dba-SQLServer]RE: Simple SQL question? > > > Well, off the top of my head, can't you just return the records Boolean > field instead of the employee number and last name field? > > Susan H. > > > Hi All: > > > > My mind has just gone blank. > > > > I want to check a table for all records for a specific 'EmployeeNumber'. > > There might be one record and there might be a many as 10 records, in this > > table. > > All the records have a boolean flag that marks them as either being Acive > or > > Inactive. > > > > I would like to return ONE value of TRUE if any records are active or > > FALSE... > > and this process would be a subquery of another query. > > > > Example: > > > > select distinct e.EmployeeNumber as [Employee Number], e.Surname as > > [Lastname], > > Status = (select count(e2.active)as [Status Count] from > EmployeeTransaction > > as e2 where Active = TRUE and e2.EmployeeNumber = e.EmployeeNumber) > > from EmployeeTransaction as e > > > > The above example doesn't work of course, because a number is returned but > > if the imbedded subquery would return ONE result of TRUE or FALSE, it > would. > > (In the example above a value of greater than one would be TRUE result and > > zero would be FALSE result.) I am sure it is simple but at four in the > > morning, here, it is not. > > > > TIA > > Jim > > > > _______________________________________________ > > dba-SQLServer mailing list > > dba-SQLServer at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > > http://www.databaseadvisors.com > > > > > > > > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > > > _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com _______________________________________________ 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 my.lists at verizon.net Thu Feb 6 11:59:03 2003 From: my.lists at verizon.net (Francisco H Tapia) Date: Thu, 6 Feb 2003 09:59:03 -0800 Subject: [dba-SQLServer]RE: Simple SQL question? References: <5A31F89EC4C79B49B5030FF2EF58E9D24EC716@ex02.eagle.usaa.com> Message-ID: <004801c2ce09$70052c90$b615010a@FHTAPIA> I'm confused Jim, but I guess this is an Access SQL question? If it were in SQL Server I would offer the use of the LEFT OUTER JOIN such as.... use pubs select A.au_lname + A.au_fname AS Name, Ta.royaltyper, 'Has books Written ' = CASE When Ta.royaltyper IS NULL THEN -1 ELSE 0 END from Authors As A LEFT OUTER JOIN TitleAuthor As Ta ON A.Au_id=Ta.Au_id good luck... err, for your case maybe try this... SELECT DISTINCT e.EmployeeNumber AS [Employee Number], e.Surname AS [Lastname], 'STATUS' = CASE WHEN e3.StatusCount = 0 THEN 0 ELSE -1 END FROM EmployeeTransaction AS e LEFT OUTER JOIN (SELECT COUNT(e2.active) AS [Status Count], EmployeeNumber FROM EmployeeTransaction AS e2 WHERE Active = TRUE and e2.EmployeeNumber = e.EmployeeNumber) AS e3 ON e.EmployeeNumber = e3.EmployeeNumber -Francisco http://rcm.netfirms.com ----- Original Message ----- From: "Djabarov, Robert" To: Sent: Thursday, February 06, 2003 8:25 AM Subject: RE: Re: [dba-SQLServer]RE: Simple SQL question? : ...Hmmmm...very daring solution...but I don't believe it will fly :) : : ______________________________________________________ : Robert Djabarov : Certified MS SQL Server DBA : Certified MS SQL Server Programmer : Certified MS VB Programmer : ? (210) 913-3148 - phone : ? (210) 753-3148 - pager : : -----Original Message----- : From: fernando.pires at gustavsberg.com [mailto:fernando.pires at gustavsberg.com] : Sent: Thursday, February 06, 2003 9:58 AM : To: dba-sqlserver at databaseadvisors.com : Subject: Ang: Re: [dba-SQLServer]RE: Simple SQL question? : : : select iif(sum(active) > 0, true,false) from table where active = true : : Fernando Pires IT dep. : : Tel. + 46 857039367 : Mob. + 46 702795858 : : : : "Susan Harkins" : Till: : S?nt av: Kopia: : dba-sqlserver-admin at databasea ?rende: Re: [dba-SQLServer]RE: Simple SQL question? : dvisors.com : : : 2003-02-06 16:53 : S?nd svar till dba-sqlserver : : : : : : : Which returns true -- the subquery -- you want the subquery to return just : one true? I don't think you're going to get what you need with a simple : SELECT or subquery. : : Susan H. : : : > Hi Suzan: : > : > There may be a number of records, all may be inactive, some may be : active, : > all may be active but if a minimum of one record is active it needs to : > return a TRUE otherwise FALSE... I am obviously missing something. : > : > Jim : > : > -----Original Message----- : > From: dba-sqlserver-admin at databaseadvisors.com : > [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of Susan : > Harkins : > Sent: Thursday, February 06, 2003 6:59 AM : > To: dba-sqlserver at databaseadvisors.com : > Subject: Re: [dba-SQLServer]RE: Simple SQL question? : > : > : > Well, off the top of my head, can't you just return the records Boolean : > field instead of the employee number and last name field? : > : > Susan H. : > : > > Hi All: : > > : > > My mind has just gone blank. : > > : > > I want to check a table for all records for a specific : 'EmployeeNumber'. : > > There might be one record and there might be a many as 10 records, in : this : > > table. : > > All the records have a boolean flag that marks them as either being : Acive : > or : > > Inactive. : > > : > > I would like to return ONE value of TRUE if any records are active or : > > FALSE... : > > and this process would be a subquery of another query. : > > : > > Example: : > > : > > select distinct e.EmployeeNumber as [Employee Number], e.Surname as : > > [Lastname], : > > Status = (select count(e2.active)as [Status Count] from : > EmployeeTransaction : > > as e2 where Active = TRUE and e2.EmployeeNumber = e.EmployeeNumber) : > > from EmployeeTransaction as e : > > : > > The above example doesn't work of course, because a number is returned : but : > > if the imbedded subquery would return ONE result of TRUE or FALSE, it : > would. : > > (In the example above a value of greater than one would be TRUE result : and : > > zero would be FALSE result.) I am sure it is simple but at four in the : > > morning, here, it is not. : > > : > > TIA : > > Jim : > > From tuxedo_man at hotmail.com Thu Feb 6 13:50:48 2003 From: tuxedo_man at hotmail.com (Billy Pang) Date: Thu, 06 Feb 2003 19:50:48 +0000 Subject: [dba-SQLServer]SQL2K memory usage Message-ID: This happens to SS2K on my machine as well.. I would like to know why... I am absolutely sure there are nobody accessing the db. Then for apparently no reason whatsoever, SS2K will demand for more resources... Billy >From: "Francisco H Tapia" >Reply-To: dba-sqlserver at databaseadvisors.com >To: >Subject: Re: [dba-SQLServer]SQL2K memory usage >Date: Wed, 5 Feb 2003 16:41:30 -0800 > >You can check for sure by using SQL profiler, and monitoring the memory >usage, also performance monitor so you can see what processes are running >on >the computer... you may also need to check if your server is set up for >dynamic memory usage or fixed, if the latter then of course that's why it >takes up all 700mb, but if it is dynamic memory usage it ought to release >memory whenever nothing is running and the OS demands it. Double check >your >memory configuration by going to EM and right clicking on your server then >properties. > >-Francisco >http://rcm.netfirms.com >----- Original Message ----- >From: "Stephen Hait" >To: >Sent: Wednesday, February 05, 2003 4:32 PM >Subject: [dba-SQLServer]SQL2K memory usage > > >: Any ideas why SQL2K would utilize 10-12Mb when initially >: started but then spike up to over 700Mb when there is nothing I >: know of accessing the database? Enterprise manager is not >: running, SQL Server Agent is not running. Stopping then >: restarting returns memory usage to the initial levels. >: >: Regards, >: Stephen > > >_______________________________________________ >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 my.lists at verizon.net Thu Feb 6 15:00:53 2003 From: my.lists at verizon.net (Francisco H Tapia) Date: Thu, 6 Feb 2003 13:00:53 -0800 Subject: [dba-SQLServer]SQL2K memory usage References: Message-ID: <00f801c2ce22$d6b5e510$b615010a@FHTAPIA> what patch level are you at?, IMHO you should have it up to SP2 at least (if not SP3, because of the slammer worm). Next check if you are using FixedMemory allocation or dynamic. -Francisco http://rcm.netfirms.com ----- Original Message ----- From: "Billy Pang" To: Sent: Thursday, February 06, 2003 11:50 AM Subject: Re: [dba-SQLServer]SQL2K memory usage : This happens to SS2K on my machine as well.. : I would like to know why... : I am absolutely sure there are nobody accessing the db. Then for apparently : no reason whatsoever, SS2K will demand for more resources... : : Billy : : : >From: "Francisco H Tapia" : >Reply-To: dba-sqlserver at databaseadvisors.com : >To: : >Subject: Re: [dba-SQLServer]SQL2K memory usage : >Date: Wed, 5 Feb 2003 16:41:30 -0800 : > : >You can check for sure by using SQL profiler, and monitoring the memory : >usage, also performance monitor so you can see what processes are running : >on : >the computer... you may also need to check if your server is set up for : >dynamic memory usage or fixed, if the latter then of course that's why it : >takes up all 700mb, but if it is dynamic memory usage it ought to release : >memory whenever nothing is running and the OS demands it. Double check : >your : >memory configuration by going to EM and right clicking on your server then : >properties. : > : >-Francisco : >http://rcm.netfirms.com : >----- Original Message ----- : >From: "Stephen Hait" : >To: : >Sent: Wednesday, February 05, 2003 4:32 PM : >Subject: [dba-SQLServer]SQL2K memory usage : > : > : >: Any ideas why SQL2K would utilize 10-12Mb when initially : >: started but then spike up to over 700Mb when there is nothing I : >: know of accessing the database? Enterprise manager is not : >: running, SQL Server Agent is not running. Stopping then : >: restarting returns memory usage to the initial levels. : >: : >: Regards, : >: Stephen : > : > : >_______________________________________________ : >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 gl at exem-cs.co.uk Thu Feb 6 15:06:16 2003 From: gl at exem-cs.co.uk (Geoff Lovis) Date: Thu, 06 Feb 2003 21:06:16 -0000 Subject: [dba-SQLServer]RE: Simple SQL question? In-Reply-To: <054801c2ce04$0edc60f0$bfe6ffcc@SusanOne> Message-ID: <3E42CE48.24104.28F7989@localhost> I came across this problem last week and used the following: Sum([Canx]*1) where Canx is a bit field (Yes/No in Access). Regards Geoff ----------- Geoff Lovis Exem Computer Systems, Liss, Hants From: "Susan Harkins" To: Subject: Re: Re: [dba-SQLServer]RE: Simple SQL question? Send reply to: dba-sqlserver at databaseadvisors.com Date sent: Thu, 6 Feb 2003 12:06:41 -0500 > Playing with it a bit -- apparently you can't use a Bit data type in a Sum > aggregate? I didn't know that. > > Susan H. > > > ...Hmmmm...very daring solution...but I don't believe it will fly :) > > ______________________________________________________ > Robert Djabarov > Certified MS SQL Server DBA > Certified MS SQL Server Programmer > Certified MS VB Programmer > ? (210) 913-3148 - phone > ? (210) 753-3148 - pager > > -----Original Message----- > From: fernando.pires at gustavsberg.com [mailto:fernando.pires at gustavsberg.com] > Sent: Thursday, February 06, 2003 9:58 AM > To: dba-sqlserver at databaseadvisors.com > Subject: Ang: Re: [dba-SQLServer]RE: Simple SQL question? > > > select iif(sum(active) > 0, true,false) from table where active = true > > Fernando Pires IT dep. > > Tel. + 46 857039367 > Mob. + 46 702795858 > > > > "Susan Harkins" > Till: > > S?nt av: Kopia: > dba-sqlserver-admin at databasea ?rende: Re: > [dba-SQLServer]RE: Simple SQL question? > dvisors.com > > > 2003-02-06 16:53 > S?nd svar till dba-sqlserver > > > > > > > Which returns true -- the subquery -- you want the subquery to return just > one true? I don't think you're going to get what you need with a simple > SELECT or subquery. > > Susan H. > > > > Hi Suzan: > > > > There may be a number of records, all may be inactive, some may be > active, > > all may be active but if a minimum of one record is active it needs to > > return a TRUE otherwise FALSE... I am obviously missing something. > > > > Jim > > > > -----Original Message----- > > From: dba-sqlserver-admin at databaseadvisors.com > > [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of Susan > > Harkins > > Sent: Thursday, February 06, 2003 6:59 AM > > To: dba-sqlserver at databaseadvisors.com > > Subject: Re: [dba-SQLServer]RE: Simple SQL question? > > > > > > Well, off the top of my head, can't you just return the records Boolean > > field instead of the employee number and last name field? > > > > Susan H. > > > > > Hi All: > > > > > > My mind has just gone blank. > > > > > > I want to check a table for all records for a specific > 'EmployeeNumber'. > > > There might be one record and there might be a many as 10 records, in > this > > > table. > > > All the records have a boolean flag that marks them as either being > Acive > > or > > > Inactive. > > > > > > I would like to return ONE value of TRUE if any records are active or > > > FALSE... > > > and this process would be a subquery of another query. > > > > > > Example: > > > > > > select distinct e.EmployeeNumber as [Employee Number], e.Surname as > > > [Lastname], > > > Status = (select count(e2.active)as [Status Count] from > > EmployeeTransaction > > > as e2 where Active = TRUE and e2.EmployeeNumber = e.EmployeeNumber) > > > from EmployeeTransaction as e > > > > > > The above example doesn't work of course, because a number is returned > but > > > if the imbedded subquery would return ONE result of TRUE or FALSE, it > > would. > > > (In the example above a value of greater than one would be TRUE result > and > > > zero would be FALSE result.) I am sure it is simple but at four in the > > > morning, here, it is not. > > > > > > TIA > > > Jim > > > > > > _______________________________________________ > > > dba-SQLServer mailing list > > > dba-SQLServer at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > > > http://www.databaseadvisors.com > > > > > > > > > > > > > _______________________________________________ > > dba-SQLServer mailing list > > dba-SQLServer at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > > http://www.databaseadvisors.com > > > > _______________________________________________ > > dba-SQLServer mailing list > > dba-SQLServer at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > > http://www.databaseadvisors.com > > > > > > > > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > > > > > > _______________________________________________ > 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 shait at mindspring.com Fri Feb 7 14:14:43 2003 From: shait at mindspring.com (Stephen Hait) Date: Fri, 7 Feb 2003 15:14:43 -0500 Subject: [dba-SQLServer]SQL2K memory usage In-Reply-To: <00f801c2ce22$d6b5e510$b615010a@FHTAPIA> Message-ID: <3E43CD63.22843.160767@localhost> I had no SPs installed - just default installation. I updated to SP3 and that seems to be an improvement. I have been using dynamic memory allocation. I will assume this is now resolved for my case but will reply if I continue to see these memory spikes. Thanks for your suggestions. Regards, Stephen > what patch level are you at?, IMHO you should have it up to SP2 at > least (if not SP3, because of the slammer worm). Next check if you > are using FixedMemory allocation or dynamic. > > -Francisco > http://rcm.netfirms.com > ----- Original Message ----- > From: "Billy Pang" > To: > Sent: Thursday, February 06, 2003 11:50 AM > Subject: Re: [dba-SQLServer]SQL2K memory usage > > > : This happens to SS2K on my machine as well.. > : I would like to know why... > : I am absolutely sure there are nobody accessing the db. Then for > apparently : no reason whatsoever, SS2K will demand for more > resources... : : Billy : : : >From: "Francisco H Tapia" > : >Reply-To: > dba-sqlserver at databaseadvisors.com : >To: > : >Subject: Re: > [dba-SQLServer]SQL2K memory usage : >Date: Wed, 5 Feb 2003 16:41:30 > -0800 : > : >You can check for sure by using SQL profiler, and > monitoring the memory : >usage, also performance monitor so you can > see what processes are running : >on : >the computer... you may also > need to check if your server is set up for : >dynamic memory usage > or fixed, if the latter then of course that's why it : >takes up all > 700mb, but if it is dynamic memory usage it ought to release : > >memory whenever nothing is running and the OS demands it. Double > check : >your : >memory configuration by going to EM and right > clicking on your server then : >properties. : > : >-Francisco : > >http://rcm.netfirms.com : >----- Original Message ----- : >From: > "Stephen Hait" : >To: > : >Sent: Wednesday, February > 05, 2003 4:32 PM : >Subject: [dba-SQLServer]SQL2K memory usage : > : > > : >: Any ideas why SQL2K would utilize 10-12Mb when initially : >: > started but then spike up to over 700Mb when there is nothing I : >: > know of accessing the database? Enterprise manager is not : >: > running, SQL Server Agent is not running. Stopping then : >: > restarting returns memory usage to the initial levels. : >: : >: > Regards, : >: Stephen : > : > : > >_______________________________________________ : >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 : > > > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > From accessd at shaw.ca Fri Feb 7 16:55:41 2003 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Fri, 07 Feb 2003 14:55:41 -0800 Subject: [dba-SQLServer]RE: Simple SQL question? In-Reply-To: <3E42CE48.24104.28F7989@localhost> Message-ID: To All: Thank you for your help. :-) I attempted to apply some of the suggests but SQL seemed to dislike iif --- ??? :-\ I will be working on the problem at the client's site come Monday...so if anyone has any further insights it would be greatly appreciated. |-) TIA Jim -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of Geoff Lovis Sent: Thursday, February 06, 2003 1:06 PM To: dba-sqlserver at databaseadvisors.com Subject: Re: Re: [dba-SQLServer]RE: Simple SQL question? I came across this problem last week and used the following: Sum([Canx]*1) where Canx is a bit field (Yes/No in Access). Regards Geoff ----------- Geoff Lovis Exem Computer Systems, Liss, Hants From: "Susan Harkins" To: Subject: Re: Re: [dba-SQLServer]RE: Simple SQL question? Send reply to: dba-sqlserver at databaseadvisors.com Date sent: Thu, 6 Feb 2003 12:06:41 -0500 > Playing with it a bit -- apparently you can't use a Bit data type in a Sum > aggregate? I didn't know that. > > Susan H. > > > ...Hmmmm...very daring solution...but I don't believe it will fly :) > > ______________________________________________________ > Robert Djabarov > Certified MS SQL Server DBA > Certified MS SQL Server Programmer > Certified MS VB Programmer > ? (210) 913-3148 - phone > ? (210) 753-3148 - pager > > -----Original Message----- > From: fernando.pires at gustavsberg.com [mailto:fernando.pires at gustavsberg.com] > Sent: Thursday, February 06, 2003 9:58 AM > To: dba-sqlserver at databaseadvisors.com > Subject: Ang: Re: [dba-SQLServer]RE: Simple SQL question? > > > select iif(sum(active) > 0, true,false) from table where active = true > > Fernando Pires IT dep. > > Tel. + 46 857039367 > Mob. + 46 702795858 > > > > "Susan Harkins" > Till: > > S?nt av: Kopia: > dba-sqlserver-admin at databasea ?rende: Re: > [dba-SQLServer]RE: Simple SQL question? > dvisors.com > > > 2003-02-06 16:53 > S?nd svar till dba-sqlserver > > > > > > > Which returns true -- the subquery -- you want the subquery to return just > one true? I don't think you're going to get what you need with a simple > SELECT or subquery. > > Susan H. > > > > Hi Suzan: > > > > There may be a number of records, all may be inactive, some may be > active, > > all may be active but if a minimum of one record is active it needs to > > return a TRUE otherwise FALSE... I am obviously missing something. > > > > Jim > > > > -----Original Message----- > > From: dba-sqlserver-admin at databaseadvisors.com > > [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of Susan > > Harkins > > Sent: Thursday, February 06, 2003 6:59 AM > > To: dba-sqlserver at databaseadvisors.com > > Subject: Re: [dba-SQLServer]RE: Simple SQL question? > > > > > > Well, off the top of my head, can't you just return the records Boolean > > field instead of the employee number and last name field? > > > > Susan H. > > > > > Hi All: > > > > > > My mind has just gone blank. > > > > > > I want to check a table for all records for a specific > 'EmployeeNumber'. > > > There might be one record and there might be a many as 10 records, in > this > > > table. > > > All the records have a boolean flag that marks them as either being > Acive > > or > > > Inactive. > > > > > > I would like to return ONE value of TRUE if any records are active or > > > FALSE... > > > and this process would be a subquery of another query. > > > > > > Example: > > > > > > select distinct e.EmployeeNumber as [Employee Number], e.Surname as > > > [Lastname], > > > Status = (select count(e2.active)as [Status Count] from > > EmployeeTransaction > > > as e2 where Active = TRUE and e2.EmployeeNumber = e.EmployeeNumber) > > > from EmployeeTransaction as e > > > > > > The above example doesn't work of course, because a number is returned > but > > > if the imbedded subquery would return ONE result of TRUE or FALSE, it > > would. > > > (In the example above a value of greater than one would be TRUE result > and > > > zero would be FALSE result.) I am sure it is simple but at four in the > > > morning, here, it is not. > > > > > > TIA > > > Jim > > > > > > _______________________________________________ > > > dba-SQLServer mailing list > > > dba-SQLServer at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > > > http://www.databaseadvisors.com > > > > > > > > > > > > > _______________________________________________ > > dba-SQLServer mailing list > > dba-SQLServer at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > > http://www.databaseadvisors.com > > > > _______________________________________________ > > dba-SQLServer mailing list > > dba-SQLServer at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > > http://www.databaseadvisors.com > > > > > > > > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > > > > > > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > > > > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > > > > > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From artful at rogers.com Fri Feb 7 17:12:46 2003 From: artful at rogers.com (Arthur Fuller) Date: Fri, 7 Feb 2003 18:12:46 -0500 Subject: [dba-SQLServer]RE: Simple SQL question? In-Reply-To: Message-ID: <008d01c2cefe$6ce4e370$8e01a8c0@Rock> Look up CASE in Books on Line (BOL). You can rewrite any IIF() statement using this construct. -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com] On Behalf Of Jim Lawrence (AccessD) Sent: February 7, 2003 5:56 PM To: dba-sqlserver at databaseadvisors.com Subject: RE: Re: [dba-SQLServer]RE: Simple SQL question? To All: Thank you for your help. :-) I attempted to apply some of the suggests but SQL seemed to dislike iif --- ??? :-\ I will be working on the problem at the client's site come Monday...so if anyone has any further insights it would be greatly appreciated. |-) TIA Jim -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of Geoff Lovis Sent: Thursday, February 06, 2003 1:06 PM To: dba-sqlserver at databaseadvisors.com Subject: Re: Re: [dba-SQLServer]RE: Simple SQL question? I came across this problem last week and used the following: Sum([Canx]*1) where Canx is a bit field (Yes/No in Access). Regards Geoff ----------- Geoff Lovis Exem Computer Systems, Liss, Hants From: "Susan Harkins" To: Subject: Re: Re: [dba-SQLServer]RE: Simple SQL question? Send reply to: dba-sqlserver at databaseadvisors.com Date sent: Thu, 6 Feb 2003 12:06:41 -0500 > Playing with it a bit -- apparently you can't use a Bit data type in a Sum > aggregate? I didn't know that. > > Susan H. > > > ...Hmmmm...very daring solution...but I don't believe it will fly :) > > ______________________________________________________ > Robert Djabarov > Certified MS SQL Server DBA > Certified MS SQL Server Programmer > Certified MS VB Programmer > ? (210) 913-3148 - phone > ? (210) 753-3148 - pager > > -----Original Message----- > From: fernando.pires at gustavsberg.com [mailto:fernando.pires at gustavsberg.com] > Sent: Thursday, February 06, 2003 9:58 AM > To: dba-sqlserver at databaseadvisors.com > Subject: Ang: Re: [dba-SQLServer]RE: Simple SQL question? > > > select iif(sum(active) > 0, true,false) from table where active = true > > Fernando Pires IT dep. > > Tel. + 46 857039367 > Mob. + 46 702795858 > > > > "Susan Harkins" > Till: > > S?nt av: Kopia: > dba-sqlserver-admin at databasea ?rende: Re: > [dba-SQLServer]RE: Simple SQL question? > dvisors.com > > > 2003-02-06 16:53 > S?nd svar till dba-sqlserver > > > > > > > Which returns true -- the subquery -- you want the subquery to return just > one true? I don't think you're going to get what you need with a simple > SELECT or subquery. > > Susan H. > > > > Hi Suzan: > > > > There may be a number of records, all may be inactive, some may be > active, > > all may be active but if a minimum of one record is active it needs to > > return a TRUE otherwise FALSE... I am obviously missing something. > > > > Jim > > > > -----Original Message----- > > From: dba-sqlserver-admin at databaseadvisors.com > > [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of Susan > > Harkins > > Sent: Thursday, February 06, 2003 6:59 AM > > To: dba-sqlserver at databaseadvisors.com > > Subject: Re: [dba-SQLServer]RE: Simple SQL question? > > > > > > Well, off the top of my head, can't you just return the records Boolean > > field instead of the employee number and last name field? > > > > Susan H. > > > > > Hi All: > > > > > > My mind has just gone blank. > > > > > > I want to check a table for all records for a specific > 'EmployeeNumber'. > > > There might be one record and there might be a many as 10 records, in > this > > > table. > > > All the records have a boolean flag that marks them as either being > Acive > > or > > > Inactive. > > > > > > I would like to return ONE value of TRUE if any records are active or > > > FALSE... > > > and this process would be a subquery of another query. > > > > > > Example: > > > > > > select distinct e.EmployeeNumber as [Employee Number], e.Surname as > > > [Lastname], > > > Status = (select count(e2.active)as [Status Count] from > > EmployeeTransaction > > > as e2 where Active = TRUE and e2.EmployeeNumber = e.EmployeeNumber) > > > from EmployeeTransaction as e > > > > > > The above example doesn't work of course, because a number is returned > but > > > if the imbedded subquery would return ONE result of TRUE or FALSE, it > > would. > > > (In the example above a value of greater than one would be TRUE result > and > > > zero would be FALSE result.) I am sure it is simple but at four in the > > > morning, here, it is not. > > > > > > TIA > > > Jim > > > > > > _______________________________________________ > > > dba-SQLServer mailing list > > > dba-SQLServer at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > > > http://www.databaseadvisors.com > > > > > > > > > > > > > _______________________________________________ > > dba-SQLServer mailing list > > dba-SQLServer at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > > http://www.databaseadvisors.com > > > > _______________________________________________ > > dba-SQLServer mailing list > > dba-SQLServer at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > > http://www.databaseadvisors.com > > > > > > > > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > > > > > > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > > > > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > > > > > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From accessd at shaw.ca Fri Feb 7 18:47:05 2003 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Fri, 07 Feb 2003 16:47:05 -0800 Subject: [dba-SQLServer]RE: Simple SQL question? In-Reply-To: <008d01c2cefe$6ce4e370$8e01a8c0@Rock> Message-ID: Thank you muchly, Arthur. Jim -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of Arthur Fuller Sent: Friday, February 07, 2003 3:13 PM To: dba-sqlserver at databaseadvisors.com Subject: RE: Re: [dba-SQLServer]RE: Simple SQL question? Look up CASE in Books on Line (BOL). You can rewrite any IIF() statement using this construct. -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com] On Behalf Of Jim Lawrence (AccessD) Sent: February 7, 2003 5:56 PM To: dba-sqlserver at databaseadvisors.com Subject: RE: Re: [dba-SQLServer]RE: Simple SQL question? To All: Thank you for your help. :-) I attempted to apply some of the suggests but SQL seemed to dislike iif --- ??? :-\ I will be working on the problem at the client's site come Monday...so if anyone has any further insights it would be greatly appreciated. |-) TIA Jim -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of Geoff Lovis Sent: Thursday, February 06, 2003 1:06 PM To: dba-sqlserver at databaseadvisors.com Subject: Re: Re: [dba-SQLServer]RE: Simple SQL question? I came across this problem last week and used the following: Sum([Canx]*1) where Canx is a bit field (Yes/No in Access). Regards Geoff ----------- Geoff Lovis Exem Computer Systems, Liss, Hants From: "Susan Harkins" To: Subject: Re: Re: [dba-SQLServer]RE: Simple SQL question? Send reply to: dba-sqlserver at databaseadvisors.com Date sent: Thu, 6 Feb 2003 12:06:41 -0500 > Playing with it a bit -- apparently you can't use a Bit data type in a Sum > aggregate? I didn't know that. > > Susan H. > > > ...Hmmmm...very daring solution...but I don't believe it will fly :) > > ______________________________________________________ > Robert Djabarov > Certified MS SQL Server DBA > Certified MS SQL Server Programmer > Certified MS VB Programmer > ? (210) 913-3148 - phone > ? (210) 753-3148 - pager > > -----Original Message----- > From: fernando.pires at gustavsberg.com [mailto:fernando.pires at gustavsberg.com] > Sent: Thursday, February 06, 2003 9:58 AM > To: dba-sqlserver at databaseadvisors.com > Subject: Ang: Re: [dba-SQLServer]RE: Simple SQL question? > > > select iif(sum(active) > 0, true,false) from table where active = true > > Fernando Pires IT dep. > > Tel. + 46 857039367 > Mob. + 46 702795858 > > > > "Susan Harkins" > Till: > > S?nt av: Kopia: > dba-sqlserver-admin at databasea ?rende: Re: > [dba-SQLServer]RE: Simple SQL question? > dvisors.com > > > 2003-02-06 16:53 > S?nd svar till dba-sqlserver > > > > > > > Which returns true -- the subquery -- you want the subquery to return just > one true? I don't think you're going to get what you need with a simple > SELECT or subquery. > > Susan H. > > > > Hi Suzan: > > > > There may be a number of records, all may be inactive, some may be > active, > > all may be active but if a minimum of one record is active it needs to > > return a TRUE otherwise FALSE... I am obviously missing something. > > > > Jim > > > > -----Original Message----- > > From: dba-sqlserver-admin at databaseadvisors.com > > [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of Susan > > Harkins > > Sent: Thursday, February 06, 2003 6:59 AM > > To: dba-sqlserver at databaseadvisors.com > > Subject: Re: [dba-SQLServer]RE: Simple SQL question? > > > > > > Well, off the top of my head, can't you just return the records Boolean > > field instead of the employee number and last name field? > > > > Susan H. > > > > > Hi All: > > > > > > My mind has just gone blank. > > > > > > I want to check a table for all records for a specific > 'EmployeeNumber'. > > > There might be one record and there might be a many as 10 records, in > this > > > table. > > > All the records have a boolean flag that marks them as either being > Acive > > or > > > Inactive. > > > > > > I would like to return ONE value of TRUE if any records are active or > > > FALSE... > > > and this process would be a subquery of another query. > > > > > > Example: > > > > > > select distinct e.EmployeeNumber as [Employee Number], e.Surname as > > > [Lastname], > > > Status = (select count(e2.active)as [Status Count] from > > EmployeeTransaction > > > as e2 where Active = TRUE and e2.EmployeeNumber = e.EmployeeNumber) > > > from EmployeeTransaction as e > > > > > > The above example doesn't work of course, because a number is returned > but > > > if the imbedded subquery would return ONE result of TRUE or FALSE, it > > would. > > > (In the example above a value of greater than one would be TRUE result > and > > > zero would be FALSE result.) I am sure it is simple but at four in the > > > morning, here, it is not. > > > > > > TIA > > > Jim > > > > > > _______________________________________________ > > > dba-SQLServer mailing list > > > dba-SQLServer at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > > > http://www.databaseadvisors.com > > > > > > > > > > > > > _______________________________________________ > > dba-SQLServer mailing list > > dba-SQLServer at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > > http://www.databaseadvisors.com > > > > _______________________________________________ > > dba-SQLServer mailing list > > dba-SQLServer at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > > http://www.databaseadvisors.com > > > > > > > > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > > > > > > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > > > > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > > > > > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From mmmtbig at bellsouth.net Sat Feb 8 13:08:43 2003 From: mmmtbig at bellsouth.net (Myke Myers) Date: Sat, 8 Feb 2003 14:08:43 -0500 Subject: [dba-SQLServer]Sql Server 2000 disabled by SSCheck.exe Message-ID: <001001c2cfa5$82cd20b0$6501a8c0@tbig3> I ran Microsoft's 'SSCheck.exe /v /d' command on my development server, not realizing that the '/d' would disable my Sql Server 2000 if it was vulnerable to the worm, BUT NOT TELL ME HOW TO RECOVER! Now I can't patch it! Does anyone know how to un-disable Sql Server 2000? TIA, Myke -------------- next part -------------- An HTML attachment was scrubbed... URL: From accessd at brougham.co.uk Sat Feb 8 14:50:57 2003 From: accessd at brougham.co.uk (brougham Baker) Date: Sat, 8 Feb 2003 20:50:57 -0000 Subject: [dba-SQLServer]Sql Server 2000 disabled by SSCheck.exe References: <001001c2cfa5$82cd20b0$6501a8c0@tbig3> Message-ID: <078701c2cfb3$c7eba500$253c98d5@wintermute> From: "Myke Myers" > I ran Microsoft's 'SSCheck.exe /v /d' command on my development server, > not realizing that the '/d' would disable my Sql Server 2000 if it was > vulnerable to the worm, BUT NOT TELL ME HOW TO RECOVER! Now I can't > patch it! > > Does anyone know how to un-disable Sql Server 2000? I would check the status of the service in Programs|Administrative Tools|Services. Scroll down until you find the MSSqlserver services and make sure they are not on disabled. When set to manual services can still start when called by dependencies. When set to disabled, nothing can start them. Bro From accessd at shaw.ca Tue Feb 11 01:26:32 2003 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Mon, 10 Feb 2003 23:26:32 -0800 Subject: [dba-SQLServer]RE: Access connecting to MySQL In-Reply-To: <008d01c2cefe$6ce4e370$8e01a8c0@Rock> Message-ID: Hi All: How difficult is it to connect MySQL to Access. Can it be done directly through a connection string like you would do with MSSQL and Oracle or do you have to use 'gasp' :-( an ODBC DNS. TIA Jim PS Access 2002 From artful at rogers.com Tue Feb 11 09:42:58 2003 From: artful at rogers.com (Arthur Fuller) Date: Tue, 11 Feb 2003 10:42:58 -0500 Subject: [dba-SQLServer]RE: Access connecting to MySQL In-Reply-To: Message-ID: <03a801c2d1e4$40a3f1f0$8e01a8c0@Rock> It's not difficult at all, but there are a couple of potential gotchas. 1. Install MySQL. Decide whether you want it set up as a service. If so, start winMySQLAdmin and set it up to start automatically. 2. Ensure that you can hit the server with the mysql client. 3. Install MyODBC. This will add two data sources to your list of ODBC data types. 4. Create a new DSN that points to the mysql database called test. 5. Create a new MDB, then File/Get External Data/Link and point to your DSN. The test database contains no tables, so you won't actually be able to link anything, but you'll know whether everything is set up correctly. 6. If you're planning on moving existing Access data to MySQL, and said data uses ANPKs, then you can sidestep a potential issue by adding a timestamp column to every table prior to moving the data. If you don't do this, you may find that every time you insert a row, all its columns say "#deleted#". You won't see the actual data until you move off the new row and return. The timestamp column gets around this problem. 7. There are a number of MySQL GUI front ends that can easily import data from SQL Server or Access or other ODBC sources. dbTools is a good one. So is MySQLyog. Another good one is MySQLFront, but its author no longer supports it. Hth, Arthur -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com] On Behalf Of Jim Lawrence (AccessD) Sent: February 11, 2003 2:27 AM To: dba-sqlserver at databaseadvisors.com Subject: [dba-SQLServer]RE: Access connecting to MySQL Hi All: How difficult is it to connect MySQL to Access. Can it be done directly through a connection string like you would do with MSSQL and Oracle or do you have to use 'gasp' :-( an ODBC DNS. TIA Jim PS Access 2002 _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From harkins at iglou.com Tue Feb 11 10:38:20 2003 From: harkins at iglou.com (Susan Harkins) Date: Tue, 11 Feb 2003 11:38:20 -0500 Subject: [dba-SQLServer]RE: Access connecting to MySQL References: <03a801c2d1e4$40a3f1f0$8e01a8c0@Rock> Message-ID: <00ed01c2d1ec$0c76bb30$ebe6ffcc@SusanOne> Oh yeah, I don't think I have anything in my database from you -- except for the MySQL front-end and the follow up using the command buttons to limit a form's underlying recordset. I'll leave them in my database and continue to try to sell them -- if I do, you're free to tackle them alone -- however, if you sell them, let me know so I can take them out, OK? ----- Original Message ----- From: "Arthur Fuller" To: Sent: Tuesday, February 11, 2003 10:42 AM Subject: RE: [dba-SQLServer]RE: Access connecting to MySQL > It's not difficult at all, but there are a couple of potential gotchas. > 1. Install MySQL. Decide whether you want it set up as a service. If so, > start winMySQLAdmin and set it up to start automatically. > 2. Ensure that you can hit the server with the mysql client. > 3. Install MyODBC. This will add two data sources to your list of ODBC data > types. > 4. Create a new DSN that points to the mysql database called test. > 5. Create a new MDB, then File/Get External Data/Link and point to your DSN. > The test database contains no tables, so you won't actually be able to link > anything, but you'll know whether everything is set up correctly. > 6. If you're planning on moving existing Access data to MySQL, and said data > uses ANPKs, then you can sidestep a potential issue by adding a timestamp > column to every table prior to moving the data. If you don't do this, you > may find that every time you insert a row, all its columns say "#deleted#". > You won't see the actual data until you move off the new row and return. The > timestamp column gets around this problem. > 7. There are a number of MySQL GUI front ends that can easily import data > from SQL Server or Access or other ODBC sources. dbTools is a good one. So > is MySQLyog. Another good one is MySQLFront, but its author no longer > supports it. > Hth, > Arthur > -----Original Message----- > From: dba-sqlserver-admin at databaseadvisors.com > [mailto:dba-sqlserver-admin at databaseadvisors.com] On Behalf Of Jim Lawrence > (AccessD) > Sent: February 11, 2003 2:27 AM > To: dba-sqlserver at databaseadvisors.com > Subject: [dba-SQLServer]RE: Access connecting to MySQL > > Hi All: > > How difficult is it to connect MySQL to Access. Can it be done directly > through a connection string like you would do with MSSQL and Oracle or do > you have to use 'gasp' :-( an ODBC DNS. > > TIA > Jim > > PS Access 2002 > > _______________________________________________ > 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 harkins at iglou.com Tue Feb 11 10:40:34 2003 From: harkins at iglou.com (Susan Harkins) Date: Tue, 11 Feb 2003 11:40:34 -0500 Subject: [dba-SQLServer]RE: Access connecting to MySQL References: <03a801c2d1e4$40a3f1f0$8e01a8c0@Rock> <00ed01c2d1ec$0c76bb30$ebe6ffcc@SusanOne> Message-ID: <011701c2d1ec$52573850$ebe6ffcc@SusanOne> I'm sorry -- I meant for that to private. I apologize to Arthur and the group! Susan H. > Oh yeah, I don't think I have anything in my database from you -- except for > the MySQL front-end and the follow up using the command buttons to limit a > form's underlying recordset. I'll leave them in my database and continue to > try to sell them -- if I do, you're free to tackle them alone -- however, if > you sell them, let me know so I can take them out, OK? From MarkBoyd at McBeeAssociates.com Tue Feb 11 10:43:23 2003 From: MarkBoyd at McBeeAssociates.com (Mark Boyd) Date: Tue, 11 Feb 2003 11:43:23 -0500 Subject: [dba-SQLServer]Update sproc Message-ID: <42DE35C7D61279419C166543CD42F405ED90@mail2k.mcbassoc.com> I am trying to create a sproc in SQL2K that will update records. I have the following code: UPDATE tblCheckRequest INNER JOIN tblCharges ON (tblCheckRequest.ClaimNo = tblCharges.ClaimNo) AND (tblCheckRequest.EndServDate = tblCharges.EndServDate) AND (tblCheckRequest.CPT = tblCharges.CPT) AND (tblCheckRequest.DupCode = tblCharges.DupCode) AND (tblCheckRequest.ProvNo = tblCharges.ProvNo) AND (tblCheckRequest.PatientNo = tblCharges.PatientNo) SET tblCharges.PaidCode = 'CP', tblCharges.PaidDate = Int(Now()); When running this code, I receive the following message: "Incorrect syntax near the keyword 'INNER'". Should I not be using 'INNER JOIN ..'? Very confused. Any help is greatly appreciated. Thanks, Mark Boyd Sr. Systems Analyst McBee Associates, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From artful at rogers.com Tue Feb 11 11:07:43 2003 From: artful at rogers.com (Arthur Fuller) Date: Tue, 11 Feb 2003 12:07:43 -0500 Subject: [dba-SQLServer]Update sproc In-Reply-To: <42DE35C7D61279419C166543CD42F405ED90@mail2k.mcbassoc.com> Message-ID: <03ca01c2d1f0$176caeb0$8e01a8c0@Rock> I think that it's the call to Now() that is confusing SQL. The error points to INNER JOIN because that's the clause in which the error occurs. Change the call from Int(Now()) to GetDate(). Since you int()'d the date presumably you don't want the time part. Here is a udf that simplifies this: ALTER FUNCTION dbo.fn_JustDate ( @Date datetime ) RETURNS varchar(10) AS BEGIN RETURN ( CONVERT(varchar(10), at Date,101) ) END Then you can change the last part to SET tblCharges.PaidCode = 'CP', tblCharges.PaidDate = JustDate(GetDate()) I think that should work. Hth, Arthur -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com] On Behalf Of Mark Boyd Sent: February 11, 2003 11:43 AM To: SQLServerList Subject: [dba-SQLServer]Update sproc I am trying to create a sproc in SQL2K that will update records. I have the following code: UPDATE tblCheckRequest INNER JOIN tblCharges ON (tblCheckRequest.ClaimNo = tblCharges.ClaimNo) AND (tblCheckRequest.EndServDate = tblCharges.EndServDate) AND (tblCheckRequest.CPT = tblCharges.CPT) AND (tblCheckRequest.DupCode = tblCharges.DupCode) AND (tblCheckRequest.ProvNo = tblCharges.ProvNo) AND (tblCheckRequest.PatientNo = tblCharges.PatientNo) SET tblCharges.PaidCode = 'CP', tblCharges.PaidDate = Int(Now()); When running this code, I receive the following message: "Incorrect syntax near the keyword 'INNER'". Should I not be using 'INNER JOIN ..'? Very confused. Any help is greatly appreciated. Thanks, Mark Boyd Sr. Systems Analyst McBee Associates, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From my.lists at verizon.net Tue Feb 11 11:09:55 2003 From: my.lists at verizon.net (Francisco H Tapia) Date: Tue, 11 Feb 2003 09:09:55 -0800 Subject: [dba-SQLServer]Update sproc References: <657FB70438B7D311AF320090279C180103C5E3F2@EXCHMAIL> Message-ID: <007001c2d1f0$666b4ee0$b615010a@FHTAPIA> Mark, You can't just copy and paste Access code over to SqlServer. From the QA (Query Analyzer) you can select the keyword UPDATE and then just hit the key combo Shift + F1 and help will automatically be brought up for the proper syntax of how to use UPDATE in Books Online (BOL). I've taken the liberty to massage your sql statment, here is what I came up with, also note that Now() is an Access function not a Sql Server one thus it won't work, you can try using the GetDate() wich generates the date you want but not the serial number. Also INT() is not a valid vunction in Sql Server... I hope this sets you in the right direction... UPDATE tblCheckRequest SET tblCharges.PaidCode = 'CP', tblCharges.PaidDate = GetDate() FROM tblCheckRequest INNER JOIN tblCharges ON (tblCheckRequest.ClaimNo = tblCharges.ClaimNo) AND (tblCheckRequest.EndServDate = tblCharges.EndServDate) AND (tblCheckRequest.CPT = tblCharges.CPT) AND (tblCheckRequest.DupCode = tblCharges.DupCode) AND (tblCheckRequest.ProvNo = tblCharges.ProvNo) AND (tblCheckRequest.PatientNo = tblCharges.PatientNo) -Francisco http://rcm.netfirms.com ----- Original Message ----- From: "Mark Boyd" To: "SQLServerList" Sent: Tuesday, February 11, 2003 8:43 AM Subject: [dba-SQLServer]Update sproc : I am trying to create a sproc in SQL2K that will update records. : : I have the following code: : : : : UPDATE tblCheckRequest : : INNER JOIN tblCharges ON (tblCheckRequest.ClaimNo = tblCharges.ClaimNo) : AND (tblCheckRequest.EndServDate = tblCharges.EndServDate) AND : (tblCheckRequest.CPT = tblCharges.CPT) AND (tblCheckRequest.DupCode = : tblCharges.DupCode) AND (tblCheckRequest.ProvNo = tblCharges.ProvNo) AND : (tblCheckRequest.PatientNo = tblCharges.PatientNo) : : SET tblCharges.PaidCode = 'CP', tblCharges.PaidDate = Int(Now()); : : : : When running this code, I receive the following message: : : "Incorrect syntax near the keyword 'INNER'". : : Should I not be using 'INNER JOIN ..'? : : Very confused. : : : : Any help is greatly appreciated. : : Thanks, : : Mark Boyd : : Sr. Systems Analyst : : McBee Associates, Inc. : : : : From mikedorism at ntelos.net Tue Feb 11 11:13:01 2003 From: mikedorism at ntelos.net (Mike and Doris Manning) Date: Tue, 11 Feb 2003 12:13:01 -0500 Subject: [dba-SQLServer]Update sproc In-Reply-To: <42DE35C7D61279419C166543CD42F405ED90@mail2k.mcbassoc.com> Message-ID: <000d01c2d1f0$d8419c90$68330cd8@hargrove.internal> You are changing values of fields in "tblCharges" but in your update statement you say you are updating "tblCheckRequest". Change it to "UPDATE tblCharges INNER JOIN tblCheckRequest...." and it should work. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com] On Behalf Of Mark Boyd Sent: Tuesday, February 11, 2003 11:43 AM To: SQLServerList Subject: [dba-SQLServer]Update sproc I am trying to create a sproc in SQL2K that will update records. I have the following code: UPDATE tblCheckRequest INNER JOIN tblCharges ON (tblCheckRequest.ClaimNo = tblCharges.ClaimNo) AND (tblCheckRequest.EndServDate = tblCharges.EndServDate) AND (tblCheckRequest.CPT = tblCharges.CPT) AND (tblCheckRequest.DupCode = tblCharges.DupCode) AND (tblCheckRequest.ProvNo = tblCharges.ProvNo) AND (tblCheckRequest.PatientNo = tblCharges.PatientNo) SET tblCharges.PaidCode = 'CP', tblCharges.PaidDate = Int(Now()); When running this code, I receive the following message: "Incorrect syntax near the keyword 'INNER'". Should I not be using 'INNER JOIN ..'? Very confused. Any help is greatly appreciated. Thanks, Mark Boyd Sr. Systems Analyst McBee Associates, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From MarkBoyd at McBeeAssociates.com Tue Feb 11 11:15:47 2003 From: MarkBoyd at McBeeAssociates.com (Mark Boyd) Date: Tue, 11 Feb 2003 12:15:47 -0500 Subject: [dba-SQLServer]Update sproc Message-ID: <42DE35C7D61279419C166543CD42F405CA00@mail2k.mcbassoc.com> Arthur - Please excuse my ignorance when it comes to sprocs. Where do I create the JustDate function? Thanks, Mark -----Original Message----- From: Arthur Fuller [mailto:artful at rogers.com] Sent: Tuesday, February 11, 2003 12:08 PM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]Update sproc I think that it's the call to Now() that is confusing SQL. The error points to INNER JOIN because that's the clause in which the error occurs. Change the call from Int(Now()) to GetDate(). Since you int()'d the date presumably you don't want the time part. Here is a udf that simplifies this: ALTER FUNCTION dbo.fn_JustDate ( @Date datetime ) RETURNS varchar(10) AS BEGIN RETURN ( CONVERT(varchar(10), at Date,101) ) END Then you can change the last part to SET tblCharges.PaidCode = 'CP', tblCharges.PaidDate = JustDate(GetDate()) I think that should work. Hth, Arthur -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com] On Behalf Of Mark Boyd Sent: February 11, 2003 11:43 AM To: SQLServerList Subject: [dba-SQLServer]Update sproc I am trying to create a sproc in SQL2K that will update records. I have the following code: UPDATE tblCheckRequest INNER JOIN tblCharges ON (tblCheckRequest.ClaimNo = tblCharges.ClaimNo) AND (tblCheckRequest.EndServDate = tblCharges.EndServDate) AND (tblCheckRequest.CPT = tblCharges.CPT) AND (tblCheckRequest.DupCode = tblCharges.DupCode) AND (tblCheckRequest.ProvNo = tblCharges.ProvNo) AND (tblCheckRequest.PatientNo = tblCharges.PatientNo) SET tblCharges.PaidCode = 'CP', tblCharges.PaidDate = Int(Now()); When running this code, I receive the following message: "Incorrect syntax near the keyword 'INNER'". Should I not be using 'INNER JOIN ..'? Very confused. Any help is greatly appreciated. Thanks, Mark Boyd Sr. Systems Analyst McBee Associates, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From prosoft6 at hotmail.com Tue Feb 11 11:26:04 2003 From: prosoft6 at hotmail.com (Julie Reardon-Taylor) Date: Tue, 11 Feb 2003 12:26:04 -0500 Subject: [dba-SQLServer]ODBC Connection Message-ID: I have an Access front-end using an odbc connection to sql tables. The connection is sometimes a bit slower than I would like. Is there a better way to connect to these tables than through odbc? Julie Reardon-Taylor PRO-SOFT OF NY, INC. www.pro-soft.net _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From my.lists at verizon.net Tue Feb 11 11:33:59 2003 From: my.lists at verizon.net (Francisco H Tapia) Date: Tue, 11 Feb 2003 09:33:59 -0800 Subject: [dba-SQLServer]Update sproc References: <657FB70438B7D311AF320090279C180103C5E3F3@EXCHMAIL> Message-ID: <007601c2d1f3$c3022130$b615010a@FHTAPIA> DOH!, I totally missed that! :P -Francisco http://rcm.netfirms.com ----- Original Message ----- From: "Mike and Doris Manning" To: Sent: Tuesday, February 11, 2003 9:13 AM Subject: RE: [dba-SQLServer]Update sproc : You are changing values of fields in "tblCharges" but in your update : statement you say you are updating "tblCheckRequest". Change it to : "UPDATE tblCharges INNER JOIN tblCheckRequest...." and it should work. : : Doris Manning : Database Administrator : Hargrove Inc. : www.hargroveinc.com : : -----Original Message----- : From: dba-sqlserver-admin at databaseadvisors.com : [mailto:dba-sqlserver-admin at databaseadvisors.com] On Behalf Of Mark Boyd : Sent: Tuesday, February 11, 2003 11:43 AM : To: SQLServerList : Subject: [dba-SQLServer]Update sproc : : : : I am trying to create a sproc in SQL2K that will update records. : : I have the following code: : : : : UPDATE tblCheckRequest : : INNER JOIN tblCharges ON (tblCheckRequest.ClaimNo = tblCharges.ClaimNo) : AND (tblCheckRequest.EndServDate = tblCharges.EndServDate) AND : (tblCheckRequest.CPT = tblCharges.CPT) AND (tblCheckRequest.DupCode = : tblCharges.DupCode) AND (tblCheckRequest.ProvNo = tblCharges.ProvNo) AND : (tblCheckRequest.PatientNo = tblCharges.PatientNo) : : SET tblCharges.PaidCode = 'CP', tblCharges.PaidDate = Int(Now()); : : : : When running this code, I receive the following message: : : "Incorrect syntax near the keyword 'INNER'". : : Should I not be using 'INNER JOIN ..'? : : Very confused. : : : : Any help is greatly appreciated. : : Thanks, : : Mark Boyd : : Sr. Systems Analyst : : McBee Associates, Inc. : : : : From MarkBoyd at McBeeAssociates.com Tue Feb 11 12:29:28 2003 From: MarkBoyd at McBeeAssociates.com (Mark Boyd) Date: Tue, 11 Feb 2003 13:29:28 -0500 Subject: [dba-SQLServer]Update sproc Message-ID: <42DE35C7D61279419C166543CD42F405ED91@mail2k.mcbassoc.com> Arthur, Francisco, Doris - Thanks for all your help. I used a little from each of your replies to finally correct my issue. The sproc runs smoothly, updating the fields correctly. However, I still can't get the date to display without the time. I tried using Arthur's idea with a udf, but am getting errors. Is there an easier way to shorten the GetDate() function? Thanks again, Mark -----Original Message----- From: Francisco H Tapia [mailto:my.lists at verizon.net] Sent: Tuesday, February 11, 2003 12:10 PM To: dba-sqlserver at databaseadvisors.com Subject: Re: [dba-SQLServer]Update sproc Mark, You can't just copy and paste Access code over to SqlServer. From the QA (Query Analyzer) you can select the keyword UPDATE and then just hit the key combo Shift + F1 and help will automatically be brought up for the proper syntax of how to use UPDATE in Books Online (BOL). I've taken the liberty to massage your sql statment, here is what I came up with, also note that Now() is an Access function not a Sql Server one thus it won't work, you can try using the GetDate() wich generates the date you want but not the serial number. Also INT() is not a valid vunction in Sql Server... I hope this sets you in the right direction... UPDATE tblCheckRequest SET tblCharges.PaidCode = 'CP', tblCharges.PaidDate = GetDate() FROM tblCheckRequest INNER JOIN tblCharges ON (tblCheckRequest.ClaimNo = tblCharges.ClaimNo) AND (tblCheckRequest.EndServDate = tblCharges.EndServDate) AND (tblCheckRequest.CPT = tblCharges.CPT) AND (tblCheckRequest.DupCode = tblCharges.DupCode) AND (tblCheckRequest.ProvNo = tblCharges.ProvNo) AND (tblCheckRequest.PatientNo = tblCharges.PatientNo) -Francisco http://rcm.netfirms.com ----- Original Message ----- From: "Mark Boyd" To: "SQLServerList" Sent: Tuesday, February 11, 2003 8:43 AM Subject: [dba-SQLServer]Update sproc : I am trying to create a sproc in SQL2K that will update records. : : I have the following code: : : : : UPDATE tblCheckRequest : : INNER JOIN tblCharges ON (tblCheckRequest.ClaimNo = tblCharges.ClaimNo) : AND (tblCheckRequest.EndServDate = tblCharges.EndServDate) AND : (tblCheckRequest.CPT = tblCharges.CPT) AND (tblCheckRequest.DupCode = : tblCharges.DupCode) AND (tblCheckRequest.ProvNo = tblCharges.ProvNo) AND : (tblCheckRequest.PatientNo = tblCharges.PatientNo) : : SET tblCharges.PaidCode = 'CP', tblCharges.PaidDate = Int(Now()); : : : : When running this code, I receive the following message: : : "Incorrect syntax near the keyword 'INNER'". : : Should I not be using 'INNER JOIN ..'? : : Very confused. : : : : Any help is greatly appreciated. : : Thanks, : : 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 Tue Feb 11 12:36:19 2003 From: my.lists at verizon.net (Francisco H Tapia) Date: Tue, 11 Feb 2003 10:36:19 -0800 Subject: [dba-SQLServer]Update sproc References: <42DE35C7D61279419C166543CD42F405ED91@mail2k.mcbassoc.com> Message-ID: <011601c2d1fc$78a66610$b615010a@FHTAPIA> Mark, Try this.. CONVERT(CHAR(12),GetDate(),110) -Francisco http://rcm.netfirms.com ----- Original Message ----- From: "Mark Boyd" To: Sent: Tuesday, February 11, 2003 10:29 AM Subject: RE: [dba-SQLServer]Update sproc : Arthur, Francisco, Doris - : Thanks for all your help. : I used a little from each of your replies to finally correct my issue. : : The sproc runs smoothly, updating the fields correctly. : However, I still can't get the date to display without the time. : I tried using Arthur's idea with a udf, but am getting errors. : Is there an easier way to shorten the GetDate() function? : : Thanks again, : Mark : : -----Original Message----- : From: Francisco H Tapia [mailto:my.lists at verizon.net] : Sent: Tuesday, February 11, 2003 12:10 PM : To: dba-sqlserver at databaseadvisors.com : Subject: Re: [dba-SQLServer]Update sproc : : Mark, : You can't just copy and paste Access code over to SqlServer. From : the QA : (Query Analyzer) you can select the keyword UPDATE and then just hit the : key : combo Shift + F1 and help will automatically be brought up for the : proper : syntax of how to use UPDATE in Books Online (BOL). I've taken the : liberty : to massage your sql statment, here is what I came up with, also note : that : Now() is an Access function not a Sql Server one thus it won't work, you : can : try using the GetDate() wich generates the date you want but not the : serial : number. Also INT() is not a valid vunction in Sql Server... I hope this : sets you in the right direction... : : UPDATE tblCheckRequest : SET tblCharges.PaidCode = 'CP', tblCharges.PaidDate = GetDate() : FROM tblCheckRequest : INNER JOIN tblCharges : ON (tblCheckRequest.ClaimNo = tblCharges.ClaimNo) : AND (tblCheckRequest.EndServDate = tblCharges.EndServDate) : AND (tblCheckRequest.CPT = tblCharges.CPT) : AND (tblCheckRequest.DupCode = tblCharges.DupCode) : AND (tblCheckRequest.ProvNo = tblCharges.ProvNo) : AND (tblCheckRequest.PatientNo = tblCharges.PatientNo) : : -Francisco : http://rcm.netfirms.com : ----- Original Message ----- : From: "Mark Boyd" : To: "SQLServerList" : Sent: Tuesday, February 11, 2003 8:43 AM : Subject: [dba-SQLServer]Update sproc : : : : I am trying to create a sproc in SQL2K that will update records. : : : : I have the following code: : : : : : : : : UPDATE tblCheckRequest : : : : INNER JOIN tblCharges ON (tblCheckRequest.ClaimNo = : tblCharges.ClaimNo) : : AND (tblCheckRequest.EndServDate = tblCharges.EndServDate) AND : : (tblCheckRequest.CPT = tblCharges.CPT) AND (tblCheckRequest.DupCode = : : tblCharges.DupCode) AND (tblCheckRequest.ProvNo = tblCharges.ProvNo) : AND : : (tblCheckRequest.PatientNo = tblCharges.PatientNo) : : : : SET tblCharges.PaidCode = 'CP', tblCharges.PaidDate = Int(Now()); : : : : : : : : When running this code, I receive the following message: : : : : "Incorrect syntax near the keyword 'INNER'". : : : : Should I not be using 'INNER JOIN ..'? : : : : Very confused. : : : : : : : : Any help is greatly appreciated. : : : : Thanks, : : : : 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 : : _______________________________________________ : 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 Tue Feb 11 12:35:04 2003 From: artful at rogers.com (Arthur Fuller) Date: Tue, 11 Feb 2003 13:35:04 -0500 Subject: [dba-SQLServer]Update sproc In-Reply-To: <42DE35C7D61279419C166543CD42F405CA00@mail2k.mcbassoc.com> Message-ID: <03da01c2d1fc$4b46a540$8e01a8c0@Rock> You didn't say whether you were using A2K or A2002. If the latter, go to the queries tab and create a new function. Paste the code I supplied in and save it. If A2K, then you need to open Query Analyzer and do the same thing there. -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com] On Behalf Of Mark Boyd Sent: February 11, 2003 12:16 PM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]Update sproc Arthur - Please excuse my ignorance when it comes to sprocs. Where do I create the JustDate function? Thanks, Mark -----Original Message----- From: Arthur Fuller [mailto:artful at rogers.com] Sent: Tuesday, February 11, 2003 12:08 PM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]Update sproc I think that it's the call to Now() that is confusing SQL. The error points to INNER JOIN because that's the clause in which the error occurs. Change the call from Int(Now()) to GetDate(). Since you int()'d the date presumably you don't want the time part. Here is a udf that simplifies this: ALTER FUNCTION dbo.fn_JustDate ( @Date datetime ) RETURNS varchar(10) AS BEGIN RETURN ( CONVERT(varchar(10), at Date,101) ) END Then you can change the last part to SET tblCharges.PaidCode = 'CP', tblCharges.PaidDate = JustDate(GetDate()) I think that should work. Hth, Arthur -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com] On Behalf Of Mark Boyd Sent: February 11, 2003 11:43 AM To: SQLServerList Subject: [dba-SQLServer]Update sproc I am trying to create a sproc in SQL2K that will update records. I have the following code: UPDATE tblCheckRequest INNER JOIN tblCharges ON (tblCheckRequest.ClaimNo = tblCharges.ClaimNo) AND (tblCheckRequest.EndServDate = tblCharges.EndServDate) AND (tblCheckRequest.CPT = tblCharges.CPT) AND (tblCheckRequest.DupCode = tblCharges.DupCode) AND (tblCheckRequest.ProvNo = tblCharges.ProvNo) AND (tblCheckRequest.PatientNo = tblCharges.PatientNo) SET tblCharges.PaidCode = 'CP', tblCharges.PaidDate = Int(Now()); When running this code, I receive the following message: "Incorrect syntax near the keyword 'INNER'". Should I not be using 'INNER JOIN ..'? Very confused. Any help is greatly appreciated. Thanks, Mark Boyd Sr. Systems Analyst McBee Associates, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From MarkBoyd at McBeeAssociates.com Tue Feb 11 12:43:47 2003 From: MarkBoyd at McBeeAssociates.com (Mark Boyd) Date: Tue, 11 Feb 2003 13:43:47 -0500 Subject: [dba-SQLServer]Update sproc Message-ID: <42DE35C7D61279419C166543CD42F405CA02@mail2k.mcbassoc.com> Francisco - Perfect! Thanks again, Mark -----Original Message----- From: Francisco H Tapia [mailto:my.lists at verizon.net] Sent: Tuesday, February 11, 2003 1:36 PM To: dba-sqlserver at databaseadvisors.com Subject: Re: [dba-SQLServer]Update sproc Mark, Try this.. CONVERT(CHAR(12),GetDate(),110) -Francisco http://rcm.netfirms.com ----- Original Message ----- From: "Mark Boyd" To: Sent: Tuesday, February 11, 2003 10:29 AM Subject: RE: [dba-SQLServer]Update sproc : Arthur, Francisco, Doris - : Thanks for all your help. : I used a little from each of your replies to finally correct my issue. : : The sproc runs smoothly, updating the fields correctly. : However, I still can't get the date to display without the time. : I tried using Arthur's idea with a udf, but am getting errors. : Is there an easier way to shorten the GetDate() function? : : Thanks again, : Mark : : -----Original Message----- : From: Francisco H Tapia [mailto:my.lists at verizon.net] : Sent: Tuesday, February 11, 2003 12:10 PM : To: dba-sqlserver at databaseadvisors.com : Subject: Re: [dba-SQLServer]Update sproc : : Mark, : You can't just copy and paste Access code over to SqlServer. From : the QA : (Query Analyzer) you can select the keyword UPDATE and then just hit the : key : combo Shift + F1 and help will automatically be brought up for the : proper : syntax of how to use UPDATE in Books Online (BOL). I've taken the : liberty : to massage your sql statment, here is what I came up with, also note : that : Now() is an Access function not a Sql Server one thus it won't work, you : can : try using the GetDate() wich generates the date you want but not the : serial : number. Also INT() is not a valid vunction in Sql Server... I hope this : sets you in the right direction... : : UPDATE tblCheckRequest : SET tblCharges.PaidCode = 'CP', tblCharges.PaidDate = GetDate() : FROM tblCheckRequest : INNER JOIN tblCharges : ON (tblCheckRequest.ClaimNo = tblCharges.ClaimNo) : AND (tblCheckRequest.EndServDate = tblCharges.EndServDate) : AND (tblCheckRequest.CPT = tblCharges.CPT) : AND (tblCheckRequest.DupCode = tblCharges.DupCode) : AND (tblCheckRequest.ProvNo = tblCharges.ProvNo) : AND (tblCheckRequest.PatientNo = tblCharges.PatientNo) : : -Francisco : http://rcm.netfirms.com : ----- Original Message ----- : From: "Mark Boyd" : To: "SQLServerList" : Sent: Tuesday, February 11, 2003 8:43 AM : Subject: [dba-SQLServer]Update sproc : : : : I am trying to create a sproc in SQL2K that will update records. : : : : I have the following code: : : : : : : : : UPDATE tblCheckRequest : : : : INNER JOIN tblCharges ON (tblCheckRequest.ClaimNo = : tblCharges.ClaimNo) : : AND (tblCheckRequest.EndServDate = tblCharges.EndServDate) AND : : (tblCheckRequest.CPT = tblCharges.CPT) AND (tblCheckRequest.DupCode = : : tblCharges.DupCode) AND (tblCheckRequest.ProvNo = tblCharges.ProvNo) : AND : : (tblCheckRequest.PatientNo = tblCharges.PatientNo) : : : : SET tblCharges.PaidCode = 'CP', tblCharges.PaidDate = Int(Now()); : : : : : : : : When running this code, I receive the following message: : : : : "Incorrect syntax near the keyword 'INNER'". : : : : Should I not be using 'INNER JOIN ..'? : : : : Very confused. : : : : : : : : Any help is greatly appreciated. : : : : Thanks, : : : : 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 : : _______________________________________________ : 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 mmmtbig at bellsouth.net Tue Feb 11 16:37:24 2003 From: mmmtbig at bellsouth.net (Myke Myers) Date: Tue, 11 Feb 2003 17:37:24 -0500 Subject: [dba-SQLServer]Sql Server 2000 disabled by SSCheck.exe In-Reply-To: <078701c2cfb3$c7eba500$253c98d5@wintermute> Message-ID: <003d01c2d21e$2595a090$6501a8c0@tbig3> Thanks!!! My DBA skills are very rusty. -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com] On Behalf Of brougham Baker Sent: Saturday, February 08, 2003 3:51 PM To: dba-sqlserver at databaseadvisors.com Subject: Re: [dba-SQLServer]Sql Server 2000 disabled by SSCheck.exe From: "Myke Myers" > I ran Microsoft's 'SSCheck.exe /v /d' command on my development > server, not realizing that the '/d' would disable my Sql Server 2000 > if it was vulnerable to the worm, BUT NOT TELL ME HOW TO RECOVER! Now > I can't patch it! > > Does anyone know how to un-disable Sql Server 2000? I would check the status of the service in Programs|Administrative Tools|Services. Scroll down until you find the MSSqlserver services and make sure they are not on disabled. When set to manual services can still start when called by dependencies. When set to disabled, nothing can start them. Bro _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From szeller at cce.umn.edu Tue Feb 11 17:07:58 2003 From: szeller at cce.umn.edu (Susan Zeller) Date: Tue, 11 Feb 2003 17:07:58 -0600 Subject: [dba-SQLServer]ODBC Connection Message-ID: Julie, Our first applications with Access and SQL Server were with OBDC and it was a nightmare. We are using adp files (Access Data Project) in Access 2000 and now in Access XP and it's much better. The connection uses OLEDB. --Susan -----Original Message----- From: Julie Reardon-Taylor [mailto:prosoft6 at hotmail.com] Sent: Tuesday, February 11, 2003 11:26 AM To: dba-SQLServer at databaseadvisors.com; accessd at databaseadvisors.com Subject: [dba-SQLServer]ODBC Connection I have an Access front-end using an odbc connection to sql tables. The connection is sometimes a bit slower than I would like. Is there a better way to connect to these tables than through odbc? Julie Reardon-Taylor PRO-SOFT OF NY, INC. www.pro-soft.net _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From accessd at shaw.ca Tue Feb 11 17:24:16 2003 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Tue, 11 Feb 2003 15:24:16 -0800 Subject: [dba-SQLServer]ODBC Connection In-Reply-To: Message-ID: Hi Julie: An ODBC connection may seem like a simple method to get connected to a SQL database. There is a price to pay and that is in performance. At one time when I was still debating whether to use an ODBC connection or go directly to ADO-OLE. A simple test set the course. The result was as follows: ODBC downloading 10,000Plus records a report, 20 minutes...ADO-OLE 1.3 seconds. End of debate. HTH Jim -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of Julie Reardon-Taylor Sent: Tuesday, February 11, 2003 9:26 AM To: dba-SQLServer at databaseadvisors.com; accessd at databaseadvisors.com Subject: [dba-SQLServer]ODBC Connection I have an Access front-end using an odbc connection to sql tables. The connection is sometimes a bit slower than I would like. Is there a better way to connect to these tables than through odbc? Julie Reardon-Taylor PRO-SOFT OF NY, INC. www.pro-soft.net _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 _______________________________________________ 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 Tue Feb 11 17:45:43 2003 From: artful at rogers.com (Arthur Fuller) Date: Tue, 11 Feb 2003 18:45:43 -0500 Subject: [dba-SQLServer]ODBC Connection In-Reply-To: Message-ID: <041601c2d227$b1417610$8e01a8c0@Rock> Two new UDFs for the dbaLibrary :-) BOD() beginning of debate EOD() end of debate Arthur -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com] On Behalf Of Jim Lawrence (AccessD) Sent: February 11, 2003 6:24 PM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]ODBC Connection Hi Julie: An ODBC connection may seem like a simple method to get connected to a SQL database. There is a price to pay and that is in performance. At one time when I was still debating whether to use an ODBC connection or go directly to ADO-OLE. A simple test set the course. The result was as follows: ODBC downloading 10,000Plus records a report, 20 minutes...ADO-OLE 1.3 seconds. End of debate. From accessd at shaw.ca Tue Feb 11 17:58:10 2003 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Tue, 11 Feb 2003 15:58:10 -0800 Subject: [dba-SQLServer]ODBC Connection In-Reply-To: <041601c2d227$b1417610$8e01a8c0@Rock> Message-ID: Great for coding, automating and moderating OT debates. Jim -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of Arthur Fuller Sent: Tuesday, February 11, 2003 3:46 PM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]ODBC Connection Two new UDFs for the dbaLibrary :-) BOD() beginning of debate EOD() end of debate Arthur -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com] On Behalf Of Jim Lawrence (AccessD) Sent: February 11, 2003 6:24 PM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]ODBC Connection Hi Julie: An ODBC connection may seem like a simple method to get connected to a SQL database. There is a price to pay and that is in performance. At one time when I was still debating whether to use an ODBC connection or go directly to ADO-OLE. A simple test set the course. The result was as follows: ODBC downloading 10,000Plus records a report, 20 minutes...ADO-OLE 1.3 seconds. End of debate. _______________________________________________ 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 Tue Feb 11 18:38:02 2003 From: artful at rogers.com (Arthur Fuller) Date: Tue, 11 Feb 2003 19:38:02 -0500 Subject: [dba-SQLServer]ODBC Connection In-Reply-To: Message-ID: <041901c2d22f$0024c1e0$8e01a8c0@Rock> Or in semantic SQL... BEGIN DEBATE Do ssert x, y eny w, z Until HellFreezesOver END DEBATE Uh, I think it's time to call EOD() before the topic police arrive :-) -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com] On Behalf Of Jim Lawrence (AccessD) Sent: February 11, 2003 6:58 PM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]ODBC Connection Great for coding, automating and moderating OT debates. Jim -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of Arthur Fuller Sent: Tuesday, February 11, 2003 3:46 PM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]ODBC Connection Two new UDFs for the dbaLibrary :-) BOD() beginning of debate EOD() end of debate Arthur -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com] On Behalf Of Jim Lawrence (AccessD) Sent: February 11, 2003 6:24 PM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]ODBC Connection Hi Julie: An ODBC connection may seem like a simple method to get connected to a SQL database. There is a price to pay and that is in performance. At one time when I was still debating whether to use an ODBC connection or go directly to ADO-OLE. A simple test set the course. The result was as follows: ODBC downloading 10,000Plus records a report, 20 minutes...ADO-OLE 1.3 seconds. End of debate. _______________________________________________ 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 Wed Feb 12 08:26:03 2003 From: MarkBoyd at McBeeAssociates.com (Mark Boyd) Date: Wed, 12 Feb 2003 09:26:03 -0500 Subject: [dba-SQLServer]Do Loop in a sproc Message-ID: <42DE35C7D61279419C166543CD42F405CA07@mail2k.mcbassoc.com> I am converting VBA code to a stored procedure. This code includes a pretty large Do Loop. Is it possible to create a loop in a sproc? If so, what is the format? Thanks, Mark Boyd Sr. Systems Analyst McBee Associates, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From cjm at haleyaldrich.com Wed Feb 12 08:38:17 2003 From: cjm at haleyaldrich.com (Chris McIsaac) Date: Wed, 12 Feb 2003 09:38:17 -0500 Subject: [dba-SQLServer]Do Loop in a sproc Message-ID: <2D75DD4827824A42B818038E44FFE21F03495A@bosmail.haleyaldrich.com> The format is... WHILE (condition = true) BEGIN -- do processing END Keep in mind that a direct translation of programming logic from whatever to TSql may not be the best way to go. If you post what you are trying to do, people may be able to give you an alternative to using a loop (which tend to be much slower than set-based statements). -----Original Message----- From: Mark Boyd [mailto:MarkBoyd at mcbeeassociates.com] Sent: 12 February 2003 9:26 AM To: SQLServerList Subject: [dba-SQLServer]Do Loop in a sproc I am converting VBA code to a stored procedure. This code includes a pretty large Do Loop. Is it possible to create a loop in a sproc? If so, what is the format? Thanks, Mark Boyd Sr. Systems Analyst McBee Associates, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From MarkBoyd at McBeeAssociates.com Wed Feb 12 09:18:10 2003 From: MarkBoyd at McBeeAssociates.com (Mark Boyd) Date: Wed, 12 Feb 2003 10:18:10 -0500 Subject: [dba-SQLServer]Do Loop in a sproc Message-ID: <42DE35C7D61279419C166543CD42F405ED92@mail2k.mcbassoc.com> Chris - The code is as follows. It was written by another programmer about 7 years ago. I'm sure there is a better way to code this, but it needs to be finished by the end of the day. Set db = CurrentDb() Set rstPrint = db.OpenRecordset("SELECT * FROM tblPrintCharges") If rstPrint.EOF = False Then rstPrint.MoveFirst Do Until rstPrint.EOF = True Me.txtStatus = "Processing record '" & rstPrint!PatientNo & "'" Me.Repaint If Nz(rstPrint!EndServDate) = "" Then rstPrint.Edit rstPrint!ExceptionCode = rstPrint!ExceptionCode & "18," rstPrint.Update End If If Nz(rstPrint!CPT) = "" Then rstPrint.Edit rstPrint!ExceptionCode = rstPrint!ExceptionCode & "19," rstPrint.Update End If If Nz(rstPrint!BegServDate) = "" Then rstPrint.Edit rstPrint!ExceptionCode = rstPrint!ExceptionCode & "20," rstPrint.Update End If If Nz(rstPrint!Charge) = "" Then rstPrint.Edit rstPrint!ExceptionCode = rstPrint!ExceptionCode & "23," rstPrint.Update End If rstPrint.MoveNext Loop Else MsgBox "There are no outstanding charges.", vbCritical, "No Charges" End If If I use the format you suggest, how do I specify the WHILE (condition = true) without setting the recordset? Can I say WHILE tblPrintCharges.EOF = False ... ? Thanks, Mark -----Original Message----- From: Chris McIsaac [mailto:cjm at haleyaldrich.com] Sent: Wednesday, February 12, 2003 9:38 AM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]Do Loop in a sproc The format is... WHILE (condition = true) BEGIN -- do processing END Keep in mind that a direct translation of programming logic from whatever to TSql may not be the best way to go. If you post what you are trying to do, people may be able to give you an alternative to using a loop (which tend to be much slower than set-based statements). -----Original Message----- From: Mark Boyd [mailto:MarkBoyd at mcbeeassociates.com] Sent: 12 February 2003 9:26 AM To: SQLServerList Subject: [dba-SQLServer]Do Loop in a sproc I am converting VBA code to a stored procedure. This code includes a pretty large Do Loop. Is it possible to create a loop in a sproc? If so, what is the format? Thanks, Mark Boyd Sr. Systems Analyst McBee Associates, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From cjm at haleyaldrich.com Wed Feb 12 09:40:42 2003 From: cjm at haleyaldrich.com (Chris McIsaac) Date: Wed, 12 Feb 2003 10:40:42 -0500 Subject: [dba-SQLServer]Do Loop in a sproc Message-ID: <2D75DD4827824A42B818038E44FFE21F03495D@bosmail.haleyaldrich.com> This is what I was afraid of. In TSQL, there is something called a cursor that allows you move through a set record by record, but the performance is horrible. A better way... UPDATE tblPrintCharges set ExceptionCode = ExceptionCode + "18," where EndServDate = '' UPDATE tblPrintCharges set ExceptionCode = ExceptionCode + "19," where CPT = '' etc. -- trim the final comma UPDATE tblPrintCharges set ExceptionCode = left(ExceptionCode,len(ExceptionCode) - 1) WHERE ExceptionCode IS NOT NULL AND ExceptionCode <> '' -----Original Message----- From: Mark Boyd [mailto:MarkBoyd at mcbeeassociates.com] Sent: 12 February 2003 10:18 AM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]Do Loop in a sproc Chris - The code is as follows. It was written by another programmer about 7 years ago. I'm sure there is a better way to code this, but it needs to be finished by the end of the day. Set db = CurrentDb() Set rstPrint = db.OpenRecordset("SELECT * FROM tblPrintCharges") If rstPrint.EOF = False Then rstPrint.MoveFirst Do Until rstPrint.EOF = True Me.txtStatus = "Processing record '" & rstPrint!PatientNo & "'" Me.Repaint If Nz(rstPrint!EndServDate) = "" Then rstPrint.Edit rstPrint!ExceptionCode = rstPrint!ExceptionCode & "18," rstPrint.Update End If If Nz(rstPrint!CPT) = "" Then rstPrint.Edit rstPrint!ExceptionCode = rstPrint!ExceptionCode & "19," rstPrint.Update End If If Nz(rstPrint!BegServDate) = "" Then rstPrint.Edit rstPrint!ExceptionCode = rstPrint!ExceptionCode & "20," rstPrint.Update End If If Nz(rstPrint!Charge) = "" Then rstPrint.Edit rstPrint!ExceptionCode = rstPrint!ExceptionCode & "23," rstPrint.Update End If rstPrint.MoveNext Loop Else MsgBox "There are no outstanding charges.", vbCritical, "No Charges" End If If I use the format you suggest, how do I specify the WHILE (condition = true) without setting the recordset? Can I say WHILE tblPrintCharges.EOF = False ... ? Thanks, Mark -----Original Message----- From: Chris McIsaac [mailto:cjm at haleyaldrich.com] Sent: Wednesday, February 12, 2003 9:38 AM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]Do Loop in a sproc The format is... WHILE (condition = true) BEGIN -- do processing END Keep in mind that a direct translation of programming logic from whatever to TSql may not be the best way to go. If you post what you are trying to do, people may be able to give you an alternative to using a loop (which tend to be much slower than set-based statements). -----Original Message----- From: Mark Boyd [mailto:MarkBoyd at mcbeeassociates.com] Sent: 12 February 2003 9:26 AM To: SQLServerList Subject: [dba-SQLServer]Do Loop in a sproc I am converting VBA code to a stored procedure. This code includes a pretty large Do Loop. Is it possible to create a loop in a sproc? If so, what is the format? Thanks, Mark Boyd Sr. Systems Analyst McBee Associates, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From MarkBoyd at McBeeAssociates.com Wed Feb 12 09:50:39 2003 From: MarkBoyd at McBeeAssociates.com (Mark Boyd) Date: Wed, 12 Feb 2003 10:50:39 -0500 Subject: [dba-SQLServer]Do Loop in a sproc Message-ID: <42DE35C7D61279419C166543CD42F405CA09@mail2k.mcbassoc.com> Chris - I agree with your recommendation about avoiding a loop. I think creating a sproc with multiple UPDATE queries is definitely the way to go. Thanks for the insight, Mark -----Original Message----- From: Chris McIsaac [mailto:cjm at haleyaldrich.com] Sent: Wednesday, February 12, 2003 10:41 AM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]Do Loop in a sproc This is what I was afraid of. In TSQL, there is something called a cursor that allows you move through a set record by record, but the performance is horrible. A better way... UPDATE tblPrintCharges set ExceptionCode = ExceptionCode + "18," where EndServDate = '' UPDATE tblPrintCharges set ExceptionCode = ExceptionCode + "19," where CPT = '' etc. -- trim the final comma UPDATE tblPrintCharges set ExceptionCode = left(ExceptionCode,len(ExceptionCode) - 1) WHERE ExceptionCode IS NOT NULL AND ExceptionCode <> '' -----Original Message----- From: Mark Boyd [mailto:MarkBoyd at mcbeeassociates.com] Sent: 12 February 2003 10:18 AM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]Do Loop in a sproc Chris - The code is as follows. It was written by another programmer about 7 years ago. I'm sure there is a better way to code this, but it needs to be finished by the end of the day. Set db = CurrentDb() Set rstPrint = db.OpenRecordset("SELECT * FROM tblPrintCharges") If rstPrint.EOF = False Then rstPrint.MoveFirst Do Until rstPrint.EOF = True Me.txtStatus = "Processing record '" & rstPrint!PatientNo & "'" Me.Repaint If Nz(rstPrint!EndServDate) = "" Then rstPrint.Edit rstPrint!ExceptionCode = rstPrint!ExceptionCode & "18," rstPrint.Update End If If Nz(rstPrint!CPT) = "" Then rstPrint.Edit rstPrint!ExceptionCode = rstPrint!ExceptionCode & "19," rstPrint.Update End If If Nz(rstPrint!BegServDate) = "" Then rstPrint.Edit rstPrint!ExceptionCode = rstPrint!ExceptionCode & "20," rstPrint.Update End If If Nz(rstPrint!Charge) = "" Then rstPrint.Edit rstPrint!ExceptionCode = rstPrint!ExceptionCode & "23," rstPrint.Update End If rstPrint.MoveNext Loop Else MsgBox "There are no outstanding charges.", vbCritical, "No Charges" End If If I use the format you suggest, how do I specify the WHILE (condition = true) without setting the recordset? Can I say WHILE tblPrintCharges.EOF = False ... ? Thanks, Mark -----Original Message----- From: Chris McIsaac [mailto:cjm at haleyaldrich.com] Sent: Wednesday, February 12, 2003 9:38 AM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]Do Loop in a sproc The format is... WHILE (condition = true) BEGIN -- do processing END Keep in mind that a direct translation of programming logic from whatever to TSql may not be the best way to go. If you post what you are trying to do, people may be able to give you an alternative to using a loop (which tend to be much slower than set-based statements). -----Original Message----- From: Mark Boyd [mailto:MarkBoyd at mcbeeassociates.com] Sent: 12 February 2003 9:26 AM To: SQLServerList Subject: [dba-SQLServer]Do Loop in a sproc I am converting VBA code to a stored procedure. This code includes a pretty large Do Loop. Is it possible to create a loop in a sproc? If so, what is the format? Thanks, Mark Boyd Sr. Systems Analyst McBee Associates, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Robert.Djabarov at usaa.com Wed Feb 12 10:50:53 2003 From: Robert.Djabarov at usaa.com (Djabarov, Robert) Date: Wed, 12 Feb 2003 10:50:53 -0600 Subject: [dba-SQLServer]Do Loop in a sproc Message-ID: <5A31F89EC4C79B49B5030FF2EF58E9D24EC736@ex02.eagle.usaa.com> UPDATE tblPrintCharges set ExceptionCode = left(ExceptionCode,len(ExceptionCode) - 1) WHERE charindex(',', ltrim(reverse(ExceptionCode))) > 0 -----Original Message----- From: Chris McIsaac [mailto:cjm at haleyaldrich.com] Sent: Wednesday, February 12, 2003 9:41 AM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]Do Loop in a sproc This is what I was afraid of. In TSQL, there is something called a cursor that allows you move through a set record by record, but the performance is horrible. A better way... UPDATE tblPrintCharges set ExceptionCode = ExceptionCode + "18," where EndServDate = '' UPDATE tblPrintCharges set ExceptionCode = ExceptionCode + "19," where CPT = '' etc. -- trim the final comma UPDATE tblPrintCharges set ExceptionCode = left(ExceptionCode,len(ExceptionCode) - 1) WHERE ExceptionCode IS NOT NULL AND ExceptionCode <> '' -----Original Message----- From: Mark Boyd [mailto:MarkBoyd at mcbeeassociates.com] Sent: 12 February 2003 10:18 AM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]Do Loop in a sproc Chris - The code is as follows. It was written by another programmer about 7 years ago. I'm sure there is a better way to code this, but it needs to be finished by the end of the day. Set db = CurrentDb() Set rstPrint = db.OpenRecordset("SELECT * FROM tblPrintCharges") If rstPrint.EOF = False Then rstPrint.MoveFirst Do Until rstPrint.EOF = True Me.txtStatus = "Processing record '" & rstPrint!PatientNo & "'" Me.Repaint If Nz(rstPrint!EndServDate) = "" Then rstPrint.Edit rstPrint!ExceptionCode = rstPrint!ExceptionCode & "18," rstPrint.Update End If If Nz(rstPrint!CPT) = "" Then rstPrint.Edit rstPrint!ExceptionCode = rstPrint!ExceptionCode & "19," rstPrint.Update End If If Nz(rstPrint!BegServDate) = "" Then rstPrint.Edit rstPrint!ExceptionCode = rstPrint!ExceptionCode & "20," rstPrint.Update End If If Nz(rstPrint!Charge) = "" Then rstPrint.Edit rstPrint!ExceptionCode = rstPrint!ExceptionCode & "23," rstPrint.Update End If rstPrint.MoveNext Loop Else MsgBox "There are no outstanding charges.", vbCritical, "No Charges" End If If I use the format you suggest, how do I specify the WHILE (condition = true) without setting the recordset? Can I say WHILE tblPrintCharges.EOF = False ... ? Thanks, Mark -----Original Message----- From: Chris McIsaac [mailto:cjm at haleyaldrich.com] Sent: Wednesday, February 12, 2003 9:38 AM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]Do Loop in a sproc The format is... WHILE (condition = true) BEGIN -- do processing END Keep in mind that a direct translation of programming logic from whatever to TSql may not be the best way to go. If you post what you are trying to do, people may be able to give you an alternative to using a loop (which tend to be much slower than set-based statements). -----Original Message----- From: Mark Boyd [mailto:MarkBoyd at mcbeeassociates.com] Sent: 12 February 2003 9:26 AM To: SQLServerList Subject: [dba-SQLServer]Do Loop in a sproc I am converting VBA code to a stored procedure. This code includes a pretty large Do Loop. Is it possible to create a loop in a sproc? If so, what is the format? Thanks, Mark Boyd Sr. Systems Analyst McBee Associates, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Robert.Djabarov at usaa.com Wed Feb 12 10:55:12 2003 From: Robert.Djabarov at usaa.com (Djabarov, Robert) Date: Wed, 12 Feb 2003 10:55:12 -0600 Subject: [dba-SQLServer]Do Loop in a sproc Message-ID: <5A31F89EC4C79B49B5030FF2EF58E9D24EC738@ex02.eagle.usaa.com> Ooops... it should be as this: UPDATE tblPrintCharges set ExceptionCode = left(ExceptionCode,len(ExceptionCode) - 1) WHERE substring(ltrim(reverse(isnull(ExceptionCode, ' '))), 1, 1) = ',' -----Original Message----- From: Djabarov, Robert Sent: Wednesday, February 12, 2003 10:51 AM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]Do Loop in a sproc UPDATE tblPrintCharges set ExceptionCode = left(ExceptionCode,len(ExceptionCode) - 1) WHERE charindex(',', ltrim(reverse(ExceptionCode))) > 0 -----Original Message----- From: Chris McIsaac [mailto:cjm at haleyaldrich.com] Sent: Wednesday, February 12, 2003 9:41 AM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]Do Loop in a sproc This is what I was afraid of. In TSQL, there is something called a cursor that allows you move through a set record by record, but the performance is horrible. A better way... UPDATE tblPrintCharges set ExceptionCode = ExceptionCode + "18," where EndServDate = '' UPDATE tblPrintCharges set ExceptionCode = ExceptionCode + "19," where CPT = '' etc. -- trim the final comma UPDATE tblPrintCharges set ExceptionCode = left(ExceptionCode,len(ExceptionCode) - 1) WHERE ExceptionCode IS NOT NULL AND ExceptionCode <> '' -----Original Message----- From: Mark Boyd [mailto:MarkBoyd at mcbeeassociates.com] Sent: 12 February 2003 10:18 AM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]Do Loop in a sproc Chris - The code is as follows. It was written by another programmer about 7 years ago. I'm sure there is a better way to code this, but it needs to be finished by the end of the day. Set db = CurrentDb() Set rstPrint = db.OpenRecordset("SELECT * FROM tblPrintCharges") If rstPrint.EOF = False Then rstPrint.MoveFirst Do Until rstPrint.EOF = True Me.txtStatus = "Processing record '" & rstPrint!PatientNo & "'" Me.Repaint If Nz(rstPrint!EndServDate) = "" Then rstPrint.Edit rstPrint!ExceptionCode = rstPrint!ExceptionCode & "18," rstPrint.Update End If If Nz(rstPrint!CPT) = "" Then rstPrint.Edit rstPrint!ExceptionCode = rstPrint!ExceptionCode & "19," rstPrint.Update End If If Nz(rstPrint!BegServDate) = "" Then rstPrint.Edit rstPrint!ExceptionCode = rstPrint!ExceptionCode & "20," rstPrint.Update End If If Nz(rstPrint!Charge) = "" Then rstPrint.Edit rstPrint!ExceptionCode = rstPrint!ExceptionCode & "23," rstPrint.Update End If rstPrint.MoveNext Loop Else MsgBox "There are no outstanding charges.", vbCritical, "No Charges" End If If I use the format you suggest, how do I specify the WHILE (condition = true) without setting the recordset? Can I say WHILE tblPrintCharges.EOF = False ... ? Thanks, Mark -----Original Message----- From: Chris McIsaac [mailto:cjm at haleyaldrich.com] Sent: Wednesday, February 12, 2003 9:38 AM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]Do Loop in a sproc The format is... WHILE (condition = true) BEGIN -- do processing END Keep in mind that a direct translation of programming logic from whatever to TSql may not be the best way to go. If you post what you are trying to do, people may be able to give you an alternative to using a loop (which tend to be much slower than set-based statements). -----Original Message----- From: Mark Boyd [mailto:MarkBoyd at mcbeeassociates.com] Sent: 12 February 2003 9:26 AM To: SQLServerList Subject: [dba-SQLServer]Do Loop in a sproc I am converting VBA code to a stored procedure. This code includes a pretty large Do Loop. Is it possible to create a loop in a sproc? If so, what is the format? Thanks, Mark Boyd Sr. Systems Analyst McBee Associates, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From artful at rogers.com Wed Feb 12 13:22:09 2003 From: artful at rogers.com (Arthur Fuller) Date: Wed, 12 Feb 2003 14:22:09 -0500 Subject: [dba-SQLServer]Do Loop in a sproc In-Reply-To: <5A31F89EC4C79B49B5030FF2EF58E9D24EC738@ex02.eagle.usaa.com> Message-ID: <049e01c2d2cc$0968a710$8e01a8c0@Rock> Don't you love these one-statement solutions? I certainly do! AFAIC, the less logic in the FE the better. This is one of the big wars I wage in the MySQL community, which seems to prefer just the opposite :-) All I want to do from Access is execute sprocs and udfs &c. Let the logic reside in the sprocs, and ban table access. That's my approach in a nutshell. Then it doesn't matter what FE they use, could be Access, QA, Delphi, who cares. If you don't have the keys you don't get in. A. -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com] On Behalf Of Djabarov, Robert Sent: February 12, 2003 11:55 AM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]Do Loop in a sproc Ooops. it should be as this: UPDATE tblPrintCharges set ExceptionCode = left(ExceptionCode,len(ExceptionCode) - 1) WHERE substring(ltrim(reverse(isnull(ExceptionCode, ' '))), 1, 1) = ',' -----Original Message----- From: Djabarov, Robert Sent: Wednesday, February 12, 2003 10:51 AM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]Do Loop in a sproc UPDATE tblPrintCharges set ExceptionCode = left(ExceptionCode,len(ExceptionCode) - 1) WHERE charindex(',', ltrim(reverse(ExceptionCode))) > 0 -----Original Message----- From: Chris McIsaac [mailto:cjm at haleyaldrich.com] Sent: Wednesday, February 12, 2003 9:41 AM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]Do Loop in a sproc This is what I was afraid of. In TSQL, there is something called a cursor that allows you move through a set record by record, but the performance is horrible. A better way... UPDATE tblPrintCharges set ExceptionCode = ExceptionCode + "18," where EndServDate = '' UPDATE tblPrintCharges set ExceptionCode = ExceptionCode + "19," where CPT = '' etc. -- trim the final comma UPDATE tblPrintCharges set ExceptionCode = left(ExceptionCode,len(ExceptionCode) - 1) WHERE ExceptionCode IS NOT NULL AND ExceptionCode <> '' -----Original Message----- From: Mark Boyd [mailto:MarkBoyd at mcbeeassociates.com] Sent: 12 February 2003 10:18 AM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]Do Loop in a sproc Chris - The code is as follows. It was written by another programmer about 7 years ago. I'm sure there is a better way to code this, but it needs to be finished by the end of the day. Set db = CurrentDb() Set rstPrint = db.OpenRecordset("SELECT * FROM tblPrintCharges") If rstPrint.EOF = False Then rstPrint.MoveFirst Do Until rstPrint.EOF = True Me.txtStatus = "Processing record '" & rstPrint!PatientNo & "'" Me.Repaint If Nz(rstPrint!EndServDate) = "" Then rstPrint.Edit rstPrint!ExceptionCode = rstPrint!ExceptionCode & "18," rstPrint.Update End If If Nz(rstPrint!CPT) = "" Then rstPrint.Edit rstPrint!ExceptionCode = rstPrint!ExceptionCode & "19," rstPrint.Update End If If Nz(rstPrint!BegServDate) = "" Then rstPrint.Edit rstPrint!ExceptionCode = rstPrint!ExceptionCode & "20," rstPrint.Update End If If Nz(rstPrint!Charge) = "" Then rstPrint.Edit rstPrint!ExceptionCode = rstPrint!ExceptionCode & "23," rstPrint.Update End If rstPrint.MoveNext Loop Else MsgBox "There are no outstanding charges.", vbCritical, "No Charges" End If If I use the format you suggest, how do I specify the WHILE (condition = true) without setting the recordset? Can I say WHILE tblPrintCharges.EOF = False . ? Thanks, Mark -----Original Message----- From: Chris McIsaac [mailto:cjm at haleyaldrich.com] Sent: Wednesday, February 12, 2003 9:38 AM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]Do Loop in a sproc The format is... WHILE (condition = true) BEGIN -- do processing END Keep in mind that a direct translation of programming logic from whatever to TSql may not be the best way to go. If you post what you are trying to do, people may be able to give you an alternative to using a loop (which tend to be much slower than set-based statements). -----Original Message----- From: Mark Boyd [mailto:MarkBoyd at mcbeeassociates.com] Sent: 12 February 2003 9:26 AM To: SQLServerList Subject: [dba-SQLServer]Do Loop in a sproc I am converting VBA code to a stored procedure. This code includes a pretty large Do Loop. Is it possible to create a loop in a sproc? If so, what is the format? Thanks, Mark Boyd Sr. Systems Analyst McBee Associates, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From davide at dalyn.co.nz Wed Feb 12 14:35:16 2003 From: davide at dalyn.co.nz (David Emerson) Date: Thu, 13 Feb 2003 09:35:16 +1300 Subject: [dba-SQLServer]Local Tables in an ADP Message-ID: <5.2.0.9.0.20030213092930.00b1c758@mail.dalyn.co.nz> I am working on an application which was upgraded from an A97 FE/BE to and AXP ADP/SQL2K. In the previous version we had some local tables in the FE that held information specific to that FE (and there were several FE's). For example when a new client was entered then their account number was generated partly from a number held in the local table. Different FE's had different number ranges for new accounts. My understanding is that there are no local tables in an ADP. What is the way around storing information on each machine that is specific to that machine? Regards David Emerson DALYN Software Ltd 25b Cunliffe St, Johnsonville Wellington, New Zealand Ph/Fax (877) 456-1205 From mikedorism at ntelos.net Wed Feb 12 14:57:27 2003 From: mikedorism at ntelos.net (Mike and Doris Manning) Date: Wed, 12 Feb 2003 15:57:27 -0500 Subject: [dba-SQLServer]Local Tables in an ADP In-Reply-To: <5.2.0.9.0.20030213092930.00b1c758@mail.dalyn.co.nz> Message-ID: <000e01c2d2d9$6fe68630$813c0cd8@hargrove.internal> An ini file stored on that machine. An XML file stored on that machine. A small MDB stored on that machine that you interact with via OLEDB. A separate SQL Database to hold the info for each individual machine. There are tons of work arounds. My personal preference has been to create a UserPref database within SQL to store the info because then I don't have to worry about something on the individual machine changing. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com] On Behalf Of David Emerson Sent: Wednesday, February 12, 2003 03:35 PM To: dba-SQLServer at databaseadvisors.com Subject: [dba-SQLServer]Local Tables in an ADP I am working on an application which was upgraded from an A97 FE/BE to and AXP ADP/SQL2K. In the previous version we had some local tables in the FE that held information specific to that FE (and there were several FE's). For example when a new client was entered then their account number was generated partly from a number held in the local table. Different FE's had different number ranges for new accounts. My understanding is that there are no local tables in an ADP. What is the way around storing information on each machine that is specific to that machine? 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 From mikedorism at ntelos.net Wed Feb 12 14:58:19 2003 From: mikedorism at ntelos.net (Mike and Doris Manning) Date: Wed, 12 Feb 2003 15:58:19 -0500 Subject: [dba-SQLServer]Local Tables in an ADP In-Reply-To: <5.2.0.9.0.20030213092930.00b1c758@mail.dalyn.co.nz> Message-ID: <000f01c2d2d9$7c633d90$813c0cd8@hargrove.internal> An ini file stored on that machine. An XML file stored on that machine. A small MDB stored on that machine that you interact with via OLEDB. A separate SQL Database to hold the info for each individual machine. There are tons of work arounds. My personal preference has been to create a UserPref database within SQL to store the info because then I don't have to worry about something on the individual machine changing. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com] On Behalf Of David Emerson Sent: Wednesday, February 12, 2003 03:35 PM To: dba-SQLServer at databaseadvisors.com Subject: [dba-SQLServer]Local Tables in an ADP I am working on an application which was upgraded from an A97 FE/BE to and AXP ADP/SQL2K. In the previous version we had some local tables in the FE that held information specific to that FE (and there were several FE's). For example when a new client was entered then their account number was generated partly from a number held in the local table. Different FE's had different number ranges for new accounts. My understanding is that there are no local tables in an ADP. What is the way around storing information on each machine that is specific to that machine? 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 From szeller at cce.umn.edu Wed Feb 12 14:58:37 2003 From: szeller at cce.umn.edu (Susan Zeller) Date: Wed, 12 Feb 2003 14:58:37 -0600 Subject: [dba-SQLServer]Local Tables in an ADP Message-ID: I'm sure there are several approaches, but I would have a table in SQL Server that stores user specific information such as tblMyUsers. Have a field for your user, ie MyUserName. Then have fields for whatever you need stored such as AcctNumberPart. You can use SQL Server to find out which user is connected at the moment (select system_user) and then use that to look up the appropriate values in your table. This solution is not machine specific, but user specific. It sounds like you are customizing the front end table for each user. If this is true, that seems tedious to me. A parallel option would be to store a custom form in each adp file with the info you need. You could have this form open to read the data you need. This seems like an inferior option to me, though. --Susan -----Original Message----- From: David Emerson [mailto:davide at dalyn.co.nz] Sent: Wednesday, February 12, 2003 2:35 PM To: dba-SQLServer at databaseadvisors.com Subject: [dba-SQLServer]Local Tables in an ADP I am working on an application which was upgraded from an A97 FE/BE to and AXP ADP/SQL2K. In the previous version we had some local tables in the FE that held information specific to that FE (and there were several FE's). For example when a new client was entered then their account number was generated partly from a number held in the local table. Different FE's had different number ranges for new accounts. My understanding is that there are no local tables in an ADP. What is the way around storing information on each machine that is specific to that machine? 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 From accessd at shaw.ca Wed Feb 12 17:38:15 2003 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Wed, 12 Feb 2003 15:38:15 -0800 Subject: [dba-SQLServer]Do Loop in a sproc In-Reply-To: <049e01c2d2cc$0968a710$8e01a8c0@Rock> Message-ID: MessageHi Arthur: I have found that single line statements are not as fast. In situations with queries that call other queries when I have spent time to merge the two queries, the results have always been slower(?) Maybe this is a MBD thing... Of course in SQL7/2000 you can be as sloppy as you like. An aside: Coldfusion has the capability to hold the results from a previous query, to MySQL and use those results in a subsequent query...very fast. Comments Jim -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of Arthur Fuller Sent: Wednesday, February 12, 2003 11:22 AM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]Do Loop in a sproc Don?t you love these one-statement solutions? I certainly do! AFAIC, the less logic in the FE the better. This is one of the big wars I wage in the MySQL community, which seems to prefer just the opposite J All I want to do from Access is execute sprocs and udfs &c. Let the logic reside in the sprocs, and ban table access. That?s my approach in a nutshell. Then it doesn?t matter what FE they use, could be Access, QA, Delphi, who cares. If you don?t have the keys you don?t get in. A. -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com] On Behalf Of Djabarov, Robert Sent: February 12, 2003 11:55 AM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]Do Loop in a sproc Ooops? it should be as this: UPDATE tblPrintCharges set ExceptionCode = left(ExceptionCode,len(ExceptionCode) - 1) WHERE substring(ltrim(reverse(isnull(ExceptionCode, ? ?))), 1, 1) = ?,? -----Original Message----- From: Djabarov, Robert Sent: Wednesday, February 12, 2003 10:51 AM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]Do Loop in a sproc UPDATE tblPrintCharges set ExceptionCode = left(ExceptionCode,len(ExceptionCode) - 1) WHERE charindex(?,?, ltrim(reverse(ExceptionCode))) > 0 -----Original Message----- From: Chris McIsaac [mailto:cjm at haleyaldrich.com] Sent: Wednesday, February 12, 2003 9:41 AM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]Do Loop in a sproc This is what I was afraid of. In TSQL, there is something called a cursor that allows you move through a set record by record, but the performance is horrible. A better way... UPDATE tblPrintCharges set ExceptionCode = ExceptionCode + "18," where EndServDate = '' UPDATE tblPrintCharges set ExceptionCode = ExceptionCode + "19," where CPT = '' etc. -- trim the final comma UPDATE tblPrintCharges set ExceptionCode = left(ExceptionCode,len(ExceptionCode) - 1) WHERE ExceptionCode IS NOT NULL AND ExceptionCode <> '' -----Original Message----- From: Mark Boyd [mailto:MarkBoyd at mcbeeassociates.com] Sent: 12 February 2003 10:18 AM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]Do Loop in a sproc Chris ? The code is as follows. It was written by another programmer about 7 years ago. I?m sure there is a better way to code this, but it needs to be finished by the end of the day. Set db = CurrentDb() Set rstPrint = db.OpenRecordset("SELECT * FROM tblPrintCharges") If rstPrint.EOF = False Then rstPrint.MoveFirst Do Until rstPrint.EOF = True Me.txtStatus = "Processing record '" & rstPrint!PatientNo & "'" Me.Repaint If Nz(rstPrint!EndServDate) = "" Then rstPrint.Edit rstPrint!ExceptionCode = rstPrint!ExceptionCode & "18," rstPrint.Update End If If Nz(rstPrint!CPT) = "" Then rstPrint.Edit rstPrint!ExceptionCode = rstPrint!ExceptionCode & "19," rstPrint.Update End If If Nz(rstPrint!BegServDate) = "" Then rstPrint.Edit rstPrint!ExceptionCode = rstPrint!ExceptionCode & "20," rstPrint.Update End If If Nz(rstPrint!Charge) = "" Then rstPrint.Edit rstPrint!ExceptionCode = rstPrint!ExceptionCode & "23," rstPrint.Update End If rstPrint.MoveNext Loop Else MsgBox "There are no outstanding charges.", vbCritical, "No Charges" End If If I use the format you suggest, how do I specify the WHILE (condition = true) without setting the recordset? Can I say WHILE tblPrintCharges.EOF = False ? ? Thanks, Mark -----Original Message----- From: Chris McIsaac [mailto:cjm at haleyaldrich.com] Sent: Wednesday, February 12, 2003 9:38 AM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]Do Loop in a sproc The format is... WHILE (condition = true) BEGIN -- do processing END Keep in mind that a direct translation of programming logic from whatever to TSql may not be the best way to go. If you post what you are trying to do, people may be able to give you an alternative to using a loop (which tend to be much slower than set-based statements). -----Original Message----- From: Mark Boyd [mailto:MarkBoyd at mcbeeassociates.com] Sent: 12 February 2003 9:26 AM To: SQLServerList Subject: [dba-SQLServer]Do Loop in a sproc I am converting VBA code to a stored procedure. This code includes a pretty large Do Loop. Is it possible to create a loop in a sproc? If so, what is the format? Thanks, Mark Boyd Sr. Systems Analyst McBee Associates, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From davide at dalyn.co.nz Sun Feb 16 21:12:46 2003 From: davide at dalyn.co.nz (David Emerson) Date: Mon, 17 Feb 2003 16:12:46 +1300 Subject: [dba-SQLServer]Changing apostrophes in string Message-ID: <5.2.0.9.0.20030217160919.00bc8e80@mail.dalyn.co.nz> I tried the archives but couldn't get in . I have a simple sql statement to be run from and AXP ADP to SQL2000 DoCmd.RunSQL "UPDATE tblCustStatement SET tblCustStatement.SMName = '" & [Forms]![frmCustomers]![MName] & "' WHERE (((tblCustStatement.CustIDNo)= " & [Forms]![frmCustomers]![txtCustomerID] & ") AND ((tblCustStatement.StatementNumber)= " & [Forms]![frmCustomers]![txtInvNumber] & "));" How do we handle the following situation where [Forms]![frmCustomers]!MName includes an apostrophe? Regards David Emerson DALYN Software Ltd 25b Cunliffe St, Johnsonville Wellington, New Zealand Ph/Fax (877) 456-1205 From dbasql.chseck at kuehne-holz.de Mon Feb 17 02:47:18 2003 From: dbasql.chseck at kuehne-holz.de (dbasql.chseck at kuehne-holz.de) Date: 17 Feb 2003 08:47:18 UT Subject: [dba-SQLServer]Changing apostrophes in string Message-ID: Hi David, replcace every ' with '' (2 apostrophes, the first ' acts as an escape character) before sending the sql statement to SQL2000. This especially gives you some (though not enough) protection in case of sql injections ([Forms]![frmCustomers]!MName = "test ' drop table tblCustStatement -- " etc.) Christoph Seck -------- Original Message -------- Subject: [dba-SQLServer]Changing apostrophes in string (17-Feb-2003 4:21) From: davide at dalyn.co.nz To: dbaSQL.chseck at kuehne-holz.de > I tried the archives but couldn't get in . > > I have a simple sql statement to be run from and AXP ADP to SQL2000 > > DoCmd.RunSQL "UPDATE tblCustStatement SET tblCustStatement.SMName = '" & > [Forms]![frmCustomers]![MName] & "' WHERE (((tblCustStatement.CustIDNo)= > " & [Forms]![frmCustomers]![txtCustomerID] & ") AND > ((tblCustStatement.StatementNumber)= " & > [Forms]![frmCustomers]![txtInvNumber] & "));" > > How do we handle the following situation where [Forms]![frmCustomers]!MName > > includes an apostrophe? > > > 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 > From paul.hartland at fsmail.net Mon Feb 17 07:48:09 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 17 Feb 2003 13:48:09 +0000 Subject: [dba-SQLServer]Deleting Dates Message-ID: <20030217134809.IOHS5116.fep06-svc.ttys.com@localhost> To all, I have a Visual Basic 6 front-end which is currently linked into a SQL Server 7.0 back-end, I have a table called tblPersonnel in the BE which has a form on the VB6 FE. We take on temporary staff a certain points of the year to help with the workload, and when they finish we enter a finish date for that particualr person....No problem so far......However if they have proved themselves to be a good worker, they get invited back whenever we need the additional staff (saving on re-training etc). But I can seem to get the system to allow me to take out a finish date (making it null again)..... The tblPersonnel.Finishdate field will allow Nulls, and I'm using the ADODC DataControl with a text box linked to the Control and Field FinishDate........ Anyone had similar problems or can tell me how to reset the FinishDate to null Thanks in advance for any help.......... Paul __________________________________________________________________________ Freeserve AnyTime - Go online whenever you want for just ?6.99 a month for your first 3 months, that's HALF PRICE! And then it's just ?13.99 a month after that. For more information visit http://www.freeserve.com/time/ or call free on 0800 970 8890 From prosoft6 at hotmail.com Mon Feb 17 11:18:11 2003 From: prosoft6 at hotmail.com (Julie Reardon-Taylor) Date: Mon, 17 Feb 2003 12:18:11 -0500 Subject: [dba-SQLServer]OLEDB Connection Message-ID: Okay. I'm convinced. Will never use ODBC for my connection to SQL again. Trying to upsize to an Access Project. Please excuse my ignorance as a newbie. Everything went well, but I have a couple of questions. When I choose to connect to the sql database, the tables appear just fine in my project. Am I seeing the actual tables, or are they linked? In other words, if I delete a table (which I am not going to do, but just in case) am I deleting the actual sql table or just my link to the table (as would be the case in an odbc connection)? Because I am already using an odbc connection, when I upsize, the wizard wants to upsize my tables a well(which already are sql tables). I created a new project and just imported all forms, reports, etc. I don't get the option to import queries. Obviously, they need to be upsized to views, but I'm not sure how to do that. See, I am definitely a newbie! Julie Reardon-Taylor PRO-SOFT OF NY, INC. www.pro-soft.net _________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail From davide at dalyn.co.nz Mon Feb 17 11:57:30 2003 From: davide at dalyn.co.nz (David Emerson) Date: Tue, 18 Feb 2003 06:57:30 +1300 Subject: [dba-SQLServer]Changing apostrophes in string In-Reply-To: Message-ID: <5.2.0.9.0.20030218065624.00b1cfa0@mail.dalyn.co.nz> Thanks. Does anyone have the code handy to do this (I could sit down and write a function that does it but am running out of time). David At 17/02/2003, you wrote: >Hi David, > >replcace every ' with '' (2 apostrophes, the first ' acts as an escape >character) before sending >the sql statement to SQL2000. >This especially gives you some (though not enough) protection in case of >sql injections ([Forms]![frmCustomers]!MName = >"test ' drop table tblCustStatement -- " etc.) > > >Christoph Seck > > > >-------- Original Message -------- >Subject: [dba-SQLServer]Changing apostrophes in string (17-Feb-2003 4:21) >From: davide at dalyn.co.nz >To: dbaSQL.chseck at kuehne-holz.de > > > I tried the archives but couldn't get in . > > > > I have a simple sql statement to be run from and AXP ADP to SQL2000 > > > > DoCmd.RunSQL "UPDATE tblCustStatement SET tblCustStatement.SMName = '" & > > [Forms]![frmCustomers]![MName] & "' WHERE (((tblCustStatement.CustIDNo)= > > " & [Forms]![frmCustomers]![txtCustomerID] & ") AND > > ((tblCustStatement.StatementNumber)= " & > > [Forms]![frmCustomers]![txtInvNumber] & "));" > > > > How do we handle the following situation where > [Forms]![frmCustomers]!MName > > > > includes an apostrophe? > > > > > > 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 > > > >_______________________________________________ >dba-SQLServer mailing list >dba-SQLServer at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-sqlserver >http://www.databaseadvisors.com From szeller at cce.umn.edu Mon Feb 17 12:53:48 2003 From: szeller at cce.umn.edu (Susan Zeller) Date: Mon, 17 Feb 2003 12:53:48 -0600 Subject: [dba-SQLServer]OLEDB Connection Message-ID: Julie, Deleting a table will delete the table. It's not a link but the actual data. You'll have to upsize queries to views or stored procuedures. When your query accepts a parameter, you'll need to use a stored procedure. There are some key books that can help you get started on the basics. Ask if you need references. --Susan -----Original Message----- From: Julie Reardon-Taylor [mailto:prosoft6 at hotmail.com] Sent: Monday, February 17, 2003 11:18 AM To: dba-sqlserver at databaseadvisors.com Subject: [dba-SQLServer]OLEDB Connection Okay. I'm convinced. Will never use ODBC for my connection to SQL again. Trying to upsize to an Access Project. Please excuse my ignorance as a newbie. Everything went well, but I have a couple of questions. When I choose to connect to the sql database, the tables appear just fine in my project. Am I seeing the actual tables, or are they linked? In other words, if I delete a table (which I am not going to do, but just in case) am I deleting the actual sql table or just my link to the table (as would be the case in an odbc connection)? Because I am already using an odbc connection, when I upsize, the wizard wants to upsize my tables a well(which already are sql tables). I created a new project and just imported all forms, reports, etc. I don't get the option to import queries. Obviously, they need to be upsized to views, but I'm not sure how to do that. See, I am definitely a newbie! Julie Reardon-Taylor PRO-SOFT OF NY, INC. www.pro-soft.net _________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN 8. 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 accessd at shaw.ca Mon Feb 17 16:25:46 2003 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Mon, 17 Feb 2003 14:25:46 -0800 Subject: [dba-SQLServer]Changing apostrophes in string In-Reply-To: <5.2.0.9.0.20030218065624.00b1cfa0@mail.dalyn.co.nz> Message-ID: Hi David: Here is an example that works with all versions of Access: .... With EmployeeRecord .Surname = FixSingleQuote(.Surname) End With .... Public Function FixSingleQuote(ChkText As String) as String Dim lbPosition As Integer Dim lbLength As Integer lbLength = Len(ChkText) lbPosition = InStr(1, ChkText, "'") Do While lbPosition > 0 And lbPosition < lbLength ChkText = Left(ChkText, lbPosition) & Mid(ChkText, lbPosition) lbPosition = InStr(lbPosition + 2, ChkText, "'") Loop FixSingleQuote = ChkText End Function HTH Jim -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of David Emerson Sent: Monday, February 17, 2003 9:58 AM To: dba-sqlserver at databaseadvisors.com Subject: Re: [dba-SQLServer]Changing apostrophes in string Thanks. Does anyone have the code handy to do this (I could sit down and write a function that does it but am running out of time). David At 17/02/2003, you wrote: >Hi David, > >replcace every ' with '' (2 apostrophes, the first ' acts as an escape >character) before sending >the sql statement to SQL2000. >This especially gives you some (though not enough) protection in case of >sql injections ([Forms]![frmCustomers]!MName = >"test ' drop table tblCustStatement -- " etc.) > > >Christoph Seck > > > >-------- Original Message -------- >Subject: [dba-SQLServer]Changing apostrophes in string (17-Feb-2003 4:21) >From: davide at dalyn.co.nz >To: dbaSQL.chseck at kuehne-holz.de > > > I tried the archives but couldn't get in . > > > > I have a simple sql statement to be run from and AXP ADP to SQL2000 > > > > DoCmd.RunSQL "UPDATE tblCustStatement SET tblCustStatement.SMName = '" & > > [Forms]![frmCustomers]![MName] & "' WHERE (((tblCustStatement.CustIDNo)= > > " & [Forms]![frmCustomers]![txtCustomerID] & ") AND > > ((tblCustStatement.StatementNumber)= " & > > [Forms]![frmCustomers]![txtInvNumber] & "));" > > > > How do we handle the following situation where > [Forms]![frmCustomers]!MName > > > > includes an apostrophe? > > > > > > 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 > > > >_______________________________________________ >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 davide at dalyn.co.nz Mon Feb 17 16:50:22 2003 From: davide at dalyn.co.nz (David Emerson) Date: Tue, 18 Feb 2003 11:50:22 +1300 Subject: [dba-SQLServer]Changing apostrophes in string - Thanks In-Reply-To: References: <5.2.0.9.0.20030218065624.00b1cfa0@mail.dalyn.co.nz> Message-ID: <5.2.0.9.0.20030218114955.00b7e300@mail.dalyn.co.nz> Much appreciated Jim. Thanks At 17/02/2003, you wrote: >Hi David: > >Here is an example that works with all versions of Access: > > .... > With EmployeeRecord > .Surname = FixSingleQuote(.Surname) > End With > .... > >Public Function FixSingleQuote(ChkText As String) as String > Dim lbPosition As Integer > Dim lbLength As Integer > > lbLength = Len(ChkText) > lbPosition = InStr(1, ChkText, "'") > > Do While lbPosition > 0 And lbPosition < lbLength > ChkText = Left(ChkText, lbPosition) & Mid(ChkText, lbPosition) > lbPosition = InStr(lbPosition + 2, ChkText, "'") > Loop > > FixSingleQuote = ChkText > >End Function > >HTH >Jim > >-----Original Message----- >From: dba-sqlserver-admin at databaseadvisors.com >[mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of David >Emerson >Sent: Monday, February 17, 2003 9:58 AM >To: dba-sqlserver at databaseadvisors.com >Subject: Re: [dba-SQLServer]Changing apostrophes in string > > >Thanks. Does anyone have the code handy to do this (I could sit down and >write a function that does it but am running out of time). > >David > >At 17/02/2003, you wrote: > >Hi David, > > > >replcace every ' with '' (2 apostrophes, the first ' acts as an escape > >character) before sending > >the sql statement to SQL2000. > >This especially gives you some (though not enough) protection in case of > >sql injections ([Forms]![frmCustomers]!MName = > >"test ' drop table tblCustStatement -- " etc.) > > > > > >Christoph Seck > > > > > > > >-------- Original Message -------- > >Subject: [dba-SQLServer]Changing apostrophes in string (17-Feb-2003 4:21) > >From: davide at dalyn.co.nz > >To: dbaSQL.chseck at kuehne-holz.de > > > > > I tried the archives but couldn't get in . > > > > > > I have a simple sql statement to be run from and AXP ADP to SQL2000 > > > > > > DoCmd.RunSQL "UPDATE tblCustStatement SET tblCustStatement.SMName = '" & > > > [Forms]![frmCustomers]![MName] & "' WHERE (((tblCustStatement.CustIDNo)= > > > " & [Forms]![frmCustomers]![txtCustomerID] & ") AND > > > ((tblCustStatement.StatementNumber)= " & > > > [Forms]![frmCustomers]![txtInvNumber] & "));" > > > > > > How do we handle the following situation where > > [Forms]![frmCustomers]!MName > > > > > > includes an apostrophe? > > > > > > > > > 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 > > > > > > >_______________________________________________ > >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 my.lists at verizon.net Mon Feb 17 18:10:33 2003 From: my.lists at verizon.net (Francisco H Tapia) Date: Mon, 17 Feb 2003 16:10:33 -0800 Subject: [dba-SQLServer]Finding the 2nd the Max References: <657FB70438B7D311AF320090279C180103C5E420@EXCHMAIL> Message-ID: <00ff01c2d6e2$285d6ec0$b615010a@FHTAPIA> I need some brainstorming advice... maybe even a whole new way of thinking is in order ;o) I have the a table called tbl_ccStatus with the following fields... ccStatusID INT ccID INT StatusID INT UserID UNIQUEIDENTIFIER ccDateTime DATTIME When a new status is assigned to the Table it is in actuality Appended (inserted) into this table. Below is a table of what each ID acctually stands for. A normal process would have the record enter at ID 1, 3, 2, 5, 6, and finally 7. However being that nobody is perfect a record could be rejected when it arrives at the status ID 4 or 6. Thus the resulting record for a record could result in ID 1,3,2,5,4,(re-assigned 2), 5, 6, (re-assigned 2), 5, 6, 7. How often it is rejected depends on how well the record is processed. In the Desktop GUI, the users get two listboxes, one for new records, and one for currently processed records. But in the web implementation the web guys want to make it so that there are additional listboxes, such as, Rejected records, Rejected by Manager Records... New, Work In progress... They propose to modify the design so the first re-assigned ID would be an 8 instead of a 2, and the 2nd re-assigned be a 9 instead of a 2. What are your thoughts on this.. Below I've included a sample select statment, as you can see it has a subnested query, and another one in the where clause for an exists where I check records that have been emailed. Thanks, -Francisco http://rcm.netfirms.com ----- Original Message ----- : : 0 DELETED : 1 NEW : 2 Assigned : 3 Emailed : 4 Waiting Business Manager Approval : 5 Resolution : 6 Marked for Review : 7 Closed : : SELECT Status.CCID, StatusNames.StatusID as Status, Status.ccDateTime : FROM HaasCC.dbo.tbl_ccStatus AS Status : INNER JOIN (SELECT CCID, MAX(ccDateTIME) AS ccDateTime : FROM HaasCC.dbo.tbl_ccStatus : GROUP BY CCID) AS MaxStatus : ON Status.CCID = MaxStatus.CCID AND Status.ccDateTime = : MaxStatus.ccDateTime : INNER JOIN HaasCC.dbo.tbl_Status AS StatusNames : ON Status.StatusID = StatusNames.StatusID : WHERE EXISTS(Select CCid, StatusID : FROM HAAScc.dbo.tbl_ccStatus : Where StatusID = 3 AND Status.CCID = ccID) : AND StatusNames.StatusID <> 3 : : Order by Status.ccDateTIME DESC From davide at dalyn.co.nz Mon Feb 17 20:02:58 2003 From: davide at dalyn.co.nz (David Emerson) Date: Tue, 18 Feb 2003 15:02:58 +1300 Subject: [dba-SQLServer]Subreports in Report Message-ID: <5.2.0.9.0.20030218145954.00b1cf40@mail.dalyn.co.nz> I have a report with a subreport. In A97 the subreport shows the correct records for the main report. In AXP ADP/SQL2K I have created sprocs for the main and sub reports and placed them in the recordsource properties of the reports. Now however I get all records in the subreport, not just the ones for the main record. I have checked the child/parent fields and these haven't changed. Has something changed for ADP's? Regards David Emerson DALYN Software Ltd 25b Cunliffe St, Johnsonville Wellington, New Zealand Ph/Fax (877) 456-1205 From davide at dalyn.co.nz Mon Feb 17 20:38:43 2003 From: davide at dalyn.co.nz (David Emerson) Date: Tue, 18 Feb 2003 15:38:43 +1300 Subject: [dba-SQLServer]Subreports in Report - Solved Message-ID: <5.2.0.9.0.20030218153701.00b7cf68@mail.dalyn.co.nz> Amazing what happens when you leave something and tackle something else. I began upgrading some subforms and realised that I hadn't put a Where clause in the subreport Sproc with a variable linking back to the main report. Regards David Emerson DALYN Software Ltd 25b Cunliffe St, Johnsonville Wellington, New Zealand Ph/Fax (877) 456-1205 From my.lists at verizon.net Mon Feb 17 23:54:48 2003 From: my.lists at verizon.net (Francisco Tapia) Date: Mon, 17 Feb 2003 21:54:48 -0800 Subject: [dba-SQLServer]Subreports in Report - Solved References: <5.2.0.9.0.20030218153701.00b7cf68@mail.dalyn.co.nz> Message-ID: <009501c2d712$3ffdb550$0eb62904@amd2k> heh heh heh.. can't count the times I've done that ;o). -Francisco http://rcm.netfirms.com/ ----- Original Message ----- From: "David Emerson" To: Sent: Monday, February 17, 2003 6:38 PM Subject: [dba-SQLServer]Subreports in Report - Solved : Amazing what happens when you leave something and tackle something else. : : I began upgrading some subforms and realised that I hadn't put a Where : clause in the subreport Sproc with a variable linking back to the main report. : : 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 : From prosoft6 at hotmail.com Tue Feb 18 10:34:45 2003 From: prosoft6 at hotmail.com (Julie Reardon-Taylor) Date: Tue, 18 Feb 2003 11:34:45 -0500 Subject: [dba-SQLServer]OLEDB Connection Message-ID: Thanks Susan. I'm almost there. I chose to go with the oledb connection. I know this sounds simple to you, but I am stuck. One of my expressions in Access was to reference two items input by the user in two different text boxes. I would then use those for calculations and print a report. In the .adp, I can't get the expression to work. When I look at help, it gives me the same references to the form that I was using in Access. The view in the .adp keeps putting quotes around my expression and treating it like text. For example, one of the expressions calculates area. =[forms]![frmmacolalabel]![swidth] * [forms]![macolalabel]![length] What am I doing wrong? I'm using the Alias column to put the "Area" in. Help! Julie Reardon-Taylor PRO-SOFT OF NY, INC. www.pro-soft.net _________________________________________________________________ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus From my.lists at verizon.net Tue Feb 18 11:19:36 2003 From: my.lists at verizon.net (Francisco H Tapia) Date: Tue, 18 Feb 2003 09:19:36 -0800 Subject: [dba-SQLServer]OLEDB Connection References: Message-ID: <002301c2d771$e9a20160$b615010a@FHTAPIA> Julie, Even though Access ADP's are hooks as front ends to SQL Server. The views and sprocs (stored procedures) are still very much Sql Server. Thus the SQL Server knows nothing about [Froms]![forms]![frmmacolalabel]![swidth] also you can't parametrize a view. but you can build a stored procedure that uses a view as one of it's based tables. Thus the calculation you want to have happen can't the way you are doing it here. Refrences to forms or reports from the view or sproc will not resolve. you must pass them as paramters to sprocs via the input param in the form or report. -Francisco http://rcm.netfirms.com ----- Original Message ----- From: "Julie Reardon-Taylor" To: Sent: Tuesday, February 18, 2003 8:34 AM Subject: RE: [dba-SQLServer]OLEDB Connection : The view in the : .adp keeps putting quotes around my expression and treating it like text. : : For example, one of the expressions calculates area. : =[forms]![frmmacolalabel]![swidth] * [forms]![macolalabel]![length] : : What am I doing wrong? I'm using the Alias column to put the "Area" in. : : Help! : : : Julie Reardon-Taylor From prosoft6 at hotmail.com Tue Feb 18 11:50:11 2003 From: prosoft6 at hotmail.com (Julie Reardon-Taylor) Date: Tue, 18 Feb 2003 12:50:11 -0500 Subject: [dba-SQLServer]OLEDB Connection Message-ID: Thanks Francisco. That makes sense. I thought that I was still using "Access" type queries and forms. Didn't realize that this was totally sql. I appreciate your answer! Julie Reardon-Taylor PRO-SOFT OF NY, INC. www.pro-soft.net _________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail From mmmtbig at bellsouth.net Tue Feb 18 13:19:27 2003 From: mmmtbig at bellsouth.net (Myke Myers) Date: Tue, 18 Feb 2003 14:19:27 -0500 Subject: [dba-SQLServer]Access 2000 Adp Connection Message-ID: <002a01c2d782$ac89af60$6501a8c0@tbig3> I am responsible for enhancing a frontend Access 2000 Adp that is used in two locations by a corporate client. The server I use for development does NOT have the same name as either of the two production servers. Is there any way to build in an "auto detect" feature so it looks for a server name on start up and selects the appropriate server in the list of connections? TIA, Myke -------------- next part -------------- An HTML attachment was scrubbed... URL: From my.lists at verizon.net Tue Feb 18 13:39:39 2003 From: my.lists at verizon.net (Francisco H Tapia) Date: Tue, 18 Feb 2003 11:39:39 -0800 Subject: [dba-SQLServer]Access 2000 Adp Connection References: <002a01c2d782$ac89af60$6501a8c0@tbig3> Message-ID: <00c001c2d785$7a5e7c70$b615010a@FHTAPIA> You could, try checking if the connection status of the ADP is active, such as currentproject.Connection.State = adStateOpen then you could compare the connection string for what you want it to be. something along the realm of IF currentproject.connectionstring <> myConnString then currentproject.CloseConnection currentproject.OpenConnection myconnstring end if -Francisco http://rcm.netfirms.com ----- Original Message ----- From: "Myke Myers" To: Sent: Tuesday, February 18, 2003 11:19 AM Subject: [dba-SQLServer]Access 2000 Adp Connection : I am responsible for enhancing a frontend Access 2000 Adp that is used : in two locations by a corporate client. : : The server I use for development does NOT have the same name as either : of the two production servers. : : Is there any way to build in an "auto detect" feature so it looks for a : server name on start up and selects the appropriate server in the list : of connections? : : TIA, : Myke : From szeller at cce.umn.edu Tue Feb 18 13:59:22 2003 From: szeller at cce.umn.edu (Susan Zeller) Date: Tue, 18 Feb 2003 13:59:22 -0600 Subject: [dba-SQLServer]OLEDB Connection Message-ID: Julie, Let me know if you need a sample of what Francisco is saying. I have tons. --Susan -----Original Message----- From: Julie Reardon-Taylor [mailto:prosoft6 at hotmail.com] Sent: Tuesday, February 18, 2003 11:50 AM To: dba-sqlserver at databaseadvisors.com Subject: Re: [dba-SQLServer]OLEDB Connection Thanks Francisco. That makes sense. I thought that I was still using "Access" type queries and forms. Didn't realize that this was totally sql. I appreciate your answer! Julie Reardon-Taylor PRO-SOFT OF NY, INC. www.pro-soft.net _________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN 8. 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 davide at dalyn.co.nz Tue Feb 18 20:50:49 2003 From: davide at dalyn.co.nz (David Emerson) Date: Wed, 19 Feb 2003 15:50:49 +1300 Subject: [dba-SQLServer]SQL Error message trapping Message-ID: <5.2.0.9.0.20030219153626.00b50bc8@mail.dalyn.co.nz> AXP ADP/SQL2000 In my ADP I have error trapping routines which work just fine except when an SQL error appears. The error number is 0 which gives no clues as to what the problem is. In most cases I am using bound forms to Sprocs so trapping ADO errors doesn't seem to be the answer (or is it?). For example, I try to save a new record and get a message (when I turn off my error trapping) of "Cannot insert a non-null value into a timestamp column. Use INSERT with a column list, or with a default of NULL for the timestamp column". I am not even sure why I have the Timestamp columns - they were created when I upsized from A97! Anyway - how can I trap the errors and deal with them properly? Regards David Emerson DALYN Software Ltd 25b Cunliffe St, Johnsonville Wellington, New Zealand Ph/Fax (877) 456-1205 From artful at rogers.com Tue Feb 18 21:55:09 2003 From: artful at rogers.com (Arthur Fuller) Date: Tue, 18 Feb 2003 22:55:09 -0500 Subject: [dba-SQLServer]OLEDB Connection In-Reply-To: Message-ID: <007b01c2d7ca$b2b335d0$8e01a8c0@Rock> Try my static function solution to said problem-types. (Search for static functions and you'll find some messages on same.) Build the SQL statement or sproc invocation from a string that resolves the param(s) first then concats them into a sensible expression, then fire that. Works like a charm. You could either construct an entire SELECT statement or an EXEC mySproc parm1 parm2 parmn statement. Both work perfectly. Just keep in mind that everything must comply with SQL not with Access. I.e. single quotes not double quotes, and so on. Dates should be delimited with single quotes not pound signs, and so on. A few simple (SQL) rules and you're cool, everything will work as expected. -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com] On Behalf Of Julie Reardon-Taylor Sent: February 18, 2003 12:50 PM To: dba-sqlserver at databaseadvisors.com Subject: Re: [dba-SQLServer]OLEDB Connection Thanks Francisco. That makes sense. I thought that I was still using "Access" type queries and forms. Didn't realize that this was totally sql. I appreciate your answer! Julie Reardon-Taylor PRO-SOFT OF NY, INC. www.pro-soft.net _________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN 8. 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 artful at rogers.com Tue Feb 18 22:14:29 2003 From: artful at rogers.com (Arthur Fuller) Date: Tue, 18 Feb 2003 23:14:29 -0500 Subject: [dba-SQLServer]Access 2000 Adp Connection In-Reply-To: <002a01c2d782$ac89af60$6501a8c0@tbig3> Message-ID: <007e01c2d7cd$6597a620$8e01a8c0@Rock> I would like to think that the answer is yes, but have not discovered said portable solution. Where does this list of connections come from? That's the problem! Best I've come up with is a data-driven list of previous connections, to which the user can add. But this is not equivalent to intellisense! Since I have several dev-boxes, I typically rename them to match the server owned by the current client. Imperfect solution, I readily admit, but no-brainer may be. Alternatively, sidestep any autoexec macros &c. and have at least one box upon which all your dev-software is loaded, so that you can build an ADE on-site and then distribute that. Currently I have a need for some more elegant solution to said problem. I want the app to open with the default connection, and failing said connect, to prompt the user to select an appropriate db. Possible answers include previously visited dbs on remote servers, local dbs with a name-pattern, and new servers containing dbs corresponding to said naming pattern. I am not at all sure how to provide this functionality. Any suggestions, algorithms (Al Gore Rhythms) welcomed! Since I am just sketching this out, you cannot hurt my feelings or my code-pride :-) I'm willing to read the most unorthodox solutions. I want my ADP to open on the previously declared database, but also to allow the user to select any previously-declared compatible database (residing anywhere on the accessible intranet) or to create a new connection to some db residing on a hitherto-unknown server. In the absence of said previously-declared db/server, I want the user to be able to define and navigate to some new db of interest. (We just bought a company in DesMoines and want to inhale its data; find me a server, link me to it, and apply said cubes to said db. Is this possible? A. -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com] On Behalf Of Myke Myers Sent: February 18, 2003 2:19 PM To: dba-sqlserver at databaseadvisors.com Subject: [dba-SQLServer]Access 2000 Adp Connection I am responsible for enhancing a frontend Access 2000 Adp that is used in two locations by a corporate client. The server I use for development does NOT have the same name as either of the two production servers. Is there any way to build in an "auto detect" feature so it looks for a server name on start up and selects the appropriate server in the list of connections? TIA, Myke -------------- next part -------------- An HTML attachment was scrubbed... URL: From my.lists at verizon.net Wed Feb 19 10:23:47 2003 From: my.lists at verizon.net (Francisco H Tapia) Date: Wed, 19 Feb 2003 08:23:47 -0800 Subject: [dba-SQLServer]Access 2000 Adp Connection References: <007e01c2d7cd$6597a620$8e01a8c0@Rock> Message-ID: <000c01c2d833$483d64f0$b615010a@FHTAPIA> For prompting a user I like the UDL Applet solution which is what Access is using when it asks you which databsource you want to connect to (from the adp). you'll need the OLEdb32.dll refrenced in your ADP, but other than that it's a simple Dim dl As MSDASC.DataLinks Dim cn As ADODB.Connection Set dl = New MSDASC.DataLinks Set cn = New ADODB.Connection Set cn = dl.PromptNew Me.txtConnectionString = Trim(cn.ConnectionString) cn.Close Set dl = Nothing Set cn = Nothing where me.txtConnectionString is the connection string from the UDL that connects you to the new data source. The benefit is that you can re-connect your ADE to *Any* Sql Server data source, whenever your user wants. HTHs -Francisco http://rcm.netfirms.com ----- Original Message ----- From: "Arthur Fuller" To: Sent: Tuesday, February 18, 2003 8:14 PM Subject: RE: [dba-SQLServer]Access 2000 Adp Connection I would like to think that the answer is yes, but have not discovered said portable solution. Where does this list of connections come from? That's the problem! Best I've come up with is a data-driven list of previous connections, to which the user can add. But this is not equivalent to intellisense! Since I have several dev-boxes, I typically rename them to match the server owned by the current client. Imperfect solution, I readily admit, but no-brainer may be. Alternatively, sidestep any autoexec macros &c. and have at least one box upon which all your dev-software is loaded, so that you can build an ADE on-site and then distribute that. Currently I have a need for some more elegant solution to said problem. I want the app to open with the default connection, and failing said connect, to prompt the user to select an appropriate db. Possible answers include previously visited dbs on remote servers, local dbs with a name-pattern, and new servers containing dbs corresponding to said naming pattern. I am not at all sure how to provide this functionality. Any suggestions, algorithms (Al Gore Rhythms) welcomed! Since I am just sketching this out, you cannot hurt my feelings or my code-pride :-) I'm willing to read the most unorthodox solutions. I want my ADP to open on the previously declared database, but also to allow the user to select any previously-declared compatible database (residing anywhere on the accessible intranet) or to create a new connection to some db residing on a hitherto-unknown server. In the absence of said previously-declared db/server, I want the user to be able to define and navigate to some new db of interest. (We just bought a company in DesMoines and want to inhale its data; find me a server, link me to it, and apply said cubes to said db. Is this possible? A. -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com] On Behalf Of Myke Myers Sent: February 18, 2003 2:19 PM To: dba-sqlserver at databaseadvisors.com Subject: [dba-SQLServer]Access 2000 Adp Connection I am responsible for enhancing a frontend Access 2000 Adp that is used in two locations by a corporate client. The server I use for development does NOT have the same name as either of the two production servers. Is there any way to build in an "auto detect" feature so it looks for a server name on start up and selects the appropriate server in the list of connections? TIA, Myke From my.lists at verizon.net Wed Feb 19 16:06:39 2003 From: my.lists at verizon.net (Francisco H Tapia) Date: Wed, 19 Feb 2003 14:06:39 -0800 Subject: [dba-SQLServer]Re: MSDE and SQL Server WAS: (dba-SQL down?) References: <657FB70438B7D311AF320090279C180103C5E42E@EXCHMAIL> Message-ID: <007a01c2d863$2e16c000$b615010a@FHTAPIA> No. You can install a full blown version of SQL Server over an existing copy of MSDE but then whenever you decide to uninstall you won't be able to... hehehe thanks MS. If you want to test out the throttled connections you'll have to install MSDE on another box. -Francisco http://rcm.netfirms.com ----- Original Message ----- From: "Arthur Fuller" To: Sent: Wednesday, February 19, 2003 1:43 PM Subject: RE: [AccessD] dba-SQL down? : Thanks for the heads-up. : : Let me post the questions here, then, since so many listers are doubled. : : Can you run MSDE on the same box as SQL Server? Simultaneously? If so, : how can you determine which one you're connected to? If so, how can you : specifically target, say, a database residing in MSDE rather than SQL : 2000? : : For reasons I won't detail, I have to provide a package that lets end : users run an MSDE copy on their boxes rather than hooking into the : internet database that is normally used. It's running against my SQL : 2000 install at the moment. I want to put MSDE on and DTS the data there : and then reconnect the ADP to the MSDE database. : : Recipes? Advice? : : : : -----Original Message----- : From: accessd-admin at databaseadvisors.com : [mailto:accessd-admin at databaseadvisors.com] On Behalf Of Wortz, Charles : Sent: February 19, 2003 3:30 PM : To: accessd at databaseadvisors.com : Subject: RE: [AccessD] dba-SQL down? : : : : Arthur, : : : : I've seen messages on it today, but not yours. : : : : Charles Wortz : Software Development Division : Texas Education Agency : 1701 N. Congress Ave : Austin, TX 78701-1494 : 512-463-9493 : CWortz at tea.state.tx.us : (SELECT * FROM users WHERE clue > 0) : : -----Original Message----- : From: Arthur Fuller [mailto:artful at rogers.com] : Sent: Wednesday 2003 Feb 19 14:24 : To: 'AccessD' : Subject: [AccessD] dba-SQL down? : Importance: Low : : I sent a message to dba-SQL earlier today and still haven't seen it : appear - but a couple of dozen messages have appeared in AccessD since : then. Is it down? : : From artful at rogers.com Wed Feb 19 16:24:48 2003 From: artful at rogers.com (Arthur Fuller) Date: Wed, 19 Feb 2003 17:24:48 -0500 Subject: [dba-SQLServer]Re: MSDE and SQL Server WAS: (dba-SQL down?) In-Reply-To: <007a01c2d863$2e16c000$b615010a@FHTAPIA> Message-ID: <009901c2d865$b6e2ab40$8e01a8c0@Rock> That's what I needed to know! Thanks. I have an available XP box that must have MSDE installed, since it contains the .Net framework and Visio, both of which (I think) install it. So I can start there and build everything I need there. On a somewhat related issue, what's the best way to go about setting connections to distant servers? a) set up a connection using an IP b) set up a remote server in EM c) some other way that hasn't occurred to me yet -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com] On Behalf Of Francisco H Tapia Sent: February 19, 2003 5:07 PM To: accessd at databaseadvisors.com; dba-SQLServer at databaseadvisors.com Subject: [dba-SQLServer]Re: MSDE and SQL Server WAS: (dba-SQL down?) No. You can install a full blown version of SQL Server over an existing copy of MSDE but then whenever you decide to uninstall you won't be able to... hehehe thanks MS. If you want to test out the throttled connections you'll have to install MSDE on another box. -Francisco http://rcm.netfirms.com ----- Original Message ----- From: "Arthur Fuller" To: Sent: Wednesday, February 19, 2003 1:43 PM Subject: RE: [AccessD] dba-SQL down? : Thanks for the heads-up. : : Let me post the questions here, then, since so many listers are doubled. : : Can you run MSDE on the same box as SQL Server? Simultaneously? If so, : how can you determine which one you're connected to? If so, how can you : specifically target, say, a database residing in MSDE rather than SQL : 2000? : : For reasons I won't detail, I have to provide a package that lets end : users run an MSDE copy on their boxes rather than hooking into the : internet database that is normally used. It's running against my SQL : 2000 install at the moment. I want to put MSDE on and DTS the data there : and then reconnect the ADP to the MSDE database. : : Recipes? Advice? : : : : -----Original Message----- : From: accessd-admin at databaseadvisors.com : [mailto:accessd-admin at databaseadvisors.com] On Behalf Of Wortz, Charles : Sent: February 19, 2003 3:30 PM : To: accessd at databaseadvisors.com : Subject: RE: [AccessD] dba-SQL down? : : : : Arthur, : : : : I've seen messages on it today, but not yours. : : : : Charles Wortz : Software Development Division : Texas Education Agency : 1701 N. Congress Ave : Austin, TX 78701-1494 : 512-463-9493 : CWortz at tea.state.tx.us : (SELECT * FROM users WHERE clue > 0) : : -----Original Message----- : From: Arthur Fuller [mailto:artful at rogers.com] : Sent: Wednesday 2003 Feb 19 14:24 : To: 'AccessD' : Subject: [AccessD] dba-SQL down? : Importance: Low : : I sent a message to dba-SQL earlier today and still haven't seen it : appear - but a couple of dozen messages have appeared in AccessD since : then. Is it down? : : _______________________________________________ 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 Feb 19 16:31:42 2003 From: my.lists at verizon.net (Francisco H Tapia) Date: Wed, 19 Feb 2003 14:31:42 -0800 Subject: [dba-SQLServer]Re: MSDE and SQL Server WAS: (dba-SQL down?) References: <009901c2d865$b6e2ab40$8e01a8c0@Rock> Message-ID: <009801c2d866$adc778f0$b615010a@FHTAPIA> I'm not sure what you mean by connections to distant servers... if you mean managed via EM, then yeah that would be my preferred choice, because you can manage users and other mundane database tasks. Unless of course you mean Remote Server, as in a remote server link (as in Linked Server). My question is, if you are seperating tasks accross servers, then that makes sense, otherwise... ?huh? ;o) -Francisco http://rcm.netfirms.com ----- Original Message ----- From: "Arthur Fuller" To: Sent: Wednesday, February 19, 2003 2:24 PM Subject: RE: [dba-SQLServer]Re: MSDE and SQL Server WAS: (dba-SQL down?) : That's what I needed to know! Thanks. I have an available XP box that must : have MSDE installed, since it contains the .Net framework and Visio, both of : which (I think) install it. So I can start there and build everything I need : there. : On a somewhat related issue, what's the best way to go about setting : connections to distant servers? : a) set up a connection using an IP : b) set up a remote server in EM : c) some other way that hasn't occurred to me yet : : : -----Original Message----- : From: dba-sqlserver-admin at databaseadvisors.com : [mailto:dba-sqlserver-admin at databaseadvisors.com] On Behalf Of Francisco H : Tapia : Sent: February 19, 2003 5:07 PM : To: accessd at databaseadvisors.com; dba-SQLServer at databaseadvisors.com : Subject: [dba-SQLServer]Re: MSDE and SQL Server WAS: (dba-SQL down?) : : No. You can install a full blown version of SQL Server over an existing : copy of MSDE but then whenever you decide to uninstall you won't be able : to... hehehe thanks MS. If you want to test out the throttled connections : you'll have to install MSDE on another box. : : -Francisco : http://rcm.netfirms.com : ----- Original Message ----- : From: "Arthur Fuller" : To: : Sent: Wednesday, February 19, 2003 1:43 PM : Subject: RE: [AccessD] dba-SQL down? : : : : Thanks for the heads-up. : : : : Let me post the questions here, then, since so many listers are doubled. : : : : Can you run MSDE on the same box as SQL Server? Simultaneously? If so, : : how can you determine which one you're connected to? If so, how can you : : specifically target, say, a database residing in MSDE rather than SQL : : 2000? : : : : For reasons I won't detail, I have to provide a package that lets end : : users run an MSDE copy on their boxes rather than hooking into the : : internet database that is normally used. It's running against my SQL : : 2000 install at the moment. I want to put MSDE on and DTS the data there : : and then reconnect the ADP to the MSDE database. : : : : Recipes? Advice? : : : : : : : : -----Original Message----- : : From: accessd-admin at databaseadvisors.com : : [mailto:accessd-admin at databaseadvisors.com] On Behalf Of Wortz, Charles : : Sent: February 19, 2003 3:30 PM : : To: accessd at databaseadvisors.com : : Subject: RE: [AccessD] dba-SQL down? : : : : : : : : Arthur, : : : : : : : : I've seen messages on it today, but not yours. : : : : : : : : Charles Wortz : : Software Development Division : : Texas Education Agency : : 1701 N. Congress Ave : : Austin, TX 78701-1494 : : 512-463-9493 : : CWortz at tea.state.tx.us : : (SELECT * FROM users WHERE clue > 0) : : : : -----Original Message----- : : From: Arthur Fuller [mailto:artful at rogers.com] : : Sent: Wednesday 2003 Feb 19 14:24 : : To: 'AccessD' : : Subject: [AccessD] dba-SQL down? : : Importance: Low : : : : I sent a message to dba-SQL earlier today and still haven't seen it : : appear - but a couple of dozen messages have appeared in AccessD since : : then. Is it down? : : : : : : : _______________________________________________ : 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 davide at dalyn.co.nz Thu Feb 20 21:14:29 2003 From: davide at dalyn.co.nz (David Emerson) Date: Fri, 21 Feb 2003 16:14:29 +1300 Subject: [dba-SQLServer]Parameters when opening forms Message-ID: <5.2.0.9.0.20030221160119.00b58110@mail.dalyn.co.nz> AXP ADP/SQL2K I have a form (Form2) that can be opened from two separate places in my FE. The first (Form1) requires only a specific customer's records to be viewed in Form2. The second (Form3) requires all customers records to be viewed in Form2. The source is a stored procedure which used a parameter to select the specific customers records. Form1 has the customer showing and when it opens Form2 it sends the CustomerID as an OpenArg to Form2 (eg "@CustIDNo int=992168150"). Form2 then places the OpenArg into its InputParameters property which is used by the stored procedure to only show the current customers records. Fine. The problem is with Form3. This is to open Form2 but show all customer records. I am having problems telling the sproc parameter that it should include all records. Am I tackling the problem the right way or is there a simpler way to do it (for example in mdb's just including or leaving off the WherCondition criteria in DoCmd.OpenForm). Regards David Emerson DALYN Software Ltd 25b Cunliffe St, Johnsonville Wellington, New Zealand Ph/Fax (877) 456-1205 From artful at rogers.com Fri Feb 21 07:53:43 2003 From: artful at rogers.com (Arthur Fuller) Date: Fri, 21 Feb 2003 08:53:43 -0500 Subject: [dba-SQLServer]Parameters when opening forms In-Reply-To: <5.2.0.9.0.20030221160119.00b58110@mail.dalyn.co.nz> Message-ID: <002e01c2d9b0$a5e90ae0$8e01a8c0@Rock> I'm not sure whether I understood you correctly, but I have taken to coding "double-function" sprocs in the following way: CREATE PROCEDURE myProc ( @pk int = 0 ) AS SELECT * FROM someTables WHERE (@pk = 0) OR (someTable.pk = @pk) For all rows, pass a zero in as @pk. For just some, pass any other legitimate value. Incidentally, you can also write the above defaulting @pk to NULL and changing the first test to "@pk IS NULL". Same result. I think this is what you need. Give it a try. Hth, Arthur -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com] On Behalf Of David Emerson Sent: February 20, 2003 10:14 PM To: dba-SQLServer at databaseadvisors.com Subject: [dba-SQLServer]Parameters when opening forms AXP ADP/SQL2K I have a form (Form2) that can be opened from two separate places in my FE. The first (Form1) requires only a specific customer's records to be viewed in Form2. The second (Form3) requires all customers records to be viewed in Form2. The source is a stored procedure which used a parameter to select the specific customers records. Form1 has the customer showing and when it opens Form2 it sends the CustomerID as an OpenArg to Form2 (eg "@CustIDNo int=992168150"). Form2 then places the OpenArg into its InputParameters property which is used by the stored procedure to only show the current customers records. Fine. The problem is with Form3. This is to open Form2 but show all customer records. I am having problems telling the sproc parameter that it should include all records. Am I tackling the problem the right way or is there a simpler way to do it (for example in mdb's just including or leaving off the WherCondition criteria in DoCmd.OpenForm). 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 From my.lists at verizon.net Fri Feb 21 09:54:07 2003 From: my.lists at verizon.net (Francisco H Tapia) Date: Fri, 21 Feb 2003 07:54:07 -0800 Subject: [dba-SQLServer]theRegister: SQL Server developers face huge royalty bills. How many, how much? Message-ID: <000e01c2d9c1$77e13a80$b615010a@FHTAPIA> Wow, According to this MS is going to have to fork over quite a bunch of money for patent license problems with Timeline... anyone else following the story? http://www.theregister.co.uk/content/53/29419.html -Francisco http://rcm.netfirms.com From jcolby at colbyconsulting.com Fri Feb 21 10:21:52 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Fri, 21 Feb 2003 11:21:52 -0500 Subject: [dba-SQLServer]theRegister: SQL Server developers face huge royalty bills. How many, how much? In-Reply-To: <000e01c2d9c1$77e13a80$b615010a@FHTAPIA> Message-ID: According to my reading, YOU are going to have to fork over a lot of money. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of Francisco H Tapia Sent: Friday, February 21, 2003 10:54 AM To: dba-SQLServer at databaseadvisors.com Subject: [dba-SQLServer]theRegister: SQL Server developers face huge royalty bills. How many, how much? Wow, According to this MS is going to have to fork over quite a bunch of money for patent license problems with Timeline... anyone else following the story? http://www.theregister.co.uk/content/53/29419.html -Francisco http://rcm.netfirms.com _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com ---------------------------------------------------- Is email taking over your day? Manage your time with eMailBoss. Try it free! http://www.eMailBoss.com -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 2116 bytes Desc: not available URL: From Robert.Djabarov at usaa.com Fri Feb 21 10:29:22 2003 From: Robert.Djabarov at usaa.com (Djabarov, Robert) Date: Fri, 21 Feb 2003 10:29:22 -0600 Subject: [dba-SQLServer]theRegister: SQL Server developers face huge royalty bills. How many, how much? Message-ID: <5A31F89EC4C79B49B5030FF2EF58E9D24EC755@ex02.eagle.usaa.com> So where would we find that combination of products that would constitute an infringement? ______________________________________________________ Robert Djabarov Certified MS SQL Server DBA Certified MS SQL Server Programmer Certified MS VB Programmer ? (210) 913-3148 - phone ? (210) 753-3148 - pager -----Original Message----- From: Francisco H Tapia [mailto:my.lists at verizon.net] Sent: Friday, February 21, 2003 9:54 AM To: dba-SQLServer at databaseadvisors.com Subject: [dba-SQLServer]theRegister: SQL Server developers face huge royalty bills. How many, how much? Wow, According to this MS is going to have to fork over quite a bunch of money for patent license problems with Timeline... anyone else following the story? http://www.theregister.co.uk/content/53/29419.html -Francisco http://rcm.netfirms.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 Feb 21 10:44:12 2003 From: my.lists at verizon.net (Francisco H Tapia) Date: Fri, 21 Feb 2003 08:44:12 -0800 Subject: [dba-SQLServer]theRegister: SQL Server developers face huge royalty bills. How many, how much? References: Message-ID: <002801c2d9c8$772141b0$b615010a@FHTAPIA> And as a consolation prize, I can in turn sue MS for not having disclosed accurate information. sheesh... -Francisco http://rcm.netfirms.com ----- Original Message ----- From: "John W. Colby" To: Sent: Friday, February 21, 2003 8:21 AM Subject: RE: [dba-SQLServer]theRegister: SQL Server developers face huge royalty bills. How many, how much? : According to my reading, YOU are going to have to fork over a lot of money. : : John W. Colby : Colby Consulting : www.ColbyConsulting.com : : -----Original Message----- : From: dba-sqlserver-admin at databaseadvisors.com : [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of Francisco : H Tapia : Sent: Friday, February 21, 2003 10:54 AM : To: dba-SQLServer at databaseadvisors.com : Subject: [dba-SQLServer]theRegister: SQL Server developers face huge : royalty bills. How many, how much? : : : Wow, : According to this MS is going to have to fork over quite a bunch of : money for patent license problems with Timeline... anyone else following the : story? : http://www.theregister.co.uk/content/53/29419.html : : -Francisco : http://rcm.netfirms.com : : : _______________________________________________ : dba-SQLServer mailing list : dba-SQLServer at databaseadvisors.com : http://databaseadvisors.com/mailman/listinfo/dba-sqlserver : http://www.databaseadvisors.com : : : : : ---------------------------------------------------- : Is email taking over your day? Manage your time with eMailBoss. : Try it free! http://www.eMailBoss.com : From CWortz at tea.state.tx.us Fri Feb 21 10:52:36 2003 From: CWortz at tea.state.tx.us (Wortz, Charles) Date: Fri, 21 Feb 2003 10:52:36 -0600 Subject: [dba-SQLServer]theRegister: SQL Server developers face huge royalty bills. How many, how much? Message-ID: Francisco, But you did agree to their license agreement. Read the fine print and you will see that M$ has put the onus on you, and they claim to be blameless. Charles Wortz Software Development Division Texas Education Agency 1701 N. Congress Ave Austin, TX 78701-1494 512-463-9493 CWortz at tea.state.tx.us (SELECT * FROM users WHERE clue > 0) -----Original Message----- From: Francisco H Tapia [mailto:my.lists at verizon.net] Sent: Friday 2003 Feb 21 10:44 To: dba-sqlserver at databaseadvisors.com Subject: Re: [dba-SQLServer]theRegister: SQL Server developers face huge royalty bills. How many, how much? And as a consolation prize, I can in turn sue MS for not having disclosed accurate information. sheesh... -Francisco http://rcm.netfirms.com ----- Original Message ----- From: "John W. Colby" To: Sent: Friday, February 21, 2003 8:21 AM Subject: RE: [dba-SQLServer]theRegister: SQL Server developers face huge royalty bills. How many, how much? : According to my reading, YOU are going to have to fork over a lot of money. : : John W. Colby : Colby Consulting : www.ColbyConsulting.com : : -----Original Message----- : From: dba-sqlserver-admin at databaseadvisors.com : [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of Francisco : H Tapia : Sent: Friday, February 21, 2003 10:54 AM : To: dba-SQLServer at databaseadvisors.com : Subject: [dba-SQLServer]theRegister: SQL Server developers face huge : royalty bills. How many, how much? : : : Wow, : According to this MS is going to have to fork over quite a bunch of : money for patent license problems with Timeline... anyone else following the : story? : http://www.theregister.co.uk/content/53/29419.html : : -Francisco : http://rcm.netfirms.com From jcolby at colbyconsulting.com Fri Feb 21 10:54:45 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Fri, 21 Feb 2003 11:54:45 -0500 Subject: [dba-SQLServer]theRegister: SQL Server developers face huge royalty bills. How many, how much? In-Reply-To: <002801c2d9c8$772141b0$b615010a@FHTAPIA> Message-ID: Yea. The problem with suing MS is they have about 1,000 lawyers that work on their stuff 24/7, with a budget of 200m / year. And your legal budget is??? John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of Francisco H Tapia Sent: Friday, February 21, 2003 11:44 AM To: dba-sqlserver at databaseadvisors.com Subject: Re: [dba-SQLServer]theRegister: SQL Server developers face huge royalty bills. How many, how much? And as a consolation prize, I can in turn sue MS for not having disclosed accurate information. sheesh... -Francisco http://rcm.netfirms.com ----- Original Message ----- From: "John W. Colby" To: Sent: Friday, February 21, 2003 8:21 AM Subject: RE: [dba-SQLServer]theRegister: SQL Server developers face huge royalty bills. How many, how much? : According to my reading, YOU are going to have to fork over a lot of money. : : John W. Colby : Colby Consulting : www.ColbyConsulting.com : : -----Original Message----- : From: dba-sqlserver-admin at databaseadvisors.com : [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of Francisco : H Tapia : Sent: Friday, February 21, 2003 10:54 AM : To: dba-SQLServer at databaseadvisors.com : Subject: [dba-SQLServer]theRegister: SQL Server developers face huge : royalty bills. How many, how much? : : : Wow, : According to this MS is going to have to fork over quite a bunch of : money for patent license problems with Timeline... anyone else following the : story? : http://www.theregister.co.uk/content/53/29419.html : : -Francisco : http://rcm.netfirms.com : : : _______________________________________________ : dba-SQLServer mailing list : dba-SQLServer at databaseadvisors.com : http://databaseadvisors.com/mailman/listinfo/dba-sqlserver : http://www.databaseadvisors.com : : : : : ---------------------------------------------------- : Is email taking over your day? Manage your time with eMailBoss. : Try it free! http://www.eMailBoss.com : _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com ---------------------------------------------------- Is email taking over your day? Manage your time with eMailBoss. Try it free! http://www.eMailBoss.com -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 2564 bytes Desc: not available URL: From my.lists at verizon.net Fri Feb 21 10:58:15 2003 From: my.lists at verizon.net (Francisco H Tapia) Date: Fri, 21 Feb 2003 08:58:15 -0800 Subject: [dba-SQLServer]theRegister: SQL Server developers face huge royalty bills. How many, how much? References: Message-ID: <004001c2d9ca$6de06980$b615010a@FHTAPIA> Well any SQL Server developer really ;o). According to the story the SQL Server developers, will be able to inturn sue MS for this lack of information, or mis-information... :-S -Francisco http://rcm.netfirms.com ----- Original Message ----- From: "Wortz, Charles" To: Sent: Friday, February 21, 2003 8:52 AM Subject: RE: [dba-SQLServer]theRegister: SQL Server developers face huge royalty bills. How many, how much? : Francisco, : : But you did agree to their license agreement. Read the fine print and : you will see that M$ has put the onus on you, and they claim to be : blameless. : : Charles Wortz : Software Development Division : Texas Education Agency : 1701 N. Congress Ave : Austin, TX 78701-1494 : 512-463-9493 : CWortz at tea.state.tx.us : (SELECT * FROM users WHERE clue > 0) : : : -----Original Message----- : From: Francisco H Tapia [mailto:my.lists at verizon.net] : Sent: Friday 2003 Feb 21 10:44 : To: dba-sqlserver at databaseadvisors.com : Subject: Re: [dba-SQLServer]theRegister: SQL Server developers face huge : royalty bills. How many, how much? : : : And as a consolation prize, I can in turn sue MS for not having : disclosed accurate information. sheesh... -Francisco : http://rcm.netfirms.com : ----- Original Message ----- : From: "John W. Colby" : To: : Sent: Friday, February 21, 2003 8:21 AM : Subject: RE: [dba-SQLServer]theRegister: SQL Server developers face huge : royalty bills. How many, how much? : : : : According to my reading, YOU are going to have to fork over a lot of : money. : : : : John W. Colby : : Colby Consulting : : www.ColbyConsulting.com : : : : -----Original Message----- : : From: dba-sqlserver-admin at databaseadvisors.com : : [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of : Francisco : : H Tapia : : Sent: Friday, February 21, 2003 10:54 AM : : To: dba-SQLServer at databaseadvisors.com : : Subject: [dba-SQLServer]theRegister: SQL Server developers face huge : : royalty bills. How many, how much? : : : : : : Wow, : : According to this MS is going to have to fork over quite a bunch : of : : money for patent license problems with Timeline... anyone else : following the : : story? : : http://www.theregister.co.uk/content/53/29419.html : : : : -Francisco : : http://rcm.netfirms.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 Feb 21 10:59:54 2003 From: my.lists at verizon.net (Francisco H Tapia) Date: Fri, 21 Feb 2003 08:59:54 -0800 Subject: [dba-SQLServer]theRegister: SQL Server developers face huge royalty bills. How many, how much? References: Message-ID: <005001c2d9ca$a8537c60$b615010a@FHTAPIA> I imagine that if anything does come down it will probably be something along the lines of a class-action suit by a group of sqlServer developers... then again big 'brand' companies may choose to sue MS, and with anything set forth in presedent, the little guy can possibly get their come-upins ;o) No? -Francisco http://rcm.netfirms.com ----- Original Message ----- From: "John W. Colby" To: Sent: Friday, February 21, 2003 8:54 AM Subject: RE: [dba-SQLServer]theRegister: SQL Server developers face huge royalty bills. How many, how much? : Yea. The problem with suing MS is they have about 1,000 lawyers that work : on their stuff 24/7, with a budget of 200m / year. : : And your legal budget is??? : : John W. Colby : Colby Consulting : www.ColbyConsulting.com : : -----Original Message----- : From: dba-sqlserver-admin at databaseadvisors.com : [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of Francisco : H Tapia : Sent: Friday, February 21, 2003 11:44 AM : To: dba-sqlserver at databaseadvisors.com : Subject: Re: [dba-SQLServer]theRegister: SQL Server developers face huge : royalty bills. How many, how much? : : : And as a consolation prize, I can in turn sue MS for not having disclosed : accurate information. sheesh... : -Francisco : http://rcm.netfirms.com : ----- Original Message ----- : From: "John W. Colby" : To: : Sent: Friday, February 21, 2003 8:21 AM : Subject: RE: [dba-SQLServer]theRegister: SQL Server developers face huge : royalty bills. How many, how much? : : : : According to my reading, YOU are going to have to fork over a lot of : money. : : : : John W. Colby : : Colby Consulting : : www.ColbyConsulting.com : : : : -----Original Message----- : : From: dba-sqlserver-admin at databaseadvisors.com : : [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of Francisco : : H Tapia : : Sent: Friday, February 21, 2003 10:54 AM : : To: dba-SQLServer at databaseadvisors.com : : Subject: [dba-SQLServer]theRegister: SQL Server developers face huge : : royalty bills. How many, how much? : : : : : : Wow, : : According to this MS is going to have to fork over quite a bunch of : : money for patent license problems with Timeline... anyone else following : the : : story? : : http://www.theregister.co.uk/content/53/29419.html : : : : -Francisco : : http://rcm.netfirms.com : : : : : : _______________________________________________ : : dba-SQLServer mailing list : : dba-SQLServer at databaseadvisors.com : : http://databaseadvisors.com/mailman/listinfo/dba-sqlserver : : http://www.databaseadvisors.com : : : : : : : : : : ---------------------------------------------------- : : Is email taking over your day? Manage your time with eMailBoss. : : Try it free! http://www.eMailBoss.com : : : : : _______________________________________________ : dba-SQLServer mailing list : dba-SQLServer at databaseadvisors.com : http://databaseadvisors.com/mailman/listinfo/dba-sqlserver : http://www.databaseadvisors.com : : : : : ---------------------------------------------------- : Is email taking over your day? Manage your time with eMailBoss. : Try it free! http://www.eMailBoss.com : From my.lists at verizon.net Fri Feb 21 13:18:44 2003 From: my.lists at verizon.net (Francisco H Tapia) Date: Fri, 21 Feb 2003 11:18:44 -0800 Subject: [dba-SQLServer]Rolling back a transaction log? Message-ID: <00c401c2d9de$0da501c0$b615010a@FHTAPIA> Well it finally happened... We have a Complaint database that runs in conjunction with a goldmine database. The Goldmine database tracks outgoing calls made by our company to customers in order to track sales leads and now complaints. Since 4/1/2002 we have not had a database error or hiccup until now. The company's official DBA, while working on a development database on the production server (yes, that's right) inadvertently wiped out my database instead of his test one this morning, The users of the Complaint db suddenly began to complaining that there were no records, and upon checking I found this to be the case. I backup every night, and I have the log file backup when it reaches 60%. BUT. I did not have *ANY* protection for the moments before the wipe out. Initially I panicked about not being able to kick the users out quickly enough... I didn't bother to *remember* that I had a Kill All Users In Db script. So about 10 minutes later (after kicking all the users out) I restored the database back to last log backup, but that was not good as it had the transactions that wiped out the database. SO I had to restore to last nights copy officially killing all entries from 10am and prior. :( I've secured my script for killing Active Users in the DB. And My boss knows *who* wiped out the database, in fact I made sure he knew as soon as it happened ... maybe that's not a good political move, but I'm in charge of the db. Now the question is... Since the log file is only 1meg long and on average it doesn't backup the log for perhaps every 2 to 3 days... (I do make a full backup every night). I suppose I could manage the backups to include incremental changes every hr, so that as little data is lost? What do you guys suggest? -Francisco http://rcm.netfirms.com From CWortz at tea.state.tx.us Fri Feb 21 13:34:06 2003 From: CWortz at tea.state.tx.us (Wortz, Charles) Date: Fri, 21 Feb 2003 13:34:06 -0600 Subject: [dba-SQLServer]Rolling back a transaction log? Message-ID: Francisco, How frequently you backup is dependent on how valuable is the lost data. If you can afford to lose a day's worth of data, or if you can easily recreate the day's worth of data, then you backup daily. If you can afford to lose an hour's worth of data, or if you can easily recreate the hour's worth of data, then you backup hourly. If you cannot afford to lose any data, then you mirror your database. Charles Wortz Software Development Division Texas Education Agency 1701 N. Congress Ave Austin, TX 78701-1494 512-463-9493 CWortz at tea.state.tx.us (SELECT * FROM users WHERE clue > 0) -----Original Message----- From: Francisco H Tapia [mailto:my.lists at verizon.net] Sent: Friday 2003 Feb 21 13:19 To: dba-SQLServer at databaseadvisors.com; sswug-sql2k at topica.com Subject: [dba-SQLServer]Rolling back a transaction log? Well it finally happened... We have a Complaint database that runs in conjunction with a goldmine database. The Goldmine database tracks outgoing calls made by our company to customers in order to track sales leads and now complaints. Since 4/1/2002 we have not had a database error or hiccup until now. The company's official DBA, while working on a development database on the production server (yes, that's right) inadvertently wiped out my database instead of his test one this morning, The users of the Complaint db suddenly began to complaining that there were no records, and upon checking I found this to be the case. I backup every night, and I have the log file backup when it reaches 60%. BUT. I did not have *ANY* protection for the moments before the wipe out. Initially I panicked about not being able to kick the users out quickly enough... I didn't bother to *remember* that I had a Kill All Users In Db script. So about 10 minutes later (after kicking all the users out) I restored the database back to last log backup, but that was not good as it had the transactions that wiped out the database. SO I had to restore to last nights copy officially killing all entries from 10am and prior. :( I've secured my script for killing Active Users in the DB. And My boss knows *who* wiped out the database, in fact I made sure he knew as soon as it happened ... maybe that's not a good political move, but I'm in charge of the db. Now the question is... Since the log file is only 1meg long and on average it doesn't backup the log for perhaps every 2 to 3 days... (I do make a full backup every night). I suppose I could manage the backups to include incremental changes every hr, so that as little data is lost? What do you guys suggest? -Francisco http://rcm.netfirms.com From jcolby at colbyconsulting.com Fri Feb 21 13:47:24 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Fri, 21 Feb 2003 14:47:24 -0500 Subject: [dba-SQLServer]Rolling back a transaction log? In-Reply-To: Message-ID: Would mirroring really help if someone intentionally deletes it? Wouldn't the mirror be deleted as well? John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of Wortz, Charles Sent: Friday, February 21, 2003 2:34 PM To: dba-sqlserver at databaseadvisors.com; sswug-sql2k at topica.com Subject: RE: [dba-SQLServer]Rolling back a transaction log? Francisco, How frequently you backup is dependent on how valuable is the lost data. If you can afford to lose a day's worth of data, or if you can easily recreate the day's worth of data, then you backup daily. If you can afford to lose an hour's worth of data, or if you can easily recreate the hour's worth of data, then you backup hourly. If you cannot afford to lose any data, then you mirror your database. Charles Wortz Software Development Division Texas Education Agency 1701 N. Congress Ave Austin, TX 78701-1494 512-463-9493 CWortz at tea.state.tx.us (SELECT * FROM users WHERE clue > 0) -----Original Message----- From: Francisco H Tapia [mailto:my.lists at verizon.net] Sent: Friday 2003 Feb 21 13:19 To: dba-SQLServer at databaseadvisors.com; sswug-sql2k at topica.com Subject: [dba-SQLServer]Rolling back a transaction log? Well it finally happened... We have a Complaint database that runs in conjunction with a goldmine database. The Goldmine database tracks outgoing calls made by our company to customers in order to track sales leads and now complaints. Since 4/1/2002 we have not had a database error or hiccup until now. The company's official DBA, while working on a development database on the production server (yes, that's right) inadvertently wiped out my database instead of his test one this morning, The users of the Complaint db suddenly began to complaining that there were no records, and upon checking I found this to be the case. I backup every night, and I have the log file backup when it reaches 60%. BUT. I did not have *ANY* protection for the moments before the wipe out. Initially I panicked about not being able to kick the users out quickly enough... I didn't bother to *remember* that I had a Kill All Users In Db script. So about 10 minutes later (after kicking all the users out) I restored the database back to last log backup, but that was not good as it had the transactions that wiped out the database. SO I had to restore to last nights copy officially killing all entries from 10am and prior. :( I've secured my script for killing Active Users in the DB. And My boss knows *who* wiped out the database, in fact I made sure he knew as soon as it happened ... maybe that's not a good political move, but I'm in charge of the db. Now the question is... Since the log file is only 1meg long and on average it doesn't backup the log for perhaps every 2 to 3 days... (I do make a full backup every night). I suppose I could manage the backups to include incremental changes every hr, so that as little data is lost? What do you guys suggest? -Francisco http://rcm.netfirms.com _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com ---------------------------------------------------- Is email taking over your day? Manage your time with eMailBoss. Try it free! http://www.eMailBoss.com -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 3544 bytes Desc: not available URL: From CWortz at tea.state.tx.us Fri Feb 21 13:59:40 2003 From: CWortz at tea.state.tx.us (Wortz, Charles) Date: Fri, 21 Feb 2003 13:59:40 -0600 Subject: [dba-SQLServer]Rolling back a transaction log? Message-ID: John, There is not much you can do if you have a DBA that intentionally deletes both copies of a file. But the mirror gives a real-time backup which may solve half of Francisco's problem. The other half will have to be taken care of by the DBA's boss. Unless you only have one server, even a bloody idiot knows better than to have both development and production on the same server. Charles Wortz Software Development Division Texas Education Agency 1701 N. Congress Ave Austin, TX 78701-1494 512-463-9493 CWortz at tea.state.tx.us (SELECT * FROM users WHERE clue > 0) > -----Original Message----- > From: dba-sqlserver-admin at databaseadvisors.com > [mailto:dba-sqlserver-admin at databaseadvisors.com] On Behalf Of John > W. Colby > Sent: Friday 2003 Feb 21 13:47 > To: dba-sqlserver at databaseadvisors.com > Subject: RE: [dba-SQLServer]Rolling back a transaction log? > > Would mirroring really help if someone intentionally deletes it? > Wouldn't the mirror be deleted as well? > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: dba-sqlserver-admin at databaseadvisors.com > [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of Wortz, > Charles > Sent: Friday, February 21, 2003 2:34 PM > To: dba-sqlserver at databaseadvisors.com; sswug-sql2k at topica.com > Subject: RE: [dba-SQLServer]Rolling back a transaction log? > > > Francisco, > > How frequently you backup is dependent on how valuable is the lost > data. > If you can afford to lose a day's worth of data, or if you can easily > recreate the day's worth of data, then you backup daily. If you can > afford to lose an hour's worth of data, or if you can easily recreate > the hour's worth of data, then you backup hourly. If you cannot > afford > to lose any data, then you mirror your database. > > Charles Wortz > Software Development Division > Texas Education Agency > 1701 N. Congress Ave > Austin, TX 78701-1494 > 512-463-9493 > CWortz at tea.state.tx.us > (SELECT * FROM users WHERE clue > 0) > > > -----Original Message----- > From: Francisco H Tapia [mailto:my.lists at verizon.net] > Sent: Friday 2003 Feb 21 13:19 > To: dba-SQLServer at databaseadvisors.com; sswug-sql2k at topica.com > Subject: [dba-SQLServer]Rolling back a transaction log? > > > Well it finally happened... We have a Complaint database that runs in > conjunction with a goldmine database. The Goldmine database tracks > outgoing calls made by our company to customers in order to track > sales > leads and now complaints. Since 4/1/2002 we have not had a database > error or hiccup until now. The company's official DBA, while working > on > a development database on the production server (yes, that's right) > inadvertently wiped out my database instead of his test one this > morning, The users of the Complaint db suddenly began to complaining > that there were no records, and upon checking I found this to be the > case. I backup every night, and I have the log file backup when it > reaches 60%. BUT. I did not have *ANY* protection for the moments > before the wipe out. Initially I panicked about not being able to > kick > the users out quickly enough... I didn't bother to *remember* that I > had > a Kill All Users In Db script. So about 10 minutes later (after > kicking > all the users out) I restored the database back to last log backup, > but > that was not good as it had the transactions that wiped out the > database. SO I had to restore to last nights copy officially killing > all entries from 10am and prior. :( > > I've secured my script for killing Active Users in the DB. And My > boss > knows *who* wiped out the database, in fact I made sure he knew as > soon > as it happened ... maybe that's not a good political move, but I'm in > charge of the db. Now the question is... Since the log file is only > 1meg long and on average it doesn't backup the log for perhaps every 2 > to 3 days... (I do make a full backup every night). I suppose I could > manage the backups to include incremental changes every hr, so that as > little data is lost? What do you guys suggest? > > > -Francisco > http://rcm.netfirms.com > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcolby at colbyconsulting.com Fri Feb 21 14:07:07 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Fri, 21 Feb 2003 15:07:07 -0500 Subject: [dba-SQLServer]Rolling back a transaction log? In-Reply-To: Message-ID: RE: [dba-SQLServer]Rolling back a transaction log?Charles, >But the mirror gives a real-time backup which may solve half of Francisco's problem. Yea, but these (mirrors) are for situations where a disk dies etc. If you intentionally delete something, the mirror is supposed to immediately write that delete to the mirrored drive as well (isn't it?). John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of Wortz, Charles Sent: Friday, February 21, 2003 3:00 PM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]Rolling back a transaction log? John, There is not much you can do if you have a DBA that intentionally deletes both copies of a file. But the mirror gives a real-time backup which may solve half of Francisco's problem. The other half will have to be taken care of by the DBA's boss. Unless you only have one server, even a bloody idiot knows better than to have both development and production on the same server. Charles Wortz Software Development Division Texas Education Agency 1701 N. Congress Ave Austin, TX 78701-1494 512-463-9493 CWortz at tea.state.tx.us (SELECT * FROM users WHERE clue > 0) -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com] On Behalf Of John W. Colby Sent: Friday 2003 Feb 21 13:47 To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]Rolling back a transaction log? Would mirroring really help if someone intentionally deletes it? Wouldn't the mirror be deleted as well? John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of Wortz, Charles Sent: Friday, February 21, 2003 2:34 PM To: dba-sqlserver at databaseadvisors.com; sswug-sql2k at topica.com Subject: RE: [dba-SQLServer]Rolling back a transaction log? Francisco, How frequently you backup is dependent on how valuable is the lost data. If you can afford to lose a day's worth of data, or if you can easily recreate the day's worth of data, then you backup daily. If you can afford to lose an hour's worth of data, or if you can easily recreate the hour's worth of data, then you backup hourly. If you cannot afford to lose any data, then you mirror your database. Charles Wortz Software Development Division Texas Education Agency 1701 N. Congress Ave Austin, TX 78701-1494 512-463-9493 CWortz at tea.state.tx.us (SELECT * FROM users WHERE clue > 0) -----Original Message----- From: Francisco H Tapia [mailto:my.lists at verizon.net] Sent: Friday 2003 Feb 21 13:19 To: dba-SQLServer at databaseadvisors.com; sswug-sql2k at topica.com Subject: [dba-SQLServer]Rolling back a transaction log? Well it finally happened... We have a Complaint database that runs in conjunction with a goldmine database. The Goldmine database tracks outgoing calls made by our company to customers in order to track sales leads and now complaints. Since 4/1/2002 we have not had a database error or hiccup until now. The company's official DBA, while working on a development database on the production server (yes, that's right) inadvertently wiped out my database instead of his test one this morning, The users of the Complaint db suddenly began to complaining that there were no records, and upon checking I found this to be the case. I backup every night, and I have the log file backup when it reaches 60%. BUT. I did not have *ANY* protection for the moments before the wipe out. Initially I panicked about not being able to kick the users out quickly enough... I didn't bother to *remember* that I had a Kill All Users In Db script. So about 10 minutes later (after kicking all the users out) I restored the database back to last log backup, but that was not good as it had the transactions that wiped out the database. SO I had to restore to last nights copy officially killing all entries from 10am and prior. :( I've secured my script for killing Active Users in the DB. And My boss knows *who* wiped out the database, in fact I made sure he knew as soon as it happened ... maybe that's not a good political move, but I'm in charge of the db. Now the question is... Since the log file is only 1meg long and on average it doesn't backup the log for perhaps every 2 to 3 days... (I do make a full backup every night). I suppose I could manage the backups to include incremental changes every hr, so that as little data is lost? What do you guys suggest? -Francisco http://rcm.netfirms.com ---------------------------------------------------------------------------- ---- Is email taking over your day? Manage your time with eMailBoss. Try it free! http://www.eMailBoss.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From CWortz at tea.state.tx.us Fri Feb 21 14:17:40 2003 From: CWortz at tea.state.tx.us (Wortz, Charles) Date: Fri, 21 Feb 2003 14:17:40 -0600 Subject: [dba-SQLServer]Rolling back a transaction log? Message-ID: John, This is not an area where I claim any expertise. What I know is every transaction written to the main db is also supposed to be written to its mirror. How they resync them after one goes down is not something I have had to worry about. There may be others on this list that can speak to that. Charles Wortz Software Development Division Texas Education Agency 1701 N. Congress Ave Austin, TX 78701-1494 512-463-9493 CWortz at tea.state.tx.us (SELECT * FROM users WHERE clue > 0) -----Original Message----- From: John W. Colby [mailto:jcolby at colbyconsulting.com] Sent: Friday 2003 Feb 21 14:07 To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]Rolling back a transaction log? Charles, >But the mirror gives a real-time backup which may solve half of Francisco's problem. Yea, but these (mirrors) are for situations where a disk dies etc. If you intentionally delete something, the mirror is supposed to immediately write that delete to the mirrored drive as well (isn't it?). John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of Wortz, Charles Sent: Friday, February 21, 2003 3:00 PM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]Rolling back a transaction log? John, There is not much you can do if you have a DBA that intentionally deletes both copies of a file. But the mirror gives a real-time backup which may solve half of Francisco's problem. The other half will have to be taken care of by the DBA's boss. Unless you only have one server, even a bloody idiot knows better than to have both development and production on the same server. Charles Wortz -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com ] On Behalf Of John W. Colby Sent: Friday 2003 Feb 21 13:47 To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]Rolling back a transaction log? Would mirroring really help if someone intentionally deletes it? Wouldn't the mirror be deleted as well? John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of Wortz, Charles Sent: Friday, February 21, 2003 2:34 PM To: dba-sqlserver at databaseadvisors.com; sswug-sql2k at topica.com Subject: RE: [dba-SQLServer]Rolling back a transaction log? Francisco, How frequently you backup is dependent on how valuable is the lost data. If you can afford to lose a day's worth of data, or if you can easily recreate the day's worth of data, then you backup daily. If you can afford to lose an hour's worth of data, or if you can easily recreate the hour's worth of data, then you backup hourly. If you cannot afford to lose any data, then you mirror your database. Charles Wortz -----Original Message----- From: Francisco H Tapia [mailto:my.lists at verizon.net ] Sent: Friday 2003 Feb 21 13:19 To: dba-SQLServer at databaseadvisors.com; sswug-sql2k at topica.com Subject: [dba-SQLServer]Rolling back a transaction log? Well it finally happened... We have a Complaint database that runs in conjunction with a goldmine database. The Goldmine database tracks outgoing calls made by our company to customers in order to track sales leads and now complaints. Since 4/1/2002 we have not had a database error or hiccup until now. The company's official DBA, while working on a development database on the production server (yes, that's right) inadvertently wiped out my database instead of his test one this morning, The users of the Complaint db suddenly began to complaining that there were no records, and upon checking I found this to be the case. I backup every night, and I have the log file backup when it reaches 60%. BUT. I did not have *ANY* protection for the moments before the wipe out. Initially I panicked about not being able to kick the users out quickly enough... I didn't bother to *remember* that I had a Kill All Users In Db script. So about 10 minutes later (after kicking all the users out) I restored the database back to last log backup, but that was not good as it had the transactions that wiped out the database. SO I had to restore to last nights copy officially killing all entries from 10am and prior. :( I've secured my script for killing Active Users in the DB. And My boss knows *who* wiped out the database, in fact I made sure he knew as soon as it happened ... maybe that's not a good political move, but I'm in charge of the db. Now the question is... Since the log file is only 1meg long and on average it doesn't backup the log for perhaps every 2 to 3 days... (I do make a full backup every night). I suppose I could manage the backups to include incremental changes every hr, so that as little data is lost? What do you guys suggest? -Francisco http://rcm.netfirms.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From my.lists at verizon.net Fri Feb 21 15:09:36 2003 From: my.lists at verizon.net (Francisco H Tapia) Date: Fri, 21 Feb 2003 13:09:36 -0800 Subject: [dba-SQLServer]Rolling back a transaction log? References: Message-ID: <00df01c2d9ed$8aa5e680$b615010a@FHTAPIA> Thanks for the advise Charles. This database for the most part had been running well for almost a year before our DBA accidentally deleted everything from the production db. I did warn him against placing the development copy of the db on the same server.. .he advised me that he would be careful. Other than running to my boss to cry fowl. He has learned a valuable lesson, I am glad that not too many hours of work had been lost, (just 2). but in those 2 hours, only a few records were affected... I have updated the maintenance to backup up to the last hour. In any case it looks like I would have to go diving into the transaction log for the last checkpoint and undoing the delete statements... -Francisco http://rcm.netfirms.com ----- Original Message ----- From: "Wortz, Charles" To: Sent: Friday, February 21, 2003 12:17 PM Subject: RE: [dba-SQLServer]Rolling back a transaction log? John, This is not an area where I claim any expertise. What I know is every transaction written to the main db is also supposed to be written to its mirror. How they resync them after one goes down is not something I have had to worry about. There may be others on this list that can speak to that. Charles Wortz Software Development Division Texas Education Agency 1701 N. Congress Ave Austin, TX 78701-1494 512-463-9493 CWortz at tea.state.tx.us (SELECT * FROM users WHERE clue > 0) -----Original Message----- From: John W. Colby [mailto:jcolby at colbyconsulting.com] Sent: Friday 2003 Feb 21 14:07 To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]Rolling back a transaction log? Charles, >But the mirror gives a real-time backup which may solve half of Francisco's problem. Yea, but these (mirrors) are for situations where a disk dies etc. If you intentionally delete something, the mirror is supposed to immediately write that delete to the mirrored drive as well (isn't it?). John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of Wortz, Charles Sent: Friday, February 21, 2003 3:00 PM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]Rolling back a transaction log? John, There is not much you can do if you have a DBA that intentionally deletes both copies of a file. But the mirror gives a real-time backup which may solve half of Francisco's problem. The other half will have to be taken care of by the DBA's boss. Unless you only have one server, even a bloody idiot knows better than to have both development and production on the same server. Charles Wortz -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com ] On Behalf Of John W. Colby Sent: Friday 2003 Feb 21 13:47 To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]Rolling back a transaction log? Would mirroring really help if someone intentionally deletes it? Wouldn't the mirror be deleted as well? John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of Wortz, Charles Sent: Friday, February 21, 2003 2:34 PM To: dba-sqlserver at databaseadvisors.com; sswug-sql2k at topica.com Subject: RE: [dba-SQLServer]Rolling back a transaction log? Francisco, How frequently you backup is dependent on how valuable is the lost data. If you can afford to lose a day's worth of data, or if you can easily recreate the day's worth of data, then you backup daily. If you can afford to lose an hour's worth of data, or if you can easily recreate the hour's worth of data, then you backup hourly. If you cannot afford to lose any data, then you mirror your database. Charles Wortz -----Original Message----- From: Francisco H Tapia [mailto:my.lists at verizon.net ] Sent: Friday 2003 Feb 21 13:19 To: dba-SQLServer at databaseadvisors.com; sswug-sql2k at topica.com Subject: [dba-SQLServer]Rolling back a transaction log? Well it finally happened... We have a Complaint database that runs in conjunction with a goldmine database. The Goldmine database tracks outgoing calls made by our company to customers in order to track sales leads and now complaints. Since 4/1/2002 we have not had a database error or hiccup until now. The company's official DBA, while working on a development database on the production server (yes, that's right) inadvertently wiped out my database instead of his test one this morning, The users of the Complaint db suddenly began to complaining that there were no records, and upon checking I found this to be the case. I backup every night, and I have the log file backup when it reaches 60%. BUT. I did not have *ANY* protection for the moments before the wipe out. Initially I panicked about not being able to kick the users out quickly enough... I didn't bother to *remember* that I had a Kill All Users In Db script. So about 10 minutes later (after kicking all the users out) I restored the database back to last log backup, but that was not good as it had the transactions that wiped out the database. SO I had to restore to last nights copy officially killing all entries from 10am and prior. :( I've secured my script for killing Active Users in the DB. And My boss knows *who* wiped out the database, in fact I made sure he knew as soon as it happened ... maybe that's not a good political move, but I'm in charge of the db. Now the question is... Since the log file is only 1meg long and on average it doesn't backup the log for perhaps every 2 to 3 days... (I do make a full backup every night). I suppose I could manage the backups to include incremental changes every hr, so that as little data is lost? What do you guys suggest? -Francisco http://rcm.netfirms.com From martyconnelly at shaw.ca Sat Feb 22 11:49:48 2003 From: martyconnelly at shaw.ca (MartyConnelly) Date: Sat, 22 Feb 2003 09:49:48 -0800 Subject: [dba-SQLServer]Rolling back a transaction log? References: Message-ID: <3E57B83C.8090205@shaw.ca> I have used double mirroring with an Oracle database that was 24/7. You break one mirror to do a hot backup of the database. The broken mirror is then copied to tape. See the Oracle Backup & Recovery Handbook. Wortz, Charles wrote: > John, > > This is not an area where I claim any expertise. What I know is every > transaction written to the main db is also supposed to be written to > its mirror. How they resync them after one goes down is not something > I have had to worry about. There may be others on this list that can > speak to that. > > > Charles Wortz > Software Development Division > Texas Education Agency > 1701 N. Congress Ave > Austin, TX 78701-1494 > 512-463-9493 > CWortz at tea.state.tx.us > (SELECT * FROM users WHERE clue > 0) > > -----Original Message----- > From: John W. Colby [mailto:jcolby at colbyconsulting.com] > Sent: Friday 2003 Feb 21 14:07 > To: dba-sqlserver at databaseadvisors.com > Subject: RE: [dba-SQLServer]Rolling back a transaction log? > > Charles, > >>But the mirror gives a real-time backup which may solve half of > Francisco's problem. > > Yea, but these (mirrors) are for situations where a disk dies etc. If > you intentionally delete something, the mirror is supposed to > immediately write that delete to the mirrored drive as well (isn't it?). > > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: dba-sqlserver-admin at databaseadvisors.com > [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of > Wortz, Charles > Sent: Friday, February 21, 2003 3:00 PM > To: dba-sqlserver at databaseadvisors.com > Subject: RE: [dba-SQLServer]Rolling back a transaction log? > > John, > > There is not much you can do if you have a DBA that intentionally > deletes both copies of a file. But the mirror gives a real-time > backup which may solve half of Francisco's problem. The other > half will have to be taken care of by the DBA's boss. Unless you > only have one server, even a bloody idiot knows better than to > have both development and production on the same server. > > Charles Wortz > > -----Original Message----- > From: dba-sqlserver-admin at databaseadvisors.com > [mailto:dba-sqlserver-admin at databaseadvisors.com] On Behalf Of > John W. Colby > > Sent: Friday 2003 Feb 21 13:47 > To: dba-sqlserver at databaseadvisors.com > Subject: RE: [dba-SQLServer]Rolling back a transaction log? > > Would mirroring really help if someone intentionally deletes it? > Wouldn't the mirror be deleted as well? > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: dba-sqlserver-admin at databaseadvisors.com > [mailto:dba-sqlserver-admin at databaseadvisors.com]On > Behalf Of > Wortz, > Charles > Sent: Friday, February 21, 2003 2:34 PM > To: dba-sqlserver at databaseadvisors.com; sswug-sql2k at topica.com > Subject: RE: [dba-SQLServer]Rolling back a transaction log? > > > Francisco, > > How frequently you backup is dependent on how valuable is the lost > data. > If you can afford to lose a day's worth of data, or if you can easily > recreate the day's worth of data, then you backup daily. If you can > afford to lose an hour's worth of data, or if you can easily recreate > the hour's worth of data, then you backup hourly. If you cannot > afford > to lose any data, then you mirror your database. > > Charles Wortz > > > -----Original Message----- > From: Francisco H Tapia [mailto:my.lists at verizon.net] > Sent: Friday 2003 Feb 21 13:19 > To: dba-SQLServer at databaseadvisors.com; sswug-sql2k at topica.com > Subject: [dba-SQLServer]Rolling back a transaction log? > > > Well it finally happened... We have a Complaint database that runs in > conjunction with a goldmine database. The Goldmine database tracks > outgoing calls made by our company to customers in order to track > sales > leads and now complaints. Since 4/1/2002 we have not had a database > error or hiccup until now. The company's official DBA, while > working on > a development database on the production server (yes, that's right) > inadvertently wiped out my database instead of his test one this > morning, The users of the Complaint db suddenly began to complaining > that there were no records, and upon checking I found this to be the > case. I backup every night, and I have the log file backup when it > reaches 60%. BUT. I did not have *ANY* protection for the moments > before the wipe out. Initially I panicked about not being able to > kick > the users out quickly enough... I didn't bother to *remember* that > I had > a Kill All Users In Db script. So about 10 minutes later (after > kicking > all the users out) I restored the database back to last log > backup, but > that was not good as it had the transactions that wiped out the > database. SO I had to restore to last nights copy officially killing > all entries from 10am and prior. :( > > I've secured my script for killing Active Users in the DB. And My > boss > knows *who* wiped out the database, in fact I made sure he knew as > soon > as it happened ... maybe that's not a good political move, but I'm in > charge of the db. Now the question is... Since the log file is only > 1meg long and on average it doesn't backup the log for perhaps > every 2 > to 3 days... (I do make a full backup every night). I suppose I > could > manage the backups to include incremental changes every hr, so > that as > little data is lost? What do you guys suggest? > > > -Francisco > http://rcm.netfirms.com > From stuart at lexacorp.com.pg Sat Feb 22 19:12:36 2003 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sun, 23 Feb 2003 11:12:36 +1000 Subject: [dba-SQLServer]Rolling back a transaction log? In-Reply-To: Message-ID: <3E58ACA4.30269.1615E9@localhost> If he deleted a database, he would have deleted the mirrored version as well. The only thing mirroring protects you from is physical failure of a drive. > Francisco, > > How frequently you backup is dependent on how valuable is the lost data. > If you can afford to lose a day's worth of data, or if you can easily > recreate the day's worth of data, then you backup daily. If you can > afford to lose an hour's worth of data, or if you can easily recreate > the hour's worth of data, then you backup hourly. If you cannot afford > to lose any data, then you mirror your database. > > Charles Wortz > Software Development Division > Texas Education Agency > 1701 N. Congress Ave > Austin, TX 78701-1494 > 512-463-9493 > CWortz at tea.state.tx.us > (SELECT * FROM users WHERE clue > 0) > > > -----Original Message----- > From: Francisco H Tapia [mailto:my.lists at verizon.net] > Sent: Friday 2003 Feb 21 13:19 > To: dba-SQLServer at databaseadvisors.com; sswug-sql2k at topica.com > Subject: [dba-SQLServer]Rolling back a transaction log? > > > Well it finally happened... We have a Complaint database that runs in > conjunction with a goldmine database. The Goldmine database tracks > outgoing calls made by our company to customers in order to track sales > leads and now complaints. Since 4/1/2002 we have not had a database > error or hiccup until now. The company's official DBA, while working on > a development database on the production server (yes, that's right) > inadvertently wiped out my database instead of his test one this > morning, The users of the Complaint db suddenly began to complaining > that there were no records, and upon checking I found this to be the > case. I backup every night, and I have the log file backup when it > reaches 60%. BUT. I did not have *ANY* protection for the moments > before the wipe out. Initially I panicked about not being able to kick > the users out quickly enough... I didn't bother to *remember* that I had > a Kill All Users In Db script. So about 10 minutes later (after kicking > all the users out) I restored the database back to last log backup, but > that was not good as it had the transactions that wiped out the > database. SO I had to restore to last nights copy officially killing > all entries from 10am and prior. :( > > I've secured my script for killing Active Users in the DB. And My boss > knows *who* wiped out the database, in fact I made sure he knew as soon > as it happened ... maybe that's not a good political move, but I'm in > charge of the db. Now the question is... Since the log file is only > 1meg long and on average it doesn't backup the log for perhaps every 2 > to 3 days... (I do make a full backup every night). I suppose I could > manage the backups to include incremental changes every hr, so that as > little data is lost? What do you guys suggest? > > > -Francisco > http://rcm.netfirms.com > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From davide at dalyn.co.nz Sun Feb 23 17:44:06 2003 From: davide at dalyn.co.nz (David Emerson) Date: Mon, 24 Feb 2003 12:44:06 +1300 Subject: [dba-SQLServer]Parameters when opening forms - Thanks In-Reply-To: <002e01c2d9b0$a5e90ae0$8e01a8c0@Rock> References: <5.2.0.9.0.20030221160119.00b58110@mail.dalyn.co.nz> Message-ID: <5.2.0.9.0.20030224124331.00b2d340@mail.dalyn.co.nz> Thanks Arthur - another useful trick to file away. At 21/02/2003, you wrote: >I'm not sure whether I understood you correctly, but I have taken to coding >"double-function" sprocs in the following way: >CREATE PROCEDURE myProc >( @pk int = 0 ) >AS >SELECT * FROM someTables >WHERE (@pk = 0) OR >(someTable.pk = @pk) > >For all rows, pass a zero in as @pk. For just some, pass any other >legitimate value. >Incidentally, you can also write the above defaulting @pk to NULL and >changing the first test to "@pk IS NULL". Same result. >I think this is what you need. Give it a try. > >Hth, >Arthur > >-----Original Message----- >From: dba-sqlserver-admin at databaseadvisors.com >[mailto:dba-sqlserver-admin at databaseadvisors.com] On Behalf Of David Emerson >Sent: February 20, 2003 10:14 PM >To: dba-SQLServer at databaseadvisors.com >Subject: [dba-SQLServer]Parameters when opening forms > >AXP ADP/SQL2K > >I have a form (Form2) that can be opened from two separate places in my >FE. The first (Form1) requires only a specific customer's records to be >viewed in Form2. The second (Form3) requires all customers records to be >viewed in Form2. > >The source is a stored procedure which used a parameter to select the >specific customers records. Form1 has the customer showing and when it >opens Form2 it sends the CustomerID as an OpenArg to Form2 (eg "@CustIDNo >int=992168150"). Form2 then places the OpenArg into its InputParameters >property which is used by the stored procedure to only show the current >customers records. Fine. > >The problem is with Form3. This is to open Form2 but show all customer >records. I am having problems telling the sproc parameter that it should >include all records. > >Am I tackling the problem the right way or is there a simpler way to do it >(for example in mdb's just including or leaving off the WherCondition >criteria in DoCmd.OpenForm). > >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 > >_______________________________________________ >dba-SQLServer mailing list >dba-SQLServer at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-sqlserver >http://www.databaseadvisors.com From accessd at shaw.ca Sun Feb 23 20:12:41 2003 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Sun, 23 Feb 2003 18:12:41 -0800 Subject: [dba-SQLServer]Backup? In-Reply-To: <5.2.0.9.0.20030224124331.00b2d340@mail.dalyn.co.nz> Message-ID: Hi All: I am just doing some work on a new site, new to me anyway, SQL7 and though there is plenty of backup profile files listed there are no backups. Why would a backup not be running when supposedly set to do so. I will have a chance to look at this tomorrow and hope someone may have a simple answer. One more question. Recently my Enterprise Manager (SQL2000) has slowed right down. I am not sure of the when it started but the processing is running so slooooowwww, it's painful. I was thinking of just re-installing it on the server but I was wondering if anyone has ran into a similar situation and a solution? TIA Jim From stuart at pacific.net.hk Mon Feb 24 03:30:17 2003 From: stuart at pacific.net.hk (Stuart Sanders) Date: Mon, 24 Feb 2003 17:30:17 +0800 Subject: [dba-SQLServer]MS loses SQL server patent licensing claim In-Reply-To: Message-ID: <000901c2dbe7$57f927f0$0200a8c0@BITSNB02> Don't know if this will affect anyone on this list. http://www.theregister.co.uk/content/53/29419.html From artful at rogers.com Mon Feb 24 07:23:27 2003 From: artful at rogers.com (Arthur Fuller) Date: Mon, 24 Feb 2003 08:23:27 -0500 Subject: [dba-SQLServer]MS loses SQL server patent licensing claim In-Reply-To: <000901c2dbe7$57f927f0$0200a8c0@BITSNB02> Message-ID: <00f501c2dc07$eaa2ba10$8e01a8c0@Rock> Not that I'm a lawyer, but the ruling seems to concern data marts specifically, to wit their design and use. I don't see how Office is affected. As for SQL Server, I would guess that if the ruling holds there will be another version, in which Analysis Services is no longer part of the product. This could pave the way for more sales by some of the third-party vendors such as ESSBase, Red Brick and Platinum. -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com] On Behalf Of Stuart Sanders Sent: February 24, 2003 4:30 AM To: dba-sqlserver at databaseadvisors.com Subject: [dba-SQLServer]MS loses SQL server patent licensing claim Don't know if this will affect anyone on this list. http://www.theregister.co.uk/content/53/29419.html _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From stuart at pacific.net.hk Mon Feb 24 08:00:24 2003 From: stuart at pacific.net.hk (Stuart Sanders) Date: Mon, 24 Feb 2003 22:00:24 +0800 Subject: [dba-SQLServer]MS loses SQL server patent licensing claim References: <00f501c2dc07$eaa2ba10$8e01a8c0@Rock> Message-ID: <00e901c2dc0d$148c9bc0$6f6140ca@bitswshome> Quite possibly you are correct, and I didn't read the fine print. However things like this stuck in my mind: ".every Microsoft customer, including ISVs, VARs, and corporate end users, who wished to customize SQL Server by adding code or product to meet the specific needs of users would have been required to purchase a license from Timeline to do so. Given the basic design and intended purpose and use of SQL Server . the potential economic benefit to Timeline would have been staggering. .(That economic benefit would be) from the future sale of licenses to essentially all of Microsoft's SQL Server customers." Stuart ----- Original Message ----- From: "Arthur Fuller" To: Sent: Monday, February 24, 2003 9:23 PM Subject: RE: [dba-SQLServer]MS loses SQL server patent licensing claim > Not that I'm a lawyer, but the ruling seems to concern data marts > specifically, to wit their design and use. I don't see how Office is > affected. As for SQL Server, I would guess that if the ruling holds there > will be another version, in which Analysis Services is no longer part of the > product. This could pave the way for more sales by some of the third-party > vendors such as ESSBase, Red Brick and Platinum. > > -----Original Message----- > From: dba-sqlserver-admin at databaseadvisors.com > [mailto:dba-sqlserver-admin at databaseadvisors.com] On Behalf Of Stuart > Sanders > Sent: February 24, 2003 4:30 AM > To: dba-sqlserver at databaseadvisors.com > Subject: [dba-SQLServer]MS loses SQL server patent licensing claim > > Don't know if this will affect anyone on this list. > > http://www.theregister.co.uk/content/53/29419.html > > > _______________________________________________ > 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 shait at mindspring.com Mon Feb 24 08:06:18 2003 From: shait at mindspring.com (Stephen Hait) Date: Mon, 24 Feb 2003 09:06:18 -0500 Subject: [dba-SQLServer]Backup? In-Reply-To: References: <5.2.0.9.0.20030224124331.00b2d340@mail.dalyn.co.nz> Message-ID: <3E59E08A.22112.309F927D@localhost> > Hi All: > > I am just doing some work on a new site, new to me anyway, SQL7 and > though there is plenty of backup profile files listed there are no > backups. Why would a backup not be running when supposedly set to do > so. I will have a chance to look at this tomorrow and hope someone > may have a simple answer. > > One more question. Recently my Enterprise Manager (SQL2000) has > slowed right down. I am not sure of the when it started but the > processing is running so slooooowwww, it's painful. I was thinking > of just re-installing it on the server but I was wondering if anyone > has ran into a similar situation and a solution? Ensure you have the latest service pack installed (SP3?). Stephen From JSkolits at CorporateDataDesign.com Mon Feb 24 08:20:06 2003 From: JSkolits at CorporateDataDesign.com (John Skolits) Date: Mon, 24 Feb 2003 09:20:06 -0500 Subject: [dba-SQLServer]ACCESS 2000 Run Time and Office XP - Can't print In-Reply-To: Message-ID: Anyone seen this problem? I have Access Runtime on a PC that also has Office XP. If I create a new database in XP (As an Access 2000 format), with one table with a simple report and try to print or print preview, I get that Microsoft Error where it wants to send a report to Microsoft. Then it kicks me out of Access. But, If I run the application with XP instead of the Runtime version, there is no problem. Remember, this is an Access 2000 formatted Database. If I run the runtime on a machine that has Access 2000 and not XP, there is no problem. John Skolits From artful at rogers.com Mon Feb 24 08:33:58 2003 From: artful at rogers.com (Arthur Fuller) Date: Mon, 24 Feb 2003 09:33:58 -0500 Subject: [dba-SQLServer]ACCESS 2000 Run Time and Office XP - Can't print In-Reply-To: Message-ID: <00fe01c2dc11$c47b12b0$8e01a8c0@Rock> At home I have a very small (4 boxes) network using a LinkSys router. All the boxes run Windows XP. SQL 2000 is installed on Box 1. MSDE is installed on Box 2. Enterprise Manager is installed on Box 1, and I have registered the MSDE server on Box 2. (Boxes 3 and 4 have no SQL components installed.) Currently, it is set up using integrated security. Prior to the demise of ETS, I set up their system as separate security (i.e. a Windows login + a SQL login). Much of the MS material I have seen suggests that integrated security is the way to go. That's why I set up my home network that way. Wouldn't you know it, though? My very next client wants the separate security model. So, my questions: 1. What must I do to turn my home network back into the separate security model? 2. How easy will it be for me to switch back and forth between security models? 3. What exactly is a trusted server? How do you set one up? TIA, Arthur From my.lists at verizon.net Mon Feb 24 09:51:15 2003 From: my.lists at verizon.net (Francisco H Tapia) Date: Mon, 24 Feb 2003 07:51:15 -0800 Subject: [dba-SQLServer]Rolling back a transaction log? References: <3E58ACA4.30269.1615E9@localhost> Message-ID: <000a01c2dc1c$911c9640$b615010a@FHTAPIA> Found out some GREAT NEWS!, Hope you all had a good weekend... it TURNS out that when you don't auto-shrink your log files, meaning you set a fixed lenght and then auto-backup whenever your log file hits 60% there are some outstanding benefits.... One of which you NEVER loose any data... When you go and choose to restore your database and you have your full backup selected (hopefully from last night) and your logs from during the day, simply plug in a point in time to restore to and viola!, 15 minutes before I was alerted was the time I chose and it restored the entire db up until that point, I kept playing with it pushing less and less time until I found the point (minute) in time that it was killed.. I did this of course NOT on the production server as it has already been restored loosing only 2 hrs worth of data, but instead I did this on my TEST database that I run on my Box. I hope this helps you guys out... as an added bonus, I found this great script at www.SQLSERVERCENTRAL.com, I can't say enough good things about that site, it is a kick all users out of my DB script.. just drop it into QA or make a sproc out of it, and run it, it will kick out all your database users, which is required in order to restore it.. here it is....(BTW, if you've never visited the site and you're dealing more and more with SQL you really ought to stop by, there are articles written here with many times real life situations taken into consideration... ) DECLARE @dbname varchar(50) SET @dbname = 'YourDBNAME HERE' DECLARE @strSQL varchar(255) PRINT 'Killing Users' PRINT '-----------------' CREATE table #tmpUsers( spid int, eid int, status varchar(30), loginname varchar(50), hostname varchar(50), blk int, dbname varchar(50), cmd varchar(30)) INSERT INTO #tmpUsers EXEC SP_WHO DECLARE LoginCursor CURSOR READ_ONLY FOR SELECT spid, dbname FROM #tmpUsers WHERE dbname = @dbname DECLARE @spid varchar(10) DECLARE @dbname2 varchar(40) OPEN LoginCursor FETCH NEXT FROM LoginCursor INTO @spid, @dbname2 WHILE (@@fetch_status <> -1) BEGIN IF (@@fetch_status <> -2) BEGIN PRINT 'Killing ' + @spid SET @strSQL = 'KILL ' + @spid EXEC (@strSQL) END FETCH NEXT FROM LoginCursor INTO @spid, @dbname2 END CLOSE LoginCursor DEALLOCATE LoginCursor DROP table #tmpUsers go -Francisco http://rcm.netfirms.com ----- Original Message ----- From: "Stuart McLachlan" To: ; Sent: Saturday, February 22, 2003 5:12 PM Subject: RE: [dba-SQLServer]Rolling back a transaction log? : If he deleted a database, he would have deleted the mirrored version : as well. The only thing mirroring protects you from is physical failure of : a drive. : : > Francisco, : > : > How frequently you backup is dependent on how valuable is the lost data. : > If you can afford to lose a day's worth of data, or if you can easily : > recreate the day's worth of data, then you backup daily. If you can : > afford to lose an hour's worth of data, or if you can easily recreate : > the hour's worth of data, then you backup hourly. If you cannot afford : > to lose any data, then you mirror your database. : > : > Charles Wortz : > Software Development Division : > Texas Education Agency : > 1701 N. Congress Ave : > Austin, TX 78701-1494 : > 512-463-9493 : > CWortz at tea.state.tx.us : > (SELECT * FROM users WHERE clue > 0) : > : > : > -----Original Message----- : > From: Francisco H Tapia [mailto:my.lists at verizon.net] : > Sent: Friday 2003 Feb 21 13:19 : > To: dba-SQLServer at databaseadvisors.com; sswug-sql2k at topica.com : > Subject: [dba-SQLServer]Rolling back a transaction log? : > : > : > Well it finally happened... We have a Complaint database that runs in : > conjunction with a goldmine database. The Goldmine database tracks : > outgoing calls made by our company to customers in order to track sales : > leads and now complaints. Since 4/1/2002 we have not had a database : > error or hiccup until now. The company's official DBA, while working on : > a development database on the production server (yes, that's right) : > inadvertently wiped out my database instead of his test one this : > morning, The users of the Complaint db suddenly began to complaining : > that there were no records, and upon checking I found this to be the : > case. I backup every night, and I have the log file backup when it : > reaches 60%. BUT. I did not have *ANY* protection for the moments : > before the wipe out. Initially I panicked about not being able to kick : > the users out quickly enough... I didn't bother to *remember* that I had : > a Kill All Users In Db script. So about 10 minutes later (after kicking : > all the users out) I restored the database back to last log backup, but : > that was not good as it had the transactions that wiped out the : > database. SO I had to restore to last nights copy officially killing : > all entries from 10am and prior. :( : > : > I've secured my script for killing Active Users in the DB. And My boss : > knows *who* wiped out the database, in fact I made sure he knew as soon : > as it happened ... maybe that's not a good political move, but I'm in : > charge of the db. Now the question is... Since the log file is only : > 1meg long and on average it doesn't backup the log for perhaps every 2 : > to 3 days... (I do make a full backup every night). I suppose I could : > manage the backups to include incremental changes every hr, so that as : > little data is lost? What do you guys suggest? : > : > : > -Francisco : > http://rcm.netfirms.com : > _______________________________________________ : > dba-SQLServer mailing list : > dba-SQLServer at databaseadvisors.com : > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver : > http://www.databaseadvisors.com : > : : : -- : 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 : From my.lists at verizon.net Mon Feb 24 10:07:10 2003 From: my.lists at verizon.net (Francisco H Tapia) Date: Mon, 24 Feb 2003 08:07:10 -0800 Subject: [dba-SQLServer]Backup? References: <5.2.0.9.0.20030224124331.00b2d340@mail.dalyn.co.nz> <3E59E08A.22112.309F927D@localhost> Message-ID: <002e01c2dc1e$c9d53d00$b615010a@FHTAPIA> Questions: 1) What do you mean by Backup Profiles?, what screen are you looking at. Is it possible that the dba of the SqlServer Backs up the DB over the network to some other location? 2) IS EM running slower or is your Sql Server 2000 running slower... have you tried stopping and re-starting the service, what other things are running on the server running SQL Server 2000. How much ram, how much disc space... Thanks, -Francisco http://rcm.netfirms.com ----- Original Message ----- From: "Stephen Hait" To: Sent: Monday, February 24, 2003 6:06 AM Subject: RE: [dba-SQLServer]Backup? : : : > Hi All: : > : > I am just doing some work on a new site, new to me anyway, SQL7 and : > though there is plenty of backup profile files listed there are no : > backups. Why would a backup not be running when supposedly set to do : > so. I will have a chance to look at this tomorrow and hope someone : > may have a simple answer. : > : > One more question. Recently my Enterprise Manager (SQL2000) has : > slowed right down. I am not sure of the when it started but the : > processing is running so slooooowwww, it's painful. I was thinking : > of just re-installing it on the server but I was wondering if anyone : > has ran into a similar situation and a solution? : : Ensure you have the latest service pack installed (SP3?). : : Stephen : _______________________________________________ : dba-SQLServer mailing list : dba-SQLServer at databaseadvisors.com : http://databaseadvisors.com/mailman/listinfo/dba-sqlserver : http://www.databaseadvisors.com : From accessd at shaw.ca Mon Feb 24 10:27:52 2003 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Mon, 24 Feb 2003 08:27:52 -0800 Subject: [dba-SQLServer]Backup? In-Reply-To: <002e01c2dc1e$c9d53d00$b615010a@FHTAPIA> Message-ID: Hi Francisco: Yes I mean backup profiles...I do not think the backup is moving the data to another location but further investigation will tell. It seems the the backups are just not turned on.(?) The EM is running slower. No other product or the server seems to be affected. The service has been stopped and started a number of times. There is 1 GB of RAM on the box. Any suggestions would be greatly appreciated. Jim -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of Francisco H Tapia Sent: Monday, February 24, 2003 8:07 AM To: dba-sqlserver at databaseadvisors.com Subject: Re: [dba-SQLServer]Backup? Questions: 1) What do you mean by Backup Profiles?, what screen are you looking at. Is it possible that the dba of the SqlServer Backs up the DB over the network to some other location? 2) IS EM running slower or is your Sql Server 2000 running slower... have you tried stopping and re-starting the service, what other things are running on the server running SQL Server 2000. How much ram, how much disc space... Thanks, -Francisco http://rcm.netfirms.com ----- Original Message ----- From: "Stephen Hait" To: Sent: Monday, February 24, 2003 6:06 AM Subject: RE: [dba-SQLServer]Backup? : : : > Hi All: : > : > I am just doing some work on a new site, new to me anyway, SQL7 and : > though there is plenty of backup profile files listed there are no : > backups. Why would a backup not be running when supposedly set to do : > so. I will have a chance to look at this tomorrow and hope someone : > may have a simple answer. : > : > One more question. Recently my Enterprise Manager (SQL2000) has : > slowed right down. I am not sure of the when it started but the : > processing is running so slooooowwww, it's painful. I was thinking : > of just re-installing it on the server but I was wondering if anyone : > has ran into a similar situation and a solution? : : Ensure you have the latest service pack installed (SP3?). : : Stephen : _______________________________________________ : 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 Mon Feb 24 10:34:43 2003 From: Robert.Djabarov at usaa.com (Djabarov, Robert) Date: Mon, 24 Feb 2003 10:34:43 -0600 Subject: [dba-SQLServer]Rolling back a transaction log? Message-ID: <5A31F89EC4C79B49B5030FF2EF58E9D24EBBCD@ex02.eagle.usaa.com> Here's my version of the same idea that I use whenever I need to get rid of connections from a database: use master go if object_id('dbo.sp_KillUsers') is not null drop procedure dbo.sp_KillUsers go create procedure dbo.sp_KillUsers ( @dbname varchar(128) ) as declare @spid varchar(10), @print varchar(8000) set nocount on if @dbname is null begin set @print = 'Database name must be specified!' + char(13)+char(10) + 'Operation aborted.' raiserror (@print, 15, 1) return (1) end if @dbname = db_name() begin set @print = 'Executing this procedure from the same database ' + 'as the one that you are currently in is not allowed! ' + char(13)+char(10) + 'Operation aborted.' raiserror (@print, 15, 1) return (1) end select @spid = cast(min(spid) as varchar(10)) from sysprocesses (nolock) where dbid = db_id(@dbname) while @spid is not null begin exec ('kill ' + @spid) select @spid = cast(min(spid) as varchar(10)) from sysprocesses (nolock) where dbid = db_id(@dbname) and spid > cast(@spid as int) end go -- Example: kill all users in pubs exec dbo.sp_KillUsers pubs This way you're not using something as archaic as a C U R S O R, especially off of a temporary table!!! ______________________________________________________ Robert Djabarov Certified MS SQL Server DBA Certified MS SQL Server Programmer Certified MS VB Programmer ? (210) 913-3148 - phone ( (210) 753-3148 - pager -----Original Message----- From: Francisco H Tapia [mailto:my.lists at verizon.net] Sent: Monday, February 24, 2003 9:51 AM To: dba-sqlserver at databaseadvisors.com Subject: Re: [dba-SQLServer]Rolling back a transaction log? Found out some GREAT NEWS!, Hope you all had a good weekend... it TURNS out that when you don't auto-shrink your log files, meaning you set a fixed lenght and then auto-backup whenever your log file hits 60% there are some outstanding benefits.... One of which you NEVER loose any data... When you go and choose to restore your database and you have your full backup selected (hopefully from last night) and your logs from during the day, simply plug in a point in time to restore to and viola!, 15 minutes before I was alerted was the time I chose and it restored the entire db up until that point, I kept playing with it pushing less and less time until I found the point (minute) in time that it was killed.. I did this of course NOT on the production server as it has already been restored loosing only 2 hrs worth of data, but instead I did this on my TEST database that I run on my Box. I hope this helps you guys out... as an added bonus, I found this great script at www.SQLSERVERCENTRAL.com, I can't say enough good things about that site, it is a kick all users out of my DB script.. just drop it into QA or make a sproc out of it, and run it, it will kick out all your database users, which is required in order to restore it.. here it is....(BTW, if you've never visited the site and you're dealing more and more with SQL you really ought to stop by, there are articles written here with many times real life situations taken into consideration... ) DECLARE @dbname varchar(50) SET @dbname = 'YourDBNAME HERE' DECLARE @strSQL varchar(255) PRINT 'Killing Users' PRINT '-----------------' CREATE table #tmpUsers( spid int, eid int, status varchar(30), loginname varchar(50), hostname varchar(50), blk int, dbname varchar(50), cmd varchar(30)) INSERT INTO #tmpUsers EXEC SP_WHO DECLARE LoginCursor CURSOR READ_ONLY FOR SELECT spid, dbname FROM #tmpUsers WHERE dbname = @dbname DECLARE @spid varchar(10) DECLARE @dbname2 varchar(40) OPEN LoginCursor FETCH NEXT FROM LoginCursor INTO @spid, @dbname2 WHILE (@@fetch_status <> -1) BEGIN IF (@@fetch_status <> -2) BEGIN PRINT 'Killing ' + @spid SET @strSQL = 'KILL ' + @spid EXEC (@strSQL) END FETCH NEXT FROM LoginCursor INTO @spid, @dbname2 END CLOSE LoginCursor DEALLOCATE LoginCursor DROP table #tmpUsers go -Francisco http://rcm.netfirms.com ----- Original Message ----- From: "Stuart McLachlan" To: ; Sent: Saturday, February 22, 2003 5:12 PM Subject: RE: [dba-SQLServer]Rolling back a transaction log? : If he deleted a database, he would have deleted the mirrored version : as well. The only thing mirroring protects you from is physical failure of : a drive. : : > Francisco, : > : > How frequently you backup is dependent on how valuable is the lost data. : > If you can afford to lose a day's worth of data, or if you can easily : > recreate the day's worth of data, then you backup daily. If you can : > afford to lose an hour's worth of data, or if you can easily recreate : > the hour's worth of data, then you backup hourly. If you cannot afford : > to lose any data, then you mirror your database. : > : > Charles Wortz : > Software Development Division : > Texas Education Agency : > 1701 N. Congress Ave : > Austin, TX 78701-1494 : > 512-463-9493 : > CWortz at tea.state.tx.us : > (SELECT * FROM users WHERE clue > 0) : > : > : > -----Original Message----- : > From: Francisco H Tapia [mailto:my.lists at verizon.net] : > Sent: Friday 2003 Feb 21 13:19 : > To: dba-SQLServer at databaseadvisors.com; sswug-sql2k at topica.com : > Subject: [dba-SQLServer]Rolling back a transaction log? : > : > : > Well it finally happened... We have a Complaint database that runs in : > conjunction with a goldmine database. The Goldmine database tracks : > outgoing calls made by our company to customers in order to track sales : > leads and now complaints. Since 4/1/2002 we have not had a database : > error or hiccup until now. The company's official DBA, while working on : > a development database on the production server (yes, that's right) : > inadvertently wiped out my database instead of his test one this : > morning, The users of the Complaint db suddenly began to complaining : > that there were no records, and upon checking I found this to be the : > case. I backup every night, and I have the log file backup when it : > reaches 60%. BUT. I did not have *ANY* protection for the moments : > before the wipe out. Initially I panicked about not being able to kick : > the users out quickly enough... I didn't bother to *remember* that I had : > a Kill All Users In Db script. So about 10 minutes later (after kicking : > all the users out) I restored the database back to last log backup, but : > that was not good as it had the transactions that wiped out the : > database. SO I had to restore to last nights copy officially killing : > all entries from 10am and prior. :( : > : > I've secured my script for killing Active Users in the DB. And My boss : > knows *who* wiped out the database, in fact I made sure he knew as soon : > as it happened ... maybe that's not a good political move, but I'm in : > charge of the db. Now the question is... Since the log file is only : > 1meg long and on average it doesn't backup the log for perhaps every 2 : > to 3 days... (I do make a full backup every night). I suppose I could : > manage the backups to include incremental changes every hr, so that as : > little data is lost? What do you guys suggest? : > : > : > -Francisco : > http://rcm.netfirms.com : > _______________________________________________ : > dba-SQLServer mailing list : > dba-SQLServer at databaseadvisors.com : > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver : > http://www.databaseadvisors.com : > : : : -- : 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 : _______________________________________________ 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 Feb 24 12:07:42 2003 From: my.lists at verizon.net (Francisco H Tapia) Date: Mon, 24 Feb 2003 10:07:42 -0800 Subject: [dba-SQLServer]Rolling back a transaction log? References: <5A31F89EC4C79B49B5030FF2EF58E9D24EBBCD@ex02.eagle.usaa.com> Message-ID: <00c701c2dc2f$a07f34e0$b615010a@FHTAPIA> This is a cleaner route, thanks for posting it :D -Francisco http://rcm.netfirms.com ----- Original Message ----- From: "Djabarov, Robert" To: Sent: Monday, February 24, 2003 8:34 AM Subject: RE: [dba-SQLServer]Rolling back a transaction log? : Here's my version of the same idea that I use whenever I need to get rid of connections from a database: : : use master : go : if object_id('dbo.sp_KillUsers') is not null : drop procedure dbo.sp_KillUsers : go : create procedure dbo.sp_KillUsers ( : @dbname varchar(128) ) : as : declare @spid varchar(10), @print varchar(8000) : set nocount on : if @dbname is null begin : set @print = 'Database name must be specified!' + char(13)+char(10) + 'Operation aborted.' : raiserror (@print, 15, 1) : return (1) : end : : if @dbname = db_name() begin : set @print = 'Executing this procedure from the same database ' + : 'as the one that you are currently in is not allowed! ' + char(13)+char(10) + : 'Operation aborted.' : raiserror (@print, 15, 1) : return (1) : end : : select @spid = cast(min(spid) as varchar(10)) from sysprocesses (nolock) where dbid = db_id(@dbname) : while @spid is not null begin : exec ('kill ' + @spid) : select @spid = cast(min(spid) as varchar(10)) : from sysprocesses (nolock) : where dbid = db_id(@dbname) and spid > cast(@spid as int) : end : go : -- Example: kill all users in pubs : exec dbo.sp_KillUsers pubs : : This way you're not using something as archaic as a C U R S O R, especially off of a temporary table!!! : ______________________________________________________ : Robert Djabarov : Certified MS SQL Server DBA : Certified MS SQL Server Programmer : Certified MS VB Programmer : ? (210) 913-3148 - phone : ( (210) 753-3148 - pager : : -----Original Message----- : From: Francisco H Tapia [mailto:my.lists at verizon.net] : Sent: Monday, February 24, 2003 9:51 AM : To: dba-sqlserver at databaseadvisors.com : Subject: Re: [dba-SQLServer]Rolling back a transaction log? : : Found out some GREAT NEWS!, Hope you all had a good weekend... it TURNS out : that when you don't auto-shrink your log files, meaning you set a fixed : lenght and then auto-backup whenever your log file hits 60% there are some : outstanding benefits.... One of which you NEVER loose any data... When you : go and choose to restore your database and you have your full backup : selected (hopefully from last night) and your logs from during the day, : simply plug in a point in time to restore to and viola!, 15 minutes before I : was alerted was the time I chose and it restored the entire db up until that : point, I kept playing with it pushing less and less time until I found the : point (minute) in time that it was killed.. I did this of course NOT on the : production server as it has already been restored loosing only 2 hrs worth : of data, but instead I did this on my TEST database that I run on my Box. I : hope this helps you guys out... as an added bonus, I found this great script : at www.SQLSERVERCENTRAL.com, I can't say enough good things about that site, : it is a kick all users out of my DB script.. just drop it into QA or make a : sproc out of it, and run it, it will kick out all your database users, : which is required in order to restore it.. here it is....(BTW, if you've : never visited the site and you're dealing more and more with SQL you really : ought to stop by, there are articles written here with many times real life : situations taken into consideration... ) : : DECLARE @dbname varchar(50) : : SET @dbname = 'YourDBNAME HERE' : : : DECLARE @strSQL varchar(255) : PRINT 'Killing Users' : PRINT '-----------------' : : CREATE table #tmpUsers( : spid int, : eid int, : status varchar(30), : loginname varchar(50), : hostname varchar(50), : blk int, : dbname varchar(50), : cmd varchar(30)) : : INSERT INTO #tmpUsers EXEC SP_WHO : : : DECLARE LoginCursor CURSOR : READ_ONLY : FOR SELECT spid, dbname FROM #tmpUsers WHERE dbname = @dbname : : DECLARE @spid varchar(10) : DECLARE @dbname2 varchar(40) : OPEN LoginCursor : : FETCH NEXT FROM LoginCursor INTO @spid, @dbname2 : WHILE (@@fetch_status <> -1) : BEGIN : IF (@@fetch_status <> -2) : BEGIN : PRINT 'Killing ' + @spid : SET @strSQL = 'KILL ' + @spid : EXEC (@strSQL) : END : FETCH NEXT FROM LoginCursor INTO @spid, @dbname2 : END : : CLOSE LoginCursor : DEALLOCATE LoginCursor : : DROP table #tmpUsers : go : : : -Francisco : http://rcm.netfirms.com : ----- Original Message ----- : From: "Stuart McLachlan" : To: ; : Sent: Saturday, February 22, 2003 5:12 PM : Subject: RE: [dba-SQLServer]Rolling back a transaction log? : : : : If he deleted a database, he would have deleted the mirrored version : : as well. The only thing mirroring protects you from is physical failure of : : a drive. : : : : > Francisco, : : > : : > How frequently you backup is dependent on how valuable is the lost data. : : > If you can afford to lose a day's worth of data, or if you can easily : : > recreate the day's worth of data, then you backup daily. If you can : : > afford to lose an hour's worth of data, or if you can easily recreate : : > the hour's worth of data, then you backup hourly. If you cannot afford : : > to lose any data, then you mirror your database. : : > : : > Charles Wortz : : > Software Development Division : : > Texas Education Agency : : > 1701 N. Congress Ave : : > Austin, TX 78701-1494 : : > 512-463-9493 : : > CWortz at tea.state.tx.us : : > (SELECT * FROM users WHERE clue > 0) : : > : : > : : > -----Original Message----- : : > From: Francisco H Tapia [mailto:my.lists at verizon.net] : : > Sent: Friday 2003 Feb 21 13:19 : : > To: dba-SQLServer at databaseadvisors.com; sswug-sql2k at topica.com : : > Subject: [dba-SQLServer]Rolling back a transaction log? : : > : : > : : > Well it finally happened... We have a Complaint database that runs in : : > conjunction with a goldmine database. The Goldmine database tracks : : > outgoing calls made by our company to customers in order to track sales : : > leads and now complaints. Since 4/1/2002 we have not had a database : : > error or hiccup until now. The company's official DBA, while working on : : > a development database on the production server (yes, that's right) : : > inadvertently wiped out my database instead of his test one this : : > morning, The users of the Complaint db suddenly began to complaining : : > that there were no records, and upon checking I found this to be the : : > case. I backup every night, and I have the log file backup when it : : > reaches 60%. BUT. I did not have *ANY* protection for the moments : : > before the wipe out. Initially I panicked about not being able to kick : : > the users out quickly enough... I didn't bother to *remember* that I had : : > a Kill All Users In Db script. So about 10 minutes later (after kicking : : > all the users out) I restored the database back to last log backup, but : : > that was not good as it had the transactions that wiped out the : : > database. SO I had to restore to last nights copy officially killing : : > all entries from 10am and prior. :( : : > : : > I've secured my script for killing Active Users in the DB. And My boss : : > knows *who* wiped out the database, in fact I made sure he knew as soon : : > as it happened ... maybe that's not a good political move, but I'm in : : > charge of the db. Now the question is... Since the log file is only : : > 1meg long and on average it doesn't backup the log for perhaps every 2 : : > to 3 days... (I do make a full backup every night). I suppose I could : : > manage the backups to include incremental changes every hr, so that as : : > little data is lost? What do you guys suggest? : : > : : > : : > -Francisco : : > http://rcm.netfirms.com : : > _______________________________________________ : : > dba-SQLServer mailing list : : > dba-SQLServer at databaseadvisors.com : : > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver : : > http://www.databaseadvisors.com : : > : : : : : : -- : : 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 : : : : : _______________________________________________ : dba-SQLServer mailing list : dba-SQLServer at databaseadvisors.com : http://databaseadvisors.com/mailman/listinfo/dba-sqlserver : http://www.databaseadvisors.com : : : : _______________________________________________ : dba-SQLServer mailing list : dba-SQLServer at databaseadvisors.com : http://databaseadvisors.com/mailman/listinfo/dba-sqlserver : http://www.databaseadvisors.com : From artful at rogers.com Mon Feb 24 12:22:41 2003 From: artful at rogers.com (Arthur Fuller) Date: Mon, 24 Feb 2003 13:22:41 -0500 Subject: [dba-SQLServer]Simple way to get databases like myDB* into a combo box? In-Reply-To: <002e01c2dc1e$c9d53d00$b615010a@FHTAPIA> Message-ID: <012701c2dc31$b80b6d20$8e01a8c0@Rock> I want to drop a list like that into an Access combo-box. I.e. several dbs of similar names may be opened. Grab the selection, modify the connection. Anyone got this function in the can? Just thought I'd ask before writing it :-) TIA, Arthur From artful at rogers.com Mon Feb 24 12:35:27 2003 From: artful at rogers.com (Arthur Fuller) Date: Mon, 24 Feb 2003 13:35:27 -0500 Subject: [dba-SQLServer]Simple way to get databases like myDB* into a combo box? In-Reply-To: <012701c2dc31$b80b6d20$8e01a8c0@Rock> Message-ID: <012801c2dc33$805aeac0$8e01a8c0@Rock> It only took one line of SQL, sorry to bother you with my laziness. SELECT Name FROM master.dbo.sysdatabases WHERE CharIndex( 'Arthur', Name ) > 0 ORDER BY Name Doh! -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: February 24, 2003 1:23 PM To: dba-sqlserver at databaseadvisors.com Subject: [dba-SQLServer]Simple way to get databases like myDB* into a combo box? I want to drop a list like that into an Access combo-box. I.e. several dbs of similar names may be opened. Grab the selection, modify the connection. Anyone got this function in the can? Just thought I'd ask before writing it :-) TIA, Arthur _______________________________________________ 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 Feb 24 12:52:27 2003 From: artful at rogers.com (Arthur Fuller) Date: Mon, 24 Feb 2003 13:52:27 -0500 Subject: [dba-SQLServer]Invoke Connection Dialog from a Button? In-Reply-To: <012801c2dc33$805aeac0$8e01a8c0@Rock> Message-ID: <012901c2dc35$e05c2db0$8e01a8c0@Rock> Can I do it? I looked around the DoCmd object and didn't find it. I want a button that pops open the Connection dialog. -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: February 24, 2003 1:35 PM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]Simple way to get databases like myDB* into a combo box? It only took one line of SQL, sorry to bother you with my laziness. SELECT Name FROM master.dbo.sysdatabases WHERE CharIndex( 'Arthur', Name ) > 0 ORDER BY Name Doh! -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: February 24, 2003 1:23 PM To: dba-sqlserver at databaseadvisors.com Subject: [dba-SQLServer]Simple way to get databases like myDB* into a combo box? I want to drop a list like that into an Access combo-box. I.e. several dbs of similar names may be opened. Grab the selection, modify the connection. Anyone got this function in the can? Just thought I'd ask before writing it :-) TIA, Arthur _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From my.lists at verizon.net Mon Feb 24 12:55:14 2003 From: my.lists at verizon.net (Francisco H Tapia) Date: Mon, 24 Feb 2003 10:55:14 -0800 Subject: [dba-SQLServer]ACCESS 2000 Run Time and Office XP - Can't print References: <00fe01c2dc11$c47b12b0$8e01a8c0@Rock> Message-ID: <001601c2dc36$4576e640$b615010a@FHTAPIA> : 1. What must I do to turn my home network back into the separate security : model? Set up your SQL Server to accept communication as Mixed mode.. then create separate SQL logins/ID's : 2. How easy will it be for me to switch back and forth between security : models? on your client just choose the method to connect with, either Windows NT Integrated Security or with a specific username and password. : 3. What exactly is a trusted server? How do you set one up? http://www.csc.vill.edu/mnt/a/cassel/html/netbook/chap9/node21.html http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnrac/html/ mracv2_ch06.asp From chris at denverdb.com Mon Feb 24 13:21:24 2003 From: chris at denverdb.com (Chris Mackin) Date: Mon, 24 Feb 2003 12:21:24 -0700 Subject: [dba-SQLServer]Invoke Connection Dialog from a Button? In-Reply-To: Message-ID: You can open the Connection Dialog with the following: DoCmd.RunCommand acCmdConnection Chris Mackin www.denverdb.com Denver Database Consulting, LLC -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of Arthur Fuller Sent: Monday, February 24, 2003 11:52 AM To: dba-sqlserver at databaseadvisors.com Subject: [dba-SQLServer]Invoke Connection Dialog from a Button? Can I do it? I looked around the DoCmd object and didn't find it. I want a button that pops open the Connection dialog. -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: February 24, 2003 1:35 PM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]Simple way to get databases like myDB* into a combo box? It only took one line of SQL, sorry to bother you with my laziness. SELECT Name FROM master.dbo.sysdatabases WHERE CharIndex( 'Arthur', Name ) > 0 ORDER BY Name Doh! -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: February 24, 2003 1:23 PM To: dba-sqlserver at databaseadvisors.com Subject: [dba-SQLServer]Simple way to get databases like myDB* into a combo box? I want to drop a list like that into an Access combo-box. I.e. several dbs of similar names may be opened. Grab the selection, modify the connection. Anyone got this function in the can? Just thought I'd ask before writing it :-) TIA, Arthur _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com _______________________________________________ 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 Mon Feb 24 13:27:04 2003 From: mikedorism at ntelos.net (Mike and Doris Manning) Date: Mon, 24 Feb 2003 14:27:04 -0500 Subject: [dba-SQLServer]Invoke Connection Dialog from a Button? In-Reply-To: <012901c2dc35$e05c2db0$8e01a8c0@Rock> Message-ID: <000201c2dc3a$b9b42500$33320cd8@hargrove.internal> How about just having them pick and then adjusting CurrentProject.Connection? Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Monday, February 24, 2003 01:52 PM To: dba-sqlserver at databaseadvisors.com Subject: [dba-SQLServer]Invoke Connection Dialog from a Button? Can I do it? I looked around the DoCmd object and didn't find it. I want a button that pops open the Connection dialog. -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: February 24, 2003 1:35 PM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]Simple way to get databases like myDB* into a combo box? It only took one line of SQL, sorry to bother you with my laziness. SELECT Name FROM master.dbo.sysdatabases WHERE CharIndex( 'Arthur', Name ) > 0 ORDER BY Name Doh! -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: February 24, 2003 1:23 PM To: dba-sqlserver at databaseadvisors.com Subject: [dba-SQLServer]Simple way to get databases like myDB* into a combo box? I want to drop a list like that into an Access combo-box. I.e. several dbs of similar names may be opened. Grab the selection, modify the connection. Anyone got this function in the can? Just thought I'd ask before writing it :-) TIA, Arthur _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com _______________________________________________ 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 Feb 24 14:45:25 2003 From: my.lists at verizon.net (Francisco H Tapia) Date: Mon, 24 Feb 2003 12:45:25 -0800 Subject: [dba-SQLServer]Invoke Connection Dialog from a Button? References: <012901c2dc35$e05c2db0$8e01a8c0@Rock> Message-ID: <006301c2dc45$a887c740$b615010a@FHTAPIA> yup you can...check out this post :D http://databaseadvisors.com/pipermail/dba-sqlserver/2003-February/000093.htm l -Francisco http://rcm.netfirms.com ----- Original Message ----- From: "Arthur Fuller" To: Sent: Monday, February 24, 2003 10:52 AM Subject: [dba-SQLServer]Invoke Connection Dialog from a Button? : Can I do it? I looked around the DoCmd object and didn't find it. I want a : button that pops open the Connection dialog. : : -----Original Message----- : From: dba-sqlserver-admin at databaseadvisors.com : [mailto:dba-sqlserver-admin at databaseadvisors.com] On Behalf Of Arthur Fuller : Sent: February 24, 2003 1:35 PM : To: dba-sqlserver at databaseadvisors.com : Subject: RE: [dba-SQLServer]Simple way to get databases like myDB* into a : combo box? : : It only took one line of SQL, sorry to bother you with my laziness. : SELECT Name FROM master.dbo.sysdatabases WHERE CharIndex( 'Arthur', Name ) > : 0 : ORDER BY Name : Doh! : : -----Original Message----- : From: dba-sqlserver-admin at databaseadvisors.com : [mailto:dba-sqlserver-admin at databaseadvisors.com] On Behalf Of Arthur Fuller : Sent: February 24, 2003 1:23 PM : To: dba-sqlserver at databaseadvisors.com : Subject: [dba-SQLServer]Simple way to get databases like myDB* into a combo : box? : : I want to drop a list like that into an Access combo-box. I.e. several dbs : of similar names may be opened. Grab the selection, modify the connection. : Anyone got this function in the can? : Just thought I'd ask before writing it :-) : TIA, : Arthur From davide at dalyn.co.nz Mon Feb 24 15:37:29 2003 From: davide at dalyn.co.nz (David Emerson) Date: Tue, 25 Feb 2003 10:37:29 +1300 Subject: [dba-SQLServer]Sending parameters to a report Message-ID: <5.2.0.9.0.20030225102410.00bc24e0@mail.dalyn.co.nz> I have a problem with a report in an AXP/SQL2K database. I have a button on a customer form which is supposed to open up a report with just the current customers information on it. In the OpenReport statement I send the inputParameters via the OpenArgs to the report and then in the report's Open event set me.InputParameters = me.OpenArgs. The main report sproc then uses the InputParameters to select the correct record (theoretically). But I must be missing something because even though the inputparameter property is being updated, the sproc is not using the information to retrieve the correct data. Here is the main parts of the sproc - ALTER PROCEDURE sprptAccounts ( @txtCustID int, @StatementNumber int ) AS SET NOCOUNT ON SELECT tblCustomers.CustomerID, tblCustStatement.StatementID, case when [Residential]=1 then [CSurname] + [C1stName] else [TradingName] end AS SortName, tblCustStatement.SMName, tblCustStatement.SMAddress1, tblCustStatement.SMAddress2, tblCustStatement.SMSuburb, tblCustStatement.SMCity, tblCustStatement.SMPostCode, tblCustStatement.SAccountNo, case when Not ([PrevStatementDate] is null) then DateAdd("d",1,[PrevStatementDate]) else [PrevStatementDate] end AS StatFirstDate, tblCustStatement.StatementDate, tblCustStatement.StatementNumber, tblCustStatement.CurrentMth, [OneMonth]+[TwoMonths]+[ThreeMonths] AS Overdue, tblCustStatement.OneMonth, tblCustStatement.TwoMonths, tblCustStatement.ThreeMonths, tblCustStatement.ComBondBal, tblCustStatement.Processed, tblCustomers.AccStatus, tblCustomers.AccFreq, tblCustStatement.DDRegistered FROM tblCustomers INNER JOIN tblCustStatement ON tblCustomers.CustomerID = tblCustStatement.CustIDNo WHERE (tblCustomers.CustomerID = @txtCustID) and (tblCustStatement.StatementNumber = @StatementNumber) The call to open the report is - DoCmd.OpenReport "rptAccounts", acViewPreview, , , , "@CustID int = " & txtCustIDNo & ", @StatementNumber int = " & txtStatementNumber An example of the openarg sent is - @CustID int = 773500661, @StatementNumber int = 11 The report's Open event is Private Sub Report_Open(Cancel As Integer) Me.InputParameters = Me.OpenArgs End Sub Am I going about this all wrong? 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 artful at rogers.com Mon Feb 24 15:47:00 2003 From: artful at rogers.com (Arthur Fuller) Date: Mon, 24 Feb 2003 16:47:00 -0500 Subject: [dba-SQLServer]Invoke Connection Dialog from a Button? In-Reply-To: <006301c2dc45$a887c740$b615010a@FHTAPIA> Message-ID: <014d01c2dc4e$430b0270$8e01a8c0@Rock> Thanks! -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com] On Behalf Of Francisco H Tapia Sent: February 24, 2003 3:45 PM To: dba-sqlserver at databaseadvisors.com Subject: Re: [dba-SQLServer]Invoke Connection Dialog from a Button? yup you can...check out this post :D http://databaseadvisors.com/pipermail/dba-sqlserver/2003-February/000093.htm l -Francisco http://rcm.netfirms.com ----- Original Message ----- From: "Arthur Fuller" To: Sent: Monday, February 24, 2003 10:52 AM Subject: [dba-SQLServer]Invoke Connection Dialog from a Button? : Can I do it? I looked around the DoCmd object and didn't find it. I want a : button that pops open the Connection dialog. : : -----Original Message----- : From: dba-sqlserver-admin at databaseadvisors.com : [mailto:dba-sqlserver-admin at databaseadvisors.com] On Behalf Of Arthur Fuller : Sent: February 24, 2003 1:35 PM : To: dba-sqlserver at databaseadvisors.com : Subject: RE: [dba-SQLServer]Simple way to get databases like myDB* into a : combo box? : : It only took one line of SQL, sorry to bother you with my laziness. : SELECT Name FROM master.dbo.sysdatabases WHERE CharIndex( 'Arthur', Name ) > : 0 : ORDER BY Name : Doh! : : -----Original Message----- : From: dba-sqlserver-admin at databaseadvisors.com : [mailto:dba-sqlserver-admin at databaseadvisors.com] On Behalf Of Arthur Fuller : Sent: February 24, 2003 1:23 PM : To: dba-sqlserver at databaseadvisors.com : Subject: [dba-SQLServer]Simple way to get databases like myDB* into a combo : box? : : I want to drop a list like that into an Access combo-box. I.e. several dbs : of similar names may be opened. Grab the selection, modify the connection. : Anyone got this function in the can? : Just thought I'd ask before writing it :-) : TIA, : Arthur _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From szeller at cce.umn.edu Mon Feb 24 16:21:41 2003 From: szeller at cce.umn.edu (Susan Zeller) Date: Mon, 24 Feb 2003 16:21:41 -0600 Subject: [dba-SQLServer]Sending parameters to a report Message-ID: David, I've never been successful in setting the input parameters through code. What I do, is in the property box, under Input Parameters I reference somethiung on an open form such as: @DeptID = Forms!frmWiz!subcrit!txtParam_Dept I usually set the record source for the report in the on_open of the code such as: Me.RecordSource = "dbo.proc_DM_CCE_Phone_List_dyn" Seems to me that the way you describe below should work, but it's never worked for me. --Susan -----Original Message----- From: David Emerson [mailto:davide at dalyn.co.nz] Sent: Monday, February 24, 2003 3:37 PM To: dba-SQLServer at databaseadvisors.com Subject: [dba-SQLServer]Sending parameters to a report I have a problem with a report in an AXP/SQL2K database. I have a button on a customer form which is supposed to open up a report with just the current customers information on it. In the OpenReport statement I send the inputParameters via the OpenArgs to the report and then in the report's Open event set me.InputParameters = me.OpenArgs. The main report sproc then uses the InputParameters to select the correct record (theoretically). But I must be missing something because even though the inputparameter property is being updated, the sproc is not using the information to retrieve the correct data. Here is the main parts of the sproc - ALTER PROCEDURE sprptAccounts ( @txtCustID int, @StatementNumber int ) AS SET NOCOUNT ON SELECT tblCustomers.CustomerID, tblCustStatement.StatementID, case when [Residential]=1 then [CSurname] + [C1stName] else [TradingName] end AS SortName, tblCustStatement.SMName, tblCustStatement.SMAddress1, tblCustStatement.SMAddress2, tblCustStatement.SMSuburb, tblCustStatement.SMCity, tblCustStatement.SMPostCode, tblCustStatement.SAccountNo, case when Not ([PrevStatementDate] is null) then DateAdd("d",1,[PrevStatementDate]) else [PrevStatementDate] end AS StatFirstDate, tblCustStatement.StatementDate, tblCustStatement.StatementNumber, tblCustStatement.CurrentMth, [OneMonth]+[TwoMonths]+[ThreeMonths] AS Overdue, tblCustStatement.OneMonth, tblCustStatement.TwoMonths, tblCustStatement.ThreeMonths, tblCustStatement.ComBondBal, tblCustStatement.Processed, tblCustomers.AccStatus, tblCustomers.AccFreq, tblCustStatement.DDRegistered FROM tblCustomers INNER JOIN tblCustStatement ON tblCustomers.CustomerID = tblCustStatement.CustIDNo WHERE (tblCustomers.CustomerID = @txtCustID) and (tblCustStatement.StatementNumber = @StatementNumber) The call to open the report is - DoCmd.OpenReport "rptAccounts", acViewPreview, , , , "@CustID int = " & txtCustIDNo & ", @StatementNumber int = " & txtStatementNumber An example of the openarg sent is - @CustID int = 773500661, @StatementNumber int = 11 The report's Open event is Private Sub Report_Open(Cancel As Integer) Me.InputParameters = Me.OpenArgs End Sub Am I going about this all wrong? 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 Mon Feb 24 17:53:24 2003 From: davide at dalyn.co.nz (David Emerson) Date: Tue, 25 Feb 2003 12:53:24 +1300 Subject: [dba-SQLServer]Sending parameters to a report In-Reply-To: Message-ID: <5.2.0.9.0.20030225123820.00bca4c0@mail.dalyn.co.nz> Thanks for the response. Unfortunately there are two complications with this report - 1) It could be called from two different forms with different fields that are used for the parameters 2) It also is used in a situation where there might be several customers selected from a list box and copies of the report are to be printed for all of them. In the A97 version it was easy by just including the where clause in the openReport command but it doesn't seem as easy with SQL. David At 24/02/2003, you wrote: >David, > >I've never been successful in setting the input parameters through >code. What I do, is in the property box, under Input Parameters I >reference somethiung on an open form such as: > >@DeptID = Forms!frmWiz!subcrit!txtParam_Dept > >I usually set the record source for the report in the on_open of the code >such as: > >Me.RecordSource = "dbo.proc_DM_CCE_Phone_List_dyn" > >Seems to me that the way you describe below should work, but it's never >worked for me. > >--Susan > > >-----Original Message----- >From: David Emerson [mailto:davide at dalyn.co.nz] >Sent: Monday, February 24, 2003 3:37 PM >To: dba-SQLServer at databaseadvisors.com >Subject: [dba-SQLServer]Sending parameters to a report > >I have a problem with a report in an AXP/SQL2K database. > >I have a button on a customer form which is supposed to open up a report >with just the current customers information on it. In the OpenReport >statement I send the inputParameters via the OpenArgs to the report and >then in the report's Open event set me.InputParameters = me.OpenArgs. > The main report sproc then uses the InputParameters to select the > correct record (theoretically). > >But I must be missing something because even though the inputparameter >property is being updated, the sproc is not using the information to >retrieve the correct data. Here is the main parts of the sproc - > >ALTER PROCEDURE sprptAccounts > > ( > @txtCustID int, > @StatementNumber int > ) > >AS > SET NOCOUNT ON > > SELECT tblCustomers.CustomerID, tblCustStatement.StatementID, > case > when [Residential]=1 > then [CSurname] + [C1stName] > else [TradingName] > end > AS SortName, tblCustStatement.SMName, > tblCustStatement.SMAddress1, tblCustStatement.SMAddress2, > tblCustStatement.SMSuburb, tblCustStatement.SMCity, > tblCustStatement.SMPostCode, tblCustStatement.SAccountNo, > case > when Not ([PrevStatementDate] is null) > then DateAdd("d",1,[PrevStatementDate]) > else [PrevStatementDate] > end > AS StatFirstDate, tblCustStatement.StatementDate, > tblCustStatement.StatementNumber, tblCustStatement.CurrentMth, > [OneMonth]+[TwoMonths]+[ThreeMonths] AS Overdue, > tblCustStatement.OneMonth, tblCustStatement.TwoMonths, > tblCustStatement.ThreeMonths, > tblCustStatement.ComBondBal, tblCustStatement.Processed, > tblCustomers.AccStatus, tblCustomers.AccFreq, tblCustStatement.DDRegistered > FROM tblCustomers INNER JOIN tblCustStatement ON > tblCustomers.CustomerID = tblCustStatement.CustIDNo > WHERE (tblCustomers.CustomerID = @txtCustID) and > (tblCustStatement.StatementNumber = @StatementNumber) > > >The call to open the report is - > DoCmd.OpenReport "rptAccounts", acViewPreview, , , , "@CustID int = " & > txtCustIDNo & ", @StatementNumber int = " & txtStatementNumber > >An example of the openarg sent is - >@CustID int = 773500661, @StatementNumber int = 11 > >The report's Open event is > >Private Sub Report_Open(Cancel As Integer) > > Me.InputParameters = Me.OpenArgs > >End Sub > >Am I going about this all wrong? > >Regards > >David Emerson >DALYN Software Ltd >25b Cunliffe St, Johnsonville >Wellington, New Zealand >Ph/Fax (877) 456-1205 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 my.lists at verizon.net Mon Feb 24 18:13:10 2003 From: my.lists at verizon.net (Francisco H Tapia) Date: Mon, 24 Feb 2003 16:13:10 -0800 Subject: [dba-SQLServer]Sending parameters to a report References: <657FB70438B7D311AF320090279C180103C5E445@EXCHMAIL> Message-ID: <00a401c2dc62$ae8c2100$b615010a@FHTAPIA> So I see not everything is so bright over on the XP side, This is a bug in ADP's one that I am hoping will be fixed for the next version of ADPs. The best way to solve your problem is one of 2 things... EITHER a) set your rowsource through code... as me.Rowsource = "EXEC stp_MyProcedure " & VariableContainingOpenArgs1 & ", " & VariableContainingOpenArgs2 remember that the syntax is SQL so if you are passing date or string parameters you'll also need to include the ' single quotes. b) create a generic form that contains the values to your parameters and set them prior to opening your report. For some reason the sproc runs before the input paramters are set on the form or report... HTHs -Francisco http://rcm.netfirms.com ----- Original Message ----- From: "David Emerson" To: Sent: Monday, February 24, 2003 3:53 PM Subject: RE: [dba-SQLServer]Sending parameters to a report : Thanks for the response. Unfortunately there are two complications with : this report - : 1) It could be called from two different forms with different fields : that are used for the parameters : 2) It also is used in a situation where there might be several customers : selected from a list box and copies of the report are to be printed for : all of them. In the A97 version it was easy by just including the where : clause in the openReport command but it doesn't seem as easy with SQL. : : David : : At 24/02/2003, you wrote: : : : David, : : I've never been successful in setting the input parameters through code. : What I do, is in the property box, under Input Parameters I reference : somethiung on an open form such as: : : @DeptID = Forms!frmWiz!subcrit!txtParam_Dept : : I usually set the record source for the report in the on_open of the : code such as: : : Me.RecordSource = "dbo.proc_DM_CCE_Phone_List_dyn" : : Seems to me that the way you describe below should work, but it's never : worked for me. : : --Susan : : : : : -----Original Message----- : : : From: David Emerson [ mailto:davide at dalyn.co.nz : ] : : : Sent: Monday, February 24, 2003 3:37 PM : : : To: dba-SQLServer at databaseadvisors.com : : : Subject: [dba-SQLServer]Sending parameters to a report : : : : I have a problem with a report in an AXP/SQL2K database. : : : : I have a button on a customer form which is supposed to open up a report : with just the current customers information on it. In the OpenReport : statement I send the inputParameters via the OpenArgs to the report and : then in the report's Open event set me.InputParameters = me.OpenArgs. : : : The main report sproc then uses the InputParameters to select the : correct record (theoretically). : : : : But I must be missing something because even though the inputparameter : property is being updated, the sproc is not using the information to : retrieve the correct data. Here is the main parts of the sproc - : : : : ALTER PROCEDURE sprptAccounts : : : : ( : : : @txtCustID int, : : : @StatementNumber int : : : ) : : : : AS : : : SET NOCOUNT ON : : : : : : SELECT tblCustomers.CustomerID, tblCustStatement.StatementID, : : : case : : : when [Residential]=1 : : : then [CSurname] + [C1stName] : : : else [TradingName] : : : end : : : AS SortName, tblCustStatement.SMName, : tblCustStatement.SMAddress1, tblCustStatement.SMAddress2, : : : tblCustStatement.SMSuburb, tblCustStatement.SMCity, : tblCustStatement.SMPostCode, tblCustStatement.SAccountNo, : : : case : : : when Not ([PrevStatementDate] is null) : : : then DateAdd("d",1,[PrevStatementDate]) : : : else [PrevStatementDate] : : : end : : : AS StatFirstDate, tblCustStatement.StatementDate, : tblCustStatement.StatementNumber, tblCustStatement.CurrentMth, : : : [OneMonth]+[TwoMonths]+[ThreeMonths] AS Overdue, : tblCustStatement.OneMonth, tblCustStatement.TwoMonths, : : : tblCustStatement.ThreeMonths, : tblCustStatement.ComBondBal, tblCustStatement.Processed, : tblCustomers.AccStatus, tblCustomers.AccFreq, : tblCustStatement.DDRegistered : : : FROM tblCustomers INNER JOIN tblCustStatement ON : tblCustomers.CustomerID = tblCustStatement.CustIDNo : : : WHERE (tblCustomers.CustomerID = @txtCustID) and : (tblCustStatement.StatementNumber = @StatementNumber) : : : : : The call to open the report is - : : : DoCmd.OpenReport "rptAccounts", acViewPreview, , , , "@CustID int = " & : txtCustIDNo & ", @StatementNumber int = " & txtStatementNumber : : : : An example of the openarg sent is - : : : @CustID int = 773500661, @StatementNumber int = 11 : : : : The report's Open event is : : : : Private Sub Report_Open(Cancel As Integer) : : : : Me.InputParameters = Me.OpenArgs : : : : End Sub : : : : Am I going about this all wrong? : : : : Regards : : : : David Emerson : : : DALYN Software Ltd : : : 25b Cunliffe St, Johnsonville : : : Wellington, New Zealand : : : Ph/Fax (877) 456-1205 : : : : : : : Regards : : David Emerson : DALYN Software Ltd : 25b Cunliffe St, Johnsonville : Wellington, New Zealand : Ph/Fax (877) 456-1205 : : From jcolby at colbyconsulting.com Mon Feb 24 21:54:18 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Mon, 24 Feb 2003 22:54:18 -0500 Subject: [dba-SQLServer]Cross Posted - Upsizing fails Message-ID: Folks, I am trying to run the upsizing wizard on my client billing database, and it is failing miserably. Basically it thinks it is happening, and it thinks that some parts succeed (some tables) but nothing gets into the SQl Server database. I think that what might be happening is that I had a SQL Server system set up on my server. I ended up completely re-installing windows in order to get Win2K Server edition installed (won't install over Win2K Pro). Thus my old SQL Server is now gone. However I keep seeing references to that server name (the machine itself was named something different, so I can tell). I am guessing that it is trying to talk to that old SQL Server and it no longer exists. Is there any way to get rid of all traces of, all references to, a sequel server that no longer exists? Then set up Access to know about the SQL Server that does exist. Then run the upsize. BTW, back when I had the other SQL Server running, I had done this procedure. I discovered things like bad dates that SQL Server couldn't handle (I used to use 1/1/1000 as an initialized date flag, which SQl Server couldn't handle). I also discovered the problem of random autonumbers used for data synchronization in my old db wreaking havoc in SQL Server. I found and fixed all of these things and upsized this db in the past so I know it should work, and it should do so easily. I would like to use my billing application as a test bed for learning .net so I really need to get the upsizing happening. As an aside, I tried going at it from inside of SQL Server and managed to pull in about 1/2 of the tables. No rhyme nor reason that I can see why some tables came right in and others didn't. Anyway, if anyone can talk me through troubleshooting this thing and getting Access 2K upsizing working I would appreciate it. Thanks, John W. Colby Colby Consulting www.ColbyConsulting.com ---------------------------------------------------- Is email taking over your day? Manage your time with eMailBoss. Try it free! http://www.eMailBoss.com From my.lists at verizon.net Mon Feb 24 22:13:57 2003 From: my.lists at verizon.net (Francisco Tapia) Date: Mon, 24 Feb 2003 20:13:57 -0800 Subject: [dba-SQLServer]Cross Posted - Upsizing fails References: Message-ID: <00f601c2dc84$51cb0a90$0eb62904@amd2k> : Is there any way to get rid of all traces of, all references to, a sequel : server that no longer exists? Then set up Access to know about the SQL : Server that does exist. Then run the upsize. You say there are traces of the old server name, where? through the UDL interface? or through the wizard? Did you re-format your entire system in order to install Win2K server? what SP do you have installed on Win2K you should have up to SP2 at the very least... And for SQL Server 2000 you should have it up to SP2 to start, SP3, can cause some wierd abnormalities.. Once you have your Sp's up to SP2 for both the OS and SQL let us know how that is looking... I'd like to keep this thread on the list in order to keep it in the archives if you don't mind... :D -Francisco http://rcm.netfirms.com/ ----- Original Message ----- From: "John W. Colby" To: "AccessD-SQLServer" Cc: "AccessD" Sent: Monday, February 24, 2003 7:54 PM Subject: [dba-SQLServer]Cross Posted - Upsizing fails : Folks, I am trying to run the upsizing wizard on my client billing database, : and it is failing miserably. Basically it thinks it is happening, and it : thinks that some parts succeed (some tables) but nothing gets into the SQl : Server database. : : I think that what might be happening is that I had a SQL Server system set : up on my server. I ended up completely re-installing windows in order to : get Win2K Server edition installed (won't install over Win2K Pro). Thus my : old SQL Server is now gone. However I keep seeing references to that server : name (the machine itself was named something different, so I can tell). I : am guessing that it is trying to talk to that old SQL Server and it no : longer exists. : : Is there any way to get rid of all traces of, all references to, a sequel : server that no longer exists? Then set up Access to know about the SQL : Server that does exist. Then run the upsize. : : BTW, back when I had the other SQL Server running, I had done this : procedure. I discovered things like bad dates that SQL Server couldn't : handle (I used to use 1/1/1000 as an initialized date flag, which SQl Server : couldn't handle). I also discovered the problem of random autonumbers used : for data synchronization in my old db wreaking havoc in SQL Server. I found : and fixed all of these things and upsized this db in the past so I know it : should work, and it should do so easily. : : I would like to use my billing application as a test bed for learning .net : so I really need to get the upsizing happening. : : As an aside, I tried going at it from inside of SQL Server and managed to : pull in about 1/2 of the tables. No rhyme nor reason that I can see why : some tables came right in and others didn't. : : Anyway, if anyone can talk me through troubleshooting this thing and getting : Access 2K upsizing working I would appreciate it. : : Thanks, : : John W. Colby : Colby Consulting : www.ColbyConsulting.com : From jcolby at colbyconsulting.com Mon Feb 24 22:53:05 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Mon, 24 Feb 2003 23:53:05 -0500 Subject: [dba-SQLServer]Cross Posted - Upsizing fails In-Reply-To: <00f601c2dc84$51cb0a90$0eb62904@amd2k> Message-ID: Francis, As for "Where" it is coming from, I have no idea, but my guess would be the registry. The new .net stuff just "found" the old sql server and gave it to me as a choice in my combo of sql servers that I could attach to. I had to go specify the new in order to get at the new. I also deleted the old (from a right click menu in the wizard I was in in .net). As for what I did - I had Win2K Pro and SQL Server. I wanted to install Win2K Server which will not install "over" Pro. Due to the fact that I also had dual boot to Unix that was on a disk that I removed, and such ugliness, I decided to just format and start from scratch. So yes, I formatted the HD and installed Win2K Server and SQL Server from scratch. SQL Server management console shows version 5.0 (build 2195: Service Pack 3) in the help about. Windows shows 5.00.2195 Service Pack 3 Because I put my data out in one of my data disks (partitions) for the previous install, the old SQL database (the databases themselves) continued to exist after I reinstalled, however I had no idea how to get SQL Server to talk to them, and I had nothing important in them anyway, so I think I just blew them away. I just tried the upsize wizard again. The new SQL Server was the default server in the combo for selecting that. I selected new database and called in something unique (not already in SQL Server). The wizard took off and ran in about 2 seconds (or less) came back with a "table was skipped or export failed" for every table. Going to EM there is no sign of a new db by the name I specified. It looks like it just didn't do anything beyond generating a report that it didn't do anything. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of Francisco Tapia Sent: Monday, February 24, 2003 11:14 PM To: dba-sqlserver at databaseadvisors.com Subject: Re: [dba-SQLServer]Cross Posted - Upsizing fails : Is there any way to get rid of all traces of, all references to, a sequel : server that no longer exists? Then set up Access to know about the SQL : Server that does exist. Then run the upsize. You say there are traces of the old server name, where? through the UDL interface? or through the wizard? Did you re-format your entire system in order to install Win2K server? what SP do you have installed on Win2K you should have up to SP2 at the very least... And for SQL Server 2000 you should have it up to SP2 to start, SP3, can cause some wierd abnormalities.. Once you have your Sp's up to SP2 for both the OS and SQL let us know how that is looking... I'd like to keep this thread on the list in order to keep it in the archives if you don't mind... :D -Francisco http://rcm.netfirms.com/ ---------------------------------------------------- Is email taking over your day? Manage your time with eMailBoss. Try it free! http://www.eMailBoss.com -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 3268 bytes Desc: not available URL: From jcolby at colbyconsulting.com Mon Feb 24 23:23:42 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Tue, 25 Feb 2003 00:23:42 -0500 Subject: [dba-SQLServer]Cross Posted - Upsizing fails In-Reply-To: Message-ID: OK, things are getting better. I found an article on the web that mentioned that I had to create the database out in SQL Server first, which I did. I then created a DSN (I think it is called) that pointed to this table, and ran my export. This time only a handful of tables failed to export. At least I have a place to begin looking at why, rather than a complete and total failure. It would be nice to know why the "create new db" won't work though. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com] Sent: Monday, February 24, 2003 11:53 PM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]Cross Posted - Upsizing fails Francis, As for "Where" it is coming from, I have no idea, but my guess would be the registry. The new .net stuff just "found" the old sql server and gave it to me as a choice in my combo of sql servers that I could attach to. I had to go specify the new in order to get at the new. I also deleted the old (from a right click menu in the wizard I was in in .net). As for what I did - I had Win2K Pro and SQL Server. I wanted to install Win2K Server which will not install "over" Pro. Due to the fact that I also had dual boot to Unix that was on a disk that I removed, and such ugliness, I decided to just format and start from scratch. So yes, I formatted the HD and installed Win2K Server and SQL Server from scratch. SQL Server management console shows version 5.0 (build 2195: Service Pack 3) in the help about. Windows shows 5.00.2195 Service Pack 3 Because I put my data out in one of my data disks (partitions) for the previous install, the old SQL database (the databases themselves) continued to exist after I reinstalled, however I had no idea how to get SQL Server to talk to them, and I had nothing important in them anyway, so I think I just blew them away. I just tried the upsize wizard again. The new SQL Server was the default server in the combo for selecting that. I selected new database and called in something unique (not already in SQL Server). The wizard took off and ran in about 2 seconds (or less) came back with a "table was skipped or export failed" for every table. Going to EM there is no sign of a new db by the name I specified. It looks like it just didn't do anything beyond generating a report that it didn't do anything. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of Francisco Tapia Sent: Monday, February 24, 2003 11:14 PM To: dba-sqlserver at databaseadvisors.com Subject: Re: [dba-SQLServer]Cross Posted - Upsizing fails : Is there any way to get rid of all traces of, all references to, a sequel : server that no longer exists? Then set up Access to know about the SQL : Server that does exist. Then run the upsize. You say there are traces of the old server name, where? through the UDL interface? or through the wizard? Did you re-format your entire system in order to install Win2K server? what SP do you have installed on Win2K you should have up to SP2 at the very least... And for SQL Server 2000 you should have it up to SP2 to start, SP3, can cause some wierd abnormalities.. Once you have your Sp's up to SP2 for both the OS and SQL let us know how that is looking... I'd like to keep this thread on the list in order to keep it in the archives if you don't mind... :D -Francisco http://rcm.netfirms.com/ ---------------------------------------------------- Is email taking over your day? Manage your time with eMailBoss. Try it free! http://www.eMailBoss.com ---------------------------------------------------- Is email taking over your day? Manage your time with eMailBoss. Try it free! http://www.eMailBoss.com -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 3628 bytes Desc: not available URL: From my.lists at verizon.net Mon Feb 24 23:41:57 2003 From: my.lists at verizon.net (Francisco Tapia) Date: Mon, 24 Feb 2003 21:41:57 -0800 Subject: [dba-SQLServer]Cross Posted - Upsizing fails References: Message-ID: <015101c2dc90$9c743ce0$0eb62904@amd2k> you forgot the "co", Francis + co = Francisco :D Glad it worked out for you... I don't really see how you could have even seen the old server from .net if you wiped out the system, I mean that would have ment the whole registry would have gone with it too.. unless this is on another box? -Francisco http://rcm.netfirms.com/ ----- Original Message ----- From: "John W. Colby" To: Sent: Monday, February 24, 2003 9:23 PM Subject: RE: [dba-SQLServer]Cross Posted - Upsizing fails : OK, things are getting better. I found an article on the web that mentioned : that I had to create the database out in SQL Server first, which I did. I : then created a DSN (I think it is called) that pointed to this table, and : ran my export. This time only a handful of tables failed to export. At : least I have a place to begin looking at why, rather than a complete and : total failure. It would be nice to know why the "create new db" won't work : though. : : John W. Colby : Colby Consulting : www.ColbyConsulting.com : : -----Original Message----- : From: dba-sqlserver-admin at databaseadvisors.com : [mailto:dba-sqlserver-admin at databaseadvisors.com] : Sent: Monday, February 24, 2003 11:53 PM : To: dba-sqlserver at databaseadvisors.com : Subject: RE: [dba-SQLServer]Cross Posted - Upsizing fails : : Francis, : : As for "Where" it is coming from, I have no idea, but my guess would be the : registry. The new .net stuff just "found" the old sql server and gave it to : me as a choice in my combo of sql servers that I could attach to. I had to : go specify the new in order to get at the new. I also deleted the old (from : a right click menu in the wizard I was in in .net). : : As for what I did - I had Win2K Pro and SQL Server. I wanted to install : Win2K Server which will not install "over" Pro. Due to the fact that I also : had dual boot to Unix that was on a disk that I removed, and such ugliness, : I decided to just format and start from scratch. So yes, I formatted the HD : and installed Win2K Server and SQL Server from scratch. : : SQL Server management console shows version 5.0 (build 2195: Service Pack 3) : in the help about. : Windows shows 5.00.2195 Service Pack 3 : : Because I put my data out in one of my data disks (partitions) for the : previous install, the old SQL database (the databases themselves) continued : to exist after I reinstalled, however I had no idea how to get SQL Server to : talk to them, and I had nothing important in them anyway, so I think I just : blew them away. : : I just tried the upsize wizard again. The new SQL Server was the default : server in the combo for selecting that. I selected new database and called : in something unique (not already in SQL Server). The wizard took off and : ran in about 2 seconds (or less) came back with a "table was skipped or : export failed" for every table. Going to EM there is no sign of a new db by : the name I specified. : : It looks like it just didn't do anything beyond generating a report that it : didn't do anything. : : John W. Colby : Colby Consulting : www.ColbyConsulting.com : : -----Original Message----- : From: dba-sqlserver-admin at databaseadvisors.com : [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of Francisco : Tapia : Sent: Monday, February 24, 2003 11:14 PM : To: dba-sqlserver at databaseadvisors.com : Subject: Re: [dba-SQLServer]Cross Posted - Upsizing fails : : : : Is there any way to get rid of all traces of, all references to, a sequel : : server that no longer exists? Then set up Access to know about the SQL : : Server that does exist. Then run the upsize. : : You say there are traces of the old server name, where? through the UDL : interface? or through the wizard? Did you re-format your entire system in : order to install Win2K server? what SP do you have installed on Win2K you : should have up to SP2 at the very least... And for SQL Server 2000 you : should have it up to SP2 to start, SP3, can cause some wierd abnormalities.. : Once you have your Sp's up to SP2 for both the OS and SQL let us know how : that is looking... I'd like to keep this thread on the list in order to keep : it in the archives if you don't mind... :D : -Francisco : http://rcm.netfirms.com/ : : : : ---------------------------------------------------- : Is email taking over your day? Manage your time with eMailBoss. : Try it free! http://www.eMailBoss.com : : ---------------------------------------------------- : Is email taking over your day? Manage your time with eMailBoss. : Try it free! http://www.eMailBoss.com : From jcolby at colbyconsulting.com Mon Feb 24 23:52:25 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Tue, 25 Feb 2003 00:52:25 -0500 Subject: [dba-SQLServer]Cross Posted - Upsizing fails In-Reply-To: <015101c2dc90$9c743ce0$0eb62904@amd2k> Message-ID: Ooooh isn't that embarrassing! Sorry. Yes, this SQL Server is on another box. The SQL Server physically resides on my old dual PII 233 machine, which is the one I reformatted and re-installed on. I work on my dev machine which is my "new" AMD Athlon 1.33ghz, running Win2K Pro. It has the EM installed on it as well, and had been talking to the SQL Server on my "old server" (which was wiped out). Thus I am sure there is something somewhere that tells everything that said server existed. I get the feeling that the tables that failed to import did so due to an "order" problem. At the time it tired, something else it needed (a parent table) wasn't moved yet. That kind of thing. With only 4 missing it will be easy enough to drag them in I think. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of Francisco Tapia Sent: Tuesday, February 25, 2003 12:42 AM To: dba-sqlserver at databaseadvisors.com Subject: Re: [dba-SQLServer]Cross Posted - Upsizing fails you forgot the "co", Francis + co = Francisco :D Glad it worked out for you... I don't really see how you could have even seen the old server from .net if you wiped out the system, I mean that would have ment the whole registry would have gone with it too.. unless this is on another box? -Francisco http://rcm.netfirms.com/ ----- Original Message ----- From: "John W. Colby" To: Sent: Monday, February 24, 2003 9:23 PM Subject: RE: [dba-SQLServer]Cross Posted - Upsizing fails : OK, things are getting better. I found an article on the web that mentioned : that I had to create the database out in SQL Server first, which I did. I : then created a DSN (I think it is called) that pointed to this table, and : ran my export. This time only a handful of tables failed to export. At : least I have a place to begin looking at why, rather than a complete and : total failure. It would be nice to know why the "create new db" won't work : though. : : John W. Colby : Colby Consulting : www.ColbyConsulting.com : : -----Original Message----- : From: dba-sqlserver-admin at databaseadvisors.com : [mailto:dba-sqlserver-admin at databaseadvisors.com] : Sent: Monday, February 24, 2003 11:53 PM : To: dba-sqlserver at databaseadvisors.com : Subject: RE: [dba-SQLServer]Cross Posted - Upsizing fails : : Francis, : : As for "Where" it is coming from, I have no idea, but my guess would be the : registry. The new .net stuff just "found" the old sql server and gave it to : me as a choice in my combo of sql servers that I could attach to. I had to : go specify the new in order to get at the new. I also deleted the old (from : a right click menu in the wizard I was in in .net). : : As for what I did - I had Win2K Pro and SQL Server. I wanted to install : Win2K Server which will not install "over" Pro. Due to the fact that I also : had dual boot to Unix that was on a disk that I removed, and such ugliness, : I decided to just format and start from scratch. So yes, I formatted the HD : and installed Win2K Server and SQL Server from scratch. : : SQL Server management console shows version 5.0 (build 2195: Service Pack 3) : in the help about. : Windows shows 5.00.2195 Service Pack 3 : : Because I put my data out in one of my data disks (partitions) for the : previous install, the old SQL database (the databases themselves) continued : to exist after I reinstalled, however I had no idea how to get SQL Server to : talk to them, and I had nothing important in them anyway, so I think I just : blew them away. : : I just tried the upsize wizard again. The new SQL Server was the default : server in the combo for selecting that. I selected new database and called : in something unique (not already in SQL Server). The wizard took off and : ran in about 2 seconds (or less) came back with a "table was skipped or : export failed" for every table. Going to EM there is no sign of a new db by : the name I specified. : : It looks like it just didn't do anything beyond generating a report that it : didn't do anything. : : John W. Colby : Colby Consulting : www.ColbyConsulting.com : : -----Original Message----- : From: dba-sqlserver-admin at databaseadvisors.com : [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of Francisco : Tapia : Sent: Monday, February 24, 2003 11:14 PM : To: dba-sqlserver at databaseadvisors.com : Subject: Re: [dba-SQLServer]Cross Posted - Upsizing fails : : : : Is there any way to get rid of all traces of, all references to, a sequel : : server that no longer exists? Then set up Access to know about the SQL : : Server that does exist. Then run the upsize. : : You say there are traces of the old server name, where? through the UDL : interface? or through the wizard? Did you re-format your entire system in : order to install Win2K server? what SP do you have installed on Win2K you : should have up to SP2 at the very least... And for SQL Server 2000 you : should have it up to SP2 to start, SP3, can cause some wierd abnormalities.. : Once you have your Sp's up to SP2 for both the OS and SQL let us know how : that is looking... I'd like to keep this thread on the list in order to keep : it in the archives if you don't mind... :D : -Francisco : http://rcm.netfirms.com/ : : : : ---------------------------------------------------- : Is email taking over your day? Manage your time with eMailBoss. : Try it free! http://www.eMailBoss.com : : ---------------------------------------------------- : Is email taking over your day? Manage your time with eMailBoss. : Try it free! http://www.eMailBoss.com : _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com ---------------------------------------------------- Is email taking over your day? Manage your time with eMailBoss. Try it free! http://www.eMailBoss.com -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 4516 bytes Desc: not available URL: From my.lists at verizon.net Tue Feb 25 00:00:09 2003 From: my.lists at verizon.net (Francisco Tapia) Date: Mon, 24 Feb 2003 22:00:09 -0800 Subject: [dba-SQLServer]Cross Posted - Upsizing fails References: Message-ID: <01bd01c2dc93$275dff10$0eb62904@amd2k> no problem, just teasing... That makes a ton of sense... it seems that the server name has been saved in some sort of "cache". I've yet to run into that problem of GHOST servers, I suppose going over the registry could help clean these out... have you tried searching for the old server name?, how about the client utilities... perhaps it is cached' there?, in any case it doesn't really seem to be a problem for you now, but was just curious :D -Francisco http://rcm.netfirms.com/ ----- Original Message ----- From: "John W. Colby" To: Sent: Monday, February 24, 2003 9:52 PM Subject: RE: [dba-SQLServer]Cross Posted - Upsizing fails : Ooooh isn't that embarrassing! Sorry. : : Yes, this SQL Server is on another box. The SQL Server physically resides : on my old dual PII 233 machine, which is the one I reformatted and : re-installed on. : : I work on my dev machine which is my "new" AMD Athlon 1.33ghz, running Win2K : Pro. It has the EM installed on it as well, and had been talking to the SQL : Server on my "old server" (which was wiped out). Thus I am sure there is : something somewhere that tells everything that said server existed. I get : the feeling that the tables that failed to import did so due to an "order" : problem. At the time it tired, something else it needed (a parent table) : wasn't moved yet. That kind of thing. With only 4 missing it will be easy : enough to drag them in I think. : : John W. Colby : Colby Consulting : www.ColbyConsulting.com : : -----Original Message----- : From: dba-sqlserver-admin at databaseadvisors.com : [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of Francisco : Tapia : Sent: Tuesday, February 25, 2003 12:42 AM : To: dba-sqlserver at databaseadvisors.com : Subject: Re: [dba-SQLServer]Cross Posted - Upsizing fails : : : you forgot the "co", Francis + co = Francisco :D : : Glad it worked out for you... I don't really see how you could have even : seen the old server from .net if you wiped out the system, I mean that would : have ment the whole registry would have gone with it too.. unless this is on : another box? : : -Francisco : http://rcm.netfirms.com/ : ----- Original Message ----- : From: "John W. Colby" : To: : Sent: Monday, February 24, 2003 9:23 PM : Subject: RE: [dba-SQLServer]Cross Posted - Upsizing fails : : : : OK, things are getting better. I found an article on the web that : mentioned : : that I had to create the database out in SQL Server first, which I did. I : : then created a DSN (I think it is called) that pointed to this table, and : : ran my export. This time only a handful of tables failed to export. At : : least I have a place to begin looking at why, rather than a complete and : : total failure. It would be nice to know why the "create new db" won't : work : : though. : : : : John W. Colby : : Colby Consulting : : www.ColbyConsulting.com : : : : -----Original Message----- : : From: dba-sqlserver-admin at databaseadvisors.com : : [mailto:dba-sqlserver-admin at databaseadvisors.com] : : Sent: Monday, February 24, 2003 11:53 PM : : To: dba-sqlserver at databaseadvisors.com : : Subject: RE: [dba-SQLServer]Cross Posted - Upsizing fails : : : : Francis, : : : : As for "Where" it is coming from, I have no idea, but my guess would be : the : : registry. The new .net stuff just "found" the old sql server and gave it : to : : me as a choice in my combo of sql servers that I could attach to. I had : to : : go specify the new in order to get at the new. I also deleted the old : (from : : a right click menu in the wizard I was in in .net). : : : : As for what I did - I had Win2K Pro and SQL Server. I wanted to install : : Win2K Server which will not install "over" Pro. Due to the fact that I : also : : had dual boot to Unix that was on a disk that I removed, and such : ugliness, : : I decided to just format and start from scratch. So yes, I formatted the : HD : : and installed Win2K Server and SQL Server from scratch. : : : : SQL Server management console shows version 5.0 (build 2195: Service Pack : 3) : : in the help about. : : Windows shows 5.00.2195 Service Pack 3 : : : : Because I put my data out in one of my data disks (partitions) for the : : previous install, the old SQL database (the databases themselves) : continued : : to exist after I reinstalled, however I had no idea how to get SQL Server : to : : talk to them, and I had nothing important in them anyway, so I think I : just : : blew them away. : : : : I just tried the upsize wizard again. The new SQL Server was the default : : server in the combo for selecting that. I selected new database and : called : : in something unique (not already in SQL Server). The wizard took off and : : ran in about 2 seconds (or less) came back with a "table was skipped or : : export failed" for every table. Going to EM there is no sign of a new db : by : : the name I specified. : : : : It looks like it just didn't do anything beyond generating a report that : it : : didn't do anything. : : : : John W. Colby : : Colby Consulting : : www.ColbyConsulting.com : : : : -----Original Message----- : : From: dba-sqlserver-admin at databaseadvisors.com : : [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of Francisco : : Tapia : : Sent: Monday, February 24, 2003 11:14 PM : : To: dba-sqlserver at databaseadvisors.com : : Subject: Re: [dba-SQLServer]Cross Posted - Upsizing fails : : : : : : : Is there any way to get rid of all traces of, all references to, a : sequel : : : server that no longer exists? Then set up Access to know about the SQL : : : Server that does exist. Then run the upsize. : : : : You say there are traces of the old server name, where? through the UDL : : interface? or through the wizard? Did you re-format your entire system in : : order to install Win2K server? what SP do you have installed on Win2K you : : should have up to SP2 at the very least... And for SQL Server 2000 you : : should have it up to SP2 to start, SP3, can cause some wierd : abnormalities.. : : Once you have your Sp's up to SP2 for both the OS and SQL let us know how : : that is looking... I'd like to keep this thread on the list in order to : keep : : it in the archives if you don't mind... :D : : -Francisco : : http://rcm.netfirms.com/ : : : : : : : : ---------------------------------------------------- : : Is email taking over your day? Manage your time with eMailBoss. : : Try it free! http://www.eMailBoss.com : : : : ---------------------------------------------------- : : Is email taking over your day? Manage your time with eMailBoss. : : Try it free! http://www.eMailBoss.com : : : : : _______________________________________________ : dba-SQLServer mailing list : dba-SQLServer at databaseadvisors.com : http://databaseadvisors.com/mailman/listinfo/dba-sqlserver : http://www.databaseadvisors.com : : : : : ---------------------------------------------------- : Is email taking over your day? Manage your time with eMailBoss. : Try it free! http://www.eMailBoss.com : From paul.hartland at fsmail.net Tue Feb 25 03:42:40 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 25 Feb 2003 9:42:40 +0000 Subject: [dba-SQLServer]SQL Server 7 - Stored Procedure Help - Quite Urgent. Message-ID: <20030225094240.LAKO2415.fep03-svc.ttys.com@localhost> To all, Watch for Word Wrap............... Being quite a novice with Stored Procedures on SQL Server 7.0, I'm looking for some pretty urgent help at the moment. I have two tables, lets say Table A & Table B. Table A is my master table, and Table B is a temporary table. Before Table be gets populated with any data, every existing record is deleted so I start with a fresh table so to speak. Table B consists of 3 fields PayrollNo, JobDate, JobType (these fields are also in the master table, but the master table is used to contain other consting information, which is entered at a later date). What I would like is a Stored Procedure which would Insert Table B contents into Table A, but making sure that I don't insert any duplicates into Table A (something like an unmatched query in access but with an Insert also). i.e. Table A Table B payroll jobdate jobtype id payroll jobdate jobtype 999001 01/01/01 0 1 999001 01/01/01 0 999001 01/01/01 2 2 999001 01/01/01 1 999002 01/01/01 2 3 999001 01/01/01 2 4 999002 01/01/01 0 5 999002 01/01/01 1 6 999002 01/01/01 2 So when I invoke the stored procedure, it would insert records 2, 4 and 5 from Table B into Table A........Anyone any idea what I'm on about, if so can anybody please help....... Thanks in advance Paul Hartland __________________________________________________________________________ Freeserve AnyTime - Go online whenever you want for just ?6.99 a month for your first 3 months, that's HALF PRICE! And then it's just ?13.99 a month after that. For more information visit http://www.freeserve.com/time/ or call free on 0800 970 8890 From artful at rogers.com Tue Feb 25 06:32:35 2003 From: artful at rogers.com (Arthur Fuller) Date: Tue, 25 Feb 2003 07:32:35 -0500 Subject: [dba-SQLServer]Cross Posted - Upsizing fails In-Reply-To: Message-ID: <018801c2dcc9$f9a78dc0$8e01a8c0@Rock> Is there any trace of the old server within EM? There may be an obsolete server registration that points to the old server. If so, delete it within EM. -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com] Sent: February 25, 2003 12:52 AM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]Cross Posted - Upsizing fails Ooooh isn't that embarrassing! Sorry. Yes, this SQL Server is on another box. The SQL Server physically resides on my old dual PII 233 machine, which is the one I reformatted and re-installed on. I work on my dev machine which is my "new" AMD Athlon 1.33ghz, running Win2K Pro. It has the EM installed on it as well, and had been talking to the SQL Server on my "old server" (which was wiped out). Thus I am sure there is something somewhere that tells everything that said server existed. I get the feeling that the tables that failed to import did so due to an "order" problem. At the time it tired, something else it needed (a parent table) wasn't moved yet. That kind of thing. With only 4 missing it will be easy enough to drag them in I think. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of Francisco Tapia Sent: Tuesday, February 25, 2003 12:42 AM To: dba-sqlserver at databaseadvisors.com Subject: Re: [dba-SQLServer]Cross Posted - Upsizing fails you forgot the "co", Francis + co = Francisco :D Glad it worked out for you... I don't really see how you could have even seen the old server from .net if you wiped out the system, I mean that would have ment the whole registry would have gone with it too.. unless this is on another box? -Francisco http://rcm.netfirms.com/ ----- Original Message ----- From: "John W. Colby" To: Sent: Monday, February 24, 2003 9:23 PM Subject: RE: [dba-SQLServer]Cross Posted - Upsizing fails : OK, things are getting better. I found an article on the web that mentioned : that I had to create the database out in SQL Server first, which I did. I : then created a DSN (I think it is called) that pointed to this table, and : ran my export. This time only a handful of tables failed to export. At : least I have a place to begin looking at why, rather than a complete and : total failure. It would be nice to know why the "create new db" won't work : though. : : John W. Colby : Colby Consulting : www.ColbyConsulting.com : : -----Original Message----- : From: dba-sqlserver-admin at databaseadvisors.com : [mailto:dba-sqlserver-admin at databaseadvisors.com] : Sent: Monday, February 24, 2003 11:53 PM : To: dba-sqlserver at databaseadvisors.com : Subject: RE: [dba-SQLServer]Cross Posted - Upsizing fails : : Francis, : : As for "Where" it is coming from, I have no idea, but my guess would be the : registry. The new .net stuff just "found" the old sql server and gave it to : me as a choice in my combo of sql servers that I could attach to. I had to : go specify the new in order to get at the new. I also deleted the old (from : a right click menu in the wizard I was in in .net). : : As for what I did - I had Win2K Pro and SQL Server. I wanted to install : Win2K Server which will not install "over" Pro. Due to the fact that I also : had dual boot to Unix that was on a disk that I removed, and such ugliness, : I decided to just format and start from scratch. So yes, I formatted the HD : and installed Win2K Server and SQL Server from scratch. : : SQL Server management console shows version 5.0 (build 2195: Service Pack 3) : in the help about. : Windows shows 5.00.2195 Service Pack 3 : : Because I put my data out in one of my data disks (partitions) for the : previous install, the old SQL database (the databases themselves) continued : to exist after I reinstalled, however I had no idea how to get SQL Server to : talk to them, and I had nothing important in them anyway, so I think I just : blew them away. : : I just tried the upsize wizard again. The new SQL Server was the default : server in the combo for selecting that. I selected new database and called : in something unique (not already in SQL Server). The wizard took off and : ran in about 2 seconds (or less) came back with a "table was skipped or : export failed" for every table. Going to EM there is no sign of a new db by : the name I specified. : : It looks like it just didn't do anything beyond generating a report that it : didn't do anything. : : John W. Colby : Colby Consulting : www.ColbyConsulting.com : : -----Original Message----- : From: dba-sqlserver-admin at databaseadvisors.com : [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of Francisco : Tapia : Sent: Monday, February 24, 2003 11:14 PM : To: dba-sqlserver at databaseadvisors.com : Subject: Re: [dba-SQLServer]Cross Posted - Upsizing fails : : : : Is there any way to get rid of all traces of, all references to, a sequel : : server that no longer exists? Then set up Access to know about the SQL : : Server that does exist. Then run the upsize. : : You say there are traces of the old server name, where? through the UDL : interface? or through the wizard? Did you re-format your entire system in : order to install Win2K server? what SP do you have installed on Win2K you : should have up to SP2 at the very least... And for SQL Server 2000 you : should have it up to SP2 to start, SP3, can cause some wierd abnormalities.. : Once you have your Sp's up to SP2 for both the OS and SQL let us know how : that is looking... I'd like to keep this thread on the list in order to keep : it in the archives if you don't mind... :D : -Francisco : http://rcm.netfirms.com/ : : : : ---------------------------------------------------- : Is email taking over your day? Manage your time with eMailBoss. : Try it free! http://www.eMailBoss.com : : ---------------------------------------------------- : Is email taking over your day? Manage your time with eMailBoss. : Try it free! http://www.eMailBoss.com : _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com ---------------------------------------------------- Is email taking over your day? Manage your time with eMailBoss. Try it free! http://www.eMailBoss.com -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 6844 bytes Desc: not available URL: From mikedorism at ntelos.net Tue Feb 25 07:34:17 2003 From: mikedorism at ntelos.net (Mike and Doris Manning) Date: Tue, 25 Feb 2003 08:34:17 -0500 Subject: [dba-SQLServer]Sending parameters to a report In-Reply-To: <5.2.0.9.0.20030225102410.00bc24e0@mail.dalyn.co.nz> Message-ID: <000001c2dcd2$9c7d5ea0$58350cd8@hargrove.internal> David, The only way I have been able to set them through code is to open the form or report in design view, set the parameters, close the design view copy, and then open the form or report. Here is the code I use but this code will not work if the database window is hidden. Public Sub PrepareFormRept(ItemName As String, Param As String, _ IsForm As Boolean, Optional prt As Printer) On Error GoTo ErrorHandler If IsForm = True Then DoCmd.Echo False, "Preparing Form" DoCmd.OpenForm ItemName, acViewDesign Forms(ItemName).InputParameters = Param DoCmd.Close acForm, ItemName, acSaveYes Else DoCmd.Echo False, "Preparing Report" DoCmd.OpenReport ItemName, acViewDesign Reports(ItemName).InputParameters = Param If Not IsMissing(prt) And Not prt Is Nothing Then Reports(ItemName).Printer = prt End If DoCmd.Close acReport, ItemName, acSaveYes End If DoCmd.Echo True Exit Sub ErrorHandler: DoCmd.Echo True Call HandleErrors(Err, strMyName, "PrepareFormRept") End Sub Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com] On Behalf Of David Emerson Sent: Monday, February 24, 2003 04:37 PM To: dba-SQLServer at databaseadvisors.com Subject: [dba-SQLServer]Sending parameters to a report I have a problem with a report in an AXP/SQL2K database. I have a button on a customer form which is supposed to open up a report with just the current customers information on it. In the OpenReport statement I send the inputParameters via the OpenArgs to the report and then in the report's Open event set me.InputParameters = me.OpenArgs. The main report sproc then uses the InputParameters to select the correct record (theoretically). But I must be missing something because even though the inputparameter property is being updated, the sproc is not using the information to retrieve the correct data. Here is the main parts of the sproc - ALTER PROCEDURE sprptAccounts ( @txtCustID int, @StatementNumber int ) AS SET NOCOUNT ON SELECT tblCustomers.CustomerID, tblCustStatement.StatementID, case when [Residential]=1 then [CSurname] + [C1stName] else [TradingName] end AS SortName, tblCustStatement.SMName, tblCustStatement.SMAddress1, tblCustStatement.SMAddress2, tblCustStatement.SMSuburb, tblCustStatement.SMCity, tblCustStatement.SMPostCode, tblCustStatement.SAccountNo, case when Not ([PrevStatementDate] is null) then DateAdd("d",1,[PrevStatementDate]) else [PrevStatementDate] end AS StatFirstDate, tblCustStatement.StatementDate, tblCustStatement.StatementNumber, tblCustStatement.CurrentMth, [OneMonth]+[TwoMonths]+[ThreeMonths] AS Overdue, tblCustStatement.OneMonth, tblCustStatement.TwoMonths, tblCustStatement.ThreeMonths, tblCustStatement.ComBondBal, tblCustStatement.Processed, tblCustomers.AccStatus, tblCustomers.AccFreq, tblCustStatement.DDRegistered FROM tblCustomers INNER JOIN tblCustStatement ON tblCustomers.CustomerID = tblCustStatement.CustIDNo WHERE (tblCustomers.CustomerID = @txtCustID) and (tblCustStatement.StatementNumber = @StatementNumber) The call to open the report is - DoCmd.OpenReport "rptAccounts", acViewPreview, , , , "@CustID int = " & txtCustIDNo & ", @StatementNumber int = " & txtStatementNumber An example of the openarg sent is - @CustID int = 773500661, @StatementNumber int = 11 The report's Open event is Private Sub Report_Open(Cancel As Integer) Me.InputParameters = Me.OpenArgs End Sub Am I going about this all wrong? 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 serbach at new.rr.com Tue Feb 25 08:02:35 2003 From: serbach at new.rr.com (Steven W. Erbach) Date: Tue, 25 Feb 2003 08:02:35 -0600 Subject: [dba-SQLServer]MCDBA Message-ID: <002501c2dcd6$922b2b90$c39ba618@W2k> Dear Group, Do any of you have the MCDBA (Microsoft Certified Database Administrator)? Are any of you contemplating it? Or does it seem relatively pointless? What about other levels of certification? Windows, Cisco, etc. What do they mean to you? Regards, Steve Erbach Scientific Marketing Neenah, WI "Nothing so needs reforming as other people's habits." - Mark Twain From AMMitchell at cmpinformation.com Tue Feb 25 07:59:40 2003 From: AMMitchell at cmpinformation.com (Allan Mitchell) Date: Tue, 25 Feb 2003 13:59:40 -0000 Subject: [dba-SQLServer]MCDBA Message-ID: <8B71136FC3E66D43811E480EBE251AFD6F0E18@APEXCH03> Yes I have it I consider it a good learning experience. It forces the person to learn about SQL Server and other stuff in a structured way Allan MCDBA, MCSE, Microsoft SQL Server MVP -----Original Message----- From: Steven W. Erbach [mailto:serbach at new.rr.com] Sent: 25 February 2003 14:03 To: dba-sqlserver at databaseadvisors.com Subject: [dba-SQLServer]MCDBA Dear Group, Do any of you have the MCDBA (Microsoft Certified Database Administrator)? Are any of you contemplating it? Or does it seem relatively pointless? What about other levels of certification? Windows, Cisco, etc. What do they mean to you? Regards, Steve Erbach Scientific Marketing Neenah, WI "Nothing so needs reforming as other people's habits." - Mark Twain _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com **************************************************************************************** IMPORTANT: Any views or opinions are solely those of the author and do not necessarily represent those of CMP Information. The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you are not the intended recipient of this message, please do not read, copy, use or disclose this communication and notify the sender immediately. It should be noted that any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. This email may be monitored. CMP Information Ltd: Registered in England & Wales Registered No 4002606 Registered Office: Ludgate House, 245 Blackfriars Road, London SE1 9UY **************************************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: From JRojas at tnco-inc.com Tue Feb 25 09:42:30 2003 From: JRojas at tnco-inc.com (Joe Rojas) Date: Tue, 25 Feb 2003 10:42:30 -0500 Subject: [dba-SQLServer]Sending parameters to a report - ? 4 Francisco Message-ID: <806536912C472E4A9D6515DF2E57261E0C58A1@mercury.tnco-inc.com> Hello Francisco, I was following this thread and I tried your example A that you mention below and I ran into a bit of a snag. In the reports OnOpen event, I first get some values for my variables and the execute the next line of code: Me.RecordSource = "EXEC sproc_PartsShipped " & intCustID & ", '" & dtStart & "', '" & dtEnd & "'" Upon execution, it gives me an error similar to: "The record source 'EXEC sproc_PartsShipped 0, '2/1/2003', '2/25/2003'" does not exist. I made sure to cut and paste the sproc name into my code to eliminate any typo error. Any idea what I am doing wrong? Thanks, Joe Rojas jrojas at tnco-inc.com -----Original Message----- From: Francisco H Tapia [mailto:my.lists at verizon.net] Sent: Monday, February 24, 2003 7:13 PM To: dba-sqlserver at databaseadvisors.com Subject: Re: [dba-SQLServer]Sending parameters to a report So I see not everything is so bright over on the XP side, This is a bug in ADP's one that I am hoping will be fixed for the next version of ADPs. The best way to solve your problem is one of 2 things... EITHER a) set your rowsource through code... as me.Rowsource = "EXEC stp_MyProcedure " & VariableContainingOpenArgs1 & ", " & VariableContainingOpenArgs2 remember that the syntax is SQL so if you are passing date or string parameters you'll also need to include the ' single quotes. b) create a generic form that contains the values to your parameters and set them prior to opening your report. For some reason the sproc runs before the input paramters are set on the form or report... HTHs -Francisco http://rcm.netfirms.com ----- Original Message ----- From: "David Emerson" To: Sent: Monday, February 24, 2003 3:53 PM Subject: RE: [dba-SQLServer]Sending parameters to a report : Thanks for the response. Unfortunately there are two complications with : this report - : 1) It could be called from two different forms with different fields : that are used for the parameters : 2) It also is used in a situation where there might be several customers : selected from a list box and copies of the report are to be printed for : all of them. In the A97 version it was easy by just including the where : clause in the openReport command but it doesn't seem as easy with SQL. : : David : : At 24/02/2003, you wrote: : : : David, : : I've never been successful in setting the input parameters through code. : What I do, is in the property box, under Input Parameters I reference : somethiung on an open form such as: : : @DeptID = Forms!frmWiz!subcrit!txtParam_Dept : : I usually set the record source for the report in the on_open of the : code such as: : : Me.RecordSource = "dbo.proc_DM_CCE_Phone_List_dyn" : : Seems to me that the way you describe below should work, but it's never : worked for me. : : --Susan : : : : : -----Original Message----- : : : From: David Emerson [ mailto:davide at dalyn.co.nz : ] : : : Sent: Monday, February 24, 2003 3:37 PM : : : To: dba-SQLServer at databaseadvisors.com : : : Subject: [dba-SQLServer]Sending parameters to a report : : : : I have a problem with a report in an AXP/SQL2K database. : : : : I have a button on a customer form which is supposed to open up a report : with just the current customers information on it. In the OpenReport : statement I send the inputParameters via the OpenArgs to the report and : then in the report's Open event set me.InputParameters = me.OpenArgs. : : : The main report sproc then uses the InputParameters to select the : correct record (theoretically). : : : : But I must be missing something because even though the inputparameter : property is being updated, the sproc is not using the information to : retrieve the correct data. Here is the main parts of the sproc - : : : : ALTER PROCEDURE sprptAccounts : : : : ( : : : @txtCustID int, : : : @StatementNumber int : : : ) : : : : AS : : : SET NOCOUNT ON : : : : : : SELECT tblCustomers.CustomerID, tblCustStatement.StatementID, : : : case : : : when [Residential]=1 : : : then [CSurname] + [C1stName] : : : else [TradingName] : : : end : : : AS SortName, tblCustStatement.SMName, : tblCustStatement.SMAddress1, tblCustStatement.SMAddress2, : : : tblCustStatement.SMSuburb, tblCustStatement.SMCity, : tblCustStatement.SMPostCode, tblCustStatement.SAccountNo, : : : case : : : when Not ([PrevStatementDate] is null) : : : then DateAdd("d",1,[PrevStatementDate]) : : : else [PrevStatementDate] : : : end : : : AS StatFirstDate, tblCustStatement.StatementDate, : tblCustStatement.StatementNumber, tblCustStatement.CurrentMth, : : : [OneMonth]+[TwoMonths]+[ThreeMonths] AS Overdue, : tblCustStatement.OneMonth, tblCustStatement.TwoMonths, : : : tblCustStatement.ThreeMonths, : tblCustStatement.ComBondBal, tblCustStatement.Processed, : tblCustomers.AccStatus, tblCustomers.AccFreq, : tblCustStatement.DDRegistered : : : FROM tblCustomers INNER JOIN tblCustStatement ON : tblCustomers.CustomerID = tblCustStatement.CustIDNo : : : WHERE (tblCustomers.CustomerID = @txtCustID) and : (tblCustStatement.StatementNumber = @StatementNumber) : : : : : The call to open the report is - : : : DoCmd.OpenReport "rptAccounts", acViewPreview, , , , "@CustID int = " & : txtCustIDNo & ", @StatementNumber int = " & txtStatementNumber : : : : An example of the openarg sent is - : : : @CustID int = 773500661, @StatementNumber int = 11 : : : : The report's Open event is : : : : Private Sub Report_Open(Cancel As Integer) : : : : Me.InputParameters = Me.OpenArgs : : : : End Sub : : : : Am I going about this all wrong? : : : : Regards : : : : David Emerson : : : DALYN Software Ltd : : : 25b Cunliffe St, Johnsonville : : : Wellington, New Zealand : : : Ph/Fax (877) 456-1205 : : : : : : : 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 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 my.lists at verizon.net Tue Feb 25 10:35:37 2003 From: my.lists at verizon.net (Francisco H Tapia) Date: Tue, 25 Feb 2003 08:35:37 -0800 Subject: [dba-SQLServer]SQL Server 7 - Stored Procedure Help - Quite Urgent. References: <20030225094240.LAKO2415.fep03-svc.ttys.com@localhost> Message-ID: <004c01c2dceb$f118b9f0$b615010a@FHTAPIA> How about .... Insert into tableA (Payroll, jobdate, jobtype) Select Payroll, jobdate, jobtype From tableB AS B WHERE NOT EXISTS( Select Payroll, jobdate, jobtype From tableA AS A Where B.Payroll = A.Payroll AND B.Jobdate = A.JobDate AND B.JobType = A.JobType) I could have used a NOT IN clause but then NOT IN can have some serious side effects...In General the above statement will be evaluated by the engine where as a NOT IN could miss evaluating the B alias in the where clause and cause it to report bad data, using Exists (or NOT EXISTS) usually yields faster performance and the assurance that it evaluates correctly. -Francisco http://rcm.netfirms.com ----- Original Message ----- From: To: ; ; Sent: Tuesday, February 25, 2003 1:42 AM Subject: [dba-SQLServer]SQL Server 7 - Stored Procedure Help - Quite Urgent. : To all, : : Watch for Word Wrap............... : : Being quite a novice with Stored Procedures on SQL Server 7.0, I'm looking for some pretty urgent help at the moment. I have two tables, lets say Table A & Table B. Table A is my master table, and Table B is a temporary table. Before Table be gets populated with any data, every existing record is deleted so I start with a fresh table so to speak. Table B consists of 3 fields PayrollNo, JobDate, JobType (these fields are also in the master table, but the master table is used to contain other consting information, which is entered at a later date). : : What I would like is a Stored Procedure which would Insert Table B contents into Table A, but making sure that I don't insert any duplicates into Table A (something like an unmatched query in access but with an Insert also). i.e. : : Table A Table B : payroll jobdate jobtype id payroll jobdate jobtype : 999001 01/01/01 0 1 999001 01/01/01 0 : 999001 01/01/01 2 2 999001 01/01/01 1 : 999002 01/01/01 2 3 999001 01/01/01 2 : 4 999002 01/01/01 0 : 5 999002 01/01/01 1 : 6 999002 01/01/01 2 : : So when I invoke the stored procedure, it would insert records 2, 4 and 5 from Table B into Table A........Anyone any idea what I'm on about, if so can anybody please help....... : : Thanks in advance : : Paul Hartland : : __________________________________________________________________________ : Freeserve AnyTime - Go online whenever you want for just ?6.99 a month for : your first 3 months, that's HALF PRICE! And then it's just ?13.99 a month : after that. : : For more information visit http://www.freeserve.com/time/ or call free on : 0800 970 8890 : : : _______________________________________________ : 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 Feb 25 10:56:09 2003 From: serbach at new.rr.com (Steven W. Erbach) Date: Tue, 25 Feb 2003 10:56:09 -0600 Subject: [dba-SQLServer]MCDBA References: <8B71136FC3E66D43811E480EBE251AFD6F0E18@APEXCH03> Message-ID: <003c01c2dcee$ce51a6e0$c39ba618@W2k> Allan, I can appreciate the structured learning bit. I was wondering because I had a conversation with a good friend who, in the past, always kept up the certifications that he had. He seems to be despairing of the cost and bother. Unless one is focused very clearly on one skill these days, certification can become very expensive very quickly. Some--Cisco, for example--require re-certification every two years. I just wonder what that buys you once you get it. Continued advancement? Better-paying jobs? I looked up MCDBA certification classes in my area and found some being offered by another old friend of mine in the Chicago area. The certification tests apparently cannot be taken unless one also takes the courses. I found that a bit of a put-off. I was also curious that, on the Microsoft site, the MCDBA is geared for those with big company experience and big servers and big databases. Somehow I doubt that these required courses offer anything in the way of simulation of huge databases or multiple platform connections...or do they? I've worked with PCs since 1982 and on mainframes for a bit before that, back to 1975. It seems demeaning somehow that I cannot take a certification test without going through an approved set of courses for which I pay a large sum of money. I'm perfectly capable of learning SQL Server--or anything else, for that matter--just fine on my own or in connection with my client experiences. I guess I'm whining about having to take those courses. If I do and if I get an MCDBA, what does it mean? Regards, Steve Erbach Scientific Marketing Neenah, WI "Nothing so needs reforming as other people's habits." - Mark Twain -------------- next part -------------- An HTML attachment was scrubbed... URL: From CWortz at tea.state.tx.us Tue Feb 25 10:57:49 2003 From: CWortz at tea.state.tx.us (Wortz, Charles) Date: Tue, 25 Feb 2003 10:57:49 -0600 Subject: [dba-SQLServer]MCDBA Message-ID: Steve, Some bureaucracies look very favorably on degrees and certificates. Some look very favorably on your past performance. Which type are you now at and which type are you looking at for a better paying job? Charles Wortz Software Development Division Texas Education Agency 1701 N. Congress Ave Austin, TX 78701-1494 512-463-9493 CWortz at tea.state.tx.us (SELECT * FROM users WHERE clue > 0) -----Original Message----- From: Steven W. Erbach [mailto:serbach at new.rr.com] Sent: Tuesday 2003 Feb 25 10:56 To: dba-sqlserver at databaseadvisors.com Subject: Re: [dba-SQLServer]MCDBA Allan, I can appreciate the structured learning bit. I was wondering because I had a conversation with a good friend who, in the past, always kept up the certifications that he had. He seems to be despairing of the cost and bother. Unless one is focused very clearly on one skill these days, certification can become very expensive very quickly. Some--Cisco, for example--require re-certification every two years. I just wonder what that buys you once you get it. Continued advancement? Better-paying jobs? I looked up MCDBA certification classes in my area and found some being offered by another old friend of mine in the Chicago area. The certification tests apparently cannot be taken unless one also takes the courses. I found that a bit of a put-off. I was also curious that, on the Microsoft site, the MCDBA is geared for those with big company experience and big servers and big databases. Somehow I doubt that these required courses offer anything in the way of simulation of huge databases or multiple platform connections...or do they? I've worked with PCs since 1982 and on mainframes for a bit before that, back to 1975. It seems demeaning somehow that I cannot take a certification test without going through an approved set of courses for which I pay a large sum of money. I'm perfectly capable of learning SQL Server--or anything else, for that matter--just fine on my own or in connection with my client experiences. I guess I'm whining about having to take those courses. If I do and if I get an MCDBA, what does it mean? Regards, Steve Erbach Scientific Marketing Neenah, WI "Nothing so needs reforming as other people's habits." - Mark Twain -------------- next part -------------- An HTML attachment was scrubbed... URL: From prosoft6 at hotmail.com Tue Feb 25 11:03:49 2003 From: prosoft6 at hotmail.com (Julie Reardon-Taylor) Date: Tue, 25 Feb 2003 12:03:49 -0500 Subject: [dba-SQLServer]Sending parameters to a report Message-ID: Susan, I am trying to do the same thing right now, referencing a field on a form as a "filter" for my report. Are you placing the input parameter in the report? Julie Reardon-Taylor PRO-SOFT OF NY, INC. www.pro-soft.net _________________________________________________________________ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus From jcolby at colbyconsulting.com Tue Feb 25 11:07:28 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Tue, 25 Feb 2003 12:07:28 -0500 Subject: [dba-SQLServer]MCDBA In-Reply-To: <003c01c2dcee$ce51a6e0$c39ba618@W2k> Message-ID: Steve, Whine away, I feel the same way. No, actually knowing how to DO something is not enough! What a crock. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of Steven W. Erbach Sent: Tuesday, February 25, 2003 11:56 AM To: dba-sqlserver at databaseadvisors.com Subject: Re: [dba-SQLServer]MCDBA Allan, I can appreciate the structured learning bit. I was wondering because I had a conversation with a good friend who, in the past, always kept up the certifications that he had. He seems to be despairing of the cost and bother. Unless one is focused very clearly on one skill these days, certification can become very expensive very quickly. Some--Cisco, for example--require re-certification every two years. I just wonder what that buys you once you get it. Continued advancement? Better-paying jobs? I looked up MCDBA certification classes in my area and found some being offered by another old friend of mine in the Chicago area. The certification tests apparently cannot be taken unless one also takes the courses. I found that a bit of a put-off. I was also curious that, on the Microsoft site, the MCDBA is geared for those with big company experience and big servers and big databases. Somehow I doubt that these required courses offer anything in the way of simulation of huge databases or multiple platform connections...or do they? I've worked with PCs since 1982 and on mainframes for a bit before that, back to 1975. It seems demeaning somehow that I cannot take a certification test without going through an approved set of courses for which I pay a large sum of money. I'm perfectly capable of learning SQL Server--or anything else, for that matter--just fine on my own or in connection with my client experiences. I guess I'm whining about having to take those courses. If I do and if I get an MCDBA, what does it mean? Regards, Steve Erbach Scientific Marketing Neenah, WI "Nothing so needs reforming as other people's habits." - Mark Twain ---------------------------------------------------------------------------- ---- Is email taking over your day? Manage your time with eMailBoss. Try it free! http://www.eMailBoss.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From my.lists at verizon.net Tue Feb 25 11:37:29 2003 From: my.lists at verizon.net (Francisco H Tapia) Date: Tue, 25 Feb 2003 09:37:29 -0800 Subject: [dba-SQLServer]MCDBA References: Message-ID: <00a201c2dcf4$92150fe0$b615010a@FHTAPIA> FWIW, IMNSHO SQL Server is leaps and bounds over typical Access Database administration. There are DBA's I email with that can script out procedures to take care of a full restore plans in case of a catastrophe. So besides server A going down or HDD 3 of the Log Raid, is down, They often manage a Farm of SQL Servers that take care of mountains of data. It's one thing to know "how" to do something and I have great respect for these DBA's as they always seem to have a minute or two to answer any of my "dumb" questions :oD. I belive the same thing holds true for System Admins... We have a "good" System Admin here at my current job, but he is by no means GREAT... there are many mistakes he makes and many more things he doesn't know. If for example he were a certified CISCO engineer, perhaps he'd be able to have a better idea of subnetting our entire large collision domain network. This is true for our own in-house Sql Server DBA, poor guy tries his damndest, but still comes up short on many DBA specific duties... he is not too familiar for example with SQL backup and restore process... or even SQL Server Agent Alerts... ouch!... I am a Programmer/Developer by title, but I dabble in everything, from software to hardware. -Francisco http://rcm.netfirms.com ----- Original Message ----- From: "John W. Colby" To: Sent: Tuesday, February 25, 2003 9:07 AM Subject: RE: [dba-SQLServer]MCDBA : Steve, : : Whine away, I feel the same way. No, actually knowing how to DO something : is not enough! : : What a crock. : John W. Colby : Colby Consulting : www.ColbyConsulting.com : : -----Original Message----- : From: dba-sqlserver-admin at databaseadvisors.com : [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of Steven W. : Erbach : Sent: Tuesday, February 25, 2003 11:56 AM : To: dba-sqlserver at databaseadvisors.com : Subject: Re: [dba-SQLServer]MCDBA : : : Allan, : : I can appreciate the structured learning bit. I was wondering because I : had a conversation with a good friend who, in the past, always kept up the : certifications that he had. He seems to be despairing of the cost and : bother. Unless one is focused very clearly on one skill these days, : certification can become very expensive very quickly. Some--Cisco, for : example--require re-certification every two years. I just wonder what that : buys you once you get it. Continued advancement? Better-paying jobs? : : I looked up MCDBA certification classes in my area and found some being : offered by another old friend of mine in the Chicago area. The certification : tests apparently cannot be taken unless one also takes the courses. I found : that a bit of a put-off. : : I was also curious that, on the Microsoft site, the MCDBA is geared for : those with big company experience and big servers and big databases. Somehow : I doubt that these required courses offer anything in the way of simulation : of huge databases or multiple platform connections...or do they? : : I've worked with PCs since 1982 and on mainframes for a bit before that, : back to 1975. It seems demeaning somehow that I cannot take a certification : test without going through an approved set of courses for which I pay a : large sum of money. I'm perfectly capable of learning SQL Server--or : anything else, for that matter--just fine on my own or in connection with my : client experiences. I guess I'm whining about having to take those courses. : If I do and if I get an MCDBA, what does it mean? : : Regards, : : Steve Erbach : Scientific Marketing : Neenah, WI : : "Nothing so needs reforming as other people's habits." - Mark Twain : : : -------------------------------------------------------------------------- -- : ---- : : Is email taking over your day? Manage your time with eMailBoss. Try it free! : http://www.eMailBoss.com : From AMMitchell at cmpinformation.com Tue Feb 25 11:27:32 2003 From: AMMitchell at cmpinformation.com (Allan Mitchell) Date: Tue, 25 Feb 2003 17:27:32 -0000 Subject: [dba-SQLServer]MCDBA Message-ID: <8B71136FC3E66D43811E480EBE251AFD6F0E22@APEXCH03> I have always thought that MCDBA and MCSE et al get you through a papersift that little bit easier. If you are a "paper" one of these i.e used the braindumps then you will be found out quite quickly. I have not looked but is it really a requirement that you take the courses.? I doubt it I do not think they are designed for people using big databases either. I have no databases over 300 GB (But I do have 500 of them). I think they are an excellent learning aid and can never harm you. Do not get me started on degrees. I think it so out of order and outdated that companies want/demand degrees for some positions. The amount of people I see in I.T with a non IT related degree is amazing. [Allan Mitchell] -----Original Message----- From: Wortz, Charles [mailto:CWortz at tea.state.tx.us] Sent: 25 February 2003 16:58 To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]MCDBA Steve, Some bureaucracies look very favorably on degrees and certificates. Some look very favorably on your past performance. Which type are you now at and which type are you looking at for a better paying job? Charles Wortz Software Development Division Texas Education Agency 1701 N. Congress Ave Austin, TX 78701-1494 512-463-9493 CWortz at tea.state.tx.us (SELECT * FROM users WHERE clue > 0) -----Original Message----- From: Steven W. Erbach [mailto:serbach at new.rr.com] Sent: Tuesday 2003 Feb 25 10:56 To: dba-sqlserver at databaseadvisors.com Subject: Re: [dba-SQLServer]MCDBA Allan, I can appreciate the structured learning bit. I was wondering because I had a conversation with a good friend who, in the past, always kept up the certifications that he had. He seems to be despairing of the cost and bother. Unless one is focused very clearly on one skill these days, certification can become very expensive very quickly. Some--Cisco, for example--require re-certification every two years. I just wonder what that buys you once you get it. Continued advancement? Better-paying jobs? I looked up MCDBA certification classes in my area and found some being offered by another old friend of mine in the Chicago area. The certification tests apparently cannot be taken unless one also takes the courses. I found that a bit of a put-off. I was also curious that, on the Microsoft site, the MCDBA is geared for those with big company experience and big servers and big databases. Somehow I doubt that these required courses offer anything in the way of simulation of huge databases or multiple platform connections...or do they? I've worked with PCs since 1982 and on mainframes for a bit before that, back to 1975. It seems demeaning somehow that I cannot take a certification test without going through an approved set of courses for which I pay a large sum of money. I'm perfectly capable of learning SQL Server--or anything else, for that matter--just fine on my own or in connection with my client experiences. I guess I'm whining about having to take those courses. If I do and if I get an MCDBA, what does it mean? Regards, Steve Erbach Scientific Marketing Neenah, WI "Nothing so needs reforming as other people's habits." - Mark Twain **************************************************************************************** IMPORTANT: Any views or opinions are solely those of the author and do not necessarily represent those of CMP Information. The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you are not the intended recipient of this message, please do not read, copy, use or disclose this communication and notify the sender immediately. It should be noted that any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. This email may be monitored. CMP Information Ltd: Registered in England & Wales Registered No 4002606 Registered Office: Ludgate House, 245 Blackfriars Road, London SE1 9UY **************************************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcolby at colbyconsulting.com Tue Feb 25 11:43:35 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Tue, 25 Feb 2003 12:43:35 -0500 Subject: [dba-SQLServer]MCDBA In-Reply-To: <00a201c2dcf4$92150fe0$b615010a@FHTAPIA> Message-ID: I hear what you are saying, but what that implies is that the tests don't measure what a person knows. If a person knows enough to pass the test, whether or not he took a class, then he knows as much as the person who took the class and got the same score (more or less). Or the tests suck and can't measure what they are supposed to so we will force everybody to take a class since that's the only way to ensure they know the stuff. In which case, why the test? John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of Francisco H Tapia Sent: Tuesday, February 25, 2003 12:37 PM To: dba-sqlserver at databaseadvisors.com Subject: Re: [dba-SQLServer]MCDBA FWIW, IMNSHO SQL Server is leaps and bounds over typical Access Database administration. There are DBA's I email with that can script out procedures to take care of a full restore plans in case of a catastrophe. So besides server A going down or HDD 3 of the Log Raid, is down, They often manage a Farm of SQL Servers that take care of mountains of data. It's one thing to know "how" to do something and I have great respect for these DBA's as they always seem to have a minute or two to answer any of my "dumb" questions :oD. I belive the same thing holds true for System Admins... We have a "good" System Admin here at my current job, but he is by no means GREAT... there are many mistakes he makes and many more things he doesn't know. If for example he were a certified CISCO engineer, perhaps he'd be able to have a better idea of subnetting our entire large collision domain network. This is true for our own in-house Sql Server DBA, poor guy tries his damndest, but still comes up short on many DBA specific duties... he is not too familiar for example with SQL backup and restore process... or even SQL Server Agent Alerts... ouch!... I am a Programmer/Developer by title, but I dabble in everything, from software to hardware. -Francisco http://rcm.netfirms.com ----- Original Message ----- From: "John W. Colby" To: Sent: Tuesday, February 25, 2003 9:07 AM Subject: RE: [dba-SQLServer]MCDBA : Steve, : : Whine away, I feel the same way. No, actually knowing how to DO something : is not enough! : : What a crock. : John W. Colby : Colby Consulting : www.ColbyConsulting.com : : -----Original Message----- : From: dba-sqlserver-admin at databaseadvisors.com : [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of Steven W. : Erbach : Sent: Tuesday, February 25, 2003 11:56 AM : To: dba-sqlserver at databaseadvisors.com : Subject: Re: [dba-SQLServer]MCDBA : : : Allan, : : I can appreciate the structured learning bit. I was wondering because I : had a conversation with a good friend who, in the past, always kept up the : certifications that he had. He seems to be despairing of the cost and : bother. Unless one is focused very clearly on one skill these days, : certification can become very expensive very quickly. Some--Cisco, for : example--require re-certification every two years. I just wonder what that : buys you once you get it. Continued advancement? Better-paying jobs? : : I looked up MCDBA certification classes in my area and found some being : offered by another old friend of mine in the Chicago area. The certification : tests apparently cannot be taken unless one also takes the courses. I found : that a bit of a put-off. : : I was also curious that, on the Microsoft site, the MCDBA is geared for : those with big company experience and big servers and big databases. Somehow : I doubt that these required courses offer anything in the way of simulation : of huge databases or multiple platform connections...or do they? : : I've worked with PCs since 1982 and on mainframes for a bit before that, : back to 1975. It seems demeaning somehow that I cannot take a certification : test without going through an approved set of courses for which I pay a : large sum of money. I'm perfectly capable of learning SQL Server--or : anything else, for that matter--just fine on my own or in connection with my : client experiences. I guess I'm whining about having to take those courses. : If I do and if I get an MCDBA, what does it mean? : : Regards, : : Steve Erbach : Scientific Marketing : Neenah, WI : : "Nothing so needs reforming as other people's habits." - Mark Twain : : : -------------------------------------------------------------------------- -- : ---- : : Is email taking over your day? Manage your time with eMailBoss. Try it free! : http://www.eMailBoss.com : _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com ---------------------------------------------------- Is email taking over your day? Manage your time with eMailBoss. Try it free! http://www.eMailBoss.com -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 4308 bytes Desc: not available URL: From szeller at cce.umn.edu Tue Feb 25 11:53:52 2003 From: szeller at cce.umn.edu (Susan Zeller) Date: Tue, 25 Feb 2003 11:53:52 -0600 Subject: [dba-SQLServer]Sending parameters to a report Message-ID: I've not gotten Francisco's method a to work, but I don't remember why anymore. It seems right, but I think he means the report's recordsource, not the rowsource. I have successfully executed a variation on his method B. Many of my reports require me to take multiple selections from a listbox. I have an invisible text box that my report input paramenters points to and that text box gets populated with the string I want to pass to the sproc. In your case, since this is called from different forms, I think you'd have to go with Francisco's common form approach. --Susan -----Original Message----- From: Francisco H Tapia [mailto:my.lists at verizon.net] Sent: Monday, February 24, 2003 6:13 PM To: dba-sqlserver at databaseadvisors.com Subject: Re: [dba-SQLServer]Sending parameters to a report So I see not everything is so bright over on the XP side, This is a bug in ADP's one that I am hoping will be fixed for the next version of ADPs. The best way to solve your problem is one of 2 things... EITHER a) set your rowsource through code... as me.Rowsource = "EXEC stp_MyProcedure " & VariableContainingOpenArgs1 & ", " & VariableContainingOpenArgs2 remember that the syntax is SQL so if you are passing date or string parameters you'll also need to include the ' single quotes. b) create a generic form that contains the values to your parameters and set them prior to opening your report. For some reason the sproc runs before the input paramters are set on the form or report... HTHs -Francisco http://rcm.netfirms.com ----- Original Message ----- From: "David Emerson" To: Sent: Monday, February 24, 2003 3:53 PM Subject: RE: [dba-SQLServer]Sending parameters to a report : Thanks for the response. Unfortunately there are two complications with : this report - : 1) It could be called from two different forms with different fields : that are used for the parameters : 2) It also is used in a situation where there might be several customers : selected from a list box and copies of the report are to be printed for : all of them. In the A97 version it was easy by just including the where : clause in the openReport command but it doesn't seem as easy with SQL. : : David : : At 24/02/2003, you wrote: : : : David, : : I've never been successful in setting the input parameters through code. : What I do, is in the property box, under Input Parameters I reference : somethiung on an open form such as: : : @DeptID = Forms!frmWiz!subcrit!txtParam_Dept : : I usually set the record source for the report in the on_open of the : code such as: : : Me.RecordSource = "dbo.proc_DM_CCE_Phone_List_dyn" : : Seems to me that the way you describe below should work, but it's never : worked for me. : : --Susan : : : : : -----Original Message----- : : : From: David Emerson [ mailto:davide at dalyn.co.nz : ] : : : Sent: Monday, February 24, 2003 3:37 PM : : : To: dba-SQLServer at databaseadvisors.com : : : Subject: [dba-SQLServer]Sending parameters to a report : : : : I have a problem with a report in an AXP/SQL2K database. : : : : I have a button on a customer form which is supposed to open up a report : with just the current customers information on it. In the OpenReport : statement I send the inputParameters via the OpenArgs to the report and : then in the report's Open event set me.InputParameters = me.OpenArgs. : : : The main report sproc then uses the InputParameters to select the : correct record (theoretically). : : : : But I must be missing something because even though the inputparameter : property is being updated, the sproc is not using the information to : retrieve the correct data. Here is the main parts of the sproc - : : : : ALTER PROCEDURE sprptAccounts : : : : ( : : : @txtCustID int, : : : @StatementNumber int : : : ) : : : : AS : : : SET NOCOUNT ON : : : : : : SELECT tblCustomers.CustomerID, tblCustStatement.StatementID, : : : case : : : when [Residential]=1 : : : then [CSurname] + [C1stName] : : : else [TradingName] : : : end : : : AS SortName, tblCustStatement.SMName, : tblCustStatement.SMAddress1, tblCustStatement.SMAddress2, : : : tblCustStatement.SMSuburb, tblCustStatement.SMCity, : tblCustStatement.SMPostCode, tblCustStatement.SAccountNo, : : : case : : : when Not ([PrevStatementDate] is null) : : : then DateAdd("d",1,[PrevStatementDate]) : : : else [PrevStatementDate] : : : end : : : AS StatFirstDate, tblCustStatement.StatementDate, : tblCustStatement.StatementNumber, tblCustStatement.CurrentMth, : : : [OneMonth]+[TwoMonths]+[ThreeMonths] AS Overdue, : tblCustStatement.OneMonth, tblCustStatement.TwoMonths, : : : tblCustStatement.ThreeMonths, : tblCustStatement.ComBondBal, tblCustStatement.Processed, : tblCustomers.AccStatus, tblCustomers.AccFreq, : tblCustStatement.DDRegistered : : : FROM tblCustomers INNER JOIN tblCustStatement ON : tblCustomers.CustomerID = tblCustStatement.CustIDNo : : : WHERE (tblCustomers.CustomerID = @txtCustID) and : (tblCustStatement.StatementNumber = @StatementNumber) : : : : : The call to open the report is - : : : DoCmd.OpenReport "rptAccounts", acViewPreview, , , , "@CustID int = " & : txtCustIDNo & ", @StatementNumber int = " & txtStatementNumber : : : : An example of the openarg sent is - : : : @CustID int = 773500661, @StatementNumber int = 11 : : : : The report's Open event is : : : : Private Sub Report_Open(Cancel As Integer) : : : : Me.InputParameters = Me.OpenArgs : : : : End Sub : : : : Am I going about this all wrong? : : : : Regards : : : : David Emerson : : : DALYN Software Ltd : : : 25b Cunliffe St, Johnsonville : : : Wellington, New Zealand : : : Ph/Fax (877) 456-1205 : : : : : : : 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 From szeller at cce.umn.edu Tue Feb 25 11:55:55 2003 From: szeller at cce.umn.edu (Susan Zeller) Date: Tue, 25 Feb 2003 11:55:55 -0600 Subject: [dba-SQLServer]Sending parameters to a report Message-ID: I have also used this method successfully, but it is cumbersome. -----Original Message----- From: Mike and Doris Manning [mailto:mikedorism at ntelos.net] Sent: Tuesday, February 25, 2003 7:34 AM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]Sending parameters to a report David, The only way I have been able to set them through code is to open the form or report in design view, set the parameters, close the design view copy, and then open the form or report. Here is the code I use but this code will not work if the database window is hidden. Public Sub PrepareFormRept(ItemName As String, Param As String, _ IsForm As Boolean, Optional prt As Printer) On Error GoTo ErrorHandler If IsForm = True Then DoCmd.Echo False, "Preparing Form" DoCmd.OpenForm ItemName, acViewDesign Forms(ItemName).InputParameters = Param DoCmd.Close acForm, ItemName, acSaveYes Else DoCmd.Echo False, "Preparing Report" DoCmd.OpenReport ItemName, acViewDesign Reports(ItemName).InputParameters = Param If Not IsMissing(prt) And Not prt Is Nothing Then Reports(ItemName).Printer = prt End If DoCmd.Close acReport, ItemName, acSaveYes End If DoCmd.Echo True Exit Sub ErrorHandler: DoCmd.Echo True Call HandleErrors(Err, strMyName, "PrepareFormRept") End Sub Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com] On Behalf Of David Emerson Sent: Monday, February 24, 2003 04:37 PM To: dba-SQLServer at databaseadvisors.com Subject: [dba-SQLServer]Sending parameters to a report I have a problem with a report in an AXP/SQL2K database. I have a button on a customer form which is supposed to open up a report with just the current customers information on it. In the OpenReport statement I send the inputParameters via the OpenArgs to the report and then in the report's Open event set me.InputParameters = me.OpenArgs. The main report sproc then uses the InputParameters to select the correct record (theoretically). But I must be missing something because even though the inputparameter property is being updated, the sproc is not using the information to retrieve the correct data. Here is the main parts of the sproc - ALTER PROCEDURE sprptAccounts ( @txtCustID int, @StatementNumber int ) AS SET NOCOUNT ON SELECT tblCustomers.CustomerID, tblCustStatement.StatementID, case when [Residential]=1 then [CSurname] + [C1stName] else [TradingName] end AS SortName, tblCustStatement.SMName, tblCustStatement.SMAddress1, tblCustStatement.SMAddress2, tblCustStatement.SMSuburb, tblCustStatement.SMCity, tblCustStatement.SMPostCode, tblCustStatement.SAccountNo, case when Not ([PrevStatementDate] is null) then DateAdd("d",1,[PrevStatementDate]) else [PrevStatementDate] end AS StatFirstDate, tblCustStatement.StatementDate, tblCustStatement.StatementNumber, tblCustStatement.CurrentMth, [OneMonth]+[TwoMonths]+[ThreeMonths] AS Overdue, tblCustStatement.OneMonth, tblCustStatement.TwoMonths, tblCustStatement.ThreeMonths, tblCustStatement.ComBondBal, tblCustStatement.Processed, tblCustomers.AccStatus, tblCustomers.AccFreq, tblCustStatement.DDRegistered FROM tblCustomers INNER JOIN tblCustStatement ON tblCustomers.CustomerID = tblCustStatement.CustIDNo WHERE (tblCustomers.CustomerID = @txtCustID) and (tblCustStatement.StatementNumber = @StatementNumber) The call to open the report is - DoCmd.OpenReport "rptAccounts", acViewPreview, , , , "@CustID int = " & txtCustIDNo & ", @StatementNumber int = " & txtStatementNumber An example of the openarg sent is - @CustID int = 773500661, @StatementNumber int = 11 The report's Open event is Private Sub Report_Open(Cancel As Integer) Me.InputParameters = Me.OpenArgs End Sub Am I going about this all wrong? 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 my.lists at verizon.net Tue Feb 25 11:59:48 2003 From: my.lists at verizon.net (Francisco H Tapia) Date: Tue, 25 Feb 2003 09:59:48 -0800 Subject: [dba-SQLServer]MCDBA References: Message-ID: <00bb01c2dcf7$b0435230$b615010a@FHTAPIA> I hear you. I am not certified... heck the only degree I have is an AA in Liberal Arts...my major was going to be in Architecture, but I found computers that much more "fun", I guess I'm a different type of architect now ;o). My work did send me to a Horizon's SqlServer Admin Class that only took 1 week. While I've been tinkering with SQL for a year now, and learning many things form going online to great sites like SqlServerCentral.com or even SWYNK.com there are certain experiences that even in a classroom environment you just won't learn. The other truth about SQLServer or any large DBMS is that you really don't want a *poser* working on them... in larger environments the newer dba's (JRdba's) usually get teamed up with a SR dba and must follow in his direction, but could you imagine what would happen on a new hire that passed the Interview and knew very little of SQL Server and ended up wiping out a production DB! (not that I'm naming my dba from where I work at };o) heh heh heh). Because they are *Mission Critical* DB's I think most companies want to make sure they get the most they can for their dollar w/ next to 0 risk. -Francisco http://rcm.netfirms.com ----- Original Message ----- From: "John W. Colby" To: Sent: Tuesday, February 25, 2003 9:43 AM Subject: RE: [dba-SQLServer]MCDBA : I hear what you are saying, but what that implies is that the tests don't : measure what a person knows. : : If a person knows enough to pass the test, whether or not he took a class, : then he knows as much as the person who took the class and got the same : score (more or less). : : Or the tests suck and can't measure what they are supposed to so we will : force everybody to take a class since that's the only way to ensure they : know the stuff. In which case, why the test? : : John W. Colby : Colby Consulting : www.ColbyConsulting.com : : -----Original Message----- : From: dba-sqlserver-admin at databaseadvisors.com : [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of Francisco : H Tapia : Sent: Tuesday, February 25, 2003 12:37 PM : To: dba-sqlserver at databaseadvisors.com : Subject: Re: [dba-SQLServer]MCDBA : : : FWIW, IMNSHO SQL Server is leaps and bounds over typical Access Database : administration. There are DBA's I email with that can script out procedures : to take care of a full restore plans in case of a catastrophe. So besides : server A going down or HDD 3 of the Log Raid, is down, They often manage a : Farm of SQL Servers that take care of mountains of data. It's one thing to : know "how" to do something and I have great respect for these DBA's as they : always seem to have a minute or two to answer any of my "dumb" questions : :oD. I belive the same thing holds true for System Admins... We have a : "good" System Admin here at my current job, but he is by no means GREAT... : there are many mistakes he makes and many more things he doesn't know. If : for example he were a certified CISCO engineer, perhaps he'd be able to have : a better idea of subnetting our entire large collision domain network. This : is true for our own in-house Sql Server DBA, poor guy tries his damndest, : but still comes up short on many DBA specific duties... he is not too : familiar for example with SQL backup and restore process... or even SQL : Server Agent Alerts... ouch!... I am a Programmer/Developer by title, but I : dabble in everything, from software to hardware. : : -Francisco : http://rcm.netfirms.com : ----- Original Message ----- : From: "John W. Colby" : To: : Sent: Tuesday, February 25, 2003 9:07 AM : Subject: RE: [dba-SQLServer]MCDBA : : : : Steve, : : : : Whine away, I feel the same way. No, actually knowing how to DO something : : is not enough! : : : : What a crock. : : John W. Colby : : Colby Consulting : : www.ColbyConsulting.com : : : : -----Original Message----- : : From: dba-sqlserver-admin at databaseadvisors.com : : [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of Steven W. : : Erbach : : Sent: Tuesday, February 25, 2003 11:56 AM : : To: dba-sqlserver at databaseadvisors.com : : Subject: Re: [dba-SQLServer]MCDBA : : : : : : Allan, : : : : I can appreciate the structured learning bit. I was wondering because I : : had a conversation with a good friend who, in the past, always kept up the : : certifications that he had. He seems to be despairing of the cost and : : bother. Unless one is focused very clearly on one skill these days, : : certification can become very expensive very quickly. Some--Cisco, for : : example--require re-certification every two years. I just wonder what that : : buys you once you get it. Continued advancement? Better-paying jobs? : : : : I looked up MCDBA certification classes in my area and found some being : : offered by another old friend of mine in the Chicago area. The : certification : : tests apparently cannot be taken unless one also takes the courses. I : found : : that a bit of a put-off. : : : : I was also curious that, on the Microsoft site, the MCDBA is geared for : : those with big company experience and big servers and big databases. : Somehow : : I doubt that these required courses offer anything in the way of : simulation : : of huge databases or multiple platform connections...or do they? : : : : I've worked with PCs since 1982 and on mainframes for a bit before that, : : back to 1975. It seems demeaning somehow that I cannot take a : certification : : test without going through an approved set of courses for which I pay a : : large sum of money. I'm perfectly capable of learning SQL Server--or : : anything else, for that matter--just fine on my own or in connection with : my : : client experiences. I guess I'm whining about having to take those : courses. : : If I do and if I get an MCDBA, what does it mean? : : : : Regards, : : : : Steve Erbach From rmoore at comtechpst.com Tue Feb 25 12:01:13 2003 From: rmoore at comtechpst.com (Ron Moore) Date: Tue, 25 Feb 2003 13:01:13 -0500 Subject: [dba-SQLServer]MCDBA In-Reply-To: Message-ID: <006801c2dcf7$e2d94d80$4814a8c0@Comtech.Comtechpst.com> John, the tests can ONLY measure one's current knowledge of the limited material in question. To me, an equal score without taking the test also suggests an intuitive learner with great comprehension skills and/or breadth of real-world experience. Perhaps an added point system for non-course takers is needed (not to be confused with a handicap or Affirmative Action)? Ron Moore Sr. Database Administrator Comtech PST Corp. Melville, NY www.comtechpst.com > -----Original Message----- > From: dba-sqlserver-admin at databaseadvisors.com > [mailto:dba-sqlserver-admin at databaseadvisors.com] > Sent: Tuesday, February 25, 2003 12:44 PM > To: dba-sqlserver at databaseadvisors.com > Subject: RE: [dba-SQLServer]MCDBA > > I hear what you are saying, but what that implies is that the tests don't > measure what a person knows. > > If a person knows enough to pass the test, whether or not he took a class, > then he knows as much as the person who took the class and got the same > score (more or less). > > Or the tests suck and can't measure what they are supposed to so we will > force everybody to take a class since that's the only way to ensure they > know the stuff. In which case, why the test? > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: dba-sqlserver-admin at databaseadvisors.com > [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of Francisco > H Tapia > Sent: Tuesday, February 25, 2003 12:37 PM > To: dba-sqlserver at databaseadvisors.com > Subject: Re: [dba-SQLServer]MCDBA > > > FWIW, IMNSHO SQL Server is leaps and bounds over typical Access Database > administration. There are DBA's I email with that can script out > procedures > to take care of a full restore plans in case of a catastrophe. So besides > server A going down or HDD 3 of the Log Raid, is down, They often manage a > Farm of SQL Servers that take care of mountains of data. It's one thing > to > know "how" to do something and I have great respect for these DBA's as > they > always seem to have a minute or two to answer any of my "dumb" questions > :oD. I belive the same thing holds true for System Admins... We have a > "good" System Admin here at my current job, but he is by no means GREAT... > there are many mistakes he makes and many more things he doesn't know. If > for example he were a certified CISCO engineer, perhaps he'd be able to > have > a better idea of subnetting our entire large collision domain network. > This > is true for our own in-house Sql Server DBA, poor guy tries his damndest, > but still comes up short on many DBA specific duties... he is not too > familiar for example with SQL backup and restore process... or even SQL > Server Agent Alerts... ouch!... I am a Programmer/Developer by title, but > I > dabble in everything, from software to hardware. > > -Francisco > http://rcm.netfirms.com > ----- Original Message ----- > From: "John W. Colby" > To: > Sent: Tuesday, February 25, 2003 9:07 AM > Subject: RE: [dba-SQLServer]MCDBA > > > : Steve, > : > : Whine away, I feel the same way. No, actually knowing how to DO > something > : is not enough! > : > : What a crock. > : John W. Colby > : Colby Consulting > : www.ColbyConsulting.com > : > : -----Original Message----- > : From: dba-sqlserver-admin at databaseadvisors.com > : [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of Steven W. > : Erbach > : Sent: Tuesday, February 25, 2003 11:56 AM > : To: dba-sqlserver at databaseadvisors.com > : Subject: Re: [dba-SQLServer]MCDBA > : > : > : Allan, > : > : I can appreciate the structured learning bit. I was wondering because > I > : had a conversation with a good friend who, in the past, always kept up > the > : certifications that he had. He seems to be despairing of the cost and > : bother. Unless one is focused very clearly on one skill these days, > : certification can become very expensive very quickly. Some--Cisco, for > : example--require re-certification every two years. I just wonder what > that > : buys you once you get it. Continued advancement? Better-paying jobs? > : > : I looked up MCDBA certification classes in my area and found some > being > : offered by another old friend of mine in the Chicago area. The > certification > : tests apparently cannot be taken unless one also takes the courses. I > found > : that a bit of a put-off. > : > : I was also curious that, on the Microsoft site, the MCDBA is geared > for > : those with big company experience and big servers and big databases. > Somehow > : I doubt that these required courses offer anything in the way of > simulation > : of huge databases or multiple platform connections...or do they? > : > : I've worked with PCs since 1982 and on mainframes for a bit before > that, > : back to 1975. It seems demeaning somehow that I cannot take a > certification > : test without going through an approved set of courses for which I pay a > : large sum of money. I'm perfectly capable of learning SQL Server--or > : anything else, for that matter--just fine on my own or in connection > with > my > : client experiences. I guess I'm whining about having to take those > courses. > : If I do and if I get an MCDBA, what does it mean? > : > : Regards, > : > : Steve Erbach > : Scientific Marketing > : Neenah, WI > : > : "Nothing so needs reforming as other people's habits." - Mark Twain > : > : > : > -------------------------------------------------------------------------- > -- > : ---- > : > : Is email taking over your day? Manage your time with eMailBoss. Try it > free! > : http://www.eMailBoss.com > : > > > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > > > > > ---------------------------------------------------- > Is email taking over your day? Manage your time with eMailBoss. > Try it free! http://www.eMailBoss.com -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 4836 bytes Desc: not available URL: From jcolby at colbyconsulting.com Tue Feb 25 12:09:12 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Tue, 25 Feb 2003 13:09:12 -0500 Subject: [dba-SQLServer]MCDBA In-Reply-To: <00bb01c2dcf7$b0435230$b615010a@FHTAPIA> Message-ID: >(not that I'm naming my dba from where I work at };o) heh heh heh). ROTFL. What I wouldn't give to get a Jr DBA position working on big SQL Server DBs. As you say, there are some things that only experience can buy. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of Francisco H Tapia Sent: Tuesday, February 25, 2003 1:00 PM To: dba-sqlserver at databaseadvisors.com Subject: Re: [dba-SQLServer]MCDBA I hear you. I am not certified... heck the only degree I have is an AA in Liberal Arts...my major was going to be in Architecture, but I found computers that much more "fun", I guess I'm a different type of architect now ;o). My work did send me to a Horizon's SqlServer Admin Class that only took 1 week. While I've been tinkering with SQL for a year now, and learning many things form going online to great sites like SqlServerCentral.com or even SWYNK.com there are certain experiences that even in a classroom environment you just won't learn. The other truth about SQLServer or any large DBMS is that you really don't want a *poser* working on them... in larger environments the newer dba's (JRdba's) usually get teamed up with a SR dba and must follow in his direction, but could you imagine what would happen on a new hire that passed the Interview and knew very little of SQL Server and ended up wiping out a production DB! (not that I'm naming my dba from where I work at };o) heh heh heh). Because they are *Mission Critical* DB's I think most companies want to make sure they get the most they can for their dollar w/ next to 0 risk. -Francisco http://rcm.netfirms.com ----- Original Message ----- From: "John W. Colby" To: Sent: Tuesday, February 25, 2003 9:43 AM Subject: RE: [dba-SQLServer]MCDBA : I hear what you are saying, but what that implies is that the tests don't : measure what a person knows. : : If a person knows enough to pass the test, whether or not he took a class, : then he knows as much as the person who took the class and got the same : score (more or less). : : Or the tests suck and can't measure what they are supposed to so we will : force everybody to take a class since that's the only way to ensure they : know the stuff. In which case, why the test? : : John W. Colby : Colby Consulting : www.ColbyConsulting.com : : -----Original Message----- : From: dba-sqlserver-admin at databaseadvisors.com : [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of Francisco : H Tapia : Sent: Tuesday, February 25, 2003 12:37 PM : To: dba-sqlserver at databaseadvisors.com : Subject: Re: [dba-SQLServer]MCDBA : : : FWIW, IMNSHO SQL Server is leaps and bounds over typical Access Database : administration. There are DBA's I email with that can script out procedures : to take care of a full restore plans in case of a catastrophe. So besides : server A going down or HDD 3 of the Log Raid, is down, They often manage a : Farm of SQL Servers that take care of mountains of data. It's one thing to : know "how" to do something and I have great respect for these DBA's as they : always seem to have a minute or two to answer any of my "dumb" questions : :oD. I belive the same thing holds true for System Admins... We have a : "good" System Admin here at my current job, but he is by no means GREAT... : there are many mistakes he makes and many more things he doesn't know. If : for example he were a certified CISCO engineer, perhaps he'd be able to have : a better idea of subnetting our entire large collision domain network. This : is true for our own in-house Sql Server DBA, poor guy tries his damndest, : but still comes up short on many DBA specific duties... he is not too : familiar for example with SQL backup and restore process... or even SQL : Server Agent Alerts... ouch!... I am a Programmer/Developer by title, but I : dabble in everything, from software to hardware. : : -Francisco : http://rcm.netfirms.com : ----- Original Message ----- : From: "John W. Colby" : To: : Sent: Tuesday, February 25, 2003 9:07 AM : Subject: RE: [dba-SQLServer]MCDBA : : : : Steve, : : : : Whine away, I feel the same way. No, actually knowing how to DO something : : is not enough! : : : : What a crock. : : John W. Colby : : Colby Consulting : : www.ColbyConsulting.com : : : : -----Original Message----- : : From: dba-sqlserver-admin at databaseadvisors.com : : [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of Steven W. : : Erbach : : Sent: Tuesday, February 25, 2003 11:56 AM : : To: dba-sqlserver at databaseadvisors.com : : Subject: Re: [dba-SQLServer]MCDBA : : : : : : Allan, : : : : I can appreciate the structured learning bit. I was wondering because I : : had a conversation with a good friend who, in the past, always kept up the : : certifications that he had. He seems to be despairing of the cost and : : bother. Unless one is focused very clearly on one skill these days, : : certification can become very expensive very quickly. Some--Cisco, for : : example--require re-certification every two years. I just wonder what that : : buys you once you get it. Continued advancement? Better-paying jobs? : : : : I looked up MCDBA certification classes in my area and found some being : : offered by another old friend of mine in the Chicago area. The : certification : : tests apparently cannot be taken unless one also takes the courses. I : found : : that a bit of a put-off. : : : : I was also curious that, on the Microsoft site, the MCDBA is geared for : : those with big company experience and big servers and big databases. : Somehow : : I doubt that these required courses offer anything in the way of : simulation : : of huge databases or multiple platform connections...or do they? : : : : I've worked with PCs since 1982 and on mainframes for a bit before that, : : back to 1975. It seems demeaning somehow that I cannot take a : certification : : test without going through an approved set of courses for which I pay a : : large sum of money. I'm perfectly capable of learning SQL Server--or : : anything else, for that matter--just fine on my own or in connection with : my : : client experiences. I guess I'm whining about having to take those : courses. : : If I do and if I get an MCDBA, what does it mean? : : : : Regards, : : : : Steve Erbach _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com ---------------------------------------------------- Is email taking over your day? Manage your time with eMailBoss. Try it free! http://www.eMailBoss.com -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 5172 bytes Desc: not available URL: From my.lists at verizon.net Tue Feb 25 12:10:57 2003 From: my.lists at verizon.net (Francisco H Tapia) Date: Tue, 25 Feb 2003 10:10:57 -0800 Subject: [dba-SQLServer]Sending parameters to a report References: Message-ID: <00d701c2dcf9$3f618bc0$b615010a@FHTAPIA> ARG!, I've tried testing this method and was sure that I was using it in my production ADP, but I am not :o( I have a workaround in Access2k where I decalre the input params into a hidden form that contains the dates and other paramters information that I need. It seems you can set the recordsource only as the name of the sproc, but the method works fine for a form as I threw together a simple form that feeds from the same report sproc and works w/o a hitch... this is most disturbing.. I had not realized this before (or maybe I did and had a severe lapse of C.R.S.)... -Francisco http://rcm.netfirms.com ----- Original Message ----- From: "Susan Zeller" To: Sent: Tuesday, February 25, 2003 9:53 AM Subject: RE: [dba-SQLServer]Sending parameters to a report : I've not gotten Francisco's method a to work, but I don't remember why : anymore. It seems right, but I think he means the report's : recordsource, not the rowsource. : : I have successfully executed a variation on his method B. Many of my : reports require me to take multiple selections from a listbox. I have : an invisible text box that my report input paramenters points to and : that text box gets populated with the string I want to pass to the : sproc. In your case, since this is called from different forms, I think : you'd have to go with Francisco's common form approach. : : --Susan : : : -----Original Message----- : From: Francisco H Tapia [mailto:my.lists at verizon.net] : Sent: Monday, February 24, 2003 6:13 PM : To: dba-sqlserver at databaseadvisors.com : Subject: Re: [dba-SQLServer]Sending parameters to a report : : : So I see not everything is so bright over on the XP side, This is a bug : in ADP's one that I am hoping will be fixed for the next version of : ADPs. The best way to solve your problem is one of 2 things... EITHER : a) set your rowsource through code... as me.Rowsource = "EXEC : stp_MyProcedure " & VariableContainingOpenArgs1 & ", " & : VariableContainingOpenArgs2 remember that the syntax is SQL so if you : are passing date or string parameters you'll also need to include the ' : single quotes. : : b) create a generic form that contains the values to your parameters and : set them prior to opening your report. For some reason the sproc runs : before the input paramters are set on the form or report... : : HTHs : -Francisco : http://rcm.netfirms.com : ----- Original Message ----- : From: "David Emerson" : To: : Sent: Monday, February 24, 2003 3:53 PM : Subject: RE: [dba-SQLServer]Sending parameters to a report : : : : Thanks for the response. Unfortunately there are two complications : with : : this report - : : 1) It could be called from two different forms with different fields : : that are used for the parameters : : 2) It also is used in a situation where there might be several : customers : : selected from a list box and copies of the report are to be printed : for : : all of them. In the A97 version it was easy by just including the : where : : clause in the openReport command but it doesn't seem as easy with SQL. : : : : David : : : : At 24/02/2003, you wrote: : : : : : : David, : : : : I've never been successful in setting the input parameters through : code. : : What I do, is in the property box, under Input Parameters I reference : : somethiung on an open form such as: : : : : @DeptID = Forms!frmWiz!subcrit!txtParam_Dept : : : : I usually set the record source for the report in the on_open of the : : code such as: : : : : Me.RecordSource = "dbo.proc_DM_CCE_Phone_List_dyn" : : : : Seems to me that the way you describe below should work, but it's : never : : worked for me. : : : : --Susan : : : : : : : : : : -----Original Message----- : : : : : : From: David Emerson [ mailto:davide at dalyn.co.nz : : ] : : : : : : Sent: Monday, February 24, 2003 3:37 PM : : : : : : To: dba-SQLServer at databaseadvisors.com : : : : : : Subject: [dba-SQLServer]Sending parameters to a report : : : : : : : : I have a problem with a report in an AXP/SQL2K database. : : : : : : : : I have a button on a customer form which is supposed to open up a : report : : with just the current customers information on it. In the OpenReport : : statement I send the inputParameters via the OpenArgs to the report : and : : then in the report's Open event set me.InputParameters = me.OpenArgs. : : : : : : The main report sproc then uses the InputParameters to select the : : correct record (theoretically). : : : : : : : : But I must be missing something because even though the inputparameter : : property is being updated, the sproc is not using the information to : : retrieve the correct data. Here is the main parts of the sproc - : : : : : : : : ALTER PROCEDURE sprptAccounts : : : : : : : : ( : : : : : : @txtCustID int, : : : : : : @StatementNumber int : : : : : : ) : : : : : : : : AS : : : : : : SET NOCOUNT ON : : : : : : : : : : : : SELECT tblCustomers.CustomerID, tblCustStatement.StatementID, : : : : : : case : : : : : : when [Residential]=1 : : : : : : then [CSurname] + [C1stName] : : : : : : else [TradingName] : : : : : : end : : : : : : AS SortName, tblCustStatement.SMName, : : tblCustStatement.SMAddress1, tblCustStatement.SMAddress2, : : : : : : tblCustStatement.SMSuburb, tblCustStatement.SMCity, : : tblCustStatement.SMPostCode, tblCustStatement.SAccountNo, : : : : : : case : : : : : : when Not ([PrevStatementDate] is null) : : : : : : then : DateAdd("d",1,[PrevStatementDate]) : : : : : : else [PrevStatementDate] : : : : : : end : : : : : : AS StatFirstDate, tblCustStatement.StatementDate, : : tblCustStatement.StatementNumber, tblCustStatement.CurrentMth, : : : : : : [OneMonth]+[TwoMonths]+[ThreeMonths] AS Overdue, : : tblCustStatement.OneMonth, tblCustStatement.TwoMonths, : : : : : : tblCustStatement.ThreeMonths, : : tblCustStatement.ComBondBal, tblCustStatement.Processed, : : tblCustomers.AccStatus, tblCustomers.AccFreq, : : tblCustStatement.DDRegistered : : : : : : FROM tblCustomers INNER JOIN tblCustStatement ON : : tblCustomers.CustomerID = tblCustStatement.CustIDNo : : : : : : WHERE (tblCustomers.CustomerID = @txtCustID) and : : (tblCustStatement.StatementNumber = @StatementNumber) : : : : : : : : : : The call to open the report is - : : : : : : DoCmd.OpenReport "rptAccounts", acViewPreview, , , , "@CustID int = " : & : : txtCustIDNo & ", @StatementNumber int = " & txtStatementNumber : : : : : : : : An example of the openarg sent is - : : : : : : @CustID int = 773500661, @StatementNumber int = 11 : : : : : : : : The report's Open event is : : : : : : : : Private Sub Report_Open(Cancel As Integer) : : : : : : : : Me.InputParameters = Me.OpenArgs : : : : : : : : End Sub : : : : : : : : Am I going about this all wrong? : : : : : : : : Regards : : : : : : : : David Emerson From jcolby at colbyconsulting.com Tue Feb 25 12:11:01 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Tue, 25 Feb 2003 13:11:01 -0500 Subject: [dba-SQLServer]MCDBA In-Reply-To: <006801c2dcf7$e2d94d80$4814a8c0@Comtech.Comtechpst.com> Message-ID: >To me, an equal score without taking the test also suggests an intuitive learner with great comprehension skills and/or breadth of real-world experience. Yep. Wouldn't you love to hire "an intuitive learner with great comprehension skills and/or breadth of real-world experience"? Particularly if it were "AND breadth of real-world experience"? John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com] Sent: Tuesday, February 25, 2003 1:01 PM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]MCDBA John, the tests can ONLY measure one's current knowledge of the limited material in question. To me, an equal score without taking the test also suggests an intuitive learner with great comprehension skills and/or breadth of real-world experience. Perhaps an added point system for non-course takers is needed (not to be confused with a handicap or Affirmative Action)? Ron Moore Sr. Database Administrator Comtech PST Corp. Melville, NY www.comtechpst.com -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com] Sent: Tuesday, February 25, 2003 12:44 PM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]MCDBA I hear what you are saying, but what that implies is that the tests don't measure what a person knows. If a person knows enough to pass the test, whether or not he took a class, then he knows as much as the person who took the class and got the same score (more or less). Or the tests suck and can't measure what they are supposed to so we will force everybody to take a class since that's the only way to ensure they know the stuff. In which case, why the test? John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of Francisco H Tapia Sent: Tuesday, February 25, 2003 12:37 PM To: dba-sqlserver at databaseadvisors.com Subject: Re: [dba-SQLServer]MCDBA FWIW, IMNSHO SQL Server is leaps and bounds over typical Access Database administration. There are DBA's I email with that can script out procedures to take care of a full restore plans in case of a catastrophe. So besides server A going down or HDD 3 of the Log Raid, is down, They often manage a Farm of SQL Servers that take care of mountains of data. It's one thing to know "how" to do something and I have great respect for these DBA's as they always seem to have a minute or two to answer any of my "dumb" questions :oD. I belive the same thing holds true for System Admins... We have a "good" System Admin here at my current job, but he is by no means GREAT... there are many mistakes he makes and many more things he doesn't know. If for example he were a certified CISCO engineer, perhaps he'd be able to have a better idea of subnetting our entire large collision domain network. This is true for our own in-house Sql Server DBA, poor guy tries his damndest, but still comes up short on many DBA specific duties... he is not too familiar for example with SQL backup and restore process... or even SQL Server Agent Alerts... ouch!... I am a Programmer/Developer by title, but I dabble in everything, from software to hardware. -Francisco http://rcm.netfirms.com ----- Original Message ----- From: "John W. Colby" To: Sent: Tuesday, February 25, 2003 9:07 AM Subject: RE: [dba-SQLServer]MCDBA : Steve, : : Whine away, I feel the same way. No, actually knowing how to DO something : is not enough! : : What a crock. : John W. Colby : Colby Consulting : www.ColbyConsulting.com : : -----Original Message----- : From: dba-sqlserver-admin at databaseadvisors.com : [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of Steven W. : Erbach : Sent: Tuesday, February 25, 2003 11:56 AM : To: dba-sqlserver at databaseadvisors.com : Subject: Re: [dba-SQLServer]MCDBA : : : Allan, : : I can appreciate the structured learning bit. I was wondering because I : had a conversation with a good friend who, in the past, always kept up the : certifications that he had. He seems to be despairing of the cost and : bother. Unless one is focused very clearly on one skill these days, : certification can become very expensive very quickly. Some--Cisco, for : example--require re-certification every two years. I just wonder what that : buys you once you get it. Continued advancement? Better-paying jobs? : : I looked up MCDBA certification classes in my area and found some being : offered by another old friend of mine in the Chicago area. The certification : tests apparently cannot be taken unless one also takes the courses. I found : that a bit of a put-off. : : I was also curious that, on the Microsoft site, the MCDBA is geared for : those with big company experience and big servers and big databases. Somehow : I doubt that these required courses offer anything in the way of simulation : of huge databases or multiple platform connections...or do they? : : I've worked with PCs since 1982 and on mainframes for a bit before that, : back to 1975. It seems demeaning somehow that I cannot take a certification : test without going through an approved set of courses for which I pay a : large sum of money. I'm perfectly capable of learning SQL Server--or : anything else, for that matter--just fine on my own or in connection with my : client experiences. I guess I'm whining about having to take those courses. : If I do and if I get an MCDBA, what does it mean? : : Regards, : : Steve Erbach : Scientific Marketing : Neenah, WI : : "Nothing so needs reforming as other people's habits." - Mark Twain : : : -------------------------------------------------------------------------- -- : ---- : : Is email taking over your day? Manage your time with eMailBoss. Try it free! : http://www.eMailBoss.com : _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com ---------------------------------------------------- Is email taking over your day? Manage your time with eMailBoss. Try it free! http://www.eMailBoss.com ---------------------------------------------------- Is email taking over your day? Manage your time with eMailBoss. Try it free! http://www.eMailBoss.com -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 4872 bytes Desc: not available URL: From MPorter at acsalaska.com Tue Feb 25 12:57:37 2003 From: MPorter at acsalaska.com (Porter, Mark) Date: Tue, 25 Feb 2003 09:57:37 -0900 Subject: [dba-SQLServer]MCDBA Message-ID: I have always seen certifications as merely a tool for validating your credentials to clients, or for competing for a position with an organization. It is a competition, after all, and given equal experience the position will go to the one with the cert vs. one without. Remember, the people making these decisions often times do not have the experience to make the best decision themselves. Once in the door they are pretty much meaningless - experience and judgement will get the job done over factiods learned in cramming for a certification. Just my two cents. Personally, I'll be beefing up on certs because there are specific things I want to do in the next few years and I want every edge on the competition I can get. Mark Porter -----Original Message----- From: Wortz, Charles [mailto:CWortz at tea.state.tx.us] Sent: Tuesday, February 25, 2003 7:58 AM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]MCDBA Steve, Some bureaucracies look very favorably on degrees and certificates. Some look very favorably on your past performance. Which type are you now at and which type are you looking at for a better paying job? Charles Wortz Software Development Division Texas Education Agency 1701 N. Congress Ave Austin, TX 78701-1494 512-463-9493 CWortz at tea.state.tx.us (SELECT * FROM users WHERE clue > 0) -----Original Message----- From: Steven W. Erbach [mailto:serbach at new.rr.com] Sent: Tuesday 2003 Feb 25 10:56 To: dba-sqlserver at databaseadvisors.com Subject: Re: [dba-SQLServer]MCDBA Allan, I can appreciate the structured learning bit. I was wondering because I had a conversation with a good friend who, in the past, always kept up the certifications that he had. He seems to be despairing of the cost and bother. Unless one is focused very clearly on one skill these days, certification can become very expensive very quickly. Some--Cisco, for example--require re-certification every two years. I just wonder what that buys you once you get it. Continued advancement? Better-paying jobs? I looked up MCDBA certification classes in my area and found some being offered by another old friend of mine in the Chicago area. The certification tests apparently cannot be taken unless one also takes the courses. I found that a bit of a put-off. I was also curious that, on the Microsoft site, the MCDBA is geared for those with big company experience and big servers and big databases. Somehow I doubt that these required courses offer anything in the way of simulation of huge databases or multiple platform connections...or do they? I've worked with PCs since 1982 and on mainframes for a bit before that, back to 1975. It seems demeaning somehow that I cannot take a certification test without going through an approved set of courses for which I pay a large sum of money. I'm perfectly capable of learning SQL Server--or anything else, for that matter--just fine on my own or in connection with my client experiences. I guess I'm whining about having to take those courses. If I do and if I get an MCDBA, what does it mean? Regards, Steve Erbach Scientific Marketing Neenah, WI "Nothing so needs reforming as other people's habits." - Mark Twain This transmittal may contain confidential information intended solely for the addressee. If you are not the intended recipient, you are hereby notified that you have received this transmittal in error; any review, dissemination, distribution or copying of this transmittal is strictly prohibited. If you have received this communication in error, please notify us immediately by reply or by telephone (collect at 907-564-1000) and ask to speak with the message sender. In addition, please immediately delete this message and all attachments. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From szeller at cce.umn.edu Tue Feb 25 13:03:40 2003 From: szeller at cce.umn.edu (Susan Zeller) Date: Tue, 25 Feb 2003 13:03:40 -0600 Subject: [dba-SQLServer]Sending parameters to a report Message-ID: Julie, Bring up the properties sheet on the report and then in the Input Parameters property, reference your variable and your field such as: @Term = Forms!frmWiz!subcrit!txtParam_Term, @May = Forms!frmWiz!subcrit!txtParam_May Note that I have two varialbes, @term and @May that my sproc needs so separate by comma. Also, the textbox I'm referencing is on a subform so that's why I have Forms!FormName!SubFormNAme!TextBoxName. Write a stored procedure to use as the record source of the report. Note that it's easier to set the recordsource of the report to your sproc in the on_open of the report. Then, on the report itself, in the properties window, put the table name in the recordsource slot. That way you can see your field names for report design. --Susan -----Original Message----- From: Julie Reardon-Taylor [mailto:prosoft6 at hotmail.com] Sent: Tuesday, February 25, 2003 11:04 AM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]Sending parameters to a report Susan, I am trying to do the same thing right now, referencing a field on a form as a "filter" for my report. Are you placing the input parameter in the report? Julie Reardon-Taylor PRO-SOFT OF NY, INC. www.pro-soft.net _________________________________________________________________ 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 jcolby at colbyconsulting.com Tue Feb 25 13:07:25 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Tue, 25 Feb 2003 14:07:25 -0500 Subject: [dba-SQLServer]cross posted - Time fields don't upsize Message-ID: I have discovered that in all the cases so far, my problems upsizing a table has been a date field. In one table, I actually split out the data and time into separate fields - and want to keep it that way. Unfortunately I think the time being in the date by itself makes the date look to SQL Server like it is back at the beginning of time (date wise). IOW, without a data, the time in that field looks like it's in the year 1000 or something, which is invalid in SQL Server. Which seems pretty weird all by itself - what happens if you want to log the age of an object found in a tomb or something? Anyway, is there a way to allow just the time portion to upsize to SQl Server? Or am I going to have to append the time to a valid date, then change the way I do business? John W. Colby Colby Consulting www.ColbyConsulting.com ---------------------------------------------------- Is email taking over your day? Manage your time with eMailBoss. Try it free! http://www.eMailBoss.com From jcolby at colbyconsulting.com Tue Feb 25 13:12:36 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Tue, 25 Feb 2003 14:12:36 -0500 Subject: [dba-SQLServer]Cross posted: Upsizing usys tables Message-ID: usys tables are tables which in Access appear to be system tables, i.e. are hidden when the "don't show system tables" is checked. They are not showing for the upsize. Do I have to change their name, or is there a tweak to make it upsize usys tables? John W. Colby Colby Consulting www.ColbyConsulting.com ---------------------------------------------------- Is email taking over your day? Manage your time with eMailBoss. Try it free! http://www.eMailBoss.com From jcolby at colbyconsulting.com Tue Feb 25 13:25:34 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Tue, 25 Feb 2003 14:25:34 -0500 Subject: [dba-SQLServer]EM causing network traffic Message-ID: I have the little icon for the NIC down in my toolbar - the little "two computers" icon that displays traffic on the network. I just discovered that if I have EM open and specifically have expanded the server icon so that I can see the databases / data transformation services / Management etc folders, that I get constant network traffic. As soon as I close EM, the traffic stops. Is this normal? If so, what is it doing? John W. Colby Colby Consulting www.ColbyConsulting.com ---------------------------------------------------- Is email taking over your day? Manage your time with eMailBoss. Try it free! http://www.eMailBoss.com From alan.lawhon at redstone.army.mil Tue Feb 25 13:56:26 2003 From: alan.lawhon at redstone.army.mil (Lawhon, Alan C Contractor/Morgan Research) Date: Tue, 25 Feb 2003 13:56:26 -0600 Subject: [dba-SQLServer]MCDBA: Cost of Classroom Instruction versus Cost of Self Study Message-ID: Steve: I exchanged the following correspondence with a lady named "Kathleen" (on another SQL Server message board) about two years ago. The topic of the worth (and cost) of MCDBA training came up. I thought you might find my response [to Kathleen] interesting. Alan C. Lawhon -----Original Message----- From: "Kathleen" Sent: Thursday, May 24, 2001 12:29 PM To: alan.lawhon at redstone.army.mil Subject: MCDBA Alan, I am planning to try for this certification also. I do more web work than desktop applications, but I am finding that many of my clients don't have the tech support they need for sql. Are you taking classes or taking the do-it-yourself approach? Kathleen -------------------------------------------------------------- Kathleen's very simple inquiry led to quite a response (from me) which I would like to share with the members of this list. Kathleen: It is quite a coincidence that you should contact me about this just today, as I have been spending most of this morning debating with myself over the "self study" versus "taking classes" approach to MCDBA training. After quite a bit of research, (which I'll explain in greater detail), I'm coming to a slightly depressing (but inescapable) conclusion. Regardless of which route you choose, obtaining the MCDBA certification is going to be both expensive and time consuming. I have tried both approaches - and learned some interesting lessons. First, I'll summarize my limited experience with classroom instruction - especially the brand of "training" practiced at Authorized Training Centers. A few years ago, I decided to pursue a Novell CNE certification thru classroom instruction at a Novell Authorized Education Center here in my home town. I had to enroll for a night class as I could not take off from work. This particular company, (part of a nationwide chain), scheduled me (and six or seven other people) for (literally) a one-week "cram" course. We were scheduled for the CNE Administration class from 5:00 to 11:00 P.M. (Monday thru Friday evenings) plus a full eight hours on Saturday! (This was on top of a full work day for each one of us ...) I'll freely admit that I'm getting up in years, (and maybe not quite as energetic as I used to be), but this one-week "cram" session was an exhausting experience. By Wednesday evening, most of us were struggling mightily just to stay awake and alert - much less actually "learn" anything. (I guess there are some people who thrive on this kind of cramming, but it's not really my cup of tea.) To dispel any notion that, "Well, old Alan just can't hack it!" I will state that I did earn a 4-year college degree (Bachelor of Science) going to school at night while I was also working. It took me the better part of six years to get a four year degree, but I was also working anywhere from 40 to 60 hours a week in a manufacturing plant; so, (all things consid- ered), I don't think I did all that bad. Also, my college experience was demanding and required great perseverance, but it was never as bad as the one-week "hell session" I went thru with the Novell class. I must state that classroom learning, (at least with this outfit), was quite expensive. This one-week soiree personally cost me, (as well as my classmates), a cool $1,500.00 apiece - and that was for just one of six (or seven) classes required to get the full certification. So, going the "classroom training" route is not cheap. If you go thru the whole smash, you can (easily) wind up paying a minimum of six to ten thousand dollars. Since this money was coming straight out of my own wallet, I naturally began wondering about the "self study" route as a less costly alternative. One other point about these "Authorized Train- ing Centers" before I get on to the self study option. In college, our classes were scheduled two nights a week, generally two hours per class, taking two classes. (We were NEVER in class past 10:00 P.M.!) This worked well, as it allowed a "study night" between class nights. I may possibly be biased (and unfair) to the certification training industry by basing my judgement of the entire industry on my one grueling experience. However, I must also state that this outfit had a "sales force" that worked on commission - which seems to be typical for the industry. Maybe it's just me, but I had the distinct impression that all they really cared about was shoveling people thru the mill as quickly as possible and collecting the money. Make no mistake about it: The certification racket is a business - especially as practiced by these Authorized Training Centers. If you can "learn" in that kind of environment, then I say "More power to you!" (To be fair, and at least a little objective, I will admit that the instructors at these Authorized Training Centers are, generally speaking, very competent and knowledgeble. They know their stuff ...) OK, after thoroughly trashing classroom instruction, I'll now turn my attention to self study. About a year ago my shop made a decision to convert an Access 97 FE/BE database to a SQL Server BE. Thus began a year of unremitting horror. (Maybe not quite that bad, but our manager's smiles, and generally cheery dispositions, disappeared a long time ago.) As we've gotten deeper into this thing, I've realized that obtaining a certification - especially the MCDBA cert - would be very beneficial; not only for my employer, but also for me personally. This time I decided I was going the "self study" route - of that there was no doubt! My company, a defense contractor, would "pay" for training, but there were some very significant strings attached. After thinking it over, I decided to finance my own self study - which turned out to be the correct decision. My company, (and this is typical for a lot of companies), stipulated that if they payed for your training and you left them (for any reason) within one year; then you had to return the training costs to the company. Well, my company just managed to lose the contract I'm working on to another company, (another common occur- rence in government contracting), so I would have been personally on the hook for who knows how much [money] if I had chosen to let them pay. So, I chose to pay for my training myself. To run SQL Server 2000 at home, I knew I was going to need a fairly substantial hardware rig for the "server" platform. When it was all over with, I had managed to buy approximately $4,000.00 worth of computer system. (I'm still buying the software, so I don't yet know how high that's going to run ...) Now, in order to self study and really get "hands on" with the product, you need appropriate training materials - such as books and "Study Guides." It just so happens that Microsoft has anticipated this need. They have developed a suite of "Training Kits" which prepare you (minimally) for each of the exams in the MCDBA Windows 2000 track. (If you want to check out these training kits, here are the Microsoft URLs: http://mspress.microsoft.com/PROD/BOOKS/4886.HTM http://www.mspress.microsoft.com/PROD/BOOKS/4885.HTM http://www.mspress.microsoft.com/prod/books/4681.htm Now, these training kits can be had for less than $350.00 - which looks like a real bargain - especially when compared to the cost of just one classroom course at an Authorized Training Center. (Study materials for two of the MCDBA exams - 70-215, Microsoft Windows 2000 Server, and 70-216, Microsoft Windows 2000 Network Infrastructure Administration - are covered in the Windows 2000 Core Requirements training kit.) Just today, I have discovered an expensive "kicker" in one of the training kits. The following paragraph appears in the training kit for the Windows 2000 Core Requirements: Note: To complete the exercises for Windows 2000 Server training, you will need two computers each equipped with internal modems, network interface cards and the minimum configuration above. To complete the exercises for Windows 2000 Professional training, you will need a copy of Windows 2000 Professional CD. I guess this is an indication of how wet behind the ears I am, but the Microsoft folks are stating the obvious in the fine print: You can't simulate a "network environment" without [at least] one client machine. (Duh!) So now, in order to get full value out of the training kits, I need to buy another [cheap!] computer. (Add another $500 to $1,000 to the cost of the "self study" route ...) Now I know why these Authorized Training Centers get away with highway robbery. Their thinking is probably something like, "You want to 'self study' your way to certification? Fine! But don't think that you're going to save a big pile of money." What's the old saying? "In for a dime, in for a dollar." I've already spent close to $5,000.00, so what's one or two thousand more? I'm going to tough it out, spend whatever I have to, and self study my way to the MCDBA and then the MCSE. (Hopefully, I'll make it all up with my first job offer once I'm certified.) So, to answer your question, which is better: Self study or classroom instruction? I guess it just depends on how you prefer to spend your money ... OK, this is probably a much longer response than you might have been expecting, so I apologize; but I also hope that it has been helpful - and maybe even enlightening. It has been nice hearing from you. Regardless of which approach you choose, I wish you luck (and success) in going after your cert. I have a feeling we'll both do OK. All it takes to get a certification, (or anything else), is one thing: DPM - Determination, Perseverance, and ... a lot of MONEY! (Got to have a sense of humor in this business.) Sincerely, Alan C. Lawhon From tuxedo_man at hotmail.com Tue Feb 25 14:06:39 2003 From: tuxedo_man at hotmail.com (Billy Pang) Date: Tue, 25 Feb 2003 20:06:39 +0000 Subject: [dba-SQLServer]Cross Posted - Upsizing fails Message-ID: On the machine that is trying to access the newly installed ss2k, check the Client Network Utility. There might be an old alias in there. Billy >From: "John W. Colby" >Reply-To: dba-sqlserver at databaseadvisors.com >To: >Subject: RE: [dba-SQLServer]Cross Posted - Upsizing fails >Date: Tue, 25 Feb 2003 00:52:25 -0500 > >Ooooh isn't that embarrassing! Sorry. > >Yes, this SQL Server is on another box. The SQL Server physically resides >on my old dual PII 233 machine, which is the one I reformatted and >re-installed on. > >I work on my dev machine which is my "new" AMD Athlon 1.33ghz, running >Win2K >Pro. It has the EM installed on it as well, and had been talking to the >SQL >Server on my "old server" (which was wiped out). Thus I am sure there is >something somewhere that tells everything that said server existed. I get >the feeling that the tables that failed to import did so due to an "order" >problem. At the time it tired, something else it needed (a parent table) >wasn't moved yet. That kind of thing. With only 4 missing it will be easy >enough to drag them in I think. > >John W. Colby >Colby Consulting >www.ColbyConsulting.com > >-----Original Message----- >From: dba-sqlserver-admin at databaseadvisors.com >[mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of Francisco >Tapia >Sent: Tuesday, February 25, 2003 12:42 AM >To: dba-sqlserver at databaseadvisors.com >Subject: Re: [dba-SQLServer]Cross Posted - Upsizing fails > > >you forgot the "co", Francis + co = Francisco :D > >Glad it worked out for you... I don't really see how you could have even >seen the old server from .net if you wiped out the system, I mean that >would >have ment the whole registry would have gone with it too.. unless this is >on >another box? > >-Francisco >http://rcm.netfirms.com/ >----- Original Message ----- >From: "John W. Colby" >To: >Sent: Monday, February 24, 2003 9:23 PM >Subject: RE: [dba-SQLServer]Cross Posted - Upsizing fails > > >: OK, things are getting better. I found an article on the web that >mentioned >: that I had to create the database out in SQL Server first, which I did. >I >: then created a DSN (I think it is called) that pointed to this table, and >: ran my export. This time only a handful of tables failed to export. At >: least I have a place to begin looking at why, rather than a complete and >: total failure. It would be nice to know why the "create new db" won't >work >: though. >: >: John W. Colby >: Colby Consulting >: www.ColbyConsulting.com >: >: -----Original Message----- >: From: dba-sqlserver-admin at databaseadvisors.com >: [mailto:dba-sqlserver-admin at databaseadvisors.com] >: Sent: Monday, February 24, 2003 11:53 PM >: To: dba-sqlserver at databaseadvisors.com >: Subject: RE: [dba-SQLServer]Cross Posted - Upsizing fails >: >: Francis, >: >: As for "Where" it is coming from, I have no idea, but my guess would be >the >: registry. The new .net stuff just "found" the old sql server and gave it >to >: me as a choice in my combo of sql servers that I could attach to. I had >to >: go specify the new in order to get at the new. I also deleted the old >(from >: a right click menu in the wizard I was in in .net). >: >: As for what I did - I had Win2K Pro and SQL Server. I wanted to install >: Win2K Server which will not install "over" Pro. Due to the fact that I >also >: had dual boot to Unix that was on a disk that I removed, and such >ugliness, >: I decided to just format and start from scratch. So yes, I formatted the >HD >: and installed Win2K Server and SQL Server from scratch. >: >: SQL Server management console shows version 5.0 (build 2195: Service Pack >3) >: in the help about. >: Windows shows 5.00.2195 Service Pack 3 >: >: Because I put my data out in one of my data disks (partitions) for the >: previous install, the old SQL database (the databases themselves) >continued >: to exist after I reinstalled, however I had no idea how to get SQL Server >to >: talk to them, and I had nothing important in them anyway, so I think I >just >: blew them away. >: >: I just tried the upsize wizard again. The new SQL Server was the default >: server in the combo for selecting that. I selected new database and >called >: in something unique (not already in SQL Server). The wizard took off and >: ran in about 2 seconds (or less) came back with a "table was skipped or >: export failed" for every table. Going to EM there is no sign of a new db >by >: the name I specified. >: >: It looks like it just didn't do anything beyond generating a report that >it >: didn't do anything. >: >: John W. Colby >: Colby Consulting >: www.ColbyConsulting.com >: >: -----Original Message----- >: From: dba-sqlserver-admin at databaseadvisors.com >: [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of Francisco >: Tapia >: Sent: Monday, February 24, 2003 11:14 PM >: To: dba-sqlserver at databaseadvisors.com >: Subject: Re: [dba-SQLServer]Cross Posted - Upsizing fails >: >: >: : Is there any way to get rid of all traces of, all references to, a >sequel >: : server that no longer exists? Then set up Access to know about the SQL >: : Server that does exist. Then run the upsize. >: >: You say there are traces of the old server name, where? through the UDL >: interface? or through the wizard? Did you re-format your entire system >in >: order to install Win2K server? what SP do you have installed on Win2K you >: should have up to SP2 at the very least... And for SQL Server 2000 you >: should have it up to SP2 to start, SP3, can cause some wierd >abnormalities.. >: Once you have your Sp's up to SP2 for both the OS and SQL let us know how >: that is looking... I'd like to keep this thread on the list in order to >keep >: it in the archives if you don't mind... :D >: -Francisco >: http://rcm.netfirms.com/ >: >: >: >: ---------------------------------------------------- >: Is email taking over your day? Manage your time with eMailBoss. >: Try it free! http://www.eMailBoss.com >: >: ---------------------------------------------------- >: Is email taking over your day? Manage your time with eMailBoss. >: Try it free! http://www.eMailBoss.com >: > > >_______________________________________________ >dba-SQLServer mailing list >dba-SQLServer at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-sqlserver >http://www.databaseadvisors.com > > > > >---------------------------------------------------- >Is email taking over your day? Manage your time with eMailBoss. >Try it free! http://www.eMailBoss.com ><< winmail.dat >> _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From jcolby at colbyconsulting.com Tue Feb 25 14:16:33 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Tue, 25 Feb 2003 15:16:33 -0500 Subject: [dba-SQLServer]MCDBA: Cost of Classroom Instruction versus Cost of Self Study In-Reply-To: Message-ID: Alan, That was quite the experience. Luckily I have amassed a small fortune in computers over the years and now have a network of 4 machines which allows me to just do a bunch of what you are discussing. BTW, upgrading old computers with new mother board / memory can be quite inexpensive if you do it yourself and spend the minimum. This is what I do. It cost me a couple of hundred to upgrade my wife's with a new AMD mb (built in everything including video) $50, proc (AMD 1ghz - 1.5 years ago - $80) and used a bunch of old memory I had laying around. Anyway, thanks for relating that. I self studied and took the Access MCP back when it existed. It was definitely cheaper by far than doing the course. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of Lawhon, Alan C Contractor/Morgan Research Sent: Tuesday, February 25, 2003 2:56 PM To: dba-sqlserver at databaseadvisors.com Subject: [dba-SQLServer]MCDBA: Cost of Classroom Instruction versus Cost of Self Study Steve: I exchanged the following correspondence with a lady named "Kathleen" (on another SQL Server message board) about two years ago. The topic of the worth (and cost) of MCDBA training came up. I thought you might find my response [to Kathleen] interesting. Alan C. Lawhon -----Original Message----- From: "Kathleen" Sent: Thursday, May 24, 2001 12:29 PM To: alan.lawhon at redstone.army.mil Subject: MCDBA Alan, I am planning to try for this certification also. I do more web work than desktop applications, but I am finding that many of my clients don't have the tech support they need for sql. Are you taking classes or taking the do-it-yourself approach? Kathleen -------------------------------------------------------------- Kathleen's very simple inquiry led to quite a response (from me) which I would like to share with the members of this list. Kathleen: It is quite a coincidence that you should contact me about this just today, as I have been spending most of this morning debating with myself over the "self study" versus "taking classes" approach to MCDBA training. After quite a bit of research, (which I'll explain in greater detail), I'm coming to a slightly depressing (but inescapable) conclusion. Regardless of which route you choose, obtaining the MCDBA certification is going to be both expensive and time consuming. I have tried both approaches - and learned some interesting lessons. First, I'll summarize my limited experience with classroom instruction - especially the brand of "training" practiced at Authorized Training Centers. A few years ago, I decided to pursue a Novell CNE certification thru classroom instruction at a Novell Authorized Education Center here in my home town. I had to enroll for a night class as I could not take off from work. This particular company, (part of a nationwide chain), scheduled me (and six or seven other people) for (literally) a one-week "cram" course. We were scheduled for the CNE Administration class from 5:00 to 11:00 P.M. (Monday thru Friday evenings) plus a full eight hours on Saturday! (This was on top of a full work day for each one of us ...) I'll freely admit that I'm getting up in years, (and maybe not quite as energetic as I used to be), but this one-week "cram" session was an exhausting experience. By Wednesday evening, most of us were struggling mightily just to stay awake and alert - much less actually "learn" anything. (I guess there are some people who thrive on this kind of cramming, but it's not really my cup of tea.) To dispel any notion that, "Well, old Alan just can't hack it!" I will state that I did earn a 4-year college degree (Bachelor of Science) going to school at night while I was also working. It took me the better part of six years to get a four year degree, but I was also working anywhere from 40 to 60 hours a week in a manufacturing plant; so, (all things consid- ered), I don't think I did all that bad. Also, my college experience was demanding and required great perseverance, but it was never as bad as the one-week "hell session" I went thru with the Novell class. I must state that classroom learning, (at least with this outfit), was quite expensive. This one-week soiree personally cost me, (as well as my classmates), a cool $1,500.00 apiece - and that was for just one of six (or seven) classes required to get the full certification. So, going the "classroom training" route is not cheap. If you go thru the whole smash, you can (easily) wind up paying a minimum of six to ten thousand dollars. Since this money was coming straight out of my own wallet, I naturally began wondering about the "self study" route as a less costly alternative. One other point about these "Authorized Train- ing Centers" before I get on to the self study option. In college, our classes were scheduled two nights a week, generally two hours per class, taking two classes. (We were NEVER in class past 10:00 P.M.!) This worked well, as it allowed a "study night" between class nights. I may possibly be biased (and unfair) to the certification training industry by basing my judgement of the entire industry on my one grueling experience. However, I must also state that this outfit had a "sales force" that worked on commission - which seems to be typical for the industry. Maybe it's just me, but I had the distinct impression that all they really cared about was shoveling people thru the mill as quickly as possible and collecting the money. Make no mistake about it: The certification racket is a business - especially as practiced by these Authorized Training Centers. If you can "learn" in that kind of environment, then I say "More power to you!" (To be fair, and at least a little objective, I will admit that the instructors at these Authorized Training Centers are, generally speaking, very competent and knowledgeble. They know their stuff ...) OK, after thoroughly trashing classroom instruction, I'll now turn my attention to self study. About a year ago my shop made a decision to convert an Access 97 FE/BE database to a SQL Server BE. Thus began a year of unremitting horror. (Maybe not quite that bad, but our manager's smiles, and generally cheery dispositions, disappeared a long time ago.) As we've gotten deeper into this thing, I've realized that obtaining a certification - especially the MCDBA cert - would be very beneficial; not only for my employer, but also for me personally. This time I decided I was going the "self study" route - of that there was no doubt! My company, a defense contractor, would "pay" for training, but there were some very significant strings attached. After thinking it over, I decided to finance my own self study - which turned out to be the correct decision. My company, (and this is typical for a lot of companies), stipulated that if they payed for your training and you left them (for any reason) within one year; then you had to return the training costs to the company. Well, my company just managed to lose the contract I'm working on to another company, (another common occur- rence in government contracting), so I would have been personally on the hook for who knows how much [money] if I had chosen to let them pay. So, I chose to pay for my training myself. To run SQL Server 2000 at home, I knew I was going to need a fairly substantial hardware rig for the "server" platform. When it was all over with, I had managed to buy approximately $4,000.00 worth of computer system. (I'm still buying the software, so I don't yet know how high that's going to run ...) Now, in order to self study and really get "hands on" with the product, you need appropriate training materials - such as books and "Study Guides." It just so happens that Microsoft has anticipated this need. They have developed a suite of "Training Kits" which prepare you (minimally) for each of the exams in the MCDBA Windows 2000 track. (If you want to check out these training kits, here are the Microsoft URLs: http://mspress.microsoft.com/PROD/BOOKS/4886.HTM http://www.mspress.microsoft.com/PROD/BOOKS/4885.HTM http://www.mspress.microsoft.com/prod/books/4681.htm Now, these training kits can be had for less than $350.00 - which looks like a real bargain - especially when compared to the cost of just one classroom course at an Authorized Training Center. (Study materials for two of the MCDBA exams - 70-215, Microsoft Windows 2000 Server, and 70-216, Microsoft Windows 2000 Network Infrastructure Administration - are covered in the Windows 2000 Core Requirements training kit.) Just today, I have discovered an expensive "kicker" in one of the training kits. The following paragraph appears in the training kit for the Windows 2000 Core Requirements: Note: To complete the exercises for Windows 2000 Server training, you will need two computers each equipped with internal modems, network interface cards and the minimum configuration above. To complete the exercises for Windows 2000 Professional training, you will need a copy of Windows 2000 Professional CD. I guess this is an indication of how wet behind the ears I am, but the Microsoft folks are stating the obvious in the fine print: You can't simulate a "network environment" without [at least] one client machine. (Duh!) So now, in order to get full value out of the training kits, I need to buy another [cheap!] computer. (Add another $500 to $1,000 to the cost of the "self study" route ...) Now I know why these Authorized Training Centers get away with highway robbery. Their thinking is probably something like, "You want to 'self study' your way to certification? Fine! But don't think that you're going to save a big pile of money." What's the old saying? "In for a dime, in for a dollar." I've already spent close to $5,000.00, so what's one or two thousand more? I'm going to tough it out, spend whatever I have to, and self study my way to the MCDBA and then the MCSE. (Hopefully, I'll make it all up with my first job offer once I'm certified.) So, to answer your question, which is better: Self study or classroom instruction? I guess it just depends on how you prefer to spend your money ... OK, this is probably a much longer response than you might have been expecting, so I apologize; but I also hope that it has been helpful - and maybe even enlightening. It has been nice hearing from you. Regardless of which approach you choose, I wish you luck (and success) in going after your cert. I have a feeling we'll both do OK. All it takes to get a certification, (or anything else), is one thing: DPM - Determination, Perseverance, and ... a lot of MONEY! (Got to have a sense of humor in this business.) Sincerely, Alan C. Lawhon _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com ---------------------------------------------------- Is email taking over your day? Manage your time with eMailBoss. Try it free! http://www.eMailBoss.com -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 7992 bytes Desc: not available URL: From prosoft6 at hotmail.com Tue Feb 25 14:18:17 2003 From: prosoft6 at hotmail.com (Julie Reardon-Taylor) Date: Tue, 25 Feb 2003 15:18:17 -0500 Subject: [dba-SQLServer]Sending parameters to a report Message-ID: AHHHHHHHHHH! Thank you Susan. I was using the old Access subform reference of Forms!frmWiz.form!subcrit!txtParam_May and could not get anywhere with it. Thank you! Julie Reardon-Taylor PRO-SOFT OF NY, INC. www.pro-soft.net _________________________________________________________________ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From Robert.Djabarov at usaa.com Tue Feb 25 14:19:18 2003 From: Robert.Djabarov at usaa.com (Djabarov, Robert) Date: Tue, 25 Feb 2003 14:19:18 -0600 Subject: [dba-SQLServer]SQL Server 7 - Stored Procedure Help - Quite Urgent. Message-ID: <5A31F89EC4C79B49B5030FF2EF58E9D24EBBCE@ex02.eagle.usaa.com> NOT IN has the same side effects as NOT EXISTS. It can be easily re-written as follows: insert into tableA (Payroll, JobDate, JobType) select B.Payroll, B.JobDate, B.JobType from tableB B left outer join ( select A.Payroll, A.JobDate, A.JobType from tableA A inner join tableB tb on A.Payroll = tb.Payroll AND A.Jobdate = tb.JobDate AND A.JobType = tb.JobType ) t on B.Payroll = t.Payroll and B.JobDate = t.JobDate and B.JobType = t.JobType where t.Payroll is null and t.JobDate is null and t.JobType is null ______________________________________________________ Robert Djabarov Certified MS SQL Server DBA Certified MS SQL Server Programmer Certified MS VB Programmer ? (210) 913-3148 - phone ( (210) 753-3148 - pager -----Original Message----- From: Francisco H Tapia [mailto:my.lists at verizon.net] Sent: Tuesday, February 25, 2003 10:36 AM To: dba-sqlserver at databaseadvisors.com; AccessD; dba-VB at databaseadvisors.com Subject: Re: [dba-SQLServer]SQL Server 7 - Stored Procedure Help - Quite Urgent. How about .... Insert into tableA (Payroll, jobdate, jobtype) Select Payroll, jobdate, jobtype From tableB AS B WHERE NOT EXISTS( Select Payroll, jobdate, jobtype From tableA AS A Where B.Payroll = A.Payroll AND B.Jobdate = A.JobDate AND B.JobType = A.JobType) I could have used a NOT IN clause but then NOT IN can have some serious side effects...In General the above statement will be evaluated by the engine where as a NOT IN could miss evaluating the B alias in the where clause and cause it to report bad data, using Exists (or NOT EXISTS) usually yields faster performance and the assurance that it evaluates correctly. -Francisco http://rcm.netfirms.com ----- Original Message ----- From: To: ; ; Sent: Tuesday, February 25, 2003 1:42 AM Subject: [dba-SQLServer]SQL Server 7 - Stored Procedure Help - Quite Urgent. : To all, : : Watch for Word Wrap............... : : Being quite a novice with Stored Procedures on SQL Server 7.0, I'm looking for some pretty urgent help at the moment. I have two tables, lets say Table A & Table B. Table A is my master table, and Table B is a temporary table. Before Table be gets populated with any data, every existing record is deleted so I start with a fresh table so to speak. Table B consists of 3 fields PayrollNo, JobDate, JobType (these fields are also in the master table, but the master table is used to contain other consting information, which is entered at a later date). : : What I would like is a Stored Procedure which would Insert Table B contents into Table A, but making sure that I don't insert any duplicates into Table A (something like an unmatched query in access but with an Insert also). i.e. : : Table A Table B : payroll jobdate jobtype id payroll jobdate jobtype : 999001 01/01/01 0 1 999001 01/01/01 0 : 999001 01/01/01 2 2 999001 01/01/01 1 : 999002 01/01/01 2 3 999001 01/01/01 2 : 4 999002 01/01/01 0 : 5 999002 01/01/01 1 : 6 999002 01/01/01 2 : : So when I invoke the stored procedure, it would insert records 2, 4 and 5 from Table B into Table A........Anyone any idea what I'm on about, if so can anybody please help....... : : Thanks in advance : : Paul Hartland : : __________________________________________________________________________ : Freeserve AnyTime - Go online whenever you want for just ?6.99 a month for : your first 3 months, that's HALF PRICE! And then it's just ?13.99 a month : after that. : : For more information visit http://www.freeserve.com/time/ or call free on : 0800 970 8890 : : : _______________________________________________ : 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 Tue Feb 25 14:28:19 2003 From: Robert.Djabarov at usaa.com (Djabarov, Robert) Date: Tue, 25 Feb 2003 14:28:19 -0600 Subject: [dba-SQLServer]MCDBA Message-ID: <5A31F89EC4C79B49B5030FF2EF58E9D24EBBCF@ex02.eagle.usaa.com> I have all the material for MCDBA...except it's 2 years old. Never bothered to take the time and take the tests, because was too busy helping MCSE's with their code and stored procedures :-) In between those sessions did take a 30-minute Brainbench test (3 of them) and got my certificates for free (now they actually charge for SQL-related stuff, don't know about VB). I guess I got envious seeing those MCSE's signatures, some even made with MS official stamp...don't know where they got those fancy ones...But as I mentioned earlier, I was and still am helping those MCSE's with their stuff.. ______________________________________________________ Robert Djabarov Certified MS SQL Server DBA Certified MS SQL Server Programmer Certified MS VB Programmer * (210) 913-3148 - phone <*************************************************************************************************> * (210) 753-3148 - pager -----Original Message----- From: Allan Mitchell [mailto:AMMitchell at cmpinformation.com] Sent: Tuesday, February 25, 2003 11:28 AM To: 'dba-sqlserver at databaseadvisors.com' Subject: RE: [dba-SQLServer]MCDBA I have always thought that MCDBA and MCSE et al get you through a papersift that little bit easier. If you are a "paper" one of these i.e used the braindumps then you will be found out quite quickly. I have not looked but is it really a requirement that you take the courses.? I doubt it I do not think they are designed for people using big databases either. I have no databases over 300 GB (But I do have 500 of them). I think they are an excellent learning aid and can never harm you. Do not get me started on degrees. I think it so out of order and outdated that companies want/demand degrees for some positions. The amount of people I see in I.T with a non IT related degree is amazing. [Allan Mitchell] -----Original Message----- From: Wortz, Charles [mailto:CWortz at tea.state.tx.us] Sent: 25 February 2003 16:58 To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]MCDBA Steve, Some bureaucracies look very favorably on degrees and certificates. Some look very favorably on your past performance. Which type are you now at and which type are you looking at for a better paying job? Charles Wortz Software Development Division Texas Education Agency 1701 N. Congress Ave Austin, TX 78701-1494 512-463-9493 CWortz at tea.state.tx.us (SELECT * FROM users WHERE clue > 0) -----Original Message----- From: Steven W. Erbach [mailto:serbach at new.rr.com] Sent: Tuesday 2003 Feb 25 10:56 To: dba-sqlserver at databaseadvisors.com Subject: Re: [dba-SQLServer]MCDBA Allan, I can appreciate the structured learning bit. I was wondering because I had a conversation with a good friend who, in the past, always kept up the certifications that he had. He seems to be despairing of the cost and bother. Unless one is focused very clearly on one skill these days, certification can become very expensive very quickly. Some--Cisco, for example--require re-certification every two years. I just wonder what that buys you once you get it. Continued advancement? Better-paying jobs? I looked up MCDBA certification classes in my area and found some being offered by another old friend of mine in the Chicago area. The certification tests apparently cannot be taken unless one also takes the courses. I found that a bit of a put-off. I was also curious that, on the Microsoft site, the MCDBA is geared for those with big company experience and big servers and big databases. Somehow I doubt that these required courses offer anything in the way of simulation of huge databases or multiple platform connections...or do they? I've worked with PCs since 1982 and on mainframes for a bit before that, back to 1975. It seems demeaning somehow that I cannot take a certification test without going through an approved set of courses for which I pay a large sum of money. I'm perfectly capable of learning SQL Server--or anything else, for that matter--just fine on my own or in connection with my client experiences. I guess I'm whining about having to take those courses. If I do and if I get an MCDBA, what does it mean? Regards, Steve Erbach Scientific Marketing Neenah, WI "Nothing so needs reforming as other people's habits." - Mark Twain **************************************************************************************** IMPORTANT: Any views or opinions are solely those of the author and do not necessarily represent those of CMP Information. The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you are not the intended recipient of this message, please do not read, copy, use or disclose this communication and notify the sender immediately. It should be noted that any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. This email may be monitored. CMP Information Ltd: Registered in England & Wales Registered No 4002606 Registered Office: Ludgate House, 245 Blackfriars Road, London SE1 9UY **************************************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcolby at colbyconsulting.com Tue Feb 25 14:33:29 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Tue, 25 Feb 2003 15:33:29 -0500 Subject: [dba-SQLServer]Cross Posted - Upsizing fails In-Reply-To: Message-ID: OK, I just looked. If there were, there aren't any more. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of Billy Pang Sent: Tuesday, February 25, 2003 3:07 PM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]Cross Posted - Upsizing fails On the machine that is trying to access the newly installed ss2k, check the Client Network Utility. There might be an old alias in there. Billy >From: "John W. Colby" >Reply-To: dba-sqlserver at databaseadvisors.com >To: >Subject: RE: [dba-SQLServer]Cross Posted - Upsizing fails >Date: Tue, 25 Feb 2003 00:52:25 -0500 > >Ooooh isn't that embarrassing! Sorry. > >Yes, this SQL Server is on another box. The SQL Server physically resides >on my old dual PII 233 machine, which is the one I reformatted and >re-installed on. > >I work on my dev machine which is my "new" AMD Athlon 1.33ghz, running >Win2K >Pro. It has the EM installed on it as well, and had been talking to the >SQL >Server on my "old server" (which was wiped out). Thus I am sure there is >something somewhere that tells everything that said server existed. I get >the feeling that the tables that failed to import did so due to an "order" >problem. At the time it tired, something else it needed (a parent table) >wasn't moved yet. That kind of thing. With only 4 missing it will be easy >enough to drag them in I think. > >John W. Colby >Colby Consulting >www.ColbyConsulting.com > >-----Original Message----- >From: dba-sqlserver-admin at databaseadvisors.com >[mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of Francisco >Tapia >Sent: Tuesday, February 25, 2003 12:42 AM >To: dba-sqlserver at databaseadvisors.com >Subject: Re: [dba-SQLServer]Cross Posted - Upsizing fails > > >you forgot the "co", Francis + co = Francisco :D > >Glad it worked out for you... I don't really see how you could have even >seen the old server from .net if you wiped out the system, I mean that >would >have ment the whole registry would have gone with it too.. unless this is >on >another box? > >-Francisco >http://rcm.netfirms.com/ >----- Original Message ----- >From: "John W. Colby" >To: >Sent: Monday, February 24, 2003 9:23 PM >Subject: RE: [dba-SQLServer]Cross Posted - Upsizing fails > > >: OK, things are getting better. I found an article on the web that >mentioned >: that I had to create the database out in SQL Server first, which I did. >I >: then created a DSN (I think it is called) that pointed to this table, and >: ran my export. This time only a handful of tables failed to export. At >: least I have a place to begin looking at why, rather than a complete and >: total failure. It would be nice to know why the "create new db" won't >work >: though. >: >: John W. Colby >: Colby Consulting >: www.ColbyConsulting.com >: >: -----Original Message----- >: From: dba-sqlserver-admin at databaseadvisors.com >: [mailto:dba-sqlserver-admin at databaseadvisors.com] >: Sent: Monday, February 24, 2003 11:53 PM >: To: dba-sqlserver at databaseadvisors.com >: Subject: RE: [dba-SQLServer]Cross Posted - Upsizing fails >: >: Francis, >: >: As for "Where" it is coming from, I have no idea, but my guess would be >the >: registry. The new .net stuff just "found" the old sql server and gave it >to >: me as a choice in my combo of sql servers that I could attach to. I had >to >: go specify the new in order to get at the new. I also deleted the old >(from >: a right click menu in the wizard I was in in .net). >: >: As for what I did - I had Win2K Pro and SQL Server. I wanted to install >: Win2K Server which will not install "over" Pro. Due to the fact that I >also >: had dual boot to Unix that was on a disk that I removed, and such >ugliness, >: I decided to just format and start from scratch. So yes, I formatted the >HD >: and installed Win2K Server and SQL Server from scratch. >: >: SQL Server management console shows version 5.0 (build 2195: Service Pack >3) >: in the help about. >: Windows shows 5.00.2195 Service Pack 3 >: >: Because I put my data out in one of my data disks (partitions) for the >: previous install, the old SQL database (the databases themselves) >continued >: to exist after I reinstalled, however I had no idea how to get SQL Server >to >: talk to them, and I had nothing important in them anyway, so I think I >just >: blew them away. >: >: I just tried the upsize wizard again. The new SQL Server was the default >: server in the combo for selecting that. I selected new database and >called >: in something unique (not already in SQL Server). The wizard took off and >: ran in about 2 seconds (or less) came back with a "table was skipped or >: export failed" for every table. Going to EM there is no sign of a new db >by >: the name I specified. >: >: It looks like it just didn't do anything beyond generating a report that >it >: didn't do anything. >: >: John W. Colby >: Colby Consulting >: www.ColbyConsulting.com >: >: -----Original Message----- >: From: dba-sqlserver-admin at databaseadvisors.com >: [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of Francisco >: Tapia >: Sent: Monday, February 24, 2003 11:14 PM >: To: dba-sqlserver at databaseadvisors.com >: Subject: Re: [dba-SQLServer]Cross Posted - Upsizing fails >: >: >: : Is there any way to get rid of all traces of, all references to, a >sequel >: : server that no longer exists? Then set up Access to know about the SQL >: : Server that does exist. Then run the upsize. >: >: You say there are traces of the old server name, where? through the UDL >: interface? or through the wizard? Did you re-format your entire system >in >: order to install Win2K server? what SP do you have installed on Win2K you >: should have up to SP2 at the very least... And for SQL Server 2000 you >: should have it up to SP2 to start, SP3, can cause some wierd >abnormalities.. >: Once you have your Sp's up to SP2 for both the OS and SQL let us know how >: that is looking... I'd like to keep this thread on the list in order to >keep >: it in the archives if you don't mind... :D >: -Francisco >: http://rcm.netfirms.com/ >: >: >: >: ---------------------------------------------------- >: Is email taking over your day? Manage your time with eMailBoss. >: Try it free! http://www.eMailBoss.com >: >: ---------------------------------------------------- >: Is email taking over your day? Manage your time with eMailBoss. >: Try it free! http://www.eMailBoss.com >: > > >_______________________________________________ >dba-SQLServer mailing list >dba-SQLServer at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-sqlserver >http://www.databaseadvisors.com > > > > >---------------------------------------------------- >Is email taking over your day? Manage your time with eMailBoss. >Try it free! http://www.eMailBoss.com ><< winmail.dat >> _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com ---------------------------------------------------- Is email taking over your day? Manage your time with eMailBoss. Try it free! http://www.eMailBoss.com -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 5024 bytes Desc: not available URL: From prosoft6 at hotmail.com Tue Feb 25 14:38:02 2003 From: prosoft6 at hotmail.com (Julie Reardon-Taylor) Date: Tue, 25 Feb 2003 15:38:02 -0500 Subject: [dba-SQLServer]Sending parameters to a report Message-ID: Okay. That works great! Now, I get a parameter box where the proper lot# can be entered for printing bar coded labels. But, my access 2000 program was able to see where the cursor was located and print just that record. Is there a way to do that in an adp? I've tried me.currentrecord as well as some others, but what I want the user to be able to do is click on a record and print that particular one. Any ideas? Julie Reardon-Taylor PRO-SOFT OF NY, INC. www.pro-soft.net _________________________________________________________________ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail From szeller at cce.umn.edu Tue Feb 25 14:50:47 2003 From: szeller at cce.umn.edu (Susan Zeller) Date: Tue, 25 Feb 2003 14:50:47 -0600 Subject: [dba-SQLServer]Sending parameters to a report Message-ID: Julie, Off the top of my head, what I would do is put the ID of that record on the form somewhere -- could be hidden. Write a sproc for yoru report that accepts the id as an input parameter. Then, point the input parameters property to the id textbox on your form. A Print command button on your form can open that report and the report will print the current record. --Susan -----Original Message----- From: Julie Reardon-Taylor [mailto:prosoft6 at hotmail.com] Sent: Tuesday, February 25, 2003 2:38 PM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]Sending parameters to a report Okay. That works great! Now, I get a parameter box where the proper lot# can be entered for printing bar coded labels. But, my access 2000 program was able to see where the cursor was located and print just that record. Is there a way to do that in an adp? I've tried me.currentrecord as well as some others, but what I want the user to be able to do is click on a record and print that particular one. Any ideas? Julie Reardon-Taylor PRO-SOFT OF NY, INC. www.pro-soft.net _________________________________________________________________ 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 jcolby at colbyconsulting.com Tue Feb 25 15:53:26 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Tue, 25 Feb 2003 16:53:26 -0500 Subject: [dba-SQLServer]Bound forms filtered on a control on the form Message-ID: I have been following the thread on the report thing. The discussion has focused (the ones I have read) on using XP, where there are actually properties to do this. How do I do this in A2K? I have a form. I want to select a record in a combo box. Having selected that record, I want to run an sproc, passing a parameter to filter the data returned to only return the record selected in the combo box. How do I do that in A2K? John W. Colby Colby Consulting www.ColbyConsulting.com ---------------------------------------------------- Is email taking over your day? Manage your time with eMailBoss. Try it free! http://www.eMailBoss.com From mikedorism at ntelos.net Tue Feb 25 15:57:18 2003 From: mikedorism at ntelos.net (Mike and Doris Manning) Date: Tue, 25 Feb 2003 16:57:18 -0500 Subject: [dba-SQLServer]Cross posted: Upsizing usys tables In-Reply-To: Message-ID: <000501c2dd18$e25d15a0$6c350cd8@hargrove.internal> These are not needed in the upsize. Don't worry about them. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com] On Behalf Of John W. Colby Sent: Tuesday, February 25, 2003 02:13 PM To: AccessD-SQLServer; AccessD Subject: [dba-SQLServer]Cross posted: Upsizing usys tables usys tables are tables which in Access appear to be system tables, i.e. are hidden when the "don't show system tables" is checked. They are not showing for the upsize. Do I have to change their name, or is there a tweak to make it upsize usys tables? John W. Colby Colby Consulting www.ColbyConsulting.com ---------------------------------------------------- Is email taking over your day? Manage your time with eMailBoss. Try it free! http://www.eMailBoss.com _______________________________________________ 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 Tue Feb 25 16:27:33 2003 From: mikedorism at ntelos.net (Mike and Doris Manning) Date: Tue, 25 Feb 2003 17:27:33 -0500 Subject: [dba-SQLServer]Bound forms filtered on a control on the form In-Reply-To: Message-ID: <000601c2dd1d$1ae301b0$6c350cd8@hargrove.internal> Pass that records identifier to the sproc as an Input Parameter. If you have ADH2000, volume 2 has a lot of information about using Access with SQL Server. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com] On Behalf Of John W. Colby Sent: Tuesday, February 25, 2003 04:53 PM To: AccessD-SQLServer Subject: [dba-SQLServer]Bound forms filtered on a control on the form I have been following the thread on the report thing. The discussion has focused (the ones I have read) on using XP, where there are actually properties to do this. How do I do this in A2K? I have a form. I want to select a record in a combo box. Having selected that record, I want to run an sproc, passing a parameter to filter the data returned to only return the record selected in the combo box. How do I do that in A2K? John W. Colby Colby Consulting www.ColbyConsulting.com ---------------------------------------------------- Is email taking over your day? Manage your time with eMailBoss. Try it free! http://www.eMailBoss.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 Feb 25 16:30:37 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Tue, 25 Feb 2003 17:30:37 -0500 Subject: [dba-SQLServer]Cross posted: Upsizing usys tables In-Reply-To: <000501c2dd18$e25d15a0$6c350cd8@hargrove.internal> Message-ID: Actually they are needed. These are USYS tables, not MSYS tables. USYS tables are tables that the DEVELOPER builds that he wants hidden. In this case they are tables that drive my framework (SysVars), as well as my security stuff. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of Mike and Doris Manning Sent: Tuesday, February 25, 2003 4:57 PM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]Cross posted: Upsizing usys tables These are not needed in the upsize. Don't worry about them. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com] On Behalf Of John W. Colby Sent: Tuesday, February 25, 2003 02:13 PM To: AccessD-SQLServer; AccessD Subject: [dba-SQLServer]Cross posted: Upsizing usys tables usys tables are tables which in Access appear to be system tables, i.e. are hidden when the "don't show system tables" is checked. They are not showing for the upsize. Do I have to change their name, or is there a tweak to make it upsize usys tables? John W. Colby Colby Consulting www.ColbyConsulting.com ---------------------------------------------------- Is email taking over your day? Manage your time with eMailBoss. Try it free! http://www.eMailBoss.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 ---------------------------------------------------- Is email taking over your day? Manage your time with eMailBoss. Try it free! http://www.eMailBoss.com -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 2344 bytes Desc: not available URL: From selina at easydatabases.com.au Tue Feb 25 16:31:26 2003 From: selina at easydatabases.com.au (Selina Iddon) Date: Wed, 26 Feb 2003 08:31:26 +1000 Subject: [dba-SQLServer]Bound forms filtered on a control on the form References: Message-ID: <002601c2dd1d$a2a57e20$6465000a@venus> Hi John I may be reading the question wrong, but would this help? Sub MyComboControl_AfterUpdate() Me.Filter = "FieldName = " & Me.MyComboControl Me.FilterOn = true End Sub Cheers Selina ---------------------------------------------------------------------------- ---- Selina Iddon selina at easydatabases.com.au Ph: 0414 225 265 Easy Access Databases ----- Original Message ----- From: "John W. Colby" To: "AccessD-SQLServer" Sent: Wednesday, February 26, 2003 7:53 AM Subject: [dba-SQLServer]Bound forms filtered on a control on the form > I have been following the thread on the report thing. The discussion has > focused (the ones I have read) on using XP, where there are actually > properties to do this. How do I do this in A2K? > > I have a form. I want to select a record in a combo box. Having selected > that record, I want to run an sproc, passing a parameter to filter the data > returned to only return the record selected in the combo box. > > How do I do that in A2K? > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > ---------------------------------------------------- > Is email taking over your day? Manage your time with eMailBoss. > Try it free! http://www.eMailBoss.com > > > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > > > From davide at dalyn.co.nz Tue Feb 25 15:07:38 2003 From: davide at dalyn.co.nz (David Emerson) Date: Wed, 26 Feb 2003 10:07:38 +1300 Subject: [dba-SQLServer]Sending parameters to a report - Thanks In-Reply-To: <000001c2dcd2$9c7d5ea0$58350cd8@hargrove.internal> References: <5.2.0.9.0.20030225102410.00bc24e0@mail.dalyn.co.nz> Message-ID: <5.2.0.9.0.20030226100607.00b1ced8@mail.dalyn.co.nz> Thanks everyone for your input. It looks like I will need to run with the hidden form method as the database will be a runtime with the database window hidden. David At 25/02/2003, you wrote: >David, > >The only way I have been able to set them through code is to open the form >or report in design view, set the parameters, close the design view copy, >and then open the form or report. Here is the code I use but this code >will not work if the database window is hidden. > > >Public Sub PrepareFormRept(ItemName As String, Param As String, _ > IsForm As Boolean, Optional prt As Printer) > > On Error GoTo ErrorHandler > > If IsForm = True Then > DoCmd.Echo False, "Preparing Form" > DoCmd.OpenForm ItemName, acViewDesign > Forms(ItemName).InputParameters = Param > DoCmd.Close acForm, ItemName, acSaveYes > Else > DoCmd.Echo False, "Preparing Report" > DoCmd.OpenReport ItemName, acViewDesign > Reports(ItemName).InputParameters = Param > If Not IsMissing(prt) And Not prt Is Nothing Then > Reports(ItemName).Printer = prt > End If > DoCmd.Close acReport, ItemName, acSaveYes > End If > > DoCmd.Echo True > > Exit Sub > >ErrorHandler: > DoCmd.Echo True > Call HandleErrors(Err, strMyName, "PrepareFormRept") >End Sub > >Doris Manning >Database Administrator >Hargrove Inc. >www.hargroveinc.com >-----Original Message----- >From: dba-sqlserver-admin at databaseadvisors.com >[mailto:dba-sqlserver-admin at databaseadvisors.com] On Behalf Of David Emerson >Sent: Monday, February 24, 2003 04:37 PM >To: dba-SQLServer at databaseadvisors.com >Subject: [dba-SQLServer]Sending parameters to a report > >I have a problem with a report in an AXP/SQL2K database. > >I have a button on a customer form which is supposed to open up a report >with just the current customers information on it. In the OpenReport >statement I send the inputParameters via the OpenArgs to the report and >then in the report's Open event set me.InputParameters = me.OpenArgs. > The main report sproc then uses the InputParameters to select the > correct record (theoretically). > >But I must be missing something because even though the inputparameter >property is being updated, the sproc is not using the information to >retrieve the correct data. Here is the main parts of the sproc - > >ALTER PROCEDURE sprptAccounts > > ( > @txtCustID int, > @StatementNumber int > ) > >AS > SET NOCOUNT ON > > SELECT tblCustomers.CustomerID, tblCustStatement.StatementID, > case > when [Residential]=1 > then [CSurname] + [C1stName] > else [TradingName] > end > AS SortName, tblCustStatement.SMName, > tblCustStatement.SMAddress1, tblCustStatement.SMAddress2, > tblCustStatement.SMSuburb, tblCustStatement.SMCity, > tblCustStatement.SMPostCode, tblCustStatement.SAccountNo, > case > when Not ([PrevStatementDate] is null) > then DateAdd("d",1,[PrevStatementDate]) > else [PrevStatementDate] > end > AS StatFirstDate, tblCustStatement.StatementDate, > tblCustStatement.StatementNumber, tblCustStatement.CurrentMth, > [OneMonth]+[TwoMonths]+[ThreeMonths] AS Overdue, > tblCustStatement.OneMonth, tblCustStatement.TwoMonths, > tblCustStatement.ThreeMonths, > tblCustStatement.ComBondBal, tblCustStatement.Processed, > tblCustomers.AccStatus, tblCustomers.AccFreq, tblCustStatement.DDRegistered > FROM tblCustomers INNER JOIN tblCustStatement ON > tblCustomers.CustomerID = tblCustStatement.CustIDNo > WHERE (tblCustomers.CustomerID = @txtCustID) and > (tblCustStatement.StatementNumber = @StatementNumber) > > >The call to open the report is - > DoCmd.OpenReport "rptAccounts", acViewPreview, , , , "@CustID int = " & > txtCustIDNo & ", @StatementNumber int = " & txtStatementNumber > >An example of the openarg sent is - >@CustID int = 773500661, @StatementNumber int = 11 > >The report's Open event is > >Private Sub Report_Open(Cancel As Integer) > > Me.InputParameters = Me.OpenArgs > >End Sub > >Am I going about this all wrong? > >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 jcolby at colbyconsulting.com Tue Feb 25 18:06:08 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Tue, 25 Feb 2003 19:06:08 -0500 Subject: [dba-SQLServer]Bound forms filtered on a control on the form In-Reply-To: <000601c2dd1d$1ae301b0$6c350cd8@hargrove.internal> Message-ID: >Pass that records identifier to the sproc as an Input Parameter. But what does that mean? I have heard that A2K forms (don't know about combos and the like) can be bound to open recordsets, but I heard a nasty rumor that that only works for read only recordsets, i.e. not too useful for data entry type forms. So how do I "Pass that records identifier to the sproc as an Input Parameter" so that a form pulls a specific record? >If you have ADH2000, volume 2 has a lot of information about using Access with SQL Server. Nope, don't have ADH 2000. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of Mike and Doris Manning Sent: Tuesday, February 25, 2003 5:28 PM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]Bound forms filtered on a control on the form Pass that records identifier to the sproc as an Input Parameter. If you have ADH2000, volume 2 has a lot of information about using Access with SQL Server. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com] On Behalf Of John W. Colby Sent: Tuesday, February 25, 2003 04:53 PM To: AccessD-SQLServer Subject: [dba-SQLServer]Bound forms filtered on a control on the form I have been following the thread on the report thing. The discussion has focused (the ones I have read) on using XP, where there are actually properties to do this. How do I do this in A2K? I have a form. I want to select a record in a combo box. Having selected that record, I want to run an sproc, passing a parameter to filter the data returned to only return the record selected in the combo box. How do I do that in A2K? John W. Colby Colby Consulting www.ColbyConsulting.com ---------------------------------------------------- Is email taking over your day? Manage your time with eMailBoss. Try it free! http://www.eMailBoss.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 ---------------------------------------------------- Is email taking over your day? Manage your time with eMailBoss. Try it free! http://www.eMailBoss.com -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 2660 bytes Desc: not available URL: From jcolby at colbyconsulting.com Tue Feb 25 18:08:13 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Tue, 25 Feb 2003 19:08:13 -0500 Subject: [dba-SQLServer]Bound forms filtered on a control on the form In-Reply-To: <002601c2dd1d$a2a57e20$6465000a@venus> Message-ID: Hmmm... OK. My understanding is that this actually pulls all of the records in the recordset and then only DISPLAYS one record (filter). That is useful in certain instances, however I would really like to just pull one specific record, having SQL Server do all the work of finding that record and handing it back. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of Selina Iddon Sent: Tuesday, February 25, 2003 5:31 PM To: dba-sqlserver at databaseadvisors.com Subject: Re: [dba-SQLServer]Bound forms filtered on a control on the form Hi John I may be reading the question wrong, but would this help? Sub MyComboControl_AfterUpdate() Me.Filter = "FieldName = " & Me.MyComboControl Me.FilterOn = true End Sub Cheers Selina ---------------------------------------------------------------------------- ---- Selina Iddon selina at easydatabases.com.au Ph: 0414 225 265 Easy Access Databases ----- Original Message ----- From: "John W. Colby" To: "AccessD-SQLServer" Sent: Wednesday, February 26, 2003 7:53 AM Subject: [dba-SQLServer]Bound forms filtered on a control on the form > I have been following the thread on the report thing. The discussion has > focused (the ones I have read) on using XP, where there are actually > properties to do this. How do I do this in A2K? > > I have a form. I want to select a record in a combo box. Having selected > that record, I want to run an sproc, passing a parameter to filter the data > returned to only return the record selected in the combo box. > > How do I do that in A2K? > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > ---------------------------------------------------- > Is email taking over your day? Manage your time with eMailBoss. > Try it free! http://www.eMailBoss.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 ---------------------------------------------------- Is email taking over your day? Manage your time with eMailBoss. Try it free! http://www.eMailBoss.com -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 2688 bytes Desc: not available URL: From my.lists at verizon.net Tue Feb 25 18:11:09 2003 From: my.lists at verizon.net (Francisco H Tapia) Date: Tue, 25 Feb 2003 16:11:09 -0800 Subject: [dba-SQLServer]SQL Server 7 - Stored Procedure Help - Quite Urgent. References: <5A31F89EC4C79B49B5030FF2EF58E9D24EBBCE@ex02.eagle.usaa.com> Message-ID: <01d701c2dd2b$90ff5520$b615010a@FHTAPIA> NOT EXIST isn't exposed to the same side effects... Take the following for an example... BEGIN TRANSACTION SELECT COUNT(*) FROM Titleauthor DELETE Titleauthor WHERE au_id IN ( SELECT au_id FROM Publishers) SELECT COUNT(*) FROM Titleauthor ROLLBACK however this statement dosent error out, true it's the EXISTS not the NOT EXISTS but the side-effects are the same... BEGIN TRANSACTION SELECT COUNT(*) FROM Titleauthor DELETE Titleauthor WHERE EXISTS(SELECT au_id FROM Publishers WHERE Publishers.au_id = Titleauthor.au_id) SELECT COUNT(*) FROM Titleauthor ROLLBACK note that you now get the invalid column au_id with the EXISTS statement...which is at it should be... the first IN statement doesn't give this feedback, a workaround is to declare the au_id in the IN statement as Publisher.au_id in order to cause it to explicilty resolve in which case you'd get the error.. -Francisco http://rcm.netfirms.com ----- Original Message ----- From: "Djabarov, Robert" To: Sent: Tuesday, February 25, 2003 12:19 PM Subject: RE: [dba-SQLServer]SQL Server 7 - Stored Procedure Help - Quite Urgent. : NOT IN has the same side effects as NOT EXISTS. It can be easily re-written as follows: : : insert into tableA (Payroll, JobDate, JobType) : select B.Payroll, B.JobDate, B.JobType : from tableB B left outer join ( : select A.Payroll, A.JobDate, A.JobType : from tableA A : inner join tableB tb : on A.Payroll = tb.Payroll : AND A.Jobdate = tb.JobDate : AND A.JobType = tb.JobType : ) t on B.Payroll = t.Payroll : and B.JobDate = t.JobDate : and B.JobType = t.JobType : where t.Payroll is null : and t.JobDate is null : and t.JobType is null : : : ______________________________________________________ : Robert Djabarov : Certified MS SQL Server DBA : Certified MS SQL Server Programmer : Certified MS VB Programmer : ? (210) 913-3148 - phone : ( (210) 753-3148 - pager : : -----Original Message----- : From: Francisco H Tapia [mailto:my.lists at verizon.net] : Sent: Tuesday, February 25, 2003 10:36 AM : To: dba-sqlserver at databaseadvisors.com; AccessD; dba-VB at databaseadvisors.com : Subject: Re: [dba-SQLServer]SQL Server 7 - Stored Procedure Help - Quite Urgent. : : How about .... : : Insert into tableA (Payroll, jobdate, jobtype) : Select Payroll, jobdate, jobtype : From tableB AS B : WHERE NOT EXISTS( Select Payroll, jobdate, jobtype : From tableA AS A : Where B.Payroll = A.Payroll AND : B.Jobdate = A.JobDate AND B.JobType = A.JobType) : : I could have used a NOT IN clause but then NOT IN can have some serious side : effects...In General the above statement will be evaluated by the engine : where as a NOT IN could miss evaluating the B alias in the where clause and : cause it to report bad data, using Exists (or NOT EXISTS) usually yields : faster performance and the assurance that it evaluates correctly. : -Francisco : http://rcm.netfirms.com : ----- Original Message ----- : From: : To: ; ; : : Sent: Tuesday, February 25, 2003 1:42 AM : Subject: [dba-SQLServer]SQL Server 7 - Stored Procedure Help - Quite Urgent. : : : : To all, : : : : Watch for Word Wrap............... : : : : Being quite a novice with Stored Procedures on SQL Server 7.0, I'm looking : for some pretty urgent help at the moment. I have two tables, lets say : Table A & Table B. Table A is my master table, and Table B is a temporary : table. Before Table be gets populated with any data, every existing record : is deleted so I start with a fresh table so to speak. Table B consists of 3 : fields PayrollNo, JobDate, JobType (these fields are also in the master : table, but the master table is used to contain other consting information, : which is entered at a later date). : : : : What I would like is a Stored Procedure which would Insert Table B : contents into Table A, but making sure that I don't insert any duplicates : into Table A (something like an unmatched query in access but with an Insert : also). i.e. : : : : Table A Table B : : payroll jobdate jobtype id payroll : jobdate jobtype : : 999001 01/01/01 0 1 999001 : 01/01/01 0 : : 999001 01/01/01 2 2 999001 : 01/01/01 1 : : 999002 01/01/01 2 3 999001 : 01/01/01 2 : : 4 999002 : 01/01/01 0 : : 5 999002 : 01/01/01 1 : : 6 999002 : 01/01/01 2 : : : : So when I invoke the stored procedure, it would insert records 2, 4 and 5 : from Table B into Table A........Anyone any idea what I'm on about, if so : can anybody please help....... : : : : Thanks in advance : : : : Paul Hartland : : : : __________________________________________________________________________ : : Freeserve AnyTime - Go online whenever you want for just ?6.99 a month for : : your first 3 months, that's HALF PRICE! And then it's just ?13.99 a month : : after that. : : : : For more information visit http://www.freeserve.com/time/ or call free on : : 0800 970 8890 : : : : : : _______________________________________________ : : 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 cfoust at infostatsystems.com Tue Feb 25 19:15:50 2003 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 25 Feb 2003 17:15:50 -0800 Subject: [dba-SQLServer]MCDBA Message-ID: When you do, it's called "earn while you learn", John. Been there, done that in at least 3 different industries not related to computers at all. Charlotte Foust > -----Original Message----- > From: dba-sqlserver-admin at databaseadvisors.com > [mailto:dba-sqlserver-admin at databaseadvisors.com] On Behalf Of John > W. Colby > Sent: Tuesday, February 25, 2003 10:11 AM > To: dba-sqlserver at databaseadvisors.com > Subject: RE: [dba-SQLServer]MCDBA > > >To me, an equal score without taking the test also suggests an > intuitive learner with great comprehension skills and/or breadth of > real-world experience. > > Yep. Wouldn't you love to hire "an intuitive learner with great > comprehension skills and/or breadth of real-world experience"? > Particularly if it were "AND breadth of real-world experience"? > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: dba-sqlserver-admin at databaseadvisors.com > [mailto:dba-sqlserver-admin at databaseadvisors.com] > Sent: Tuesday, February 25, 2003 1:01 PM > To: dba-sqlserver at databaseadvisors.com > Subject: RE: [dba-SQLServer]MCDBA > > John, the tests can ONLY measure one's current knowledge of the > limited material in question. To me, an equal score without taking > the test also suggests an intuitive learner with great comprehension > skills and/or breadth of real-world experience. Perhaps an added > point system for non-course takers is needed (not to be confused with > a handicap or Affirmative Action)? > > Ron Moore > Sr. Database Administrator > Comtech PST Corp. > Melville, NY > www.comtechpst.com > > > -----Original Message----- > From: dba-sqlserver-admin at databaseadvisors.com > [mailto:dba-sqlserver-admin at databaseadvisors.com] > Sent: Tuesday, February 25, 2003 12:44 PM > To: dba-sqlserver at databaseadvisors.com > Subject: RE: [dba-SQLServer]MCDBA > > I hear what you are saying, but what that implies is that the tests > don't measure what a person knows. > > If a person knows enough to pass the test, whether or not he took a > class, then he knows as much as the person who took the class and got > the same score (more or less). > > Or the tests suck and can't measure what they are supposed to so we > will force everybody to take a class since that's the only way to > ensure they know the stuff. In which case, why the test? > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: dba-sqlserver-admin at databaseadvisors.com > [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of > Francisco > H Tapia > Sent: Tuesday, February 25, 2003 12:37 PM > To: dba-sqlserver at databaseadvisors.com > Subject: Re: [dba-SQLServer]MCDBA > > > FWIW, IMNSHO SQL Server is leaps and bounds over typical Access > Database > administration. There are DBA's I email with that can script out > procedures > to take care of a full restore plans in case of a catastrophe. So > besides > server A going down or HDD 3 of the Log Raid, is down, They often > manage a > Farm of SQL Servers that take care of mountains of data. It's one > thing to > know "how" to do something and I have great respect for these DBA's as > they > always seem to have a minute or two to answer any of my "dumb" > questions > :oD. I belive the same thing holds true for System Admins... We have > a > "good" System Admin here at my current job, but he is by no means > GREAT... > there are many mistakes he makes and many more things he doesn't know. > If > for example he were a certified CISCO engineer, perhaps he'd be able > to have > a better idea of subnetting our entire large collision domain network. > This > is true for our own in-house Sql Server DBA, poor guy tries his > damndest, > but still comes up short on many DBA specific duties... he is not too > familiar for example with SQL backup and restore process... or even > SQL > Server Agent Alerts... ouch!... I am a Programmer/Developer by title, > but I > dabble in everything, from software to hardware. > > -Francisco > http://rcm.netfirms.com > ----- Original Message ----- > From: "John W. Colby" > To: > Sent: Tuesday, February 25, 2003 9:07 AM > Subject: RE: [dba-SQLServer]MCDBA > > > : Steve, > : > : Whine away, I feel the same way. No, actually knowing how to DO > something > : is not enough! > : > : What a crock. > : John W. Colby > : Colby Consulting > : www.ColbyConsulting.com > : > : -----Original Message----- > : From: dba-sqlserver-admin at databaseadvisors.com > : [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of Steven > W. > : Erbach > : Sent: Tuesday, February 25, 2003 11:56 AM > : To: dba-sqlserver at databaseadvisors.com > : Subject: Re: [dba-SQLServer]MCDBA > : > : > : Allan, > : > : I can appreciate the structured learning bit. I was wondering > because I > : had a conversation with a good friend who, in the past, always kept > up the > : certifications that he had. He seems to be despairing of the cost > and > : bother. Unless one is focused very clearly on one skill these days, > : certification can become very expensive very quickly. Some--Cisco, > for > : example--require re-certification every two years. I just wonder > what that > : buys you once you get it. Continued advancement? Better-paying jobs? > : > : I looked up MCDBA certification classes in my area and found some > being > : offered by another old friend of mine in the Chicago area. The > certification > : tests apparently cannot be taken unless one also takes the courses. > I > found > : that a bit of a put-off. > : > : I was also curious that, on the Microsoft site, the MCDBA is > geared for > : those with big company experience and big servers and big databases. > Somehow > : I doubt that these required courses offer anything in the way of > simulation > : of huge databases or multiple platform connections...or do they? > : > : I've worked with PCs since 1982 and on mainframes for a bit before > that, > : back to 1975. It seems demeaning somehow that I cannot take a > certification > : test without going through an approved set of courses for which I > pay a > : large sum of money. I'm perfectly capable of learning SQL Server--or > : anything else, for that matter--just fine on my own or in connection > with > my > : client experiences. I guess I'm whining about having to take those > courses. > : If I do and if I get an MCDBA, what does it mean? > : > : Regards, > : > : Steve Erbach > : Scientific Marketing > : Neenah, WI > : > : "Nothing so needs reforming as other people's habits." - Mark > Twain > : > : > : > ---------------------------------------------------------------------- > ---- > -- > : ---- > : > : Is email taking over your day? Manage your time with eMailBoss. Try > it > free! > : http://www.eMailBoss.com > : > > > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > > > > > ---------------------------------------------------- > Is email taking over your day? Manage your time with eMailBoss. > Try it free! http://www.eMailBoss.com > > ---------------------------------------------------- > Is email taking over your day? Manage your time with eMailBoss. > Try it free! http://www.eMailBoss.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From cfoust at infostatsystems.com Tue Feb 25 19:23:13 2003 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 25 Feb 2003 17:23:13 -0800 Subject: [dba-SQLServer]Cross posted: Upsizing usys tables Message-ID: John, This is one I know from experience. SQL Server doesn't like that table name. If you name them something else first, they'll get upsized. I ran into this with some Usys tables I had in a database we upsized on a contract project. Charlotte Foust > -----Original Message----- > From: dba-sqlserver-admin at databaseadvisors.com > [mailto:dba-sqlserver-admin at databaseadvisors.com] On Behalf Of John > W. Colby > Sent: Tuesday, February 25, 2003 2:31 PM > To: dba-sqlserver at databaseadvisors.com > Subject: RE: [dba-SQLServer]Cross posted: Upsizing usys tables > > Actually they are needed. These are USYS tables, not MSYS tables. > USYS tables are tables that the DEVELOPER builds that he wants hidden. > In this case they are tables that drive my framework (SysVars), as > well as my security stuff. > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: dba-sqlserver-admin at databaseadvisors.com > [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of Mike and > Doris Manning > Sent: Tuesday, February 25, 2003 4:57 PM > To: dba-sqlserver at databaseadvisors.com > Subject: RE: [dba-SQLServer]Cross posted: Upsizing usys tables > > > These are not needed in the upsize. Don't worry about them. > > Doris Manning > Database Administrator > Hargrove Inc. > www.hargroveinc.com > > > -----Original Message----- > From: dba-sqlserver-admin at databaseadvisors.com > [mailto:dba-sqlserver-admin at databaseadvisors.com] On Behalf Of John W. > Colby > Sent: Tuesday, February 25, 2003 02:13 PM > To: AccessD-SQLServer; AccessD > Subject: [dba-SQLServer]Cross posted: Upsizing usys tables > > > usys tables are tables which in Access appear to be system tables, > i.e. are > hidden when the "don't show system tables" is checked. They are not > showing > for the upsize. Do I have to change their name, or is there a tweak > to make > it upsize usys tables? > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > ---------------------------------------------------- > Is email taking over your day? Manage your time with eMailBoss. Try > it > free! http://www.eMailBoss.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 > > > > > ---------------------------------------------------- > Is email taking over your day? Manage your time with eMailBoss. > Try it free! http://www.eMailBoss.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From harkins at iglou.com Tue Feb 25 19:26:49 2003 From: harkins at iglou.com (Susan Harkins) Date: Tue, 25 Feb 2003 20:26:49 -0500 Subject: [dba-SQLServer]MCDBA References: Message-ID: <062301c2dd36$240ab850$f7e6ffcc@SusanOne> RE: [dba-SQLServer]MCDBAI bet I can say, "Thank you for calling North American Financial Services, how can I direct your call" faster than you! ;) Susan H. When you do, it's called "earn while you learn", John. Been there, done that in at least 3 different industries not related to computers at all. Charlotte Foust \ -------------- next part -------------- An HTML attachment was scrubbed... URL: From cfoust at infostatsystems.com Tue Feb 25 19:31:04 2003 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 25 Feb 2003 17:31:04 -0800 Subject: [dba-SQLServer]MCDBA Message-ID: ROTFLOL Charlotte Foust -----Original Message----- From: Susan Harkins [mailto:harkins at iglou.com] Sent: Tuesday, February 25, 2003 5:27 PM To: dba-sqlserver at databaseadvisors.com Subject: Re: [dba-SQLServer]MCDBA I bet I can say, "Thank you for calling North American Financial Services, how can I direct your call" faster than you! ;) Susan H. When you do, it's called "earn while you learn", John. Been there, done that in at least 3 different industries not related to computers at all. Charlotte Foust \ -------------- next part -------------- An HTML attachment was scrubbed... URL: From artful at rogers.com Tue Feb 25 20:34:14 2003 From: artful at rogers.com (Arthur Fuller) Date: Tue, 25 Feb 2003 21:34:14 -0500 Subject: [dba-SQLServer]MCDBA In-Reply-To: Message-ID: <01f701c2dd3f$8dbd3260$8e01a8c0@Rock> What you wouldn't give is the salary hit required to take the Jr. DBA post, JC! (Nor I :-) in case you wondered.) As you may know, I frequent the MySQL lists. A bizarre combination of users over there! Half know nothing about databases, having arrived via Apache &c.. The other half seem to work for bizarre organizations like some British map-making outfit with no money, asking questions like what's the best way to store 120 million images! Actually until I read this thread, I thought the answer to "Should I store images in the db?" was a no-brainer NO. But how can you store 120M images in a directory? What OS supports that many filenames? (This guy expects the db to grow by 50M images per year.) Biggest db I ever dealt with was 50 GB. Some folks have way bigger fish to fry, and lots of them. Another guy on the MySQL thread has a db server farm of 100 servers, and an Apache server spewing web pages to millions of hits a day. I have not had such problems :-) -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com] Sent: February 25, 2003 1:09 PM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]MCDBA >(not that I'm naming my dba from where I work at };o) heh heh heh). ROTFL. What I wouldn't give to get a Jr DBA position working on big SQL Server DBs. As you say, there are some things that only experience can buy. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of Francisco H Tapia Sent: Tuesday, February 25, 2003 1:00 PM To: dba-sqlserver at databaseadvisors.com Subject: Re: [dba-SQLServer]MCDBA I hear you. I am not certified... heck the only degree I have is an AA in Liberal Arts...my major was going to be in Architecture, but I found computers that much more "fun", I guess I'm a different type of architect now ;o). My work did send me to a Horizon's SqlServer Admin Class that only took 1 week. While I've been tinkering with SQL for a year now, and learning many things form going online to great sites like SqlServerCentral.com or even SWYNK.com there are certain experiences that even in a classroom environment you just won't learn. The other truth about SQLServer or any large DBMS is that you really don't want a *poser* working on them... in larger environments the newer dba's (JRdba's) usually get teamed up with a SR dba and must follow in his direction, but could you imagine what would happen on a new hire that passed the Interview and knew very little of SQL Server and ended up wiping out a production DB! (not that I'm naming my dba from where I work at };o) heh heh heh). Because they are *Mission Critical* DB's I think most companies want to make sure they get the most they can for their dollar w/ next to 0 risk. -Francisco http://rcm.netfirms.com ----- Original Message ----- From: "John W. Colby" To: Sent: Tuesday, February 25, 2003 9:43 AM Subject: RE: [dba-SQLServer]MCDBA : I hear what you are saying, but what that implies is that the tests don't : measure what a person knows. : : If a person knows enough to pass the test, whether or not he took a class, : then he knows as much as the person who took the class and got the same : score (more or less). : : Or the tests suck and can't measure what they are supposed to so we will : force everybody to take a class since that's the only way to ensure they : know the stuff. In which case, why the test? : : John W. Colby : Colby Consulting : www.ColbyConsulting.com : : -----Original Message----- : From: dba-sqlserver-admin at databaseadvisors.com : [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of Francisco : H Tapia : Sent: Tuesday, February 25, 2003 12:37 PM : To: dba-sqlserver at databaseadvisors.com : Subject: Re: [dba-SQLServer]MCDBA : : : FWIW, IMNSHO SQL Server is leaps and bounds over typical Access Database : administration. There are DBA's I email with that can script out procedures : to take care of a full restore plans in case of a catastrophe. So besides : server A going down or HDD 3 of the Log Raid, is down, They often manage a : Farm of SQL Servers that take care of mountains of data. It's one thing to : know "how" to do something and I have great respect for these DBA's as they : always seem to have a minute or two to answer any of my "dumb" questions : :oD. I belive the same thing holds true for System Admins... We have a : "good" System Admin here at my current job, but he is by no means GREAT... : there are many mistakes he makes and many more things he doesn't know. If : for example he were a certified CISCO engineer, perhaps he'd be able to have : a better idea of subnetting our entire large collision domain network. This : is true for our own in-house Sql Server DBA, poor guy tries his damndest, : but still comes up short on many DBA specific duties... he is not too : familiar for example with SQL backup and restore process... or even SQL : Server Agent Alerts... ouch!... I am a Programmer/Developer by title, but I : dabble in everything, from software to hardware. : : -Francisco : http://rcm.netfirms.com : ----- Original Message ----- : From: "John W. Colby" : To: : Sent: Tuesday, February 25, 2003 9:07 AM : Subject: RE: [dba-SQLServer]MCDBA : : : : Steve, : : : : Whine away, I feel the same way. No, actually knowing how to DO something : : is not enough! : : : : What a crock. : : John W. Colby : : Colby Consulting : : www.ColbyConsulting.com : : : : -----Original Message----- : : From: dba-sqlserver-admin at databaseadvisors.com : : [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of Steven W. : : Erbach : : Sent: Tuesday, February 25, 2003 11:56 AM : : To: dba-sqlserver at databaseadvisors.com : : Subject: Re: [dba-SQLServer]MCDBA : : : : : : Allan, : : : : I can appreciate the structured learning bit. I was wondering because I : : had a conversation with a good friend who, in the past, always kept up the : : certifications that he had. He seems to be despairing of the cost and : : bother. Unless one is focused very clearly on one skill these days, : : certification can become very expensive very quickly. Some--Cisco, for : : example--require re-certification every two years. I just wonder what that : : buys you once you get it. Continued advancement? Better-paying jobs? : : : : I looked up MCDBA certification classes in my area and found some being : : offered by another old friend of mine in the Chicago area. The : certification : : tests apparently cannot be taken unless one also takes the courses. I : found : : that a bit of a put-off. : : : : I was also curious that, on the Microsoft site, the MCDBA is geared for : : those with big company experience and big servers and big databases. : Somehow : : I doubt that these required courses offer anything in the way of : simulation : : of huge databases or multiple platform connections...or do they? : : : : I've worked with PCs since 1982 and on mainframes for a bit before that, : : back to 1975. It seems demeaning somehow that I cannot take a : certification : : test without going through an approved set of courses for which I pay a : : large sum of money. I'm perfectly capable of learning SQL Server--or : : anything else, for that matter--just fine on my own or in connection with : my : : client experiences. I guess I'm whining about having to take those : courses. : : If I do and if I get an MCDBA, what does it mean? : : : : Regards, : : : : Steve Erbach _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com ---------------------------------------------------- Is email taking over your day? Manage your time with eMailBoss. Try it free! http://www.eMailBoss.com -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 8232 bytes Desc: not available URL: From artful at rogers.com Tue Feb 25 20:35:08 2003 From: artful at rogers.com (Arthur Fuller) Date: Tue, 25 Feb 2003 21:35:08 -0500 Subject: [dba-SQLServer]MCDBA In-Reply-To: Message-ID: <01fb01c2dd3f$addc4f90$8e01a8c0@Rock> If you want one of those, I nominate myself! -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com] Sent: February 25, 2003 1:11 PM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]MCDBA >To me, an equal score without taking the test also suggests an intuitive learner with great comprehension skills and/or breadth of real-world experience. Yep. Wouldn't you love to hire "an intuitive learner with great comprehension skills and/or breadth of real-world experience"? Particularly if it were "AND breadth of real-world experience"? John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com] Sent: Tuesday, February 25, 2003 1:01 PM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]MCDBA John, the tests can ONLY measure one's current knowledge of the limited material in question. To me, an equal score without taking the test also suggests an intuitive learner with great comprehension skills and/or breadth of real-world experience. Perhaps an added point system for non-course takers is needed (not to be confused with a handicap or Affirmative Action)? Ron Moore Sr. Database Administrator Comtech PST Corp. Melville, NY www.comtechpst.com -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com] Sent: Tuesday, February 25, 2003 12:44 PM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]MCDBA I hear what you are saying, but what that implies is that the tests don't measure what a person knows. If a person knows enough to pass the test, whether or not he took a class, then he knows as much as the person who took the class and got the same score (more or less). Or the tests suck and can't measure what they are supposed to so we will force everybody to take a class since that's the only way to ensure they know the stuff. In which case, why the test? John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of Francisco H Tapia Sent: Tuesday, February 25, 2003 12:37 PM To: dba-sqlserver at databaseadvisors.com Subject: Re: [dba-SQLServer]MCDBA FWIW, IMNSHO SQL Server is leaps and bounds over typical Access Database administration. There are DBA's I email with that can script out procedures to take care of a full restore plans in case of a catastrophe. So besides server A going down or HDD 3 of the Log Raid, is down, They often manage a Farm of SQL Servers that take care of mountains of data. It's one thing to know "how" to do something and I have great respect for these DBA's as they always seem to have a minute or two to answer any of my "dumb" questions :oD. I belive the same thing holds true for System Admins... We have a "good" System Admin here at my current job, but he is by no means GREAT... there are many mistakes he makes and many more things he doesn't know. If for example he were a certified CISCO engineer, perhaps he'd be able to have a better idea of subnetting our entire large collision domain network. This is true for our own in-house Sql Server DBA, poor guy tries his damndest, but still comes up short on many DBA specific duties... he is not too familiar for example with SQL backup and restore process... or even SQL Server Agent Alerts... ouch!... I am a Programmer/Developer by title, but I dabble in everything, from software to hardware. -Francisco http://rcm.netfirms.com ----- Original Message ----- From: "John W. Colby" To: Sent: Tuesday, February 25, 2003 9:07 AM Subject: RE: [dba-SQLServer]MCDBA : Steve, : : Whine away, I feel the same way. No, actually knowing how to DO something : is not enough! : : What a crock. : John W. Colby : Colby Consulting : www.ColbyConsulting.com : : -----Original Message----- : From: dba-sqlserver-admin at databaseadvisors.com : [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of Steven W. : Erbach : Sent: Tuesday, February 25, 2003 11:56 AM : To: dba-sqlserver at databaseadvisors.com : Subject: Re: [dba-SQLServer]MCDBA : : : Allan, : : I can appreciate the structured learning bit. I was wondering because I : had a conversation with a good friend who, in the past, always kept up the : certifications that he had. He seems to be despairing of the cost and : bother. Unless one is focused very clearly on one skill these days, : certification can become very expensive very quickly. Some--Cisco, for : example--require re-certification every two years. I just wonder what that : buys you once you get it. Continued advancement? Better-paying jobs? : : I looked up MCDBA certification classes in my area and found some being : offered by another old friend of mine in the Chicago area. The certification : tests apparently cannot be taken unless one also takes the courses. I found : that a bit of a put-off. : : I was also curious that, on the Microsoft site, the MCDBA is geared for : those with big company experience and big servers and big databases. Somehow : I doubt that these required courses offer anything in the way of simulation : of huge databases or multiple platform connections...or do they? : : I've worked with PCs since 1982 and on mainframes for a bit before that, : back to 1975. It seems demeaning somehow that I cannot take a certification : test without going through an approved set of courses for which I pay a : large sum of money. I'm perfectly capable of learning SQL Server--or : anything else, for that matter--just fine on my own or in connection with my : client experiences. I guess I'm whining about having to take those courses. : If I do and if I get an MCDBA, what does it mean? : : Regards, : : Steve Erbach : Scientific Marketing : Neenah, WI : : "Nothing so needs reforming as other people's habits." - Mark Twain : : : -------------------------------------------------------------------------- -- : ---- : : Is email taking over your day? Manage your time with eMailBoss. Try it free! : http://www.eMailBoss.com : _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com ---------------------------------------------------- Is email taking over your day? Manage your time with eMailBoss. Try it free! http://www.eMailBoss.com ---------------------------------------------------- Is email taking over your day? Manage your time with eMailBoss. Try it free! http://www.eMailBoss.com -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 7128 bytes Desc: not available URL: From artful at rogers.com Tue Feb 25 20:54:45 2003 From: artful at rogers.com (Arthur Fuller) Date: Tue, 25 Feb 2003 21:54:45 -0500 Subject: [dba-SQLServer]OT: Sproc -- the Origin In-Reply-To: Message-ID: <020301c2dd42$6b2a4eb0$8e01a8c0@Rock> I'm wondering if I coined the term SPROC. I think I did, but who knows? Not that it's up there with cyberspace or franchulates or pooning a bimbo box, but still. If I coined it I want my place in the Wired list :-) More seriously, is there a site you can hit to look up first uses of a word? A. From my.lists at verizon.net Wed Feb 26 02:24:52 2003 From: my.lists at verizon.net (Francisco Tapia) Date: Wed, 26 Feb 2003 00:24:52 -0800 Subject: [dba-SQLServer]OT: Sproc -- the Origin References: <020301c2dd42$6b2a4eb0$8e01a8c0@Rock> Message-ID: <001101c2dd70$89aa4bf0$0eb62904@amd2k> http://www.aspalliance.com/stevesmith/articles/spcustomwhere.asp October 2001 http://dbforums.com/archives/t312974.html March 2002 http://databasejournal.com/news/article.php/1487751 October 2002 just some hits I found on the web... most search engines will only return hits at max of up to a year ago when you specify a date range... -Francisco http://rcm.netfirms.com/ ----- Original Message ----- From: "Arthur Fuller" : I'm wondering if I coined the term SPROC. I think I did, but who knows? Not : that it's up there with cyberspace or franchulates or pooning a bimbo box, : but still. If I coined it I want my place in the Wired list :-) : More seriously, is there a site you can hit to look up first uses of a word? : A. From artful at rogers.com Wed Feb 26 07:06:09 2003 From: artful at rogers.com (Arthur Fuller) Date: Wed, 26 Feb 2003 08:06:09 -0500 Subject: [dba-SQLServer]Bound forms filtered on a control on the form In-Reply-To: Message-ID: <021301c2dd97$d4f87c90$8e01a8c0@Rock> I think there's some misunderstanding here (could be on my part :-)). Does your form have, say, a combo or list that is the form's navigation scheme? Such that you select a row in the list and then the form navigates to that record? Or are you passing the selection to another form that you want to filter? If it's the same form, you'll need: a) a view or sproc that populates the list with PK and description; b) a sproc that drives the form, and that accepts an int parameter @PK. Within the sproc, default the parameter @PK to zero. The code for the sproc should resemble this: CREATE PROC myProc ( @PK integer = 0) AS SELECT * FROM myTables WHERE (PK = @PK) In the InputParameters property, write "@PK = " & Me.cboName. In the AfterUpdate event of cboName, requery the form. It's dead simple, and leaves all the data you don't want on the server where it belongs. HTH, Arthur -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com] Sent: February 25, 2003 7:08 PM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]Bound forms filtered on a control on the form Hmmm... OK. My understanding is that this actually pulls all of the records in the recordset and then only DISPLAYS one record (filter). That is useful in certain instances, however I would really like to just pull one specific record, having SQL Server do all the work of finding that record and handing it back. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of Selina Iddon Sent: Tuesday, February 25, 2003 5:31 PM To: dba-sqlserver at databaseadvisors.com Subject: Re: [dba-SQLServer]Bound forms filtered on a control on the form Hi John I may be reading the question wrong, but would this help? Sub MyComboControl_AfterUpdate() Me.Filter = "FieldName = " & Me.MyComboControl Me.FilterOn = true End Sub Cheers Selina ---------------------------------------------------------------------------- ---- Selina Iddon selina at easydatabases.com.au Ph: 0414 225 265 Easy Access Databases ----- Original Message ----- From: "John W. Colby" To: "AccessD-SQLServer" Sent: Wednesday, February 26, 2003 7:53 AM Subject: [dba-SQLServer]Bound forms filtered on a control on the form > I have been following the thread on the report thing. The discussion has > focused (the ones I have read) on using XP, where there are actually > properties to do this. How do I do this in A2K? > > I have a form. I want to select a record in a combo box. Having selected > that record, I want to run an sproc, passing a parameter to filter the data > returned to only return the record selected in the combo box. > > How do I do that in A2K? > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > ---------------------------------------------------- > Is email taking over your day? Manage your time with eMailBoss. > Try it free! http://www.eMailBoss.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 ---------------------------------------------------- Is email taking over your day? Manage your time with eMailBoss. Try it free! http://www.eMailBoss.com -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 6352 bytes Desc: not available URL: From serbach at new.rr.com Wed Feb 26 07:45:19 2003 From: serbach at new.rr.com (Steven W. Erbach) Date: Wed, 26 Feb 2003 07:45:19 -0600 Subject: [dba-SQLServer]MCDBA References: <8B71136FC3E66D43811E480EBE251AFD6F0E22@APEXCH03> Message-ID: <006e01c2dd9d$5d17a5b0$579ba618@W2k> Allan, >> I have not looked but is it really a requirement that you take the courses.? I doubt it << Upon closer examination it looks like one can get there by purchasing the "Readiness Reviews" for each of the tests published by Microsoft Press. Matter of fact, I just ordered the one for the 70-229 test from Readme.doc. >> I do not think they are designed for people using big databases either. I have no databases over 300 GB (But I do have 500 of them). << The "Audience Profile" for Exam 70-228 says: Candidates for this exam operate in medium to very large computing environments that use Microsoft SQL Server 2000 Enterprise Edition. Candidates have at least one year of experience administering SQL Server. They also have at least one year of experience implementing relational databases in environments that contain: * Heterogeneous databases. * SQL Server security integrated with Windows Authentication. * Client/server configurations of 50 to 5,000 or more users. * Web configurations that use Microsoft Internet Information Services (IIS) or COM+. * Databases as large as two terabytes. * Multiple installations of SQL Server 2000. It just looks like larger servers and databases are emphasized. Regards, Steve Erbach Scientific Marketing Neenah, WI "Nothing so needs reforming as other people's habits." - Mark Twain From serbach at new.rr.com Wed Feb 26 08:03:17 2003 From: serbach at new.rr.com (Steven W. Erbach) Date: Wed, 26 Feb 2003 08:03:17 -0600 Subject: [dba-SQLServer]MCDBA References: Message-ID: <009a01c2dd9f$d1ba9600$579ba618@W2k> Charles, >> Which type are you now at and which type are you looking at for a better paying job? << I don't have the credentials for SQL Server--or anything else for that matter. At present I'm gradually shutting down my software development company as a full-time concern. The work has just dried up around here. So I'm sending out resumes to get a real job. I'm happy to acquire any certification that might help the cause, but I was concerned when it looked, at first blush, as if getting an MCDBA required taking the courses. It doesn't appear so now. In any event, it looks like getting an MCDBA would be advantageous, but getting a whole slew of different certifications could take up a lot of time. I have a good "horseback" knowledge of SQL Server. Getting certified will force me to look at it more systematically. Regards, Steve Erbach Scientific Marketing Neenah, WI "Nothing so needs reforming as other people's habits." - Mark Twain From Robert.Djabarov at usaa.com Wed Feb 26 08:54:41 2003 From: Robert.Djabarov at usaa.com (Djabarov, Robert) Date: Wed, 26 Feb 2003 08:54:41 -0600 Subject: [dba-SQLServer]SQL Server 7 - Stored Procedure Help - Quite Urgent. Message-ID: <5A31F89EC4C79B49B5030FF2EF58E9D24EBBD1@ex02.eagle.usaa.com> The "side effects" that I thought we are talking about here are performance and contingency...and you're talking about syntax errors? First of all, your first example in a sense deletes all records from TitleAuthor, because your IN clause actually selects AU_ID from TitleAuthor, not from Publishers, as it might seem (unfortunately, I don't see the purpose of this IN clause in this particular case at all). In fact, your IN clause will select AU_ID as many times as there are rows in Publishers... Would you ever consider doing it in real life? What I was talking about was the impact of IN/NOT IN/NOT EXISTS vs. EXISTS/LEFT OUTER JOIN. Since you started withy IN vs. EXISTS, here's the sample that you can run in QA and see the difference in performance for yourself: select * from authors where au_id in ( select au_id from titleauthor) go select * from authors a where exists ( select * from titleauthor t where a.au_id = t.au_id) go Just turn Statistics Time on in your Connection Options. In mine I see 19ms delay in the first query vs. the second. ______________________________________________________ Robert Djabarov Certified MS SQL Server DBA Certified MS SQL Server Programmer Certified MS VB Programmer ? (210) 913-3148 - phone ( (210) 753-3148 - pager -----Original Message----- From: Francisco H Tapia [mailto:my.lists at verizon.net] Sent: Tuesday, February 25, 2003 6:11 PM To: dba-sqlserver at databaseadvisors.com Subject: Re: [dba-SQLServer]SQL Server 7 - Stored Procedure Help - Quite Urgent. NOT EXIST isn't exposed to the same side effects... Take the following for an example... BEGIN TRANSACTION SELECT COUNT(*) FROM Titleauthor DELETE Titleauthor WHERE au_id IN ( SELECT au_id FROM Publishers) SELECT COUNT(*) FROM Titleauthor ROLLBACK however this statement dosent error out, true it's the EXISTS not the NOT EXISTS but the side-effects are the same... BEGIN TRANSACTION SELECT COUNT(*) FROM Titleauthor DELETE Titleauthor WHERE EXISTS(SELECT au_id FROM Publishers WHERE Publishers.au_id = Titleauthor.au_id) SELECT COUNT(*) FROM Titleauthor ROLLBACK note that you now get the invalid column au_id with the EXISTS statement...which is at it should be... the first IN statement doesn't give this feedback, a workaround is to declare the au_id in the IN statement as Publisher.au_id in order to cause it to explicilty resolve in which case you'd get the error.. -Francisco http://rcm.netfirms.com ----- Original Message ----- From: "Djabarov, Robert" To: Sent: Tuesday, February 25, 2003 12:19 PM Subject: RE: [dba-SQLServer]SQL Server 7 - Stored Procedure Help - Quite Urgent. : NOT IN has the same side effects as NOT EXISTS. It can be easily re-written as follows: : : insert into tableA (Payroll, JobDate, JobType) : select B.Payroll, B.JobDate, B.JobType : from tableB B left outer join ( : select A.Payroll, A.JobDate, A.JobType : from tableA A : inner join tableB tb : on A.Payroll = tb.Payroll : AND A.Jobdate = tb.JobDate : AND A.JobType = tb.JobType : ) t on B.Payroll = t.Payroll : and B.JobDate = t.JobDate : and B.JobType = t.JobType : where t.Payroll is null : and t.JobDate is null : and t.JobType is null : : : ______________________________________________________ : Robert Djabarov : Certified MS SQL Server DBA : Certified MS SQL Server Programmer : Certified MS VB Programmer : ? (210) 913-3148 - phone : ( (210) 753-3148 - pager : : -----Original Message----- : From: Francisco H Tapia [mailto:my.lists at verizon.net] : Sent: Tuesday, February 25, 2003 10:36 AM : To: dba-sqlserver at databaseadvisors.com; AccessD; dba-VB at databaseadvisors.com : Subject: Re: [dba-SQLServer]SQL Server 7 - Stored Procedure Help - Quite Urgent. : : How about .... : : Insert into tableA (Payroll, jobdate, jobtype) : Select Payroll, jobdate, jobtype : From tableB AS B : WHERE NOT EXISTS( Select Payroll, jobdate, jobtype : From tableA AS A : Where B.Payroll = A.Payroll AND : B.Jobdate = A.JobDate AND B.JobType = A.JobType) : : I could have used a NOT IN clause but then NOT IN can have some serious side : effects...In General the above statement will be evaluated by the engine : where as a NOT IN could miss evaluating the B alias in the where clause and : cause it to report bad data, using Exists (or NOT EXISTS) usually yields : faster performance and the assurance that it evaluates correctly. : -Francisco : http://rcm.netfirms.com : ----- Original Message ----- : From: : To: ; ; : : Sent: Tuesday, February 25, 2003 1:42 AM : Subject: [dba-SQLServer]SQL Server 7 - Stored Procedure Help - Quite Urgent. : : : : To all, : : : : Watch for Word Wrap............... : : : : Being quite a novice with Stored Procedures on SQL Server 7.0, I'm looking : for some pretty urgent help at the moment. I have two tables, lets say : Table A & Table B. Table A is my master table, and Table B is a temporary : table. Before Table be gets populated with any data, every existing record : is deleted so I start with a fresh table so to speak. Table B consists of 3 : fields PayrollNo, JobDate, JobType (these fields are also in the master : table, but the master table is used to contain other consting information, : which is entered at a later date). : : : : What I would like is a Stored Procedure which would Insert Table B : contents into Table A, but making sure that I don't insert any duplicates : into Table A (something like an unmatched query in access but with an Insert : also). i.e. : : : : Table A Table B : : payroll jobdate jobtype id payroll : jobdate jobtype : : 999001 01/01/01 0 1 999001 : 01/01/01 0 : : 999001 01/01/01 2 2 999001 : 01/01/01 1 : : 999002 01/01/01 2 3 999001 : 01/01/01 2 : : 4 999002 : 01/01/01 0 : : 5 999002 : 01/01/01 1 : : 6 999002 : 01/01/01 2 : : : : So when I invoke the stored procedure, it would insert records 2, 4 and 5 : from Table B into Table A........Anyone any idea what I'm on about, if so : can anybody please help....... : : : : Thanks in advance : : : : Paul Hartland : : : : __________________________________________________________________________ : : Freeserve AnyTime - Go online whenever you want for just ?6.99 a month for : : your first 3 months, that's HALF PRICE! And then it's just ?13.99 a month : : after that. : : : : For more information visit http://www.freeserve.com/time/ or call free on : : 0800 970 8890 : : : : : : _______________________________________________ : : 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 jcolby at colbyconsulting.com Wed Feb 26 08:57:27 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Wed, 26 Feb 2003 09:57:27 -0500 Subject: [dba-SQLServer]Bound forms filtered on a control on the form In-Reply-To: <021301c2dd97$d4f87c90$8e01a8c0@Rock> Message-ID: >I think there's some misunderstanding here (could be on my part J). Does your form have, say, a combo or list that is the form's navigation scheme? Such that you select a row in the list and then the form navigates to that record? Precisely. this is just one scenario that I actually need to handle in my databases, to port them to ADPs. >In the InputParameters property, write "@PK = " & Me.cboName. I guess what I don't understand is that the sproc looks like a query from inside the ADP. The form is bound to the sproc (query), but how do I feed the parameter to the sproc? Where is the "Input Parameters property"? What is it a property of? Do I assign the sproc to an ado object which has such a property, then assign that to the form's recordset property? If I do that, is the form R/W? If that is what I do (and it must be R/W to be useful) can I see some example code? John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com] Sent: Wednesday, February 26, 2003 8:06 AM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]Bound forms filtered on a control on the form I think there's some misunderstanding here (could be on my part J). Does your form have, say, a combo or list that is the form's navigation scheme? Such that you select a row in the list and then the form navigates to that record? Or are you passing the selection to another form that you want to filter? If it's the same form, you'll need: a) a view or sproc that populates the list with PK and description; b) a sproc that drives the form, and that accepts an int parameter @PK. Within the sproc, default the parameter @PK to zero. The code for the sproc should resemble this: CREATE PROC myProc ( @PK integer = 0) AS SELECT * FROM myTables WHERE (PK = @PK) In the InputParameters property, write "@PK = " & Me.cboName. In the AfterUpdate event of cboName, requery the form. It's dead simple, and leaves all the data you don't want on the server where it belongs. HTH, Arthur -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com] Sent: February 25, 2003 7:08 PM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]Bound forms filtered on a control on the form Hmmm... OK. My understanding is that this actually pulls all of the records in the recordset and then only DISPLAYS one record (filter). That is useful in certain instances, however I would really like to just pull one specific record, having SQL Server do all the work of finding that record and handing it back. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of Selina Iddon Sent: Tuesday, February 25, 2003 5:31 PM To: dba-sqlserver at databaseadvisors.com Subject: Re: [dba-SQLServer]Bound forms filtered on a control on the form Hi John I may be reading the question wrong, but would this help? Sub MyComboControl_AfterUpdate() Me.Filter = "FieldName = " & Me.MyComboControl Me.FilterOn = true End Sub Cheers Selina ---------------------------------------------------------------------------- ---- Selina Iddon selina at easydatabases.com.au Ph: 0414 225 265 Easy Access Databases ----- Original Message ----- From: "John W. Colby" To: "AccessD-SQLServer" Sent: Wednesday, February 26, 2003 7:53 AM Subject: [dba-SQLServer]Bound forms filtered on a control on the form > I have been following the thread on the report thing. The discussion has > focused (the ones I have read) on using XP, where there are actually > properties to do this. How do I do this in A2K? > > I have a form. I want to select a record in a combo box. Having selected > that record, I want to run an sproc, passing a parameter to filter the data > returned to only return the record selected in the combo box. > > How do I do that in A2K? > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > ---------------------------------------------------- > Is email taking over your day? Manage your time with eMailBoss. > Try it free! http://www.eMailBoss.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 ---------------------------------------------------- Is email taking over your day? Manage your time with eMailBoss. Try it free! http://www.eMailBoss.com ---------------------------------------------------- Is email taking over your day? Manage your time with eMailBoss. Try it free! http://www.eMailBoss.com -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 3748 bytes Desc: not available URL: From szeller at cce.umn.edu Wed Feb 26 09:11:34 2003 From: szeller at cce.umn.edu (Susan Zeller) Date: Wed, 26 Feb 2003 09:11:34 -0600 Subject: [dba-SQLServer]Bound forms filtered on a control on the form Message-ID: Input Parameters is a property of the form, even in A2K and you can set it on the form or in code with me.inputparameters = ..... Don't have much more to offer on this as I've been working mostly with unbound forms since I moved to SQL/Adp's. --Susan > -----Original Message----- > From: dba-sqlserver-admin at databaseadvisors.com > [mailto:dba-sqlserver-admin at databaseadvisors.com] On Behalf Of John > W. Colby > Sent: Wednesday, February 26, 2003 8:57 AM > To: dba-sqlserver at databaseadvisors.com > Subject: RE: [dba-SQLServer]Bound forms filtered on a control on > the form > > >I think there's some misunderstanding here (could be on my part J). > Does your form have, say, a combo or list that is the form's > navigation scheme? Such that you select a row in the list and then the > form navigates to that record? > > Precisely. this is just one scenario that I actually need to handle > in my databases, to port them to ADPs. > > >In the InputParameters property, write "@PK = " & Me.cboName. > > I guess what I don't understand is that the sproc looks like a query > from inside the ADP. The form is bound to the sproc (query), but how > do I feed the parameter to the sproc? Where is the "Input Parameters > property"? What is it a property of? Do I assign the sproc to an ado > object which has such a property, then assign that to the form's > recordset property? If I do that, is the form R/W? If that is what I > do (and it must be R/W to be useful) can I see some example code? > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: dba-sqlserver-admin at databaseadvisors.com > [mailto:dba-sqlserver-admin at databaseadvisors.com] > Sent: Wednesday, February 26, 2003 8:06 AM > To: dba-sqlserver at databaseadvisors.com > Subject: RE: [dba-SQLServer]Bound forms filtered on a control on > the form > > I think there's some misunderstanding here (could be on my part J). > Does your form have, say, a combo or list that is the form's > navigation scheme? Such that you select a row in the list and then the > form navigates to that record? Or are you passing the selection to > another form that you want to filter? > If it's the same form, you'll need: > a) a view or sproc that populates the list with PK and description; > b) a sproc that drives the form, and that accepts an int parameter > @PK. Within the sproc, default the parameter @PK to zero. > > The code for the sproc should resemble this: > CREATE PROC myProc > ( @PK integer = 0) > AS > SELECT * FROM myTables > WHERE (PK = @PK) > > In the InputParameters property, write "@PK = " & Me.cboName. In the > AfterUpdate event of cboName, requery the form. > It's dead simple, and leaves all the data you don't want on the server > where it belongs. > HTH, > Arthur > > -----Original Message----- > From: dba-sqlserver-admin at databaseadvisors.com > [mailto:dba-sqlserver-admin at databaseadvisors.com] > Sent: February 25, 2003 7:08 PM > To: dba-sqlserver at databaseadvisors.com > Subject: RE: [dba-SQLServer]Bound forms filtered on a control on the > form > > Hmmm... OK. My understanding is that this actually pulls all of the > records in the recordset and then only DISPLAYS one record (filter). > That is useful in certain instances, however I would really like to > just pull one specific record, having SQL Server do all the work of > finding that record and handing it back. > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: dba-sqlserver-admin at databaseadvisors.com > [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of Selina > Iddon > Sent: Tuesday, February 25, 2003 5:31 PM > To: dba-sqlserver at databaseadvisors.com > Subject: Re: [dba-SQLServer]Bound forms filtered on a control on the > form > > > Hi John > I may be reading the question wrong, but would this help? > > Sub MyComboControl_AfterUpdate() > Me.Filter = "FieldName = " & Me.MyComboControl > Me.FilterOn = true > End Sub > > Cheers > Selina > > > ---------------------------------------------------------------------- > ------ > ---- Selina Iddon selina at easydatabases.com.au Ph: 0414 225 265 Easy > Access > Databases > ----- Original Message ----- > From: "John W. Colby" > To: "AccessD-SQLServer" > Sent: Wednesday, February 26, 2003 7:53 AM > Subject: [dba-SQLServer]Bound forms filtered on a control on the form > > > > I have been following the thread on the report thing. The > discussion has > > focused (the ones I have read) on using XP, where there are actually > > properties to do this. How do I do this in A2K? > > > > I have a form. I want to select a record in a combo box. Having > selected > > that record, I want to run an sproc, passing a parameter to filter > the > data > > returned to only return the record selected in the combo box. > > > > How do I do that in A2K? > > > > John W. Colby > > Colby Consulting > > www.ColbyConsulting.com > > > > ---------------------------------------------------- > > Is email taking over your day? Manage your time with eMailBoss. > > Try it free! http://www.eMailBoss.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 > > > > > ---------------------------------------------------- > Is email taking over your day? Manage your time with eMailBoss. > Try it free! http://www.eMailBoss.com > > ---------------------------------------------------- > Is email taking over your day? Manage your time with eMailBoss. > Try it free! http://www.eMailBoss.com From jcolby at colbyconsulting.com Wed Feb 26 09:23:02 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Wed, 26 Feb 2003 10:23:02 -0500 Subject: [dba-SQLServer]Bound forms filtered on a control on the form In-Reply-To: Message-ID: >Input Parameters is a property of the form, even in A2K and you can set it on the form or in code with me.inputparameters = ..... Really? What tab is it on in the property box? I am not finding it. (A2K) John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of Susan Zeller Sent: Wednesday, February 26, 2003 10:12 AM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]Bound forms filtered on a control on the form Input Parameters is a property of the form, even in A2K and you can set it on the form or in code with me.inputparameters = ..... Don't have much more to offer on this as I've been working mostly with unbound forms since I moved to SQL/Adp's. --Susan > -----Original Message----- > From: dba-sqlserver-admin at databaseadvisors.com > [mailto:dba-sqlserver-admin at databaseadvisors.com] On Behalf Of John > W. Colby > Sent: Wednesday, February 26, 2003 8:57 AM > To: dba-sqlserver at databaseadvisors.com > Subject: RE: [dba-SQLServer]Bound forms filtered on a control on > the form > > >I think there's some misunderstanding here (could be on my part J). > Does your form have, say, a combo or list that is the form's > navigation scheme? Such that you select a row in the list and then the > form navigates to that record? > > Precisely. this is just one scenario that I actually need to handle > in my databases, to port them to ADPs. > > >In the InputParameters property, write "@PK = " & Me.cboName. > > I guess what I don't understand is that the sproc looks like a query > from inside the ADP. The form is bound to the sproc (query), but how > do I feed the parameter to the sproc? Where is the "Input Parameters > property"? What is it a property of? Do I assign the sproc to an ado > object which has such a property, then assign that to the form's > recordset property? If I do that, is the form R/W? If that is what I > do (and it must be R/W to be useful) can I see some example code? > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: dba-sqlserver-admin at databaseadvisors.com > [mailto:dba-sqlserver-admin at databaseadvisors.com] > Sent: Wednesday, February 26, 2003 8:06 AM > To: dba-sqlserver at databaseadvisors.com > Subject: RE: [dba-SQLServer]Bound forms filtered on a control on > the form > > I think there's some misunderstanding here (could be on my part J). > Does your form have, say, a combo or list that is the form's > navigation scheme? Such that you select a row in the list and then the > form navigates to that record? Or are you passing the selection to > another form that you want to filter? > If it's the same form, you'll need: > a) a view or sproc that populates the list with PK and description; > b) a sproc that drives the form, and that accepts an int parameter > @PK. Within the sproc, default the parameter @PK to zero. > > The code for the sproc should resemble this: > CREATE PROC myProc > ( @PK integer = 0) > AS > SELECT * FROM myTables > WHERE (PK = @PK) > > In the InputParameters property, write "@PK = " & Me.cboName. In the > AfterUpdate event of cboName, requery the form. > It's dead simple, and leaves all the data you don't want on the server > where it belongs. > HTH, > Arthur > > -----Original Message----- > From: dba-sqlserver-admin at databaseadvisors.com > [mailto:dba-sqlserver-admin at databaseadvisors.com] > Sent: February 25, 2003 7:08 PM > To: dba-sqlserver at databaseadvisors.com > Subject: RE: [dba-SQLServer]Bound forms filtered on a control on the > form > > Hmmm... OK. My understanding is that this actually pulls all of the > records in the recordset and then only DISPLAYS one record (filter). > That is useful in certain instances, however I would really like to > just pull one specific record, having SQL Server do all the work of > finding that record and handing it back. > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: dba-sqlserver-admin at databaseadvisors.com > [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of Selina > Iddon > Sent: Tuesday, February 25, 2003 5:31 PM > To: dba-sqlserver at databaseadvisors.com > Subject: Re: [dba-SQLServer]Bound forms filtered on a control on the > form > > > Hi John > I may be reading the question wrong, but would this help? > > Sub MyComboControl_AfterUpdate() > Me.Filter = "FieldName = " & Me.MyComboControl > Me.FilterOn = true > End Sub > > Cheers > Selina > > > ---------------------------------------------------------------------- > ------ > ---- Selina Iddon selina at easydatabases.com.au Ph: 0414 225 265 Easy > Access > Databases > ----- Original Message ----- > From: "John W. Colby" > To: "AccessD-SQLServer" > Sent: Wednesday, February 26, 2003 7:53 AM > Subject: [dba-SQLServer]Bound forms filtered on a control on the form > > > > I have been following the thread on the report thing. The > discussion has > > focused (the ones I have read) on using XP, where there are actually > > properties to do this. How do I do this in A2K? > > > > I have a form. I want to select a record in a combo box. Having > selected > > that record, I want to run an sproc, passing a parameter to filter > the > data > > returned to only return the record selected in the combo box. > > > > How do I do that in A2K? > > > > John W. Colby > > Colby Consulting > > www.ColbyConsulting.com > > > > ---------------------------------------------------- > > Is email taking over your day? Manage your time with eMailBoss. > > Try it free! http://www.eMailBoss.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 > > > > > ---------------------------------------------------- > Is email taking over your day? Manage your time with eMailBoss. > Try it free! http://www.eMailBoss.com > > ---------------------------------------------------- > Is email taking over your day? Manage your time with eMailBoss. > Try it free! http://www.eMailBoss.com _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com ---------------------------------------------------- Is email taking over your day? Manage your time with eMailBoss. Try it free! http://www.eMailBoss.com -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 4212 bytes Desc: not available URL: From jcolby at colbyconsulting.com Wed Feb 26 09:27:53 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Wed, 26 Feb 2003 10:27:53 -0500 Subject: [dba-SQLServer]Bound forms filtered on a control on the form In-Reply-To: Message-ID: Well, I hit send too soon. I see it as a property of the me object in code. That solves my problem I guess. It doesn't appear to be available at design time but I can program it no problem. Next question, how do I do the same thing for a combo? If a combo is filtered on another combo, the second combo is based on a stored procedure that has an input parameter so that it can filter down based on something passed in. The "something passed in" is the value of another control. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of Susan Zeller Sent: Wednesday, February 26, 2003 10:12 AM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]Bound forms filtered on a control on the form Input Parameters is a property of the form, even in A2K and you can set it on the form or in code with me.inputparameters = ..... Don't have much more to offer on this as I've been working mostly with unbound forms since I moved to SQL/Adp's. --Susan > -----Original Message----- > From: dba-sqlserver-admin at databaseadvisors.com > [mailto:dba-sqlserver-admin at databaseadvisors.com] On Behalf Of John > W. Colby > Sent: Wednesday, February 26, 2003 8:57 AM > To: dba-sqlserver at databaseadvisors.com > Subject: RE: [dba-SQLServer]Bound forms filtered on a control on > the form > > >I think there's some misunderstanding here (could be on my part J). > Does your form have, say, a combo or list that is the form's > navigation scheme? Such that you select a row in the list and then the > form navigates to that record? > > Precisely. this is just one scenario that I actually need to handle > in my databases, to port them to ADPs. > > >In the InputParameters property, write "@PK = " & Me.cboName. > > I guess what I don't understand is that the sproc looks like a query > from inside the ADP. The form is bound to the sproc (query), but how > do I feed the parameter to the sproc? Where is the "Input Parameters > property"? What is it a property of? Do I assign the sproc to an ado > object which has such a property, then assign that to the form's > recordset property? If I do that, is the form R/W? If that is what I > do (and it must be R/W to be useful) can I see some example code? > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: dba-sqlserver-admin at databaseadvisors.com > [mailto:dba-sqlserver-admin at databaseadvisors.com] > Sent: Wednesday, February 26, 2003 8:06 AM > To: dba-sqlserver at databaseadvisors.com > Subject: RE: [dba-SQLServer]Bound forms filtered on a control on > the form > > I think there's some misunderstanding here (could be on my part J). > Does your form have, say, a combo or list that is the form's > navigation scheme? Such that you select a row in the list and then the > form navigates to that record? Or are you passing the selection to > another form that you want to filter? > If it's the same form, you'll need: > a) a view or sproc that populates the list with PK and description; > b) a sproc that drives the form, and that accepts an int parameter > @PK. Within the sproc, default the parameter @PK to zero. > > The code for the sproc should resemble this: > CREATE PROC myProc > ( @PK integer = 0) > AS > SELECT * FROM myTables > WHERE (PK = @PK) > > In the InputParameters property, write "@PK = " & Me.cboName. In the > AfterUpdate event of cboName, requery the form. > It's dead simple, and leaves all the data you don't want on the server > where it belongs. > HTH, > Arthur > > -----Original Message----- > From: dba-sqlserver-admin at databaseadvisors.com > [mailto:dba-sqlserver-admin at databaseadvisors.com] > Sent: February 25, 2003 7:08 PM > To: dba-sqlserver at databaseadvisors.com > Subject: RE: [dba-SQLServer]Bound forms filtered on a control on the > form > > Hmmm... OK. My understanding is that this actually pulls all of the > records in the recordset and then only DISPLAYS one record (filter). > That is useful in certain instances, however I would really like to > just pull one specific record, having SQL Server do all the work of > finding that record and handing it back. > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: dba-sqlserver-admin at databaseadvisors.com > [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of Selina > Iddon > Sent: Tuesday, February 25, 2003 5:31 PM > To: dba-sqlserver at databaseadvisors.com > Subject: Re: [dba-SQLServer]Bound forms filtered on a control on the > form > > > Hi John > I may be reading the question wrong, but would this help? > > Sub MyComboControl_AfterUpdate() > Me.Filter = "FieldName = " & Me.MyComboControl > Me.FilterOn = true > End Sub > > Cheers > Selina > > > ---------------------------------------------------------------------- > ------ > ---- Selina Iddon selina at easydatabases.com.au Ph: 0414 225 265 Easy > Access > Databases > ----- Original Message ----- > From: "John W. Colby" > To: "AccessD-SQLServer" > Sent: Wednesday, February 26, 2003 7:53 AM > Subject: [dba-SQLServer]Bound forms filtered on a control on the form > > > > I have been following the thread on the report thing. The > discussion has > > focused (the ones I have read) on using XP, where there are actually > > properties to do this. How do I do this in A2K? > > > > I have a form. I want to select a record in a combo box. Having > selected > > that record, I want to run an sproc, passing a parameter to filter > the > data > > returned to only return the record selected in the combo box. > > > > How do I do that in A2K? > > > > John W. Colby > > Colby Consulting > > www.ColbyConsulting.com > > > > ---------------------------------------------------- > > Is email taking over your day? Manage your time with eMailBoss. > > Try it free! http://www.eMailBoss.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 > > > > > ---------------------------------------------------- > Is email taking over your day? Manage your time with eMailBoss. > Try it free! http://www.eMailBoss.com > > ---------------------------------------------------- > Is email taking over your day? Manage your time with eMailBoss. > Try it free! http://www.eMailBoss.com _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com ---------------------------------------------------- Is email taking over your day? Manage your time with eMailBoss. Try it free! http://www.eMailBoss.com -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 4400 bytes Desc: not available URL: From artful at rogers.com Wed Feb 26 09:34:30 2003 From: artful at rogers.com (Arthur Fuller) Date: Wed, 26 Feb 2003 10:34:30 -0500 Subject: [dba-SQLServer]Bound forms filtered on a control on the form In-Reply-To: Message-ID: <024b01c2ddac$8dea2140$8e01a8c0@Rock> It's the last item on the Data tab of the property sheet. The sproc I included in my previous message should be enough to get your own going. In AXP there is only one Queries tab on the db window, and it contains sprocs, views and UDFs. -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com] Sent: February 26, 2003 10:23 AM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]Bound forms filtered on a control on the form >Input Parameters is a property of the form, even in A2K and you can set it on the form or in code with me.inputparameters = ..... Really? What tab is it on in the property box? I am not finding it. (A2K) John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of Susan Zeller Sent: Wednesday, February 26, 2003 10:12 AM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]Bound forms filtered on a control on the form Input Parameters is a property of the form, even in A2K and you can set it on the form or in code with me.inputparameters = ..... Don't have much more to offer on this as I've been working mostly with unbound forms since I moved to SQL/Adp's. --Susan > -----Original Message----- > From: dba-sqlserver-admin at databaseadvisors.com > [mailto:dba-sqlserver-admin at databaseadvisors.com] On Behalf Of John > W. Colby > Sent: Wednesday, February 26, 2003 8:57 AM > To: dba-sqlserver at databaseadvisors.com > Subject: RE: [dba-SQLServer]Bound forms filtered on a control on > the form > > >I think there's some misunderstanding here (could be on my part J). > Does your form have, say, a combo or list that is the form's > navigation scheme? Such that you select a row in the list and then the > form navigates to that record? > > Precisely. this is just one scenario that I actually need to handle > in my databases, to port them to ADPs. > > >In the InputParameters property, write "@PK = " & Me.cboName. > > I guess what I don't understand is that the sproc looks like a query > from inside the ADP. The form is bound to the sproc (query), but how > do I feed the parameter to the sproc? Where is the "Input Parameters > property"? What is it a property of? Do I assign the sproc to an ado > object which has such a property, then assign that to the form's > recordset property? If I do that, is the form R/W? If that is what I > do (and it must be R/W to be useful) can I see some example code? > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: dba-sqlserver-admin at databaseadvisors.com > [mailto:dba-sqlserver-admin at databaseadvisors.com] > Sent: Wednesday, February 26, 2003 8:06 AM > To: dba-sqlserver at databaseadvisors.com > Subject: RE: [dba-SQLServer]Bound forms filtered on a control on > the form > > I think there's some misunderstanding here (could be on my part J). > Does your form have, say, a combo or list that is the form's > navigation scheme? Such that you select a row in the list and then the > form navigates to that record? Or are you passing the selection to > another form that you want to filter? > If it's the same form, you'll need: > a) a view or sproc that populates the list with PK and description; > b) a sproc that drives the form, and that accepts an int parameter > @PK. Within the sproc, default the parameter @PK to zero. > > The code for the sproc should resemble this: > CREATE PROC myProc > ( @PK integer = 0) > AS > SELECT * FROM myTables > WHERE (PK = @PK) > > In the InputParameters property, write "@PK = " & Me.cboName. In the > AfterUpdate event of cboName, requery the form. > It's dead simple, and leaves all the data you don't want on the server > where it belongs. > HTH, > Arthur > > -----Original Message----- > From: dba-sqlserver-admin at databaseadvisors.com > [mailto:dba-sqlserver-admin at databaseadvisors.com] > Sent: February 25, 2003 7:08 PM > To: dba-sqlserver at databaseadvisors.com > Subject: RE: [dba-SQLServer]Bound forms filtered on a control on the > form > > Hmmm... OK. My understanding is that this actually pulls all of the > records in the recordset and then only DISPLAYS one record (filter). > That is useful in certain instances, however I would really like to > just pull one specific record, having SQL Server do all the work of > finding that record and handing it back. > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: dba-sqlserver-admin at databaseadvisors.com > [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of Selina > Iddon > Sent: Tuesday, February 25, 2003 5:31 PM > To: dba-sqlserver at databaseadvisors.com > Subject: Re: [dba-SQLServer]Bound forms filtered on a control on the > form > > > Hi John > I may be reading the question wrong, but would this help? > > Sub MyComboControl_AfterUpdate() > Me.Filter = "FieldName = " & Me.MyComboControl > Me.FilterOn = true > End Sub > > Cheers > Selina > > > ---------------------------------------------------------------------- > ------ > ---- Selina Iddon selina at easydatabases.com.au Ph: 0414 225 265 Easy > Access > Databases > ----- Original Message ----- > From: "John W. Colby" > To: "AccessD-SQLServer" > Sent: Wednesday, February 26, 2003 7:53 AM > Subject: [dba-SQLServer]Bound forms filtered on a control on the form > > > > I have been following the thread on the report thing. The > discussion has > > focused (the ones I have read) on using XP, where there are actually > > properties to do this. How do I do this in A2K? > > > > I have a form. I want to select a record in a combo box. Having > selected > > that record, I want to run an sproc, passing a parameter to filter > the > data > > returned to only return the record selected in the combo box. > > > > How do I do that in A2K? > > > > John W. Colby > > Colby Consulting > > www.ColbyConsulting.com > > > > ---------------------------------------------------- > > Is email taking over your day? Manage your time with eMailBoss. > > Try it free! http://www.eMailBoss.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 > > > > > ---------------------------------------------------- > Is email taking over your day? Manage your time with eMailBoss. > Try it free! http://www.eMailBoss.com > > ---------------------------------------------------- > Is email taking over your day? Manage your time with eMailBoss. > Try it free! http://www.eMailBoss.com _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com ---------------------------------------------------- Is email taking over your day? Manage your time with eMailBoss. Try it free! http://www.eMailBoss.com -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 6620 bytes Desc: not available URL: From chris at denverdb.com Wed Feb 26 09:35:10 2003 From: chris at denverdb.com (Chris Mackin) Date: Wed, 26 Feb 2003 08:35:10 -0700 Subject: [dba-SQLServer]Bound forms filtered on a control on the form In-Reply-To: Message-ID: It's at the bottom of the form properties. Chris Mackin www.denverdb.com Denver Database Consulting, LLC > -----Original Message----- > From: dba-sqlserver-admin at databaseadvisors.com > [mailto:dba-sqlserver-admin at databaseadvisors.com] > Sent: Wednesday, February 26, 2003 8:23 AM > To: dba-sqlserver at databaseadvisors.com > Subject: RE: [dba-SQLServer]Bound forms filtered on a control on the > form > > >Input Parameters is a property of the form, even in A2K and you can set > it on the form or in code with me.inputparameters = ..... > > Really? What tab is it on in the property box? I am not finding it. > (A2K) > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: dba-sqlserver-admin at databaseadvisors.com > [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of Susan > Zeller > Sent: Wednesday, February 26, 2003 10:12 AM > To: dba-sqlserver at databaseadvisors.com > Subject: RE: [dba-SQLServer]Bound forms filtered on a control on the > form > > > Input Parameters is a property of the form, even in A2K and you can set > it on the form or in code with me.inputparameters = ..... Don't have > much more to offer on this as I've been working mostly with unbound > forms since I moved to SQL/Adp's. > > --Susan > > > -----Original Message----- > > From: dba-sqlserver-admin at databaseadvisors.com > > [mailto:dba-sqlserver-admin at databaseadvisors.com] On Behalf Of John > > W. Colby > > Sent: Wednesday, February 26, 2003 8:57 AM > > To: dba-sqlserver at databaseadvisors.com > > Subject: RE: [dba-SQLServer]Bound forms filtered on a control on > > the form > > > > >I think there's some misunderstanding here (could be on my part J). > > Does your form have, say, a combo or list that is the form's > > navigation scheme? Such that you select a row in the list and then the > > form navigates to that record? > > > > Precisely. this is just one scenario that I actually need to handle > > in my databases, to port them to ADPs. > > > > >In the InputParameters property, write "@PK = " & Me.cboName. > > > > I guess what I don't understand is that the sproc looks like a query > > from inside the ADP. The form is bound to the sproc (query), but how > > do I feed the parameter to the sproc? Where is the "Input Parameters > > property"? What is it a property of? Do I assign the sproc to an ado > > object which has such a property, then assign that to the form's > > recordset property? If I do that, is the form R/W? If that is what I > > do (and it must be R/W to be useful) can I see some example code? > > > > John W. Colby > > Colby Consulting > > www.ColbyConsulting.com > > > > -----Original Message----- > > From: dba-sqlserver-admin at databaseadvisors.com > > [mailto:dba-sqlserver-admin at databaseadvisors.com] > > Sent: Wednesday, February 26, 2003 8:06 AM > > To: dba-sqlserver at databaseadvisors.com > > Subject: RE: [dba-SQLServer]Bound forms filtered on a control on > > the form > > > > I think there's some misunderstanding here (could be on my part J). > > Does your form have, say, a combo or list that is the form's > > navigation scheme? Such that you select a row in the list and then the > > form navigates to that record? Or are you passing the selection to > > another form that you want to filter? > > If it's the same form, you'll need: > > a) a view or sproc that populates the list with PK and description; > > b) a sproc that drives the form, and that accepts an int parameter > > @PK. Within the sproc, default the parameter @PK to zero. > > > > The code for the sproc should resemble this: > > CREATE PROC myProc > > ( @PK integer = 0) > > AS > > SELECT * FROM myTables > > WHERE (PK = @PK) > > > > In the InputParameters property, write "@PK = " & Me.cboName. In the > > AfterUpdate event of cboName, requery the form. > > It's dead simple, and leaves all the data you don't want on the server > > where it belongs. > > HTH, > > Arthur > > > > -----Original Message----- > > From: dba-sqlserver-admin at databaseadvisors.com > > [mailto:dba-sqlserver-admin at databaseadvisors.com] > > Sent: February 25, 2003 7:08 PM > > To: dba-sqlserver at databaseadvisors.com > > Subject: RE: [dba-SQLServer]Bound forms filtered on a control on the > > form > > > > Hmmm... OK. My understanding is that this actually pulls all of the > > records in the recordset and then only DISPLAYS one record (filter). > > That is useful in certain instances, however I would really like to > > just pull one specific record, having SQL Server do all the work of > > finding that record and handing it back. > > > > John W. Colby > > Colby Consulting > > www.ColbyConsulting.com > > > > -----Original Message----- > > From: dba-sqlserver-admin at databaseadvisors.com > > [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of Selina > > Iddon > > Sent: Tuesday, February 25, 2003 5:31 PM > > To: dba-sqlserver at databaseadvisors.com > > Subject: Re: [dba-SQLServer]Bound forms filtered on a control on the > > form > > > > > > Hi John > > I may be reading the question wrong, but would this help? > > > > Sub MyComboControl_AfterUpdate() > > Me.Filter = "FieldName = " & Me.MyComboControl > > Me.FilterOn = true > > End Sub > > > > Cheers > > Selina > > > > > > ---------------------------------------------------------------------- > > ------ > > ---- Selina Iddon selina at easydatabases.com.au Ph: 0414 225 265 Easy > > Access > > Databases > > ----- Original Message ----- > > From: "John W. Colby" > > To: "AccessD-SQLServer" > > Sent: Wednesday, February 26, 2003 7:53 AM > > Subject: [dba-SQLServer]Bound forms filtered on a control on the form > > > > > > > I have been following the thread on the report thing. The > > discussion has > > > focused (the ones I have read) on using XP, where there are actually > > > properties to do this. How do I do this in A2K? > > > > > > I have a form. I want to select a record in a combo box. Having > > selected > > > that record, I want to run an sproc, passing a parameter to filter > > the > > data > > > returned to only return the record selected in the combo box. > > > > > > How do I do that in A2K? > > > > > > John W. Colby > > > Colby Consulting > > > www.ColbyConsulting.com > > > > > > ---------------------------------------------------- > > > Is email taking over your day? Manage your time with eMailBoss. > > > Try it free! http://www.eMailBoss.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 > > > > > > > > > > ---------------------------------------------------- > > Is email taking over your day? Manage your time with eMailBoss. > > Try it free! http://www.eMailBoss.com > > > > ---------------------------------------------------- > > Is email taking over your day? Manage your time with eMailBoss. > > Try it free! http://www.eMailBoss.com > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > > > > > ---------------------------------------------------- > Is email taking over your day? Manage your time with eMailBoss. > Try it free! http://www.eMailBoss.com -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 4472 bytes Desc: not available URL: From prosoft6 at hotmail.com Wed Feb 26 10:29:50 2003 From: prosoft6 at hotmail.com (Julie Reardon-Taylor) Date: Wed, 26 Feb 2003 11:29:50 -0500 Subject: [dba-SQLServer]Sending parameters to a report Message-ID: Susan, I just wanted to thank you the assistance you provided. It's the little things that usually get me, syntax, for example. I ended up going with an oledb connection using views and stored procedures that referenced input parameters. The adp is now working very fast, and has replaced my Access 2000 .mdb which was using an odbc connection. I can't believe the difference in speed, and the users are very happy! Julie Reardon-Taylor PRO-SOFT OF NY, INC. www.pro-soft.net _________________________________________________________________ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus From artful at rogers.com Wed Feb 26 10:36:40 2003 From: artful at rogers.com (Arthur Fuller) Date: Wed, 26 Feb 2003 11:36:40 -0500 Subject: [dba-SQLServer]Restore from Command Line? In-Reply-To: Message-ID: <026201c2ddb5$3d80b760$8e01a8c0@Rock> Can I restore a database from the command line (i.e. without any user intervention)? The P&D wizard offers the option to execute any command once installation is finished. The CD will contain a zip of a database backup, and I want to restore it to a known name without any user intervention. TIA, Arthur -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 3712 bytes Desc: not available URL: From paul.hartland at fsmail.net Wed Feb 26 10:47:13 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 26 Feb 2003 16:47:13 +0000 Subject: [dba-SQLServer]More SQL Server 7 Stored Procedure help if possible Message-ID: <20030226164713.TRTX5116.fep06-svc.ttys.com@localhost> To all, If you read my first email regarding Stored Procedure's you will know that I am quite a novice at the moment. I have a table called tblAvailabilityAll which contains fields PayrollNo and an AvailabilityCode. The Availability codes are A,N,S,H and when an employee leaves, in the first instance we need to update A,N,S,H to 1,2,3,4 accordingly. Anyone have any idea how to do this within one Stored Procedure (or is it possible in a single Stored Procedure.....??? I would be grateful fr any sample code etc... Thanks in advance Paul Hartland __________________________________________________________________________ Freeserve AnyTime - Go online whenever you want for just ?6.99 a month for your first 3 months, that's HALF PRICE! And then it's just ?13.99 a month after that. For more information visit http://www.freeserve.com/time/ or call free on 0800 970 8890 From my.lists at verizon.net Wed Feb 26 11:00:22 2003 From: my.lists at verizon.net (Francisco H Tapia) Date: Wed, 26 Feb 2003 09:00:22 -0800 Subject: [dba-SQLServer]SQL Server 7 - Stored Procedure Help - Quite Urgent. References: <5A31F89EC4C79B49B5030FF2EF58E9D24EBBD1@ex02.eagle.usaa.com> Message-ID: <002401c2ddb8$8d65dfa0$b615010a@FHTAPIA> the purpose was to show how one has to be extremely careful with the IN statement as the first one deletes all the records because it doesn't explicitly evaluate that the au_id does not exists in the Publisher's table. Would you ever do this in real life? not on purpose, but you could make a typo only to find that the results of your SELECT/UPDATE/DELETE were all wrong. If you modify the first Select (from the examples I gave) to Publishers.au_id then it actually yields an error, likewise if you were to only run the statement SELECT au_id From Publishers... the point is this is a "side effect" of using the IN clause in which errors can crop up and the dba not even realize it, unlike a performance hit, where the results are visually apparent, this kind of side effect can go on undetected until results are questioned. -Francisco http://rcm.netfirms.com ----- Original Message ----- From: "Djabarov, Robert" To: Sent: Wednesday, February 26, 2003 6:54 AM Subject: RE: [dba-SQLServer]SQL Server 7 - Stored Procedure Help - Quite Urgent. : The "side effects" that I thought we are talking about here are performance and contingency...and you're talking about syntax errors? First of all, your first example in a sense deletes all records from TitleAuthor, because your IN clause actually selects AU_ID from TitleAuthor, not from Publishers, as it might seem (unfortunately, I don't see the purpose of this IN clause in this particular case at all). In fact, your IN clause will select AU_ID as many times as there are rows in Publishers... Would you ever consider doing it in real life? : : What I was talking about was the impact of IN/NOT IN/NOT EXISTS vs. EXISTS/LEFT OUTER JOIN. Since you started withy IN vs. EXISTS, here's the sample that you can run in QA and see the difference in performance for yourself: : : select * from authors where au_id in ( : select au_id from titleauthor) : go : select * from authors a where exists ( : select * from titleauthor t where a.au_id = t.au_id) : go : : Just turn Statistics Time on in your Connection Options. In mine I see 19ms delay in the first query vs. the second. : : ______________________________________________________ : Robert Djabarov : Certified MS SQL Server DBA : Certified MS SQL Server Programmer : Certified MS VB Programmer : ? (210) 913-3148 - phone : ( (210) 753-3148 - pager : : -----Original Message----- : From: Francisco H Tapia [mailto:my.lists at verizon.net] : Sent: Tuesday, February 25, 2003 6:11 PM : To: dba-sqlserver at databaseadvisors.com : Subject: Re: [dba-SQLServer]SQL Server 7 - Stored Procedure Help - Quite Urgent. : : NOT EXIST isn't exposed to the same side effects... Take the following for : an example... : : : BEGIN TRANSACTION : SELECT COUNT(*) FROM Titleauthor : DELETE Titleauthor : WHERE au_id IN ( SELECT au_id FROM Publishers) : SELECT COUNT(*) FROM Titleauthor : ROLLBACK : : however this statement dosent error out, true it's the EXISTS not the NOT : EXISTS but the side-effects are the same... : : BEGIN TRANSACTION : SELECT COUNT(*) FROM Titleauthor : DELETE Titleauthor : WHERE EXISTS(SELECT au_id FROM Publishers : WHERE Publishers.au_id = Titleauthor.au_id) : SELECT COUNT(*) FROM Titleauthor : ROLLBACK : : note that you now get the invalid column au_id with the EXISTS : statement...which is at it should be... the first IN statement doesn't give : this feedback, a workaround is to declare the au_id in the IN statement as : Publisher.au_id in order to cause it to explicilty resolve in which case : you'd get the error.. : : -Francisco : http://rcm.netfirms.com : ----- Original Message ----- : From: "Djabarov, Robert" : To: : Sent: Tuesday, February 25, 2003 12:19 PM : Subject: RE: [dba-SQLServer]SQL Server 7 - Stored Procedure Help - Quite : Urgent. : : : : NOT IN has the same side effects as NOT EXISTS. It can be easily : re-written as follows: : : : : insert into tableA (Payroll, JobDate, JobType) : : select B.Payroll, B.JobDate, B.JobType : : from tableB B left outer join ( : : select A.Payroll, A.JobDate, A.JobType : : from tableA A : : inner join tableB tb : : on A.Payroll = tb.Payroll : : AND A.Jobdate = tb.JobDate : : AND A.JobType = tb.JobType : : ) t on B.Payroll = t.Payroll : : and B.JobDate = t.JobDate : : and B.JobType = t.JobType : : where t.Payroll is null : : and t.JobDate is null : : and t.JobType is null : : : : : : ______________________________________________________ : : Robert Djabarov : : Certified MS SQL Server DBA : : Certified MS SQL Server Programmer : : Certified MS VB Programmer : : ? (210) 913-3148 - phone : : ( (210) 753-3148 - pager : : : : -----Original Message----- : : From: Francisco H Tapia [mailto:my.lists at verizon.net] : : Sent: Tuesday, February 25, 2003 10:36 AM : : To: dba-sqlserver at databaseadvisors.com; AccessD; : dba-VB at databaseadvisors.com : : Subject: Re: [dba-SQLServer]SQL Server 7 - Stored Procedure Help - Quite : Urgent. : : : : How about .... : : : : Insert into tableA (Payroll, jobdate, jobtype) : : Select Payroll, jobdate, jobtype : : From tableB AS B : : WHERE NOT EXISTS( Select Payroll, jobdate, jobtype : : From tableA AS A : : Where B.Payroll = A.Payroll : AND : : B.Jobdate = A.JobDate AND B.JobType = A.JobType) : : : : I could have used a NOT IN clause but then NOT IN can have some serious : side : : effects...In General the above statement will be evaluated by the engine : : where as a NOT IN could miss evaluating the B alias in the where clause : and : : cause it to report bad data, using Exists (or NOT EXISTS) usually yields : : faster performance and the assurance that it evaluates correctly. : : -Francisco : : http://rcm.netfirms.com : : ----- Original Message ----- : : From: : : To: ; ; : : : : Sent: Tuesday, February 25, 2003 1:42 AM : : Subject: [dba-SQLServer]SQL Server 7 - Stored Procedure Help - Quite : Urgent. : : : : : : : To all, : : : : : : Watch for Word Wrap............... : : : : : : Being quite a novice with Stored Procedures on SQL Server 7.0, I'm : looking : : for some pretty urgent help at the moment. I have two tables, lets say : : Table A & Table B. Table A is my master table, and Table B is a temporary : : table. Before Table be gets populated with any data, every existing : record : : is deleted so I start with a fresh table so to speak. Table B consists of : 3 : : fields PayrollNo, JobDate, JobType (these fields are also in the master : : table, but the master table is used to contain other consting information, : : which is entered at a later date). : : : : : : What I would like is a Stored Procedure which would Insert Table B : : contents into Table A, but making sure that I don't insert any duplicates : : into Table A (something like an unmatched query in access but with an : Insert : : also). i.e. : : : : : : Table A Table B : : : payroll jobdate jobtype id : payroll : : jobdate jobtype : : : 999001 01/01/01 0 1 999001 : : 01/01/01 0 : : : 999001 01/01/01 2 2 999001 : : 01/01/01 1 : : : 999002 01/01/01 2 3 999001 : : 01/01/01 2 : : : 4 999002 : : 01/01/01 0 : : : 5 999002 : : 01/01/01 1 : : : 6 999002 : : 01/01/01 2 : : : : : : So when I invoke the stored procedure, it would insert records 2, 4 and : 5 : : from Table B into Table A........Anyone any idea what I'm on about, if so : : can anybody please help....... : : : : : : Thanks in advance : : : : : : Paul Hartland : : : : : : : __________________________________________________________________________ : : : Freeserve AnyTime - Go online whenever you want for just ?6.99 a month : for : : : your first 3 months, that's HALF PRICE! And then it's just ?13.99 a : month : : : after that. : : : : : : For more information visit http://www.freeserve.com/time/ or call free : on : : : 0800 970 8890 : : : : : : : : : _______________________________________________ : : : dba-SQLServer mailing list : : : dba-SQLServer at databaseadvisors.com : : : http://databaseadvisors.com/mailman/listinfo/dba-sqlserver : : : http://www.databaseadvisors.com : : : : : : : : : _______________________________________________ : : dba-SQLServer mailing list : : dba-SQLServer at databaseadvisors.com : : http://databaseadvisors.com/mailman/listinfo/dba-sqlserver : : http://www.databaseadvisors.com : : : : : : : : _______________________________________________ : : dba-SQLServer mailing list : : dba-SQLServer at databaseadvisors.com : : http://databaseadvisors.com/mailman/listinfo/dba-sqlserver : : http://www.databaseadvisors.com : : : : : _______________________________________________ : dba-SQLServer mailing list : dba-SQLServer at databaseadvisors.com : http://databaseadvisors.com/mailman/listinfo/dba-sqlserver : http://www.databaseadvisors.com : : : : _______________________________________________ : dba-SQLServer mailing list : dba-SQLServer at databaseadvisors.com : http://databaseadvisors.com/mailman/listinfo/dba-sqlserver : http://www.databaseadvisors.com : From my.lists at verizon.net Wed Feb 26 11:18:19 2003 From: my.lists at verizon.net (Francisco H Tapia) Date: Wed, 26 Feb 2003 09:18:19 -0800 Subject: [dba-SQLServer]More SQL Server 7 Stored Procedure help if possible References: <20030226164713.TRTX5116.fep06-svc.ttys.com@localhost> Message-ID: <005801c2ddbb$0f228aa0$b615010a@FHTAPIA> : Anyone have any idea how to do this within one Stored Procedure (or is it possible in a single Stored Procedure.....??? Yes ;o) : I would be grateful fr any sample code etc... awright, but only cuz you'd be grateful ;o), [Wednesday... and I need my SOF (soldier of fortune II) kick.] I'm going to ASSuME that the payroll is the identity key for this table, or the identifying key for this table... CREATE PROCEDURE stp_UpdateAvailability (@PayrollNo as Int) AS UPDATE tblAvailabilityAll SET Availability Code = CASE AvailabilityCode WHEN A THEN 1 WHEN N THEN 2 WHEN S THEN 3 WHEN H THEN 4 ELSE AvailabilityCode --othewise just leave as is. FROM tblAvailabilityAll Where PayrollNo = @PayrollNo AND IsNumeric(AvailabilityCode) = 0 You mentioned that you are a novice.... and perhaps you know this.. but I'll say it anyway... **NEVER RUN TEST PROCEDURES ON A PRODUCTION SERVER!!!, ALWAYS USE A TEST SERVER** the license for a developer copy of Sql is about $500 so you can install SQL Server on your desktop, this will help you out a lot in that you can practice your backup/restore procedures and double-check your backups. -Francisco http://rcm.netfirms.com ----- Original Message ----- From: To: ; ; Sent: Wednesday, February 26, 2003 8:47 AM Subject: [dba-SQLServer]More SQL Server 7 Stored Procedure help if possible : To all, : : If you read my first email regarding Stored Procedure's you will know that I am quite a novice at the moment. I have a table called tblAvailabilityAll which contains fields PayrollNo and an AvailabilityCode. The Availability codes are A,N,S,H and when an employee leaves, in the first instance we need to update A,N,S,H to 1,2,3,4 accordingly. : : Anyone have any idea how to do this within one Stored Procedure (or is it possible in a single Stored Procedure.....??? : : I would be grateful fr any sample code etc... : : Thanks in advance : : Paul Hartland From Robert.Djabarov at usaa.com Wed Feb 26 11:22:01 2003 From: Robert.Djabarov at usaa.com (Djabarov, Robert) Date: Wed, 26 Feb 2003 11:22:01 -0600 Subject: [dba-SQLServer]Restore from Command Line? Message-ID: <5A31F89EC4C79B49B5030FF2EF58E9D202DABE0C@ex02.eagle.usaa.com> bol ______________________________________________________ Robert Djabarov Certified MS SQL Server DBA Certified MS SQL Server Programmer Certified MS VB Programmer * (210) 913-3148 - phone * (210) 753-3148 - pager <*************************************************************************************************> -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Wednesday, February 26, 2003 10:37 AM To: dba-sqlserver at databaseadvisors.com Subject: [dba-SQLServer]Restore from Command Line? Can I restore a database from the command line (i.e. without any user intervention)? The P&D wizard offers the option to execute any command once installation is finished. The CD will contain a zip of a database backup, and I want to restore it to a known name without any user intervention. TIA, Arthur From Robert.Djabarov at usaa.com Wed Feb 26 11:26:09 2003 From: Robert.Djabarov at usaa.com (Djabarov, Robert) Date: Wed, 26 Feb 2003 11:26:09 -0600 Subject: [dba-SQLServer]SQL Server 7 - Stored Procedure Help - Quite Urgent. Message-ID: <5A31F89EC4C79B49B5030FF2EF58E9D202DABE0D@ex02.eagle.usaa.com> Hmmmmm...whatever ______________________________________________________ Robert Djabarov Certified MS SQL Server DBA Certified MS SQL Server Programmer Certified MS VB Programmer ? (210) 913-3148 - phone ( (210) 753-3148 - pager -----Original Message----- From: Francisco H Tapia [mailto:my.lists at verizon.net] Sent: Wednesday, February 26, 2003 11:00 AM To: dba-sqlserver at databaseadvisors.com Subject: Re: [dba-SQLServer]SQL Server 7 - Stored Procedure Help - Quite Urgent. the purpose was to show how one has to be extremely careful with the IN statement as the first one deletes all the records because it doesn't explicitly evaluate that the au_id does not exists in the Publisher's table. Would you ever do this in real life? not on purpose, but you could make a typo only to find that the results of your SELECT/UPDATE/DELETE were all wrong. If you modify the first Select (from the examples I gave) to Publishers.au_id then it actually yields an error, likewise if you were to only run the statement SELECT au_id From Publishers... the point is this is a "side effect" of using the IN clause in which errors can crop up and the dba not even realize it, unlike a performance hit, where the results are visually apparent, this kind of side effect can go on undetected until results are questioned. -Francisco http://rcm.netfirms.com ----- Original Message ----- From: "Djabarov, Robert" To: Sent: Wednesday, February 26, 2003 6:54 AM Subject: RE: [dba-SQLServer]SQL Server 7 - Stored Procedure Help - Quite Urgent. : The "side effects" that I thought we are talking about here are performance and contingency...and you're talking about syntax errors? First of all, your first example in a sense deletes all records from TitleAuthor, because your IN clause actually selects AU_ID from TitleAuthor, not from Publishers, as it might seem (unfortunately, I don't see the purpose of this IN clause in this particular case at all). In fact, your IN clause will select AU_ID as many times as there are rows in Publishers... Would you ever consider doing it in real life? : : What I was talking about was the impact of IN/NOT IN/NOT EXISTS vs. EXISTS/LEFT OUTER JOIN. Since you started withy IN vs. EXISTS, here's the sample that you can run in QA and see the difference in performance for yourself: : : select * from authors where au_id in ( : select au_id from titleauthor) : go : select * from authors a where exists ( : select * from titleauthor t where a.au_id = t.au_id) : go : : Just turn Statistics Time on in your Connection Options. In mine I see 19ms delay in the first query vs. the second. : : ______________________________________________________ : Robert Djabarov : Certified MS SQL Server DBA : Certified MS SQL Server Programmer : Certified MS VB Programmer : ? (210) 913-3148 - phone : ( (210) 753-3148 - pager : : -----Original Message----- : From: Francisco H Tapia [mailto:my.lists at verizon.net] : Sent: Tuesday, February 25, 2003 6:11 PM : To: dba-sqlserver at databaseadvisors.com : Subject: Re: [dba-SQLServer]SQL Server 7 - Stored Procedure Help - Quite Urgent. : : NOT EXIST isn't exposed to the same side effects... Take the following for : an example... : : : BEGIN TRANSACTION : SELECT COUNT(*) FROM Titleauthor : DELETE Titleauthor : WHERE au_id IN ( SELECT au_id FROM Publishers) : SELECT COUNT(*) FROM Titleauthor : ROLLBACK : : however this statement dosent error out, true it's the EXISTS not the NOT : EXISTS but the side-effects are the same... : : BEGIN TRANSACTION : SELECT COUNT(*) FROM Titleauthor : DELETE Titleauthor : WHERE EXISTS(SELECT au_id FROM Publishers : WHERE Publishers.au_id = Titleauthor.au_id) : SELECT COUNT(*) FROM Titleauthor : ROLLBACK : : note that you now get the invalid column au_id with the EXISTS : statement...which is at it should be... the first IN statement doesn't give : this feedback, a workaround is to declare the au_id in the IN statement as : Publisher.au_id in order to cause it to explicilty resolve in which case : you'd get the error.. : : -Francisco : http://rcm.netfirms.com : ----- Original Message ----- : From: "Djabarov, Robert" : To: : Sent: Tuesday, February 25, 2003 12:19 PM : Subject: RE: [dba-SQLServer]SQL Server 7 - Stored Procedure Help - Quite : Urgent. : : : : NOT IN has the same side effects as NOT EXISTS. It can be easily : re-written as follows: : : : : insert into tableA (Payroll, JobDate, JobType) : : select B.Payroll, B.JobDate, B.JobType : : from tableB B left outer join ( : : select A.Payroll, A.JobDate, A.JobType : : from tableA A : : inner join tableB tb : : on A.Payroll = tb.Payroll : : AND A.Jobdate = tb.JobDate : : AND A.JobType = tb.JobType : : ) t on B.Payroll = t.Payroll : : and B.JobDate = t.JobDate : : and B.JobType = t.JobType : : where t.Payroll is null : : and t.JobDate is null : : and t.JobType is null : : : : : : ______________________________________________________ : : Robert Djabarov : : Certified MS SQL Server DBA : : Certified MS SQL Server Programmer : : Certified MS VB Programmer : : ? (210) 913-3148 - phone : : ( (210) 753-3148 - pager : : : : -----Original Message----- : : From: Francisco H Tapia [mailto:my.lists at verizon.net] : : Sent: Tuesday, February 25, 2003 10:36 AM : : To: dba-sqlserver at databaseadvisors.com; AccessD; : dba-VB at databaseadvisors.com : : Subject: Re: [dba-SQLServer]SQL Server 7 - Stored Procedure Help - Quite : Urgent. : : : : How about .... : : : : Insert into tableA (Payroll, jobdate, jobtype) : : Select Payroll, jobdate, jobtype : : From tableB AS B : : WHERE NOT EXISTS( Select Payroll, jobdate, jobtype : : From tableA AS A : : Where B.Payroll = A.Payroll : AND : : B.Jobdate = A.JobDate AND B.JobType = A.JobType) : : : : I could have used a NOT IN clause but then NOT IN can have some serious : side : : effects...In General the above statement will be evaluated by the engine : : where as a NOT IN could miss evaluating the B alias in the where clause : and : : cause it to report bad data, using Exists (or NOT EXISTS) usually yields : : faster performance and the assurance that it evaluates correctly. : : -Francisco : : http://rcm.netfirms.com : : ----- Original Message ----- : : From: : : To: ; ; : : : : Sent: Tuesday, February 25, 2003 1:42 AM : : Subject: [dba-SQLServer]SQL Server 7 - Stored Procedure Help - Quite : Urgent. : : : : : : : To all, : : : : : : Watch for Word Wrap............... : : : : : : Being quite a novice with Stored Procedures on SQL Server 7.0, I'm : looking : : for some pretty urgent help at the moment. I have two tables, lets say : : Table A & Table B. Table A is my master table, and Table B is a temporary : : table. Before Table be gets populated with any data, every existing : record : : is deleted so I start with a fresh table so to speak. Table B consists of : 3 : : fields PayrollNo, JobDate, JobType (these fields are also in the master : : table, but the master table is used to contain other consting information, : : which is entered at a later date). : : : : : : What I would like is a Stored Procedure which would Insert Table B : : contents into Table A, but making sure that I don't insert any duplicates : : into Table A (something like an unmatched query in access but with an : Insert : : also). i.e. : : : : : : Table A Table B : : : payroll jobdate jobtype id : payroll : : jobdate jobtype : : : 999001 01/01/01 0 1 999001 : : 01/01/01 0 : : : 999001 01/01/01 2 2 999001 : : 01/01/01 1 : : : 999002 01/01/01 2 3 999001 : : 01/01/01 2 : : : 4 999002 : : 01/01/01 0 : : : 5 999002 : : 01/01/01 1 : : : 6 999002 : : 01/01/01 2 : : : : : : So when I invoke the stored procedure, it would insert records 2, 4 and : 5 : : from Table B into Table A........Anyone any idea what I'm on about, if so : : can anybody please help....... : : : : : : Thanks in advance : : : : : : Paul Hartland : : : : : : : __________________________________________________________________________ : : : Freeserve AnyTime - Go online whenever you want for just ?6.99 a month : for : : : your first 3 months, that's HALF PRICE! And then it's just ?13.99 a : month : : : after that. : : : : : : For more information visit http://www.freeserve.com/time/ or call free : on : : : 0800 970 8890 : : : : : : : : : _______________________________________________ : : : dba-SQLServer mailing list : : : dba-SQLServer at databaseadvisors.com : : : http://databaseadvisors.com/mailman/listinfo/dba-sqlserver : : : http://www.databaseadvisors.com : : : : : : : : : _______________________________________________ : : dba-SQLServer mailing list : : dba-SQLServer at databaseadvisors.com : : http://databaseadvisors.com/mailman/listinfo/dba-sqlserver : : http://www.databaseadvisors.com : : : : : : : : _______________________________________________ : : dba-SQLServer mailing list : : dba-SQLServer at databaseadvisors.com : : http://databaseadvisors.com/mailman/listinfo/dba-sqlserver : : http://www.databaseadvisors.com : : : : : _______________________________________________ : dba-SQLServer mailing list : dba-SQLServer at databaseadvisors.com : http://databaseadvisors.com/mailman/listinfo/dba-sqlserver : http://www.databaseadvisors.com : : : : _______________________________________________ : dba-SQLServer mailing list : dba-SQLServer at databaseadvisors.com : http://databaseadvisors.com/mailman/listinfo/dba-sqlserver : http://www.databaseadvisors.com : _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From szeller at cce.umn.edu Wed Feb 26 11:45:32 2003 From: szeller at cce.umn.edu (Susan Zeller) Date: Wed, 26 Feb 2003 11:45:32 -0600 Subject: [dba-SQLServer]Bound forms filtered on a control on the form Message-ID: John, For the combo boxes, you can just put after_update of cboMyCombo1. strMyParameter = me.cboMyCombo1.value Me.cboMyCombo2.rowsource = "Exec dbo.MySproc " & strMyParameter HTH. --Susan > -----Original Message----- > From: dba-sqlserver-admin at databaseadvisors.com > [mailto:dba-sqlserver-admin at databaseadvisors.com] On Behalf Of John > W. Colby > Sent: Wednesday, February 26, 2003 9:28 AM > To: dba-sqlserver at databaseadvisors.com > Subject: RE: [dba-SQLServer]Bound forms filtered on a control on > the form > > Well, I hit send too soon. I see it as a property of the me object in > code. That solves my problem I guess. It doesn't appear to be > available at design time but I can program it no problem. > > Next question, how do I do the same thing for a combo? If a combo is > filtered on another combo, the second combo is based on a stored > procedure that has an input parameter so that it can filter down based > on something passed in. The "something passed in" is the value of > another control. > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: dba-sqlserver-admin at databaseadvisors.com > [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of Susan > Zeller > Sent: Wednesday, February 26, 2003 10:12 AM > To: dba-sqlserver at databaseadvisors.com > Subject: RE: [dba-SQLServer]Bound forms filtered on a control on the > form > > > Input Parameters is a property of the form, even in A2K and you can > set > it on the form or in code with me.inputparameters = ..... Don't have > much more to offer on this as I've been working mostly with unbound > forms since I moved to SQL/Adp's. > > --Susan > > > -----Original Message----- > > From: dba-sqlserver-admin at databaseadvisors.com > > [mailto:dba-sqlserver-admin at databaseadvisors.com] On Behalf Of John > > W. Colby > > Sent: Wednesday, February 26, 2003 8:57 AM > > To: dba-sqlserver at databaseadvisors.com > > Subject: RE: [dba-SQLServer]Bound forms filtered on a control on > > the form > > > > >I think there's some misunderstanding here (could be on my part J). > > Does your form have, say, a combo or list that is the form's > > navigation scheme? Such that you select a row in the list and then > the > > form navigates to that record? > > > > Precisely. this is just one scenario that I actually need to handle > > in my databases, to port them to ADPs. > > > > >In the InputParameters property, write "@PK = " & Me.cboName. > > > > I guess what I don't understand is that the sproc looks like a query > > from inside the ADP. The form is bound to the sproc (query), but > how > > do I feed the parameter to the sproc? Where is the "Input > Parameters > > property"? What is it a property of? Do I assign the sproc to an > ado > > object which has such a property, then assign that to the form's > > recordset property? If I do that, is the form R/W? If that is what > I > > do (and it must be R/W to be useful) can I see some example code? > > > > John W. Colby > > Colby Consulting > > www.ColbyConsulting.com > > > > -----Original Message----- > > From: dba-sqlserver-admin at databaseadvisors.com > > [mailto:dba-sqlserver-admin at databaseadvisors.com] > > Sent: Wednesday, February 26, 2003 8:06 AM > > To: dba-sqlserver at databaseadvisors.com > > Subject: RE: [dba-SQLServer]Bound forms filtered on a control on > > the form > > > > I think there's some misunderstanding here (could be on my part J). > > Does your form have, say, a combo or list that is the form's > > navigation scheme? Such that you select a row in the list and then > the > > form navigates to that record? Or are you passing the selection to > > another form that you want to filter? > > If it's the same form, you'll need: > > a) a view or sproc that populates the list with PK and description; > > b) a sproc that drives the form, and that accepts an int parameter > > @PK. Within the sproc, default the parameter @PK to zero. > > > > The code for the sproc should resemble this: > > CREATE PROC myProc > > ( @PK integer = 0) > > AS > > SELECT * FROM myTables > > WHERE (PK = @PK) > > > > In the InputParameters property, write "@PK = " & Me.cboName. In the > > AfterUpdate event of cboName, requery the form. > > It's dead simple, and leaves all the data you don't want on the > server > > where it belongs. > > HTH, > > Arthur > > > > -----Original Message----- > > From: dba-sqlserver-admin at databaseadvisors.com > > [mailto:dba-sqlserver-admin at databaseadvisors.com] > > Sent: February 25, 2003 7:08 PM > > To: dba-sqlserver at databaseadvisors.com > > Subject: RE: [dba-SQLServer]Bound forms filtered on a control on the > > form > > > > Hmmm... OK. My understanding is that this actually pulls all of the > > records in the recordset and then only DISPLAYS one record (filter). > > That is useful in certain instances, however I would really like to > > just pull one specific record, having SQL Server do all the work of > > finding that record and handing it back. > > > > John W. Colby > > Colby Consulting > > www.ColbyConsulting.com > > > > -----Original Message----- > > From: dba-sqlserver-admin at databaseadvisors.com > > [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of Selina > > Iddon > > Sent: Tuesday, February 25, 2003 5:31 PM > > To: dba-sqlserver at databaseadvisors.com > > Subject: Re: [dba-SQLServer]Bound forms filtered on a control on the > > form > > > > > > Hi John > > I may be reading the question wrong, but would this help? > > > > Sub MyComboControl_AfterUpdate() > > Me.Filter = "FieldName = " & Me.MyComboControl > > Me.FilterOn = true > > End Sub > > > > Cheers > > Selina > > > > > > > ---------------------------------------------------------------------- > > ------ > > ---- Selina Iddon selina at easydatabases.com.au Ph: 0414 225 265 Easy > > Access > > Databases > > ----- Original Message ----- > > From: "John W. Colby" > > To: "AccessD-SQLServer" > > Sent: Wednesday, February 26, 2003 7:53 AM > > Subject: [dba-SQLServer]Bound forms filtered on a control on the > form > > > > > > > I have been following the thread on the report thing. The > > discussion has > > > focused (the ones I have read) on using XP, where there are > actually > > > properties to do this. How do I do this in A2K? > > > > > > I have a form. I want to select a record in a combo box. Having > > selected > > > that record, I want to run an sproc, passing a parameter to filter > > the > > data > > > returned to only return the record selected in the combo box. > > > > > > How do I do that in A2K? > > > > > > John W. Colby > > > Colby Consulting > > > www.ColbyConsulting.com > > > > > > ---------------------------------------------------- > > > Is email taking over your day? Manage your time with eMailBoss. > > > Try it free! http://www.eMailBoss.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 > > > > > > > > > > ---------------------------------------------------- > > Is email taking over your day? Manage your time with eMailBoss. > > Try it free! http://www.eMailBoss.com > > > > ---------------------------------------------------- > > Is email taking over your day? Manage your time with eMailBoss. > > Try it free! http://www.eMailBoss.com > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > > > > > ---------------------------------------------------- > Is email taking over your day? Manage your time with eMailBoss. > Try it free! http://www.eMailBoss.com From szeller at cce.umn.edu Wed Feb 26 11:46:48 2003 From: szeller at cce.umn.edu (Susan Zeller) Date: Wed, 26 Feb 2003 11:46:48 -0600 Subject: [dba-SQLServer]Sending parameters to a report Message-ID: What goes around, comes around. Arthur did the same for me about a year ago so I'm thrilled to be able to return the favor to the larger list. Thanks again, Arthur! --Susan -----Original Message----- From: Julie Reardon-Taylor [mailto:prosoft6 at hotmail.com] Sent: Wednesday, February 26, 2003 10:30 AM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]Sending parameters to a report Susan, I just wanted to thank you the assistance you provided. It's the little things that usually get me, syntax, for example. I ended up going with an oledb connection using views and stored procedures that referenced input parameters. The adp is now working very fast, and has replaced my Access 2000 .mdb which was using an odbc connection. I can't believe the difference in speed, and the users are very happy! Julie Reardon-Taylor PRO-SOFT OF NY, INC. www.pro-soft.net _________________________________________________________________ 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 Robert.Djabarov at usaa.com Wed Feb 26 11:51:33 2003 From: Robert.Djabarov at usaa.com (Djabarov, Robert) Date: Wed, 26 Feb 2003 11:51:33 -0600 Subject: [dba-SQLServer]More SQL Server 7 Stored Procedure help if possible Message-ID: <5A31F89EC4C79B49B5030FF2EF58E9D24EBBD2@ex02.eagle.usaa.com> Nice...But if Paul creates a table that contains Availability codes, then it will be much cleaner: create table tblAvailabilityCodes ( CodeID int identity(1,1) not null primary key nonclustered, CodeValueChar char(1) not null, CodeValueNum char(1) not null, Description varchar(255) null) go create table tblAvailabilityAll ( PayrollNo int not null, AvailabilityCode char(1) not null) go create clustered index idxCodeValue on tblAvailabilityCodes (CodeValueChar) go insert tblAvailabilityCodes (CodeValueChar, CodeValueNum) values ('A', '1') insert tblAvailabilityCodes (CodeValueChar, CodeValueNum) values ('N', '2') insert tblAvailabilityCodes (CodeValueChar, CodeValueNum) values ('S', '3') insert tblAvailabilityCodes (CodeValueChar, CodeValueNum) values ('H', '4') go create proc spU_tblAvailabilityAll ( @PayrollNo int ) -- Same assumption that PayrollNo is integer field as declare @RetVal int, @error int begin tran update a set AvailabilityCode = c.CodeValueNum from tblAvailabilityAll a (nolock) inner join tblAvailabilityCodes c (nolock) on a.AvailabilityCode = c.CodeValueChar where a.PayrollNo = @PayrollNo select @RetVal=@@rowcount, @error=@@error if @error != 0 begin raiserror ('Failed to update!', 15, 1) rollback tran return (1) end commit tran select RowsAffected = @RetVal return (0) go Besides, Francisco's version will not compile...sorry :) ______________________________________________________ Robert Djabarov Certified MS SQL Server DBA Certified MS SQL Server Programmer Certified MS VB Programmer ? (210) 913-3148 - phone ( (210) 753-3148 - pager -----Original Message----- From: Francisco H Tapia [mailto:my.lists at verizon.net] Sent: Wednesday, February 26, 2003 11:18 AM To: dba-sqlserver at databaseadvisors.com Subject: Re: [dba-SQLServer]More SQL Server 7 Stored Procedure help if possible : Anyone have any idea how to do this within one Stored Procedure (or is it possible in a single Stored Procedure.....??? Yes ;o) : I would be grateful fr any sample code etc... awright, but only cuz you'd be grateful ;o), [Wednesday... and I need my SOF (soldier of fortune II) kick.] I'm going to ASSuME that the payroll is the identity key for this table, or the identifying key for this table... CREATE PROCEDURE stp_UpdateAvailability (@PayrollNo as Int) AS UPDATE tblAvailabilityAll SET Availability Code = CASE AvailabilityCode WHEN A THEN 1 WHEN N THEN 2 WHEN S THEN 3 WHEN H THEN 4 ELSE AvailabilityCode --othewise just leave as is. FROM tblAvailabilityAll Where PayrollNo = @PayrollNo AND IsNumeric(AvailabilityCode) = 0 You mentioned that you are a novice.... and perhaps you know this.. but I'll say it anyway... **NEVER RUN TEST PROCEDURES ON A PRODUCTION SERVER!!!, ALWAYS USE A TEST SERVER** the license for a developer copy of Sql is about $500 so you can install SQL Server on your desktop, this will help you out a lot in that you can practice your backup/restore procedures and double-check your backups. -Francisco http://rcm.netfirms.com ----- Original Message ----- From: To: ; ; Sent: Wednesday, February 26, 2003 8:47 AM Subject: [dba-SQLServer]More SQL Server 7 Stored Procedure help if possible : To all, : : If you read my first email regarding Stored Procedure's you will know that I am quite a novice at the moment. I have a table called tblAvailabilityAll which contains fields PayrollNo and an AvailabilityCode. The Availability codes are A,N,S,H and when an employee leaves, in the first instance we need to update A,N,S,H to 1,2,3,4 accordingly. : : Anyone have any idea how to do this within one Stored Procedure (or is it possible in a single Stored Procedure.....??? : : I would be grateful fr any sample code etc... : : Thanks in advance : : Paul Hartland _______________________________________________ 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 Feb 26 12:17:32 2003 From: my.lists at verizon.net (Francisco H Tapia) Date: Wed, 26 Feb 2003 10:17:32 -0800 Subject: [dba-SQLServer]More SQL Server 7 Stored Procedure help if possible References: <5A31F89EC4C79B49B5030FF2EF58E9D24EBBD2@ex02.eagle.usaa.com> Message-ID: <008601c2ddc3$54e35120$b615010a@FHTAPIA> Right-o it here is here it is again w/o syntax errors..the previous one was OTOMH CREATE PROCEDURE stp_UpdateAvailability (@PayrollNo as Int) AS UPDATE tblAvailabilityAll SET AvailabilityCode = CASE AvailabilityCode WHEN A THEN 1 WHEN N THEN 2 WHEN S THEN 3 WHEN H THEN 4 ELSE AvailabilityCode --othewise just leave as is. END FROM tblAvailabilityAll Where PayrollNo = @PayrollNo AND IsNumeric(AvailabilityCode) = 0 BTW, I like the use of Inner joins to weed out the Numeric based Availability codes. I think all in all your version runs faster as Joins are much quicker than breaking down through a case statement. Also, I've never seen a use of the nolock hint, what kind of performance boost do you get when using it? average? -Francisco http://rcm.netfirms.com ----- Original Message ----- From: "Djabarov, Robert" To: Sent: Wednesday, February 26, 2003 9:51 AM Subject: RE: [dba-SQLServer]More SQL Server 7 Stored Procedure help if possible : Nice...But if Paul creates a table that contains Availability codes, then it will be much cleaner: : : create table tblAvailabilityCodes ( : CodeID int identity(1,1) not null primary key nonclustered, : CodeValueChar char(1) not null, : CodeValueNum char(1) not null, : Description varchar(255) null) : go : create table tblAvailabilityAll ( : PayrollNo int not null, : AvailabilityCode char(1) not null) : go : create clustered index idxCodeValue on tblAvailabilityCodes (CodeValueChar) : go : insert tblAvailabilityCodes (CodeValueChar, CodeValueNum) values ('A', '1') : insert tblAvailabilityCodes (CodeValueChar, CodeValueNum) values ('N', '2') : insert tblAvailabilityCodes (CodeValueChar, CodeValueNum) values ('S', '3') : insert tblAvailabilityCodes (CodeValueChar, CodeValueNum) values ('H', '4') : go : create proc spU_tblAvailabilityAll ( : @PayrollNo int ) -- Same assumption that PayrollNo is integer field : as : declare @RetVal int, @error int : begin tran : update a set AvailabilityCode = c.CodeValueNum : from tblAvailabilityAll a (nolock) : inner join tblAvailabilityCodes c (nolock) : on a.AvailabilityCode = c.CodeValueChar : where a.PayrollNo = @PayrollNo : select @RetVal=@@rowcount, @error=@@error : if @error != 0 begin : raiserror ('Failed to update!', 15, 1) : rollback tran : return (1) : end : commit tran : select RowsAffected = @RetVal : return (0) : go : : Besides, Francisco's version will not compile...sorry :) : : ______________________________________________________ : Robert Djabarov : Certified MS SQL Server DBA : Certified MS SQL Server Programmer : Certified MS VB Programmer : ? (210) 913-3148 - phone : ( (210) 753-3148 - pager : : -----Original Message----- : From: Francisco H Tapia [mailto:my.lists at verizon.net] : Sent: Wednesday, February 26, 2003 11:18 AM : To: dba-sqlserver at databaseadvisors.com : Subject: Re: [dba-SQLServer]More SQL Server 7 Stored Procedure help if possible : : : Anyone have any idea how to do this within one Stored Procedure (or is it : possible in a single Stored Procedure.....??? : Yes ;o) : : : I would be grateful fr any sample code etc... : awright, but only cuz you'd be grateful ;o), [Wednesday... and I need my SOF : (soldier of fortune II) kick.] : I'm going to ASSuME that the payroll is the identity key for this table, or : the identifying key for this table... : : CREATE PROCEDURE stp_UpdateAvailability (@PayrollNo as Int) AS : UPDATE tblAvailabilityAll : SET Availability Code = CASE AvailabilityCode : WHEN A THEN 1 : WHEN N THEN 2 : WHEN S THEN 3 : WHEN H THEN 4 : ELSE AvailabilityCode --othewise : just leave as is. : FROM tblAvailabilityAll : Where PayrollNo = @PayrollNo AND IsNumeric(AvailabilityCode) = 0 : : You mentioned that you are a novice.... and perhaps you know this.. but I'll : say it anyway... : **NEVER RUN TEST PROCEDURES ON A PRODUCTION SERVER!!!, ALWAYS USE A TEST : SERVER** : the license for a developer copy of Sql is about $500 so you can install SQL : Server on your desktop, this will help you out a lot in that you can : practice your backup/restore procedures and double-check your backups. : -Francisco : http://rcm.netfirms.com : ----- Original Message ----- : From: : To: ; ; : : Sent: Wednesday, February 26, 2003 8:47 AM : Subject: [dba-SQLServer]More SQL Server 7 Stored Procedure help if possible : : : : To all, : : : : If you read my first email regarding Stored Procedure's you will know that : I am quite a novice at the moment. I have a table called tblAvailabilityAll : which contains fields PayrollNo and an AvailabilityCode. The Availability : codes are A,N,S,H and when an employee leaves, in the first instance we need : to update A,N,S,H to 1,2,3,4 accordingly. : : : : Anyone have any idea how to do this within one Stored Procedure (or is it : possible in a single Stored Procedure.....??? : : : : I would be grateful fr any sample code etc... : : : : Thanks in advance : : : : Paul Hartland : : : _______________________________________________ : 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 Feb 26 13:57:06 2003 From: Robert.Djabarov at usaa.com (Djabarov, Robert) Date: Wed, 26 Feb 2003 13:57:06 -0600 Subject: [dba-SQLServer]More SQL Server 7 Stored Procedure help if possible Message-ID: <5A31F89EC4C79B49B5030FF2EF58E9D24EBBD3@ex02.eagle.usaa.com> Francisco, It's still failing on compile, besides you don't really need a FROM clause because you're not joining anything. NOLOCK is used to resolve concurrency issues in multi-user environment. ______________________________________________________ Robert Djabarov Certified MS SQL Server DBA Certified MS SQL Server Programmer Certified MS VB Programmer ? (210) 913-3148 - phone ( (210) 753-3148 - pager -----Original Message----- From: Francisco H Tapia [mailto:my.lists at verizon.net] Sent: Wednesday, February 26, 2003 12:18 PM To: dba-sqlserver at databaseadvisors.com Subject: Re: [dba-SQLServer]More SQL Server 7 Stored Procedure help if possible Right-o it here is here it is again w/o syntax errors..the previous one was OTOMH CREATE PROCEDURE stp_UpdateAvailability (@PayrollNo as Int) AS UPDATE tblAvailabilityAll SET AvailabilityCode = CASE AvailabilityCode WHEN A THEN 1 WHEN N THEN 2 WHEN S THEN 3 WHEN H THEN 4 ELSE AvailabilityCode --othewise just leave as is. END FROM tblAvailabilityAll Where PayrollNo = @PayrollNo AND IsNumeric(AvailabilityCode) = 0 BTW, I like the use of Inner joins to weed out the Numeric based Availability codes. I think all in all your version runs faster as Joins are much quicker than breaking down through a case statement. Also, I've never seen a use of the nolock hint, what kind of performance boost do you get when using it? average? -Francisco http://rcm.netfirms.com ----- Original Message ----- From: "Djabarov, Robert" To: Sent: Wednesday, February 26, 2003 9:51 AM Subject: RE: [dba-SQLServer]More SQL Server 7 Stored Procedure help if possible : Nice...But if Paul creates a table that contains Availability codes, then it will be much cleaner: : : create table tblAvailabilityCodes ( : CodeID int identity(1,1) not null primary key nonclustered, : CodeValueChar char(1) not null, : CodeValueNum char(1) not null, : Description varchar(255) null) : go : create table tblAvailabilityAll ( : PayrollNo int not null, : AvailabilityCode char(1) not null) : go : create clustered index idxCodeValue on tblAvailabilityCodes (CodeValueChar) : go : insert tblAvailabilityCodes (CodeValueChar, CodeValueNum) values ('A', '1') : insert tblAvailabilityCodes (CodeValueChar, CodeValueNum) values ('N', '2') : insert tblAvailabilityCodes (CodeValueChar, CodeValueNum) values ('S', '3') : insert tblAvailabilityCodes (CodeValueChar, CodeValueNum) values ('H', '4') : go : create proc spU_tblAvailabilityAll ( : @PayrollNo int ) -- Same assumption that PayrollNo is integer field : as : declare @RetVal int, @error int : begin tran : update a set AvailabilityCode = c.CodeValueNum : from tblAvailabilityAll a (nolock) : inner join tblAvailabilityCodes c (nolock) : on a.AvailabilityCode = c.CodeValueChar : where a.PayrollNo = @PayrollNo : select @RetVal=@@rowcount, @error=@@error : if @error != 0 begin : raiserror ('Failed to update!', 15, 1) : rollback tran : return (1) : end : commit tran : select RowsAffected = @RetVal : return (0) : go : : Besides, Francisco's version will not compile...sorry :) : : ______________________________________________________ : Robert Djabarov : Certified MS SQL Server DBA : Certified MS SQL Server Programmer : Certified MS VB Programmer : ? (210) 913-3148 - phone : ( (210) 753-3148 - pager : : -----Original Message----- : From: Francisco H Tapia [mailto:my.lists at verizon.net] : Sent: Wednesday, February 26, 2003 11:18 AM : To: dba-sqlserver at databaseadvisors.com : Subject: Re: [dba-SQLServer]More SQL Server 7 Stored Procedure help if possible : : : Anyone have any idea how to do this within one Stored Procedure (or is it : possible in a single Stored Procedure.....??? : Yes ;o) : : : I would be grateful fr any sample code etc... : awright, but only cuz you'd be grateful ;o), [Wednesday... and I need my SOF : (soldier of fortune II) kick.] : I'm going to ASSuME that the payroll is the identity key for this table, or : the identifying key for this table... : : CREATE PROCEDURE stp_UpdateAvailability (@PayrollNo as Int) AS : UPDATE tblAvailabilityAll : SET Availability Code = CASE AvailabilityCode : WHEN A THEN 1 : WHEN N THEN 2 : WHEN S THEN 3 : WHEN H THEN 4 : ELSE AvailabilityCode --othewise : just leave as is. : FROM tblAvailabilityAll : Where PayrollNo = @PayrollNo AND IsNumeric(AvailabilityCode) = 0 : : You mentioned that you are a novice.... and perhaps you know this.. but I'll : say it anyway... : **NEVER RUN TEST PROCEDURES ON A PRODUCTION SERVER!!!, ALWAYS USE A TEST : SERVER** : the license for a developer copy of Sql is about $500 so you can install SQL : Server on your desktop, this will help you out a lot in that you can : practice your backup/restore procedures and double-check your backups. : -Francisco : http://rcm.netfirms.com : ----- Original Message ----- : From: : To: ; ; : : Sent: Wednesday, February 26, 2003 8:47 AM : Subject: [dba-SQLServer]More SQL Server 7 Stored Procedure help if possible : : : : To all, : : : : If you read my first email regarding Stored Procedure's you will know that : I am quite a novice at the moment. I have a table called tblAvailabilityAll : which contains fields PayrollNo and an AvailabilityCode. The Availability : codes are A,N,S,H and when an employee leaves, in the first instance we need : to update A,N,S,H to 1,2,3,4 accordingly. : : : : Anyone have any idea how to do this within one Stored Procedure (or is it : possible in a single Stored Procedure.....??? : : : : I would be grateful fr any sample code etc... : : : : Thanks in advance : : : : Paul Hartland : : : _______________________________________________ : 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 Kenneth.Stoker at pnl.gov Wed Feb 26 14:00:56 2003 From: Kenneth.Stoker at pnl.gov (Stoker, Kenneth E) Date: Wed, 26 Feb 2003 12:00:56 -0800 Subject: [dba-SQLServer]Temporarily Unbinding an Index Message-ID: <249C1CB246997C48BB74963CCD361C1B07BA78@pnlmse28.pnl.gov> Everyone, Can I temporarily unbind an index from a column, modify the column and bind the index back again? I have a database I am working on and I just want to change the column to Allow Nulls through T-SQL, but it won't let me because it says that the column is being used elsewhere, in an index. TIA Ken Stoker Technology Commercialization Information Systems Administrator PH: (509) 375-3758 FAX: (509) 375-6731 E-mail: Kenneth.Stoker at pnl.gov From Robert.Djabarov at usaa.com Wed Feb 26 14:04:01 2003 From: Robert.Djabarov at usaa.com (Djabarov, Robert) Date: Wed, 26 Feb 2003 14:04:01 -0600 Subject: [dba-SQLServer]Temporarily Unbinding an Index Message-ID: <5A31F89EC4C79B49B5030FF2EF58E9D202DABE10@ex02.eagle.usaa.com> Script the CREATE INDEX ... and drop it prior to ALTERing the table, then - run CREATE INDEX. ______________________________________________________ Robert Djabarov Certified MS SQL Server DBA Certified MS SQL Server Programmer Certified MS VB Programmer ? (210) 913-3148 - phone ( (210) 753-3148 - pager -----Original Message----- From: Stoker, Kenneth E [mailto:Kenneth.Stoker at pnl.gov] Sent: Wednesday, February 26, 2003 2:01 PM To: dba-SQLServer (E-mail) Subject: [dba-SQLServer]Temporarily Unbinding an Index Everyone, Can I temporarily unbind an index from a column, modify the column and bind the index back again? I have a database I am working on and I just want to change the column to Allow Nulls through T-SQL, but it won't let me because it says that the column is being used elsewhere, in an index. TIA Ken Stoker Technology Commercialization Information Systems Administrator PH: (509) 375-3758 FAX: (509) 375-6731 E-mail: Kenneth.Stoker at pnl.gov _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From Kenneth.Stoker at pnl.gov Wed Feb 26 14:17:30 2003 From: Kenneth.Stoker at pnl.gov (Stoker, Kenneth E) Date: Wed, 26 Feb 2003 12:17:30 -0800 Subject: [dba-SQLServer]Removing a Default on a column Message-ID: <249C1CB246997C48BB74963CCD361C1B07C811@pnlmse28.pnl.gov> Everyone, I am trying to remove a default on a column through T-SQL. I tried to used sp_unbindefault and get an error 'cannot unbind from . use alter table drop constraint.' So, I take this to heart and try an 'alter table drop constraint'. I then get an error back saying there is not constraint with that name. I can see the default in the sysobjects table and I see its id in the cdefault column for the field within the syscolumns table. Is there some other way I should be doing this? Thank you. Ken Stoker Technology Commercialization Information Systems Administrator PH: (509) 375-3758 FAX: (509) 375-6731 E-mail: Kenneth.Stoker at pnl.gov From alan.lawhon at redstone.army.mil Wed Feb 26 14:50:30 2003 From: alan.lawhon at redstone.army.mil (Lawhon, Alan C Contractor/Morgan Research) Date: Wed, 26 Feb 2003 14:50:30 -0600 Subject: [dba-SQLServer]Operator of Certification "Braindump" Site Sentenced to Prison Message-ID: http://certcities.com/editorial/news/story.asp?EditorialsID=397 This Keppel guy somehow managed to obtain the actual exam questions (and their answers) which he then offerred (for a price) to anybody via his web site. (This guy has real chudzpa: he named his web site "Cheetsheets.com" ... No kidding!) Well, that's one way to get your MCSE, MCDBA, Oracle, A+ or Cisco cert! What I can't understand is why Microsoft doesn't sue for this guy's customer list and then "decertify" (or uncertify) all the folks who "earned" their credentials by, in effect, cheating! Alan C. Lawhon From Robert.Djabarov at usaa.com Wed Feb 26 14:50:30 2003 From: Robert.Djabarov at usaa.com (Djabarov, Robert) Date: Wed, 26 Feb 2003 14:50:30 -0600 Subject: [dba-SQLServer]Removing a Default on a column Message-ID: <5A31F89EC4C79B49B5030FF2EF58E9D24EBBD4@ex02.eagle.usaa.com> alter table drop constraint sp_unbindefault is used on defaults created with CREATE DEFAULT and then sp_bindefault. ______________________________________________________ Robert Djabarov Certified MS SQL Server DBA Certified MS SQL Server Programmer Certified MS VB Programmer ? (210) 913-3148 - phone ( (210) 753-3148 - pager -----Original Message----- From: Stoker, Kenneth E [mailto:Kenneth.Stoker at pnl.gov] Sent: Wednesday, February 26, 2003 2:18 PM To: dba-SQLServer (E-mail) Subject: [dba-SQLServer]Removing a Default on a column Everyone, I am trying to remove a default on a column through T-SQL. I tried to used sp_unbindefault and get an error 'cannot unbind from . use alter table drop constraint.' So, I take this to heart and try an 'alter table drop constraint'. I then get an error back saying there is not constraint with that name. I can see the default in the sysobjects table and I see its id in the cdefault column for the field within the syscolumns table. Is there some other way I should be doing this? Thank you. Ken Stoker Technology Commercialization Information Systems Administrator PH: (509) 375-3758 FAX: (509) 375-6731 E-mail: Kenneth.Stoker at pnl.gov _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From Kenneth.Stoker at pnl.gov Wed Feb 26 14:58:25 2003 From: Kenneth.Stoker at pnl.gov (Stoker, Kenneth E) Date: Wed, 26 Feb 2003 12:58:25 -0800 Subject: [dba-SQLServer]Removing a Default on a column Message-ID: <249C1CB246997C48BB74963CCD361C1B07BA7B@pnlmse28.pnl.gov> Thanks, I guess it does work. I was working on this yesterday and I may have had single quotes around my default name. Ken Stoker Technology Commercialization Information Systems Administrator PH: (509) 375-3758 FAX: (509) 375-6731 E-mail: Kenneth.Stoker at pnl.gov -----Original Message----- From: Djabarov, Robert [mailto:Robert.Djabarov at usaa.com] Sent: Wednesday, February 26, 2003 12:51 PM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]Removing a Default on a column alter table drop constraint sp_unbindefault is used on defaults created with CREATE DEFAULT and then sp_bindefault. ______________________________________________________ Robert Djabarov Certified MS SQL Server DBA Certified MS SQL Server Programmer Certified MS VB Programmer ? (210) 913-3148 - phone ( (210) 753-3148 - pager -----Original Message----- From: Stoker, Kenneth E [mailto:Kenneth.Stoker at pnl.gov] Sent: Wednesday, February 26, 2003 2:18 PM To: dba-SQLServer (E-mail) Subject: [dba-SQLServer]Removing a Default on a column Everyone, I am trying to remove a default on a column through T-SQL. I tried to used sp_unbindefault and get an error 'cannot unbind from . use alter table drop constraint.' So, I take this to heart and try an 'alter table drop constraint'. I then get an error back saying there is not constraint with that name. I can see the default in the sysobjects table and I see its id in the cdefault column for the field within the syscolumns table. Is there some other way I should be doing this? Thank you. Ken Stoker Technology Commercialization Information Systems Administrator PH: (509) 375-3758 FAX: (509) 375-6731 E-mail: Kenneth.Stoker at pnl.gov _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From artful at rogers.com Wed Feb 26 15:40:22 2003 From: artful at rogers.com (Arthur Fuller) Date: Wed, 26 Feb 2003 16:40:22 -0500 Subject: [dba-SQLServer]DOH! Create ADE is unselectable! Agghhh! In-Reply-To: <20030226164713.TRTX5116.fep06-svc.ttys.com@localhost> Message-ID: <029d01c2dddf$aa5f6820$8e01a8c0@Rock> Suddenly on both my development boxes Create ADE is unselectable. Stoopid brain! Everything seemed just ducky yesterday. Today, another story. Perhaps it was that prawn site I visited last night, featuring one-armed one-legged red-haired lesbian biker chicks from Denmark. I should have known! Now I can't create an ADE on either box. At the worst possible moment, I find myself kneecapped. Aidez-moi! Au secours! SOS! A. From szeller at cce.umn.edu Wed Feb 26 15:44:42 2003 From: szeller at cce.umn.edu (Susan Zeller) Date: Wed, 26 Feb 2003 15:44:42 -0600 Subject: [dba-SQLServer]DOH! Create ADE is unselectable! Agghhh! Message-ID: Arthur, Are you using XP? You can only create an ADE in XP if you convert your Access file to Access 2002 format. Doesn't work if you are still in Access 2000 format in XP which is the default. --Susan -----Original Message----- From: Arthur Fuller [mailto:artful at rogers.com] Sent: Wednesday, February 26, 2003 3:40 PM To: dba-sqlserver at databaseadvisors.com Subject: [dba-SQLServer]DOH! Create ADE is unselectable! Agghhh! Suddenly on both my development boxes Create ADE is unselectable. Stoopid brain! Everything seemed just ducky yesterday. Today, another story. Perhaps it was that prawn site I visited last night, featuring one-armed one-legged red-haired lesbian biker chicks from Denmark. I should have known! Now I can't create an ADE on either box. At the worst possible moment, I find myself kneecapped. Aidez-moi! Au secours! SOS! A. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From artful at rogers.com Wed Feb 26 16:38:57 2003 From: artful at rogers.com (Arthur Fuller) Date: Wed, 26 Feb 2003 17:38:57 -0500 Subject: [dba-SQLServer]DOH! Create ADE is unselectable! Agghhh! In-Reply-To: Message-ID: <029e01c2dde7$d9a26e40$8e01a8c0@Rock> That sounds like the problem, Susan! Will check and confirm. Bummer if you're correct; it means I need an instance of a2k to build and deploy this sucker. -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com] On Behalf Of Susan Zeller Sent: February 26, 2003 4:45 PM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]DOH! Create ADE is unselectable! Agghhh! Arthur, Are you using XP? You can only create an ADE in XP if you convert your Access file to Access 2002 format. Doesn't work if you are still in Access 2000 format in XP which is the default. --Susan -----Original Message----- From: Arthur Fuller [mailto:artful at rogers.com] Sent: Wednesday, February 26, 2003 3:40 PM To: dba-sqlserver at databaseadvisors.com Subject: [dba-SQLServer]DOH! Create ADE is unselectable! Agghhh! Suddenly on both my development boxes Create ADE is unselectable. Stoopid brain! Everything seemed just ducky yesterday. Today, another story. Perhaps it was that prawn site I visited last night, featuring one-armed one-legged red-haired lesbian biker chicks from Denmark. I should have known! Now I can't create an ADE on either box. At the worst possible moment, I find myself kneecapped. Aidez-moi! Au secours! SOS! A. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From stuart at lexacorp.com.pg Wed Feb 26 16:50:54 2003 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 27 Feb 2003 08:50:54 +1000 Subject: [dba-SQLServer]Operator of Certification "Braindump" Site Sentenced to Prison In-Reply-To: Message-ID: <3E5DD16E.27277.1869D8@localhost> > > http://certcities.com/editorial/news/story.asp?EditorialsID=397 > > This Keppel guy somehow managed to obtain the actual exam questions (and their > answers) which he then offerred (for a price) to anybody via his web site. > (This guy has real chudzpa: he named his web site "Cheetsheets.com" ... No > kidding!) > > Well, that's one way to get your MCSE, MCDBA, Oracle, A+ or Cisco cert! > > What I can't understand is why Microsoft doesn't sue for this guy's customer > list and then "decertify" (or uncertify) all the folks who "earned" their > credentials by, in effect, cheating! > Because they treat certification like they treat software? They are not interested in the qualify of the product, only how much they can make from it. -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From jcolby at colbyconsulting.com Wed Feb 26 21:48:15 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Wed, 26 Feb 2003 22:48:15 -0500 Subject: [dba-SQLServer]Passing params to SProc Message-ID: I use autonumber PKs or whatever that was turned into in SQL during the upsize. So now I want to have an sproc with a param of type int, but have the default value be the wildcard so that all records are passed back if no param is provided. Further I want to be able to pass in the wildcard in the Input Parameters property of the form to load all the records if I have previously narrowed it down. Alter Procedure qlfrmTitle (@TI_ID Int = 0) As SELECT * FROM dbo.tblTitle WHERE (((tblTitle.TTL_ID) like @TI_ID)) ORDER BY tblTitle.TTL_Title; return Works to return no records. Good so far. Alter Procedure qlfrmTitle (@TI_ID Int = 1) As SELECT * FROM dbo.tblTitle WHERE (((tblTitle.TTL_ID) like @TI_ID)) ORDER BY tblTitle.TTL_Title; return works to return one record with the pk of 1 if no param is provided by the form. Good so far. Alter Procedure qlfrmTitle (@TI_ID Int = %) As SELECT * FROM dbo.tblTitle WHERE (((tblTitle.TTL_ID) like @TI_ID)) ORDER BY tblTitle.TTL_Title; return refuses to save. Doesn't like the %. Likewise with *, likewise with '%' etc. I think perhaps the wildcard character is a text wildcard. Is there a numeric wildcard symbol or something? John W. Colby Colby Consulting www.ColbyConsulting.com ---------------------------------------------------- Is email taking over your day? Manage your time with eMailBoss. Try it free! http://www.eMailBoss.com From mark at sphere.uk.net Wed Feb 26 22:07:16 2003 From: mark at sphere.uk.net (Mark Walker) Date: Thu, 27 Feb 2003 17:07:16 +1300 Subject: [dba-SQLServer]Passing params to SProc In-Reply-To: Message-ID: Will this work for you? Alter Procedure qlfrmTitle (@TI_ID Int = null) As SELECT * FROM dbo.tblTitle WHERE (((tblTitle.TTL_ID) = IsNull(@TI_ID,tblTitle.TTL_ID))) ORDER BY tblTitle.TTL_Title return -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of John W. Colby Sent: Thursday, 27 February 2003 4:48 p.m. To: AccessD-SQLServer Cc: AccessD Subject: [dba-SQLServer]Passing params to SProc I use autonumber PKs or whatever that was turned into in SQL during the upsize. So now I want to have an sproc with a param of type int, but have the default value be the wildcard so that all records are passed back if no param is provided. Further I want to be able to pass in the wildcard in the Input Parameters property of the form to load all the records if I have previously narrowed it down. Alter Procedure qlfrmTitle (@TI_ID Int = 0) As SELECT * FROM dbo.tblTitle WHERE (((tblTitle.TTL_ID) like @TI_ID)) ORDER BY tblTitle.TTL_Title; return Works to return no records. Good so far. Alter Procedure qlfrmTitle (@TI_ID Int = 1) As SELECT * FROM dbo.tblTitle WHERE (((tblTitle.TTL_ID) like @TI_ID)) ORDER BY tblTitle.TTL_Title; return works to return one record with the pk of 1 if no param is provided by the form. Good so far. Alter Procedure qlfrmTitle (@TI_ID Int = %) As SELECT * FROM dbo.tblTitle WHERE (((tblTitle.TTL_ID) like @TI_ID)) ORDER BY tblTitle.TTL_Title; return refuses to save. Doesn't like the %. Likewise with *, likewise with '%' etc. I think perhaps the wildcard character is a text wildcard. Is there a numeric wildcard symbol or something? From jcolby at colbyconsulting.com Wed Feb 26 22:12:11 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Wed, 26 Feb 2003 23:12:11 -0500 Subject: [dba-SQLServer]Preparing to upsize Message-ID: My databases routinely use filtered record sets for bound forms, with one criteria being a call to a function. In preparation for upsizing an app, I have to save my SQL string to a saved query, no problem there. But what do I do with the call to the function? I want to put something in there that will end up as a parameter when the saved query is upsized to a spruce. Any ideas there? John W. Colby Colby Consulting www.ColbyConsulting.com ---------------------------------------------------- Is email taking over your day? Manage your time with eMailBoss. Try it free! http://www.eMailBoss.com From jcolby at colbyconsulting.com Wed Feb 26 22:53:15 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Wed, 26 Feb 2003 23:53:15 -0500 Subject: [dba-SQLServer]Passing params to SProc In-Reply-To: Message-ID: Yes, that worked. It also works passing in a value from the form (view one record) or passing null (view all records). What is it doing? I looked up IsNull so I understand the concept but why does tblTitle.TTL_ID act as a wildcard so to speak. Pretty cool anyway. This definitely gets me a long way. Thanks, John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of Mark Walker Sent: Wednesday, February 26, 2003 11:07 PM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]Passing params to SProc Will this work for you? Alter Procedure qlfrmTitle (@TI_ID Int = null) As SELECT * FROM dbo.tblTitle WHERE (((tblTitle.TTL_ID) = IsNull(@TI_ID,tblTitle.TTL_ID))) ORDER BY tblTitle.TTL_Title return -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of John W. Colby Sent: Thursday, 27 February 2003 4:48 p.m. To: AccessD-SQLServer Cc: AccessD Subject: [dba-SQLServer]Passing params to SProc I use autonumber PKs or whatever that was turned into in SQL during the upsize. So now I want to have an sproc with a param of type int, but have the default value be the wildcard so that all records are passed back if no param is provided. Further I want to be able to pass in the wildcard in the Input Parameters property of the form to load all the records if I have previously narrowed it down. Alter Procedure qlfrmTitle (@TI_ID Int = 0) As SELECT * FROM dbo.tblTitle WHERE (((tblTitle.TTL_ID) like @TI_ID)) ORDER BY tblTitle.TTL_Title; return Works to return no records. Good so far. Alter Procedure qlfrmTitle (@TI_ID Int = 1) As SELECT * FROM dbo.tblTitle WHERE (((tblTitle.TTL_ID) like @TI_ID)) ORDER BY tblTitle.TTL_Title; return works to return one record with the pk of 1 if no param is provided by the form. Good so far. Alter Procedure qlfrmTitle (@TI_ID Int = %) As SELECT * FROM dbo.tblTitle WHERE (((tblTitle.TTL_ID) like @TI_ID)) ORDER BY tblTitle.TTL_Title; return refuses to save. Doesn't like the %. Likewise with *, likewise with '%' etc. I think perhaps the wildcard character is a text wildcard. Is there a numeric wildcard symbol or something? _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com ---------------------------------------------------- Is email taking over your day? Manage your time with eMailBoss. Try it free! http://www.eMailBoss.com -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 2804 bytes Desc: not available URL: From mark at sphere.uk.net Wed Feb 26 23:11:18 2003 From: mark at sphere.uk.net (Mark Walker) Date: Thu, 27 Feb 2003 18:11:18 +1300 Subject: [dba-SQLServer]Passing params to SProc In-Reply-To: Message-ID: OK, you have: WHERE tblTitle.TTL_ID =IsNull(@TI_ID,tblTitle.TTL_ID) So... if the parameter is NULL then effectively the query is: WHERE tblTitle.TTL_ID =tblTitle.TTL_ID And this where clause is always true of course. Actually I think the SQL Server engine optimizes this away so effectively there is no where clause if the parameter is NULL (but don't quote me on that ;-) ) HTH Mark > -----Original Message----- > From: dba-sqlserver-admin at databaseadvisors.com > [mailto:dba-sqlserver-admin at databaseadvisors.com] > Sent: Thursday, 27 February 2003 5:53 p.m. > To: dba-sqlserver at databaseadvisors.com > Subject: RE: [dba-SQLServer]Passing params to SProc > > Yes, that worked. It also works passing in a value from the form (view > one record) or passing null (view all records). > > What is it doing? I looked up IsNull so I understand the concept but why > does tblTitle.TTL_ID act as a wildcard so to speak. > > Pretty cool anyway. This definitely gets me a long way. > > Thanks, > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: dba-sqlserver-admin at databaseadvisors.com > [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of Mark > Walker > Sent: Wednesday, February 26, 2003 11:07 PM > To: dba-sqlserver at databaseadvisors.com > Subject: RE: [dba-SQLServer]Passing params to SProc > > > Will this work for you? > > Alter Procedure qlfrmTitle (@TI_ID Int = null) > > As > > SELECT * FROM dbo.tblTitle WHERE (((tblTitle.TTL_ID) = > IsNull(@TI_ID,tblTitle.TTL_ID))) ORDER BY > tblTitle.TTL_Title > > return > > -----Original Message----- > From: dba-sqlserver-admin at databaseadvisors.com > [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of John W. > Colby > Sent: Thursday, 27 February 2003 4:48 p.m. > To: AccessD-SQLServer > Cc: AccessD > Subject: [dba-SQLServer]Passing params to SProc > > > I use autonumber PKs or whatever that was turned into in SQL during the > upsize. So now I want to have an sproc with a param of type int, but have > the default value be the wildcard so that all records are passed back if > no > param is provided. Further I want to be able to pass in the wildcard in > the > Input Parameters property of the form to load all the records if I have > previously narrowed it down. > > Alter Procedure qlfrmTitle (@TI_ID Int = 0) > > As > > SELECT * FROM dbo.tblTitle WHERE (((tblTitle.TTL_ID) like @TI_ID)) ORDER > BY > tblTitle.TTL_Title; > > return > > Works to return no records. Good so far. > > Alter Procedure qlfrmTitle (@TI_ID Int = 1) > > As > > SELECT * FROM dbo.tblTitle WHERE (((tblTitle.TTL_ID) like @TI_ID)) ORDER > BY > tblTitle.TTL_Title; > > return > > works to return one record with the pk of 1 if no param is provided by the > form. Good so far. > > Alter Procedure qlfrmTitle (@TI_ID Int = %) > > As > > SELECT * FROM dbo.tblTitle WHERE (((tblTitle.TTL_ID) like @TI_ID)) ORDER > BY > tblTitle.TTL_Title; > > return > > refuses to save. Doesn't like the %. Likewise with *, likewise with '%' > etc. I think perhaps the wildcard character is a text wildcard. Is there > a > numeric wildcard symbol or something? > -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 3112 bytes Desc: not available URL: From paul.hartland at fsmail.net Thu Feb 27 03:06:18 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 27 Feb 2003 9:06:18 +0000 Subject: [dba-SQLServer]More SQL Server 7 Stored Procedure help if possible Message-ID: <20030227090618.OHGO2415.fep03-svc.ttys.com@localhost> lol, thanks but I am using a test server. Thanks again for the help........... From: "Francisco H Tapia" Date: Wed 26/Feb/2003 17:18 GMT To: Subject: Re: [dba-SQLServer]More SQL Server 7 Stored Procedure help if possible : Anyone have any idea how to do this within one Stored Procedure (or is it possible in a single Stored Procedure.....??? Yes ;o) : I would be grateful fr any sample code etc... awright, but only cuz you'd be grateful ;o), [Wednesday... and I need my SOF (soldier of fortune II) kick.] I'm going to ASSuME that the payroll is the identity key for this table, or the identifying key for this table... CREATE PROCEDURE stp_UpdateAvailability (@PayrollNo as Int) AS UPDATE tblAvailabilityAll SET Availability Code = CASE AvailabilityCode WHEN A THEN 1 WHEN N THEN 2 WHEN S THEN 3 WHEN H THEN 4 ELSE AvailabilityCode --othewise just leave as is. FROM tblAvailabilityAll Where PayrollNo = @PayrollNo AND IsNumeric(AvailabilityCode) = 0 You mentioned that you are a novice.... and perhaps you know this.. but I'll say it anyway... **NEVER RUN TEST PROCEDURES ON A PRODUCTION SERVER!!!, ALWAYS USE A TEST SERVER** the license for a developer copy of Sql is about $500 so you can install SQL Server on your desktop, this will help you out a lot in that you can practice your backup/restore procedures and double-check your backups. -Francisco http://rcm.netfirms.com ----- Original Message ----- From: To: ; ; Sent: Wednesday, February 26, 2003 8:47 AM Subject: [dba-SQLServer]More SQL Server 7 Stored Procedure help if possible : To all, : : If you read my first email regarding Stored Procedure's you will know that I am quite a novice at the moment. I have a table called tblAvailabilityAll which contains fields PayrollNo and an AvailabilityCode. The Availability codes are A,N,S,H and when an employee leaves, in the first instance we need to update A,N,S,H to 1,2,3,4 accordingly. : : Anyone have any idea how to do this within one Stored Procedure (or is it possible in a single Stored Procedure.....??? : : I would be grateful fr any sample code etc... : : Thanks in advance : : Paul Hartland _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com __________________________________________________________________________ Freeserve AnyTime - Go online whenever you want for just ?6.99 a month for your first 3 months, that's HALF PRICE! And then it's just ?13.99 a month after that. For more information visit http://www.freeserve.com/time/ or call free on 0800 970 8890 From jcolby at colbyconsulting.com Thu Feb 27 05:55:27 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Thu, 27 Feb 2003 06:55:27 -0500 Subject: [dba-SQLServer]Passing params to SProc In-Reply-To: Message-ID: Ahhhhh.... (slaps head with hand) John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com] Sent: Thursday, February 27, 2003 12:11 AM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]Passing params to SProc OK, you have: WHERE tblTitle.TTL_ID =IsNull(@TI_ID,tblTitle.TTL_ID) So... if the parameter is NULL then effectively the query is: WHERE tblTitle.TTL_ID =tblTitle.TTL_ID And this where clause is always true of course. Actually I think the SQL Server engine optimizes this away so effectively there is no where clause if the parameter is NULL (but don't quote me on that ;-) ) HTH Mark -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com] Sent: Thursday, 27 February 2003 5:53 p.m. To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]Passing params to SProc Yes, that worked. It also works passing in a value from the form (view one record) or passing null (view all records). What is it doing? I looked up IsNull so I understand the concept but why does tblTitle.TTL_ID act as a wildcard so to speak. Pretty cool anyway. This definitely gets me a long way. Thanks, John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of Mark Walker Sent: Wednesday, February 26, 2003 11:07 PM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]Passing params to SProc Will this work for you? Alter Procedure qlfrmTitle (@TI_ID Int = null) As SELECT * FROM dbo.tblTitle WHERE (((tblTitle.TTL_ID) = IsNull(@TI_ID,tblTitle.TTL_ID))) ORDER BY tblTitle.TTL_Title return -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of John W. Colby Sent: Thursday, 27 February 2003 4:48 p.m. To: AccessD-SQLServer Cc: AccessD Subject: [dba-SQLServer]Passing params to SProc I use autonumber PKs or whatever that was turned into in SQL during the upsize. So now I want to have an sproc with a param of type int, but have the default value be the wildcard so that all records are passed back if no param is provided. Further I want to be able to pass in the wildcard in the Input Parameters property of the form to load all the records if I have previously narrowed it down. Alter Procedure qlfrmTitle (@TI_ID Int = 0) As SELECT * FROM dbo.tblTitle WHERE (((tblTitle.TTL_ID) like @TI_ID)) ORDER BY tblTitle.TTL_Title; return Works to return no records. Good so far. Alter Procedure qlfrmTitle (@TI_ID Int = 1) As SELECT * FROM dbo.tblTitle WHERE (((tblTitle.TTL_ID) like @TI_ID)) ORDER BY tblTitle.TTL_Title; return works to return one record with the pk of 1 if no param is provided by the form. Good so far. Alter Procedure qlfrmTitle (@TI_ID Int = %) As SELECT * FROM dbo.tblTitle WHERE (((tblTitle.TTL_ID) like @TI_ID)) ORDER BY tblTitle.TTL_Title; return refuses to save. Doesn't like the %. Likewise with *, likewise with '%' etc. I think perhaps the wildcard character is a text wildcard. Is there a numeric wildcard symbol or something? ---------------------------------------------------- Is email taking over your day? Manage your time with eMailBoss. Try it free! http://www.eMailBoss.com -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 3096 bytes Desc: not available URL: From jcolby at colbyconsulting.com Thu Feb 27 06:40:43 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Thu, 27 Feb 2003 07:40:43 -0500 Subject: [dba-SQLServer]SQL Server default value not happening Message-ID: I upsized my client billing to SQL Server the other day. This morning I noticed that a couple of flag fields in my main time table are not being set to their default value. I went directly into EM and created a record in the table and the flags are correctly set there. I opened the ADP, opened the table there and entered a record, and the default value is NOT being set correctly there. Any ideas why the default values would work in EM but not in the ADP? John W. Colby Colby Consulting www.ColbyConsulting.com ---------------------------------------------------- Is email taking over your day? Manage your time with eMailBoss. Try it free! http://www.eMailBoss.com From artful at rogers.com Thu Feb 27 08:00:15 2003 From: artful at rogers.com (Arthur Fuller) Date: Thu, 27 Feb 2003 09:00:15 -0500 Subject: [dba-SQLServer]Connection object fails in Package Wizard Message-ID: <02e201c2de68$8db416b0$8e01a8c0@Rock> Weird. The ADP file works fine. So does the ADE. But the Packaging Wizard errors out as soon as I select the ADE file, saying "Error detected when opening startup form (frmMainMenu). Error # -2137467259: Method "Connection" of object 'CurrentProject' failed. One oddity. When I browsed for the main app, all the dialog showed was ADP files, not ADE. I changed the selector to All Files and selected the ADE. Immediately I got the error above. Thinking that it might be a problem with ADEs, I switched to the ADP and immediately got the same error! What's strange is that I can run both the ADE and the ADP without problems. Anybody got an idea about this? Has anyone successfully created a package using either an ADP or ADE? -------------- next part -------------- An HTML attachment was scrubbed... URL: From artful at rogers.com Thu Feb 27 08:09:13 2003 From: artful at rogers.com (Arthur Fuller) Date: Thu, 27 Feb 2003 09:09:13 -0500 Subject: [dba-SQLServer]SQL Server default value not happening In-Reply-To: Message-ID: <02ef01c2de69$ce81ca60$8e01a8c0@Rock> I assume that you mean the SQL level default value rather than the Access level default. If so, I don't think you'll see it set until after you save the row. Same behaviour as ANPK values. -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com] On Behalf Of John W. Colby Sent: February 27, 2003 7:41 AM To: AccessD Cc: AccessD-SQLServer Subject: [dba-SQLServer]SQL Server default value not happening I upsized my client billing to SQL Server the other day. This morning I noticed that a couple of flag fields in my main time table are not being set to their default value. I went directly into EM and created a record in the table and the flags are correctly set there. I opened the ADP, opened the table there and entered a record, and the default value is NOT being set correctly there. Any ideas why the default values would work in EM but not in the ADP? John W. Colby Colby Consulting www.ColbyConsulting.com ---------------------------------------------------- Is email taking over your day? Manage your time with eMailBoss. Try it free! http://www.eMailBoss.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 Thu Feb 27 08:18:19 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Thu, 27 Feb 2003 09:18:19 -0500 Subject: [dba-SQLServer]SQL Server default value not happening In-Reply-To: <02ef01c2de69$ce81ca60$8e01a8c0@Rock> Message-ID: No, I understand that. It is NOT being set AT ALL in the created record from inside the ADP. That's how I discovered it wasn't being set. This case is my active flag which must be set to see records. Three records created yesterday were mysteriously missing. The answer... the active flag is not being set true by default when the record is created. Further, IN DESIGN VIEW in the ADP, the default value doesn't show. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of Arthur Fuller Sent: Thursday, February 27, 2003 9:09 AM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]SQL Server default value not happening I assume that you mean the SQL level default value rather than the Access level default. If so, I don't think you'll see it set until after you save the row. Same behaviour as ANPK values. -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com] On Behalf Of John W. Colby Sent: February 27, 2003 7:41 AM To: AccessD Cc: AccessD-SQLServer Subject: [dba-SQLServer]SQL Server default value not happening I upsized my client billing to SQL Server the other day. This morning I noticed that a couple of flag fields in my main time table are not being set to their default value. I went directly into EM and created a record in the table and the flags are correctly set there. I opened the ADP, opened the table there and entered a record, and the default value is NOT being set correctly there. Any ideas why the default values would work in EM but not in the ADP? John W. Colby Colby Consulting www.ColbyConsulting.com ---------------------------------------------------- Is email taking over your day? Manage your time with eMailBoss. Try it free! http://www.eMailBoss.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 ---------------------------------------------------- Is email taking over your day? Manage your time with eMailBoss. Try it free! http://www.eMailBoss.com -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 2568 bytes Desc: not available URL: From Robert.Djabarov at usaa.com Thu Feb 27 08:37:17 2003 From: Robert.Djabarov at usaa.com (Djabarov, Robert) Date: Thu, 27 Feb 2003 08:37:17 -0600 Subject: [dba-SQLServer]Passing params to SProc Message-ID: <5A31F89EC4C79B49B5030FF2EF58E9D202DABE14@ex02.eagle.usaa.com> Forget about LIKE, it doesn't apply to INT datatype. Instead retain your version #3 CREATE part with parameter declaration, but have the body like this: SELECT * FROM dbo.tblTitle WHERE tblTitle.TTL_ID = isnull(@TI_ID, tblTitle.TTL_ID) ORDER BY tblTitle.TTL_Title ______________________________________________________ Robert Djabarov Certified MS SQL Server DBA Certified MS SQL Server Programmer Certified MS VB Programmer ? (210) 913-3148 - phone ( (210) 753-3148 - pager -----Original Message----- From: John W. Colby [mailto:jcolby at colbyconsulting.com] Sent: Wednesday, February 26, 2003 9:48 PM To: AccessD-SQLServer Cc: AccessD Subject: [dba-SQLServer]Passing params to SProc I use autonumber PKs or whatever that was turned into in SQL during the upsize. So now I want to have an sproc with a param of type int, but have the default value be the wildcard so that all records are passed back if no param is provided. Further I want to be able to pass in the wildcard in the Input Parameters property of the form to load all the records if I have previously narrowed it down. Alter Procedure qlfrmTitle (@TI_ID Int = 0) As SELECT * FROM dbo.tblTitle WHERE (((tblTitle.TTL_ID) like @TI_ID)) ORDER BY tblTitle.TTL_Title; return Works to return no records. Good so far. Alter Procedure qlfrmTitle (@TI_ID Int = 1) As SELECT * FROM dbo.tblTitle WHERE (((tblTitle.TTL_ID) like @TI_ID)) ORDER BY tblTitle.TTL_Title; return works to return one record with the pk of 1 if no param is provided by the form. Good so far. Alter Procedure qlfrmTitle (@TI_ID Int = %) As SELECT * FROM dbo.tblTitle WHERE (((tblTitle.TTL_ID) like @TI_ID)) ORDER BY tblTitle.TTL_Title; return refuses to save. Doesn't like the %. Likewise with *, likewise with '%' etc. I think perhaps the wildcard character is a text wildcard. Is there a numeric wildcard symbol or something? John W. Colby Colby Consulting www.ColbyConsulting.com ---------------------------------------------------- Is email taking over your day? Manage your time with eMailBoss. Try it free! http://www.eMailBoss.com _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From artful at rogers.com Thu Feb 27 08:44:26 2003 From: artful at rogers.com (Arthur Fuller) Date: Thu, 27 Feb 2003 09:44:26 -0500 Subject: [dba-SQLServer]SQL Server default value not happening In-Reply-To: Message-ID: <031801c2de6e$ba0e3fa0$8e01a8c0@Rock> 1. I just created a SQL table with 4 columns, 3 of them defaulted. 2. I can see the column defaults fine in my ADP (this is A2002). 3. I created an AutoForm to talk to the table, and I see the defaults there right away when I add a new row. 4. One thing I noticed. My columns are set to NOT NULL. That may make a difference, but if there is a default value then why would you want to permit NULLs? -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com] Sent: February 27, 2003 9:18 AM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]SQL Server default value not happening No, I understand that. It is NOT being set AT ALL in the created record from inside the ADP. That's how I discovered it wasn't being set. This case is my active flag which must be set to see records. Three records created yesterday were mysteriously missing. The answer... the active flag is not being set true by default when the record is created. Further, IN DESIGN VIEW in the ADP, the default value doesn't show. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of Arthur Fuller Sent: Thursday, February 27, 2003 9:09 AM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]SQL Server default value not happening I assume that you mean the SQL level default value rather than the Access level default. If so, I don't think you'll see it set until after you save the row. Same behaviour as ANPK values. -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com] On Behalf Of John W. Colby Sent: February 27, 2003 7:41 AM To: AccessD Cc: AccessD-SQLServer Subject: [dba-SQLServer]SQL Server default value not happening I upsized my client billing to SQL Server the other day. This morning I noticed that a couple of flag fields in my main time table are not being set to their default value. I went directly into EM and created a record in the table and the flags are correctly set there. I opened the ADP, opened the table there and entered a record, and the default value is NOT being set correctly there. Any ideas why the default values would work in EM but not in the ADP? John W. Colby Colby Consulting www.ColbyConsulting.com ---------------------------------------------------- Is email taking over your day? Manage your time with eMailBoss. Try it free! http://www.eMailBoss.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 ---------------------------------------------------- Is email taking over your day? Manage your time with eMailBoss. Try it free! http://www.eMailBoss.com -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 5744 bytes Desc: not available URL: From harkins at iglou.com Thu Feb 27 10:05:27 2003 From: harkins at iglou.com (Susan Harkins) Date: Thu, 27 Feb 2003 11:05:27 -0500 Subject: [dba-SQLServer]Preparing to upsize References: Message-ID: <00ee01c2de7a$24c4aa40$a4e6ffcc@SusanOne> I don't think you can -- I think you'll just have to deal with it in SQL Server. Martin would know for sure. Susan H. > My databases routinely use filtered record sets for bound forms, with one > criteria being a call to a function. In preparation for upsizing an app, I > have to save my SQL string to a saved query, no problem there. But what do > I do with the call to the function? I want to put something in there that > will end up as a parameter when the saved query is upsized to a spruce. From davide at dalyn.co.nz Thu Feb 27 19:40:43 2003 From: davide at dalyn.co.nz (David Emerson) Date: Fri, 28 Feb 2003 14:40:43 +1300 Subject: [dba-SQLServer]Importing txt file Message-ID: <5.2.0.9.0.20030228143732.00b55ea8@mail.dalyn.co.nz> In my A97 database I have a line which imports some raw data into a temporary table - DoCmd.TransferText acImportDelim, "CVRAW", "ttmpCVRaw", C\Data\RawData.txt, True Now that I have an AXP connected to SQL2K this doesn't work. What is the method for importing into a table? From here I will be using a sproc to manipulate the data into the right format to be added to another table. Regards David Emerson DALYN Software Ltd 25b Cunliffe St, Johnsonville Wellington, New Zealand Ph/Fax (877) 456-1205 From accessd at shaw.ca Thu Feb 27 23:22:43 2003 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Thu, 27 Feb 2003 21:22:43 -0800 Subject: [dba-SQLServer]Importing txt file In-Reply-To: <5.2.0.9.0.20030228143732.00b55ea8@mail.dalyn.co.nz> Message-ID: Hi Doug: Check you references. There is probably a specific ole or dll that Access97 had installed through it's reference list that is not installed by default. Check the items in the Reference list in Access97 and then check Access2002's Reference list. Install the missing entry(s) and it should run fine. HTH Jim -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of David Emerson Sent: Thursday, February 27, 2003 5:41 PM To: dba-SQLServer at databaseadvisors.com Subject: [dba-SQLServer]Importing txt file In my A97 database I have a line which imports some raw data into a temporary table - DoCmd.TransferText acImportDelim, "CVRAW", "ttmpCVRaw", C\Data\RawData.txt, True Now that I have an AXP connected to SQL2K this doesn't work. What is the method for importing into a table? From here I will be using a sproc to manipulate the data into the right format to be added to another table. 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 From artful at rogers.com Fri Feb 28 08:51:34 2003 From: artful at rogers.com (Arthur Fuller) Date: Fri, 28 Feb 2003 09:51:34 -0500 Subject: [dba-SQLServer]Restore from Command Line? In-Reply-To: <5A31F89EC4C79B49B5030FF2EF58E9D202DABE0C@ex02.eagle.usaa.com> Message-ID: <03cf01c2df38$e3ee19b0$8e01a8c0@Rock> I have searched BOL looking for this, so far without success. As I consider the problem, however, a simple command-line restore may not solve it. The target machine is assumed to have a running instance of MSDE on it, but not EM. I noticed that you cannot use the Access ADP backup and restore menu options on this box. I may have to go the sp_attach_db route. I suppose I can whip up a very simple Access app that does nothing but exec sp_attach_db and the filename. Meanwhile, if you can give me a more accurate pointer to the BOL piece you meant, I'd appreciate it. -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com] On Behalf Of Djabarov, Robert Sent: February 26, 2003 12:22 PM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]Restore from Command Line? bol ______________________________________________________ Robert Djabarov Certified MS SQL Server DBA Certified MS SQL Server Programmer Certified MS VB Programmer * (210) 913-3148 - phone * (210) 753-3148 - pager <*************************************************************************** **********************> -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Wednesday, February 26, 2003 10:37 AM To: dba-sqlserver at databaseadvisors.com Subject: [dba-SQLServer]Restore from Command Line? Can I restore a database from the command line (i.e. without any user intervention)? The P&D wizard offers the option to execute any command once installation is finished. The CD will contain a zip of a database backup, and I want to restore it to a known name without any user intervention. TIA, Arthur From my.lists at verizon.net Fri Feb 28 09:47:12 2003 From: my.lists at verizon.net (Francisco H Tapia) Date: Fri, 28 Feb 2003 07:47:12 -0800 Subject: [dba-SQLServer]Restore from Command Line? References: <03cf01c2df38$e3ee19b0$8e01a8c0@Rock> Message-ID: <002b01c2df40$a9bcf830$b615010a@FHTAPIA> I have some SQL-DMO code lying around here that checks for a running instance of SQL (msde) and if the local box does not have it running it starts the service... I'll fish around for it today and forward it when I find it... in any case it "should" help you...as for a command line restore... I have not tried this but just a wag... using a batch file to log into osql might be help out in this situation but of course this assumes that SQL (msde) is running already... -Francisco http://rcm.netfirms.com ----- Original Message ----- From: "Arthur Fuller" To: Cc: "Djabarov, Robert" Sent: Friday, February 28, 2003 6:51 AM Subject: RE: [dba-SQLServer]Restore from Command Line? : I have searched BOL looking for this, so far without success. As I consider : the problem, however, a simple command-line restore may not solve it. The : target machine is assumed to have a running instance of MSDE on it, but not : EM. I noticed that you cannot use the Access ADP backup and restore menu : options on this box. I may have to go the sp_attach_db route. I suppose I : can whip up a very simple Access app that does nothing but exec sp_attach_db : and the filename. : Meanwhile, if you can give me a more accurate pointer to the BOL piece you : meant, I'd appreciate it. : : -----Original Message----- : From: dba-sqlserver-admin at databaseadvisors.com : [mailto:dba-sqlserver-admin at databaseadvisors.com] On Behalf Of Djabarov, : Robert : Sent: February 26, 2003 12:22 PM : To: dba-sqlserver at databaseadvisors.com : Subject: RE: [dba-SQLServer]Restore from Command Line? : : bol : : ______________________________________________________ : Robert Djabarov : Certified MS SQL Server DBA : Certified MS SQL Server Programmer : Certified MS VB Programmer : * (210) 913-3148 - phone : * (210) 753-3148 - pager : <*************************************************************************** : **********************> : : -----Original Message----- : From: dba-sqlserver-admin at databaseadvisors.com : [mailto:dba-sqlserver-admin at databaseadvisors.com] On Behalf Of Arthur : Fuller : Sent: Wednesday, February 26, 2003 10:37 AM : To: dba-sqlserver at databaseadvisors.com : Subject: [dba-SQLServer]Restore from Command Line? : : Can I restore a database from the command line (i.e. without any user : intervention)? The P&D wizard offers the option to execute any command once : installation is finished. The CD will contain a zip of a database backup, : and I want to restore it to a known name without any user intervention. : TIA, : Arthur : : : _______________________________________________ : dba-SQLServer mailing list : dba-SQLServer at databaseadvisors.com : http://databaseadvisors.com/mailman/listinfo/dba-sqlserver : http://www.databaseadvisors.com : From prosoft6 at hotmail.com Fri Feb 28 12:09:10 2003 From: prosoft6 at hotmail.com (Julie Reardon-Taylor) Date: Fri, 28 Feb 2003 13:09:10 -0500 Subject: [dba-SQLServer]OT - Veritas Backup of Transaction Logs Message-ID: Is anyone out there using Veritas Backup Exec 9.0? I just installed a trial version. The full backup works fine for the databases, but I'm trying to backup the transaction logs every two hours, and I keep getting an error. It seems to be a simple procedure, and the error log gives me no info. Julie Reardon-Taylor PRO-SOFT OF NY, INC. www.pro-soft.net _________________________________________________________________ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From my.lists at verizon.net Fri Feb 28 12:19:23 2003 From: my.lists at verizon.net (Francisco H Tapia) Date: Fri, 28 Feb 2003 10:19:23 -0800 Subject: [dba-SQLServer]OT - Veritas Backup of Transaction Logs References: Message-ID: <006701c2df55$ebab9520$b615010a@FHTAPIA> I've not used Veritas extensively, but did happen to notice how purchasing extensions to their program was nothing more than getting a new activation key for each module :o) Pretty slick. IIRC, there is the standard Backup, Plus the module for Open Files, and Sql Server. However I don't remember if they also had a transaction log module. As an aside, SQL Server's built in backups can be scheduled to back up the logs every n'th hour as you would like. Just a suggestion, since you are using a trial. For me there seems no reason to want to buy Vertias, because if your system did suddenly go down, you'd still would have to rebuild the server before you could restore the backup info from Veritas unless of course you purchase that module too... in the end each module is about $500 bucks (last time I checked, making the SQL server backup a purchase of over $2k :O seems a bit pricey. Especially since you dont' get more than just running normal sql Server backups. also so that you don't loose your DTS packages or login, make sure you make backups of both the MSDB and Master databases. -Francisco http://rcm.netfirms.com ----- Original Message ----- From: "Julie Reardon-Taylor" To: Sent: Friday, February 28, 2003 10:09 AM Subject: [dba-SQLServer]OT - Veritas Backup of Transaction Logs : : Is anyone out there using Veritas Backup Exec 9.0? I just installed a trial : version. The full backup works fine for the databases, but I'm trying to : backup the transaction logs every two hours, and I keep getting an error. : : It seems to be a simple procedure, and the error log gives me no info. : : : Julie Reardon-Taylor From prosoft6 at hotmail.com Fri Feb 28 12:29:48 2003 From: prosoft6 at hotmail.com (Julie Reardon-Taylor) Date: Fri, 28 Feb 2003 13:29:48 -0500 Subject: [dba-SQLServer]OT - Veritas Backup of Transaction Logs Message-ID: Francisco, This version includes an SQL module and is only $307.00. I'm considering it because I would like to use one tape to backup my SQL databases as well as the user folders, system state, etc. We currently are using Enterprise Manager to backup transaction logs, and have a full database backup scheduled to run each night. Just looking for a way to place this data on one tape. Maybe that is not a good idea anyway? The format of the tape for sql backup through enterprise manager is different than Windows Backup, thus will not allow me to store both. How do the rest of you accomplish this? I really like using Enterprise Manager. It's very easy to configure and databases are easily restored. But, I also need to backup up user directories, etc. Julie Reardon-Taylor PRO-SOFT OF NY, INC. www.pro-soft.net _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From andy at minstersystems.co.uk Fri Feb 28 12:50:26 2003 From: andy at minstersystems.co.uk (Andy Lacey) Date: Fri, 28 Feb 2003 18:50:26 -0000 Subject: [dba-SQLServer]OT - Veritas Backup of Transaction Logs In-Reply-To: Message-ID: <002b01c2df5a$41df5040$b274d0d5@andypc> Hi Julie Can't you backup the SQL stuff to disk, then back that up to tape? Anyway we do use BE 9 but we also have Open File management. You can either use Veritas' own Open File Option or get a proprietray one such as St Bernards ( http://www.stbernard.com/products/ofm/products_ofm.asp ) but the cost starts to mount. Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: dba-sqlserver-admin at databaseadvisors.com > [mailto:dba-sqlserver-admin at databaseadvisors.com] On Behalf > Of Julie Reardon-Taylor > Sent: 28 February 2003 18:30 > To: dba-sqlserver at databaseadvisors.com > Subject: Re: [dba-SQLServer]OT - Veritas Backup of Transaction Logs > > > Francisco, > > This version includes an SQL module and is only $307.00. I'm > considering it > because I would like to use one tape to backup my SQL > databases as well as > the user folders, system state, etc. > > We currently are using Enterprise Manager to backup > transaction logs, and > have a full database backup scheduled to run each night. > > Just looking for a way to place this data on one tape. Maybe > that is not a > good idea anyway? > > The format of the tape for sql backup through enterprise manager is > different than Windows Backup, thus will not allow me to store both. > > How do the rest of you accomplish this? I really like using > Enterprise > Manager. It's very easy to configure and databases are > easily restored. > But, I also need to backup up user directories, etc. > > > > Julie Reardon-Taylor > PRO-SOFT OF NY, INC. > www.pro-soft.net > > > > > _________________________________________________________________ > 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 > > From fhtapia at hotmail.com Fri Feb 28 12:57:11 2003 From: fhtapia at hotmail.com (Francisco H Tapia) Date: Fri, 28 Feb 2003 10:57:11 -0800 Subject: [dba-SQLServer]OT - Veritas Backup of Transaction Logs References: Message-ID: One way of doing this is to backup to disk, and then run the windows backup, including the SQL backup directory... btw, have you tried contacting the Veritas support? The few times I used them (many moons ago) they were quite helpful. -Francisco http://rcm.netfirms.com ----- Original Message ----- From: "Julie Reardon-Taylor" To: Sent: Friday, February 28, 2003 10:29 AM Subject: Re: [dba-SQLServer]OT - Veritas Backup of Transaction Logs : Francisco, : : This version includes an SQL module and is only $307.00. I'm considering it : because I would like to use one tape to backup my SQL databases as well as : the user folders, system state, etc. : : We currently are using Enterprise Manager to backup transaction logs, and : have a full database backup scheduled to run each night. : : Just looking for a way to place this data on one tape. Maybe that is not a : good idea anyway? : : The format of the tape for sql backup through enterprise manager is : different than Windows Backup, thus will not allow me to store both. : : How do the rest of you accomplish this? I really like using Enterprise : Manager. It's very easy to configure and databases are easily restored. : But, I also need to backup up user directories, etc. : : : : Julie Reardon-Taylor : PRO-SOFT OF NY, INC. : www.pro-soft.net : : : : : _________________________________________________________________ : 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 : From my.lists at verizon.net Fri Feb 28 13:00:16 2003 From: my.lists at verizon.net (Francisco H Tapia) Date: Fri, 28 Feb 2003 11:00:16 -0800 Subject: [dba-SQLServer]OT - Veritas Backup of Transaction Logs References: <002b01c2df5a$41df5040$b274d0d5@andypc> Message-ID: <009601c2df5b$a1b29ad0$b615010a@FHTAPIA> doh!, you beat me to the response ;o) I swear I hit the send before you posted :D -Francisco http://rcm.netfirms.com ----- Original Message ----- From: "Andy Lacey" To: Sent: Friday, February 28, 2003 10:50 AM Subject: RE: [dba-SQLServer]OT - Veritas Backup of Transaction Logs : Hi Julie : Can't you backup the SQL stuff to disk, then back that up to tape? : : Anyway we do use BE 9 but we also have Open File management. You can : either use Veritas' own Open File Option or get a proprietray one such : as St Bernards ( http://www.stbernard.com/products/ofm/products_ofm.asp : ) but the cost starts to mount. : : Andy Lacey : http://www.minstersystems.co.uk : : : : > -----Original Message----- : > From: dba-sqlserver-admin at databaseadvisors.com : > [mailto:dba-sqlserver-admin at databaseadvisors.com] On Behalf : > Of Julie Reardon-Taylor : > Sent: 28 February 2003 18:30 : > To: dba-sqlserver at databaseadvisors.com : > Subject: Re: [dba-SQLServer]OT - Veritas Backup of Transaction Logs : > : > : > Francisco, : > : > This version includes an SQL module and is only $307.00. I'm : > considering it : > because I would like to use one tape to backup my SQL : > databases as well as : > the user folders, system state, etc. : > : > We currently are using Enterprise Manager to backup : > transaction logs, and : > have a full database backup scheduled to run each night. : > : > Just looking for a way to place this data on one tape. Maybe : > that is not a : > good idea anyway? : > : > The format of the tape for sql backup through enterprise manager is : > different than Windows Backup, thus will not allow me to store both. : > : > How do the rest of you accomplish this? I really like using : > Enterprise : > Manager. It's very easy to configure and databases are : > easily restored. : > But, I also need to backup up user directories, etc. : > : > : > : > Julie Reardon-Taylor : > PRO-SOFT OF NY, INC. : > www.pro-soft.net : > : > : > : > : > _________________________________________________________________ : > 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 : > : > : : _______________________________________________ : dba-SQLServer mailing list : dba-SQLServer at databaseadvisors.com : http://databaseadvisors.com/mailman/listinfo/dba-sqlserver : http://www.databaseadvisors.com : From prosoft6 at hotmail.com Fri Feb 28 13:02:32 2003 From: prosoft6 at hotmail.com (Julie Reardon-Taylor) Date: Fri, 28 Feb 2003 14:02:32 -0500 Subject: [dba-SQLServer]OT - Veritas Backup of Transaction Logs Message-ID: Well.............stupid me.........I had the append option set to four days. Set it to infinite and it fixed the problem. Since we are on the subject of backup - What do you backup from the server side of things(Win2000 Server)? From reading on MS-Site, it looks like the System State, User Directories, and System Volume Information is enough for a good restore. Am I missing anything? Julie Reardon-Taylor PRO-SOFT OF NY, INC. www.pro-soft.net _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From davide at dalyn.co.nz Fri Feb 28 13:42:40 2003 From: davide at dalyn.co.nz (David Emerson) Date: Sat, 01 Mar 2003 08:42:40 +1300 Subject: [dba-SQLServer]Importing txt file In-Reply-To: References: <5.2.0.9.0.20030228143732.00b55ea8@mail.dalyn.co.nz> Message-ID: <5.2.0.9.0.20030301084106.00ba1980@mail.dalyn.co.nz> I don't think it is a problem with references by that Transfertext doesn't work with SQL Tables. Is there anyone else using an ADP and can use TransferText? David At 27/02/2003, you wrote: >Hi Doug: > >Check you references. There is probably a specific ole or dll that Access97 >had installed through it's reference list that is not installed by default. >Check the items in the Reference list in Access97 and then check >Access2002's Reference list. Install the missing entry(s) and it should run >fine. > >HTH >Jim > >-----Original Message----- >From: dba-sqlserver-admin at databaseadvisors.com >[mailto:dba-sqlserver-admin at databaseadvisors.com]On Behalf Of David >Emerson >Sent: Thursday, February 27, 2003 5:41 PM >To: dba-SQLServer at databaseadvisors.com >Subject: [dba-SQLServer]Importing txt file > > >In my A97 database I have a line which imports some raw data into a >temporary table - > >DoCmd.TransferText acImportDelim, "CVRAW", "ttmpCVRaw", C\Data\RawData.txt, >True > >Now that I have an AXP connected to SQL2K this doesn't work. What is the >method for importing into a table? From here I will be using a sproc to >manipulate the data into the right format to be added to another table. > > >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 > >_______________________________________________ >dba-SQLServer mailing list >dba-SQLServer at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-sqlserver >http://www.databaseadvisors.com From artful at rogers.com Fri Feb 28 14:23:31 2003 From: artful at rogers.com (Arthur Fuller) Date: Fri, 28 Feb 2003 15:23:31 -0500 Subject: [dba-SQLServer]Restore from Command Line? In-Reply-To: <002b01c2df40$a9bcf830$b615010a@FHTAPIA> Message-ID: <03f601c2df67$43252ad0$8e01a8c0@Rock> I have assured that I can assume that MSDE is both installed and running. The real issue is how to restore the database without user intervention. I have been assured that on all target boxes the data directory and the MSDE installation will be identical (the defaults on drive c:). So I'm thinking that the tiny-Access-app with a call to sp_attach_db_single is the way to go.... -----Original Message----- From: dba-sqlserver-admin at databaseadvisors.com [mailto:dba-sqlserver-admin at databaseadvisors.com] On Behalf Of Francisco H Tapia Sent: February 28, 2003 10:47 AM To: dba-sqlserver at databaseadvisors.com Subject: Re: [dba-SQLServer]Restore from Command Line? I have some SQL-DMO code lying around here that checks for a running instance of SQL (msde) and if the local box does not have it running it starts the service... I'll fish around for it today and forward it when I find it... in any case it "should" help you...as for a command line restore... I have not tried this but just a wag... using a batch file to log into osql might be help out in this situation but of course this assumes that SQL (msde) is running already... -Francisco http://rcm.netfirms.com ----- Original Message ----- From: "Arthur Fuller" To: Cc: "Djabarov, Robert" Sent: Friday, February 28, 2003 6:51 AM Subject: RE: [dba-SQLServer]Restore from Command Line? : I have searched BOL looking for this, so far without success. As I consider : the problem, however, a simple command-line restore may not solve it. The : target machine is assumed to have a running instance of MSDE on it, but not : EM. I noticed that you cannot use the Access ADP backup and restore menu : options on this box. I may have to go the sp_attach_db route. I suppose I : can whip up a very simple Access app that does nothing but exec sp_attach_db : and the filename. : Meanwhile, if you can give me a more accurate pointer to the BOL piece you : meant, I'd appreciate it. : : -----Original Message----- : From: dba-sqlserver-admin at databaseadvisors.com : [mailto:dba-sqlserver-admin at databaseadvisors.com] On Behalf Of Djabarov, : Robert : Sent: February 26, 2003 12:22 PM : To: dba-sqlserver at databaseadvisors.com : Subject: RE: [dba-SQLServer]Restore from Command Line? : : bol : : ______________________________________________________ : Robert Djabarov : Certified MS SQL Server DBA : Certified MS SQL Server Programmer : Certified MS VB Programmer : * (210) 913-3148 - phone : * (210) 753-3148 - pager : <*************************************************************************** : **********************> : : -----Original Message----- : From: dba-sqlserver-admin at databaseadvisors.com : [mailto:dba-sqlserver-admin at databaseadvisors.com] On Behalf Of Arthur : Fuller : Sent: Wednesday, February 26, 2003 10:37 AM : To: dba-sqlserver at databaseadvisors.com : Subject: [dba-SQLServer]Restore from Command Line? : : Can I restore a database from the command line (i.e. without any user : intervention)? The P&D wizard offers the option to execute any command once : installation is finished. The CD will contain a zip of a database backup, : and I want to restore it to a known name without any user intervention. : TIA, : Arthur : : : _______________________________________________ : dba-SQLServer mailing list : dba-SQLServer at databaseadvisors.com : http://databaseadvisors.com/mailman/listinfo/dba-sqlserver : http://www.databaseadvisors.com : _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From my.lists at verizon.net Fri Feb 28 15:05:44 2003 From: my.lists at verizon.net (Francisco H Tapia) Date: Fri, 28 Feb 2003 13:05:44 -0800 Subject: [dba-SQLServer]Restore from Command Line? References: <03f601c2df67$43252ad0$8e01a8c0@Rock> Message-ID: <00b201c2df6d$2922c8d0$b615010a@FHTAPIA> Then I would run a command from your Access ADP that connects to the MSDE and does nothing else but that... With CMD .Commandtext = "sp_attach .... 'more code End with -Francisco http://rcm.netfirms.com ----- Original Message ----- From: "Arthur Fuller" To: Sent: Friday, February 28, 2003 12:23 PM Subject: RE: [dba-SQLServer]Restore from Command Line? : I have assured that I can assume that MSDE is both installed and running. : The real issue is how to restore the database without user intervention. I : have been assured that on all target boxes the data directory and the MSDE : installation will be identical (the defaults on drive c:). So I'm thinking : that the tiny-Access-app with a call to sp_attach_db_single is the way to : go.... : : -----Original Message----- : From: dba-sqlserver-admin at databaseadvisors.com : [mailto:dba-sqlserver-admin at databaseadvisors.com] On Behalf Of Francisco H : Tapia : Sent: February 28, 2003 10:47 AM : To: dba-sqlserver at databaseadvisors.com : Subject: Re: [dba-SQLServer]Restore from Command Line? : : I have some SQL-DMO code lying around here that checks for a running : instance of SQL (msde) and if the local box does not have it running it : starts the service... I'll fish around for it today and forward it when I : find it... in any case it "should" help you...as for a command line : restore... I have not tried this but just a wag... using a batch file to log : into osql might be help out in this situation but of course this assumes : that SQL (msde) is running already... : : -Francisco : http://rcm.netfirms.com : ----- Original Message ----- : From: "Arthur Fuller" : To: : Cc: "Djabarov, Robert" : Sent: Friday, February 28, 2003 6:51 AM : Subject: RE: [dba-SQLServer]Restore from Command Line? : : : : I have searched BOL looking for this, so far without success. As I : consider : : the problem, however, a simple command-line restore may not solve it. The : : target machine is assumed to have a running instance of MSDE on it, but : not : : EM. I noticed that you cannot use the Access ADP backup and restore menu : : options on this box. I may have to go the sp_attach_db route. I suppose I : : can whip up a very simple Access app that does nothing but exec : sp_attach_db : : and the filename. : : Meanwhile, if you can give me a more accurate pointer to the BOL piece you : : meant, I'd appreciate it. : : : : -----Original Message----- : : From: dba-sqlserver-admin at databaseadvisors.com : : [mailto:dba-sqlserver-admin at databaseadvisors.com] On Behalf Of Djabarov, : : Robert : : Sent: February 26, 2003 12:22 PM : : To: dba-sqlserver at databaseadvisors.com : : Subject: RE: [dba-SQLServer]Restore from Command Line? : : : : bol : : : : ______________________________________________________ : : Robert Djabarov : : Certified MS SQL Server DBA : : Certified MS SQL Server Programmer : : Certified MS VB Programmer : : * (210) 913-3148 - phone : : * (210) 753-3148 - pager : : : <*************************************************************************** : : **********************> : : : : -----Original Message----- : : From: dba-sqlserver-admin at databaseadvisors.com : : [mailto:dba-sqlserver-admin at databaseadvisors.com] On Behalf Of Arthur : : Fuller : : Sent: Wednesday, February 26, 2003 10:37 AM : : To: dba-sqlserver at databaseadvisors.com : : Subject: [dba-SQLServer]Restore from Command Line? : : : : Can I restore a database from the command line (i.e. without any user : : intervention)? The P&D wizard offers the option to execute any command : once : : installation is finished. The CD will contain a zip of a database backup, : : and I want to restore it to a known name without any user intervention. : : TIA, : : Arthur : : : : : : _______________________________________________ : : dba-SQLServer mailing list : : dba-SQLServer at databaseadvisors.com : : http://databaseadvisors.com/mailman/listinfo/dba-sqlserver : : http://www.databaseadvisors.com : : : : : _______________________________________________ : dba-SQLServer mailing list : dba-SQLServer at databaseadvisors.com : http://databaseadvisors.com/mailman/listinfo/dba-sqlserver : http://www.databaseadvisors.com : : _______________________________________________ : dba-SQLServer mailing list : dba-SQLServer at databaseadvisors.com : http://databaseadvisors.com/mailman/listinfo/dba-sqlserver : http://www.databaseadvisors.com :