Viewing 15 posts - 18,631 through 18,645 (of 18,926 total)
To rename the table :
exec sp_rename 'CurrentName', 'NewName', 'OBJECT'
February 1, 2005 at 1:50 pm
No I missed that one Jeff. Thanx for the correction.
January 27, 2005 at 8:55 pm
Hmm this can be a problem
.ActiveConnection = strDBConnectionString
You could try setting ActiveConnection to an adodb.connection object and close that object before accessing the params to see if it works.
As for...
January 27, 2005 at 2:43 pm
Did you try closing the connection before trying to access the parameters? I vaguely remember that you hav to CLOSE something (either the cn or rs but I'm pretty...
January 27, 2005 at 2:22 pm
Try something like this.
Select dtDates.*, dtDates.Monday + dtDates.Tuesday + ... + dtDates.Sunday) as Total from
(SELECT
E.PAYTYPE
, SUM(CASE datepart(dw,E.TimeDate) WHEN 2 THEN E.Hours ELSE 0 END) as Monday
, SUM(CASE datepart(dw,E.TimeDate) WHEN...
January 27, 2005 at 1:38 pm
Forget about one year... how about now for any other programmer and one week for you?? This is way too complicated for no reason.
BTW I think the sp's text...
January 27, 2005 at 9:14 am
Yes they both work both my version will not cause the sp to recompile. This can be a great time saver if the proc is not performing well... ...
January 27, 2005 at 8:34 am
You can do something like this :
TRUNCATE TABLE TableB
Insert into TableB (Col1, Col2, Col3...) (Select Col1, Col2, Col3 from TableA)
January 27, 2005 at 8:18 am
This should do it :
select @person_id = person_id from personaldetails where email = @usn
January 27, 2005 at 6:50 am
Do you want to update UPR00200 or UPR00100 cause this
BEGIN
update UPR00100
will update table one instead of 2.
January 26, 2005 at 2:21 pm
Try this :
If Update(?)....
begin
Update UPR set UPR.Update_Ind = 1 from Inserted Ins inner join dbo.UPR00100 UPR on Ins.EmployID = UPR.EmployID and Ins.ADRSCODE = UPR.ADRSCODE
WHERE (Ins.Adress1 UPR.Adress1 or Ins.Address2...
January 26, 2005 at 12:39 pm
Sorry I spoke too soon... what I meant to say is that I would make another table with the choices (maybe with a priority column) to allow for unlimited numbers...
January 26, 2005 at 9:54 am
The only fast way to do this is to use the query builder of enterprise manager. If you have more than 1 table, it will automatically put the tablename...
January 26, 2005 at 8:46 am
You just can't... you must use the subquery as the variable.
If you need to use that variable more than once, may I suggest you create a derived table and join...
January 26, 2005 at 7:56 am
Viewing 15 posts - 18,631 through 18,645 (of 18,926 total)