From paul.hartland at fsmail.net Thu Apr 1 02:15:15 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 1 Apr 2004 10:15:15 +0200 (CEST) Subject: [dba-VB] Stored Procedure Help (SQL Server 7.0 & VB6) Message-ID: <2473302.1080807315530.JavaMail.www@wwinf3003> To all, I have a Visual Basic 6 front-end together with a SQL Server 7.0 back-end, and have tried writing a stored procedure to do the following: I pass a UserID into the SP, then I want the SP to UPDATE tblPersonnelJobCategories to TRUE where tblPersonnelJobCategories.UserID is equal to the UserID that I passed to the SP but I only want the UPDATE to take place where the PayrollNo & CategoryID in tblPersonnelJobCategories matches the PayrollNo & CategoryID in tblPersonnelCategoriesSelected I tried using the follwing SQL statement in my SP but it doesn?t like the Inner Join: UPDATE tblPersonnelJobCategories INNER JOIN tblPersonnelCategoriesSelected ON (tblPersonnelJobCategories.CategoryID = tblPersonnelCategoriesSelected.CategoryID) AND (tblPersonnelJobCategories.PayrollNo = tblPersonnelCategoriesSelected.PayrollNo) SET tblPersonnelJobCategories.Selected = True WHERE tblPersonnelJobCategories.UserID= @UserId Any help would be greatly appreciated, as I?m fairly new to SP?s and thought an INNER JOIN would be ok. Thanks in advance for any help Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From carbonnb at sympatico.ca Thu Apr 1 14:44:03 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Thu, 01 Apr 2004 15:44:03 -0500 Subject: [dba-VB] Test In-Reply-To: Message-ID: <406C38C3.2075.5551D6@localhost> On 29 Mar 2004 at 18:41, Gary Kjos wrote: > OK. Fingers crossed. Hard to type that way though. ;-) Well, since you had your fingers crossed, my test worked. Stay tuned for details. -- Bryan Carbonnell - carbonnb at sympatico.ca Ability is what you're capable of doing. Motivation determines what you do. Attitude determines how well you do it. From carbonnb at sympatico.ca Thu Apr 1 14:54:17 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Thu, 01 Apr 2004 15:54:17 -0500 Subject: [dba-VB] Searchable Archives Message-ID: <406C3B29.6046.5EAF58@localhost> Well folks, it appears that the stars and planets have been in alignment this week, except for everyone in the house being sick. DBA-VB Now has a a searchable archive!!! You can get to it by pointing your ever so familiar web browser to: http://databaseadvisors.com/pipermail/dba-vb/ Just fill in your favourite search term and click search and all will be found (we hope :) The only limitation is that the search index is updated once per day, so any posts made after 0207 CST will not be searchable until the following day. Actually all of the lists will become searchable like this over time, as posts are made to it. So if you want your favourite list to be searchable, just post to it. This includes dba-visio!!! :-) -- Bryan Carbonnell - carbonnb at sympatico.ca You're just jealous because the voices only talk to me. From jwcolby at colbyconsulting.com Thu Apr 29 12:05:43 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 29 Apr 2004 13:05:43 -0400 Subject: [dba-VB] refresh data grid design Message-ID: I have a data grid that I set to a data set which I subsequently modified the SQL of. The data grid still shows the columns of the original SQL. Is there a way to cause the data grid to "refresh" itself and display the columns per the new SQL? John W. Colby www.ColbyConsulting.com From mikedorism at adelphia.net Thu Apr 29 12:54:44 2004 From: mikedorism at adelphia.net (Mike & Doris Manning) Date: Thu, 29 Apr 2004 13:54:44 -0400 Subject: [dba-VB] refresh data grid design In-Reply-To: Message-ID: <000701c42e13$0e0cc230$190ba845@hargrove.internal> You need to do the following: 1. Clear the dataset to dump the old data 2. Refill the dataset 3. Reset the grid's datasource to the dataset so it picks up the revisions 4. Refresh the grid. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Thursday, April 29, 2004 1:06 PM To: VBA Subject: [dba-VB] refresh data grid design I have a data grid that I set to a data set which I subsequently modified the SQL of. The data grid still shows the columns of the original SQL. Is there a way to cause the data grid to "refresh" itself and display the columns per the new SQL? John W. Colby www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From paul.hartland at fsmail.net Thu Apr 1 02:15:15 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 1 Apr 2004 10:15:15 +0200 (CEST) Subject: [dba-VB] Stored Procedure Help (SQL Server 7.0 & VB6) Message-ID: <2473302.1080807315530.JavaMail.www@wwinf3003> To all, I have a Visual Basic 6 front-end together with a SQL Server 7.0 back-end, and have tried writing a stored procedure to do the following: I pass a UserID into the SP, then I want the SP to UPDATE tblPersonnelJobCategories to TRUE where tblPersonnelJobCategories.UserID is equal to the UserID that I passed to the SP but I only want the UPDATE to take place where the PayrollNo & CategoryID in tblPersonnelJobCategories matches the PayrollNo & CategoryID in tblPersonnelCategoriesSelected I tried using the follwing SQL statement in my SP but it doesn?t like the Inner Join: UPDATE tblPersonnelJobCategories INNER JOIN tblPersonnelCategoriesSelected ON (tblPersonnelJobCategories.CategoryID = tblPersonnelCategoriesSelected.CategoryID) AND (tblPersonnelJobCategories.PayrollNo = tblPersonnelCategoriesSelected.PayrollNo) SET tblPersonnelJobCategories.Selected = True WHERE tblPersonnelJobCategories.UserID= @UserId Any help would be greatly appreciated, as I?m fairly new to SP?s and thought an INNER JOIN would be ok. Thanks in advance for any help Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From carbonnb at sympatico.ca Thu Apr 1 14:44:03 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Thu, 01 Apr 2004 15:44:03 -0500 Subject: [dba-VB] Test In-Reply-To: Message-ID: <406C38C3.2075.5551D6@localhost> On 29 Mar 2004 at 18:41, Gary Kjos wrote: > OK. Fingers crossed. Hard to type that way though. ;-) Well, since you had your fingers crossed, my test worked. Stay tuned for details. -- Bryan Carbonnell - carbonnb at sympatico.ca Ability is what you're capable of doing. Motivation determines what you do. Attitude determines how well you do it. From carbonnb at sympatico.ca Thu Apr 1 14:54:17 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Thu, 01 Apr 2004 15:54:17 -0500 Subject: [dba-VB] Searchable Archives Message-ID: <406C3B29.6046.5EAF58@localhost> Well folks, it appears that the stars and planets have been in alignment this week, except for everyone in the house being sick. DBA-VB Now has a a searchable archive!!! You can get to it by pointing your ever so familiar web browser to: http://databaseadvisors.com/pipermail/dba-vb/ Just fill in your favourite search term and click search and all will be found (we hope :) The only limitation is that the search index is updated once per day, so any posts made after 0207 CST will not be searchable until the following day. Actually all of the lists will become searchable like this over time, as posts are made to it. So if you want your favourite list to be searchable, just post to it. This includes dba-visio!!! :-) -- Bryan Carbonnell - carbonnb at sympatico.ca You're just jealous because the voices only talk to me. From jwcolby at colbyconsulting.com Thu Apr 29 12:05:43 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 29 Apr 2004 13:05:43 -0400 Subject: [dba-VB] refresh data grid design Message-ID: I have a data grid that I set to a data set which I subsequently modified the SQL of. The data grid still shows the columns of the original SQL. Is there a way to cause the data grid to "refresh" itself and display the columns per the new SQL? John W. Colby www.ColbyConsulting.com From mikedorism at adelphia.net Thu Apr 29 12:54:44 2004 From: mikedorism at adelphia.net (Mike & Doris Manning) Date: Thu, 29 Apr 2004 13:54:44 -0400 Subject: [dba-VB] refresh data grid design In-Reply-To: Message-ID: <000701c42e13$0e0cc230$190ba845@hargrove.internal> You need to do the following: 1. Clear the dataset to dump the old data 2. Refill the dataset 3. Reset the grid's datasource to the dataset so it picks up the revisions 4. Refresh the grid. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Thursday, April 29, 2004 1:06 PM To: VBA Subject: [dba-VB] refresh data grid design I have a data grid that I set to a data set which I subsequently modified the SQL of. The data grid still shows the columns of the original SQL. Is there a way to cause the data grid to "refresh" itself and display the columns per the new SQL? John W. Colby www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From paul.hartland at fsmail.net Thu Apr 1 02:15:15 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 1 Apr 2004 10:15:15 +0200 (CEST) Subject: [dba-VB] Stored Procedure Help (SQL Server 7.0 & VB6) Message-ID: <2473302.1080807315530.JavaMail.www@wwinf3003> To all, I have a Visual Basic 6 front-end together with a SQL Server 7.0 back-end, and have tried writing a stored procedure to do the following: I pass a UserID into the SP, then I want the SP to UPDATE tblPersonnelJobCategories to TRUE where tblPersonnelJobCategories.UserID is equal to the UserID that I passed to the SP but I only want the UPDATE to take place where the PayrollNo & CategoryID in tblPersonnelJobCategories matches the PayrollNo & CategoryID in tblPersonnelCategoriesSelected I tried using the follwing SQL statement in my SP but it doesn?t like the Inner Join: UPDATE tblPersonnelJobCategories INNER JOIN tblPersonnelCategoriesSelected ON (tblPersonnelJobCategories.CategoryID = tblPersonnelCategoriesSelected.CategoryID) AND (tblPersonnelJobCategories.PayrollNo = tblPersonnelCategoriesSelected.PayrollNo) SET tblPersonnelJobCategories.Selected = True WHERE tblPersonnelJobCategories.UserID= @UserId Any help would be greatly appreciated, as I?m fairly new to SP?s and thought an INNER JOIN would be ok. Thanks in advance for any help Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From carbonnb at sympatico.ca Thu Apr 1 14:44:03 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Thu, 01 Apr 2004 15:44:03 -0500 Subject: [dba-VB] Test In-Reply-To: Message-ID: <406C38C3.2075.5551D6@localhost> On 29 Mar 2004 at 18:41, Gary Kjos wrote: > OK. Fingers crossed. Hard to type that way though. ;-) Well, since you had your fingers crossed, my test worked. Stay tuned for details. -- Bryan Carbonnell - carbonnb at sympatico.ca Ability is what you're capable of doing. Motivation determines what you do. Attitude determines how well you do it. From carbonnb at sympatico.ca Thu Apr 1 14:54:17 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Thu, 01 Apr 2004 15:54:17 -0500 Subject: [dba-VB] Searchable Archives Message-ID: <406C3B29.6046.5EAF58@localhost> Well folks, it appears that the stars and planets have been in alignment this week, except for everyone in the house being sick. DBA-VB Now has a a searchable archive!!! You can get to it by pointing your ever so familiar web browser to: http://databaseadvisors.com/pipermail/dba-vb/ Just fill in your favourite search term and click search and all will be found (we hope :) The only limitation is that the search index is updated once per day, so any posts made after 0207 CST will not be searchable until the following day. Actually all of the lists will become searchable like this over time, as posts are made to it. So if you want your favourite list to be searchable, just post to it. This includes dba-visio!!! :-) -- Bryan Carbonnell - carbonnb at sympatico.ca You're just jealous because the voices only talk to me. From jwcolby at colbyconsulting.com Thu Apr 29 12:05:43 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 29 Apr 2004 13:05:43 -0400 Subject: [dba-VB] refresh data grid design Message-ID: I have a data grid that I set to a data set which I subsequently modified the SQL of. The data grid still shows the columns of the original SQL. Is there a way to cause the data grid to "refresh" itself and display the columns per the new SQL? John W. Colby www.ColbyConsulting.com From mikedorism at adelphia.net Thu Apr 29 12:54:44 2004 From: mikedorism at adelphia.net (Mike & Doris Manning) Date: Thu, 29 Apr 2004 13:54:44 -0400 Subject: [dba-VB] refresh data grid design In-Reply-To: Message-ID: <000701c42e13$0e0cc230$190ba845@hargrove.internal> You need to do the following: 1. Clear the dataset to dump the old data 2. Refill the dataset 3. Reset the grid's datasource to the dataset so it picks up the revisions 4. Refresh the grid. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Thursday, April 29, 2004 1:06 PM To: VBA Subject: [dba-VB] refresh data grid design I have a data grid that I set to a data set which I subsequently modified the SQL of. The data grid still shows the columns of the original SQL. Is there a way to cause the data grid to "refresh" itself and display the columns per the new SQL? John W. Colby www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From paul.hartland at fsmail.net Thu Apr 1 02:15:15 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 1 Apr 2004 10:15:15 +0200 (CEST) Subject: [dba-VB] Stored Procedure Help (SQL Server 7.0 & VB6) Message-ID: <2473302.1080807315530.JavaMail.www@wwinf3003> To all, I have a Visual Basic 6 front-end together with a SQL Server 7.0 back-end, and have tried writing a stored procedure to do the following: I pass a UserID into the SP, then I want the SP to UPDATE tblPersonnelJobCategories to TRUE where tblPersonnelJobCategories.UserID is equal to the UserID that I passed to the SP but I only want the UPDATE to take place where the PayrollNo & CategoryID in tblPersonnelJobCategories matches the PayrollNo & CategoryID in tblPersonnelCategoriesSelected I tried using the follwing SQL statement in my SP but it doesn?t like the Inner Join: UPDATE tblPersonnelJobCategories INNER JOIN tblPersonnelCategoriesSelected ON (tblPersonnelJobCategories.CategoryID = tblPersonnelCategoriesSelected.CategoryID) AND (tblPersonnelJobCategories.PayrollNo = tblPersonnelCategoriesSelected.PayrollNo) SET tblPersonnelJobCategories.Selected = True WHERE tblPersonnelJobCategories.UserID= @UserId Any help would be greatly appreciated, as I?m fairly new to SP?s and thought an INNER JOIN would be ok. Thanks in advance for any help Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From carbonnb at sympatico.ca Thu Apr 1 14:44:03 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Thu, 01 Apr 2004 15:44:03 -0500 Subject: [dba-VB] Test In-Reply-To: Message-ID: <406C38C3.2075.5551D6@localhost> On 29 Mar 2004 at 18:41, Gary Kjos wrote: > OK. Fingers crossed. Hard to type that way though. ;-) Well, since you had your fingers crossed, my test worked. Stay tuned for details. -- Bryan Carbonnell - carbonnb at sympatico.ca Ability is what you're capable of doing. Motivation determines what you do. Attitude determines how well you do it. From carbonnb at sympatico.ca Thu Apr 1 14:54:17 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Thu, 01 Apr 2004 15:54:17 -0500 Subject: [dba-VB] Searchable Archives Message-ID: <406C3B29.6046.5EAF58@localhost> Well folks, it appears that the stars and planets have been in alignment this week, except for everyone in the house being sick. DBA-VB Now has a a searchable archive!!! You can get to it by pointing your ever so familiar web browser to: http://databaseadvisors.com/pipermail/dba-vb/ Just fill in your favourite search term and click search and all will be found (we hope :) The only limitation is that the search index is updated once per day, so any posts made after 0207 CST will not be searchable until the following day. Actually all of the lists will become searchable like this over time, as posts are made to it. So if you want your favourite list to be searchable, just post to it. This includes dba-visio!!! :-) -- Bryan Carbonnell - carbonnb at sympatico.ca You're just jealous because the voices only talk to me. From jwcolby at colbyconsulting.com Thu Apr 29 12:05:43 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 29 Apr 2004 13:05:43 -0400 Subject: [dba-VB] refresh data grid design Message-ID: I have a data grid that I set to a data set which I subsequently modified the SQL of. The data grid still shows the columns of the original SQL. Is there a way to cause the data grid to "refresh" itself and display the columns per the new SQL? John W. Colby www.ColbyConsulting.com From mikedorism at adelphia.net Thu Apr 29 12:54:44 2004 From: mikedorism at adelphia.net (Mike & Doris Manning) Date: Thu, 29 Apr 2004 13:54:44 -0400 Subject: [dba-VB] refresh data grid design In-Reply-To: Message-ID: <000701c42e13$0e0cc230$190ba845@hargrove.internal> You need to do the following: 1. Clear the dataset to dump the old data 2. Refill the dataset 3. Reset the grid's datasource to the dataset so it picks up the revisions 4. Refresh the grid. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Thursday, April 29, 2004 1:06 PM To: VBA Subject: [dba-VB] refresh data grid design I have a data grid that I set to a data set which I subsequently modified the SQL of. The data grid still shows the columns of the original SQL. Is there a way to cause the data grid to "refresh" itself and display the columns per the new SQL? John W. Colby www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com