From fhtapia at gmail.com Fri Apr 1 13:45:31 2005 From: fhtapia at gmail.com (Francisco Tapia) Date: Fri, 1 Apr 2005 11:45:31 -0800 Subject: [dba-SQLServer] New SQL Server Registration problem In-Reply-To: <39cb22f30503311426340c265a@mail.gmail.com> References: <39cb22f3050330145440a38e50@mail.gmail.com> <39cb22f30503311426340c265a@mail.gmail.com> Message-ID: AH, so you're using SP2... Can you check if you still have the Microsoft firewall enabled... and if so can you configure it so that it allows Enterprise Manager through? On Mar 31, 2005 2:26 PM, Steve Erbach wrote: > > Francisco, > > Component checker shows v. 2.8 SP1 for MDAC. I'm running Windows XP SP2. > > Steve Erbach > > > On Thu, 31 Mar 2005 08:35:52 -0800, Francisco Tapia > wrote: > > what MDAC version do you have on your pc? (if you do not know for sure > > visit microsoft and get the component checker) > > > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > > -- -Francisco http://pcthis.blogspot.com |PC news with out the jargon! http://sqlthis.blogspot.com | Tsql and More... From Susan.Klos at fldoe.org Fri Apr 1 14:04:03 2005 From: Susan.Klos at fldoe.org (Klos, Susan) Date: Fri, 1 Apr 2005 15:04:03 -0500 Subject: [dba-SQLServer] How do I create an update query with a join Message-ID: <01B619CB8F6C8C478EDAC39191AEC51E04151777@doesefpeml02.eus.fldoe.int> I tried this (which I got from Access): UPDATE tblMembership05 INNER join tblCorrections05 ON (tblMembership05.StudentID = tblCorrections05.SID) AND (tblMembership05.SchlNo = tblCorrections05.SchlEnrl) AND (tblMembership05.DistrictNo = tblCorrections05.DistEnrl) SET tblCorrections05.PassFCATMathdt = Null WHERE (((tblMembership05.MMetGradflg)="1")) I get this error: Server: Msg 156, Level 15, State 1, Line 2 Incorrect syntax near the keyword 'INNER'. Server: Msg 170, Level 15, State 1, Line 7 Line 7: Incorrect syntax near 'tblMembership05'. Any help will be greatly appreciated. Susan Klos Senior Database Analyst Evaluation and Reporting Florida Department of Education 850-245-0708 sc 205-0708 From fhtapia at gmail.com Fri Apr 1 14:10:23 2005 From: fhtapia at gmail.com (Francisco Tapia) Date: Fri, 1 Apr 2005 12:10:23 -0800 Subject: [dba-SQLServer] How do I create an update query with a join In-Reply-To: <01B619CB8F6C8C478EDAC39191AEC51E04151777@doesefpeml02.eus.fldoe.int> References: <01B619CB8F6C8C478EDAC39191AEC51E04151777@doesefpeml02.eus.fldoe.int> Message-ID: sounds like you wanna do it this way: UPDATE tblCorrections05 SET tblCorrections05.PassFCATMathdt = Null FROM tblCorrections05 INNER join tblCorrections05 ON (tblMembership05.StudentID = tblCorrections05.SID) AND (tblMembership05.SchlNo = tblCorrections05.SchlEnrl) AND (tblMembership05.DistrictNo = tblCorrections05.DistEnrl) WHERE (((tblMembership05.MMetGradflg)="1")) On Apr 1, 2005 12:04 PM, Klos, Susan wrote: > > I tried this (which I got from Access): > > UPDATE tblMembership05 > > INNER join tblCorrections05 > > ON (tblMembership05.StudentID = tblCorrections05.SID) > > AND (tblMembership05.SchlNo = tblCorrections05.SchlEnrl) > > AND (tblMembership05.DistrictNo = tblCorrections05.DistEnrl) > > SET tblCorrections05.PassFCATMathdt = Null > > WHERE (((tblMembership05.MMetGradflg)="1")) > > I get this error: > > Server: Msg 156, Level 15, State 1, Line 2 > > Incorrect syntax near the keyword 'INNER'. > > Server: Msg 170, Level 15, State 1, Line 7 > > Line 7: Incorrect syntax near 'tblMembership05'. > > Any help will be greatly appreciated. > > Susan Klos > > Senior Database Analyst > > Evaluation and Reporting > > Florida Department of Education > > 850-245-0708 > > sc 205-0708 > > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > > -- -Francisco http://pcthis.blogspot.com |PC news with out the jargon! http://sqlthis.blogspot.com | Tsql and More... From erbachs at gmail.com Fri Apr 1 16:31:28 2005 From: erbachs at gmail.com (Steve Erbach) Date: Fri, 1 Apr 2005 16:31:28 -0600 Subject: [dba-SQLServer] New SQL Server Registration problem In-Reply-To: References: <39cb22f3050330145440a38e50@mail.gmail.com> <39cb22f30503311426340c265a@mail.gmail.com> Message-ID: <39cb22f305040114316ac5c043@mail.gmail.com> Francisco, The Windows firewall is disabled and I use ZoneAlarm Pro. There are two SQL Servers that I connect to with EM that are based at my web host, CrystalTech, and I have no issues with them. I have ZoneAlarm configured to treat the SQL Server that I'm trying to connect with as par of the Trusted zone. As I said, I can connect to this SQL Server database through Access 2000 and Access 2003, but NOT with EM. Steve Erbach On Apr 1, 2005 1:45 PM, Francisco Tapia wrote: > AH, so you're using SP2... Can you check if you still have the Microsoft > firewall enabled... and if so can you configure it so that it allows > Enterprise Manager through? > From prosoft6 at hotmail.com Mon Apr 4 10:19:02 2005 From: prosoft6 at hotmail.com (Julie Reardon-Taylor) Date: Mon, 04 Apr 2005 11:19:02 -0400 Subject: [dba-SQLServer] Take Database Offline and Delete Message-ID: Hi, I have two "test" databases, and two old databases that I would like to store on tape. These log files have grown out of control, and I need to get the mdf and ldf files off of the system. Tried shrinking through Enterprise Manager, and it didn't do a thing. Backed up three of the transactions logs, and they didnt' shrink. Finally, after backing up the databases to tape, I went into Enterprise Manager, took the databases offline, then deleted the databases. However, all of the ldf and mdf files still show in my sql server data file? How is this possible? They do not show up in Enterprise Manager-when deleting the databases, I unchecked "remove history...........". Could that be the reason? Is it now safe to go into the sql server folder and just delete these files? Only three of my transaction logs backed up. If I have a "full" backup of the databases mdf file, can I restore the database without the ldf file? This is so frustrating! Julie Reardon-Taylor PRO-SOFT OF NY, INC. 44 Public Square Suite #5 Watertown, NY 13601 (315) 785-0319 www.pro-soft.net From mikedorism at adelphia.net Mon Apr 4 10:46:57 2005 From: mikedorism at adelphia.net (Mike & Doris Manning) Date: Mon, 4 Apr 2005 11:46:57 -0400 Subject: [dba-SQLServer] Take Database Offline and Delete In-Reply-To: Message-ID: <000001c5392d$8b19c2c0$0b08a845@hargrove.internal> They are still there because you unchecked "remove history". As long as you have a full backup, you can restore the databases without an LDF. It will just create one for you. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Julie Reardon-Taylor Sent: Monday, April 04, 2005 11:19 AM To: dba-SQLServer at databaseadvisors.com Subject: [dba-SQLServer] Take Database Offline and Delete Hi, I have two "test" databases, and two old databases that I would like to store on tape. These log files have grown out of control, and I need to get the mdf and ldf files off of the system. Tried shrinking through Enterprise Manager, and it didn't do a thing. Backed up three of the transactions logs, and they didnt' shrink. Finally, after backing up the databases to tape, I went into Enterprise Manager, took the databases offline, then deleted the databases. However, all of the ldf and mdf files still show in my sql server data file? How is this possible? They do not show up in Enterprise Manager-when deleting the databases, I unchecked "remove history...........". Could that be the reason? Is it now safe to go into the sql server folder and just delete these files? Only three of my transaction logs backed up. If I have a "full" backup of the databases mdf file, can I restore the database without the ldf file? This is so frustrating! Julie Reardon-Taylor PRO-SOFT OF NY, INC. 44 Public Square Suite #5 Watertown, NY 13601 (315) 785-0319 www.pro-soft.net _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From prosoft6 at hotmail.com Mon Apr 4 11:00:09 2005 From: prosoft6 at hotmail.com (Julie Reardon-Taylor) Date: Mon, 04 Apr 2005 12:00:09 -0400 Subject: [dba-SQLServer] Take Database Offline and Delete - How about msllockdb? In-Reply-To: <000001c5392d$8b19c2c0$0b08a845@hargrove.internal> Message-ID: My transaction log for my msllockdb file is growning too. I know that backing up the transaction log is supposed to shrink this log file, but it doesn't seem to be working. Can you recommend a way to shrink this file? What are the correct steps? Back up the trans log, then backup the database? I shouldn't have to detach and then shrink and re-attach should I? Julie Reardon-Taylor PRO-SOFT OF NY, INC. 44 Public Square Suite #5 Watertown, NY 13601 (315) 785-0319 www.pro-soft.net From tuxedo_man at hotmail.com Mon Apr 4 22:36:20 2005 From: tuxedo_man at hotmail.com (Billy Pang) Date: Tue, 05 Apr 2005 03:36:20 +0000 Subject: [dba-SQLServer] New SQL Server Registration problem In-Reply-To: <39cb22f3050330145440a38e50@mail.gmail.com> Message-ID: afaik, you have everything you need to connect to the db. however, the db login you are using to connect to the SS via EM has a database set as default but the specified user no longer has access to that db. i'd find some way of setting that default db of that login to a db that login has access to (eg. tempdb). maybe use the sp_defaultdb sproc. HTH Billy >From: Steve Erbach >Reply-To: dba-sqlserver at databaseadvisors.com >To: dba-sqlserver at databaseadvisors.com >Subject: [dba-SQLServer] New SQL Server Registration problem >Date: Wed, 30 Mar 2005 16:54:57 -0600 > >Dear Group, > >I'm baffled. I have an Access 2000 ADP that connects to a certain SQL >Server database. I have an Access 2000 MDB that connects via ODBC to >the same SQL Server database. I have an Access 2003 ADP that connects >to the same database. I have an ASP.NET project that connects to the >same database. > >My problem is that I can't seem to connect to the database using SQL >Server Enterprise Manager. I go to add a new Registration and up pops >the 'Registered SQL Server Properties' dialog box. I fill in the IP >address of the SQL Server and select the 'Use SQL Server >Authentication' button, and type in the Login Name and Password. When >I click OK I get the following message: > >----------------------------------------------- >SQL Server Enterprise Manager >----------------------------------------------- >? SQL Server registration failed because of the connection failure >displayed below. Do you wish to Modify anyway? > >Cannot open user default database. Login failed. >----------------------------------------------- > >I've used Enterprise Manager to set up four other SQL Server >connections that all work fine. Any ideas why I can't get EM to create >a new registration? > >-- >Regards, > >Steve Erbach >Scientific Marketing >Neenah, WI >www.swerbach.com >Security Page: www.swerbach.com/security >_______________________________________________ >dba-SQLServer mailing list >dba-SQLServer at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-sqlserver >http://www.databaseadvisors.com > From tuxedo_man at hotmail.com Mon Apr 4 22:47:05 2005 From: tuxedo_man at hotmail.com (Billy Pang) Date: Tue, 05 Apr 2005 03:47:05 +0000 Subject: [dba-SQLServer] RE: ADD Constraint In-Reply-To: <0IE600LY3IW77CZ0@vms040.mailsrvcs.net> Message-ID: Hey Ken: Not too sure if you can alter column and add a new constraint in a single ddl statement. If you want to create a default constraint (assuming the column is already there), i'd use the following format: ALTER TABLE [TableName] ADD CONSTRAINT [AddOwnerDflt] DEFAULT (0) FOR [ColumnName] with values; If, for an existing table, you want to "create" a new column with a default in it, it'd look something like this: ALTER TABLE [TableName] ADD yocolumnname datatype null CONSTRAINT [AddOwnerDflt] DEFAULT (0) with values; HTH Billy >From: "Ken Stoker" >Reply-To: dba-sqlserver at databaseadvisors.com >To: >Subject: [dba-SQLServer] RE: ADD Constraint >Date: Wed, 30 Mar 2005 11:19:37 -0800 > >David, > >Thanks for your reply, but I had tried that already and received and error >stating there was a syntax error near ADD. Am I missing a comma or a >bracket or something like that? > >Ken > >-----Original Message----- >From: David Lewis [mailto:DavidL at sierranevada.com] >Sent: Wednesday, March 30, 2005 10:22 AM >To: dba-sqlserver at databaseadvisors.com >Cc: kens.programming at verizon.net >Subject: ADD Constraint > > >Not sure, but I think you need ADD CONSTRAINT > >D. Lewis > > >Message: 1 >Date: Tue, 29 Mar 2005 11:53:29 -0800 >From: "Ken Stoker" >Subject: [dba-SQLServer] Adding a default to an existing column >To: >Message-ID: <0IE400I33PSVKK00 at vms042.mailsrvcs.net> >Content-Type: text/plain; charset="windows-1250" > >I have put together the following to add a default to an existing table. >It is telling me there is a syntax error near CONSTRAINT. I have tried >many different things, this being the latest, getting similar problems. > > > > >ALTER TABLE TableName > >ALTER COLUMN ColumnName UserDefinedType NULL > >CONSTRAINT AddOwnerDflt > >DEFAULT '100000' WITH VALUES > >GO > > > >Thanks for any help. > > > >Ken > >-- >No virus found in this incoming message. >Checked by AVG Anti-Virus. >Version: 7.0.308 / Virus Database: 266.8.6 - Release Date: 3/30/2005 > > >-- >No virus found in this outgoing message. >Checked by AVG Anti-Virus. >Version: 7.0.308 / Virus Database: 266.8.6 - Release Date: 3/30/2005 > > >_______________________________________________ >dba-SQLServer mailing list >dba-SQLServer at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-sqlserver >http://www.databaseadvisors.com > From tuxedo_man at hotmail.com Mon Apr 4 22:54:23 2005 From: tuxedo_man at hotmail.com (Billy Pang) Date: Tue, 05 Apr 2005 03:54:23 +0000 Subject: [dba-SQLServer] Take Database Offline and Delete - How aboutmsllockdb? In-Reply-To: Message-ID: Hi Julie: You have to use the DBCC SHRINKFILE command to shrink the physical size of a transaction log. But before shrinking the tlog file, you have truncate parts of the tlog via the BACKUP LOG command. Please refer to BOL for more information (under topic "shrinking transaction logs") HTH Billy >From: "Julie Reardon-Taylor" >Reply-To: dba-sqlserver at databaseadvisors.com >To: dba-sqlserver at databaseadvisors.com >Subject: RE: [dba-SQLServer] Take Database Offline and Delete - How >aboutmsllockdb? >Date: Mon, 04 Apr 2005 12:00:09 -0400 > >My transaction log for my msllockdb file is growning too. I know that >backing up the transaction log is supposed to shrink this log file, but it >doesn't seem to be working. Can you recommend a way to shrink this file? >What are the correct steps? Back up the trans log, then backup the >database? I shouldn't have to detach and then shrink and re-attach should >I? > > > >Julie Reardon-Taylor >PRO-SOFT OF NY, INC. >44 Public Square Suite #5 >Watertown, NY 13601 >(315) 785-0319 >www.pro-soft.net > > >_______________________________________________ >dba-SQLServer mailing list >dba-SQLServer at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-sqlserver >http://www.databaseadvisors.com > From JRojas at tnco-inc.com Tue Apr 5 10:44:32 2005 From: JRojas at tnco-inc.com (Joe Rojas) Date: Tue, 5 Apr 2005 11:44:32 -0400 Subject: [dba-SQLServer] Licensing Question for SQL Sever 2000 Message-ID: <0CC84C9461AE6445AD5A602001C41C4B05A1F9@mercury.tnco-inc.com> Hi All, I don't know if any one here is a licensing guru for SQL Server but I was wondering how people deal with the following scenario. If I have a web server running IIS that connects to a server running SQL Server 2000 by using the anonymous account in IIS and have 20 users who use the web application on the web server for 5 mins a month, do I need a CAL for each of the users (20 User CALs)? I did read the FAQ on MS's site about Multi-Tier environments, which in essence answers my question with a resounding YES I DO, but I wanted to know how people deal with this scenario in the "real" world. Thanks! JR This electronic transmission is strictly confidential to TNCO, Inc. and intended solely for the addressee. It may contain information which is covered by legal, professional, or other privileges. If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy, or take any action in reliance on this transmission. If you have received this transmission in error, please notify the sender as soon as possible and destroy this message. While TNCO, Inc. uses virus protection, the recipient should check this email and any attachments for the presence of viruses. TNCO, Inc. accepts no liability for any damage caused by any virus transmitted by this email. From fhtapia at gmail.com Tue Apr 5 10:53:39 2005 From: fhtapia at gmail.com (Francisco Tapia) Date: Tue, 5 Apr 2005 08:53:39 -0700 Subject: [dba-SQLServer] Licensing Question for SQL Sever 2000 In-Reply-To: <0CC84C9461AE6445AD5A602001C41C4B05A1F9@mercury.tnco-inc.com> References: <0CC84C9461AE6445AD5A602001C41C4B05A1F9@mercury.tnco-inc.com> Message-ID: It was my understanding that if your Sql server is hit by any Internet connections then you "had" to go w/ a per processor license. On Apr 5, 2005 8:44 AM, Joe Rojas wrote: > > Hi All, > > I don't know if any one here is a licensing guru for SQL Server but I was > wondering how people deal with the following scenario. > > If I have a web server running IIS that connects to a server running SQL > Server 2000 by using the anonymous account in IIS and have 20 users who > use > the web application on the web server for 5 mins a month, do I need a CAL > for each of the users (20 User CALs)? > I did read the FAQ on MS's site about Multi-Tier environments, which in > essence answers my question with a resounding YES I DO, but I wanted to > know > how people deal with this scenario in the "real" world. > > Thanks! > JR > > -- -Francisco http://pcthis.blogspot.com |PC news with out the jargon! http://sqlthis.blogspot.com | Tsql and More... From erbachs at gmail.com Wed Apr 6 07:00:00 2005 From: erbachs at gmail.com (Steve Erbach) Date: Wed, 6 Apr 2005 07:00:00 -0500 Subject: [dba-SQLServer] New SQL Server Registration problem In-Reply-To: References: <39cb22f3050330145440a38e50@mail.gmail.com> Message-ID: <39cb22f30504060500599b872c@mail.gmail.com> Billy, Hmmm, this is making some sense to me. What's funny to me about this situation is that, with ODBC, you can select a default database from the list that's presented to you once the connection is established to the server. With EM that choice is not available to you. Is the sp_defaultdb sproc something I could execute with the SQL Server command line interface? I forget what it's called at the moment. I mean login via the command line and maybe run sp_defaultdb? Steve Erbach On Apr 4, 2005 10:36 PM, Billy Pang wrote: > afaik, you have everything you need to connect to the db. however, the db > login you are using to connect to the SS via EM has a database set as > default but the specified user no longer has access to that db. i'd find > some way of setting that default db of that login to a db that login has > access to (eg. tempdb). maybe use the sp_defaultdb sproc. > > HTH > > Billy > From mwhittinghill at symphonyinfo.com Wed Apr 6 07:00:27 2005 From: mwhittinghill at symphonyinfo.com (Mark Whittinghill) Date: Wed, 6 Apr 2005 07:00:27 -0500 Subject: [dba-SQLServer] automated response Message-ID: <10504060700.AA108798658@symphonyinfo.com> I am on vacation and will be back in the office Monday, April 11. From erbachs at gmail.com Wed Apr 6 10:25:09 2005 From: erbachs at gmail.com (Steve Erbach) Date: Wed, 6 Apr 2005 10:25:09 -0500 Subject: [dba-SQLServer] New SQL Server Registration problem In-Reply-To: References: <39cb22f3050330145440a38e50@mail.gmail.com> Message-ID: <39cb22f305040608255191bcff@mail.gmail.com> Billy, Hey! Using OSQL to connect to the database (since I could specify the default database in the command line) I was, indeed, able to use the sp_defaultdb sproc to change the default db. Now -- finally -- I was able to connect to the database using Enterprise Manager! Thank you very much. Seems funny, though, that EM doesn't seem to have any built-in way of specifying the default db when a new Registration is created. In any event, I'm set. Steve Erbach Neenah, WI On Apr 4, 2005 10:36 PM, Billy Pang wrote: > afaik, you have everything you need to connect to the db. however, the db > login you are using to connect to the SS via EM has a database set as > default but the specified user no longer has access to that db. i'd find > some way of setting that default db of that login to a db that login has > access to (eg. tempdb). maybe use the sp_defaultdb sproc. > > HTH > > Billy From tuxedo_man at hotmail.com Thu Apr 7 03:01:21 2005 From: tuxedo_man at hotmail.com (Billy Pang) Date: Thu, 07 Apr 2005 08:01:21 +0000 Subject: [dba-SQLServer] New SQL Server Registration problem In-Reply-To: <39cb22f305040608255191bcff@mail.gmail.com> Message-ID: Yeah, EM doesn't provide way of specifying default db. Therefore the default db of login must be changed. EM suits most of my needs most of the time but sometimes the interface lacks one or two things. The latest example I can think of is specifying a password when you backup or restore a db from EM. That is, if you want to backup a db with password option you can't use EM. Or if you want to restore a db from file that has password, you can't use EM. Billy >From: Steve Erbach >Reply-To: dba-sqlserver at databaseadvisors.com >To: dba-sqlserver at databaseadvisors.com >Subject: Re: [dba-SQLServer] New SQL Server Registration problem >Date: Wed, 6 Apr 2005 10:25:09 -0500 > >Billy, > >Hey! Using OSQL to connect to the database (since I could specify the >default database in the command line) I was, indeed, able to use the >sp_defaultdb sproc to change the default db. Now -- finally -- I was >able to connect to the database using Enterprise Manager! Thank you >very much. > >Seems funny, though, that EM doesn't seem to have any built-in way of >specifying the default db when a new Registration is created. In any >event, I'm set. > >Steve Erbach >Neenah, WI > >On Apr 4, 2005 10:36 PM, Billy Pang wrote: > > afaik, you have everything you need to connect to the db. however, the >db > > login you are using to connect to the SS via EM has a database set as > > default but the specified user no longer has access to that db. i'd >find > > some way of setting that default db of that login to a db that login has > > access to (eg. tempdb). maybe use the sp_defaultdb sproc. > > > > HTH > > > > Billy >_______________________________________________ >dba-SQLServer mailing list >dba-SQLServer at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-sqlserver >http://www.databaseadvisors.com > From tuxedo_man at hotmail.com Thu Apr 7 03:18:13 2005 From: tuxedo_man at hotmail.com (Billy Pang) Date: Thu, 07 Apr 2005 08:18:13 +0000 Subject: [dba-SQLServer] using msde 2000 in a web application Message-ID: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnmsde2kwrk/html/msde2000webapp.asp From erbachs at gmail.com Thu Apr 7 07:10:08 2005 From: erbachs at gmail.com (Steve Erbach) Date: Thu, 7 Apr 2005 07:10:08 -0500 Subject: [dba-SQLServer] New SQL Server Registration problem In-Reply-To: References: <39cb22f305040608255191bcff@mail.gmail.com> Message-ID: <39cb22f305040705105b7b2b43@mail.gmail.com> Billy, Do you recommend or know of any EM replacements? I find it useful to be able to see, for instance, all the databases on a server or all the users for a database. Is there such a thing as an EM replacement? Steve Erbach On Apr 7, 2005 3:01 AM, Billy Pang wrote: > Yeah, EM doesn't provide way of specifying default db. Therefore the > default db of login must be changed. > > EM suits most of my needs most of the time but sometimes the interface lacks > one or two things. The latest example I can think of is specifying a > password when you backup or restore a db from EM. That is, if you want to > backup a db with password option you can't use EM. Or if you want to > restore a db from file that has password, you can't use EM. > > Billy From erbachs at gmail.com Thu Apr 7 10:07:03 2005 From: erbachs at gmail.com (Steve Erbach) Date: Thu, 7 Apr 2005 10:07:03 -0500 Subject: [dba-SQLServer] SHAPE question Message-ID: <39cb22f305040708074df4aa23@mail.gmail.com> Dear Group, I have never worked with the SHAPE command before. It, of course, is scantily documented in BOL. I understand the concept and I have an example of its use in an ASP application I'm modifying. But where I'm having trouble is in debugging this example. It doesn't appear to work any longer. That is, I have a printed sample of what the SHAPE query produces once it's been manipulated by ASP to format the output. I understand how the formatting is grabbing different hierarchical blocks of data and looping through the rows, etc. But now that I've connected the SHAPE query to my data source, the ASP code fails. I've tried copying the whole shebang into Query Analyzer, but that doesn't seem to be the kind of thing it handles. I believe that SHAPE only applies to ADO objects; that is, if I create an ADODB.Recordset object and apply the SHAPE query to it with the Open method, then it's supposed to work. Well, it's failing at that Open method. Here's the query: SHAPE { SELECT DISTINCT ProjectID, ProjName, BidDate, BidTime, PRLocation, City, State FROM Projects1 INNER JOIN Counties ON Projects1.countyid = counties.countyid WHERE (((Projects1.BidDate)='4/8/2005') AND (PhaseID != 7) AND (Counties.Region=5)) ORDER BY Projects1.BidTime, Projects1.ProjectID } APPEND( { SELECT AAMNumber, AAMInfo, ProjectID FROM ProjectAddenda ORDER BY AAMNumber } AS Addenda RELATE ProjectID TO ProjectID ), ((SHAPE {SELECT CompanyID, CompanyTypeID, ProjectID FROM Projects2 ORDER BY CompanyTypeID} AS Company APPEND({SELECT Company, Phone, Fax, CompanyID FROM Company1} AS Detail RELATE CompanyID TO CompanyID)) RELATE ProjectID TO ProjectID) Is it the way the second SHAPE command is tacked onto the end of the first one after the comma? I'm stumped. -- Regards, Steve Erbach Scientific Marketing Neenah, WI www.swerbach.com Security Page: www.swerbach.com/security From cfoust at infostatsystems.com Thu Apr 7 12:01:19 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 7 Apr 2005 10:01:19 -0700 Subject: [dba-SQLServer] SHAPE question Message-ID: SHAPE applies to ADO recordsets. I suspect part of your problem may be in this line: RELATE ProjectID TO ProjectID When I use SHAPE, I always alias each expression so I can specify the sources for the join fields. Charlotte Foust -----Original Message----- From: Steve Erbach [mailto:erbachs at gmail.com] Sent: Thursday, April 07, 2005 8:07 AM To: dba-sqlserver at databaseadvisors.com Subject: [dba-SQLServer] SHAPE question Dear Group, I have never worked with the SHAPE command before. It, of course, is scantily documented in BOL. I understand the concept and I have an example of its use in an ASP application I'm modifying. But where I'm having trouble is in debugging this example. It doesn't appear to work any longer. That is, I have a printed sample of what the SHAPE query produces once it's been manipulated by ASP to format the output. I understand how the formatting is grabbing different hierarchical blocks of data and looping through the rows, etc. But now that I've connected the SHAPE query to my data source, the ASP code fails. I've tried copying the whole shebang into Query Analyzer, but that doesn't seem to be the kind of thing it handles. I believe that SHAPE only applies to ADO objects; that is, if I create an ADODB.Recordset object and apply the SHAPE query to it with the Open method, then it's supposed to work. Well, it's failing at that Open method. Here's the query: SHAPE { SELECT DISTINCT ProjectID, ProjName, BidDate, BidTime, PRLocation, City, State FROM Projects1 INNER JOIN Counties ON Projects1.countyid = counties.countyid WHERE (((Projects1.BidDate)='4/8/2005') AND (PhaseID != 7) AND (Counties.Region=5)) ORDER BY Projects1.BidTime, Projects1.ProjectID } APPEND( { SELECT AAMNumber, AAMInfo, ProjectID FROM ProjectAddenda ORDER BY AAMNumber } AS Addenda RELATE ProjectID TO ProjectID ), ((SHAPE {SELECT CompanyID, CompanyTypeID, ProjectID FROM Projects2 ORDER BY CompanyTypeID} AS Company APPEND({SELECT Company, Phone, Fax, CompanyID FROM Company1} AS Detail RELATE CompanyID TO CompanyID)) RELATE ProjectID TO ProjectID) Is it the way the second SHAPE command is tacked onto the end of the first one after the comma? I'm stumped. -- Regards, Steve Erbach Scientific Marketing Neenah, WI www.swerbach.com Security Page: www.swerbach.com/security _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From erbachs at gmail.com Thu Apr 7 16:43:30 2005 From: erbachs at gmail.com (Steve Erbach) Date: Thu, 7 Apr 2005 16:43:30 -0500 Subject: [dba-SQLServer] SHAPE question In-Reply-To: References: Message-ID: <39cb22f305040714435cf547df@mail.gmail.com> Charlotte, How do you test SHAPE statements? Query Analyzer can't handle them. Do you plunk the SHAPE statement into a bit of ADO code to open your connection and feed the SHAPE statement to it and get a Recordset back? It just seems so clunky when compared to Query Analyzer. This SHAPE statement looks like it forms a hierarchy like this: 1 Project 1.1 Addenda 1.2 Companies 1.2.1 Detail (phone numbers) I'm curious about the comma that appears after the first APPEND statement and before the second SHAPE command. I don't have ANY documentation on how to string SHAPEs and APPENDs and RELATEs together, do you? You mentioned using Aliases. You're talking about aliases for table names, yes? Like this: FROM Projects1 P INNER JOIN Counties C ... etc. Right? Steve Erbach On Apr 7, 2005 12:01 PM, Charlotte Foust wrote: > SHAPE applies to ADO recordsets. I suspect part of your problem may be > in this line: > > RELATE ProjectID TO ProjectID > > When I use SHAPE, I always alias each expression so I can specify the > sources for the join fields. > > Charlotte Foust > From erbachs at gmail.com Thu Apr 7 16:46:50 2005 From: erbachs at gmail.com (Steve Erbach) Date: Thu, 7 Apr 2005 16:46:50 -0500 Subject: [dba-SQLServer] SHAPE question In-Reply-To: References: Message-ID: <39cb22f3050407144619315cff@mail.gmail.com> Charlotte, Well, I've found something on SHAPE on microsoft.com. Had to look up "Hierarchical Recordsets." "SHAPE" led me off into the graphics area... Steve Erbach On Apr 7, 2005 12:01 PM, Charlotte Foust wrote: > SHAPE applies to ADO recordsets. I suspect part of your problem may be > in this line: > > RELATE ProjectID TO ProjectID > > When I use SHAPE, I always alias each expression so I can specify the > sources for the join fields. > > Charlotte Foust > From erbachs at gmail.com Thu Apr 7 17:10:07 2005 From: erbachs at gmail.com (Steve Erbach) Date: Thu, 7 Apr 2005 17:10:07 -0500 Subject: [dba-SQLServer] SHAPE question In-Reply-To: References: Message-ID: <39cb22f3050407151039901ba6@mail.gmail.com> Charlotte, ...and now I have about 120 pages of stuff. I had NEVER heard of SHAPE before today. What gives? It sure seems like it could be useful. Steve Erbach From erbachs at gmail.com Thu Apr 7 19:13:19 2005 From: erbachs at gmail.com (Steve Erbach) Date: Thu, 7 Apr 2005 19:13:19 -0500 Subject: [dba-SQLServer] SHAPE question In-Reply-To: References: Message-ID: <39cb22f305040717135ab4e4ff@mail.gmail.com> Charlotte, Well, I got it to work. But I don't know what I did. Wait! Yes I do. I added "Provider=MSDataShape" to the connection string. Thanks for your hints. How often do you use SHAPE? Steve Erbach On Apr 7, 2005 12:01 PM, Charlotte Foust wrote: > SHAPE applies to ADO recordsets. I suspect part of your problem may be > in this line: > > RELATE ProjectID TO ProjectID > From tuxedo_man at hotmail.com Fri Apr 8 01:27:35 2005 From: tuxedo_man at hotmail.com (Billy Pang) Date: Fri, 08 Apr 2005 06:27:35 +0000 Subject: [dba-SQLServer] New SQL Server Registration problem In-Reply-To: <39cb22f305040705105b7b2b43@mail.gmail.com> Message-ID: I haven't seen enough to know of any good EM replacements. Perhaps someone else knows? There was one EM-similiar program I evaluated about a year ago (can't remember the name) but found EM more superior. But in the end, anything I can't get out of or do in EM I always end up coding it by hand via Query Analyzer. Billy >From: Steve Erbach >Reply-To: dba-sqlserver at databaseadvisors.com >To: dba-sqlserver at databaseadvisors.com >Subject: Re: [dba-SQLServer] New SQL Server Registration problem >Date: Thu, 7 Apr 2005 07:10:08 -0500 > >Billy, > >Do you recommend or know of any EM replacements? I find it useful to >be able to see, for instance, all the databases on a server or all the >users for a database. Is there such a thing as an EM replacement? > >Steve Erbach > >On Apr 7, 2005 3:01 AM, Billy Pang wrote: > > Yeah, EM doesn't provide way of specifying default db. Therefore the > > default db of login must be changed. > > > > EM suits most of my needs most of the time but sometimes the interface >lacks > > one or two things. The latest example I can think of is specifying a > > password when you backup or restore a db from EM. That is, if you want >to > > backup a db with password option you can't use EM. Or if you want to > > restore a db from file that has password, you can't use EM. > > > > Billy >_______________________________________________ >dba-SQLServer mailing list >dba-SQLServer at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-sqlserver >http://www.databaseadvisors.com > From tuxedo_man at hotmail.com Fri Apr 8 01:29:38 2005 From: tuxedo_man at hotmail.com (Billy Pang) Date: Fri, 08 Apr 2005 06:29:38 +0000 Subject: [dba-SQLServer] New SQL Server Registration problem In-Reply-To: Message-ID: maybe "evaluated" is too strong a word... probably more like "downloaded the shareware version and tried it once"... >From: "Billy Pang" >Reply-To: dba-sqlserver at databaseadvisors.com >To: dba-sqlserver at databaseadvisors.com >Subject: Re: [dba-SQLServer] New SQL Server Registration problem >Date: Fri, 08 Apr 2005 06:27:35 +0000 > >I haven't seen enough to know of any good EM replacements. Perhaps someone >else knows? >There was one EM-similiar program I evaluated about a year ago (can't >remember the name) but found EM more superior. > >But in the end, anything I can't get out of or do in EM I always end up >coding it by hand via Query Analyzer. > >Billy > > >>From: Steve Erbach >>Reply-To: dba-sqlserver at databaseadvisors.com >>To: dba-sqlserver at databaseadvisors.com >>Subject: Re: [dba-SQLServer] New SQL Server Registration problem >>Date: Thu, 7 Apr 2005 07:10:08 -0500 >> >>Billy, >> >>Do you recommend or know of any EM replacements? I find it useful to >>be able to see, for instance, all the databases on a server or all the >>users for a database. Is there such a thing as an EM replacement? >> >>Steve Erbach >> >>On Apr 7, 2005 3:01 AM, Billy Pang wrote: >> > Yeah, EM doesn't provide way of specifying default db. Therefore the >> > default db of login must be changed. >> > >> > EM suits most of my needs most of the time but sometimes the interface >>lacks >> > one or two things. The latest example I can think of is specifying a >> > password when you backup or restore a db from EM. That is, if you want >>to >> > backup a db with password option you can't use EM. Or if you want to >> > restore a db from file that has password, you can't use EM. >> > >> > Billy >>_______________________________________________ >>dba-SQLServer mailing list >>dba-SQLServer at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/dba-sqlserver >>http://www.databaseadvisors.com >> > > >_______________________________________________ >dba-SQLServer mailing list >dba-SQLServer at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-sqlserver >http://www.databaseadvisors.com > From erbachs at gmail.com Fri Apr 8 15:29:25 2005 From: erbachs at gmail.com (Steve Erbach) Date: Fri, 8 Apr 2005 15:29:25 -0500 Subject: [dba-SQLServer] New SQL Server Registration problem In-Reply-To: References: Message-ID: <39cb22f305040813296e248018@mail.gmail.com> Billy, >> probably more like "downloaded the shareware version and tried it once"... << The old DTSVATIO eval, eh? Steve Erbach On Apr 8, 2005 1:29 AM, Billy Pang wrote: > maybe "evaluated" is too strong a word... probably more like "downloaded the > shareware version and tried it once"... From artful at rogers.com Sat Apr 9 11:28:35 2005 From: artful at rogers.com (Arthur Fuller) Date: Sat, 09 Apr 2005 12:28:35 -0400 Subject: [dba-SQLServer] New SQL Server Registration problem In-Reply-To: <39cb22f305040813296e248018@mail.gmail.com> References: <39cb22f305040813296e248018@mail.gmail.com> Message-ID: <425802B3.7020708@rogers.com> If you want to explore the DMO library, you can write pretty much anything you want. A while back I was commissioned by a colleague to write a module that would do backups and restores to SQL Server. It was a kind of weird situation in which CDs were mailed to clients regularly, but the client might want to install a previous CD's database (i.e. last year's, etc.) to re-run a report. After mucking around in the DMO library for a while, I found it almost absurdly easy to write. Given the number of lines of code in the app, my colleague ended up paying me at the rate of about $200 a line. Actually all the time went into investigating how to use DMO, but once I had a handle on it, the rest was breathtakingly simple. I also recommend TOAD. See www.toadsoft.com/downld.html. There's a free version you can try out, as well as a commercial version with more features. There are versions available for MS-SQL, Oracle and MySQL. Steve Erbach wrote: >Billy, > > > >>>probably more like "downloaded the shareware version and tried it once"... << >>> >>> > >The old DTSVATIO eval, eh? > >Steve Erbach > >On Apr 8, 2005 1:29 AM, Billy Pang wrote: > > >>maybe "evaluated" is too strong a word... probably more like "downloaded the >>shareware version and tried it once"... >> >> >_______________________________________________ >dba-SQLServer mailing list >dba-SQLServer at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-sqlserver >http://www.databaseadvisors.com > > > > > -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.9.5 - Release Date: 4/7/2005 From erbachs at gmail.com Sat Apr 9 12:18:45 2005 From: erbachs at gmail.com (Steve Erbach) Date: Sat, 9 Apr 2005 12:18:45 -0500 Subject: [dba-SQLServer] New SQL Server Registration problem In-Reply-To: <425802B3.7020708@rogers.com> References: <39cb22f305040813296e248018@mail.gmail.com> <425802B3.7020708@rogers.com> Message-ID: <39cb22f305040910185f98dc4a@mail.gmail.com> Arthur, Hey! That TOAD looks all right! Thanks for the tip! Steve Erbach On Apr 9, 2005 11:28 AM, Arthur Fuller wrote: > If you want to explore the DMO library, you can write pretty much > anything you want. A while back I was commissioned by a colleague to > write a module that would do backups and restores to SQL Server. It was > a kind of weird situation in which CDs were mailed to clients regularly, > but the client might want to install a previous CD's database (i.e. last > year's, etc.) to re-run a report. > > After mucking around in the DMO library for a while, I found it almost > absurdly easy to write. Given the number of lines of code in the app, my > colleague ended up paying me at the rate of about $200 a line. Actually > all the time went into investigating how to use DMO, but once I had a > handle on it, the rest was breathtakingly simple. > > I also recommend TOAD. See www.toadsoft.com/downld.html. There's a free > version you can try out, as well as a commercial version with more > features. There are versions available for MS-SQL, Oracle and MySQL. From cfoust at infostatsystems.com Tue Apr 12 12:11:46 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 12 Apr 2005 10:11:46 -0700 Subject: [dba-SQLServer] SHAPE question Message-ID: LOL Yeah, right, I gave you so many hints! You were having a conversation with yourself since I wasn't in this board at all over the weekend and had no time to look yesterday, so don't give me any credit! I used SHAPE quite a bit with Access 2000 to populate hierarchical flexgrids, but I haven't used it since because in my current job we used only DAO with Access and I was prohibited from using ADO at all ... Until I wound up programming in VB.Net using ADO.Net! There were some articles on using SHAPE with VB6 and Access 2k and I built a sample based on one of them, but it isn't on this machine and it uses a hflexgrid control. If you're interested, I can probably dig it out, but it is strictly Access, no SQL Server involved. In some ways SHAPE is like creating an XML file but without the tags. What you're really doing is creating nested recordsets and joining them together, which is where the aliases come in. Charlotte Foust -----Original Message----- From: Steve Erbach [mailto:erbachs at gmail.com] Sent: Thursday, April 07, 2005 5:13 PM To: dba-sqlserver at databaseadvisors.com Subject: Re: [dba-SQLServer] SHAPE question Charlotte, Well, I got it to work. But I don't know what I did. Wait! Yes I do. I added "Provider=MSDataShape" to the connection string. Thanks for your hints. How often do you use SHAPE? Steve Erbach On Apr 7, 2005 12:01 PM, Charlotte Foust wrote: > SHAPE applies to ADO recordsets. I suspect part of your problem may > be in this line: > > RELATE ProjectID TO ProjectID > _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From erbachs at gmail.com Tue Apr 12 22:00:51 2005 From: erbachs at gmail.com (Steve Erbach) Date: Tue, 12 Apr 2005 22:00:51 -0500 Subject: [dba-SQLServer] SHAPE question In-Reply-To: References: Message-ID: <39cb22f3050412200019a2475f@mail.gmail.com> Charlotte, Well, you are a voice of reason and probity. That's good enough for me. Interesting. Between hours when I'm working on other projects, I've begun my own sample SHAPE application using ASP and ADO. Having now read quite a bit about SHAPE from the docs I found, it looks like the guy that wrote the SHAPE statement in the code I've been adapting did something a bit screwy. I'm going to try constructing the statement a different way and see if I get the same or a different result set. Steve Erbach On 4/12/05, Charlotte Foust wrote: > LOL Yeah, right, I gave you so many hints! You were having a > conversation with yourself since I wasn't in this board at all over the > weekend and had no time to look yesterday, so don't give me any credit! > > I used SHAPE quite a bit with Access 2000 to populate hierarchical > flexgrids, but I haven't used it since because in my current job we used > only DAO with Access and I was prohibited from using ADO at all ... > Until I wound up programming in VB.Net using ADO.Net! > > There were some articles on using SHAPE with VB6 and Access 2k and I > built a sample based on one of them, but it isn't on this machine and it > uses a hflexgrid control. If you're interested, I can probably dig it > out, but it is strictly Access, no SQL Server involved. > > In some ways SHAPE is like creating an XML file but without the tags. > What you're really doing is creating nested recordsets and joining them > together, which is where the aliases come in. > > Charlotte Foust > From Developer at UltraDNT.com Tue Apr 12 22:20:56 2005 From: Developer at UltraDNT.com (Steve Conklin (Developer@UltraDNT)) Date: Tue, 12 Apr 2005 23:20:56 -0400 Subject: [dba-SQLServer] SHAPE question In-Reply-To: <39cb22f3050412200019a2475f@mail.gmail.com> Message-ID: <000001c53fd7$d1a6b850$0700a8c0@CONKEY2000> I first discovered SHAPE command when I protoyped an app using VB6's Application Wizard. It used Shape for the Master/Child forms with ADO Data Control and grids. Maybe running the App Wizard aginst Northwind mdb, or SQL Pubs, would let you see the SHAPE command in action. Hth Steve -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Steve Erbach Sent: Tuesday, April 12, 2005 11:01 PM To: dba-sqlserver at databaseadvisors.com Subject: Re: [dba-SQLServer] SHAPE question Charlotte, Well, you are a voice of reason and probity. That's good enough for me. Interesting. Between hours when I'm working on other projects, I've begun my own sample SHAPE application using ASP and ADO. Having now read quite a bit about SHAPE from the docs I found, it looks like the guy that wrote the SHAPE statement in the code I've been adapting did something a bit screwy. I'm going to try constructing the statement a different way and see if I get the same or a different result set. Steve Erbach On 4/12/05, Charlotte Foust wrote: > LOL Yeah, right, I gave you so many hints! You were having a > conversation with yourself since I wasn't in this board at all over > the weekend and had no time to look yesterday, so don't give me any > credit! > > I used SHAPE quite a bit with Access 2000 to populate hierarchical > flexgrids, but I haven't used it since because in my current job we > used only DAO with Access and I was prohibited from using ADO at all > ... Until I wound up programming in VB.Net using ADO.Net! > > There were some articles on using SHAPE with VB6 and Access 2k and I > built a sample based on one of them, but it isn't on this machine and > it uses a hflexgrid control. If you're interested, I can probably dig > it out, but it is strictly Access, no SQL Server involved. > > In some ways SHAPE is like creating an XML file but without the tags. > What you're really doing is creating nested recordsets and joining > them together, which is where the aliases come in. > > Charlotte Foust > _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From michael at ddisolutions.com.au Wed Apr 13 02:09:47 2005 From: michael at ddisolutions.com.au (Michael Maddison) Date: Wed, 13 Apr 2005 17:09:47 +1000 Subject: [dba-SQLServer] SHAPE question Message-ID: <59A61174B1F5B54B97FD4ADDE71E7D010E4AEC@ddi-01.DDI.local> I've used it for treeviews. Works pretty well. The code to extract the recordsets can get a little messy ie nested loops... cheers Michael M Charlotte, Well, you are a voice of reason and probity. That's good enough for me. Interesting. Between hours when I'm working on other projects, I've begun my own sample SHAPE application using ASP and ADO. Having now read quite a bit about SHAPE from the docs I found, it looks like the guy that wrote the SHAPE statement in the code I've been adapting did something a bit screwy. I'm going to try constructing the statement a different way and see if I get the same or a different result set. Steve Erbach On 4/12/05, Charlotte Foust wrote: > LOL Yeah, right, I gave you so many hints! You were having a > conversation with yourself since I wasn't in this board at all over > the weekend and had no time to look yesterday, so don't give me any credit! > > I used SHAPE quite a bit with Access 2000 to populate hierarchical > flexgrids, but I haven't used it since because in my current job we > used only DAO with Access and I was prohibited from using ADO at all ... > Until I wound up programming in VB.Net using ADO.Net! > > There were some articles on using SHAPE with VB6 and Access 2k and I > built a sample based on one of them, but it isn't on this machine and > it uses a hflexgrid control. If you're interested, I can probably dig > it out, but it is strictly Access, no SQL Server involved. > > In some ways SHAPE is like creating an XML file but without the tags. > What you're really doing is creating nested recordsets and joining > them together, which is where the aliases come in. > > Charlotte Foust > _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From erbachs at gmail.com Wed Apr 13 13:43:39 2005 From: erbachs at gmail.com (Steve Erbach) Date: Wed, 13 Apr 2005 13:43:39 -0500 Subject: [dba-SQLServer] SHAPE question In-Reply-To: <000001c53fd7$d1a6b850$0700a8c0@CONKEY2000> References: <39cb22f3050412200019a2475f@mail.gmail.com> <000001c53fd7$d1a6b850$0700a8c0@CONKEY2000> Message-ID: <39cb22f305041311437f4f0714@mail.gmail.com> Steve, Yeah, I read about its connection with VB6. It just seems odd that it's something that's seemingly not emphasized. Is it just too arcane to be popular? Steve Erbach On 4/12/05, Steve Conklin (Developer at UltraDNT) wrote: > I first discovered SHAPE command when I protoyped an app using VB6's > Application Wizard. It used Shape for the Master/Child forms with ADO > Data Control and grids. > Maybe running the App Wizard aginst Northwind mdb, or SQL Pubs, would > let you see the SHAPE command in action. > > Hth > Steve > From erbachs at gmail.com Wed Apr 13 13:44:50 2005 From: erbachs at gmail.com (Steve Erbach) Date: Wed, 13 Apr 2005 13:44:50 -0500 Subject: [dba-SQLServer] SHAPE question In-Reply-To: <59A61174B1F5B54B97FD4ADDE71E7D010E4AEC@ddi-01.DDI.local> References: <59A61174B1F5B54B97FD4ADDE71E7D010E4AEC@ddi-01.DDI.local> Message-ID: <39cb22f305041311446149e1df@mail.gmail.com> Michael, I suppose it's like going back to the old days of coding COBOL or PL/I (or even dBASE) reports line-by-line. Steve Erbach On 4/13/05, Michael Maddison wrote: > I've used it for treeviews. > Works pretty well. > The code to extract the recordsets can get a little messy ie nested > loops... > > cheers > > Michael M From artful at rogers.com Fri Apr 15 08:58:36 2005 From: artful at rogers.com (Arthur Fuller) Date: Fri, 15 Apr 2005 09:58:36 -0400 Subject: [dba-SQLServer] Big Databases Message-ID: <425FC88C.9010709@rogers.com> According to a survey conducted by The Winter Corporation, the three largest databases in the world that run on Windows are all owned by comScore Networks. First place goes to their 8.9 TB database; second goes to their 8.3 TB database. Third place goes to their 7.3 TB database. All of them run on Sybase's ASE. All of them are used for consumer analysis. This data is fed into various web sites, and comScore reported 20 million hits against one db in January 2005. comScore clients include AOL, Bank of America, Best Buy, Dell, Microsoft, Nestle, the US Postal Service and Verizon. I feel firmly put in my place. I have never even cracked the 1 TB ceiling! Arthur P.S. For more on this company and its databases, see http://www.sybase.com/detail?id=1035124 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.9.11 - Release Date: 4/14/2005 From alan.lawhon at us.army.mil Fri Apr 15 09:07:42 2005 From: alan.lawhon at us.army.mil (Lawhon, Alan C Contractor/Morgan Research) Date: Fri, 15 Apr 2005 09:07:42 -0500 Subject: [dba-SQLServer] Big Databases Message-ID: <5D5043687CFCE44288407A73E4CC6E179BB467@redstone819.ad.redstone.army.mil> Don't feel so bad Arthur. I have rarely (if ever) dealt with a database, (here at work), that was larger than 250 Mega-Bytes. Alan C. Lawhon -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Friday, April 15, 2005 8:59 AM To: dba-sqlserver at databaseadvisors.com Subject: [dba-SQLServer] Big Databases According to a survey conducted by The Winter Corporation, the three largest databases in the world that run on Windows are all owned by comScore Networks. First place goes to their 8.9 TB database; second goes to their 8.3 TB database. Third place goes to their 7.3 TB database. All of them run on Sybase's ASE. All of them are used for consumer analysis. This data is fed into various web sites, and comScore reported 20 million hits against one db in January 2005. comScore clients include AOL, Bank of America, Best Buy, Dell, Microsoft, Nestle, the US Postal Service and Verizon. I feel firmly put in my place. I have never even cracked the 1 TB ceiling! Arthur P.S. For more on this company and its databases, see http://www.sybase.com/detail?id=1035124 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.9.11 - Release Date: 4/14/2005 _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From Paul.Hartland at orridge.co.uk Fri Apr 15 10:06:03 2005 From: Paul.Hartland at orridge.co.uk (Paul Hartland) Date: Fri, 15 Apr 2005 16:06:03 +0100 Subject: [dba-SQLServer] Moving A Database From C: to D: Message-ID: <14A7AB003EFD444BBB193A23128DA20E2641C7@AL-PRI.Aldridge.local> To all, We currently have a SQL Server 2000 database located on the C: drive of one of our servers (I must have had a brain dead moment when I done this), is there any simple way of moving the entire database onto the D: drive Thanks in advance for any help on this.... PAUL HARTLAND Database Designer/Programmer paul.hartland at isharp.co.uk ISHARP ISHARP (Information Services for Hospitality, Audit, Retail and Pharmacy) provide IT resources for the Christie Group Stock & Inventory Services companies. _______________________________________________ This e-mail is intended only for the addressee named above. As this e-mail may contain confidential or privileged information, if you are not the named addressee, or the person responsible for delivering the message to the named addressee, please return to the sender and delete the original. The contents should not be disclosed to any other person nor copies taken. The Orridge web site can be found at : http://www.orridge.co.uk From fhtapia at gmail.com Fri Apr 15 10:26:01 2005 From: fhtapia at gmail.com (Francisco Tapia) Date: Fri, 15 Apr 2005 08:26:01 -0700 Subject: [dba-SQLServer] Moving A Database From C: to D: In-Reply-To: <14A7AB003EFD444BBB193A23128DA20E2641C7@AL-PRI.Aldridge.local> References: <14A7AB003EFD444BBB193A23128DA20E2641C7@AL-PRI.Aldridge.local> Message-ID: You want to lookup the DETACH and ATTACH commands in BOL This is the help for doing it in EM (FROM BOL) How to attach and detach a database (Enterprise Manager) *To attach a database* 1. Expand a server group, and then expand a server. 2. Right-click *Databases*, and select *All Tasks/Attach Database*. 3. Enter the name of the MDF (*master* data file) of the database to attach. If you are not sure where the file is located, click browse (* ...*) to search. There can only be up to 16 file names specified. For more information, see sp_attach_db . 4. To ensure that the specified MDF file is correct, click *Verify*. The Original File Name(s) column lists all the files in the database (data files and log files). The Current File(s) Location column lists the file names and paths. If Microsoft(r) SQL Server? cannot find the files in the specified locations, the attach operation fails. The Current File(s) Location column can be edited, and the current location of the file must be in this column for the attach operation to work. For example, if you have changed the default location of the file before you detached it, you must specify the current location for the attach operation to be successful. 5. In the *Attach as* box, enter the name of the database. The database name must not match any existing database names. 6. Specify the database owner. 7. Click *OK*. A database node for the newly attached database is created in the Database folder. *To detach a database* 1. Expand a server group, and then expand a server. 2. Expand *Databases*. 3. Right-click the database, and then select *All Tasks/Detach Database*. This menu is visible only if you are a member of the * sysadmin* fixed server role and the server to which you are connected is SQL Server 2000. The *master*, *model*, and *tempdb* databases cannot be detached. 4. In the *Detach Database* dialog box, check the status of the database. To successfully detach a database, STATUS should be: *The database is ready to be detached*. Optionally, you can select to update statistics prior to the detach operation. 5. To terminate any existing connections from the database, click * Clear*. 6. Click *OK*. The database node for the detached database is removed from the Database folder. On 4/15/05, Paul Hartland wrote: > > To all, > > We currently have a SQL Server 2000 database located on the C: drive of > one of our servers (I must have had a brain dead moment when I done > this), is there any simple way of moving the entire database onto the D: > drive > > Thanks in advance for any help on this.... > > PAUL HARTLAND > Database Designer/Programmer > paul.hartland at isharp.co.uk > ISHARP > > ISHARP (Information Services for Hospitality, Audit, Retail and > Pharmacy) provide IT resources for the Christie Group Stock & Inventory > Services companies. > > _______________________________________________ > > This e-mail is intended only for the addressee named above. > > As this e-mail may contain confidential or privileged information, if you > are not the named addressee, or the person responsible for delivering the > message to the named addressee, please return to the sender and delete the > original. The contents should not be disclosed to any other person nor > copies taken. > > The Orridge web site can be found at : http://www.orridge.co.uk > > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > > -- -Francisco http://pcthis.blogspot.com |PC news with out the jargon! http://sqlthis.blogspot.com | Tsql and More... From Developer at UltraDNT.com Fri Apr 15 11:19:50 2005 From: Developer at UltraDNT.com (Steve Conklin (Developer@UltraDNT)) Date: Fri, 15 Apr 2005 12:19:50 -0400 Subject: [dba-SQLServer] Big Databases In-Reply-To: <5D5043687CFCE44288407A73E4CC6E179BB467@redstone819.ad.redstone.army.mil> Message-ID: <003201c541d6$f610cc70$0700a8c0@CONKEY2000> I had an out-of-control log file the other day that went to 4 GB. (It shrunk to about 5 mb LOL) -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Lawhon, Alan C Contractor/Morgan Research Sent: Friday, April 15, 2005 10:08 AM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer] Big Databases Don't feel so bad Arthur. I have rarely (if ever) dealt with a database, (here at work), that was larger than 250 Mega-Bytes. Alan C. Lawhon -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Friday, April 15, 2005 8:59 AM To: dba-sqlserver at databaseadvisors.com Subject: [dba-SQLServer] Big Databases According to a survey conducted by The Winter Corporation, the three largest databases in the world that run on Windows are all owned by comScore Networks. First place goes to their 8.9 TB database; second goes to their 8.3 TB database. Third place goes to their 7.3 TB database. All of them run on Sybase's ASE. All of them are used for consumer analysis. This data is fed into various web sites, and comScore reported 20 million hits against one db in January 2005. comScore clients include AOL, Bank of America, Best Buy, Dell, Microsoft, Nestle, the US Postal Service and Verizon. I feel firmly put in my place. I have never even cracked the 1 TB ceiling! Arthur P.S. For more on this company and its databases, see http://www.sybase.com/detail?id=1035124 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.9.11 - Release Date: 4/14/2005 _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From Developer at UltraDNT.com Fri Apr 15 11:24:45 2005 From: Developer at UltraDNT.com (Steve Conklin (Developer@UltraDNT)) Date: Fri, 15 Apr 2005 12:24:45 -0400 Subject: [dba-SQLServer] SHAPE question In-Reply-To: <39cb22f305041311437f4f0714@mail.gmail.com> Message-ID: <003301c541d7$a628e840$0700a8c0@CONKEY2000> I don't know, it worked well when the wizard wrote the sql statement, but I had trouble getting the hang of it myself. Maybe because it doesn't work in the gui tools (at least I can't get it to work in EM or Access) so there's no visual way to write and poach, like with SELECT and JOIN. But it is great when it works. Steve -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Steve Erbach Sent: Wednesday, April 13, 2005 2:44 PM To: dba-sqlserver at databaseadvisors.com Subject: Re: [dba-SQLServer] SHAPE question Steve, Yeah, I read about its connection with VB6. It just seems odd that it's something that's seemingly not emphasized. Is it just too arcane to be popular? Steve Erbach On 4/12/05, Steve Conklin (Developer at UltraDNT) wrote: > I first discovered SHAPE command when I protoyped an app using VB6's > Application Wizard. It used Shape for the Master/Child forms with ADO > Data Control and grids. Maybe running the App Wizard aginst Northwind > mdb, or SQL Pubs, would let you see the SHAPE command in action. > > Hth > Steve > _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com