Viewing 15 posts - 31 through 45 (of 53 total)
Updatetext should be the answer as .WRITE will not work on the TEXT column!
June 16, 2008 at 12:11 pm
Good question!
I looked for the text of the queries returning DBID as NULL in my environment and found that select statements using openquery to get data from remote server...
June 11, 2008 at 11:54 am
SUM(DISTINCT PROMO_DISC_AMT) is not the right solution if PROMO_DISC_CODE can be repeated in the data (which I guess must be a possibility).
If your data looks like :
INSERT INTO @FACTORDER
SELECT 4,...
June 5, 2008 at 5:37 pm
Thanks for the quick response!
Using Left Outer Join solved the problem.
June 5, 2008 at 1:39 pm
So, in which situation would you use count(1) instead of a count(*)? Or is it even a good practice to use count(1)??
To me it seems that they are essentially doing...
June 4, 2008 at 5:35 pm
Good Question!
Could somebody please explain the difference between count(*) and count(1)?
June 4, 2008 at 12:53 pm
Thanks a ton! I was going to use control panel but now I won't.
Do I need to stop the service, change the account and restart it or I can just...
May 15, 2008 at 3:31 pm
Check SQL Server Log, there should be a success or failure message.
May 12, 2008 at 4:34 pm
I would also suggest using table variable or temp table here, you can do:
SELECT code, description INTO temp_table FROM OPENQUERY(PRODJDE,' pdxcommon, 'SELECT * FROM concentration_units')
And then use this temp_table as:
select...
April 10, 2008 at 3:27 pm
Thanks for the replies.
I have another question: since this a clustered index, just rebuilding this will automatically rebuild the other non-clustered indexes on the table or you have to...
April 10, 2008 at 11:19 am
To me also there is no correct answer....unless there is a AM/PM typo.
April 8, 2008 at 4:56 pm
Prashant Pandey (12/12/2007)
3 types (DML triggers, DDL triggers and Logon triggers)
But if u'll read the...
December 12, 2007 at 12:13 pm
I agree with rlondon. Answer should be 4; FOR is the only option available in earlier versions of Microsoft SQL Server for AFTER triggers and the question did not specifically...
December 12, 2007 at 12:10 pm
The following will work even for the ms (milli second) unit of time:
select datediff (ms,getdate()-24,getdate())
Explanation can be found at:
November 26, 2007 at 12:54 pm
Viewing 15 posts - 31 through 45 (of 53 total)