Viewing 15 posts - 946 through 960 (of 1,166 total)
You can change your query to send the output to .xls...
Post the query...
MohammedU
Microsoft SQL Server MVP
December 13, 2006 at 11:03 pm
When you use the table alias use single name instead of three name...
LEFT JOIN dbo.RE7.CONSTIT_ADDRESS_PHONES AS CONSTIT_ADDRESS_PHONES1 ON dbo.RE7.CONSTIT_ADDRESS.ADDRESS_ID = CONSTIT_ADDRESS_PHONES1.CONSTITADDRESSID
MohammedU
Microsoft SQL Server MVP
December 13, 2006 at 10:59 pm
If you know the spid you use to query sysprocess table...
select loginame from sysprocesses where spid = ...
MohammedU
Microsoft SQL Server MVP
December 13, 2006 at 10:48 pm
You can add no of days as calculated column..
See the following ex:
drop table #test
Create table #test (publicationdate datetime default getdate(), NoOfDays as datediff(dd, publicationdate, getdate() ))
insert into...
MohammedU
Microsoft SQL Server MVP
December 13, 2006 at 10:44 pm
You can add no of days as calculated column..
See the following ex:
drop table #test
Create table #test (publicationdate datetime default getdate(), NoOfDays as datediff(dd, publicationdate, getdate() ))
insert into...
MohammedU
Microsoft SQL Server MVP
December 13, 2006 at 10:43 pm
SELECT table_name, sum(COL_LENGTH(table_name, column_name)) AS ColumnLength
FROM INFORMATION_SCHEMA.columns
group by table_name
MohammedU
Microsoft SQL Server MVP
December 13, 2006 at 10:38 pm
If these files are backup files then you can use RESTOER HEADERONLY command to check them...
MohammedU
Microsoft SQL Server MVP
December 13, 2006 at 10:30 pm
You can either one...
sp_readerrorlog or xp_readerrorlog
MohammedU
Microsoft SQL Server MVP
December 13, 2006 at 10:22 pm
Log growth is very high while Indexdefrag process running compared to reindex...
You can try changing the recovery model to bulk_logged before index defrag and can change back to Full once...
MohammedU
Microsoft SQL Server MVP
December 13, 2006 at 10:13 pm
Still you can use sp_helptext...
select object_definition(object_id('sp_spaceused'))
exec sp_helptext sp_spaceused
MohammedU
Microsoft SQL Server MVP
December 13, 2006 at 5:18 pm
This is one of the new security feature offered in sql 2005...
Until sql 2000, even sql passwords are not case sensitive...
SQL Server 2005 Security Features at a Glance
http://www.microsoft.com/sql/technologies/security/security-at-a-glance.mspx
Administrators...
MohammedU
Microsoft SQL Server MVP
December 13, 2006 at 5:09 pm
looking at external load balancing hardware. So if server A is busy the request would be sent to server B - but this would need some sort of two-way mirror...
MohammedU
Microsoft SQL Server MVP
December 13, 2006 at 4:59 pm
If both tables used in the query/join has the same column name what you are selecting, sql gives that error...
so it is always advisable to use table alias/name before...
MohammedU
Microsoft SQL Server MVP
December 13, 2006 at 4:45 pm
If I am not mistaken.. to use READ_COMMITTED_SNAPSHOT you have to enable it first which is server configuration not the db configuration and it has its own pros and cons...
If...
MohammedU
Microsoft SQL Server MVP
December 13, 2006 at 4:41 pm
I will go with single procedure...
create proc abc
as
select * into #temp2005 from Sep2005table
select * into #temp2006 from Sep2006table
Calculate the difference from #temp2005 and #temp2006... these table will have subset of data...
MohammedU
Microsoft SQL Server MVP
December 13, 2006 at 4:31 pm
Viewing 15 posts - 946 through 960 (of 1,166 total)