Viewing 11 posts - 316 through 327 (of 327 total)
This will get you the path and filename of the latest backup file.
SELECT DISTINCT B.PHYSICAL_DEVICE_NAME
FROM backupset a, backupmediafamily b, backupfile c
WHERE a.database_name = '<Your DB Name Here>'
AND a.type =...
MG
"There are two ways of constructing a software design. One way is to make it so simple that there are obviously no deficiencies. And the other way is to make it so complicated that there are no obvious deficiencies."
Tony Hoare
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.
August 27, 2004 at 8:25 am
SQL 2K Profiler has a script option so you can create and script out the trace. Then put it in a job. I don't know if the older versions of...
MG
"There are two ways of constructing a software design. One way is to make it so simple that there are obviously no deficiencies. And the other way is to make it so complicated that there are no obvious deficiencies."
Tony Hoare
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.
August 27, 2004 at 6:54 am
I think you need to configure DCOM and grant access. I vaguely remember needing to do that when I set up debugger but I don't remember what I did. Hope...
MG
"There are two ways of constructing a software design. One way is to make it so simple that there are obviously no deficiencies. And the other way is to make it so complicated that there are no obvious deficiencies."
Tony Hoare
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.
August 24, 2004 at 6:20 am
You can use the extended sproc xp_getfiledetails to capture the information you need.
Create a temp table:
CREATE TABLE #ATTRIBS (
alternate_name VARCHAR(128),
INT,
creation_date INT,
creation_time INT,
last_written_date INT,
last_written_time INT,
last_accessed_date INT,
last_accessed_time INT,
attributes INT)
-- Check the archive bit to determine if the file has been...
MG
"There are two ways of constructing a software design. One way is to make it so simple that there are obviously no deficiencies. And the other way is to make it so complicated that there are no obvious deficiencies."
Tony Hoare
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.
August 4, 2004 at 7:04 am
Thanks - I wound up using a temporary table.
Select top 10 rownum = identity(int,1,1),
productid, quantity
into #tmp
from [order details]
order by quantity desc
select * from #tmp
where rownum in (8,9,10)
drop table...
MG
"There are two ways of constructing a software design. One way is to make it so simple that there are obviously no deficiencies. And the other way is to make it so complicated that there are no obvious deficiencies."
Tony Hoare
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.
August 3, 2004 at 7:29 am
I goofed on the 'rs'. should have been [order detail]. I now get a result but the count is the total number of records for each productid and since the...
MG
"There are two ways of constructing a software design. One way is to make it so simple that there are obviously no deficiencies. And the other way is to make it so complicated that there are no obvious deficiencies."
Tony Hoare
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.
July 28, 2004 at 10:42 am
Thanks - tried it and I still get the invalid object name 'rs'. The inner query uses the alias of order detail in the outer query. Would that be the...
MG
"There are two ways of constructing a software design. One way is to make it so simple that there are obviously no deficiencies. And the other way is to make it so complicated that there are no obvious deficiencies."
Tony Hoare
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.
July 27, 2004 at 11:29 am
Thanks for asking. I actually found the answer in a Microsoft KB Article - 830210. It looks like you have to do some digging to get information on replication.
Anyway,...
MG
"There are two ways of constructing a software design. One way is to make it so simple that there are obviously no deficiencies. And the other way is to make it so complicated that there are no obvious deficiencies."
Tony Hoare
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.
July 21, 2004 at 6:46 am
I looked at BOL for the sp_reladdcolumn and sp_repldropcolumn. They both have a schema_change_script parameter. Would that be the alter table script?
MG
"There are two ways of constructing a software design. One way is to make it so simple that there are obviously no deficiencies. And the other way is to make it so complicated that there are no obvious deficiencies."
Tony Hoare
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.
July 2, 2004 at 7:39 am
Thanks - DTS certainly sounds like a reasonable alternative. I'll set it up and test. ![]()
MG
"There are two ways of constructing a software design. One way is to make it so simple that there are obviously no deficiencies. And the other way is to make it so complicated that there are no obvious deficiencies."
Tony Hoare
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.
July 1, 2004 at 10:34 am
Thanks - I was fairly certain that was the case but I had hoped there was an undocumented "feature" somewhere.
MG
"There are two ways of constructing a software design. One way is to make it so simple that there are obviously no deficiencies. And the other way is to make it so complicated that there are no obvious deficiencies."
Tony Hoare
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.
June 22, 2004 at 6:18 am
Viewing 11 posts - 316 through 327 (of 327 total)