Viewing 15 posts - 286 through 300 (of 381 total)
I am a contractor working at a couple clients. I had considered using a some kind of virtual pc with each client. I just haven't sprung the money to buy a...
Russel Loski, MCSE Business Intelligence, Data Platform
December 15, 2006 at 6:20 am
It would if you put this in an update trigger. You can specify that the trigger is an update trigger or insert trigger or both.
Russel Loski, MCSE Business Intelligence, Data Platform
December 14, 2006 at 1:07 pm
You could try something like:
if exists (select * from t2 t inner join inserted i
on t.Customer= i.Customer
and t.Value = i.Value)
begin
raiserror ('The value exists in t2', 16, 1)
rollback transaction
end
The "inserted"...
Russel Loski, MCSE Business Intelligence, Data Platform
December 14, 2006 at 10:52 am
The " dbcc inputbuffer" (with the proper syntax, which is to pass the spid that identifies the process that is running) should return the last statement that ran on that...
Russel Loski, MCSE Business Intelligence, Data Platform
December 13, 2006 at 3:38 pm
select case when a.key is not null and b.key is not null
then 'both'
case a.key is not null
then 'ReservesFile'
case b.key is not null
then 'Temp'
else -- not sure...
Russel Loski, MCSE Business Intelligence, Data Platform
December 13, 2006 at 2:15 pm
Hmmm! SQL 2000 Enterprise Manager would sure save time. I don't have Management Studio Express, but I don't think that it has the import wizard.
Can you create an Access database with linked tables...
Russel Loski, MCSE Business Intelligence, Data Platform
December 13, 2006 at 7:03 am
You call the import wizard from SQL Server Enterprise Manager. This tool (which is a client tool for SQL Server 2000) allows you to manage the databases, etc. The import...
Russel Loski, MCSE Business Intelligence, Data Platform
December 13, 2006 at 6:40 am
To answer your immediate question:
A case when statement must be of form in your condition:
case when <condition> then <value>
when <condition> then <value>
else <value> end
The point is that the whole...
Russel Loski, MCSE Business Intelligence, Data Platform
December 13, 2006 at 6:15 am
Are you just moving the data? You can use the import wizard to create a DTS package for SQL 2000. You first do the import to a test server from...
Russel Loski, MCSE Business Intelligence, Data Platform
December 13, 2006 at 5:55 am
You need to cast the floats as decimals: convert(decimal(18,9),mycol). Use a sql query for the source.
Russel Loski, MCSE Business Intelligence, Data Platform
December 7, 2006 at 1:01 pm
If you want to position yourself as a SQL 2000 guru, then maybe MCDBA better. Also, MCDBA includes a Server operating system test the MCITP does have, which may interest...
Russel Loski, MCSE Business Intelligence, Data Platform
December 7, 2006 at 6:47 am
Another trick is to delete a section. Say you want to delete all records before Jan 1, 2006. Create a loop
declare @date datetime
set @Date = '1/1/1960'
while @Date <= '1/1/2006'
begin
delete...
Russel Loski, MCSE Business Intelligence, Data Platform
December 7, 2006 at 6:29 am
I am going to assume that the first and second questions are related:
create proc myproc @key int
as
-- Second question (count)
declare @numRec int
select @numRec = count(*) from MyTable
where myKey = @key
--...
Russel Loski, MCSE Business Intelligence, Data Platform
December 7, 2006 at 6:21 am
Try:
if DTSGlobalVariables.Parent.Tasks("DTSTask_DTSDataPumpTask_2").CustomTask.RowsComplete = 0 then
Russel Loski, MCSE Business Intelligence, Data Platform
December 7, 2006 at 6:14 am
Under what conditions does the task run? You can set up a workflow from the datapump to this task. You can state that you want the routine to only when...
Russel Loski, MCSE Business Intelligence, Data Platform
December 6, 2006 at 4:16 pm
Viewing 15 posts - 286 through 300 (of 381 total)