From sgeller at cce.umn.edu Wed Jun 4 08:22:36 2003 From: sgeller at cce.umn.edu (Susan Geller) Date: Wed, 4 Jun 2003 08:22:36 -0500 Subject: [dba-SQLServer]Execute DTS from VBA Message-ID: Can I execute a DTS from inside my ADP file in code? How? Access XP, Windows XP, SQL Server 2000. Thanks. --Susan Susan B. Geller Office of Information Systems College of Continuing Education University of Minnesota 306 Wesbrook Hall 77 Pleasant Street SE Minneapolis, MN 55455 Phone: 612-626-4785 Fax: 612-625-2568 From mikedorism at ntelos.net Wed Jun 4 09:11:34 2003 From: mikedorism at ntelos.net (Mike and Doris Manning) Date: Wed, 4 Jun 2003 10:11:34 -0400 Subject: [dba-SQLServer]Execute DTS from VBA In-Reply-To: Message-ID: <000001c32aa3$38449380$c2360cd8@hargrove.internal> Yes you can. You will need to a few references depending on what you want to do. Microsoft DTSPackage Object Library -- required for all DTS packages Microsoft DTSDataPump Scripting Object Library -- Almost always required. It contains the built-in transformations and the DTS scripting object Microsoft DTS Custom Tasks Object Library -- contains the Message Queue Task, the FTP Task, and the Dynamic Properties task. DTSOLAPProcess -- contains the Analytic Services Processing task DTSPrediction -- contains the Data Mining Prediction task OMWCustomTasks 1.0 Type Library -- contains the Transfer Databases task and the four associated transfer tasks. I found SAMS Microsoft SQL Server 2000 DTS (ISBN 0-672-32011-8) to be an excellent resource for VB and VBA automation. 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 Susan Geller Sent: Wednesday, June 04, 2003 9:23 AM To: dba-SQLServer at databaseadvisors.com Subject: [dba-SQLServer]Execute DTS from VBA Can I execute a DTS from inside my ADP file in code? How? Access XP, Windows XP, SQL Server 2000. Thanks. --Susan Susan B. Geller Office of Information Systems College of Continuing Education University of Minnesota 306 Wesbrook Hall 77 Pleasant Street SE Minneapolis, MN 55455 Phone: 612-626-4785 Fax: 612-625-2568 _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From MPorter at acsalaska.com Wed Jun 4 13:23:34 2003 From: MPorter at acsalaska.com (Porter, Mark) Date: Wed, 4 Jun 2003 10:23:34 -0800 Subject: [dba-SQLServer]Execute DTS from VBA Message-ID: there are also great resources at www.sqldts.com -----Original Message----- From: Mike and Doris Manning [mailto:mikedorism at ntelos.net] Sent: Wednesday, June 04, 2003 6:12 AM To: dba-sqlserver at databaseadvisors.com Subject: RE: [dba-SQLServer]Execute DTS from VBA Yes you can. You will need to a few references depending on what you want to do. Microsoft DTSPackage Object Library -- required for all DTS packages Microsoft DTSDataPump Scripting Object Library -- Almost always required. It contains the built-in transformations and the DTS scripting object Microsoft DTS Custom Tasks Object Library -- contains the Message Queue Task, the FTP Task, and the Dynamic Properties task. DTSOLAPProcess -- contains the Analytic Services Processing task DTSPrediction -- contains the Data Mining Prediction task OMWCustomTasks 1.0 Type Library -- contains the Transfer Databases task and the four associated transfer tasks. I found SAMS Microsoft SQL Server 2000 DTS (ISBN 0-672-32011-8) to be an excellent resource for VB and VBA automation. 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 Susan Geller Sent: Wednesday, June 04, 2003 9:23 AM To: dba-SQLServer at databaseadvisors.com Subject: [dba-SQLServer]Execute DTS from VBA Can I execute a DTS from inside my ADP file in code? How? Access XP, Windows XP, SQL Server 2000. Thanks. --Susan Susan B. Geller Office of Information Systems College of Continuing Education University of Minnesota 306 Wesbrook Hall 77 Pleasant Street SE Minneapolis, MN 55455 Phone: 612-626-4785 Fax: 612-625-2568 _______________________________________________ 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 This transmittal may contain confidential information intended solely for the addressee. If you are not the intended recipient, you are hereby notified that you have received this transmittal in error; any review, dissemination, distribution or copying of this transmittal is strictly prohibited. If you have received this communication in error, please notify us immediately by reply or by telephone (collect at 907-564-1000) and ask to speak with the message sender. In addition, please immediately delete this message and all attachments. Thank you. From subs at solution-providers.ie Thu Jun 5 03:24:54 2003 From: subs at solution-providers.ie (Mark L. Breen) Date: Thu, 5 Jun 2003 09:24:54 +0100 Subject: [dba-SQLServer]Execute DTS from VBA References: Message-ID: <002601c32b3b$fab33820$6a1118ac@D8TZHN0J> Hello Susan, Have a look at the following lines of code Dim objPackage2 As New DTS.Package objPackage2.LoadFromSQLServer ".", , , DTSSQLStgFlag_UseTrustedConnection, , , , "NEWSPPSPackage" objPackage2.FailOnError = True objPackage2.Execute objPackage2.UnInitialize Set objPackage2 = Nothing They are taken from a system that I have just finished, they are working. It is important to use the uninitialize, otherwise, you cannot reuse the package. One word of warning, I am sometimes finding that it does not like being used in quick sucession, but only sometimes, I cannot figure out why if fails when it does. Other times, it will import five and ten files rapidly in quick sucession. I was considering rewriting the code to manually handle the file that I am importing on a line by line basis, but I feel that DTS should be the way to go, otherwise why would MS have created it in the first place. But then again, you could say that about the fax facility in Windows 95. Let me know what you decide to do, I would be interested. Thanks Mark Breen Ireland ----- Original Message ----- From: "Susan Geller" To: Sent: Wednesday, June 04, 2003 2:22 PM Subject: [dba-SQLServer]Execute DTS from VBA > Can I execute a DTS from inside my ADP file in code? How? > > Access XP, Windows XP, SQL Server 2000. > > Thanks. > > --Susan > > > Susan B. Geller > Office of Information Systems > College of Continuing Education > University of Minnesota > 306 Wesbrook Hall > 77 Pleasant Street SE > Minneapolis, MN 55455 > Phone: 612-626-4785 > Fax: 612-625-2568 > > > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > > From sgeller at cce.umn.edu Thu Jun 5 08:32:50 2003 From: sgeller at cce.umn.edu (Susan Geller) Date: Thu, 5 Jun 2003 08:32:50 -0500 Subject: [dba-SQLServer]Execute DTS from VBA Message-ID: Mark, Your code worked! I just made a really simple DTS to test it out with. It seems to work about 75% of the time. I'm not at all sure what is different the other 25% of the time. It may be the quick succession thing that you mentioned. I'll need to play with this a bit more. A couple of questions: 1. What references do you have set for DTS? I just set MicrosoftDTSPackageLibrary. 2. What does "DTSSQLStgFlag_UseTrustedConnection" do? And, related to that, what do I need to consider about permissions? I want users to be able to execute the DTS, but they don't have SA access to the Server the way I do. On a OT note, I just got back from 9 days of honeymooning in Ireland. What a beautiful country. We spent most of our time in County Donegal, but saw a lot of the west coast on our drive up from Shannon to Donegal. Where do you live? --Susan -----Original Message----- From: Mark L. Breen [mailto:subs at solution-providers.ie] Sent: Thursday, June 05, 2003 3:25 AM To: dba-sqlserver at databaseadvisors.com Subject: Re: [dba-SQLServer]Execute DTS from VBA Hello Susan, Have a look at the following lines of code Dim objPackage2 As New DTS.Package objPackage2.LoadFromSQLServer ".", , , DTSSQLStgFlag_UseTrustedConnection, , , , "NEWSPPSPackage" objPackage2.FailOnError = True objPackage2.Execute objPackage2.UnInitialize Set objPackage2 = Nothing They are taken from a system that I have just finished, they are working. It is important to use the uninitialize, otherwise, you cannot reuse the package. One word of warning, I am sometimes finding that it does not like being used in quick sucession, but only sometimes, I cannot figure out why if fails when it does. Other times, it will import five and ten files rapidly in quick sucession. I was considering rewriting the code to manually handle the file that I am importing on a line by line basis, but I feel that DTS should be the way to go, otherwise why would MS have created it in the first place. But then again, you could say that about the fax facility in Windows 95. Let me know what you decide to do, I would be interested. Thanks Mark Breen Ireland ----- Original Message ----- From: "Susan Geller" To: Sent: Wednesday, June 04, 2003 2:22 PM Subject: [dba-SQLServer]Execute DTS from VBA > Can I execute a DTS from inside my ADP file in code? How? > > Access XP, Windows XP, SQL Server 2000. > > Thanks. > > --Susan > > > Susan B. Geller > Office of Information Systems > College of Continuing Education > University of Minnesota > 306 Wesbrook Hall > 77 Pleasant Street SE > Minneapolis, MN 55455 > Phone: 612-626-4785 > Fax: 612-625-2568 > > > _______________________________________________ > 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 subs at solution-providers.ie Thu Jun 5 10:09:12 2003 From: subs at solution-providers.ie (Mark L. Breen) Date: Thu, 5 Jun 2003 16:09:12 +0100 Subject: [dba-SQLServer]Execute DTS from VBA References: Message-ID: <001a01c32b74$6f09f4b0$6a1118ac@D8TZHN0J> Hello Susan, Firstly, I am sorry that I did not know that you were in Ireland, I would have invited you and the previous Mr Gellerman to Co. Kildare. Donegal is beautiful, I love it, they say up there, if you do not like the weather, wait five minutes, 'cause it changes that fast. My brother is married to a girl from Culdaff, about 3 miles south of the most northly point in Ireland. I hope that the people were nice to you and that you could handle the roads and the tiny cars we all drive over here. The only reference in relation to DTS is MicrosoftDTSPackageLibrary, as you have. If you do not set the UseTrustedConnection bit, you have to mess around with the username and password of the package, not what I wanted to have to bother with. I gave no consideration to permissions after that, I just relied on the OpSys security, I do not think that the user needs to be an SA, but perhaps you have to set some security rights for the user or group. I have not done it yet, but I do not think that it is too big a deal. You can get away with one execution without uninitialize, but once I put it in I could do multiple, I still get the failures, and I am still considering doing it manually, but as I said, I would prefer not to. Keep in touch with it, you are the only person I have ever communicated with that uses DTS since SQL 7 was born! Maybe I just lead a sheltered life. The Shannon to Donegal is great, did you go to Carrick-On-Shannon or even a village named Boyle ? In fact, did you go to Culdaff? Mark ----- Original Message ----- From: "Susan Geller" To: Sent: Thursday, June 05, 2003 2:32 PM Subject: RE: [dba-SQLServer]Execute DTS from VBA > Mark, > > Your code worked! I just made a really simple DTS to test it out with. > It seems to work about 75% of the time. I'm not at all sure what is > different the other 25% of the time. It may be the quick succession > thing that you mentioned. I'll need to play with this a bit more. > > A couple of questions: > > 1. What references do you have set for DTS? I just set > MicrosoftDTSPackageLibrary. > > 2. What does "DTSSQLStgFlag_UseTrustedConnection" do? And, related to > that, what do I need to consider about permissions? I want users to be > able to execute the DTS, but they don't have SA access to the Server the > way I do. > > On a OT note, I just got back from 9 days of honeymooning in Ireland. > What a beautiful country. We spent most of our time in County Donegal, > but saw a lot of the west coast on our drive up from Shannon to Donegal. > Where do you live? > > --Susan > > > -----Original Message----- > From: Mark L. Breen [mailto:subs at solution-providers.ie] > Sent: Thursday, June 05, 2003 3:25 AM > To: dba-sqlserver at databaseadvisors.com > Subject: Re: [dba-SQLServer]Execute DTS from VBA > > > Hello Susan, > > Have a look at the following lines of code > > Dim objPackage2 As New DTS.Package > objPackage2.LoadFromSQLServer ".", , , > DTSSQLStgFlag_UseTrustedConnection, , , , "NEWSPPSPackage" > objPackage2.FailOnError = True > objPackage2.Execute > objPackage2.UnInitialize > Set objPackage2 = Nothing > > > They are taken from a system that I have just finished, they are > working. It is important to use the uninitialize, otherwise, you cannot > reuse the package. > > One word of warning, I am sometimes finding that it does not like being > used in quick sucession, but only sometimes, I cannot figure out why if > fails when it does. Other times, it will import five and ten files > rapidly in quick sucession. > > I was considering rewriting the code to manually handle the file that I > am importing on a line by line basis, but I feel that DTS should be the > way to go, otherwise why would MS have created it in the first place. > But then again, you could say that about the fax facility in Windows 95. > > Let me know what you decide to do, I would be interested. > > Thanks > > Mark Breen > Ireland > > > > > ----- Original Message ----- > From: "Susan Geller" > To: > Sent: Wednesday, June 04, 2003 2:22 PM > Subject: [dba-SQLServer]Execute DTS from VBA > > > > Can I execute a DTS from inside my ADP file in code? How? > > > > Access XP, Windows XP, SQL Server 2000. > > > > Thanks. > > > > --Susan > > > > > > Susan B. Geller > > Office of Information Systems > > College of Continuing Education > > University of Minnesota > > 306 Wesbrook Hall > > 77 Pleasant Street SE > > Minneapolis, MN 55455 > > Phone: 612-626-4785 > > Fax: 612-625-2568 > > > > > > _______________________________________________ > > dba-SQLServer mailing list > > dba-SQLServer at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > > http://www.databaseadvisors.com > > > > > > > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > From sgeller at cce.umn.edu Thu Jun 5 11:21:39 2003 From: sgeller at cce.umn.edu (Susan Geller) Date: Thu, 5 Jun 2003 11:21:39 -0500 Subject: [dba-SQLServer]OT: Ireland Message-ID: Mark, We were in Culdaff!!!! It is soooo beautiful there. The day we were there it was in the low 20's and sunny and the beach had only a very few people. We did go to McGrory's but there wasn't music that night. Culdaff was one of my favorite places. Other favorites were Horn Head and Slieve League. We didn't go to Carrick-On-Shannon or Boyle, but I remember them both from the map. I'm sorry to have missed you in Co. Kildare. We intend to go back b/c we didn't have nearly enough time and we'll visit then. People were exceptionally nice and the roads were a nightmare. We drove a LOT and did get used to it a bit, but we never relaxed and we were happy to get back to our roads where the lanes are wider, there are more of them, and people drive at reasonable speeds and pass with a bit more caution. But, the roads in Ireland are far more scenic!!! --Susan -----Original Message----- From: Mark L. Breen [mailto:subs at solution-providers.ie] Sent: Thursday, June 05, 2003 10:09 AM To: dba-sqlserver at databaseadvisors.com Subject: Re: [dba-SQLServer]Execute DTS from VBA Hello Susan, Firstly, I am sorry that I did not know that you were in Ireland, I would have invited you and the previous Mr Gellerman to Co. Kildare. Donegal is beautiful, I love it, they say up there, if you do not like the weather, wait five minutes, 'cause it changes that fast. My brother is married to a girl from Culdaff, about 3 miles south of the most northly point in Ireland. I hope that the people were nice to you and that you could handle the roads and the tiny cars we all drive over here. The only reference in relation to DTS is MicrosoftDTSPackageLibrary, as you have. If you do not set the UseTrustedConnection bit, you have to mess around with the username and password of the package, not what I wanted to have to bother with. I gave no consideration to permissions after that, I just relied on the OpSys security, I do not think that the user needs to be an SA, but perhaps you have to set some security rights for the user or group. I have not done it yet, but I do not think that it is too big a deal. You can get away with one execution without uninitialize, but once I put it in I could do multiple, I still get the failures, and I am still considering doing it manually, but as I said, I would prefer not to. Keep in touch with it, you are the only person I have ever communicated with that uses DTS since SQL 7 was born! Maybe I just lead a sheltered life. The Shannon to Donegal is great, did you go to Carrick-On-Shannon or even a village named Boyle ? In fact, did you go to Culdaff? Mark ----- Original Message ----- From: "Susan Geller" To: Sent: Thursday, June 05, 2003 2:32 PM Subject: RE: [dba-SQLServer]Execute DTS from VBA > Mark, > > Your code worked! I just made a really simple DTS to test it out > with. It seems to work about 75% of the time. I'm not at all sure > what is different the other 25% of the time. It may be the quick > succession thing that you mentioned. I'll need to play with this a > bit more. > > A couple of questions: > > 1. What references do you have set for DTS? I just set > MicrosoftDTSPackageLibrary. > > 2. What does "DTSSQLStgFlag_UseTrustedConnection" do? And, related to > that, what do I need to consider about permissions? I want users to > be able to execute the DTS, but they don't have SA access to the > Server the way I do. > > On a OT note, I just got back from 9 days of honeymooning in Ireland. > What a beautiful country. We spent most of our time in County > Donegal, but saw a lot of the west coast on our drive up from Shannon > to Donegal. Where do you live? > > --Susan > > > -----Original Message----- > From: Mark L. Breen [mailto:subs at solution-providers.ie] > Sent: Thursday, June 05, 2003 3:25 AM > To: dba-sqlserver at databaseadvisors.com > Subject: Re: [dba-SQLServer]Execute DTS from VBA > > > Hello Susan, > > Have a look at the following lines of code > > Dim objPackage2 As New DTS.Package > objPackage2.LoadFromSQLServer ".", , , > DTSSQLStgFlag_UseTrustedConnection, , , , "NEWSPPSPackage" > objPackage2.FailOnError = True > objPackage2.Execute > objPackage2.UnInitialize > Set objPackage2 = Nothing > > > They are taken from a system that I have just finished, they are > working. It is important to use the uninitialize, otherwise, you > cannot reuse the package. > > One word of warning, I am sometimes finding that it does not like > being used in quick sucession, but only sometimes, I cannot figure out > why if fails when it does. Other times, it will import five and ten > files rapidly in quick sucession. > > I was considering rewriting the code to manually handle the file that > I am importing on a line by line basis, but I feel that DTS should be > the way to go, otherwise why would MS have created it in the first > place. But then again, you could say that about the fax facility in > Windows 95. > > Let me know what you decide to do, I would be interested. > > Thanks > > Mark Breen > Ireland > > > > > ----- Original Message ----- > From: "Susan Geller" > To: > Sent: Wednesday, June 04, 2003 2:22 PM > Subject: [dba-SQLServer]Execute DTS from VBA > > > > Can I execute a DTS from inside my ADP file in code? How? > > > > Access XP, Windows XP, SQL Server 2000. > > > > Thanks. > > > > --Susan > > > > > > Susan B. Geller > > Office of Information Systems > > College of Continuing Education > > University of Minnesota > > 306 Wesbrook Hall > > 77 Pleasant Street SE > > Minneapolis, MN 55455 > > Phone: 612-626-4785 > > Fax: 612-625-2568 > > > > > > _______________________________________________ > > dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > > http://www.databaseadvisors.com > > > > > > > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From sgeller at cce.umn.edu Thu Jun 5 11:24:36 2003 From: sgeller at cce.umn.edu (Susan Geller) Date: Thu, 5 Jun 2003 11:24:36 -0500 Subject: [dba-SQLServer]Execute DTS from VBA Message-ID: I did set the unitialize as you did. I am not going to work on this fully for a couple more weeks, but I'll keep you posted when I get back to it. We use DTS a lot for many different things, but I've never executed a DTS from a adp before. We mostly use DTS to get data from the University's central data location into our own sql server database. We are getting fancier and fancier the more we play with it. We have a SQL Server Developer's group at the University of Minnesota and right now we are focusing exclusively on DTS. We have started talking about how to use script in a DTS to do even more sophisticated stuff. It's very cool. I think lots of others on this list use DTS, so you are not alone. --Susan -----Original Message----- From: Mark L. Breen [mailto:subs at solution-providers.ie] Sent: Thursday, June 05, 2003 10:09 AM To: dba-sqlserver at databaseadvisors.com Subject: Re: [dba-SQLServer]Execute DTS from VBA Hello Susan, Firstly, I am sorry that I did not know that you were in Ireland, I would have invited you and the previous Mr Gellerman to Co. Kildare. Donegal is beautiful, I love it, they say up there, if you do not like the weather, wait five minutes, 'cause it changes that fast. My brother is married to a girl from Culdaff, about 3 miles south of the most northly point in Ireland. I hope that the people were nice to you and that you could handle the roads and the tiny cars we all drive over here. The only reference in relation to DTS is MicrosoftDTSPackageLibrary, as you have. If you do not set the UseTrustedConnection bit, you have to mess around with the username and password of the package, not what I wanted to have to bother with. I gave no consideration to permissions after that, I just relied on the OpSys security, I do not think that the user needs to be an SA, but perhaps you have to set some security rights for the user or group. I have not done it yet, but I do not think that it is too big a deal. You can get away with one execution without uninitialize, but once I put it in I could do multiple, I still get the failures, and I am still considering doing it manually, but as I said, I would prefer not to. Keep in touch with it, you are the only person I have ever communicated with that uses DTS since SQL 7 was born! Maybe I just lead a sheltered life. The Shannon to Donegal is great, did you go to Carrick-On-Shannon or even a village named Boyle ? In fact, did you go to Culdaff? Mark ----- Original Message ----- From: "Susan Geller" To: Sent: Thursday, June 05, 2003 2:32 PM Subject: RE: [dba-SQLServer]Execute DTS from VBA > Mark, > > Your code worked! I just made a really simple DTS to test it out > with. It seems to work about 75% of the time. I'm not at all sure > what is different the other 25% of the time. It may be the quick > succession thing that you mentioned. I'll need to play with this a > bit more. > > A couple of questions: > > 1. What references do you have set for DTS? I just set > MicrosoftDTSPackageLibrary. > > 2. What does "DTSSQLStgFlag_UseTrustedConnection" do? And, related to > that, what do I need to consider about permissions? I want users to > be able to execute the DTS, but they don't have SA access to the > Server the way I do. > > On a OT note, I just got back from 9 days of honeymooning in Ireland. > What a beautiful country. We spent most of our time in County > Donegal, but saw a lot of the west coast on our drive up from Shannon > to Donegal. Where do you live? > > --Susan > > > -----Original Message----- > From: Mark L. Breen [mailto:subs at solution-providers.ie] > Sent: Thursday, June 05, 2003 3:25 AM > To: dba-sqlserver at databaseadvisors.com > Subject: Re: [dba-SQLServer]Execute DTS from VBA > > > Hello Susan, > > Have a look at the following lines of code > > Dim objPackage2 As New DTS.Package > objPackage2.LoadFromSQLServer ".", , , > DTSSQLStgFlag_UseTrustedConnection, , , , "NEWSPPSPackage" > objPackage2.FailOnError = True > objPackage2.Execute > objPackage2.UnInitialize > Set objPackage2 = Nothing > > > They are taken from a system that I have just finished, they are > working. It is important to use the uninitialize, otherwise, you > cannot reuse the package. > > One word of warning, I am sometimes finding that it does not like > being used in quick sucession, but only sometimes, I cannot figure out > why if fails when it does. Other times, it will import five and ten > files rapidly in quick sucession. > > I was considering rewriting the code to manually handle the file that > I am importing on a line by line basis, but I feel that DTS should be > the way to go, otherwise why would MS have created it in the first > place. But then again, you could say that about the fax facility in > Windows 95. > > Let me know what you decide to do, I would be interested. > > Thanks > > Mark Breen > Ireland > > > > > ----- Original Message ----- > From: "Susan Geller" > To: > Sent: Wednesday, June 04, 2003 2:22 PM > Subject: [dba-SQLServer]Execute DTS from VBA > > > > Can I execute a DTS from inside my ADP file in code? How? > > > > Access XP, Windows XP, SQL Server 2000. > > > > Thanks. > > > > --Susan > > > > > > Susan B. Geller > > Office of Information Systems > > College of Continuing Education > > University of Minnesota > > 306 Wesbrook Hall > > 77 Pleasant Street SE > > Minneapolis, MN 55455 > > Phone: 612-626-4785 > > Fax: 612-625-2568 > > > > > > _______________________________________________ > > dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > > http://www.databaseadvisors.com > > > > > > > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From subs at solution-providers.ie Fri Jun 6 05:05:32 2003 From: subs at solution-providers.ie (Mark L. Breen) Date: Fri, 6 Jun 2003 11:05:32 +0100 Subject: [dba-SQLServer]OT: Ireland References: Message-ID: <002c01c32c13$2d8dbbd0$6a1118ac@D8TZHN0J> Hello Susan, I have spent some fantastic time in McGrorys, I know it very well. Did you meet Anne McGrory? She runs the place. My brother may even have been there when you were there, what a pity we did not meet up. It can be a big world but when people from AccessD bump into people in Ireland, it is not so big. Yes, the roads are great fun over here, but believe it or not, we are used to them and find them no problem. On the other hand, if we drive in the US, we find it a little traumatic 'cause there are so many roads, so many cars and 'cause the roads are so big, we feel sorta like, on a small road you are in a homely environment, not like one of those 'big city' roads in the US of A! Having said that I love the US and find the driving great there. It is a pity you missed the music in McGrorys, they have brilliant bands there and people come from far and wide to hear music there. Do you think that you might come back next year or 4-5 years time ? Mark ----- Original Message ----- From: "Susan Geller" To: Sent: Thursday, June 05, 2003 5:21 PMou Subject: RE: [dba-SQLServer]OT: Ireland > Mark, > > We were in Culdaff!!!! It is soooo beautiful there. The day we were > there it was in the low 20's and sunny and the beach had only a very few > people. We did go to McGrory's but there wasn't music that night. > Culdaff was one of my favorite places. Other favorites were Horn Head > and Slieve League. We didn't go to Carrick-On-Shannon or Boyle, but I > remember them both from the map. I'm sorry to have missed you in Co. > Kildare. We intend to go back b/c we didn't have nearly enough time and > we'll visit then. > > People were exceptionally nice and the roads were a nightmare. We drove > a LOT and did get used to it a bit, but we never relaxed and we were > happy to get back to our roads where the lanes are wider, there are more > of them, and people drive at reasonable speeds and pass with a bit more > caution. But, the roads in Ireland are far more scenic!!! > > --Susan > > > -----Original Message----- > From: Mark L. Breen [mailto:subs at solution-providers.ie] > Sent: Thursday, June 05, 2003 10:09 AM > To: dba-sqlserver at databaseadvisors.com > Subject: Re: [dba-SQLServer]Execute DTS from VBA > > > Hello Susan, > > Firstly, I am sorry that I did not know that you were in Ireland, I > would have invited you and the previous Mr Gellerman to Co. Kildare. > > Donegal is beautiful, I love it, they say up there, if you do not like > the weather, wait five minutes, 'cause it changes that fast. My brother > is married to a girl from Culdaff, about 3 miles south of the most > northly point in Ireland. I hope that the people were nice to you and > that you could handle the roads and the tiny cars we all drive over > here. > > The only reference in relation to DTS is MicrosoftDTSPackageLibrary, as > you have. > > If you do not set the UseTrustedConnection bit, you have to mess around > with the username and password of the package, not what I wanted to have > to bother with. I gave no consideration to permissions after that, I > just relied on the OpSys security, I do not think that the user needs to > be an SA, but perhaps you have to set some security rights for the user > or group. I have not done it yet, but I do not think that it is too big > a deal. > > You can get away with one execution without uninitialize, but once I put > it in I could do multiple, I still get the failures, and I am still > considering doing it manually, but as I said, I would prefer not to. > > Keep in touch with it, you are the only person I have ever communicated > with that uses DTS since SQL 7 was born! Maybe I just lead a sheltered > life. > > The Shannon to Donegal is great, did you go to Carrick-On-Shannon or > even a village named Boyle ? In fact, did you go to Culdaff? > > Mark > > > > ----- Original Message ----- > From: "Susan Geller" > To: > Sent: Thursday, June 05, 2003 2:32 PM > Subject: RE: [dba-SQLServer]Execute DTS from VBA > > > > Mark, > > > > Your code worked! I just made a really simple DTS to test it out > > with. It seems to work about 75% of the time. I'm not at all sure > > what is different the other 25% of the time. It may be the quick > > succession thing that you mentioned. I'll need to play with this a > > bit more. > > > > A couple of questions: > > > > 1. What references do you have set for DTS? I just set > > MicrosoftDTSPackageLibrary. > > > > 2. What does "DTSSQLStgFlag_UseTrustedConnection" do? And, related to > > > that, what do I need to consider about permissions? I want users to > > be able to execute the DTS, but they don't have SA access to the > > Server the way I do. > > > > On a OT note, I just got back from 9 days of honeymooning in Ireland. > > What a beautiful country. We spent most of our time in County > > Donegal, but saw a lot of the west coast on our drive up from Shannon > > to Donegal. Where do you live? > > > > --Susan > > > > > > -----Original Message----- > > From: Mark L. Breen [mailto:subs at solution-providers.ie] > > Sent: Thursday, June 05, 2003 3:25 AM > > To: dba-sqlserver at databaseadvisors.com > > Subject: Re: [dba-SQLServer]Execute DTS from VBA > > > > > > Hello Susan, > > > > Have a look at the following lines of code > > > > Dim objPackage2 As New DTS.Package > > objPackage2.LoadFromSQLServer ".", , , > > DTSSQLStgFlag_UseTrustedConnection, , , , "NEWSPPSPackage" > > objPackage2.FailOnError = True > > objPackage2.Execute > > objPackage2.UnInitialize > > Set objPackage2 = Nothing > > > > > > They are taken from a system that I have just finished, they are > > working. It is important to use the uninitialize, otherwise, you > > cannot reuse the package. > > > > One word of warning, I am sometimes finding that it does not like > > being used in quick sucession, but only sometimes, I cannot figure out > > > why if fails when it does. Other times, it will import five and ten > > files rapidly in quick sucession. > > > > I was considering rewriting the code to manually handle the file that > > I am importing on a line by line basis, but I feel that DTS should be > > the way to go, otherwise why would MS have created it in the first > > place. But then again, you could say that about the fax facility in > > Windows 95. > > > > Let me know what you decide to do, I would be interested. > > > > Thanks > > > > Mark Breen > > Ireland > > > > > > > > > > ----- Original Message ----- > > From: "Susan Geller" > > To: > > Sent: Wednesday, June 04, 2003 2:22 PM > > Subject: [dba-SQLServer]Execute DTS from VBA > > > > > > > Can I execute a DTS from inside my ADP file in code? How? > > > > > > Access XP, Windows XP, SQL Server 2000. > > > > > > Thanks. > > > > > > --Susan > > > > > > > > > Susan B. Geller > > > Office of Information Systems > > > College of Continuing Education > > > University of Minnesota > > > 306 Wesbrook Hall > > > 77 Pleasant Street SE > > > Minneapolis, MN 55455 > > > Phone: 612-626-4785 > > > Fax: 612-625-2568 > > > > > > > > > _______________________________________________ > > > dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > > > http://www.databaseadvisors.com > > > > > > > > > > > > _______________________________________________ > > dba-SQLServer mailing list > > dba-SQLServer at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > > http://www.databaseadvisors.com > > > > _______________________________________________ > > dba-SQLServer mailing list > > dba-SQLServer at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > > http://www.databaseadvisors.com > > > > > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > > From davide at dalyn.co.nz Thu Jun 12 22:21:50 2003 From: davide at dalyn.co.nz (David Emerson) Date: Fri, 13 Jun 2003 15:21:50 +1200 Subject: [dba-SQLServer]Sorting order when exporting Message-ID: <5.2.0.9.0.20030613151635.00b2d370@mail.dalyn.co.nz> AXP ADP, SQL2000. When I use a SELECT sproc to export to an excel spreadsheet the records appear in a sorted order - DoCmd.OutputTo acOutputStoredProcedure, strSprocName, acFormatXLS, strFullName However, if I use the same sproc as the basis for an INSERT INTO statement that inserts the records into a table, I find that the records are no longer appearing in their sorted order. Is this a feature of Access/SQL or is there a way for the records to be sorted in the correct order as they are inserted into the table? Regards David Emerson DALYN Software Ltd 25b Cunliffe St, Johnsonville Wellington, New Zealand Ph/Fax (877) 456-1205 From CWortz at tea.state.tx.us Fri Jun 13 07:41:34 2003 From: CWortz at tea.state.tx.us (Wortz, Charles) Date: Fri, 13 Jun 2003 07:41:34 -0500 Subject: [dba-SQLServer]Sorting order when exporting Message-ID: David, In a relational database such as the Jet engine or SQL Server, tables are sets of records that have no natural order since there is no relationship between the physical and logical location of a record within a table. Thus, there is no such concept of "correct order." If the table has a primary key then when you open the table the records will be displayed sorted by PK. That is all you need. Charles Wortz Software Development Division Texas Education Agency 1701 N. Congress Ave Austin, TX 78701-1494 512-463-9493 CWortz at tea.state.tx.us -----Original Message----- From: David Emerson [mailto:davide at dalyn.co.nz] Sent: Thursday 2003 Jun 12 22:22 To: dba-SQLServer at databaseadvisors.com Subject: [dba-SQLServer]Sorting order when exporting AXP ADP, SQL2000. When I use a SELECT sproc to export to an excel spreadsheet the records appear in a sorted order - DoCmd.OutputTo acOutputStoredProcedure, strSprocName, acFormatXLS, strFullName However, if I use the same sproc as the basis for an INSERT INTO statement that inserts the records into a table, I find that the records are no longer appearing in their sorted order. Is this a feature of Access/SQL or is there a way for the records to be sorted in the correct order as they are inserted into the table? Regards David Emerson DALYN Software Ltd 25b Cunliffe St, Johnsonville Wellington, New Zealand Ph/Fax (877) 456-1205 From my.lists at verizon.net Fri Jun 13 10:26:00 2003 From: my.lists at verizon.net (Francisco Tapia) Date: Fri, 13 Jun 2003 08:26:00 -0700 Subject: [dba-SQLServer]Prevent DTS creation Message-ID: <002101c331c0$18df6000$fd512304@amd2k> Anyone have any quick tips on preventing a user from creating DTS packages? (yes I've been up till 2am so my mind is not at all to clear now) thanks -Francisco http://rcm.netfirms.com/ From my.lists at verizon.net Fri Jun 13 12:51:26 2003 From: my.lists at verizon.net (Francisco Tapia) Date: Fri, 13 Jun 2003 10:51:26 -0700 Subject: [dba-SQLServer]Prevent DTS creation References: <002101c331c0$18df6000$fd512304@amd2k> Message-ID: <010c01c331d4$69894f20$fd512304@amd2k> for anyone needing to lock down your server (specifically your DTS packages) here is a faq you can use. http://www.sqlservercentral.com/faq/viewfaqanswer.asp?categoryid=2&faqid=252 if you are the admin of the box, remember to remove the guest account from the msdb database. -Francisco http://rcm.netfirms.com/ On Friday, June 13, 2003 8:26 AM [GMT -8], Francisco Tapia wrote: : Anyone have any quick tips on preventing a user from creating DTS : packages? (yes I've been up till 2am so my mind is not at all to : clear now) : : thanks : -Francisco : http://rcm.netfirms.com/ : : From davide at dalyn.co.nz Fri Jun 13 16:31:28 2003 From: davide at dalyn.co.nz (David Emerson) Date: Sat, 14 Jun 2003 09:31:28 +1200 Subject: [dba-SQLServer]Sorting order when exporting In-Reply-To: Message-ID: <5.2.0.9.0.20030614093106.00bb6d18@mail.dalyn.co.nz> Thanks Charles. David At 13/06/2003, you wrote: >David, > >In a relational database such as the Jet engine or SQL Server, tables >are sets of records that have no natural order since there is no >relationship between the physical and logical location of a record >within a table. Thus, there is no such concept of "correct order." If >the table has a primary key then when you open the table the records >will be displayed sorted by PK. That is all you need. > >Charles Wortz >Software Development Division >Texas Education Agency >1701 N. Congress Ave >Austin, TX 78701-1494 >512-463-9493 >CWortz at tea.state.tx.us > > > >-----Original Message----- >From: David Emerson [mailto:davide at dalyn.co.nz] >Sent: Thursday 2003 Jun 12 22:22 >To: dba-SQLServer at databaseadvisors.com >Subject: [dba-SQLServer]Sorting order when exporting > > >AXP ADP, SQL2000. > >When I use a SELECT sproc to export to an excel spreadsheet the records >appear in a sorted order - > >DoCmd.OutputTo acOutputStoredProcedure, strSprocName, acFormatXLS, >strFullName > >However, if I use the same sproc as the basis for an INSERT INTO >statement >that inserts the records into a table, I find that the records are no >longer appearing in their sorted order. > >Is this a feature of Access/SQL or is there a way for the records to be > >sorted in the correct order as they are inserted into the table? > >Regards > >David Emerson >DALYN Software Ltd >25b Cunliffe St, Johnsonville >Wellington, New Zealand >Ph/Fax (877) 456-1205 >_______________________________________________ >dba-SQLServer mailing list >dba-SQLServer at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-sqlserver >http://www.databaseadvisors.com From michael.broesdorf at web.de Mon Jun 16 09:55:35 2003 From: michael.broesdorf at web.de (=?us-ascii?Q?Michael_Brosdorf?=) Date: Mon, 16 Jun 2003 16:55:35 +0200 Subject: [dba-SQLServer]Stored procedure question In-Reply-To: <5.2.0.9.0.20030614093106.00bb6d18@mail.dalyn.co.nz> Message-ID: Dear group, I have a stored proc that includes a whole bunch of SELECT statements. When the sproc is executed used Query Analyzer, the result sets of all those SELECT's is displayed. But I want only the result set of the last SELECT to be displayed. Is that possible? TIA, Michael From my.lists at verizon.net Mon Jun 16 10:28:56 2003 From: my.lists at verizon.net (Francisco Tapia) Date: Mon, 16 Jun 2003 08:28:56 -0700 Subject: [dba-SQLServer]Stored procedure question References: Message-ID: <00d101c3341c$00ec4a40$fd512304@amd2k> hmm, It might be helpful to see what you are doing, could you post the code? -Francisco http://rcm.netfirms.com/ On Monday, June 16, 2003 7:55 AM [GMT -8], Michael Brosdorf wrote: : Dear group, : : I have a stored proc that includes a whole bunch of SELECT : statements. When the sproc is executed used Query Analyzer, the : result sets of all those SELECT's is displayed. But I want only the : result set of the last SELECT to be displayed. : : Is that possible? : : : TIA, : : : Michael : : _______________________________________________ : dba-SQLServer mailing list : dba-SQLServer at databaseadvisors.com : http://databaseadvisors.com/mailman/listinfo/dba-sqlserver : http://www.databaseadvisors.com From michael.broesdorf at web.de Mon Jun 16 10:59:57 2003 From: michael.broesdorf at web.de (=?iso-8859-1?Q?Michael_Br=F6sdorf?=) Date: Mon, 16 Jun 2003 17:59:57 +0200 Subject: AW: [dba-SQLServer]Stored procedure question In-Reply-To: Message-ID: Hi David, if NOCOUNT is set to ON the number of rows affected by each SQL Select is not returned. However, the rows are still displayed in query analyzer. I want to create a tool for the dba that checkes the consistency of several data tables. I created a table containing SQL Statements is processed by the sp and results are written to a log table. when the sp is finished, the result rows from the log table should be displayed in the result pane of the Query Analyzer. The number of tables to be checked is about 10 with several conditions for each table. It works fine so far except that the result pane contains 31 result sets, which is quite ugly... Michael -----Urspr?ngliche Nachricht----- Von: dmcafee at pacbell.net [mailto:dmcafee at pacbell.net] Gesendet: Montag, 16. Juni 2003 17:45 An: michael.broesdorf at web.de Betreff: RE: [dba-SQLServer]Stored procedure question look at SET NOCOUNT = ON (and off) in BOL, I think that's what you're looking for. HTH David -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com]On Behalf Of Francisco Tapia Sent: Monday, June 16, 2003 8:29 AM To: dba-sqlserver at databaseadvisors.com Subject: Re: [dba-SQLServer]Stored procedure question hmm, It might be helpful to see what you are doing, could you post the code? -Francisco http://rcm.netfirms.com/ On Monday, June 16, 2003 7:55 AM [GMT -8], Michael Brosdorf wrote: : Dear group, : : I have a stored proc that includes a whole bunch of SELECT : statements. When the sproc is executed used Query Analyzer, the : result sets of all those SELECT's is displayed. But I want only the : result set of the last SELECT to be displayed. : : Is that possible? : : : TIA, : : : Michael : : _______________________________________________ : dba-SQLServer mailing list : dba-SQLServer at databaseadvisors.com : http://databaseadvisors.com/mailman/listinfo/dba-sqlserver : http://www.databaseadvisors.com _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From my.lists at verizon.net Mon Jun 16 11:55:57 2003 From: my.lists at verizon.net (Francisco Tapia) Date: Mon, 16 Jun 2003 09:55:57 -0700 Subject: [dba-SQLServer]Stored procedure question References: Message-ID: <01d401c33428$28cd5f70$fd512304@amd2k> Then it's the way your running part of your process, one way to go around this is if your looking for result sets is to use the Exists command so you could check IF EXISTS(SELECT Fields FROM Table) BEGIN --Do stuff here for True END ELSE BEGIN --Do Stuff here for False END -Francisco http://rcm.netfirms.com/ On Monday, June 16, 2003 8:59 AM [GMT -8], Michael Br?sdorf wrote: : Hi David, : : if NOCOUNT is set to ON the number of rows affected by each SQL : Select is not returned. However, the rows are still displayed in : query analyzer. : : I want to create a tool for the dba that checkes the consistency of : several data tables. I created a table containing SQL Statements is : processed by the sp and results are written to a log table. when the : sp is finished, the result rows from the log table should be : displayed in the result pane of the Query Analyzer. : : The number of tables to be checked is about 10 with several : conditions for each table. It works fine so far except that the : result pane contains 31 result sets, which is quite ugly... : : Michael : : -----Urspr?ngliche Nachricht----- : Von: dmcafee at pacbell.net [mailto:dmcafee at pacbell.net] : Gesendet: Montag, 16. Juni 2003 17:45 : An: michael.broesdorf at web.de : Betreff: RE: [dba-SQLServer]Stored procedure question : : : look at SET NOCOUNT = ON (and off) in BOL, I think that's what you're : looking for. : : HTH : : David : : -----Original Message----- : From: dba-sqlserver-bounces at databaseadvisors.com : [mailto:dba-sqlserver-bounces at databaseadvisors.com]On Behalf Of : Francisco Tapia : Sent: Monday, June 16, 2003 8:29 AM : To: dba-sqlserver at databaseadvisors.com : Subject: Re: [dba-SQLServer]Stored procedure question : : : hmm, It might be helpful to see what you are doing, could you post : the code? : : -Francisco : http://rcm.netfirms.com/ : : On Monday, June 16, 2003 7:55 AM [GMT -8], : Michael Brosdorf wrote: : :: Dear group, :: :: I have a stored proc that includes a whole bunch of SELECT :: statements. When the sproc is executed used Query Analyzer, the :: result sets of all those SELECT's is displayed. But I want only the :: result set of the last SELECT to be displayed. :: :: Is that possible? :: :: :: TIA, :: :: :: Michael :: :: _______________________________________________ :: dba-SQLServer mailing list :: dba-SQLServer at databaseadvisors.com :: http://databaseadvisors.com/mailman/listinfo/dba-sqlserver :: http://www.databaseadvisors.com : : : _______________________________________________ : dba-SQLServer mailing list : dba-SQLServer at databaseadvisors.com : http://databaseadvisors.com/mailman/listinfo/dba-sqlserver : http://www.databaseadvisors.com : : _______________________________________________ : dba-SQLServer mailing list : dba-SQLServer at databaseadvisors.com : http://databaseadvisors.com/mailman/listinfo/dba-sqlserver : http://www.databaseadvisors.com From davide at dalyn.co.nz Mon Jun 16 19:28:13 2003 From: davide at dalyn.co.nz (David Emerson) Date: Tue, 17 Jun 2003 12:28:13 +1200 Subject: [dba-SQLServer]Linked server definitions Message-ID: <5.2.0.9.0.20030617122547.00b1f4b0@mail.dalyn.co.nz> SQL2000 In BOL in the topic "Configuring OLE DB Providers for Distributed Queries" it says under " OLE DB Provider Options" The OLE DB provider options for managing distributed queries are set using SQL Server Enterprise Manager. In the left pane of SQL Server Enterprise Manager, right-click a linked server definition that uses the OLE DB provider for which you want to set the properties. On the General tab, click Options, and then set the properties. I can't find where the list of linked server definitions are so that I can right Click on them. Can anyone let me know more specifically where I am supposed to be looking on the left hand pane? Regards David Emerson DALYN Software Ltd 25b Cunliffe St, Johnsonville Wellington, New Zealand Ph/Fax (877) 456-1205 -------------- next part -------------- An HTML attachment was scrubbed... URL: From chris at denverdb.com Mon Jun 16 20:55:53 2003 From: chris at denverdb.com (Chris Mackin) Date: Mon, 16 Jun 2003 19:55:53 -0600 Subject: [dba-SQLServer]Linked server definitions In-Reply-To: <1055809946.6343@server86.switchfast.com> Message-ID: <1055815130.14797@server86.switchfast.com> Not sure if this is what you're after, but if you run the Stored Procedure sp_linkedservers in Query Analyzer you'll get a list of currently linked servers. Chris Mackin Denver Database Consulting, LLC www.denverdb.com -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com]On Behalf Of David Emerson Sent: Monday, June 16, 2003 6:28 PM To: dba-SQLServer at databaseadvisors.com Subject: [dba-SQLServer]Linked server definitions SQL2000 In BOL in the topic "Configuring OLE DB Providers for Distributed Queries" it says under " OLE DB Provider Options" The OLE DB provider options for managing distributed queries are set using SQL Server Enterprise Manager. In the left pane of SQL Server Enterprise Manager, right-click a linked server definition that uses the OLE DB provider for which you want to set the properties. On the General tab, click Options, and then set the properties. I can't find where the list of linked server definitions are so that I can right Click on them. Can anyone let me know more specifically where I am supposed to be looking on the left hand pane? Regards David Emerson DALYN Software Ltd 25b Cunliffe St, Johnsonville Wellington, New Zealand Ph/Fax (877) 456-1205 From davide at dalyn.co.nz Mon Jun 16 21:51:49 2003 From: davide at dalyn.co.nz (David Emerson) Date: Tue, 17 Jun 2003 14:51:49 +1200 Subject: [dba-SQLServer]Linked server definitions In-Reply-To: <1055815130.14797@server86.switchfast.com> References: <1055809946.6343@server86.switchfast.com> Message-ID: <5.2.0.9.0.20030617145040.00b52888@mail.dalyn.co.nz> Thank Chris. I was aware of that but it doesn't give the properties as discussed in BOL. David At 16/06/2003, you wrote: >Not sure if this is what you're after, but if you run the Stored Procedure >sp_linkedservers in Query Analyzer you'll get a list of currently linked >servers. > >Chris Mackin >Denver Database Consulting, LLC >www.denverdb.com > >-----Original Message----- >From: dba-sqlserver-bounces at databaseadvisors.com >[mailto:dba-sqlserver-bounces at databaseadvisors.com]On Behalf Of David >Emerson >Sent: Monday, June 16, 2003 6:28 PM >To: dba-SQLServer at databaseadvisors.com >Subject: [dba-SQLServer]Linked server definitions > > >SQL2000 > > >In BOL in the topic "Configuring OLE DB Providers for Distributed Queries" >it says under " >OLE DB Provider Options" >The OLE DB provider options for managing distributed queries are set using >SQL Server Enterprise Manager. In the left pane of SQL Server Enterprise >Manager, right-click a linked server definition that uses the OLE DB >provider for which you want to set the properties. On the General tab, click >Options, and then set the properties. > >I can't find where the list of linked server definitions are so that I can >right Click on them. Can anyone let me know more specifically where I am >supposed to be looking on the left hand pane? > > >Regards > >David Emerson >DALYN Software Ltd >25b Cunliffe St, Johnsonville >Wellington, New Zealand >Ph/Fax (877) 456-1205 > > > >_______________________________________________ >dba-SQLServer mailing list >dba-SQLServer at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-sqlserver >http://www.databaseadvisors.com From my.lists at verizon.net Tue Jun 17 11:04:56 2003 From: my.lists at verizon.net (Francisco Tapia) Date: Tue, 17 Jun 2003 09:04:56 -0700 Subject: [dba-SQLServer]Linked server definitions References: <1055809946.6343@server86.switchfast.com> <5.2.0.9.0.20030617145040.00b52888@mail.dalyn.co.nz> Message-ID: <00ad01c334ea$32b01ce0$fd512304@amd2k> To click on the linked server you'll need to be in a session of Enterprise Manager, there click on the security tab, then Linked servers... -Francisco http://rcm.netfirms.com/ On Monday, June 16, 2003 7:51 PM [GMT -8], David Emerson wrote: : Thank Chris. I was aware of that but it doesn't give the properties : as discussed in BOL. : : David : : At 16/06/2003, you wrote: : :: Not sure if this is what you're after, but if you run the Stored :: Procedure sp_linkedservers in Query Analyzer you'll get a list of :: currently linked servers. :: :: Chris Mackin :: Denver Database Consulting, LLC :: www.denverdb.com :: :: -----Original Message----- :: From: dba-sqlserver-bounces at databaseadvisors.com :: [mailto:dba-sqlserver-bounces at databaseadvisors.com]On Behalf Of David :: Emerson :: Sent: Monday, June 16, 2003 6:28 PM :: To: dba-SQLServer at databaseadvisors.com :: Subject: [dba-SQLServer]Linked server definitions :: :: :: SQL2000 :: :: :: In BOL in the topic "Configuring OLE DB Providers for Distributed :: Queries" it says under " :: OLE DB Provider Options" :: The OLE DB provider options for managing distributed queries are set :: using SQL Server Enterprise Manager. In the left pane of SQL Server :: Enterprise Manager, right-click a linked server definition that uses :: the OLE DB provider for which you want to set the properties. On the :: General tab, click Options, and then set the properties. :: :: I can't find where the list of linked server definitions are so that :: I can right Click on them. Can anyone let me know more specifically :: where I am supposed to be looking on the left hand pane? :: :: :: Regards :: :: David Emerson :: DALYN Software Ltd :: 25b Cunliffe St, Johnsonville :: Wellington, New Zealand :: Ph/Fax (877) 456-1205 :: :: :: :: _______________________________________________ :: dba-SQLServer mailing list :: dba-SQLServer at databaseadvisors.com :: http://databaseadvisors.com/mailman/listinfo/dba-sqlserver :: http://www.databaseadvisors.com : : _______________________________________________ : dba-SQLServer mailing list : dba-SQLServer at databaseadvisors.com : http://databaseadvisors.com/mailman/listinfo/dba-sqlserver : http://www.databaseadvisors.com From davide at dalyn.co.nz Tue Jun 17 13:46:11 2003 From: davide at dalyn.co.nz (David Emerson) Date: Wed, 18 Jun 2003 06:46:11 +1200 Subject: [dba-SQLServer]Linked server definitions In-Reply-To: <00ad01c334ea$32b01ce0$fd512304@amd2k> References: <1055809946.6343@server86.switchfast.com> <5.2.0.9.0.20030617145040.00b52888@mail.dalyn.co.nz> Message-ID: <5.2.0.9.0.20030618064545.022c31d0@mail.dalyn.co.nz> Ahhhhh. Thanks Francisco. Couldn't see it for looking. David At 17/06/2003, you wrote: >To click on the linked server you'll need to be in a session of Enterprise >Manager, there click on the security tab, then Linked servers... > >-Francisco >http://rcm.netfirms.com/ > >On Monday, June 16, 2003 7:51 PM [GMT -8], >David Emerson wrote: > >: Thank Chris. I was aware of that but it doesn't give the properties >: as discussed in BOL. >: >: David >: >: At 16/06/2003, you wrote: >: >:: Not sure if this is what you're after, but if you run the Stored >:: Procedure sp_linkedservers in Query Analyzer you'll get a list of >:: currently linked servers. >:: >:: Chris Mackin >:: Denver Database Consulting, LLC >:: www.denverdb.com >:: >:: -----Original Message----- >:: From: dba-sqlserver-bounces at databaseadvisors.com >:: [mailto:dba-sqlserver-bounces at databaseadvisors.com]On Behalf Of David >:: Emerson >:: Sent: Monday, June 16, 2003 6:28 PM >:: To: dba-SQLServer at databaseadvisors.com >:: Subject: [dba-SQLServer]Linked server definitions >:: >:: >:: SQL2000 >:: >:: >:: In BOL in the topic "Configuring OLE DB Providers for Distributed >:: Queries" it says under " >:: OLE DB Provider Options" >:: The OLE DB provider options for managing distributed queries are set >:: using SQL Server Enterprise Manager. In the left pane of SQL Server >:: Enterprise Manager, right-click a linked server definition that uses >:: the OLE DB provider for which you want to set the properties. On the >:: General tab, click Options, and then set the properties. >:: >:: I can't find where the list of linked server definitions are so that >:: I can right Click on them. Can anyone let me know more specifically >:: where I am supposed to be looking on the left hand pane? >:: >:: >:: Regards >:: >:: David Emerson >:: DALYN Software Ltd >:: 25b Cunliffe St, Johnsonville >:: Wellington, New Zealand >:: Ph/Fax (877) 456-1205 >:: >:: >:: >:: _______________________________________________ >:: dba-SQLServer mailing list >:: dba-SQLServer at databaseadvisors.com >:: http://databaseadvisors.com/mailman/listinfo/dba-sqlserver >:: http://www.databaseadvisors.com >: >: _______________________________________________ >: dba-SQLServer mailing list >: dba-SQLServer at databaseadvisors.com >: http://databaseadvisors.com/mailman/listinfo/dba-sqlserver >: http://www.databaseadvisors.com > > >_______________________________________________ >dba-SQLServer mailing list >dba-SQLServer at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-sqlserver >http://www.databaseadvisors.com From artful at rogers.com Wed Jun 18 09:31:55 2003 From: artful at rogers.com (Arthur Fuller) Date: Wed, 18 Jun 2003 10:31:55 -0400 Subject: [dba-SQLServer]Access to SQL through a firewall In-Reply-To: <5.2.0.9.0.20030618064545.022c31d0@mail.dalyn.co.nz> Message-ID: <01db01c335a6$5e41f510$6501a8c0@Rock> I should begin by saying that I know little about networking, etc. I have two connections to remote databases, both at colleges for whom I do occasional work. In both cases the network/DBA guys gave me an IP address, a UID and a PSWD. I opened ODBC and created a connection using the supplied specs, and it works like a charm. If I didn't know better, I'd think I was actually on their local LANs. I need to do this for another client, who doesn't have a network specialist on staff. One specialist did set everything up in the first place. FreeBSD firewall, Terminal Services box for remote access, database server for SQL 2000, etc. I want to explore the possibility of directly connecting to the db server, as I can do with the other two clients. I know next to nothing about freeBSD (but I do know some linux). Can anyone describe what needs to be done to the firewall to allow access to the db server? We are not using integrated security, so assuming that an attempt to connect gets piped to the db server, the user will still have to log in, to get access to the SQL db. Is there anything more to it than poking a 1433 hole in the firewall and directing said traffic to the db server? I have been pretty dictatorial about the passwords (no recognizable words, use numbers and #$%-type chars in your pswd, no pswds with fewer than 10 chars, etc.). Will poking a 1433 hole in the firewall expose said db server to serious risk? Arthur From my.lists at verizon.net Wed Jun 18 10:24:33 2003 From: my.lists at verizon.net (Francisco Tapia) Date: Wed, 18 Jun 2003 08:24:33 -0700 Subject: [dba-SQLServer]Access to SQL through a firewall References: <01db01c335a6$5e41f510$6501a8c0@Rock> Message-ID: <008001c335ad$bee63c80$fd512304@amd2k> In general yes Arthur, you are opening up your server to attack mostly because 1433 is such a common port. Instead with most firewalls what you can do is NAT the IP address and the port effectivly removing all recognition that it could be a SQL Server. If FreeBSD supports this (and I see no reason it shouldn't) see if you can re-route some abstract port other than 1433 to port 1433 for your server. -Francisco http://rcm.netfirms.com/ On Wednesday, June 18, 2003 7:31 AM [GMT -8], Arthur Fuller wrote: : I should begin by saying that I know little about networking, etc. : : I have two connections to remote databases, both at colleges for whom : I do occasional work. In both cases the network/DBA guys gave me an : IP address, a UID and a PSWD. I opened ODBC and created a connection : using the supplied specs, and it works like a charm. If I didn't know : better, I'd think I was actually on their local LANs. : : I need to do this for another client, who doesn't have a network : specialist on staff. One specialist did set everything up in the : first place. FreeBSD firewall, Terminal Services box for remote : access, database server for SQL 2000, etc. I want to explore the : possibility of directly connecting to the db server, as I can do with : the other two clients. I know next to nothing about freeBSD (but I do : know some linux). : : Can anyone describe what needs to be done to the firewall to allow : access to the db server? We are not using integrated security, so : assuming that an attempt to connect gets piped to the db server, the : user will still have to log in, to get access to the SQL db. : : Is there anything more to it than poking a 1433 hole in the firewall : and directing said traffic to the db server? : : I have been pretty dictatorial about the passwords (no recognizable : words, use numbers and #$%-type chars in your pswd, no pswds with : fewer than 10 chars, etc.). Will poking a 1433 hole in the firewall : expose said db server to serious risk? : : Arthur : : _______________________________________________ : dba-SQLServer mailing list : dba-SQLServer at databaseadvisors.com : http://databaseadvisors.com/mailman/listinfo/dba-sqlserver : http://www.databaseadvisors.com From bdoran at cce.umn.edu Thu Jun 26 12:14:12 2003 From: bdoran at cce.umn.edu (Bridget Doran) Date: Thu, 26 Jun 2003 12:14:12 -0500 Subject: [dba-SQLServer]Using DTS for Informix to SQL Message-ID: Hello all -- I am having a bugger of a driver issue when trying to get to an Informix Database through DTS. Does anyone have experience with this? Some Facts: 1) I am using the IBM Informix CSDK latest version which installs the 3.81 informix ODBC driver 2) I get a valid connection to the database when I set up a DSN in ODBC Manager. 3) The DTS to Informix works on the server(Win2k) and on my desktop (XP) but NOT on another developer's machine (XP). While I can get a valid connection to the database on the problem machine in the DSN setup, I cannot get the DTS to "read" this properly. The error I get in setting up the DTS Connection is "unable to load the translation DLL" I have uninstalled and reinstalled the informix driver by uninstalling the Informix CSDK. Very freaky behavior because sometimes I can get the DTS to start running and not error out with the DLL message but it runs on forever and I eventually need to kill it. Any thoughts on how to move forward here? I was thinking I may need to reimage the machine from scratch. Not sure what else to do. Thanks much Bridget Bridget Doran ~~~ Office of Information Systems College of Continuing Education 612.626.8633 From knicholson at gpsx.net Thu Jun 26 13:25:13 2003 From: knicholson at gpsx.net (Nicholson, Karen) Date: Thu, 26 Jun 2003 13:25:13 -0500 Subject: [dba-SQLServer]Permission to My Own Table Message-ID: Dumb question. I created a new table in an SQL application. I can not use the table, it is telling: Server: Msg 268, Level 16, State 3, Procedure gps_proactive_XALPRO, Line 289 Cannot run SELECT INTO in this database. The database owner must run sp_dboption to enable this option. I have set all the permissions in the table for the whole world up update, select, etc. What the? I am sure this is something really easy. Thanks. From Robert.Djabarov at usaa.com Thu Jun 26 12:55:22 2003 From: Robert.Djabarov at usaa.com (Djabarov, Robert) Date: Thu, 26 Jun 2003 12:55:22 -0500 Subject: [dba-SQLServer]Permission to My Own Table Message-ID: <5A31F89EC4C79B49B5030FF2EF58E9D202DAC08B@ex02.eagle.usaa.com> sp_dboption your_db_name, 'select into', true Robert Djabarov Senior SQL Server DBA USAA IT/DBMS ? (210) 913-3148 - phone ? (210) 753-3148 - pager -----Original Message----- From: Nicholson, Karen [mailto:knicholson at gpsx.net] Sent: Thursday, June 26, 2003 1:25 PM To: dba-SQLServer at databaseadvisors.com Subject: [dba-SQLServer]Permission to My Own Table Dumb question. I created a new table in an SQL application. I can not use the table, it is telling: Server: Msg 268, Level 16, State 3, Procedure gps_proactive_XALPRO, Line 289 Cannot run SELECT INTO in this database. The database owner must run sp_dboption to enable this option. I have set all the permissions in the table for the whole world up update, select, etc. What the? I am sure this is something really easy. Thanks. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From knicholson at gpsx.net Thu Jun 26 14:00:34 2003 From: knicholson at gpsx.net (Nicholson, Karen) Date: Thu, 26 Jun 2003 14:00:34 -0500 Subject: [dba-SQLServer]Permission to My Own Table Message-ID: I tried that, but this is a database used company-wide and it will not perform the function as others have it open. I only want to affect this table, not the whole database. > -----Original Message----- > From: Djabarov, Robert [SMTP:Robert.Djabarov at usaa.com] > Sent: Thursday, June 26, 2003 1:55 PM > To: dba-sqlserver at databaseadvisors.com > Subject: RE: [dba-SQLServer]Permission to My Own Table > > sp_dboption your_db_name, 'select into', true > > Robert Djabarov > Senior SQL Server DBA > USAA IT/DBMS > ? (210) 913-3148 - phone > ? (210) 753-3148 - pager > > > -----Original Message----- > From: Nicholson, Karen [mailto:knicholson at gpsx.net] > Sent: Thursday, June 26, 2003 1:25 PM > To: dba-SQLServer at databaseadvisors.com > Subject: [dba-SQLServer]Permission to My Own Table > > Dumb question. I created a new table in an SQL application. I can not use > the table, it is telling: > > Server: Msg 268, Level 16, State 3, Procedure gps_proactive_XALPRO, Line > 289 > Cannot run SELECT INTO in this database. The database owner must run > sp_dboption to enable this option. > > I have set all the permissions in the table for the whole world up update, > select, etc. What the? I am sure this is something really easy. Thanks. > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > > > > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com From knicholson at gpsx.net Thu Jun 26 14:02:09 2003 From: knicholson at gpsx.net (Nicholson, Karen) Date: Thu, 26 Jun 2003 14:02:09 -0500 Subject: [dba-SQLServer]Permission to My Own Table Message-ID: Wait, I think that worked.... > -----Original Message----- > From: Djabarov, Robert [SMTP:Robert.Djabarov at usaa.com] > Sent: Thursday, June 26, 2003 1:55 PM > To: dba-sqlserver at databaseadvisors.com > Subject: RE: [dba-SQLServer]Permission to My Own Table > > sp_dboption your_db_name, 'select into', true > > Robert Djabarov > Senior SQL Server DBA > USAA IT/DBMS > ? (210) 913-3148 - phone > ? (210) 753-3148 - pager > > > -----Original Message----- > From: Nicholson, Karen [mailto:knicholson at gpsx.net] > Sent: Thursday, June 26, 2003 1:25 PM > To: dba-SQLServer at databaseadvisors.com > Subject: [dba-SQLServer]Permission to My Own Table > > Dumb question. I created a new table in an SQL application. I can not use > the table, it is telling: > > Server: Msg 268, Level 16, State 3, Procedure gps_proactive_XALPRO, Line > 289 > Cannot run SELECT INTO in this database. The database owner must run > sp_dboption to enable this option. > > I have set all the permissions in the table for the whole world up update, > select, etc. What the? I am sure this is something really easy. Thanks. > _______________________________________________ > 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 bdoran at cce.umn.edu Thu Jun 26 14:00:25 2003 From: bdoran at cce.umn.edu (Bridget Doran) Date: Thu, 26 Jun 2003 14:00:25 -0500 Subject: RESOLVED: [dba-SQLServer]Using DTS for Informix to SQL Message-ID: Looks like the interest is lacking on this one but just in case someone out there wonders.... This appears to be a classic DLL Hell scenario. I finally decided to uninstall and reinstall SQL Enterprise Manager on the machine which fixed the problem. I wish I would have thought of that sooner :) One caveat for other unsuspecting installers out there: When you get the DLL message on an uninstall to delete or not [Yes, Yes to All, No, No to All], realize this is a very tricky question! -----Original Message----- From: Bridget Doran Sent: Thursday, June 26, 2003 12:14 PM To: dba-sqlserver at databaseadvisors.com Subject: [dba-SQLServer]Using DTS for Informix to SQL Hello all -- I am having a bugger of a driver issue when trying to get to an Informix Database through DTS. Does anyone have experience with this? Some Facts: 1) I am using the IBM Informix CSDK latest version which installs the 3.81 informix ODBC driver 2) I get a valid connection to the database when I set up a DSN in ODBC Manager. 3) The DTS to Informix works on the server(Win2k) and on my desktop (XP) but NOT on another developer's machine (XP). While I can get a valid connection to the database on the problem machine in the DSN setup, I cannot get the DTS to "read" this properly. The error I get in setting up the DTS Connection is "unable to load the translation DLL" I have uninstalled and reinstalled the informix driver by uninstalling the Informix CSDK. Very freaky behavior because sometimes I can get the DTS to start running and not error out with the DLL message but it runs on forever and I eventually need to kill it. Any thoughts on how to move forward here? I was thinking I may need to reimage the machine from scratch. Not sure what else to do. Thanks much Bridget Bridget Doran ~~~ Office of Information Systems College of Continuing Education 612.626.8633 _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From Kenneth.Stoker at pnl.gov Thu Jun 26 16:04:39 2003 From: Kenneth.Stoker at pnl.gov (Stoker, Kenneth E) Date: Thu, 26 Jun 2003 14:04:39 -0700 Subject: [dba-SQLServer]SS2K Table and View Permissions Relationship Message-ID: <249C1CB246997C48BB74963CCD361C1B07C8AD@pnlmse28.pnl.gov> Everyone, In a system I am working on, the vendor put large text fields into a single table with a type field to specify its relationship to the record. Things like Title, Description, various comments, etc. On the client interface, there are several tabs whose displayed data comes from this single table, driven by the type. The problem I am running into is that for a particular role, I want select, insert, update and delete for a tab and just select on some of the others. The tab information is based on a view. I have tried the following: remove permissions on the table, desired permissions on view - does not allow insert, update, delete on tab that needs such permission. do not have permission on table error. give all permissions to the table, desired permissions on view - allows insert, update, delete on tabs where this is inappropriate. give all permissions to the table, desired permissions on view along with deny unwanted permissions. - still allows insert, update, delete on tabs where this is inappropriate. The client is supposedly depending completely on SS2K to drive the permissions, no security built in the client application itself. Can I get SS2K to do what I want? Ken Stoker Technology Commercialization Information Systems Administrator PH: (509) 375-3758 FAX: (509) 375-6731 E-mail: Kenneth.Stoker at pnl.gov From subs at solution-providers.ie Fri Jun 27 02:28:52 2003 From: subs at solution-providers.ie (Mark L. Breen) Date: Fri, 27 Jun 2003 08:28:52 +0100 Subject: RESOLVED: [dba-SQLServer]Using DTS for Informix to SQL References: Message-ID: <001c01c33c8d$0a7aef70$1b76fea9@D8TZHN0J> Hello Bridget, I have just read your first email, so sorry that you got little responses. I am currently working on DTS, but I have never used imformix and I have only used DTS for text file to db transfers. Sorry that you got no replies, but thanks for posting the answer also. I take it that your family are from my part of the world Mark Breen Ireland ----- Original Message ----- From: "Bridget Doran" To: Sent: Thursday, June 26, 2003 8:00 PM Subject: RESOLVED: [dba-SQLServer]Using DTS for Informix to SQL > Looks like the interest is lacking on this one but just in case someone > out there wonders.... > > This appears to be a classic DLL Hell scenario. I finally decided to > uninstall and reinstall SQL Enterprise Manager on the machine which > fixed the problem. > > I wish I would have thought of that sooner :) One caveat for other > unsuspecting installers out there: When you get the DLL message on an > uninstall to delete or not [Yes, Yes to All, No, No to All], realize > this is a very tricky question! > > > -----Original Message----- > From: Bridget Doran > Sent: Thursday, June 26, 2003 12:14 PM > To: dba-sqlserver at databaseadvisors.com > Subject: [dba-SQLServer]Using DTS for Informix to SQL > > > Hello all -- > I am having a bugger of a driver issue when trying to get to an Informix > Database through DTS. Does anyone have experience with this? Some Facts: > 1) I am using the IBM Informix CSDK latest version which installs the > 3.81 informix ODBC driver > 2) I get a valid connection to the database when I set up a DSN in ODBC > Manager. > 3) The DTS to Informix works on the server(Win2k) and on my desktop (XP) > but NOT on another developer's machine (XP). > While I can get a valid connection to the database on the problem > machine in the DSN setup, I cannot get the DTS to "read" this properly. > The error I get in setting up the DTS Connection is "unable to load the > translation DLL" > I have uninstalled and reinstalled the informix driver by uninstalling > the Informix CSDK. > Very freaky behavior because sometimes I can get the DTS to start > running and not error out with the DLL message but it runs on forever > and I eventually need to kill it. > > Any thoughts on how to move forward here? I was thinking I may need to > reimage the machine from scratch. Not sure what else to do. > > Thanks much > > Bridget > > Bridget Doran ~~~ > Office of Information Systems > College of Continuing Education > 612.626.8633 > > _______________________________________________ > 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 carbonnb at sympatico.ca Fri Jun 27 21:29:37 2003 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Fri, 27 Jun 2003 22:29:37 -0400 Subject: [dba-SQLServer]Ping Again Message-ID: <3EFCC551.29241.2A0D811@localhost> Ping. -- Bryan Carbonnell - carbonnb at sympatico.ca Never be afraid to try something new. Remember, amateurs built the ark, and professionals built the Titanic. From carbonnb at sympatico.ca Fri Jun 27 21:29:37 2003 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Fri, 27 Jun 2003 22:29:37 -0400 Subject: [dba-SQLServer][AccessD] Ping Again Message-ID: <3EFCC551.29241.2A0D811@localhost> Ping. -- Bryan Carbonnell - carbonnb at sympatico.ca Never be afraid to try something new. Remember, amateurs built the ark, and professionals built the Titanic. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at fsmail.net Mon Jun 30 03:19:11 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 30 Jun 2003 8:19:11 +0000 Subject: [dba-SQLServer]SQL Server 7.0 (Stored Procedure Help) Message-ID: <20030630081911.BLRV25735.fep08-svc.ttys.com@localhost> To all, I have two tables on a SQL Server(7.0), one is called tblSingleAvailability and the other tblAvailabilityAll. What I need to do is append records from tblSingleAvailability into tblAvailabilityAll where they do not already exist, e.g. see below : tblSingleAvailability Payroll AvailCode JobDate Type 99999 A 01/01/02 2 99999 N 04/02/02 0 tblAvailabilityAll Payroll AvailCode JobDate Type 99999 A 01/01/02 0 99999 A 01/01/02 1 99999 A 01/01/02 2 99999 N 04/02/02 1 99999 N 04/02/02 2 So I just need to append the record 99999, N, 04/02/02, 0 into tblAvailabilityAll because it does not already exist. So I have the following SQL Stored Procedure, can anyeon see where I am going wrong as it times out whilst trying to run this. CREATE PROCEDURE [genesis_insert_tblAvailabilityAll] AS INSERT INTO tblAvailabilityAll (PayrollNo, JobDate, AvailabilityCode, Type) SELECT PayrollNo, JobDate, AvailabilityCode, Type FROM tblSingleAvailability WHERE NOT EXISTS(SELECT PayrollNo, JobDate, AvailabilityCode,Type FROM tblAvailabilityAll WHERE (tblSingleAvailability.PayrollNo = tblAvailabilityAll.PayrollNo AND tblSingleAvailability.JobDate = tblAvailabilityAll.JobDate AND tblSingleAvailability.Type = tblAvailabilityAll.Type)) Any help appreciated thanks...... Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. From paul.hartland at fsmail.net Mon Jun 30 03:19:11 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 30 Jun 2003 8:19:11 +0000 Subject: [dba-SQLServer][AccessD] SQL Server 7.0 (Stored Procedure Help) Message-ID: <20030630081911.BLRV25735.fep08-svc.ttys.com@localhost> To all, I have two tables on a SQL Server(7.0), one is called tblSingleAvailability and the other tblAvailabilityAll. What I need to do is append records from tblSingleAvailability into tblAvailabilityAll where they do not already exist, e.g. see below : tblSingleAvailability Payroll AvailCode JobDate Type 99999 A 01/01/02 2 99999 N 04/02/02 0 tblAvailabilityAll Payroll AvailCode JobDate Type 99999 A 01/01/02 0 99999 A 01/01/02 1 99999 A 01/01/02 2 99999 N 04/02/02 1 99999 N 04/02/02 2 So I just need to append the record 99999, N, 04/02/02, 0 into tblAvailabilityAll because it does not already exist. So I have the following SQL Stored Procedure, can anyeon see where I am going wrong as it times out whilst trying to run this. CREATE PROCEDURE [genesis_insert_tblAvailabilityAll] AS INSERT INTO tblAvailabilityAll (PayrollNo, JobDate, AvailabilityCode, Type) SELECT PayrollNo, JobDate, AvailabilityCode, Type FROM tblSingleAvailability WHERE NOT EXISTS(SELECT PayrollNo, JobDate, AvailabilityCode,Type FROM tblAvailabilityAll WHERE (tblSingleAvailability.PayrollNo = tblAvailabilityAll.PayrollNo AND tblSingleAvailability.JobDate = tblAvailabilityAll.JobDate AND tblSingleAvailability.Type = tblAvailabilityAll.Type)) Any help appreciated thanks...... Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at fsmail.net Mon Jun 30 04:27:35 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 30 Jun 2003 9:27:35 +0000 Subject: [dba-SQLServer] Sent Wrong Info Regarding Stored Procedure help URGENT. Message-ID: <20030630092735.JKIT5167.fep04-svc.ttys.com@localhost> To all, I have two tables tblAvailabilityAll and tblAvailabilityCodes, in tblAvailabilityAll I have a payroll number, availability code (A, N, S or H) and a jobdate, in tblAvailabilityCodes I have an availability code and a corresponding number i.e Code Number A 1 N 2 S 3 H 4 I have a VB6 form with an employees details on, and when a finish date is entered I need to convert the availability code in tblAvailabilityAll to the corresponding number in tblAvailabilityCodes. I have the following stored procedure (this is the one thats timing out, not the on in the previous email). CREATE PROCEDURE [genesis_update_AvailabilityCode] ( @Payroll_1 [nvarchar] (25), @MyDate_2 [datetime] ) AS UPDATE [Genesis].[dbo].[tblAvailabilityAll] SET AvailabilityCode = tblAvailabilityCodes.CancelledAvailabilityCode FROM tblAvailabilityAll INNER JOIN tblAvailabilityCodes ON AvailabilityCode = tblAvailabilityCodes.LiveAvailabilityCode WHERE (tblAvailabilityAll.PayrollNo = @Payroll_1 AND tblAvailabilityAll.JobDate >= @MyDate_2) can anyone see where the stored procedure may be going wrong......I could really do with some urgent help on this... Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. From paul.hartland at fsmail.net Mon Jun 30 04:27:35 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 30 Jun 2003 9:27:35 +0000 Subject: [dba-SQLServer] [AccessD] Sent Wrong Info Regarding Stored Procedure help URGENT. Message-ID: <20030630092735.JKIT5167.fep04-svc.ttys.com@localhost> To all, I have two tables tblAvailabilityAll and tblAvailabilityCodes, in tblAvailabilityAll I have a payroll number, availability code (A, N, S or H) and a jobdate, in tblAvailabilityCodes I have an availability code and a corresponding number i.e Code Number A 1 N 2 S 3 H 4 I have a VB6 form with an employees details on, and when a finish date is entered I need to convert the availability code in tblAvailabilityAll to the corresponding number in tblAvailabilityCodes. I have the following stored procedure (this is the one thats timing out, not the on in the previous email). CREATE PROCEDURE [genesis_update_AvailabilityCode] ( @Payroll_1 [nvarchar] (25), @MyDate_2 [datetime] ) AS UPDATE [Genesis].[dbo].[tblAvailabilityAll] SET AvailabilityCode = tblAvailabilityCodes.CancelledAvailabilityCode FROM tblAvailabilityAll INNER JOIN tblAvailabilityCodes ON AvailabilityCode = tblAvailabilityCodes.LiveAvailabilityCode WHERE (tblAvailabilityAll.PayrollNo = @Payroll_1 AND tblAvailabilityAll.JobDate >= @MyDate_2) can anyone see where the stored procedure may be going wrong......I could really do with some urgent help on this... Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From artful at rogers.com Mon Jun 30 07:58:13 2003 From: artful at rogers.com (Arthur Fuller) Date: Mon, 30 Jun 2003 08:58:13 -0400 Subject: [dba-SQLServer]Sent Wrong Info Regarding Stored Procedure help URGENT. In-Reply-To: <20030630092735.JKIT5167.fep04-svc.ttys.com@localhost> Message-ID: <005701c33f07$43d417c0$8e01a8c0@Rock> Offhand, I don't see anything wrong. Have you tried the join as a select statement instead, just to see how quick it is? If the select is slow, try creating an index on the two columns comprising the join, and see if that speeds things up. A second thought. In some code I wrote recently, it ran fine on my sample data but timed out on the real data. I was using the DMO library, with a command object &c. Then I suddenly remembered that the command object has a Timeout property (that's not its precise name, which eludes me at the moment, but it's close). The default was too low for the process. Increasing it fixed the problem. It could work for you. Arthur -----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: June 30, 2003 5:28 AM To: dba-sqlserver at databaseadvisors.com; accessd at databaseadvisors.com; dba-vb at databaseadvisors.com Subject: [dba-SQLServer]Sent Wrong Info Regarding Stored Procedure help URGENT. To all, I have two tables tblAvailabilityAll and tblAvailabilityCodes, in tblAvailabilityAll I have a payroll number, availability code (A, N, S or H) and a jobdate, in tblAvailabilityCodes I have an availability code and a corresponding number i.e Code Number A 1 N 2 S 3 H 4 I have a VB6 form with an employees details on, and when a finish date is entered I need to convert the availability code in tblAvailabilityAll to the corresponding number in tblAvailabilityCodes. I have the following stored procedure (this is the one thats timing out, not the on in the previous email). CREATE PROCEDURE [genesis_update_AvailabilityCode] ( @Payroll_1 [nvarchar] (25), @MyDate_2 [datetime] ) AS UPDATE [Genesis].[dbo].[tblAvailabilityAll] SET AvailabilityCode = tblAvailabilityCodes.CancelledAvailabilityCode FROM tblAvailabilityAll INNER JOIN tblAvailabilityCodes ON AvailabilityCode = tblAvailabilityCodes.LiveAvailabilityCode WHERE (tblAvailabilityAll.PayrollNo = @Payroll_1 AND tblAvailabilityAll.JobDate >= @MyDate_2) can anyone see where the stored procedure may be going wrong......I could really do with some urgent help on this... Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From knicholson at gpsx.net Mon Jun 30 09:36:23 2003 From: knicholson at gpsx.net (Nicholson, Karen) Date: Mon, 30 Jun 2003 09:36:23 -0500 Subject: [dba-SQLServer]CoInitialize has not Been Called Message-ID: Does anyone know what this annoyance refers to? It seems to happen quite often when I have SQL server opened, open up Crystal Reports 7.0 to run some reports, and then return to SQL to do more work. Thanks. From davide at dalyn.co.nz Mon Jun 30 23:46:48 2003 From: davide at dalyn.co.nz (David Emerson) Date: Tue, 01 Jul 2003 16:46:48 +1200 Subject: [dba-SQLServer]Log on showing same user as previous Message-ID: <5.2.0.9.0.20030701163349.00bb93d8@mail.dalyn.co.nz> I have an AXP ADP FE which is on several users computers. It is connected to an SQL2000 BE. I used a full copy of Access to make the initial connection with the database. However the users have various user names that they log in as. Currently when they start up the runtime version it asks for the user and password for the SQL database. The user defaults to the user that I logged on as to make the initial connection. The users want it changed so that when the box appears asking for the user and password, that the same user as they previously logged on as is in the user field and they only need to enter the password (it worked in Access 97 so they want the same thing now). Each user does not have a full copy of access so that they can set up their connections. I also don't want to have to make individual copies of the FE and connect then for each user. Is there some way for Access/SQL to remember the last user that logged on and use this for logging on? I can extract the current user from the CurrentProject.Connection.ConnectionString property but where do I go from here? Regards David Emerson DALYN Software Ltd 25b Cunliffe St, Johnsonville Wellington, New Zealand Ph/Fax (877) 456-1205