From kp at sdsonline.net Mon Jul 3 22:20:06 2006 From: kp at sdsonline.net (Kath Pelletti) Date: Tue, 4 Jul 2006 13:20:06 +1000 Subject: [dba-SQLServer] Cost SQl Server Message-ID: <005c01c69f18$c0e7dc50$6601a8c0@office> Can someone help me with some costs which I find confusing on the MS site. I need to let a client know the costs of developing an app with SQL Server as the BE as opposed to Access BE. I have all the development side clear but I need to quote them the cost of them purchasing a license for SQL Server 2005, so that the users can access it across the network. And do they need to use a specific Windows version with SQL Server 2005? TIA ______________________________________ Kath Pelletti Software Design and Solutions Pty Ltd. Ph: 9505-6714 Fax: 9505-6430 Email: KP at SDSOnline.net From paul.hartland at fsmail.net Tue Jul 11 04:47:54 2006 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 11 Jul 2006 11:47:54 +0200 (CEST) Subject: [dba-SQLServer] Cross-Posted - SQL SERVER 2005 Front-End Message-ID: <9486947.1152611273998.JavaMail.www@wwinf3003> To all, I have cross-posted this question sorry to those of you that will receive it more than once, our company have just purchased and installed SQL Server 2005. Is there a front-end similar to the Enterprise Manager available for this ?, if not anyone know any good/great books to buy to get to grips with it very quickly ? Thanks in advance for any help on this. Paul Hartland Database Developer. From kp at sdsonline.net Tue Jul 11 06:58:32 2006 From: kp at sdsonline.net (Kath Pelletti) Date: Tue, 11 Jul 2006 21:58:32 +1000 Subject: [dba-SQLServer] Cross-Posted - SQL SERVER 2005 Front-End References: <9486947.1152611273998.JavaMail.www@wwinf3003> Message-ID: <001001c6a4e1$55ea4090$6601a8c0@office> Hi Paul - the front end is called 'SQL Server Management Studio'. I found Mike Gunderloy's book 'Mastering SQL Server 2005' to be great. This version is by Gunderloy/Jorden/Tschanz', published by Sybex. (Careful - I think there is another version of the same or similiar title which is also by him on the Express version, co-authored by Susan Harkins). HTH Kath ----- Original Message ----- From: paul.hartland at fsmail.net To: accessd ; dba-sqlserver ; dba-vb Sent: Tuesday, July 11, 2006 7:47 PM Subject: [dba-SQLServer] Cross-Posted - SQL SERVER 2005 Front-End To all, I have cross-posted this question sorry to those of you that will receive it more than once, our company have just purchased and installed SQL Server 2005. Is there a front-end similar to the Enterprise Manager available for this ?, if not anyone know any good/great books to buy to get to grips with it very quickly ? Thanks in advance for any help on this. Paul Hartland Database Developer. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From harkinsss at bellsouth.net Tue Jul 11 08:02:46 2006 From: harkinsss at bellsouth.net (Susan Harkins) Date: Tue, 11 Jul 2006 09:02:46 -0400 Subject: [dba-SQLServer] Cross-Posted - SQL SERVER 2005 Front-End In-Reply-To: <001001c6a4e1$55ea4090$6601a8c0@office> Message-ID: <000801c6a4ea$5810b3f0$6101a8c0@SUSANONE> (Careful - I think there is another version of the same or similiar title which is also by him on the Express version, co-authored by Susan Harkins). ==========Yes, there is -- Mastering SQL Server 2005 Express :) I took the original SQL Server book and rewrote it for Express. It's shorter and many of the chapters are new (from scratch) -- as they apply to Express but not SQL Server. For instance, there's a chapter on VB Express in the Express book but not the full blown version book. Also, the ADO.NET chapter is significantly different. The setups are the same, but the heart of the book is Express. Susan H. From fhtapia at gmail.com Wed Jul 12 02:33:22 2006 From: fhtapia at gmail.com (Francisco Tapia) Date: Wed, 12 Jul 2006 00:33:22 -0700 Subject: [dba-SQLServer] Slammer worm vulnerability? Message-ID: I was trying to put a network co-worker's mind at ease to ensure him that all my sql server are patched and up to date, when I ran MS's sqlscan utility and found the following lines very very disturbing!, the snapshot below is a snapshot of my sql servers and even tho the SQL Version shows them at 8.00.2039 (SP4) the program came back reporting them vulnerable, none of them have blank SA passwords either and some of the servers have alternate listening ports from 1433, so what gives? Instance Name Status SQL Version Product Level Language MSDE Product Code MSDE Package Name sqlservr.exe Product sqlservr.exeFile ssnetlib.dll Product ssnetlib.dll File Platform OS Version MSSQLSERVER VULNERABLE 8 RTM 1033 N/A N/A 8.00.194 2000.080.0194.00 8.00.194 2000.080.0194.00 NT 5 MSSQLSERVER VULNERABLE 8 Unknown 1033 N/A N/A 8.00.2039 2000.080.2039.00 8.00.2039 2000.080.2039.00 NT 5.2 MSSQLSERVER VULNERABLE 8 Unknown 1033 N/A N/A 8.00.2039 2000.080.2039.00 8.00.2039 2000.080.2039.00 NT 5.2 MSSQLSERVER VULNERABLE 8 Unknown 1033 N/A N/A 8.00.2039 2000.080.2039.00 8.00.2039 2000.080.2039.00 NT 5 MSSQLSERVER VULNERABLE 8 Unknown 1033 N/A N/A 8.00.2039 2000.080.2039.00 8.00.2039 2000.080.2039.00 NT 5.2 MSSQLSERVER VULNERABLE 8 Unknown 1033 N/A N/A 8.00.2039 2000.080.2039.00 8.00.2039 2000.080.2039.00 NT 5.2 MSSQLSERVER VULNERABLE 8 Unknown 1033 N/A N/A 8.00.2039 2000.080.2039.00 8.00.2039 2000.080.2039.00 NT 5 MSSQLSERVER VULNERABLE 8 Unknown 1033 N/A N/A 8.00.2039 2000.080.2039.00 8.00.2039 2000.080.2039.00 NT 5.2 -- -Francisco http://pcthis.blogspot.com |PC news with out the jargon! http://sqlthis.blogspot.com | Tsql and More... From paul.hartland at fsmail.net Wed Jul 12 04:29:47 2006 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 12 Jul 2006 11:29:47 +0200 (CEST) Subject: [dba-SQLServer] SQL Server 2005 Stored Procedures (Confused !!!!!) Message-ID: <27046402.1152696587795.JavaMail.www@wwinf3104.me-wanadoo.net> To all, Sorry for cross posting this again to those of you that will receive this email more than once, I have eventually got the SQL Server Management Studio and fairly happily playing with it. However I thought I would create a stored procedure so wrote a very simple one, and clicked save and it asked me to save it as SQLQuery1 which I thought strange as I thought the name would be genesis_select_UserLogon (as below)....But saved it none the less, but I can't seem to find it anywhere in the database I created, but I wrote a quick VB app to use it and it works ok....Can anyone tell me where I find the stored procedure that I create in the database ? CREATE PROCEDURE [genesis_select_UserLogon] ( @strUser [nvarchar](100), @strPass [nvarchar](100) ) AS SELECT Username, Password FROM tblUsers WHERE Username = @strUser AND Password = @strPass GO Thanks in advance for any help on this... Paul Hartland From James at fcidms.com Wed Jul 12 09:50:38 2006 From: James at fcidms.com (James Barash) Date: Wed, 12 Jul 2006 10:50:38 -0400 Subject: [dba-SQLServer] SQL Server 2005 Stored Procedures (Confused !!!!!) In-Reply-To: <27046402.1152696587795.JavaMail.www@wwinf3104.me-wanadoo.net> Message-ID: <005101c6a5c2$8a4abc70$800101df@fci.local> Paul: When you saved the query, you were saving the script to a text file, not creating a stored procedure in the database. You need to execute the script. Open a new query, making sure you are referencing the correct database and recreate the script below then click the Execute button. That will Create the procedure on the selected database. Hope this helps. James Barash -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of paul.hartland at fsmail.net Sent: Wednesday, July 12, 2006 5:30 AM To: accessd; dba-sqlserver; dba-vb Subject: [dba-SQLServer] SQL Server 2005 Stored Procedures (Confused !!!!!) Importance: High To all, Sorry for cross posting this again to those of you that will receive this email more than once, I have eventually got the SQL Server Management Studio and fairly happily playing with it. However I thought I would create a stored procedure so wrote a very simple one, and clicked save and it asked me to save it as SQLQuery1 which I thought strange as I thought the name would be genesis_select_UserLogon (as below)....But saved it none the less, but I can't seem to find it anywhere in the database I created, but I wrote a quick VB app to use it and it works ok....Can anyone tell me where I find the stored procedure that I create in the database ? CREATE PROCEDURE [genesis_select_UserLogon] ( @strUser [nvarchar](100), @strPass [nvarchar](100) ) AS SELECT Username, Password FROM tblUsers WHERE Username = @strUser AND Password = @strPass GO Thanks in advance for any help on this... Paul Hartland _______________________________________________ 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 Jul 12 17:51:07 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 12 Jul 2006 15:51:07 -0700 Subject: [dba-SQLServer] Installing SQL 2000 on a server that already has SQL 2003 In-Reply-To: <000801c6a4ea$5810b3f0$6101a8c0@SUSANONE> Message-ID: <0J2B00MXRBBFYLE0@l-daemon> Hi All: Installing MSSQL 2003 on a server already hosting MSSQL 2000 is a simple task. The installation routines asks how you wish to name the new SQL 2003 install so it does not conflict with the present MSSQL. I have not tried to install MSSQL 2000 on a box already hosting MSSQL 2003 and was wondering if anyone has done this process and if there are any issues to manage. MTIA Jim From accessd at shaw.ca Wed Jul 12 17:51:07 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 12 Jul 2006 15:51:07 -0700 Subject: [dba-SQLServer] Exporting from SQL 2000 to SQL 2003 In-Reply-To: <000801c6a4ea$5810b3f0$6101a8c0@SUSANONE> Message-ID: <0J2B00MXSBBGYLE0@l-daemon> Hi All: Here is a simple question? I have recently exported a database from a SQL 2000 server to a SQL 2003 server and everything went through with minimal problems with exception to DTS packages. They just did not import. I was wondering if DTS packages have to be re-created, there is a simple solution or there is some trick to importing them. MTIA Jim From fhtapia at gmail.com Thu Jul 13 03:18:44 2006 From: fhtapia at gmail.com (Francisco Tapia) Date: Thu, 13 Jul 2006 01:18:44 -0700 Subject: [dba-SQLServer] Exporting from SQL 2000 to SQL 2003 In-Reply-To: <0J2B00MXSBBGYLE0@l-daemon> References: <000801c6a4ea$5810b3f0$6101a8c0@SUSANONE> <0J2B00MXSBBGYLE0@l-daemon> Message-ID: DTS packages live in the MSDB database, you may have some luck using a tool like DTS 2000 backup. (google) On 7/12/06, Jim Lawrence wrote: > > Hi All: > > Here is a simple question? I have recently exported a database from a SQL > 2000 server to a SQL 2003 server and everything went through with minimal > problems with exception to DTS packages. They just did not import. > > I was wondering if DTS packages have to be re-created, there is a simple > solution or there is some trick to importing them. > > MTIA > Jim > > _______________________________________________ > 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 fhtapia at gmail.com Thu Jul 13 03:20:40 2006 From: fhtapia at gmail.com (Francisco Tapia) Date: Thu, 13 Jul 2006 01:20:40 -0700 Subject: [dba-SQLServer] Installing SQL 2000 on a server that already has SQL 2003 In-Reply-To: <0J2B00MXRBBFYLE0@l-daemon> References: <000801c6a4ea$5810b3f0$6101a8c0@SUSANONE> <0J2B00MXRBBFYLE0@l-daemon> Message-ID: generally you do not install 2000 on a 2005 server, it just isn't done (in general). I've seen servers work well w/ as an example 7.0 and 2000 instances. but when you upgrade you loose the old EM and are now forced to use the new EM for 2000 in that situation, for 2005 I beleive it's similar, the install will remove EM and put in Visual Studio manager (or whatever it's called). -- Francisco On 7/12/06, Jim Lawrence wrote: > > Hi All: > > Installing MSSQL 2003 on a server already hosting MSSQL 2000 is a simple > task. The installation routines asks how you wish to name the new SQL 2003 > install so it does not conflict with the present MSSQL. > > I have not tried to install MSSQL 2000 on a box already hosting MSSQL 2003 > and was wondering if anyone has done this process and if there are any > issues to manage. > > MTIA > Jim > > _______________________________________________ > 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 Thu Jul 13 09:38:47 2006 From: developer at ultradnt.com (Steve Conklin) Date: Thu, 13 Jul 2006 10:38:47 -0400 Subject: [dba-SQLServer] Exporting from SQL 2000 to SQL 2003 In-Reply-To: Message-ID: <200607131438.k6DEclR48993@ultradnt.com> You could export the DTS jobs to files, which I have done to move them from one 2000 server to another (its in the job designer screen in EM). However, how they import into 2005 I couldn't say. Hth Steve -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Francisco Tapia Sent: Thursday, July 13, 2006 4:19 AM To: dba-sqlserver at databaseadvisors.com Subject: Re: [dba-SQLServer] Exporting from SQL 2000 to SQL 2003 DTS packages live in the MSDB database, you may have some luck using a tool like DTS 2000 backup. (google) On 7/12/06, Jim Lawrence wrote: > > Hi All: > > Here is a simple question? I have recently exported a database from a > SQL 2000 server to a SQL 2003 server and everything went through with > minimal problems with exception to DTS packages. They just did not import. > > I was wondering if DTS packages have to be re-created, there is a > simple solution or there is some trick to importing them. > > MTIA > Jim > > _______________________________________________ > 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... _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From jlawrenc1 at shaw.ca Thu Jul 13 10:16:03 2006 From: jlawrenc1 at shaw.ca (Jim Lawrence) Date: Thu, 13 Jul 2006 08:16:03 -0700 Subject: [dba-SQLServer] Installing SQL 2000 on a server that already has SQL 2003 In-Reply-To: Message-ID: <0J2C00FO1KWYZ630@l-daemon> Hi All: Thanks Francisco and Steve: Thanks for the information. Actually it is a 2003 Server with MSSQL 2003 installed. It appears that I got a little ahead of myself when I rebuilt the server not first installing SQL 2000 as I figured clients would be migrating to MS SQL 2003. This was not the case and one client would like a bit of development work done on the SQL 2000. All the objects from the MS SQL 2000 had exported and imported into the MS SQL 2003 without issues but the DTS package information did not come across. Fortunately, the information was also exported as SQL but I still can not get it imported and it will be very time consuming to re-write it all again. Am I missing something simple and obvious or do the DTS packages have to be all re-keyed??? So far I have been unable to find any information on the subject.... On the other hand having a MS SQL 2000 on the system would resolve these issues but that could cause more problems than it would solve. After a bout with a Beta SQL Express which required the complete re-install of our production server caution is the key-word. (NO DOWNTIME!!) If you have any information on the subject or location where I could look for information I would be greatly appreciative. Jim -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Francisco Tapia Sent: Thursday, July 13, 2006 1:21 AM To: dba-sqlserver at databaseadvisors.com Subject: Re: [dba-SQLServer] Installing SQL 2000 on a server that already has SQL 2003 generally you do not install 2000 on a 2005 server, it just isn't done (in general). I've seen servers work well w/ as an example 7.0 and 2000 instances. but when you upgrade you loose the old EM and are now forced to use the new EM for 2000 in that situation, for 2005 I beleive it's similar, the install will remove EM and put in Visual Studio manager (or whatever it's called). -- Francisco On 7/12/06, Jim Lawrence wrote: > > Hi All: > > Installing MSSQL 2003 on a server already hosting MSSQL 2000 is a simple > task. The installation routines asks how you wish to name the new SQL 2003 > install so it does not conflict with the present MSSQL. > > I have not tried to install MSSQL 2000 on a box already hosting MSSQL 2003 > and was wondering if anyone has done this process and if there are any > issues to manage. > > MTIA > Jim > > _______________________________________________ > 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... _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From jim.moss at jlmoss.net Thu Jul 13 11:12:01 2006 From: jim.moss at jlmoss.net (Jim Moss) Date: Thu, 13 Jul 2006 11:12:01 -0500 (CDT) Subject: [dba-SQLServer] Exporting from SQL 2000 to SQL 2003 In-Reply-To: <0J2B00MXSBBGYLE0@l-daemon> References: <000801c6a4ea$5810b3f0$6101a8c0@SUSANONE> <0J2B00MXSBBGYLE0@l-daemon> Message-ID: <33484.65.196.182.34.1152807121.squirrel@65.196.182.34> Jim. >From BOL: The Execute DTS 2000 Package task runs packages that were developed by using the SQL Server 2000 tools. By using this task, you can include SQL Server 2000 DTS packages in SQL Server 2005 data transformation solutions. A package can include both Execute Package tasks and Execute DTS 2000 Package tasks, because each type of task uses a different version of the run-time engine. The Execute DTS 2000 Package task runs SQL Server 2000 packages, but otherwise its features are similar to those of the Execute Package task. You can use the Execute DTS 2000 Package task for the following purposes: Breaking down complex package workflow. This task lets you break down workflow into multiple packages, which are easier to read and maintain. For example, if you are loading data into a star schema, you can build a separate package to populate each dimension and the fact table. Reusing parts of packages. Other packages can reuse parts of a package workflow. For example, you can build a data extraction module that can be called from different packages. Each package that calls the extraction module can perform different data scrubbing, filtering, or aggregation operations. Grouping work units. Units of work can be encapsulated into separate packages and joined as transactional components to the workflow of a parent package. For example, the parent package runs the accessory packages, and based on the success or failure of the accessory packages, the parent package either commits or rolls back the transaction. Controlling package security. Package authors require access to only a part of a multipackage solution. By separating a package into multiple packages, you can provide a higher level of security, because you can grant an author access only to relevant packages. Note: The DTS 2000 run-time engine must be installed on the computer to run DTS 2000 packages. For more information, see Installing SQL Server Integration Services. A package that executes other packages, such as the Execute DTS 2000 Package task, is typically referred to as the parent package, and the packages that a parent workflow runs are called child packages. Jim > Hi All: > > Here is a simple question? I have recently exported a database from a SQL > 2000 server to a SQL 2003 server and everything went through with minimal > problems with exception to DTS packages. They just did not import. > > I was wondering if DTS packages have to be re-created, there is a simple > solution or there is some trick to importing them. > > MTIA > Jim > > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > > From rl_stewart at highstream.net Thu Jul 13 12:52:25 2006 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Thu, 13 Jul 2006 13:52:25 -0400 Subject: [dba-SQLServer] nstalling SQL 2000 on a server that already has SQL 2003 In-Reply-To: References: Message-ID: <1152813145.44b688590a2c9@webmail.highstream.net> Jim, There is no such thing as SQL 2003. So, assuming you installed SQL 2005 which is the only release after SQL 2000, you use SQL Server Management Studio and connect to the server. Then go to management, Legacy, Data Transformation Services. You can import a package file or use the migration wizard from there. But, I believe you will have to have SQL 2000 running on the system to do this. Robert L. Stewart The Dyson Group International Software for the Non-profit Enterprise Expanding your Sphere of Knowledge Quoting dba-sqlserver-request at databaseadvisors.com: > Date: Thu, 13 Jul 2006 08:16:03 -0700 > From: Jim Lawrence > Subject: Re: [dba-SQLServer] Installing SQL 2000 on a server that > already has SQL 2003 > To: dba-sqlserver at databaseadvisors.com > Message-ID: <0J2C00FO1KWYZ630 at l-daemon> > Content-Type: text/plain; charset=us-ascii > > Hi All: > > Thanks Francisco and Steve: > > Thanks for the information. Actually it is a 2003 Server with MSSQL 2003 > installed. It appears that I got a little ahead of myself when I rebuilt the > server not first installing SQL 2000 as I figured clients would be migrating > to MS SQL 2003. This was not the case and one client would like a bit of > development work done on the SQL 2000. > > All the objects from the MS SQL 2000 had exported and imported into the MS > SQL 2003 without issues but the DTS package information did not come across. > Fortunately, the information was also exported as SQL but I still can not > get it imported and it will be very time consuming to re-write it all again. > > Am I missing something simple and obvious or do the DTS packages have to be > all re-keyed??? So far I have been unable to find any information on the > subject.... > > On the other hand having a MS SQL 2000 on the system would resolve these > issues but that could cause more problems than it would solve. After a bout > with a Beta SQL Express which required the complete re-install of our > production server caution is the key-word. (NO DOWNTIME!!) > > If you have any information on the subject or location where I could look > for information I would be greatly appreciative. > > Jim From accessd at shaw.ca Thu Jul 13 15:52:29 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 13 Jul 2006 13:52:29 -0700 Subject: [dba-SQLServer] Exporting from SQL 2000 to SQL 2003 In-Reply-To: <33484.65.196.182.34.1152807121.squirrel@65.196.182.34> Message-ID: <0J2D00CUZ0HOQDS0@l-daemon> Hi Jim: Thank you very much. That is a definitely a thorough explanation for a definitely not obvious solution. Jim -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Jim Moss Sent: Thursday, July 13, 2006 9:12 AM To: dba-sqlserver at databaseadvisors.com Subject: Re: [dba-SQLServer] Exporting from SQL 2000 to SQL 2003 Jim. >From BOL: The Execute DTS 2000 Package task runs packages that were developed by using the SQL Server 2000 tools. By using this task, you can include SQL Server 2000 DTS packages in SQL Server 2005 data transformation solutions. A package can include both Execute Package tasks and Execute DTS 2000 Package tasks, because each type of task uses a different version of the run-time engine. The Execute DTS 2000 Package task runs SQL Server 2000 packages, but otherwise its features are similar to those of the Execute Package task. You can use the Execute DTS 2000 Package task for the following purposes: Breaking down complex package workflow. This task lets you break down workflow into multiple packages, which are easier to read and maintain. For example, if you are loading data into a star schema, you can build a separate package to populate each dimension and the fact table. Reusing parts of packages. Other packages can reuse parts of a package workflow. For example, you can build a data extraction module that can be called from different packages. Each package that calls the extraction module can perform different data scrubbing, filtering, or aggregation operations. Grouping work units. Units of work can be encapsulated into separate packages and joined as transactional components to the workflow of a parent package. For example, the parent package runs the accessory packages, and based on the success or failure of the accessory packages, the parent package either commits or rolls back the transaction. Controlling package security. Package authors require access to only a part of a multipackage solution. By separating a package into multiple packages, you can provide a higher level of security, because you can grant an author access only to relevant packages. Note: The DTS 2000 run-time engine must be installed on the computer to run DTS 2000 packages. For more information, see Installing SQL Server Integration Services. A package that executes other packages, such as the Execute DTS 2000 Package task, is typically referred to as the parent package, and the packages that a parent workflow runs are called child packages. Jim > Hi All: > > Here is a simple question? I have recently exported a database from a SQL > 2000 server to a SQL 2003 server and everything went through with minimal > problems with exception to DTS packages. They just did not import. > > I was wondering if DTS packages have to be re-created, there is a simple > solution or there is some trick to importing them. > > MTIA > 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 accessd at shaw.ca Thu Jul 13 19:16:50 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 13 Jul 2006 17:16:50 -0700 Subject: [dba-SQLServer] nstalling SQL 2000 on a server that already hasSQL 2003 In-Reply-To: <1152813145.44b688590a2c9@webmail.highstream.net> Message-ID: <0J2D00CHF9Y8QGY0@l-daemon> Hi Robert: Your right off course there is no MS SQL 2003... late night or drugs take your choice. That is the answer I was looking for. I will try the import package later as it is currently on a 'down for service' server. Thanks Jim -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Robert L. Stewart Sent: Thursday, July 13, 2006 10:52 AM To: dba-sqlserver at databaseadvisors.com Subject: Re: [dba-SQLServer] nstalling SQL 2000 on a server that already hasSQL 2003 Jim, There is no such thing as SQL 2003. So, assuming you installed SQL 2005 which is the only release after SQL 2000, you use SQL Server Management Studio and connect to the server. Then go to management, Legacy, Data Transformation Services. You can import a package file or use the migration wizard from there. But, I believe you will have to have SQL 2000 running on the system to do this. Robert L. Stewart The Dyson Group International Software for the Non-profit Enterprise Expanding your Sphere of Knowledge Quoting dba-sqlserver-request at databaseadvisors.com: > Date: Thu, 13 Jul 2006 08:16:03 -0700 > From: Jim Lawrence > Subject: Re: [dba-SQLServer] Installing SQL 2000 on a server that > already has SQL 2003 > To: dba-sqlserver at databaseadvisors.com > Message-ID: <0J2C00FO1KWYZ630 at l-daemon> > Content-Type: text/plain; charset=us-ascii > > Hi All: > > Thanks Francisco and Steve: > > Thanks for the information. Actually it is a 2003 Server with MSSQL 2003 > installed. It appears that I got a little ahead of myself when I rebuilt the > server not first installing SQL 2000 as I figured clients would be migrating > to MS SQL 2003. This was not the case and one client would like a bit of > development work done on the SQL 2000. > > All the objects from the MS SQL 2000 had exported and imported into the MS > SQL 2003 without issues but the DTS package information did not come across. > Fortunately, the information was also exported as SQL but I still can not > get it imported and it will be very time consuming to re-write it all again. > > Am I missing something simple and obvious or do the DTS packages have to be > all re-keyed??? So far I have been unable to find any information on the > subject.... > > On the other hand having a MS SQL 2000 on the system would resolve these > issues but that could cause more problems than it would solve. After a bout > with a Beta SQL Express which required the complete re-install of our > production server caution is the key-word. (NO DOWNTIME!!) > > If you have any information on the subject or location where I could look > for information I would be greatly appreciative. > > Jim _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From markamatte at hotmail.com Mon Jul 17 15:28:28 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Mon, 17 Jul 2006 20:28:28 +0000 Subject: [dba-SQLServer] Get my data Informix-SQLServer In-Reply-To: <449A41FC.2014.2B054F97@stuart.lexacorp.com.pg> Message-ID: Hello All, I have SQLServer 7 and I have a link to an Informix db via ODBC. There are over 6 million rows. I don't have a 24hour connection( and what I do have is slower than dirt). The only reason to move it to SQL is to do wildcards searches on a text field. If I use the DTS wizard to pull this in...I'm not sure it would run in the 10 hour window I have...and second...if I cancel half way through...I don't get to keep the first half. When I was pulling this same information into access...I used a counter, ran my SQL for ID 1 to 100,000, looped back to beginning, added 100,000 to my criteria, and ran my SQL again. At anytime I lost my connection I only lost the current 100K group it was pulling. I have a fairly strong background in SQL, Access, and VBA...but SQL Server is new to me. Any suggestions would be great...so is solution above used in Access a likely candidate for the scenario, and if so...where is SQLServer would I create/execute it from (Stored Proc)?...and if not what should I do. Summary, I need to bring 6mil records from Informix to SQL to do wild card searches I have an ODBC connection to Informix...and SQLServer is local. Many thanks for any ideas/direction. Thanks, Mark A. Matte From paul.hartland at fsmail.net Tue Jul 18 05:16:47 2006 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 18 Jul 2006 12:16:47 +0200 (CEST) Subject: [dba-SQLServer] SQL Server 2005 Database With Visual Basic 6.0 Front-End Message-ID: <12926363.1153217807354.JavaMail.www@wwinf3203> To all, We have recently installed SQL Server 2005 and I am looking at using the network login names for security on the database, I have set mine up and setup a test table called tblUsers and as a test disabled myself from updating the column password. I have a very basic form on the front-end which will bring me back my logon name and password like below: Dim rs as ADODB.Recordset Set rs = New ADODB.Recordset rs.CursorLocation = adUseClient rs.Open ("SELECT * FROM tblUsers"), DEOPARA.SQLConn, adOpenDynamic, adLockOptimistic Me.Text1 = rs.Fields("Username") Me.Text2 = rs.Fields("Password") and if I try to edit Text2 (got an update recordset command on the lostfocus as a test for now), it returns an error telling me I can't update this field. What I was wondering is, when I return the recordset is there anyway of telling which field(s) if any aren't going to be updateable by the user, so I can then disable the text box, or would the best way be an error trapping routine for the update error. Any help on this would be greatly appreciated as this is going to turn into a big internal development, when I eventually get to grips with everything. Paul Hartland From rl_stewart at highstream.net Tue Jul 18 12:27:35 2006 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Tue, 18 Jul 2006 13:27:35 -0400 Subject: [dba-SQLServer] Get my data Informix-SQLServer In-Reply-To: References: Message-ID: <1153243655.44bd1a074cd16@webmail.highstream.net> Mark, In your DTS package, go to the last tab, Options, of your transform. Set the insert batch size to 100 and set the always commit last batch. This will allow you to commit each 100 records. It runs a little slower, but you will loose less records that way. If you have an alpha field like customer name, you could also set up a package for each letter of the alphabet and run all 27 of them at once based on the first letter of the company name. The 27th one being any that did not start with a letter. Robert L. Stewart The Dyson Group International Software for the Non-profit Enterprise Expanding your Sphere of Knowledge Quoting dba-sqlserver-request at databaseadvisors.com: > Date: Mon, 17 Jul 2006 20:28:28 +0000 > From: "Mark A Matte" > Subject: [dba-SQLServer] Get my data Informix-SQLServer > To: dba-sqlserver at databaseadvisors.com > Message-ID: > Content-Type: text/plain; format=flowed > > Hello All, > > I have SQLServer 7 and I have a link to an Informix db via ODBC. There are > over 6 million rows. I don't have a 24hour connection( and what I do have > is slower than dirt). The only reason to move it to SQL is to do wildcards > searches on a text field. If I use the DTS wizard to pull this in...I'm not > sure it would run in the 10 hour window I have...and second...if I cancel > half way through...I don't get to keep the first half. > > When I was pulling this same information into access...I used a counter, ran > my SQL for ID 1 to 100,000, looped back to beginning, added 100,000 to my > criteria, and ran my SQL again. At anytime I lost my connection I only lost > the current 100K group it was pulling. > > I have a fairly strong background in SQL, Access, and VBA...but SQL Server > is new to me. Any suggestions would be great...so is solution above used in > Access a likely candidate for the scenario, and if so...where is SQLServer > would I create/execute it from (Stored Proc)?...and if not what should I do. > > Summary, I need to bring 6mil records from Informix to SQL to do wild card > searches I have an ODBC connection to Informix...and SQLServer is local. > > Many thanks for any ideas/direction. > > Thanks, > > Mark A. Matte From artful at rogers.com Wed Jul 19 08:12:57 2006 From: artful at rogers.com (artful at rogers.com) Date: Wed, 19 Jul 2006 06:12:57 -0700 (PDT) Subject: [dba-SQLServer] Get my data Informix-SQLServer In-Reply-To: <1153243655.44bd1a074cd16@webmail.highstream.net> Message-ID: <20060719131257.92899.qmail@web88208.mail.re2.yahoo.com> I'm following this thread a bit late, and I'm not an Informix user, but now I'm curious. Doesn't Informix support the LIKE predicate? Or are your search requirements more complicated than things such as "LIKE %Mark Matte%"? Arthur ----- Original Message ---- From: Robert L. Stewart To: dba-sqlserver at databaseadvisors.com Cc: markamatte at hotmail.com Sent: Tuesday, July 18, 2006 1:27:35 PM Subject: Re: [dba-SQLServer] Get my data Informix-SQLServer Mark, In your DTS package, go to the last tab, Options, of your transform. Set the insert batch size to 100 and set the always commit last batch. This will allow you to commit each 100 records. It runs a little slower, but you will loose less records that way. If you have an alpha field like customer name, you could also set up a package for each letter of the alphabet and run all 27 of them at once based on the first letter of the company name. The 27th one being any that did not start with a letter. Robert L. Stewart The Dyson Group International Software for the Non-profit Enterprise Expanding your Sphere of Knowledge Quoting dba-sqlserver-request at databaseadvisors.com: > Date: Mon, 17 Jul 2006 20:28:28 +0000 > From: "Mark A Matte" > Subject: [dba-SQLServer] Get my data Informix-SQLServer > To: dba-sqlserver at databaseadvisors.com > Message-ID: > Content-Type: text/plain; format=flowed > > Hello All, > > I have SQLServer 7 and I have a link to an Informix db via ODBC. There are > over 6 million rows. I don't have a 24hour connection( and what I do have > is slower than dirt). The only reason to move it to SQL is to do wildcards > searches on a text field. If I use the DTS wizard to pull this in...I'm not > sure it would run in the 10 hour window I have...and second...if I cancel > half way through...I don't get to keep the first half. > > When I was pulling this same information into access...I used a counter, ran > my SQL for ID 1 to 100,000, looped back to beginning, added 100,000 to my > criteria, and ran my SQL again. At anytime I lost my connection I only lost > the current 100K group it was pulling. > > I have a fairly strong background in SQL, Access, and VBA...but SQL Server > is new to me. Any suggestions would be great...so is solution above used in > Access a likely candidate for the scenario, and if so...where is SQLServer > would I create/execute it from (Stored Proc)?...and if not what should I do. > > Summary, I need to bring 6mil records from Informix to SQL to do wild card > searches I have an ODBC connection to Informix...and SQLServer is local. > > Many thanks for any ideas/direction. > > Thanks, > > Mark A. Matte _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From markamatte at hotmail.com Wed Jul 19 10:21:14 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Wed, 19 Jul 2006 15:21:14 +0000 Subject: [dba-SQLServer] Get my data Informix-SQLServer In-Reply-To: <20060719131257.92899.qmail@web88208.mail.re2.yahoo.com> Message-ID: Arthur, Informix does support LIKE or MATCH using wildcards...but not on a TEXT field. The IBM website states that the only comparisons you can use on a TEXT field are IS NULL and IS NOT NULL. I had the informix DBA unload the table to a delimited text file and I'm loading it into SQL SERVER which allows wildcard searches on TEXT files. So Far So Good... Mark A. Matte >From: >Reply-To: dba-sqlserver at databaseadvisors.com >To: dba-sqlserver at databaseadvisors.com >Subject: Re: [dba-SQLServer] Get my data Informix-SQLServer >Date: Wed, 19 Jul 2006 06:12:57 -0700 (PDT) > >I'm following this thread a bit late, and I'm not an Informix user, but now >I'm curious. Doesn't Informix support the LIKE predicate? Or are your >search requirements more complicated than things such as "LIKE %Mark >Matte%"? > >Arthur > >----- Original Message ---- >From: Robert L. Stewart >To: dba-sqlserver at databaseadvisors.com >Cc: markamatte at hotmail.com >Sent: Tuesday, July 18, 2006 1:27:35 PM >Subject: Re: [dba-SQLServer] Get my data Informix-SQLServer > >Mark, > >In your DTS package, go to the last tab, Options, of your transform. Set >the >insert batch size to 100 and set the always commit last batch. This will >allow >you to commit each 100 records. It runs a little slower, but you will >loose >less records that way. > >If you have an alpha field like customer name, you could also set up a >package >for each letter of the alphabet and run all 27 of them at once based on the >first letter of the company name. The 27th one being any that did not >start >with a letter. > >Robert L. Stewart >The Dyson Group International >Software for the Non-profit Enterprise >Expanding your Sphere of Knowledge > > >Quoting dba-sqlserver-request at databaseadvisors.com: > > > Date: Mon, 17 Jul 2006 20:28:28 +0000 > > From: "Mark A Matte" > > Subject: [dba-SQLServer] Get my data Informix-SQLServer > > To: dba-sqlserver at databaseadvisors.com > > Message-ID: > > Content-Type: text/plain; format=flowed > > > > Hello All, > > > > I have SQLServer 7 and I have a link to an Informix db via ODBC. There >are > > over 6 million rows. I don't have a 24hour connection( and what I do >have > > is slower than dirt). The only reason to move it to SQL is to do >wildcards > > searches on a text field. If I use the DTS wizard to pull this in...I'm >not > > sure it would run in the 10 hour window I have...and second...if I >cancel > > half way through...I don't get to keep the first half. > > > > When I was pulling this same information into access...I used a counter, >ran > > my SQL for ID 1 to 100,000, looped back to beginning, added 100,000 to >my > > criteria, and ran my SQL again. At anytime I lost my connection I only >lost > > the current 100K group it was pulling. > > > > I have a fairly strong background in SQL, Access, and VBA...but SQL >Server > > is new to me. Any suggestions would be great...so is solution above >used in > > Access a likely candidate for the scenario, and if so...where is >SQLServer > > would I create/execute it from (Stored Proc)?...and if not what should I >do. > > > > Summary, I need to bring 6mil records from Informix to SQL to do wild >card > > searches I have an ODBC connection to Informix...and SQLServer is local. > > > > Many thanks for any ideas/direction. > > > > Thanks, > > > > Mark A. Matte > > >_______________________________________________ >dba-SQLServer mailing list >dba-SQLServer at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-sqlserver >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 markamatte at hotmail.com Mon Jul 24 11:34:27 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Mon, 24 Jul 2006 16:34:27 +0000 Subject: [dba-SQLServer] SQL WildCard Searches In-Reply-To: <20060719131257.92899.qmail@web88208.mail.re2.yahoo.com> Message-ID: Hello All, I am finally getting my data from Informix into SQL Server. I need to do wild card searches(about 5-7 different key word combinations) on 10 different fields. In Access I planned on having a criteria table, each record being the end of the needed sql statement...and using VBA to loop through these criteria records and executing them against each of the 10 fields. Any suggestions as to my best approach in SQL server? Also, I have to do this 5 more times...same fields...but different set of key words each time, so I was kinda looking for some automation...or at least the easiest way to modify for each new request. Any feedback is appreciated. Thanks, Mark A. Matte From rl_stewart at highstream.net Mon Jul 24 13:02:03 2006 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Mon, 24 Jul 2006 13:02:03 -0500 Subject: [dba-SQLServer] SQL WildCard Searches In-Reply-To: References: Message-ID: <6.2.3.4.2.20060724125517.026904a0@pop3.highstream.net> Mark, A stored procedure for each field you want to search. Something similar to this: CREATE PROCEDURE uspSearchField1 @Word varchar(20) AS SELECT * FROM MyTable WHERE TheField LIKE '%' + @word + '%' You would execute the SP from Access with a pass-through query. EXEC USPSearchField1 'Looking' You could store the words in a table and use 2 queries, one without the parameter and the second one that you change the SQL statement each time using the SQL from the first plus the word from the table. Then you could loop through the table and through all of the queries and get all of the matches rather quickly. Robert At 12:00 PM 7/24/2006, you wrote: >Date: Mon, 24 Jul 2006 16:34:27 +0000 >From: "Mark A Matte" >Subject: Re: [dba-SQLServer] SQL WildCard Searches >To: dba-sqlserver at databaseadvisors.com >Message-ID: >Content-Type: text/plain; format=flowed > >Hello All, > >I am finally getting my data from Informix into SQL Server. I need to do >wild card searches(about 5-7 different key word combinations) on 10 >different fields. In Access I planned on having a criteria table, each >record being the end of the needed sql statement...and using VBA to loop >through these criteria records and executing them against each of the 10 >fields. > >Any suggestions as to my best approach in SQL server? > >Also, I have to do this 5 more times...same fields...but different set of >key words each time, so I was kinda looking for some automation...or at >least the easiest way to modify for each new request. > >Any feedback is appreciated. > >Thanks, > >Mark A. Matte From markamatte at hotmail.com Tue Jul 25 09:58:40 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Tue, 25 Jul 2006 14:58:40 +0000 Subject: [dba-SQLServer] SQL WildCard Searches In-Reply-To: <6.2.3.4.2.20060724125517.026904a0@pop3.highstream.net> Message-ID: Robert, Thanks for the feedback. The SQL SERVER db is acutally on my laptop...so I didn't think I would need to use MSACCESS to query the data...but for me...coding the looping part may be easier in Access. Also...the with the sample select below I was going to try something similar...and have the entire where statement as a seperate string because the search is not just for each word...but combinations...and's, or's, and stuff... Thanks again, Mark A. Matte >From: "Robert L. Stewart" >Reply-To: dba-sqlserver at databaseadvisors.com >To: dba-sqlserver at databaseadvisors.com >CC: markamatte at hotmail.com >Subject: Re: [dba-SQLServer] SQL WildCard Searches >Date: Mon, 24 Jul 2006 13:02:03 -0500 > >Mark, > >A stored procedure for each field you want to search. > >Something similar to this: > >CREATE PROCEDURE uspSearchField1 > @Word varchar(20) >AS >SELECT * >FROM MyTable >WHERE TheField LIKE '%' + @word + '%' > >You would execute the SP from Access with a pass-through query. > >EXEC USPSearchField1 'Looking' > >You could store the words in a table and use 2 queries, one without >the parameter and the second one that you change the SQL statement >each time using the SQL from the first plus the word from the >table. Then you could loop through the table and through all of the >queries and get all of the matches rather quickly. > >Robert > >At 12:00 PM 7/24/2006, you wrote: > >Date: Mon, 24 Jul 2006 16:34:27 +0000 > >From: "Mark A Matte" > >Subject: Re: [dba-SQLServer] SQL WildCard Searches > >To: dba-sqlserver at databaseadvisors.com > >Message-ID: > >Content-Type: text/plain; format=flowed > > > >Hello All, > > > >I am finally getting my data from Informix into SQL Server. I need to do > >wild card searches(about 5-7 different key word combinations) on 10 > >different fields. In Access I planned on having a criteria table, each > >record being the end of the needed sql statement...and using VBA to loop > >through these criteria records and executing them against each of the 10 > >fields. > > > >Any suggestions as to my best approach in SQL server? > > > >Also, I have to do this 5 more times...same fields...but different set >of > >key words each time, so I was kinda looking for some automation...or at > >least the easiest way to modify for each new request. > > > >Any feedback is appreciated. > > > >Thanks, > > > >Mark A. Matte > > >_______________________________________________ >dba-SQLServer mailing list >dba-SQLServer at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-sqlserver >http://www.databaseadvisors.com > From markamatte at hotmail.com Wed Jul 26 11:03:13 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Wed, 26 Jul 2006 16:03:13 +0000 Subject: [dba-SQLServer] SQL WildCard Searches In-Reply-To: <6.2.3.4.2.20060724125517.026904a0@pop3.highstream.net> Message-ID: Thanks Again Robert, Is there a way to call this procedure from within SQL Server...I'm trying to do this all in SQL Server and not involve Access. I can call the sproc from the query analyzer...but I can only pass a single value. How can I, using the logic below(all where clauses in table),from the query analyzer...loop through the records in my criteria table and execute the sproc on each one? Thanks, Mark A. Matte >From: "Robert L. Stewart" >Reply-To: dba-sqlserver at databaseadvisors.com >To: dba-sqlserver at databaseadvisors.com >CC: markamatte at hotmail.com >Subject: Re: [dba-SQLServer] SQL WildCard Searches >Date: Mon, 24 Jul 2006 13:02:03 -0500 > >Mark, > >A stored procedure for each field you want to search. > >Something similar to this: > >CREATE PROCEDURE uspSearchField1 > @Word varchar(20) >AS >SELECT * >FROM MyTable >WHERE TheField LIKE '%' + @word + '%' > >You would execute the SP from Access with a pass-through query. > >EXEC USPSearchField1 'Looking' > >You could store the words in a table and use 2 queries, one without >the parameter and the second one that you change the SQL statement >each time using the SQL from the first plus the word from the >table. Then you could loop through the table and through all of the >queries and get all of the matches rather quickly. > >Robert > >At 12:00 PM 7/24/2006, you wrote: > >Date: Mon, 24 Jul 2006 16:34:27 +0000 > >From: "Mark A Matte" > >Subject: Re: [dba-SQLServer] SQL WildCard Searches > >To: dba-sqlserver at databaseadvisors.com > >Message-ID: > >Content-Type: text/plain; format=flowed > > > >Hello All, > > > >I am finally getting my data from Informix into SQL Server. I need to do > >wild card searches(about 5-7 different key word combinations) on 10 > >different fields. In Access I planned on having a criteria table, each > >record being the end of the needed sql statement...and using VBA to loop > >through these criteria records and executing them against each of the 10 > >fields. > > > >Any suggestions as to my best approach in SQL server? > > > >Also, I have to do this 5 more times...same fields...but different set >of > >key words each time, so I was kinda looking for some automation...or at > >least the easiest way to modify for each new request. > > > >Any feedback is appreciated. > > > >Thanks, > > > >Mark A. Matte > > >_______________________________________________ >dba-SQLServer mailing list >dba-SQLServer at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-sqlserver >http://www.databaseadvisors.com > From rl_stewart at highstream.net Wed Jul 26 16:05:12 2006 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Wed, 26 Jul 2006 16:05:12 -0500 Subject: [dba-SQLServer] SQL WildCard Searches In-Reply-To: References: Message-ID: <6.2.3.4.2.20060726155146.0270f200@pop3.highstream.net> Declare a forward-only cursor to get the list of words. Get the first value. Run the select below. fetch the next row. Loop to run the select again. Do this until the end of the cursor. A cursor operates similar to a recordset in Access. Doing that, you would want to store the results somewhere so you could know what they were. So instead of a select, you might want an insert into based on the select. At 12:00 PM 7/26/2006, you wrote: >Date: Wed, 26 Jul 2006 16:03:13 +0000 >From: "Mark A Matte" >Subject: Re: [dba-SQLServer] SQL WildCard Searches >To: dba-sqlserver at databaseadvisors.com >Message-ID: >Content-Type: text/plain; format=flowed > >Thanks Again Robert, > >Is there a way to call this procedure from within SQL Server...I'm trying to >do this all in SQL Server and not involve Access. I can call the sproc from >the query analyzer...but I can only pass a single value. How can I, using >the logic below(all where clauses in table),from the query analyzer...loop >through the records in my criteria table and execute the sproc on each one? > >Thanks, > >Mark A. Matte > > > >From: "Robert L. Stewart" > >Reply-To: dba-sqlserver at databaseadvisors.com > >To: dba-sqlserver at databaseadvisors.com > >CC: markamatte at hotmail.com > >Subject: Re: [dba-SQLServer] SQL WildCard Searches > >Date: Mon, 24 Jul 2006 13:02:03 -0500 > > > >Mark, > > > >A stored procedure for each field you want to search. > > > >Something similar to this: > > > >CREATE PROCEDURE uspSearchField1 > > @Word varchar(20) > >AS > >SELECT * > >FROM MyTable > >WHERE TheField LIKE '%' + @word + '%' > >