Viewing 15 posts - 586 through 600 (of 1,156 total)
Jeff, I guess you didnt make a post. Myschif you should read up on the article. It is wonderfully written and explains the potentials pitfalls, in solving a problem...
February 21, 2008 at 3:54 pm
Jeff I see that you are in the post. I was about to plug your article on the update method. 😀
Now I guess you can do that ;).
Using Jeff's...
February 21, 2008 at 3:51 pm
Ok. Let me back up then. What I am saying is when you use a group by clause to group a set of aggregate data. Your data...
February 21, 2008 at 2:47 pm
Internal fragmentation is not as bad as external fragmentation. Actually, internal fragmentation is expected to happen. Internal fragmentation occurs when you have data in the table and a...
February 21, 2008 at 2:32 pm
I cant see you image post. But one way to do this is to take the MAX of the class and remove class from the group by. Another...
February 21, 2008 at 2:20 pm
Your going to have to create dynamic sql for this. Something like this would work.
declare @sql nvarchar(4000),
@columns nvarchar(100),
@categorytext nvarchar(1000)
set @sql = N'
SELECT *
FROM tenders
WHERE ' +...
February 21, 2008 at 2:16 pm
Logical Scan Fragmentation and Extent Scan Fragmentation only calculate external fragmentation, which means your pages are logically out of order. It does not factor in internal fragmentation, which means...
February 21, 2008 at 2:00 pm
SELECT Client_PK_ID
FROM tbl_Clients_ClientBasicInformation
WHERE ---this is line 40
tbl_Clients_ClientBasicInformation.ClientNumber = @ClientNumber
Are you setting this to a variable?
IF EXISTS
(SELECT *--Client_PK_ID
FROMtbl_Clients_ClientWageRates
WHERE Client_PK_ID = tbl_Clients_ClientWageRates.Client_PK_ID)
I dont get this... These will always...
February 21, 2008 at 1:17 pm
You could do something like this:
declare @cmd nvarchar(4000),
@server nvarchar(50),
@database nvarchar(50),
@table nvarchar (50),
@username nvarchar(50),
@Password nvarchar(50),
@Columns nvarchar(500),
@filter nvarchar(500)
SET @server = N'MYDBSERVER'
SET @database = N'DBName'
SET @table = N'TableName'
--If you do not supply a...
February 21, 2008 at 12:40 pm
You would have to do a left join. The left join would return all records from the left table where they do not exist in the right table. ...
February 21, 2008 at 5:39 am
Except returns DISTINCT rows. Try running this query over warehouse32.dbo.tmt_dimension. This should return 785 rows.
select distinct
[HYP_CLEARANCE] ,
[HYP_COUNTRY] ,
[HYP_EMP_TYPE],
[HYP_EMPNO] ,
[HYP_ORG],
[HYP_STATUS],
[HYP_DATE] ,
[HYP_ACTION] ,
[HYP_COUNTER]
from warehouse32.dbo.tmt_dimension
February 20, 2008 at 4:02 pm
You cant remove the where because you need it for the update. What he is saying is you can do is either put the variable in the update like:...
February 20, 2008 at 2:16 pm
---THERE IS AN ERRORIF @@TRANCOUNT > 0ROLLBACK---ERROR INFODECLARE @ErrMsg varchar(1000),@ErrSeverity int---other error codes??SELECT @ErrMsg = ERROR_MESSAGE(),@ErrSeverity = ERROR_SEVERITY()---KEEP FOR ASPRAISERROR(@ErrMsg, @ErrSeverity, 1)
You dont need an if for the rollback. ...
February 20, 2008 at 1:03 pm
You might get better responses if you post this in the 2000 forums. Currently this is posted in the SQL 2005 TSQL forums.
February 20, 2008 at 12:16 pm
Viewing 15 posts - 586 through 600 (of 1,156 total)